@gientech/modual 1.3.6 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/AppLoading-BCu9TPs5.js +414 -0
- package/assets/GientechStreamReader-A8zHypyu.js +446 -0
- package/assets/LeftOutlined-BdBZ6FSD.js +1 -0
- package/assets/homeBg.png +0 -0
- package/assets/index-B7u9FawR.js +1 -0
- package/assets/index-CFlRqq2H.js +585 -0
- package/assets/index-CNJZ9j4J.js +1 -0
- package/assets/{index-Ce4td48i.js → index-DfSHCQcq.js} +95 -100
- package/assets/index-DiQ4Me9J.js +1429 -0
- package/assets/index-EcdpegTC.js +1 -0
- package/assets/index-rydP_SDR.js +21 -0
- package/assets/left.jpg +0 -0
- package/assets/logoImg.png +0 -0
- package/assets/{plus-omCUN0e3.js → plus-ufD39rmY.js} +1 -1
- package/assets/style.css +1 -1
- package/assets/style3.css +1 -1
- package/assets/style4.css +1 -0
- package/assets/{x-vPcWt3fC.js → x-_1-UpSBt.js} +1 -1
- package/chat.js +78 -581
- package/database.js +2 -2
- package/databaseId.js +3 -3
- package/databaseTable.js +14 -2
- package/index.d.ts +81 -0
- package/index.js +14 -0
- package/modelManage.js +1 -1
- package/package.json +8 -1
- package/sensitive.js +1 -1
- package/streamFilesReader.d.ts +3 -0
- package/streamFilesReader.js +1 -442
- package/assets/_commonjsHelpers-gnU0ypJ3.js +0 -1
- package/assets/circle-alert-g2Y6zAjt.js +0 -6
- package/assets/index-CDNF071H.js +0 -1709
- package/assets/index-CEK88UzR.js +0 -26
- package/assets/styled-components.browser.esm-DPkS13KC.js +0 -2
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import*as u from"react";import ae,{forwardRef as dr,createElement as Hs,createContext as Ur,version as Fb,useMemo as En,useContext as Gt,useState as Pt,useRef as qe,Children as Qm,useEffect as It,useCallback as Td,useImperativeHandle as Zo,useLayoutEffect as Hb,cloneElement as Zm,isValidElement as Jm,Component as Bb}from"react";import{M as In,H as zr,at as zb,ao as yr,au as _b,A as al,a7 as pu,k as An,N as Ue,L as Hr,G as eg,_ as Fn,O as Hi,z as Lb,av as Wb,aw as Vb,ax as Kb,ay as qb,az as wt,K as Mo,aA as Yb,t as yo,g as Xb,aB as Ub,aC as Gb,e as Qb,r as Zb,x as Bs,w as Jb,a9 as ey,aD as ty,q as Fd,C as tg,aE as ny,aF as ry,ah as oy,I as gr,aG as ay,d as zs,F as Fo,aH as iy,as as Bi,a6 as ly,a3 as sy}from"./index-DiQ4Me9J.js";import*as cy from"react-dom";import Hd,{flushSync as _s,createPortal as ng,unstable_batchedUpdates as uy}from"react-dom";import{jsx as _t,jsxs as mn}from"react/jsx-runtime";import{M as dy}from"./index-rydP_SDR.js";function Tn(e,t){return e[t]}var fy=["children"];function rg(e,t){return"".concat(e,"-").concat(t)}function py(e){return e&&e.type&&e.type.isTreeNode}function qa(e,t){return e??t}function qo(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,i=n||"title";return{title:i,_title:r||[i],key:o||"key",children:a||"children"}}function og(e){function t(n){var r=_b(n);return r.map(function(o){if(!py(o))return zr(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,i=o.props,l=i.children,s=al(i,fy),c=In({key:a},s),d=t(l);return d.length&&(c.children=d),c}).filter(function(o){return o})}return t(e)}function Yl(e,t,n){var r=qo(n),o=r._title,a=r.key,i=r.children,l=new Set(t===!0?[]:t),s=[];function c(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(p,v){for(var h=rg(f?f.pos:"0",v),g=qa(p[a],h),m,b=0;b<o.length;b+=1){var x=o[b];if(p[x]!==void 0){m=p[x];break}}var y=Object.assign(zb(p,[].concat(yr(o),[a,i])),{title:m,key:g,parent:f,pos:h,children:null,data:p,isStart:[].concat(yr(f?f.isStart:[]),[v===0]),isEnd:[].concat(yr(f?f.isEnd:[]),[v===d.length-1])});return s.push(y),t===!0||l.has(g)?y.children=c(p[i]||[],y):y.children=[],y})}return c(e),s}function my(e,t,n){var r={};pu(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,a=o.childrenPropName,i=o.externalGetKey,l=o.fieldNames,s=qo(l),c=s.key,d=s.children,f=a||d,p;i?typeof i=="string"?p=function(g){return g[i]}:typeof i=="function"&&(p=function(g){return i(g)}):p=function(g,m){return qa(g[c],m)};function v(h,g,m,b){var x=h?h[f]:e,y=h?rg(m.pos,g):"0",w=h?[].concat(yr(b),[h]):[];if(h){var C=p(h,y),S={node:h,index:g,pos:y,key:C,parentPos:m.node?m.pos:null,level:m.level+1,nodes:w};t(S)}x&&x.forEach(function($,k){v($,k,{node:h,pos:y,level:m?m.level+1:-1},w)})}v(null)}function ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,l=t.fieldNames,s=arguments.length>2?arguments[2]:void 0,c=a||s,d={},f={},p={posEntities:d,keyEntities:f};return n&&(p=n(p)||p),my(e,function(v){var h=v.node,g=v.index,m=v.pos,b=v.key,x=v.parentPos,y=v.level,w=v.nodes,C={node:h,nodes:w,index:g,key:b,pos:m,level:y},S=qa(b,m);d[m]=C,f[S]=C,C.parent=d[x],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),r&&r(C,p)},{externalGetKey:c,childrenPropName:i,fieldNames:l}),o&&o(p),p}function Ea(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,c=t.dropPosition,d=t.keyEntities,f=Tn(d,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1};return p}function ln(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,s=e.dragOver,c=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,v=e.eventKey,h=In(In({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:d,pos:f,active:p,key:v});return"props"in h||Object.defineProperty(h,"props",{get:function(){return zr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function ig(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function gy(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function hy(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var l=t.get(i)||new Set;l.forEach(function(f){var p=f.key,v=f.node,h=f.children,g=h===void 0?[]:h;o.has(p)&&!r(v)&&g.filter(function(m){return!r(m.node)}).forEach(function(m){o.add(m.key)})})}for(var s=new Set,c=n;c>=0;c-=1){var d=t.get(c)||new Set;d.forEach(function(f){var p=f.parent,v=f.node;if(!(r(v)||!f.parent||s.has(f.parent.key))){if(r(f.parent.node)){s.add(p.key);return}var h=!0,g=!1;(p.children||[]).filter(function(m){return!r(m.node)}).forEach(function(m){var b=m.key,x=o.has(b);h&&!x&&(h=!1),!g&&(x||a.has(b))&&(g=!0)}),h&&o.add(p.key),g&&a.add(p.key),s.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(ig(a,o))}}function vy(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),l=0;l<=r;l+=1){var s=n.get(l)||new Set;s.forEach(function(p){var v=p.key,h=p.node,g=p.children,m=g===void 0?[]:g;!a.has(v)&&!i.has(v)&&!o(h)&&m.filter(function(b){return!o(b.node)}).forEach(function(b){a.delete(b.key)})})}i=new Set;for(var c=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(p){var v=p.parent,h=p.node;if(!(o(h)||!p.parent||c.has(p.parent.key))){if(o(p.parent.node)){c.add(v.key);return}var g=!0,m=!1;(v.children||[]).filter(function(b){return!o(b.node)}).forEach(function(b){var x=b.key,y=a.has(x);g&&!y&&(g=!1),!m&&(y||i.has(x))&&(m=!0)}),g||a.delete(v.key),m&&i.add(v.key),c.add(v.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(ig(i,a))}}function Xl(e,t,n,r){var o=[],a;a=gy;var i=new Set(e.filter(function(d){var f=!!Tn(n,d);return f||o.push(d),f})),l=new Map,s=0;Object.keys(n).forEach(function(d){var f=n[d],p=f.level,v=l.get(p);v||(v=new Set,l.set(p,v)),v.add(f),s=Math.max(s,p)}),zr(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var c;return t===!0?c=hy(i,l,s,a):c=vy(i,t.halfCheckedKeys,l,s,a),c}var mu=u.createContext(null),by=u.createContext({}),yy=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),l=[],s=0;s<r;s+=1)l.push(u.createElement("span",{key:s,className:An(i,Ue(Ue({},"".concat(i,"-start"),o[s]),"".concat(i,"-end"),a[s]))}));return u.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},l)};const xy=u.memo(yy);var Cy=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Bd="open",zd="close",wy="---",Ia=function(t){var n,r,o,a=t.eventKey,i=t.className,l=t.style,s=t.dragOver,c=t.dragOverGapTop,d=t.dragOverGapBottom,f=t.isLeaf,p=t.isStart,v=t.isEnd,h=t.expanded,g=t.selected,m=t.checked,b=t.halfChecked,x=t.loading,y=t.domRef,w=t.active,C=t.data,S=t.onMouseMove,$=t.selectable,k=al(t,Cy),E=ae.useContext(mu),O=ae.useContext(by),M=ae.useRef(null),N=ae.useState(!1),T=Hr(N,2),P=T[0],D=T[1],j=!!(E.disabled||t.disabled||(n=O.nodeDisabled)!==null&&n!==void 0&&n.call(O,C)),B=ae.useMemo(function(){return!E.checkable||t.checkable===!1?!1:E.checkable},[E.checkable,t.checkable]),I=function(ie){j||E.onNodeSelect(ie,ln(t))},_=function(ie){j||!B||t.disableCheckbox||E.onNodeCheck(ie,ln(t),!m)},L=ae.useMemo(function(){return typeof $=="boolean"?$:E.selectable},[$,E.selectable]),W=function(ie){E.onNodeClick(ie,ln(t)),L?I(ie):_(ie)},R=function(ie){E.onNodeDoubleClick(ie,ln(t))},A=function(ie){E.onNodeMouseEnter(ie,ln(t))},F=function(ie){E.onNodeMouseLeave(ie,ln(t))},H=function(ie){E.onNodeContextMenu(ie,ln(t))},z=ae.useMemo(function(){return!!(E.draggable&&(!E.draggable.nodeDraggable||E.draggable.nodeDraggable(C)))},[E.draggable,C]),V=function(ie){ie.stopPropagation(),D(!0),E.onNodeDragStart(ie,t);try{ie.dataTransfer.setData("text/plain","")}catch{}},K=function(ie){ie.preventDefault(),ie.stopPropagation(),E.onNodeDragEnter(ie,t)},J=function(ie){ie.preventDefault(),ie.stopPropagation(),E.onNodeDragOver(ie,t)},Y=function(ie){ie.stopPropagation(),E.onNodeDragLeave(ie,t)},Z=function(ie){ie.stopPropagation(),D(!1),E.onNodeDragEnd(ie,t)},G=function(ie){ie.preventDefault(),ie.stopPropagation(),D(!1),E.onNodeDrop(ie,t)},X=function(ie){x||E.onNodeExpand(ie,ln(t))},ne=ae.useMemo(function(){var be=Tn(E.keyEntities,a)||{},ie=be.children;return!!(ie||[]).length},[E.keyEntities,a]),te=ae.useMemo(function(){return f===!1?!1:f||!E.loadData&&!ne||E.loadData&&t.loaded&&!ne},[f,E.loadData,ne,t.loaded]);ae.useEffect(function(){x||typeof E.loadData=="function"&&h&&!te&&!t.loaded&&E.onNodeLoad(ln(t))},[x,E.loadData,E.onNodeLoad,h,te,t]);var ee=ae.useMemo(function(){var be;return(be=E.draggable)!==null&&be!==void 0&&be.icon?ae.createElement("span",{className:"".concat(E.prefixCls,"-draggable-icon")},E.draggable.icon):null},[E.draggable]),se=function(ie){var ye=t.switcherIcon||E.switcherIcon;return typeof ye=="function"?ye(In(In({},t),{},{isLeaf:ie})):ye},de=function(){if(te){var ie=se(!0);return ie!==!1?ae.createElement("span",{className:An("".concat(E.prefixCls,"-switcher"),"".concat(E.prefixCls,"-switcher-noop"))},ie):null}var ye=se(!1);return ye!==!1?ae.createElement("span",{onClick:X,className:An("".concat(E.prefixCls,"-switcher"),"".concat(E.prefixCls,"-switcher_").concat(h?Bd:zd))},ye):null},ge=ae.useMemo(function(){if(!B)return null;var be=typeof B!="boolean"?B:null;return ae.createElement("span",{className:An("".concat(E.prefixCls,"-checkbox"),Ue(Ue(Ue({},"".concat(E.prefixCls,"-checkbox-checked"),m),"".concat(E.prefixCls,"-checkbox-indeterminate"),!m&&b),"".concat(E.prefixCls,"-checkbox-disabled"),j||t.disableCheckbox)),onClick:_,role:"checkbox","aria-checked":b?"mixed":m,"aria-disabled":j||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},be)},[B,m,b,j,t.disableCheckbox,t.title]),ve=ae.useMemo(function(){return te?null:h?Bd:zd},[te,h]),ue=ae.useMemo(function(){return ae.createElement("span",{className:An("".concat(E.prefixCls,"-iconEle"),"".concat(E.prefixCls,"-icon__").concat(ve||"docu"),Ue({},"".concat(E.prefixCls,"-icon_loading"),x))})},[E.prefixCls,ve,x]),we=ae.useMemo(function(){var be=!!E.draggable,ie=!t.disabled&&be&&E.dragOverNodeKey===a;return ie?E.dropIndicatorRender({dropPosition:E.dropPosition,dropLevelOffset:E.dropLevelOffset,indent:E.indent,prefixCls:E.prefixCls,direction:E.direction}):null},[E.dropPosition,E.dropLevelOffset,E.indent,E.prefixCls,E.direction,E.draggable,E.dragOverNodeKey,E.dropIndicatorRender]),le=ae.useMemo(function(){var be=t.title,ie=be===void 0?wy:be,ye="".concat(E.prefixCls,"-node-content-wrapper"),xe;if(E.showIcon){var Ce=t.icon||E.icon;xe=Ce?ae.createElement("span",{className:An("".concat(E.prefixCls,"-iconEle"),"".concat(E.prefixCls,"-icon__customize"))},typeof Ce=="function"?Ce(t):Ce):ue}else E.loadData&&x&&(xe=ue);var De;return typeof ie=="function"?De=ie(C):E.titleRender?De=E.titleRender(C):De=ie,ae.createElement("span",{ref:M,title:typeof ie=="string"?ie:"",className:An(ye,"".concat(ye,"-").concat(ve||"normal"),Ue({},"".concat(E.prefixCls,"-node-selected"),!j&&(g||P))),onMouseEnter:A,onMouseLeave:F,onContextMenu:H,onClick:W,onDoubleClick:R},xe,ae.createElement("span",{className:"".concat(E.prefixCls,"-title")},De),we)},[E.prefixCls,E.showIcon,t,E.icon,ue,E.titleRender,C,ve,A,F,H,W,R]),pe=eg(k,{aria:!0,data:!0}),Ne=Tn(E.keyEntities,a)||{},re=Ne.level,ke=v[v.length-1],Se=!j&&z,Me=E.draggingNodeKey===a,Pe=$!==void 0?{"aria-selected":!!$}:void 0;return ae.createElement("div",Fn({ref:y,role:"treeitem","aria-expanded":f?void 0:h,className:An(i,"".concat(E.prefixCls,"-treenode"),(o={},Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(Ue(o,"".concat(E.prefixCls,"-treenode-disabled"),j),"".concat(E.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!f),"".concat(E.prefixCls,"-treenode-checkbox-checked"),m),"".concat(E.prefixCls,"-treenode-checkbox-indeterminate"),b),"".concat(E.prefixCls,"-treenode-selected"),g),"".concat(E.prefixCls,"-treenode-loading"),x),"".concat(E.prefixCls,"-treenode-active"),w),"".concat(E.prefixCls,"-treenode-leaf-last"),ke),"".concat(E.prefixCls,"-treenode-draggable"),z),"dragging",Me),Ue(Ue(Ue(Ue(Ue(Ue(Ue(o,"drop-target",E.dropTargetKey===a),"drop-container",E.dropContainerKey===a),"drag-over",!j&&s),"drag-over-gap-top",!j&&c),"drag-over-gap-bottom",!j&&d),"filter-node",(r=E.filterTreeNode)===null||r===void 0?void 0:r.call(E,ln(t))),"".concat(E.prefixCls,"-treenode-leaf"),te))),style:l,draggable:Se,onDragStart:Se?V:void 0,onDragEnter:z?K:void 0,onDragOver:z?J:void 0,onDragLeave:z?Y:void 0,onDrop:z?G:void 0,onDragEnd:z?Z:void 0,onMouseMove:S},Pe,pe),ae.createElement(xy,{prefixCls:E.prefixCls,level:re,isStart:p,isEnd:v}),ee,de(),ge,le)};Ia.isTreeNode=1;function Sr(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Pr(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function gu(e){return e.split("-")}function Ey(e,t){var n=[],r=Tn(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var l=i.key,s=i.children;n.push(l),o(s)})}return o(r.children),n}function Sy(e){if(e.parent){var t=gu(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function $y(e){var t=gu(e.pos);return Number(t[t.length-1])===0}function _d(e,t,n,r,o,a,i,l,s,c){var d,f=e.clientX,p=e.clientY,v=e.target.getBoundingClientRect(),h=v.top,g=v.height,m=(c==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),b=(m-12)/r,x=s.filter(function(j){var B;return(B=l[j])===null||B===void 0||(B=B.children)===null||B===void 0?void 0:B.length}),y=Tn(l,n.eventKey);if(p<h+g/2){var w=i.findIndex(function(j){return j.key===y.key}),C=w<=0?0:w-1,S=i[C].key;y=Tn(l,S)}var $=y.key,k=y,E=y.key,O=0,M=0;if(!x.includes($))for(var N=0;N<b&&Sy(y);N+=1)y=y.parent,M+=1;var T=t.data,P=y.node,D=!0;return $y(y)&&y.level===0&&p<h+g/2&&a({dragNode:T,dropNode:P,dropPosition:-1})&&y.key===n.eventKey?O=-1:(k.children||[]).length&&x.includes(E)?a({dragNode:T,dropNode:P,dropPosition:0})?O=0:D=!1:M===0?b>-1.5?a({dragNode:T,dropNode:P,dropPosition:1})?O=1:D=!1:a({dragNode:T,dropNode:P,dropPosition:0})?O=0:a({dragNode:T,dropNode:P,dropPosition:1})?O=1:D=!1:a({dragNode:T,dropNode:P,dropPosition:1})?O=1:D=!1,{dropPosition:O,dropLevelOffset:M,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:E,dropContainerKey:O===0?null:((d=y.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:D}}function Ld(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Ul(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(pu(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return zr(!1,"`checkedKeys` is not an array or an object"),null;return t}function Ls(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=Tn(t,o);if(a){n.add(o);var i=a.parent,l=a.node;l.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),yr(n)}var ky=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*o;break;case 1:a.bottom=0,a.left=-r*o;break;case 0:a.bottom=0,a.left=o;break}return ae.createElement("div",{style:a})};function lg(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Oy(e,t){var n=u.useState(!1),r=Hr(n,2),o=r[0],a=r[1];Hi(function(){if(o)return e(),function(){t()}},[o]),Hi(function(){return a(!0),function(){a(!1)}},[])}var Ny=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],My=u.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,a=e.motionNodes,i=e.motionType,l=e.onMotionStart,s=e.onMotionEnd,c=e.active,d=e.treeNodeRequiredProps,f=al(e,Ny),p=u.useState(!0),v=Hr(p,2),h=v[0],g=v[1],m=u.useContext(mu),b=m.prefixCls,x=a&&i!=="hide";Hi(function(){a&&x!==h&&g(x)},[a]);var y=function(){a&&l()},w=u.useRef(!1),C=function(){a&&!w.current&&(w.current=!0,s())};Oy(y,C);var S=function(k){x===k&&C()};return a?u.createElement(Lb,Fn({ref:t,visible:h},o,{motionAppear:i==="show",onVisibleChanged:S}),function($,k){var E=$.className,O=$.style;return u.createElement("div",{ref:k,className:An("".concat(b,"-treenode-motion"),E),style:O},a.map(function(M){var N=Object.assign({},(lg(M.data),M.data)),T=M.title,P=M.key,D=M.isStart,j=M.isEnd;delete N.children;var B=Ea(P,d);return u.createElement(Ia,Fn({},N,B,{title:T,active:c,data:M.data,key:P,isStart:D,isEnd:j}))}))}):u.createElement(Ia,Fn({domRef:t,className:n,style:r},f,{active:c}))});function Iy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var l=new Map;a.forEach(function(c){l.set(c,!0)});var s=i.filter(function(c){return!l.has(c)});return s.length===1?s[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function Wd(e,t,n){var r=e.findIndex(function(l){return l.key===n}),o=e[r+1],a=t.findIndex(function(l){return l.key===n});if(o){var i=t.findIndex(function(l){return l.key===o.key});return t.slice(a+1,i)}return t.slice(a+1)}var jy=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Vd={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Py=function(){},po="RC_TREE_MOTION_".concat(Math.random()),Ws={key:po},sg={key:po,level:0,index:0,pos:"0",node:Ws,nodes:[Ws]},Kd={parent:null,children:[],pos:sg.pos,data:Ws,title:null,key:po,isStart:[],isEnd:[]};function qd(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Yd(e){var t=e.key,n=e.pos;return qa(t,n)}function Ry(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var Dy=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,s=e.loadingKeys,c=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,v=e.dragOverNodeKey,h=e.dropPosition,g=e.motion,m=e.height,b=e.itemHeight,x=e.virtual,y=e.scrollWidth,w=e.focusable,C=e.activeItem,S=e.focused,$=e.tabIndex,k=e.onKeyDown,E=e.onFocus,O=e.onBlur,M=e.onActiveChange,N=e.onListChangeStart,T=e.onListChangeEnd,P=al(e,jy),D=u.useRef(null),j=u.useRef(null);u.useImperativeHandle(t,function(){return{scrollTo:function(we){D.current.scrollTo(we)},getIndentWidth:function(){return j.current.offsetWidth}}});var B=u.useState(o),I=Hr(B,2),_=I[0],L=I[1],W=u.useState(r),R=Hr(W,2),A=R[0],F=R[1],H=u.useState(r),z=Hr(H,2),V=z[0],K=z[1],J=u.useState([]),Y=Hr(J,2),Z=Y[0],G=Y[1],X=u.useState(null),ne=Hr(X,2),te=ne[0],ee=ne[1],se=u.useRef(r);se.current=r;function de(){var ue=se.current;F(ue),K(ue),G([]),ee(null),T()}Hi(function(){L(o);var ue=Iy(_,o);if(ue.key!==null)if(ue.add){var we=A.findIndex(function(Se){var Me=Se.key;return Me===ue.key}),le=qd(Wd(A,r,ue.key),x,m,b),pe=A.slice();pe.splice(we+1,0,Kd),K(pe),G(le),ee("show")}else{var Ne=r.findIndex(function(Se){var Me=Se.key;return Me===ue.key}),re=qd(Wd(r,A,ue.key),x,m,b),ke=r.slice();ke.splice(Ne+1,0,Kd),K(ke),G(re),ee("hide")}else A!==r&&(F(r),K(r))},[o,r]),u.useEffect(function(){p||de()},[p]);var ge=g?V:r,ve={expandedKeys:o,selectedKeys:a,loadedKeys:l,loadingKeys:s,checkedKeys:i,halfCheckedKeys:c,dragOverNodeKey:v,dropPosition:h,keyEntities:d};return u.createElement(u.Fragment,null,S&&C&&u.createElement("span",{style:Vd,"aria-live":"assertive"},Ry(C)),u.createElement("div",null,u.createElement("input",{style:Vd,disabled:w===!1||f,tabIndex:w!==!1?$:null,onKeyDown:k,onFocus:E,onBlur:O,value:"",onChange:Py,"aria-label":"for screen reader"})),u.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},u.createElement("div",{className:"".concat(n,"-indent")},u.createElement("div",{ref:j,className:"".concat(n,"-indent-unit")}))),u.createElement(Wb,Fn({},P,{data:ge,itemKey:Yd,height:m,fullHeight:!1,virtual:x,itemHeight:b,scrollWidth:y,prefixCls:"".concat(n,"-list"),ref:D,role:"tree",onVisibleChange:function(we){we.every(function(le){return Yd(le)!==po})&&de()}}),function(ue){var we=ue.pos,le=Object.assign({},(lg(ue.data),ue.data)),pe=ue.title,Ne=ue.key,re=ue.isStart,ke=ue.isEnd,Se=qa(Ne,we);delete le.key,delete le.children;var Me=Ea(Se,ve);return u.createElement(My,Fn({},le,Me,{title:pe,active:!!C&&Ne===C.key,pos:we,data:ue.data,isStart:re,isEnd:ke,motion:g,motionNodes:Ne===po?Z:null,motionType:te,onMotionStart:N,onMotionEnd:de,treeNodeRequiredProps:ve,onMouseMove:function(){M(null)}}))}))}),Ay=10,hu=(function(e){Vb(n,e);var t=Kb(n);function n(){var r;qb(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ue(wt(r),"destroyed",!1),Ue(wt(r),"delayedDragEnterLogic",void 0),Ue(wt(r),"loadingRetryTimes",{}),Ue(wt(r),"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:qo()}),Ue(wt(r),"dragStartMousePosition",null),Ue(wt(r),"dragNodeProps",null),Ue(wt(r),"currentMouseOverDroppableNodeKey",null),Ue(wt(r),"listRef",u.createRef()),Ue(wt(r),"onNodeDragStart",function(l,s){var c=r.state,d=c.expandedKeys,f=c.keyEntities,p=r.props.onDragStart,v=s.eventKey;r.dragNodeProps=s,r.dragStartMousePosition={x:l.clientX,y:l.clientY};var h=Sr(d,v);r.setState({draggingNodeKey:v,dragChildrenKeys:Ey(v,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(h),window.addEventListener("dragend",r.onWindowDragEnd),p==null||p({event:l,node:ln(s)})}),Ue(wt(r),"onNodeDragEnter",function(l,s){var c=r.state,d=c.expandedKeys,f=c.keyEntities,p=c.dragChildrenKeys,v=c.flattenNodes,h=c.indent,g=r.props,m=g.onDragEnter,b=g.onExpand,x=g.allowDrop,y=g.direction,w=s.pos,C=s.eventKey;if(r.currentMouseOverDroppableNodeKey!==C&&(r.currentMouseOverDroppableNodeKey=C),!r.dragNodeProps){r.resetDragState();return}var S=_d(l,r.dragNodeProps,s,h,r.dragStartMousePosition,x,v,f,d,y),$=S.dropPosition,k=S.dropLevelOffset,E=S.dropTargetKey,O=S.dropContainerKey,M=S.dropTargetPos,N=S.dropAllowed,T=S.dragOverNodeKey;if(p.includes(E)||!N){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(P){clearTimeout(r.delayedDragEnterLogic[P])}),r.dragNodeProps.eventKey!==s.eventKey&&(l.persist(),r.delayedDragEnterLogic[w]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var P=yr(d),D=Tn(f,s.eventKey);D&&(D.children||[]).length&&(P=Pr(d,s.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(P),b==null||b(P,{node:ln(s),expanded:!0,nativeEvent:l.nativeEvent})}},800)),r.dragNodeProps.eventKey===E&&k===0){r.resetDragState();return}r.setState({dragOverNodeKey:T,dropPosition:$,dropLevelOffset:k,dropTargetKey:E,dropContainerKey:O,dropTargetPos:M,dropAllowed:N}),m==null||m({event:l,node:ln(s),expandedKeys:d})}),Ue(wt(r),"onNodeDragOver",function(l,s){var c=r.state,d=c.dragChildrenKeys,f=c.flattenNodes,p=c.keyEntities,v=c.expandedKeys,h=c.indent,g=r.props,m=g.onDragOver,b=g.allowDrop,x=g.direction;if(r.dragNodeProps){var y=_d(l,r.dragNodeProps,s,h,r.dragStartMousePosition,b,f,p,v,x),w=y.dropPosition,C=y.dropLevelOffset,S=y.dropTargetKey,$=y.dropContainerKey,k=y.dropTargetPos,E=y.dropAllowed,O=y.dragOverNodeKey;d.includes(S)||!E||(r.dragNodeProps.eventKey===S&&C===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():w===r.state.dropPosition&&C===r.state.dropLevelOffset&&S===r.state.dropTargetKey&&$===r.state.dropContainerKey&&k===r.state.dropTargetPos&&E===r.state.dropAllowed&&O===r.state.dragOverNodeKey||r.setState({dropPosition:w,dropLevelOffset:C,dropTargetKey:S,dropContainerKey:$,dropTargetPos:k,dropAllowed:E,dragOverNodeKey:O}),m==null||m({event:l,node:ln(s)}))}}),Ue(wt(r),"onNodeDragLeave",function(l,s){r.currentMouseOverDroppableNodeKey===s.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var c=r.props.onDragLeave;c==null||c({event:l,node:ln(s)})}),Ue(wt(r),"onWindowDragEnd",function(l){r.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),Ue(wt(r),"onNodeDragEnd",function(l,s){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c==null||c({event:l,node:ln(s)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),Ue(wt(r),"onNodeDrop",function(l,s){var c,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,v=f.dropPosition,h=f.dropTargetKey,g=f.dropTargetPos,m=f.dropAllowed;if(m){var b=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var x=In(In({},Ea(h,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===h,data:Tn(r.state.keyEntities,h).node}),y=p.includes(h);zr(!y,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=gu(g),C={event:l,node:ln(x),dragNode:r.dragNodeProps?ln(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(p),dropToGap:v!==0,dropPosition:v+Number(w[w.length-1])};d||b==null||b(C),r.dragNodeProps=null}}}),Ue(wt(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),Ue(wt(r),"triggerExpandActionExpand",function(l,s){var c=r.state,d=c.expandedKeys,f=c.flattenNodes,p=s.expanded,v=s.key,h=s.isLeaf;if(!(h||l.shiftKey||l.metaKey||l.ctrlKey)){var g=f.filter(function(b){return b.key===v})[0],m=ln(In(In({},Ea(v,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(p?Sr(d,v):Pr(d,v)),r.onNodeExpand(l,m)}}),Ue(wt(r),"onNodeClick",function(l,s){var c=r.props,d=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(l,s),d==null||d(l,s)}),Ue(wt(r),"onNodeDoubleClick",function(l,s){var c=r.props,d=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,s),d==null||d(l,s)}),Ue(wt(r),"onNodeSelect",function(l,s){var c=r.state.selectedKeys,d=r.state,f=d.keyEntities,p=d.fieldNames,v=r.props,h=v.onSelect,g=v.multiple,m=s.selected,b=s[p.key],x=!m;x?g?c=Pr(c,b):c=[b]:c=Sr(c,b);var y=c.map(function(w){var C=Tn(f,w);return C?C.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),h==null||h(c,{event:"select",selected:x,node:s,selectedNodes:y,nativeEvent:l.nativeEvent})}),Ue(wt(r),"onNodeCheck",function(l,s,c){var d=r.state,f=d.keyEntities,p=d.checkedKeys,v=d.halfCheckedKeys,h=r.props,g=h.checkStrictly,m=h.onCheck,b=s.key,x,y={event:"check",node:s,checked:c,nativeEvent:l.nativeEvent};if(g){var w=c?Pr(p,b):Sr(p,b),C=Sr(v,b);x={checked:w,halfChecked:C},y.checkedNodes=w.map(function(M){return Tn(f,M)}).filter(Boolean).map(function(M){return M.node}),r.setUncontrolledState({checkedKeys:w})}else{var S=Xl([].concat(yr(p),[b]),!0,f),$=S.checkedKeys,k=S.halfCheckedKeys;if(!c){var E=new Set($);E.delete(b);var O=Xl(Array.from(E),{halfCheckedKeys:k},f);$=O.checkedKeys,k=O.halfCheckedKeys}x=$,y.checkedNodes=[],y.checkedNodesPositions=[],y.halfCheckedKeys=k,$.forEach(function(M){var N=Tn(f,M);if(N){var T=N.node,P=N.pos;y.checkedNodes.push(T),y.checkedNodesPositions.push({node:T,pos:P})}}),r.setUncontrolledState({checkedKeys:$},!1,{halfCheckedKeys:k})}m==null||m(x,y)}),Ue(wt(r),"onNodeLoad",function(l){var s,c=l.key,d=r.state.keyEntities,f=Tn(d,c);if(!(f!=null&&(s=f.children)!==null&&s!==void 0&&s.length)){var p=new Promise(function(v,h){r.setState(function(g){var m=g.loadedKeys,b=m===void 0?[]:m,x=g.loadingKeys,y=x===void 0?[]:x,w=r.props,C=w.loadData,S=w.onLoad;if(!C||b.includes(c)||y.includes(c))return null;var $=C(l);return $.then(function(){var k=r.state.loadedKeys,E=Pr(k,c);S==null||S(E,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:E}),r.setState(function(O){return{loadingKeys:Sr(O.loadingKeys,c)}}),v()}).catch(function(k){if(r.setState(function(O){return{loadingKeys:Sr(O.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=Ay){var E=r.state.loadedKeys;zr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Pr(E,c)}),v()}h(k)}),{loadingKeys:Pr(y,c)}})});return p.catch(function(){}),p}}),Ue(wt(r),"onNodeMouseEnter",function(l,s){var c=r.props.onMouseEnter;c==null||c({event:l,node:s})}),Ue(wt(r),"onNodeMouseLeave",function(l,s){var c=r.props.onMouseLeave;c==null||c({event:l,node:s})}),Ue(wt(r),"onNodeContextMenu",function(l,s){var c=r.props.onRightClick;c&&(l.preventDefault(),c({event:l,node:s}))}),Ue(wt(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];l==null||l.apply(void 0,c)}),Ue(wt(r),"onBlur",function(){var l=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];l==null||l.apply(void 0,c)}),Ue(wt(r),"getTreeNodeRequiredProps",function(){var l=r.state,s=l.expandedKeys,c=l.selectedKeys,d=l.loadedKeys,f=l.loadingKeys,p=l.checkedKeys,v=l.halfCheckedKeys,h=l.dragOverNodeKey,g=l.dropPosition,m=l.keyEntities;return{expandedKeys:s||[],selectedKeys:c||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:p||[],halfCheckedKeys:v||[],dragOverNodeKey:h,dropPosition:g,keyEntities:m}}),Ue(wt(r),"setExpandedKeys",function(l){var s=r.state,c=s.treeData,d=s.fieldNames,f=Yl(c,l,d);r.setUncontrolledState({expandedKeys:l,flattenNodes:f},!0)}),Ue(wt(r),"onNodeExpand",function(l,s){var c=r.state.expandedKeys,d=r.state,f=d.listChanging,p=d.fieldNames,v=r.props,h=v.onExpand,g=v.loadData,m=s.expanded,b=s[p.key];if(!f){var x=c.includes(b),y=!m;if(zr(m&&x||!m&&!x,"Expand state not sync with index check"),c=y?Pr(c,b):Sr(c,b),r.setExpandedKeys(c),h==null||h(c,{node:s,expanded:y,nativeEvent:l.nativeEvent}),y&&g){var w=r.onNodeLoad(s);w&&w.then(function(){var C=Yl(r.state.treeData,c,p);r.setUncontrolledState({flattenNodes:C})}).catch(function(){var C=r.state.expandedKeys,S=Sr(C,b);r.setExpandedKeys(S)})}}}),Ue(wt(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),Ue(wt(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),Ue(wt(r),"onActiveChange",function(l){var s=r.state.activeKey,c=r.props,d=c.onActiveChange,f=c.itemScrollOffset,p=f===void 0?0:f;s!==l&&(r.setState({activeKey:l}),l!==null&&r.scrollTo({key:l,offset:p}),d==null||d(l))}),Ue(wt(r),"getActiveItem",function(){var l=r.state,s=l.activeKey,c=l.flattenNodes;return s===null?null:c.find(function(d){var f=d.key;return f===s})||null}),Ue(wt(r),"offsetActiveKey",function(l){var s=r.state,c=s.flattenNodes,d=s.activeKey,f=c.findIndex(function(h){var g=h.key;return g===d});f===-1&&l<0&&(f=c.length),f=(f+l+c.length)%c.length;var p=c[f];if(p){var v=p.key;r.onActiveChange(v)}else r.onActiveChange(null)}),Ue(wt(r),"onKeyDown",function(l){var s=r.state,c=s.activeKey,d=s.expandedKeys,f=s.checkedKeys,p=s.fieldNames,v=r.props,h=v.onKeyDown,g=v.checkable,m=v.selectable;switch(l.which){case Mo.UP:{r.offsetActiveKey(-1),l.preventDefault();break}case Mo.DOWN:{r.offsetActiveKey(1),l.preventDefault();break}}var b=r.getActiveItem();if(b&&b.data){var x=r.getTreeNodeRequiredProps(),y=b.data.isLeaf===!1||!!(b.data[p.children]||[]).length,w=ln(In(In({},Ea(c,x)),{},{data:b.data,active:!0}));switch(l.which){case Mo.LEFT:{y&&d.includes(c)?r.onNodeExpand({},w):b.parent&&r.onActiveChange(b.parent.key),l.preventDefault();break}case Mo.RIGHT:{y&&!d.includes(c)?r.onNodeExpand({},w):b.children&&b.children.length&&r.onActiveChange(b.children[0].key),l.preventDefault();break}case Mo.ENTER:case Mo.SPACE:{g&&!w.disabled&&w.checkable!==!1&&!w.disableCheckbox?r.onNodeCheck({},w,!f.includes(c)):!g&&m&&!w.disabled&&w.selectable!==!1&&r.onNodeSelect({},w);break}}}h==null||h(l)}),Ue(wt(r),"setUncontrolledState",function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,p={};Object.keys(l).forEach(function(v){if(r.props.hasOwnProperty(v)){f=!1;return}d=!0,p[v]=l[v]}),d&&(!s||f)&&r.setState(In(In({},p),c))}}),Ue(wt(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Yb(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,i=o.itemScrollOffset,l=i===void 0?0:i;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:l}))}},{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 o=this.state,a=o.focused,i=o.flattenNodes,l=o.keyEntities,s=o.draggingNodeKey,c=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,p=o.dropTargetKey,v=o.dropPosition,h=o.dragOverNodeKey,g=o.indent,m=this.props,b=m.prefixCls,x=m.className,y=m.style,w=m.showLine,C=m.focusable,S=m.tabIndex,$=S===void 0?0:S,k=m.selectable,E=m.showIcon,O=m.icon,M=m.switcherIcon,N=m.draggable,T=m.checkable,P=m.checkStrictly,D=m.disabled,j=m.motion,B=m.loadData,I=m.filterTreeNode,_=m.height,L=m.itemHeight,W=m.scrollWidth,R=m.virtual,A=m.titleRender,F=m.dropIndicatorRender,H=m.onContextMenu,z=m.onScroll,V=m.direction,K=m.rootClassName,J=m.rootStyle,Y=eg(this.props,{aria:!0,data:!0}),Z;N&&(pu(N)==="object"?Z=N:typeof N=="function"?Z={nodeDraggable:N}:Z={});var G={prefixCls:b,selectable:k,showIcon:E,icon:O,switcherIcon:M,draggable:Z,draggingNodeKey:s,checkable:T,checkStrictly:P,disabled:D,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:p,dropPosition:v,dragOverNodeKey:h,indent:g,direction:V,dropIndicatorRender:F,loadData:B,filterTreeNode:I,titleRender:A,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};return u.createElement(mu.Provider,{value:G},u.createElement("div",{className:An(b,x,K,Ue(Ue(Ue({},"".concat(b,"-show-line"),w),"".concat(b,"-focused"),a),"".concat(b,"-active-focused"),c!==null)),style:J},u.createElement(Dy,Fn({ref:this.listRef,prefixCls:b,style:y,data:i,disabled:D,selectable:k,checkable:!!T,motion:j,dragging:s!==null,height:_,itemHeight:L,virtual:R,focusable:C,focused:a,tabIndex:$,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:z,scrollWidth:W},this.getTreeNodeRequiredProps(),Y))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,l={prevProps:o};function s($){return!i&&o.hasOwnProperty($)||i&&i[$]!==o[$]}var c,d=a.fieldNames;if(s("fieldNames")&&(d=qo(o.fieldNames),l.fieldNames=d),s("treeData")?c=o.treeData:s("children")&&(zr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=og(o.children)),c){l.treeData=c;var f=ag(c,{fieldNames:d});l.keyEntities=In(Ue({},po,sg),f.keyEntities)}var p=l.keyEntities||a.keyEntities;if(s("expandedKeys")||i&&s("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?Ls(o.expandedKeys,p):o.expandedKeys;else if(!i&&o.defaultExpandAll){var v=In({},p);delete v[po];var h=[];Object.keys(v).forEach(function($){var k=v[$];k.children&&k.children.length&&h.push(k.key)}),l.expandedKeys=h}else!i&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Ls(o.defaultExpandedKeys,p):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,c||l.expandedKeys){var g=Yl(c||a.treeData,l.expandedKeys||a.expandedKeys,d);l.flattenNodes=g}if(o.selectable&&(s("selectedKeys")?l.selectedKeys=Ld(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(l.selectedKeys=Ld(o.defaultSelectedKeys,o))),o.checkable){var m;if(s("checkedKeys")?m=Ul(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?m=Ul(o.defaultCheckedKeys)||{}:c&&(m=Ul(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),m){var b=m,x=b.checkedKeys,y=x===void 0?[]:x,w=b.halfCheckedKeys,C=w===void 0?[]:w;if(!o.checkStrictly){var S=Xl(y,!0,p);y=S.checkedKeys,C=S.halfCheckedKeys}l.checkedKeys=y,l.halfCheckedKeys=C}}return s("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n})(u.Component);Ue(hu,"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:ky,allowDrop:function(){return!0},expandAction:!1});Ue(hu,"TreeNode",Ia);var Ty={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Fy=function(t,n){return u.createElement(yo,Fn({},t,{ref:n,icon:Ty}))},cg=u.forwardRef(Fy),Hy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},By=function(t,n){return u.createElement(yo,Fn({},t,{ref:n,icon:Hy}))},zy=u.forwardRef(By),_y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Ly=function(t,n){return u.createElement(yo,Fn({},t,{ref:n,icon:_y}))},Wy=u.forwardRef(Ly),Vy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ky=function(t,n){return u.createElement(yo,Fn({},t,{ref:n,icon:Vy}))},qy=u.forwardRef(Ky);const Yy=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:a,controlItemBgHover:i})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),Xy=new Jb("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Uy=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Gy=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Bs(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Qy=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,indentSize:i,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},Zb(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:ey(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Xy,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:Bs(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Uy(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Gy(e,t)),{"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Bs(t.calc(a).div(2).equal())} !important`}})}},Zy=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),i=Qb(t,{treeCls:r,treeNodeCls:o,treeNodePadding:a});return[Qy(e,i),n&&Yy(i)].filter(Boolean)},Jy=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},e1=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Jy(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},t1=Xb("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Ub(`${t}-checkbox`,e)},Zy(t,e),Gb(e)],e1),Xd=4;function n1(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",l=a==="ltr"?"right":"left",s={[i]:-n*o+Xd,[l]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[i]=o+Xd;break}return ae.createElement("div",{style:s,className:`${r}-drop-indicator`})}var r1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},o1=function(t,n){return u.createElement(yo,Fn({},t,{ref:n,icon:r1}))},a1=u.forwardRef(o1),i1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},l1=function(t,n){return u.createElement(yo,Fn({},t,{ref:n,icon:i1}))},s1=u.forwardRef(l1),c1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},u1=function(t,n){return u.createElement(yo,Fn({},t,{ref:n,icon:c1}))},d1=u.forwardRef(u1);const f1=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:a,showLine:i,switcherLoadingIcon:l}=e,{isLeaf:s,expanded:c,loading:d}=a;if(d)return u.isValidElement(l)?l:u.createElement(ty,{className:`${r}-switcher-loading-icon`});let f;if(i&&typeof i=="object"&&(f=i.showLeafIcon),s){if(!i)return null;if(typeof f!="boolean"&&f){const h=typeof f=="function"?f(a):f,g=`${r}-switcher-line-custom-icon`;return u.isValidElement(h)?Fd(h,{className:An((t=h.props)===null||t===void 0?void 0:t.className,g)}):h}return f?u.createElement(cg,{className:`${r}-switcher-line-icon`}):u.createElement("span",{className:`${r}-switcher-leaf-line`})}const p=`${r}-switcher-icon`,v=typeof o=="function"?o(a):o;return u.isValidElement(v)?Fd(v,{className:An((n=v.props)===null||n===void 0?void 0:n.className,p)}):v!==void 0?v:i?c?u.createElement(s1,{className:`${r}-switcher-line-icon`}):u.createElement(d1,{className:`${r}-switcher-line-icon`}):u.createElement(a1,{className:p})},ug=ae.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:i}=ae.useContext(tg),{prefixCls:l,className:s,showIcon:c=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:p,blockNode:v=!1,children:h,checkable:g=!1,selectable:m=!0,draggable:b,disabled:x,motion:y,style:w}=e,C=r("tree",l),S=r(),$=ae.useContext(ny),k=x??$,E=y??Object.assign(Object.assign({},ry(S)),{motionAppear:!1}),O=Object.assign(Object.assign({},e),{checkable:g,selectable:m,showIcon:c,motion:E,blockNode:v,disabled:k,showLine:!!d,dropIndicatorRender:n1}),[M,N,T]=t1(C),[,P]=oy(),D=P.paddingXS/2+(((n=P.Tree)===null||n===void 0?void 0:n.titleHeight)||P.controlHeightSM),j=ae.useMemo(()=>{if(!b)return!1;let I={};switch(typeof b){case"function":I.nodeDraggable=b;break;case"object":I=Object.assign({},b);break}return I.icon!==!1&&(I.icon=I.icon||ae.createElement(qy,null)),I},[b]),B=I=>ae.createElement(f1,{prefixCls:C,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:I,showLine:d});return M(ae.createElement(hu,Object.assign({itemHeight:D,ref:t,virtual:a},O,{style:Object.assign(Object.assign({},i==null?void 0:i.style),w),prefixCls:C,className:An({[`${C}-icon-hide`]:!c,[`${C}-block-node`]:v,[`${C}-unselectable`]:!m,[`${C}-rtl`]:o==="rtl",[`${C}-disabled`]:k},i==null?void 0:i.className,s,N,T),direction:o,checkable:g&&ae.createElement("span",{className:`${C}-checkbox-inner`}),selectable:m,switcherIcon:B,draggable:j}),h))}),Ud=0,Gl=1,Gd=2;function vu(e,t,n){const{key:r,children:o}=n;function a(i){const l=i[r],s=i[o];t(l,i)!==!1&&vu(s||[],t,n)}e.forEach(a)}function p1({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const a=[];let i=Ud;if(n&&n===r)return[n];if(!n||!r)return[];function l(s){return s===n||s===r}return vu(e,s=>{if(i===Gd)return!1;if(l(s)){if(a.push(s),i===Ud)i=Gl;else if(i===Gl)return i=Gd,!1}else i===Gl&&a.push(s);return t.includes(s)},qo(o)),a}function Ql(e,t,n){const r=yr(t),o=[];return vu(e,(a,i)=>{const l=r.indexOf(a);return l!==-1&&(o.push(i),r.splice(l,1)),!!r.length},qo(n)),o}var Qd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function m1(e){const{isLeaf:t,expanded:n}=e;return t?u.createElement(cg,null):n?u.createElement(zy,null):u.createElement(Wy,null)}function Zd({treeData:e,children:t}){return e||og(t)}const g1=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=Qd(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=u.useRef(null),l=u.useRef(null),s=()=>{const{keyEntities:k}=ag(Zd(a),{fieldNames:a.fieldNames});let E;return n?E=Object.keys(k):r?E=Ls(a.expandedKeys||o||[],k):E=a.expandedKeys||o||[],E},[c,d]=u.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,p]=u.useState(()=>s());u.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),u.useEffect(()=>{"expandedKeys"in a&&p(a.expandedKeys)},[a.expandedKeys]);const v=(k,E)=>{var O;return"expandedKeys"in a||p(k),(O=a.onExpand)===null||O===void 0?void 0:O.call(a,k,E)},h=(k,E)=>{var O;const{multiple:M,fieldNames:N}=a,{node:T,nativeEvent:P}=E,{key:D=""}=T,j=Zd(a),B=Object.assign(Object.assign({},E),{selected:!0}),I=(P==null?void 0:P.ctrlKey)||(P==null?void 0:P.metaKey),_=P==null?void 0:P.shiftKey;let L;M&&I?(L=k,i.current=D,l.current=L,B.selectedNodes=Ql(j,L,N)):M&&_?(L=Array.from(new Set([].concat(yr(l.current||[]),yr(p1({treeData:j,expandedKeys:f,startKey:D,endKey:i.current,fieldNames:N}))))),B.selectedNodes=Ql(j,L,N)):(L=[D],i.current=D,l.current=L,B.selectedNodes=Ql(j,L,N)),(O=a.onSelect)===null||O===void 0||O.call(a,L,B),"selectedKeys"in a||d(L)},{getPrefixCls:g,direction:m}=u.useContext(tg),{prefixCls:b,className:x,showIcon:y=!0,expandAction:w="click"}=a,C=Qd(a,["prefixCls","className","showIcon","expandAction"]),S=g("tree",b),$=An(`${S}-directory`,{[`${S}-directory-rtl`]:m==="rtl"},x);return u.createElement(ug,Object.assign({icon:m1,ref:t,blockNode:!0},C,{showIcon:y,expandAction:w,prefixCls:S,className:$,expandedKeys:f,selectedKeys:c,onSelect:h,onExpand:v}))},h1=u.forwardRef(g1),bu=ug;bu.DirectoryTree=h1;bu.TreeNode=Ia;function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jd={exports:{}},pa={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ef;function v1(){if(ef)return pa;ef=1;var e=ae,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,s,c){var d,f={},p=null,v=null;c!==void 0&&(p=""+c),s.key!==void 0&&(p=""+s.key),s.ref!==void 0&&(v=s.ref);for(d in s)r.call(s,d)&&!a.hasOwnProperty(d)&&(f[d]=s[d]);if(l&&l.defaultProps)for(d in s=l.defaultProps,s)f[d]===void 0&&(f[d]=s[d]);return{$$typeof:t,type:l,key:p,ref:v,props:f,_owner:o.current}}return pa.Fragment=n,pa.jsx=i,pa.jsxs=i,pa}var tf;function b1(){return tf||(tf=1,Jd.exports=v1()),Jd.exports}var oe=b1();const y1={colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080",shadow:"#000000",appBackground:"#fff"},space:{sidebar:"md",size:"md",radius:"md",padding:"md",margin:"md",shadow:"md",lineHeight:"md"},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.c zap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}},x1={sm:"240px",md:"260px",lg:"280px"},Vs={sm:"12px",md:"16px",lg:"20px"},dg={sm:"2px",md:"4px",lg:"8px"},C1={sm:"4px",md:"8px",lg:"16px"},w1={sm:"4px",md:"8px",lg:"16px"},E1={sm:"0 1px 2px #eee",md:"0 2px 8px #ddd",lg:"0 4px 16px #ccc"},S1={sm:"1.2",md:"1.5",lg:"2"};/**
|
|
10
|
+
* @license lucide-react v0.456.0 - ISC
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the ISC license.
|
|
13
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/const $1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
15
|
+
* @license lucide-react v0.456.0 - ISC
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the ISC license.
|
|
18
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/var k1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
20
|
+
* @license lucide-react v0.456.0 - ISC
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the ISC license.
|
|
23
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/const O1=dr(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...l},s)=>Hs("svg",{ref:s,...k1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fg("lucide",o),...l},[...i.map(([c,d])=>Hs(c,d)),...Array.isArray(a)?a:[a]]));/**
|
|
25
|
+
* @license lucide-react v0.456.0 - ISC
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the ISC license.
|
|
28
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/const fr=(e,t)=>{const n=dr(({className:r,...o},a)=>Hs(O1,{ref:a,iconNode:t,className:fg(`lucide-${$1(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
30
|
+
* @license lucide-react v0.456.0 - ISC
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the ISC license.
|
|
33
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/const N1=fr("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
35
|
+
* @license lucide-react v0.456.0 - ISC
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the ISC license.
|
|
38
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/const M1=fr("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
40
|
+
* @license lucide-react v0.456.0 - ISC
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the ISC license.
|
|
43
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/const I1=fr("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
45
|
+
* @license lucide-react v0.456.0 - ISC
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the ISC license.
|
|
48
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/const j1=fr("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
|
50
|
+
* @license lucide-react v0.456.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const P1=fr("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
55
|
+
* @license lucide-react v0.456.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/const nf=fr("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
60
|
+
* @license lucide-react v0.456.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const R1=fr("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
|
|
65
|
+
* @license lucide-react v0.456.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const D1=fr("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
70
|
+
* @license lucide-react v0.456.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const A1=fr("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
|
|
75
|
+
* @license lucide-react v0.456.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const T1=fr("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
|
|
80
|
+
* @license lucide-react v0.456.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const pg=fr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var mg={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},yu={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},F1=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],zi={CSS:{},springs:{}};function vr(e,t,n){return Math.min(Math.max(e,t),n)}function Sa(e,t){return e.indexOf(t)>-1}function Zl(e,t){return e.apply(null,t)}var rt={arr:function(e){return Array.isArray(e)},obj:function(e){return Sa(Object.prototype.toString.call(e),"Object")},pth:function(e){return rt.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||rt.svg(e)},str:function(e){return typeof e=="string"},fnc:function(e){return typeof e=="function"},und:function(e){return typeof e>"u"},nil:function(e){return rt.und(e)||e===null},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return rt.hex(e)||rt.rgb(e)||rt.hsl(e)},key:function(e){return!mg.hasOwnProperty(e)&&!yu.hasOwnProperty(e)&&e!=="targets"&&e!=="keyframes"}};function gg(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(n){return parseFloat(n)}):[]}function hg(e,t){var n=gg(e),r=vr(rt.und(n[0])?1:n[0],.1,100),o=vr(rt.und(n[1])?100:n[1],.1,100),a=vr(rt.und(n[2])?10:n[2],.1,100),i=vr(rt.und(n[3])?0:n[3],.1,100),l=Math.sqrt(o/r),s=a/(2*Math.sqrt(o*r)),c=s<1?l*Math.sqrt(1-s*s):0,d=1,f=s<1?(s*l+-i)/c:-i+l;function p(h){var g=t?t*h/1e3:h;return s<1?g=Math.exp(-g*s*l)*(d*Math.cos(c*g)+f*Math.sin(c*g)):g=(d+f*g)*Math.exp(-g*l),h===0||h===1?h:1-g}function v(){var h=zi.springs[e];if(h)return h;for(var g=1/6,m=0,b=0;;)if(m+=g,p(m)===1){if(b++,b>=16)break}else b=0;var x=m*g*1e3;return zi.springs[e]=x,x}return t?p:v}function H1(e){return e===void 0&&(e=10),function(t){return Math.ceil(vr(t,1e-6,1)*e)*(1/e)}}var B1=(function(){var e=11,t=1/(e-1);function n(d,f){return 1-3*f+3*d}function r(d,f){return 3*f-6*d}function o(d){return 3*d}function a(d,f,p){return((n(f,p)*d+r(f,p))*d+o(f))*d}function i(d,f,p){return 3*n(f,p)*d*d+2*r(f,p)*d+o(f)}function l(d,f,p,v,h){var g,m,b=0;do m=f+(p-f)/2,g=a(m,v,h)-d,g>0?p=m:f=m;while(Math.abs(g)>1e-7&&++b<10);return m}function s(d,f,p,v){for(var h=0;h<4;++h){var g=i(f,p,v);if(g===0)return f;var m=a(f,p,v)-d;f-=m/g}return f}function c(d,f,p,v){if(!(0<=d&&d<=1&&0<=p&&p<=1))return;var h=new Float32Array(e);if(d!==f||p!==v)for(var g=0;g<e;++g)h[g]=a(g*t,d,p);function m(b){for(var x=0,y=1,w=e-1;y!==w&&h[y]<=b;++y)x+=t;--y;var C=(b-h[y])/(h[y+1]-h[y]),S=x+C*t,$=i(S,d,p);return $>=.001?s(b,S,d,p):$===0?S:l(b,x,x+t,d,p)}return function(b){return d===f&&p===v||b===0||b===1?b:a(m(b),f,v)}}return c})(),vg=(function(){var e={linear:function(){return function(r){return r}}},t={Sine:function(){return function(r){return 1-Math.cos(r*Math.PI/2)}},Expo:function(){return function(r){return r?Math.pow(2,10*r-10):0}},Circ:function(){return function(r){return 1-Math.sqrt(1-r*r)}},Back:function(){return function(r){return r*r*(3*r-2)}},Bounce:function(){return function(r){for(var o,a=4;r<((o=Math.pow(2,--a))-1)/11;);return 1/Math.pow(4,3-a)-7.5625*Math.pow((o*3-2)/22-r,2)}},Elastic:function(r,o){r===void 0&&(r=1),o===void 0&&(o=.5);var a=vr(r,1,10),i=vr(o,.1,2);return function(l){return l===0||l===1?l:-a*Math.pow(2,10*(l-1))*Math.sin((l-1-i/(Math.PI*2)*Math.asin(1/a))*(Math.PI*2)/i)}}},n=["Quad","Cubic","Quart","Quint"];return n.forEach(function(r,o){t[r]=function(){return function(a){return Math.pow(a,o+2)}}}),Object.keys(t).forEach(function(r){var o=t[r];e["easeIn"+r]=o,e["easeOut"+r]=function(a,i){return function(l){return 1-o(a,i)(1-l)}},e["easeInOut"+r]=function(a,i){return function(l){return l<.5?o(a,i)(l*2)/2:1-o(a,i)(l*-2+2)/2}},e["easeOutIn"+r]=function(a,i){return function(l){return l<.5?(1-o(a,i)(1-l*2))/2:(o(a,i)(l*2-1)+1)/2}}}),e})();function xu(e,t){if(rt.fnc(e))return e;var n=e.split("(")[0],r=vg[n],o=gg(e);switch(n){case"spring":return hg(e,t);case"cubicBezier":return Zl(B1,o);case"steps":return Zl(H1,o);default:return Zl(r,o)}}function bg(e){try{var t=document.querySelectorAll(e);return t}catch{return}}function il(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in e){var i=e[a];t.call(r,i,a,e)&&o.push(i)}return o}function ll(e){return e.reduce(function(t,n){return t.concat(rt.arr(n)?ll(n):n)},[])}function rf(e){return rt.arr(e)?e:(rt.str(e)&&(e=bg(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Cu(e,t){return e.some(function(n){return n===t})}function wu(e){var t={};for(var n in e)t[n]=e[n];return t}function Ks(e,t){var n=wu(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function sl(e,t){var n=wu(e);for(var r in t)n[r]=rt.und(e[r])?t[r]:e[r];return n}function z1(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function _1(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,function(l,s,c,d){return s+s+c+c+d+d}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),o=parseInt(r[1],16),a=parseInt(r[2],16),i=parseInt(r[3],16);return"rgba("+o+","+a+","+i+",1)"}function L1(e){var t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),n=parseInt(t[1],10)/360,r=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,a=t[4]||1;function i(p,v,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?p+(v-p)*6*h:h<1/2?v:h<2/3?p+(v-p)*(2/3-h)*6:p}var l,s,c;if(r==0)l=s=c=o;else{var d=o<.5?o*(1+r):o+r-o*r,f=2*o-d;l=i(f,d,n+1/3),s=i(f,d,n),c=i(f,d,n-1/3)}return"rgba("+l*255+","+s*255+","+c*255+","+a+")"}function W1(e){if(rt.rgb(e))return z1(e);if(rt.hex(e))return _1(e);if(rt.hsl(e))return L1(e)}function $r(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function V1(e){if(Sa(e,"translate")||e==="perspective")return"px";if(Sa(e,"rotate")||Sa(e,"skew"))return"deg"}function qs(e,t){return rt.fnc(e)?e(t.target,t.id,t.total):e}function br(e,t){return e.getAttribute(t)}function Eu(e,t,n){var r=$r(t);if(Cu([n,"deg","rad","turn"],r))return t;var o=zi.CSS[t+n];if(!rt.und(o))return o;var a=100,i=document.createElement(e.tagName),l=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;l.appendChild(i),i.style.position="absolute",i.style.width=a+n;var s=a/i.offsetWidth;l.removeChild(i);var c=s*parseFloat(t);return zi.CSS[t+n]=c,c}function yg(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?Eu(e,o,n):o}}function Su(e,t){if(rt.dom(e)&&!rt.inp(e)&&(!rt.nil(br(e,t))||rt.svg(e)&&e[t]))return"attribute";if(rt.dom(e)&&Cu(F1,t))return"transform";if(rt.dom(e)&&t!=="transform"&&yg(e,t))return"css";if(e[t]!=null)return"object"}function xg(e){if(rt.dom(e)){for(var t=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,r=new Map,o;o=n.exec(t);)r.set(o[1],o[2]);return r}}function K1(e,t,n,r){var o=Sa(t,"scale")?1:0+V1(t),a=xg(e).get(t)||o;return n&&(n.transforms.list.set(t,a),n.transforms.last=t),r?Eu(e,a,r):a}function $u(e,t,n,r){switch(Su(e,t)){case"transform":return K1(e,t,r,n);case"css":return yg(e,t,n);case"attribute":return br(e,t);default:return e[t]||0}}function ku(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=$r(e)||0,o=parseFloat(t),a=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+a+r;case"-":return o-a+r;case"*":return o*a+r}}function Cg(e,t){if(rt.col(e))return W1(e);if(/\s/g.test(e))return e;var n=$r(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Ou(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function q1(e){return Math.PI*2*br(e,"r")}function Y1(e){return br(e,"width")*2+br(e,"height")*2}function X1(e){return Ou({x:br(e,"x1"),y:br(e,"y1")},{x:br(e,"x2"),y:br(e,"y2")})}function wg(e){for(var t=e.points,n=0,r,o=0;o<t.numberOfItems;o++){var a=t.getItem(o);o>0&&(n+=Ou(r,a)),r=a}return n}function U1(e){var t=e.points;return wg(e)+Ou(t.getItem(t.numberOfItems-1),t.getItem(0))}function Eg(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return q1(e);case"rect":return Y1(e);case"line":return X1(e);case"polyline":return wg(e);case"polygon":return U1(e)}}function G1(e){var t=Eg(e);return e.setAttribute("stroke-dasharray",t),t}function Q1(e){for(var t=e.parentNode;rt.svg(t)&&rt.svg(t.parentNode);)t=t.parentNode;return t}function Sg(e,t){var n=t||{},r=n.el||Q1(e),o=r.getBoundingClientRect(),a=br(r,"viewBox"),i=o.width,l=o.height,s=n.viewBox||(a?a.split(" "):[0,0,i,l]);return{el:r,viewBox:s,x:s[0]/1,y:s[1]/1,w:i,h:l,vW:s[2],vH:s[3]}}function Z1(e,t){var n=rt.str(e)?bg(e)[0]:e,r=t||100;return function(o){return{property:o,el:n,svg:Sg(n),totalLength:Eg(n)*(r/100)}}}function J1(e,t,n){function r(d){d===void 0&&(d=0);var f=t+d>=1?t+d:0;return e.el.getPointAtLength(f)}var o=Sg(e.el,e.svg),a=r(),i=r(-1),l=r(1),s=n?1:o.w/o.vW,c=n?1:o.h/o.vH;switch(e.property){case"x":return(a.x-o.x)*s;case"y":return(a.y-o.y)*c;case"angle":return Math.atan2(l.y-i.y,l.x-i.x)*180/Math.PI}}function of(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Cg(rt.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:rt.str(e)||t?r.split(n):[]}}function Nu(e){var t=e?ll(rt.arr(e)?e.map(rf):rf(e)):[];return il(t,function(n,r,o){return o.indexOf(n)===r})}function $g(e){var t=Nu(e);return t.map(function(n,r){return{target:n,id:r,total:t.length,transforms:{list:xg(n)}}})}function ex(e,t){var n=wu(t);if(/^spring/.test(n.easing)&&(n.duration=hg(n.easing)),rt.arr(e)){var r=e.length,o=r===2&&!rt.obj(e[0]);o?e={value:e}:rt.fnc(t.duration)||(n.duration=t.duration/r)}var a=rt.arr(e)?e:[e];return a.map(function(i,l){var s=rt.obj(i)&&!rt.pth(i)?i:{value:i};return rt.und(s.delay)&&(s.delay=l?0:t.delay),rt.und(s.endDelay)&&(s.endDelay=l===a.length-1?t.endDelay:0),s}).map(function(i){return sl(i,n)})}function tx(e){for(var t=il(ll(e.map(function(a){return Object.keys(a)})),function(a){return rt.key(a)}).reduce(function(a,i){return a.indexOf(i)<0&&a.push(i),a},[]),n={},r=function(a){var i=t[a];n[i]=e.map(function(l){var s={};for(var c in l)rt.key(c)?c==i&&(s.value=l[c]):s[c]=l[c];return s})},o=0;o<t.length;o++)r(o);return n}function nx(e,t){var n=[],r=t.keyframes;r&&(t=sl(tx(r),t));for(var o in t)rt.key(o)&&n.push({name:o,tweens:ex(t[o],e)});return n}function rx(e,t){var n={};for(var r in e){var o=qs(e[r],t);rt.arr(o)&&(o=o.map(function(a){return qs(a,t)}),o.length===1&&(o=o[0])),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function ox(e,t){var n;return e.tweens.map(function(r){var o=rx(r,t),a=o.value,i=rt.arr(a)?a[1]:a,l=$r(i),s=$u(t.target,e.name,l,t),c=n?n.to.original:s,d=rt.arr(a)?a[0]:c,f=$r(d)||$r(s),p=l||f;return rt.und(i)&&(i=c),o.from=of(d,p),o.to=of(ku(i,d),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=xu(o.easing,o.duration),o.isPath=rt.pth(a),o.isPathTargetInsideSVG=o.isPath&&rt.svg(t.target),o.isColor=rt.col(o.from.original),o.isColor&&(o.round=1),n=o,o})}var kg={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){if(r.list.set(t,n),t===r.last||o){var a="";r.list.forEach(function(i,l){a+=l+"("+i+") "}),e.style.transform=a}}};function Og(e,t){var n=$g(e);n.forEach(function(r){for(var o in t){var a=qs(t[o],r),i=r.target,l=$r(a),s=$u(i,o,l,r),c=l||$r(s),d=ku(Cg(a,c),s),f=Su(i,o);kg[f](i,o,d,r.transforms,!0)}})}function ax(e,t){var n=Su(e.target,t.name);if(n){var r=ox(t,e),o=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:o.end,delay:r[0].delay,endDelay:o.endDelay}}}function ix(e,t){return il(ll(e.map(function(n){return t.map(function(r){return ax(n,r)})})),function(n){return!rt.und(n)})}function Ng(e,t){var n=e.length,r=function(a){return a.timelineOffset?a.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,e.map(function(a){return r(a)+a.duration})):t.duration,o.delay=n?Math.min.apply(Math,e.map(function(a){return r(a)+a.delay})):t.delay,o.endDelay=n?o.duration-Math.max.apply(Math,e.map(function(a){return r(a)+a.duration-a.endDelay})):t.endDelay,o}var af=0;function lx(e){var t=Ks(mg,e),n=Ks(yu,e),r=nx(n,e),o=$g(e.targets),a=ix(o,r),i=Ng(a,n),l=af;return af++,sl(t,{id:l,children:[],animatables:o,animations:a,duration:i.duration,delay:i.delay,endDelay:i.endDelay})}var sr=[],Mg=(function(){var e;function t(){!e&&(!lf()||!Wt.suspendWhenDocumentHidden)&&sr.length>0&&(e=requestAnimationFrame(n))}function n(o){for(var a=sr.length,i=0;i<a;){var l=sr[i];l.paused?(sr.splice(i,1),a--):(l.tick(o),i++)}e=i>0?requestAnimationFrame(n):void 0}function r(){Wt.suspendWhenDocumentHidden&&(lf()?e=cancelAnimationFrame(e):(sr.forEach(function(o){return o._onDocumentVisibility()}),Mg()))}return typeof document<"u"&&document.addEventListener("visibilitychange",r),t})();function lf(){return!!document&&document.hidden}function Wt(e){e===void 0&&(e={});var t=0,n=0,r=0,o,a=0,i=null;function l(x){var y=window.Promise&&new Promise(function(w){return i=w});return x.finished=y,y}var s=lx(e);l(s);function c(){var x=s.direction;x!=="alternate"&&(s.direction=x!=="normal"?"normal":"reverse"),s.reversed=!s.reversed,o.forEach(function(y){return y.reversed=s.reversed})}function d(x){return s.reversed?s.duration-x:x}function f(){t=0,n=d(s.currentTime)*(1/Wt.speed)}function p(x,y){y&&y.seek(x-y.timelineOffset)}function v(x){if(s.reversePlayback)for(var y=a;y--;)p(x,o[y]);else for(var w=0;w<a;w++)p(x,o[w])}function h(x){for(var y=0,w=s.animations,C=w.length;y<C;){var S=w[y],$=S.animatable,k=S.tweens,E=k.length-1,O=k[E];E&&(O=il(k,function(z){return x<z.end})[0]||O);for(var M=vr(x-O.start-O.delay,0,O.duration)/O.duration,N=isNaN(M)?1:O.easing(M),T=O.to.strings,P=O.round,D=[],j=O.to.numbers.length,B=void 0,I=0;I<j;I++){var _=void 0,L=O.to.numbers[I],W=O.from.numbers[I]||0;O.isPath?_=J1(O.value,N*L,O.isPathTargetInsideSVG):_=W+N*(L-W),P&&(O.isColor&&I>2||(_=Math.round(_*P)/P)),D.push(_)}var R=T.length;if(!R)B=D[0];else{B=T[0];for(var A=0;A<R;A++){var F=T[A+1],H=D[A];isNaN(H)||(F?B+=H+F:B+=H+" ")}}kg[S.type]($.target,S.property,B,$.transforms),S.currentValue=B,y++}}function g(x){s[x]&&!s.passThrough&&s[x](s)}function m(){s.remaining&&s.remaining!==!0&&s.remaining--}function b(x){var y=s.duration,w=s.delay,C=y-s.endDelay,S=d(x);s.progress=vr(S/y*100,0,100),s.reversePlayback=S<s.currentTime,o&&v(S),!s.began&&s.currentTime>0&&(s.began=!0,g("begin")),!s.loopBegan&&s.currentTime>0&&(s.loopBegan=!0,g("loopBegin")),S<=w&&s.currentTime!==0&&h(0),(S>=C&&s.currentTime!==y||!y)&&h(y),S>w&&S<C?(s.changeBegan||(s.changeBegan=!0,s.changeCompleted=!1,g("changeBegin")),g("change"),h(S)):s.changeBegan&&(s.changeCompleted=!0,s.changeBegan=!1,g("changeComplete")),s.currentTime=vr(S,0,y),s.began&&g("update"),x>=y&&(n=0,m(),s.remaining?(t=r,g("loopComplete"),s.loopBegan=!1,s.direction==="alternate"&&c()):(s.paused=!0,s.completed||(s.completed=!0,g("loopComplete"),g("complete"),!s.passThrough&&"Promise"in window&&(i(),l(s)))))}return s.reset=function(){var x=s.direction;s.passThrough=!1,s.currentTime=0,s.progress=0,s.paused=!0,s.began=!1,s.loopBegan=!1,s.changeBegan=!1,s.completed=!1,s.changeCompleted=!1,s.reversePlayback=!1,s.reversed=x==="reverse",s.remaining=s.loop,o=s.children,a=o.length;for(var y=a;y--;)s.children[y].reset();(s.reversed&&s.loop!==!0||x==="alternate"&&s.loop===1)&&s.remaining++,h(s.reversed?s.duration:0)},s._onDocumentVisibility=f,s.set=function(x,y){return Og(x,y),s},s.tick=function(x){r=x,t||(t=r),b((r+(n-t))*Wt.speed)},s.seek=function(x){b(d(x))},s.pause=function(){s.paused=!0,f()},s.play=function(){s.paused&&(s.completed&&s.reset(),s.paused=!1,sr.push(s),f(),Mg())},s.reverse=function(){c(),s.completed=!s.reversed,f()},s.restart=function(){s.reset(),s.play()},s.remove=function(x){var y=Nu(x);Ig(y,s)},s.reset(),s.autoplay&&s.play(),s}function sf(e,t){for(var n=t.length;n--;)Cu(e,t[n].animatable.target)&&t.splice(n,1)}function Ig(e,t){var n=t.animations,r=t.children;sf(e,n);for(var o=r.length;o--;){var a=r[o],i=a.animations;sf(e,i),!i.length&&!a.children.length&&r.splice(o,1)}!n.length&&!r.length&&t.pause()}function sx(e){for(var t=Nu(e),n=sr.length;n--;){var r=sr[n];Ig(t,r)}}function cx(e,t){t===void 0&&(t={});var n=t.direction||"normal",r=t.easing?xu(t.easing):null,o=t.grid,a=t.axis,i=t.from||0,l=i==="first",s=i==="center",c=i==="last",d=rt.arr(e),f=parseFloat(d?e[0]:e),p=d?parseFloat(e[1]):0,v=$r(d?e[1]:e)||0,h=t.start||0+(d?f:0),g=[],m=0;return function(b,x,y){if(l&&(i=0),s&&(i=(y-1)/2),c&&(i=y-1),!g.length){for(var w=0;w<y;w++){if(!o)g.push(Math.abs(i-w));else{var C=s?(o[0]-1)/2:i%o[0],S=s?(o[1]-1)/2:Math.floor(i/o[0]),$=w%o[0],k=Math.floor(w/o[0]),E=C-$,O=S-k,M=Math.sqrt(E*E+O*O);a==="x"&&(M=-E),a==="y"&&(M=-O),g.push(M)}m=Math.max.apply(Math,g)}r&&(g=g.map(function(T){return r(T/m)*m})),n==="reverse"&&(g=g.map(function(T){return a?T<0?T*-1:-T:Math.abs(m-T)}))}var N=d?(p-f)/m:f;return h+N*(Math.round(g[x]*100)/100)+v}}function ux(e){e===void 0&&(e={});var t=Wt(e);return t.duration=0,t.add=function(n,r){var o=sr.indexOf(t),a=t.children;o>-1&&sr.splice(o,1);function i(p){p.passThrough=!0}for(var l=0;l<a.length;l++)i(a[l]);var s=sl(n,Ks(yu,e));s.targets=s.targets||e.targets;var c=t.duration;s.autoplay=!1,s.direction=t.direction,s.timelineOffset=rt.und(r)?c:ku(r,c),i(t),t.seek(s.timelineOffset);var d=Wt(s);i(d),a.push(d);var f=Ng(a,e);return t.delay=f.delay,t.endDelay=f.endDelay,t.duration=f.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}Wt.version="3.2.1";Wt.speed=1;Wt.suspendWhenDocumentHidden=!0;Wt.running=sr;Wt.remove=sx;Wt.get=$u;Wt.set=Og;Wt.convertPx=Eu;Wt.path=Z1;Wt.setDashoffset=G1;Wt.stagger=cx;Wt.timeline=ux;Wt.easing=xu;Wt.penner=vg;Wt.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const dx=Ur({badgeCounts:{},updateBadgeCount:()=>{}}),fx=()=>{const e=Gt(dx);if(!e)throw new Error("useBadge must be used within a BadgeProvider");return e};var cf={exports:{}};/*!
|
|
85
|
+
Copyright (c) 2018 Jed Watson.
|
|
86
|
+
Licensed under the MIT License (MIT), see
|
|
87
|
+
http://jedwatson.github.io/classnames
|
|
88
|
+
*/var uf;function px(){return uf||(uf=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(a=o(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var l in a)t.call(a,l)&&a[l]&&(i=o(i,l));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(cf)),cf.exports}var mx=px();const ce=Nr(mx);function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Te.apply(null,arguments)}function Ze(e){"@babel/helpers - typeof";return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ze(e)}var gx=Symbol.for("react.element"),hx=Symbol.for("react.transitional.element"),vx=Symbol.for("react.fragment");function jg(e){return e&&Ze(e)==="object"&&(e.$$typeof===gx||e.$$typeof===hx)&&e.type===vx}function Yo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ae.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Yo(r)):jg(r)&&r.props?n=n.concat(Yo(r.props.children,t)):n.push(r))}),n}var Ys={},bx=function(e){};function yx(e,t){}function xx(e,t){}function Cx(){Ys={}}function Pg(e,t,n){!t&&!Ys[n]&&(e(!1,n),Ys[n]=!0)}function xn(e,t){Pg(yx,e,t)}function wx(e,t){Pg(xx,e,t)}xn.preMessage=bx;xn.resetWarned=Cx;xn.noteOnce=wx;function Ex(e,t){if(Ze(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ze(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rg(e){var t=Ex(e,"string");return Ze(t)=="symbol"?t:t+""}function q(e,t,n){return(t=Rg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?df(Object(n),!0).forEach(function(r){q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):df(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ja(e){return e instanceof HTMLElement||e instanceof SVGElement}function Dg(e){return e&&Ze(e)==="object"&&ja(e.nativeElement)?e.nativeElement:ja(e)?e:null}function ki(e){var t=Dg(e);if(t)return t;if(e instanceof ae.Component){var n;return(n=Hd.findDOMNode)===null||n===void 0?void 0:n.call(Hd,e)}return null}var ff={exports:{}},Ht={};/**
|
|
89
|
+
* @license React
|
|
90
|
+
* react-is.production.min.js
|
|
91
|
+
*
|
|
92
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the MIT license found in the
|
|
95
|
+
* LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/var pf;function Sx(){if(pf)return Ht;pf=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case n:case o:case r:case c:case d:return m;default:switch(m=m&&m.$$typeof,m){case l:case i:case s:case p:case f:case a:return m;default:return b}}case t:return b}}}return Ht.ContextConsumer=i,Ht.ContextProvider=a,Ht.Element=e,Ht.ForwardRef=s,Ht.Fragment=n,Ht.Lazy=p,Ht.Memo=f,Ht.Portal=t,Ht.Profiler=o,Ht.StrictMode=r,Ht.Suspense=c,Ht.SuspenseList=d,Ht.isAsyncMode=function(){return!1},Ht.isConcurrentMode=function(){return!1},Ht.isContextConsumer=function(m){return g(m)===i},Ht.isContextProvider=function(m){return g(m)===a},Ht.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Ht.isForwardRef=function(m){return g(m)===s},Ht.isFragment=function(m){return g(m)===n},Ht.isLazy=function(m){return g(m)===p},Ht.isMemo=function(m){return g(m)===f},Ht.isPortal=function(m){return g(m)===t},Ht.isProfiler=function(m){return g(m)===o},Ht.isStrictMode=function(m){return g(m)===r},Ht.isSuspense=function(m){return g(m)===c},Ht.isSuspenseList=function(m){return g(m)===d},Ht.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===c||m===d||m===v||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===s||m.$$typeof===h||m.getModuleId!==void 0)},Ht.typeOf=g,Ht}var mf;function $x(){return mf||(mf=1,ff.exports=Sx()),ff.exports}var Jl=$x();function cl(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var kx=Number(Fb.split(".")[0]),Mu=function(e,t){typeof e=="function"?e(t):Ze(e)==="object"&&e&&"current"in e&&(e.current=t)},nr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(o){t.forEach(function(a){Mu(a,o)})}},Ya=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return cl(function(){return nr.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})},Jo=function(e){var t,n;if(!e)return!1;if(Ag(e)&&kx>=19)return!0;var r=Jl.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==Jl.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==Jl.ForwardRef)};function Ag(e){return Jm(e)&&!jg(e)}var Xa=function(e){if(e&&Ag(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},Xs=u.createContext(null);function Ox(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),a=u.useContext(Xs),i=u.useCallback(function(l,s,c){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(l,s,c)},[n,a]);return u.createElement(Xs.Provider,{value:i},t)}var Tg=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t})()})(),Us=typeof window<"u"&&typeof document<"u"&&window.document===document,_i=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Nx=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Mx=2;function Ix(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function i(){Nx(a)}function l(){var s=Date.now();if(n){if(s-o<Mx)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=s}return l}var jx=20,Px=["top","right","bottom","left","width","height","size","weight"],Rx=typeof MutationObserver<"u",Dx=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Ix(this.refresh.bind(this),jx)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Us||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Rx?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Us||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=Px.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Fg=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),Xo=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||_i}),Hg=ul(0,0,0,0);function Li(e){return parseFloat(e)||0}function gf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Li(a)},0)}function Ax(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=Li(i)}return n}function Tx(e){var t=e.getBBox();return ul(0,0,t.width,t.height)}function Fx(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Hg;var r=Xo(e).getComputedStyle(e),o=Ax(r),a=o.left+o.right,i=o.top+o.bottom,l=Li(r.width),s=Li(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==t&&(l-=gf(r,"left","right")+a),Math.round(s+i)!==n&&(s-=gf(r,"top","bottom")+i)),!Bx(e)){var c=Math.round(l+a)-t,d=Math.round(s+i)-n;Math.abs(c)!==1&&(l-=c),Math.abs(d)!==1&&(s-=d)}return ul(o.left,o.top,l,s)}var Hx=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Xo(e).SVGGraphicsElement}:function(e){return e instanceof Xo(e).SVGElement&&typeof e.getBBox=="function"}})();function Bx(e){return e===Xo(e).document.documentElement}function zx(e){return Us?Hx(e)?Tx(e):Fx(e):Hg}function _x(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return Fg(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function ul(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Lx=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ul(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=zx(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),Wx=(function(){function e(t,n){var r=_x(n);Fg(this,{target:t,contentRect:r})}return e})(),Vx=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Tg,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Xo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Lx(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Xo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Wx(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Bg=typeof WeakMap<"u"?new WeakMap:new Tg,zg=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Dx.getInstance(),r=new Vx(t,n,this);Bg.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){zg.prototype[e]=function(){var t;return(t=Bg.get(this))[e].apply(t,arguments)}});var Kx=(function(){return typeof _i.ResizeObserver<"u"?_i.ResizeObserver:zg})(),_r=new Map;function qx(e){e.forEach(function(t){var n,r=t.target;(n=_r.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var _g=new Kx(qx);function Yx(e,t){_r.has(e)||(_r.set(e,new Set),_g.observe(e)),_r.get(e).add(t)}function Xx(e,t){_r.has(e)&&(_r.get(e).delete(t),_r.get(e).size||(_g.unobserve(e),_r.delete(e)))}function tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rg(r.key),r)}}function nn(e,t,n){return t&&hf(e.prototype,t),n&&hf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pa(e,t){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Pa(e,t)}function Gr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pa(e,t)}function Ra(e){return Ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ra(e)}function Iu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iu=function(){return!!e})()}function xt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ux(e,t){if(t&&(Ze(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xt(e)}function Qr(e){var t=Iu();return function(){var n,r=Ra(e);if(t){var o=Ra(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ux(this,n)}}var Gx=(function(e){Gr(n,e);var t=Qr(n);function n(){return tn(this,n),t.apply(this,arguments)}return nn(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function Qx(e,t){var n=e.children,r=e.disabled,o=u.useRef(null),a=u.useRef(null),i=u.useContext(Xs),l=typeof n=="function",s=l?n(o):n,c=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&u.isValidElement(s)&&Jo(s),f=d?Xa(s):null,p=Ya(f,o),v=function(){var m;return ki(o.current)||(o.current&&Ze(o.current)==="object"?ki((m=o.current)===null||m===void 0?void 0:m.nativeElement):null)||ki(a.current)};u.useImperativeHandle(t,function(){return v()});var h=u.useRef(e);h.current=e;var g=u.useCallback(function(m){var b=h.current,x=b.onResize,y=b.data,w=m.getBoundingClientRect(),C=w.width,S=w.height,$=m.offsetWidth,k=m.offsetHeight,E=Math.floor(C),O=Math.floor(S);if(c.current.width!==E||c.current.height!==O||c.current.offsetWidth!==$||c.current.offsetHeight!==k){var M={width:E,height:O,offsetWidth:$,offsetHeight:k};c.current=M;var N=$===Math.round(C)?C:$,T=k===Math.round(S)?S:k,P=U(U({},M),{},{offsetWidth:N,offsetHeight:T});i==null||i(P,m,y),x&&Promise.resolve().then(function(){x(P,m)})}},[]);return u.useEffect(function(){var m=v();return m&&!r&&Yx(m,g),function(){return Xx(m,g)}},[o.current,r]),u.createElement(Gx,{ref:a},d?u.cloneElement(s,{ref:p}):s)}var Zx=u.forwardRef(Qx),Jx="rc-observer-key";function eC(e,t){var n=e.children,r=typeof n=="function"?[n]:Yo(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(Jx,"-").concat(a);return u.createElement(Zx,Te({},e,{key:i,ref:a===0?t:void 0}),o)})}var wr=u.forwardRef(eC);wr.Collection=Ox;function Gs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tC(e){if(Array.isArray(e))return Gs(e)}function Lg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ju(e,t){if(e){if(typeof e=="string")return Gs(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gs(e,t):void 0}}function nC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
97
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $e(e){return tC(e)||Lg(e)||ju(e)||nC()}var Wg=function(e){return+setTimeout(e,16)},Vg=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(Wg=function(e){return window.requestAnimationFrame(e)},Vg=function(e){return window.cancelAnimationFrame(e)});var vf=0,Pu=new Map;function Kg(e){Pu.delete(e)}var ft=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vf+=1;var n=vf;function r(o){if(o===0)Kg(n),e();else{var a=Wg(function(){r(o-1)});Pu.set(n,a)}}return r(t),n};ft.cancel=function(e){var t=Pu.get(e);return Kg(e),Vg(t)};function qg(e){if(Array.isArray(e))return e}function rC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,o=d}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}function Yg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
98
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e,t){return qg(e)||rC(e,t)||ju(e,t)||Yg()}function Da(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Hn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oC(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var bf="data-rc-order",yf="data-rc-priority",aC="rc-util-key",Qs=new Map;function Xg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):aC}function dl(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function iC(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ru(e){return Array.from((Qs.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ug(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Hn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=iC(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(bf,i),l&&a&&s.setAttribute(yf,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=dl(t),d=c.firstChild;if(r){if(l){var f=(t.styles||Ru(c)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(bf)))return!1;var v=Number(p.getAttribute(yf)||0);return a>=v});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,d)}else c.appendChild(s);return s}function Gg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=dl(t);return(t.styles||Ru(n)).find(function(r){return r.getAttribute(Xg(t))===e})}function Aa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Gg(e,t);if(n){var r=dl(t);r.removeChild(n)}}function lC(e,t){var n=Qs.get(e);if(!n||!oC(document,n)){var r=Ug("",t),o=r.parentNode;Qs.set(e,o),e.removeChild(r)}}function kr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=dl(n),o=Ru(r),a=U(U({},n),{},{styles:o});lC(r,a);var i=Gg(t,a);if(i){var l,s;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=Ug(e,a);return d.setAttribute(Xg(a),t),d}function sC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pt(e,t){if(e==null)return{};var n,r,o=sC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Wi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if(xn(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);var c=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],i[d],c))return!1;return!0}if(a&&i&&Ze(a)==="object"&&Ze(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(p){return o(a[p],i[p],c)})}return!1}return o(e,t)}var cC="%";function Zs(e){return e.join(cC)}var uC=(function(){function e(t){tn(this,e),q(this,"instanceId",void 0),q(this,"cache",new Map),q(this,"extracted",new Set),this.instanceId=t}return nn(e,[{key:"get",value:function(t){return this.opGet(Zs(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,n){return this.opUpdate(Zs(t),n)}},{key:"opUpdate",value:function(t,n){var r=this.cache.get(t),o=n(r);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),Ta="data-token-hash",xr="data-css-hash",Lr="__cssinjs_instance__";function dC(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(xr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Lr]=o[Lr]||e,o[Lr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(xr,"]"))).forEach(function(o){var a=o.getAttribute(xr);if(r[a]){if(o[Lr]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new uC(e)}var Ua=u.createContext({hashPriority:"low",cache:dC(),defaultCache:!0});function fC(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Du=(function(){function e(){tn(this,e),q(this,"cache",void 0),q(this,"keys",void 0),q(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return nn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var n,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return t.forEach(function(i){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(i)}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(r=a)===null||r===void 0?void 0:r.value}},{key:"get",value:function(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(s,c){var d=Q(s,2),f=d[1];return r.internalGet(c)[1]<f?[c,r.internalGet(c)[1]]:s},[this.keys[0],this.cacheCallTimes]),a=Q(o,1),i=a[0];this.delete(i)}this.keys.push(t)}var l=this.cache;t.forEach(function(s,c){if(c===t.length-1)l.set(s,{value:[n,r.cacheCallTimes++]});else{var d=l.get(s);d?d.map||(d.map=new Map):l.set(s,{map:new Map}),l=l.get(s).map}})}},{key:"deleteByPath",value:function(t,n){var r=t.get(n[0]);if(n.length===1){var o;return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(n){return!fC(n,t)}),this.deleteByPath(this.cache,t)}}]),e})();q(Du,"MAX_CACHE_SIZE",20);q(Du,"MAX_CACHE_OFFSET",5);var xf=0,Qg=(function(){function e(t){tn(this,e),q(this,"derivatives",void 0),q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=xf,t.length===0&&(t.length>0,void 0),xf+=1}return nn(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(n,r){return r(t,n)},void 0)}}]),e})(),es=new Du;function Js(e){var t=Array.isArray(e)?e:[e];return es.has(t)||es.set(t,new Qg(t)),es.get(t)}var pC=new WeakMap,ts={};function mC(e,t){for(var n=pC,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(ts)||n.set(ts,e()),n.get(ts)}var Cf=new WeakMap;function $a(e){var t=Cf.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Qg?t+=r.id:r&&Ze(r)==="object"?t+=$a(r):t+=r}),t=Da(t),Cf.set(e,t)),t}function wf(e,t){return Da("".concat(t,"_").concat($a(e)))}var ec=Hn();function me(e){return typeof e=="number"?"".concat(e,"px"):e}var Oi=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},gC=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(r){var o=Q(r,2),a=o[0],i=o[1];return"".concat(a,":").concat(i,";")}).join(""),"}"):""},Zg=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(a){var i,l,s=Q(a,2),c=s[0],d=s[1];if(n!=null&&(i=n.preserve)!==null&&i!==void 0&&i[c])o[c]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[c])){var f,p=Oi(c,n==null?void 0:n.prefix);r[p]=typeof d=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[c])?"".concat(d,"px"):String(d),o[c]="var(".concat(p,")")}}),[o,gC(r,t,{scope:n==null?void 0:n.scope})]},Ef=Hn()?u.useLayoutEffect:u.useEffect,Et=function(e,t){var n=u.useRef(!0);Ef(function(){return e(n.current)},t),Ef(function(){return n.current=!1,function(){n.current=!0}},[])},Lo=function(e,t){Et(function(n){if(!n)return e()},t)},hC=U({},u),Sf=hC.useInsertionEffect,vC=function(e,t,n){u.useMemo(e,n),Et(function(){return t(!0)},n)},bC=Sf?function(e,t,n){return Sf(function(){return e(),t()},n)}:vC,yC=U({},u),xC=yC.useInsertionEffect,CC=function(e){var t=[],n=!1;function r(o){n||t.push(o)}return u.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(o){return o()})}},e),r},wC=function(){return function(e){e()}},EC=typeof xC<"u"?CC:wC;function Au(e,t,n,r,o){var a=u.useContext(Ua),i=a.cache,l=[e].concat($e(t)),s=Zs(l),c=EC([s]),d=function(v){i.opUpdate(s,function(h){var g=h||[void 0,void 0],m=Q(g,2),b=m[0],x=b===void 0?0:b,y=m[1],w=y,C=w||n(),S=[x,C];return v?v(S):S})};u.useMemo(function(){d()},[s]);var f=i.opGet(s),p=f[1];return bC(function(){o==null||o(p)},function(v){return d(function(h){var g=Q(h,2),m=g[0],b=g[1];return v&&m===0&&(o==null||o(p)),[m+1,b]}),function(){i.opUpdate(s,function(h){var g=h||[],m=Q(g,2),b=m[0],x=b===void 0?0:b,y=m[1],w=x-1;return w===0?(c(function(){(v||!i.opGet(s))&&(r==null||r(y,!1))}),null):[x-1,y]})}},[s]),p}var SC={},$C="css",no=new Map;function kC(e){no.set(e,(no.get(e)||0)+1)}function OC(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ta,'="').concat(e,'"]'));n.forEach(function(r){if(r[Lr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var NC=0;function MC(e,t){no.set(e,(no.get(e)||0)-1);var n=new Set;no.forEach(function(r,o){r<=0&&n.add(o)}),no.size-n.size>NC&&n.forEach(function(r){OC(r,t),no.delete(r)})}var IC=function(e,t,n,r){var o=n.getDerivativeToken(e),a=U(U({},o),t);return r&&(a=r(a)),a},jC="token";function PC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Gt(Ua),o=r.cache.instanceId,a=r.container,i=n.salt,l=i===void 0?"":i,s=n.override,c=s===void 0?SC:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,v=mC(function(){return Object.assign.apply(Object,[{}].concat($e(t)))},t),h=$a(v),g=$a(c),m=p?$a(p):"",b=Au(jC,[l,e.id,h,g,m],function(){var x,y=f?f(v,c,e):IC(v,c,e,d),w=U({},y),C="";if(p){var S=Zg(y,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),$=Q(S,2);y=$[0],C=$[1]}var k=wf(y,l);y._tokenKey=k,w._tokenKey=wf(w,l);var E=(x=p==null?void 0:p.key)!==null&&x!==void 0?x:k;y._themeKey=E,kC(E);var O="".concat($C,"-").concat(Da(k));return y._hashId=O,[y,O,w,C,(p==null?void 0:p.key)||""]},function(x){MC(x[0]._themeKey,o)},function(x){var y=Q(x,4),w=y[0],C=y[3];if(p&&C){var S=kr(C,Da("css-variables-".concat(w._themeKey)),{mark:xr,prepend:"queue",attachTo:a,priority:-999});S[Lr]=o,S.setAttribute(Ta,w._themeKey)}});return b}var RC={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Jg="comm",eh="rule",th="decl",DC="@import",AC="@namespace",TC="@keyframes",FC="@layer",nh=Math.abs,Tu=String.fromCharCode;function rh(e){return e.trim()}function Ni(e,t,n){return e.replace(t,n)}function HC(e,t,n){return e.indexOf(t,n)}function Wo(e,t){return e.charCodeAt(t)|0}function Uo(e,t,n){return e.slice(t,n)}function hr(e){return e.length}function BC(e){return e.length}function ii(e,t){return t.push(e),e}var fl=1,Go=1,oh=0,tr=0,cn=0,ea="";function Fu(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:fl,column:Go,length:i,return:"",siblings:l}}function zC(){return cn}function _C(){return cn=tr>0?Wo(ea,--tr):0,Go--,cn===10&&(Go=1,fl--),cn}function cr(){return cn=tr<oh?Wo(ea,tr++):0,Go++,cn===10&&(Go=1,fl++),cn}function Wr(){return Wo(ea,tr)}function Mi(){return tr}function pl(e,t){return Uo(ea,e,t)}function Fa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LC(e){return fl=Go=1,oh=hr(ea=e),tr=0,[]}function WC(e){return ea="",e}function ns(e){return rh(pl(tr-1,tc(e===91?e+2:e===40?e+1:e)))}function VC(e){for(;(cn=Wr())&&cn<33;)cr();return Fa(e)>2||Fa(cn)>3?"":" "}function KC(e,t){for(;--t&&cr()&&!(cn<48||cn>102||cn>57&&cn<65||cn>70&&cn<97););return pl(e,Mi()+(t<6&&Wr()==32&&cr()==32))}function tc(e){for(;cr();)switch(cn){case e:return tr;case 34:case 39:e!==34&&e!==39&&tc(cn);break;case 40:e===41&&tc(e);break;case 92:cr();break}return tr}function qC(e,t){for(;cr()&&e+cn!==57&&!(e+cn===84&&Wr()===47););return"/*"+pl(t,tr-1)+"*"+Tu(e===47?e:cr())}function YC(e){for(;!Fa(Wr());)cr();return pl(e,tr)}function XC(e){return WC(Ii("",null,null,null,[""],e=LC(e),0,[0],e))}function Ii(e,t,n,r,o,a,i,l,s){for(var c=0,d=0,f=i,p=0,v=0,h=0,g=1,m=1,b=1,x=0,y="",w=o,C=a,S=r,$=y;m;)switch(h=x,x=cr()){case 40:if(h!=108&&Wo($,f-1)==58){HC($+=Ni(ns(x),"&","&\f"),"&\f",nh(c?l[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:$+=ns(x);break;case 9:case 10:case 13:case 32:$+=VC(h);break;case 92:$+=KC(Mi()-1,7);continue;case 47:switch(Wr()){case 42:case 47:ii(UC(qC(cr(),Mi()),t,n,s),s),(Fa(h||1)==5||Fa(Wr()||1)==5)&&hr($)&&Uo($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*g:l[c++]=hr($)*b;case 125*g:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+d:b==-1&&($=Ni($,/\f/g,"")),v>0&&(hr($)-f||g===0&&h===47)&&ii(v>32?kf($+";",r,n,f-1,s):kf(Ni($," ","")+";",r,n,f-2,s),s);break;case 59:$+=";";default:if(ii(S=$f($,t,n,c,d,o,l,y,w=[],C=[],f,a),a),x===123)if(d===0)Ii($,t,S,S,w,a,f,l,C);else{switch(p){case 99:if(Wo($,3)===110)break;case 108:if(Wo($,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Ii(e,S,S,r&&ii($f(e,S,S,0,0,o,l,y,o,w=[],f,C),C),o,C,f,l,r?w:C):Ii($,S,S,S,[""],C,0,l,C)}}c=d=v=0,g=b=1,y=$="",f=i;break;case 58:f=1+hr($),v=h;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&_C()==125)continue}switch($+=Tu(x),x*g){case 38:b=d>0?1:($+="\f",-1);break;case 44:l[c++]=(hr($)-1)*b,b=1;break;case 64:Wr()===45&&($+=ns(cr())),p=Wr(),d=f=hr(y=$+=YC(Mi())),x++;break;case 45:h===45&&hr($)==2&&(g=0)}}return a}function $f(e,t,n,r,o,a,i,l,s,c,d,f){for(var p=o-1,v=o===0?a:[""],h=BC(v),g=0,m=0,b=0;g<r;++g)for(var x=0,y=Uo(e,p+1,p=nh(m=i[g])),w=e;x<h;++x)(w=rh(m>0?v[x]+" "+y:Ni(y,/&\f/g,v[x])))&&(s[b++]=w);return Fu(e,t,n,o===0?eh:l,s,c,d,f)}function UC(e,t,n,r){return Fu(e,t,n,Jg,Tu(zC()),Uo(e,2,-2),0,r)}function kf(e,t,n,r,o){return Fu(e,t,n,th,Uo(e,0,r),Uo(e,r+1,-1),r,o)}function nc(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function GC(e,t,n,r){switch(e.type){case FC:if(e.children.length)break;case DC:case AC:case th:return e.return=e.return||e.value;case Jg:return"";case TC:return e.return=e.value+"{"+nc(e.children,r)+"}";case eh:if(!hr(e.value=e.props.join(",")))return""}return hr(n=nc(e.children,r))?e.return=e.value+"{"+n+"}":""}var Of="data-ant-cssinjs-cache-path",ah="_FILE_STYLE__",uo,ih=!0;function QC(){if(!uo&&(uo={},Hn())){var e=document.createElement("div");e.className=Of,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=Q(a,2),l=i[0],s=i[1];uo[l]=s});var n=document.querySelector("style[".concat(Of,"]"));if(n){var r;ih=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function ZC(e){return QC(),!!uo[e]}function JC(e){var t=uo[e],n=null;if(t&&Hn())if(ih)n=ah;else{var r=document.querySelector("style[".concat(xr,'="').concat(uo[e],'"]'));r?n=r.innerHTML:delete uo[e]}return[n,t]}var ew="_skip_check_",lh="_multi_value_";function rs(e){var t=nc(XC(e),GC);return t.replace(/\{%%%\:[^;];}/g,";")}function tw(e){return Ze(e)==="object"&&e&&(ew in e||lh in e)}function Nf(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var l,s=i.trim().split(/\s+/),c=s[0]||"",d=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(d).concat(o).concat(c.slice(d.length)),[c].concat($e(s.slice(1))).join(" ")});return a.join(",")}var nw=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p="",v={};function h(b){var x=b.getName(l);if(!v[x]){var y=e(b.style,n,{root:!1,parentSelectors:i}),w=Q(y,1),C=w[0];v[x]="@keyframes ".concat(b.getName(l)).concat(C)}}function g(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(y){Array.isArray(y)?g(y,x):y&&x.push(y)}),x}var m=g(Array.isArray(t)?t:[t]);return m.forEach(function(b){var x=typeof b=="string"&&!o?{}:b;if(typeof x=="string")p+="".concat(x,`
|
|
99
|
+
`);else if(x._keyframe)h(x);else{var y=f.reduce(function(w,C){var S;return(C==null||(S=C.visit)===null||S===void 0?void 0:S.call(C,w))||w},x);Object.keys(y).forEach(function(w){var C=y[w];if(Ze(C)==="object"&&C&&(w!=="animationName"||!C._keyframe)&&!tw(C)){var S=!1,$=w.trim(),k=!1;(o||a)&&l?$.startsWith("@")?S=!0:$==="&"?$=Nf("",l,c):$=Nf(w,l,c):o&&!l&&($==="&"||$==="")&&($="",k=!0);var E=e(C,n,{root:k,injectHash:S,parentSelectors:[].concat($e(i),[$])}),O=Q(E,2),M=O[0],N=O[1];v=U(U({},v),N),p+="".concat($).concat(M)}else{let D=function(j,B){var I=j.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),_=B;!RC[j]&&typeof _=="number"&&_!==0&&(_="".concat(_,"px")),j==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(h(B),_=B.getName(l)),p+="".concat(I,":").concat(_,";")};var T,P=(T=C==null?void 0:C.value)!==null&&T!==void 0?T:C;Ze(C)==="object"&&C!==null&&C!==void 0&&C[lh]&&Array.isArray(P)?P.forEach(function(j){D(w,j)}):D(w,P)}})}}),o?s&&(p&&(p="@layer ".concat(s.name," {").concat(p,"}")),s.dependencies&&(v["@layer ".concat(s.name)]=s.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(s.name,";")}).join(`
|
|
100
|
+
`))):p="{".concat(p,"}"),[p,v]};function sh(e,t){return Da("".concat(e.join("%")).concat(t))}function rw(){return null}var ow="style";function rc(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,d=u.useContext(Ua),f=d.autoClear;d.mock;var p=d.defaultCache,v=d.hashPriority,h=d.container,g=d.ssrInline,m=d.transformers,b=d.linters,x=d.cache,y=d.layer,w=n._tokenKey,C=[w];y&&C.push("layer"),C.push.apply(C,$e(r));var S=ec,$=Au(ow,C,function(){var N=C.join("|");if(ZC(N)){var T=JC(N),P=Q(T,2),D=P[0],j=P[1];if(D)return[D,w,j,{},l,c]}var B=t(),I=nw(B,{hashId:o,hashPriority:v,layer:y?a:void 0,path:r.join("-"),transformers:m,linters:b}),_=Q(I,2),L=_[0],W=_[1],R=rs(L),A=sh(C,R);return[R,w,A,W,l,c]},function(N,T){var P=Q(N,3),D=P[2];(T||f)&&ec&&Aa(D,{mark:xr,attachTo:h})},function(N){var T=Q(N,4),P=T[0],D=T[2],j=T[3];if(S&&P!==ah){var B={mark:xr,prepend:y?!1:"queue",attachTo:h,priority:c},I=typeof i=="function"?i():i;I&&(B.csp={nonce:I});var _=[],L=[];Object.keys(j).forEach(function(R){R.startsWith("@layer")?_.push(R):L.push(R)}),_.forEach(function(R){kr(rs(j[R]),"_layer-".concat(R),U(U({},B),{},{prepend:!0}))});var W=kr(P,D,B);W[Lr]=x.instanceId,W.setAttribute(Ta,w),L.forEach(function(R){kr(rs(j[R]),"_effect-".concat(R),B)})}}),k=Q($,3),E=k[0],O=k[1],M=k[2];return function(N){var T;return!g||S||!p?T=u.createElement(rw,null):T=u.createElement("style",Te({},q(q({},Ta,O),xr,M),{dangerouslySetInnerHTML:{__html:E}})),u.createElement(u.Fragment,null,T,N)}}var aw="cssVar",iw=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,i=e.token,l=e.scope,s=l===void 0?"":l,c=Gt(Ua),d=c.cache.instanceId,f=c.container,p=i._tokenKey,v=[].concat($e(e.path),[n,s,p]),h=Au(aw,v,function(){var g=t(),m=Zg(g,n,{prefix:r,unitless:o,ignore:a,scope:s}),b=Q(m,2),x=b[0],y=b[1],w=sh(v,y);return[x,y,w,n]},function(g){var m=Q(g,3),b=m[2];ec&&Aa(b,{mark:xr,attachTo:f})},function(g){var m=Q(g,3),b=m[1],x=m[2];if(b){var y=kr(b,x,{mark:xr,prepend:"queue",attachTo:f,priority:-999});y[Lr]=d,y.setAttribute(Ta,n)}});return h},Nt=(function(){function e(t,n){tn(this,e),q(this,"name",void 0),q(this,"style",void 0),q(this,"_keyframe",!0),this.name=t,this.style=n}return nn(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})(),Hu=Ur({});function ch(e){return qg(e)||Lg(e)||ju(e)||Yg()}function er(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function uh(e,t,n,r){if(!t.length)return n;var o=ch(t),a=o[0],i=o.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=$e(e):l=U({},e),r&&n===void 0&&i.length===1?delete l[a][i[0]]:l[a]=uh(l[a],i,n,r),l}function Jn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!er(e,t.slice(0,-1))?e:uh(e,t,n,r)}function lw(e){return Ze(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Mf(e){return Array.isArray(e)?[]:{}}var sw=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ho(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Mf(t[0]);return t.forEach(function(o){function a(i,l){var s=new Set(l),c=er(o,i),d=Array.isArray(c);if(d||lw(c)){if(!s.has(c)){s.add(c);var f=er(r,i);d?r=Jn(r,i,[]):(!f||Ze(f)!=="object")&&(r=Jn(r,i,Mf(c))),sw(c).forEach(function(p){a([].concat($e(i),[p]),s)})}}else r=Jn(r,i,c)}a([])}),r}function cw(){}const uw=u.createContext({}),ml=()=>{const e=()=>{};return e.deprecated=cw,e},dh=Ur(void 0);var dw={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},fw={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},pw=U(U({},fw),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const fh={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Vi={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},pw),timePickerLocale:Object.assign({},fh)},Ln="${label} is not a valid ${type}",Kr={locale:"en",Pagination:dw,DatePicker:Vi,TimePicker:fh,Calendar:Vi,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ln,method:Ln,array:Ln,object:Ln,number:Ln,date:Ln,boolean:Ln,integer:Ln,float:Ln,regexp:Ln,email:Ln,url:Ln,hex:Ln},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Kr.Modal);let ji=[];const If=()=>ji.reduce((e,t)=>Object.assign(Object.assign({},e),t),Kr.Modal);function mw(e){if(e){const t=Object.assign({},e);return ji.push(t),If(),()=>{ji=ji.filter(n=>n!==t),If()}}Object.assign({},Kr.Modal)}const Bu=Ur(void 0),xo=(e,t)=>{const n=u.useContext(Bu),r=u.useMemo(()=>{var a;const i=t||Kr[e],l=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),o=u.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Kr.locale:a},[n]);return[r,o]},gw="internalMark",hw=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>mw(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(Bu.Provider,{value:o},n)},ph={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Ha=Object.assign(Object.assign({},ph),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
101
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
102
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),yn=Math.round;function os(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const jf=(e,t,n)=>n===0?e:e/100;function ma(e,t){const n=t||255;return e>n?n:e<0?0:e}class Ot{constructor(t){q(this,"isValid",!0),q(this,"r",0),q(this,"g",0),q(this,"b",0),q(this,"a",1),q(this,"_h",void 0),q(this,"_s",void 0),q(this,"_l",void 0),q(this,"_v",void 0),q(this,"_max",void 0),q(this,"_min",void 0),q(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let r=function(a){return o.startsWith(a)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):r("rgb")?this.fromRgbString(o):r("hsl")?this.fromHslString(o):(r("hsv")||r("hsb"))&&this.fromHsvString(o)}else if(t instanceof Ot)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=ma(t.r),this.g=ma(t.g),this.b=ma(t.b),this.a=typeof t.a=="number"?ma(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=yn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,a=l=>(r[l]-this[l])*o+this[l],i={r:yn(a("r")),g:yn(a("g")),b:yn(a("b")),a:yn(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=a=>yn((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=yn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=yn(this.getSaturation()*100),r=yn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=ma(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,a){return parseInt(n[o]+n[a||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const p=yn(r*255);this.r=p,this.g=p,this.b=p}let a=0,i=0,l=0;const s=t/60,c=(1-Math.abs(2*r-1))*n,d=c*(1-Math.abs(s%2-1));s>=0&&s<1?(a=c,i=d):s>=1&&s<2?(a=d,i=c):s>=2&&s<3?(i=c,l=d):s>=3&&s<4?(i=d,l=c):s>=4&&s<5?(a=d,l=c):s>=5&&s<6&&(a=c,l=d);const f=r-c/2;this.r=yn((a+f)*255),this.g=yn((i+f)*255),this.b=yn((l+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=yn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const i=t/60,l=Math.floor(i),s=i-l,c=yn(r*(1-n)*255),d=yn(r*(1-n*s)*255),f=yn(r*(1-n*(1-s))*255);switch(l){case 0:this.g=f,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=d;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=d;break}}fromHsvString(t){const n=os(t,jf);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=os(t,jf);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=os(t,(r,o)=>o.includes("%")?yn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var li=2,Pf=.16,vw=.05,bw=.05,yw=.15,mh=5,gh=4,xw=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Rf(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-li*t:Math.round(e.h)+li*t:r=n?Math.round(e.h)+li*t:Math.round(e.h)-li*t,r<0?r+=360:r>=360&&(r-=360),r}function Df(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Pf*t:t===gh?r=e.s+Pf:r=e.s+vw*t,r>1&&(r=1),n&&t===mh&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Af(e,t,n){var r;return n?r=e.v+bw*t:r=e.v-yw*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Ba(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Ot(e),o=r.toHsv(),a=mh;a>0;a-=1){var i=new Ot({h:Rf(o,a,!0),s:Df(o,a,!0),v:Af(o,a,!0)});n.push(i)}n.push(r);for(var l=1;l<=gh;l+=1){var s=new Ot({h:Rf(o,l),s:Df(o,l),v:Af(o,l)});n.push(s)}return t.theme==="dark"?xw.map(function(c){var d=c.index,f=c.amount;return new Ot(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(c){return c.toHexString()})}var as={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},oc=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];oc.primary=oc[5];var ac=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ac.primary=ac[5];var ic=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ic.primary=ic[5];var lc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];lc.primary=lc[5];var sc=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];sc.primary=sc[5];var cc=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];cc.primary=cc[5];var uc=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];uc.primary=uc[5];var dc=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];dc.primary=dc[5];var Ki=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ki.primary=Ki[5];var fc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];fc.primary=fc[5];var pc=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];pc.primary=pc[5];var mc=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];mc.primary=mc[5];var gc=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];gc.primary=gc[5];var is={red:oc,volcano:ac,orange:ic,gold:lc,yellow:sc,lime:cc,green:uc,cyan:dc,blue:Ki,geekblue:fc,purple:pc,magenta:mc,grey:gc};function Cw(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,d=t(l),f=t(r),p=t(o),v=t(a),h=t(i),g=n(s,c),m=e.colorLink||e.colorInfo,b=t(m),x=new Ot(v[1]).mix(new Ot(v[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:x,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Ot("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const ww=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function Ew(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},ww(r))}const Sw=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Pi(e){return(e+8)/e}function $w(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Pi(n)}))}const kw=e=>{const t=$w(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Ow(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Xn=(e,t)=>new Ot(e).setA(t).toRgbString(),ga=(e,t)=>new Ot(e).darken(t).toHexString(),Nw=e=>{const t=Ba(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Mw=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Xn(r,.88),colorTextSecondary:Xn(r,.65),colorTextTertiary:Xn(r,.45),colorTextQuaternary:Xn(r,.25),colorFill:Xn(r,.15),colorFillSecondary:Xn(r,.06),colorFillTertiary:Xn(r,.04),colorFillQuaternary:Xn(r,.02),colorBgSolid:Xn(r,1),colorBgSolidHover:Xn(r,.75),colorBgSolidActive:Xn(r,.95),colorBgLayout:ga(n,4),colorBgContainer:ga(n,0),colorBgElevated:ga(n,0),colorBgSpotlight:Xn(r,.85),colorBgBlur:"transparent",colorBorder:ga(n,15),colorBorderSecondary:ga(n,6)}};function Iw(e){as.pink=as.magenta,is.pink=is.magenta;const t=Object.keys(ph).map(n=>{const r=e[n]===as[n]?is[n]:Ba(e[n]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Cw(e,{generateColorPalettes:Nw,generateNeutralColorPalettes:Mw})),kw(e.fontSize)),Ow(e)),Sw(e)),Ew(e))}const hh=Js(Iw),hc={token:Ha,override:{override:Ha},hashed:!0},vh=ae.createContext(hc),za="ant",gl="anticon",jw=["outlined","borderless","filled","underlined"],Pw=(e,t)=>t||(e?`${za}-${e}`:za),Ct=u.createContext({getPrefixCls:Pw,iconPrefixCls:gl}),Tf={};function Mr(e){const t=u.useContext(Ct),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:Tf,styles:Tf},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const Rw=`-ant-${Date.now()}-${Math.random()}`;function Dw(e,t){const n={},r=(a,i)=>{let l=a.clone();return l=(i==null?void 0:i(l))||l,l.toRgbString()},o=(a,i)=>{const l=new Ot(a),s=Ba(l.toRgbString());n[`${i}-color`]=r(l),n[`${i}-color-disabled`]=s[1],n[`${i}-color-hover`]=s[4],n[`${i}-color-active`]=s[6],n[`${i}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${i}-color-deprecated-bg`]=s[0],n[`${i}-color-deprecated-border`]=s[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Ot(t.primaryColor),i=Ba(a.toRgbString());i.forEach((s,c)=>{n[`primary-${c+1}`]=s}),n["primary-color-deprecated-l-35"]=r(a,s=>s.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,s=>s.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,s=>s.tint(20)),n["primary-color-deprecated-t-50"]=r(a,s=>s.tint(50)),n["primary-color-deprecated-f-12"]=r(a,s=>s.setA(s.a*.12));const l=new Ot(i[0]);n["primary-color-active-deprecated-f-30"]=r(l,s=>s.setA(s.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,s=>s.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
103
|
+
:root {
|
|
104
|
+
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
105
|
+
`)}
|
|
106
|
+
}
|
|
107
|
+
`.trim()}function Aw(e,t){const n=Dw(e,t);Hn()&&kr(n,`${Rw}-dynamic-theme`)}const jn=u.createContext(!1),bh=({children:e,disabled:t})=>{const n=u.useContext(jn);return u.createElement(jn.Provider,{value:t??n},e)},mo=u.createContext(void 0),Tw=({children:e,size:t})=>{const n=u.useContext(mo);return u.createElement(mo.Provider,{value:t||n},e)};function Fw(){const e=Gt(jn),t=Gt(mo);return{componentDisabled:e,componentSize:t}}var yh=nn(function e(){tn(this,e)}),xh="CALC_UNIT",Hw=new RegExp(xh,"g");function ls(e){return typeof e=="number"?"".concat(e).concat(xh):e}var Bw=(function(e){Gr(n,e);var t=Qr(n);function n(r,o){var a;tn(this,n),a=t.call(this),q(xt(a),"result",""),q(xt(a),"unitlessCssVar",void 0),q(xt(a),"lowPriority",void 0);var i=Ze(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=ls(r):i==="string"&&(a.result=r),a}return nn(n,[{key:"add",value:function(r){return r instanceof n?this.result="".concat(this.result," + ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," + ").concat(ls(r))),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof n?this.result="".concat(this.result," - ").concat(r.getResult()):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," - ").concat(ls(r))),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," * ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," * ").concat(r)),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result="(".concat(this.result,")")),r instanceof n?this.result="".concat(this.result," / ").concat(r.getResult(!0)):(typeof r=="number"||typeof r=="string")&&(this.result="".concat(this.result," / ").concat(r)),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(r){var o=this,a=r||{},i=a.unit,l=!0;return typeof i=="boolean"?l=i:Array.from(this.unitlessCssVar).some(function(s){return o.result.includes(s)})&&(l=!1),this.result=this.result.replace(Hw,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(yh),zw=(function(e){Gr(n,e);var t=Qr(n);function n(r){var o;return tn(this,n),o=t.call(this),q(xt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return nn(n,[{key:"add",value:function(r){return r instanceof n?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof n?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof n?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof n?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),n})(yh),_w=function(e,t){var n=e==="css"?Bw:zw;return function(r){return new n(r,t)}},Ff=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function yt(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Qo(e){var t=u.useRef(!1),n=u.useState(e),r=Q(n,2),o=r[0],a=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(l,s){s&&t.current||a(l)}return[o,i]}function ss(e){return e!==void 0}function Jt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=Qo(function(){return ss(o)?o:ss(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=Q(l,2),c=s[0],d=s[1],f=o!==void 0?o:c,p=i?i(f):f,v=yt(a),h=Qo([f]),g=Q(h,2),m=g[0],b=g[1];Lo(function(){var y=m[0];c!==y&&v(c,y)},[m]),Lo(function(){ss(o)||d(o)},[o]);var x=yt(function(y,w){d(y,w),b([f],w)});return[p,x]}function Hf(e,t,n,r){var o=U({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(l){var s=Q(l,2),c=s[0],d=s[1];if(o!=null&&o[c]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[c])}})}var i=U(U({},n),o);return Object.keys(i).forEach(function(l){i[l]===t[l]&&delete i[l]}),i}var Ch=typeof CSSINJS_STATISTIC<"u",vc=!0;function At(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ch)return Object.assign.apply(Object,[{}].concat(t));vc=!1;var r={};return t.forEach(function(o){if(Ze(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),vc=!0,r}var Bf={};function Lw(){}var Ww=function(e){var t,n=e,r=Lw;return Ch&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get:function(o,a){if(vc){var i;(i=t)===null||i===void 0||i.add(a)}return o[a]}}),r=function(o,a){var i;Bf[o]={global:Array.from(t),component:U(U({},(i=Bf[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}};function zf(e,t,n){if(typeof n=="function"){var r;return n(At(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Vw(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"max(".concat(n.map(function(o){return me(o)}).join(","),")")},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return"min(".concat(n.map(function(o){return me(o)}).join(","),")")}}}var Kw=1e3*60*10,qw=(function(){function e(){tn(this,e),q(this,"map",new Map),q(this,"objectIDMap",new WeakMap),q(this,"nextID",0),q(this,"lastAccessBeat",new Map),q(this,"accessBeat",0)}return nn(e,[{key:"set",value:function(t,n){this.clear();var r=this.getCompositeKey(t);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(t){var n=this.getCompositeKey(t),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(t){var n=this,r=t.map(function(o){return o&&Ze(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Ze(o),"_").concat(o)});return r.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(r,o){n-r>Kw&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),_f=new qw;function Yw(e,t){return ae.useMemo(function(){var n=_f.get(t);if(n)return n;var r=e();return _f.set(t,r),r},t)}var Xw=function(){return{}};function Uw(e){var t=e.useCSP,n=t===void 0?Xw:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,l=e.getCompUnitless;function s(p,v,h,g){var m=Array.isArray(p)?p[0]:p;function b(k){return"".concat(String(m)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var x=(g==null?void 0:g.unitless)||{},y=typeof l=="function"?l(p):{},w=U(U({},y),{},q({},b("zIndexPopup"),!0));Object.keys(x).forEach(function(k){w[b(k)]=x[k]});var C=U(U({},g),{},{unitless:w,prefixToken:b}),S=d(p,v,h,C),$=c(m,h,C);return function(k){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,O=S(k,E),M=Q(O,2),N=M[1],T=$(E),P=Q(T,2),D=P[0],j=P[1];return[D,N,j]}}function c(p,v,h){var g=h.unitless,m=h.injectStyle,b=m===void 0?!0:m,x=h.prefixToken,y=h.ignore,w=function(S){var $=S.rootCls,k=S.cssVar,E=k===void 0?{}:k,O=r(),M=O.realToken;return iw({path:[p],prefix:E.prefix,key:E.key,unitless:g,ignore:y,token:M,scope:$},function(){var N=zf(p,M,v),T=Hf(p,M,N,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(N).forEach(function(P){T[x(P)]=T[P],delete T[P]}),T}),null},C=function(S){var $=r(),k=$.cssVar;return[function(E){return b&&k?ae.createElement(ae.Fragment,null,ae.createElement(w,{rootCls:S,cssVar:k,component:p}),E):E},k==null?void 0:k.key]};return C}function d(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(p)?p:[p,p],b=Q(m,1),x=b[0],y=m.join("-"),w=e.layer||{name:"antd"};return function(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,$=r(),k=$.theme,E=$.realToken,O=$.hashId,M=$.token,N=$.cssVar,T=o(),P=T.rootPrefixCls,D=T.iconPrefixCls,j=n(),B=N?"css":"js",I=Yw(function(){var F=new Set;return N&&Object.keys(g.unitless||{}).forEach(function(H){F.add(Oi(H,N.prefix)),F.add(Oi(H,Ff(x,N.prefix)))}),_w(B,F)},[B,x,N==null?void 0:N.prefix]),_=Vw(B),L=_.max,W=_.min,R={theme:k,token:M,hashId:O,nonce:function(){return j.nonce},clientOnly:g.clientOnly,layer:w,order:g.order||-999};typeof a=="function"&&rc(U(U({},R),{},{clientOnly:!1,path:["Shared",P]}),function(){return a(M,{prefix:{rootPrefixCls:P,iconPrefixCls:D},csp:j})});var A=rc(U(U({},R),{},{path:[y,C,D]}),function(){if(g.injectStyle===!1)return[];var F=Ww(M),H=F.token,z=F.flush,V=zf(x,E,h),K=".".concat(C),J=Hf(x,E,V,{deprecatedTokens:g.deprecatedTokens});N&&V&&Ze(V)==="object"&&Object.keys(V).forEach(function(X){V[X]="var(".concat(Oi(X,Ff(x,N.prefix)),")")});var Y=At(H,{componentCls:K,prefixCls:C,iconCls:".".concat(D),antCls:".".concat(P),calc:I,max:L,min:W},N?V:J),Z=v(Y,{hashId:O,prefixCls:C,rootPrefixCls:P,iconPrefixCls:D});z(x,J);var G=typeof i=="function"?i(Y,C,S,g.resetFont):null;return[g.resetStyle===!1?null:G,Z]});return[A,O]}}function f(p,v,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=d(p,v,h,U({resetStyle:!1,order:-998},g)),b=function(x){var y=x.prefixCls,w=x.rootCls,C=w===void 0?y:w;return m(y,C),null};return b}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:d}}const go=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Gw="5.27.6";function cs(e){return e>=0&&e<=255}function ya(e,t){const{r:n,g:r,b:o,a}=new Ot(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new Ot(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-i*(1-c))/c),f=Math.round((r-l*(1-c))/c),p=Math.round((o-s*(1-c))/c);if(cs(d)&&cs(f)&&cs(p))return new Ot({r:d,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new Ot({r:n,g:r,b:o,a:1}).toRgbString()}var Qw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function wh(e){const{override:t}=e,n=Qw(e,["override"]),r=Object.assign({},t);Object.keys(Ha).forEach(f=>{delete r[f]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,l=768,s=992,c=1200,d=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ya(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:ya(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ya(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:ya(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
108
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
109
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
110
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
111
|
+
`,boxShadowSecondary:`
|
|
112
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
113
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
114
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
115
|
+
`,boxShadowTertiary:`
|
|
116
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
117
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
118
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
119
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
120
|
+
0 1px 2px -2px ${new Ot("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
121
|
+
0 3px 6px 0 ${new Ot("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
122
|
+
0 5px 12px 4px ${new Ot("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
123
|
+
`,boxShadowDrawerRight:`
|
|
124
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
125
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
126
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
127
|
+
`,boxShadowDrawerLeft:`
|
|
128
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
129
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
130
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
131
|
+
`,boxShadowDrawerUp:`
|
|
132
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
133
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
134
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
135
|
+
`,boxShadowDrawerDown:`
|
|
136
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
137
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
138
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
139
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Lf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Eh={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Zw={motionBase:!0,motionUnit:!0},Jw={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Sh=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Lf(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=wh(i),a&&Object.entries(a).forEach(([l,s])=>{const{theme:c}=s,d=Lf(s,["theme"]);let f=d;c&&(f=Sh(Object.assign(Object.assign({},i),d),{override:d},c)),i[l]=f}),i};function rr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=ae.useContext(vh),a=`${Gw}-${t||""}`,i=n||hh,[l,s,c]=PC(i,[Ha,e],{salt:a,override:r,getComputedToken:Sh,formatToken:wh,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Eh,ignore:Zw,preserve:Jw}});return[i,c,t?s:"",l,o]}const qi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},en=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Ga=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),eE=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),tE=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),nE=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},l),i),{[o]:i})}},zu=(e,t)=>({outline:`${me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),$h=(e,t)=>({"&:focus-visible":zu(e)}),kh=e=>({[`.${e}`]:Object.assign(Object.assign({},Ga()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:un,genComponentStyleHook:rE,genSubStyleComponent:hl}=Uw({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=Gt(Ct);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=rr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=Gt(Ct);return e??{}},getResetStyles:(e,t)=>{var n;const r=tE(e);return[r,{"&":r},kh((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:gl)]},getCommonStyle:nE,getCompUnitless:()=>Eh});function vl(e,t){return go.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}const oE=(e,t)=>{const[n,r]=rr();return rc({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>kh(e))},aE=Object.assign({},u),{useId:Wf}=aE,iE=()=>"",lE=typeof Wf>"u"?iE:Wf;function sE(e,t,n){var r;ml();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},hc),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:hc.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=lE();return cl(()=>{var l,s;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{c[p]=Object.assign(Object.assign({},c[p]),e.components[p])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((s=o.cssVar)===null||s===void 0?void 0:s.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(l,s)=>l.some((c,d)=>{const f=s[d];return!Wi(c,f,!0)}))}var cE=["children"],Oh=u.createContext({});function uE(e){var t=e.children,n=pt(e,cE);return u.createElement(Oh.Provider,{value:n},t)}var dE=(function(e){Gr(n,e);var t=Qr(n);function n(){return tn(this,n),t.apply(this,arguments)}return nn(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function fE(e){var t=u.useReducer(function(l){return l+1},0),n=Q(t,2),r=n[1],o=u.useRef(e),a=yt(function(){return o.current}),i=yt(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[a,i]}var Tr="none",si="appear",ci="enter",ui="leave",Vf="none",lr="prepare",Bo="start",zo="active",_u="end",Nh="prepared";function Kf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function pE(e,t){var n={animationend:Kf("Animation","AnimationEnd"),transitionend:Kf("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var mE=pE(Hn(),typeof window<"u"?window:{}),Mh={};if(Hn()){var gE=document.createElement("div");Mh=gE.style}var di={};function Ih(e){if(di[e])return di[e];var t=mE[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Mh)return di[e]=t[a],di[e]}return""}var jh=Ih("animationend"),Ph=Ih("transitionend"),Rh=!!(jh&&Ph),qf=jh||"animationend",Yf=Ph||"transitionend";function Xf(e,t){if(!e)return null;if(Ze(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const hE=(function(e){var t=qe();function n(o){o&&(o.removeEventListener(Yf,e),o.removeEventListener(qf,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Yf,e),o.addEventListener(qf,e),t.current=o)}return u.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var Dh=Hn()?Hb:It;const vE=(function(){var e=u.useRef(null);function t(){ft.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=ft(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return u.useEffect(function(){return function(){t()}},[]),[n,t]});var bE=[lr,Bo,zo,_u],yE=[lr,Nh],Ah=!1,xE=!0;function Th(e){return e===zo||e===_u}const CE=(function(e,t,n){var r=Qo(Vf),o=Q(r,2),a=o[0],i=o[1],l=vE(),s=Q(l,2),c=s[0],d=s[1];function f(){i(lr,!0)}var p=t?yE:bE;return Dh(function(){if(a!==Vf&&a!==_u){var v=p.indexOf(a),h=p[v+1],g=n(a);g===Ah?i(h,!0):h&&c(function(m){function b(){m.isCanceled()||i(h,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,a]),u.useEffect(function(){return function(){d()}},[]),[f,a]});function wE(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,c=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,x=r.onAppearActive,y=r.onEnterActive,w=r.onLeaveActive,C=r.onAppearEnd,S=r.onEnterEnd,$=r.onLeaveEnd,k=r.onVisibleChanged,E=Qo(),O=Q(E,2),M=O[0],N=O[1],T=fE(Tr),P=Q(T,2),D=P[0],j=P[1],B=Qo(null),I=Q(B,2),_=I[0],L=I[1],W=D(),R=qe(!1),A=qe(null);function F(){return n()}var H=qe(!1);function z(){j(Tr),L(null,!0)}var V=yt(function(ue){var we=D();if(we!==Tr){var le=F();if(!(ue&&!ue.deadline&&ue.target!==le)){var pe=H.current,Ne;we===si&&pe?Ne=C==null?void 0:C(le,ue):we===ci&&pe?Ne=S==null?void 0:S(le,ue):we===ui&&pe&&(Ne=$==null?void 0:$(le,ue)),pe&&Ne!==!1&&z()}}}),K=hE(V),J=Q(K,1),Y=J[0],Z=function(ue){switch(ue){case si:return q(q(q({},lr,p),Bo,g),zo,x);case ci:return q(q(q({},lr,v),Bo,m),zo,y);case ui:return q(q(q({},lr,h),Bo,b),zo,w);default:return{}}},G=u.useMemo(function(){return Z(W)},[W]),X=CE(W,!e,function(ue){if(ue===lr){var we=G[lr];return we?we(F()):Ah}if(ee in G){var le;L(((le=G[ee])===null||le===void 0?void 0:le.call(G,F(),null))||null)}return ee===zo&&W!==Tr&&(Y(F()),d>0&&(clearTimeout(A.current),A.current=setTimeout(function(){V({deadline:!0})},d))),ee===Nh&&z(),xE}),ne=Q(X,2),te=ne[0],ee=ne[1],se=Th(ee);H.current=se;var de=qe(null);Dh(function(){if(!(R.current&&de.current===t)){N(t);var ue=R.current;R.current=!0;var we;!ue&&t&&l&&(we=si),ue&&t&&a&&(we=ci),(ue&&!t&&c||!ue&&f&&!t&&c)&&(we=ui);var le=Z(we);we&&(e||le[lr])?(j(we),te()):j(Tr),de.current=t}},[t]),It(function(){(W===si&&!l||W===ci&&!a||W===ui&&!c)&&j(Tr)},[l,a,c]),It(function(){return function(){R.current=!1,clearTimeout(A.current)}},[]);var ge=u.useRef(!1);It(function(){M&&(ge.current=!0),M!==void 0&&W===Tr&&((ge.current||M)&&(k==null||k(M)),ge.current=!0)},[M,W]);var ve=_;return G[lr]&&ee===Bo&&(ve=U({transition:"none"},ve)),[W,ee,ve,M??t]}function EE(e){var t=e;Ze(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=u.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,s=o.removeOnLeave,c=s===void 0?!0:s,d=o.forceRender,f=o.children,p=o.motionName,v=o.leavedClassName,h=o.eventProps,g=u.useContext(Oh),m=g.motion,b=n(o,m),x=qe(),y=qe();function w(){try{return x.current instanceof HTMLElement?x.current:ki(y.current)}catch{return null}}var C=wE(b,l,w,o),S=Q(C,4),$=S[0],k=S[1],E=S[2],O=S[3],M=u.useRef(O);O&&(M.current=!0);var N=u.useCallback(function(I){x.current=I,Mu(a,I)},[a]),T,P=U(U({},h),{},{visible:l});if(!f)T=null;else if($===Tr)O?T=f(U({},P),N):!c&&M.current&&v?T=f(U(U({},P),{},{className:v}),N):d||!c&&!v?T=f(U(U({},P),{},{style:{display:"none"}}),N):T=null;else{var D;k===lr?D="prepare":Th(k)?D="active":k===Bo&&(D="start");var j=Xf(p,"".concat($,"-").concat(D));T=f(U(U({},P),{},{className:ce(Xf(p,$),q(q({},j,j&&D),p,typeof p=="string")),style:E}),N)}if(u.isValidElement(T)&&Jo(T)){var B=Xa(T);B||(T=u.cloneElement(T,{ref:N}))}return u.createElement(dE,{ref:y},T)});return r.displayName="CSSMotion",r}const Co=EE(Rh);var bc="add",yc="keep",xc="remove",us="removed";function SE(e){var t;return e&&Ze(e)==="object"&&"key"in e?t=e:t={key:e},U(U({},t),{},{key:String(t.key)})}function Cc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(SE)}function $E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=Cc(e),i=Cc(t);a.forEach(function(c){for(var d=!1,f=r;f<o;f+=1){var p=i[f];if(p.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(v){return U(U({},v),{},{status:bc})})),r=f),n.push(U(U({},p),{},{status:yc})),r+=1,d=!0;break}}d||n.push(U(U({},c),{},{status:xc}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return U(U({},c),{},{status:bc})})));var l={};n.forEach(function(c){var d=c.key;l[d]=(l[d]||0)+1});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(d){var f=d.key,p=d.status;return f!==c||p!==xc}),n.forEach(function(d){d.key===c&&(d.status=yc)})}),n}var kE=["component","children","onVisibleChanged","onAllRemoved"],OE=["status"],NE=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ME(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Co,n=(function(r){Gr(a,r);var o=Qr(a);function a(){var i;tn(this,a);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return i=o.call.apply(o,[this].concat(s)),q(xt(i),"state",{keyEntities:[]}),q(xt(i),"removeKey",function(d){i.setState(function(f){var p=f.keyEntities.map(function(v){return v.key!==d?v:U(U({},v),{},{status:us})});return{keyEntities:p}},function(){var f=i.state.keyEntities,p=f.filter(function(v){var h=v.status;return h!==us}).length;p===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return nn(a,[{key:"render",value:function(){var i=this,l=this.state.keyEntities,s=this.props,c=s.component,d=s.children,f=s.onVisibleChanged,p=pt(s,kE),v=c||u.Fragment,h={};return NE.forEach(function(g){h[g]=p[g],delete p[g]}),delete p.keys,u.createElement(v,p,l.map(function(g,m){var b=g.status,x=pt(g,OE),y=b===bc||b===yc;return u.createElement(t,Te({},h,{key:x.key,visible:y,eventProps:x,onVisibleChanged:function(w){f==null||f(w,{key:x.key}),w||i.removeKey(x.key)}}),function(w,C){return d(U(U({},w),{},{index:m}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(i,l){var s=i.keys,c=l.keyEntities,d=Cc(s),f=$E(c,d);return{keyEntities:f.filter(function(p){var v=c.find(function(h){var g=h.key;return p.key===g});return!(v&&v.status===us&&p.status===xc)})}}}]),a})(u.Component);return q(n,"defaultProps",{component:"div"}),n}const Fh=ME(Rh),Uf=u.createContext(!0);function IE(e){const t=u.useContext(Uf),{children:n}=e,[,r]=rr(),{motion:o}=r,a=u.useRef(!1);return a.current||(a.current=t!==o),a.current?u.createElement(Uf.Provider,{value:o},u.createElement(uE,{motion:o},n)):n}const jE=()=>null;var PE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const RE=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Lu,Hh,Bh,zh;function Ri(){return Lu||za}function DE(){return Hh||gl}function AE(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const TE=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Lu=t),n!==void 0&&(Hh=n),"holderRender"in e&&(zh=o),r&&(AE(r)?Aw(Ri(),r):Bh=r)},FE=()=>({getPrefixCls:(e,t)=>t||(e?`${Ri()}-${e}`:Ri()),getIconPrefixCls:DE,getRootPrefixCls:()=>Lu||Ri(),getTheme:()=>Bh,holderRender:zh}),HE=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:s,direction:c,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:m,parentContext:b,iconPrefixCls:x,theme:y,componentDisabled:w,segmented:C,statistic:S,spin:$,calendar:k,carousel:E,cascader:O,collapse:M,typography:N,checkbox:T,descriptions:P,divider:D,drawer:j,skeleton:B,steps:I,image:_,layout:L,list:W,mentions:R,modal:A,progress:F,result:H,slider:z,breadcrumb:V,menu:K,pagination:J,input:Y,textArea:Z,empty:G,badge:X,radio:ne,rate:te,switch:ee,transfer:se,avatar:de,message:ge,tag:ve,table:ue,card:we,tabs:le,timeline:pe,timePicker:Ne,upload:re,notification:ke,tree:Se,colorPicker:Me,datePicker:Pe,rangePicker:be,flex:ie,wave:ye,dropdown:xe,warning:Ce,tour:De,tooltip:fe,popover:Ge,popconfirm:ot,floatButton:it,floatButtonGroup:mt,variant:Re,inputNumber:He,treeSelect:Ae}=e,Ye=u.useCallback((Je,at)=>{const{prefixCls:gt}=e;if(at)return at;const bt=gt||b.getPrefixCls("");return Je?`${bt}-${Je}`:bt},[b.getPrefixCls,e.prefixCls]),Xe=x||b.iconPrefixCls||gl,st=n||b.csp;oE(Xe,st);const ut=sE(y,b.theme,{prefixCls:Ye("")}),Ve={csp:st,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||m,direction:c,space:d,splitter:f,virtual:p,popupMatchSelectWidth:h??v,popupOverflow:g,getPrefixCls:Ye,iconPrefixCls:Xe,theme:ut,segmented:C,statistic:S,spin:$,calendar:k,carousel:E,cascader:O,collapse:M,typography:N,checkbox:T,descriptions:P,divider:D,drawer:j,skeleton:B,steps:I,image:_,input:Y,textArea:Z,layout:L,list:W,mentions:R,modal:A,progress:F,result:H,slider:z,breadcrumb:V,menu:K,pagination:J,empty:G,badge:X,radio:ne,rate:te,switch:ee,transfer:se,avatar:de,message:ge,tag:ve,table:ue,card:we,tabs:le,timeline:pe,timePicker:Ne,upload:re,notification:ke,tree:Se,colorPicker:Me,datePicker:Pe,rangePicker:be,flex:ie,wave:ye,dropdown:xe,warning:Ce,tour:De,tooltip:fe,popover:Ge,popconfirm:ot,floatButton:it,floatButtonGroup:mt,variant:Re,inputNumber:He,treeSelect:Ae},nt=Object.assign({},b);Object.keys(Ve).forEach(Je=>{Ve[Je]!==void 0&&(nt[Je]=Ve[Je])}),RE.forEach(Je=>{const at=e[Je];at&&(nt[Je]=at)}),typeof r<"u"&&(nt.button=Object.assign({autoInsertSpace:r},nt.button));const ct=cl(()=>nt,nt,(Je,at)=>{const gt=Object.keys(Je),bt=Object.keys(at);return gt.length!==bt.length||gt.some(dt=>Je[dt]!==at[dt])}),{layer:je}=u.useContext(Ua),Ee=u.useMemo(()=>({prefixCls:Xe,csp:st,layer:je?"antd":void 0}),[Xe,st,je]);let he=u.createElement(u.Fragment,null,u.createElement(jE,{dropdownMatchSelectWidth:v}),t);const Oe=u.useMemo(()=>{var Je,at,gt,bt;return Ho(((Je=Kr.Form)===null||Je===void 0?void 0:Je.defaultValidateMessages)||{},((gt=(at=ct.locale)===null||at===void 0?void 0:at.Form)===null||gt===void 0?void 0:gt.defaultValidateMessages)||{},((bt=ct.form)===null||bt===void 0?void 0:bt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ct,i==null?void 0:i.validateMessages]);Object.keys(Oe).length>0&&(he=u.createElement(dh.Provider,{value:Oe},he)),l&&(he=u.createElement(hw,{locale:l,_ANT_MARK__:gw},he)),he=u.createElement(Hu.Provider,{value:Ee},he),s&&(he=u.createElement(Tw,{size:s},he)),he=u.createElement(IE,null,he);const We=u.useMemo(()=>{const Je=ut||{},{algorithm:at,token:gt,components:bt,cssVar:dt}=Je,Rt=PE(Je,["algorithm","token","components","cssVar"]),Mt=at&&(!Array.isArray(at)||at.length>0)?Js(at):hh,ht={};Object.entries(bt||{}).forEach(([Ft,rn])=>{const Ie=Object.assign({},rn);"algorithm"in Ie&&(Ie.algorithm===!0?Ie.theme=Mt:(Array.isArray(Ie.algorithm)||typeof Ie.algorithm=="function")&&(Ie.theme=Js(Ie.algorithm)),delete Ie.algorithm),ht[Ft]=Ie});const Tt=Object.assign(Object.assign({},Ha),gt);return Object.assign(Object.assign({},Rt),{theme:Mt,token:Tt,components:ht,override:Object.assign({override:Tt},ht),cssVar:dt})},[ut]);return y&&(he=u.createElement(vh.Provider,{value:We},he)),ct.warning&&(he=u.createElement(uw.Provider,{value:ct.warning},he)),w!==void 0&&(he=u.createElement(bh,{disabled:w},he)),u.createElement(Ct.Provider,{value:ct},he)},Zr=e=>{const t=u.useContext(Ct),n=u.useContext(Bu);return u.createElement(HE,Object.assign({parentContext:t,legacyLocale:n},e))};Zr.ConfigContext=Ct;Zr.SizeContext=mo;Zr.config=TE;Zr.useConfig=Fw;Object.defineProperty(Zr,"SizeContext",{get:()=>mo});var BE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function _h(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function zE(e){return _h(e)instanceof ShadowRoot}function Yi(e){return zE(e)?_h(e):null}function _E(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function LE(e,t){xn(e,"[@ant-design/icons] ".concat(t))}function Gf(e){return Ze(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ze(e.icon)==="object"||typeof e.icon=="function")}function Qf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[_E(n)]=r}return t},{})}function wc(e,t,n){return n?ae.createElement(e.tag,U(U({key:t},Qf(e.attrs)),n),(e.children||[]).map(function(r,o){return wc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ae.createElement(e.tag,U({key:t},Qf(e.attrs)),(e.children||[]).map(function(r,o){return wc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Lh(e){return Ba(e)[0]}function Wh(e){return e?Array.isArray(e)?e:[e]:[]}var WE=`
|
|
140
|
+
.anticon {
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
color: inherit;
|
|
144
|
+
font-style: normal;
|
|
145
|
+
line-height: 0;
|
|
146
|
+
text-align: center;
|
|
147
|
+
text-transform: none;
|
|
148
|
+
vertical-align: -0.125em;
|
|
149
|
+
text-rendering: optimizeLegibility;
|
|
150
|
+
-webkit-font-smoothing: antialiased;
|
|
151
|
+
-moz-osx-font-smoothing: grayscale;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.anticon > * {
|
|
155
|
+
line-height: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.anticon svg {
|
|
159
|
+
display: inline-block;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.anticon::before {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.anticon .anticon-icon {
|
|
167
|
+
display: block;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.anticon[tabindex] {
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.anticon-spin::before,
|
|
175
|
+
.anticon-spin {
|
|
176
|
+
display: inline-block;
|
|
177
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
178
|
+
animation: loadingCircle 1s infinite linear;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@-webkit-keyframes loadingCircle {
|
|
182
|
+
100% {
|
|
183
|
+
-webkit-transform: rotate(360deg);
|
|
184
|
+
transform: rotate(360deg);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@keyframes loadingCircle {
|
|
189
|
+
100% {
|
|
190
|
+
-webkit-transform: rotate(360deg);
|
|
191
|
+
transform: rotate(360deg);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
`,VE=function(e){var t=Gt(Hu),n=t.csp,r=t.prefixCls,o=t.layer,a=WE;r&&(a=a.replace(/anticon/g,r)),o&&(a="@layer ".concat(o,` {
|
|
195
|
+
`).concat(a,`
|
|
196
|
+
}`)),It(function(){var i=e.current,l=Yi(i);kr(a,"@ant-design-icons",{prepend:!o,csp:n,attachTo:l})},[])},KE=["icon","className","onClick","style","primaryColor","secondaryColor"],ka={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qE(e){var t=e.primaryColor,n=e.secondaryColor;ka.primaryColor=t,ka.secondaryColor=n||Lh(t),ka.calculated=!!n}function YE(){return U({},ka)}var ta=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,a=e.primaryColor,i=e.secondaryColor,l=pt(e,KE),s=u.useRef(),c=ka;if(a&&(c={primaryColor:a,secondaryColor:i||Lh(a)}),VE(s),LE(Gf(t),"icon should be icon definiton, but got ".concat(t)),!Gf(t))return null;var d=t;return d&&typeof d.icon=="function"&&(d=U(U({},d),{},{icon:d.icon(c.primaryColor,c.secondaryColor)})),wc(d.icon,"svg-".concat(d.name),U(U({className:n,onClick:r,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:s}))};ta.displayName="IconReact";ta.getTwoToneColors=YE;ta.setTwoToneColors=qE;function Vh(e){var t=Wh(e),n=Q(t,2),r=n[0],o=n[1];return ta.setTwoToneColors({primaryColor:r,secondaryColor:o})}function XE(){var e=ta.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var UE=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Vh(Ki.primary);var vn=u.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=pt(e,UE),d=u.useContext(Hu),f=d.prefixCls,p=f===void 0?"anticon":f,v=d.rootClassName,h=ce(v,p,q(q({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),g=i;g===void 0&&l&&(g=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Wh(s),x=Q(b,2),y=x[0],w=x[1];return u.createElement("span",Te({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:l,className:h}),u.createElement(ta,{icon:r,primaryColor:y,secondaryColor:w,style:m}))});vn.displayName="AntdIcon";vn.getTwoToneColor=XE;vn.setTwoToneColor=Vh;var GE=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:BE}))},Kh=u.forwardRef(GE),QE={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},ZE=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:QE}))},bl=u.forwardRef(ZE),JE={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},eS=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:JE}))},Wu=u.forwardRef(eS),tS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},nS=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:tS}))},qh=u.forwardRef(nS),rS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},oS=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:rS}))},aS=u.forwardRef(oS),iS=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
197
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
198
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
199
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
200
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
201
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
202
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
203
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
204
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
205
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
206
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
207
|
+
summary tabIndex target title type useMap value width wmode wrap`,lS=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
208
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
209
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
210
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
211
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
212
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
213
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,sS="".concat(iS," ").concat(lS).split(/[\s\n]+/),cS="aria-",uS="data-";function Zf(e,t){return e.indexOf(t)===0}function ur(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=U({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Zf(o,cS))||n.data&&Zf(o,uS)||n.attr&&sS.includes(o))&&(r[o]=e[o])}),r}function Yh(e){return e&&ae.isValidElement(e)&&e.type===ae.Fragment}const Xh=(e,t,n)=>ae.isValidElement(e)?ae.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function qr(e,t){return Xh(e,e,t)}const Jf=e=>typeof e=="object"&&e!=null&&e.nodeType===1,ep=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",fi=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return ep(n.overflowY,t)||ep(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},pi=(e,t,n,r,o,a,i,l)=>a<e&&i>t||a>e&&i<t?0:a<=e&&l<=n||i>=t&&l>=n?a-e-r:i>t&&l<n||a<e&&l>n?i-t+o:0,dS=e=>e.parentElement??(e.getRootNode().host||null),tp=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:s,boundary:c,skipOverflowHiddenElements:d}=t,f=typeof c=="function"?c:j=>j!==c;if(!Jf(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,v=[];let h=e;for(;Jf(h)&&f(h);){if(h=dS(h),h===p){v.push(h);break}h!=null&&h===document.body&&fi(h)&&!fi(document.documentElement)||h!=null&&fi(h,d)&&v.push(h)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,m=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:x}=window,{height:y,width:w,top:C,right:S,bottom:$,left:k}=e.getBoundingClientRect(),{top:E,right:O,bottom:M,left:N}=(j=>{const B=window.getComputedStyle(j);return{top:parseFloat(B.scrollMarginTop)||0,right:parseFloat(B.scrollMarginRight)||0,bottom:parseFloat(B.scrollMarginBottom)||0,left:parseFloat(B.scrollMarginLeft)||0}})(e);let T=l==="start"||l==="nearest"?C-E:l==="end"?$+M:C+y/2-E+M,P=s==="center"?k+w/2-N+O:s==="end"?S+O:k-N;const D=[];for(let j=0;j<v.length;j++){const B=v[j],{height:I,width:_,top:L,right:W,bottom:R,left:A}=B.getBoundingClientRect();if(i==="if-needed"&&C>=0&&k>=0&&$<=m&&S<=g&&(B===p&&!fi(B)||C>=L&&$<=R&&k>=A&&S<=W))return D;const F=getComputedStyle(B),H=parseInt(F.borderLeftWidth,10),z=parseInt(F.borderTopWidth,10),V=parseInt(F.borderRightWidth,10),K=parseInt(F.borderBottomWidth,10);let J=0,Y=0;const Z="offsetWidth"in B?B.offsetWidth-B.clientWidth-H-V:0,G="offsetHeight"in B?B.offsetHeight-B.clientHeight-z-K:0,X="offsetWidth"in B?B.offsetWidth===0?0:_/B.offsetWidth:0,ne="offsetHeight"in B?B.offsetHeight===0?0:I/B.offsetHeight:0;if(p===B)J=l==="start"?T:l==="end"?T-m:l==="nearest"?pi(x,x+m,m,z,K,x+T,x+T+y,y):T-m/2,Y=s==="start"?P:s==="center"?P-g/2:s==="end"?P-g:pi(b,b+g,g,H,V,b+P,b+P+w,w),J=Math.max(0,J+x),Y=Math.max(0,Y+b);else{J=l==="start"?T-L-z:l==="end"?T-R+K+G:l==="nearest"?pi(L,R,I,z,K+G,T,T+y,y):T-(L+I/2)+G/2,Y=s==="start"?P-A-H:s==="center"?P-(A+_/2)+Z/2:s==="end"?P-W+V+Z:pi(A,W,_,H,V+Z,P,P+w,w);const{scrollLeft:te,scrollTop:ee}=B;J=ne===0?0:Math.max(0,Math.min(ee+J/ne,B.scrollHeight-I/ne+G)),Y=X===0?0:Math.max(0,Math.min(te+Y/X,B.scrollWidth-_/X+Z)),T+=ee-J,P+=te-Y}D.push({el:B,top:J,left:Y})}return D},fS=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function pS(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(tp(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of tp(e,fS(t))){const l=a-n.top+n.bottom,s=i-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const qn=e=>{const[,,,,t]=rr();return t?`${e}-css-var`:""};var Qe={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Uh=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,l=e.showProgress,s=e.pauseOnHover,c=s===void 0?!0:s,d=e.eventKey,f=e.content,p=e.closable,v=e.closeIcon,h=v===void 0?"x":v,g=e.props,m=e.onClick,b=e.onNoticeClose,x=e.times,y=e.hovering,w=u.useState(!1),C=Q(w,2),S=C[0],$=C[1],k=u.useState(0),E=Q(k,2),O=E[0],M=E[1],N=u.useState(0),T=Q(N,2),P=T[0],D=T[1],j=y||S,B=i>0&&l,I=function(){b(d)},_=function(F){(F.key==="Enter"||F.code==="Enter"||F.keyCode===Qe.ENTER)&&I()};u.useEffect(function(){if(!j&&i>0){var F=Date.now()-P,H=setTimeout(function(){I()},i*1e3-P);return function(){c&&clearTimeout(H),D(Date.now()-F)}}},[i,j,x]),u.useEffect(function(){if(!j&&B&&(c||P===0)){var F=performance.now(),H,z=function V(){cancelAnimationFrame(H),H=requestAnimationFrame(function(K){var J=K+P-F,Y=Math.min(J/(i*1e3),1);M(Y*100),Y<1&&V()})};return z(),function(){c&&cancelAnimationFrame(H)}}},[i,P,j,B,x]);var L=u.useMemo(function(){return Ze(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),W=ur(L,!0),R=100-(!O||O<0?0:O>100?100:O),A="".concat(n,"-notice");return u.createElement("div",Te({},g,{ref:t,className:ce(A,o,q({},"".concat(A,"-closable"),p)),style:r,onMouseEnter:function(F){var H;$(!0),g==null||(H=g.onMouseEnter)===null||H===void 0||H.call(g,F)},onMouseLeave:function(F){var H;$(!1),g==null||(H=g.onMouseLeave)===null||H===void 0||H.call(g,F)},onClick:m}),u.createElement("div",{className:"".concat(A,"-content")},f),p&&u.createElement("a",Te({tabIndex:0,className:"".concat(A,"-close"),onKeyDown:_,"aria-label":"Close"},W,{onClick:function(F){F.preventDefault(),F.stopPropagation(),I()}}),L.closeIcon),B&&u.createElement("progress",{className:"".concat(A,"-progress"),max:"100",value:R},R+"%"))}),Gh=ae.createContext({}),mS=function(e){var t=e.children,n=e.classNames;return ae.createElement(Gh.Provider,{value:{classNames:n}},t)},np=8,rp=3,op=16,gS=function(e){var t={offset:np,threshold:rp,gap:op};if(e&&Ze(e)==="object"){var n,r,o;t.offset=(n=e.offset)!==null&&n!==void 0?n:np,t.threshold=(r=e.threshold)!==null&&r!==void 0?r:rp,t.gap=(o=e.gap)!==null&&o!==void 0?o:op}return[!!e,t]},hS=["className","style","classNames","styles"],vS=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,a=e.style,i=e.motion,l=e.onAllNoticeRemoved,s=e.onNoticeClose,c=e.stack,d=Gt(Gh),f=d.classNames,p=qe({}),v=Pt(null),h=Q(v,2),g=h[0],m=h[1],b=Pt([]),x=Q(b,2),y=x[0],w=x[1],C=t.map(function(D){return{config:D,key:String(D.key)}}),S=gS(c),$=Q(S,2),k=$[0],E=$[1],O=E.offset,M=E.threshold,N=E.gap,T=k&&(y.length>0||C.length<=M),P=typeof i=="function"?i(n):i;return It(function(){k&&y.length>1&&w(function(D){return D.filter(function(j){return C.some(function(B){var I=B.key;return j===I})})})},[y,C,k]),It(function(){var D;if(k&&p.current[(D=C[C.length-1])===null||D===void 0?void 0:D.key]){var j;m(p.current[(j=C[C.length-1])===null||j===void 0?void 0:j.key])}},[C,k]),ae.createElement(Fh,Te({key:n,className:ce(r,"".concat(r,"-").concat(n),f==null?void 0:f.list,o,q(q({},"".concat(r,"-stack"),!!k),"".concat(r,"-stack-expanded"),T)),style:a,keys:C,motionAppear:!0},P,{onAllRemoved:function(){l(n)}}),function(D,j){var B=D.config,I=D.className,_=D.style,L=D.index,W=B,R=W.key,A=W.times,F=String(R),H=B,z=H.className,V=H.style,K=H.classNames,J=H.styles,Y=pt(H,hS),Z=C.findIndex(function(le){return le.key===F}),G={};if(k){var X=C.length-1-(Z>-1?Z:L-1),ne=n==="top"||n==="bottom"?"-50%":"0";if(X>0){var te,ee,se;G.height=T?(te=p.current[F])===null||te===void 0?void 0:te.offsetHeight:g==null?void 0:g.offsetHeight;for(var de=0,ge=0;ge<X;ge++){var ve;de+=((ve=p.current[C[C.length-1-ge].key])===null||ve===void 0?void 0:ve.offsetHeight)+N}var ue=(T?de:X*O)*(n.startsWith("top")?1:-1),we=!T&&g!==null&&g!==void 0&&g.offsetWidth&&(ee=p.current[F])!==null&&ee!==void 0&&ee.offsetWidth?((g==null?void 0:g.offsetWidth)-O*2*(X<3?X:3))/((se=p.current[F])===null||se===void 0?void 0:se.offsetWidth):1;G.transform="translate3d(".concat(ne,", ").concat(ue,"px, 0) scaleX(").concat(we,")")}else G.transform="translate3d(".concat(ne,", 0, 0)")}return ae.createElement("div",{ref:j,className:ce("".concat(r,"-notice-wrapper"),I,K==null?void 0:K.wrapper),style:U(U(U({},_),G),J==null?void 0:J.wrapper),onMouseEnter:function(){return w(function(le){return le.includes(F)?le:[].concat($e(le),[F])})},onMouseLeave:function(){return w(function(le){return le.filter(function(pe){return pe!==F})})}},ae.createElement(Uh,Te({},Y,{ref:function(le){Z>-1?p.current[F]=le:delete p.current[F]},prefixCls:r,classNames:K,styles:J,className:ce(z,f==null?void 0:f.notice),style:V,times:A,key:R,eventKey:R,onNoticeClose:s,hovering:k&&y.length>0})))})},bS=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=u.useState([]),v=Q(p,2),h=v[0],g=v[1],m=function(k){var E,O=h.find(function(M){return M.key===k});O==null||(E=O.onClose)===null||E===void 0||E.call(O),g(function(M){return M.filter(function(N){return N.key!==k})})};u.useImperativeHandle(t,function(){return{open:function(k){g(function(E){var O=$e(E),M=O.findIndex(function(P){return P.key===k.key}),N=U({},k);if(M>=0){var T;N.times=(((T=E[M])===null||T===void 0?void 0:T.times)||0)+1,O[M]=N}else N.times=0,O.push(N);return i>0&&O.length>i&&(O=O.slice(-i)),O})},close:function(k){m(k)},destroy:function(){g([])}}});var b=u.useState({}),x=Q(b,2),y=x[0],w=x[1];u.useEffect(function(){var k={};h.forEach(function(E){var O=E.placement,M=O===void 0?"topRight":O;M&&(k[M]=k[M]||[],k[M].push(E))}),Object.keys(y).forEach(function(E){k[E]=k[E]||[]}),w(k)},[h]);var C=function(k){w(function(E){var O=U({},E),M=O[k]||[];return M.length||delete O[k],O})},S=u.useRef(!1);if(u.useEffect(function(){Object.keys(y).length>0?S.current=!0:S.current&&(c==null||c(),S.current=!1)},[y]),!o)return null;var $=Object.keys(y);return ng(u.createElement(u.Fragment,null,$.map(function(k){var E=y[k],O=u.createElement(vS,{key:k,configList:E,placement:k,prefixCls:r,className:l==null?void 0:l(k),style:s==null?void 0:s(k),motion:a,onNoticeClose:m,onAllNoticeRemoved:C,stack:d});return f?f(O,{prefixCls:r,key:k}):O})),o)}),yS=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],xS=function(){return document.body},ap=0;function CS(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function wS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?xS:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,d=e.renderNotifications,f=pt(e,yS),p=u.useState(),v=Q(p,2),h=v[0],g=v[1],m=u.useRef(),b=u.createElement(bS,{container:h,ref:m,prefixCls:o,motion:r,maxCount:a,className:i,style:l,onAllRemoved:s,stack:c,renderNotifications:d}),x=u.useState([]),y=Q(x,2),w=y[0],C=y[1],S=yt(function(k){var E=CS(f,k);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(ap),ap+=1),C(function(O){return[].concat($e(O),[{type:"open",config:E}])})}),$=u.useMemo(function(){return{open:S,close:function(k){C(function(E){return[].concat($e(E),[{type:"close",key:k}])})},destroy:function(){C(function(k){return[].concat($e(k),[{type:"destroy"}])})}}},[]);return u.useEffect(function(){g(n())}),u.useEffect(function(){if(m.current&&w.length){w.forEach(function(O){switch(O.type){case"open":m.current.open(O.config);break;case"close":m.current.close(O.key);break;case"destroy":m.current.destroy();break}});var k,E;C(function(O){return(k!==O||!E)&&(k=O,E=O.filter(function(M){return!w.includes(M)})),E})}},[w]),[$,b]}var ES={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},SS=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:ES}))},Qa=u.forwardRef(SS);const Qh=ae.createContext(void 0),Fr=100,$S=10,kS=Fr*$S,Zh={Modal:Fr,Drawer:Fr,Popover:Fr,Popconfirm:Fr,Tooltip:Fr,Tour:Fr,FloatButton:Fr},OS={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function NS(e){return e in Zh}const yl=(e,t)=>{const[,n]=rr(),r=ae.useContext(Qh),o=NS(e);let a;if(t!==void 0)a=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+Zh[e]:i+=OS[e],a=[r===void 0?t:i,i]}return a},MS=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:p,paddingXS:v,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,x=`${t}-notice`,y=new Nt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),w=new Nt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${x}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
|
|
214
|
+
${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},en(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
215
|
+
${t}-move-up-appear,
|
|
216
|
+
${t}-move-up-enter
|
|
217
|
+
`]:{animationName:y,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
|
218
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
219
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
220
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${x}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},IS=e=>({zIndexPopup:e.zIndexPopupBase+kS+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Jh=un("Message",e=>{const t=At(e,{height:150});return MS(t)},IS);var jS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PS={info:u.createElement(aS,null),success:u.createElement(Kh,null),error:u.createElement(bl,null),warning:u.createElement(qh,null),loading:u.createElement(Qa,null)},ev=({prefixCls:e,type:t,icon:n,children:r})=>u.createElement("div",{className:ce(`${e}-custom-content`,`${e}-${t}`)},n||PS[t],u.createElement("span",null,r)),RS=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=jS(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=u.useContext(Ct),s=t||l("message"),c=qn(s),[d,f,p]=Jh(s,c);return d(u.createElement(Uh,Object.assign({},i,{prefixCls:s,className:ce(n,f,`${s}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:u.createElement(ev,{prefixCls:s,type:r,icon:o},a)})))};function DS(e,t){return{motionName:t??`${e}-move-up`}}function Vu(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var AS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TS=8,FS=3,HS=({children:e,prefixCls:t})=>{const n=qn(t),[r,o,a]=Jh(t,n);return r(u.createElement(mS,{classNames:{list:ce(o,a,n)}},e))},BS=(e,{prefixCls:t,key:n})=>u.createElement(HS,{prefixCls:t,key:n},e),zS=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=FS,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:v}=u.useContext(Ct),h=r||d("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??TS}),m=()=>ce({[`${h}-rtl`]:l??v==="rtl"}),b=()=>DS(h,s),x=u.createElement("span",{className:`${h}-close-x`},u.createElement(Wu,{className:`${h}-close-icon`})),[y,w]=wS({prefixCls:h,style:g,className:m,motion:b,closable:!1,closeIcon:x,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:BS});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},y),{prefixCls:h,message:p})),w});let ip=0;function tv(e){const t=u.useRef(null);return ml(),[u.useMemo(()=>{const n=a=>{var i;(i=t.current)===null||i===void 0||i.close(a)},r=a=>{if(!t.current){const y=()=>{};return y.then=()=>{},y}const{open:i,prefixCls:l,message:s}=t.current,c=`${l}-notice`,{content:d,icon:f,type:p,key:v,className:h,style:g,onClose:m}=a,b=AS(a,["content","icon","type","key","className","style","onClose"]);let x=v;return x==null&&(ip+=1,x=`antd-message-${ip}`),Vu(y=>(i(Object.assign(Object.assign({},b),{key:x,content:u.createElement(ev,{prefixCls:l,type:p,icon:f},d),placement:"top",className:ce(p&&`${c}-${p}`,h,s==null?void 0:s.className),style:Object.assign(Object.assign({},s==null?void 0:s.style),g),onClose:()=>{m==null||m(),y()}})),()=>{n(x)}))},o={open:r,destroy:a=>{var i;a!==void 0?n(a):(i=t.current)===null||i===void 0||i.destroy()}};return["info","success","warning","error","loading"].forEach(a=>{const i=(l,s,c)=>{let d;l&&typeof l=="object"&&"content"in l?d=l:d={content:l};let f,p;typeof s=="function"?p=s:(f=s,p=c);const v=Object.assign(Object.assign({onClose:p,duration:f},d),{type:a});return r(v)};o[a]=i}),o},[]),u.createElement(zS,Object.assign({key:"message-holder"},e,{ref:t}))]}function _S(e){return tv(e)}function nv(e,t){this.v=e,this.k=t}function kn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}kn=function(a,i,l,s){function c(d,f){kn(a,d,function(p){return this._invoke(d,f,p)})}i?o?o(a,i,{value:l,enumerable:!s,configurable:!s,writable:!s}):a[i]=l:(c("next",0),c("throw",1),c("return",2))},kn(e,t,n,r)}function Ku(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(v,h,g,m){var b=h&&h.prototype instanceof l?h:l,x=Object.create(b.prototype);return kn(x,"_invoke",(function(y,w,C){var S,$,k,E=0,O=C||[],M=!1,N={p:0,n:0,v:e,a:T,f:T.bind(e,4),d:function(P,D){return S=P,$=0,k=e,N.n=D,i}};function T(P,D){for($=P,k=D,t=0;!M&&E&&!j&&t<O.length;t++){var j,B=O[t],I=N.p,_=B[2];P>3?(j=_===D)&&(k=B[($=B[4])?5:($=3,3)],B[4]=B[5]=e):B[0]<=I&&((j=P<2&&I<B[1])?($=0,N.v=D,N.n=B[1]):I<_&&(j=P<3||B[0]>D||D>_)&&(B[4]=P,B[5]=D,N.n=_,$=0))}if(j||P>1)return i;throw M=!0,D}return function(P,D,j){if(E>1)throw TypeError("Generator is already running");for(M&&D===1&&T(D,j),$=D,k=j;(t=$<2?e:k)||!M;){S||($?$<3?($>1&&(N.n=-1),T($,k)):N.n=k:N.v=k);try{if(E=2,S){if($||(P="next"),t=S[P]){if(!(t=t.call(S,k)))throw TypeError("iterator result is not an object");if(!t.done)return t;k=t.value,$<2&&($=0)}else $===1&&(t=S.return)&&t.call(S),$<2&&(k=TypeError("The iterator does not provide a '"+P+"' method"),$=1);S=e}else if((t=(M=N.n<0)?k:y.call(w,N))!==i)break}catch(B){S=e,$=1,k=B}finally{E=1}}return{value:t,done:M}}})(v,g,m),!0),x}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(kn(t={},r,function(){return this}),t),f=c.prototype=l.prototype=Object.create(d);function p(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,c):(v.__proto__=c,kn(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return s.prototype=c,kn(f,"constructor",c),kn(c,"constructor",s),s.displayName="GeneratorFunction",kn(c,o,"GeneratorFunction"),kn(f),kn(f,o,"Generator"),kn(f,r,function(){return this}),kn(f,"toString",function(){return"[object Generator]"}),(Ku=function(){return{w:a,m:p}})()}function Xi(e,t){function n(o,a,i,l){try{var s=e[o](a),c=s.value;return c instanceof nv?t.resolve(c.v).then(function(d){n("next",d,i,l)},function(d){n("throw",d,i,l)}):t.resolve(c).then(function(d){s.value=d,i(s)},function(d){return n("throw",d,i,l)})}catch(d){l(d)}}var r;this.next||(kn(Xi.prototype),kn(Xi.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),kn(this,"_invoke",function(o,a,i){function l(){return new t(function(s,c){n(o,i,s,c)})}return r=r?r.then(l,l):l()},!0)}function rv(e,t,n,r,o){return new Xi(Ku().w(e,t,n,r),o||Promise)}function LS(e,t,n,r,o){var a=rv(e,t,n,r,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function WS(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function lp(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Ze(e)+" is not iterable")}function Mn(){var e=Ku(),t=e.m(Mn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var l=typeof i=="function"&&i.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var l,s;return function(c){l||(l={stop:function(){return s(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return s(c.a,o[d],f)},delegateYield:function(d,f,p){return l.resultName=f,s(c.d,lp(d),p)},finish:function(d){return s(c.f,d)}},s=function(d,f,p){c.p=l.prev,c.n=l.next;try{return d(f,p)}finally{l.next=c.n}}),l.resultName&&(l[l.resultName]=c.v,l.resultName=void 0),l.sent=c.v,l.next=c.n;try{return i.call(this,l)}finally{c.p=l.prev,c.n=l.next}}}return(Mn=function(){return{wrap:function(i,l,s,c){return e.w(a(i),l,s,c&&c.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(i,l){return new nv(i,l)},AsyncIterator:Xi,async:function(i,l,s,c,d){return(r(l)?rv:LS)(a(i),l,s,c,d)},keys:WS,values:lp}})()}function sp(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function wo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(s){sp(a,r,o,i,l,"next",s)}function l(s){sp(a,r,o,i,l,"throw",s)}i(void 0)})}}var Za=U({},cy),VS=Za.version,ds=Za.render,KS=Za.unmountComponentAtNode,xl;try{var qS=Number((VS||"").split(".")[0]);qS>=18&&(xl=Za.createRoot)}catch{}function cp(e){var t=Za.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ze(t)==="object"&&(t.usingClientEntryPoint=e)}var Ui="__rc_react_root__";function YS(e,t){cp(!0);var n=t[Ui]||xl(t);cp(!1),n.render(e),t[Ui]=n}function XS(e,t){ds==null||ds(e,t)}function US(e,t){if(xl){YS(e,t);return}XS(e,t)}function GS(e){return Ec.apply(this,arguments)}function Ec(){return Ec=wo(Mn().mark(function e(t){return Mn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var r;(r=t[Ui])===null||r===void 0||r.unmount(),delete t[Ui]}));case 1:case"end":return n.stop()}},e)})),Ec.apply(this,arguments)}function QS(e){KS(e)}function ZS(e){return Sc.apply(this,arguments)}function Sc(){return Sc=wo(Mn().mark(function e(t){return Mn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(xl===void 0){n.next=2;break}return n.abrupt("return",GS(t));case 2:QS(t);case 3:case"end":return n.stop()}},e)})),Sc.apply(this,arguments)}const JS=(e,t)=>(US(e,t),()=>ZS(t));let e$=JS;function ov(e){return e$}const fs=()=>({height:0,opacity:0}),up=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},t$=e=>({height:e?e.offsetHeight:0}),ps=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",dp=(e=za)=>({motionName:`${e}-motion-collapse`,onAppearStart:fs,onEnterStart:fs,onAppearActive:up,onEnterActive:up,onLeaveStart:t$,onLeaveActive:fs,onAppearEnd:ps,onEnterEnd:ps,onLeaveEnd:ps,motionDeadline:500}),av=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Er(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Cl=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}),n$=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},r$=rE("Wave",n$),qu=`${za}-wave-target`;function o$(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function a$(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(o$))!==null&&t!==void 0?t:null}function ms(e){return Number.isNaN(e)?0:e}const i$=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=u.useRef(null),i=u.useRef(null);u.useEffect(()=>{i.current=o()},[]);const[l,s]=u.useState(null),[c,d]=u.useState([]),[f,p]=u.useState(0),[v,h]=u.useState(0),[g,m]=u.useState(0),[b,x]=u.useState(0),[y,w]=u.useState(!1),C={left:f,top:v,width:g,height:b,borderRadius:c.map(k=>`${k}px`).join(" ")};l&&(C["--wave-color"]=l);function S(){const k=getComputedStyle(n);s(a$(n));const E=k.position==="static",{borderLeftWidth:O,borderTopWidth:M}=k;p(E?n.offsetLeft:ms(-Number.parseFloat(O))),h(E?n.offsetTop:ms(-Number.parseFloat(M))),m(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:T,borderBottomLeftRadius:P,borderBottomRightRadius:D}=k;d([N,T,D,P].map(j=>ms(Number.parseFloat(j))))}if(u.useEffect(()=>{if(n){const k=ft(()=>{S(),w(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(S),E.observe(n)),()=>{ft.cancel(k),E==null||E.disconnect()}}},[n]),!y)return null;const $=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(qu));return u.createElement(Co,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(k,E)=>{var O,M;if(E.deadline||E.propertyName==="opacity"){const N=(O=a.current)===null||O===void 0?void 0:O.parentElement;(M=i.current)===null||M===void 0||M.call(i).then(()=>{N==null||N.remove()})}return!1}},({className:k},E)=>u.createElement("div",{ref:nr(a,E),className:ce(t,k,{"wave-quick":$}),style:C}))},l$=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=ov();let i=null;function l(){return i}i=a(u.createElement(i$,Object.assign({},t,{target:e,registerUnmount:l})),o)},s$=(e,t,n)=>{const{wave:r}=u.useContext(Ct),[,o,a]=rr(),i=yt(s=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const d=c.querySelector(`.${qu}`)||c,{showEffect:f}=r||{};(f||l$)(d,{className:t,token:o,component:n,event:s,hashId:a})}),l=u.useRef(null);return s=>{ft.cancel(l.current),l.current=ft(()=>{i(s)})}},wl=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=Gt(Ct),a=qe(null),i=o("wave"),[,l]=r$(i),s=s$(a,ce(i,l),r);if(ae.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=p=>{!Cl(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||s(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ae.isValidElement(t))return t??null;const c=Jo(t)?nr(Xa(t),a):a;return qr(t,{ref:c})},or=e=>{const t=ae.useContext(mo);return ae.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},iv=u.createContext(null),Jr=(e,t)=>{const n=u.useContext(iv),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return ce(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},c$=e=>{const{children:t}=e;return u.createElement(iv.Provider,{value:null},t)};var u$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lv=u.createContext(void 0),d$=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Ct),{prefixCls:r,size:o,className:a}=e,i=u$(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=rr(),c=u.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=ce(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},a,s);return u.createElement(lv.Provider,{value:o},u.createElement("div",Object.assign({},i,{className:d})))},fp=/^[\u4E00-\u9FA5]{2}$/,$c=fp.test.bind(fp);function pp(e){return typeof e=="string"}function gs(e){return e==="text"||e==="link"}function f$(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&pp(e.type)&&$c(e.props.children)?qr(e,{children:e.props.children.split("").join(n)}):pp(e)?$c(e)?ae.createElement("span",null,e.split("").join(n)):ae.createElement("span",null,e):Yh(e)?ae.createElement("span",null,e):e}function p$(e,t){let n=!1;const r=[];return ae.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=i}),ae.Children.map(r,o=>f$(o,t))}["default","primary","danger"].concat($e(go));const kc=dr((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=ce(`${a}-icon`,n);return ae.createElement("span",{ref:t,className:i,style:r},o)}),mp=dr((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=ce(`${n}-loading-icon`,r);return ae.createElement(kc,{prefixCls:n,className:i,style:o,ref:t},ae.createElement(Qa,{className:a}))}),hs=()=>({width:0,opacity:0,transform:"scale(0)"}),vs=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),m$=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:i}=e,l=!!n;return r?ae.createElement(mp,{prefixCls:t,className:o,style:a}):ae.createElement(Co,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:hs,onAppearActive:vs,onEnterStart:hs,onEnterActive:vs,onLeaveStart:vs,onLeaveActive:hs},({className:s,style:c},d)=>{const f=Object.assign(Object.assign({},a),c);return ae.createElement(mp,{prefixCls:t,className:ce(o,s),style:f,ref:d})})},gp=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),g$=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},gp(`${t}-primary`,o),gp(`${t}-danger`,a)]}};var h$=["b"],v$=["v"],bs=function(e){return Math.round(Number(e||0))},b$=function(e){if(e instanceof Ot)return e;if(e&&Ze(e)==="object"&&"h"in e&&"b"in e){var t=e,n=t.b,r=pt(t,h$);return U(U({},r),{},{v:n})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},Oc=(function(e){Gr(n,e);var t=Qr(n);function n(r){return tn(this,n),t.call(this,b$(r))}return nn(n,[{key:"toHsbString",value:function(){var r=this.toHsb(),o=bs(r.s*100),a=bs(r.b*100),i=bs(r.h),l=r.a,s="hsb(".concat(i,", ").concat(o,"%, ").concat(a,"%)"),c="hsba(".concat(i,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?s:c}},{key:"toHsb",value:function(){var r=this.toHsv(),o=r.v,a=pt(r,v$);return U(U({},a),{},{b:o,a:this.a})}}]),n})(Ot);const y$=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",x$=(e,t)=>e?y$(e,t):"";let Nc=(function(){function e(t){tn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new Oc(this.colors[0].color.metaColor)):this.metaColor=new Oc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return nn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return x$(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:t}=this;return t?`linear-gradient(90deg, ${t.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((n,r)=>{const o=t.colors[r];return n.percent===o.percent&&n.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();const C$=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
221
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
222
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),w$=e=>({animationDuration:e,animationFillMode:"both"}),E$=e=>({animationDuration:e,animationFillMode:"both"}),Yu=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
|
|
223
|
+
${a}${e}-enter,
|
|
224
|
+
${a}${e}-appear
|
|
225
|
+
`]:Object.assign(Object.assign({},w$(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},E$(r)),{animationPlayState:"paused"}),[`
|
|
226
|
+
${a}${e}-enter${e}-enter-active,
|
|
227
|
+
${a}${e}-appear${e}-appear-active
|
|
228
|
+
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},S$=new Nt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),$$=new Nt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),k$=new Nt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),O$=new Nt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),N$=new Nt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),M$=new Nt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I$=new Nt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),j$=new Nt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),P$={"move-up":{inKeyframes:I$,outKeyframes:j$},"move-down":{inKeyframes:S$,outKeyframes:$$},"move-left":{inKeyframes:k$,outKeyframes:O$},"move-right":{inKeyframes:N$,outKeyframes:M$}},Gi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=P$[t];return[Yu(r,o,a,e.motionDurationMid),{[`
|
|
229
|
+
${r}-enter,
|
|
230
|
+
${r}-appear
|
|
231
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Xu=new Nt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Uu=new Nt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gu=new Nt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Qu=new Nt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),R$=new Nt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),D$=new Nt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),A$=new Nt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),T$=new Nt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),F$={"slide-up":{inKeyframes:Xu,outKeyframes:Uu},"slide-down":{inKeyframes:Gu,outKeyframes:Qu},"slide-left":{inKeyframes:R$,outKeyframes:D$},"slide-right":{inKeyframes:A$,outKeyframes:T$}},Qi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=F$[t];return[Yu(r,o,a,e.motionDurationMid),{[`
|
|
232
|
+
${r}-enter,
|
|
233
|
+
${r}-appear
|
|
234
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Zu=new Nt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),H$=new Nt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),hp=new Nt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vp=new Nt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),B$=new Nt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),z$=new Nt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_$=new Nt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),L$=new Nt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),W$=new Nt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),V$=new Nt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),K$=new Nt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),q$=new Nt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Y$={zoom:{inKeyframes:Zu,outKeyframes:H$},"zoom-big":{inKeyframes:hp,outKeyframes:vp},"zoom-big-fast":{inKeyframes:hp,outKeyframes:vp},"zoom-left":{inKeyframes:_$,outKeyframes:L$},"zoom-right":{inKeyframes:W$,outKeyframes:V$},"zoom-up":{inKeyframes:B$,outKeyframes:z$},"zoom-down":{inKeyframes:K$,outKeyframes:q$}},X$=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Y$[t];return[Yu(r,o,a,e.motionDurationFast),{[`
|
|
235
|
+
${r}-enter,
|
|
236
|
+
${r}-appear
|
|
237
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},U$=e=>e instanceof Nc?e:new Nc(e),G$=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new Oc(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},sv=e=>{const{paddingInline:t,onlyIconSize:n}=e;return At(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},cv=e=>{var t,n,r,o,a,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:Pi(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:Pi(s),p=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Pi(c),v=G$(new Nc(e.colorBgSolid),"#fff")?"#000":"#fff",h=go.reduce((g,m)=>Object.assign(Object.assign({},g),{[`${m}ShadowColor`]:`0 ${me(e.controlOutlineWidth)} 0 ${ya(e[`${m}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:v,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)})},Q$=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${me(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Ga(),"> a":{color:"currentColor"},"&:not(:disabled)":$h(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},uv=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Z$=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),J$=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),El=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},uv(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),ek=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},J$(e))}),tk=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Sl=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?tk:ek;return Object.assign(Object.assign({},o(e)),uv(e.componentCls,t,n))},$l=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Sl(e,r,o))}),kl=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Sl(e,r,o))}),Ol=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Nl=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Sl(e,n,r))}),Cr=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Sl(e,r,o,n))}),nk=e=>{const{componentCls:t}=e;return go.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],l=e[`${r}2`],s=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},$l(e,e.colorTextLightSolid,o,{background:i},{background:c})),kl(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Ol(e)),Nl(e,a,{color:o,background:l},{color:o,background:s})),Cr(e,o,"link",{color:i},{color:c})),Cr(e,o,"text",{color:i,background:a},{color:c,background:s}))})},{})},rk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},$l(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Ol(e)),Nl(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),El(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Cr(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ok=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},kl(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Ol(e)),Nl(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Cr(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Cr(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),El(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ak=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},$l(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),kl(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ol(e)),Nl(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Cr(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Cr(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),El(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ik=e=>Object.assign(Object.assign({},Cr(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),El(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),lk=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:rk(e),[`${t}-color-primary`]:ok(e),[`${t}-color-dangerous`]:ak(e),[`${t}-color-link`]:ik(e)},nk(e))},sk=e=>Object.assign(Object.assign(Object.assign(Object.assign({},kl(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Cr(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),$l(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Cr(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ju=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${me(s)} ${me(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:Z$(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},ck=e=>{const t=At(e,{fontSize:e.contentFontSize});return Ju(t,e.componentCls)},uk=e=>{const t=At(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ju(t,`${e.componentCls}-sm`)},dk=e=>{const t=At(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ju(t,`${e.componentCls}-lg`)},fk=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},pk=un("Button",e=>{const t=sv(e);return[Q$(t),ck(t),uk(t),dk(t),fk(t),lk(t),sk(t),g$(t)]},cv,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function mk(e,t,n,r){const{focusElCls:o,focus:a,borderElCls:i}=n,l=i?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[s]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function gk(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ja(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},mk(e,r,t,n)),gk(n,r,t))}}function hk(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function vk(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function bk(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},hk(e,t,e.componentCls)),vk(e.componentCls,t))}}const yk=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=l=>{const s=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${s} + ${s}::before`]:{position:"absolute",top:l?a:0,insetInlineStart:l?0:a,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},xk=hl(["Button","compact"],e=>{const t=sv(e);return[Ja(t),bk(t),yk(t)]},cv);var Ck=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function wk(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Ek={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Sk=ae.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:i,variant:l,type:s,danger:c=!1,shape:d,size:f,styles:p,disabled:v,className:h,rootClassName:g,children:m,icon:b,iconPosition:x="start",ghost:y=!1,block:w=!1,htmlType:C="button",classNames:S,style:$={},autoInsertSpace:k,autoFocus:E}=e,O=Ck(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=s||"default",{button:N}=ae.useContext(Ct),T=d||(N==null?void 0:N.shape)||"default",[P,D]=En(()=>{if(i&&l)return[i,l];if(s||c){const De=Ek[M]||[];return c?["danger",De[1]]:De}return N!=null&&N.color&&(N!=null&&N.variant)?[N.color,N.variant]:["default","outlined"]},[s,i,l,c,N==null?void 0:N.variant,N==null?void 0:N.color]),j=P==="danger"?"dangerous":P,{getPrefixCls:B,direction:I,autoInsertSpace:_,className:L,style:W,classNames:R,styles:A}=Mr("button"),F=(n=k??_)!==null&&n!==void 0?n:!0,H=B("btn",a),[z,V,K]=pk(H),J=Gt(jn),Y=v??J,Z=Gt(lv),G=En(()=>wk(o),[o]),[X,ne]=Pt(G.loading),[te,ee]=Pt(!1),se=qe(null),de=Ya(t,se),ge=Qm.count(m)===1&&!b&&!gs(D),ve=qe(!0);ae.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),Et(()=>{let De=null;G.delay>0?De=setTimeout(()=>{De=null,ne(!0)},G.delay):ne(G.loading);function fe(){De&&(clearTimeout(De),De=null)}return fe},[G.delay,G.loading]),It(()=>{if(!se.current||!F)return;const De=se.current.textContent||"";ge&&$c(De)?te||ee(!0):te&&ee(!1)}),It(()=>{E&&se.current&&se.current.focus()},[]);const ue=ae.useCallback(De=>{var fe;if(X||Y){De.preventDefault();return}(fe=e.onClick)===null||fe===void 0||fe.call(e,De)},[e.onClick,X,Y]),{compactSize:we,compactItemClassnames:le}=Jr(H,I),pe={large:"lg",small:"sm",middle:void 0},Ne=or(De=>{var fe,Ge;return(Ge=(fe=f??we)!==null&&fe!==void 0?fe:Z)!==null&&Ge!==void 0?Ge:De}),re=Ne&&(r=pe[Ne])!==null&&r!==void 0?r:"",ke=X?"loading":b,Se=Er(O,["navigate"]),Me=ce(H,V,K,{[`${H}-${T}`]:T!=="default"&&T,[`${H}-${M}`]:M,[`${H}-dangerous`]:c,[`${H}-color-${j}`]:j,[`${H}-variant-${D}`]:D,[`${H}-${re}`]:re,[`${H}-icon-only`]:!m&&m!==0&&!!ke,[`${H}-background-ghost`]:y&&!gs(D),[`${H}-loading`]:X,[`${H}-two-chinese-chars`]:te&&F&&!X,[`${H}-block`]:w,[`${H}-rtl`]:I==="rtl",[`${H}-icon-end`]:x==="end"},le,h,g,L),Pe=Object.assign(Object.assign({},W),$),be=ce(S==null?void 0:S.icon,R.icon),ie=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),A.icon||{}),ye=b&&!X?ae.createElement(kc,{prefixCls:H,className:be,style:ie},b):o&&typeof o=="object"&&o.icon?ae.createElement(kc,{prefixCls:H,className:be,style:ie},o.icon):ae.createElement(m$,{existIcon:!!b,prefixCls:H,loading:X,mount:ve.current}),xe=m||m===0?p$(m,ge&&F):null;if(Se.href!==void 0)return z(ae.createElement("a",Object.assign({},Se,{className:ce(Me,{[`${H}-disabled`]:Y}),href:Y?void 0:Se.href,style:Pe,onClick:ue,ref:de,tabIndex:Y?-1:0,"aria-disabled":Y}),ye,xe));let Ce=ae.createElement("button",Object.assign({},O,{type:C,className:Me,style:Pe,onClick:ue,disabled:Y,ref:de}),ye,xe,le&&ae.createElement(xk,{prefixCls:H}));return gs(D)||(Ce=ae.createElement(wl,{component:"Button",disabled:X},Ce)),z(Ce)}),Ml=Sk;Ml.Group=d$;Ml.__ANT_BUTTON=!0;var dv=u.createContext(null),bp=[];function $k(e,t){var n=u.useState(function(){if(!Hn())return null;var h=document.createElement("div");return h}),r=Q(n,1),o=r[0],a=u.useRef(!1),i=u.useContext(dv),l=u.useState(bp),s=Q(l,2),c=s[0],d=s[1],f=i||(a.current?void 0:function(h){d(function(g){var m=[h].concat($e(g));return m})});function p(){o.parentElement||document.body.appendChild(o),a.current=!0}function v(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return Et(function(){return e?i?i(p):p():v(),v},[e]),Et(function(){c.length&&(c.forEach(function(h){return h()}),d(bp))},[c]),[o,f]}function kk(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var d=s?"width: ".concat(l.width,";"):"",f=c?"height: ".concat(l.height,";"):"";kr(`
|
|
238
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
239
|
+
`).concat(d,`
|
|
240
|
+
`).concat(f,`
|
|
241
|
+
}`),t)}catch(h){console.error(h),o=s,a=c}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Aa(t),{width:p,height:v}}function Ok(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:kk(e)}function Nk(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Mk="rc-util-locker-".concat(Date.now()),yp=0;function Ik(e){var t=!!e,n=u.useState(function(){return yp+=1,"".concat(Mk,"_").concat(yp)}),r=Q(n,1),o=r[0];Et(function(){if(t){var a=Ok(document.body).width,i=Nk();kr(`
|
|
242
|
+
html body {
|
|
243
|
+
overflow-y: hidden;
|
|
244
|
+
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
245
|
+
}`),o)}else Aa(o);return function(){Aa(o)}},[t,o])}var jk=!1;function Pk(e){return jk}var xp=function(e){return e===!1?!1:!Hn()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},fv=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,l=e.children,s=u.useState(n),c=Q(s,2),d=c[0],f=c[1],p=d||n;u.useEffect(function(){(i||n)&&f(n)},[n,i]);var v=u.useState(function(){return xp(o)}),h=Q(v,2),g=h[0],m=h[1];u.useEffect(function(){var M=xp(o);m(M??null)});var b=$k(p&&!g),x=Q(b,2),y=x[0],w=x[1],C=g??y;Ik(r&&n&&Hn()&&(C===y||C===document.body));var S=null;if(l&&Jo(l)&&t){var $=l;S=$.ref}var k=Ya(S,t);if(!p||!Hn()||g===void 0)return null;var E=C===!1||Pk(),O=l;return t&&(O=u.cloneElement(l,{ref:k})),u.createElement(dv.Provider,{value:w},E?O:ng(O,C))});function Rk(){var e=U({},u);return e.useId}var Cp=0,wp=Rk();const ed=wp?(function(e){var t=wp();return e||t}):(function(e){var t=u.useState("ssr-id"),n=Q(t,2),r=n[0],o=n[1];return u.useEffect(function(){var a=Cp;Cp+=1,o("rc_unique_".concat(a))},[]),e||r});var io="RC_FORM_INTERNAL_HOOKS",Lt=function(){xn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ho=u.createContext({getFieldValue:Lt,getFieldsValue:Lt,getFieldError:Lt,getFieldWarning:Lt,getFieldsError:Lt,isFieldsTouched:Lt,isFieldTouched:Lt,isFieldValidating:Lt,isFieldsValidating:Lt,resetFields:Lt,setFields:Lt,setFieldValue:Lt,setFieldsValue:Lt,validateFields:Lt,submit:Lt,getInternalHooks:function(){return Lt(),{dispatch:Lt,initEntityValue:Lt,registerField:Lt,useSubscribe:Lt,setInitialValues:Lt,destroyForm:Lt,setCallbacks:Lt,registerWatch:Lt,getFields:Lt,setValidateMessages:Lt,setPreserve:Lt,getInitialValue:Lt}}}),_a=u.createContext(null);function Mc(e){return e==null?[]:Array.isArray(e)?e:[e]}function Dk(e){return e&&!!e._init}function Ic(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var jc=Ic();function Ak(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Tk(e,t,n){if(Iu())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Pa(o,n.prototype),o}function Pc(e){var t=typeof Map=="function"?new Map:void 0;return Pc=function(n){if(n===null||!Ak(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Tk(n,arguments,Ra(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Pa(r,n)},Pc(e)}var Fk=/%[sdj%]/g,Hk=function(){};function Rc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Kn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(Fk,function(l){if(l==="%%")return"%";if(o>=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function Bk(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function hn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Bk(t)&&typeof e=="string"&&!e)}function zk(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,$e(l||[])),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function Ep(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l<o?t(e[l],a):n([])}a([])}function _k(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,$e(e[n]||[]))}),t}var Sp=(function(e){Gr(n,e);var t=Qr(n);function n(r,o){var a;return tn(this,n),a=t.call(this,"Async Validation Error"),q(xt(a),"errors",void 0),q(xt(a),"fields",void 0),a.errors=r,a.fields=o,a}return nn(n)})(Pc(Error));function Lk(e,t,n,r,o){if(t.first){var a=new Promise(function(p,v){var h=function(m){return r(m),m.length?v(new Sp(m,Rc(m))):p(o)},g=_k(e);Ep(g,n,h)});return a.catch(function(p){return p}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,d=[],f=new Promise(function(p,v){var h=function(g){if(d.push.apply(d,g),c++,c===s)return r(d),d.length?v(new Sp(d,Rc(d))):p(o)};l.length||(r(d),p(o)),l.forEach(function(g){var m=e[g];i.indexOf(g)!==-1?Ep(m,n,h):zk(m,n,h)})});return f.catch(function(p){return p}),f}function Wk(e){return!!(e&&e.message!==void 0)}function Vk(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function $p(e,t){return function(n){var r;return e.fullFields?r=Vk(t,e.fullFields):r=t[n.field||e.fullField],Wk(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function kp(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Ze(r)==="object"&&Ze(e[n])==="object"?e[n]=U(U({},e[n]),r):e[n]=r}}return e}var Io="enum",Kk=function(e,t,n,r,o){e[Io]=Array.isArray(e[Io])?e[Io]:[],e[Io].indexOf(t)===-1&&r.push(Kn(o.messages[Io],e.fullField,e[Io].join(", ")))},qk=function(e,t,n,r,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Kn(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||r.push(Kn(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Yk=function(e,t,n,r,o){var a=typeof e.len=="number",i=typeof e.min=="number",l=typeof e.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,d=null,f=typeof t=="number",p=typeof t=="string",v=Array.isArray(t);if(f?d="number":p?d="string":v&&(d="array"),!d)return!1;v&&(c=t.length),p&&(c=t.replace(s,"_").length),a?c!==e.len&&r.push(Kn(o.messages[d].len,e.fullField,e.len)):i&&!l&&c<e.min?r.push(Kn(o.messages[d].min,e.fullField,e.min)):l&&!i&&c>e.max?r.push(Kn(o.messages[d].max,e.fullField,e.max)):i&&l&&(c<e.min||c>e.max)&&r.push(Kn(o.messages[d].range,e.fullField,e.min,e.max))},pv=function(e,t,n,r,o,a){e.required&&(!n.hasOwnProperty(e.field)||hn(t,a||e.type))&&r.push(Kn(o.messages.required,e.fullField))},mi;const Xk=(function(){if(mi)return mi;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),d=function(C){return C&&C.exact?l:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(i).concat(t(C),")"),"g")};d.v4=function(C){return C&&C.exact?s:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",v=d.v4().source,h=d.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(v,"|").concat(h,"|").concat(g).concat(m).concat(b,")").concat(x).concat(y);return mi=new RegExp("(?:^".concat(w,"$)"),"i"),mi});var Op={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},xa={integer:function(e){return xa.number(e)&&parseInt(e,10)===e},float:function(e){return xa.number(e)&&!xa.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return Ze(e)==="object"&&!xa.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Op.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(Xk())},hex:function(e){return typeof e=="string"&&!!e.match(Op.hex)}},Uk=function(e,t,n,r,o){if(e.required&&t===void 0){pv(e,t,n,r,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;a.indexOf(i)>-1?xa[i](t)||r.push(Kn(o.messages.types[i],e.fullField,e.type)):i&&Ze(t)!==e.type&&r.push(Kn(o.messages.types[i],e.fullField,e.type))},Gk=function(e,t,n,r,o){(/^\s+$/.test(t)||t==="")&&r.push(Kn(o.messages.whitespace,e.fullField))};const kt={required:pv,whitespace:Gk,type:Uk,range:Yk,enum:Kk,pattern:qk};var Qk=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t)&&!e.required)return n();kt.required(e,t,r,a,o)}n(a)},Zk=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t==null&&!e.required)return n();kt.required(e,t,r,a,o,"array"),t!=null&&(kt.type(e,t,r,a,o),kt.range(e,t,r,a,o))}n(a)},Jk=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t)&&!e.required)return n();kt.required(e,t,r,a,o),t!==void 0&&kt.type(e,t,r,a,o)}n(a)},e2=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t,"date")&&!e.required)return n();if(kt.required(e,t,r,a,o),!hn(t,"date")){var l;t instanceof Date?l=t:l=new Date(t),kt.type(e,l,r,a,o),l&&kt.range(e,l.getTime(),r,a,o)}}n(a)},t2="enum",n2=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t)&&!e.required)return n();kt.required(e,t,r,a,o),t!==void 0&&kt[t2](e,t,r,a,o)}n(a)},r2=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t)&&!e.required)return n();kt.required(e,t,r,a,o),t!==void 0&&(kt.type(e,t,r,a,o),kt.range(e,t,r,a,o))}n(a)},o2=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t)&&!e.required)return n();kt.required(e,t,r,a,o),t!==void 0&&(kt.type(e,t,r,a,o),kt.range(e,t,r,a,o))}n(a)},a2=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t)&&!e.required)return n();kt.required(e,t,r,a,o),t!==void 0&&kt.type(e,t,r,a,o)}n(a)},i2=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(t===""&&(t=void 0),hn(t)&&!e.required)return n();kt.required(e,t,r,a,o),t!==void 0&&(kt.type(e,t,r,a,o),kt.range(e,t,r,a,o))}n(a)},l2=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t)&&!e.required)return n();kt.required(e,t,r,a,o),t!==void 0&&kt.type(e,t,r,a,o)}n(a)},s2=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t,"string")&&!e.required)return n();kt.required(e,t,r,a,o),hn(t,"string")||kt.pattern(e,t,r,a,o)}n(a)},c2=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t)&&!e.required)return n();kt.required(e,t,r,a,o),hn(t)||kt.type(e,t,r,a,o)}n(a)},u2=function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":Ze(t);kt.required(e,t,r,a,o,i),n(a)},d2=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(hn(t,"string")&&!e.required)return n();kt.required(e,t,r,a,o,"string"),hn(t,"string")||(kt.type(e,t,r,a,o),kt.range(e,t,r,a,o),kt.pattern(e,t,r,a,o),e.whitespace===!0&&kt.whitespace(e,t,r,a,o))}n(a)},ys=function(e,t,n,r,o){var a=e.type,i=[],l=e.required||!e.required&&r.hasOwnProperty(e.field);if(l){if(hn(t,a)&&!e.required)return n();kt.required(e,t,r,i,o,a),hn(t,a)||kt.type(e,t,r,i,o)}n(i)};const Oa={string:d2,method:a2,number:i2,boolean:Jk,regexp:c2,integer:o2,float:r2,array:Zk,object:l2,enum:n2,pattern:s2,date:e2,url:ys,hex:ys,email:ys,required:u2,any:Qk};var ei=(function(){function e(t){tn(this,e),q(this,"rules",null),q(this,"_messages",jc),this.define(t)}return nn(e,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(Ze(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(r){var o=t[r];n.rules[r]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=kp(Ic(),t)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,i=r,l=o;if(typeof i=="function"&&(l=i,i={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function s(p){var v=[],h={};function g(b){if(Array.isArray(b)){var x;v=(x=v).concat.apply(x,$e(b))}else v.push(b)}for(var m=0;m<p.length;m++)g(p[m]);v.length?(h=Rc(v),l(v,h)):l(null,a)}if(i.messages){var c=this.messages();c===jc&&(c=Ic()),kp(c,i.messages),i.messages=c}else i.messages=this.messages();var d={},f=i.keys||Object.keys(this.rules);return f.forEach(function(p){var v=n.rules[p],h=a[p];v.forEach(function(g){var m=g;typeof m.transform=="function"&&(a===t&&(a=U({},a)),h=a[p]=m.transform(h),h!=null&&(m.type=m.type||(Array.isArray(h)?"array":Ze(h)))),typeof m=="function"?m={validator:m}:m=U({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=p,m.fullField=m.fullField||p,m.type=n.getType(m),d[p]=d[p]||[],d[p].push({rule:m,value:h,source:a,field:p}))})}),Lk(d,i,function(p,v){var h=p.rule,g=(h.type==="object"||h.type==="array")&&(Ze(h.fields)==="object"||Ze(h.defaultField)==="object");g=g&&(h.required||!h.required&&p.value),h.field=p.field;function m(C,S){return U(U({},S),{},{fullField:"".concat(h.fullField,".").concat(C),fullFields:h.fullFields?[].concat($e(h.fullFields),[C]):[C]})}function b(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=Array.isArray(C)?C:[C];!i.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&h.message!==void 0&&(S=[].concat(h.message));var $=S.map($p(h,a));if(i.first&&$.length)return v($);if(!g)v($);else{if(h.required&&!p.value)return h.message!==void 0?$=[].concat(h.message).map($p(h,a)):i.error&&($=[i.error(h,Kn(i.messages.required,h.field))]),v($);var k={};h.defaultField&&Object.keys(p.value).map(function(M){k[M]=h.defaultField}),k=U(U({},k),p.rule.fields);var E={};Object.keys(k).forEach(function(M){var N=k[M],T=Array.isArray(N)?N:[N];E[M]=T.map(m.bind(null,M))});var O=new e(E);O.messages(i.messages),p.rule.options&&(p.rule.options.messages=i.messages,p.rule.options.error=i.error),O.validate(p.value,p.rule.options||i,function(M){var N=[];$&&$.length&&N.push.apply(N,$e($)),M&&M.length&&N.push.apply(N,$e(M)),v(N.length?N:null)})}}var x;if(h.asyncValidator)x=h.asyncValidator(h,p.value,b,p.source,i);else if(h.validator){try{x=h.validator(h,p.value,b,p.source,i)}catch(C){var y,w;(y=(w=console).error)===null||y===void 0||y.call(w,C),i.suppressValidatorError||setTimeout(function(){throw C},0),b(C.message)}x===!0?b():x===!1?b(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(C){return b(C)})},function(p){s(p)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Oa.hasOwnProperty(t.type))throw new Error(Kn("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?Oa.required:Oa[this.getType(t)]||void 0}}]),e})();q(ei,"register",function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Oa[e]=t});q(ei,"warning",Hk);q(ei,"messages",jc);q(ei,"validators",Oa);var Wn="'${name}' is not a valid ${type}",mv={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Wn,method:Wn,array:Wn,object:Wn,number:Wn,date:Wn,boolean:Wn,integer:Wn,float:Wn,regexp:Wn,email:Wn,url:Wn,hex:Wn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Np=ei;function f2(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Mp="CODE_LOGIC_ERROR";function Dc(e,t,n,r,o){return Ac.apply(this,arguments)}function Ac(){return Ac=wo(Mn().mark(function e(t,n,r,o,a){var i,l,s,c,d,f,p,v,h;return Mn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=U({},r),delete i.ruleIndex,Np.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(Mp)}}),s=null,i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField),c=new Np(q({},t,[i])),d=Ho(mv,o.validateMessages),c.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(c.validate(q({},t,n),U({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(m,b){var x=m.message,y=x===Mp?d.default:x;return u.isValidElement(y)?u.cloneElement(y,{key:"error_".concat(b)}):y}));case 18:if(!(!f.length&&s)){g.next=23;break}return g.next=21,Promise.all(n.map(function(m,b){return Dc("".concat(t,".").concat(b),m,s,o,a)}));case 21:return p=g.sent,g.abrupt("return",p.reduce(function(m,b){return[].concat($e(m),$e(b))},[]));case 23:return v=U(U({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map(function(m){return typeof m=="string"?f2(m,v):m}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Ac.apply(this,arguments)}function p2(e,t,n,r,o,a){var i=e.join("."),l=n.map(function(d,f){var p=d.validator,v=U(U({},d),{},{ruleIndex:f});return p&&(v.validator=function(h,g,m){var b=!1,x=function(){for(var w=arguments.length,C=new Array(w),S=0;S<w;S++)C[S]=arguments[S];Promise.resolve().then(function(){xn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,C)})},y=p(h,g,x);b=y&&typeof y.then=="function"&&typeof y.catch=="function",xn(b,"`callback` is deprecated. Please return a promise instead."),b&&y.then(function(){m()}).catch(function(w){m(w||" ")})}),v}).sort(function(d,f){var p=d.warningOnly,v=d.ruleIndex,h=f.warningOnly,g=f.ruleIndex;return!!p==!!h?v-g:p?1:-1}),s;if(o===!0)s=new Promise((function(){var d=wo(Mn().mark(function f(p,v){var h,g,m;return Mn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:h=0;case 1:if(!(h<l.length)){b.next=12;break}return g=l[h],b.next=5,Dc(i,t,g,r,a);case 5:if(m=b.sent,!m.length){b.next=9;break}return v([{errors:m,rule:g}]),b.abrupt("return");case 9:h+=1,b.next=1;break;case 12:p([]);case 13:case"end":return b.stop()}},f)}));return function(f,p){return d.apply(this,arguments)}})());else{var c=l.map(function(d){return Dc(i,t,d,r,a).then(function(f){return{errors:f,rule:d}})});s=(o?g2(c):m2(c)).then(function(d){return Promise.reject(d)})}return s.catch(function(d){return d}),s}function m2(e){return Tc.apply(this,arguments)}function Tc(){return Tc=wo(Mn().mark(function e(t){return Mn().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(r){var o,a=(o=[]).concat.apply(o,$e(r));return a}));case 1:case"end":return n.stop()}},e)})),Tc.apply(this,arguments)}function g2(e){return Fc.apply(this,arguments)}function Fc(){return Fc=wo(Mn().mark(function e(t){var n;return Mn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=0,r.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(i){i.errors.length&&o([i]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return r.stop()}},e)})),Fc.apply(this,arguments)}function an(e){return Mc(e)}function Ip(e,t){var n={};return t.forEach(function(r){var o=er(e,r);n=Jn(n,r,o)}),n}function Vo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return gv(t,r,n)})}function gv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function h2(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ze(e)!=="object"||Ze(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return $e(o).every(function(a){var i=e[a],l=t[a];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function v2(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ze(t.target)==="object"&&e in t.target?t.target[e]:t}function jp(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat($e(e.slice(0,n)),[o],$e(e.slice(n,t)),$e(e.slice(t+1,r))):a<0?[].concat($e(e.slice(0,t)),$e(e.slice(t+1,n+1)),[o],$e(e.slice(n+1,r))):e}var b2=["name"],Un=[];function xs(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var td=(function(e){Gr(n,e);var t=Qr(n);function n(r){var o;if(tn(this,n),o=t.call(this,r),q(xt(o),"state",{resetCount:0}),q(xt(o),"cancelRegisterFunc",null),q(xt(o),"mounted",!1),q(xt(o),"touched",!1),q(xt(o),"dirty",!1),q(xt(o),"validatePromise",void 0),q(xt(o),"prevValidating",void 0),q(xt(o),"errors",Un),q(xt(o),"warnings",Un),q(xt(o),"cancelRegister",function(){var s=o.props,c=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,c,an(f)),o.cancelRegisterFunc=null}),q(xt(o),"getNamePath",function(){var s=o.props,c=s.name,d=s.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat($e(p),$e(c)):[]}),q(xt(o),"getRules",function(){var s=o.props,c=s.rules,d=c===void 0?[]:c,f=s.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),q(xt(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),q(xt(o),"metaCache",null),q(xt(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var d=U(U({},o.getMeta()),{},{destroy:s});Wi(o.metaCache,d)||c(d),o.metaCache=d}else o.metaCache=null}),q(xt(o),"onStoreChange",function(s,c,d){var f=o.props,p=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,g=f.onReset,m=d.store,b=o.getNamePath(),x=o.getValue(s),y=o.getValue(m),w=c&&Vo(c,b);switch(d.type==="valueUpdate"&&d.source==="external"&&!Wi(x,y)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Un,o.warnings=Un,o.triggerMetaEvent()),d.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Un,o.warnings=Un,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(p&&xs(p,s,m,x,y,d)){o.reRender();return}break}case"setField":{var C=d.data;if(w){"touched"in C&&(o.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(o.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(o.errors=C.errors||Un),"warnings"in C&&(o.warnings=C.warnings||Un),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in C&&Vo(c,b,!0)){o.reRender();return}if(p&&!b.length&&xs(p,s,m,x,y,d)){o.reRender();return}break}case"dependenciesUpdate":{var S=h.map(an);if(S.some(function($){return Vo(d.relatedFields,$)})){o.reRender();return}break}default:if(w||(!h.length||b.length||p)&&xs(p,s,m,x,y,d)){o.reRender();return}break}p===!0&&o.reRender()}),q(xt(o),"validateRules",function(s){var c=o.getNamePath(),d=o.getValue(),f=s||{},p=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,g=Promise.resolve().then(wo(Mn().mark(function m(){var b,x,y,w,C,S,$;return Mn().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(o.mounted){k.next=2;break}return k.abrupt("return",[]);case 2:if(b=o.props,x=b.validateFirst,y=x===void 0?!1:x,w=b.messageVariables,C=b.validateDebounce,S=o.getRules(),p&&(S=S.filter(function(E){return E}).filter(function(E){var O=E.validateTrigger;if(!O)return!0;var M=Mc(O);return M.includes(p)})),!(C&&p)){k.next=10;break}return k.next=8,new Promise(function(E){setTimeout(E,C)});case 8:if(o.validatePromise===g){k.next=10;break}return k.abrupt("return",[]);case 10:return $=p2(c,d,S,s,y,w),$.catch(function(E){return E}).then(function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Un;if(o.validatePromise===g){var O;o.validatePromise=null;var M=[],N=[];(O=E.forEach)===null||O===void 0||O.call(E,function(T){var P=T.rule.warningOnly,D=T.errors,j=D===void 0?Un:D;P?N.push.apply(N,$e(j)):M.push.apply(M,$e(j))}),o.errors=M,o.warnings=N,o.triggerMetaEvent(),o.reRender()}}),k.abrupt("return",$);case 13:case"end":return k.stop()}},m)})));return h||(o.validatePromise=g,o.dirty=!0,o.errors=Un,o.warnings=Un,o.triggerMetaEvent(),o.reRender()),g}),q(xt(o),"isFieldValidating",function(){return!!o.validatePromise}),q(xt(o),"isFieldTouched",function(){return o.touched}),q(xt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,c=s.getInternalHooks(io),d=c.getInitialValue;return d(o.getNamePath())!==void 0}),q(xt(o),"getErrors",function(){return o.errors}),q(xt(o),"getWarnings",function(){return o.warnings}),q(xt(o),"isListField",function(){return o.props.isListField}),q(xt(o),"isList",function(){return o.props.isList}),q(xt(o),"isPreserve",function(){return o.props.preserve}),q(xt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),q(xt(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return U(U({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var d=Yo(s);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),q(xt(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return er(s||c(!0),d)}),q(xt(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,d=c.name,f=c.trigger,p=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,m=c.getValueProps,b=c.fieldContext,x=p!==void 0?p:b.validateTrigger,y=o.getNamePath(),w=b.getInternalHooks,C=b.getFieldsValue,S=w(io),$=S.dispatch,k=o.getValue(),E=m||function(P){return q({},g,P)},O=s[f],M=d!==void 0?E(k):{},N=U(U({},s),M);N[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var P,D=arguments.length,j=new Array(D),B=0;B<D;B++)j[B]=arguments[B];v?P=v.apply(void 0,j):P=v2.apply(void 0,[g].concat(j)),h&&(P=h(P,k,C(!0))),P!==k&&$({type:"updateValue",namePath:y,value:P}),O&&O.apply(void 0,j)};var T=Mc(x||[]);return T.forEach(function(P){var D=N[P];N[P]=function(){D&&D.apply(void 0,arguments);var j=o.props.rules;j&&j.length&&$({type:"validateField",namePath:y,triggerName:P})}}),N}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(io),l=i.initEntityValue;l(xt(o))}return o}return nn(n,[{key:"componentDidMount",value:function(){var r=this.props,o=r.shouldUpdate,a=r.fieldContext;if(this.mounted=!0,a){var i=a.getInternalHooks,l=i(io),s=l.registerField;this.cancelRegisterFunc=s(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var r=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),i=a.child,l=a.isFunction,s;return l?s=i:u.isValidElement(i)?s=u.cloneElement(i,this.getControlled(i.props)):(xn(!i,"`children` of Field is not validate ReactElement."),s=i),u.createElement(u.Fragment,{key:r},s)}}]),n})(u.Component);q(td,"contextType",ho);q(td,"defaultProps",{trigger:"onChange",valuePropName:"value"});function nd(e){var t,n=e.name,r=pt(e,b2),o=u.useContext(ho),a=u.useContext(_a),i=n!==void 0?an(n):void 0,l=(t=r.isListField)!==null&&t!==void 0?t:!!a,s="keep";return l||(s="_".concat((i||[]).join("_"))),u.createElement(td,Te({key:s,name:i,isListField:l},r,{fieldContext:o}))}function hv(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,l=u.useContext(ho),s=u.useContext(_a),c=u.useRef({keys:[],id:0}),d=c.current,f=u.useMemo(function(){var g=an(l.prefixName)||[];return[].concat($e(g),$e(an(t)))},[l.prefixName,t]),p=u.useMemo(function(){return U(U({},l),{},{prefixName:f})},[l,f]),v=u.useMemo(function(){return{getKey:function(g){var m=f.length,b=g[m];return[d.keys[b],g.slice(m+1)]}}},[f]);if(typeof r!="function")return xn(!1,"Form.List only accepts function as children."),null;var h=function(g,m,b){var x=b.source;return x==="internal"?!1:g!==m};return u.createElement(_a.Provider,{value:v},u.createElement(ho.Provider,{value:p},u.createElement(nd,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!s},function(g,m){var b=g.value,x=b===void 0?[]:b,y=g.onChange,w=l.getFieldValue,C=function(){var k=w(f||[]);return k||[]},S={add:function(k,E){var O=C();E>=0&&E<=O.length?(d.keys=[].concat($e(d.keys.slice(0,E)),[d.id],$e(d.keys.slice(E))),y([].concat($e(O.slice(0,E)),[k],$e(O.slice(E))))):(d.keys=[].concat($e(d.keys),[d.id]),y([].concat($e(O),[k]))),d.id+=1},remove:function(k){var E=C(),O=new Set(Array.isArray(k)?k:[k]);O.size<=0||(d.keys=d.keys.filter(function(M,N){return!O.has(N)}),y(E.filter(function(M,N){return!O.has(N)})))},move:function(k,E){if(k!==E){var O=C();k<0||k>=O.length||E<0||E>=O.length||(d.keys=jp(d.keys,k,E),y(jp(O,k,E)))}}},$=x||[];return Array.isArray($)||($=[]),r($.map(function(k,E){var O=d.keys[E];return O===void 0&&(d.keys[E]=d.id,O=d.keys[E],d.id+=1),{name:E,key:O,isListField:!0}}),S,m)})))}function y2(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,l){i.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var vv="__@field_split__";function Cs(e){return e.map(function(t){return"".concat(Ze(t),":").concat(t)}).join(vv)}var jo=(function(){function e(){tn(this,e),q(this,"kvs",new Map)}return nn(e,[{key:"set",value:function(t,n){this.kvs.set(Cs(t),n)}},{key:"get",value:function(t){return this.kvs.get(Cs(t))}},{key:"update",value:function(t,n){var r=this.get(t),o=n(r);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(Cs(t))}},{key:"map",value:function(t){return $e(this.kvs.entries()).map(function(n){var r=Q(n,2),o=r[0],a=r[1],i=o.split(vv);return t({key:i.map(function(l){var s=l.match(/^([^:]*):(.*)$/),c=Q(s,3),d=c[1],f=c[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(n){var r=n.key,o=n.value;return t[r.join(".")]=o,null}),t}}]),e})(),x2=["name"],C2=nn(function e(t){var n=this;tn(this,e),q(this,"formHooked",!1),q(this,"forceRootUpdate",void 0),q(this,"subscribable",!0),q(this,"store",{}),q(this,"fieldEntities",[]),q(this,"initialValues",{}),q(this,"callbacks",{}),q(this,"validateMessages",null),q(this,"preserve",null),q(this,"lastValidatePromise",null),q(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),q(this,"getInternalHooks",function(r){return r===io?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(xn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),q(this,"useSubscribe",function(r){n.subscribable=r}),q(this,"prevWithoutPreserves",null),q(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=Ho(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var s=l.key;i=Jn(i,s,er(r,s))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),q(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new jo;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),q(this,"getInitialValue",function(r){var o=er(n.initialValues,r);return r.length?Ho(o):o}),q(this,"setCallbacks",function(r){n.callbacks=r}),q(this,"setValidateMessages",function(r){n.validateMessages=r}),q(this,"setPreserve",function(r){n.preserve=r}),q(this,"watchList",[]),q(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),q(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),q(this,"timeoutId",null),q(this,"warningUnhooked",function(){}),q(this,"updateStore",function(r){n.store=r}),q(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),q(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new jo;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),q(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=an(a);return o.get(i)||{INVALIDATE_NAME_PATH:an(a)}})}),q(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&Ze(r)==="object"&&(l=r.strict,i=r.filter),a===!0&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return s.forEach(function(d){var f,p,v="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var h,g;if((h=(g=d).isList)!==null&&h!==void 0&&h.call(g))return}else if(!a&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)c.push(v);else{var m="getMeta"in d?d.getMeta():null;i(m)&&c.push(v)}}),Ip(n.store,c.map(an))}),q(this,"getFieldValue",function(r){n.warningUnhooked();var o=an(r);return er(n.store,o)}),q(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:an(r[i]),errors:[],warnings:[]}})}),q(this,"getFieldError",function(r){n.warningUnhooked();var o=an(r),a=n.getFieldsError([o])[0];return a.errors}),q(this,"getFieldWarning",function(r){n.warningUnhooked();var o=an(r),a=n.getFieldsError([o])[0];return a.warnings}),q(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],l=o[1],s,c=!1;o.length===0?s=null:o.length===1?Array.isArray(i)?(s=i.map(an),c=!1):(s=null,c=i):(s=i.map(an),c=l);var d=n.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!s)return c?d.every(function(g){return f(g)||g.isList()}):d.some(f);var p=new jo;s.forEach(function(g){p.set(g,[])}),d.forEach(function(g){var m=g.getNamePath();s.forEach(function(b){b.every(function(x,y){return m[y]===x})&&p.update(b,function(x){return[].concat($e(x),[g])})})});var v=function(g){return g.some(f)},h=p.map(function(g){var m=g.value;return m});return c?h.every(v):h.some(v)}),q(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),q(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(an);return o.some(function(i){var l=i.getNamePath();return Vo(a,l)&&i.isFieldValidating()})}),q(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),q(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new jo,a=n.getFieldEntities(!0);a.forEach(function(s){var c=s.props.initialValue,d=s.getNamePath();if(c!==void 0){var f=o.get(d)||new Set;f.add({entity:s,value:c}),o.set(d,f)}});var i=function(s){s.forEach(function(c){var d=c.props.initialValue;if(d!==void 0){var f=c.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)xn(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var v=o.get(f);if(v&&v.size>1)xn(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var h=n.getFieldValue(f),g=c.isListField();!g&&(!r.skipExist||h===void 0)&&n.updateStore(Jn(n.store,f,$e(v)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var d;(d=l).push.apply(d,$e($e(c).map(function(f){return f.entity})))}})):l=a,i(l)}),q(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Ho(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(an);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(Jn(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),q(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,s=pt(i,x2),c=an(l);a.push(c),"value"in s&&n.updateStore(Jn(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),q(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),l=a.getMeta(),s=U(U({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),q(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=er(n.store,a);i===void 0&&n.updateStore(Jn(n.store,a,o))}}),q(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),q(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||s.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!gv(f.getNamePath(),o)})){var d=n.store;n.updateStore(Jn(d,o,c,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),q(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),q(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=U(U({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,i)})}else n.forceRootUpdate()}),q(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat($e(a))}),a}),q(this,"updateValue",function(r,o){var a=an(r),i=n.store;n.updateStore(Jn(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var l=n.triggerDependenciesUpdate(i,a),s=n.callbacks.onValuesChange;if(s){var c=Ip(n.store,[a]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat($e(l)))}),q(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=Ho(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),q(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),q(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new jo;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(d){var f=an(d);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(s),p})})});var l=function s(c){var d=i.get(c)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),s(p))}})};return l(r),a}),q(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var l=new jo;o.forEach(function(c){var d=c.name,f=c.errors;l.set(d,f)}),i.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=i.filter(function(c){var d=c.name;return Vo(r,d)});s.length&&a(s,i)}}),q(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var l=!!a,s=l?a.map(an):[],c=[],d=String(Date.now()),f=new Set,p=i||{},v=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach(function(x){if(l||s.push(x.getNamePath()),!(!x.props.rules||!x.props.rules.length)&&!(h&&!x.isFieldDirty())){var y=x.getNamePath();if(f.add(y.join(d)),!l||Vo(s,y,v)){var w=x.validateRules(U({validateMessages:U(U({},mv),n.validateMessages)},i));c.push(w.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var S,$=[],k=[];return(S=C.forEach)===null||S===void 0||S.call(C,function(E){var O=E.rule.warningOnly,M=E.errors;O?k.push.apply(k,$e(M)):$.push.apply($,$e(M))}),$.length?Promise.reject({name:y,errors:$,warnings:k}):{name:y,errors:$,warnings:k}}))}}});var g=y2(c);n.lastValidatePromise=g,g.catch(function(x){return x}).then(function(x){var y=x.map(function(w){var C=w.name;return C});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,x)});var m=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(x){var y=x.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:y,outOfDate:n.lastValidatePromise!==g})});m.catch(function(x){return x});var b=s.filter(function(x){return f.has(x.join(d))});return n.triggerOnFieldsChange(b),m}),q(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function rd(e){var t=u.useRef(),n=u.useState({}),r=Q(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new C2(a);t.current=i.getForm()}return[t.current]}var Hc=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),bv=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=u.useContext(Hc),i=u.useRef({});return u.createElement(Hc.Provider,{value:U(U({},a),{},{validateMessages:U(U({},a.validateMessages),t),triggerFormChange:function(l,s){n&&n(l,{changedFields:s,forms:i.current}),a.triggerFormChange(l,s)},triggerFormFinish:function(l,s){r&&r(l,{values:s,forms:i.current}),a.triggerFormFinish(l,s)},registerForm:function(l,s){l&&(i.current=U(U({},i.current),{},q({},l,s))),a.registerForm(l,s)},unregisterForm:function(l){var s=U({},i.current);delete s[l],i.current=s,a.unregisterForm(l)}})},o)},w2=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],E2=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,a=e.form,i=e.preserve,l=e.children,s=e.component,c=s===void 0?"form":s,d=e.validateMessages,f=e.validateTrigger,p=f===void 0?"onChange":f,v=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,b=e.clearOnDestroy,x=pt(e,w2),y=u.useRef(null),w=u.useContext(Hc),C=rd(a),S=Q(C,1),$=S[0],k=$.getInternalHooks(io),E=k.useSubscribe,O=k.setInitialValues,M=k.setCallbacks,N=k.setValidateMessages,T=k.setPreserve,P=k.destroyForm;u.useImperativeHandle(t,function(){return U(U({},$),{},{nativeElement:y.current})}),u.useEffect(function(){return w.registerForm(n,$),function(){w.unregisterForm(n)}},[w,$,n]),N(U(U({},w.validateMessages),d)),M({onValuesChange:v,onFieldsChange:function(R){if(w.triggerFormChange(n,R),h){for(var A=arguments.length,F=new Array(A>1?A-1:0),H=1;H<A;H++)F[H-1]=arguments[H];h.apply(void 0,[R].concat(F))}},onFinish:function(R){w.triggerFormFinish(n,R),g&&g(R)},onFinishFailed:m}),T(i);var D=u.useRef(null);O(r,!D.current),D.current||(D.current=!0),u.useEffect(function(){return function(){return P(b)}},[]);var j,B=typeof l=="function";if(B){var I=$.getFieldsValue(!0);j=l(I,$)}else j=l;E(!B);var _=u.useRef();u.useEffect(function(){h2(_.current||[],o||[])||$.setFields(o||[]),_.current=o},[o,$]);var L=u.useMemo(function(){return U(U({},$),{},{validateTrigger:p})},[$,p]),W=u.createElement(_a.Provider,{value:null},u.createElement(ho.Provider,{value:L},j));return c===!1?W:u.createElement(c,Te({},x,{ref:y,onSubmit:function(R){R.preventDefault(),R.stopPropagation(),$.submit()},onReset:function(R){var A;R.preventDefault(),$.resetFields(),(A=x.onReset)===null||A===void 0||A.call(x,R)}}),W)};function Pp(e){try{return JSON.stringify(e)}catch{return Math.random()}}function yv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,i=Dk(a)?{form:a}:a,l=i.form,s=Pt(),c=Q(s,2),d=c[0],f=c[1],p=En(function(){return Pp(d)},[d]),v=qe(p);v.current=p;var h=Gt(ho),g=l||h,m=g&&g._init,b=an(r),x=qe(b);return x.current=b,It(function(){if(m){var y=g.getFieldsValue,w=g.getInternalHooks,C=w(io),S=C.registerWatch,$=function(O,M){var N=i.preserve?M:O;return typeof r=="function"?r(N):er(N,x.current)},k=S(function(O,M){var N=$(O,M),T=Pp(N);v.current!==T&&(v.current=T,f(N))}),E=$(y(),y(!0));return d!==E&&f(E),k}},[m]),d}var S2=u.forwardRef(E2),na=S2;na.FormProvider=bv;na.Field=nd;na.List=hv;na.useForm=rd;na.useWatch=yv;const Or=u.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),xv=u.createContext(null),Cv=e=>{const t=Er(e,["prefixCls"]);return u.createElement(bv,Object.assign({},t))},od=u.createContext({prefixCls:""}),Cn=u.createContext({}),wv=({children:e,status:t,override:n})=>{const r=u.useContext(Cn),o=u.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return u.createElement(Cn.Provider,{value:o},e)},Ev=u.createContext(void 0),Yr=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=ae.createElement(wv,{override:!0,status:!0},o)),t&&(o=ae.createElement(c$,null,o)),o};function Rp(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Dp(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Ap(e){const{closable:t,closeIcon:n}=e||{};return ae.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const $2={};function k2(e,t,n=$2){const r=Ap(e),o=Ap(t),[a]=xo("global",Kr.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=ae.useMemo(()=>Object.assign({closeIcon:ae.createElement(Wu,null)},n),[n]),s=ae.useMemo(()=>r===!1?!1:r?Rp(l,o,r):o===!1?!1:o?Rp(l,o):l.closable?l:!1,[r,o,l]);return ae.useMemo(()=>{var c,d;if(s===!1)return[!1,null,i,{}];const{closeIconRender:f}=l,{closeIcon:p}=s;let v=p;const h=ur(s,!0);return v!=null&&(f&&(v=f(p)),v=ae.isValidElement(v)?ae.cloneElement(v,Object.assign(Object.assign(Object.assign({},v.props),{"aria-label":(d=(c=v.props)===null||c===void 0?void 0:c["aria-label"])!==null&&d!==void 0?d:a.close}),h)):ae.createElement("span",Object.assign({"aria-label":a.close},h),v)),[!0,v,i,h]},[i,a.close,s,l])}const O2=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},N2=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},M2=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Bc=(e,t)=>M2(e,t),I2=(e,t,n)=>({[`@media (min-width: ${me(t)})`]:Object.assign({},Bc(e,n))}),j2=()=>({}),P2=()=>({}),R2=un("Grid",O2,j2),D2=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),A2=un("Grid",e=>{const t=At(e,{gridColumns:24}),n=D2(t);return delete n.xs,[N2(t),Bc(t,""),Bc(t,"-xs"),Object.keys(n).map(r=>I2(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},P2),T2=ae.createContext({});function F2(e){return t=>u.createElement(Zr,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const ad=(e,t,n,r,o)=>F2(a=>{const{prefixCls:i,style:l}=a,s=u.useRef(null),[c,d]=u.useState(0),[f,p]=u.useState(0),[v,h]=Jt(!1,{value:a.open}),{getPrefixCls:g}=u.useContext(Ct),m=g(r||"select",i);u.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(C=>{const S=C[0].target;d(S.offsetHeight+8),p(S.offsetWidth)}),w=setInterval(()=>{var C;const S=`.${m}-dropdown`,$=(C=s.current)===null||C===void 0?void 0:C.querySelector(S);$&&(clearInterval(w),y.observe($))},10);return()=>{clearInterval(w),y.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:v,visible:v,getPopupContainer:()=>s.current});t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const x={paddingBottom:c,position:"relative",minWidth:f};return u.createElement("div",{ref:s,style:x},u.createElement(e,Object.assign({},b)))}),id=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var Il=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,a=e.onMouseDown,i=e.onClick,l=typeof n=="function"?n(r):n;return u.createElement("span",{className:t,onMouseDown:function(s){s.preventDefault(),a==null||a(s)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},l!==void 0?l:u.createElement("span",{className:ce(t.split(/\s+/).map(function(s){return"".concat(s,"-icon")}))},o))},H2=function(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=ae.useMemo(function(){if(Ze(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=ae.useMemo(function(){return!!(!a&&r&&(n.length||i)&&!(l==="combobox"&&i===""))},[r,a,n.length,i,l]);return{allowClear:c,clearIcon:ae.createElement(Il,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"\xD7")}},Sv=u.createContext(null);function B2(){return u.useContext(Sv)}function z2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=Q(t,2),r=n[0],o=n[1],a=u.useRef(null),i=function(){window.clearTimeout(a.current)};u.useEffect(function(){return i},[]);var l=function(s,c){i(),a.current=window.setTimeout(function(){o(s),c&&c()},e)};return[r,l,i]}function $v(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function _2(e,t,n,r){var o=u.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function a(i){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(s)&&c!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function L2(e){return e&&![Qe.ESC,Qe.SHIFT,Qe.BACKSPACE,Qe.TAB,Qe.WIN_KEY,Qe.ALT,Qe.META,Qe.WIN_KEY_RIGHT,Qe.CTRL,Qe.SEMICOLON,Qe.EQUALS,Qe.CAPS_LOCK,Qe.CONTEXT_MENU,Qe.F1,Qe.F2,Qe.F3,Qe.F4,Qe.F5,Qe.F6,Qe.F7,Qe.F8,Qe.F9,Qe.F10,Qe.F11,Qe.F12].includes(e)}var W2=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Po=void 0;function V2(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,f=e.style,p=e.children,v=e.display,h=e.order,g=e.component,m=g===void 0?"div":g,b=pt(e,W2),x=i&&!v;function y(k){s(c,k)}u.useEffect(function(){return function(){y(null)}},[]);var w=a&&o!==Po?a(o,{index:h}):p,C;r||(C={opacity:x?0:1,height:x?0:Po,overflowY:x?"hidden":Po,order:i?h:Po,pointerEvents:x?"none":Po,position:x?"absolute":Po});var S={};x&&(S["aria-hidden"]=!0);var $=u.createElement(m,Te({className:ce(!r&&n,d),style:U(U({},C),f)},S,b,{ref:t}),w);return i&&($=u.createElement(wr,{onResize:function(k){var E=k.offsetWidth;y(E)},disabled:l},$)),$}var _o=u.forwardRef(V2);_o.displayName="Item";function K2(e){if(typeof MessageChannel>"u")ft(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function q2(){var e=u.useRef(null),t=function(n){e.current||(e.current=[],K2(function(){uy(function(){e.current.forEach(function(r){r()}),e.current=null})})),e.current.push(n)};return t}function Ro(e,t){var n=u.useState(t),r=Q(n,2),o=r[0],a=r[1],i=yt(function(l){e(function(){a(l)})});return[o,i]}var Zi=ae.createContext(null),Y2=["component"],X2=["className"],U2=["className"],G2=function(e,t){var n=u.useContext(Zi);if(!n){var r=e.component,o=r===void 0?"div":r,a=pt(e,Y2);return u.createElement(o,Te({},a,{ref:t}))}var i=n.className,l=pt(n,X2),s=e.className,c=pt(e,U2);return u.createElement(Zi.Provider,{value:null},u.createElement(_o,Te({ref:t,className:ce(i,s)},l,c)))},kv=u.forwardRef(G2);kv.displayName="RawItem";var Q2=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Ov="responsive",Nv="invalidate";function Z2(e){return"+ ".concat(e.length," ...")}function J2(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,p=e.style,v=e.className,h=e.maxCount,g=e.renderRest,m=e.renderRawRest,b=e.prefix,x=e.suffix,y=e.component,w=y===void 0?"div":y,C=e.itemComponent,S=e.onVisibleChange,$=pt(e,Q2),k=f==="full",E=q2(),O=Ro(E,null),M=Q(O,2),N=M[0],T=M[1],P=N||0,D=Ro(E,new Map),j=Q(D,2),B=j[0],I=j[1],_=Ro(E,0),L=Q(_,2),W=L[0],R=L[1],A=Ro(E,0),F=Q(A,2),H=F[0],z=F[1],V=Ro(E,0),K=Q(V,2),J=K[0],Y=K[1],Z=Ro(E,0),G=Q(Z,2),X=G[0],ne=G[1],te=Pt(null),ee=Q(te,2),se=ee[0],de=ee[1],ge=Pt(null),ve=Q(ge,2),ue=ve[0],we=ve[1],le=u.useMemo(function(){return ue===null&&k?Number.MAX_SAFE_INTEGER:ue||0},[ue,N]),pe=Pt(!1),Ne=Q(pe,2),re=Ne[0],ke=Ne[1],Se="".concat(r,"-item"),Me=Math.max(W,H),Pe=h===Ov,be=a.length&&Pe,ie=h===Nv,ye=be||typeof h=="number"&&a.length>h,xe=En(function(){var Ee=a;return be?N===null&&k?Ee=a:Ee=a.slice(0,Math.min(a.length,P/d)):typeof h=="number"&&(Ee=a.slice(0,h)),Ee},[a,d,N,h,be]),Ce=En(function(){return be?a.slice(le+1):a.slice(xe.length)},[a,xe,be,le]),De=Td(function(Ee,he){var Oe;return typeof s=="function"?s(Ee):(Oe=s&&(Ee==null?void 0:Ee[s]))!==null&&Oe!==void 0?Oe:he},[s]),fe=Td(i||function(Ee){return Ee},[i]);function Ge(Ee,he,Oe){ue===Ee&&(he===void 0||he===se)||(we(Ee),Oe||(ke(Ee<a.length-1),S==null||S(Ee)),he!==void 0&&de(he))}function ot(Ee,he){T(he.clientWidth)}function it(Ee,he){I(function(Oe){var We=new Map(Oe);return he===null?We.delete(Ee):We.set(Ee,he),We})}function mt(Ee,he){z(he),R(H)}function Re(Ee,he){Y(he)}function He(Ee,he){ne(he)}function Ae(Ee){return B.get(De(xe[Ee],Ee))}Et(function(){if(P&&typeof Me=="number"&&xe){var Ee=J+X,he=xe.length,Oe=he-1;if(!he){Ge(0,null);return}for(var We=0;We<he;We+=1){var Je=Ae(We);if(k&&(Je=Je||0),Je===void 0){Ge(We-1,void 0,!0);break}if(Ee+=Je,Oe===0&&Ee<=P||We===Oe-1&&Ee+Ae(Oe)<=P){Ge(Oe,null);break}else if(Ee+Me>P){Ge(We-1,Ee-Je-X+H);break}}x&&Ae(0)+X>P&&de(null)}},[P,B,H,J,X,De,xe]);var Ye=re&&!!Ce.length,Xe={};se!==null&&be&&(Xe={position:"absolute",left:se,top:0});var st={prefixCls:Se,responsive:be,component:C,invalidate:ie},ut=l?function(Ee,he){var Oe=De(Ee,he);return u.createElement(Zi.Provider,{key:Oe,value:U(U({},st),{},{order:he,item:Ee,itemKey:Oe,registerSize:it,display:he<=le})},l(Ee,he))}:function(Ee,he){var Oe=De(Ee,he);return u.createElement(_o,Te({},st,{order:he,key:Oe,item:Ee,renderItem:fe,itemKey:Oe,registerSize:it,display:he<=le}))},Ve={order:Ye?le:Number.MAX_SAFE_INTEGER,className:"".concat(Se,"-rest"),registerSize:mt,display:Ye},nt=g||Z2,ct=m?u.createElement(Zi.Provider,{value:U(U({},st),Ve)},m(Ce)):u.createElement(_o,Te({},st,Ve),typeof nt=="function"?nt(Ce):nt),je=u.createElement(w,Te({className:ce(!ie&&r,v),style:p,ref:t},$),b&&u.createElement(_o,Te({},st,{responsive:Pe,responsiveDisabled:!be,order:-1,className:"".concat(Se,"-prefix"),registerSize:Re,display:!0}),b),xe.map(ut),ye?ct:null,x&&u.createElement(_o,Te({},st,{responsive:Pe,responsiveDisabled:!be,order:le,className:"".concat(Se,"-suffix"),registerSize:He,display:!0,style:Xe}),x));return Pe?u.createElement(wr,{onResize:ot,disabled:!be},je):je}var ra=u.forwardRef(J2);ra.displayName="Overflow";ra.Item=kv;ra.RESPONSIVE=Ov;ra.INVALIDATE=Nv;function eO(e,t,n){var r=U(U({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var i,l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return a.apply(void 0,s),(i=e[o])===null||i===void 0?void 0:i.call.apply(i,[e].concat(s))})}),r}var tO=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],nO=function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,a=e.autoFocus,i=e.autoComplete,l=e.editable,s=e.activeDescendantId,c=e.value,d=e.open,f=e.attrs,p=pt(e,tO),v=o||u.createElement("input",null),h=v,g=h.ref,m=h.props;return"maxLength"in v.props,v=u.cloneElement(v,U(U(U({type:"search"},eO(p,m)),{},{id:r,ref:nr(t,g),autoComplete:i||"off",autoFocus:a,className:ce("".concat(n,"-selection-search-input"),m==null?void 0:m.className),role:"combobox","aria-expanded":d||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":d?s:void 0},f),{},{value:l?c:"",readOnly:!l,unselectable:l?null:"on",style:U(U({},m.style),{},{opacity:l?null:0})})),v},Mv=u.forwardRef(nO);function Iv(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var rO=typeof window<"u"&&window.document&&window.document.documentElement,oO=rO;function aO(e){return e!=null}function iO(e){return!e&&e!==0}function Tp(e){return["string","number"].includes(Ze(e))}function jv(e){var t=void 0;return e&&(Tp(e.title)?t=e.title.toString():Tp(e.label)&&(t=e.label.toString())),t}function lO(e,t){oO?u.useLayoutEffect(e,t):u.useEffect(e,t)}function sO(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Fp=function(e){e.preventDefault(),e.stopPropagation()},cO=function(e){var t=e.id,n=e.prefixCls,r=e.values,o=e.open,a=e.searchValue,i=e.autoClearSearchValue,l=e.inputRef,s=e.placeholder,c=e.disabled,d=e.mode,f=e.showSearch,p=e.autoFocus,v=e.autoComplete,h=e.activeDescendantId,g=e.tabIndex,m=e.removeIcon,b=e.maxTagCount,x=e.maxTagTextLength,y=e.maxTagPlaceholder,w=y===void 0?function(X){return"+ ".concat(X.length," ...")}:y,C=e.tagRender,S=e.onToggleOpen,$=e.onRemove,k=e.onInputChange,E=e.onInputPaste,O=e.onInputKeyDown,M=e.onInputMouseDown,N=e.onInputCompositionStart,T=e.onInputCompositionEnd,P=e.onInputBlur,D=u.useRef(null),j=Pt(0),B=Q(j,2),I=B[0],_=B[1],L=Pt(!1),W=Q(L,2),R=W[0],A=W[1],F="".concat(n,"-selection"),H=o||d==="multiple"&&i===!1||d==="tags"?a:"",z=d==="tags"||d==="multiple"&&i===!1||f&&(o||R);lO(function(){_(D.current.scrollWidth)},[H]);var V=function(X,ne,te,ee,se){return u.createElement("span",{title:jv(X),className:ce("".concat(F,"-item"),q({},"".concat(F,"-item-disabled"),te))},u.createElement("span",{className:"".concat(F,"-item-content")},ne),ee&&u.createElement(Il,{className:"".concat(F,"-item-remove"),onMouseDown:Fp,onClick:se,customizeIcon:m},"\xD7"))},K=function(X,ne,te,ee,se,de){var ge=function(ve){Fp(ve),S(!o)};return u.createElement("span",{onMouseDown:ge},C({label:ne,value:X,disabled:te,closable:ee,onClose:se,isMaxTag:!!de}))},J=function(X){var ne=X.disabled,te=X.label,ee=X.value,se=!c&&!ne,de=te;if(typeof x=="number"&&(typeof te=="string"||typeof te=="number")){var ge=String(de);ge.length>x&&(de="".concat(ge.slice(0,x),"..."))}var ve=function(ue){ue&&ue.stopPropagation(),$(X)};return typeof C=="function"?K(ee,de,ne,se,ve):V(X,de,ne,se,ve)},Y=function(X){if(!r.length)return null;var ne=typeof w=="function"?w(X):w;return typeof C=="function"?K(void 0,ne,!1,!1,void 0,!0):V({title:ne},ne,!1)},Z=u.createElement("div",{className:"".concat(F,"-search"),style:{width:I},onFocus:function(){A(!0)},onBlur:function(){A(!1)}},u.createElement(Mv,{ref:l,open:o,prefixCls:n,id:t,inputElement:null,disabled:c,autoFocus:p,autoComplete:v,editable:z,activeDescendantId:h,value:H,onKeyDown:O,onMouseDown:M,onChange:k,onPaste:E,onCompositionStart:N,onCompositionEnd:T,onBlur:P,tabIndex:g,attrs:ur(e,!0)}),u.createElement("span",{ref:D,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},H,"\xA0")),G=u.createElement(ra,{prefixCls:"".concat(F,"-overflow"),data:r,renderItem:J,renderRest:Y,suffix:Z,itemKey:sO,maxCount:b});return u.createElement("span",{className:"".concat(F,"-wrap")},G,!r.length&&!H&&u.createElement("span",{className:"".concat(F,"-placeholder")},s))},uO=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,l=e.autoComplete,s=e.activeDescendantId,c=e.mode,d=e.open,f=e.values,p=e.placeholder,v=e.tabIndex,h=e.showSearch,g=e.searchValue,m=e.activeValue,b=e.maxLength,x=e.onInputKeyDown,y=e.onInputMouseDown,w=e.onInputChange,C=e.onInputPaste,S=e.onInputCompositionStart,$=e.onInputCompositionEnd,k=e.onInputBlur,E=e.title,O=u.useState(!1),M=Q(O,2),N=M[0],T=M[1],P=c==="combobox",D=P||h,j=f[0],B=g||"";P&&m&&!N&&(B=m),u.useEffect(function(){P&&T(!1)},[P,m]);var I=c!=="combobox"&&!d&&!h?!1:!!B,_=E===void 0?jv(j):E,L=u.useMemo(function(){return j?null:u.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:I?{visibility:"hidden"}:void 0},p)},[j,I,p,n]);return u.createElement("span",{className:"".concat(n,"-selection-wrap")},u.createElement("span",{className:"".concat(n,"-selection-search")},u.createElement(Mv,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:i,autoComplete:l,editable:D,activeDescendantId:s,value:B,onKeyDown:x,onMouseDown:y,onChange:function(W){T(!0),w(W)},onPaste:C,onCompositionStart:S,onCompositionEnd:$,onBlur:k,tabIndex:v,attrs:ur(e,!0),maxLength:P?b:void 0})),!P&&j?u.createElement("span",{className:"".concat(n,"-selection-item"),title:_,style:I?{visibility:"hidden"}:void 0},j.label):null,L)},dO=function(e,t){var n=qe(null),r=qe(!1),o=e.prefixCls,a=e.open,i=e.mode,l=e.showSearch,s=e.tokenWithEnter,c=e.disabled,d=e.prefix,f=e.autoClearSearchValue,p=e.onSearch,v=e.onSearchSubmit,h=e.onToggleOpen,g=e.onInputKeyDown,m=e.onInputBlur,b=e.domRef;u.useImperativeHandle(t,function(){return{focus:function(I){n.current.focus(I)},blur:function(){n.current.blur()}}});var x=$v(0),y=Q(x,2),w=y[0],C=y[1],S=function(I){var _=I.which,L=n.current instanceof HTMLTextAreaElement;!L&&a&&(_===Qe.UP||_===Qe.DOWN)&&I.preventDefault(),g&&g(I),_===Qe.ENTER&&i==="tags"&&!r.current&&!a&&(v==null||v(I.target.value)),!(L&&!a&&~[Qe.UP,Qe.DOWN,Qe.LEFT,Qe.RIGHT].indexOf(_))&&L2(_)&&h(!0)},$=function(){C(!0)},k=qe(null),E=function(I){p(I,!0,r.current)!==!1&&h(!0)},O=function(){r.current=!0},M=function(I){r.current=!1,i!=="combobox"&&E(I.target.value)},N=function(I){var _=I.target.value;if(s&&k.current&&/[\r\n]/.test(k.current)){var L=k.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_=_.replace(L,k.current)}k.current=null,E(_)},T=function(I){var _=I.clipboardData,L=_==null?void 0:_.getData("text");k.current=L||""},P=function(I){var _=I.target;if(_!==n.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){n.current.focus()}):n.current.focus()}},D=function(I){var _=w();I.target!==n.current&&!_&&!(i==="combobox"&&c)&&I.preventDefault(),(i!=="combobox"&&(!l||!_)||!a)&&(a&&f!==!1&&p("",!0,!1),h())},j={inputRef:n,onInputKeyDown:S,onInputMouseDown:$,onInputChange:N,onInputPaste:T,onInputCompositionStart:O,onInputCompositionEnd:M,onInputBlur:m},B=i==="multiple"||i==="tags"?u.createElement(cO,Te({},e,j)):u.createElement(uO,Te({},e,j));return u.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:P,onMouseDown:D},d&&u.createElement("div",{className:"".concat(o,"-prefix")},d),B)},fO=u.forwardRef(dO);function pO(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,s=o.x,c=s===void 0?0:s,d=o.y,f=d===void 0?0:d,p=u.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],g=n.points[1],m=h[0],b=h[1],x=g[0],y=g[1];m===x||!["t","b"].includes(m)?v.top=f:m==="t"?v.top=0:v.bottom=0,b===y||!["l","r"].includes(b)?v.left=c:b==="l"?v.left=0:v.right=0}return u.createElement("div",{ref:p,className:ce("".concat(t,"-arrow"),i),style:v},l)}function mO(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?u.createElement(Co,Te({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return u.createElement("div",{style:{zIndex:r},className:ce("".concat(t,"-mask"),l)})}):null}var gO=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),hO=u.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,v=e.arrow,h=e.arrowPos,g=e.align,m=e.motion,b=e.maskMotion,x=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,C=e.portal,S=e.zIndex,$=e.onMouseEnter,k=e.onMouseLeave,E=e.onPointerEnter,O=e.onPointerDownCapture,M=e.ready,N=e.offsetX,T=e.offsetY,P=e.offsetR,D=e.offsetB,j=e.onAlign,B=e.onPrepare,I=e.stretch,_=e.targetWidth,L=e.targetHeight,W=typeof n=="function"?n():n,R=s||c,A=(y==null?void 0:y.length)>0,F=u.useState(!y||!A),H=Q(F,2),z=H[0],V=H[1];if(Et(function(){!z&&A&&i&&V(!0)},[z,A,i]),!z)return null;var K="auto",J={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(M||!s){var Y,Z=g.points,G=g.dynamicInset||((Y=g._experimental)===null||Y===void 0?void 0:Y.dynamicInset),X=G&&Z[0][1]==="r",ne=G&&Z[0][0]==="b";X?(J.right=P,J.left=K):(J.left=N,J.right=K),ne?(J.bottom=D,J.top=K):(J.top=T,J.bottom=K)}var te={};return I&&(I.includes("height")&&L?te.height=L:I.includes("minHeight")&&L&&(te.minHeight=L),I.includes("width")&&_?te.width=_:I.includes("minWidth")&&_&&(te.minWidth=_)),s||(te.pointerEvents="none"),u.createElement(C,{open:x||R,getContainer:y&&function(){return y(i)},autoDestroy:w},u.createElement(mO,{prefixCls:o,open:s,zIndex:S,mask:p,motion:b}),u.createElement(wr,{onResize:j,disabled:!s},function(ee){return u.createElement(Co,Te({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:B,onEnterPrepare:B,visible:s,onVisibleChanged:function(se){var de;m==null||(de=m.onVisibleChanged)===null||de===void 0||de.call(m,se),l(se)}}),function(se,de){var ge=se.className,ve=se.style,ue=ce(o,ge,r);return u.createElement("div",{ref:nr(ee,t,de),className:ue,style:U(U(U(U({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},J),te),ve),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:$,onMouseLeave:k,onPointerEnter:E,onClick:f,onPointerDownCapture:O},v&&u.createElement(pO,{prefixCls:o,arrow:v,arrowPos:h,align:g}),u.createElement(gO,{cache:!s&&!d},W))})}))}),vO=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Jo(n),a=u.useCallback(function(l){Mu(t,r?r(l):l)},[r]),i=Ya(a,Xa(n));return o?u.cloneElement(n,{ref:i}):n}),Hp=u.createContext(null);function Bp(e){return e?Array.isArray(e)?e:[e]:[]}function bO(e,t,n,r){return u.useMemo(function(){var o=Bp(n??t),a=Bp(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function yO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function xO(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var l,s=a[i];if(yO((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function zp(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ti(e){return e.ownerDocument.defaultView}function zc(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=ti(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,l=o.overflow;[a,i,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function La(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ha(e){return La(parseFloat(e),0)}function _p(e,t){var n=U({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=ti(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,v=r.clientHeight,h=r.offsetWidth,g=r.clientWidth,m=ha(l),b=ha(s),x=ha(c),y=ha(d),w=La(Math.round(f.width/h*1e3)/1e3),C=La(Math.round(f.height/p*1e3)/1e3),S=(h-g-x-y)*w,$=(p-v-m-b)*C,k=m*C,E=b*C,O=x*w,M=y*w,N=0,T=0;if(a==="clip"){var P=ha(i);N=P*w,T=P*C}var D=f.x+O-N,j=f.y+k-T,B=D+f.width+2*N-O-M-S,I=j+f.height+2*T-k-E-$;n.left=Math.max(n.left,D),n.top=Math.max(n.top,j),n.right=Math.min(n.right,B),n.bottom=Math.min(n.bottom,I)}}),n}function Lp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Wp(e,t){var n=t||[],r=Q(n,2),o=r[0],a=r[1];return[Lp(e.width,o),Lp(e.height,a)]}function Vp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Do(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Rr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function CO(e,t,n,r,o,a,i){var l=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=Q(l,2),c=s[0],d=s[1],f=u.useRef(0),p=u.useMemo(function(){return t?zc(t):[]},[t]),v=u.useRef({}),h=function(){v.current={}};e||h();var g=yt(function(){if(t&&n&&e){let fn=function(Ir,da){var jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ne,fa=R.x+Ir,ri=R.y+da,Wl=fa+ne,Vl=ri+X,Kl=Math.max(fa,jr.left),Ke=Math.max(ri,jr.top),$t=Math.min(Wl,jr.right),bn=Math.min(Vl,jr.bottom);return Math.max(0,($t-Kl)*(bn-Ke))},No=function(){Mt=R.y+nt,ht=Mt+X,Tt=R.x+Ve,Ft=Tt+ne};var x,y,w,C,S=t,$=S.ownerDocument,k=ti(S),E=k.getComputedStyle(S),O=E.position,M=S.style.left,N=S.style.top,T=S.style.right,P=S.style.bottom,D=S.style.overflow,j=U(U({},o[r]),a),B=$.createElement("div");(x=S.parentElement)===null||x===void 0||x.appendChild(B),B.style.left="".concat(S.offsetLeft,"px"),B.style.top="".concat(S.offsetTop,"px"),B.style.position=O,B.style.height="".concat(S.offsetHeight,"px"),B.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var I;if(Array.isArray(n))I={x:n[0],y:n[1],width:0,height:0};else{var _,L,W=n.getBoundingClientRect();W.x=(_=W.x)!==null&&_!==void 0?_:W.left,W.y=(L=W.y)!==null&&L!==void 0?L:W.top,I={x:W.x,y:W.y,width:W.width,height:W.height}}var R=S.getBoundingClientRect(),A=k.getComputedStyle(S),F=A.height,H=A.width;R.x=(y=R.x)!==null&&y!==void 0?y:R.left,R.y=(w=R.y)!==null&&w!==void 0?w:R.top;var z=$.documentElement,V=z.clientWidth,K=z.clientHeight,J=z.scrollWidth,Y=z.scrollHeight,Z=z.scrollTop,G=z.scrollLeft,X=R.height,ne=R.width,te=I.height,ee=I.width,se={left:0,top:0,right:V,bottom:K},de={left:-G,top:-Z,right:J-G,bottom:Y-Z},ge=j.htmlRegion,ve="visible",ue="visibleFirst";ge!=="scroll"&&ge!==ue&&(ge=ve);var we=ge===ue,le=_p(de,p),pe=_p(se,p),Ne=ge===ve?pe:le,re=we?pe:Ne;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var ke=S.getBoundingClientRect();S.style.left=M,S.style.top=N,S.style.right=T,S.style.bottom=P,S.style.overflow=D,(C=S.parentElement)===null||C===void 0||C.removeChild(B);var Se=La(Math.round(ne/parseFloat(H)*1e3)/1e3),Me=La(Math.round(X/parseFloat(F)*1e3)/1e3);if(Se===0||Me===0||ja(n)&&!Cl(n))return;var Pe=j.offset,be=j.targetOffset,ie=Wp(R,Pe),ye=Q(ie,2),xe=ye[0],Ce=ye[1],De=Wp(I,be),fe=Q(De,2),Ge=fe[0],ot=fe[1];I.x-=Ge,I.y-=ot;var it=j.points||[],mt=Q(it,2),Re=mt[0],He=mt[1],Ae=Vp(He),Ye=Vp(Re),Xe=Do(I,Ae),st=Do(R,Ye),ut=U({},j),Ve=Xe.x-st.x+xe,nt=Xe.y-st.y+Ce,ct=fn(Ve,nt),je=fn(Ve,nt,pe),Ee=Do(I,["t","l"]),he=Do(R,["t","l"]),Oe=Do(I,["b","r"]),We=Do(R,["b","r"]),Je=j.overflow||{},at=Je.adjustX,gt=Je.adjustY,bt=Je.shiftX,dt=Je.shiftY,Rt=function(Ir){return typeof Ir=="boolean"?Ir:Ir>=0},Mt,ht,Tt,Ft;No();var rn=Rt(gt),Ie=Ye[0]===Ae[0];if(rn&&Ye[0]==="t"&&(ht>re.bottom||v.current.bt)){var _e=nt;Ie?_e-=X-te:_e=Ee.y-We.y-Ce;var Fe=fn(Ve,_e),Be=fn(Ve,_e,pe);Fe>ct||Fe===ct&&(!we||Be>=je)?(v.current.bt=!0,nt=_e,Ce=-Ce,ut.points=[Rr(Ye,0),Rr(Ae,0)]):v.current.bt=!1}if(rn&&Ye[0]==="b"&&(Mt<re.top||v.current.tb)){var Le=nt;Ie?Le+=X-te:Le=Oe.y-he.y-Ce;var Dt=fn(Ve,Le),St=fn(Ve,Le,pe);Dt>ct||Dt===ct&&(!we||St>=je)?(v.current.tb=!0,nt=Le,Ce=-Ce,ut.points=[Rr(Ye,0),Rr(Ae,0)]):v.current.tb=!1}var Yt=Rt(at),Qt=Ye[1]===Ae[1];if(Yt&&Ye[1]==="l"&&(Ft>re.right||v.current.rl)){var Bt=Ve;Qt?Bt-=ne-ee:Bt=Ee.x-We.x-xe;var zt=fn(Bt,nt),dn=fn(Bt,nt,pe);zt>ct||zt===ct&&(!we||dn>=je)?(v.current.rl=!0,Ve=Bt,xe=-xe,ut.points=[Rr(Ye,1),Rr(Ae,1)]):v.current.rl=!1}if(Yt&&Ye[1]==="r"&&(Tt<re.left||v.current.lr)){var Xt=Ve;Qt?Xt+=ne-ee:Xt=Oe.x-he.x-xe;var Sn=fn(Xt,nt),$n=fn(Xt,nt,pe);Sn>ct||Sn===ct&&(!we||$n>=je)?(v.current.lr=!0,Ve=Xt,xe=-xe,ut.points=[Rr(Ye,1),Rr(Ae,1)]):v.current.lr=!1}No();var wn=bt===!0?0:bt;typeof wn=="number"&&(Tt<pe.left&&(Ve-=Tt-pe.left-xe,I.x+ee<pe.left+wn&&(Ve+=I.x-pe.left+ee-wn)),Ft>pe.right&&(Ve-=Ft-pe.right-xe,I.x>pe.right-wn&&(Ve+=I.x-pe.right+wn)));var Pn=dt===!0?0:dt;typeof Pn=="number"&&(Mt<pe.top&&(nt-=Mt-pe.top-Ce,I.y+te<pe.top+Pn&&(nt+=I.y-pe.top+te-Pn)),ht>pe.bottom&&(nt-=ht-pe.bottom-Ce,I.y>pe.bottom-Pn&&(nt+=I.y-pe.bottom+Pn)));var Rn=R.x+Ve,Dn=Rn+ne,Yn=R.y+nt,ar=Yn+X,et=I.x,jt=et+ee,Ut=I.y,ze=Ut+te,vt=Math.max(Rn,et),Kt=Math.min(Dn,jt),on=(vt+Kt)/2,Bn=on-Rn,zn=Math.max(Yn,Ut),_n=Math.min(ar,ze),mr=(zn+_n)/2,tt=mr-Yn;i==null||i(t,ut);var lt=ke.right-R.x-(Ve+R.width),Vt=ke.bottom-R.y-(nt+R.height);Se===1&&(Ve=Math.round(Ve),lt=Math.round(lt)),Me===1&&(nt=Math.round(nt),Vt=Math.round(Vt));var qt={ready:!0,offsetX:Ve/Se,offsetY:nt/Me,offsetR:lt/Se,offsetB:Vt/Me,arrowX:Bn/Se,arrowY:tt/Me,scaleX:Se,scaleY:Me,align:ut};d(qt)}}),m=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&g()})},b=function(){d(function(x){return U(U({},x),{},{ready:!1})})};return Et(b,[r]),Et(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function wO(e,t,n,r,o){Et(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,l=zc(a),s=zc(i),c=ti(i),d=new Set([c].concat($e(l),$e(s)));return d.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(p){p.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function EO(e,t,n,r,o,a,i,l){var s=u.useRef(e);s.current=e;var c=u.useRef(!1);u.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){c.current=!1},p=function(g){var m;s.current&&!i(((m=g.composedPath)===null||m===void 0||(m=m.call(g))===null||m===void 0?void 0:m[0])||g.target)&&!c.current&&l(!1)},v=ti(r);v.addEventListener("pointerdown",f,!0),v.addEventListener("mousedown",p,!0),v.addEventListener("contextmenu",p,!0);var h=Yi(n);return h&&(h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0)),function(){v.removeEventListener("pointerdown",f,!0),v.removeEventListener("mousedown",p,!0),v.removeEventListener("contextmenu",p,!0),h&&(h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0))}}},[t,n,r,o,a]);function d(){c.current=!0}return d}var SO=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function $O(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fv,t=u.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,v=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,m=n.mouseLeaveDelay,b=m===void 0?.1:m,x=n.focusDelay,y=n.blurDelay,w=n.mask,C=n.maskClosable,S=C===void 0?!0:C,$=n.getPopupContainer,k=n.forceRender,E=n.autoDestroy,O=n.destroyPopupOnHide,M=n.popup,N=n.popupClassName,T=n.popupStyle,P=n.popupPlacement,D=n.builtinPlacements,j=D===void 0?{}:D,B=n.popupAlign,I=n.zIndex,_=n.stretch,L=n.getPopupClassNameFromAlign,W=n.fresh,R=n.alignPoint,A=n.onPopupClick,F=n.onPopupAlign,H=n.arrow,z=n.popupMotion,V=n.maskMotion,K=n.popupTransitionName,J=n.popupAnimation,Y=n.maskTransitionName,Z=n.maskAnimation,G=n.className,X=n.getTriggerDOMNode,ne=pt(n,SO),te=E||O||!1,ee=u.useState(!1),se=Q(ee,2),de=se[0],ge=se[1];Et(function(){ge(id())},[]);var ve=u.useRef({}),ue=u.useContext(Hp),we=u.useMemo(function(){return{registerSubPopup:function(Ke,$t){ve.current[Ke]=$t,ue==null||ue.registerSubPopup(Ke,$t)}}},[ue]),le=ed(),pe=u.useState(null),Ne=Q(pe,2),re=Ne[0],ke=Ne[1],Se=u.useRef(null),Me=yt(function(Ke){Se.current=Ke,ja(Ke)&&re!==Ke&&ke(Ke),ue==null||ue.registerSubPopup(le,Ke)}),Pe=u.useState(null),be=Q(Pe,2),ie=be[0],ye=be[1],xe=u.useRef(null),Ce=yt(function(Ke){ja(Ke)&&ie!==Ke&&(ye(Ke),xe.current=Ke)}),De=u.Children.only(i),fe=(De==null?void 0:De.props)||{},Ge={},ot=yt(function(Ke){var $t,bn,pn=ie;return(pn==null?void 0:pn.contains(Ke))||(($t=Yi(pn))===null||$t===void 0?void 0:$t.host)===Ke||Ke===pn||(re==null?void 0:re.contains(Ke))||((bn=Yi(re))===null||bn===void 0?void 0:bn.host)===Ke||Ke===re||Object.values(ve.current).some(function(Zt){return(Zt==null?void 0:Zt.contains(Ke))||Ke===Zt})}),it=zp(a,z,J,K),mt=zp(a,V,Z,Y),Re=u.useState(p||!1),He=Q(Re,2),Ae=He[0],Ye=He[1],Xe=f??Ae,st=yt(function(Ke){f===void 0&&Ye(Ke)});Et(function(){Ye(f||!1)},[f]);var ut=u.useRef(Xe);ut.current=Xe;var Ve=u.useRef([]);Ve.current=[];var nt=yt(function(Ke){var $t;st(Ke),(($t=Ve.current[Ve.current.length-1])!==null&&$t!==void 0?$t:Xe)!==Ke&&(Ve.current.push(Ke),v==null||v(Ke))}),ct=u.useRef(),je=function(){clearTimeout(ct.current)},Ee=function(Ke){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;je(),$t===0?nt(Ke):ct.current=setTimeout(function(){nt(Ke)},$t*1e3)};u.useEffect(function(){return je},[]);var he=u.useState(!1),Oe=Q(he,2),We=Oe[0],Je=Oe[1];Et(function(Ke){(!Ke||Xe)&&Je(!0)},[Xe]);var at=u.useState(null),gt=Q(at,2),bt=gt[0],dt=gt[1],Rt=u.useState(null),Mt=Q(Rt,2),ht=Mt[0],Tt=Mt[1],Ft=function(Ke){Tt([Ke.clientX,Ke.clientY])},rn=CO(Xe,re,R&&ht!==null?ht:ie,P,j,B,F),Ie=Q(rn,11),_e=Ie[0],Fe=Ie[1],Be=Ie[2],Le=Ie[3],Dt=Ie[4],St=Ie[5],Yt=Ie[6],Qt=Ie[7],Bt=Ie[8],zt=Ie[9],dn=Ie[10],Xt=bO(de,s,c,d),Sn=Q(Xt,2),$n=Sn[0],wn=Sn[1],Pn=$n.has("click"),Rn=wn.has("click")||wn.has("contextMenu"),Dn=yt(function(){We||dn()}),Yn=function(){ut.current&&R&&Rn&&Ee(!1)};wO(Xe,ie,re,Dn,Yn),Et(function(){Dn()},[ht,P]),Et(function(){Xe&&!(j!=null&&j[P])&&Dn()},[JSON.stringify(B)]);var ar=u.useMemo(function(){var Ke=xO(j,a,zt,R);return ce(Ke,L==null?void 0:L(zt))},[zt,L,j,a,R]);u.useImperativeHandle(r,function(){return{nativeElement:xe.current,popupElement:Se.current,forceAlign:Dn}});var et=u.useState(0),jt=Q(et,2),Ut=jt[0],ze=jt[1],vt=u.useState(0),Kt=Q(vt,2),on=Kt[0],Bn=Kt[1],zn=function(){if(_&&ie){var Ke=ie.getBoundingClientRect();ze(Ke.width),Bn(Ke.height)}},_n=function(){zn(),Dn()},mr=function(Ke){Je(!1),dn(),h==null||h(Ke)},tt=function(){return new Promise(function(Ke){zn(),dt(function(){return Ke})})};Et(function(){bt&&(dn(),bt(),dt(null))},[bt]);function lt(Ke,$t,bn,pn){Ge[Ke]=function(Zt){var oi;pn==null||pn(Zt),Ee($t,bn);for(var ql=arguments.length,Ad=new Array(ql>1?ql-1:0),ai=1;ai<ql;ai++)Ad[ai-1]=arguments[ai];(oi=fe[Ke])===null||oi===void 0||oi.call.apply(oi,[fe,Zt].concat(Ad))}}(Pn||Rn)&&(Ge.onClick=function(Ke){var $t;ut.current&&Rn?Ee(!1):!ut.current&&Pn&&(Ft(Ke),Ee(!0));for(var bn=arguments.length,pn=new Array(bn>1?bn-1:0),Zt=1;Zt<bn;Zt++)pn[Zt-1]=arguments[Zt];($t=fe.onClick)===null||$t===void 0||$t.call.apply($t,[fe,Ke].concat(pn))});var Vt=EO(Xe,Rn,ie,re,w,S,ot,Ee),qt=$n.has("hover"),fn=wn.has("hover"),No,Ir;qt&&(lt("onMouseEnter",!0,g,function(Ke){Ft(Ke)}),lt("onPointerEnter",!0,g,function(Ke){Ft(Ke)}),No=function(Ke){(Xe||We)&&re!==null&&re!==void 0&&re.contains(Ke.target)&&Ee(!0,g)},R&&(Ge.onMouseMove=function(Ke){var $t;($t=fe.onMouseMove)===null||$t===void 0||$t.call(fe,Ke)})),fn&&(lt("onMouseLeave",!1,b),lt("onPointerLeave",!1,b),Ir=function(){Ee(!1,b)}),$n.has("focus")&<("onFocus",!0,x),wn.has("focus")&<("onBlur",!1,y),$n.has("contextMenu")&&(Ge.onContextMenu=function(Ke){var $t;ut.current&&wn.has("contextMenu")?Ee(!1):(Ft(Ke),Ee(!0)),Ke.preventDefault();for(var bn=arguments.length,pn=new Array(bn>1?bn-1:0),Zt=1;Zt<bn;Zt++)pn[Zt-1]=arguments[Zt];($t=fe.onContextMenu)===null||$t===void 0||$t.call.apply($t,[fe,Ke].concat(pn))}),G&&(Ge.className=ce(fe.className,G));var da=u.useRef(!1);da.current||(da.current=k||Xe||We);var jr=U(U({},fe),Ge),fa={},ri=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ri.forEach(function(Ke){ne[Ke]&&(fa[Ke]=function(){for(var $t,bn=arguments.length,pn=new Array(bn),Zt=0;Zt<bn;Zt++)pn[Zt]=arguments[Zt];($t=jr[Ke])===null||$t===void 0||$t.call.apply($t,[jr].concat(pn)),ne[Ke].apply(ne,pn)})});var Wl=u.cloneElement(De,U(U({},jr),fa)),Vl={x:St,y:Yt},Kl=H?U({},H!==!0?H:{}):null;return u.createElement(u.Fragment,null,u.createElement(wr,{disabled:!Xe,ref:Ce,onResize:_n},u.createElement(vO,{getTriggerDOMNode:X},Wl)),da.current&&u.createElement(Hp.Provider,{value:we},u.createElement(hO,{portal:e,ref:Me,prefixCls:a,popup:M,className:ce(N,ar),style:T,target:ie,onMouseEnter:No,onMouseLeave:Ir,onPointerEnter:No,zIndex:I,open:Xe,keepDom:We,fresh:W,onClick:A,onPointerDownCapture:Vt,mask:w,motion:it,maskMotion:mt,onVisibleChanged:mr,onPrepare:tt,forceRender:k,autoDestroy:te,getPopupContainer:$,align:zt,arrow:Kl,arrowPos:Vl,ready:_e,offsetX:Fe,offsetY:Be,offsetR:Le,offsetB:Dt,onAlign:Dn,stretch:_,targetWidth:Ut/Qt,targetHeight:on/Bt})))});return t}const ld=$O(fv);var kO=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],OO=function(e){var t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},NO=function(e,t){var n=e.prefixCls,r=e.visible,o=e.children,a=e.popupElement,i=e.animation,l=e.transitionName,s=e.dropdownStyle,c=e.dropdownClassName,d=e.direction,f=d===void 0?"ltr":d,p=e.placement,v=e.builtinPlacements,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,m=e.dropdownAlign,b=e.getPopupContainer,x=e.empty,y=e.getTriggerDOMNode,w=e.onPopupVisibleChange,C=e.onPopupMouseEnter,S=pt(e,kO),$="".concat(n,"-dropdown"),k=a;g&&(k=g(a));var E=u.useMemo(function(){return v||OO(h)},[v,h]),O=i?"".concat($,"-").concat(i):l,M=typeof h=="number",N=u.useMemo(function(){return M?null:h===!1?"minWidth":"width"},[h,M]),T=s;M&&(T=U(U({},T),{},{width:h}));var P=u.useRef(null);return u.useImperativeHandle(t,function(){return{getPopupElement:function(){var D;return(D=P.current)===null||D===void 0?void 0:D.popupElement}}}),u.createElement(ld,Te({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:p||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:E,prefixCls:$,popupTransitionName:O,popup:u.createElement("div",{onMouseEnter:C},k),ref:P,stretch:N,popupAlign:m,popupVisible:r,getPopupContainer:b,popupClassName:ce(c,q({},"".concat($,"-empty"),x)),popupStyle:T,getTriggerDOMNode:y,onPopupVisibleChange:w}),o)},MO=u.forwardRef(NO);function Kp(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function _c(e){return typeof e<"u"&&!Number.isNaN(e)}function Pv(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function IO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Pv(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;function d(f,p){Array.isArray(f)&&f.forEach(function(v){if(p||!(s in v)){var h=v[l];o.push({key:Kp(v,o.length),groupOption:p,data:v,label:v[i],value:h})}else{var g=v[c];g===void 0&&r&&(g=v.label),o.push({key:Kp(v,o.length),group:!0,data:v,label:g}),d(v[s],!0)}})}return d(e,!1),o}function Lc(e){var t=U({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return xn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var jO=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function i(l,s){var c=ch(s),d=c[0],f=c.slice(1);if(!d)return[l];var p=l.split(d);return r=r||p.length>1,p.reduce(function(v,h){return[].concat($e(v),$e(i(h,f)))},[]).filter(Boolean)},a=o(e,t);return r?typeof n<"u"?a.slice(0,n):a:null},sd=u.createContext(null);function PO(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return u.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var a=o.label,i=o.value;return["number","string"].includes(Ze(a))?a:i}).join(", ")),n.length>r?", ...":null)}var RO=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DO=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Wc=function(e){return e==="tags"||e==="multiple"},AO=u.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,l=e.tagRender,s=e.direction,c=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,v=e.notFoundContent,h=v===void 0?"Not Found":v,g=e.onClear,m=e.mode,b=e.disabled,x=e.loading,y=e.getInputElement,w=e.getRawInputElement,C=e.open,S=e.defaultOpen,$=e.onDropdownVisibleChange,k=e.activeValue,E=e.onActiveValueChange,O=e.activeDescendantId,M=e.searchValue,N=e.autoClearSearchValue,T=e.onSearch,P=e.onSearchSplit,D=e.tokenSeparators,j=e.allowClear,B=e.prefix,I=e.suffixIcon,_=e.clearIcon,L=e.OptionList,W=e.animation,R=e.transitionName,A=e.dropdownStyle,F=e.dropdownClassName,H=e.dropdownMatchSelectWidth,z=e.dropdownRender,V=e.dropdownAlign,K=e.placement,J=e.builtinPlacements,Y=e.getPopupContainer,Z=e.showAction,G=Z===void 0?[]:Z,X=e.onFocus,ne=e.onBlur,te=e.onKeyUp,ee=e.onKeyDown,se=e.onMouseDown,de=pt(e,RO),ge=Wc(m),ve=(i!==void 0?i:ge)||m==="combobox",ue=U({},de);DO.forEach(function(et){delete ue[et]}),c==null||c.forEach(function(et){delete ue[et]});var we=u.useState(!1),le=Q(we,2),pe=le[0],Ne=le[1];u.useEffect(function(){Ne(id())},[]);var re=u.useRef(null),ke=u.useRef(null),Se=u.useRef(null),Me=u.useRef(null),Pe=u.useRef(null),be=u.useRef(!1),ie=z2(),ye=Q(ie,3),xe=ye[0],Ce=ye[1],De=ye[2];u.useImperativeHandle(t,function(){var et,jt;return{focus:(et=Me.current)===null||et===void 0?void 0:et.focus,blur:(jt=Me.current)===null||jt===void 0?void 0:jt.blur,scrollTo:function(Ut){var ze;return(ze=Pe.current)===null||ze===void 0?void 0:ze.scrollTo(Ut)},nativeElement:re.current||ke.current}});var fe=u.useMemo(function(){var et;if(m!=="combobox")return M;var jt=(et=d[0])===null||et===void 0?void 0:et.value;return typeof jt=="string"||typeof jt=="number"?String(jt):""},[M,m,d]),Ge=m==="combobox"&&typeof y=="function"&&y()||null,ot=typeof w=="function"&&w(),it=Ya(ke,ot==null||(n=ot.props)===null||n===void 0?void 0:n.ref),mt=u.useState(!1),Re=Q(mt,2),He=Re[0],Ae=Re[1];Et(function(){Ae(!0)},[]);var Ye=Jt(!1,{defaultValue:S,value:C}),Xe=Q(Ye,2),st=Xe[0],ut=Xe[1],Ve=He?st:!1,nt=!h&&p;(b||nt&&Ve&&m==="combobox")&&(Ve=!1);var ct=nt?!1:Ve,je=u.useCallback(function(et){var jt=et!==void 0?et:!Ve;b||(ut(jt),Ve!==jt&&($==null||$(jt)))},[b,Ve,ut,$]),Ee=u.useMemo(function(){return(D||[]).some(function(et){return[`
|
|
246
|
+
`,`\r
|
|
247
|
+
`].includes(et)})},[D]),he=u.useContext(sd)||{},Oe=he.maxCount,We=he.rawValues,Je=function(et,jt,Ut){if(!(ge&&_c(Oe)&&(We==null?void 0:We.size)>=Oe)){var ze=!0,vt=et;E==null||E(null);var Kt=jO(et,D,_c(Oe)?Oe-We.size:void 0),on=Ut?null:Kt;return m!=="combobox"&&on&&(vt="",P==null||P(on),je(!1),ze=!1),T&&fe!==vt&&T(vt,{source:jt?"typing":"effect"}),ze}},at=function(et){!et||!et.trim()||T(et,{source:"submit"})};u.useEffect(function(){!Ve&&!ge&&m!=="combobox"&&Je("",!1,!1)},[Ve]),u.useEffect(function(){st&&b&&ut(!1),b&&!be.current&&Ce(!1)},[b]);var gt=$v(),bt=Q(gt,2),dt=bt[0],Rt=bt[1],Mt=u.useRef(!1),ht=function(et){var jt=dt(),Ut=et.key,ze=Ut==="Enter";if(ze&&(m!=="combobox"&&et.preventDefault(),Ve||je(!0)),Rt(!!fe),Ut==="Backspace"&&!jt&&ge&&!fe&&d.length){for(var vt=$e(d),Kt=null,on=vt.length-1;on>=0;on-=1){var Bn=vt[on];if(!Bn.disabled){vt.splice(on,1),Kt=Bn;break}}Kt&&f(vt,{type:"remove",values:[Kt]})}for(var zn=arguments.length,_n=new Array(zn>1?zn-1:0),mr=1;mr<zn;mr++)_n[mr-1]=arguments[mr];if(Ve&&(!ze||!Mt.current)){var tt;ze&&(Mt.current=!0),(tt=Pe.current)===null||tt===void 0||tt.onKeyDown.apply(tt,[et].concat(_n))}ee==null||ee.apply(void 0,[et].concat(_n))},Tt=function(et){for(var jt=arguments.length,Ut=new Array(jt>1?jt-1:0),ze=1;ze<jt;ze++)Ut[ze-1]=arguments[ze];if(Ve){var vt;(vt=Pe.current)===null||vt===void 0||vt.onKeyUp.apply(vt,[et].concat(Ut))}et.key==="Enter"&&(Mt.current=!1),te==null||te.apply(void 0,[et].concat(Ut))},Ft=function(et){var jt=d.filter(function(Ut){return Ut!==et});f(jt,{type:"remove",values:[et]})},rn=function(){Mt.current=!1},Ie=u.useRef(!1),_e=function(){Ce(!0),b||(X&&!Ie.current&&X.apply(void 0,arguments),G.includes("focus")&&je(!0)),Ie.current=!0},Fe=function(){be.current=!0,Ce(!1,function(){Ie.current=!1,be.current=!1,je(!1)}),!b&&(fe&&(m==="tags"?T(fe,{source:"submit"}):m==="multiple"&&T("",{source:"blur"})),ne&&ne.apply(void 0,arguments))},Be=[];u.useEffect(function(){return function(){Be.forEach(function(et){return clearTimeout(et)}),Be.splice(0,Be.length)}},[]);var Le=function(et){var jt,Ut=et.target,ze=(jt=Se.current)===null||jt===void 0?void 0:jt.getPopupElement();if(ze&&ze.contains(Ut)){var vt=setTimeout(function(){var zn=Be.indexOf(vt);if(zn!==-1&&Be.splice(zn,1),De(),!pe&&!ze.contains(document.activeElement)){var _n;(_n=Me.current)===null||_n===void 0||_n.focus()}});Be.push(vt)}for(var Kt=arguments.length,on=new Array(Kt>1?Kt-1:0),Bn=1;Bn<Kt;Bn++)on[Bn-1]=arguments[Bn];se==null||se.apply(void 0,[et].concat(on))},Dt=u.useState({}),St=Q(Dt,2),Yt=St[1];function Qt(){Yt({})}var Bt;ot&&(Bt=function(et){je(et)}),_2(function(){var et;return[re.current,(et=Se.current)===null||et===void 0?void 0:et.getPopupElement()]},ct,je,!!ot);var zt=u.useMemo(function(){return U(U({},e),{},{notFoundContent:h,open:Ve,triggerOpen:ct,id:r,showSearch:ve,multiple:ge,toggleOpen:je})},[e,h,ct,Ve,r,ve,ge,je]),dn=!!I||x,Xt;dn&&(Xt=u.createElement(Il,{className:ce("".concat(o,"-arrow"),q({},"".concat(o,"-arrow-loading"),x)),customizeIcon:I,customizeIconProps:{loading:x,searchValue:fe,open:Ve,focused:xe,showSearch:ve}}));var Sn=function(){var et;g==null||g(),(et=Me.current)===null||et===void 0||et.focus(),f([],{type:"clear",values:d}),Je("",!1,!1)},$n=H2(o,Sn,d,j,_,b,fe,m),wn=$n.allowClear,Pn=$n.clearIcon,Rn=u.createElement(L,{ref:Pe}),Dn=ce(o,a,q(q(q(q(q(q(q(q(q(q({},"".concat(o,"-focused"),xe),"".concat(o,"-multiple"),ge),"".concat(o,"-single"),!ge),"".concat(o,"-allow-clear"),j),"".concat(o,"-show-arrow"),dn),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),x),"".concat(o,"-open"),Ve),"".concat(o,"-customize-input"),Ge),"".concat(o,"-show-search"),ve)),Yn=u.createElement(MO,{ref:Se,disabled:b,prefixCls:o,visible:ct,popupElement:Rn,animation:W,transitionName:R,dropdownStyle:A,dropdownClassName:F,direction:s,dropdownMatchSelectWidth:H,dropdownRender:z,dropdownAlign:V,placement:K,builtinPlacements:J,getPopupContainer:Y,empty:p,getTriggerDOMNode:function(et){return ke.current||et},onPopupVisibleChange:Bt,onPopupMouseEnter:Qt},ot?u.cloneElement(ot,{ref:it}):u.createElement(fO,Te({},e,{domRef:ke,prefixCls:o,inputElement:Ge,ref:Me,id:r,prefix:B,showSearch:ve,autoClearSearchValue:N,mode:m,activeDescendantId:O,tagRender:l,values:d,open:Ve,onToggleOpen:je,activeValue:k,searchValue:fe,onSearch:Je,onSearchSubmit:at,onRemove:Ft,tokenWithEnter:Ee,onInputBlur:rn}))),ar;return ot?ar=Yn:ar=u.createElement("div",Te({className:Dn},ue,{ref:re,onMouseDown:Le,onKeyDown:ht,onKeyUp:Tt,onFocus:_e,onBlur:Fe}),u.createElement(PO,{visible:xe&&!Ve,values:d}),Yn,Xt,wn&&Pn),u.createElement(Sv.Provider,{value:zt},ar)}),cd=function(){return null};cd.isSelectOptGroup=!0;var ud=function(){return null};ud.isSelectOption=!0;var Rv=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},p=U(U({},p),{},q(q(q(q(q({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:f},u.createElement(wr,{onResize:function(v){var h=v.offsetHeight;h&&l&&l()}},u.createElement("div",Te({style:p,className:ce(q({},"".concat(i,"-holder-inner"),i)),ref:t},s),a,d)))});Rv.displayName="Filler";function TO(e){var t=e.children,n=e.setRef,r=u.useCallback(function(o){n(o)},[]);return u.cloneElement(t,{ref:r})}function FO(e,t,n,r,o,a,i,l){var s=l.getKey;return e.slice(t,n+1).map(function(c,d){var f=t+d,p=i(c,f,{style:{width:r},offsetX:o}),v=s(c);return u.createElement(TO,{key:v,setRef:function(h){return a(c,h)}},p)})}function HO(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var l={__EMPTY_ITEM__:!0};function s(h){return h!==void 0?n(h):l}for(var c=null,d=Math.abs(r-o)!==1,f=0;f<i.length;f+=1){var p=s(a[f]),v=s(i[f]);if(p!==v){c=f,d=d||p!==s(i[f+1]);break}}return c===null?null:{index:c,multiple:d}}function BO(e,t,n){var r=u.useState(e),o=Q(r,2),a=o[0],i=o[1],l=u.useState(null),s=Q(l,2),c=s[0],d=s[1];return u.useEffect(function(){var f=HO(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),i(e)},[e]),[c]}var qp=(typeof navigator>"u"?"undefined":Ze(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Dv=(function(e,t,n,r){var o=qe(!1),a=qe(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var l=qe({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(s,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=s?c<0&&l.current.left||c>0&&l.current.right:c<0&&l.current.top||c>0&&l.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}});function zO(e,t,n,r,o,a,i){var l=qe(0),s=qe(null),c=qe(null),d=qe(!1),f=Dv(t,n,r,o);function p(x,y){if(ft.cancel(s.current),!f(!1,y)){var w=x;if(!w._virtualHandled)w._virtualHandled=!0;else return;l.current+=y,c.current=y,qp||w.preventDefault(),s.current=ft(function(){var C=d.current?10:1;i(l.current*C,!1),l.current=0})}}function v(x,y){i(y,!0),qp||x.preventDefault()}var h=qe(null),g=qe(null);function m(x){if(e){ft.cancel(g.current),g.current=ft(function(){h.current=null},2);var y=x.deltaX,w=x.deltaY,C=x.shiftKey,S=y,$=w;(h.current==="sx"||!h.current&&C&&w&&!y)&&(S=w,$=0,h.current="sx");var k=Math.abs(S),E=Math.abs($);h.current===null&&(h.current=a&&k>E?"x":"y"),h.current==="y"?p(x,$):v(x,S)}}function b(x){e&&(d.current=x.detail===c.current)}return[m,b]}function _O(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=Q(o,2),i=a[0],l=a[1],s=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,f=i.get(c),p=i.get(d);if(f===void 0||p===void 0)for(var v=e.length,h=l.length;h<v;h+=1){var g,m=e[h],b=t(m);i.set(b,h);var x=(g=n.get(b))!==null&&g!==void 0?g:r;if(l[h]=(l[h-1]||0)+x,b===c&&(f=h),b===d&&(p=h),f!==void 0&&p!==void 0)break}return{top:l[f-1]||0,bottom:l[p]}};return s}var LO=(function(){function e(){tn(this,e),q(this,"maps",void 0),q(this,"id",0),q(this,"diffRecords",new Map),this.maps=Object.create(null)}return nn(e,[{key:"set",value:function(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}},{key:"get",value:function(t){return this.maps[t]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Yp(e){var t=parseFloat(e);return isNaN(t)?0:t}function WO(e,t,n){var r=u.useState(0),o=Q(r,2),a=o[0],i=o[1],l=qe(new Map),s=qe(new LO),c=qe(0);function d(){c.current+=1}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){var m=!1;l.current.forEach(function(b,x){if(b&&b.offsetParent){var y=b.offsetHeight,w=getComputedStyle(b),C=w.marginTop,S=w.marginBottom,$=Yp(C),k=Yp(S),E=y+$+k;s.current.get(x)!==E&&(s.current.set(x,E),m=!0)}}),m&&i(function(b){return b+1})};if(v)h();else{c.current+=1;var g=c.current;Promise.resolve().then(function(){g===c.current&&h()})}}function p(v,h){var g=e(v);l.current.get(g),h?(l.current.set(g,h),f()):l.current.delete(g)}return It(function(){return d},[]),[p,f,s.current,a]}var Xp=14/15;function VO(e,t,n){var r=qe(!1),o=qe(0),a=qe(0),i=qe(null),l=qe(null),s,c=function(p){if(r.current){var v=Math.ceil(p.touches[0].pageX),h=Math.ceil(p.touches[0].pageY),g=o.current-v,m=a.current-h,b=Math.abs(g)>Math.abs(m);b?o.current=v:a.current=h;var x=n(b,b?g:m,!1,p);x&&p.preventDefault(),clearInterval(l.current),x&&(l.current=setInterval(function(){b?g*=Xp:m*=Xp;var y=Math.floor(b?g:m);(!n(b,y,!0)||Math.abs(y)<=.1)&&clearInterval(l.current)},16))}},d=function(){r.current=!1,s()},f=function(p){s(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),a.current=Math.ceil(p.touches[0].pageY),i.current=p.target,i.current.addEventListener("touchmove",c,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};s=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",d))},Et(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),s(),clearInterval(l.current)}},[e])}function Up(e){return Math.floor(Math.pow(e,.5))}function Vc(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function KO(e,t,n){u.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,i,l=function(){ft.cancel(a)},s=function p(){l(),a=ft(function(){n(i),p()})},c=function(){o=!1,l()},d=function(p){if(!(p.target.draggable||p.button!==0)){var v=p;v._virtualHandled||(v._virtualHandled=!0,o=!0)}},f=function(p){if(o){var v=Vc(p,!1),h=r.getBoundingClientRect(),g=h.top,m=h.bottom;if(v<=g){var b=g-v;i=-Up(b),s()}else if(v>=m){var x=v-m;i=Up(x),s()}else l()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",c),l()}}},[e])}var qO=10;function YO(e,t,n,r,o,a,i,l){var s=u.useRef(),c=u.useState(null),d=Q(c,2),f=d[0],p=d[1];return Et(function(){if(f&&f.times<qO){if(!e.current){p(function(_){return U({},_)});return}a();var v=f.targetAlign,h=f.originAlign,g=f.index,m=f.offset,b=e.current.clientHeight,x=!1,y=v,w=null;if(b){for(var C=v||h,S=0,$=0,k=0,E=Math.min(t.length-1,g),O=0;O<=E;O+=1){var M=o(t[O]);$=S;var N=n.get(M);k=$+(N===void 0?r:N),S=k}for(var T=C==="top"?m:b-m,P=E;P>=0;P-=1){var D=o(t[P]),j=n.get(D);if(j===void 0){x=!0;break}if(T-=j,T<=0)break}switch(C){case"top":w=$-m;break;case"bottom":w=k-b+m;break;default:{var B=e.current.scrollTop,I=B+b;$<B?y="top":k>I&&(y="bottom")}}w!==null&&i(w),w!==f.lastTop&&(x=!0)}x&&p(U(U({},f),{},{times:f.times+1,targetAlign:y,lastTop:w}))}},[f,e.current]),function(v){if(v==null){l();return}if(ft.cancel(s.current),typeof v=="number")i(v);else if(v&&Ze(v)==="object"){var h,g=v.align;"index"in v?h=v.index:h=t.findIndex(function(x){return o(x)===v.key});var m=v.offset,b=m===void 0?0:m;p({times:0,index:h,offset:b,originAlign:g})}}}var Gp=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,l=e.onStopMove,s=e.onScroll,c=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,v=e.thumbStyle,h=e.showScrollBar,g=u.useState(!1),m=Q(g,2),b=m[0],x=m[1],y=u.useState(null),w=Q(y,2),C=w[0],S=w[1],$=u.useState(null),k=Q($,2),E=k[0],O=k[1],M=!r,N=u.useRef(),T=u.useRef(),P=u.useState(h),D=Q(P,2),j=D[0],B=D[1],I=u.useRef(),_=function(){h===!0||h===!1||(clearTimeout(I.current),B(!0),I.current=setTimeout(function(){B(!1)},3e3))},L=a-f||0,W=f-d||0,R=u.useMemo(function(){if(o===0||L===0)return 0;var Z=o/L;return Z*W},[o,L,W]),A=function(Z){Z.stopPropagation(),Z.preventDefault()},F=u.useRef({top:R,dragging:b,pageY:C,startTop:E});F.current={top:R,dragging:b,pageY:C,startTop:E};var H=function(Z){x(!0),S(Vc(Z,c)),O(F.current.top),i(),Z.stopPropagation(),Z.preventDefault()};u.useEffect(function(){var Z=function(ne){ne.preventDefault()},G=N.current,X=T.current;return G.addEventListener("touchstart",Z,{passive:!1}),X.addEventListener("touchstart",H,{passive:!1}),function(){G.removeEventListener("touchstart",Z),X.removeEventListener("touchstart",H)}},[]);var z=u.useRef();z.current=L;var V=u.useRef();V.current=W,u.useEffect(function(){if(b){var Z,G=function(ne){var te=F.current,ee=te.dragging,se=te.pageY,de=te.startTop;ft.cancel(Z);var ge=N.current.getBoundingClientRect(),ve=f/(c?ge.width:ge.height);if(ee){var ue=(Vc(ne,c)-se)*ve,we=de;!M&&c?we-=ue:we+=ue;var le=z.current,pe=V.current,Ne=pe?we/pe:0,re=Math.ceil(Ne*le);re=Math.max(re,0),re=Math.min(re,le),Z=ft(function(){s(re,c)})}},X=function(){x(!1),l()};return window.addEventListener("mousemove",G,{passive:!0}),window.addEventListener("touchmove",G,{passive:!0}),window.addEventListener("mouseup",X,{passive:!0}),window.addEventListener("touchend",X,{passive:!0}),function(){window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),ft.cancel(Z)}}},[b]),u.useEffect(function(){return _(),function(){clearTimeout(I.current)}},[o]),u.useImperativeHandle(t,function(){return{delayHidden:_}});var K="".concat(n,"-scrollbar"),J={position:"absolute",visibility:j?null:"hidden"},Y={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(J,{height:8,left:0,right:0,bottom:0}),Object.assign(Y,q({height:"100%",width:d},M?"left":"right",R))):(Object.assign(J,q({width:8,top:0,bottom:0},M?"right":"left",0)),Object.assign(Y,{width:"100%",height:d,top:R})),u.createElement("div",{ref:N,className:ce(K,q(q(q({},"".concat(K,"-horizontal"),c),"".concat(K,"-vertical"),!c),"".concat(K,"-visible"),j)),style:U(U({},J),p),onMouseDown:A,onMouseMove:_},u.createElement("div",{ref:T,className:ce("".concat(K,"-thumb"),q({},"".concat(K,"-thumb-moving"),b)),style:U(U({},Y),v),onMouseDown:H}))}),XO=20;function Qp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,XO),Math.floor(n)}var UO=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],GO=[],QO={overflowY:"auto",overflowAnchor:"none"};function ZO(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,c=e.style,d=e.data,f=e.children,p=e.itemKey,v=e.virtual,h=e.direction,g=e.scrollWidth,m=e.component,b=m===void 0?"div":m,x=e.onScroll,y=e.onVirtualScroll,w=e.onVisibleChange,C=e.innerProps,S=e.extraRender,$=e.styles,k=e.showScrollBar,E=k===void 0?"optional":k,O=pt(e,UO),M=u.useCallback(function(Ie){return typeof p=="function"?p(Ie):Ie==null?void 0:Ie[p]},[p]),N=WO(M),T=Q(N,4),P=T[0],D=T[1],j=T[2],B=T[3],I=!!(v!==!1&&a&&i),_=u.useMemo(function(){return Object.values(j.maps).reduce(function(Ie,_e){return Ie+_e},0)},[j.id,j.maps]),L=I&&d&&(Math.max(i*d.length,_)>a||!!g),W=h==="rtl",R=ce(r,q({},"".concat(r,"-rtl"),W),o),A=d||GO,F=qe(),H=qe(),z=qe(),V=Pt(0),K=Q(V,2),J=K[0],Y=K[1],Z=Pt(0),G=Q(Z,2),X=G[0],ne=G[1],te=Pt(!1),ee=Q(te,2),se=ee[0],de=ee[1],ge=function(){de(!0)},ve=function(){de(!1)},ue={getKey:M};function we(Ie){Y(function(_e){var Fe;typeof Ie=="function"?Fe=Ie(_e):Fe=Ie;var Be=Ae(Fe);return F.current.scrollTop=Be,Be})}var le=qe({start:0,end:A.length}),pe=qe(),Ne=BO(A,M),re=Q(Ne,1),ke=re[0];pe.current=ke;var Se=u.useMemo(function(){if(!I)return{scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!L){var Ie;return{scrollHeight:((Ie=H.current)===null||Ie===void 0?void 0:Ie.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var _e=0,Fe,Be,Le,Dt=A.length,St=0;St<Dt;St+=1){var Yt=A[St],Qt=M(Yt),Bt=j.get(Qt),zt=_e+(Bt===void 0?i:Bt);zt>=J&&Fe===void 0&&(Fe=St,Be=_e),zt>J+a&&Le===void 0&&(Le=St),_e=zt}return Fe===void 0&&(Fe=0,Be=0,Le=Math.ceil(a/i)),Le===void 0&&(Le=A.length-1),Le=Math.min(Le+1,A.length-1),{scrollHeight:_e,start:Fe,end:Le,offset:Be}},[L,I,J,A,B,a]),Me=Se.scrollHeight,Pe=Se.start,be=Se.end,ie=Se.offset;le.current.start=Pe,le.current.end=be,u.useLayoutEffect(function(){var Ie=j.getRecord();if(Ie.size===1){var _e=Array.from(Ie.keys())[0],Fe=Ie.get(_e),Be=A[Pe];if(Be&&Fe===void 0){var Le=M(Be);if(Le===_e){var Dt=j.get(_e),St=Dt-i;we(function(Yt){return Yt+St})}}}j.resetRecord()},[Me]);var ye=u.useState({width:0,height:a}),xe=Q(ye,2),Ce=xe[0],De=xe[1],fe=function(Ie){De({width:Ie.offsetWidth,height:Ie.offsetHeight})},Ge=qe(),ot=qe(),it=u.useMemo(function(){return Qp(Ce.width,g)},[Ce.width,g]),mt=u.useMemo(function(){return Qp(Ce.height,Me)},[Ce.height,Me]),Re=Me-a,He=qe(Re);He.current=Re;function Ae(Ie){var _e=Ie;return Number.isNaN(He.current)||(_e=Math.min(_e,He.current)),_e=Math.max(_e,0),_e}var Ye=J<=0,Xe=J>=Re,st=X<=0,ut=X>=g,Ve=Dv(Ye,Xe,st,ut),nt=function(){return{x:W?-X:X,y:J}},ct=qe(nt()),je=yt(function(Ie){if(y){var _e=U(U({},nt()),Ie);(ct.current.x!==_e.x||ct.current.y!==_e.y)&&(y(_e),ct.current=_e)}});function Ee(Ie,_e){var Fe=Ie;_e?(_s(function(){ne(Fe)}),je()):we(Fe)}function he(Ie){var _e=Ie.currentTarget.scrollTop;_e!==J&&we(_e),x==null||x(Ie),je()}var Oe=function(Ie){var _e=Ie,Fe=g?g-Ce.width:0;return _e=Math.max(_e,0),_e=Math.min(_e,Fe),_e},We=yt(function(Ie,_e){_e?(_s(function(){ne(function(Fe){var Be=Fe+(W?-Ie:Ie);return Oe(Be)})}),je()):we(function(Fe){var Be=Fe+Ie;return Be})}),Je=zO(I,Ye,Xe,st,ut,!!g,We),at=Q(Je,2),gt=at[0],bt=at[1];VO(I,F,function(Ie,_e,Fe,Be){var Le=Be;return Ve(Ie,_e,Fe)?!1:!Le||!Le._virtualHandled?(Le&&(Le._virtualHandled=!0),gt({preventDefault:function(){},deltaX:Ie?_e:0,deltaY:Ie?0:_e}),!0):!1}),KO(L,F,function(Ie){we(function(_e){return _e+Ie})}),Et(function(){function Ie(Fe){var Be=Ye&&Fe.detail<0,Le=Xe&&Fe.detail>0;I&&!Be&&!Le&&Fe.preventDefault()}var _e=F.current;return _e.addEventListener("wheel",gt,{passive:!1}),_e.addEventListener("DOMMouseScroll",bt,{passive:!0}),_e.addEventListener("MozMousePixelScroll",Ie,{passive:!1}),function(){_e.removeEventListener("wheel",gt),_e.removeEventListener("DOMMouseScroll",bt),_e.removeEventListener("MozMousePixelScroll",Ie)}},[I,Ye,Xe]),Et(function(){if(g){var Ie=Oe(X);ne(Ie),je({x:Ie})}},[Ce.width,g]);var dt=function(){var Ie,_e;(Ie=Ge.current)===null||Ie===void 0||Ie.delayHidden(),(_e=ot.current)===null||_e===void 0||_e.delayHidden()},Rt=YO(F,A,j,i,M,function(){return D(!0)},we,dt);u.useImperativeHandle(t,function(){return{nativeElement:z.current,getScrollInfo:nt,scrollTo:function(Ie){function _e(Fe){return Fe&&Ze(Fe)==="object"&&("left"in Fe||"top"in Fe)}_e(Ie)?(Ie.left!==void 0&&ne(Oe(Ie.left)),Rt(Ie.top)):Rt(Ie)}}}),Et(function(){if(w){var Ie=A.slice(Pe,be+1);w(Ie,A)}},[Pe,be,A]);var Mt=_O(A,M,j,i),ht=S==null?void 0:S({start:Pe,end:be,virtual:L,offsetX:X,offsetY:ie,rtl:W,getSize:Mt}),Tt=FO(A,Pe,be,g,X,P,f,ue),Ft=null;a&&(Ft=U(q({},s?"height":"maxHeight",a),QO),I&&(Ft.overflowY="hidden",g&&(Ft.overflowX="hidden"),se&&(Ft.pointerEvents="none")));var rn={};return W&&(rn.dir="rtl"),u.createElement("div",Te({ref:z,style:U(U({},c),{},{position:"relative"}),className:R},rn,O),u.createElement(wr,{onResize:fe},u.createElement(b,{className:"".concat(r,"-holder"),style:Ft,ref:F,onScroll:he,onMouseEnter:dt},u.createElement(Rv,{prefixCls:r,height:Me,offsetX:X,offsetY:ie,scrollWidth:g,onInnerResize:D,ref:H,innerProps:C,rtl:W,extra:ht},Tt))),L&&Me>a&&u.createElement(Gp,{ref:Ge,prefixCls:r,scrollOffset:J,scrollRange:Me,rtl:W,onScroll:Ee,onStartMove:ge,onStopMove:ve,spinSize:mt,containerSize:Ce.height,style:$==null?void 0:$.verticalScrollBar,thumbStyle:$==null?void 0:$.verticalScrollBarThumb,showScrollBar:E}),L&&g>Ce.width&&u.createElement(Gp,{ref:ot,prefixCls:r,scrollOffset:X,scrollRange:g,rtl:W,onScroll:Ee,onStartMove:ge,onStopMove:ve,spinSize:it,containerSize:Ce.width,horizontal:!0,style:$==null?void 0:$.horizontalScrollBar,thumbStyle:$==null?void 0:$.horizontalScrollBarThumb,showScrollBar:E}))}var Av=u.forwardRef(ZO);Av.displayName="List";function JO(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var eN=["disabled","title","children","style","className"];function Zp(e){return typeof e=="string"||typeof e=="number"}var tN=function(e,t){var n=B2(),r=n.prefixCls,o=n.id,a=n.open,i=n.multiple,l=n.mode,s=n.searchValue,c=n.toggleOpen,d=n.notFoundContent,f=n.onPopupScroll,p=u.useContext(sd),v=p.maxCount,h=p.flattenOptions,g=p.onActiveValue,m=p.defaultActiveFirstOption,b=p.onSelect,x=p.menuItemSelectedIcon,y=p.rawValues,w=p.fieldNames,C=p.virtual,S=p.direction,$=p.listHeight,k=p.listItemHeight,E=p.optionRender,O="".concat(r,"-item"),M=cl(function(){return h},[a,h],function(Y,Z){return Z[0]&&Y[1]!==Z[1]}),N=u.useRef(null),T=u.useMemo(function(){return i&&_c(v)&&(y==null?void 0:y.size)>=v},[i,v,y==null?void 0:y.size]),P=function(Y){Y.preventDefault()},D=function(Y){var Z;(Z=N.current)===null||Z===void 0||Z.scrollTo(typeof Y=="number"?{index:Y}:Y)},j=u.useCallback(function(Y){return l==="combobox"?!1:y.has(Y)},[l,$e(y).toString(),y.size]),B=function(Y){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=M.length,X=0;X<G;X+=1){var ne=(Y+X*Z+G)%G,te=M[ne]||{},ee=te.group,se=te.data;if(!ee&&!(se!=null&&se.disabled)&&(j(se.value)||!T))return ne}return-1},I=u.useState(function(){return B(0)}),_=Q(I,2),L=_[0],W=_[1],R=function(Y){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;W(Y);var G={source:Z?"keyboard":"mouse"},X=M[Y];if(!X){g(null,-1,G);return}g(X.value,Y,G)};It(function(){R(m!==!1?B(0):-1)},[M.length,s]);var A=u.useCallback(function(Y){return l==="combobox"?String(Y).toLowerCase()===s.toLowerCase():y.has(Y)},[l,s,$e(y).toString(),y.size]);It(function(){var Y=setTimeout(function(){if(!i&&a&&y.size===1){var G=Array.from(y)[0],X=M.findIndex(function(ne){var te=ne.data;return s?String(te.value).startsWith(s):te.value===G});X!==-1&&(R(X),D(X))}});if(a){var Z;(Z=N.current)===null||Z===void 0||Z.scrollTo(void 0)}return function(){return clearTimeout(Y)}},[a,s]);var F=function(Y){Y!==void 0&&b(Y,{selected:!y.has(Y)}),i||c(!1)};if(u.useImperativeHandle(t,function(){return{onKeyDown:function(Y){var Z=Y.which,G=Y.ctrlKey;switch(Z){case Qe.N:case Qe.P:case Qe.UP:case Qe.DOWN:{var X=0;if(Z===Qe.UP?X=-1:Z===Qe.DOWN?X=1:JO()&&G&&(Z===Qe.N?X=1:Z===Qe.P&&(X=-1)),X!==0){var ne=B(L+X,X);D(ne),R(ne,!0)}break}case Qe.TAB:case Qe.ENTER:{var te,ee=M[L];ee&&!(ee!=null&&(te=ee.data)!==null&&te!==void 0&&te.disabled)&&!T?F(ee.value):F(void 0),a&&Y.preventDefault();break}case Qe.ESC:c(!1),a&&Y.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Y){D(Y)}}}),M.length===0)return u.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(O,"-empty"),onMouseDown:P},d);var H=Object.keys(w).map(function(Y){return w[Y]}),z=function(Y){return Y.label};function V(Y,Z){var G=Y.group;return{role:G?"presentation":"option",id:"".concat(o,"_list_").concat(Z)}}var K=function(Y){var Z=M[Y];if(!Z)return null;var G=Z.data||{},X=G.value,ne=Z.group,te=ur(G,!0),ee=z(Z);return Z?u.createElement("div",Te({"aria-label":typeof ee=="string"&&!ne?ee:null},te,{key:Y},V(Z,Y),{"aria-selected":A(X)}),X):null},J={role:"listbox",id:"".concat(o,"_list")};return u.createElement(u.Fragment,null,C&&u.createElement("div",Te({},J,{style:{height:0,width:0,overflow:"hidden"}}),K(L-1),K(L),K(L+1)),u.createElement(Av,{itemKey:"key",ref:N,data:M,height:$,itemHeight:k,fullHeight:!1,onMouseDown:P,onScroll:f,virtual:C,direction:S,innerProps:C?null:J},function(Y,Z){var G=Y.group,X=Y.groupOption,ne=Y.data,te=Y.label,ee=Y.value,se=ne.key;if(G){var de,ge=(de=ne.title)!==null&&de!==void 0?de:Zp(te)?te.toString():void 0;return u.createElement("div",{className:ce(O,"".concat(O,"-group"),ne.className),title:ge},te!==void 0?te:se)}var ve=ne.disabled,ue=ne.title,we=ne.style,le=ne.className,pe=pt(ne,eN),Ne=Er(pe,H),re=j(ee),ke=ve||!re&&T,Se="".concat(O,"-option"),Me=ce(O,Se,le,q(q(q(q({},"".concat(Se,"-grouped"),X),"".concat(Se,"-active"),L===Z&&!ke),"".concat(Se,"-disabled"),ke),"".concat(Se,"-selected"),re)),Pe=z(Y),be=!x||typeof x=="function"||re,ie=typeof Pe=="number"?Pe:Pe||ee,ye=Zp(ie)?ie.toString():void 0;return ue!==void 0&&(ye=ue),u.createElement("div",Te({},ur(Ne),C?{}:V(Y,Z),{"aria-selected":A(ee),className:Me,title:ye,onMouseMove:function(){L===Z||ke||R(Z)},onClick:function(){ke||F(ee)},style:we}),u.createElement("div",{className:"".concat(Se,"-content")},typeof E=="function"?E(Y,{index:Z}):ie),u.isValidElement(x)||re,be&&u.createElement(Il,{className:"".concat(O,"-option-state"),customizeIcon:x,customizeIconProps:{value:ee,disabled:ke,isSelected:re}},re?"\u2713":null))}))},nN=u.forwardRef(tN);const rN=(function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var a=n.current,i=a.values,l=a.options,s=e.map(function(f){if(f.label===void 0){var p;return U(U({},f),{},{label:(p=i.get(f.value))===null||p===void 0?void 0:p.label})}return f}),c=new Map,d=new Map;return s.forEach(function(f){c.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=c,n.current.options=d,s},[e,t]),o=u.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]});function ws(e,t){return Iv(e).join("").toUpperCase().includes(t)}const oN=(function(e,t,n,r,o){return u.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,l=t.value,s=[],c=typeof r=="function",d=n.toUpperCase(),f=c?r:function(v,h){return o?ws(h[o],d):h[a]?ws(h[i!=="children"?i:"label"],d):ws(h[l],d)},p=c?function(v){return Lc(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var h=f(n,p(v));if(h)s.push(v);else{var g=v[a].filter(function(m){return f(n,p(m))});g.length&&s.push(U(U({},v),{},q({},a,g)))}return}f(n,p(v))&&s.push(v)}),s},[e,r,o,n,t])});var Jp=0,aN=Hn();function iN(){var e;return aN?(e=Jp,Jp+=1):e="TEST_OR_SSR",e}function lN(e){var t=u.useState(),n=Q(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(iN()))},[]),e||r}var sN=["children","value"],cN=["children"];function uN(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=pt(r,sN);return U({key:n,value:a!==void 0?a:n,children:o},i)}function Tv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Yo(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,c=pt(l,cN);return t||!a?uN(n):U(U({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:Tv(s)})}).filter(function(n){return n})}var dN=function(e,t,n,r,o){return u.useMemo(function(){var a=e,i=!e;i&&(a=Tv(t));var l=new Map,s=new Map,c=function(f,p,v){v&&typeof v=="string"&&f.set(p[v],p)},d=function f(p){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<p.length;h+=1){var g=p[h];!g[n.options]||v?(l.set(g[n.value],g),c(s,g,n.label),c(s,g,r),c(s,g,o)):f(g[n.options],!0)}};return d(a),{options:a,valueOptions:l,labelOptions:s}},[e,t,n,r,o])};function em(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var fN=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],pN=["inputValue"];function mN(e){return!e||Ze(e)!=="object"}var gN=u.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,v=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,m=g===void 0?!0:g,b=e.filterOption,x=e.filterSort,y=e.optionFilterProp,w=e.optionLabelProp,C=e.options,S=e.optionRender,$=e.children,k=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,O=e.virtual,M=e.direction,N=e.listHeight,T=N===void 0?200:N,P=e.listItemHeight,D=P===void 0?20:P,j=e.labelRender,B=e.value,I=e.defaultValue,_=e.labelInValue,L=e.onChange,W=e.maxCount,R=pt(e,fN),A=lN(n),F=Wc(r),H=!!(!C&&$),z=u.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),V=u.useMemo(function(){return Pv(l,H)},[JSON.stringify(l),H]),K=Jt("",{value:c!==void 0?c:s,postState:function(je){return je||""}}),J=Q(K,2),Y=J[0],Z=J[1],G=dN(C,$,V,y,w),X=G.valueOptions,ne=G.labelOptions,te=G.options,ee=u.useCallback(function(je){var Ee=Iv(je);return Ee.map(function(he){var Oe,We,Je,at,gt;if(mN(he))Oe=he;else{var bt;Je=he.key,We=he.label,Oe=(bt=he.value)!==null&&bt!==void 0?bt:Je}var dt=X.get(Oe);if(dt){var Rt;We===void 0&&(We=dt==null?void 0:dt[w||V.label]),Je===void 0&&(Je=(Rt=dt==null?void 0:dt.key)!==null&&Rt!==void 0?Rt:Oe),at=dt==null?void 0:dt.disabled,gt=dt==null?void 0:dt.title}return{label:We,value:Oe,key:Je,disabled:at,title:gt}})},[V,w,X]),se=Jt(I,{value:B}),de=Q(se,2),ge=de[0],ve=de[1],ue=u.useMemo(function(){var je,Ee=F&&ge===null?[]:ge,he=ee(Ee);return r==="combobox"&&iO((je=he[0])===null||je===void 0?void 0:je.value)?[]:he},[ge,ee,r,F]),we=rN(ue,X),le=Q(we,2),pe=le[0],Ne=le[1],re=u.useMemo(function(){if(!r&&pe.length===1){var je=pe[0];if(je.value===null&&(je.label===null||je.label===void 0))return[]}return pe.map(function(Ee){var he;return U(U({},Ee),{},{label:(he=typeof j=="function"?j(Ee):Ee.label)!==null&&he!==void 0?he:Ee.value})})},[r,pe,j]),ke=u.useMemo(function(){return new Set(pe.map(function(je){return je.value}))},[pe]);u.useEffect(function(){if(r==="combobox"){var je,Ee=(je=pe[0])===null||je===void 0?void 0:je.value;Z(aO(Ee)?String(Ee):"")}},[pe]);var Se=em(function(je,Ee){var he=Ee??je;return q(q({},V.value,je),V.label,he)}),Me=u.useMemo(function(){if(r!=="tags")return te;var je=$e(te),Ee=function(he){return X.has(he)};return $e(pe).sort(function(he,Oe){return he.value<Oe.value?-1:1}).forEach(function(he){var Oe=he.value;Ee(Oe)||je.push(Se(Oe,he.label))}),je},[Se,te,X,pe,r]),Pe=oN(Me,V,Y,z,y),be=u.useMemo(function(){return r!=="tags"||!Y||Pe.some(function(je){return je[y||"value"]===Y})||Pe.some(function(je){return je[V.value]===Y})?Pe:[Se(Y)].concat($e(Pe))},[Se,y,r,Pe,Y,V]),ie=function je(Ee){var he=$e(Ee).sort(function(Oe,We){return x(Oe,We,{searchValue:Y})});return he.map(function(Oe){return Array.isArray(Oe.options)?U(U({},Oe),{},{options:Oe.options.length>0?je(Oe.options):Oe.options}):Oe})},ye=u.useMemo(function(){return x?ie(be):be},[be,x,Y]),xe=u.useMemo(function(){return IO(ye,{fieldNames:V,childrenAsData:H})},[ye,V,H]),Ce=function(je){var Ee=ee(je);if(ve(Ee),L&&(Ee.length!==pe.length||Ee.some(function(We,Je){var at;return((at=pe[Je])===null||at===void 0?void 0:at.value)!==(We==null?void 0:We.value)}))){var he=_?Ee:Ee.map(function(We){return We.value}),Oe=Ee.map(function(We){return Lc(Ne(We.value))});L(F?he:he[0],F?Oe:Oe[0])}},De=u.useState(null),fe=Q(De,2),Ge=fe[0],ot=fe[1],it=u.useState(0),mt=Q(it,2),Re=mt[0],He=mt[1],Ae=k!==void 0?k:r!=="combobox",Ye=u.useCallback(function(je,Ee){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Oe=he.source,We=Oe===void 0?"keyboard":Oe;He(Ee),i&&r==="combobox"&&je!==null&&We==="keyboard"&&ot(String(je))},[i,r]),Xe=function(je,Ee,he){var Oe=function(){var ht,Tt=Ne(je);return[_?{label:Tt==null?void 0:Tt[V.label],value:je,key:(ht=Tt==null?void 0:Tt.key)!==null&&ht!==void 0?ht:je}:je,Lc(Tt)]};if(Ee&&v){var We=Oe(),Je=Q(We,2),at=Je[0],gt=Je[1];v(at,gt)}else if(!Ee&&h&&he!=="clear"){var bt=Oe(),dt=Q(bt,2),Rt=dt[0],Mt=dt[1];h(Rt,Mt)}},st=em(function(je,Ee){var he,Oe=F?Ee.selected:!0;Oe?he=F?[].concat($e(pe),[je]):[je]:he=pe.filter(function(We){return We.value!==je}),Ce(he),Xe(je,Oe),r==="combobox"?ot(""):(!Wc||p)&&(Z(""),ot(""))}),ut=function(je,Ee){Ce(je);var he=Ee.type,Oe=Ee.values;(he==="remove"||he==="clear")&&Oe.forEach(function(We){Xe(We.value,!1,he)})},Ve=function(je,Ee){if(Z(je),ot(null),Ee.source==="submit"){var he=(je||"").trim();if(he){var Oe=Array.from(new Set([].concat($e(ke),[he])));Ce(Oe),Xe(he,!0),Z("")}return}Ee.source!=="blur"&&(r==="combobox"&&Ce(je),d==null||d(je))},nt=function(je){var Ee=je;r!=="tags"&&(Ee=je.map(function(Oe){var We=ne.get(Oe);return We==null?void 0:We.value}).filter(function(Oe){return Oe!==void 0}));var he=Array.from(new Set([].concat($e(ke),$e(Ee))));Ce(he),he.forEach(function(Oe){Xe(Oe,!0)})},ct=u.useMemo(function(){var je=O!==!1&&m!==!1;return U(U({},G),{},{flattenOptions:xe,onActiveValue:Ye,defaultActiveFirstOption:Ae,onSelect:st,menuItemSelectedIcon:E,rawValues:ke,fieldNames:V,virtual:je,direction:M,listHeight:T,listItemHeight:D,childrenAsData:H,maxCount:W,optionRender:S})},[W,G,xe,Ye,Ae,st,E,ke,V,O,m,M,T,D,H,S]);return u.createElement(sd.Provider,{value:ct},u.createElement(AO,Te({},R,{id:A,prefixCls:a,ref:t,omitDomProps:pN,mode:r,displayValues:re,onDisplayValuesChange:ut,direction:M,searchValue:Y,onSearch:Ve,autoClearSearchValue:p,onSearchSplit:nt,dropdownMatchSelectWidth:m,OptionList:nN,emptyOptions:!xe.length,activeValue:Ge,activeDescendantId:"".concat(A,"_list_").concat(Re)})))}),dd=gN;dd.Option=ud;dd.OptGroup=cd;function Xr(e,t,n){return ce({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Eo=(e,t)=>t||e,hN=()=>{const[,e]=rr(),[t]=xo("Empty"),n=new Ot(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},vN=()=>{const[,e]=rr(),[t]=xo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:s}=En(()=>({borderColor:new Ot(n).onBackground(a).toHexString(),shadowColor:new Ot(r).onBackground(a).toHexString(),contentColor:new Ot(o).onBackground(a).toHexString()}),[n,r,o,a]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:i},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},bN=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},yN=un("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=At(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return bN(o)});var xN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Fv=u.createElement(hN,null),Hv=u.createElement(vN,null),ro=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:a,description:i,children:l,imageStyle:s,style:c,classNames:d,styles:f}=e,p=xN(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:h,className:g,style:m,classNames:b,styles:x,image:y}=Mr("empty"),w=v("empty",o),[C,S,$]=yN(w),[k]=xo("Empty"),E=typeof i<"u"?i:k==null?void 0:k.description,O=typeof E=="string"?E:"empty",M=(t=a??y)!==null&&t!==void 0?t:Fv;let N=null;return typeof M=="string"?N=u.createElement("img",{draggable:!1,alt:O,src:M}):N=M,C(u.createElement("div",Object.assign({className:ce(S,$,w,g,{[`${w}-normal`]:M===Hv,[`${w}-rtl`]:h==="rtl"},n,r,b.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),m),f==null?void 0:f.root),c)},p),u.createElement("div",{className:ce(`${w}-image`,b.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},s),x.image),f==null?void 0:f.image)},N),E&&u.createElement("div",{className:ce(`${w}-description`,b.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},x.description),f==null?void 0:f.description)},E),l&&u.createElement("div",{className:ce(`${w}-footer`,b.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},x.footer),f==null?void 0:f.footer)},l)))};ro.PRESENTED_IMAGE_DEFAULT=Fv;ro.PRESENTED_IMAGE_SIMPLE=Hv;const CN=e=>{const{componentName:t}=e,{getPrefixCls:n}=Gt(Ct),r=n("empty");switch(t){case"Table":case"List":return ae.createElement(ro,{image:ro.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(ro,{image:ro.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ae.createElement(ro,null)}},oa=(e,t,n=void 0)=>{var r,o;const{variant:a,[e]:i}=u.useContext(Ct),l=u.useContext(Ev),s=i==null?void 0:i.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=l??s)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const d=jw.includes(c);return[c,d]},wN=e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};function EN(e,t){return e||wN(t)}const tm=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},SN=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},en(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
248
|
+
${o}${l}bottomLeft,
|
|
249
|
+
${a}${l}bottomLeft
|
|
250
|
+
`]:{animationName:Xu},[`
|
|
251
|
+
${o}${l}topLeft,
|
|
252
|
+
${a}${l}topLeft,
|
|
253
|
+
${o}${l}topRight,
|
|
254
|
+
${a}${l}topRight
|
|
255
|
+
`]:{animationName:Gu},[`${i}${l}bottomLeft`]:{animationName:Uu},[`
|
|
256
|
+
${i}${l}topLeft,
|
|
257
|
+
${i}${l}topRight
|
|
258
|
+
`]:{animationName:Qu},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},tm(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},qi),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},tm(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Qi(e,"slide-up"),Qi(e,"slide-down"),Gi(e,"move-up"),Gi(e,"move-down")]},Bv=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:me(t),itemLineHeight:me(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},$N=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},zv=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Ga()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},kN=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=$N(e),l=t?`${n}-${t}`:"",s=Bv(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},zv(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${me(r)} 0`,lineHeight:me(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:me(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:me(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
259
|
+
${n}-prefix + ${n}-selection-wrap
|
|
260
|
+
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:me(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Es(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
261
|
+
&${n}-show-arrow ${n}-selector,
|
|
262
|
+
&${n}-allow-clear ${n}-selector
|
|
263
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[kN(e,t),o]}const ON=e=>{const{componentCls:t}=e,n=At(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=At(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Es(e),Es(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Es(r,"lg")]};function Ss(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},en(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:me(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
264
|
+
${n}-selection-item,
|
|
265
|
+
${n}-selection-placeholder
|
|
266
|
+
`]:{display:"block",padding:0,lineHeight:me(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
267
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
268
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
269
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
270
|
+
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${me(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:me(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${me(r)}`,"&:after":{display:"none"}}}}}}}function NN(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Ss(e),Ss(At(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${me(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
271
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
272
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
273
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Ss(At(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const MN=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:v,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:b,colorPrimaryHover:x,colorPrimary:y,controlOutline:w}=e,C=l*2,S=r*2,$=Math.min(o-C,o-S),k=Math.min(a-C,a-S),E=Math.min(i-C,i-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:k,multipleItemHeightLG:E,multipleSelectorBgDisabled:m,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:x,activeBorderColor:y,activeOutlineColor:w,selectAffixPadding:l}},_v=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${me(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${me(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},nm=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},_v(e,t))}),IN=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},_v(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),nm(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),nm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Lv=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${me(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},rm=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Lv(e,t))}),jN=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Lv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),rm(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),rm(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),PN=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${me(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Wv=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${me(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},om=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Wv(e,t))}),RN=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Wv(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,color:e.colorText})),om(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,color:e.colorError})),om(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),DN=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},IN(e)),jN(e)),PN(e)),RN(e))}),AN=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},TN=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},FN=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},en(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},AN(e)),TN(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},qi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},qi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Ga()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},HN=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},FN(e),NN(e),ON(e),SN(e),{[`${t}-rtl`]:{direction:"rtl"}},Ja(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},BN=un("Select",(e,{rootPrefixCls:t})=>{const n=At(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[HN(n),DN(n)]},MN,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var zN={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"},_N=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:zN}))},LN=u.forwardRef(_N),WN={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"},VN=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:WN}))},Vv=u.forwardRef(VN),KN={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"},qN=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:KN}))},Kv=u.forwardRef(qN);function qv({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:l,showSuffixIcon:s,feedbackIcon:c,showArrow:d,componentName:f}){const p=t??u.createElement(bl,null),v=b=>e===null&&!i&&!d?null:u.createElement(u.Fragment,null,s!==!1&&b,i&&c);let h=null;if(e!==void 0)h=v(e);else if(o)h=v(u.createElement(Qa,{spin:!0}));else{const b=`${l}-suffix`;h=({open:x,showSearch:y})=>v(x&&y?u.createElement(Kv,{className:b}):u.createElement(Vv,{className:b}))}let g=null;n!==void 0?g=n:a?g=u.createElement(LN,null):g=null;let m=null;return r!==void 0?m=r:m=u.createElement(Wu,null),{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:m}}function YN(e){return ae.useMemo(()=>{if(e)return(...t)=>ae.createElement(Yr,{space:!0},e.apply(void 0,t))},[e])}function XN(e,t){return t!==void 0?t:e!==null}var UN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Yv="SECRET_COMBOBOX_MODE_DO_NOT_USE",GN=(e,t)=>{var n,r,o,a,i;const{prefixCls:l,bordered:s,className:c,rootClassName:d,getPopupContainer:f,popupClassName:p,dropdownClassName:v,listHeight:h=256,placement:g,listItemHeight:m,size:b,disabled:x,notFoundContent:y,status:w,builtinPlacements:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:$,direction:k,style:E,allowClear:O,variant:M,dropdownStyle:N,transitionName:T,tagRender:P,maxCount:D,prefix:j,dropdownRender:B,popupRender:I,onDropdownVisibleChange:_,onOpenChange:L,styles:W,classNames:R}=e,A=UN(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:F,getPrefixCls:H,renderEmpty:z,direction:V,virtual:K,popupMatchSelectWidth:J,popupOverflow:Y}=u.useContext(Ct),{showSearch:Z,style:G,styles:X,className:ne,classNames:te}=Mr("select"),[,ee]=rr(),se=m??(ee==null?void 0:ee.controlHeight),de=H("select",l),ge=H(),ve=k??V,{compactSize:ue,compactItemClassnames:we}=Jr(de,ve),[le,pe]=oa("select",M,s),Ne=qn(de),[re,ke,Se]=BN(de,Ne),Me=u.useMemo(()=>{const{mode:Oe}=e;if(Oe!=="combobox")return Oe===Yv?"combobox":Oe},[e.mode]),Pe=Me==="multiple"||Me==="tags",be=XN(e.suffixIcon,e.showArrow),ie=(n=$??S)!==null&&n!==void 0?n:J,ye=((r=W==null?void 0:W.popup)===null||r===void 0?void 0:r.root)||((o=X.popup)===null||o===void 0?void 0:o.root)||N,xe=YN(I||B),Ce=L||_,{status:De,hasFeedback:fe,isFormItemInput:Ge,feedbackIcon:ot}=u.useContext(Cn),it=Eo(De,w);let mt;y!==void 0?mt=y:Me==="combobox"?mt=null:mt=(z==null?void 0:z("Select"))||u.createElement(CN,{componentName:"Select"});const{suffixIcon:Re,itemIcon:He,removeIcon:Ae,clearIcon:Ye}=qv(Object.assign(Object.assign({},A),{multiple:Pe,hasFeedback:fe,feedbackIcon:ot,showSuffixIcon:be,prefixCls:de,componentName:"Select"})),Xe=O===!0?{clearIcon:Ye}:O,st=Er(A,["suffixIcon","itemIcon"]),ut=ce(((a=R==null?void 0:R.popup)===null||a===void 0?void 0:a.root)||((i=te==null?void 0:te.popup)===null||i===void 0?void 0:i.root)||p||v,{[`${de}-dropdown-${ve}`]:ve==="rtl"},d,te.root,R==null?void 0:R.root,Se,Ne,ke),Ve=or(Oe=>{var We;return(We=b??ue)!==null&&We!==void 0?We:Oe}),nt=u.useContext(jn),ct=x??nt,je=ce({[`${de}-lg`]:Ve==="large",[`${de}-sm`]:Ve==="small",[`${de}-rtl`]:ve==="rtl",[`${de}-${le}`]:pe,[`${de}-in-form-item`]:Ge},Xr(de,it,fe),we,ne,c,te.root,R==null?void 0:R.root,d,Se,Ne,ke),Ee=u.useMemo(()=>g!==void 0?g:ve==="rtl"?"bottomRight":"bottomLeft",[g,ve]),[he]=yl("SelectLike",ye==null?void 0:ye.zIndex);return re(u.createElement(dd,Object.assign({ref:t,virtual:K,showSearch:Z},st,{style:Object.assign(Object.assign(Object.assign(Object.assign({},X.root),W==null?void 0:W.root),G),E),dropdownMatchSelectWidth:ie,transitionName:av(ge,"slide-up",T),builtinPlacements:EN(C,Y),listHeight:h,listItemHeight:se,mode:Me,prefixCls:de,placement:Ee,direction:ve,prefix:j,suffixIcon:Re,menuItemSelectedIcon:He,removeIcon:Ae,allowClear:Xe,notFoundContent:mt,className:je,getPopupContainer:f||F,dropdownClassName:ut,disabled:ct,dropdownStyle:Object.assign(Object.assign({},ye),{zIndex:he}),maxCount:Pe?D:void 0,tagRender:Pe?P:void 0,dropdownRender:xe,onDropdownVisibleChange:Ce})))},So=u.forwardRef(GN),QN=ad(So,"dropdownAlign");So.SECRET_COMBOBOX_MODE_DO_NOT_USE=Yv;So.Option=ud;So.OptGroup=cd;So._InternalPanelDoNotUseOrYouWillBeFired=QN;const ZN=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},JN=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Wa=["xxl","xl","lg","md","sm","xs"],eM=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),tM=e=>{const t=e,n=[].concat(Wa).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,l=`screen${a}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(o<n.length-1){const s=`screen${a}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const c=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`)}}),e},nM=()=>{const[,e]=rr(),t=eM(tM(e));return ae.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,i])=>{const l=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:c}))},s=window.matchMedia(i);ZN(s,l),this.matchHandlers[i]={mql:s,listener:l},l(s)})},unregister(){Object.values(t).forEach(a=>{const i=this.matchHandlers[a];JN(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[e])};function rM(){const[,e]=u.useReducer(t=>t+1,0);return e}function oM(e=!0,t={}){const n=qe(t),r=rM(),o=nM();return Et(()=>{const a=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}function Xv(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,l=e.style;return u.createElement("div",{className:ce("".concat(n,"-content"),i),style:l},u.createElement("div",{className:ce("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Ao={shiftX:64,adjustY:1},To={adjustX:1,shiftY:!0},Gn=[0,0],aM={left:{points:["cr","cl"],overflow:To,offset:[-4,0],targetOffset:Gn},right:{points:["cl","cr"],overflow:To,offset:[4,0],targetOffset:Gn},top:{points:["bc","tc"],overflow:Ao,offset:[0,-4],targetOffset:Gn},bottom:{points:["tc","bc"],overflow:Ao,offset:[0,4],targetOffset:Gn},topLeft:{points:["bl","tl"],overflow:Ao,offset:[0,-4],targetOffset:Gn},leftTop:{points:["tr","tl"],overflow:To,offset:[-4,0],targetOffset:Gn},topRight:{points:["br","tr"],overflow:Ao,offset:[0,-4],targetOffset:Gn},rightTop:{points:["tl","tr"],overflow:To,offset:[4,0],targetOffset:Gn},bottomRight:{points:["tr","br"],overflow:Ao,offset:[0,4],targetOffset:Gn},rightBottom:{points:["bl","br"],overflow:To,offset:[4,0],targetOffset:Gn},bottomLeft:{points:["tl","bl"],overflow:Ao,offset:[0,4],targetOffset:Gn},leftBottom:{points:["br","bl"],overflow:To,offset:[-4,0],targetOffset:Gn}},iM=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],lM=function(e,t){var n=e.overlayClassName,r=e.trigger,o=r===void 0?["hover"]:r,a=e.mouseEnterDelay,i=a===void 0?0:a,l=e.mouseLeaveDelay,s=l===void 0?.1:l,c=e.overlayStyle,d=e.prefixCls,f=d===void 0?"rc-tooltip":d,p=e.children,v=e.onVisibleChange,h=e.afterVisibleChange,g=e.transitionName,m=e.animation,b=e.motion,x=e.placement,y=x===void 0?"right":x,w=e.align,C=w===void 0?{}:w,S=e.destroyTooltipOnHide,$=S===void 0?!1:S,k=e.defaultVisible,E=e.getTooltipContainer,O=e.overlayInnerStyle,M=e.overlay,N=e.id,T=e.showArrow,P=T===void 0?!0:T,D=e.classNames,j=e.styles,B=pt(e,iM),I=ed(N),_=qe(null);Zo(t,function(){return _.current});var L=U({},B);"visible"in e&&(L.popupVisible=e.visible);var W=function(){return u.createElement(Xv,{key:"content",prefixCls:f,id:I,bodyClassName:D==null?void 0:D.body,overlayInnerStyle:U(U({},O),j==null?void 0:j.body)},M)},R=function(){var A=u.Children.only(p),F=(A==null?void 0:A.props)||{},H=U(U({},F),{},{"aria-describedby":M?I:null});return u.cloneElement(p,H)};return u.createElement(ld,Te({popupClassName:ce(n,D==null?void 0:D.root),prefixCls:f,popup:W,action:o,builtinPlacements:aM,popupPlacement:y,ref:_,popupAlign:C,getPopupContainer:E,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:k,autoDestroy:$,mouseLeaveDelay:s,popupStyle:U(U({},c),j==null?void 0:j.root),mouseEnterDelay:i,arrow:P},L),R())};const sM=dr(lM);function Uv(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,p=d,v=2*o-l,h=s,g=2*o-a,m=i,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),x=r*(Math.sqrt(2)-1),y=`polygon(${x}px 100%, 50% ${x}px, ${2*o-x}px 100%, ${x}px 100%)`,w=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${d} A ${n} ${n} 0 0 1 ${f} ${p} L ${v} ${h} A ${r} ${r} 0 0 0 ${g} ${m} Z')`;return{arrowShadowWidth:b,arrowPath:w,arrowPolygon:y}}const Gv=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${me(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Qv=8;function Zv(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Qv:r}}function gi(e,t){return e?t:{}}function cM(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Gv(e,t,o)),{"&:before":{background:t}})]},gi(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${me(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),gi(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${me(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),gi(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),gi(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function uM(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const am={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},dM={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},fM=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function pM(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a}=e,i=t/2,l={},s=Zv({contentRadius:a,limitVerticalRadius:!0});return Object.keys(am).forEach(c=>{const d=r&&dM[c]||am[c],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,fM.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-i-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=i+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-i-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=i+o;break}if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-s.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":f.offset[0]=s.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":f.offset[1]=-s.arrowOffsetHorizontal*2+i;break;case"leftBottom":case"rightBottom":f.offset[1]=s.arrowOffsetHorizontal*2-i;break}f.overflow=uM(c,s,t,n),f.htmlRegion="visibleFirst"}),l}const mM=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:v}=e,h=t(i).add(v).add(p).equal(),g=t(i).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},en(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:g,minHeight:s,padding:`${me(e.calc(d).div(2).equal())} ${me(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,Qv)}},[`${n}-content`]:{position:"relative"}}),vl(e,(m,{darkColor:b})=>({[`&${n}-${m}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},cM(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},gM=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Zv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Uv(At(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Jv=(e,t=!0)=>un("Tooltip",n=>{const{borderRadius:r,colorTextLightSolid:o,colorBgSpotlight:a}=n,i=At(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:r,tooltipBg:a});return[mM(i),X$(n,"zoom-big-fast")]},gM,{resetStyle:!1,injectStyle:t})(e),hM=go.map(e=>`${e}-inverse`),vM=["success","processing","error","default","warning"];function jl(e,t=!0){return t?[].concat($e(hM),$e(go)).includes(e):go.includes(e)}function bM(e){return vM.includes(e)}function e0(e,t){const n=jl(t),r=ce({[`${e}-${t}`]:t&&n}),o={},a={},i=U$(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const yM=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=u.useContext(Ct),s=l("tooltip",t),[c,d,f]=Jv(s),p=e0(s,a),v=p.arrowStyle,h=Object.assign(Object.assign({},i),p.overlayStyle),g=ce(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,p.className);return c(u.createElement("div",{className:g,style:v},u.createElement("div",{className:`${s}-arrow`}),u.createElement(Xv,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:h}),o)))};var xM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const CM=u.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:l,overlayInnerStyle:s,children:c,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:v,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:x=!1,autoAdjustOverflow:y=!0,getPopupContainer:w,placement:C="top",mouseEnterDelay:S=.1,mouseLeaveDelay:$=.1,overlayStyle:k,rootClassName:E,overlayClassName:O,styles:M,classNames:N}=e,T=xM(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),P=!!h,[,D]=rr(),{getPopupContainer:j,getPrefixCls:B,direction:I,className:_,style:L,classNames:W,styles:R}=Mr("tooltip"),A=ml(),F=u.useRef(null),H=()=>{var Pe;(Pe=F.current)===null||Pe===void 0||Pe.forceAlign()};u.useImperativeHandle(t,()=>{var Pe,be;return{forceAlign:H,forcePopupAlign:()=>{A.deprecated(!1,"forcePopupAlign","forceAlign"),H()},nativeElement:(Pe=F.current)===null||Pe===void 0?void 0:Pe.nativeElement,popupElement:(be=F.current)===null||be===void 0?void 0:be.popupElement}});const[z,V]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),K=!g&&!m&&g!==0,J=Pe=>{var be,ie;V(K?!1:Pe),K||((be=e.onOpenChange)===null||be===void 0||be.call(e,Pe),(ie=e.onVisibleChange)===null||ie===void 0||ie.call(e,Pe))},Y=u.useMemo(()=>{var Pe,be;let ie=x;return typeof h=="object"&&(ie=(be=(Pe=h.pointAtCenter)!==null&&Pe!==void 0?Pe:h.arrowPointAtCenter)!==null&&be!==void 0?be:x),b||pM({arrowPointAtCenter:ie,autoAdjustOverflow:y,arrowWidth:P?D.sizePopupArrow:0,borderRadius:D.borderRadius,offset:D.marginXXS})},[x,h,b,D]),Z=u.useMemo(()=>g===0?g:m||g||"",[m,g]),G=u.createElement(Yr,{space:!0},typeof Z=="function"?Z():Z),X=B("tooltip",o),ne=B(),te=e["data-popover-inject"];let ee=z;!("open"in e)&&!("visible"in e)&&K&&(ee=!1);const se=u.isValidElement(c)&&!Yh(c)?c:u.createElement("span",null,c),de=se.props,ge=!de.className||typeof de.className=="string"?ce(de.className,a||`${X}-open`):de.className,[ve,ue,we]=Jv(X,!te),le=e0(X,l),pe=le.arrowStyle,Ne=ce(O,{[`${X}-rtl`]:I==="rtl"},le.className,E,ue,we,_,W.root,N==null?void 0:N.root),re=ce(W.body,N==null?void 0:N.body),[ke,Se]=yl("Tooltip",T.zIndex),Me=u.createElement(sM,Object.assign({},T,{zIndex:ke,showArrow:P,placement:C,mouseEnterDelay:S,mouseLeaveDelay:$,prefixCls:X,classNames:{root:Ne,body:re},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pe),R.root),L),k),M==null?void 0:M.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},R.body),s),M==null?void 0:M.body),le.overlayStyle)},getTooltipContainer:w||i||j,ref:F,builtinPlacements:Y,overlay:G,visible:ee,onVisibleChange:J,afterVisibleChange:d??f,arrowContent:u.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:av(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:v??!!p}),ee?qr(se,{className:ge}):se);return ve(u.createElement(Qh.Provider,{value:Se},Me))}),Pl=CM;Pl._InternalPanelDoNotUseOrYouWillBeFired=yM;const wM=new Nt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),EM=new Nt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),SM=new Nt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),$M=new Nt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),kM=new Nt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),OM=new Nt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),NM=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:a,textFontSizeSM:i,statusSize:l,dotSize:s,textFontWeight:c,indicatorHeight:d,indicatorHeightSM:f,marginXS:p,calc:v}=e,h=`${r}-scroll-number`,g=vl(e,(m,{darkColor:b})=>({[`&${t} ${t}-color-${m}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},en(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:c,fontSize:a,lineHeight:me(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:v(d).div(2).equal(),boxShadow:`0 0 0 ${me(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:i,lineHeight:me(f),borderRadius:v(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${me(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${me(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:OM,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:wM,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:EM,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:SM,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:$M,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:kM,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},t0=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=t,i=n,l=e.colorTextLightSolid,s=e.colorError,c=e.colorErrorHover;return At(e,{badgeFontHeight:a,badgeShadowSize:i,badgeTextColor:l,badgeColor:s,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},n0=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},MM=un("Badge",e=>{const t=t0(e);return NM(t)},n0),IM=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=vl(e,(c,{darkColor:d})=>({[`&${i}-color-${c}`]:{background:d,color:d}}));return{[l]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},en(e)),{position:"absolute",top:r,padding:`0 ${me(e.paddingXS)}`,color:e.colorPrimary,lineHeight:me(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${me(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},jM=un(["Badge","Ribbon"],e=>{const t=t0(e);return IM(t)},n0),PM=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:l="end",rootClassName:s}=e,{getPrefixCls:c,direction:d}=u.useContext(Ct),f=c("ribbon",n),p=`${f}-wrapper`,[v,h,g]=jM(f,p),m=jl(o,!1),b=ce(f,`${f}-placement-${l}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${o}`]:m},t),x={},y={};return o&&!m&&(x.background=o,y.color=o),v(u.createElement("div",{className:ce(p,s,h,g)},a,u.createElement("div",{className:ce(b,h),style:Object.assign(Object.assign({},x),r)},u.createElement("span",{className:`${f}-text`},i),u.createElement("div",{className:`${f}-corner`,style:y}))))},im=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),u.createElement("span",{style:a,className:ce(`${t}-only-unit`,{current:r})},n)};function RM(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const DM=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,l]=u.useState(o),[s,c]=u.useState(a),d=()=>{l(o),c(a)};u.useEffect(()=>{const v=setTimeout(d,1e3);return()=>clearTimeout(v)},[o]);let f,p;if(i===o||Number.isNaN(o)||Number.isNaN(i))f=[u.createElement(im,Object.assign({},e,{key:o,current:!0}))],p={transition:"none"};else{f=[];const v=o+10,h=[];for(let b=o;b<=v;b+=1)h.push(b);const g=s<a?1:-1,m=h.findIndex(b=>b%10===i);f=(g<0?h.slice(0,m+1):h.slice(m)).map((b,x)=>{const y=b%10;return u.createElement(im,Object.assign({},e,{key:b,value:y,offset:g<0?x-m:x,current:x===m}))}),p={transform:`translateY(${-RM(i,o,g)}00%)`}}return u.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:d},f)};var AM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TM=u.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:l,show:s,component:c="sup",children:d}=e,f=AM(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=u.useContext(Ct),v=p("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":s,style:i,className:ce(v,o,a),title:l});let g=r;if(r&&Number(r)%1===0){const m=String(r).split("");g=u.createElement("bdi",null,m.map((b,x)=>u.createElement(DM,{prefixCls:v,count:Number(r),value:b,key:m.length-x})))}return i!=null&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),d?qr(d,m=>({className:ce(`${v}-custom-component`,m==null?void 0:m.className,a)})):u.createElement(c,Object.assign({},h,{ref:t}),g)});var FM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const HM=u.forwardRef((e,t)=>{var n,r,o,a,i;const{prefixCls:l,scrollNumberPrefixCls:s,children:c,status:d,text:f,color:p,count:v=null,overflowCount:h=99,dot:g=!1,size:m="default",title:b,offset:x,style:y,className:w,rootClassName:C,classNames:S,styles:$,showZero:k=!1}=e,E=FM(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:M,badge:N}=u.useContext(Ct),T=O("badge",l),[P,D,j]=MM(T),B=v>h?`${h}+`:v,I=B==="0"||B===0||f==="0"||f===0,_=v===null||I&&!k,L=(d!=null||p!=null)&&_,W=d!=null||!I,R=g&&!I,A=R?"":B,F=En(()=>((A==null||A==="")&&(f==null||f==="")||I&&!k)&&!R,[A,I,k,R,f]),H=qe(v);F||(H.current=v);const z=H.current,V=qe(A);F||(V.current=A);const K=V.current,J=qe(R);F||(J.current=R);const Y=En(()=>{if(!x)return Object.assign(Object.assign({},N==null?void 0:N.style),y);const ge={marginTop:x[1]};return M==="rtl"?ge.left=Number.parseInt(x[0],10):ge.right=-Number.parseInt(x[0],10),Object.assign(Object.assign(Object.assign({},ge),N==null?void 0:N.style),y)},[M,x,y,N==null?void 0:N.style]),Z=b??(typeof z=="string"||typeof z=="number"?z:void 0),G=!F&&(f===0?k:!!f&&f!==!0),X=G?u.createElement("span",{className:`${T}-status-text`},f):null,ne=!z||typeof z!="object"?void 0:qr(z,ge=>({style:Object.assign(Object.assign({},Y),ge.style)})),te=jl(p,!1),ee=ce(S==null?void 0:S.indicator,(n=N==null?void 0:N.classNames)===null||n===void 0?void 0:n.indicator,{[`${T}-status-dot`]:L,[`${T}-status-${d}`]:!!d,[`${T}-color-${p}`]:te}),se={};p&&!te&&(se.color=p,se.background=p);const de=ce(T,{[`${T}-status`]:L,[`${T}-not-a-wrapper`]:!c,[`${T}-rtl`]:M==="rtl"},w,C,N==null?void 0:N.className,(r=N==null?void 0:N.classNames)===null||r===void 0?void 0:r.root,S==null?void 0:S.root,D,j);if(!c&&L&&(f||W||!_)){const ge=Y.color;return P(u.createElement("span",Object.assign({},E,{className:de,style:Object.assign(Object.assign(Object.assign({},$==null?void 0:$.root),(o=N==null?void 0:N.styles)===null||o===void 0?void 0:o.root),Y)}),u.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},$==null?void 0:$.indicator),(a=N==null?void 0:N.styles)===null||a===void 0?void 0:a.indicator),se)}),G&&u.createElement("span",{style:{color:ge},className:`${T}-status-text`},f)))}return P(u.createElement("span",Object.assign({ref:t},E,{className:de,style:Object.assign(Object.assign({},(i=N==null?void 0:N.styles)===null||i===void 0?void 0:i.root),$==null?void 0:$.root)}),c,u.createElement(Co,{visible:!F,motionName:`${T}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:ge})=>{var ve,ue;const we=O("scroll-number",s),le=J.current,pe=ce(S==null?void 0:S.indicator,(ve=N==null?void 0:N.classNames)===null||ve===void 0?void 0:ve.indicator,{[`${T}-dot`]:le,[`${T}-count`]:!le,[`${T}-count-sm`]:m==="small",[`${T}-multiple-words`]:!le&&K&&K.toString().length>1,[`${T}-status-${d}`]:!!d,[`${T}-color-${p}`]:te});let Ne=Object.assign(Object.assign(Object.assign({},$==null?void 0:$.indicator),(ue=N==null?void 0:N.styles)===null||ue===void 0?void 0:ue.indicator),Y);return p&&!te&&(Ne=Ne||{},Ne.background=p),u.createElement(TM,{prefixCls:we,show:!F,motionClassName:ge,className:pe,count:K,title:Z,style:Ne,key:"scrollNumber"},ne)}),X))}),r0=HM;r0.Ribbon=PM;var Kc={exports:{}},BM=Kc.exports,lm;function zM(){return lm||(lm=1,(function(e,t){(function(n,r){e.exports=r()})(BM,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",l="minute",s="hour",c="day",d="week",f="month",p="quarter",v="year",h="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var D=["th","st","nd","rd"],j=P%100;return"["+P+(D[(j-20)%10]||D[j]||D[0])+"]"}},y=function(P,D,j){var B=String(P);return!B||B.length>=D?P:""+Array(D+1-B.length).join(j)+P},w={s:y,z:function(P){var D=-P.utcOffset(),j=Math.abs(D),B=Math.floor(j/60),I=j%60;return(D<=0?"+":"-")+y(B,2,"0")+":"+y(I,2,"0")},m:function P(D,j){if(D.date()<j.date())return-P(j,D);var B=12*(j.year()-D.year())+(j.month()-D.month()),I=D.clone().add(B,f),_=j-I<0,L=D.clone().add(B+(_?-1:1),f);return+(-(B+(j-I)/(_?I-L:L-I))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:f,y:v,w:d,d:c,D:h,h:s,m:l,s:i,ms:a,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},C="en",S={};S[C]=x;var $="$isDayjsObject",k=function(P){return P instanceof N||!(!P||!P[$])},E=function P(D,j,B){var I;if(!D)return C;if(typeof D=="string"){var _=D.toLowerCase();S[_]&&(I=_),j&&(S[_]=j,I=_);var L=D.split("-");if(!I&&L.length>1)return P(L[0])}else{var W=D.name;S[W]=D,I=W}return!B&&I&&(C=I),I||!B&&C},O=function(P,D){if(k(P))return P.clone();var j=typeof D=="object"?D:{};return j.date=P,j.args=arguments,new N(j)},M=w;M.l=E,M.i=k,M.w=function(P,D){return O(P,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var N=(function(){function P(j){this.$L=E(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[$]=!0}var D=P.prototype;return D.parse=function(j){this.$d=(function(B){var I=B.date,_=B.utc;if(I===null)return new Date(NaN);if(M.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var L=I.match(m);if(L){var W=L[2]-1||0,R=(L[7]||"0").substring(0,3);return _?new Date(Date.UTC(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,R)):new Date(L[1],W,L[3]||1,L[4]||0,L[5]||0,L[6]||0,R)}}return new Date(I)})(j),this.init()},D.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},D.$utils=function(){return M},D.isValid=function(){return this.$d.toString()!==g},D.isSame=function(j,B){var I=O(j);return this.startOf(B)<=I&&I<=this.endOf(B)},D.isAfter=function(j,B){return O(j)<this.startOf(B)},D.isBefore=function(j,B){return this.endOf(B)<O(j)},D.$g=function(j,B,I){return M.u(j)?this[B]:this.set(I,j)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(j,B){var I=this,_=!!M.u(B)||B,L=M.p(j),W=function(J,Y){var Z=M.w(I.$u?Date.UTC(I.$y,Y,J):new Date(I.$y,Y,J),I);return _?Z:Z.endOf(c)},R=function(J,Y){return M.w(I.toDate()[J].apply(I.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(Y)),I)},A=this.$W,F=this.$M,H=this.$D,z="set"+(this.$u?"UTC":"");switch(L){case v:return _?W(1,0):W(31,11);case f:return _?W(1,F):W(0,F+1);case d:var V=this.$locale().weekStart||0,K=(A<V?A+7:A)-V;return W(_?H-K:H+(6-K),F);case c:case h:return R(z+"Hours",0);case s:return R(z+"Minutes",1);case l:return R(z+"Seconds",2);case i:return R(z+"Milliseconds",3);default:return this.clone()}},D.endOf=function(j){return this.startOf(j,!1)},D.$set=function(j,B){var I,_=M.p(j),L="set"+(this.$u?"UTC":""),W=(I={},I[c]=L+"Date",I[h]=L+"Date",I[f]=L+"Month",I[v]=L+"FullYear",I[s]=L+"Hours",I[l]=L+"Minutes",I[i]=L+"Seconds",I[a]=L+"Milliseconds",I)[_],R=_===c?this.$D+(B-this.$W):B;if(_===f||_===v){var A=this.clone().set(h,1);A.$d[W](R),A.init(),this.$d=A.set(h,Math.min(this.$D,A.daysInMonth())).$d}else W&&this.$d[W](R);return this.init(),this},D.set=function(j,B){return this.clone().$set(j,B)},D.get=function(j){return this[M.p(j)]()},D.add=function(j,B){var I,_=this;j=Number(j);var L=M.p(B),W=function(F){var H=O(_);return M.w(H.date(H.date()+Math.round(F*j)),_)};if(L===f)return this.set(f,this.$M+j);if(L===v)return this.set(v,this.$y+j);if(L===c)return W(1);if(L===d)return W(7);var R=(I={},I[l]=r,I[s]=o,I[i]=n,I)[L]||1,A=this.$d.getTime()+j*R;return M.w(A,this)},D.subtract=function(j,B){return this.add(-1*j,B)},D.format=function(j){var B=this,I=this.$locale();if(!this.isValid())return I.invalidDate||g;var _=j||"YYYY-MM-DDTHH:mm:ssZ",L=M.z(this),W=this.$H,R=this.$m,A=this.$M,F=I.weekdays,H=I.months,z=I.meridiem,V=function(Y,Z,G,X){return Y&&(Y[Z]||Y(B,_))||G[Z].slice(0,X)},K=function(Y){return M.s(W%12||12,Y,"0")},J=z||function(Y,Z,G){var X=Y<12?"AM":"PM";return G?X.toLowerCase():X};return _.replace(b,(function(Y,Z){return Z||(function(G){switch(G){case"YY":return String(B.$y).slice(-2);case"YYYY":return M.s(B.$y,4,"0");case"M":return A+1;case"MM":return M.s(A+1,2,"0");case"MMM":return V(I.monthsShort,A,H,3);case"MMMM":return V(H,A);case"D":return B.$D;case"DD":return M.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return V(I.weekdaysMin,B.$W,F,2);case"ddd":return V(I.weekdaysShort,B.$W,F,3);case"dddd":return F[B.$W];case"H":return String(W);case"HH":return M.s(W,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return J(W,R,!0);case"A":return J(W,R,!1);case"m":return String(R);case"mm":return M.s(R,2,"0");case"s":return String(B.$s);case"ss":return M.s(B.$s,2,"0");case"SSS":return M.s(B.$ms,3,"0");case"Z":return L}return null})(Y)||L.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(j,B,I){var _,L=this,W=M.p(B),R=O(j),A=(R.utcOffset()-this.utcOffset())*r,F=this-R,H=function(){return M.m(L,R)};switch(W){case v:_=H()/12;break;case f:_=H();break;case p:_=H()/3;break;case d:_=(F-A)/6048e5;break;case c:_=(F-A)/864e5;break;case s:_=F/o;break;case l:_=F/r;break;case i:_=F/n;break;default:_=F}return I?_:M.a(_)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return S[this.$L]},D.locale=function(j,B){if(!j)return this.$L;var I=this.clone(),_=E(j,B,!0);return _&&(I.$L=_),I},D.clone=function(){return M.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},P})(),T=N.prototype;return O.prototype=T,[["$ms",a],["$s",i],["$m",l],["$H",s],["$W",c],["$M",f],["$y",v],["$D",h]].forEach((function(P){T[P[1]]=function(D){return this.$g(D,P[0],P[1])}})),O.extend=function(P,D){return P.$i||(P(D,N,O),P.$i=!0),O},O.locale=E,O.isDayjs=k,O.unix=function(P){return O(1e3*P)},O.en=S[C],O.Ls=S,O.p={},O}))})(Kc)),Kc.exports}var _M=zM();const On=Nr(_M);var qc={exports:{}},LM=qc.exports,sm;function WM(){return sm||(sm=1,(function(e,t){(function(n,r){e.exports=r()})(LM,(function(){return function(n,r){r.prototype.weekday=function(o){var a=this.$locale().weekStart||0,i=this.$W,l=(i<a?i+7:i)-a;return this.$utils().u(o)?l:this.subtract(l,"day").add(o,"day")}}}))})(qc)),qc.exports}var VM=WM();const KM=Nr(VM);var Yc={exports:{}},qM=Yc.exports,cm;function YM(){return cm||(cm=1,(function(e,t){(function(n,r){e.exports=r()})(qM,(function(){return function(n,r,o){var a=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,p,v,h,g){var m=f.name?f:f.$locale(),b=i(m[p]),x=i(m[v]),y=b||x.map((function(C){return C.slice(0,h)}));if(!g)return y;var w=m.weekStart;return y.map((function(C,S){return y[(S+(w||0))%7]}))},s=function(){return o.Ls[o.locale()]},c=function(f,p){return f.formats[p]||(function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(h,g,m){return g||m.slice(1)}))})(f.formats[p.toUpperCase()])},d=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):l(f,"months")},monthsShort:function(p){return p?p.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):l(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=s();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return c(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return l(s(),"months")},o.monthsShort=function(){return l(s(),"monthsShort","months",3)},o.weekdays=function(f){return l(s(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return l(s(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return l(s(),"weekdaysMin","weekdays",2,f)}}}))})(Yc)),Yc.exports}var XM=YM();const UM=Nr(XM);var Xc={exports:{}},GM=Xc.exports,um;function QM(){return um||(um=1,(function(e,t){(function(n,r){e.exports=r()})(GM,(function(){var n="week",r="year";return function(o,a,i){var l=a.prototype;l.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(r).add(1,r).date(c),f=i(this).endOf(n);if(d.isBefore(f))return 1}var p=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),v=this.diff(p,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},l.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})(Xc)),Xc.exports}var ZM=QM();const JM=Nr(ZM);var Uc={exports:{}},eI=Uc.exports,dm;function tI(){return dm||(dm=1,(function(e,t){(function(n,r){e.exports=r()})(eI,(function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}}))})(Uc)),Uc.exports}var nI=tI();const rI=Nr(nI);var Gc={exports:{}},oI=Gc.exports,fm;function aI(){return fm||(fm=1,(function(e,t){(function(n,r){e.exports=r()})(oI,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var l=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return s.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return s.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}}));return a.bind(this)(d)}}}))})(Gc)),Gc.exports}var iI=aI();const lI=Nr(iI);var Qc={exports:{}},sI=Qc.exports,pm;function cI(){return pm||(pm=1,(function(e,t){(function(n,r){e.exports=r()})(sI,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,s={},c=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(b){this[m]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var x=b.match(/([+-]|\d\d)/g),y=60*x[1]+(+x[2]||0);return y===0?0:x[0]==="+"?-y:y})(m)}],p=function(m){var b=s[m];return b&&(b.indexOf?b:b.s.concat(b.f))},v=function(m,b){var x,y=s.meridiem;if(y){for(var w=1;w<=24;w+=1)if(m.indexOf(y(w,0,b))>-1){x=w>12;break}}else x=m===(b?"pm":"PM");return x},h={A:[l,function(m){this.afternoon=v(m,!1)}],a:[l,function(m){this.afternoon=v(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[a,d("day")],Do:[l,function(m){var b=s.ordinal,x=m.match(/\d+/);if(this.day=x[0],b)for(var y=1;y<=31;y+=1)b(y).replace(/\[|\]/g,"")===m&&(this.day=y)}],w:[i,d("week")],ww:[a,d("week")],M:[i,d("month")],MM:[a,d("month")],MMM:[l,function(m){var b=p("months"),x=(p("monthsShort")||b.map((function(y){return y.slice(0,3)}))).indexOf(m)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[l,function(m){var b=p("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(m){this.year=c(m)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(m){var b,x;b=m,x=s&&s.formats;for(var y=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,M,N){var T=N&&N.toUpperCase();return M||x[N]||n[N]||x[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(P,D,j){return D||j.slice(1)}))}))).match(r),w=y.length,C=0;C<w;C+=1){var S=y[C],$=h[S],k=$&&$[0],E=$&&$[1];y[C]=E?{regex:k,parser:E}:S.replace(/^\[|\]$/g,"")}return function(O){for(var M={},N=0,T=0;N<w;N+=1){var P=y[N];if(typeof P=="string")T+=P.length;else{var D=P.regex,j=P.parser,B=O.slice(T),I=D.exec(B)[0];j.call(M,I),O=O.replace(I,"")}}return(function(_){var L=_.afternoon;if(L!==void 0){var W=_.hours;L?W<12&&(_.hours+=12):W===12&&(_.hours=0),delete _.afternoon}})(M),M}}return function(m,b,x){x.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var y=b.prototype,w=y.parse;y.parse=function(C){var S=C.date,$=C.utc,k=C.args;this.$u=$;var E=k[1];if(typeof E=="string"){var O=k[2]===!0,M=k[3]===!0,N=O||M,T=k[2];M&&(T=k[2]),s=this.$locale(),!O&&T&&(s=x.Ls[T]),this.$d=(function(B,I,_,L){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*B);var W=g(I)(B),R=W.year,A=W.month,F=W.day,H=W.hours,z=W.minutes,V=W.seconds,K=W.milliseconds,J=W.zone,Y=W.week,Z=new Date,G=F||(R||A?1:Z.getDate()),X=R||Z.getFullYear(),ne=0;R&&!A||(ne=A>0?A-1:Z.getMonth());var te,ee=H||0,se=z||0,de=V||0,ge=K||0;return J?new Date(Date.UTC(X,ne,G,ee,se,de,ge+60*J.offset*1e3)):_?new Date(Date.UTC(X,ne,G,ee,se,de,ge)):(te=new Date(X,ne,G,ee,se,de,ge),Y&&(te=L(te).week(Y).toDate()),te)}catch{return new Date("")}})(S,E,$,x),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),N&&S!=this.format(E)&&(this.$d=new Date("")),s={}}else if(E instanceof Array)for(var P=E.length,D=1;D<=P;D+=1){k[1]=E[D-1];var j=x.apply(this,k);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}D===P&&(this.$d=new Date(""))}else w.call(this,C)}}}))})(Qc)),Qc.exports}var uI=cI();const dI=Nr(uI);On.extend(dI);On.extend(lI);On.extend(KM);On.extend(UM);On.extend(JM);On.extend(rI);On.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var a=(o||"").replace("Wo","wo");return r.bind(this)(a)}});var fI={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},to=function(e){var t=fI[e];return t||e.split("_")[0]},pI={getNow:function(){var e=On();return typeof e.tz=="function"?e.tz():e},getFixedDate:function(e){return On(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return On().locale(to(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(to(e)).weekday(0)},getWeek:function(e,t){return t.locale(to(e)).week()},getShortWeekDays:function(e){return On().locale(to(e)).localeData().weekdaysMin()},getShortMonths:function(e){return On().locale(to(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(to(e)).format(n)},parse:function(e,t,n){for(var r=to(e),o=0;o<n.length;o+=1){var a=n[o],i=t;if(a.includes("wo")||a.includes("Wo")){for(var l=i.split("-")[0],s=i.split("-")[1],c=On(l,"YYYY").startOf("year").locale(r),d=0;d<=52;d+=1){var f=c.add(d,"week");if(f.format("Wo")===s)return f}return null}var p=On(i,a,!0).locale(r);if(p.isValid())return p}return null}}};function mI(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var pr=u.createContext(null),gI={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function o0(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,a=e.transitionName,i=e.getPopupContainer,l=e.children,s=e.range,c=e.placement,d=e.builtinPlacements,f=d===void 0?gI:d,p=e.direction,v=e.visible,h=e.onClose,g=u.useContext(pr),m=g.prefixCls,b="".concat(m,"-dropdown"),x=mI(c,p==="rtl");return u.createElement(ld,{showAction:[],hideAction:["click"],popupPlacement:x,builtinPlacements:f,prefixCls:b,popupTransitionName:a,popup:t,popupAlign:o,popupVisible:v,popupClassName:ce(r,q(q({},"".concat(b,"-range"),s),"".concat(b,"-rtl"),p==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(y){y||h()}},l)}function fd(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function $o(e){return e==null?[]:Array.isArray(e)?e:[e]}function Na(e,t,n){var r=$e(e);return r[t]=n,r}function Rl(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function a0(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function i0(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(a){return e[a]});return r!==o?e[o]:void 0}function l0(e){return Rl(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function pd(e,t,n,r){var o=u.useMemo(function(){return e||function(i,l){var s=i;return t&&l.type==="date"?t(s,l.today):n&&l.type==="month"?n(s,l.locale):l.originNode}},[e,n,t]),a=u.useCallback(function(i,l){return o(i,U(U({},l),{},{range:r}))},[o,r]);return a}function s0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=u.useState([!1,!1]),o=Q(r,2),a=o[0],i=o[1],l=function(c,d){i(function(f){return Na(f,d,c)})},s=u.useMemo(function(){return a.map(function(c,d){if(c)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,a,t,n]);return[s,l]}function c0(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function hI(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,c=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,v=e.yearFormat,h=e.cellYearFormat,g=e.cellQuarterFormat,m=e.dayFormat,b=e.cellDateFormat,x=c0(t,n,r,o,a);return U(U({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(x),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||x,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:v||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:b||m||"D"})}function u0(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return ae.useMemo(function(){return hI(e,n,r,o,a,i)},[e,n,r,o,a,i])}function va(e,t,n){return n??t.some(function(r){return e.includes(r)})}var vI=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function bI(e){var t=Rl(e,vI),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=Ze(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function yI(e){return e&&typeof e=="string"}function d0(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function f0(e,t,n,r,o){var a=t,i=n,l=r;if(!e&&!a&&!i&&!l&&!o)a=!0,i=!0,l=!0;else if(e){var s,c,d,f=[a,i,l].some(function(h){return h===!1}),p=[a,i,l].some(function(h){return h===!0}),v=f?!0:!p;a=(s=a)!==null&&s!==void 0?s:v,i=(c=i)!==null&&c!==void 0?c:v,l=(d=l)!==null&&d!==void 0?d:v}return[a,i,l,o]}function p0(e){var t=e.showTime,n=bI(e),r=Q(n,2),o=r[0],a=r[1],i=t&&Ze(t)==="object"?t:{},l=U(U({defaultOpenValue:i.defaultOpenValue||i.defaultValue},o),i),s=l.showMillisecond,c=l.showHour,d=l.showMinute,f=l.showSecond,p=d0(c,d,f,s),v=f0(p,c,d,f,s),h=Q(v,3);return c=h[0],d=h[1],f=h[2],[l,U(U({},l),{},{showHour:c,showMinute:d,showSecond:f,showMillisecond:s}),l.format,a]}function m0(e,t,n,r,o){var a=e==="time";if(e==="datetime"||a){for(var i=r,l=a0(e,o,null),s=l,c=[t,n],d=0;d<c.length;d+=1){var f=$o(c[d])[0];if(yI(f)){s=f;break}}var p=i.showHour,v=i.showMinute,h=i.showSecond,g=i.showMillisecond,m=i.use12Hours,b=va(s,["a","A","LT","LLL","LTS"],m),x=d0(p,v,h,g);x||(p=va(s,["H","h","k","LT","LLL"]),v=va(s,["m","LT","LLL"]),h=va(s,["s","LTS"]),g=va(s,["SSS"]));var y=f0(x,p,v,h,g),w=Q(y,3);p=w[0],v=w[1],h=w[2];var C=t||c0(p,v,h,g,b);return U(U({},i),{},{format:C,showHour:p,showMinute:v,showSecond:h,showMillisecond:g,use12Hours:b})}return null}function xI(e,t,n){if(t===!1)return null;var r=t&&Ze(t)==="object"?t:{};return r.clearIcon||n||u.createElement("span",{className:"".concat(e,"-clear-btn")})}var $s=7;function eo(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Zc(e,t,n){return eo(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function vo(e,t,n){return eo(t,n,function(){return e.getYear(t)===e.getYear(n)})}function mm(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function CI(e,t,n){return eo(t,n,function(){return vo(e,t,n)&&mm(e,t)===mm(e,n)})}function md(e,t,n){return eo(t,n,function(){return vo(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function gd(e,t,n){return eo(t,n,function(){return vo(e,t,n)&&md(e,t,n)&&e.getDate(t)===e.getDate(n)})}function g0(e,t,n){return eo(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function h0(e,t,n){return eo(t,n,function(){return gd(e,t,n)&&g0(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Ca(e,t,n,r){return eo(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return vo(e,o,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Nn(e,t,n,r,o){switch(o){case"date":return gd(e,n,r);case"week":return Ca(e,t.locale,n,r);case"month":return md(e,n,r);case"quarter":return CI(e,n,r);case"year":return vo(e,n,r);case"decade":return Zc(e,n,r);case"time":return g0(e,n,r);default:return h0(e,n,r)}}function Dl(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function hi(e,t,n,r,o){return Nn(e,t,n,r,o)?!0:e.isAfter(n,r)}function wI(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o),i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function gn(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function Ji(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(i,l){n?r=e[i](r,e[o[l]](n)):r=e[i](r,0)}),r}function EI(e,t,n,r,o){var a=yt(function(i,l){return!!(n&&n(i,l)||r&&e.isAfter(r,i)&&!Nn(e,t,r,i,l.type)||o&&e.isAfter(i,o)&&!Nn(e,t,o,i,l.type))});return a}function SI(e,t,n){return u.useMemo(function(){var r=a0(e,t,n),o=$o(r),a=o[0],i=Ze(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),i]},[e,t,n])}function $I(e,t,n){return typeof e[0]=="function"||n?!0:t}function kI(e,t,n,r){var o=yt(function(a,i){var l=U({type:t},i);if(delete l.activeIndex,!e.isValidate(a)||n&&n(a,l))return!0;if((t==="date"||t==="time")&&r){var s,c=i&&i.activeIndex===1?"end":"start",d=((s=r.disabledTime)===null||s===void 0?void 0:s.call(r,a,c,{from:l.from}))||{},f=d.disabledHours,p=d.disabledMinutes,v=d.disabledSeconds,h=d.disabledMilliseconds,g=r.disabledHours,m=r.disabledMinutes,b=r.disabledSeconds,x=f||g,y=p||m,w=v||b,C=e.getHour(a),S=e.getMinute(a),$=e.getSecond(a),k=e.getMillisecond(a);if(x&&x().includes(C)||y&&y(C).includes(S)||w&&w(C,S).includes($)||h&&h(C,S,$).includes(k))return!0}return!1});return o}function vi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=u.useMemo(function(){var r=e&&$o(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function v0(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=o===void 0?"date":o,i=e.prefixCls,l=i===void 0?"rc-picker":i,s=e.styles,c=s===void 0?{}:s,d=e.classNames,f=d===void 0?{}:d,p=e.order,v=p===void 0?!0:p,h=e.components,g=h===void 0?{}:h,m=e.inputRender,b=e.allowClear,x=e.clearIcon,y=e.needConfirm,w=e.multiple,C=e.format,S=e.inputReadOnly,$=e.disabledDate,k=e.minDate,E=e.maxDate,O=e.showTime,M=e.value,N=e.defaultValue,T=e.pickerValue,P=e.defaultPickerValue,D=vi(M),j=vi(N),B=vi(T),I=vi(P),_=a==="date"&&O?"datetime":a,L=_==="time"||_==="datetime",W=L||w,R=y??L,A=p0(e),F=Q(A,4),H=F[0],z=F[1],V=F[2],K=F[3],J=u0(r,z),Y=u.useMemo(function(){return m0(_,V,K,H,J)},[_,V,K,H,J]),Z=u.useMemo(function(){return U(U({},e),{},{prefixCls:l,locale:J,picker:a,styles:c,classNames:f,order:v,components:U({input:m},g),clearIcon:xI(l,b,x),showTime:Y,value:D,defaultValue:j,pickerValue:B,defaultPickerValue:I},t==null?void 0:t())},[e]),G=SI(_,J,C),X=Q(G,2),ne=X[0],te=X[1],ee=$I(ne,S,w),se=EI(n,r,$,k,E),de=kI(n,a,se,Y),ge=u.useMemo(function(){return U(U({},Z),{},{needConfirm:R,inputReadOnly:ee,disabledDate:se})},[Z,R,ee,se]);return[ge,_,W,ne,te,de]}function OI(e,t,n){var r=Jt(t,{value:e}),o=Q(r,2),a=o[0],i=o[1],l=ae.useRef(e),s=ae.useRef(),c=function(){ft.cancel(s.current)},d=yt(function(){i(l.current),n&&a!==l.current&&n(l.current)}),f=yt(function(p,v){c(),l.current=p,p||v?d():s.current=ft(d)});return ae.useEffect(function(){return c},[]),[a,f]}function b0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(d){return d})?!1:e,a=OI(o,t||!1,r),i=Q(a,2),l=i[0],s=i[1];function c(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&s(d,f.force)}return[l,c]}function y0(e){var t=u.useRef();return u.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(r){var o;(o=t.current)===null||o===void 0||o.focus(r)},blur:function(){var r;(r=t.current)===null||r===void 0||r.blur()}}}),t}function x0(e,t){return u.useMemo(function(){return e||(t?(xn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Q(n,2),o=r[0],a=r[1];return{label:o,value:a}})):[])},[e,t])}function hd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=u.useRef(t);r.current=t,Lo(function(){if(e)r.current(e);else{var o=ft(function(){r.current(e)},n);return function(){ft.cancel(o)}}},[e])}function C0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=u.useState(0),o=Q(r,2),a=o[0],i=o[1],l=u.useState(!1),s=Q(l,2),c=s[0],d=s[1],f=u.useRef([]),p=u.useRef(null),v=u.useRef(null),h=function(y){p.current=y},g=function(y){return p.current===y},m=function(y){d(y)},b=function(y){return y&&(v.current=y),v.current},x=function(y){var w=f.current,C=new Set(w.filter(function($){return y[$]||t[$]})),S=w[w.length-1]===0?1:0;return C.size>=2||e[S]?null:S};return hd(c||n,function(){c||(f.current=[],h(null))}),u.useEffect(function(){c&&f.current.push(a)},[c,a]),[c,m,b,a,i,x,f.current,h,g]}function NI(e,t,n,r,o,a){var i=n[n.length-1],l=function(s,c){var d=Q(e,2),f=d[0],p=d[1],v=U(U({},c),{},{from:i0(e,n)});return i===1&&t[0]&&f&&!Nn(r,o,f,s,v.type)&&r.isAfter(f,s)||i===0&&t[1]&&p&&!Nn(r,o,p,s,v.type)&&r.isAfter(s,p)?!0:a==null?void 0:a(s,v)};return l}function wa(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var ks=[];function w0(e,t,n,r,o,a,i,l){var s=arguments.length>8&&arguments[8]!==void 0?arguments[8]:ks,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:ks,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:ks,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,v=arguments.length>13?arguments[13]:void 0,h=i==="time",g=a||0,m=function(j){var B=e.getNow();return h&&(B=Ji(e,B)),s[j]||n[j]||B},b=Q(c,2),x=b[0],y=b[1],w=Jt(function(){return m(0)},{value:x}),C=Q(w,2),S=C[0],$=C[1],k=Jt(function(){return m(1)},{value:y}),E=Q(k,2),O=E[0],M=E[1],N=u.useMemo(function(){var j=[S,O][g];return h?j:Ji(e,j,d[g])},[h,S,O,g,e,d]),T=function(j){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",I=[$,M][g];I(j);var _=[S,O];_[g]=j,f&&(!Nn(e,t,S,_[0],i)||!Nn(e,t,O,_[1],i))&&f(_,{source:B,range:g===1?"end":"start",mode:r})},P=function(j,B){if(l){var I={date:"month",week:"month",month:"year",quarter:"year"},_=I[i];if(_&&!Nn(e,t,j,B,_))return wa(e,i,B,-1);if(i==="year"&&j){var L=Math.floor(e.getYear(j)/10),W=Math.floor(e.getYear(B)/10);if(L!==W)return wa(e,i,B,-1)}}return B},D=u.useRef(null);return Et(function(){if(o&&!s[g]){var j=h?null:e.getNow();if(D.current!==null&&D.current!==g?j=[S,O][g^1]:n[g]?j=g===0?n[0]:P(n[0],n[1]):n[g^1]&&(j=n[g^1]),j){p&&e.isAfter(p,j)&&(j=p);var B=l?wa(e,i,j,1):j;v&&e.isAfter(B,v)&&(j=l?wa(e,i,v,-1):v),T(j,"reset")}}},[o,g,n[g]]),u.useEffect(function(){o?D.current=g:D.current=null},[o,g]),Et(function(){o&&s&&s[g]&&T(s[g],"reset")},[o,g]),[N,T]}function E0(e,t){var n=u.useRef(e),r=u.useState({}),o=Q(r,2),a=o[1],i=function(s){return s&&t!==void 0?t:n.current},l=function(s){n.current=s,a({})};return[i,l,i(!0)]}var MI=[];function S0(e,t,n){var r=function(a){return a.map(function(i){return gn(i,{generateConfig:e,locale:t,format:n[0]})})},o=function(a,i){for(var l=Math.max(a.length,i.length),s=-1,c=0;c<l;c+=1){var d=a[c]||null,f=i[c]||null;if(d!==f&&!h0(e,d,f)){s=c;break}}return[s<0,s!==0]};return[r,o]}function $0(e,t){return $e(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function II(e){var t=E0(e),n=Q(t,2),r=n[0],o=n[1],a=yt(function(){o(e)});return u.useEffect(function(){a()},[e]),[r,o]}function k0(e,t,n,r,o,a,i,l,s){var c=Jt(a,{value:i}),d=Q(c,2),f=d[0],p=d[1],v=f||MI,h=II(v),g=Q(h,2),m=g[0],b=g[1],x=S0(e,t,n),y=Q(x,2),w=y[0],C=y[1],S=yt(function(k){var E=$e(k);if(r)for(var O=0;O<2;O+=1)E[O]=E[O]||null;else o&&(E=$0(E.filter(function(j){return j}),e));var M=C(m(),E),N=Q(M,2),T=N[0],P=N[1];if(!T&&(b(E),l)){var D=w(E);l(E,D,{range:P?"end":"start"})}}),$=function(){s&&s(m())};return[v,p,m,S,$]}function O0(e,t,n,r,o,a,i,l,s,c){var d=e.generateConfig,f=e.locale,p=e.picker,v=e.onChange,h=e.allowEmpty,g=e.order,m=a.some(function(T){return T})?!1:g,b=S0(d,f,i),x=Q(b,2),y=x[0],w=x[1],C=E0(t),S=Q(C,2),$=S[0],k=S[1],E=yt(function(){k(t)});u.useEffect(function(){E()},[t]);var O=yt(function(T){var P=T===null,D=$e(T||$());if(P)for(var j=Math.max(a.length,D.length),B=0;B<j;B+=1)a[B]||(D[B]=null);m&&D[0]&&D[1]&&(D=$0(D,d)),o(D);var I=D,_=Q(I,2),L=_[0],W=_[1],R=!L,A=!W,F=h?(!R||h[0])&&(!A||h[1]):!0,H=!g||R||A||Nn(d,f,L,W,p)||d.isAfter(W,L),z=(a[0]||!L||!c(L,{activeIndex:0}))&&(a[1]||!W||!c(W,{from:L,activeIndex:1})),V=P||F&&H&&z;if(V){n(D);var K=w(D,t),J=Q(K,1),Y=J[0];v&&!Y&&v(P&&D.every(function(Z){return!Z})?null:D,y(D))}return V}),M=yt(function(T,P){var D=Na($(),T,r()[T]);k(D),P&&O()}),N=!l&&!s;return hd(!N,function(){N&&(O(),o(t),E())},2),[M,O]}function N0(e,t,n,r,o){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!o&&(e==="date"||e==="time")}function jI(e,t,n,r,o,a){var i=e;function l(f,p,v){var h=a[f](i),g=v.find(function(y){return y.value===h});if(!g||g.disabled){var m=v.filter(function(y){return!y.disabled}),b=$e(m).reverse(),x=b.find(function(y){return y.value<=h})||m[0];x&&(h=x.value,i=a[p](i,h))}return h}var s=l("getHour","setHour",t()),c=l("getMinute","setMinute",n(s)),d=l("getSecond","setSecond",r(s,c));return l("getMillisecond","setMillisecond",o(s,c,d)),i}function bi(){return[]}function yi(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],l=n>=1?n|0:1,s=e;s<=t;s+=l){var c=o.includes(s);(!c||!r)&&i.push({label:fd(s,a),value:s,disabled:c})}return i}function vd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=a===void 0?1:a,l=r.minuteStep,s=l===void 0?1:l,c=r.secondStep,d=c===void 0?1:c,f=r.millisecondStep,p=f===void 0?100:f,v=r.hideDisabledOptions,h=r.disabledTime,g=r.disabledHours,m=r.disabledMinutes,b=r.disabledSeconds,x=u.useMemo(function(){return n||e.getNow()},[n,e]),y=u.useCallback(function(I){var _=(h==null?void 0:h(I))||{};return[_.disabledHours||g||bi,_.disabledMinutes||m||bi,_.disabledSeconds||b||bi,_.disabledMilliseconds||bi]},[h,g,m,b]),w=u.useMemo(function(){return y(x)},[x,y]),C=Q(w,4),S=C[0],$=C[1],k=C[2],E=C[3],O=u.useCallback(function(I,_,L,W){var R=yi(0,23,i,v,I()),A=o?R.map(function(V){return U(U({},V),{},{label:fd(V.value%12||12,2)})}):R,F=function(V){return yi(0,59,s,v,_(V))},H=function(V,K){return yi(0,59,d,v,L(V,K))},z=function(V,K,J){return yi(0,999,p,v,W(V,K,J),3)};return[A,F,H,z]},[v,i,o,p,s,d]),M=u.useMemo(function(){return O(S,$,k,E)},[O,S,$,k,E]),N=Q(M,4),T=N[0],P=N[1],D=N[2],j=N[3],B=function(I,_){var L=function(){return T},W=P,R=D,A=j;if(_){var F=y(_),H=Q(F,4),z=H[0],V=H[1],K=H[2],J=H[3],Y=O(z,V,K,J),Z=Q(Y,4),G=Z[0],X=Z[1],ne=Z[2],te=Z[3];L=function(){return G},W=X,R=ne,A=te}var ee=jI(I,L,W,R,A,e);return ee};return[B,T,P,D,j]}function PI(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,l=e.onNow,s=e.invalid,c=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=u.useContext(pr),v=p.prefixCls,h=p.locale,g=p.button,m=g===void 0?"button":g,b=d.getNow(),x=vd(d,a,b),y=Q(x,1),w=y[0],C=r==null?void 0:r(t),S=f(b,{type:t}),$=function(){if(!S){var T=w(b);l(T)}},k="".concat(v,"-now"),E="".concat(k,"-btn"),O=o&&u.createElement("li",{className:k},u.createElement("a",{className:ce(E,S&&"".concat(E,"-disabled")),"aria-disabled":S,onClick:$},n==="date"?h.today:h.now)),M=c&&u.createElement("li",{className:"".concat(v,"-ok")},u.createElement(m,{disabled:s,onClick:i},h.ok)),N=(O||M)&&u.createElement("ul",{className:"".concat(v,"-ranges")},O,M);return!C&&!N?null:u.createElement("div",{className:"".concat(v,"-footer")},C&&u.createElement("div",{className:"".concat(v,"-footer-extra")},C),N)}function M0(e,t,n){function r(o,a){var i=o.findIndex(function(s){return Nn(e,t,s,a,n)});if(i===-1)return[].concat($e(o),[a]);var l=$e(o);return l.splice(i,1),l}return r}var ko=u.createContext(null);function Al(){return u.useContext(ko)}function aa(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,l=e.maxDate,s=e.cellRender,c=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,p=e.values,v=e.pickerValue,h=e.onSelect,g=e.prevIcon,m=e.nextIcon,b=e.superPrevIcon,x=e.superNextIcon,y=r.getNow(),w={now:y,values:p,pickerValue:v,prefixCls:n,disabledDate:a,minDate:i,maxDate:l,cellRender:s,hoverValue:c,hoverRangeValue:d,onHover:f,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:g,nextIcon:m,superPrevIcon:b,superNextIcon:x};return[w,y]}var Vr=u.createContext({});function ni(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,l=e.titleFormat,s=e.getCellText,c=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,v=e.disabledDate,h=Al(),g=h.prefixCls,m=h.panelType,b=h.now,x=h.disabledDate,y=h.cellRender,w=h.onHover,C=h.hoverValue,S=h.hoverRangeValue,$=h.generateConfig,k=h.values,E=h.locale,O=h.onSelect,M=v||x,N="".concat(g,"-cell"),T=u.useContext(Vr),P=T.onCellDblClick,D=function(R){return k.some(function(A){return A&&Nn($,E,R,A,m)})},j=[],B=0;B<t;B+=1){for(var I=[],_=void 0,L=function(){var R=B*n+W,A=o(r,R),F=M==null?void 0:M(A,{type:m});W===0&&(_=A,a&&I.push(a(_)));var H=!1,z=!1,V=!1;if(p&&S){var K=Q(S,2),J=K[0],Y=K[1];H=Dl($,J,Y,A),z=Nn($,E,A,J,m),V=Nn($,E,A,Y,m)}var Z=l?gn(A,{locale:E,format:l,generateConfig:$}):void 0,G=u.createElement("div",{className:"".concat(N,"-inner")},s(A));I.push(u.createElement("td",{key:W,title:Z,className:ce(N,U(q(q(q(q(q(q({},"".concat(N,"-disabled"),F),"".concat(N,"-hover"),(C||[]).some(function(X){return Nn($,E,A,X,m)})),"".concat(N,"-in-range"),H&&!z&&!V),"".concat(N,"-range-start"),z),"".concat(N,"-range-end"),V),"".concat(g,"-cell-selected"),!S&&m!=="week"&&D(A)),c(A))),onClick:function(){F||O(A)},onDoubleClick:function(){!F&&P&&P()},onMouseEnter:function(){F||(w==null||w(A))},onMouseLeave:function(){F||(w==null||w(null))}},y?y(A,{prefixCls:g,originNode:G,today:b,type:m,locale:E}):G))},W=0;W<n;W+=1)L();j.push(u.createElement("tr",{key:B,className:i==null?void 0:i(_)},I))}return u.createElement("div",{className:"".concat(g,"-body")},u.createElement("table",{className:"".concat(g,"-content")},d&&u.createElement("thead",null,u.createElement("tr",null,d)),u.createElement("tbody",null,j)))}var xi={visibility:"hidden"};function ia(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,a=e.getEnd,i=e.children,l=Al(),s=l.prefixCls,c=l.prevIcon,d=c===void 0?"\u2039":c,f=l.nextIcon,p=f===void 0?"\u203A":f,v=l.superPrevIcon,h=v===void 0?"\xAB":v,g=l.superNextIcon,m=g===void 0?"\xBB":g,b=l.minDate,x=l.maxDate,y=l.generateConfig,w=l.locale,C=l.pickerValue,S=l.panelType,$="".concat(s,"-header"),k=u.useContext(Vr),E=k.hidePrev,O=k.hideNext,M=k.hideHeader,N=u.useMemo(function(){if(!b||!t||!a)return!1;var R=a(t(-1,C));return!hi(y,w,R,b,S)},[b,t,C,a,y,w,S]),T=u.useMemo(function(){if(!b||!n||!a)return!1;var R=a(n(-1,C));return!hi(y,w,R,b,S)},[b,n,C,a,y,w,S]),P=u.useMemo(function(){if(!x||!t||!o)return!1;var R=o(t(1,C));return!hi(y,w,x,R,S)},[x,t,C,o,y,w,S]),D=u.useMemo(function(){if(!x||!n||!o)return!1;var R=o(n(1,C));return!hi(y,w,x,R,S)},[x,n,C,o,y,w,S]),j=function(R){t&&r(t(R,C))},B=function(R){n&&r(n(R,C))};if(M)return null;var I="".concat($,"-prev-btn"),_="".concat($,"-next-btn"),L="".concat($,"-super-prev-btn"),W="".concat($,"-super-next-btn");return u.createElement("div",{className:$},n&&u.createElement("button",{type:"button","aria-label":w.previousYear,onClick:function(){return B(-1)},tabIndex:-1,className:ce(L,T&&"".concat(L,"-disabled")),disabled:T,style:E?xi:{}},h),t&&u.createElement("button",{type:"button","aria-label":w.previousMonth,onClick:function(){return j(-1)},tabIndex:-1,className:ce(I,N&&"".concat(I,"-disabled")),disabled:N,style:E?xi:{}},d),u.createElement("div",{className:"".concat($,"-view")},i),t&&u.createElement("button",{type:"button","aria-label":w.nextMonth,onClick:function(){return j(1)},tabIndex:-1,className:ce(_,P&&"".concat(_,"-disabled")),disabled:P,style:O?xi:{}},p),n&&u.createElement("button",{type:"button","aria-label":w.nextYear,onClick:function(){return B(1)},tabIndex:-1,className:ce(W,D&&"".concat(W,"-disabled")),disabled:D,style:O?xi:{}},m))}function Tl(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,a=e.generateConfig,i=e.pickerValue,l=e.onPickerValueChange,s=e.onModeChange,c=e.mode,d=c===void 0?"date":c,f=e.disabledDate,p=e.onSelect,v=e.onHover,h=e.showWeek,g="".concat(t,"-").concat(r,"-panel"),m="".concat(t,"-cell"),b=d==="week",x=aa(e,d),y=Q(x,2),w=y[0],C=y[1],S=a.locale.getWeekFirstDay(o.locale),$=a.setDate(i,1),k=wI(o.locale,a,$),E=a.getMonth(i),O=h===void 0?b:h,M=O?function(R){var A=f==null?void 0:f(R,{type:"week"});return u.createElement("td",{key:"week",className:ce(m,"".concat(m,"-week"),q({},"".concat(m,"-disabled"),A)),onClick:function(){A||p(R)},onMouseEnter:function(){A||(v==null||v(R))},onMouseLeave:function(){A||(v==null||v(null))}},u.createElement("div",{className:"".concat(m,"-inner")},a.locale.getWeek(o.locale,R)))}:null,N=[],T=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);M&&N.push(u.createElement("th",{key:"empty"},u.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var P=0;P<$s;P+=1)N.push(u.createElement("th",{key:P},T[(P+S)%$s]));var D=function(R,A){return a.addDate(R,A)},j=function(R){return gn(R,{locale:o,format:o.cellDateFormat,generateConfig:a})},B=function(R){var A=q(q({},"".concat(t,"-cell-in-view"),md(a,R,i)),"".concat(t,"-cell-today"),gd(a,R,C));return A},I=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),_=u.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){s("year",i)},tabIndex:-1,className:"".concat(t,"-year-btn")},gn(i,{locale:o,format:o.yearFormat,generateConfig:a})),L=u.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){s("month",i)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?gn(i,{locale:o,format:o.monthFormat,generateConfig:a}):I[E]),W=o.monthBeforeYear?[L,_]:[_,L];return u.createElement(ko.Provider,{value:w},u.createElement("div",{className:ce(g,h&&"".concat(g,"-show-week"))},u.createElement(ia,{offset:function(R){return a.addMonth(i,R)},superOffset:function(R){return a.addYear(i,R)},onChange:l,getStart:function(R){return a.setDate(R,1)},getEnd:function(R){var A=a.setDate(R,1);return A=a.addMonth(A,1),a.addDate(A,-1)}},W),u.createElement(ni,Te({titleFormat:o.fieldDateFormat},e,{colNum:$s,rowNum:6,baseDate:k,headerCells:N,getCellDate:D,getCellText:j,getCellClassName:B,prefixColumn:M,cellSelection:!b}))))}var RI=1/3;function DI(e,t){var n=u.useRef(!1),r=u.useRef(null),o=u.useRef(null),a=function(){return n.current},i=function(){ft.cancel(r.current),n.current=!1},l=u.useRef(),s=function(){var d=e.current;if(o.current=null,l.current=0,d){var f=d.querySelector('[data-value="'.concat(t,'"]')),p=d.querySelector("li"),v=function h(){i(),n.current=!0,l.current+=1;var g=d.scrollTop,m=p.offsetTop,b=f.offsetTop,x=b-m;if(b===0&&f!==p||!Cl(d)){l.current<=5&&(r.current=ft(h));return}var y=g+(x-g)*RI,w=Math.abs(x-y);if(o.current!==null&&o.current<w){i();return}if(o.current=w,w<=1){d.scrollTop=x,i();return}d.scrollTop=y,r.current=ft(h)};f&&p&&v()}},c=yt(s);return[c,i,a]}var AI=300;function TI(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function ba(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,a=e.onChange,i=e.onHover,l=e.onDblClick,s=e.changeOnScroll,c=Al(),d=c.prefixCls,f=c.cellRender,p=c.now,v=c.locale,h="".concat(d,"-time-panel"),g="".concat(d,"-time-panel-cell"),m=u.useRef(null),b=u.useRef(),x=function(){clearTimeout(b.current)},y=DI(m,n??r),w=Q(y,3),C=w[0],S=w[1],$=w[2];Et(function(){return C(),x(),function(){S(),x()}},[n,r,TI(t)]);var k=function(O){x();var M=O.target;!$()&&s&&(b.current=setTimeout(function(){var N=m.current,T=N.querySelector("li").offsetTop,P=Array.from(N.querySelectorAll("li")),D=P.map(function(L){return L.offsetTop-T}),j=D.map(function(L,W){return t[W].disabled?Number.MAX_SAFE_INTEGER:Math.abs(L-M.scrollTop)}),B=Math.min.apply(Math,$e(j)),I=j.findIndex(function(L){return L===B}),_=t[I];_&&!_.disabled&&a(_.value)},AI))},E="".concat(h,"-column");return u.createElement("ul",{className:E,ref:m,"data-type":o,onScroll:k},t.map(function(O){var M=O.label,N=O.value,T=O.disabled,P=u.createElement("div",{className:"".concat(g,"-inner")},M);return u.createElement("li",{key:N,className:ce(g,q(q({},"".concat(g,"-selected"),n===N),"".concat(g,"-disabled"),T)),onClick:function(){T||a(N)},onDoubleClick:function(){!T&&l&&l()},onMouseEnter:function(){i(N)},onMouseLeave:function(){i(null)},"data-value":N},f?f(N,{prefixCls:d,originNode:P,today:p,type:"time",subType:o,locale:v}):P)}))}function Dr(e){return e<12}function FI(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,a=e.use12Hours,i=e.changeOnScroll,l=Al(),s=l.prefixCls,c=l.values,d=l.generateConfig,f=l.locale,p=l.onSelect,v=l.onHover,h=v===void 0?function(){}:v,g=l.pickerValue,m=(c==null?void 0:c[0])||null,b=u.useContext(Vr),x=b.onCellDblClick,y=vd(d,e,m),w=Q(y,5),C=w[0],S=w[1],$=w[2],k=w[3],E=w[4],O=function(fe){var Ge=m&&d[fe](m),ot=g&&d[fe](g);return[Ge,ot]},M=O("getHour"),N=Q(M,2),T=N[0],P=N[1],D=O("getMinute"),j=Q(D,2),B=j[0],I=j[1],_=O("getSecond"),L=Q(_,2),W=L[0],R=L[1],A=O("getMillisecond"),F=Q(A,2),H=F[0],z=F[1],V=T===null?null:Dr(T)?"am":"pm",K=u.useMemo(function(){return a?Dr(T)?S.filter(function(fe){return Dr(fe.value)}):S.filter(function(fe){return!Dr(fe.value)}):S},[T,S,a]),J=function(fe,Ge){var ot,it=fe.filter(function(mt){return!mt.disabled});return Ge??(it==null||(ot=it[0])===null||ot===void 0?void 0:ot.value)},Y=J(S,T),Z=u.useMemo(function(){return $(Y)},[$,Y]),G=J(Z,B),X=u.useMemo(function(){return k(Y,G)},[k,Y,G]),ne=J(X,W),te=u.useMemo(function(){return E(Y,G,ne)},[E,Y,G,ne]),ee=J(te,H),se=u.useMemo(function(){if(!a)return[];var fe=d.getNow(),Ge=d.setHour(fe,6),ot=d.setHour(fe,18),it=function(mt,Re){var He=f.cellMeridiemFormat;return He?gn(mt,{generateConfig:d,locale:f,format:He}):Re};return[{label:it(Ge,"AM"),value:"am",disabled:S.every(function(mt){return mt.disabled||!Dr(mt.value)})},{label:it(ot,"PM"),value:"pm",disabled:S.every(function(mt){return mt.disabled||Dr(mt.value)})}]},[S,a,d,f]),de=function(fe){var Ge=C(fe);p(Ge)},ge=u.useMemo(function(){var fe=m||g||d.getNow(),Ge=function(ot){return ot!=null};return Ge(T)?(fe=d.setHour(fe,T),fe=d.setMinute(fe,B),fe=d.setSecond(fe,W),fe=d.setMillisecond(fe,H)):Ge(P)?(fe=d.setHour(fe,P),fe=d.setMinute(fe,I),fe=d.setSecond(fe,R),fe=d.setMillisecond(fe,z)):Ge(Y)&&(fe=d.setHour(fe,Y),fe=d.setMinute(fe,G),fe=d.setSecond(fe,ne),fe=d.setMillisecond(fe,ee)),fe},[m,g,T,B,W,H,Y,G,ne,ee,P,I,R,z,d]),ve=function(fe,Ge){return fe===null?null:d[Ge](ge,fe)},ue=function(fe){return ve(fe,"setHour")},we=function(fe){return ve(fe,"setMinute")},le=function(fe){return ve(fe,"setSecond")},pe=function(fe){return ve(fe,"setMillisecond")},Ne=function(fe){return fe===null?null:fe==="am"&&!Dr(T)?d.setHour(ge,T-12):fe==="pm"&&Dr(T)?d.setHour(ge,T+12):ge},re=function(fe){de(ue(fe))},ke=function(fe){de(we(fe))},Se=function(fe){de(le(fe))},Me=function(fe){de(pe(fe))},Pe=function(fe){de(Ne(fe))},be=function(fe){h(ue(fe))},ie=function(fe){h(we(fe))},ye=function(fe){h(le(fe))},xe=function(fe){h(pe(fe))},Ce=function(fe){h(Ne(fe))},De={onDblClick:x,changeOnScroll:i};return u.createElement("div",{className:"".concat(s,"-content")},t&&u.createElement(ba,Te({units:K,value:T,optionalValue:P,type:"hour",onChange:re,onHover:be},De)),n&&u.createElement(ba,Te({units:Z,value:B,optionalValue:I,type:"minute",onChange:ke,onHover:ie},De)),r&&u.createElement(ba,Te({units:X,value:W,optionalValue:R,type:"second",onChange:Se,onHover:ye},De)),o&&u.createElement(ba,Te({units:te,value:H,optionalValue:z,type:"millisecond",onChange:Me,onHover:xe},De)),a&&u.createElement(ba,Te({units:se,value:V,type:"meridiem",onChange:Pe,onHover:Ce},De)))}function I0(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,a=e.showTime,i=a||{},l=i.format,s="".concat(t,"-time-panel"),c=aa(e,"time"),d=Q(c,1),f=d[0];return u.createElement(ko.Provider,{value:f},u.createElement("div",{className:ce(s)},u.createElement(ia,null,n?gn(n,{locale:r,format:l,generateConfig:o}):"\xA0"),u.createElement(FI,a)))}function HI(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,a=e.value,i=e.pickerValue,l=e.onHover,s="".concat(t,"-datetime-panel"),c=vd(n,r),d=Q(c,1),f=d[0],p=function(g){return a?Ji(n,g,a):Ji(n,g,i)},v=function(g){l==null||l(g&&p(g))},h=function(g){var m=p(g);o(f(m,m))};return u.createElement("div",{className:s},u.createElement(Tl,Te({},e,{onSelect:h,onHover:v})),u.createElement(I0,e))}function BI(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l="".concat(t,"-decade-panel"),s=aa(e,"decade"),c=Q(s,1),d=c[0],f=function(C){var S=Math.floor(r.getYear(C)/100)*100;return r.setYear(C,S)},p=function(C){var S=f(C);return r.addYear(S,99)},v=f(o),h=p(o),g=r.addYear(v,-10),m=function(C,S){return r.addYear(C,S*10)},b=function(C){var S=n.cellYearFormat,$=gn(C,{locale:n,format:S,generateConfig:r}),k=gn(r.addYear(C,9),{locale:n,format:S,generateConfig:r});return"".concat($,"-").concat(k)},x=function(C){return q({},"".concat(t,"-cell-in-view"),Zc(r,C,v)||Zc(r,C,h)||Dl(r,v,h,C))},y=a?function(C,S){var $=r.setDate(C,1),k=r.setMonth($,0),E=r.setYear(k,Math.floor(r.getYear(k)/10)*10),O=r.addYear(E,10),M=r.addDate(O,-1);return a(E,S)&&a(M,S)}:null,w="".concat(gn(v,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(gn(h,{locale:n,format:n.yearFormat,generateConfig:r}));return u.createElement(ko.Provider,{value:d},u.createElement("div",{className:l},u.createElement(ia,{superOffset:function(C){return r.addYear(o,C*100)},onChange:i,getStart:f,getEnd:p},w),u.createElement(ni,Te({},e,{disabledDate:y,colNum:3,rowNum:4,baseDate:g,getCellDate:m,getCellText:b,getCellClassName:x}))))}function zI(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-month-panel"),c=aa(e,"month"),d=Q(c,1),f=d[0],p=r.setMonth(o,0),v=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),h=function(y,w){return r.addMonth(y,w)},g=function(y){var w=r.getMonth(y);return n.monthFormat?gn(y,{locale:n,format:n.monthFormat,generateConfig:r}):v[w]},m=function(){return q({},"".concat(t,"-cell-in-view"),!0)},b=a?function(y,w){var C=r.setDate(y,1),S=r.setMonth(C,r.getMonth(C)+1),$=r.addDate(S,-1);return a(C,w)&&a($,w)}:null,x=u.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},gn(o,{locale:n,format:n.yearFormat,generateConfig:r}));return u.createElement(ko.Provider,{value:f},u.createElement("div",{className:s},u.createElement(ia,{superOffset:function(y){return r.addYear(o,y)},onChange:i,getStart:function(y){return r.setMonth(y,0)},getEnd:function(y){return r.setMonth(y,11)}},x),u.createElement(ni,Te({},e,{disabledDate:b,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:h,getCellText:g,getCellClassName:m}))))}function _I(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,i=e.onModeChange,l="".concat(t,"-quarter-panel"),s=aa(e,"quarter"),c=Q(s,1),d=c[0],f=r.setMonth(o,0),p=function(m,b){return r.addMonth(m,b*3)},v=function(m){return gn(m,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},h=function(){return q({},"".concat(t,"-cell-in-view"),!0)},g=u.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},gn(o,{locale:n,format:n.yearFormat,generateConfig:r}));return u.createElement(ko.Provider,{value:d},u.createElement("div",{className:l},u.createElement(ia,{superOffset:function(m){return r.addYear(o,m)},onChange:a,getStart:function(m){return r.setMonth(m,0)},getEnd:function(m){return r.setMonth(m,11)}},g),u.createElement(ni,Te({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:p,getCellText:v,getCellClassName:h}))))}function LI(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.hoverValue,i=e.hoverRangeValue,l=r.locale,s="".concat(t,"-week-panel-row"),c=function(d){var f={};if(i){var p=Q(i,2),v=p[0],h=p[1],g=Ca(n,l,v,d),m=Ca(n,l,h,d);f["".concat(s,"-range-start")]=g,f["".concat(s,"-range-end")]=m,f["".concat(s,"-range-hover")]=!g&&!m&&Dl(n,v,h,d)}return a&&(f["".concat(s,"-hover")]=a.some(function(b){return Ca(n,l,d,b)})),ce(s,q({},"".concat(s,"-selected"),!i&&Ca(n,l,o,d)),f)};return u.createElement(Tl,Te({},e,{mode:"week",panelName:"week",rowClassName:c}))}function WI(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-year-panel"),c=aa(e,"year"),d=Q(c,1),f=d[0],p=function(S){var $=Math.floor(r.getYear(S)/10)*10;return r.setYear(S,$)},v=function(S){var $=p(S);return r.addYear($,9)},h=p(o),g=v(o),m=r.addYear(h,-1),b=function(S,$){return r.addYear(S,$)},x=function(S){return gn(S,{locale:n,format:n.cellYearFormat,generateConfig:r})},y=function(S){return q({},"".concat(t,"-cell-in-view"),vo(r,S,h)||vo(r,S,g)||Dl(r,h,g,S))},w=a?function(S,$){var k=r.setMonth(S,0),E=r.setDate(k,1),O=r.addYear(E,1),M=r.addDate(O,-1);return a(E,$)&&a(M,$)}:null,C=u.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){l("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},gn(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-",gn(g,{locale:n,format:n.yearFormat,generateConfig:r}));return u.createElement(ko.Provider,{value:f},u.createElement("div",{className:s},u.createElement(ia,{superOffset:function(S){return r.addYear(o,S*10)},onChange:i,getStart:p,getEnd:v},C),u.createElement(ni,Te({},e,{disabledDate:w,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:b,getCellText:x,getCellClassName:y}))))}var VI={date:Tl,datetime:HI,week:LI,month:zI,quarter:_I,year:WI,decade:BI,time:I0};function KI(e,t){var n,r=e.locale,o=e.generateConfig,a=e.direction,i=e.prefixCls,l=e.tabIndex,s=l===void 0?0:l,c=e.multiple,d=e.defaultValue,f=e.value,p=e.onChange,v=e.onSelect,h=e.defaultPickerValue,g=e.pickerValue,m=e.onPickerValueChange,b=e.mode,x=e.onPanelChange,y=e.picker,w=y===void 0?"date":y,C=e.showTime,S=e.hoverValue,$=e.hoverRangeValue,k=e.cellRender,E=e.dateRender,O=e.monthCellRender,M=e.components,N=M===void 0?{}:M,T=e.hideHeader,P=((n=u.useContext(pr))===null||n===void 0?void 0:n.prefixCls)||i||"rc-picker",D=u.useRef();u.useImperativeHandle(t,function(){return{nativeElement:D.current}});var j=p0(e),B=Q(j,4),I=B[0],_=B[1],L=B[2],W=B[3],R=u0(r,_),A=w==="date"&&C?"datetime":w,F=u.useMemo(function(){return m0(A,L,W,I,R)},[A,L,W,I,R]),H=o.getNow(),z=Jt(w,{value:b,postState:function(xe){return xe||"date"}}),V=Q(z,2),K=V[0],J=V[1],Y=K==="date"&&F?"datetime":K,Z=M0(o,r,A),G=Jt(d,{value:f}),X=Q(G,2),ne=X[0],te=X[1],ee=u.useMemo(function(){var xe=$o(ne).filter(function(Ce){return Ce});return c?xe:xe.slice(0,1)},[ne,c]),se=yt(function(xe){te(xe),p&&(xe===null||ee.length!==xe.length||ee.some(function(Ce,De){return!Nn(o,r,Ce,xe[De],A)}))&&(p==null||p(c?xe:xe[0]))}),de=yt(function(xe){if(v==null||v(xe),K===w){var Ce=c?Z(ee,xe):[xe];se(Ce)}}),ge=Jt(h||ee[0]||H,{value:g}),ve=Q(ge,2),ue=ve[0],we=ve[1];u.useEffect(function(){ee[0]&&!g&&we(ee[0])},[ee[0]]);var le=function(xe,Ce){x==null||x(xe||g,Ce||K)},pe=function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;we(xe),m==null||m(xe),Ce&&le(xe)},Ne=function(xe,Ce){J(xe),Ce&&pe(Ce),le(Ce,xe)},re=function(xe){if(de(xe),pe(xe),K!==w){var Ce=["decade","year"],De=[].concat(Ce,["month"]),fe={quarter:[].concat(Ce,["quarter"]),week:[].concat($e(De),["week"]),date:[].concat($e(De),["date"])},Ge=fe[w]||De,ot=Ge.indexOf(K),it=Ge[ot+1];it&&Ne(it,xe)}},ke=u.useMemo(function(){var xe,Ce;if(Array.isArray($)){var De=Q($,2);xe=De[0],Ce=De[1]}else xe=$;return!xe&&!Ce?null:(xe=xe||Ce,Ce=Ce||xe,o.isAfter(xe,Ce)?[Ce,xe]:[xe,Ce])},[$,o]),Se=pd(k,E,O),Me=N[Y]||VI[Y]||Tl,Pe=u.useContext(Vr),be=u.useMemo(function(){return U(U({},Pe),{},{hideHeader:T})},[Pe,T]),ie="".concat(P,"-panel"),ye=Rl(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return u.createElement(Vr.Provider,{value:be},u.createElement("div",{ref:D,tabIndex:s,className:ce(ie,q({},"".concat(ie,"-rtl"),a==="rtl"))},u.createElement(Me,Te({},ye,{showTime:F,prefixCls:P,locale:R,generateConfig:o,onModeChange:Ne,pickerValue:ue,onPickerValueChange:function(xe){pe(xe,!0)},value:ee[0],onSelect:re,values:ee,cellRender:Se,hoverRangeValue:ke,hoverValue:S}))))}var Os=u.memo(u.forwardRef(KI));function qI(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,l=e.range,s=e.hoverValue,c=u.useContext(pr),d=c.prefixCls,f=c.generateConfig,p=u.useCallback(function(x,y){return wa(f,t,x,y)},[f,t]),v=u.useMemo(function(){return p(r,1)},[r,p]),h=function(x){o(p(x,-1))},g={onCellDblClick:function(){a&&i()}},m=t==="time",b=U(U({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return l?b.hoverRangeValue=s:b.hoverValue=s,n?u.createElement("div",{className:"".concat(d,"-panels")},u.createElement(Vr.Provider,{value:U(U({},g),{},{hideNext:!0})},u.createElement(Os,b)),u.createElement(Vr.Provider,{value:U(U({},g),{},{hidePrev:!0})},u.createElement(Os,Te({},b,{pickerValue:v,onPickerValueChange:h})))):u.createElement(Vr.Provider,{value:U({},g)},u.createElement(Os,b))}function gm(e){return typeof e=="function"?e():e}function YI(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?u.createElement("div",{className:"".concat(t,"-presets")},u.createElement("ul",null,n.map(function(a,i){var l=a.label,s=a.value;return u.createElement("li",{key:i,onClick:function(){r(gm(s))},onMouseEnter:function(){o(gm(s))},onMouseLeave:function(){o(null)}},l)}))):null}function j0(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,l=e.activeInfo,s=l===void 0?[0,0,0]:l,c=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,p=e.onFocus,v=e.onBlur,h=e.onPanelMouseDown,g=e.direction,m=e.value,b=e.onSelect,x=e.isInvalid,y=e.defaultOpenValue,w=e.onOk,C=e.onSubmit,S=u.useContext(pr),$=S.prefixCls,k="".concat($,"-panel"),E=g==="rtl",O=u.useRef(null),M=u.useRef(null),N=u.useState(0),T=Q(N,2),P=T[0],D=T[1],j=u.useState(0),B=Q(j,2),I=B[0],_=B[1],L=u.useState(0),W=Q(L,2),R=W[0],A=W[1],F=function(Ne){Ne.width&&D(Ne.width)},H=Q(s,3),z=H[0],V=H[1],K=H[2],J=u.useState(0),Y=Q(J,2),Z=Y[0],G=Y[1];u.useEffect(function(){G(10)},[z]),u.useEffect(function(){if(a&&M.current){var Ne,re=((Ne=O.current)===null||Ne===void 0?void 0:Ne.offsetWidth)||0,ke=M.current.getBoundingClientRect();if(!ke.height||ke.right<0){G(function(be){return Math.max(0,be-1)});return}var Se=(E?V-re:z)-ke.left;if(A(Se),P&&P<K){var Me=E?ke.right-(V-re+P):z+re-ke.left-P,Pe=Math.max(0,Me);_(Pe)}else _(0)}},[Z,E,P,z,V,K,a]);function X(Ne){return Ne.filter(function(re){return re})}var ne=u.useMemo(function(){return X($o(m))},[m]),te=r==="time"&&!ne.length,ee=u.useMemo(function(){return te?X([y]):ne},[te,ne,y]),se=te?y:ne,de=u.useMemo(function(){return ee.length?ee.some(function(Ne){return x(Ne)}):!0},[ee,x]),ge=function(){te&&b(y),w(),C()},ve=u.createElement("div",{className:"".concat($,"-panel-layout")},u.createElement(YI,{prefixCls:$,presets:c,onClick:f,onHover:d}),u.createElement("div",null,u.createElement(qI,Te({},e,{value:se})),u.createElement(PI,Te({},e,{showNow:i?!1:o,invalid:de,onSubmit:ge}))));t&&(ve=t(ve));var ue="".concat(k,"-container"),we="marginLeft",le="marginRight",pe=u.createElement("div",{onMouseDown:h,tabIndex:-1,className:ce(ue,"".concat($,"-").concat(n,"-panel-container")),style:q(q({},E?le:we,I),E?we:le,"auto"),onFocus:p,onBlur:v},ve);return a&&(pe=u.createElement("div",{onMouseDown:h,ref:M,className:ce("".concat($,"-range-wrapper"),"".concat($,"-").concat(r,"-range-wrapper"))},u.createElement("div",{ref:O,className:"".concat($,"-range-arrow"),style:{left:R}}),u.createElement(wr,{onResize:F},pe))),pe}function P0(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,l=e.inputReadOnly,s=e.required,c=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,v=e.onInputChange,h=e.onInvalid,g=e.open,m=e.onOpenChange,b=e.onKeyDown,x=e.onChange,y=e.activeHelp,w=e.name,C=e.autoComplete,S=e.id,$=e.value,k=e.invalid,E=e.placeholder,O=e.disabled,M=e.activeIndex,N=e.allHelp,T=e.picker,P=function(W,R){var A=o.locale.parse(a.locale,W,[R]);return A&&o.isValidate(A)?A:null},D=n[0],j=u.useCallback(function(W){return gn(W,{locale:a,format:D,generateConfig:o})},[a,o,D]),B=u.useMemo(function(){return $.map(j)},[$,j]),I=u.useMemo(function(){var W=T==="time"?8:10,R=typeof D=="function"?D(o.getNow()).length:D.length;return Math.max(W,R)+2},[D,T,o]),_=function(W){for(var R=0;R<n.length;R+=1){var A=n[R];if(typeof A=="string"){var F=P(W,A);if(F)return F}}return!1},L=function(W){function R(H){return W!==void 0?H[W]:H}var A=ur(e,{aria:!0,data:!0}),F=U(U({},A),{},{format:r,validateFormat:function(H){return!!_(H)},preserveInvalidOnBlur:i,readOnly:l,required:s,"aria-required":c,name:w,autoComplete:C,size:I,id:R(S),value:R(B)||"",invalid:R(k),placeholder:R(E),active:M===W,helped:N||y&&M===W,disabled:R(O),onFocus:function(H){f(H,W)},onBlur:function(H){p(H,W)},onSubmit:d,onChange:function(H){v();var z=_(H);if(z){h(!1,W),x(z,W);return}h(!!H,W)},onHelp:function(){m(!0,{index:W})},onKeyDown:function(H){var z=!1;if(b==null||b(H,function(){z=!0}),!H.defaultPrevented&&!z)switch(H.key){case"Escape":m(!1,{index:W});break;case"Enter":g||m(!0);break}}},t==null?void 0:t({valueTexts:B}));return Object.keys(F).forEach(function(H){F[H]===void 0&&delete F[H]}),F};return[L,j]}var XI=["onMouseEnter","onMouseLeave"];function R0(e){return u.useMemo(function(){return Rl(e,XI)},[e])}var UI=["icon","type"],GI=["onClear"];function Fl(e){var t=e.icon,n=e.type,r=pt(e,UI),o=u.useContext(pr),a=o.prefixCls;return t?u.createElement("span",Te({className:"".concat(a,"-").concat(n)},r),t):null}function Jc(e){var t=e.onClear,n=pt(e,GI);return u.createElement(Fl,Te({},n,{type:"clear",role:"button",onMouseDown:function(r){r.preventDefault()},onClick:function(r){r.stopPropagation(),t()}}))}var Ns=["YYYY","MM","DD","HH","mm","ss","SSS"],hm="\u9867",QI=(function(){function e(t){tn(this,e),q(this,"format",void 0),q(this,"maskFormat",void 0),q(this,"cells",void 0),q(this,"maskCells",void 0),this.format=t;var n=Ns.map(function(l){return"(".concat(l,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(l){return hm.repeat(l.length)});var o=new RegExp("(".concat(Ns.join("|"),")")),a=(t.split(o)||[]).filter(function(l){return l}),i=0;this.cells=a.map(function(l){var s=Ns.includes(l),c=i,d=i+l.length;return i=d,{text:l,mask:s,start:c,end:d}}),this.maskCells=this.cells.filter(function(l){return l.mask})}return nn(e,[{key:"getSelection",value:function(t){var n=this.maskCells[t]||{},r=n.start,o=n.end;return[r||0,o||0]}},{key:"match",value:function(t){for(var n=0;n<this.maskFormat.length;n+=1){var r=this.maskFormat[n],o=t[n];if(!o||r!==hm&&r!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(t){for(var n=Number.MAX_SAFE_INTEGER,r=0,o=0;o<this.maskCells.length;o+=1){var a=this.maskCells[o],i=a.start,l=a.end;if(t>=i&&t<=l)return o;var s=Math.min(Math.abs(t-i),Math.abs(t-l));s<n&&(n=s,r=o)}return r}}]),e})();function ZI(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var JI=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],eu=u.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,a=e.suffixIcon,i=e.format,l=e.validateFormat,s=e.onChange,c=e.helped,d=e.onHelp,f=e.onSubmit,p=e.onKeyDown,v=e.preserveInvalidOnBlur,h=v===void 0?!1:v,g=e.invalid,m=e.clearIcon,b=pt(e,JI),x=e.value,y=e.onFocus,w=e.onBlur,C=e.onMouseUp,S=u.useContext(pr),$=S.prefixCls,k=S.input,E=k===void 0?"input":k,O="".concat($,"-input"),M=u.useState(!1),N=Q(M,2),T=N[0],P=N[1],D=u.useState(x),j=Q(D,2),B=j[0],I=j[1],_=u.useState(""),L=Q(_,2),W=L[0],R=L[1],A=u.useState(null),F=Q(A,2),H=F[0],z=F[1],V=u.useState(null),K=Q(V,2),J=K[0],Y=K[1],Z=B||"";u.useEffect(function(){I(x)},[x]);var G=u.useRef(),X=u.useRef();u.useImperativeHandle(t,function(){return{nativeElement:G.current,inputElement:X.current,focus:function(ye){X.current.focus(ye)},blur:function(){X.current.blur()}}});var ne=u.useMemo(function(){return new QI(i||"")},[i]),te=u.useMemo(function(){return c?[0,0]:ne.getSelection(H)},[ne,H,c]),ee=Q(te,2),se=ee[0],de=ee[1],ge=function(ye){ye&&ye!==i&&ye!==x&&d()},ve=yt(function(ye){l(ye)&&s(ye),I(ye),ge(ye)}),ue=function(ye){if(!i){var xe=ye.target.value;ge(xe),I(xe),s(xe)}},we=function(ye){var xe=ye.clipboardData.getData("text");l(xe)&&ve(xe)},le=u.useRef(!1),pe=function(){le.current=!0},Ne=function(ye){var xe=ye.target,Ce=xe.selectionStart,De=ne.getMaskCellIndex(Ce);z(De),Y({}),C==null||C(ye),le.current=!1},re=function(ye){P(!0),z(0),R(""),y(ye)},ke=function(ye){w(ye)},Se=function(ye){P(!1),ke(ye)};hd(n,function(){!n&&!h&&I(x)});var Me=function(ye){ye.key==="Enter"&&l(Z)&&f(),p==null||p(ye)},Pe=function(ye){Me(ye);var xe=ye.key,Ce=null,De=null,fe=de-se,Ge=i.slice(se,de),ot=function(Re){z(function(He){var Ae=He+Re;return Ae=Math.max(Ae,0),Ae=Math.min(Ae,ne.size()-1),Ae})},it=function(Re){var He=ZI(Ge),Ae=Q(He,3),Ye=Ae[0],Xe=Ae[1],st=Ae[2],ut=Z.slice(se,de),Ve=Number(ut);if(isNaN(Ve))return String(st||(Re>0?Ye:Xe));var nt=Ve+Re,ct=Xe-Ye+1;return String(Ye+(ct+nt-Ye)%ct)};switch(xe){case"Backspace":case"Delete":Ce="",De=Ge;break;case"ArrowLeft":Ce="",ot(-1);break;case"ArrowRight":Ce="",ot(1);break;case"ArrowUp":Ce="",De=it(1);break;case"ArrowDown":Ce="",De=it(-1);break;default:isNaN(Number(xe))||(Ce=W+xe,De=Ce);break}if(Ce!==null&&(R(Ce),Ce.length>=fe&&(ot(1),R(""))),De!==null){var mt=Z.slice(0,se)+fd(De,fe)+Z.slice(de);ve(mt.slice(0,i.length))}Y({})},be=u.useRef();Et(function(){if(!(!T||!i||le.current)){if(!ne.match(Z)){ve(i);return}return X.current.setSelectionRange(se,de),be.current=ft(function(){X.current.setSelectionRange(se,de)}),function(){ft.cancel(be.current)}}},[ne,i,T,Z,H,se,de,J,ve]);var ie=i?{onFocus:re,onBlur:Se,onKeyDown:Pe,onMouseDown:pe,onMouseUp:Ne,onPaste:we}:{};return u.createElement("div",{ref:G,className:ce(O,q(q({},"".concat(O,"-active"),n&&o),"".concat(O,"-placeholder"),c))},u.createElement(E,Te({ref:X,"aria-invalid":g,autoComplete:"off"},b,{onKeyDown:Me,onBlur:ke},ie,{value:Z,onChange:ue})),u.createElement(Fl,{type:"suffix",icon:a}),m)}),ej=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],tj=["index"];function nj(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.separator,l=i===void 0?"~":i,s=e.activeIndex,c=e.focused,d=e.placeholder,f=e.className,p=e.style,v=e.onClick,h=e.onClear,g=e.value,m=e.disabled,b=e.invalid,x=e.direction,y=e.onActiveInfo,w=e.onMouseDown,C=e.autoFocus,S=e.tabIndex,$=pt(e,ej),k=x==="rtl",E=u.useContext(pr),O=E.prefixCls,M=u.useMemo(function(){if(typeof n=="string")return[n];var J=n||{};return[J.start,J.end]},[n]),N=u.useRef(),T=u.useRef(),P=u.useRef(),D=function(J){var Y;return(Y=[T,P][J])===null||Y===void 0?void 0:Y.current};u.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(J){if(Ze(J)==="object"){var Y,Z=J||{},G=Z.index,X=G===void 0?0:G,ne=pt(Z,tj);(Y=D(X))===null||Y===void 0||Y.focus(ne)}else{var te;(te=D(J??0))===null||te===void 0||te.focus()}},blur:function(){var J,Y;(J=D(0))===null||J===void 0||J.blur(),(Y=D(1))===null||Y===void 0||Y.blur()}}});var j=R0($),B=u.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),I=P0(U(U({},e),{},{id:M,placeholder:B})),_=Q(I,1),L=_[0],W=u.useState({position:"absolute",width:0}),R=Q(W,2),A=R[0],F=R[1],H=yt(function(){var J=D(s);if(J){var Y=J.nativeElement.getBoundingClientRect(),Z=N.current.getBoundingClientRect(),G=Y.left-Z.left;F(function(X){return U(U({},X),{},{width:Y.width,left:G})}),y([Y.left,Y.right,Z.width])}});u.useEffect(function(){H()},[s]);var z=o&&(g[0]&&!m[0]||g[1]&&!m[1]),V=C&&!m[0],K=C&&!V&&!m[1];return u.createElement(wr,{onResize:H},u.createElement("div",Te({},j,{className:ce(O,"".concat(O,"-range"),q(q(q(q({},"".concat(O,"-focused"),c),"".concat(O,"-disabled"),m.every(function(J){return J})),"".concat(O,"-invalid"),b.some(function(J){return J})),"".concat(O,"-rtl"),k),f),style:p,ref:N,onClick:v,onMouseDown:function(J){var Y=J.target;Y!==T.current.inputElement&&Y!==P.current.inputElement&&J.preventDefault(),w==null||w(J)}}),r&&u.createElement("div",{className:"".concat(O,"-prefix")},r),u.createElement(eu,Te({ref:T},L(0),{autoFocus:V,tabIndex:S,"date-range":"start"})),u.createElement("div",{className:"".concat(O,"-range-separator")},l),u.createElement(eu,Te({ref:P},L(1),{autoFocus:K,tabIndex:S,"date-range":"end"})),u.createElement("div",{className:"".concat(O,"-active-bar"),style:A}),u.createElement(Fl,{type:"suffix",icon:a}),z&&u.createElement(Jc,{icon:o,onClear:h})))}var rj=u.forwardRef(nj);function vm(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Ci(e){return e===1?"end":"start"}function oj(e,t){var n=v0(e,function(){var tt=e.disabled,lt=e.allowEmpty,Vt=vm(tt,!1),qt=vm(lt,!1);return{disabled:Vt,allowEmpty:qt}}),r=Q(n,6),o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],c=r[5],d=o.prefixCls,f=o.styles,p=o.classNames,v=o.defaultValue,h=o.value,g=o.needConfirm,m=o.onKeyDown,b=o.disabled,x=o.allowEmpty,y=o.disabledDate,w=o.minDate,C=o.maxDate,S=o.defaultOpen,$=o.open,k=o.onOpenChange,E=o.locale,O=o.generateConfig,M=o.picker,N=o.showNow,T=o.showToday,P=o.showTime,D=o.mode,j=o.onPanelChange,B=o.onCalendarChange,I=o.onOk,_=o.defaultPickerValue,L=o.pickerValue,W=o.onPickerValueChange,R=o.inputReadOnly,A=o.suffixIcon,F=o.onFocus,H=o.onBlur,z=o.presets,V=o.ranges,K=o.components,J=o.cellRender,Y=o.dateRender,Z=o.monthCellRender,G=o.onClick,X=y0(t),ne=b0($,S,b,k),te=Q(ne,2),ee=te[0],se=te[1],de=function(tt,lt){(b.some(function(Vt){return!Vt})||!tt)&&se(tt,lt)},ge=k0(O,E,l,!0,!1,v,h,B,I),ve=Q(ge,5),ue=ve[0],we=ve[1],le=ve[2],pe=ve[3],Ne=ve[4],re=le(),ke=C0(b,x,ee),Se=Q(ke,9),Me=Se[0],Pe=Se[1],be=Se[2],ie=Se[3],ye=Se[4],xe=Se[5],Ce=Se[6],De=Se[7],fe=Se[8],Ge=function(tt,lt){Pe(!0),F==null||F(tt,{range:Ci(lt??ie)})},ot=function(tt,lt){Pe(!1),H==null||H(tt,{range:Ci(lt??ie)})},it=u.useMemo(function(){if(!P)return null;var tt=P.disabledTime,lt=tt?function(Vt){var qt=Ci(ie),fn=i0(re,Ce,ie);return tt(Vt,qt,{from:fn})}:void 0;return U(U({},P),{},{disabledTime:lt})},[P,ie,re,Ce]),mt=Jt([M,M],{value:D}),Re=Q(mt,2),He=Re[0],Ae=Re[1],Ye=He[ie]||M,Xe=Ye==="date"&&it?"datetime":Ye,st=Xe===M&&Xe!=="time",ut=N0(M,Ye,N,T,!0),Ve=O0(o,ue,we,le,pe,b,l,Me,ee,c),nt=Q(Ve,2),ct=nt[0],je=nt[1],Ee=NI(re,b,Ce,O,E,y),he=s0(re,c,x),Oe=Q(he,2),We=Oe[0],Je=Oe[1],at=w0(O,E,re,He,ee,ie,a,st,_,L,it==null?void 0:it.defaultOpenValue,W,w,C),gt=Q(at,2),bt=gt[0],dt=gt[1],Rt=yt(function(tt,lt,Vt){var qt=Na(He,ie,lt);if((qt[0]!==He[0]||qt[1]!==He[1])&&Ae(qt),j&&Vt!==!1){var fn=$e(re);tt&&(fn[ie]=tt),j(fn,qt)}}),Mt=function(tt,lt){return Na(re,lt,tt)},ht=function(tt,lt){var Vt=re;tt&&(Vt=Mt(tt,ie)),De(ie);var qt=xe(Vt);pe(Vt),ct(ie,qt===null),qt===null?de(!1,{force:!0}):lt||X.current.focus({index:qt})},Tt=function(tt){var lt,Vt=tt.target.getRootNode();if(!X.current.nativeElement.contains((lt=Vt.activeElement)!==null&<!==void 0?lt:document.activeElement)){var qt=b.findIndex(function(fn){return!fn});qt>=0&&X.current.focus({index:qt})}de(!0),G==null||G(tt)},Ft=function(){je(null),de(!1,{force:!0})},rn=u.useState(null),Ie=Q(rn,2),_e=Ie[0],Fe=Ie[1],Be=u.useState(null),Le=Q(Be,2),Dt=Le[0],St=Le[1],Yt=u.useMemo(function(){return Dt||re},[re,Dt]);u.useEffect(function(){ee||St(null)},[ee]);var Qt=u.useState([0,0,0]),Bt=Q(Qt,2),zt=Bt[0],dn=Bt[1],Xt=x0(z,V),Sn=function(tt){St(tt),Fe("preset")},$n=function(tt){var lt=je(tt);lt&&de(!1,{force:!0})},wn=function(tt){ht(tt)},Pn=function(tt){St(tt?Mt(tt,ie):null),Fe("cell")},Rn=function(tt){de(!0),Ge(tt)},Dn=function(){be("panel")},Yn=function(tt){var lt=Na(re,ie,tt);pe(lt),!g&&!i&&a===Xe&&ht(tt)},ar=function(){de(!1)},et=pd(J,Y,Z,Ci(ie)),jt=re[ie]||null,Ut=yt(function(tt){return c(tt,{activeIndex:ie})}),ze=u.useMemo(function(){var tt=ur(o,!1),lt=Er(o,[].concat($e(Object.keys(tt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return lt},[o]),vt=u.createElement(j0,Te({},ze,{showNow:ut,showTime:it,range:!0,multiplePanel:st,activeInfo:zt,disabledDate:Ee,onFocus:Rn,onBlur:ot,onPanelMouseDown:Dn,picker:M,mode:Ye,internalMode:Xe,onPanelChange:Rt,format:s,value:jt,isInvalid:Ut,onChange:null,onSelect:Yn,pickerValue:bt,defaultOpenValue:$o(P==null?void 0:P.defaultOpenValue)[ie],onPickerValueChange:dt,hoverValue:Yt,onHover:Pn,needConfirm:g,onSubmit:ht,onOk:Ne,presets:Xt,onPresetHover:Sn,onPresetSubmit:$n,onNow:wn,cellRender:et})),Kt=function(tt,lt){var Vt=Mt(tt,lt);pe(Vt)},on=function(){be("input")},Bn=function(tt,lt){var Vt=Ce.length,qt=Ce[Vt-1];if(Vt&&qt!==lt&&g&&!x[qt]&&!fe(qt)&&re[qt]){X.current.focus({index:qt});return}be("input"),de(!0,{inherit:!0}),ie!==lt&&ee&&!g&&i&&ht(null,!0),ye(lt),Ge(tt,lt)},zn=function(tt,lt){if(de(!1),!g&&be()==="input"){var Vt=xe(re);ct(ie,Vt===null)}ot(tt,lt)},_n=function(tt,lt){tt.key==="Tab"&&ht(null,!0),m==null||m(tt,lt)},mr=u.useMemo(function(){return{prefixCls:d,locale:E,generateConfig:O,button:K.button,input:K.input}},[d,E,O,K.button,K.input]);return Et(function(){ee&&ie!==void 0&&Rt(null,M,!1)},[ee,ie,M]),Et(function(){var tt=be();!ee&&tt==="input"&&(de(!1),ht(null,!0)),!ee&&i&&!g&&tt==="panel"&&(de(!0),ht())},[ee]),u.createElement(pr.Provider,{value:mr},u.createElement(o0,Te({},l0(o),{popupElement:vt,popupStyle:f.popup,popupClassName:p.popup,visible:ee,onClose:ar,range:!0}),u.createElement(rj,Te({},o,{ref:X,suffixIcon:A,activeIndex:Me||ee?ie:null,activeHelp:!!Dt,allHelp:!!Dt&&_e==="preset",focused:Me,onFocus:Bn,onBlur:zn,onKeyDown:_n,onSubmit:ht,value:Yt,maskFormat:s,onChange:Kt,onInputChange:on,format:l,inputReadOnly:R,disabled:b,open:ee,onOpenChange:de,onClick:Tt,onClear:Ft,invalid:We,onInvalid:Je,onActiveInfo:dn}))))}var aj=u.forwardRef(oj);function ij(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=o===void 0?"\xD7":o,i=e.formatDate,l=e.disabled,s=e.maxTagCount,c=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function v(m,b){return u.createElement("span",{className:ce("".concat(f,"-item")),title:typeof m=="string"?m:null},u.createElement("span",{className:"".concat(f,"-item-content")},m),!l&&b&&u.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:b,className:"".concat(f,"-item-remove")},a))}function h(m){var b=i(m),x=function(y){y&&y.stopPropagation(),r(m)};return v(b,x)}function g(m){var b="+ ".concat(m.length," ...");return v(b)}return u.createElement("div",{className:d},u.createElement(ra,{prefixCls:p,data:n,renderItem:h,renderRest:g,itemKey:function(m){return i(m)},maxCount:s}),!n.length&&u.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var lj=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function sj(e,t){var n=e.open,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.focused,l=e.locale,s=e.generateConfig,c=e.placeholder,d=e.className,f=e.style,p=e.onClick,v=e.onClear,h=e.internalPicker,g=e.value,m=e.onChange,b=e.onSubmit,x=e.multiple,y=e.maxTagCount,w=e.disabled,C=e.invalid,S=e.direction,$=e.onMouseDown,k=e.autoFocus,E=e.tabIndex,O=e.removeIcon,M=pt(e,lj),N=S==="rtl",T=u.useContext(pr),P=T.prefixCls,D=u.useRef(),j=u.useRef();u.useImperativeHandle(t,function(){return{nativeElement:D.current,focus:function(z){var V;(V=j.current)===null||V===void 0||V.focus(z)},blur:function(){var z;(z=j.current)===null||z===void 0||z.blur()}}});var B=R0(M),I=function(z){m([z])},_=function(z){var V=g.filter(function(K){return K&&!Nn(s,l,K,z,h)});m(V),n||b()},L=P0(U(U({},e),{},{onChange:I}),function(z){var V=z.valueTexts;return{value:V[0]||"",active:i}}),W=Q(L,2),R=W[0],A=W[1],F=!!(o&&g.length&&!w),H=x?u.createElement(u.Fragment,null,u.createElement(ij,{prefixCls:P,value:g,onRemove:_,formatDate:A,maxTagCount:y,disabled:w,removeIcon:O,placeholder:c}),u.createElement("input",{className:"".concat(P,"-multiple-input"),value:g.map(A).join(","),ref:j,readOnly:!0,autoFocus:k,tabIndex:E}),u.createElement(Fl,{type:"suffix",icon:a}),F&&u.createElement(Jc,{icon:o,onClear:v})):u.createElement(eu,Te({ref:j},R(),{autoFocus:k,tabIndex:E,suffixIcon:a,clearIcon:F&&u.createElement(Jc,{icon:o,onClear:v}),showActiveCls:!1}));return u.createElement("div",Te({},B,{className:ce(P,q(q(q(q(q({},"".concat(P,"-multiple"),x),"".concat(P,"-focused"),i),"".concat(P,"-disabled"),w),"".concat(P,"-invalid"),C),"".concat(P,"-rtl"),N),d),style:f,ref:D,onClick:p,onMouseDown:function(z){var V,K=z.target;K!==((V=j.current)===null||V===void 0?void 0:V.inputElement)&&z.preventDefault(),$==null||$(z)}}),r&&u.createElement("div",{className:"".concat(P,"-prefix")},r),H)}var cj=u.forwardRef(sj);function uj(e,t){var n=v0(e),r=Q(n,6),o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],c=r[5],d=o,f=d.prefixCls,p=d.styles,v=d.classNames,h=d.order,g=d.defaultValue,m=d.value,b=d.needConfirm,x=d.onChange,y=d.onKeyDown,w=d.disabled,C=d.disabledDate,S=d.minDate,$=d.maxDate,k=d.defaultOpen,E=d.open,O=d.onOpenChange,M=d.locale,N=d.generateConfig,T=d.picker,P=d.showNow,D=d.showToday,j=d.showTime,B=d.mode,I=d.onPanelChange,_=d.onCalendarChange,L=d.onOk,W=d.multiple,R=d.defaultPickerValue,A=d.pickerValue,F=d.onPickerValueChange,H=d.inputReadOnly,z=d.suffixIcon,V=d.removeIcon,K=d.onFocus,J=d.onBlur,Y=d.presets,Z=d.components,G=d.cellRender,X=d.dateRender,ne=d.monthCellRender,te=d.onClick,ee=y0(t);function se(ze){return ze===null?null:W?ze:ze[0]}var de=M0(N,M,a),ge=b0(E,k,[w],O),ve=Q(ge,2),ue=ve[0],we=ve[1],le=function(ze,vt,Kt){if(_){var on=U({},Kt);delete on.range,_(se(ze),se(vt),on)}},pe=function(ze){L==null||L(se(ze))},Ne=k0(N,M,l,!1,h,g,m,le,pe),re=Q(Ne,5),ke=re[0],Se=re[1],Me=re[2],Pe=re[3],be=re[4],ie=Me(),ye=C0([w]),xe=Q(ye,4),Ce=xe[0],De=xe[1],fe=xe[2],Ge=xe[3],ot=function(ze){De(!0),K==null||K(ze,{})},it=function(ze){De(!1),J==null||J(ze,{})},mt=Jt(T,{value:B}),Re=Q(mt,2),He=Re[0],Ae=Re[1],Ye=He==="date"&&j?"datetime":He,Xe=N0(T,He,P,D),st=x&&function(ze,vt){x(se(ze),se(vt))},ut=O0(U(U({},o),{},{onChange:st}),ke,Se,Me,Pe,[],l,Ce,ue,c),Ve=Q(ut,2),nt=Ve[1],ct=s0(ie,c),je=Q(ct,2),Ee=je[0],he=je[1],Oe=u.useMemo(function(){return Ee.some(function(ze){return ze})},[Ee]),We=function(ze,vt){if(F){var Kt=U(U({},vt),{},{mode:vt.mode[0]});delete Kt.range,F(ze[0],Kt)}},Je=w0(N,M,ie,[He],ue,Ge,a,!1,R,A,$o(j==null?void 0:j.defaultOpenValue),We,S,$),at=Q(Je,2),gt=at[0],bt=at[1],dt=yt(function(ze,vt,Kt){if(Ae(vt),I&&Kt!==!1){var on=ze||ie[ie.length-1];I(on,vt)}}),Rt=function(){nt(Me()),we(!1,{force:!0})},Mt=function(ze){!w&&!ee.current.nativeElement.contains(document.activeElement)&&ee.current.focus(),we(!0),te==null||te(ze)},ht=function(){nt(null),we(!1,{force:!0})},Tt=u.useState(null),Ft=Q(Tt,2),rn=Ft[0],Ie=Ft[1],_e=u.useState(null),Fe=Q(_e,2),Be=Fe[0],Le=Fe[1],Dt=u.useMemo(function(){var ze=[Be].concat($e(ie)).filter(function(vt){return vt});return W?ze:ze.slice(0,1)},[ie,Be,W]),St=u.useMemo(function(){return!W&&Be?[Be]:ie.filter(function(ze){return ze})},[ie,Be,W]);u.useEffect(function(){ue||Le(null)},[ue]);var Yt=x0(Y),Qt=function(ze){Le(ze),Ie("preset")},Bt=function(ze){var vt=W?de(Me(),ze):[ze],Kt=nt(vt);Kt&&!W&&we(!1,{force:!0})},zt=function(ze){Bt(ze)},dn=function(ze){Le(ze),Ie("cell")},Xt=function(ze){we(!0),ot(ze)},Sn=function(ze){if(fe("panel"),!(W&&Ye!==T)){var vt=W?de(Me(),ze):[ze];Pe(vt),!b&&!i&&a===Ye&&Rt()}},$n=function(){we(!1)},wn=pd(G,X,ne),Pn=u.useMemo(function(){var ze=ur(o,!1),vt=Er(o,[].concat($e(Object.keys(ze)),["onChange","onCalendarChange","style","className","onPanelChange"]));return U(U({},vt),{},{multiple:o.multiple})},[o]),Rn=u.createElement(j0,Te({},Pn,{showNow:Xe,showTime:j,disabledDate:C,onFocus:Xt,onBlur:it,picker:T,mode:He,internalMode:Ye,onPanelChange:dt,format:s,value:ie,isInvalid:c,onChange:null,onSelect:Sn,pickerValue:gt,defaultOpenValue:j==null?void 0:j.defaultOpenValue,onPickerValueChange:bt,hoverValue:Dt,onHover:dn,needConfirm:b,onSubmit:Rt,onOk:be,presets:Yt,onPresetHover:Qt,onPresetSubmit:Bt,onNow:zt,cellRender:wn})),Dn=function(ze){Pe(ze)},Yn=function(){fe("input")},ar=function(ze){fe("input"),we(!0,{inherit:!0}),ot(ze)},et=function(ze){we(!1),it(ze)},jt=function(ze,vt){ze.key==="Tab"&&Rt(),y==null||y(ze,vt)},Ut=u.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:N,button:Z.button,input:Z.input}},[f,M,N,Z.button,Z.input]);return Et(function(){ue&&Ge!==void 0&&dt(null,T,!1)},[ue,Ge,T]),Et(function(){var ze=fe();!ue&&ze==="input"&&(we(!1),Rt()),!ue&&i&&!b&&ze==="panel"&&Rt()},[ue]),u.createElement(pr.Provider,{value:Ut},u.createElement(o0,Te({},l0(o),{popupElement:Rn,popupStyle:p.popup,popupClassName:v.popup,visible:ue,onClose:$n}),u.createElement(cj,Te({},o,{ref:ee,suffixIcon:z,removeIcon:V,activeHelp:!!Be,allHelp:!!Be&&rn==="preset",focused:Ce,onFocus:ar,onBlur:et,onKeyDown:jt,onSubmit:Rt,value:St,maskFormat:s,onChange:Dn,onInputChange:Yn,internalPicker:a,format:l,inputReadOnly:H,disabled:w,open:ue,onOpenChange:we,onClick:Mt,onClear:ht,invalid:Oe,onInvalid:function(ze){he(ze,0)}}))))}var dj=u.forwardRef(uj);const D0=u.createContext(null),fj=D0.Provider,A0=u.createContext(null),pj=A0.Provider;var mj=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],gj=dr(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,l=e.disabled,s=e.defaultChecked,c=s===void 0?!1:s,d=e.type,f=d===void 0?"checkbox":d,p=e.title,v=e.onChange,h=pt(e,mj),g=qe(null),m=qe(null),b=Jt(c,{value:i}),x=Q(b,2),y=x[0],w=x[1];Zo(t,function(){return{focus:function($){var k;(k=g.current)===null||k===void 0||k.focus($)},blur:function(){var $;($=g.current)===null||$===void 0||$.blur()},input:g.current,nativeElement:m.current}});var C=ce(r,o,q(q({},"".concat(r,"-checked"),y),"".concat(r,"-disabled"),l)),S=function($){l||("checked"in e||w($.target.checked),v==null||v({target:U(U({},e),{},{type:f,checked:$.target.checked}),stopPropagation:function(){$.stopPropagation()},preventDefault:function(){$.preventDefault()},nativeEvent:$.nativeEvent}))};return u.createElement("span",{className:C,title:p,style:a,ref:m},u.createElement("input",Te({},h,{className:"".concat(r,"-input"),ref:g,onChange:S,disabled:l,checked:!!y,type:f})),u.createElement("span",{className:"".concat(r,"-inner")}))});function hj(e){const t=ae.useRef(null),n=()=>{ft.cancel(t.current),t.current=null};return[()=>{n(),t.current=ft(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e==null||e(r)}]}const vj=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},en(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},bj=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:v,dotColorDisabled:h,lineType:g,radioColor:m,radioBgColor:b,calc:x}=e,y=`${t}-inner`,w=x(o).sub(x(4).mul(2)),C=x(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},en(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${me(d)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},en(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
274
|
+
&:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:zu(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:x(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:x(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${x(w).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},yj=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationMid:l,buttonPaddingInline:s,fontSize:c,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:v,paddingXS:h,borderRadius:g,borderRadiusSM:m,borderRadiusLG:b,buttonCheckedBg:x,buttonSolidCheckedColor:y,colorTextDisabled:w,colorBgContainerDisabled:C,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:$,colorPrimary:k,colorPrimaryHover:E,colorPrimaryActive:O,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg:T,calc:P}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:c,lineHeight:me(P(n).sub(P(o).mul(2)).equal()),background:d,border:`${me(o)} ${a} ${i}`,borderBlockStartWidth:P(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:P(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${me(o)} ${a} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:me(P(p).sub(P(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:v,paddingInline:P(h).sub(o).equal(),paddingBlock:0,lineHeight:me(P(v).sub(P(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":zu(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:k,background:x,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:M,borderColor:M,"&:hover":{color:y,background:N,borderColor:N},"&:active":{color:y,background:T,borderColor:T}},"&-disabled":{color:w,backgroundColor:C,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:C,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:$,backgroundColor:S,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},xj=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:v,colorWhite:h}=e,g=4,m=a,b=t?m-g*2:m-(g+o)*2;return{radioSize:m,dotSize:b,dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:v,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?l:f}},T0=un("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${me(n)} ${t}`,o=At(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[vj(o),bj(o),yj(o)]},xj,{unitless:{radioSize:!0,dotSize:!0}});var Cj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wj=(e,t)=>{var n,r;const o=u.useContext(D0),a=u.useContext(A0),{getPrefixCls:i,direction:l,radio:s}=u.useContext(Ct),c=u.useRef(null),d=nr(t,c),{isFormItemInput:f}=u.useContext(Cn),p=j=>{var B,I;(B=e.onChange)===null||B===void 0||B.call(e,j),(I=o==null?void 0:o.onChange)===null||I===void 0||I.call(o,j)},{prefixCls:v,className:h,rootClassName:g,children:m,style:b,title:x}=e,y=Cj(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",v),C=((o==null?void 0:o.optionType)||a)==="button",S=C?`${w}-button`:w,$=qn(w),[k,E,O]=T0(w,$),M=Object.assign({},y),N=u.useContext(jn);o&&(M.name=o.name,M.onChange=p,M.checked=e.value===o.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:o.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:N;const T=ce(`${S}-wrapper`,{[`${S}-wrapper-checked`]:M.checked,[`${S}-wrapper-disabled`]:M.disabled,[`${S}-wrapper-rtl`]:l==="rtl",[`${S}-wrapper-in-form-item`]:f,[`${S}-wrapper-block`]:!!(o!=null&&o.block)},s==null?void 0:s.className,h,g,E,O,$),[P,D]=hj(M.onClick);return k(u.createElement(wl,{component:"Radio",disabled:M.disabled},u.createElement("label",{className:T,style:Object.assign(Object.assign({},s==null?void 0:s.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:P},u.createElement(gj,Object.assign({},M,{className:ce(M.className,{[qu]:!C}),type:"radio",prefixCls:S,ref:d,onClick:D})),m!==void 0?u.createElement("span",{className:`${S}-label`},m):null)))},el=u.forwardRef(wj),Ej=["parentNode"],Sj="form_item";function Ma(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function F0(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Ej.includes(n)?`${Sj}_${n}`:n}function H0(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}var $j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function tu(e){return Ma(e).join("_")}function bm(e,t){const n=t.getFieldInstance(e),r=Dg(n);if(r)return r;const o=F0(Ma(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function B0(e){const[t]=rd(),n=u.useRef({}),r=u.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=tu(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:(o,a={})=>{const{focus:i}=a,l=$j(a,["focus"]),s=bm(o,r);s&&(pS(s,Object.assign({scrollMode:"if-needed",block:"nearest"},l)),i&&r.focusField(o))},focusField:o=>{var a,i;const l=r.getFieldInstance(o);typeof(l==null?void 0:l.focus)=="function"?l.focus():(i=(a=bm(o,r))===null||a===void 0?void 0:a.focus)===null||i===void 0||i.call(a)},getFieldInstance:o=>{const a=tu(o);return n.current[a]}}),[e,t]);return[r]}const kj=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(Ct),{name:o}=u.useContext(Cn),a=ed(tu(o)),{prefixCls:i,className:l,rootClassName:s,options:c,buttonStyle:d="outline",disabled:f,children:p,size:v,style:h,id:g,optionType:m,name:b=a,defaultValue:x,value:y,block:w=!1,onChange:C,onMouseEnter:S,onMouseLeave:$,onFocus:k,onBlur:E}=e,[O,M]=Jt(x,{value:y}),N=u.useCallback(A=>{const F=O,H=A.target.value;"value"in e||M(H),H!==F&&(C==null||C(A))},[O,M,C]),T=n("radio",i),P=`${T}-group`,D=qn(T),[j,B,I]=T0(T,D);let _=p;c&&c.length>0&&(_=c.map(A=>typeof A=="string"||typeof A=="number"?u.createElement(el,{key:A.toString(),prefixCls:T,disabled:f,value:A,checked:O===A},A):u.createElement(el,{key:`radio-group-value-options-${A.value}`,prefixCls:T,disabled:A.disabled||f,value:A.value,checked:O===A.value,title:A.title,style:A.style,className:A.className,id:A.id,required:A.required},A.label)));const L=or(v),W=ce(P,`${P}-${d}`,{[`${P}-${L}`]:L,[`${P}-rtl`]:r==="rtl",[`${P}-block`]:w},l,s,B,I,D),R=u.useMemo(()=>({onChange:N,value:O,disabled:f,name:b,optionType:m,block:w}),[N,O,f,b,m,w]);return j(u.createElement("div",Object.assign({},ur(e,{aria:!0,data:!0}),{className:W,style:h,onMouseEnter:S,onMouseLeave:$,onFocus:k,onBlur:E,id:g,ref:t}),u.createElement(fj,{value:R},_)))}),Oj=u.memo(kj);var Nj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Mj=(e,t)=>{const{getPrefixCls:n}=u.useContext(Ct),{prefixCls:r}=e,o=Nj(e,["prefixCls"]),a=n("radio",r);return u.createElement(pj,{value:"button"},u.createElement(el,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},Ij=u.forwardRef(Mj),Hl=el;Hl.Button=Ij;Hl.Group=Oj;Hl.__ANT_RADIO=!0;function la(e){return At(e,{inputAffixPadding:e.paddingXXS})}const sa=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:v,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:b,colorWarningOutline:x,colorBgContainer:y,inputFontSize:w,inputFontSizeLG:C,inputFontSizeSM:S}=e,$=w||n,k=S||$,E=C||l,O=Math.round((t-$*r)/2*10)/10-o,M=Math.round((a-k*r)/2*10)/10-o,N=Math.ceil((i-E*s)/2*10)/10-o;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(M,0),paddingBlockLG:Math.max(N,0),paddingInline:c-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:h,hoverBorderColor:v,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${x}`,hoverBg:y,activeBg:y,inputFontSize:$,inputFontSizeLG:E,inputFontSizeSM:k}},jj=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),bd=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},jj(At(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),z0=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ym=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},z0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),yd=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},z0(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},bd(e))}),ym(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ym(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),xm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),_0=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},xm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),xm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},bd(e))}})}),xd=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},L0=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Cm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},L0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Cd=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},L0(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},bd(e))}),Cm(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Cm(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),wm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),W0=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},wm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),wm(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),V0=(e,t)=>({background:e.colorBgContainer,borderWidth:`${me(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Em=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},V0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),wd=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},V0(e,{borderColor:e.colorBorder,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Em(e,{status:"error",borderColor:e.colorError,activeBorderColor:e.colorError,affixColor:e.colorError})),Em(e,{status:"warning",borderColor:e.colorWarning,activeBorderColor:e.colorWarning,affixColor:e.colorWarning})),t)}),Ed=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),K0=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${me(t)} ${me(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},q0=e=>({padding:`${me(e.paddingBlockSM)} ${me(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Bl=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${me(e.paddingBlock)} ${me(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Ed(e.colorTextPlaceholder)),{"&-lg":Object.assign({},K0(e)),"&-sm":Object.assign({},q0(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Y0=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},K0(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},q0(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${me(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${me(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${me(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${me(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${me(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},eE()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
275
|
+
& > ${t}-affix-wrapper,
|
|
276
|
+
& > ${t}-number-affix-wrapper,
|
|
277
|
+
& > ${n}-picker-range
|
|
278
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
|
279
|
+
& > ${n}-select-auto-complete ${t},
|
|
280
|
+
& > ${n}-cascader-picker ${t},
|
|
281
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
282
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
283
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
284
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
285
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
286
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
287
|
+
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Pj=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},en(e)),Bl(e)),yd(e)),Cd(e)),xd(e)),wd(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Rj=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${me(e.inputAffixPadding)}`}}}},Dj=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Bl(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Rj(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},Aj=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},en(e)),Y0(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},_0(e)),W0(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Tj=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
288
|
+
> ${t},
|
|
289
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Fj=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},X0=un(["Input","Shared"],e=>{const t=At(e,la(e));return[Pj(t),Dj(t)]},sa,{resetFont:!1}),U0=un(["Input","Component"],e=>{const t=At(e,la(e));return[Aj(t),Tj(t),Fj(t),Ja(t)]},sa,{resetFont:!1}),Ms=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=Bv(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:me(a.itemLineHeight)}}}]},Hj=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=At(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=At(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Ms(o,"small"),Ms(e),Ms(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},zv(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Bj=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:l,lineType:s,colorPrimary:c,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:v,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:me(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
290
|
+
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${me(l)} ${s} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
|
|
291
|
+
&-in-view${t}-range-start,
|
|
292
|
+
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected,
|
|
293
|
+
&-in-view${t}-range-start,
|
|
294
|
+
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:v}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},zj=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:l,paddingXS:s,paddingXXS:c,colorBgContainer:d,lineWidth:f,lineType:p,borderRadiusLG:v,colorPrimary:h,colorTextHeading:g,colorSplit:m,pickerControlIconBorderWidth:b,colorIcon:x,textHeight:y,motionDurationMid:w,colorIconHover:C,fontWeightStrong:S,cellHeight:$,pickerCellPaddingVertical:k,colorTextDisabled:E,colorText:O,fontSize:M,motionDurationSlow:N,withoutTimeCellHeight:T,pickerQuarterPanelContentHeight:P,borderRadiusSM:D,colorTextLightSolid:j,cellHoverBg:B,timeColumnHeight:I,timeColumnWidth:_,timeCellHeight:L,controlItemBgActive:W,marginXXS:R,pickerDatePanelPaddingHorizontal:A,pickerControlIconMargin:F}=e,H=e.calc(i).mul(7).add(e.calc(A).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:v,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
|
|
295
|
+
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
296
|
+
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:H},"&-header":{display:"flex",padding:`0 ${me(s)}`,color:g,borderBottom:`${me(f)} ${p} ${m}`,"> *":{flex:"none"},button:{padding:0,color:x,lineHeight:me(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:me(y),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:F,insetInlineStart:F,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:$,fontWeight:"normal"},th:{height:e.calc($).add(e.calc(k).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${me(k)} 0`,color:E,cursor:"pointer","&-in-view":{color:O}},Bj(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(T).mul(4).equal()},[r]:{padding:`0 ${me(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:P}},"&-decade-panel":{[r]:{padding:`0 ${me(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${me(s)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${me(s)} ${me(A)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child:before":{borderStartEndRadius:D,borderEndEndRadius:D}},"&:hover td:before":{background:B},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Ot(j).setA(.5).toHexString()},[r]:{color:j}}},"&-range-hover td:before":{background:W}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${me(s)} ${me(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${me(f)} ${p} ${m}`},[`${t}-date-panel,
|
|
297
|
+
${t}-time-panel`]:{transition:`opacity ${N}`},"&-active":{[`${t}-date-panel,
|
|
298
|
+
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:I},"&-column":{flex:"1 0 auto",width:_,margin:`${me(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${me(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${me(f)} ${p} ${m}`},"&-active":{background:new Ot(W).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:R,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(_).sub(e.calc(R).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(_).sub(L).div(2).equal(),color:O,lineHeight:me(L),borderRadius:D,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:B}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:W}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}},_j=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:c,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${me(r)} ${c} ${d}`,"&-extra":{padding:`0 ${me(o)}`,lineHeight:me(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${me(r)} ${c} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:me(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:me(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Lj=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},Wj=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,l=a*2,s=i*2,c=Math.min(n-l,n-s),d=Math.min(r-l,r-s),f=Math.min(o-l,o-s);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Ot(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ot(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Vj=e=>Object.assign(Object.assign(Object.assign(Object.assign({},sa(e)),Wj(e)),Uv(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Kj=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},yd(e)),wd(e)),Cd(e)),xd(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Is=(e,t)=>({padding:`${me(e)} ${me(t)}`}),qj=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Yj=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:l,borderRadius:s,motionDurationMid:c,colorTextDisabled:d,colorTextPlaceholder:f,colorTextQuaternary:p,fontSizeLG:v,inputFontSizeLG:h,fontSizeSM:g,inputFontSizeSM:m,controlHeightSM:b,paddingInlineSM:x,paddingXS:y,marginXS:w,colorIcon:C,lineWidthBold:S,colorPrimary:$,motionDurationSlow:k,zIndexPopup:E,paddingXXS:O,sizePopupArrow:M,colorBgElevated:N,borderRadiusLG:T,boxShadowSecondary:P,borderRadiusSM:D,colorSplit:j,cellHoverBg:B,presetsWidth:I,presetsMaxWidth:_,boxShadowPopoverArrow:L,fontHeight:W,lineHeightLG:R}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},en(e)),Is(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},Ed(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},Is(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??v,lineHeight:R}}),"&-small":Object.assign(Object.assign({},Is(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:m??g}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:p,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:C}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:v,color:p,fontSize:v,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:C},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:S,background:$,opacity:0,transition:`all ${k} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${me(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:x}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},en(e)),zj(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
|
|
299
|
+
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
|
|
300
|
+
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
|
|
301
|
+
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
302
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
303
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Gu},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
|
|
304
|
+
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
|
|
305
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
|
|
306
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Xu},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
307
|
+
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Qu},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
|
|
308
|
+
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Uu},[`${n}-panel > ${n}-time-panel`]:{paddingTop:O},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${k} ease-out`},Gv(e,N,L)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:N,borderRadius:T,boxShadow:P,transition:`margin ${k}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:I,maxWidth:_,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${me(a)} ${i} ${j}`,li:Object.assign(Object.assign({},qi),{borderRadius:D,paddingInline:y,paddingBlock:e.calc(b).sub(W).div(2).equal(),cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:w},"&:hover":{background:B}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${me(e.calc(M).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Qi(e,"slide-up"),Qi(e,"slide-down"),Gi(e,"move-up"),Gi(e,"move-down")]},G0=un("DatePicker",e=>{const t=At(la(e),Lj(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[_j(t),Yj(t),Kj(t),qj(t),Hj(t),Ja(e,{focusElCls:`${e.componentCls}-focused`})]},Vj),Q0=Ur({});var Xj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Sm(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Uj=["xs","sm","md","lg","xl","xxl"],tl=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(Ct),{gutter:o,wrap:a}=u.useContext(Q0),{prefixCls:i,span:l,order:s,offset:c,push:d,pull:f,className:p,children:v,flex:h,style:g}=e,m=Xj(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",i),[x,y,w]=A2(b),C={};let S={};Uj.forEach(E=>{let O={};const M=e[E];typeof M=="number"?O.span=M:typeof M=="object"&&(O=M||{}),delete m[E],S=Object.assign(Object.assign({},S),{[`${b}-${E}-${O.span}`]:O.span!==void 0,[`${b}-${E}-order-${O.order}`]:O.order||O.order===0,[`${b}-${E}-offset-${O.offset}`]:O.offset||O.offset===0,[`${b}-${E}-push-${O.push}`]:O.push||O.push===0,[`${b}-${E}-pull-${O.pull}`]:O.pull||O.pull===0,[`${b}-rtl`]:r==="rtl"}),O.flex&&(S[`${b}-${E}-flex`]=!0,C[`--${b}-${E}-flex`]=Sm(O.flex))});const $=ce(b,{[`${b}-${l}`]:l!==void 0,[`${b}-order-${s}`]:s,[`${b}-offset-${c}`]:c,[`${b}-push-${d}`]:d,[`${b}-pull-${f}`]:f},p,S,y,w),k={};if(o&&o[0]>0){const E=o[0]/2;k.paddingLeft=E,k.paddingRight=E}return h&&(k.flex=Sm(h),a===!1&&!k.minWidth&&(k.minWidth=0)),x(u.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},k),g),C),className:$,ref:t}),v))});function Gj(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((a,i)=>{if(typeof a=="object"&&a!==null)for(let l=0;l<Wa.length;l++){const s=Wa[l];if(o[s]&&a[s]!==void 0){n[i]=a[s];break}}else n[i]=a}),n}var Qj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function $m(e,t){const[n,r]=u.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Wa.length;a++){const i=Wa[a];if(!t||!t[i])continue;const l=e[i];if(l!==void 0){r(l);return}}};return u.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const Z0=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:l,gutter:s=0,wrap:c}=e,d=Qj(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=u.useContext(Ct),v=oM(!0,null),h=$m(o,v),g=$m(r,v),m=f("row",n),[b,x,y]=R2(m),w=Gj(s,v),C=ce(m,{[`${m}-no-wrap`]:c===!1,[`${m}-${g}`]:g,[`${m}-${h}`]:h,[`${m}-rtl`]:p==="rtl"},a,x,y),S={},$=w[0]!=null&&w[0]>0?w[0]/-2:void 0;$&&(S.marginLeft=$,S.marginRight=$);const[k,E]=w;S.rowGap=E;const O=u.useMemo(()=>({gutter:[k,E],wrap:c}),[k,E,c]);return b(u.createElement(Q0.Provider,{value:O},u.createElement("div",Object.assign({},d,{className:C,style:Object.assign(Object.assign({},S),i),ref:t}),l)))});var Zj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Jj=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:Zj}))},eP=u.forwardRef(Jj);function nu(){return typeof BigInt=="function"}function J0(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function fo(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function Sd(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function lo(e){var t=String(e);if(Sd(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&$d(t)?t.length-t.indexOf(".")-1:0}function zl(e){var t=String(e);if(Sd(e)){if(e>Number.MAX_SAFE_INTEGER)return String(nu()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(nu()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(lo(t))}return fo(t).fullStr}function $d(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var tP=(function(){function e(t){if(tn(this,e),q(this,"origin",""),q(this,"negative",void 0),q(this,"integer",void 0),q(this,"decimal",void 0),q(this,"decimalLen",void 0),q(this,"empty",void 0),q(this,"nan",void 0),J0(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Sd(n)&&(n=Number(n)),n=typeof n=="string"?n:zl(n),$d(n)){var r=fo(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return nn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(n)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=this.alignDecimal(o),i=t.alignDecimal(o),l=n(a,i).toString(),s=r(o),c=fo(l),d=c.negativeStr,f=c.trimStr,p="".concat(d).concat(f.padStart(s+1,"0"));return new e("".concat(p.slice(0,-s),".").concat(p.slice(-s)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(r,o){return r+o},function(r){return r})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(r,o){return r*o},function(r){return r*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":fo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),nP=(function(){function e(t){if(tn(this,e),q(this,"origin",""),q(this,"number",void 0),q(this,"empty",void 0),J0(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return nn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(lo(this.number),lo(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(lo(this.number),lo(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toNumber()===(t==null?void 0:t.toNumber())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":zl(this.number):this.origin}}]),e})();function ir(e){return nu()?new tP(e):new nP(e)}function Di(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=fo(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(a).concat(i);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=ir(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-d));return Di(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?c:"".concat(c).concat(s)}function rP(e){return!!(e.addonBefore||e.addonAfter)}function oP(e){return!!(e.prefix||e.suffix||e.allowClear)}function km(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function nl(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=km(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=km(t,e,r),n(o);return}n(o)}}function kd(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Od=ae.forwardRef(function(e,t){var n,r,o,a=e.inputElement,i=e.children,l=e.prefixCls,s=e.prefix,c=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,v=e.style,h=e.disabled,g=e.readOnly,m=e.focused,b=e.triggerFocus,x=e.allowClear,y=e.value,w=e.handleReset,C=e.hidden,S=e.classes,$=e.classNames,k=e.dataAttrs,E=e.styles,O=e.components,M=e.onClear,N=i??a,T=(O==null?void 0:O.affixWrapper)||"span",P=(O==null?void 0:O.groupWrapper)||"span",D=(O==null?void 0:O.wrapper)||"span",j=(O==null?void 0:O.groupAddon)||"span",B=qe(null),I=function(ne){var te;(te=B.current)!==null&&te!==void 0&&te.contains(ne.target)&&(b==null||b())},_=oP(e),L=Zm(N,{value:y,className:ce((n=N.props)===null||n===void 0?void 0:n.className,!_&&($==null?void 0:$.variant))||null}),W=qe(null);if(ae.useImperativeHandle(t,function(){return{nativeElement:W.current||B.current}}),_){var R=null;if(x){var A=!h&&!g&&y,F="".concat(l,"-clear-icon"),H=Ze(x)==="object"&&x!==null&&x!==void 0&&x.clearIcon?x.clearIcon:"\u2716";R=ae.createElement("button",{type:"button",tabIndex:-1,onClick:function(ne){w==null||w(ne),M==null||M()},onMouseDown:function(ne){return ne.preventDefault()},className:ce(F,q(q({},"".concat(F,"-hidden"),!A),"".concat(F,"-has-suffix"),!!c))},H)}var z="".concat(l,"-affix-wrapper"),V=ce(z,q(q(q(q(q({},"".concat(l,"-disabled"),h),"".concat(z,"-disabled"),h),"".concat(z,"-focused"),m),"".concat(z,"-readonly"),g),"".concat(z,"-input-with-clear-btn"),c&&x&&y),S==null?void 0:S.affixWrapper,$==null?void 0:$.affixWrapper,$==null?void 0:$.variant),K=(c||x)&&ae.createElement("span",{className:ce("".concat(l,"-suffix"),$==null?void 0:$.suffix),style:E==null?void 0:E.suffix},R,c);L=ae.createElement(T,Te({className:V,style:E==null?void 0:E.affixWrapper,onClick:I},k==null?void 0:k.affixWrapper,{ref:B}),s&&ae.createElement("span",{className:ce("".concat(l,"-prefix"),$==null?void 0:$.prefix),style:E==null?void 0:E.prefix},s),L,K)}if(rP(e)){var J="".concat(l,"-group"),Y="".concat(J,"-addon"),Z="".concat(J,"-wrapper"),G=ce("".concat(l,"-wrapper"),J,S==null?void 0:S.wrapper,$==null?void 0:$.wrapper),X=ce(Z,q({},"".concat(Z,"-disabled"),h),S==null?void 0:S.group,$==null?void 0:$.groupWrapper);L=ae.createElement(P,{className:X,ref:W},ae.createElement(D,{className:G},d&&ae.createElement(j,{className:Y},d),L,f&&ae.createElement(j,{className:Y},f)))}return ae.cloneElement(L,{className:ce((r=L.props)===null||r===void 0?void 0:r.className,p)||null,style:U(U({},(o=L.props)===null||o===void 0?void 0:o.style),v),hidden:C})}),aP=["show"];function eb(e,t){return u.useMemo(function(){var n={};t&&(n.show=Ze(t)==="object"&&t.formatter?t.formatter:!!t),n=U(U({},n),e);var r=n,o=r.show,a=pt(r,aP);return U(U({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var iP=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],lP=dr(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,s=e.onKeyUp,c=e.prefixCls,d=c===void 0?"rc-input":c,f=e.disabled,p=e.htmlSize,v=e.className,h=e.maxLength,g=e.suffix,m=e.showCount,b=e.count,x=e.type,y=x===void 0?"text":x,w=e.classes,C=e.classNames,S=e.styles,$=e.onCompositionStart,k=e.onCompositionEnd,E=pt(e,iP),O=Pt(!1),M=Q(O,2),N=M[0],T=M[1],P=qe(!1),D=qe(!1),j=qe(null),B=qe(null),I=function(le){j.current&&kd(j.current,le)},_=Jt(e.defaultValue,{value:e.value}),L=Q(_,2),W=L[0],R=L[1],A=W==null?"":String(W),F=Pt(null),H=Q(F,2),z=H[0],V=H[1],K=eb(b,m),J=K.max||h,Y=K.strategy(A),Z=!!J&&Y>J;Zo(t,function(){var le;return{focus:I,blur:function(){var pe;(pe=j.current)===null||pe===void 0||pe.blur()},setSelectionRange:function(pe,Ne,re){var ke;(ke=j.current)===null||ke===void 0||ke.setSelectionRange(pe,Ne,re)},select:function(){var pe;(pe=j.current)===null||pe===void 0||pe.select()},input:j.current,nativeElement:((le=B.current)===null||le===void 0?void 0:le.nativeElement)||j.current}}),It(function(){D.current&&(D.current=!1),T(function(le){return le&&f?!1:le})},[f]);var G=function(le,pe,Ne){var re=pe;if(!P.current&&K.exceedFormatter&&K.max&&K.strategy(pe)>K.max){if(re=K.exceedFormatter(pe,{max:K.max}),pe!==re){var ke,Se;V([((ke=j.current)===null||ke===void 0?void 0:ke.selectionStart)||0,((Se=j.current)===null||Se===void 0?void 0:Se.selectionEnd)||0])}}else if(Ne.source==="compositionEnd")return;R(re),j.current&&nl(j.current,le,r,re)};It(function(){if(z){var le;(le=j.current)===null||le===void 0||le.setSelectionRange.apply(le,$e(z))}},[z]);var X=function(le){G(le,le.target.value,{source:"change"})},ne=function(le){P.current=!1,G(le,le.currentTarget.value,{source:"compositionEnd"}),k==null||k(le)},te=function(le){i&&le.key==="Enter"&&!D.current&&(D.current=!0,i(le)),l==null||l(le)},ee=function(le){le.key==="Enter"&&(D.current=!1),s==null||s(le)},se=function(le){T(!0),o==null||o(le)},de=function(le){D.current&&(D.current=!1),T(!1),a==null||a(le)},ge=function(le){R(""),I(),j.current&&nl(j.current,le,r)},ve=Z&&"".concat(d,"-out-of-range"),ue=function(){var le=Er(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ae.createElement("input",Te({autoComplete:n},le,{onChange:X,onFocus:se,onBlur:de,onKeyDown:te,onKeyUp:ee,className:ce(d,q({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:S==null?void 0:S.input,ref:j,size:p,type:y,onCompositionStart:function(pe){P.current=!0,$==null||$(pe)},onCompositionEnd:ne}))},we=function(){var le=Number(J)>0;if(g||K.show){var pe=K.showFormatter?K.showFormatter({value:A,count:Y,maxLength:J}):"".concat(Y).concat(le?" / ".concat(J):"");return ae.createElement(ae.Fragment,null,K.show&&ae.createElement("span",{className:ce("".concat(d,"-show-count-suffix"),q({},"".concat(d,"-show-count-has-suffix"),!!g),C==null?void 0:C.count),style:U({},S==null?void 0:S.count)},pe),g)}return null};return ae.createElement(Od,Te({},E,{prefixCls:d,className:ce(v,ve),handleReset:ge,value:A,focused:N,triggerFocus:I,suffix:we(),disabled:f,classes:w,classNames:C,styles:S,ref:B}),ue())});function sP(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,r){if(t[r])return t[r];var o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function cP(e,t){var n=qe(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,l=e.value,s=l.substring(0,a),c=l.substring(i);n.current={start:a,end:i,value:l,beforeTxt:s,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,l=i.beforeTxt,s=i.afterTxt,c=i.start,d=a.length;if(a.startsWith(l))d=l.length;else if(a.endsWith(s))d=a.length-n.current.afterTxt.length;else{var f=l[c-1],p=a.indexOf(f,c-1);p!==-1&&(d=p+1)}e.setSelectionRange(d,d)}catch(v){xn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var uP=function(){var e=Pt(!1),t=Q(e,2),n=t[0],r=t[1];return Et(function(){r(id())},[]),n},dP=200,fP=600;function pP(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,l=u.useRef(),s=u.useRef([]),c=u.useRef();c.current=i;var d=function(){clearTimeout(l.current)},f=function(x,y){x.preventDefault(),d(),c.current(y);function w(){c.current(y),l.current=setTimeout(w,dP)}l.current=setTimeout(w,fP)};u.useEffect(function(){return function(){d(),s.current.forEach(function(x){return ft.cancel(x)})}},[]);var p=uP();if(p)return null;var v="".concat(t,"-handler"),h=ce(v,"".concat(v,"-up"),q({},"".concat(v,"-up-disabled"),o)),g=ce(v,"".concat(v,"-down"),q({},"".concat(v,"-down-disabled"),a)),m=function(){return s.current.push(ft(d))},b={unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m};return u.createElement("div",{className:"".concat(v,"-wrap")},u.createElement("span",Te({},b,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||u.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),u.createElement("span",Te({},b,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:g}),r||u.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Om(e){var t=typeof e=="number"?zl(e):fo(e).fullStr,n=t.includes(".");return n?fo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const mP=(function(){var e=qe(0),t=function(){ft.cancel(e.current)};return It(function(){return t},[]),function(n){t(),e.current=ft(function(){n()})}});var gP=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],hP=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Nm=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Mm=function(e){var t=ir(e);return t.isInvalidate()?null:t},vP=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.min,i=e.max,l=e.step,s=l===void 0?1:l,c=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,v=e.upHandler,h=e.downHandler,g=e.keyboard,m=e.changeOnWheel,b=m===void 0?!1:m,x=e.controls,y=x===void 0?!0:x,w=e.stringMode,C=e.parser,S=e.formatter,$=e.precision,k=e.decimalSeparator,E=e.onChange,O=e.onInput,M=e.onPressEnter,N=e.onStep,T=e.changeOnBlur,P=T===void 0?!0:T,D=e.domRef,j=pt(e,gP),B="".concat(n,"-input"),I=u.useRef(null),_=u.useState(!1),L=Q(_,2),W=L[0],R=L[1],A=u.useRef(!1),F=u.useRef(!1),H=u.useRef(!1),z=u.useState(function(){return ir(d??c)}),V=Q(z,2),K=V[0],J=V[1];function Y(Re){d===void 0&&J(Re)}var Z=u.useCallback(function(Re,He){if(!He)return $>=0?$:Math.max(lo(Re),lo(s))},[$,s]),G=u.useCallback(function(Re){var He=String(Re);if(C)return C(He);var Ae=He;return k&&(Ae=Ae.replace(k,".")),Ae.replace(/[^\w.-]+/g,"")},[C,k]),X=u.useRef(""),ne=u.useCallback(function(Re,He){if(S)return S(Re,{userTyping:He,input:String(X.current)});var Ae=typeof Re=="number"?zl(Re):Re;if(!He){var Ye=Z(Ae,He);if($d(Ae)&&(k||Ye>=0)){var Xe=k||".";Ae=Di(Ae,Xe,Ye)}}return Ae},[S,Z,k]),te=u.useState(function(){var Re=c??d;return K.isInvalidate()&&["string","number"].includes(Ze(Re))?Number.isNaN(Re)?"":Re:ne(K.toString(),!1)}),ee=Q(te,2),se=ee[0],de=ee[1];X.current=se;function ge(Re,He){de(ne(Re.isInvalidate()?Re.toString(!1):Re.toString(!He),He))}var ve=u.useMemo(function(){return Mm(i)},[i,$]),ue=u.useMemo(function(){return Mm(a)},[a,$]),we=u.useMemo(function(){return!ve||!K||K.isInvalidate()?!1:ve.lessEquals(K)},[ve,K]),le=u.useMemo(function(){return!ue||!K||K.isInvalidate()?!1:K.lessEquals(ue)},[ue,K]),pe=cP(I.current,W),Ne=Q(pe,2),re=Ne[0],ke=Ne[1],Se=function(Re){return ve&&!Re.lessEquals(ve)?ve:ue&&!ue.lessEquals(Re)?ue:null},Me=function(Re){return!Se(Re)},Pe=function(Re,He){var Ae=Re,Ye=Me(Ae)||Ae.isEmpty();if(!Ae.isEmpty()&&!He&&(Ae=Se(Ae)||Ae,Ye=!0),!p&&!f&&Ye){var Xe=Ae.toString(),st=Z(Xe,He);return st>=0&&(Ae=ir(Di(Xe,".",st)),Me(Ae)||(Ae=ir(Di(Xe,".",st,!0)))),Ae.equals(K)||(Y(Ae),E==null||E(Ae.isEmpty()?null:Nm(w,Ae)),d===void 0&&ge(Ae,He)),Ae}return K},be=mP(),ie=function Re(He){if(re(),X.current=He,de(He),!F.current){var Ae=G(He),Ye=ir(Ae);Ye.isNaN()||Pe(Ye,!0)}O==null||O(He),be(function(){var Xe=He;C||(Xe=He.replace(/。/g,".")),Xe!==He&&Re(Xe)})},ye=function(){F.current=!0},xe=function(){F.current=!1,ie(I.current.value)},Ce=function(Re){ie(Re.target.value)},De=function(Re){var He;if(!(Re&&we||!Re&&le)){A.current=!1;var Ae=ir(H.current?Om(s):s);Re||(Ae=Ae.negate());var Ye=(K||ir(0)).add(Ae.toString()),Xe=Pe(Ye,!1);N==null||N(Nm(w,Xe),{offset:H.current?Om(s):s,type:Re?"up":"down"}),(He=I.current)===null||He===void 0||He.focus()}},fe=function(Re){var He=ir(G(se)),Ae;He.isNaN()?Ae=Pe(K,Re):Ae=Pe(He,Re),d!==void 0?ge(K,!1):Ae.isNaN()||ge(Ae,!1)},Ge=function(){A.current=!0},ot=function(Re){var He=Re.key,Ae=Re.shiftKey;A.current=!0,H.current=Ae,He==="Enter"&&(F.current||(A.current=!1),fe(!1),M==null||M(Re)),g!==!1&&!F.current&&["Up","ArrowUp","Down","ArrowDown"].includes(He)&&(De(He==="Up"||He==="ArrowUp"),Re.preventDefault())},it=function(){A.current=!1,H.current=!1};u.useEffect(function(){if(b&&W){var Re=function(Ae){De(Ae.deltaY<0),Ae.preventDefault()},He=I.current;if(He)return He.addEventListener("wheel",Re,{passive:!1}),function(){return He.removeEventListener("wheel",Re)}}});var mt=function(){P&&fe(!1),R(!1),A.current=!1};return Lo(function(){K.isInvalidate()||ge(K,!1)},[$,S]),Lo(function(){var Re=ir(d);J(Re);var He=ir(G(se));(!Re.equals(He)||!A.current||S)&&ge(Re,A.current)},[d]),Lo(function(){S&&ke()},[se]),u.createElement("div",{ref:D,className:ce(n,r,q(q(q(q(q({},"".concat(n,"-focused"),W),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),K.isNaN()),"".concat(n,"-out-of-range"),!K.isInvalidate()&&!Me(K))),style:o,onFocus:function(){R(!0)},onBlur:mt,onKeyDown:ot,onKeyUp:it,onCompositionStart:ye,onCompositionEnd:xe,onBeforeInput:Ge},y&&u.createElement(pP,{prefixCls:n,upNode:v,downNode:h,upDisabled:we,downDisabled:le,onStep:De}),u.createElement("div",{className:"".concat(B,"-wrap")},u.createElement("input",Te({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:s},j,{ref:nr(I,t),className:B,value:se,onChange:Ce,disabled:f,readOnly:p}))))}),bP=u.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,i=e.value,l=e.prefix,s=e.suffix,c=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,v=pt(e,hP),h=u.useRef(null),g=u.useRef(null),m=u.useRef(null),b=function(x){m.current&&kd(m.current,x)};return u.useImperativeHandle(t,function(){return sP(m.current,{focus:b,nativeElement:h.current.nativeElement||g.current})}),u.createElement(Od,{className:f,triggerFocus:b,prefixCls:a,value:i,disabled:n,style:r,prefix:l,suffix:s,addonAfter:d,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},u.createElement(vP,Te({prefixCls:a,disabled:n,ref:m,domRef:g,className:p==null?void 0:p.input},v)))});const yP=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},sa(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Ot(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Im=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},xP=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,controlHeightLG:l,controlHeightSM:s,colorError:c,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:v,colorIcon:h,motionDurationMid:g,handleHoverColor:m,handleOpacity:b,paddingInline:x,paddingBlock:y,handleBg:w,handleActiveBg:C,colorTextDisabled:S,borderRadiusSM:$,borderRadiusLG:k,controlWidth:E,handleBorderColor:O,filledHandleBg:M,lineHeightLG:N,calc:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},en(e)),Bl(e)),{display:"inline-block",width:E,margin:0,padding:0,borderRadius:o}),yd(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${me(n)} ${r} ${O}`}}})),Cd(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${me(n)} ${r} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),wd(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${me(n)} ${r} ${O}`}}})),xd(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:N,borderRadius:k,[`input${t}-input`]:{height:T(l).sub(T(n).mul(2)).equal(),padding:`${me(p)} ${me(v)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:$,[`input${t}-input`]:{height:T(s).sub(T(n).mul(2)).equal(),padding:`${me(f)} ${me(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},en(e)),Y0(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:$}}},_0(e)),W0(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},en(e)),{width:"100%",padding:`${me(y)} ${me(x)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),Ed(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
309
|
+
${t}-handler-up-inner,
|
|
310
|
+
${t}-handler-down-inner
|
|
311
|
+
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${me(n)} ${r} ${O}`,transition:`all ${g} linear`,"&:active":{background:C},"&:hover":{height:"60%",[`
|
|
312
|
+
${t}-handler-up-inner,
|
|
313
|
+
${t}-handler-down-inner
|
|
314
|
+
`]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Ga()),{color:h,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Im(e,"lg")),Im(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
315
|
+
${t}-handler-up-disabled,
|
|
316
|
+
${t}-handler-down-disabled
|
|
317
|
+
`]:{cursor:"not-allowed"},[`
|
|
318
|
+
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
319
|
+
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
320
|
+
`]:{color:S}})}]},CP=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${me(n)} 0`}},Bl(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:s,[`input${t}-input`]:{padding:`${me(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${me(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},wP=un("InputNumber",e=>{const t=At(e,la(e));return[xP(t),CP(t),Ja(t)]},yP,{unitless:{handleOpacity:!0},resetFont:!1});var EP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tb=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(Ct),o=u.useRef(null);u.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:l,disabled:s,prefixCls:c,addonBefore:d,addonAfter:f,prefix:p,suffix:v,bordered:h,readOnly:g,status:m,controls:b,variant:x}=e,y=EP(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",c),C=qn(w),[S,$,k]=wP(w,C),{compactSize:E,compactItemClassnames:O}=Jr(w,r);let M=u.createElement(eP,{className:`${w}-handler-up-inner`}),N=u.createElement(Vv,{className:`${w}-handler-down-inner`});const T=typeof b=="boolean"?b:void 0;typeof b=="object"&&(M=typeof b.upIcon>"u"?M:u.createElement("span",{className:`${w}-handler-up-inner`},b.upIcon),N=typeof b.downIcon>"u"?N:u.createElement("span",{className:`${w}-handler-down-inner`},b.downIcon));const{hasFeedback:P,status:D,isFormItemInput:j,feedbackIcon:B}=u.useContext(Cn),I=Eo(D,m),_=or(K=>{var J;return(J=l??E)!==null&&J!==void 0?J:K}),L=u.useContext(jn),W=s??L,[R,A]=oa("inputNumber",x,h),F=P&&u.createElement(u.Fragment,null,B),H=ce({[`${w}-lg`]:_==="large",[`${w}-sm`]:_==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:j},$),z=`${w}-group`,V=u.createElement(bP,Object.assign({ref:o,disabled:W,className:ce(k,C,a,i,O),upHandler:M,downHandler:N,prefixCls:w,readOnly:g,controls:T,prefix:p,suffix:F||v,addonBefore:d&&u.createElement(Yr,{form:!0,space:!0},d),addonAfter:f&&u.createElement(Yr,{form:!0,space:!0},f),classNames:{input:H,variant:ce({[`${w}-${R}`]:A},Xr(w,I,P)),affixWrapper:ce({[`${w}-affix-wrapper-sm`]:_==="small",[`${w}-affix-wrapper-lg`]:_==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:b===!1||W||g},$),wrapper:ce({[`${z}-rtl`]:r==="rtl"},$),groupWrapper:ce({[`${w}-group-wrapper-sm`]:_==="small",[`${w}-group-wrapper-lg`]:_==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${R}`]:A},Xr(`${w}-group-wrapper`,I,P),$)}},y));return S(V)}),ru=tb,SP=e=>u.createElement(Zr,{theme:{components:{InputNumber:{handleVisible:!0}}}},u.createElement(tb,Object.assign({},e)));ru._InternalPanelDoNotUseOrYouWillBeFired=SP;const nb=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ae.createElement(bl,null)}),t};function rb(e,t){const n=qe([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value")&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return It(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function $P(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var kP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _l=dr((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:i,onBlur:l,onFocus:s,suffix:c,allowClear:d,addonAfter:f,addonBefore:p,className:v,style:h,styles:g,rootClassName:m,onChange:b,classNames:x,variant:y}=e,w=kP(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:S,allowClear:$,autoComplete:k,className:E,style:O,classNames:M,styles:N}=Mr("input"),T=C("input",n),P=qe(null),D=qn(T),[j,B,I]=X0(T,m),[_]=U0(T,D),{compactSize:L,compactItemClassnames:W}=Jr(T,S),R=or(de=>{var ge;return(ge=a??L)!==null&&ge!==void 0?ge:de}),A=ae.useContext(jn),F=i??A,{status:H,hasFeedback:z,feedbackIcon:V}=Gt(Cn),K=Eo(H,o),J=$P(e)||!!z;qe(J);const Y=rb(P,!0),Z=de=>{Y(),l==null||l(de)},G=de=>{Y(),s==null||s(de)},X=de=>{Y(),b==null||b(de)},ne=(z||c)&&ae.createElement(ae.Fragment,null,c,z&&V),te=nb(d??$),[ee,se]=oa("input",y,r);return j(_(ae.createElement(lP,Object.assign({ref:nr(t,P),prefixCls:T,autoComplete:k},w,{disabled:F,onBlur:Z,onFocus:G,style:Object.assign(Object.assign({},O),h),styles:Object.assign(Object.assign({},N),g),suffix:ne,allowClear:te,className:ce(v,m,I,D,W,E),onChange:X,addonBefore:p&&ae.createElement(Yr,{form:!0,space:!0},p),addonAfter:f&&ae.createElement(Yr,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},x),M),{input:ce({[`${T}-sm`]:R==="small",[`${T}-lg`]:R==="large",[`${T}-rtl`]:S==="rtl"},x==null?void 0:x.input,M.input,B),variant:ce({[`${T}-${ee}`]:se},Xr(T,K)),affixWrapper:ce({[`${T}-affix-wrapper-sm`]:R==="small",[`${T}-affix-wrapper-lg`]:R==="large",[`${T}-affix-wrapper-rtl`]:S==="rtl"},B),wrapper:ce({[`${T}-group-rtl`]:S==="rtl"},B),groupWrapper:ce({[`${T}-group-wrapper-sm`]:R==="small",[`${T}-group-wrapper-lg`]:R==="large",[`${T}-group-wrapper-rtl`]:S==="rtl",[`${T}-group-wrapper-${ee}`]:se},Xr(`${T}-group-wrapper`,K,z),B)})}))))});function ou(e,t,n){return(e-t)/(n-t)}function Nd(e,t,n,r){var o=ou(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function oo(e,t){return Array.isArray(e)?e[t]:e}var Oo=u.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),OP=u.createContext({}),NP=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],jm=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,o=e.valueIndex,a=e.onStartMove,i=e.onDelete,l=e.style,s=e.render,c=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,v=e.onFocus,h=e.onMouseEnter,g=pt(e,NP),m=u.useContext(Oo),b=m.min,x=m.max,y=m.direction,w=m.disabled,C=m.keyboard,S=m.range,$=m.tabIndex,k=m.ariaLabelForHandle,E=m.ariaLabelledByForHandle,O=m.ariaRequired,M=m.ariaValueTextFormatterForHandle,N=m.styles,T=m.classNames,P="".concat(n,"-handle"),D=function(F){w||a(F,o)},j=function(F){v==null||v(F,o)},B=function(F){h(F,o)},I=function(F){if(!w&&C){var H=null;switch(F.which||F.keyCode){case Qe.LEFT:H=y==="ltr"||y==="btt"?-1:1;break;case Qe.RIGHT:H=y==="ltr"||y==="btt"?1:-1;break;case Qe.UP:H=y!=="ttb"?1:-1;break;case Qe.DOWN:H=y!=="ttb"?-1:1;break;case Qe.HOME:H="min";break;case Qe.END:H="max";break;case Qe.PAGE_UP:H=2;break;case Qe.PAGE_DOWN:H=-2;break;case Qe.BACKSPACE:case Qe.DELETE:i==null||i(o);break}H!==null&&(F.preventDefault(),f(H,o))}},_=function(F){switch(F.which||F.keyCode){case Qe.LEFT:case Qe.RIGHT:case Qe.UP:case Qe.DOWN:case Qe.HOME:case Qe.END:case Qe.PAGE_UP:case Qe.PAGE_DOWN:p==null||p();break}},L=Nd(y,r,b,x),W={};if(o!==null){var R;W={tabIndex:w?null:oo($,o),role:"slider","aria-valuemin":b,"aria-valuemax":x,"aria-valuenow":r,"aria-disabled":w,"aria-label":oo(k,o),"aria-labelledby":oo(E,o),"aria-required":oo(O,o),"aria-valuetext":(R=oo(M,o))===null||R===void 0?void 0:R(r),"aria-orientation":y==="ltr"||y==="rtl"?"horizontal":"vertical",onMouseDown:D,onTouchStart:D,onFocus:j,onMouseEnter:B,onKeyDown:I,onKeyUp:_}}var A=u.createElement("div",Te({ref:t,className:ce(P,q(q(q({},"".concat(P,"-").concat(o+1),o!==null&&S),"".concat(P,"-dragging"),c),"".concat(P,"-dragging-delete"),d),T.handle),style:U(U(U({},L),l),N.handle)},W,g));return s&&(A=s(A,{index:o,prefixCls:n,value:r,dragging:c,draggingDelete:d})),A}),MP=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],IP=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,l=e.handleRender,s=e.activeHandleRender,c=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,p=pt(e,MP),v=u.useRef({}),h=u.useState(!1),g=Q(h,2),m=g[0],b=g[1],x=u.useState(-1),y=Q(x,2),w=y[0],C=y[1],S=function(O){C(O),b(!0)},$=function(O,M){S(M),f==null||f(O)},k=function(O,M){S(M)};u.useImperativeHandle(t,function(){return{focus:function(O){var M;(M=v.current[O])===null||M===void 0||M.focus()},hideHelp:function(){_s(function(){b(!1)})}}});var E=U({prefixCls:n,onStartMove:o,onOffsetChange:a,render:l,onFocus:$,onMouseEnter:k},p);return u.createElement(u.Fragment,null,i.map(function(O,M){var N=c===M;return u.createElement(jm,Te({ref:function(T){T?v.current[M]=T:delete v.current[M]},dragging:N,draggingDelete:N&&d,style:oo(r,M),key:M,value:O,valueIndex:M},E))}),s&&m&&u.createElement(jm,Te({key:"a11y"},E,{value:i[w],valueIndex:null,dragging:c!==-1,draggingDelete:d,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),jP=function(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=u.useContext(Oo),l=i.min,s=i.max,c=i.direction,d=i.includedStart,f=i.includedEnd,p=i.included,v="".concat(t,"-text"),h=Nd(c,o,l,s);return u.createElement("span",{className:ce(v,q({},"".concat(v,"-active"),p&&d<=o&&o<=f)),style:U(U({},h),n),onMouseDown:function(g){g.stopPropagation()},onClick:function(){a(o)}},r)},PP=function(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?u.createElement("div",{className:o},n.map(function(a){var i=a.value,l=a.style,s=a.label;return u.createElement(jP,{key:i,prefixCls:o,style:l,value:i,onClick:r},s)})):null},RP=function(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=u.useContext(Oo),i=a.min,l=a.max,s=a.direction,c=a.included,d=a.includedStart,f=a.includedEnd,p="".concat(t,"-dot"),v=c&&d<=n&&n<=f,h=U(U({},Nd(s,n,i,l)),typeof r=="function"?r(n):r);return v&&(h=U(U({},h),typeof o=="function"?o(n):o)),u.createElement("span",{className:ce(p,q({},"".concat(p,"-active"),v)),style:h})},DP=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=u.useContext(Oo),l=i.min,s=i.max,c=i.step,d=u.useMemo(function(){var f=new Set;if(n.forEach(function(v){f.add(v.value)}),r&&c!==null)for(var p=l;p<=s;)f.add(p),p+=c;return Array.from(f)},[l,s,c,r,n]);return u.createElement("div",{className:"".concat(t,"-step")},d.map(function(f){return u.createElement(RP,{prefixCls:t,key:f,value:f,style:o,activeStyle:a})}))},Pm=function(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,a=e.index,i=e.onStartMove,l=e.replaceCls,s=u.useContext(Oo),c=s.direction,d=s.min,f=s.max,p=s.disabled,v=s.range,h=s.classNames,g="".concat(t,"-track"),m=ou(r,d,f),b=ou(o,d,f),x=function(C){!p&&i&&i(C,-1)},y={};switch(c){case"rtl":y.right="".concat(m*100,"%"),y.width="".concat(b*100-m*100,"%");break;case"btt":y.bottom="".concat(m*100,"%"),y.height="".concat(b*100-m*100,"%");break;case"ttb":y.top="".concat(m*100,"%"),y.height="".concat(b*100-m*100,"%");break;default:y.left="".concat(m*100,"%"),y.width="".concat(b*100-m*100,"%")}var w=l||ce(g,q(q({},"".concat(g,"-").concat(a+1),a!==null&&v),"".concat(t,"-track-draggable"),i),h.track);return u.createElement("div",{className:w,style:U(U({},y),n),onMouseDown:x,onTouchStart:x})},AP=function(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=u.useContext(Oo),l=i.included,s=i.range,c=i.min,d=i.styles,f=i.classNames,p=u.useMemo(function(){if(!s){if(r.length===0)return[];var h=o??c,g=r[0];return[{start:Math.min(h,g),end:Math.max(h,g)}]}for(var m=[],b=0;b<r.length-1;b+=1)m.push({start:r[b],end:r[b+1]});return m},[r,s,o,c]);if(!l)return null;var v=p!=null&&p.length&&(f.tracks||d.tracks)?u.createElement(Pm,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:ce(f.tracks,"".concat(t,"-tracks")),style:d.tracks}):null;return u.createElement(u.Fragment,null,v,p.map(function(h,g){var m=h.start,b=h.end;return u.createElement(Pm,{index:g,prefixCls:t,style:U(U({},oo(n,g)),d.track),start:m,end:b,key:g,onStartMove:a})}))},TP=130;function Rm(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function FP(e,t,n,r,o,a,i,l,s,c,d){var f=u.useState(null),p=Q(f,2),v=p[0],h=p[1],g=u.useState(-1),m=Q(g,2),b=m[0],x=m[1],y=u.useState(!1),w=Q(y,2),C=w[0],S=w[1],$=u.useState(n),k=Q($,2),E=k[0],O=k[1],M=u.useState(n),N=Q(M,2),T=N[0],P=N[1],D=u.useRef(null),j=u.useRef(null),B=u.useRef(null),I=u.useContext(OP),_=I.onDragStart,L=I.onDragChange;Et(function(){b===-1&&O(n)},[n,b]),u.useEffect(function(){return function(){document.removeEventListener("mousemove",D.current),document.removeEventListener("mouseup",j.current),B.current&&(B.current.removeEventListener("touchmove",D.current),B.current.removeEventListener("touchend",j.current))}},[]);var W=function(H,z,V){z!==void 0&&h(z),O(H);var K=H;V&&(K=H.filter(function(J,Y){return Y!==b})),i(K),L&&L({rawValues:H,deleteIndex:V?b:-1,draggingIndex:b,draggingValue:z})},R=yt(function(H,z,V){if(H===-1){var K=T[0],J=T[T.length-1],Y=r-K,Z=o-J,G=z*(o-r);G=Math.max(G,Y),G=Math.min(G,Z);var X=a(K+G);G=X-K;var ne=T.map(function(de){return de+G});W(ne)}else{var te=(o-r)*z,ee=$e(E);ee[H]=T[H];var se=s(ee,te,H,"dist");W(se.values,se.value,V)}}),A=function(H,z,V){H.stopPropagation();var K=V||n,J=K[z];x(z),h(J),P(K),O(K),S(!1);var Y=Rm(H),Z=Y.pageX,G=Y.pageY,X=!1;_&&_({rawValues:K,draggingIndex:z,draggingValue:J});var ne=function(ee){ee.preventDefault();var se=Rm(ee),de=se.pageX,ge=se.pageY,ve=de-Z,ue=ge-G,we=e.current.getBoundingClientRect(),le=we.width,pe=we.height,Ne,re;switch(t){case"btt":Ne=-ue/pe,re=ve;break;case"ttb":Ne=ue/pe,re=ve;break;case"rtl":Ne=-ve/le,re=ue;break;default:Ne=ve/le,re=ue}X=c?Math.abs(re)>TP&&d<E.length:!1,S(X),R(z,Ne,X)},te=function ee(se){se.preventDefault(),document.removeEventListener("mouseup",ee),document.removeEventListener("mousemove",ne),B.current&&(B.current.removeEventListener("touchmove",D.current),B.current.removeEventListener("touchend",j.current)),D.current=null,j.current=null,B.current=null,l(X),x(-1),S(!1)};document.addEventListener("mouseup",te),document.addEventListener("mousemove",ne),H.currentTarget.addEventListener("touchend",te),H.currentTarget.addEventListener("touchmove",ne),D.current=ne,j.current=te,B.current=H.currentTarget},F=u.useMemo(function(){var H=$e(n).sort(function(Y,Z){return Y-Z}),z=$e(E).sort(function(Y,Z){return Y-Z}),V={};z.forEach(function(Y){V[Y]=(V[Y]||0)+1}),H.forEach(function(Y){V[Y]=(V[Y]||0)-1});var K=c?1:0,J=Object.values(V).reduce(function(Y,Z){return Y+Math.abs(Z)},0);return J<=K?E:n},[n,E,c]);return[b,v,C,F,A]}function HP(e,t,n,r,o,a){var i=u.useCallback(function(v){return Math.max(e,Math.min(t,v))},[e,t]),l=u.useCallback(function(v){if(n!==null){var h=e+Math.round((i(v)-e)/n)*n,g=function(x){return(String(x).split(".")[1]||"").length},m=Math.max(g(n),g(t),g(e)),b=Number(h.toFixed(m));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),s=u.useCallback(function(v){var h=i(v),g=r.map(function(x){return x.value});n!==null&&g.push(l(v)),g.push(e,t);var m=g[0],b=t-e;return g.forEach(function(x){var y=Math.abs(h-x);y<=b&&(m=x,b=y)}),m},[e,t,r,n,i,l]),c=function v(h,g,m){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var x,y=h[m],w=y+g,C=[];r.forEach(function(O){C.push(O.value)}),C.push(e,t),C.push(l(y));var S=g>0?1:-1;b==="unit"?C.push(l(y+S*n)):C.push(l(w)),C=C.filter(function(O){return O!==null}).filter(function(O){return g<0?O<=y:O>=y}),b==="unit"&&(C=C.filter(function(O){return O!==y}));var $=b==="unit"?y:w;x=C[0];var k=Math.abs(x-$);if(C.forEach(function(O){var M=Math.abs(O-$);M<k&&(x=O,k=M)}),x===void 0)return g<0?e:t;if(b==="dist")return x;if(Math.abs(g)>1){var E=$e(h);return E[m]=x,v(E,g-S,m,b)}return x}else{if(g==="min")return e;if(g==="max")return t}},d=function(v,h,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v[g],x=c(v,h,g,m);return{value:x,changed:x!==b}},f=function(v){return a===null&&v===0||typeof a=="number"&&v<a},p=function(v,h,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=v.map(s),x=b[g],y=c(b,h,g,m);if(b[g]=y,o===!1){var w=a||0;g>0&&b[g-1]!==x&&(b[g]=Math.max(b[g],b[g-1]+w)),g<b.length-1&&b[g+1]!==x&&(b[g]=Math.min(b[g],b[g+1]-w))}else if(typeof a=="number"||a===null){for(var C=g+1;C<b.length;C+=1)for(var S=!0;f(b[C]-b[C-1])&&S;){var $=d(b,1,C);b[C]=$.value,S=$.changed}for(var k=g;k>0;k-=1)for(var E=!0;f(b[k]-b[k-1])&&E;){var O=d(b,-1,k-1);b[k-1]=O.value,E=O.changed}for(var M=b.length-1;M>0;M-=1)for(var N=!0;f(b[M]-b[M-1])&&N;){var T=d(b,-1,M-1);b[M-1]=T.value,N=T.changed}for(var P=0;P<b.length-1;P+=1)for(var D=!0;f(b[P+1]-b[P])&&D;){var j=d(b,1,P+1);b[P+1]=j.value,D=j.changed}}return{value:b[g],values:b}};return[s,p]}function BP(e){return En(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,o=e.maxCount;return[!0,t,!t&&n,r||0,o]},[e])}var zP=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,o=e.className,a=e.style,i=e.classNames,l=e.styles,s=e.id,c=e.disabled,d=c===void 0?!1:c,f=e.keyboard,p=f===void 0?!0:f,v=e.autoFocus,h=e.onFocus,g=e.onBlur,m=e.min,b=m===void 0?0:m,x=e.max,y=x===void 0?100:x,w=e.step,C=w===void 0?1:w,S=e.value,$=e.defaultValue,k=e.range,E=e.count,O=e.onChange,M=e.onBeforeChange,N=e.onAfterChange,T=e.onChangeComplete,P=e.allowCross,D=P===void 0?!0:P,j=e.pushable,B=j===void 0?!1:j,I=e.reverse,_=e.vertical,L=e.included,W=L===void 0?!0:L,R=e.startPoint,A=e.trackStyle,F=e.handleStyle,H=e.railStyle,z=e.dotStyle,V=e.activeDotStyle,K=e.marks,J=e.dots,Y=e.handleRender,Z=e.activeHandleRender,G=e.track,X=e.tabIndex,ne=X===void 0?0:X,te=e.ariaLabelForHandle,ee=e.ariaLabelledByForHandle,se=e.ariaRequired,de=e.ariaValueTextFormatterForHandle,ge=u.useRef(null),ve=u.useRef(null),ue=u.useMemo(function(){return _?I?"ttb":"btt":I?"rtl":"ltr"},[I,_]),we=BP(k),le=Q(we,5),pe=le[0],Ne=le[1],re=le[2],ke=le[3],Se=le[4],Me=u.useMemo(function(){return isFinite(b)?b:0},[b]),Pe=u.useMemo(function(){return isFinite(y)?y:100},[y]),be=u.useMemo(function(){return C!==null&&C<=0?1:C},[C]),ie=u.useMemo(function(){return typeof B=="boolean"?B?be:!1:B>=0?B:!1},[B,be]),ye=u.useMemo(function(){return Object.keys(K||{}).map(function(Fe){var Be=K[Fe],Le={value:Number(Fe)};return Be&&Ze(Be)==="object"&&!u.isValidElement(Be)&&("label"in Be||"style"in Be)?(Le.style=Be.style,Le.label=Be.label):Le.label=Be,Le}).filter(function(Fe){var Be=Fe.label;return Be||typeof Be=="number"}).sort(function(Fe,Be){return Fe.value-Be.value})},[K]),xe=HP(Me,Pe,be,ye,D,ie),Ce=Q(xe,2),De=Ce[0],fe=Ce[1],Ge=Jt($,{value:S}),ot=Q(Ge,2),it=ot[0],mt=ot[1],Re=u.useMemo(function(){var Fe=it==null?[]:Array.isArray(it)?it:[it],Be=Q(Fe,1),Le=Be[0],Dt=Le===void 0?Me:Le,St=it===null?[]:[Dt];if(pe){if(St=$e(Fe),E||it===void 0){var Yt=E>=0?E+1:2;for(St=St.slice(0,Yt);St.length<Yt;){var Qt;St.push((Qt=St[St.length-1])!==null&&Qt!==void 0?Qt:Me)}}St.sort(function(Bt,zt){return Bt-zt})}return St.forEach(function(Bt,zt){St[zt]=De(Bt)}),St},[it,pe,Me,E,De]),He=function(Fe){return pe?Fe:Fe[0]},Ae=yt(function(Fe){var Be=$e(Fe).sort(function(Le,Dt){return Le-Dt});O&&!Wi(Be,Re,!0)&&O(He(Be)),mt(Be)}),Ye=yt(function(Fe){Fe&&ge.current.hideHelp();var Be=He(Re);N==null||N(Be),xn(!N,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),T==null||T(Be)}),Xe=function(Fe){if(!(d||!Ne||Re.length<=ke)){var Be=$e(Re);Be.splice(Fe,1),M==null||M(He(Be)),Ae(Be);var Le=Math.max(0,Fe-1);ge.current.hideHelp(),ge.current.focus(Le)}},st=FP(ve,ue,Re,Me,Pe,De,Ae,Ye,fe,Ne,ke),ut=Q(st,5),Ve=ut[0],nt=ut[1],ct=ut[2],je=ut[3],Ee=ut[4],he=function(Fe,Be){if(!d){var Le=$e(Re),Dt=0,St=0,Yt=Pe-Me;Re.forEach(function(Xt,Sn){var $n=Math.abs(Fe-Xt);$n<=Yt&&(Yt=$n,Dt=Sn),Xt<Fe&&(St=Sn)});var Qt=Dt;Ne&&Yt!==0&&(!Se||Re.length<Se)?(Le.splice(St+1,0,Fe),Qt=St+1):Le[Dt]=Fe,pe&&!Re.length&&E===void 0&&Le.push(Fe);var Bt=He(Le);if(M==null||M(Bt),Ae(Le),Be){var zt,dn;(zt=document.activeElement)===null||zt===void 0||(dn=zt.blur)===null||dn===void 0||dn.call(zt),ge.current.focus(Qt),Ee(Be,Qt,Le)}else N==null||N(Bt),xn(!N,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),T==null||T(Bt)}},Oe=function(Fe){Fe.preventDefault();var Be=ve.current.getBoundingClientRect(),Le=Be.width,Dt=Be.height,St=Be.left,Yt=Be.top,Qt=Be.bottom,Bt=Be.right,zt=Fe.clientX,dn=Fe.clientY,Xt;switch(ue){case"btt":Xt=(Qt-dn)/Dt;break;case"ttb":Xt=(dn-Yt)/Dt;break;case"rtl":Xt=(Bt-zt)/Le;break;default:Xt=(zt-St)/Le}var Sn=Me+Xt*(Pe-Me);he(De(Sn),Fe)},We=u.useState(null),Je=Q(We,2),at=Je[0],gt=Je[1],bt=function(Fe,Be){if(!d){var Le=fe(Re,Fe,Be);M==null||M(He(Re)),Ae(Le.values),gt(Le.value)}};u.useEffect(function(){if(at!==null){var Fe=Re.indexOf(at);Fe>=0&&ge.current.focus(Fe)}gt(null)},[at]);var dt=u.useMemo(function(){return re&&be===null?!1:re},[re,be]),Rt=yt(function(Fe,Be){Ee(Fe,Be),M==null||M(He(Re))}),Mt=Ve!==-1;u.useEffect(function(){if(!Mt){var Fe=Re.lastIndexOf(nt);ge.current.focus(Fe)}},[Mt]);var ht=u.useMemo(function(){return $e(je).sort(function(Fe,Be){return Fe-Be})},[je]),Tt=u.useMemo(function(){return pe?[ht[0],ht[ht.length-1]]:[Me,ht[0]]},[ht,pe,Me]),Ft=Q(Tt,2),rn=Ft[0],Ie=Ft[1];u.useImperativeHandle(t,function(){return{focus:function(){ge.current.focus(0)},blur:function(){var Fe,Be=document,Le=Be.activeElement;(Fe=ve.current)!==null&&Fe!==void 0&&Fe.contains(Le)&&(Le==null||Le.blur())}}}),u.useEffect(function(){v&&ge.current.focus(0)},[]);var _e=u.useMemo(function(){return{min:Me,max:Pe,direction:ue,disabled:d,keyboard:p,step:be,included:W,includedStart:rn,includedEnd:Ie,range:pe,tabIndex:ne,ariaLabelForHandle:te,ariaLabelledByForHandle:ee,ariaRequired:se,ariaValueTextFormatterForHandle:de,styles:l||{},classNames:i||{}}},[Me,Pe,ue,d,p,be,W,rn,Ie,pe,ne,te,ee,se,de,l,i]);return u.createElement(Oo.Provider,{value:_e},u.createElement("div",{ref:ve,className:ce(r,o,q(q(q(q({},"".concat(r,"-disabled"),d),"".concat(r,"-vertical"),_),"".concat(r,"-horizontal"),!_),"".concat(r,"-with-marks"),ye.length)),style:a,onMouseDown:Oe,id:s},u.createElement("div",{className:ce("".concat(r,"-rail"),i==null?void 0:i.rail),style:U(U({},H),l==null?void 0:l.rail)}),G!==!1&&u.createElement(AP,{prefixCls:r,style:A,values:Re,startPoint:R,onStartMove:dt?Rt:void 0}),u.createElement(DP,{prefixCls:r,marks:ye,dots:J,style:z,activeStyle:V}),u.createElement(IP,{ref:ge,prefixCls:r,style:F,values:je,draggingIndex:Ve,draggingDelete:ct,onStartMove:Rt,onOffsetChange:bt,onFocus:h,onBlur:g,handleRender:Y,activeHandleRender:Z,onChangeComplete:Ye,onDelete:Ne?Xe:void 0}),u.createElement(PP,{prefixCls:r,marks:ye,onClick:he})))});const _P=Ur({}),Dm=u.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:o}=e,a=qe(null),i=n&&!r,l=qe(null);function s(){ft.cancel(l.current),l.current=null}function c(){l.current=ft(()=>{var d;(d=a.current)===null||d===void 0||d.forceAlign(),l.current=null})}return u.useEffect(()=>(i?c():s(),s),[i,e.title,o]),u.createElement(Pl,Object.assign({ref:nr(a,t)},e,{open:i}))}),LP=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:l,handleColorDisabled:s,calc:c,handleSize:d,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:v,handleLineWidth:h,handleLineWidthHover:g,motionDurationMid:m}=e;return{[t]:Object.assign(Object.assign({},en(e)),{position:"relative",height:r,margin:`${me(i)} ${me(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${me(a)} ${me(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${m}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${m}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${me(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(d).add(c(h).mul(2)).equal(),height:c(d).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${me(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
321
|
+
inset-inline-start ${m},
|
|
322
|
+
inset-block-start ${m},
|
|
323
|
+
width ${m},
|
|
324
|
+
height ${m},
|
|
325
|
+
box-shadow ${m},
|
|
326
|
+
outline ${m}
|
|
327
|
+
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(d).div(2).add(g).mul(-1).equal(),insetBlockStart:c(f).sub(d).div(2).add(g).mul(-1).equal(),width:c(f).add(c(g).mul(2)).equal(),height:c(f).add(c(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${me(g)} ${p}`,outline:`6px solid ${v}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${me(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
|
328
|
+
${t}-dot
|
|
329
|
+
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${me(h)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
330
|
+
${t}-mark-text,
|
|
331
|
+
${t}-dot
|
|
332
|
+
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},ob=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a,marginFull:i,calc:l}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",v=l(r).mul(3).sub(o).div(2).equal(),h=l(o).sub(r).div(2).equal(),g=t?{borderWidth:`${me(h)} 0`,transform:`translateY(${me(l(h).mul(-1).equal())})`}:{borderWidth:`0 ${me(h)}`,transform:`translateX(${me(e.calc(h).mul(-1).equal())})`};return{[s]:r,[d]:l(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[f]:v},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:l(r).mul(3).add(t?0:i).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[c]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(a).div(2).equal()}}},WP=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},ob(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},VP=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},ob(e,!1)),{height:"100%"})}},KP=e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,i=new Ot(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:i,handleColorDisabled:new Ot(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},qP=un("Slider",e=>{const t=At(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[LP(t),WP(t),VP(t)]},KP);function js(){const[e,t]=u.useState(!1),n=u.useRef(null),r=()=>{ft.cancel(n.current)},o=a=>{r(),a?t(a):n.current=ft(()=>{t(a)})};return u.useEffect(()=>r,[]),[e,o]}var YP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function XP(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const UP=ae.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:l,tooltipPrefixCls:s,tipFormatter:c,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:v={},onChangeComplete:h,classNames:g,styles:m}=e,b=YP(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:x}=e,{getPrefixCls:y,direction:w,className:C,style:S,classNames:$,styles:k,getPopupContainer:E}=Mr("slider"),O=ae.useContext(jn),M=l??O,{handleRender:N,direction:T}=ae.useContext(_P),P=(T||w)==="rtl",[D,j]=js(),[B,I]=js(),_=Object.assign({},v),{open:L,placement:W,getPopupContainer:R,prefixCls:A,formatter:F}=_,H=L??d,z=(D||B)&&H!==!1,V=XP(F,c),[K,J]=js(),Y=le=>{h==null||h(le),J(!1)},Z=(le,pe)=>le||(pe?P?"left":"right":"top"),G=y("slider",n),[X,ne,te]=qP(G),ee=ce(o,C,$.root,g==null?void 0:g.root,a,{[`${G}-rtl`]:P,[`${G}-lock`]:K},ne,te);P&&!b.vertical&&(b.reverse=!b.reverse),ae.useEffect(()=>{const le=()=>{ft(()=>{I(!1)},1)};return document.addEventListener("mouseup",le),()=>{document.removeEventListener("mouseup",le)}},[]);const se=r&&!H,de=N||((le,pe)=>{const{index:Ne}=pe,re=le.props;function ke(be,ie,ye){var xe,Ce,De,fe;ye&&((Ce=(xe=b)[be])===null||Ce===void 0||Ce.call(xe,ie)),(fe=(De=re)[be])===null||fe===void 0||fe.call(De,ie)}const Se=Object.assign(Object.assign({},re),{onMouseEnter:be=>{j(!0),ke("onMouseEnter",be)},onMouseLeave:be=>{j(!1),ke("onMouseLeave",be)},onMouseDown:be=>{I(!0),J(!0),ke("onMouseDown",be)},onFocus:be=>{var ie;I(!0),(ie=b.onFocus)===null||ie===void 0||ie.call(b,be),ke("onFocus",be,!0)},onBlur:be=>{var ie;I(!1),(ie=b.onBlur)===null||ie===void 0||ie.call(b,be),ke("onBlur",be,!0)}}),Me=ae.cloneElement(le,Se),Pe=(!!H||z)&&V!==null;return se?Me:ae.createElement(Dm,Object.assign({},_,{prefixCls:y("tooltip",A??s),title:V?V(pe.value):"",value:pe.value,open:Pe,placement:Z(W??p,x),key:Ne,classNames:{root:`${G}-tooltip`},getPopupContainer:R||f||E}),Me)}),ge=se?(le,pe)=>{const Ne=ae.cloneElement(le,{style:Object.assign(Object.assign({},le.props.style),{visibility:"hidden"})});return ae.createElement(Dm,Object.assign({},_,{prefixCls:y("tooltip",A??s),title:V?V(pe.value):"",open:V!==null&&z,placement:Z(W??p,x),key:"tooltip",classNames:{root:`${G}-tooltip`},getPopupContainer:R||f||E,draggingDelete:pe.draggingDelete}),Ne)}:void 0,ve=Object.assign(Object.assign(Object.assign(Object.assign({},k.root),S),m==null?void 0:m.root),i),ue=Object.assign(Object.assign({},k.tracks),m==null?void 0:m.tracks),we=ce($.tracks,g==null?void 0:g.tracks);return X(ae.createElement(zP,Object.assign({},b,{classNames:Object.assign({handle:ce($.handle,g==null?void 0:g.handle),rail:ce($.rail,g==null?void 0:g.rail),track:ce($.track,g==null?void 0:g.track)},we?{tracks:we}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},k.handle),m==null?void 0:m.handle),rail:Object.assign(Object.assign({},k.rail),m==null?void 0:m.rail),track:Object.assign(Object.assign({},k.track),m==null?void 0:m.track)},Object.keys(ue).length?{tracks:ue}:{}),step:b.step,range:r,className:ee,style:ve,disabled:M,ref:t,prefixCls:G,handleRender:de,activeHandleRender:ge,onChangeComplete:Y})))});var GP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},QP=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:GP}))},ab=u.forwardRef(QP),ZP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},JP=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:ZP}))},ib=u.forwardRef(JP),eR={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},tR=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:eR}))},nR=u.forwardRef(tR);function rR(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function oR(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function lb(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=qv(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[u.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[aR,iR]=["week","WeekPicker"],[lR,sR]=["month","MonthPicker"],[cR,uR]=["year","YearPicker"],[dR,fR]=["quarter","QuarterPicker"],[au,Am]=["time","TimePicker"],pR=e=>u.createElement(Ml,Object.assign({size:"small",type:"primary"},e));function sb(e){return En(()=>Object.assign({button:pR},e),[e])}function cb(e,...t){const n=e||{};return t.reduce((r,o)=>(Object.keys(o||{}).forEach(a=>{const i=n[a],l=o[a];if(i&&typeof i=="object")if(l&&typeof l=="object")r[a]=cb(i,r[a],l);else{const{_default:s}=i;s&&(r[a]=r[a]||{},r[a][s]=ce(r[a][s],l))}else r[a]=ce(r[a],l)}),r),{})}function mR(e,...t){return u.useMemo(()=>cb.apply(void 0,[e].concat(t)),[t,e])}function gR(...e){return u.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function iu(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],a=n[r]||{};n[r]=o?iu(a,o):a}}),n}function hR(e,t,n){const r=mR.apply(void 0,[n].concat($e(e))),o=gR.apply(void 0,$e(t));return u.useMemo(()=>[iu(r,n),iu(o,n)],[r,o,n])}const ub=(e,t,n,r,o)=>{const{classNames:a,styles:i}=Mr(e),[l,s]=hR([a,t],[i,n],{popup:{_default:"root"}});return u.useMemo(()=>{var c,d;const f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:ce((c=l.popup)===null||c===void 0?void 0:c.root,r)})}),p=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Object.assign(Object.assign({},(d=s.popup)===null||d===void 0?void 0:d.root),o)})});return[f,p]},[l,s,r,o])};var vR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bR=e=>dr((n,r)=>{var o;const{prefixCls:a,getPopupContainer:i,components:l,className:s,style:c,placement:d,size:f,disabled:p,bordered:v=!0,placeholder:h,popupStyle:g,popupClassName:m,dropdownClassName:b,status:x,rootClassName:y,variant:w,picker:C,styles:S,classNames:$}=n,k=vR(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),E=C===au?"timePicker":"datePicker",O=u.useRef(null),{getPrefixCls:M,direction:N,getPopupContainer:T,rangePicker:P}=Gt(Ct),D=M("picker",a),{compactSize:j,compactItemClassnames:B}=Jr(D,N),I=M(),[_,L]=oa("rangePicker",w,v),W=qn(D),[R,A,F]=G0(D,W),[H,z]=ub(E,$,S,m||b,g),[V]=lb(n,D),K=sb(l),J=or(ve=>{var ue;return(ue=f??j)!==null&&ue!==void 0?ue:ve}),Y=u.useContext(jn),Z=p??Y,G=Gt(Cn),{hasFeedback:X,status:ne,feedbackIcon:te}=G,ee=u.createElement(u.Fragment,null,C===au?u.createElement(ib,null):u.createElement(ab,null),X&&te);Zo(r,()=>O.current);const[se]=xo("Calendar",Vi),de=Object.assign(Object.assign({},se),n.locale),[ge]=yl("DatePicker",(o=z.popup.root)===null||o===void 0?void 0:o.zIndex);return R(u.createElement(Yr,{space:!0},u.createElement(aj,Object.assign({separator:u.createElement("span",{"aria-label":"to",className:`${D}-separator`},u.createElement(nR,null)),disabled:Z,ref:O,placement:d,placeholder:oR(de,C,h),suffixIcon:ee,prevIcon:u.createElement("span",{className:`${D}-prev-icon`}),nextIcon:u.createElement("span",{className:`${D}-next-icon`}),superPrevIcon:u.createElement("span",{className:`${D}-super-prev-icon`}),superNextIcon:u.createElement("span",{className:`${D}-super-next-icon`}),transitionName:`${I}-slide-up`,picker:C},k,{className:ce({[`${D}-${J}`]:J,[`${D}-${_}`]:L},Xr(D,Eo(ne,x),X),A,B,s,P==null?void 0:P.className,F,W,y,H.root),style:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),c),z.root),locale:de.lang,prefixCls:D,getPopupContainer:i||T,generateConfig:e,components:K,direction:N,classNames:{popup:ce(A,F,W,y,H.popup.root)},styles:{popup:Object.assign(Object.assign({},z.popup.root),{zIndex:ge})},allowClear:V}))))});var yR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xR=e=>{const t=(s,c)=>{const d=c===Am?"timePicker":"datePicker";return dr((p,v)=>{var h;const{prefixCls:g,getPopupContainer:m,components:b,style:x,className:y,rootClassName:w,size:C,bordered:S,placement:$,placeholder:k,popupStyle:E,popupClassName:O,dropdownClassName:M,disabled:N,status:T,variant:P,onCalendarChange:D,styles:j,classNames:B}=p,I=yR(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:_,direction:L,getPopupContainer:W,[d]:R}=Gt(Ct),A=_("picker",g),{compactSize:F,compactItemClassnames:H}=Jr(A,L),z=u.useRef(null),[V,K]=oa("datePicker",P,S),J=qn(A),[Y,Z,G]=G0(A,J);Zo(v,()=>z.current);const X={showToday:!0},ne=s||p.picker,te=_(),{onSelect:ee,multiple:se}=I,de=ee&&s==="time"&&!se,ge=(De,fe,Ge)=>{D==null||D(De,fe,Ge),de&&ee(De)},[ve,ue]=ub(d,B,j,O||M,E),[we,le]=lb(p,A),pe=sb(b),Ne=or(De=>{var fe;return(fe=C??F)!==null&&fe!==void 0?fe:De}),re=u.useContext(jn),ke=N??re,Se=Gt(Cn),{hasFeedback:Me,status:Pe,feedbackIcon:be}=Se,ie=u.createElement(u.Fragment,null,ne==="time"?u.createElement(ib,null):u.createElement(ab,null),Me&&be),[ye]=xo("DatePicker",Vi),xe=Object.assign(Object.assign({},ye),p.locale),[Ce]=yl("DatePicker",(h=ue.popup.root)===null||h===void 0?void 0:h.zIndex);return Y(u.createElement(Yr,{space:!0},u.createElement(dj,Object.assign({ref:z,placeholder:rR(xe,ne,k),suffixIcon:ie,placement:$,prevIcon:u.createElement("span",{className:`${A}-prev-icon`}),nextIcon:u.createElement("span",{className:`${A}-next-icon`}),superPrevIcon:u.createElement("span",{className:`${A}-super-prev-icon`}),superNextIcon:u.createElement("span",{className:`${A}-super-next-icon`}),transitionName:`${te}-slide-up`,picker:s,onCalendarChange:ge},X,I,{locale:xe.lang,className:ce({[`${A}-${Ne}`]:Ne,[`${A}-${V}`]:K},Xr(A,Eo(Pe,T),Me),Z,H,R==null?void 0:R.className,y,G,J,w,ve.root),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),x),ue.root),prefixCls:A,getPopupContainer:m||W,generateConfig:e,components:pe,direction:L,disabled:ke,classNames:{popup:ce(Z,G,J,w,ve.popup.root)},styles:{popup:Object.assign(Object.assign({},ue.popup.root),{zIndex:Ce})},allowClear:we,removeIcon:le}))))})},n=t(),r=t(aR,iR),o=t(lR,sR),a=t(cR,uR),i=t(dR,fR),l=t(au,Am);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:l,QuarterPicker:i}},db=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:a,QuarterPicker:i}=xR(e),l=bR(e),s=t;return s.WeekPicker=n,s.MonthPicker=r,s.YearPicker=o,s.RangePicker=l,s.TimePicker=a,s.QuarterPicker=i,s},ca=db(pI),CR=ad(ca,"popupAlign",void 0,"picker");ca._InternalPanelDoNotUseOrYouWillBeFired=CR;const wR=ad(ca.RangePicker,"popupAlign",void 0,"picker");ca._InternalRangePanelDoNotUseOrYouWillBeFired=wR;ca.generatePicker=db;function ER(e){return e==null?null:typeof e=="object"&&!Jm(e)?e:{title:e}}function rl(e){const[t,n]=u.useState(e);return u.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const SR=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
333
|
+
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
334
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},$R=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${me(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Tm=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},kR=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},en(e)),$R(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Tm(e,e.controlHeightSM)),"&-large":Object.assign({},Tm(e,e.controlHeightLG))})}},OR=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},en(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
335
|
+
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Zu,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ao=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),NR=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
|
|
336
|
+
${t}-col-xl-24${n}-label`]:ao(e)}}},MR=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
337
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},IR=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ao(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},jR=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
338
|
+
${r}-col-24${n}-label,
|
|
339
|
+
${r}-col-xl-24${n}-label`]:ao(e)},[`@media (max-width: ${me(e.screenXSMax)})`]:[IR(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ao(e)}}}],[`@media (max-width: ${me(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ao(e)}}},[`@media (max-width: ${me(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ao(e)}}},[`@media (max-width: ${me(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ao(e)}}}}},PR=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),fb=(e,t)=>At(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Md=un("Form",(e,{rootPrefixCls:t})=>{const n=fb(e,t);return[kR(n),OR(n),SR(n),NR(n),MR(n),jR(n),C$(n),Zu]},PR,{order:-1e3}),Fm=[];function Ps(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const pb=({help:e,helpStatus:t,errors:n=Fm,warnings:r=Fm,className:o,fieldId:a,onVisibleChanged:i})=>{const{prefixCls:l}=u.useContext(od),s=`${l}-item-explain`,c=qn(l),[d,f,p]=Md(l,c),v=u.useMemo(()=>dp(l),[l]),h=rl(n),g=rl(r),m=u.useMemo(()=>e!=null?[Ps(e,"help",t)]:[].concat($e(h.map((y,w)=>Ps(y,"error","error",w))),$e(g.map((y,w)=>Ps(y,"warning","warning",w)))),[e,t,h,g]),b=u.useMemo(()=>{const y={};return m.forEach(({key:w})=>{y[w]=(y[w]||0)+1}),m.map((w,C)=>Object.assign(Object.assign({},w),{key:y[w.key]>1?`${w.key}-fallback-${C}`:w.key}))},[m]),x={};return a&&(x.id=`${a}_help`),d(u.createElement(Co,{motionDeadline:v.motionDeadline,motionName:`${l}-show-help`,visible:!!b.length,onVisibleChanged:i},y=>{const{className:w,style:C}=y;return u.createElement("div",Object.assign({},x,{className:ce(s,w,p,c,o,f),style:C}),u.createElement(Fh,Object.assign({keys:b},dp(l),{motionName:`${l}-show-help-item`,component:!1}),S=>{const{key:$,error:k,errorStatus:E,className:O,style:M}=S;return u.createElement("div",{key:$,className:ce(O,{[`${s}-${E}`]:E}),style:M},k)}))}))};var RR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const DR=(e,t)=>{const n=u.useContext(jn),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:l,className:s,style:c}=Mr("form"),{prefixCls:d,className:f,rootClassName:p,size:v,disabled:h=n,form:g,colon:m,labelAlign:b,labelWrap:x,labelCol:y,wrapperCol:w,hideRequiredMark:C,layout:S="horizontal",scrollToFirstError:$,requiredMark:k,onFinishFailed:E,name:O,style:M,feedbackIcons:N,variant:T}=e,P=RR(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),D=or(v),j=u.useContext(dh),B=u.useMemo(()=>k!==void 0?k:C?!1:a!==void 0?a:!0,[C,k,a]),I=m??i,_=r("form",d),L=qn(_),[W,R,A]=Md(_,L),F=ce(_,`${_}-${S}`,{[`${_}-hide-required-mark`]:B===!1,[`${_}-rtl`]:o==="rtl",[`${_}-${D}`]:D},A,L,R,s,f,p),[H]=B0(g),{__INTERNAL__:z}=H;z.name=O;const V=u.useMemo(()=>({name:O,labelAlign:b,labelCol:y,labelWrap:x,wrapperCol:w,layout:S,colon:I,requiredMark:B,itemRef:z.itemRef,form:H,feedbackIcons:N}),[O,b,y,w,S,I,B,H,N]),K=u.useRef(null);u.useImperativeHandle(t,()=>{var Z;return Object.assign(Object.assign({},H),{nativeElement:(Z=K.current)===null||Z===void 0?void 0:Z.nativeElement})});const J=(Z,G)=>{if(Z){let X={block:"nearest"};typeof Z=="object"&&(X=Object.assign(Object.assign({},X),Z)),H.scrollToField(G,X)}},Y=Z=>{if(E==null||E(Z),Z.errorFields.length){const G=Z.errorFields[0].name;if($!==void 0){J($,G);return}l!==void 0&&J(l,G)}};return W(u.createElement(Ev.Provider,{value:T},u.createElement(bh,{disabled:h},u.createElement(mo.Provider,{value:D},u.createElement(Cv,{validateMessages:j},u.createElement(Or.Provider,{value:V},u.createElement(wv,{status:!0},u.createElement(na,Object.assign({id:O},P,{name:O,onFinishFailed:Y,form:H,ref:K,style:Object.assign(Object.assign({},c),M),className:F})))))))))},AR=u.forwardRef(DR);function TR(e){if(typeof e=="function")return e;const t=Yo(e);return t.length<=1?t[0]:t}const mb=()=>{const{status:e,errors:t=[],warnings:n=[]}=u.useContext(Cn);return{status:e,errors:t,warnings:n}};mb.Context=Cn;function FR(e){const[t,n]=u.useState(e),r=u.useRef(null),o=u.useRef([]),a=u.useRef(!1);u.useEffect(()=>(a.current=!1,()=>{a.current=!0,ft.cancel(r.current),r.current=null}),[]);function i(l){a.current||(r.current===null&&(o.current=[],r.current=ft(()=>{r.current=null,n(s=>{let c=s;return o.current.forEach(d=>{c=d(c)}),c})})),o.current.push(l))}return[t,i]}function HR(){const{itemRef:e}=u.useContext(Or),t=u.useRef({});function n(r,o){const a=o&&typeof o=="object"&&Xa(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=nr(e(r),a)),t.current.ref}return n}const BR=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},zR=hl(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=fb(e,t);return BR(n)});var _R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const LR=24,WR=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:l,_internalItemRender:s,extra:c,help:d,fieldId:f,marginBottom:p,onErrorVisibleChanged:v,label:h}=e,g=`${t}-item`,m=u.useContext(Or),b=u.useMemo(()=>{let P=Object.assign({},o||m.wrapperCol||{});return h===null&&!r&&!o&&m.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(D=>{const j=D?[D]:[],B=er(m.labelCol,j),I=typeof B=="object"?B:{},_=er(P,j),L=typeof _=="object"?_:{};"span"in I&&!("offset"in L)&&I.span<LR&&(P=Jn(P,[].concat(j,["offset"]),I.span))}),P},[o,m.wrapperCol,m.labelCol,h,r]),x=ce(`${g}-control`,b.className),y=u.useMemo(()=>_R(m,["labelCol","wrapperCol"]),[m]),w=u.useRef(null),[C,S]=u.useState(0);Et(()=>{c&&w.current?S(w.current.clientHeight):S(0)},[c]);const $=u.createElement("div",{className:`${g}-control-input`},u.createElement("div",{className:`${g}-control-input-content`},a)),k=u.useMemo(()=>({prefixCls:t,status:n}),[t,n]),E=p!==null||i.length||l.length?u.createElement(od.Provider,{value:k},u.createElement(pb,{fieldId:f,errors:i,warnings:l,help:d,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:v})):null,O={};f&&(O.id=`${f}_extra`);const M=c?u.createElement("div",Object.assign({},O,{className:`${g}-extra`,ref:w}),c):null,N=E||M?u.createElement("div",{className:`${g}-additional`,style:p?{minHeight:p+C}:{}},E,M):null,T=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:$,errorList:E,extra:M}):u.createElement(u.Fragment,null,$,N);return u.createElement(Or.Provider,{value:y},u.createElement(tl,Object.assign({},b,{className:x}),T),u.createElement(zR,{prefixCls:t}))};var VR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},KR=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:VR}))},qR=u.forwardRef(KR),YR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XR=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:l,tooltip:s,vertical:c})=>{var d;const[f]=xo("Form"),{labelAlign:p,labelCol:v,labelWrap:h,colon:g}=u.useContext(Or);if(!t)return null;const m=r||v||{},b=o||p,x=`${e}-item-label`,y=ce(x,b==="left"&&`${x}-left`,m.className,{[`${x}-wrap`]:!!h});let w=t;const C=a===!0||g!==!1&&a!==!1;C&&!c&&typeof t=="string"&&t.trim()&&(w=t.replace(/[:|:]\s*$/,""));const S=ER(s);if(S){const{icon:N=u.createElement(qR,null)}=S,T=YR(S,["icon"]),P=u.createElement(Pl,Object.assign({},T),u.cloneElement(N,{className:`${e}-item-tooltip`,title:"",onClick:D=>{D.preventDefault()},tabIndex:null}));w=u.createElement(u.Fragment,null,w,P)}const $=l==="optional",k=typeof l=="function",E=l===!1;k?w=l(w,{required:!!i}):$&&!i&&(w=u.createElement(u.Fragment,null,w,u.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Kr.Form)===null||d===void 0?void 0:d.optional))));let O;E?O="hidden":($||k)&&(O="optional");const M=ce({[`${e}-item-required`]:i,[`${e}-item-required-mark-${O}`]:O,[`${e}-item-no-colon`]:!C});return u.createElement(tl,Object.assign({},m,{className:y}),u.createElement("label",{htmlFor:n,className:M,title:typeof t=="string"?t:""},w))},UR={success:Kh,warning:qh,error:bl,validating:Qa};function gb({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:l,name:s}){const c=`${a}-item`,{feedbackIcons:d}=u.useContext(Or),f=H0(t,n,i,null,!!r,o),{isFormItemInput:p,status:v,hasFeedback:h,feedbackIcon:g,name:m}=u.useContext(Cn),b=u.useMemo(()=>{var x;let y;if(r){const C=r!==!0&&r.icons||d,S=f&&((x=C==null?void 0:C({status:f,errors:t,warnings:n}))===null||x===void 0?void 0:x[f]),$=f?UR[f]:null;y=S!==!1&&$?u.createElement("span",{className:ce(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},S||u.createElement($,null)):null}const w={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:y,isFormItemInput:!0,name:s};return l&&(w.status=(f??v)||"",w.isFormItemInput=p,w.hasFeedback=!!(r??h),w.feedbackIcon=r!==void 0?w.feedbackIcon:g,w.name=s??m),w},[f,r,l,p,v]);return u.createElement(Cn.Provider,{value:b},e)}var GR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function QR(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:l,validateStatus:s,meta:c,hasFeedback:d,hidden:f,children:p,fieldId:v,required:h,isRequired:g,onSubItemMetaChange:m,layout:b,name:x}=e,y=GR(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),w=`${t}-item`,{requiredMark:C,layout:S}=u.useContext(Or),$=b||S,k=$==="vertical",E=u.useRef(null),O=rl(i),M=rl(l),N=a!=null,T=!!(N||i.length||l.length),P=!!E.current&&Cl(E.current),[D,j]=u.useState(null);Et(()=>{if(T&&E.current){const L=getComputedStyle(E.current);j(Number.parseInt(L.marginBottom,10))}},[T,P]);const B=L=>{L||j(null)},I=((L=!1)=>{const W=L?O:c.errors,R=L?M:c.warnings;return H0(W,R,c,"",!!d,s)})(),_=ce(w,n,r,{[`${w}-with-help`]:N||O.length||M.length,[`${w}-has-feedback`]:I&&d,[`${w}-has-success`]:I==="success",[`${w}-has-warning`]:I==="warning",[`${w}-has-error`]:I==="error",[`${w}-is-validating`]:I==="validating",[`${w}-hidden`]:f,[`${w}-${$}`]:$});return u.createElement("div",{className:_,style:o,ref:E},u.createElement(Z0,Object.assign({className:`${w}-row`},Er(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),u.createElement(XR,Object.assign({htmlFor:v},e,{requiredMark:C,required:h??g,prefixCls:t,vertical:k})),u.createElement(WR,Object.assign({},e,c,{errors:O,warnings:M,prefixCls:t,status:I,help:a,marginBottom:D,onErrorVisibleChanged:B}),u.createElement(xv.Provider,{value:m},u.createElement(gb,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:d,validateStatus:I,name:x},p)))),!!D&&u.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-D}}))}const ZR="__SPLIT__";function JR(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const e5=u.memo(({children:e})=>e,(e,t)=>JR(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Hm(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function t5(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:l,children:s,required:c,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:v,hidden:h,help:g,layout:m}=e,{getPrefixCls:b}=u.useContext(Ct),{name:x}=u.useContext(Or),y=TR(s),w=typeof y=="function",C=u.useContext(xv),{validateTrigger:S}=u.useContext(ho),$=v!==void 0?v:S,k=t!=null,E=b("form",a),O=qn(E),[M,N,T]=Md(E,O);ml();const P=u.useContext(_a),D=u.useRef(null),[j,B]=FR({}),[I,_]=Qo(()=>Hm()),L=V=>{const K=P==null?void 0:P.getKey(V.name);if(_(V.destroy?Hm():V,!0),n&&g!==!1&&C){let J=V.name;if(V.destroy)J=D.current||J;else if(K!==void 0){const[Y,Z]=K;J=[Y].concat($e(Z)),D.current=J}C(V,J)}},W=(V,K)=>{B(J=>{const Y=Object.assign({},J),Z=[].concat($e(V.name.slice(0,-1)),$e(K)).join(ZR);return V.destroy?delete Y[Z]:Y[Z]=V,Y})},[R,A]=u.useMemo(()=>{const V=$e(I.errors),K=$e(I.warnings);return Object.values(j).forEach(J=>{V.push.apply(V,$e(J.errors||[])),K.push.apply(K,$e(J.warnings||[]))}),[V,K]},[j,I.errors,I.warnings]),F=HR();function H(V,K,J){return n&&!h?u.createElement(gb,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:I,errors:R,warnings:A,noStyle:!0,name:t},V):u.createElement(QR,Object.assign({key:"row"},e,{className:ce(r,T,O,N),prefixCls:E,fieldId:K,isRequired:J,errors:R,warnings:A,meta:I,onSubItemMetaChange:W,layout:m,name:t}),V)}if(!k&&!w&&!o)return M(H(y));let z={};return typeof d=="string"?z.label=d:t&&(z.label=String(t)),f&&(z=Object.assign(Object.assign({},z),f)),M(u.createElement(nd,Object.assign({},e,{messageVariables:z,trigger:p,validateTrigger:$,onMetaChange:L}),(V,K,J)=>{const Y=Ma(t).length&&K?K.name:[],Z=F0(Y,x),G=c!==void 0?c:!!(l!=null&&l.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const ee=te(J);return(ee==null?void 0:ee.required)&&!(ee!=null&&ee.warningOnly)}return!1})),X=Object.assign({},V);let ne=null;if(Array.isArray(y)&&k)ne=y;else if(!(w&&(!(i||o)||k))){if(!(o&&!w&&!k))if(u.isValidElement(y)){const te=Object.assign(Object.assign({},y.props),X);if(te.id||(te.id=Z),g||R.length>0||A.length>0||e.extra){const se=[];(g||R.length>0)&&se.push(`${Z}_help`),e.extra&&se.push(`${Z}_extra`),te["aria-describedby"]=se.join(" ")}R.length>0&&(te["aria-invalid"]="true"),G&&(te["aria-required"]="true"),Jo(y)&&(te.ref=F(Y,y)),new Set([].concat($e(Ma(p)),$e(Ma($)))).forEach(se=>{te[se]=(...de)=>{var ge,ve,ue,we,le;(ue=X[se])===null||ue===void 0||(ge=ue).call.apply(ge,[X].concat(de)),(le=(we=y.props)[se])===null||le===void 0||(ve=le).call.apply(ve,[we].concat(de))}});const ee=[te["aria-required"],te["aria-invalid"],te["aria-describedby"]];ne=u.createElement(e5,{control:X,update:y,childProps:ee},qr(y,te))}else w&&(i||o)&&!k?ne=y(J):ne=y}return H(ne,Z,G)}))}const hb=t5;hb.useStatus=mb;var n5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const r5=e=>{var{prefixCls:t,children:n}=e,r=n5(e,["prefixCls","children"]);const{getPrefixCls:o}=u.useContext(Ct),a=o("form",t),i=u.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return u.createElement(hv,Object.assign({},r),(l,s,c)=>u.createElement(od.Provider,{value:i},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),s,{errors:c.errors,warnings:c.warnings})))};function o5(){const{form:e}=u.useContext(Or);return e}const sn=AR;sn.Item=hb;sn.List=r5;sn.ErrorList=pb;sn.useForm=B0;sn.useFormInstance=o5;sn.useWatch=yv;sn.Provider=Cv;sn.create=()=>{};var a5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},i5=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:a5}))},l5=u.forwardRef(i5);const s5=e=>{const{getPrefixCls:t,direction:n}=Gt(Ct),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,s,c]=U0(i),d=ce(a,c,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},s,o),f=Gt(Cn),p=En(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(u.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(Cn.Provider,{value:p},e.children)))},c5=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},u5=un(["Input","OTP"],e=>{const t=At(e,la(e));return c5(t)},sa);var d5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const f5=u.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:l}=e,s=d5(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=u.useContext(Ct),d=c("otp"),f=typeof l=="string"?l:r,p=u.useRef(null);u.useImperativeHandle(t,()=>p.current);const v=m=>{o(i,m.target.value)},h=()=>{ft(()=>{var m;const b=(m=p.current)===null||m===void 0?void 0:m.input;document.activeElement===b&&b&&b.select()})},g=m=>{const{key:b,ctrlKey:x,metaKey:y}=m;b==="ArrowLeft"?a(i-1):b==="ArrowRight"?a(i+1):b==="z"&&(x||y)?m.preventDefault():b==="Backspace"&&!r&&a(i-1),h()};return u.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&u.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),u.createElement(_l,Object.assign({"aria-label":`OTP Input ${i+1}`,type:l===!0?"password":"text"},s,{ref:p,value:r,onInput:v,onFocus:h,onKeyDown:g,onMouseDown:h,onMouseUp:h,className:ce(n,{[`${d}-mask-input`]:l})})))});var p5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function wi(e){return(e||"").split("")}const m5=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?u.createElement("span",{className:`${n}-separator`},o):null},g5=u.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:l,formatter:s,separator:c,variant:d,disabled:f,status:p,autoFocus:v,mask:h,type:g,onInput:m,inputMode:b}=e,x=p5(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:w}=u.useContext(Ct),C=y("otp",n),S=ur(x,{aria:!0,data:!0,attr:!0}),[$,k,E]=u5(C),O=or(F=>o??F),M=u.useContext(Cn),N=Eo(M.status,p),T=u.useMemo(()=>Object.assign(Object.assign({},M),{status:N,hasFeedback:!1,feedbackIcon:null}),[M,N]),P=u.useRef(null),D=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var F;(F=D.current[0])===null||F===void 0||F.focus()},blur:()=>{var F;for(let H=0;H<r;H+=1)(F=D.current[H])===null||F===void 0||F.blur()},nativeElement:P.current}));const j=F=>s?s(F):F,[B,I]=u.useState(()=>wi(j(a||"")));u.useEffect(()=>{i!==void 0&&I(wi(i))},[i]);const _=yt(F=>{I(F),m&&m(F),l&&F.length===r&&F.every(H=>H)&&F.some((H,z)=>B[z]!==H)&&l(F.join(""))}),L=yt((F,H)=>{let z=$e(B);for(let K=0;K<F;K+=1)z[K]||(z[K]="");H.length<=1?z[F]=H:z=z.slice(0,F).concat(wi(H)),z=z.slice(0,r);for(let K=z.length-1;K>=0&&!z[K];K-=1)z.pop();const V=j(z.map(K=>K||" ").join(""));return z=wi(V).map((K,J)=>K===" "&&!z[J]?z[J]:K),z}),W=(F,H)=>{var z;const V=L(F,H),K=Math.min(F+H.length,r-1);K!==F&&V[F]!==void 0&&((z=D.current[K])===null||z===void 0||z.focus()),_(V)},R=F=>{var H;(H=D.current[F])===null||H===void 0||H.focus()},A={variant:d,disabled:f,status:N,mask:h,type:g,inputMode:b};return $(u.createElement("div",Object.assign({},S,{ref:P,className:ce(C,{[`${C}-sm`]:O==="small",[`${C}-lg`]:O==="large",[`${C}-rtl`]:w==="rtl"},E,k),role:"group"}),u.createElement(Cn.Provider,{value:T},Array.from({length:r}).map((F,H)=>{const z=`otp-${H}`,V=B[H]||"";return u.createElement(u.Fragment,{key:z},u.createElement(f5,Object.assign({ref:K=>{D.current[H]=K},index:H,size:O,htmlSize:1,className:`${C}-input`,onChange:W,value:V,onActiveChange:R,autoFocus:H===0&&v},A)),H<r-1&&u.createElement(m5,{separator:c,index:H,prefixCls:C}))}))))});var h5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},v5=function(e,t){return u.createElement(vn,Te({},e,{ref:t,icon:h5}))},b5=u.forwardRef(v5),y5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const x5=e=>e?u.createElement(l5,null):u.createElement(b5,null),C5={click:"onClick",hover:"onMouseOver"},w5=u.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=x5,suffix:i}=e,l=u.useContext(jn),s=n??l,c=typeof o=="object"&&o.visible!==void 0,[d,f]=Pt(()=>c?o.visible:!1),p=qe(null);u.useEffect(()=>{c&&f(o.visible)},[c,o]);const v=rb(p),h=()=>{var M;if(s)return;d&&v();const N=!d;f(N),typeof o=="object"&&((M=o.onVisibleChange)===null||M===void 0||M.call(o,N))},g=M=>{const N=C5[r]||"",T=a(d),P={[N]:h,className:`${M}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return u.cloneElement(u.isValidElement(T)?T:u.createElement("span",null,T),P)},{className:m,prefixCls:b,inputPrefixCls:x,size:y}=e,w=y5(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=u.useContext(Ct),S=C("input",x),$=C("input-password",b),k=o&&g($),E=ce($,m,{[`${$}-${y}`]:!!y}),O=Object.assign(Object.assign({},Er(w,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:E,prefixCls:S,suffix:u.createElement(u.Fragment,null,k,i)});return y&&(O.size=y),u.createElement(_l,Object.assign({ref:nr(t,p)},O))});var E5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const S5=u.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:l=!1,addonAfter:s,loading:c,disabled:d,onSearch:f,onChange:p,onCompositionStart:v,onCompositionEnd:h,variant:g,onPressEnter:m}=e,b=E5(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:x,direction:y}=u.useContext(Ct),w=u.useRef(!1),C=x("input-search",n),S=x("input",r),{compactSize:$}=Jr(C,y),k=or(A=>{var F;return(F=a??$)!==null&&F!==void 0?F:A}),E=u.useRef(null),O=A=>{A!=null&&A.target&&A.type==="click"&&f&&f(A.target.value,A,{source:"clear"}),p==null||p(A)},M=A=>{var F;document.activeElement===((F=E.current)===null||F===void 0?void 0:F.input)&&A.preventDefault()},N=A=>{var F,H;f&&f((H=(F=E.current)===null||F===void 0?void 0:F.input)===null||H===void 0?void 0:H.value,A,{source:"input"})},T=A=>{w.current||c||(m==null||m(A),N(A))},P=typeof l=="boolean"?u.createElement(Kv,null):null,D=`${C}-button`;let j;const B=l||{},I=B.type&&B.type.__ANT_BUTTON===!0;I||B.type==="button"?j=qr(B,Object.assign({onMouseDown:M,onClick:A=>{var F,H;(H=(F=B==null?void 0:B.props)===null||F===void 0?void 0:F.onClick)===null||H===void 0||H.call(F,A),N(A)},key:"enterButton"},I?{className:D,size:k}:{})):j=u.createElement(Ml,{className:D,color:l?"primary":"default",size:k,disabled:d,key:"enterButton",onMouseDown:M,onClick:N,loading:c,icon:P,variant:g==="borderless"||g==="filled"||g==="underlined"?"text":l?"solid":void 0},l),s&&(j=[j,qr(s,{key:"addonAfter"})]);const _=ce(C,{[`${C}-rtl`]:y==="rtl",[`${C}-${k}`]:!!k,[`${C}-with-button`]:!!l},o),L=A=>{w.current=!0,v==null||v(A)},W=A=>{w.current=!1,h==null||h(A)},R=Object.assign(Object.assign({},b),{className:_,prefixCls:S,type:"search",size:k,variant:g,onPressEnter:T,onCompositionStart:L,onCompositionEnd:W,addonAfter:j,suffix:i,onChange:O,disabled:d});return u.createElement(_l,Object.assign({ref:nr(E,t)},R))});var $5=`
|
|
340
|
+
min-height:0 !important;
|
|
341
|
+
max-height:none !important;
|
|
342
|
+
height:0 !important;
|
|
343
|
+
visibility:hidden !important;
|
|
344
|
+
overflow:hidden !important;
|
|
345
|
+
position:absolute !important;
|
|
346
|
+
z-index:-1000 !important;
|
|
347
|
+
top:0 !important;
|
|
348
|
+
right:0 !important;
|
|
349
|
+
pointer-events: none !important;
|
|
350
|
+
`,k5=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Rs={},Vn;function O5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Rs[n])return Rs[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=k5.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Rs[n]=s),s}function N5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Vn||(Vn=document.createElement("textarea"),Vn.setAttribute("tab-index","-1"),Vn.setAttribute("aria-hidden","true"),Vn.setAttribute("name","hiddenTextarea"),document.body.appendChild(Vn)),e.getAttribute("wrap")?Vn.setAttribute("wrap",e.getAttribute("wrap")):Vn.removeAttribute("wrap");var o=O5(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Vn.setAttribute("style","".concat(s,";").concat($5)),Vn.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,p=Vn.scrollHeight;if(l==="border-box"?p+=i:l==="content-box"&&(p-=a),n!==null||r!==null){Vn.value=" ";var v=Vn.scrollHeight-a;n!==null&&(c=v*n,l==="border-box"&&(c=c+a+i),p=Math.max(c,p)),r!==null&&(d=v*r,l==="border-box"&&(d=d+a+i),f=p>d?"":"hidden",p=Math.min(d,p))}var h={height:p,overflowY:f,resize:"none"};return c&&(h.minHeight=c),d&&(h.maxHeight=d),h}var M5=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ds=0,As=1,Ts=2,I5=u.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,i=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=pt(n,M5),v=Jt(o,{value:a,postState:function(R){return R??""}}),h=Q(v,2),g=h[0],m=h[1],b=function(R){m(R.target.value),f==null||f(R)},x=u.useRef();u.useImperativeHandle(t,function(){return{textArea:x.current}});var y=u.useMemo(function(){return i&&Ze(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=Q(y,2),C=w[0],S=w[1],$=!!i,k=u.useState(Ts),E=Q(k,2),O=E[0],M=E[1],N=u.useState(),T=Q(N,2),P=T[0],D=T[1],j=function(){M(Ds)};Et(function(){$&&j()},[a,C,S,$]),Et(function(){if(O===Ds)M(As);else if(O===As){var R=N5(x.current,!1,C,S);M(Ts),D(R)}},[O]);var B=u.useRef(),I=function(){ft.cancel(B.current)},_=function(R){O===Ts&&(l==null||l(R),i&&(I(),B.current=ft(function(){j()})))};u.useEffect(function(){return I},[]);var L=$?P:null,W=U(U({},c),L);return(O===Ds||O===As)&&(W.overflowY="hidden",W.overflowX="hidden"),u.createElement(wr,{onResize:_,disabled:!(i||l)},u.createElement("textarea",Te({},p,{ref:x,style:W,className:ce(r,s,q({},"".concat(r,"-disabled"),d)),disabled:d,value:g,onChange:b})))}),j5=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],P5=ae.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,v=e.prefixCls,h=v===void 0?"rc-textarea":v,g=e.showCount,m=e.count,b=e.className,x=e.style,y=e.disabled,w=e.hidden,C=e.classNames,S=e.styles,$=e.onResize,k=e.onClear,E=e.onPressEnter,O=e.readOnly,M=e.autoSize,N=e.onKeyDown,T=pt(e,j5),P=Jt(r,{value:o,defaultValue:r}),D=Q(P,2),j=D[0],B=D[1],I=j==null?"":String(j),_=ae.useState(!1),L=Q(_,2),W=L[0],R=L[1],A=ae.useRef(!1),F=ae.useState(null),H=Q(F,2),z=H[0],V=H[1],K=qe(null),J=qe(null),Y=function(){var ye;return(ye=J.current)===null||ye===void 0?void 0:ye.textArea},Z=function(){Y().focus()};Zo(t,function(){var ye;return{resizableTextArea:J.current,focus:Z,blur:function(){Y().blur()},nativeElement:((ye=K.current)===null||ye===void 0?void 0:ye.nativeElement)||Y()}}),It(function(){R(function(ye){return!y&&ye})},[y]);var G=ae.useState(null),X=Q(G,2),ne=X[0],te=X[1];ae.useEffect(function(){if(ne){var ye;(ye=Y()).setSelectionRange.apply(ye,$e(ne))}},[ne]);var ee=eb(m,g),se=(n=ee.max)!==null&&n!==void 0?n:c,de=Number(se)>0,ge=ee.strategy(I),ve=!!se&&ge>se,ue=function(ye,xe){var Ce=xe;!A.current&&ee.exceedFormatter&&ee.max&&ee.strategy(xe)>ee.max&&(Ce=ee.exceedFormatter(xe,{max:ee.max}),xe!==Ce&&te([Y().selectionStart||0,Y().selectionEnd||0])),B(Ce),nl(ye.currentTarget,ye,l,Ce)},we=function(ye){A.current=!0,d==null||d(ye)},le=function(ye){A.current=!1,ue(ye,ye.currentTarget.value),f==null||f(ye)},pe=function(ye){ue(ye,ye.target.value)},Ne=function(ye){ye.key==="Enter"&&E&&E(ye),N==null||N(ye)},re=function(ye){R(!0),a==null||a(ye)},ke=function(ye){R(!1),i==null||i(ye)},Se=function(ye){B(""),Z(),nl(Y(),ye,l)},Me=p,Pe;ee.show&&(ee.showFormatter?Pe=ee.showFormatter({value:I,count:ge,maxLength:se}):Pe="".concat(ge).concat(de?" / ".concat(se):""),Me=ae.createElement(ae.Fragment,null,Me,ae.createElement("span",{className:ce("".concat(h,"-data-count"),C==null?void 0:C.count),style:S==null?void 0:S.count},Pe)));var be=function(ye){var xe;$==null||$(ye),(xe=Y())!==null&&xe!==void 0&&xe.style.height&&V(!0)},ie=!M&&!g&&!s;return ae.createElement(Od,{ref:K,value:I,allowClear:s,handleReset:Se,suffix:Me,prefixCls:h,classNames:U(U({},C),{},{affixWrapper:ce(C==null?void 0:C.affixWrapper,q(q({},"".concat(h,"-show-count"),g),"".concat(h,"-textarea-allow-clear"),s))}),disabled:y,focused:W,className:ce(b,ve&&"".concat(h,"-out-of-range")),style:U(U({},x),z&&!ie?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Pe=="string"?Pe:void 0}},hidden:w,readOnly:O,onClear:k},ae.createElement(I5,Te({},T,{autoSize:M,maxLength:c,onKeyDown:Ne,onChange:pe,onFocus:re,onBlur:ke,onCompositionStart:we,onCompositionEnd:le,className:ce(C==null?void 0:C.textarea),style:U(U({},S==null?void 0:S.textarea),{},{resize:x==null?void 0:x.resize}),disabled:y,prefixCls:h,onResize:be,ref:J,readOnly:O})))});const R5=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
351
|
+
&-allow-clear > ${t},
|
|
352
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
353
|
+
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},D5=un(["Input","TextArea"],e=>{const t=At(e,la(e));return R5(t)},sa,{resetFont:!1});var A5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const T5=dr((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:l,allowClear:s,classNames:c,rootClassName:d,className:f,style:p,styles:v,variant:h,showCount:g,onMouseDown:m,onResize:b}=e,x=A5(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:y,direction:w,allowClear:C,autoComplete:S,className:$,style:k,classNames:E,styles:O}=Mr("textArea"),M=u.useContext(jn),N=i??M,{status:T,hasFeedback:P,feedbackIcon:D}=u.useContext(Cn),j=Eo(T,l),B=u.useRef(null);u.useImperativeHandle(t,()=>{var ee;return{resizableTextArea:(ee=B.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:se=>{var de,ge;kd((ge=(de=B.current)===null||de===void 0?void 0:de.resizableTextArea)===null||ge===void 0?void 0:ge.textArea,se)},blur:()=>{var se;return(se=B.current)===null||se===void 0?void 0:se.blur()}}});const I=y("input",r),_=qn(I),[L,W,R]=X0(I,d),[A]=D5(I,_),{compactSize:F,compactItemClassnames:H}=Jr(I,w),z=or(ee=>{var se;return(se=a??F)!==null&&se!==void 0?se:ee}),[V,K]=oa("textArea",h,o),J=nb(s??C),[Y,Z]=u.useState(!1),[G,X]=u.useState(!1),ne=ee=>{Z(!0),m==null||m(ee);const se=()=>{Z(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},te=ee=>{var se,de;if(b==null||b(ee),Y&&typeof getComputedStyle=="function"){const ge=(de=(se=B.current)===null||se===void 0?void 0:se.nativeElement)===null||de===void 0?void 0:de.querySelector("textarea");ge&&getComputedStyle(ge).resize==="both"&&X(!0)}};return L(A(u.createElement(P5,Object.assign({autoComplete:S},x,{style:Object.assign(Object.assign({},k),p),styles:Object.assign(Object.assign({},O),v),disabled:N,allowClear:J,className:ce(R,_,f,d,H,$,G&&`${I}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),E),{textarea:ce({[`${I}-sm`]:z==="small",[`${I}-lg`]:z==="large"},W,c==null?void 0:c.textarea,E.textarea,Y&&`${I}-mouse-active`),variant:ce({[`${I}-${V}`]:K},Xr(I,j)),affixWrapper:ce(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:w==="rtl",[`${I}-affix-wrapper-sm`]:z==="small",[`${I}-affix-wrapper-lg`]:z==="large",[`${I}-textarea-show-count`]:g||((n=e.count)===null||n===void 0?void 0:n.show)},W)}),prefixCls:I,suffix:P&&u.createElement("span",{className:`${I}-textarea-suffix`},D),showCount:g,ref:B,onResize:te,onMouseDown:ne}))))}),bo=_l;bo.Group=s5;bo.Search=S5;bo.TextArea=T5;bo.Password=w5;bo.OTP=g5;let Zn=null,so=e=>e(),Va=[],Ka={};function Bm(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ka,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const F5=ae.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=Gt(Ct),a=Ka.prefixCls||o("message"),i=Gt(T2),[l,s]=tv(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return ae.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(d=>{c[d]=(...f)=>(r(),l[d].apply(l,f))}),{instance:c,sync:r}}),s}),H5=ae.forwardRef((e,t)=>{const[n,r]=ae.useState(Bm),o=()=>{r(Bm)};ae.useEffect(o,[]);const a=FE(),i=a.getRootPrefixCls(),l=a.getIconPrefixCls(),s=a.getTheme(),c=ae.createElement(F5,{ref:t,sync:o,messageConfig:n});return ae.createElement(Zr,{prefixCls:i,iconPrefixCls:l,theme:s},a.holderRender?a.holderRender(c):c)}),Ll=()=>{if(!Zn){const e=document.createDocumentFragment(),t={fragment:e};Zn=t,so(()=>{ov()(ae.createElement(H5,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Ll())})}}),e)});return}Zn.instance&&(Va.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{so(()=>{const r=Zn.instance.open(Object.assign(Object.assign({},Ka),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":so(()=>{Zn==null||Zn.instance.destroy(e.key)});break;default:so(()=>{var r;const o=(r=Zn.instance)[t].apply(r,$e(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Va=[])};function B5(e){Ka=Object.assign(Object.assign({},Ka),e),so(()=>{var t;(t=Zn==null?void 0:Zn.sync)===null||t===void 0||t.call(Zn)})}function z5(e){const t=Vu(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Va.push(o),()=>{r?so(()=>{r()}):o.skipped=!0}});return Ll(),t}function _5(e,t){const n=Vu(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return Va.push(a),()=>{o?so(()=>{o()}):a.skipped=!0}});return Ll(),n}const L5=e=>{Va.push({type:"destroy",key:e}),Ll()},W5=["success","info","warning","error","loading"],V5={open:z5,destroy:L5,config:B5,useMessage:_S,_InternalPanelDoNotUseOrYouWillBeFired:RS},Ai=V5;W5.forEach(e=>{Ai[e]=(...t)=>_5(e,t)});var K5=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],vb=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,v=e.onChange,h=e.onKeyDown,g=pt(e,K5),m=Jt(!1,{value:i,defaultValue:l}),b=Q(m,2),x=b[0],y=b[1];function w(k,E){var O=x;return s||(O=k,y(O),v==null||v(O,E)),O}function C(k){k.which===Qe.LEFT?w(!1,k):k.which===Qe.RIGHT&&w(!0,k),h==null||h(k)}function S(k){var E=w(!x,k);p==null||p(E,k)}var $=ce(o,a,(n={},q(n,"".concat(o,"-checked"),x),q(n,"".concat(o,"-disabled"),s),n));return u.createElement("button",Te({},g,{type:"button",role:"switch","aria-checked":x,disabled:s,className:$,ref:t,onKeyDown:C,onClick:S}),c,u.createElement("span",{className:"".concat(o,"-inner")},u.createElement("span",{className:"".concat(o,"-inner-checked")},d),u.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});vb.displayName="Switch";const q5=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,d=me(s(l).add(s(r).mul(2)).equal()),f=me(s(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:me(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${me(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},Y5=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},X5=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${me(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},U5=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:l}=e,s=`${t}-inner`,c=me(l(i).add(l(r).mul(2)).equal()),d=me(l(a).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},G5=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},en(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:me(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),$h(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Q5=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,l=2,s=a-l*2,c=i-l*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:s*2+l*4,trackMinWidthSM:c*2+l*2,trackPadding:l,handleBg:o,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Ot("#00230b").setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+l+l*2}},Z5=un("Switch",e=>{const t=At(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[G5(t),U5(t),X5(t),Y5(t),q5(t)]},Q5);var J5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const eD=u.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:l,style:s,checked:c,value:d,defaultChecked:f,defaultValue:p,onChange:v}=e,h=J5(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,m]=Jt(!1,{value:c??d,defaultValue:f??p}),{getPrefixCls:b,direction:x,switch:y}=u.useContext(Ct),w=u.useContext(jn),C=(o??w)||a,S=b("switch",n),$=u.createElement("div",{className:`${S}-handle`},a&&u.createElement(Qa,{className:`${S}-loading-icon`})),[k,E,O]=Z5(S),M=or(r),N=ce(y==null?void 0:y.className,{[`${S}-small`]:M==="small",[`${S}-loading`]:a,[`${S}-rtl`]:x==="rtl"},i,l,E,O),T=Object.assign(Object.assign({},y==null?void 0:y.style),s),P=(...D)=>{m(D[0]),v==null||v.apply(void 0,D)};return k(u.createElement(wl,{component:"Switch",disabled:C},u.createElement(vb,Object.assign({},h,{checked:g,onChange:P,prefixCls:S,className:N,style:T,disabled:C,ref:t,loadingIcon:$}))))}),bb=eD;bb.__ANT_SWITCH=!0;const tD=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),l=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},en(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Id=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return At(e,{tagFontSize:o,tagLineHeight:me(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},jd=e=>({defaultBg:new Ot(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),yb=un("Tag",e=>{const t=Id(e);return tD(t)},jd);var nD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const rD=u.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,children:i,icon:l,onChange:s,onClick:c}=e,d=nD(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:p}=u.useContext(Ct),v=y=>{s==null||s(!a),c==null||c(y)},h=f("tag",n),[g,m,b]=yb(h),x=ce(h,`${h}-checkable`,{[`${h}-checkable-checked`]:a},p==null?void 0:p.className,o,m,b);return g(u.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:x,onClick:v}),l,u.createElement("span",null,i)))}),oD=e=>vl(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),aD=hl(["Tag","preset"],e=>{const t=Id(e);return oD(t)},jd);function iD(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Ei=(e,t,n)=>{const r=iD(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},lD=hl(["Tag","status"],e=>{const t=Id(e);return[Ei(t,"success","Success"),Ei(t,"processing","Info"),Ei(t,"error","Error"),Ei(t,"warning","Warning")]},jd);var sD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cD=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:l,color:s,onClose:c,bordered:d=!0,visible:f}=e,p=sD(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:h,tag:g}=u.useContext(Ct),[m,b]=u.useState(!0),x=Er(p,["closeIcon","closable"]);u.useEffect(()=>{f!==void 0&&b(f)},[f]);const y=jl(s),w=bM(s),C=y||w,S=Object.assign(Object.assign({backgroundColor:s&&!C?s:void 0},g==null?void 0:g.style),a),$=v("tag",n),[k,E,O]=yb($),M=ce($,g==null?void 0:g.className,{[`${$}-${s}`]:C,[`${$}-has-color`]:s&&!C,[`${$}-hidden`]:!m,[`${$}-rtl`]:h==="rtl",[`${$}-borderless`]:!d},r,o,E,O),N=I=>{I.stopPropagation(),c==null||c(I),!I.defaultPrevented&&b(!1)},[,T]=k2(Dp(e),Dp(g),{closable:!1,closeIconRender:I=>{const _=u.createElement("span",{className:`${$}-close-icon`,onClick:N},I);return Xh(I,_,L=>({onClick:W=>{var R;(R=L==null?void 0:L.onClick)===null||R===void 0||R.call(L,W),N(W)},className:ce(L==null?void 0:L.className,`${$}-close-icon`)}))}}),P=typeof p.onClick=="function"||i&&i.type==="a",D=l||null,j=D?u.createElement(u.Fragment,null,D,i&&u.createElement("span",null,i)):i,B=u.createElement("span",Object.assign({},x,{ref:t,className:M,style:S}),j,T,y&&u.createElement(aD,{key:"preset",prefixCls:$}),w&&u.createElement(lD,{key:"status",prefixCls:$}));return k(P?u.createElement(wl,{component:"Tag"},B):B)}),xb=cD;xb.CheckableTag=rD;function uD(e,t){var r;const n=((r=t==null?void 0:t.theme)==null?void 0:r.icons)||{};switch(e.toLowerCase()){case"docx":case"doc":return n.docx?oe.jsx("img",{src:n.docx,alt:"docx",style:{width:20,height:20}}):oe.jsx(gr,{type:"rag/word",size:18});case"image":case"jpg":case"jpeg":case"png":case"gif":case"bmp":case"webp":case"svg":case"ico":return n.image?oe.jsx("img",{src:n.image,alt:"image",style:{width:20,height:20}}):oe.jsx(gr,{type:"rag/pic",size:18});case"pptx":case"ppt":return n.pptx?oe.jsx("img",{src:n.pptx,alt:"pptx",style:{width:20,height:20}}):oe.jsx(gr,{type:"rag/ppt",size:18});case"sheets":case"excel":case"xls":case"csv":case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xltm":case"xlt":case"xlam":return n.sheets?oe.jsx("img",{src:n.sheets,alt:"sheets",style:{width:20,height:20}}):oe.jsx(gr,{type:"rag/excel",size:18});case"pdf":return n.pdf?oe.jsx("img",{src:n.pdf,alt:"pdf",style:{width:20,height:20}}):oe.jsx(gr,{type:"rag/pdf",size:18});case"txt":return n.txt?oe.jsx("img",{src:n.txt,alt:"txt",style:{width:20,height:20}}):oe.jsx(gr,{type:"rag/txt",size:18});case"md":return n.md?oe.jsx("img",{src:n.md,alt:"txt",style:{width:20,height:20}}):oe.jsx(gr,{type:"rag/document",size:18});case"json":return n.json?oe.jsx("img",{src:n.json,alt:"json",style:{width:20,height:20}}):oe.jsx(gr,{type:"rag/json",size:18});case"html":case"htm":return n.html?oe.jsx("img",{src:n.html,alt:"html",style:{width:20,height:20}}):oe.jsx(gr,{type:"rag/url",size:18});case"xml":default:return oe.jsx(gr,{type:"rag/file",size:18})}}const dD=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`:"",fD=({fileName:e,fileSize:t,icon:n,statusText:r,statusColor:o="text-gray-400",statusIcon:a,onRemove:i,themeColors:l={},cardId:s,showRemove:c=!0,disabledRemove:d=!1,onRemoveWithAnim:f,extra:p,style:v})=>oe.jsxs("div",{id:s,className:"group gap-x-2.5 items-center file-display-card relative flex w-[210px] bg-white border border-gray-200 rounded-md shadow-sm px-2 py-1 transition-all hover:shadow-md hover:border-blue-300",style:v,children:[oe.jsx("div",{className:"pt-1",children:n}),oe.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[oe.jsxs("div",{className:"flex items-center justify-between gap-1",children:[oe.jsx("span",{className:"text-[12px] font-medium truncate max-w-[120px]",title:e,children:e}),oe.jsx("span",{className:"ml-1 text-[11px] text-gray-400",children:dD(t)})]}),oe.jsxs("div",{className:`text-[10px] mt-0.5 flex items-center gap-3 ${o}`,children:[a,oe.jsx("span",{children:r})]})]}),p,c&&!d&&oe.jsx("button",{className:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 transition-opacity text-gray-300 hover:text-red-400 text-xs p-0.5 rounded-full bg-white shadow-sm z-10",onClick:()=>{f&&s?f(s):i&&i()},title:"\u79FB\u9664",style:{lineHeight:0,color:l.error||"#FF0000"},children:oe.jsx(pg,{className:"w-3.5 h-3.5"})})]});function pD({uploadedFiles:e,onRemoveFile:t,eventsEmit:n,styles:r}){return It(()=>{e.forEach((o,a)=>{o&&console.log("FilesDisplay currentStatus",o.status)})},[e]),It(()=>{e.length>0&&e.every(o=>o.status==="finished")&&Wt({targets:".file-display-card",opacity:0,scale:.8,delay:Wt.stagger(100),duration:400,easing:"easeOutExpo",complete:()=>{n==null||n("files:finished_animation_complete")}})},[e,n]),oe.jsx("div",{className:"flex overflow-x-auto gap-2 pb-2 px-1",children:e.filter(Boolean).map((o,a)=>{var p,v;if(!o||!o.file)return null;const i=o.name||o.file.name,l=(p=o.file)==null?void 0:p.size;let{status:s}=o;s==="finished"&&(s="done");const c={pending:{text:"\u5F85\u53D1\u9001",icon:null,color:"text-gray-400"},uploading:{text:"\u4E0A\u4F20\u4E2D",icon:oe.jsx(nf,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},parsing:{text:"\u89E3\u6790\u4E2D",icon:oe.jsx(nf,{className:"w-3 h-3 animate-spin"}),color:"text-blue-500"},done:{text:"\u5DF2\u5C31\u7EEA",icon:oe.jsx(M1,{className:"w-3 h-3"}),color:"text-green-500"},error:{text:"\u5931\u8D25",icon:oe.jsx(N1,{className:"w-3 h-3"}),color:"text-red-500"}}[s||"pending"]||{text:"\u672A\u77E5",icon:null,color:"text-gray-400"},d=i.split(".").pop()||"",f=uD(d,r);return oe.jsx(fD,{cardId:`file-card-${a}`,fileName:i,fileSize:l,icon:f,statusText:c.text||"\u672A\u77E5",statusColor:c.color||"text-gray-400",statusIcon:c.icon||null,showRemove:s!=="parsing"&&s!=="uploading",onRemoveWithAnim:h=>{Wt({targets:`#${h}`,opacity:0,scale:.8,duration:300,easing:"easeOutExpo",complete:()=>{t==null||t(a)}})},themeColors:(v=r==null?void 0:r.theme)==null?void 0:v.colors},i+a)})})}function mD({checked:e,onChange:t,icon:n,children:r,styles:o,disabled:a}){var v,h,g,m,b,x,y,w,C,S,$,k,E,O;const i=((h=(v=o==null?void 0:o.theme)==null?void 0:v.colors)==null?void 0:h.primary)||"#00C26A",l=((m=(g=o==null?void 0:o.theme)==null?void 0:g.colors)==null?void 0:m.text)||"#343a40",s=((x=(b=o==null?void 0:o.theme)==null?void 0:b.colors)==null?void 0:x.background)||"#fff",c=((w=(y=o==null?void 0:o.theme)==null?void 0:y.colors)==null?void 0:w.border)||"#dee2e6",d=((S=(C=o==null?void 0:o.theme)==null?void 0:C.colors)==null?void 0:S.disabledBackground)||"#F5F5F5",f=((k=($=o==null?void 0:o.theme)==null?void 0:$.colors)==null?void 0:k.disabledText)||"#808080",p=((O=(E=o==null?void 0:o.theme)==null?void 0:E.colors)==null?void 0:O.disabled)||"#808080";return oe.jsxs("button",{type:"button",onClick:()=>t(!e),disabled:a,className:"flex items-center gap-1 bg-white px-3 py-1 rounded-full border transition-all duration-200 text-xs select-none",style:{borderWidth:1.5,outline:"none",cursor:a?"not-allowed":"pointer",minWidth:0,background:a?d:e?i:"transparent",color:a?f:e?s:l,borderColor:a?p:e?i:c},children:[n,oe.jsx("span",{children:r})]})}function gD({value:e,onChange:t,options:n,styles:r,disabled:o,placeholder:a="\u8BF7\u9009\u62E9"}){var f,p,v,h,g,m,b,x,y,w;const i=((p=(f=r==null?void 0:r.theme)==null?void 0:f.colors)==null?void 0:p.text)||"#343a40",l=((h=(v=r==null?void 0:r.theme)==null?void 0:v.colors)==null?void 0:h.border)||"#dee2e6",s=((m=(g=r==null?void 0:r.theme)==null?void 0:g.colors)==null?void 0:m.disabledBackground)||"#F5F5F5",c=((x=(b=r==null?void 0:r.theme)==null?void 0:b.colors)==null?void 0:x.disabledText)||"#808080",d=((w=(y=r==null?void 0:r.theme)==null?void 0:y.colors)==null?void 0:w.disabled)||"#808080";return oe.jsx("div",{style:{display:"inline-block"},children:oe.jsx(So,{value:e,onChange:t,disabled:o,placeholder:a,size:"small",style:{minWidth:120,fontSize:"12px !important",height:"28px",borderRadius:"14px",border:`1.5px solid ${o?d:l}`,backgroundColor:o?s:"white",color:o?c:i,fontWeight:"500",transition:"all 0.2s ease"},className:"yuanbao-select",styles:{popup:{root:{fontSize:"12px",borderRadius:"8px"}}},options:n})})}function hD({value:e,eventsEmit:t,styles:n,status:r,onUpload:o,onVoice:a,uploadedFiles:i,onRemoveFile:l,senderConfig:s={},recommandQuestions:c=[],fileUploadStatus:d=[]}={}){var H;const{badgeCounts:f}=fx(),p=qe(null),v=s.switchs||[],[h,g]=Pt(()=>{const z={};return v.forEach(V=>{var K,J;V.type==="switch"?z[V.name]=V.defaultValue??!1:V.type==="select"&&(z[V.name]=V.defaultValue??((J=(K=V.options)==null?void 0:K[0])==null?void 0:J.value)??"")}),z});It(()=>{t&&t("sender:configChange",{all:h})},[h]);const[m,b]=Pt(e||"");It(()=>{b(e||"")},[e]);const x=()=>{const z=p.current;if(z){z.style.height="auto";const V=144,K=z.scrollHeight;K<=V?(z.style.height=`${K}px`,z.style.overflowY="hidden"):(z.style.height=`${V}px`,z.style.overflowY="auto")}},y=z=>{b(z.target.value),t&&t("sender:change",z.target.value),x()},w=z=>{z.key==="Enter"&&!z.shiftKey&&(console.log("enter"),z.preventDefault(),t&&t("sender:send"))};It(()=>{x()},[m]),It(()=>{let z;try{z=typeof c=="string"?JSON.parse(c):c}catch{z=[]}},[c]);const C=En(()=>{if(c==null||c==="")return[];if(typeof c=="string")try{const z=JSON.parse(c);return Array.isArray(z)?z:[]}catch{return[]}return Array.isArray(c)?c:[]},[c]),[S,$]=Pt(!1);It(()=>{if(!C||C.length===0){$(!1);return}$(!1),setTimeout(()=>{$(!0)},0)},[C]),It(()=>{if(!S)return;const z=document.querySelectorAll(".recommand-question-btn");z.forEach(V=>{const K=V;K.style.visibility="visible",K.style.opacity="0",K.style.transform="translateY(20px)"}),Wt.remove(z),Wt({targets:z,opacity:[0,1],translateY:[20,0],delay:Wt.stagger(120),duration:400,easing:"easeOutCubic",complete:()=>{z.forEach(V=>{const K=V;K.removeAttribute("style"),K.style.color=W})}})},[S,C]);const k=En(()=>d&&d.length>0?d:i||[],[d,i]),E=En(()=>m&&m.trim().length>0,[m]),O=En(()=>{const z=m&&m.trim().length>0,V=k&&k.length>0;return z||V},[m,k]),M=En(()=>{const z=O?[{icon:oe.jsx(pg,{className:"w-[18px] h-[18px] text-gray-500 group-hover:text-gray-700"}),name:"clear",tip:"\u6E05\u7A7A\u8F93\u5165\u548C\u6587\u4EF6"}]:[],V=(s.actions||[]).map(K=>({...K,badgeCount:f[K.name]??K.badgeCount??0}));return[...z,...V]},[O,s.actions,f]),N=(H=n==null?void 0:n.theme)==null?void 0:H.colors,T=(N==null?void 0:N.primary)||"#007bff",P=(N==null?void 0:N.text)||"#343a40",D=(N==null?void 0:N.background)||"#ffffff",j=(N==null?void 0:N.border)||"#dee2e6",B=(N==null?void 0:N.background)||"#ffffff",I=(N==null?void 0:N.disabled)||"#808080",_=(N==null?void 0:N.disabledBackground)||"#F5F5F5",L=(N==null?void 0:N.error)||"#FF0000",W=(N==null?void 0:N.disabledText)||"#808080",R="rgba(255, 255, 255, 0.9)",A=(N==null?void 0:N.text)||"#000",F="dynamic-placeholder-style";return It(()=>{const z=document.getElementById(F)||document.createElement("style");z.id=F,z.innerHTML=`
|
|
354
|
+
.dynamic-placeholder::placeholder {
|
|
355
|
+
color: ${I};
|
|
356
|
+
opacity: 1; /* Firefox */
|
|
357
|
+
}
|
|
358
|
+
.dynamic-placeholder:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
|
359
|
+
color: ${I};
|
|
360
|
+
}
|
|
361
|
+
.dynamic-placeholder::-ms-input-placeholder { /* Microsoft Edge */
|
|
362
|
+
color: ${I};
|
|
363
|
+
}
|
|
364
|
+
.yuanbao-select .ant-select-selection-item {
|
|
365
|
+
font-size: 12px !important;
|
|
366
|
+
}
|
|
367
|
+
.yuanbao-select .ant-select-selection-placeholder {
|
|
368
|
+
font-size: 12px !important;
|
|
369
|
+
}
|
|
370
|
+
`,document.head.appendChild(z)},[I]),oe.jsxs("div",{className:" absolute left-0 bottom-0 w-[90%] z-10 mx-[6.5%] px-5 bg-transparent!",children:[oe.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),oe.jsx("div",{className:"absolute inset-0 bg-transparent! pointer-events-none"}),oe.jsxs("div",{className:"relative max-w-[1000px] mx-auto p-3",children:[oe.jsx("div",{className:"mb-3 flex flex-wrap gap-2 animate-fade-in-up",children:S&&C.map((z,V)=>oe.jsx("button",{onClick:()=>{t&&t("sender:send_recommandQuestion",{content:z,clearFn:()=>{t&&t("sender:clear")}})},className:"recommand-question-btn shadow-sm px-3 py-1.5 bg-white cursor-pointer text-xs rounded-full transition-all duration-200 ease-in-out hover:shadow-lg",style:{visibility:"hidden",transform:"translateY(20px)",backgroundColor:R,color:W,border:"none"},onMouseEnter:K=>{K.currentTarget.style.color=A},onMouseOut:K=>{K.currentTarget.style.color=W},children:z},V))}),k.length>0&&oe.jsx(pD,{styles:n,uploadedFiles:k,onRemoveFile:l||(()=>{}),eventsEmit:t}),oe.jsxs("div",{className:"flex items-end w-full rounded-2xl shadow-sm",style:{backgroundColor:B,border:`1px solid ${j}`,padding:"0 12px 8px 12px"},children:[oe.jsx("textarea",{ref:p,value:m,onChange:y,onKeyDown:w,rows:1,placeholder:"\u6211\u53EF\u4EE5\u9605\u8BFB\u77E5\u8BC6\u5E93\u7684\u8D44\u6599\u5E76\u4F7F\u7528\u81EA\u7136\u8BED\u8A00\u56DE\u7B54\u4F60\u7684\u95EE\u9898...",className:`flex-1 py-2 resize-none outline-none border-none min-h-[85px]
|
|
371
|
+
max-h-[180px] text-[14px] dynamic-placeholder`,style:{backgroundColor:"transparent",color:P}}),oe.jsxs("div",{className:"flex items-center ml-2 space-x-1.5",children:[M.filter(z=>z.enabled!==!1).map((z,V)=>oe.jsx(r0,{count:z.badgeCount,size:"small",style:{backgroundColor:T,color:D,fontWeight:500,fontSize:9,minWidth:16,height:16,lineHeight:"19px",borderRadius:9,marginLeft:8,display:"flex",alignItems:"center",justifyContent:"center",padding:"0 5px"},offset:[-2,10],showZero:!0,children:oe.jsx("button",{type:"button",className:"relative w-8 h-8 flex items-center justify-center rounded-lg cursor-pointer group hover:bg-blue-50 active:bg-blue-100 transition-colors",style:{border:"none",background:"transparent",color:P,fontWeight:500,fontSize:15,outline:"none",padding:0,margin:0,transition:"background 0.2s"},title:z.tip||z.name,onClick:()=>{z.name==="clear"?t&&t("sender:clear"):t&&t(`sender:action_${z.name}`)},children:z.icon})},z.name||V)),oe.jsx("div",{className:"ml-3 mr-3 h-5 w-px",style:{backgroundColor:j}}),oe.jsx("div",{className:`
|
|
372
|
+
relative w-[85px] h-8 flex items-center justify-center rounded-lg group overflow-hidden shadow-sm
|
|
373
|
+
transition-all duration-200
|
|
374
|
+
${r==="processing"?"animate-pulse":""}
|
|
375
|
+
`,style:{cursor:r==="processing"||E?"pointer":"not-allowed",background:r==="processing"?`linear-gradient(to bottom right, ${L}, ${(N==null?void 0:N.error)||"#d9534f"})`:E?`linear-gradient(to bottom right, ${T}, ${(N==null?void 0:N.primary)||"#0275d8"})`:_},onClick:()=>{r==="processing"?t&&t("sender:stop",{}):E&&t&&t("sender:send")},title:r==="processing"?"\u505C\u6B62\u5F53\u524D\u5BF9\u8BDD":"\u53D1\u9001",children:oe.jsx("div",{className:"relative flex items-center gap-x-1 font-medium",style:{color:!E&&r!=="processing"?W:D},children:r==="processing"?oe.jsxs(oe.Fragment,{children:[oe.jsx(j1,{className:"w-[18px] h-[18px]"}),oe.jsx("span",{className:"ml-1 text-[13px]",children:"\u505C\u6B62"})]}):oe.jsxs(oe.Fragment,{children:[oe.jsx(D1,{size:12}),oe.jsx("span",{className:"ml-1 text-[13px]",children:"\u53D1\u9001"})]})})})]})]}),oe.jsxs("div",{className:"mt-2 pt-2 pb-3 px-1 flex items-center justify-between ",children:[oe.jsx("span",{className:"text-[10px]",style:{color:I}}),oe.jsx("div",{className:"flex items-center gap-4",children:v.filter(z=>z.enabled!==!1).map(z=>z.type==="select"?oe.jsxs("div",{className:"flex items-center gap-2",children:[oe.jsxs("span",{className:"text-xs",style:{color:I},children:[z.label,":"]}),oe.jsx(gD,{value:h[z.name],onChange:V=>{g(K=>({...K,[z.name]:V}))},options:z.options||[],styles:n,disabled:!z.enabled,placeholder:z.label})]},z.name):oe.jsx(mD,{styles:n,checked:h[z.name],disabled:!z.enabled,onChange:V=>{g(K=>({...K,[z.name]:V}))},icon:z.icon,children:z.label},z.name))})]})]})]})}function vD({content:e,time:t,sessionContext:n,eventsEmit:r}){const o=()=>{r==null||r("action_retry",{content:e,sessionContext:n})};return oe.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[oe.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-blue-400 to-blue-500 flex items-center justify-center mr-3 shadow-sm",children:oe.jsx("span",{className:"text-white text-xs",children:"\u6211"})}),oe.jsx("div",{className:"flex-1",children:oe.jsxs("div",{className:"flex-col",children:[oe.jsx("div",{className:"text-xs text-gray-400 mb-3",children:On(t).format("YYYY-MM-DD HH:mm:ss")}),oe.jsx("div",{className:"bg-gradient-to-r from-blue-50 to-blue-100 rounded-lg p-4 inline-block max-w-[80%] shadow-sm relative prose prose-sm",children:oe.jsx("span",{className:"text-gray-700 break-words",children:e})}),oe.jsx("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:oe.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:o,title:"\u91CD\u53D1",children:[oe.jsx(R1,{className:"w-4 h-4"}),oe.jsx("span",{className:"hidden sm:inline",children:"\u91CD\u53D1"})]})})]})})]})}function bD({content:e,time:t,sessionContext:n,eventsEmit:r,feedbackResult:o}){const a=s=>{r==null||r("action_copy:click",{content:e,event:s})},i=()=>{r==null||r("action_thumbsup",{result:o,sessionContext:n})},l=()=>{r==null||r("action_thumbsdown",{content:e,sessionContext:n})};return oe.jsxs("div",{className:"flex items-start mb-6 animate-fadeIn w-full text-wrap",children:[oe.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-r from-purple-400 to-purple-500 flex items-center justify-center mr-3 shadow-sm",children:oe.jsx("span",{className:"text-white w-8 h-8 flex items-center justify-center text-xs",children:"AI"})}),oe.jsx("div",{className:"flex-1 w-[calc(100%-40px)]",children:oe.jsxs("div",{className:"flex flex-col w-full relative",children:[oe.jsx("div",{className:"text-xs text-gray-400 mb-3",children:On(t).format("YYYY-MM-DD HH:mm:ss")}),oe.jsx("div",{className:"bg-white rounded-lg shadow-md w-full overflow-hidden border border-gray-100 p-4 relative prose prose-sm",children:oe.jsx("span",{className:"text-gray-800 w-full leading-relaxed break-words",children:e})}),oe.jsxs("div",{className:"w-full mt-2 actions-btns flex py-2 items-center justify-end gap-2 px-2",children:[oe.jsxs("button",{className:"flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700",onClick:a,title:"\u590D\u5236",children:[oe.jsx(P1,{className:"w-4 h-4"}),oe.jsx("span",{className:"hidden sm:inline",children:"\u590D\u5236"})]}),oe.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===1?"text-blue-700":""}`,onClick:i,title:"\u70B9\u8D5E",children:[oe.jsx(T1,{className:"w-4 h-4"}),oe.jsx("span",{className:"hidden sm:inline",children:"\u8D5E"})]}),oe.jsxs("button",{className:`flex items-center gap-1 text-sm text-gray-500 hover:text-blue-700 ${o===0?"text-blue-700":""}`,onClick:l,title:"\u70B9\u8E29",children:[oe.jsx(A1,{className:"w-4 h-4"}),oe.jsx("span",{className:"hidden sm:inline",children:"\u8E29"})]})]})]})})]})}function yD({messages:e=[],renderAiChatBox:t,renderUserChatBox:n,sessionContext:r,status:o,eventsEmit:a,scrollOld:i}){const l=qe(null);return oe.jsxs("div",{style:{direction:i?"ltr":"rtl",transform:i?"":"rotate(180deg)"},className:" max-w-[1000px] min-w-[650px] mx-auto",children:[e.map((s,c)=>oe.jsx("div",{className:"mb-6",children:s.istype==="user"?n?oe.jsx("div",{style:{direction:"ltr"},children:n(s,c)}):oe.jsx("div",{style:{direction:"ltr"},children:oe.jsx(vD,{...s,sessionContext:r,eventsEmit:a})}):t?oe.jsx("div",{style:{direction:"ltr"},children:t(s,c)}):oe.jsx("div",{style:{direction:"ltr"},children:oe.jsx(bD,{...s,sessionContext:r,eventsEmit:a})})},s.istype==="user"?s.queryId:"relatedTo-"+s.queryId)),oe.jsx("div",{ref:l})]})}var co=256,Cb=[],zm=256,Si;for(;co--;)Cb[co]=(co+256).toString(16).substring(1);function xD(e){var t=0,n=e;if(!Si||co+n>zm*2)for(Si="",co=0;t<zm;t++)Si+=Cb[Math.random()*256|0];return Si.substring(co,co+++n)}var lu={exports:{}};/*!
|
|
376
|
+
* clipboard.js v2.0.11
|
|
377
|
+
* https://clipboardjs.com/
|
|
378
|
+
*
|
|
379
|
+
* Licensed MIT © Zeno Rocha
|
|
380
|
+
*/var CD=lu.exports,_m;function wD(){return _m||(_m=1,(function(e,t){(function(n,r){e.exports=r()})(CD,function(){return(function(){var n={686:(function(a,i,l){l.d(i,{default:function(){return W}});var s=l(279),c=l.n(s),d=l(370),f=l.n(d),p=l(817),v=l.n(p);function h(R){try{return document.execCommand(R)}catch{return!1}}var g=function(R){var A=v()(R);return h("cut"),A},m=g;function b(R){var A=document.documentElement.getAttribute("dir")==="rtl",F=document.createElement("textarea");F.style.fontSize="12pt",F.style.border="0",F.style.padding="0",F.style.margin="0",F.style.position="absolute",F.style[A?"right":"left"]="-9999px";var H=window.pageYOffset||document.documentElement.scrollTop;return F.style.top="".concat(H,"px"),F.setAttribute("readonly",""),F.value=R,F}var x=function(R,A){var F=b(R);A.container.appendChild(F);var H=v()(F);return h("copy"),F.remove(),H},y=function(R){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},F="";return typeof R=="string"?F=x(R,A):R instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(R==null?void 0:R.type)?F=x(R.value,A):(F=v()(R),h("copy")),F},w=y;function C(R){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(A){return typeof A}:C=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},C(R)}var S=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=R.action,F=A===void 0?"copy":A,H=R.container,z=R.target,V=R.text;if(F!=="copy"&&F!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(z!==void 0)if(z&&C(z)==="object"&&z.nodeType===1){if(F==="copy"&&z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(F==="cut"&&(z.hasAttribute("readonly")||z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(V)return w(V,{container:H});if(z)return F==="cut"?m(z):w(z,{container:H})},$=S;function k(R){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(A){return typeof A}:k=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},k(R)}function E(R,A){if(!(R instanceof A))throw new TypeError("Cannot call a class as a function")}function O(R,A){for(var F=0;F<A.length;F++){var H=A[F];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(R,H.key,H)}}function M(R,A,F){return A&&O(R.prototype,A),F&&O(R,F),R}function N(R,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(A&&A.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),A&&T(R,A)}function T(R,A){return T=Object.setPrototypeOf||function(F,H){return F.__proto__=H,F},T(R,A)}function P(R){var A=B();return function(){var F=I(R),H;if(A){var z=I(this).constructor;H=Reflect.construct(F,arguments,z)}else H=F.apply(this,arguments);return D(this,H)}}function D(R,A){return A&&(k(A)==="object"||typeof A=="function")?A:j(R)}function j(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function B(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function I(R){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},I(R)}function _(R,A){var F="data-clipboard-".concat(R);if(A.hasAttribute(F))return A.getAttribute(F)}var L=(function(R){N(F,R);var A=P(F);function F(H,z){var V;return E(this,F),V=A.call(this),V.resolveOptions(z),V.listenClick(H),V}return M(F,[{key:"resolveOptions",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof H.action=="function"?H.action:this.defaultAction,this.target=typeof H.target=="function"?H.target:this.defaultTarget,this.text=typeof H.text=="function"?H.text:this.defaultText,this.container=k(H.container)==="object"?H.container:document.body}},{key:"listenClick",value:function(H){var z=this;this.listener=f()(H,"click",function(V){return z.onClick(V)})}},{key:"onClick",value:function(H){var z=H.delegateTarget||H.currentTarget,V=this.action(z)||"copy",K=$({action:V,container:this.container,target:this.target(z),text:this.text(z)});this.emit(K?"success":"error",{action:V,text:K,trigger:z,clearSelection:function(){z&&z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(H){return _("action",H)}},{key:"defaultTarget",value:function(H){var z=_("target",H);if(z)return document.querySelector(z)}},{key:"defaultText",value:function(H){return _("text",H)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(H){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return w(H,z)}},{key:"cut",value:function(H){return m(H)}},{key:"isSupported",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],z=typeof H=="string"?[H]:H,V=!!document.queryCommandSupported;return z.forEach(function(K){V=V&&!!document.queryCommandSupported(K)}),V}}]),F})(c()),W=L}),828:(function(a){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function s(c,d){for(;c&&c.nodeType!==i;){if(typeof c.matches=="function"&&c.matches(d))return c;c=c.parentNode}}a.exports=s}),438:(function(a,i,l){var s=l(828);function c(p,v,h,g,m){var b=f.apply(this,arguments);return p.addEventListener(h,b,m),{destroy:function(){p.removeEventListener(h,b,m)}}}function d(p,v,h,g,m){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return c(b,v,h,g,m)}))}function f(p,v,h,g){return function(m){m.delegateTarget=s(m.target,v),m.delegateTarget&&g.call(p,m)}}a.exports=d}),879:(function(a,i){i.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},i.nodeList=function(l){var s=Object.prototype.toString.call(l);return l!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in l&&(l.length===0||i.node(l[0]))},i.string=function(l){return typeof l=="string"||l instanceof String},i.fn=function(l){var s=Object.prototype.toString.call(l);return s==="[object Function]"}}),370:(function(a,i,l){var s=l(879),c=l(438);function d(h,g,m){if(!h&&!g&&!m)throw new Error("Missing required arguments");if(!s.string(g))throw new TypeError("Second argument must be a String");if(!s.fn(m))throw new TypeError("Third argument must be a Function");if(s.node(h))return f(h,g,m);if(s.nodeList(h))return p(h,g,m);if(s.string(h))return v(h,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,g,m){return h.addEventListener(g,m),{destroy:function(){h.removeEventListener(g,m)}}}function p(h,g,m){return Array.prototype.forEach.call(h,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(g,m)})}}}function v(h,g,m){return c(document.body,h,g,m)}a.exports=d}),817:(function(a){function i(l){var s;if(l.nodeName==="SELECT")l.focus(),s=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var c=l.hasAttribute("readonly");c||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),c||l.removeAttribute("readonly"),s=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var d=window.getSelection(),f=document.createRange();f.selectNodeContents(l),d.removeAllRanges(),d.addRange(f),s=d.toString()}return s}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(l,s,c){var d=this.e||(this.e={});return(d[l]||(d[l]=[])).push({fn:s,ctx:c}),this},once:function(l,s,c){var d=this;function f(){d.off(l,f),s.apply(c,arguments)}return f._=s,this.on(l,f,c)},emit:function(l){var s=[].slice.call(arguments,1),c=((this.e||(this.e={}))[l]||[]).slice(),d=0,f=c.length;for(d;d<f;d++)c[d].fn.apply(c[d].ctx,s);return this},off:function(l,s){var c=this.e||(this.e={}),d=c[l],f=[];if(d&&s)for(var p=0,v=d.length;p<v;p++)d[p].fn!==s&&d[p].fn._!==s&&f.push(d[p]);return f.length?c[l]=f:delete c[l],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?(function(){return a.default}):(function(){return a});return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var l in i)o.o(i,l)&&!o.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:i[l]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(lu)),lu.exports}var ED=wD();const SD=Nr(ED),$D=(e,t)=>{let n=e&&e.replace(/<think>[\s\S]*?<\/think>/g,"");n=n.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),n=n.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",n);const r=new SD(t.currentTarget||t.target,{text:()=>n});try{r.on("success",()=>{Ai.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),r.destroy()}),r.on("error",o=>{Ai.error("\u590D\u5236\u5931\u8D25",2),r.destroy()}),r.onClick(t)}catch(o){r.destroy(),Ai.error("\u590D\u5236\u5931\u8D25: "+o,2)}};function Ar(e){return oe.jsxs("span",{className:"flex items-center gap-1",children:[oe.jsx("span",{className:"font-medium text-gray-800",children:e.label}),e.description&&oe.jsx(Pl,{title:e.description,className:" cursor-help",children:oe.jsx(I1,{className:"ml-0.5 text-gray-400",size:12})}),e.required&&oe.jsx(xb,{className:"text-[9px]",bordered:!1,color:"warning",children:"\u5FC5\u586B"})]})}function kD(e=[],t,n={}){const[r,o]=ae.useState(()=>{const c={};return e.forEach(d=>{d.type==="switch"&&(c[d.name]=n[d.name]??d.defaultValue??!1)}),c}),a=ae.useRef(),i=(c,d,f)=>{o(p=>({...p,[c]:d})),a.current&&f&&(d||f.forEach(p=>{a.current.setFieldsValue({[p]:void 0})}))},l=new Set;e.forEach(c=>{c.type==="switch"&&c.controlledItems&&r[c.name]===!1&&c.controlledItems.forEach(d=>l.add(d))});const s=e.map(c=>{var d,f,p,v,h,g;return l.has(c.name)?null:c.type==="divider"?oe.jsx("div",{className:"my-3 border-b border-solid border-gray-200"},c.name||Math.random()):c.type==="input"?oe.jsx(sn.Item,{label:Ar(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:oe.jsx(bo,{placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="select"?oe.jsx(sn.Item,{label:Ar(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:oe.jsx(So,{options:c.options,placeholder:c.placeholder,disabled:c.disabled,className:c.className})},c.name):c.type==="number"?oe.jsx(sn.Item,{label:Ar(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:oe.jsx(ru,{addonAfter:c.unit?oe.jsx("span",{className:"text-[10px] text-gray-300",children:c.unit}):null,min:(d=c.range)==null?void 0:d.min,max:(f=c.range)==null?void 0:f.max,step:c.step,placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="slider"?oe.jsxs("div",{className:"mb-6",children:[oe.jsxs("div",{className:"flex items-center justify-between mb-3",children:[oe.jsx("div",{className:"flex items-center text-sm",children:Ar(c)}),oe.jsx(sn.Item,{name:c.name,noStyle:!0,children:oe.jsx(ru,{min:(p=c.range)==null?void 0:p.min,max:(v=c.range)==null?void 0:v.max,step:c.step,disabled:c.disabled,style:{width:80,marginLeft:8}})}),c.unit&&oe.jsx("span",{className:"ml-2",children:c.unit})]}),oe.jsx(sn.Item,{name:c.name,noStyle:!0,children:oe.jsx(UP,{min:(h=c.range)==null?void 0:h.min,max:(g=c.range)==null?void 0:g.max,step:c.step,disabled:c.disabled,className:c.className})})]},c.name):c.type==="switch"?oe.jsx(sn.Item,{label:null,colon:!1,style:{marginBottom:16},children:oe.jsxs(Z0,{align:"middle",justify:"space-between",children:[oe.jsx(tl,{children:Ar(c)}),oe.jsx(tl,{children:oe.jsx(sn.Item,{name:c.name,valuePropName:"checked",noStyle:!0,children:oe.jsx(bb,{disabled:c.disabled,checked:r[c.name],onChange:m=>i(c.name,m,c.controlledItems)})})})]})},c.name):c.type==="textarea"?oe.jsx(sn.Item,{label:Ar(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u8F93\u5165${c.label}`}],children:oe.jsx(bo.TextArea,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,autoSize:{minRows:2,maxRows:6}})},c.name):c.type==="date"?oe.jsx(sn.Item,{label:Ar(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:oe.jsx(ca,{placeholder:c.placeholder,disabled:c.disabled,className:c.className,style:{width:"100%"}})},c.name):c.type==="radio"?oe.jsx(sn.Item,{label:Ar(c),name:c.name,rules:[{required:c.required,message:c.error||`\u8BF7\u9009\u62E9${c.label}`}],children:oe.jsx(Hl.Group,{options:c.options,disabled:c.disabled,className:c.className})},c.name):null});return ae.useEffect(()=>{t&&typeof t.setFormRef=="function"&&t.setFormRef(a)},[t]),s}function OD({config:e=[],initialValues:t={},onChange:n,styles:r}){const o=kD(e,r,t),[a]=sn.useForm();return oe.jsx(sn,{form:a,layout:"vertical",size:(r==null?void 0:r.formSize)||"middle",initialValues:t,onValuesChange:(i,l)=>n==null?void 0:n(l),requiredMark:!1,style:{padding:16},children:o})}function ND(){return oe.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:oe.jsx("div",{className:"text-2xl font-bold",children:"app loading..."})})}function MD(){return oe.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:oe.jsx("div",{className:"text-2xl font-bold",children:"display loading..."})})}function ID(){return oe.jsx("div",{className:"main relative h-full w-full bg-transparent! flex items-center justify-center",children:oe.jsx("div",{className:"text-2xl font-bold",children:"app error..."})})}function jD(){return oe.jsx("div",{className:"main relative h-full w-full flex items-center justify-center",children:oe.jsx("div",{className:"text-2xl font-bold",children:"display error..."})})}function PD(){return oe.jsxs("div",{className:"flex flex-col items-center justify-center h-full w-full",children:[oe.jsx("div",{className:"text-2xl text-blue-500 font-bold mb-4",children:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u4E13\u5C5EAI\u52A9\u7406\u3010\u5C0F\u9CB8\u3011"}),oe.jsx("div",{className:"text-zinc-500",children:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898\u6216\u9700\u6C42\uFF0C\u6211\u4F1A\u5C3D\u529B\u4E3A\u60A8\u89E3\u7B54\u3002"})]})}function RD(e,t){return t?{...e,...t,colors:{...e.colors,...t.colors},space:{...e.space,...t.space},icons:{...e.icons,...t.icons},others:{...e.others,...t.others}}:e}function DD(e){return{...e,size:Vs[e.size]||e.size,radius:dg[e.radius]||e.radius,padding:C1[e.padding]||e.padding,margin:w1[e.margin]||e.margin,shadow:E1[e.shadow]||e.shadow,lineHeight:S1[e.lineHeight]||e.lineHeight,sidebar:x1[e.sidebar]||e.sidebar}}function fA({chatData:e,sidebar:t,eventsEmit:n,status:r,CustomComponents:o,recommandQuestions:a=[],styles:i,senderConfig:l,fileUploadStatus:s,onSenderConfigChange:c,activeSessionId:d,scrollOld:f}){const p=qe(null),[v,h]=Pt(""),[g,m]=Pt([]),[b,x]=Pt(!1),y=(t&&t.length>0?t:[]).filter(G=>G.enabled!==!1),[w,C]=Pt(()=>{var G;return(G=y[0])==null?void 0:G.key}),S=qe({}),[$]=Pt(0),k=(e==null?void 0:e.messages)||[],[E,O]=Pt({});It(()=>{n==null||n("fileManager:change",{uploadedFiles:g,removeFile:(G,X,ne)=>{m(te=>te.filter((ee,se)=>se!==X))},setUploadedFiles:G=>{m(X=>typeof G=="function"?G(X):[...X,...G])}})},[g]);const M=()=>{h(""),m([])},N=(G,X)=>{if(n)switch(console.log(G,X,"core\u5185\u90E8\u8F6C\u53D1"),G){case"action_copy:click":X&&$D(X.content,X.event);break;case"sender:configChange":O(X.all),c==null||c(X),n(G,X);break;case"conversation:create":const ne=xD(3);n==null||n("conversation:create",{id:ne});break;case"sender:change":X&&h(X);break;case"sender:clear":M();break;case"sender:send_recommandQuestion":{const te={};y.forEach(ee=>{ee.type==="form"&&(te[ee.key]=S.current[ee.key]??ee.initialValues??{})}),n==null||n("sender:send",{content:X.content,files:g,status:r,currentData:e,senderConfig:E,formData:te,clearFn:M}),setTimeout(()=>{p.current&&p.current.scrollTo&&p.current.scrollTo({top:0,behavior:"smooth"})},120);break}case"sender:send":{const te={};y.forEach(ee=>{ee.type==="form"&&(te[ee.key]=S.current[ee.key]??ee.initialValues??{})}),n==null||n("sender:send",{content:v,files:g,status:r,currentData:e,senderConfig:E,formData:te,clearFn:M});break}default:n(G,X)}},T=G=>{G.preventDefault(),x(!1);const X=Array.from(G.dataTransfer.files||[]);if(X.length>0){const ne=X.filter(te=>/image|pdf|word|doc|docx|ppt|pptx|xls|xlsx|text|plain|csv|zip|rar|7z|json|markdown|md/.test(te.type)||/\.(pdf|docx?|pptx?|xlsx?|csv|zip|rar|7z|json|md)$/i.test(te.name));ne.length>0&&m(te=>[...te,...ne.map(ee=>({file:ee,type:j(ee)}))])}},P=G=>{G.preventDefault(),b||x(!0)},D=G=>{G.preventDefault(),x(!1)};function j(G){return G.type.startsWith("image")?"image":"document"}const B=G=>{O(G.all),c==null||c(G)},I=()=>{p.current.addEventListener("wheel",G=>{G.preventDefault();const{deltaY:X}=G;p.current.scrollTop-=X})},_=qe(null);It(()=>{if(!f&&!_.current)return _.current=setInterval(()=>{var G;(G=p==null?void 0:p.current)!=null&&G.scrollTo&&(I(),clearInterval(_.current),_.current=null)},100),()=>{var G;clearInterval(_.current),_.current=null,(G=p==null?void 0:p.current)!=null&&G.removeEventListener&&p.current.removeEventListener("wheel",I)}},[d]),It(()=>{var G;!f||!((G=p==null?void 0:p.current)!=null&&G.scrollTo)||!p.current.scrollHeight||p.current.scrollTo({top:p.current.scrollHeight,behavior:"smooth"})},[k]);const L=RD(y1,i==null?void 0:i.theme),W=DD(L.space),R={...L,space:W,colors:{...L.colors,info:L.colors.info||"#0000FF",background:L.colors.background||"#ffffff",text:L.colors.text||"#343a40",border:L.colors.border||"#dee2e6",disabled:L.colors.disabled||"#808080",disabledBackground:L.colors.disabledBackground||"#F5F5F5",disabledText:L.colors.disabledText||"#808080"}},A={...i,theme:R},F=R.space.radius,H=R.colors.appBackground,z="",V=R.space.shadow,K=y.length===0?0:R.space.sidebar,J=R.space.size,Y=R.space.padding,Z=R.colors.text;return oe.jsxs(oe.Fragment,{children:[r.app==="initializing"&&(o!=null&&o.AppLoading?oe.jsx(o.AppLoading,{}):oe.jsx(ND,{})),r.app==="error"&&(o!=null&&o.AppError?oe.jsx(o.AppError,{}):oe.jsx(ID,{})),r.app==="ready"&&oe.jsxs("div",{style:{width:"100%",height:"100%",position:"relative",display:"flex"},children:[y.length===0?null:oe.jsxs("div",{style:{width:K,borderRadius:F,boxShadow:V,background:z,display:"flex",flexDirection:"column",height:"100%"},children:[(o==null?void 0:o.LogoBox)&&oe.jsx("header",{style:{display:"flex",alignItems:"center",height:55,width:"100%",borderBottom:`1px solid ${L.colors.border}`,padding:Y,fontSize:Vs.lg,fontWeight:700,color:L.colors.primary,background:z,borderTopLeftRadius:F,borderTopRightRadius:F},children:oe.jsx(o.LogoBox,{})}),oe.jsxs("div",{style:{width:K,borderRadius:F,background:z,flex:1,display:"flex",flexDirection:"column",position:"relative",marginBottom:y.length>1?55:0,borderBottomRightRadius:F},children:[(()=>{const G=y.find(X=>X.key===w);if(!G)return null;if(G.type==="custom")return G.component;if(G.type==="form"){const X=S.current[G.key]||G.initialValues||{};return oe.jsx(OD,{config:G.formConfig,initialValues:X,onChange:ne=>{var te;S.current[G.key]=ne,(te=G.onChange)==null||te.call(G,ne),typeof n=="function"&&n("form:change",{...S.current})},styles:i},G.key+"_"+$)}return null})(),y.length>1&&oe.jsx("div",{style:{display:"flex",gap:12,margin:"0 auto",width:"100%",alignItems:"center",justifyContent:"end",padding:"8px 12px",position:"absolute",bottom:0,borderBottom:`1px solid ${L.colors.border}`,borderTop:`1px solid ${L.colors.border}`,borderBottomRightRadius:F,background:z},children:y.map(G=>{const X=G.icon,ne=w===G.key;return oe.jsx("button",{onClick:()=>C(G.key),style:{padding:8,borderRadius:dg.md,background:ne?L.colors.primary+"22":"transparent",color:ne?L.colors.primary:"#888",border:"none",cursor:"pointer",fontWeight:ne?600:400,transition:"all 0.2s"},title:G.label,children:X},G.key)})})]})]}),oe.jsxs("div",{className:"relative ",style:{width:K===0?"100%":`calc(100% - ${K})`,borderRadius:F,background:H,fontSize:J,color:Z,position:"relative",height:"100%",zIndex:b?10:void 0,display:"flex",flexDirection:"column"},onDrop:T,onDragOver:P,onDragLeave:D,children:[b&&oe.jsx("div",{style:{position:"absolute",inset:0,background:L.colors.primary+"14",border:`4px dashed ${L.colors.primary}`,display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999,pointerEvents:"none",userSelect:"none",borderRadius:F},children:oe.jsx("div",{style:{color:L.colors.primary,fontSize:Vs.lg,fontWeight:700},children:"\u677E\u5F00\u6587\u4EF6\u4EE5\u4E0A\u4F20"})}),oe.jsx("div",{style:{width:"100%",position:"relative",height:"calc(100% - 155px)",zIndex:b?10:void 0,display:"flex",flexDirection:"column"},children:oe.jsx("div",{style:{width:"100%",minWidth:520,margin:"0 auto",flex:1,display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:e.isNew?o!=null&&o.WelcomeComponent?oe.jsx(o.WelcomeComponent,{}):oe.jsx(PD,{}):r.display==="loading"?o!=null&&o.DisplayLoading?oe.jsx(o.DisplayLoading,{}):oe.jsx(MD,{}):r.display==="error"?o!=null&&o.DisplayError?oe.jsx(o.DisplayError,{}):oe.jsx(jD,{}):oe.jsxs("div",{ref:p,className:"relative px-8",style:{direction:f?"ltr":"rtl",transform:f?"":"rotate(180deg)",flex:1,overflowY:"scroll",paddingTop:230,paddingBottom:20,display:"flex",flexDirection:"column",alignItems:"center"},children:[oe.jsx("div",{style:{flexGrow:1,flexShrink:1,flex:1}}),oe.jsx("div",{style:{width:"100%",maxWidth:1200},children:oe.jsx(yD,{status:r.display,messages:k,eventsEmit:n,renderAiChatBox:o==null?void 0:o.AiChatBox,renderUserChatBox:o==null?void 0:o.UserChatBox,scrollOld:f})})]})})}),oe.jsx(hD,{value:v,status:r.sender,styles:A,recommandQuestions:a,eventsEmit:(G,X)=>{N(G,X)},uploadedFiles:g,fileUploadStatus:s,onUpload:G=>{G&&G.length>0&&m(X=>[...X,...Array.from(G).map(ne=>({file:ne,type:j(ne)}))])},onRemoveFile:G=>{m(X=>X.filter((ne,te)=>te!==G))},senderConfig:l,onSenderConfigChange:B})]})]})]})}/*! @license Rematrix v0.2.2
|
|
381
|
+
|
|
382
|
+
Copyright 2018 Fisssion LLC.
|
|
383
|
+
|
|
384
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
385
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
386
|
+
in the Software without restriction, including without limitation the rights
|
|
387
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
388
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
389
|
+
furnished to do so, subject to the following conditions:
|
|
390
|
+
|
|
391
|
+
The above copyright notice and this permission notice shall be included in
|
|
392
|
+
all copies or substantial portions of the Software.
|
|
393
|
+
|
|
394
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
395
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
396
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
397
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
398
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
399
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
400
|
+
THE SOFTWARE.
|
|
401
|
+
*/function su(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(e.length===16)return e;if(e.length===6){var t=ua();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function ua(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function AD(e,t){for(var n=su(e),r=su(t),o=[],a=0;a<4;a++)for(var i=[n[a],n[a+4],n[a+8],n[a+12]],l=0;l<4;l++){var s=l*4,c=[r[s],r[s+1],r[s+2],r[s+3]],d=i[0]*c[0]+i[1]*c[1]+i[2]*c[2]+i[3]*c[3];o[a+s]=d}return o}function TD(e){if(typeof e=="string"){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t){var n=t[2].split(", ").map(parseFloat);return su(n)}}return ua()}function FD(e){var t=ua();return t[0]=e,t}function HD(e){var t=ua();return t[5]=e,t}function BD(e){var t=ua();return t[12]=e,t}function zD(e){var t=ua();return t[13]=e,t}var Ti=function(e){return typeof e=="number"},wb=function(e){return typeof e=="function"},Eb=function(e){return Object.prototype.toString.call(e)==="[object Object]"},Ko=function(e){return Array.prototype.slice.apply(e)},Sb=function(e){var t=e.reduce(function(n,r){return n[r]=(n[r]||0)+1,n},{});return Object.keys(t).filter(function(n){return t[n]>1})};function Br(e){return[].slice.call(arguments,1).forEach(function(t){if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}var cu,uu=function(e,t,n){return e+(t-e)*n},$b={__proto__:null,isNumber:Ti,isFunction:wb,isObject:Eb,toArray:Ko,getDuplicateValsAsStrings:Sb,assign:Br,tweenProp:uu},Pd="data-flip-id",Rd="data-inverse-flip-id",Dd="data-portal-key",_D="data-exit-container",$i={__proto__:null,DATA_FLIP_ID:Pd,DATA_INVERSE_FLIP_ID:Rd,DATA_FLIP_CONFIG:"data-flip-config",DATA_PORTAL_KEY:Dd},du={noWobble:{stiffness:200,damping:26},gentle:{stiffness:120,damping:14},veryGentle:{stiffness:130,damping:17},wobbly:{stiffness:180,damping:12},stiff:{stiffness:260,damping:26}},Lm=function(e){return Eb(e)?e:Object.keys(du).indexOf(e)>-1?du[e]:{}};typeof window<"u"&&(cu=window.requestAnimationFrame);var LD=cu=cu||function(e){window.setTimeout(e,1e3/60)},WD=Date.now(),VD=typeof performance=="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()-WD};function kb(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}var KD=(function(){function e(){}return e.prototype.run=function(){var t=this;LD(function(){t.springSystem.loop(VD())})},e})(),Fs=function(){this.position=0,this.velocity=0},qD=0,Qn=.001,YD=(function(){function e(n){this._id="s"+qD++,this._springSystem=n,this.listeners=[],this._startValue=0,this._currentState=new Fs,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new Fs,this._restSpeedThreshold=.001,this._tempState=new Fs,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var t=e.prototype;return t.getId=function(){return this._id},t.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.setSpringConfig=function(n){return this._springConfig=n,this},t.getCurrentValue=function(){return this._currentState.position},t.getDisplacementDistanceForState=function(n){return Math.abs(this._endValue-n.position)},t.setEndValue=function(n){if(n===this._endValue)return this;if(this.prevEndValue=n,this._endValue===n&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=n,this._springSystem.activateSpring(this.getId());for(var r=0,o=this.listeners.length;r<o;r++){var a=this.listeners[r].onSpringEndStateChange;a&&a(this)}return this},t.setVelocity=function(n){return n===this._currentState.velocity||(this._currentState.velocity=n,this._springSystem.activateSpring(this.getId())),this},t.setCurrentValue=function(n){this._startValue=n,this._currentState.position=n;for(var r=0,o=this.listeners.length;r<o;r++){var a=this.listeners[r];a.onSpringUpdate&&a.onSpringUpdate(this)}return this},t.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.setOvershootClampingEnabled=function(n){return this._overshootClampingEnabled=n,this},t.isOvershooting=function(){var n=this._startValue,r=this._endValue;return this._springConfig.tension>0&&(n<r&&this.getCurrentValue()>r||n>r&&this.getCurrentValue()<r)},t.advance=function(n,r){var o=this.isAtRest();if(!o||!this._wasAtRest){var a=r;r>.064&&(a=.064),this._timeAccumulator+=a;for(var i,l,s,c,d,f,p=this._springConfig.tension,v=this._springConfig.friction,h=this._currentState.position,g=this._currentState.velocity,m=this._tempState.position,b=this._tempState.velocity;this._timeAccumulator>=Qn;)this._timeAccumulator-=Qn,this._timeAccumulator<Qn&&(this._previousState.position=h,this._previousState.velocity=g),l=p*(this._endValue-m)-v*g,c=p*(this._endValue-(m=h+(i=g)*Qn*.5))-v*(b=g+l*Qn*.5),f=p*(this._endValue-(m=h+(s=b)*Qn*.5))-v*(b=g+c*Qn*.5),m=h+(d=b)*Qn,h+=1/6*(i+2*(s+d)+(b=g+f*Qn))*Qn,g+=1/6*(l+2*(c+f)+(p*(this._endValue-m)-v*b))*Qn;this._tempState.position=m,this._tempState.velocity=b,this._currentState.position=h,this._currentState.velocity=g,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/Qn),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),o=!0);var x=!1;this._wasAtRest&&(this._wasAtRest=!1,x=!0);var y=!1;o&&(this._wasAtRest=!0,y=!0),this.notifyPositionUpdated(x,y)}},t.notifyPositionUpdated=function(n,r){var o=this;this.listeners.filter(Boolean).forEach(function(a){n&&a.onSpringActivate&&!o._onActivateCalled&&(a.onSpringActivate(o),o._onActivateCalled=!0),a.onSpringUpdate&&a.onSpringUpdate(o),r&&a.onSpringAtRest&&a.onSpringAtRest(o)})},t.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.wasAtRest=function(){return this._wasAtRest},t.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||this._springConfig.tension===0)},t._interpolate=function(n){this._currentState.position=this._currentState.position*n+this._previousState.position*(1-n),this._currentState.velocity=this._currentState.velocity*n+this._previousState.velocity*(1-n)},t.addListener=function(n){return this.listeners.push(n),this},t.addOneTimeListener=function(n){var r=this;return Object.keys(n).forEach(function(o){var a;n[o]=(a=n[o],function(){a.apply(void 0,[].slice.call(arguments)),r.removeListener(n)})}),this.listeners.push(n),this},t.removeListener=function(n){return kb(this.listeners,n),this},e})(),Ob=(function(){function e(n){this.looper=n||new KD,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var t=e.prototype;return t.createSpring=function(n,r){return this.createSpringWithConfig({tension:n,friction:r})},t.createSpringWithConfig=function(n){var r=new YD(this);return this.registerSpring(r),r.setSpringConfig(n),r},t.getIsIdle=function(){return this._isIdle},t.registerSpring=function(n){this._springRegistry[n.getId()]=n},t.deregisterSpring=function(n){kb(this._activeSprings,n),delete this._springRegistry[n.getId()]},t.advance=function(n,r){for(var o=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach(function(i){i.systemShouldAdvance()?i.advance(n/1e3,r/1e3):o._idleSpringIndices.push(o._activeSprings.indexOf(i))});this._idleSpringIndices.length>0;){var a=this._idleSpringIndices.pop();a>=0&&this._activeSprings.splice(a,1)}},t.loop=function(n){var r;this._lastTimeMillis===-1&&(this._lastTimeMillis=n-1);var o=n-this._lastTimeMillis;this._lastTimeMillis=n;var a=0,i=this.listeners.length;for(a=0;a<i;a++)(r=this.listeners[a]).onBeforeIntegrate&&r.onBeforeIntegrate(this);for(this.advance(n,o),this._activeSprings.length===0&&(this._isIdle=!0,this._lastTimeMillis=-1),a=0;a<i;a++)(r=this.listeners[a]).onAfterIntegrate&&r.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.activateSpring=function(n){var r=this._springRegistry[n];this._activeSprings.indexOf(r)===-1&&this._activeSprings.push(r),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},e})(),XD=new Ob,Nb=function(e){var t=e.springConfig,n=t.overshootClamping,r=e.getOnUpdateFunc,o=e.onAnimationEnd,a=e.onSpringActivate,i=XD.createSpring(t.stiffness,t.damping);i.setOvershootClampingEnabled(!!n);var l={onSpringActivate:a,onSpringAtRest:function(){i.destroy(),o()},onSpringUpdate:r({spring:i,onAnimationEnd:o})};return i.addListener(l),i},Wm=function(e){var t=Nb(e);return t.setEndValue(1),t},Vm=function(e,t){if(t===void 0&&(t={}),e&&e.length){t.reverse&&e.reverse();var n,r=typeof(n=t.speed)!="number"?1.1:1+Math.min(Math.max(5*n,0),5),o=1/Math.max(Math.min(e.length,100),10),a=e.map(function(i,l){var s=i.getOnUpdateFunc;return i.getOnUpdateFunc=function(c){var d=s(c);return function(f){var p=f.getCurrentValue();(p=p<.01?0:p>.99?1:p)>=o&&a[l+1]&&a[l+1](Math.max(Math.min(p*r,1),0)),d(f)}},i}).map(function(i){var l=Nb(i);if(l)return l.setEndValue.bind(l)}).filter(Boolean);a[0]&&a[0](1)}},Km=function(e){return[0,1,4,5,12,13].map(function(t){return e[t]})},qm=function(e){return e.top<window.innerHeight&&e.bottom>0&&e.left<window.innerWidth&&e.right>0};function Ym(e){return JSON.parse(e.dataset.flipConfig||"{}")}var Mb=function(e,t){var n;return Br(e,((n={})[t[0]]=t[1],n))},Ib=function(e,t){return Ko(t?document.querySelectorAll("["+Dd+'="'+t+'"]'):e.querySelectorAll("["+Pd+"]"))},jb=function(e){return e.map(function(t){return[t,t.getBoundingClientRect()]})},UD=function(e){var t=e.cachedOrderedFlipIds,n=t===void 0?[]:t,r=e.inProgressAnimations,o=r===void 0?{}:r,a=e.flippedElementPositionsBeforeUpdate,i=a===void 0?{}:a,l=e.flipCallbacks,s=l===void 0?{}:l,c=e.containerEl,d=e.applyTransformOrigin,f=e.spring,p=e.debug,v=e.portalKey,h=e.staggerConfig,g=h===void 0?{}:h,m=e.decisionData,b=m===void 0?{}:m,x=e.handleEnterUpdateDelete,y=e.onComplete,w=e.onStart;if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var C,S=jb(Ib((C={element:c,portalKey:v}).element,C.portalKey)).map(function(I){var _=I[0],L=I[1],W=window.getComputedStyle(_);return[_.dataset.flipId,{element:_,rect:L,opacity:parseFloat(W.opacity),transform:W.transform}]}).reduce(Mb,{}),$=(function(I){var _=I.containerEl,L=I.portalKey;return L?(function(W){return function(R){return Ko(document.querySelectorAll("["+Dd+'="'+W+'"]'+R))}})(L):_?(function(W){var R=Math.random().toFixed(5);return W.dataset.flipperId=R,function(A){return Ko(W.querySelectorAll('[data-flipper-id="'+R+'"] '+A))}})(_):function(){return[]}})({containerEl:c,portalKey:v}),k=(function(I){return function(_){return I("["+Pd+'="'+_+'"]')[0]}})($),E=function(I){return i[I]&&S[I]},O=Object.keys(i).concat(Object.keys(S)).filter(function(I){return!E(I)}),M={flipCallbacks:s,getElement:k,flippedElementPositionsBeforeUpdate:i,flippedElementPositionsAfterUpdate:S,inProgressAnimations:o,decisionData:b},N=(function(I){var _,L=I.unflippedIds,W=I.flipCallbacks,R=I.getElement,A=I.flippedElementPositionsBeforeUpdate,F=I.flippedElementPositionsAfterUpdate,H=I.inProgressAnimations,z=I.decisionData,V=L.filter(function(X){return F[X]}).filter(function(X){return W[X]&&W[X].onAppear}),K=L.filter(function(X){return A[X]&&W[X]&&W[X].onExit}),J=new Promise(function(X){_=X}),Y=[],Z=0,G=K.map(function(X,ne){var te=A[X].domDataForExitAnimations,ee=te.element,se=te.parent,de=te.childPosition,ge=de.top,ve=de.left,ue=de.width,we=de.height;getComputedStyle(se).position==="static"&&(se.style.position="relative"),ee.style.transform="matrix(1, 0, 0, 1, 0, 0)",ee.style.position="absolute",ee.style.top=ge+"px",ee.style.left=ve+"px",ee.style.height=we+"px",ee.style.width=ue+"px";var le=Y.filter(function(Ne){return Ne[0]===se})[0];le||(le=[se,document.createDocumentFragment()],Y.push(le)),le[1].appendChild(ee),Z+=1;var pe=function(){try{se.removeChild(ee)}catch{}finally{(Z-=1)==0&&_()}};return H[X]={stop:pe},function(){return W[X].onExit(ee,ne,pe,z)}});return Y.forEach(function(X){X[0].appendChild(X[1])}),G.length||_(),{hideEnteringElements:function(){V.forEach(function(X){var ne=R(X);ne&&(ne.style.opacity="0")})},animateEnteringElements:function(){V.forEach(function(X,ne){var te=R(X);te&&W[X].onAppear(te,ne,z)})},animateExitingElements:function(){return G.forEach(function(X){return X()}),J}}})(Br({},M,{unflippedIds:O})),T=N.hideEnteringElements,P=N.animateEnteringElements,D=N.animateExitingElements,j=Br({},M,{containerEl:c,flippedIds:n.filter(E),applyTransformOrigin:d,spring:f,debug:p,staggerConfig:g,scopedSelector:$,onComplete:y});w&&w(c,b);var B=(function(I){var _,L=I.flippedIds,W=I.flipCallbacks,R=I.inProgressAnimations,A=I.flippedElementPositionsBeforeUpdate,F=I.flippedElementPositionsAfterUpdate,H=I.applyTransformOrigin,z=I.spring,V=I.getElement,K=I.debug,J=I.staggerConfig,Y=J===void 0?{}:J,Z=I.decisionData,G=Z===void 0?{}:Z,X=I.onComplete,ne=I.containerEl,te=new Promise(function(re){_=re});if(X&&te.then(function(){return X(ne,G)}),!L.length)return function(){return _([]),te};var ee=[],se=V(L[0]),de=se?se.ownerDocument.querySelector("body"):document.querySelector("body");Sb(L);var ge=L.map(function(re){var ke=A[re].rect,Se=F[re].rect,Me=A[re].opacity,Pe=F[re].opacity,be=Se.width<1||Se.height<1,ie=F[re].element;if(!qm(ke)&&!qm(Se)||!ie)return!1;var ye,xe,Ce,De=Ym(ie),fe=(Ce=(xe=(ye={flipperSpring:z,flippedSpring:De.spring})===void 0?{}:ye).flippedSpring,Br({},du.noWobble,Lm(xe.flipperSpring),Lm(Ce))),Ge=De.stagger===!0?"default":De.stagger,ot={element:ie,id:re,stagger:Ge,springConfig:fe};if(W[re]&&W[re].shouldFlip&&!W[re].shouldFlip(G.previous,G.current))return!1;var it=Math.abs(ke.left-Se.left)+Math.abs(ke.top-Se.top),mt=Math.abs(ke.width-Se.width)+Math.abs(ke.height-Se.height),Re=Math.abs(Pe-Me);if(ke.height===0&&Se.height===0||ke.width===0&&Se.width===0||it<.5&&mt<.5&&Re<.01)return!1;var He=TD(F[re].transform),Ae={matrix:He},Ye={matrix:[]},Xe=[He];De.translate&&(Xe.push(BD(ke.left-Se.left)),Xe.push(zD(ke.top-Se.top))),De.scale&&(Xe.push(FD(Math.max(ke.width,1)/Math.max(Se.width,1))),Xe.push(HD(Math.max(ke.height,1)/Math.max(Se.height,1)))),De.opacity&&(Ye.opacity=Me,Ae.opacity=Pe);var st=[];if(!W[re]||!W[re].shouldInvert||W[re].shouldInvert(G.previous,G.current)){var ut=(function(he,Oe){return Ko(he.querySelectorAll("["+Rd+'="'+Oe+'"]'))})(ie,re);st=ut.map(function(he){return[he,Ym(he)]})}Ye.matrix=Km(Xe.reduce(AD)),Ae.matrix=Km(Ae.matrix);var Ve,nt=(function(he){var Oe=he.element,We=he.invertedChildren,Je=he.body;return function(at){var gt=at.matrix,bt=at.opacity,dt=at.forceMinVals;if(Ti(bt)&&(Oe.style.opacity=bt+""),dt&&(Oe.style.minHeight="1px",Oe.style.minWidth="1px"),gt){var Rt=(function(Mt){return"matrix("+Mt.join(", ")+")"})(gt);Oe.style.transform=Rt,We&&(function(Mt){var ht=Mt.matrix,Tt=Mt.body;Mt.invertedChildren.forEach(function(Ft){var rn=Ft[0],Ie=Ft[1];if(Tt.contains(rn)){var _e=ht[0],Fe=ht[3],Be=ht[5],Le={translateX:0,translateY:0,scaleX:1,scaleY:1},Dt="";Ie.translate&&(Le.translateX=-ht[4]/_e,Le.translateY=-Be/Fe,Dt+="translate("+Le.translateX+"px, "+Le.translateY+"px)"),Ie.scale&&(Le.scaleX=1/_e,Le.scaleY=1/Fe,Dt+=" scale("+Le.scaleX+", "+Le.scaleY+")"),rn.style.transform=Dt}})})({invertedChildren:We,matrix:gt,body:Je})}}})({element:ie,invertedChildren:st,body:de});if(W[re]&&W[re].onComplete){var ct=W[re].onComplete;Ve=function(){return ct(ie,G)}}var je=Ti(Ye.opacity)&&Ti(Ae.opacity)&&Ye.opacity!==Ae.opacity,Ee=!1;return Br({},ot,{stagger:Ge,springConfig:fe,getOnUpdateFunc:function(he){var Oe=he.spring,We=he.onAnimationEnd;return R[re]={destroy:Oe.destroy.bind(Oe),onAnimationEnd:We},function(Je){W[re]&&W[re].onSpringUpdate&&W[re].onSpringUpdate(Je.getCurrentValue()),Ee||(Ee=!0,W[re]&&W[re].onStart&&W[re].onStart(ie,G));var at=Je.getCurrentValue();if(de.contains(ie)){var gt={matrix:[]};gt.matrix=Ye.matrix.map(function(bt,dt){return uu(bt,Ae.matrix[dt],at)}),je&&(gt.opacity=uu(Ye.opacity,Ae.opacity,at)),nt(gt)}else Je.destroy()}},initializeFlip:function(){nt({matrix:Ye.matrix,opacity:je?Ye.opacity:void 0,forceMinVals:be}),W[re]&&W[re].onStartImmediate&&W[re].onStartImmediate(ie,G),De.transformOrigin?ie.style.transformOrigin=De.transformOrigin:H&&(ie.style.transformOrigin="0 0"),st.forEach(function(he){var Oe=he[0],We=he[1];We.transformOrigin?Oe.style.transformOrigin=We.transformOrigin:H&&(Oe.style.transformOrigin="0 0")})},onAnimationEnd:function(he){delete R[re],wb(Ve)&&Ve(),ie.style.transform="",st.forEach(function(Oe){Oe[0].style.transform=""}),be&&ie&&(ie.style.minHeight="",ie.style.minWidth=""),he||(ee.push(re),ee.length>=ge.length&&_(ee))},delayUntil:De.delayUntil})}).filter(Boolean);if(ge.forEach(function(re){return(0,re.initializeFlip)()}),K)return function(){};var ve=ge.filter(function(re){return re.delayUntil&&(ke=re.delayUntil,ge.filter(function(Se){return Se.id===ke}).length);var ke}),ue={},we={},le={};ve.forEach(function(re){re.stagger?(le[re.stagger]=!0,we[re.delayUntil]?we[re.delayUntil].push(re.stagger):we[re.delayUntil]=[re.stagger]):ue[re.delayUntil]?ue[re.delayUntil].push(re):ue[re.delayUntil]=[re]});var pe=ge.filter(function(re){return re.stagger}).reduce(function(re,ke){return re[ke.stagger]?re[ke.stagger].push(ke):re[ke.stagger]=[ke],re},{}),Ne=ge.filter(function(re){return ve.indexOf(re)===-1});return Ne.forEach(function(re){re.onSpringActivate=function(){ue[re.id]&&ue[re.id].forEach(Wm),we[re.id]&&Object.keys(we[re.id].reduce(function(ke,Se){var Me;return Br(ke,((Me={})[Se]=!0,Me))},{})).forEach(function(ke){Vm(pe[ke],Y[ke])})}}),function(){return ge.length||_([]),Ne.filter(function(re){return!re.stagger}).forEach(Wm),Object.keys(pe).forEach(function(re){le[re]||Vm(pe[re],Y[re])}),te}})(j);x?x({hideEnteringElements:T,animateEnteringElements:P,animateExitingElements:D,animateFlippedElements:B}):(T(),D().then(P),B())}},GD=function(e){var t=e.element,n=e.flipCallbacks,r=n===void 0?{}:n,o=e.inProgressAnimations,a=o===void 0?{}:o,i=Ib(t,e.portalKey),l=Ko(t.querySelectorAll("["+Rd+"]")),s={},c=[],d={};i.filter(function(v){return r&&r[v.dataset.flipId]&&r[v.dataset.flipId].onExit}).forEach(function(v){var h=v.parentNode;if(v.closest){var g=v.closest("["+_D+"]");g&&(h=g)}var m=c.findIndex(function(b){return b[0]===h});m===-1&&(c.push([h,h.getBoundingClientRect()]),m=c.length-1),s[v.dataset.flipId]=c[m][1],d[v.dataset.flipId]=h});var f=jb(i),p=f.map(function(v){var h=v[0],g=v[1],m={};if(r&&r[h.dataset.flipId]&&r[h.dataset.flipId].onExit){var b=s[h.dataset.flipId];Br(m,{element:h,parent:d[h.dataset.flipId],childPosition:{top:g.top-b.top,left:g.left-b.left,width:g.width,height:g.height}})}return[h.dataset.flipId,{rect:g,opacity:parseFloat(window.getComputedStyle(h).opacity||"1"),domDataForExitAnimations:m}]}).reduce(Mb,{});return(function(v,h){Object.keys(v).forEach(function(g){v[g].destroy&&v[g].destroy(),v[g].onAnimationEnd&&v[g].onAnimationEnd(!0),delete v[g]}),h.forEach(function(g){g.style.transform="",g.style.opacity=""})})(a,i.concat(l)),{flippedElementPositions:p,cachedOrderedFlipIds:f.map(function(v){return v[0].dataset.flipId})}};new Ob;function ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ol.apply(this,arguments)}function fu(e,t){return fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},fu(e,t)}function Pb(e,t){if(e==null)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var Rb=Ur({}),Db=Ur("portal"),QD=(function(e){var t,n;function r(){for(var a,i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return(a=e.call.apply(e,[this].concat(l))||this).inProgressAnimations={},a.flipCallbacks={},a.el=void 0,a}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,fu(t,n);var o=r.prototype;return o.getSnapshotBeforeUpdate=function(a){return a.flipKey!==this.props.flipKey&&this.el?GD({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},o.componentDidUpdate=function(a,i,l){this.props.flipKey!==a.flipKey&&this.el&&UD({flippedElementPositionsBeforeUpdate:l.flippedElementPositions,cachedOrderedFlipIds:l.cachedOrderedFlipIds,containerEl:this.el,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.props.applyTransformOrigin,spring:this.props.spring,debug:this.props.debug,portalKey:this.props.portalKey,staggerConfig:this.props.staggerConfig,handleEnterUpdateDelete:this.props.handleEnterUpdateDelete,decisionData:{previous:a.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},o.render=function(){var a=this,i=this.props,l=i.portalKey,s=ae.createElement(Rb.Provider,{value:this.flipCallbacks},ae.createElement(i.element,{className:i.className,ref:function(c){return a.el=c}},this.props.children));return l&&(s=ae.createElement(Db.Provider,{value:l},s)),s},r})(Bb);QD.defaultProps={applyTransformOrigin:!0,element:"div"};var ZD=["children","flipId","inverseFlipId","portalKey"],JD=["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"],Xm=function(e){var t,n=e.children,r=e.flipId,o=e.inverseFlipId,a=e.portalKey,i=Pb(e,ZD),l=n,s=(function(d){return typeof d=="function"})(l);if(!s)try{l=Qm.only(n)}catch{throw new Error("Each Flipped component must wrap a single child")}i.scale||i.translate||i.opacity||$b.assign(i,{translate:!0,scale:!0,opacity:!0});var c=((t={})[$i.DATA_FLIP_CONFIG]=JSON.stringify(i),t);return r!==void 0?c[$i.DATA_FLIP_ID]=String(r):o&&(c[$i.DATA_INVERSE_FLIP_ID]=String(o)),a!==void 0&&(c[$i.DATA_PORTAL_KEY]=a),s?l(c):Zm(l,c)},eA=function(e){var t=e.children,n=e.flipId,r=e.shouldFlip,o=e.shouldInvert,a=e.onAppear,i=e.onStart,l=e.onStartImmediate,s=e.onComplete,c=e.onExit,d=e.onSpringUpdate,f=Pb(e,JD);return t?f.inverseFlipId?ae.createElement(Xm,ol({},f),t):ae.createElement(Db.Consumer,null,function(p){return ae.createElement(Rb.Consumer,null,function(v){return $b.isObject(v)&&n&&(v[n]={shouldFlip:r,shouldInvert:o,onAppear:a,onStart:i,onStartImmediate:l,onComplete:s,onExit:c,onSpringUpdate:d}),ae.createElement(Xm,ol({flipId:n},f,{portalKey:p}),t)})}):null};eA.displayName="Flipped";var Fi={exports:{}};/*!
|
|
402
|
+
* clipboard.js v2.0.11
|
|
403
|
+
* https://clipboardjs.com/
|
|
404
|
+
*
|
|
405
|
+
* Licensed MIT © Zeno Rocha
|
|
406
|
+
*/var tA=Fi.exports,Um;function nA(){return Um||(Um=1,(function(e,t){(function(r,o){e.exports=o()})(tA,function(){return(function(){var n={686:(function(a,i,l){l.d(i,{default:function(){return W}});var s=l(279),c=l.n(s),d=l(370),f=l.n(d),p=l(817),v=l.n(p);function h(R){try{return document.execCommand(R)}catch{return!1}}var g=function(A){var F=v()(A);return h("cut"),F},m=g;function b(R){var A=document.documentElement.getAttribute("dir")==="rtl",F=document.createElement("textarea");F.style.fontSize="12pt",F.style.border="0",F.style.padding="0",F.style.margin="0",F.style.position="absolute",F.style[A?"right":"left"]="-9999px";var H=window.pageYOffset||document.documentElement.scrollTop;return F.style.top="".concat(H,"px"),F.setAttribute("readonly",""),F.value=R,F}var x=function(A,F){var H=b(A);F.container.appendChild(H);var z=v()(H);return h("copy"),H.remove(),z},y=function(A){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},H="";return typeof A=="string"?H=x(A,F):A instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(A==null?void 0:A.type)?H=x(A.value,F):(H=v()(A),h("copy")),H},w=y;function C(R){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(F){return typeof F}:C=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},C(R)}var S=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=A.action,H=F===void 0?"copy":F,z=A.container,V=A.target,K=A.text;if(H!=="copy"&&H!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(V!==void 0)if(V&&C(V)==="object"&&V.nodeType===1){if(H==="copy"&&V.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(H==="cut"&&(V.hasAttribute("readonly")||V.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(K)return w(K,{container:z});if(V)return H==="cut"?m(V):w(V,{container:z})},$=S;function k(R){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(F){return typeof F}:k=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},k(R)}function E(R,A){if(!(R instanceof A))throw new TypeError("Cannot call a class as a function")}function O(R,A){for(var F=0;F<A.length;F++){var H=A[F];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(R,H.key,H)}}function M(R,A,F){return A&&O(R.prototype,A),F&&O(R,F),R}function N(R,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(A&&A.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),A&&T(R,A)}function T(R,A){return T=Object.setPrototypeOf||function(H,z){return H.__proto__=z,H},T(R,A)}function P(R){var A=B();return function(){var H=I(R),z;if(A){var V=I(this).constructor;z=Reflect.construct(H,arguments,V)}else z=H.apply(this,arguments);return D(this,z)}}function D(R,A){return A&&(k(A)==="object"||typeof A=="function")?A:j(R)}function j(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function B(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function I(R){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)},I(R)}function _(R,A){var F="data-clipboard-".concat(R);if(A.hasAttribute(F))return A.getAttribute(F)}var L=(function(R){N(F,R);var A=P(F);function F(H,z){var V;return E(this,F),V=A.call(this),V.resolveOptions(z),V.listenClick(H),V}return M(F,[{key:"resolveOptions",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof z.action=="function"?z.action:this.defaultAction,this.target=typeof z.target=="function"?z.target:this.defaultTarget,this.text=typeof z.text=="function"?z.text:this.defaultText,this.container=k(z.container)==="object"?z.container:document.body}},{key:"listenClick",value:function(z){var V=this;this.listener=f()(z,"click",function(K){return V.onClick(K)})}},{key:"onClick",value:function(z){var V=z.delegateTarget||z.currentTarget,K=this.action(V)||"copy",J=$({action:K,container:this.container,target:this.target(V),text:this.text(V)});this.emit(J?"success":"error",{action:K,text:J,trigger:V,clearSelection:function(){V&&V.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(z){return _("action",z)}},{key:"defaultTarget",value:function(z){var V=_("target",z);if(V)return document.querySelector(V)}},{key:"defaultText",value:function(z){return _("text",z)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(z){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return w(z,V)}},{key:"cut",value:function(z){return m(z)}},{key:"isSupported",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],V=typeof z=="string"?[z]:z,K=!!document.queryCommandSupported;return V.forEach(function(J){K=K&&!!document.queryCommandSupported(J)}),K}}]),F})(c()),W=L}),828:(function(a){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function s(c,d){for(;c&&c.nodeType!==i;){if(typeof c.matches=="function"&&c.matches(d))return c;c=c.parentNode}}a.exports=s}),438:(function(a,i,l){var s=l(828);function c(p,v,h,g,m){var b=f.apply(this,arguments);return p.addEventListener(h,b,m),{destroy:function(){p.removeEventListener(h,b,m)}}}function d(p,v,h,g,m){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof h=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(b){return c(b,v,h,g,m)}))}function f(p,v,h,g){return function(m){m.delegateTarget=s(m.target,v),m.delegateTarget&&g.call(p,m)}}a.exports=d}),879:(function(a,i){i.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},i.nodeList=function(l){var s=Object.prototype.toString.call(l);return l!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in l&&(l.length===0||i.node(l[0]))},i.string=function(l){return typeof l=="string"||l instanceof String},i.fn=function(l){var s=Object.prototype.toString.call(l);return s==="[object Function]"}}),370:(function(a,i,l){var s=l(879),c=l(438);function d(h,g,m){if(!h&&!g&&!m)throw new Error("Missing required arguments");if(!s.string(g))throw new TypeError("Second argument must be a String");if(!s.fn(m))throw new TypeError("Third argument must be a Function");if(s.node(h))return f(h,g,m);if(s.nodeList(h))return p(h,g,m);if(s.string(h))return v(h,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,g,m){return h.addEventListener(g,m),{destroy:function(){h.removeEventListener(g,m)}}}function p(h,g,m){return Array.prototype.forEach.call(h,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(h,function(b){b.removeEventListener(g,m)})}}}function v(h,g,m){return c(document.body,h,g,m)}a.exports=d}),817:(function(a){function i(l){var s;if(l.nodeName==="SELECT")l.focus(),s=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var c=l.hasAttribute("readonly");c||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),c||l.removeAttribute("readonly"),s=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var d=window.getSelection(),f=document.createRange();f.selectNodeContents(l),d.removeAllRanges(),d.addRange(f),s=d.toString()}return s}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(l,s,c){var d=this.e||(this.e={});return(d[l]||(d[l]=[])).push({fn:s,ctx:c}),this},once:function(l,s,c){var d=this;function f(){d.off(l,f),s.apply(c,arguments)}return f._=s,this.on(l,f,c)},emit:function(l){var s=[].slice.call(arguments,1),c=((this.e||(this.e={}))[l]||[]).slice(),d=0,f=c.length;for(d;d<f;d++)c[d].fn.apply(c[d].ctx,s);return this},off:function(l,s){var c=this.e||(this.e={}),d=c[l],f=[];if(d&&s)for(var p=0,v=d.length;p<v;p++)d[p].fn!==s&&d[p].fn._!==s&&f.push(d[p]);return f.length?c[l]=f:delete c[l],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function o(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,o),i.exports}return(function(){o.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(i,{a:i}),i}})(),(function(){o.d=function(a,i){for(var l in i)o.o(i,l)&&!o.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:i[l]})}})(),(function(){o.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),o(686)})().default})})(Fi)),Fi.exports}var rA=nA();const pA=ay(rA),oA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACRSURBVHgB7ZJBCsQgDEWTmQvMncT7dOuqmY3iai6kMN31UmIjdNFFKuk+DwKahP9ABDAMQyTnvHCtT/ZjjIs0e0nN1hr03kkjGTu8+0PEjzR/S81a6+6cQz6S9x5KKdsknLi+IQRSC07JfybRhE8FM4k2fICgIKVE/MYrF427NlwtuEpOgSr8MUNy9x0Nw7jnAFsnZ7Uu5CkqAAAAAElFTkSuQmCC",{TextArea:Gm}=zs,{useForm:aA}=Fo,Ab={\u56DE\u7B54\u4E0D\u4F73:"ansPoor",\u683C\u5F0F\u95EE\u9898:"formatError",\u7406\u89E3\u95EE\u9898\u6709\u8BEF:"harmfulInfo",\u5176\u4ED6:"othres"},mA=({open:e,setOpen:t,feedBackList:n,handleConfirm:r})=>{const o={header:{padding:"20px 24px",borderBottom:"1px solid #F0F0F0",margin:0},body:{padding:"16px 24px 20px 24px",borderBottom:"1px solid #F0F0F0"},mask:{},footer:{padding:"16px 24px",margin:0},content:{padding:0,borderRadius:"4px",width:"563px"}},[a]=aA(),[i,l]=Pt({}),s=async()=>{try{const c=await a.validateFields();t(!1);const d={...c};Object.entries(i||{}).forEach(f=>{const[p,v]=f;v&&(d[Ab[p]]=v)}),r(d)}catch(c){console.log(c);return}};return It(()=>{e||(a.resetFields(),l(null))},[e]),_t(iy,{modal:{styles:o},children:mn(dy,{open:e,onCancel:()=>t(!1),title:_t("div",{className:"text-[16px] text-[#2A2A2A] font-bold leading-[1]",children:"\u611F\u8C22\u60A8\u7684\u53CD\u9988\uFF01\u8FD9\u5C06\u5E2E\u52A9\u6211\u4EEC\u4E0D\u65AD\u4F18\u5316\u4E0E\u63D0\u5347\u3002"}),footer:mn("div",{children:[_t(Bi,{className:"mr-[16px] w-[76px]",onClick:()=>{t(!1)},children:"\u53D6\u6D88"}),_t(Bi,{type:"primary",className:"w-[76px] border-none",onClick:s,children:"\u786E\u8BA4"})]}),children:[_t(iA,{feedBackList:n,treeSelectResult:i,setTreeSelectResult:l}),mn(Fo,{form:a,layout:"vertical",children:[_t(Fo.Item,{name:"supplementExplain",label:"\u8865\u5145\u63CF\u8FF0",children:_t(Gm,{})})," ",_t(Fo.Item,{name:"idealAnswer",label:"\u60A8\u89C9\u5F97\u66F4\u597D\u7684\u56DE\u7B54\u662F\u4EC0\u4E48\uFF1F",children:_t(Gm,{})}),_t(Fo.Item,{name:"userPhone",label:"\u8054\u7CFB\u7535\u8BDD",children:_t(zs,{})}),_t(Fo.Item,{name:"deptName",label:"\u90E8\u95E8",children:_t(zs,{})})]})]})})},iA=({feedBackList:e,treeSelectResult:t,setTreeSelectResult:n})=>{const[r,o]=Pt(!1),[a,i]=Pt([]),[l,s]=Pt([]),[c,d]=Pt([]),[f,p]=Pt(null),v=En(()=>(s([]),f!=null&&f.items?[{title:"\u5168\u9009",key:"\u5168\u9009",children:f.items.map(g=>({title:g,key:g}))}]:[]),[f]),h=g=>{d(m=>Array.isArray(m)&&Array.isArray(l)?Object.entries(t).reduce((x,y)=>{const[w,C]=y,$=(C?C.split(";"):[]).filter(k=>k!==g);return n(k=>({...k||{},[w]:$.join(";")})),[...x,...$]},[]):m)};return It(()=>{if(i(["\u5168\u9009"]),!t||!(f!=null&&f.que_name))return;const g=t[f.que_name]||"",m=g?g.split(";"):[];s(m)},[v,r]),It(()=>{t===null&&(d([]),p(null),s([]))},[t]),It(()=>{console.log("treeSelectResult",t),console.log("selectedValue",c),console.log("feedBackList",e),console.log("pKey",Ab),console.log("selectedParent",f)},[t,c]),mn("div",{className:"relative mb-[24px] z-20",children:[mn("div",{className:"absolute w-full z-10",children:[mn("div",{className:"h-[32px] box-border flex items-center justify-between border-[1px] border-solid border-[#D9D9D9] rounded-[4px] cursor-pointer",onClick:()=>o(!r),children:[_t("div",{className:"ml-[16px]",children:"\u95EE\u9898\u7C7B\u578B"}),_t("img",{src:oA,width:24,height:24,className:"mr-[16px]"})]}),mn("div",{style:{display:r?"":"none"},className:"h-[288px] rounded-[4px] shadow-md mt-[4px] bg-white",children:[mn("div",{className:"h-[248px] flex",style:{borderBottom:"1px solid #F0F0F0"},children:[_t("div",{className:"w-[203px] px-[8px] py-[8px]",style:{borderRight:"1px solid #F0F0F0"},children:e.map((g,m)=>{var b;return mn("div",{className:"rounded-[4px] h-[32px] cursor-pointer flex items-center",style:{backgroundColor:(f==null?void 0:f.que_name)===g.que_name?"#E6F4FF":""},children:[_t("div",{className:"h-full w-full leading-[32px]",onClick:()=>{p(g)},children:mn("div",{className:"ml-[8px] text-[14px] text-[#2A2A2A]",children:[g.que_name,"(",t&&t[g.que_name]?t[g.que_name].split(";").length:0,"/",(b=g==null?void 0:g.items)==null?void 0:b.length,")"]})}),_t(ly,{className:"mr-[8px] w-3 h-3 text-[rgba(0,0,0,0.45)]"})]},m)})}),_t("div",{className:"selfTree h-full flex-1 mt-[8px] ml-[16px]",children:_t(bu,{checkable:!0,defaultSelectedKeys:["0-1"],treeData:v,blockNode:!0,checkedKeys:l,expandedKeys:a,onCheck:g=>{Array.isArray(g)&&n(m=>({...m||{},[(f==null?void 0:f.que_name)||""]:(g||[]).filter(b=>b!=="\u5168\u9009").join(";")})),s(g)}})})]}),mn("div",{className:"flex justify-end h-[40px] items-center",children:[_t(Bi,{size:"small",className:"mr-[8px]",onClick:()=>o(!1),children:"\u53D6\u6D88"}),_t(Bi,{size:"small",type:"primary",className:"border-none mr-[16px]",onClick:()=>{d(g=>Array.isArray(g)&&Array.isArray(l)?Object.values(t).reduce((b,x)=>[...b,...x?x.split(";"):[]],[]):g),o(!1)},children:"\u786E\u8BA4"})]})]})]}),_t("div",{className:"h-[32px]"}),!!(c!=null&&c.length)&&mn("div",{children:[mn("div",{className:"mt-[5px] text-[12px] text-[#555555]",children:["\u5DF2\u9009\u62E9 ",c.length," \u4E2A"]}),(c||[]).map(g=>{let m="";return Object.entries(t||{}).forEach(b=>{const[x,y]=b;y.indexOf(g)>-1&&(m=x)}),mn(sy,{closable:!0,className:"mt-[5px]",onClose:()=>h(g),children:[m,"\uFF08",g,"\uFF09"]},g)})]})]})};function gA(){const[e,t]=Pt(0);return It(()=>{let n;return e<98?n=setTimeout(()=>{t(r=>r+Math.random()*6+1)},80):e<100&&(n=setTimeout(()=>t(100),400)),()=>clearTimeout(n)},[e]),mn("div",{className:"flex flex-col justify-center items-center min-h-screen bg-gradient-to-br from-[#EEF4FF] via-white to-[#F5F8FF]",children:[mn("div",{className:"mb-8 flex flex-col items-center",children:[_t("div",{className:"mt-6 text-2xl font-semibold text-[#222222] tracking-wide",children:"\u5C0F\u9CB8\u667A\u80FD\u4F1A\u8BDD\u52A9\u624B"}),_t("div",{className:"mt-2 text-sm text-[#555555]",children:"\u8BA9\u667A\u80FD\u5BF9\u8BDD\u66F4\u7B80\u5355"})]}),mn("div",{className:"relative w-80 max-w-sm",children:[_t("div",{className:"w-full h-2 bg-[#EEF4FF] rounded-full overflow-hidden shadow-inner",children:_t("div",{className:"h-full bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] transition-all duration-300 ease-out",style:{width:`${Math.min(e,100)}%`}})}),mn("div",{className:"absolute -right-2 top-5 text-sm text-[#555555]",children:[Math.min(Math.round(e),100),"%"]})]}),mn("div",{className:"mt-8 flex flex-col items-center gap-2",children:[_t("div",{className:"text-sm text-[#555555] animate-pulse",children:"\u6B63\u5728\u521D\u59CB\u5316\u5E94\u7528"}),_t("div",{className:"text-xs text-[#888888]",children:"\u9996\u6B21\u52A0\u8F7D\u53EF\u80FD\u9700\u8981\u4E00\u4E9B\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"})]})]})}const Tb=document.createElement("style");Tb.textContent=`
|
|
407
|
+
.animate-bounce-slow {
|
|
408
|
+
animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
409
|
+
}
|
|
410
|
+
@keyframes bounce {
|
|
411
|
+
0%, 100% { transform: translateY(0); }
|
|
412
|
+
50% { transform: translateY(-12px); }
|
|
413
|
+
}
|
|
414
|
+
`;document.head.appendChild(Tb);export{gA as A,pA as C,mA as F,fA as H,QD as h,eA as v};
|