hlyc-web-pack 4.0.0-beta.2 → 4.0.0-beta.3

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/lib/index.cjs.js CHANGED
@@ -1,13 +1,2 @@
1
- "use strict";var e=require("react"),t=require("lodash"),n=require("react/jsx-runtime"),r=require("react-dom"),o=require("react-draggable"),i=require("uuid");function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var l=a(e),c=a(r);function s(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}s('body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:sans-serif;line-height:1.15}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{background-color:#feffe6;padding:.2em}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2V0LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxVQUdFLFdBQVksQ0FEWixVQUVGLENBQ0EsbUNBRUUsWUFDRixDQUNBLGlCQUdFLHFCQUNGLENBQ0EsS0FHRSw2QkFBOEIsQ0FDOUIseUJBQTBCLENBQzFCLDRCQUE2QixDQUM3Qix5Q0FBNkMsQ0FMN0Msc0JBQXVCLENBQ3ZCLGdCQUtGLENBQ0EsY0FDRSxrQkFDRixDQUNBLEtBQ0UsUUFDRixDQUNBLHNCQUNFLFlBQ0YsQ0FDQSxHQUNFLHNCQUF1QixDQUN2QixRQUFTLENBQ1QsZ0JBQ0YsQ0FDQSxrQkFRRSxlQUFnQixDQURoQixrQkFBb0IsQ0FEcEIsWUFHRixDQUNBLEVBRUUsaUJBQWtCLENBRGxCLFlBRUYsQ0FDQSxzQ0FJRSxlQUFnQixDQUNoQixXQUFZLENBSFosd0NBQXlDLENBQ3pDLGdDQUdGLENBQ0EsUUFFRSxpQkFBa0IsQ0FDbEIsbUJBQW9CLENBRnBCLGlCQUdGLENBQ0Esa0VBSUUsdUJBQ0YsQ0FDQSxTQUlFLGlCQUFrQixDQURsQixZQUVGLENBQ0Esd0JBSUUsZUFDRixDQUNBLEdBQ0UsZUFDRixDQUNBLEdBQ0Usa0JBQW9CLENBQ3BCLGFBQ0YsQ0FDQSxXQUNFLGNBQ0YsQ0FDQSxJQUNFLGlCQUNGLENBQ0EsU0FFRSxrQkFDRixDQUNBLE1BQ0UsYUFDRixDQUNBLFFBR0UsYUFBYyxDQUNkLGFBQWMsQ0FGZCxpQkFBa0IsQ0FHbEIsdUJBQ0YsQ0FDQSxJQUNFLGFBQ0YsQ0FDQSxJQUNFLFNBQ0YsQ0FDQSxrQkFLRSwyRUFBcUYsQ0FEckYsYUFFRixDQUNBLElBRUUsaUJBQWtCLENBRGxCLFlBQWEsQ0FFYixhQUNGLENBQ0EsT0FDRSxjQUNGLENBQ0EsSUFFRSxpQkFBa0IsQ0FEbEIscUJBRUYsQ0FDQSxrRkFTRSx5QkFDRixDQUNBLE1BQ0Usd0JBQ0YsQ0FDQSxRQUlFLG1CQUFvQixDQUZwQixtQkFBcUIsQ0FEckIsaUJBQW1CLENBRW5CLGVBRUYsQ0FDQSxzQ0FNRSxhQUFjLENBRWQsbUJBQW9CLENBRHBCLGlCQUFrQixDQUVsQixtQkFBb0IsQ0FKcEIsUUFLRixDQUNBLGFBRUUsZ0JBQ0YsQ0FDQSxjQUVFLG1CQUNGLENBQ0EscURBSUUseUJBQ0YsQ0FDQSx3SEFLRSxpQkFBa0IsQ0FEbEIsU0FFRixDQUNBLHVDQUVFLHFCQUFzQixDQUN0QixTQUNGLENBQ0EsK0VBSUUsMEJBQ0YsQ0FDQSxTQUNFLGFBQWMsQ0FDZCxlQUNGLENBQ0EsU0FJRSxRQUFTLENBRlQsUUFBUyxDQURULFdBQVksQ0FFWixTQUVGLENBQ0EsT0FNRSxhQUFjLENBTGQsYUFBYyxDQU1kLGVBQWdCLENBQ2hCLG1CQUFvQixDQUpwQixrQkFBb0IsQ0FEcEIsY0FBZSxDQUVmLFNBQVUsQ0FJVixrQkFBbUIsQ0FQbkIsVUFRRixDQUNBLFNBQ0UsdUJBQ0YsQ0FDQSxrRkFFRSxXQUNGLENBQ0EsY0FFRSx1QkFBd0IsQ0FEeEIsbUJBRUYsQ0FDQSxxRkFFRSx1QkFDRixDQUNBLDZCQUVFLHlCQUEwQixDQUQxQixZQUVGLENBQ0EsT0FDRSxvQkFDRixDQUNBLFFBQ0UsaUJBQ0YsQ0FDQSxTQUNFLFlBQ0YsQ0FDQSxTQUNFLHNCQUNGLENBQ0EsS0FFRSx3QkFBeUIsQ0FEekIsWUFFRiIsImZpbGUiOiJyZXNldC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBzdHlsZWxpbnQtZGlzYWJsZSAqL1xuaHRtbCxcbmJvZHkge1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xufVxuaW5wdXQ6Oi1tcy1jbGVhcixcbmlucHV0OjotbXMtcmV2ZWFsIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cbiosXG4qOjpiZWZvcmUsXG4qOjphZnRlciB7XG4gIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG59XG5odG1sIHtcbiAgZm9udC1mYW1pbHk6IHNhbnMtc2VyaWY7XG4gIGxpbmUtaGVpZ2h0OiAxLjE1O1xuICAtd2Via2l0LXRleHQtc2l6ZS1hZGp1c3Q6IDEwMCU7XG4gIC1tcy10ZXh0LXNpemUtYWRqdXN0OiAxMDAlO1xuICAtbXMtb3ZlcmZsb3ctc3R5bGU6IHNjcm9sbGJhcjtcbiAgLXdlYmtpdC10YXAtaGlnaGxpZ2h0LWNvbG9yOiByZ2JhKDAsIDAsIDAsIDApO1xufVxuQC1tcy12aWV3cG9ydCB7XG4gIHdpZHRoOiBkZXZpY2Utd2lkdGg7XG59XG5ib2R5IHtcbiAgbWFyZ2luOiAwO1xufVxuW3RhYmluZGV4PSctMSddOmZvY3VzIHtcbiAgb3V0bGluZTogbm9uZTtcbn1cbmhyIHtcbiAgYm94LXNpemluZzogY29udGVudC1ib3g7XG4gIGhlaWdodDogMDtcbiAgb3ZlcmZsb3c6IHZpc2libGU7XG59XG5oMSxcbmgyLFxuaDMsXG5oNCxcbmg1LFxuaDYge1xuICBtYXJnaW4tdG9wOiAwO1xuICBtYXJnaW4tYm90dG9tOiAwLjVlbTtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbn1cbnAge1xuICBtYXJnaW4tdG9wOiAwO1xuICBtYXJnaW4tYm90dG9tOiAxZW07XG59XG5hYmJyW3RpdGxlXSxcbmFiYnJbZGF0YS1vcmlnaW5hbC10aXRsZV0ge1xuICAtd2Via2l0LXRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lIGRvdHRlZDtcbiAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmUgZG90dGVkO1xuICBib3JkZXItYm90dG9tOiAwO1xuICBjdXJzb3I6IGhlbHA7XG59XG5hZGRyZXNzIHtcbiAgbWFyZ2luLWJvdHRvbTogMWVtO1xuICBmb250LXN0eWxlOiBub3JtYWw7XG4gIGxpbmUtaGVpZ2h0OiBpbmhlcml0O1xufVxuaW5wdXRbdHlwZT0ndGV4dCddLFxuaW5wdXRbdHlwZT0ncGFzc3dvcmQnXSxcbmlucHV0W3R5cGU9J251bWJlciddLFxudGV4dGFyZWEge1xuICAtd2Via2l0LWFwcGVhcmFuY2U6IG5vbmU7XG59XG5vbCxcbnVsLFxuZGwge1xuICBtYXJnaW4tdG9wOiAwO1xuICBtYXJnaW4tYm90dG9tOiAxZW07XG59XG5vbCBvbCxcbnVsIHVsLFxub2wgdWwsXG51bCBvbCB7XG4gIG1hcmdpbi1ib3R0b206IDA7XG59XG5kdCB7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG59XG5kZCB7XG4gIG1hcmdpbi1ib3R0b206IDAuNWVtO1xuICBtYXJnaW4tbGVmdDogMDtcbn1cbmJsb2NrcXVvdGUge1xuICBtYXJnaW46IDAgMCAxZW07XG59XG5kZm4ge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG59XG5iLFxuc3Ryb25nIHtcbiAgZm9udC13ZWlnaHQ6IGJvbGRlcjtcbn1cbnNtYWxsIHtcbiAgZm9udC1zaXplOiA4MCU7XG59XG5zdWIsXG5zdXAge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIGZvbnQtc2l6ZTogNzUlO1xuICBsaW5lLWhlaWdodDogMDtcbiAgdmVydGljYWwtYWxpZ246IGJhc2VsaW5lO1xufVxuc3ViIHtcbiAgYm90dG9tOiAtMC4yNWVtO1xufVxuc3VwIHtcbiAgdG9wOiAtMC41ZW07XG59XG5wcmUsXG5jb2RlLFxua2JkLFxuc2FtcCB7XG4gIGZvbnQtc2l6ZTogMWVtO1xuICBmb250LWZhbWlseTogJ1NGTW9uby1SZWd1bGFyJywgQ29uc29sYXMsICdMaWJlcmF0aW9uIE1vbm8nLCBNZW5sbywgQ291cmllciwgbW9ub3NwYWNlO1xufVxucHJlIHtcbiAgbWFyZ2luLXRvcDogMDtcbiAgbWFyZ2luLWJvdHRvbTogMWVtO1xuICBvdmVyZmxvdzogYXV0bztcbn1cbmZpZ3VyZSB7XG4gIG1hcmdpbjogMCAwIDFlbTtcbn1cbmltZyB7XG4gIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG4gIGJvcmRlci1zdHlsZTogbm9uZTtcbn1cbmEsXG5hcmVhLFxuYnV0dG9uLFxuW3JvbGU9J2J1dHRvbiddLFxuaW5wdXQ6bm90KFt0eXBlPSdyYW5nZSddKSxcbmxhYmVsLFxuc2VsZWN0LFxuc3VtbWFyeSxcbnRleHRhcmVhIHtcbiAgdG91Y2gtYWN0aW9uOiBtYW5pcHVsYXRpb247XG59XG50YWJsZSB7XG4gIGJvcmRlci1jb2xsYXBzZTogY29sbGFwc2U7XG59XG5jYXB0aW9uIHtcbiAgcGFkZGluZy10b3A6IDAuNzVlbTtcbiAgcGFkZGluZy1ib3R0b206IDAuM2VtO1xuICB0ZXh0LWFsaWduOiBsZWZ0O1xuICBjYXB0aW9uLXNpZGU6IGJvdHRvbTtcbn1cbmlucHV0LFxuYnV0dG9uLFxuc2VsZWN0LFxub3B0Z3JvdXAsXG50ZXh0YXJlYSB7XG4gIG1hcmdpbjogMDtcbiAgY29sb3I6IGluaGVyaXQ7XG4gIGZvbnQtc2l6ZTogaW5oZXJpdDtcbiAgZm9udC1mYW1pbHk6IGluaGVyaXQ7XG4gIGxpbmUtaGVpZ2h0OiBpbmhlcml0O1xufVxuYnV0dG9uLFxuaW5wdXQge1xuICBvdmVyZmxvdzogdmlzaWJsZTtcbn1cbmJ1dHRvbixcbnNlbGVjdCB7XG4gIHRleHQtdHJhbnNmb3JtOiBub25lO1xufVxuYnV0dG9uLFxuaHRtbCBbdHlwZT0nYnV0dG9uJ10sXG5bdHlwZT0ncmVzZXQnXSxcblt0eXBlPSdzdWJtaXQnXSB7XG4gIC13ZWJraXQtYXBwZWFyYW5jZTogYnV0dG9uO1xufVxuYnV0dG9uOjotbW96LWZvY3VzLWlubmVyLFxuW3R5cGU9J2J1dHRvbiddOjotbW96LWZvY3VzLWlubmVyLFxuW3R5cGU9J3Jlc2V0J106Oi1tb3otZm9jdXMtaW5uZXIsXG5bdHlwZT0nc3VibWl0J106Oi1tb3otZm9jdXMtaW5uZXIge1xuICBwYWRkaW5nOiAwO1xuICBib3JkZXItc3R5bGU6IG5vbmU7XG59XG5pbnB1dFt0eXBlPSdyYWRpbyddLFxuaW5wdXRbdHlwZT0nY2hlY2tib3gnXSB7XG4gIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gIHBhZGRpbmc6IDA7XG59XG5pbnB1dFt0eXBlPSdkYXRlJ10sXG5pbnB1dFt0eXBlPSd0aW1lJ10sXG5pbnB1dFt0eXBlPSdkYXRldGltZS1sb2NhbCddLFxuaW5wdXRbdHlwZT0nbW9udGgnXSB7XG4gIC13ZWJraXQtYXBwZWFyYW5jZTogbGlzdGJveDtcbn1cbnRleHRhcmVhIHtcbiAgb3ZlcmZsb3c6IGF1dG87XG4gIHJlc2l6ZTogdmVydGljYWw7XG59XG5maWVsZHNldCB7XG4gIG1pbi13aWR0aDogMDtcbiAgbWFyZ2luOiAwO1xuICBwYWRkaW5nOiAwO1xuICBib3JkZXI6IDA7XG59XG5sZWdlbmQge1xuICBkaXNwbGF5OiBibG9jaztcbiAgd2lkdGg6IDEwMCU7XG4gIG1heC13aWR0aDogMTAwJTtcbiAgbWFyZ2luLWJvdHRvbTogMC41ZW07XG4gIHBhZGRpbmc6IDA7XG4gIGNvbG9yOiBpbmhlcml0O1xuICBmb250LXNpemU6IDEuNWVtO1xuICBsaW5lLWhlaWdodDogaW5oZXJpdDtcbiAgd2hpdGUtc3BhY2U6IG5vcm1hbDtcbn1cbnByb2dyZXNzIHtcbiAgdmVydGljYWwtYWxpZ246IGJhc2VsaW5lO1xufVxuW3R5cGU9J251bWJlciddOjotd2Via2l0LWlubmVyLXNwaW4tYnV0dG9uLFxuW3R5cGU9J251bWJlciddOjotd2Via2l0LW91dGVyLXNwaW4tYnV0dG9uIHtcbiAgaGVpZ2h0OiBhdXRvO1xufVxuW3R5cGU9J3NlYXJjaCddIHtcbiAgb3V0bGluZS1vZmZzZXQ6IC0ycHg7XG4gIC13ZWJraXQtYXBwZWFyYW5jZTogbm9uZTtcbn1cblt0eXBlPSdzZWFyY2gnXTo6LXdlYmtpdC1zZWFyY2gtY2FuY2VsLWJ1dHRvbixcblt0eXBlPSdzZWFyY2gnXTo6LXdlYmtpdC1zZWFyY2gtZGVjb3JhdGlvbiB7XG4gIC13ZWJraXQtYXBwZWFyYW5jZTogbm9uZTtcbn1cbjo6LXdlYmtpdC1maWxlLXVwbG9hZC1idXR0b24ge1xuICBmb250OiBpbmhlcml0O1xuICAtd2Via2l0LWFwcGVhcmFuY2U6IGJ1dHRvbjtcbn1cbm91dHB1dCB7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbn1cbnN1bW1hcnkge1xuICBkaXNwbGF5OiBsaXN0LWl0ZW07XG59XG50ZW1wbGF0ZSB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5baGlkZGVuXSB7XG4gIGRpc3BsYXk6IG5vbmUgIWltcG9ydGFudDtcbn1cbm1hcmsge1xuICBwYWRkaW5nOiAwLjJlbTtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZlZmZlNjtcbn1cbiJdfQ== */');var u,d=(u=e.useEffect,(t,n)=>{const r=e.useRef(!1);u(()=>()=>{r.current=!1},[]),u(()=>{if(r.current)return t();r.current=!0},n)});var f={useSetState:(t={})=>{const[n,r]=e.useState(t);return[n,e.useCallback(e=>{r(t=>Object.assign({},t,e instanceof Function?e(t):e))},[])]},useDeepCompareEffect:function(e,n){return l.useEffect(e,function(e){const n=l.useRef(),r=l.useRef(0);return t.isEqual(e,n.current)||(n.current=e,r.current+=1),[r.current]}(n))},useUpdateEffect:d,useMemoizedFn:d,useMount:t=>{e.useEffect(()=>{t()},[])},useUnmount:t=>{const n=e.useRef(t);e.useEffect(()=>()=>{n.current()},[])},useMethods:function(t){const{current:n}=e.useRef({methods:t,func:void 0});if(n.methods=t,!n.func){const e=Object.create(null);Object.keys(t).forEach(t=>{e[t]=(...e)=>n.methods[t].call(n.methods,...e)}),n.func=e}return n.func},useToggle:function(t=!1,n){const[r,o]=e.useState(t);return[r,e.useMemo(()=>{const e=void 0===n?!t:n;return{toggle:()=>o(n=>n===t?e:t),set:e=>o(e),setLeft:()=>o(t),setRight:()=>o(e)}},[])]},useLatest:function(t){const n=e.useRef(t);return n.current=t,n}};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,g={exports:{}};
2
- /*!
3
- Copyright (c) 2018 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */var h,v=(m||(m=1,h=g,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}h.exports?(t.default=t,h.exports=t):window.classNames=t}()),g.exports),b=p(v);function y(){return y=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},y.apply(null,arguments)}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}var w=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),S=Symbol.for("react.fragment");function $(e){return e&&"object"===x(e)&&(e.$$typeof===w||e.$$typeof===C)&&e.type===S}function k(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.Children.forEach(t,function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(k(e)):$(e)&&e.props?r=r.concat(k(e.props.children,n)):r.push(e))}),r}var E={};function O(e,t){}function I(e,t){}function N(e,t,n){t||E[n]||(e(!1,n),E[n]=!0)}function R(e,t){N(O,e,t)}function j(e){var t=function(e,t){if("object"!=x(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==x(t)?t:t+""}function M(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){M(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T(e){return e instanceof HTMLElement||e instanceof SVGElement}function B(e){return e&&"object"===x(e)&&T(e.nativeElement)?e.nativeElement:T(e)?e:null}function L(t){var n,o=B(t);return o||(t instanceof e.Component?null===(n=r.findDOMNode)||void 0===n?void 0:n.call(r,t):null)}R.preMessage=function(e){},R.resetWarned=function(){E={}},R.noteOnce=function(e,t){N(I,e,t)};var z,F,H={exports:{}},A={};var _=(F||(F=1,H.exports=function(){if(z)return A;z=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case s:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),A.ContextConsumer=l,A.ContextProvider=a,A.Element=t,A.ForwardRef=s,A.Fragment=r,A.Lazy=p,A.Memo=f,A.Portal=n,A.Profiler=i,A.StrictMode=o,A.Suspense=u,A.SuspenseList=d,A.isAsyncMode=function(){return!1},A.isConcurrentMode=function(){return!1},A.isContextConsumer=function(e){return g(e)===l},A.isContextProvider=function(e){return g(e)===a},A.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},A.isForwardRef=function(e){return g(e)===s},A.isFragment=function(e){return g(e)===r},A.isLazy=function(e){return g(e)===p},A.isMemo=function(e){return g(e)===f},A.isPortal=function(e){return g(e)===n},A.isProfiler=function(e){return g(e)===i},A.isStrictMode=function(e){return g(e)===o},A.isSuspense=function(e){return g(e)===u},A.isSuspenseList=function(e){return g(e)===d},A.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},A.typeOf=g,A}()),H.exports);function W(e,t,n){var r=l.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var V=Number(e.version.split(".")[0]),G=function(e,t){"function"==typeof e?e(t):"object"===x(e)&&e&&"current"in e&&(e.current=t)},U=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(e){t.forEach(function(t){G(t,e)})}},X=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return W(function(){return U.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},K=function(e){var t,n;if(!e)return!1;if(Q(e)&&V>=19)return!0;var r=_.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===_.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===_.ForwardRef)};function Q(t){return e.isValidElement(t)&&!$(t)}var Y=function(e){if(e&&Q(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},q=l.createContext(null);var Z=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}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(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),J="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ee="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),te="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ee):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var ne=["top","right","bottom","left","width","height","size","weight"],re="undefined"!=typeof MutationObserver,oe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){te(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){J&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),re?(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(){J&&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(e){var t=e.propertyName,n=void 0===t?"":t;ne.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ie=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},ae=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ee},le=pe(0,0,0,0);function ce(e){return parseFloat(e)||0}function se(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+ce(e["border-"+n+"-width"])},0)}function ue(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return le;var r=ae(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=ce(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=ce(r.width),c=ce(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=se(r,"left","right")+i),Math.round(c+a)!==n&&(c-=se(r,"top","bottom")+a)),!function(e){return e===ae(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return pe(o.left,o.top,l,c)}var de="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof ae(e).SVGGraphicsElement}:function(e){return e instanceof ae(e).SVGElement&&"function"==typeof e.getBBox};function fe(e){return J?de(e)?function(e){var t=e.getBBox();return pe(0,0,t.width,t.height)}(e):ue(e):le}function pe(e,t,n,r){return{x:e,y:t,width:n,height:r}}var me=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=pe(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=fe(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ge=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),ie(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);ie(this,{target:e,contentRect:s})},he=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Z,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ae(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new me(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ae(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new ge(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ve="undefined"!=typeof WeakMap?new WeakMap:new Z,be=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=oe.getInstance(),r=new he(t,n,this);ve.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){be.prototype[e]=function(){var t;return(t=ve.get(this))[e].apply(t,arguments)}});var ye=void 0!==ee.ResizeObserver?ee.ResizeObserver:be,xe=new Map;var we=new ye(function(e){e.forEach(function(e){var t,n=e.target;null===(t=xe.get(n))||void 0===t||t.forEach(function(e){return e(n)})})});function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(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,j(r.key),r)}}function $e(e,t,n){return t&&Se(e.prototype,t),n&&Se(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ke(e,t){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ke(e,t)}function Ee(e,t){if("function"!=typeof t&&null!==t)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&&ke(e,t)}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}function Ie(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ie=function(){return!!e})()}function Ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Re(e){var t=Ie();return function(){var n,r=Oe(e);if(t){var o=Oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ne(e)}(this,n)}}var je=function(){Ee(t,l.Component);var e=Re(t);function t(){return Ce(this,t),e.apply(this,arguments)}return $e(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Me(e,t){var n=e.children,r=e.disabled,o=l.useRef(null),i=l.useRef(null),a=l.useContext(q),c="function"==typeof n,s=c?n(o):n,u=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&l.isValidElement(s)&&K(s),f=d?Y(s):null,p=X(f,o),m=function(){var e;return L(o.current)||(o.current&&"object"===x(o.current)?L(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||L(i.current)};l.useImperativeHandle(t,function(){return m()});var g=l.useRef(e);g.current=e;var h=l.useCallback(function(e){var t=g.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(l);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var m=c===Math.round(i)?i:c,h=s===Math.round(l)?l:s,v=D(D({},p),{},{offsetWidth:m,offsetHeight:h});null==a||a(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return l.useEffect(function(){var e,t,n=m();return n&&!r&&(e=n,t=h,xe.has(e)||(xe.set(e,new Set),we.observe(e)),xe.get(e).add(t)),function(){return function(e,t){xe.has(e)&&(xe.get(e).delete(t),xe.get(e).size||(we.unobserve(e),xe.delete(e)))}(n,h)}},[o.current,r]),l.createElement(je,{ref:i},d?l.cloneElement(s,{ref:p}):s)}var Pe=l.forwardRef(Me);function De(e,t){var n=e.children;return("function"==typeof n?[n]:k(n)).map(function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return l.createElement(Pe,y({},e,{key:o,ref:0===r?t:void 0}),n)})}var Te=l.forwardRef(De);function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Le(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ze(e,t){if(e){if("string"==typeof e)return Be(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}}function Fe(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||Le(e)||ze(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Te.Collection=function(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),o=l.useRef([]),i=l.useContext(q),a=l.useCallback(function(e,t,a){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then(function(){l===r.current&&(null==n||n(o.current),o.current=[])}),null==i||i(e,t,a)},[n,i]);return l.createElement(q.Provider,{value:a},t)};var He=function(e){return+setTimeout(e,16)},Ae=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(He=function(e){return window.requestAnimationFrame(e)},Ae=function(e){return window.cancelAnimationFrame(e)});var _e=0,We=new Map;function Ve(e){We.delete(e)}var Ge=function(e){var t=_e+=1;return function n(r){if(0===r)Ve(t),e();else{var o=He(function(){n(r-1)});We.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function Ue(e){let t=null;const n=(...n)=>{null===t&&(t=Ge((n=>()=>{t=null,e.apply(void 0,Fe(n))})(n)))};return n.cancel=()=>{Ge.cancel(t),t=null},n}function Xe(e){if(Array.isArray(e))return e}function Ke(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qe(e,t){return Xe(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||ze(e,t)||Ke()}function Ye(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function qe(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Ze(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}Ge.cancel=function(e){var t=We.get(e);return Ve(e),Ae(t)};var Je="data-rc-order",et="data-rc-priority",tt=new Map;function nt(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function rt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ot(e){return Array.from((tt.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!qe())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(Je,a),l&&i&&c.setAttribute(et,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=rt(t),u=s.firstChild;if(r){if(l){var d=(t.styles||ot(s)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Je)))return!1;var t=Number(e.getAttribute(et)||0);return i>=t});if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=rt(t);return(t.styles||ot(n)).find(function(n){return n.getAttribute(nt(t))===e})}function lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=at(e,t);n&&rt(t).removeChild(n)}function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=rt(n),o=ot(r),i=D(D({},n),{},{styles:o});!function(e,t){var n=tt.get(e);if(!n||!Ze(document,n)){var r=it("",t),o=r.parentNode;tt.set(e,o),e.removeChild(r)}}(r,i);var a=at(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=it(e,i);return u.setAttribute(nt(i),t),u}function st(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(R(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===x(t)&&"object"===x(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every(function(n){return e(t[n],o[n],l)})}return!1}(e,t)}function dt(e){return e.join("%")}var ft=function(){function e(t){Ce(this,e),M(this,"instanceId",void 0),M(this,"cache",new Map),M(this,"extracted",new Set),this.instanceId=t}return $e(e,[{key:"get",value:function(e){return this.opGet(dt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(dt(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),pt="data-token-hash",mt="data-css-hash",gt="__cssinjs_instance__";var ht=l.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(mt,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[gt]=t[gt]||e,t[gt]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(mt,"]"))).forEach(function(t){var n,o=t.getAttribute(mt);r[o]?t[gt]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new ft(e)}(),defaultCache:!0});var vt=function(){function e(){Ce(this,e),M(this,"cache",void 0),M(this,"keys",void 0),M(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return $e(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{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(e,t){var n=Qe(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),i=Qe(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(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}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();M(vt,"MAX_CACHE_SIZE",20),M(vt,"MAX_CACHE_OFFSET",5);var bt=0,yt=function(){function e(t){Ce(this,e),M(this,"derivatives",void 0),M(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=bt,0===t.length&&t.length,bt+=1}return $e(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),xt=new vt;function wt(e){var t=Array.isArray(e)?e:[e];return xt.has(t)||xt.set(t,new yt(t)),xt.get(t)}var Ct=new WeakMap,St={};var $t=new WeakMap;function kt(e){var t=$t.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof yt?t+=r.id:r&&"object"===x(r)?t+=kt(r):t+=r}),t=Ye(t),$t.set(e,t)),t}function Et(e,t){return Ye("".concat(t,"_").concat(kt(e)))}var Ot=qe();function It(e){return"number"==typeof e?"".concat(e,"px"):e}function Nt(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=D(D({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},M(M({},pt,t),mt,n)),o=Object.keys(r).map(function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?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()},jt=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=Qe(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},Mt=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(e){var t,i,a=Qe(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=Rt(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}}),[o,jt(r,t,{scope:null==n?void 0:n.scope})]},Pt=qe()?l.useLayoutEffect:l.useEffect,Dt=function(e,t){var n=l.useRef(!0);Pt(function(){return e(n.current)},t),Pt(function(){return n.current=!1,function(){n.current=!0}},[])},Tt=function(e,t){Dt(function(t){if(!t)return e()},t)},Bt=D({},l).useInsertionEffect,Lt=Bt?function(e,t,n){return Bt(function(){return e(),t()},n)}:function(e,t,n){l.useMemo(e,n),Dt(function(){return t(!0)},n)},zt=void 0!==D({},l).useInsertionEffect?function(e){var t=[],n=!1;return l.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function Ft(e,t,n,r,o){var i=l.useContext(ht).cache,a=dt([e].concat(Fe(t))),c=zt([a]),s=function(e){i.opUpdate(a,function(t){var r=Qe(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i})};l.useMemo(function(){s()},[a]);var u=i.opGet(a)[1];return Lt(function(){null==o||o(u)},function(e){return s(function(t){var n=Qe(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(u)),[r+1,i]}),function(){i.opUpdate(a,function(t){var n=Qe(t||[],2),o=n[0],l=void 0===o?0:o,s=n[1];return 0===l-1?(c(function(){!e&&i.opGet(a)||null==r||r(s,!1)}),null):[l-1,s]})}},[a]),u}var Ht={},At=new Map;function _t(e,t){At.set(e,(At.get(e)||0)-1);var n=new Set;At.forEach(function(e,t){e<=0&&n.add(t)}),At.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(pt,'="').concat(e,'"]')).forEach(function(e){var n;e[gt]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),At.delete(e)})}var Wt="token";function Vt(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.useContext(ht),i=o.cache.instanceId,a=o.container,l=r.salt,c=void 0===l?"":l,s=r.override,u=void 0===s?Ht:s,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,m=function(e,t){for(var n=Ct,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(St)||n.set(St,e()),n.get(St)}(function(){return Object.assign.apply(Object,[{}].concat(Fe(n)))},n),g=kt(m),h=kt(u),v=p?kt(p):"",b=Ft(Wt,[c,t.id,g,h,v],function(){var e,n=f?f(m,u,t):function(e,t,n,r){var o=D(D({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(m,u,t,d),r=D({},n),o="";if(p){var i=Qe(Mt(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=Et(n,c);n._tokenKey=a,r._tokenKey=Et(r,c);var l=null!==(e=null==p?void 0:p.key)&&void 0!==e?e:a;n._themeKey=l,function(e){At.set(e,(At.get(e)||0)+1)}(l);var s="".concat("css","-").concat(Ye(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]},function(e){_t(e[0]._themeKey,i)},function(e){var t=Qe(e,4),n=t[0],r=t[3];if(p&&r){var o=ct(r,Ye("css-variables-".concat(n._themeKey)),{mark:mt,prepend:"queue",attachTo:a,priority:-999});o[gt]=i,o.setAttribute(pt,n._themeKey)}});return b}var Gt={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},Ut="comm",Xt="rule",Kt="decl",Qt=Math.abs,Yt=String.fromCharCode;function qt(e){return e.trim()}function Zt(e,t,n){return e.replace(t,n)}function Jt(e,t,n){return e.indexOf(t,n)}function en(e,t){return 0|e.charCodeAt(t)}function tn(e,t,n){return e.slice(t,n)}function nn(e){return e.length}function rn(e,t){return t.push(e),e}var on=1,an=1,ln=0,cn=0,sn=0,un="";function dn(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:on,column:an,length:a,return:"",siblings:l}}function fn(){return sn=cn>0?en(un,--cn):0,an--,10===sn&&(an=1,on--),sn}function pn(){return sn=cn<ln?en(un,cn++):0,an++,10===sn&&(an=1,on++),sn}function mn(){return en(un,cn)}function gn(){return cn}function hn(e,t){return tn(un,e,t)}function vn(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 bn(e){return qt(hn(cn-1,wn(91===e?e+2:40===e?e+1:e)))}function yn(e){for(;(sn=mn())&&sn<33;)pn();return vn(e)>2||vn(sn)>3?"":" "}function xn(e,t){for(;--t&&pn()&&!(sn<48||sn>102||sn>57&&sn<65||sn>70&&sn<97););return hn(e,gn()+(t<6&&32==mn()&&32==pn()))}function wn(e){for(;pn();)switch(sn){case e:return cn;case 34:case 39:34!==e&&39!==e&&wn(sn);break;case 40:41===e&&wn(e);break;case 92:pn()}return cn}function Cn(e,t){for(;pn()&&e+sn!==57&&(e+sn!==84||47!==mn()););return"/*"+hn(t,cn-1)+"*"+Yt(47===e?e:pn())}function Sn(e){for(;!vn(mn());)pn();return hn(e,cn)}function $n(e){return function(e){return un="",e}(kn("",null,null,null,[""],e=function(e){return on=an=1,ln=nn(un=e),cn=0,[]}(e),0,[0],e))}function kn(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,g=1,h=1,v=1,b=0,y="",x=o,w=i,C=r,S=y;h;)switch(m=b,b=pn()){case 40:if(108!=m&&58==en(S,d-1)){-1!=Jt(S+=Zt(bn(b),"&","&\f"),"&\f",Qt(s?l[s-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=bn(b);break;case 9:case 10:case 13:case 32:S+=yn(m);break;case 92:S+=xn(gn()-1,7);continue;case 47:switch(mn()){case 42:case 47:rn(On(Cn(pn(),gn()),t,n,c),c),5!=vn(m||1)&&5!=vn(mn()||1)||!nn(S)||" "===tn(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:l[s++]=nn(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(S=Zt(S,/\f/g,"")),p>0&&(nn(S)-d||0===g&&47===m)&&rn(p>32?In(S+";",r,n,d-1,c):In(Zt(S," ","")+";",r,n,d-2,c),c);break;case 59:S+=";";default:if(rn(C=En(S,t,n,s,u,o,l,y,x=[],w=[],d,i),i),123===b)if(0===u)kn(S,t,C,C,x,i,d,l,w);else{switch(f){case 99:if(110===en(S,3))break;case 108:if(97===en(S,2))break;default:u=0;case 100:case 109:case 115:}u?kn(e,C,C,r&&rn(En(e,C,C,0,0,o,l,y,o,x=[],d,w),w),o,w,d,l,r?x:w):kn(S,C,C,C,[""],w,0,l,w)}}s=u=p=0,g=v=1,y=S="",d=a;break;case 58:d=1+nn(S),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==fn())continue;switch(S+=Yt(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:l[s++]=(nn(S)-1)*v,v=1;break;case 64:45===mn()&&(S+=bn(pn())),f=mn(),u=d=nn(y=S+=Sn(gn())),b++;break;case 45:45===m&&2==nn(S)&&(g=0)}}return i}function En(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),g=0,h=0,v=0;g<r;++g)for(var b=0,y=tn(e,f+1,f=Qt(h=a[g])),x=e;b<m;++b)(x=qt(h>0?p[b]+" "+y:Zt(y,/&\f/g,p[b])))&&(c[v++]=x);return dn(e,t,n,0===o?Xt:l,c,s,u,d)}function On(e,t,n,r){return dn(e,t,n,Ut,Yt(sn),tn(e,2,-2),0,r)}function In(e,t,n,r,o){return dn(e,t,n,Kt,tn(e,0,r),tn(e,r+1,-1),r,o)}function Nn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Rn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Kt:return e.return=e.return||e.value;case Ut:return"";case"@keyframes":return e.return=e.value+"{"+Nn(e.children,r)+"}";case Xt:if(!nn(e.value=e.props.join(",")))return""}return nn(n=Nn(e.children,r))?e.return=e.value+"{"+n+"}":""}var jn,Mn="data-ant-cssinjs-cache-path",Pn="_FILE_STYLE__",Dn=!0;function Tn(e){return function(){if(!jn&&(jn={},qe())){var e=document.createElement("div");e.className=Mn,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(/"$/,"")).split(";").forEach(function(e){var t=Qe(e.split(":"),2),n=t[0],r=t[1];jn[n]=r});var n,r=document.querySelector("style[".concat(Mn,"]"));r&&(Dn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!jn[e]}var Bn="_multi_value_";function Ln(e){return Nn($n(e),Rn).replace(/\{%%%\:[^;];}/g,";")}function zn(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Fe(n.slice(1))).join(" ")}).join(",")}var Fn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer;n.path;var s=n.hashPriority,u=n.transformers,d=void 0===u?[]:u;n.linters;var f="",p={};function m(t){var r=t.getName(l);if(!p[r]){var o=Qe(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return g.forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)m(r);else{var c=d.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(c).forEach(function(t){var r=c[t];if("object"!==x(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===x(e)&&e&&("_skip_check_"in e||Bn in e)}(r)){var u;function C(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;Gt[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===x(r)&&null!=r&&r[Bn]&&Array.isArray(d)?d.forEach(function(e){C(t,e)}):C(t,d)}else{var g=!1,h=t.trim(),v=!1;(o||i)&&l?h.startsWith("@")?g=!0:h=zn("&"===h?"":t,l,s):!o||l||"&"!==h&&""!==h||(h="",v=!0);var b=Qe(e(r,n,{root:v,injectHash:g,parentSelectors:[].concat(Fe(a),[h])}),2),y=b[0],w=b[1];p=D(D({},p),w),f+="".concat(h).concat(y)}})}}),o?c&&(f&&(f="@layer ".concat(c.name," {").concat(f,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(c.name,";")}).join("\n"))):f="{".concat(f,"}"),[f,p]};function Hn(e,t){return Ye("".concat(e.join("%")).concat(t))}function An(){return null}var _n="style";function Wn(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=l.useContext(ht),f=d.autoClear;d.mock;var p=d.defaultCache,m=d.hashPriority,g=d.container,h=d.ssrInline,v=d.transformers,b=d.linters,x=d.cache,w=d.layer,C=n._tokenKey,S=[C];w&&S.push("layer"),S.push.apply(S,Fe(r));var $=Ot,k=Ft(_n,S,function(){var e=S.join("|");if(Tn(e)){var n=function(e){var t=jn[e],n=null;if(t&&qe())if(Dn)n=Pn;else{var r=document.querySelector("style[".concat(mt,'="').concat(jn[e],'"]'));r?n=r.innerHTML:delete jn[e]}return[n,t]}(e),a=Qe(n,2),l=a[0],s=a[1];if(l)return[l,C,s,{},c,u]}var d=t(),f=Qe(Fn(d,{hashId:o,hashPriority:m,layer:w?i:void 0,path:r.join("-"),transformers:v,linters:b}),2),p=f[0],g=f[1],h=Ln(p),y=Hn(S,h);return[h,C,y,g,c,u]},function(e,t){var n=Qe(e,3)[2];(t||f)&&Ot&&lt(n,{mark:mt,attachTo:g})},function(e){var t=Qe(e,4),n=t[0];t[1];var r=t[2],o=t[3];if($&&n!==Pn){var i={mark:mt,prepend:!w&&"queue",attachTo:g,priority:u},l="function"==typeof a?a():a;l&&(i.csp={nonce:l});var c=[],s=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?c.push(e):s.push(e)}),c.forEach(function(e){ct(Ln(o[e]),"_layer-".concat(e),D(D({},i),{},{prepend:!0}))});var d=ct(n,r,i);d[gt]=x.instanceId,d.setAttribute(pt,C),s.forEach(function(e){ct(Ln(o[e]),"_effect-".concat(e),i)})}}),E=Qe(k,3),O=E[0],I=E[1],N=E[2];return function(e){var t;return t=h&&!$&&p?l.createElement("style",y({},M(M({},pt,I),mt,N),{dangerouslySetInnerHTML:{__html:O}})):l.createElement(An,null),l.createElement(l.Fragment,null,t,e)}}var Vn="cssVar";M(M(M({},_n,function(e,t,n){var r=Qe(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=Nt(o,i,a,f,u),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=Nt(Ln(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}}),[s,a,d]}),Wt,function(e,t,n){var r=Qe(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,Nt(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}),Vn,function(e,t,n){var r=Qe(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Nt(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]});var Gn=function(){function e(t,n){Ce(this,e),M(this,"name",void 0),M(this,"style",void 0),M(this,"_keyframe",!0),this.name=t,this.style=n}return $e(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function Un(e){return e.notSplit=!0,e}Un(["borderTop","borderBottom"]),Un(["borderTop"]),Un(["borderBottom"]),Un(["borderLeft","borderRight"]),Un(["borderLeft"]),Un(["borderRight"]);var Xn=e.createContext({});function Kn(e){return Xe(e)||Le(e)||ze(e)||Ke()}function Qn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function Yn(e,t,n,r){if(!t.length)return n;var o,i=Kn(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?Fe(e):D({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=Yn(o[a],l,n,r),o}function qn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Qn(e,t.slice(0,-1))?e:Yn(e,t,n,r)}function Zn(e){return Array.isArray(e)?[]:{}}var Jn="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function er(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Zn(t[0]);return t.forEach(function(e){!function t(n,o){var i,a=new Set(o),l=Qn(e,n),c=Array.isArray(l);if(c||"object"===x(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=Qn(r,n);c?r=qn(r,n,[]):s&&"object"===x(s)||(r=qn(r,n,Zn(l))),Jn(l).forEach(function(e){t([].concat(Fe(n),[e]),a)})}}else r=qn(r,n,l)}([])}),r}function tr(){}const nr=l.createContext({}),rr=()=>{const e=()=>{};return e.deprecated=tr,e};var or=e.createContext(void 0),ir={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"},ar=D(D({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{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 lr={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},cr={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"]},ar),timePickerLocale:Object.assign({},lr)},sr="${label} is not a valid ${type}",ur={locale:"en",Pagination:ir,DatePicker:cr,TimePicker:lr,Calendar:cr,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:sr,method:sr,array:sr,object:sr,number:sr,date:sr,boolean:sr,integer:sr,float:sr,regexp:sr,email:sr,url:sr,hex:sr},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"}};let dr=Object.assign({},ur.Modal),fr=[];const pr=()=>fr.reduce((e,t)=>Object.assign(Object.assign({},e),t),ur.Modal);function mr(){return dr}const gr=e.createContext(void 0),hr=(e,t)=>{const n=l.useContext(gr),r=l.useMemo(()=>{var r;const o=t||ur[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[e,t,n]);return[r,l.useMemo(()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?ur.locale:e},[n])]},vr=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>{const e=function(e){if(e){const t=Object.assign({},e);return fr.push(t),dr=pr(),()=>{fr=fr.filter(e=>e!==t),dr=pr()}}dr=Object.assign({},ur.Modal)}(null==t?void 0:t.Modal);return e},[t]);const o=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(gr.Provider,{value:o},n)},br={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"},yr=Object.assign(Object.assign({},br),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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}),xr=Math.round;function wr(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Cr=(e,t,n)=>0===n?e:e/100;function Sr(e,t){const n=t||255;return e>n?n:e<0?0:e}let $r=class e{constructor(t){function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(M(this,"isValid",!0),M(this,"r",0),M(this,"g",0),M(this,"b",0),M(this,"a",1),M(this,"_h",void 0),M(this,"_s",void 0),M(this,"_l",void 0),M(this,"_v",void 0),M(this,"_max",void 0),M(this,"_min",void 0),M(this,"_brightness",void 0),t)if("string"==typeof t){const r=t.trim();function o(e){return r.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof e)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=Sr(t.r),this.g=Sr(t.g),this.b=Sr(t.b),this.a="number"==typeof t.a?Sr(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else{if(!n("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t));this.fromHsv(t)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:xr(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:xr(o("r")),g:xr(o("g")),b:xr(o("b")),a:xr(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>xr((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=xr(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=xr(100*this.getSaturation()),n=xr(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}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 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Sr(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=xr(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,i=s):l>=1&&l<2?(o=s,i=c):l>=2&&l<3?(i=c,a=s):l>=3&&l<4?(i=s,a=c):l>=4&&l<5?(o=s,a=c):l>=5&&l<6&&(o=c,a=s);const u=n-c/2;this.r=xr(255*(o+u)),this.g=xr(255*(i+u)),this.b=xr(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=xr(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,c=xr(n*(1-t)*255),s=xr(n*(1-t*l)*255),u=xr(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=wr(e,Cr);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=wr(e,Cr);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=wr(e,(e,t)=>t.includes("%")?xr(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}};var kr=[{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 Er(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function Or(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function Ir(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Nr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new $r(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new $r({h:Er(o,i,!0),s:Or(o,i,!0),v:Ir(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=4;l+=1){var c=new $r({h:Er(o,l),s:Or(o,l),v:Ir(o,l)});n.push(c)}return"dark"===t.theme?kr.map(function(e){var r=e.index,o=e.amount;return new $r(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var Rr={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"},jr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];jr.primary=jr[5];var Mr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Mr.primary=Mr[5];var Pr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Pr.primary=Pr[5];var Dr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Dr.primary=Dr[5];var Tr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Tr.primary=Tr[5];var Br=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Br.primary=Br[5];var Lr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Lr.primary=Lr[5];var zr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];zr.primary=zr[5];var Fr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fr.primary=Fr[5];var Hr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Hr.primary=Hr[5];var Ar=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ar.primary=Ar[5];var _r=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_r.primary=_r[5];var Wr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Wr.primary=Wr[5];var Vr={red:jr,volcano:Mr,orange:Pr,gold:Dr,yellow:Tr,lime:Br,green:Lr,cyan:zr,blue:Fr,geekblue:Hr,purple:Ar,magenta:_r,grey:Wr};function Gr(e){return(e+8)/e}const Ur=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:Gr(e)}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Xr=(e,t)=>new $r(e).setA(t).toRgbString(),Kr=(e,t)=>new $r(e).darken(t).toHexString(),Qr=e=>{const t=Nr(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]}},Yr=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Xr(r,.88),colorTextSecondary:Xr(r,.65),colorTextTertiary:Xr(r,.45),colorTextQuaternary:Xr(r,.25),colorFill:Xr(r,.15),colorFillSecondary:Xr(r,.06),colorFillTertiary:Xr(r,.04),colorFillQuaternary:Xr(r,.02),colorBgSolid:Xr(r,1),colorBgSolidHover:Xr(r,.75),colorBgSolidActive:Xr(r,.95),colorBgLayout:Kr(n,4),colorBgContainer:Kr(n,0),colorBgElevated:Kr(n,0),colorBgSpotlight:Xr(r,.85),colorBgBlur:"transparent",colorBorder:Kr(n,15),colorBorderSecondary:Kr(n,6)}};const qr=wt(function(e){Rr.pink=Rr.magenta,Vr.pink=Vr.magenta;const t=Object.keys(br).map(t=>{const n=e[t]===Rr[t]?Vr[t]:Nr(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:s}=e,u=t(l),d=t(r),f=t(o),p=t(i),m=t(a),g=n(c,s),h=t(e.colorLink||e.colorInfo),v=new $r(p[1]).mix(new $r(p[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:v,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new $r("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Qr,generateNeutralColorPalettes:Yr})),Ur(e.fontSize)),function(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)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(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}})(r))}(e))}),Zr={token:yr,override:{override:yr},hashed:!0},Jr=e.createContext(Zr),eo="ant",to="anticon",no=["outlined","borderless","filled","underlined"],ro=l.createContext({getPrefixCls:(e,t)=>t||(e?`${eo}-${e}`:eo),iconPrefixCls:to}),{Consumer:oo}=ro,io={};function ao(e){const t=l.useContext(ro),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:io,styles:io},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const lo=`-ant-${Date.now()}-${Math.random()}`;function co(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new $r(e),i=Nr(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new $r(t.primaryColor),i=Nr(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setA(.12*e.a));const a=new $r(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.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"),`\n :root {\n ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n }\n `.trim()}(e,t);qe()&&ct(n,`${lo}-dynamic-theme`)}const so=l.createContext(!1),uo=({children:e,disabled:t})=>{const n=l.useContext(so);return l.createElement(so.Provider,{value:null!=t?t:n},e)},fo=l.createContext(void 0),po=({children:e,size:t})=>{const n=l.useContext(fo);return l.createElement(fo.Provider,{value:t||n},e)};var mo=$e(function e(){Ce(this,e)}),go="CALC_UNIT",ho=new RegExp(go,"g");function vo(e){return"number"==typeof e?"".concat(e).concat(go):e}var bo=function(){Ee(t,mo);var e=Re(t);function t(n,r){var o;Ce(this,t),M(Ne(o=e.call(this)),"result",""),M(Ne(o),"unitlessCssVar",void 0),M(Ne(o),"lowPriority",void 0);var i=x(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=vo(n):"string"===i&&(o.result=n),o}return $e(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(vo(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(vo(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(ho,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),yo=function(){Ee(t,mo);var e=Re(t);function t(n){var r;return Ce(this,t),M(Ne(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return $e(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),xo=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 wo(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return n}function Co(e){var t=l.useRef(!1),n=Qe(l.useState(e),2),r=n[0],o=n[1];return l.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[r,function(e,n){n&&t.current||o(e)}]}function So(e){return void 0!==e}function $o(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Qe(Co(function(){return So(o)?o:So(r)?"function"==typeof r?r():r:"function"==typeof e?e():e}),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=wo(i),p=Qe(Co([u]),2),m=p[0],g=p[1];return Tt(function(){var e=m[0];c!==e&&f(c,e)},[m]),Tt(function(){So(o)||s(o)},[o]),[d,wo(function(e,t){s(e,t),g([u],t)})]}function ko(e,t,n,r){var o=D({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=Qe(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))});var i=D(D({},n),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i}var Eo="undefined"!=typeof CSSINJS_STATISTIC,Oo=!0;function Io(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Eo)return Object.assign.apply(Object,[{}].concat(t));Oo=!1;var r={};return t.forEach(function(e){"object"===x(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),Oo=!0,r}var No={};function Ro(){}function jo(e,t,n){var r;return"function"==typeof n?n(Io(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Mo=function(){function e(){Ce(this,e),M(this,"map",new Map),M(this,"objectIDMap",new WeakMap),M(this,"nextID",0),M(this,"lastAccessBeat",new Map),M(this,"accessBeat",0)}return $e(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===x(e)?"obj_".concat(t.getObjectID(e)):"".concat(x(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}(),Po=new Mo;var Do=function(){return{}};const To=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Bo(e){return e>=0&&e<=255}function Lo(e,t){const{r:n,g:r,b:o,a:i}=new $r(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new $r(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(Bo(t)&&Bo(i)&&Bo(s))return new $r({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new $r({r:n,g:r,b:o,a:1}).toRgbString()}var zo=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Fo(e){const{override:t}=e,n=zo(e,["override"]),r=Object.assign({},t);Object.keys(yr).forEach(e=>{delete r[e]});const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Lo(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:Lo(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Lo(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Lo(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:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new $r("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new $r("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new $r("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",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 Ho=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Ao={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},_o={motionBase:!0,motionUnit:!0},Wo={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},Vo=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Ho(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Fo(a),i&&Object.entries(i).forEach(([e,t])=>{const{theme:n}=t,r=Ho(t,["theme"]);let o=r;n&&(o=Vo(Object.assign(Object.assign({},a),r),{override:r},n)),a[e]=o}),a};function Go(){const{token:t,hashed:n,theme:r,override:o,cssVar:i}=e.useContext(Jr),a=`5.29.2-${n||""}`,l=r||qr,[c,s,u]=Vt(l,[yr,t],{salt:a,override:o,getComputedToken:Vo,formatToken:Fo,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Ao,ignore:_o,preserve:Wo}});return[l,u,n?s:"",c,i]}const Uo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Xo=(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}),Ko=(e,t)=>({outline:`${It(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),Qo=(e,t)=>({"&:focus-visible":Ko(e,t)}),Yo=e=>({[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),qo=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Qo(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Zo,genComponentStyleHook:Jo,genSubStyleComponent:ei}=function(t){var n=t.useCSP,r=void 0===n?Do:n,o=t.useToken,i=t.usePrefix,a=t.getResetStyles,l=t.getCommonStyle,c=t.getCompUnitless;function s(n,c,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(n)?n:[n,n],f=Qe(d,1)[0],p=d.join("-"),m=t.layer||{name:"antd"};return function(t){var n,d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,h=o(),v=h.theme,b=h.realToken,y=h.hashId,w=h.token,C=h.cssVar,S=i(),$=S.rootPrefixCls,k=S.iconPrefixCls,E=r(),O=C?"css":"js",I=(n=function(){var e=new Set;return C&&Object.keys(u.unitless||{}).forEach(function(t){e.add(Rt(t,C.prefix)),e.add(Rt(t,xo(f,C.prefix)))}),function(e,t){var n="css"===e?bo:yo;return function(e){return new n(e,t)}}(O,e)},d=[O,f,null==C?void 0:C.prefix],e.useMemo(function(){var e=Po.get(d);if(e)return e;var t=n();return Po.set(d,t),t},d)),N=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return It(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return It(e)}).join(","),")")}}}(O),R=N.max,j=N.min,M={theme:v,token:w,hashId:y,nonce:function(){return E.nonce},clientOnly:u.clientOnly,layer:m,order:u.order||-999};"function"==typeof a&&Wn(D(D({},M),{},{clientOnly:!1,path:["Shared",$]}),function(){return a(w,{prefix:{rootPrefixCls:$,iconPrefixCls:k},csp:E})});var P=Wn(D(D({},M),{},{path:[p,t,k]}),function(){if(!1===u.injectStyle)return[];var e=function(e){var t,n=e,r=Ro;return Eo&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return Oo&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;No[e]={global:Array.from(t),component:D(D({},null===(r=No[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(w),n=e.token,r=e.flush,o=jo(f,b,s),i=".".concat(t),a=ko(f,b,o,{deprecatedTokens:u.deprecatedTokens});C&&o&&"object"===x(o)&&Object.keys(o).forEach(function(e){o[e]="var(".concat(Rt(e,xo(f,C.prefix)),")")});var d=Io(n,{componentCls:i,prefixCls:t,iconCls:".".concat(k),antCls:".".concat($),calc:I,max:R,min:j},C?o:a),p=c(d,{hashId:y,prefixCls:t,rootPrefixCls:$,iconPrefixCls:k});r(f,a);var m="function"==typeof l?l(d,t,g,u.resetFont):null;return[!1===u.resetStyle?null:m,p]});return[P,y]}}return{genStyleHooks:function(t,n,r,i){var a=Array.isArray(t)?t[0]:t;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=D(D({},"function"==typeof c?c(t):{}),{},M({},l("zIndexPopup"),!0));Object.keys(u).forEach(function(e){d[l(e)]=u[e]});var f=D(D({},i),{},{unitless:d,prefixToken:l}),p=s(t,n,r,f),m=function(t,n,r){var i=r.unitless,a=r.injectStyle,l=void 0===a||a,c=r.prefixToken,s=r.ignore,u=function(a){var l=a.rootCls,u=a.cssVar,d=void 0===u?{}:u,f=o().realToken;return function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,s=void 0===c?"":c,u=e.useContext(ht),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(Fe(t.path),[r,s,p]),g=Ft(Vn,m,function(){var e=n(),t=Qe(Mt(e,r,{prefix:o,unitless:i,ignore:a,scope:s}),2),l=t[0],c=t[1];return[l,c,Hn(m,c),r]},function(e){var t=Qe(e,3)[2];Ot&&lt(t,{mark:mt,attachTo:f})},function(e){var t=Qe(e,3),n=t[1],o=t[2];if(n){var i=ct(n,o,{mark:mt,prepend:"queue",attachTo:f,priority:-999});i[gt]=d,i.setAttribute(pt,r)}})}({path:[t],prefix:d.prefix,key:d.key,unitless:i,ignore:s,token:f,scope:l},function(){var e=jo(t,f,n),o=ko(t,f,e,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(e).forEach(function(e){o[c(e)]=o[e],delete o[e]}),o}),null},d=function(n){var r=o().cssVar;return[function(o){return l&&r?e.createElement(e.Fragment,null,e.createElement(u,{rootCls:n,cssVar:r,component:t}),o):o},null==r?void 0:r.key]};return d}(a,r,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Qe(p(e,t),2)[1],r=Qe(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,D({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=e.useContext(ro);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=Go();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t}=e.useContext(ro);return null!=t?t:{}},getResetStyles:(e,t)=>{var n;const r=(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"}}}))(e);return[r,{"&":r},Yo(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:to)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>Ao});function ti(e,t){return To.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const ni=Object.assign({},l),{useId:ri}=ni,oi=void 0===ri?()=>"":ri;var ii=["children"],ai=l.createContext({});function li(e){var t=e.children,n=st(e,ii);return l.createElement(ai.Provider,{value:n},t)}var ci=function(){Ee(t,l.Component);var e=Re(t);function t(){return Ce(this,t),e.apply(this,arguments)}return $e(t,[{key:"render",value:function(){return this.props.children}}]),t}();var si="none",ui="appear",di="enter",fi="leave",pi="none",mi="prepare",gi="start",hi="active",vi="end",bi="prepared";function yi(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}var xi,wi,Ci,Si=(xi=qe(),wi="undefined"!=typeof window?window:{},Ci={animationend:yi("Animation","AnimationEnd"),transitionend:yi("Transition","TransitionEnd")},xi&&("AnimationEvent"in wi||delete Ci.animationend.animation,"TransitionEvent"in wi||delete Ci.transitionend.transition),Ci),$i={};if(qe()){var ki=document.createElement("div");$i=ki.style}var Ei={};function Oi(e){if(Ei[e])return Ei[e];var t=Si[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in $i)return Ei[e]=t[i],Ei[e]}return""}var Ii=Oi("animationend"),Ni=Oi("transitionend"),Ri=!(!Ii||!Ni),ji=Ii||"animationend",Mi=Ni||"transitionend";function Pi(e,t){if(!e)return null;if("object"===x(e)){var n=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}var Di=qe()?e.useLayoutEffect:e.useEffect,Ti=[mi,gi,hi,vi],Bi=[mi,bi],Li=!1;function zi(e){return e===hi||e===vi}var Fi=function(e,t,n){var r=Qe(Co(pi),2),o=r[0],i=r[1],a=function(){var e=l.useRef(null);function t(){Ge.cancel(e.current)}return l.useEffect(function(){return function(){t()}},[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Ge(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]}(),c=Qe(a,2),s=c[0],u=c[1];var d=t?Bi:Ti;return Di(function(){if(o!==pi&&o!==vi){var e=d.indexOf(o),t=d[e+1],r=n(o);r===Li?i(t,!0):t&&s(function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,o]),l.useEffect(function(){return function(){u()}},[]),[function(){i(mi,!0)},o]};function Hi(t,n,r,o){var i,a,c,s=o.motionEnter,u=void 0===s||s,d=o.motionAppear,f=void 0===d||d,p=o.motionLeave,m=void 0===p||p,g=o.motionDeadline,h=o.motionLeaveImmediately,v=o.onAppearPrepare,b=o.onEnterPrepare,y=o.onLeavePrepare,x=o.onAppearStart,w=o.onEnterStart,C=o.onLeaveStart,S=o.onAppearActive,$=o.onEnterActive,k=o.onLeaveActive,E=o.onAppearEnd,O=o.onEnterEnd,I=o.onLeaveEnd,N=o.onVisibleChanged,R=Qe(Co(),2),j=R[0],P=R[1],T=(i=si,a=Qe(l.useReducer(function(e){return e+1},0),2)[1],c=l.useRef(i),[wo(function(){return c.current}),wo(function(e){c.current="function"==typeof e?e(c.current):e,a()})]),B=Qe(T,2),L=B[0],z=B[1],F=Qe(Co(null),2),H=F[0],A=F[1],_=L(),W=e.useRef(!1),V=e.useRef(null);function G(){return r()}var U=e.useRef(!1);function X(){z(si),A(null,!0)}var K=wo(function(e){var t=L();if(t!==si){var n=G();if(!e||e.deadline||e.target===n){var r,o=U.current;t===ui&&o?r=null==E?void 0:E(n,e):t===di&&o?r=null==O?void 0:O(n,e):t===fi&&o&&(r=null==I?void 0:I(n,e)),o&&!1!==r&&X()}}}),Q=function(t){var n=e.useRef();function r(e){e&&(e.removeEventListener(Mi,t),e.removeEventListener(ji,t))}return l.useEffect(function(){return function(){r(n.current)}},[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(Mi,t),e.addEventListener(ji,t),n.current=e)},r]}(K),Y=Qe(Q,1)[0],q=function(e){switch(e){case ui:return M(M(M({},mi,v),gi,x),hi,S);case di:return M(M(M({},mi,b),gi,w),hi,$);case fi:return M(M(M({},mi,y),gi,C),hi,k);default:return{}}},Z=l.useMemo(function(){return q(_)},[_]),J=Qe(Fi(_,!t,function(e){if(e===mi){var t=Z[mi];return t?t(G()):Li}var n;te in Z&&A((null===(n=Z[te])||void 0===n?void 0:n.call(Z,G(),null))||null);return te===hi&&_!==si&&(Y(G()),g>0&&(clearTimeout(V.current),V.current=setTimeout(function(){K({deadline:!0})},g))),te===bi&&X(),true}),2),ee=J[0],te=J[1],ne=zi(te);U.current=ne;var re=e.useRef(null);Di(function(){if(!W.current||re.current!==n){P(n);var e,r=W.current;W.current=!0,!r&&n&&f&&(e=ui),r&&n&&u&&(e=di),(r&&!n&&m||!r&&h&&!n&&m)&&(e=fi);var o=q(e);e&&(t||o[mi])?(z(e),ee()):z(si),re.current=n}},[n]),e.useEffect(function(){(_===ui&&!f||_===di&&!u||_===fi&&!m)&&z(si)},[f,u,m]),e.useEffect(function(){return function(){W.current=!1,clearTimeout(V.current)}},[]);var oe=l.useRef(!1);e.useEffect(function(){j&&(oe.current=!0),void 0!==j&&_===si&&((oe.current||j)&&(null==N||N(j)),oe.current=!0)},[j,_]);var ie=H;return Z[mi]&&te===gi&&(ie=D({transition:"none"},ie)),[_,te,ie,null!=j?j:n]}var Ai=function(t){var n=t;"object"===x(t)&&(n=t.transitionSupport);var r=l.forwardRef(function(t,r){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,c=void 0===a||a,s=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,p=t.eventProps,m=function(e,t){return!(!e.motionName||!n||!1===t)}(t,l.useContext(ai).motion),g=e.useRef(),h=e.useRef();var v=Qe(Hi(m,i,function(){try{return g.current instanceof HTMLElement?g.current:L(h.current)}catch(e){return null}},t),4),y=v[0],x=v[1],w=v[2],C=v[3],S=l.useRef(C);C&&(S.current=!0);var $,k=l.useCallback(function(e){g.current=e,G(r,e)},[r]),E=D(D({},p),{},{visible:i});if(u)if(y===si)$=C?u(D({},E),k):!c&&S.current&&f?u(D(D({},E),{},{className:f}),k):s||!c&&!f?u(D(D({},E),{},{style:{display:"none"}}),k):null;else{var O;x===mi?O="prepare":zi(x)?O="active":x===gi&&(O="start");var I=Pi(d,"".concat(y,"-").concat(O));$=u(D(D({},E),{},{className:b(Pi(d,y),M(M({},I,I&&O),d,"string"==typeof d)),style:w}),k)}else $=null;l.isValidElement($)&&K($)&&(Y($)||($=l.cloneElement($,{ref:k})));return l.createElement(ci,{ref:h},$)});return r.displayName="CSSMotion",r}(Ri),_i="add",Wi="keep",Vi="remove",Gi="removed";function Ui(e){var t;return D(D({},t=e&&"object"===x(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Xi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Ui)}var Ki=["component","children","onVisibleChanged","onAllRemoved"],Qi=["status"],Yi=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var qi=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ai,t=function(){Ee(n,l.Component);var t=Re(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return M(Ne(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),M(Ne(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:D(D({},e),{},{status:Gi})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==Gi}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return $e(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged;r.onAllRemoved;var c=st(r,Ki),s=o||l.Fragment,u={};return Yi.forEach(function(e){u[e]=c[e],delete c[e]}),delete c.keys,l.createElement(s,c,n.map(function(n,r){var o=n.status,c=st(n,Qi),s=o===_i||o===Wi;return l.createElement(e,y({},u,{key:c.key,visible:s,eventProps:c,onVisibleChanged:function(e){null==a||a(e,{key:c.key}),e||t.removeKey(c.key)}}),function(e,t){return i(D(D({},e),{},{index:r}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Xi(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Xi(e),a=Xi(t);i.forEach(function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(function(e){return D(D({},e),{},{status:_i})})),r=i),n.push(D(D({},l),{},{status:Wi})),r+=1,t=!0;break}}t||n.push(D(D({},e),{},{status:Vi}))}),r<o&&(n=n.concat(a.slice(r).map(function(e){return D(D({},e),{},{status:_i})})));var l={};return n.forEach(function(e){var t=e.key;l[t]=(l[t]||0)+1}),Object.keys(l).filter(function(e){return l[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==Vi})).forEach(function(t){t.key===e&&(t.status=Wi)})}),n}(r,o);return{keyEntities:i.filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==Gi||e.status!==Vi})}}}]),n}();return M(t,"defaultProps",{component:"div"}),t}(Ri);const Zi=l.createContext(!0);function Ji(e){const t=l.useContext(Zi),{children:n}=e,[,r]=Go(),{motion:o}=r,i=l.useRef(!1);return i.current||(i.current=t!==o),i.current?l.createElement(Zi.Provider,{value:o},l.createElement(li,{motion:o},n)):n}var ea=()=>null,ta=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 na=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ra,oa,ia,aa;function la(){return ra||eo}function ca(){return oa||to}const sa=()=>({getPrefixCls:(e,t)=>t||(e?`${la()}-${e}`:la()),getIconPrefixCls:ca,getRootPrefixCls:()=>ra||la(),getTheme:()=>ia,holderRender:aa}),ua=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:c,componentSize:s,direction:u,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:w,segmented:C,statistic:S,spin:$,calendar:k,carousel:E,cascader:O,collapse:I,typography:N,checkbox:R,descriptions:j,divider:M,drawer:P,skeleton:D,steps:T,image:B,layout:L,list:z,mentions:F,modal:H,progress:A,result:_,slider:V,breadcrumb:G,menu:U,pagination:X,input:K,textArea:Q,empty:Y,badge:q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:le,timeline:ce,timePicker:se,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:he,wave:ve,dropdown:be,warning:ye,tour:xe,tooltip:we,popover:Ce,popconfirm:Se,floatButton:$e,floatButtonGroup:ke,variant:Ee,inputNumber:Oe,treeSelect:Ie}=e,Ne=l.useCallback((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||b.getPrefixCls("");return t?`${o}-${t}`:o},[b.getPrefixCls,e.prefixCls]),Re=y||b.iconPrefixCls||to,je=n||b.csp;((e,t)=>{const[n,r]=Go();Wn({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>Yo(e))})(Re,je);const Me=function(e,t,n){var r;rr();const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},Zr),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Zr.hashed,cssVar:null==t?void 0:t.cssVar}),a=oi();return W(()=>{var r,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])});const s=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||s});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:u})},[o,i],(e,t)=>e.some((e,n)=>!ut(e,t[n],!0)))}(x,b.theme,{prefixCls:Ne("")}),Pe={csp:je,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:c||v,direction:u,space:d,splitter:f,virtual:p,popupMatchSelectWidth:null!=g?g:m,popupOverflow:h,getPrefixCls:Ne,iconPrefixCls:Re,theme:Me,segmented:C,statistic:S,spin:$,calendar:k,carousel:E,cascader:O,collapse:I,typography:N,checkbox:R,descriptions:j,divider:M,drawer:P,skeleton:D,steps:T,image:B,input:K,textArea:Q,layout:L,list:z,mentions:F,modal:H,progress:A,result:_,slider:V,breadcrumb:G,menu:U,pagination:X,empty:Y,badge:q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:le,timeline:ce,timePicker:se,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:he,wave:ve,dropdown:be,warning:ye,tour:xe,tooltip:we,popover:Ce,popconfirm:Se,floatButton:$e,floatButtonGroup:ke,variant:Ee,inputNumber:Oe,treeSelect:Ie},De=Object.assign({},b);Object.keys(Pe).forEach(e=>{void 0!==Pe[e]&&(De[e]=Pe[e])}),na.forEach(t=>{const n=e[t];n&&(De[t]=n)}),void 0!==r&&(De.button=Object.assign({autoInsertSpace:r},De.button));const Te=W(()=>De,De,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:Be}=l.useContext(ht),Le=l.useMemo(()=>({prefixCls:Re,csp:je,layer:Be?"antd":void 0}),[Re,je,Be]);let ze=l.createElement(l.Fragment,null,l.createElement(ea,{dropdownMatchSelectWidth:m}),t);const Fe=l.useMemo(()=>{var e,t,n,r;return er((null===(e=ur.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Te.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Te.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})},[Te,null==a?void 0:a.validateMessages]);Object.keys(Fe).length>0&&(ze=l.createElement(or.Provider,{value:Fe},ze)),c&&(ze=l.createElement(vr,{locale:c,_ANT_MARK__:"internalMark"},ze)),ze=l.createElement(Xn.Provider,{value:Le},ze),s&&(ze=l.createElement(po,{size:s},ze)),ze=l.createElement(Ji,null,ze);const He=l.useMemo(()=>{const e=Me||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=ta(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?wt(t):qr,l={};Object.entries(r||{}).forEach(([e,t])=>{const n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=wt(n.algorithm)),delete n.algorithm),l[e]=n});const c=Object.assign(Object.assign({},yr),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})},[Me]);return x&&(ze=l.createElement(Jr.Provider,{value:He},ze)),Te.warning&&(ze=l.createElement(nr.Provider,{value:Te.warning},ze)),void 0!==w&&(ze=l.createElement(uo,{disabled:w},ze)),l.createElement(ro.Provider,{value:Te},ze)},da=e=>{const t=l.useContext(ro),n=l.useContext(gr);return l.createElement(ua,Object.assign({parentContext:t,legacyLocale:n},e))};da.ConfigContext=ro,da.SizeContext=fo,da.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(ra=t),void 0!==n&&(oa=n),"holderRender"in e&&(aa=o),r&&(!function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(r)?ia=r:co(la(),r))},da.useConfig=function(){return{componentDisabled:e.useContext(so),componentSize:e.useContext(fo)}},Object.defineProperty(da,"SizeContext",{get:()=>fo});var fa=Zo("Affix",e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},e=>({zIndexPopup:e.zIndexBase+10}));function pa(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ma(e,t,n){if(void 0!==n&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function ga(e,t,n){if(void 0!==n&&Math.round(t.bottom)<Math.round(e.bottom)+n){return n+(window.innerHeight-t.bottom)}}var ha=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 va=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function ba(){return"undefined"!=typeof window?window:null}const ya=e.forwardRef((t,n)=>{var r;const{style:o,offsetTop:i,offsetBottom:a,prefixCls:l,className:c,rootClassName:s,children:u,target:d,onChange:f,onTestUpdatePosition:p}=t,m=ha(t,["style","offsetTop","offsetBottom","prefixCls","className","rootClassName","children","target","onChange","onTestUpdatePosition"]),{getPrefixCls:g,getTargetContainer:h}=e.useContext(ro),v=g("affix",l),[y,x]=e.useState(!1),[w,C]=e.useState(),[S,$]=e.useState(),k=e.useRef(0),E=e.useRef(null),O=e.useRef(null),I=e.useRef(null),N=e.useRef(null),R=e.useRef(null),j=null!==(r=null!=d?d:h)&&void 0!==r?r:ba,M=void 0===a&&void 0===i?0:i,P=()=>{k.current=1,(()=>{if(1!==k.current||!N.current||!I.current||!j)return;const e=j();if(e){const t={status:0},n=pa(I.current);if(0===n.top&&0===n.left&&0===n.width&&0===n.height)return;const r=pa(e),o=ma(n,r,M),i=ga(n,r,a);void 0!==o?(t.affixStyle={position:"fixed",top:o,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}):void 0!==i&&(t.affixStyle={position:"fixed",bottom:i,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}),t.lastAffix=!!t.affixStyle,y!==t.lastAffix&&(null==f||f(t.lastAffix)),k.current=t.status,C(t.affixStyle),$(t.placeholderStyle),x(t.lastAffix)}})()},D=Ue(()=>{P()}),T=Ue(()=>{if(j&&w){const e=j();if(e&&I.current){const t=pa(e),n=pa(I.current),r=ma(n,t,M),o=ga(n,t,a);if(void 0!==r&&w.top===r||void 0!==o&&w.bottom===o)return}}P()}),B=()=>{const e=null==j?void 0:j();e&&(va.forEach(t=>{var n;O.current&&(null===(n=E.current)||void 0===n||n.removeEventListener(t,O.current)),null==e||e.addEventListener(t,T)}),E.current=e,O.current=T)},L=()=>{const e=null==j?void 0:j();va.forEach(t=>{var n;null==e||e.removeEventListener(t,T),O.current&&(null===(n=E.current)||void 0===n||n.removeEventListener(t,O.current))}),D.cancel(),T.cancel()};e.useImperativeHandle(n,()=>({updatePosition:D})),e.useEffect(()=>(R.current=setTimeout(B),()=>{R.current&&(clearTimeout(R.current),R.current=null),L()}),[]),e.useEffect(()=>(B(),()=>L()),[d,w,y,i,a]),e.useEffect(()=>{D()},[d,i,a]);const[z,F,H]=fa(v),A=b(s,F,v,H),_=b({[A]:w});return z(e.createElement(Te,{onResize:D},e.createElement("div",Object.assign({style:o,className:c,ref:I},m),w&&e.createElement("div",{style:S,"aria-hidden":"true"}),e.createElement("div",{className:_,ref:N,style:w},e.createElement(Te,{onResize:D},u)))))});var xa={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 wa(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ca(e){return function(e){return wa(e)instanceof ShadowRoot}(e)?wa(e):null}function Sa(e){return"object"===x(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===x(e.icon)||"function"==typeof e.icon)}function $a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=o;return t},{})}function ka(t,n,r){return r?e.createElement(t.tag,D(D({key:n},$a(t.attrs)),r),(t.children||[]).map(function(e,r){return ka(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})):e.createElement(t.tag,D({key:n},$a(t.attrs)),(t.children||[]).map(function(e,r){return ka(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))}function Ea(e){return Nr(e)[0]}function Oa(e){return e?Array.isArray(e)?e:[e]:[]}var Ia=["icon","className","onClick","style","primaryColor","secondaryColor"],Na={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ra=function(t){var n,r,o,i,a,c,s=t.icon,u=t.className,d=t.onClick,f=t.style,p=t.primaryColor,m=t.secondaryColor,g=st(t,Ia),h=l.useRef(),v=Na;if(p&&(v={primaryColor:p,secondaryColor:m||Ea(p)}),n=h,r=e.useContext(Xn),o=r.csp,i=r.prefixCls,a=r.layer,c="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(c=c.replace(/anticon/g,i)),a&&(c="@layer ".concat(a," {\n").concat(c,"\n}")),e.useEffect(function(){var e=Ca(n.current);ct(c,"@ant-design-icons",{prepend:!a,csp:o,attachTo:e})},[]),function(e,t){R(e,"[@ant-design/icons] ".concat(t))}(Sa(s),"icon should be icon definiton, but got ".concat(s)),!Sa(s))return null;var b=s;return b&&"function"==typeof b.icon&&(b=D(D({},b),{},{icon:b.icon(v.primaryColor,v.secondaryColor)})),ka(b.icon,"svg-".concat(b.name),D(D({className:u,onClick:d,style:f,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:h}))};function ja(e){var t=Qe(Oa(e),2),n=t[0],r=t[1];return Ra.setTwoToneColors({primaryColor:n,secondaryColor:r})}Ra.displayName="IconReact",Ra.getTwoToneColors=function(){return D({},Na)},Ra.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Na.primaryColor=t,Na.secondaryColor=n||Ea(t),Na.calculated=!!n};var Ma=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ja(Fr.primary);var Pa=l.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=st(e,Ma),d=l.useContext(Xn),f=d.prefixCls,p=void 0===f?"anticon":f,m=d.rootClassName,g=b(m,p,M(M({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||"loading"===r.name),n),h=a;void 0===h&&c&&(h=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,x=Qe(Oa(s),2),w=x[0],C=x[1];return l.createElement("span",y({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:c,className:g}),l.createElement(Ra,{icon:r,primaryColor:w,secondaryColor:C,style:v}))});Pa.displayName="AntdIcon",Pa.getTwoToneColor=function(){var e=Ra.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Pa.setTwoToneColor=ja;var Da=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:xa}))},Ta=l.forwardRef(Da),Ba={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"},La=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:Ba}))},za=l.forwardRef(La),Fa={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"},Ha=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:Fa}))},Aa=l.forwardRef(Ha),_a={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"},Wa=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:_a}))},Va=l.forwardRef(Wa),Ga={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"},Ua=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:Ga}))},Xa=l.forwardRef(Ua),Ka="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);
7
- /**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xOTMuNSAzMDEuN2wtMjEwLjYgMjkyYTMxLjggMzEuOCAwIDAxLTUxLjcgMEwzMTguNSA0ODQuOWMtMy44LTUuMyAwLTEyLjcgNi41LTEyLjdoNDYuOWMxMC4yIDAgMTkuOSA0LjkgMjUuOSAxMy4zbDcxLjIgOTguOCAxNTcuMi0yMThjNi04LjMgMTUuNi0xMy4zIDI1LjktMTMuM0g2OTljNi41IDAgMTAuMyA3LjQgNi41IDEyLjd6IiAvPjwvc3ZnPg==) */function Qa(e,t){return 0===e.indexOf(t)}function Ya(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:D({},n);var r={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||Qa(n,"aria-"))||t.data&&Qa(n,"data-")||t.attr&&Ka.includes(n))&&(r[n]=e[n])}),r}function qa(t){return t&&e.isValidElement(t)&&t.type===e.Fragment}function Za(t,n){return((t,n,r)=>e.isValidElement(t)?e.cloneElement(t,"function"==typeof r?r(t.props||{}):r):n)(t,t,n)}const Ja=e=>"object"==typeof e&&null!=e&&1===e.nodeType,el=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,tl=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return el(n.overflowY,t)||el(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},nl=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,rl=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},ol=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!Ja(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;Ja(m)&&d(m);){if(m=rl(m),m===f){p.push(m);break}null!=m&&m===document.body&&tl(m)&&!tl(document.documentElement)||null!=m&&tl(m,u)&&p.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:x,top:w,right:C,bottom:S,left:$}=e.getBoundingClientRect(),{top:k,right:E,bottom:O,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let N="start"===l||"nearest"===l?w-k:"end"===l?S+O:w+y/2-k+O,R="center"===c?$+x/2-I+E:"end"===c?C+E:$-I;const j=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:o,right:i,bottom:s,left:u}=t.getBoundingClientRect();if("if-needed"===a&&w>=0&&$>=0&&S<=h&&C<=g&&(t===f&&!tl(t)||w>=o&&S<=s&&$>=u&&C<=i))return j;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),k=parseInt(d.borderTopWidth,10),E=parseInt(d.borderRightWidth,10),O=parseInt(d.borderBottomWidth,10);let I=0,M=0;const P="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-E:0,D="offsetHeight"in t?t.offsetHeight-t.clientHeight-k-O:0,T="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,B="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)I="start"===l?N:"end"===l?N-h:"nearest"===l?nl(b,b+h,h,k,O,b+N,b+N+y,y):N-h/2,M="start"===c?R:"center"===c?R-g/2:"end"===c?R-g:nl(v,v+g,g,m,E,v+R,v+R+x,x),I=Math.max(0,I+b),M=Math.max(0,M+v);else{I="start"===l?N-o-k:"end"===l?N-s+O+D:"nearest"===l?nl(o,s,n,k,O+D,N,N+y,y):N-(o+n/2)+D/2,M="start"===c?R-u-m:"center"===c?R-(u+r/2)+P/2:"end"===c?R-i+E+P:nl(u,i,r,m,E+P,R,R+x,x);const{scrollLeft:e,scrollTop:a}=t;I=0===B?0:Math.max(0,Math.min(a+I/B,t.scrollHeight-n/B+D)),M=0===T?0:Math.max(0,Math.min(e+M/T,t.scrollWidth-r/T+P)),N+=a-I,R+=e-M}j.push({el:t,top:I,left:M})}return j};function il(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(ol(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of ol(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}function al(e){return null!=e&&e===e.window}function ll(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=(e=>{var t,n;if("undefined"==typeof window)return 0;let r=0;return al(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!al(e)&&"number"!=typeof r&&(r=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),r})(i),l=Date.now(),c=()=>{const t=Date.now()-l,n=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(t>o?o:t,a,e,o);al(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<o?Ge(c):"function"==typeof r&&r()};Ge(c)}const cl=e=>{const[,,,,t]=Go();return t?`${e}-css-var`:""};var sl={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,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},ul=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=void 0===i?4.5:i,c=e.showProgress,s=e.pauseOnHover,u=void 0===s||s,d=e.eventKey,f=e.content,p=e.closable,m=e.closeIcon,g=void 0===m?"x":m,h=e.props,v=e.onClick,w=e.onNoticeClose,C=e.times,S=e.hovering,$=Qe(l.useState(!1),2),k=$[0],E=$[1],O=Qe(l.useState(0),2),I=O[0],N=O[1],R=Qe(l.useState(0),2),j=R[0],P=R[1],D=S||k,T=a>0&&c,B=function(){w(d)};l.useEffect(function(){if(!D&&a>0){var e=Date.now()-j,t=setTimeout(function(){B()},1e3*a-j);return function(){u&&clearTimeout(t),P(Date.now()-e)}}},[a,D,C]),l.useEffect(function(){if(!D&&T&&(u||0===j)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var r=e+j-t,o=Math.min(r/(1e3*a),1);N(100*o),o<1&&n()})}(),function(){u&&cancelAnimationFrame(e)}}},[a,j,D,T,C]);var L=l.useMemo(function(){return"object"===x(p)&&null!==p?p:p?{closeIcon:g}:{}},[p,g]),z=Ya(L,!0),F=100-(!I||I<0?0:I>100?100:I),H="".concat(n,"-notice");return l.createElement("div",y({},h,{ref:t,className:b(H,o,M({},"".concat(H,"-closable"),p)),style:r,onMouseEnter:function(e){var t;E(!0),null==h||null===(t=h.onMouseEnter)||void 0===t||t.call(h,e)},onMouseLeave:function(e){var t;E(!1),null==h||null===(t=h.onMouseLeave)||void 0===t||t.call(h,e)},onClick:v}),l.createElement("div",{className:"".concat(H,"-content")},f),p&&l.createElement("a",y({tabIndex:0,className:"".concat(H,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==sl.ENTER||B()},"aria-label":"Close"},z,{onClick:function(e){e.preventDefault(),e.stopPropagation(),B()}}),L.closeIcon),T&&l.createElement("progress",{className:"".concat(H,"-progress"),max:"100",value:F},F+"%"))}),dl=e.createContext({}),fl=function(t){var n=t.children,r=t.classNames;return e.createElement(dl.Provider,{value:{classNames:r}},n)},pl=["className","style","classNames","styles"],ml=function(t){var n,r,o,i,a,l=t.configList,c=t.placement,s=t.prefixCls,u=t.className,d=t.style,f=t.motion,p=t.onAllNoticeRemoved,m=t.onNoticeClose,g=t.stack,h=e.useContext(dl).classNames,v=e.useRef({}),w=Qe(e.useState(null),2),C=w[0],S=w[1],$=Qe(e.useState([]),2),k=$[0],E=$[1],O=l.map(function(e){return{config:e,key:String(e.key)}}),I=Qe((a={offset:8,threshold:3,gap:16},(n=g)&&"object"===x(n)&&(a.offset=null!==(r=n.offset)&&void 0!==r?r:8,a.threshold=null!==(o=n.threshold)&&void 0!==o?o:3,a.gap=null!==(i=n.gap)&&void 0!==i?i:16),[!!n,a]),2),N=I[0],R=I[1],j=R.offset,P=R.threshold,T=R.gap,B=N&&(k.length>0||O.length<=P),L="function"==typeof f?f(c):f;return e.useEffect(function(){N&&k.length>1&&E(function(e){return e.filter(function(e){return O.some(function(t){var n=t.key;return e===n})})})},[k,O,N]),e.useEffect(function(){var e,t;N&&v.current[null===(e=O[O.length-1])||void 0===e?void 0:e.key]&&S(v.current[null===(t=O[O.length-1])||void 0===t?void 0:t.key])},[O,N]),e.createElement(qi,y({key:c,className:b(s,"".concat(s,"-").concat(c),null==h?void 0:h.list,u,M(M({},"".concat(s,"-stack"),!!N),"".concat(s,"-stack-expanded"),B)),style:d,keys:O,motionAppear:!0},L,{onAllRemoved:function(){p(c)}}),function(t,n){var r=t.config,o=t.className,i=t.style,a=t.index,l=r,u=l.key,d=l.times,f=String(u),p=r,g=p.className,x=p.style,w=p.classNames,S=p.styles,$=st(p,pl),I=O.findIndex(function(e){return e.key===f}),R={};if(N){var M=O.length-1-(I>-1?I:a-1),P="top"===c||"bottom"===c?"-50%":"0";if(M>0){var L,z,F;R.height=B?null===(L=v.current[f])||void 0===L?void 0:L.offsetHeight:null==C?void 0:C.offsetHeight;for(var H=0,A=0;A<M;A++){var _;H+=(null===(_=v.current[O[O.length-1-A].key])||void 0===_?void 0:_.offsetHeight)+T}var W=(B?H:M*j)*(c.startsWith("top")?1:-1),V=!B&&null!=C&&C.offsetWidth&&null!==(z=v.current[f])&&void 0!==z&&z.offsetWidth?((null==C?void 0:C.offsetWidth)-2*j*(M<3?M:3))/(null===(F=v.current[f])||void 0===F?void 0:F.offsetWidth):1;R.transform="translate3d(".concat(P,", ").concat(W,"px, 0) scaleX(").concat(V,")")}else R.transform="translate3d(".concat(P,", 0, 0)")}return e.createElement("div",{ref:n,className:b("".concat(s,"-notice-wrapper"),o,null==w?void 0:w.wrapper),style:D(D(D({},i),R),null==S?void 0:S.wrapper),onMouseEnter:function(){return E(function(e){return e.includes(f)?e:[].concat(Fe(e),[f])})},onMouseLeave:function(){return E(function(e){return e.filter(function(e){return e!==f})})}},e.createElement(ul,y({},$,{ref:function(e){I>-1?v.current[f]=e:delete v.current[f]},prefixCls:s,classNames:w,styles:S,className:b(g,null==h?void 0:h.notice),style:x,times:d,key:u,eventKey:u,onNoticeClose:m,hovering:N&&k.length>0})))})},gl=l.forwardRef(function(e,t){var n=e.prefixCls,o=void 0===n?"rc-notification":n,i=e.container,a=e.motion,c=e.maxCount,s=e.className,u=e.style,d=e.onAllRemoved,f=e.stack,p=e.renderNotifications,m=Qe(l.useState([]),2),g=m[0],h=m[1],v=function(e){var t,n=g.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),h(function(t){return t.filter(function(t){return t.key!==e})})};l.useImperativeHandle(t,function(){return{open:function(e){h(function(t){var n,r=Fe(t),o=r.findIndex(function(t){return t.key===e.key}),i=D({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return c>0&&r.length>c&&(r=r.slice(-c)),r})},close:function(e){v(e)},destroy:function(){h([])}}});var b=Qe(l.useState({}),2),y=b[0],x=b[1];l.useEffect(function(){var e={};g.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(y).forEach(function(t){e[t]=e[t]||[]}),x(e)},[g]);var w=function(e){x(function(t){var n=D({},t);return(n[e]||[]).length||delete n[e],n})},C=l.useRef(!1);if(l.useEffect(function(){Object.keys(y).length>0?C.current=!0:C.current&&(null==d||d(),C.current=!1)},[y]),!i)return null;var S=Object.keys(y);return r.createPortal(l.createElement(l.Fragment,null,S.map(function(e){var t=y[e],n=l.createElement(ml,{key:e,configList:t,placement:e,prefixCls:o,className:null==s?void 0:s(e),style:null==u?void 0:u(e),motion:a,onNoticeClose:v,onAllNoticeRemoved:w,stack:f});return p?p(n,{prefixCls:o,key:e}):n})),i)}),hl=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],vl=function(){return document.body},bl=0;function yl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?vl:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=st(e,hl),p=Qe(l.useState(),2),m=p[0],g=p[1],h=l.useRef(),v=l.createElement(gl,{container:m,ref:h,prefixCls:o,motion:r,maxCount:i,className:a,style:c,onAllRemoved:s,stack:u,renderNotifications:d}),b=Qe(l.useState([]),2),y=b[0],x=b[1],w=wo(function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&Object.keys(t).forEach(function(n){var r=t[n];void 0!==r&&(e[n]=r)})}),e}(f,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(bl),bl+=1),x(function(e){return[].concat(Fe(e),[{type:"open",config:t}])})}),C=l.useMemo(function(){return{open:w,close:function(e){x(function(t){return[].concat(Fe(t),[{type:"close",key:e}])})},destroy:function(){x(function(e){return[].concat(Fe(e),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){g(n())}),l.useEffect(function(){var e,t;h.current&&y.length&&(y.forEach(function(e){switch(e.type){case"open":h.current.open(e.config);break;case"close":h.current.close(e.key);break;case"destroy":h.current.destroy()}}),x(function(n){return e===n&&t||(e=n,t=n.filter(function(e){return!y.includes(e)})),t}))},[y]),[C,v]}var xl={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"},wl=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:xl}))},Cl=l.forwardRef(wl);function Sl(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t}function $l(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function kl(t){const{closable:n,closeIcon:r}=t||{};return e.useMemo(()=>{if(!n&&(!1===n||!1===r||null===r))return!1;if(void 0===n&&void 0===r)return null;let e={closeIcon:"boolean"!=typeof r&&null!==r?r:void 0};return n&&"object"==typeof n&&(e=Object.assign(Object.assign({},e),n)),e},[n,r])}const El={},Ol=()=>e.useReducer(e=>e+1,0);function Il(e,...t){const n=e||{};return t.reduce((e,t)=>(Object.keys(t||{}).forEach(r=>{const o=n[r],i=t[r];if(o&&"object"==typeof o)if(i&&"object"==typeof i)e[r]=Il(o,e[r],i);else{const{_default:t}=o;t&&(e[r]=e[r]||{},e[r][t]=b(e[r][t],i))}else e[r]=b(e[r],i)}),e),{})}function Nl(e,...t){return l.useMemo(()=>Il.apply(void 0,[e].concat(t)),[t,e])}function Rl(...e){return l.useMemo(()=>e.reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]=Object.assign(Object.assign({},e[n]),t[n])}),e),{}),[e])}function jl(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(e=>{if("_default"!==e){const r=t[e],o=n[e]||{};n[e]=r?jl(o,r):o}}),n}const Ml=(e,t,n)=>{const r=Nl.apply(void 0,[n].concat(Fe(e))),o=Rl.apply(void 0,Fe(t));return l.useMemo(()=>[jl(r,n),jl(o,n)],[r,o,n])};const Pl=(t,n)=>e.useImperativeHandle(t,()=>{const e=n(),{nativeElement:t}=e;return"undefined"!=typeof Proxy?new Proxy(t,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=t)._antProxy=r._antProxy||{},Object.keys(o).forEach(e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}}),r);var r,o}),Dl=e.createContext(void 0),Tl=100,Bl={Modal:Tl,Drawer:Tl,Popover:Tl,Popconfirm:Tl,Tooltip:Tl,Tour:Tl,FloatButton:Tl},Ll={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const zl=(t,n)=>{const[,r]=Go(),o=e.useContext(Dl),i=function(e){return e in Bl}(t);let a;if(void 0!==n)a=[n,n];else{let e=null!=o?o:0;e+=i?(o?0:r.zIndexPopupBase)+Bl[t]:Ll[t],a=[void 0===o?n:e,e]}return a};var Fl=Zo("Message",e=>(e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:m,zIndexPopup:g,contentPadding:h,contentBg:v}=e,b=`${t}-notice`,y=new Gn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new Gn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:h,background:v,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Xo(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]})(Io(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),Hl=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Al={info:l.createElement(Xa,null),success:l.createElement(Ta,null),error:l.createElement(za,null),warning:l.createElement(Va,null),loading:l.createElement(Cl,null)},_l=({prefixCls:e,type:t,icon:n,children:r})=>l.createElement("div",{className:b(`${e}-custom-content`,`${e}-${t}`)},n||Al[t],l.createElement("span",null,r));function Wl(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var Vl=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Gl=3,Ul=({children:e,prefixCls:t})=>{const n=cl(t),[r,o,i]=Fl(t,n);return r(l.createElement(fl,{classNames:{list:b(o,i,n)}},e))},Xl=(e,{prefixCls:t,key:n})=>l.createElement(Ul,{prefixCls:t,key:n},e),Kl=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=Gl,rtl:c,transitionName:s,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:m}=l.useContext(ro),g=r||d("message"),h=l.createElement("span",{className:`${g}-close-x`},l.createElement(Aa,{className:`${g}-close-icon`})),[v,y]=yl({prefixCls:g,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>b({[`${g}-rtl`]:null!=c?c:"rtl"===m}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(g,s),closable:!1,closeIcon:h,duration:a,getContainer:()=>(null==o?void 0:o())||(null==f?void 0:f())||document.body,maxCount:i,onAllRemoved:u,renderNotifications:Xl});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},v),{prefixCls:g,message:p})),y});let Ql=0;function Yl(e){const t=l.useRef(null);rr();const n=l.useMemo(()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,message:i}=t.current,a=`${o}-notice`,{content:c,icon:s,type:u,key:d,className:f,style:p,onClose:m}=n,g=Vl(n,["content","icon","type","key","className","style","onClose"]);let h=d;return null==h&&(Ql+=1,h=`antd-message-${Ql}`),Wl(t=>(r(Object.assign(Object.assign({},g),{key:h,content:l.createElement(_l,{prefixCls:o,type:u,icon:s},c),placement:"top",className:b(u&&`${a}-${u}`,f,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),p),onClose:()=>{null==m||m(),t()}})),()=>{e(h)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(a=r,l=o);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(c)}}),r},[]);return[n,l.createElement(Kl,Object.assign({key:"message-holder"},e,{ref:t}))]}function ql(e,t){this.v=e,this.k=t}function Zl(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Zl=function(e,t,n,r){function i(t,n){Zl(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Zl(e,t,n,r)}function Jl(){
8
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
9
- var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return Zl(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,m=i[2];n>3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Zl(t={},r,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Zl(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,Zl(d,"constructor",s),Zl(s,"constructor",c),c.displayName="GeneratorFunction",Zl(s,o,"GeneratorFunction"),Zl(d),Zl(d,o,"Generator"),Zl(d,r,function(){return this}),Zl(d,"toString",function(){return"[object Generator]"}),(Jl=function(){return{w:i,m:f}})()}function ec(e,t){function n(r,o,i,a){try{var l=e[r](o),c=l.value;return c instanceof ql?t.resolve(c.v).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):t.resolve(c).then(function(e){l.value=e,i(l)},function(e){return n("throw",e,i,a)})}catch(e){a(e)}}var r;this.next||(Zl(ec.prototype),Zl(ec.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Zl(this,"_invoke",function(e,o,i){function a(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(a,a):a()},!0)}function tc(e,t,n,r,o){return new ec(Jl().w(e,t,n,r),o||Promise)}function nc(e,t,n,r,o){var i=tc(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function rc(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function oc(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)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(x(e)+" is not iterable")}function ic(){var e=Jl(),t=e.m(ic),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,oc(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(ic=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new ql(e,t)},AsyncIterator:ec,async:function(e,t,n,o,a){return(r(t)?tc:nc)(i(e),t,n,o,a)},keys:rc,values:oc}})()}function ac(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function lc(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ac(i,r,o,a,l,"next",e)}function l(e){ac(i,r,o,a,l,"throw",e)}a(void 0)})}}var cc,sc=D({},c),uc=sc.version,dc=sc.render,fc=sc.unmountComponentAtNode;try{Number((uc||"").split(".")[0])>=18&&(cc=sc.createRoot)}catch(il){}function pc(e){var t=sc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===x(t)&&(t.usingClientEntryPoint=e)}var mc="__rc_react_root__";function gc(e,t){cc?function(e,t){pc(!0);var n=t[mc]||cc(t);pc(!1),n.render(e),t[mc]=n}(e,t):function(e,t){null==dc||dc(e,t)}(e,t)}function hc(e){return vc.apply(this,arguments)}function vc(){return(vc=lc(ic().mark(function e(t){return ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[mc])||void 0===e||e.unmount(),delete t[mc]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function bc(e){fc(e)}function yc(){return(yc=lc(ic().mark(function e(t){return ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===cc){e.next=2;break}return e.abrupt("return",hc(t));case 2:bc(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let xc=(e,t)=>(gc(e,t),()=>function(e){return yc.apply(this,arguments)}(t));function wc(e){return xc}const Cc=()=>({height:0,opacity:0}),Sc=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},$c=e=>({height:e?e.offsetHeight:0}),kc=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Ec=(e=eo)=>({motionName:`${e}-motion-collapse`,onAppearStart:Cc,onEnterStart:Cc,onAppearActive:Sc,onEnterActive:Sc,onLeaveStart:$c,onLeaveActive:Cc,onAppearEnd:kc,onEnterEnd:kc,onLeaveEnd:kc,motionDeadline:500}),Oc=(e,t,n)=>void 0!==n?n:`${e}-${t}`;function Ic(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}var Nc=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(),i=o.width,a=o.height;if(i||a)return!0}}return!1};var Rc=Jo("Wave",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(",")}}}}});const jc=`${eo}-wave-target`;function Mc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function Pc(e){return Number.isNaN(e)?0:e}const Dc=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=l.useRef(null),a=l.useRef(null);l.useEffect(()=>{a.current=o()},[]);const[c,s]=l.useState(null),[u,d]=l.useState([]),[f,p]=l.useState(0),[m,g]=l.useState(0),[h,v]=l.useState(0),[y,x]=l.useState(0),[w,C]=l.useState(!1),S={left:f,top:m,width:h,height:y,borderRadius:u.map(e=>`${e}px`).join(" ")};function $(){const e=getComputedStyle(n);s(function(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return null!==(t=[n,r,o].find(Mc))&&void 0!==t?t:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:Pc(-Number.parseFloat(r))),g(t?n.offsetTop:Pc(-Number.parseFloat(o))),v(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;d([i,a,c,l].map(e=>Pc(Number.parseFloat(e))))}if(c&&(S["--wave-color"]=c),l.useEffect(()=>{if(n){const e=Ge(()=>{$(),C(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver($),t.observe(n)),()=>{Ge.cancel(e),null==t||t.disconnect()}}},[n]),!w)return null;const k=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(jc));return l.createElement(Ai,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;null===(r=a.current)||void 0===r||r.call(a).then(()=>{null==e||e.remove()})}return!1}},({className:e},n)=>l.createElement("div",{ref:U(i,n),className:b(t,e,{"wave-quick":k}),style:S}))},Tc=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);const i=wc();let a=null;a=i(l.createElement(Dc,Object.assign({},t,{target:e,registerUnmount:function(){return a}})),o)},Bc=(e,t,n)=>{const{wave:r}=l.useContext(ro),[,o,i]=Go(),a=wo(a=>{const l=e.current;if((null==r?void 0:r.disabled)||!l)return;const c=l.querySelector(`.${jc}`)||l,{showEffect:s}=r||{};(s||Tc)(c,{className:t,token:o,component:n,event:a,hashId:i})}),c=l.useRef(null);return e=>{Ge.cancel(c.current),c.current=Ge(()=>{a(e)})}},Lc=t=>{const{children:n,disabled:r,component:o}=t,{getPrefixCls:i}=e.useContext(ro),a=e.useRef(null),l=i("wave"),[,c]=Rc(l),s=Bc(a,b(l,c),o);if(e.useEffect(()=>{const e=a.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||r)return;const t=t=>{!Nc(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[r]),!e.isValidElement(n))return null!=n?n:null;return Za(n,{ref:K(n)?U(Y(n),a):a})},zc=t=>{const n=e.useContext(fo);return e.useMemo(()=>t?"string"==typeof t?null!=t?t:n:"function"==typeof t?t(n):n:n,[t,n])},Fc=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}};var Hc=Zo(["Space","Compact"],e=>[Fc(e)],()=>({}),{resetStyle:!1}),Ac=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 _c=l.createContext(null),Wc=(e,t)=>{const n=l.useContext(_c),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return b(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},Vc=e=>{const{children:t}=e;return l.createElement(_c.Provider,{value:null},t)},Gc=e=>{const{children:t}=e,n=Ac(e,["children"]);return l.createElement(_c.Provider,{value:l.useMemo(()=>n,[n])},t)};var Uc=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Xc=l.createContext(void 0),Kc=/^[\u4E00-\u9FA5]{2}$/,Qc=Kc.test.bind(Kc);function Yc(e){return"danger"===e?{danger:!0}:{type:e}}function qc(e){return"string"==typeof e}function Zc(e){return"text"===e||"link"===e}function Jc(t,n){let r=!1;const o=[];return e.Children.forEach(t,e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n}),e.Children.map(o,t=>function(t,n){if(null==t)return;const r=n?" ":"";return"string"!=typeof t&&"number"!=typeof t&&qc(t.type)&&Qc(t.props.children)?Za(t,{children:t.props.children.split("").join(r)}):qc(t)?Qc(t)?e.createElement("span",null,t.split("").join(r)):e.createElement("span",null,t):qa(t)?e.createElement("span",null,t):t}(t,n))}["default","primary","danger"].concat(Fe(To));const es=e.forwardRef((t,n)=>{const{className:r,style:o,children:i,prefixCls:a}=t,l=b(`${a}-icon`,r);return e.createElement("span",{ref:n,className:l,style:o},i)}),ts=e.forwardRef((t,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=t,l=b(`${r}-loading-icon`,o);return e.createElement(es,{prefixCls:r,className:l,style:i,ref:n},e.createElement(Cl,{className:a}))}),ns=()=>({width:0,opacity:0,transform:"scale(0)"}),rs=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),os=t=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a,mount:l}=t,c=!!r;return o?e.createElement(ts,{prefixCls:n,className:i,style:a}):e.createElement(Ai,{visible:c,motionName:`${n}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:ns,onAppearActive:rs,onEnterStart:ns,onEnterActive:rs,onLeaveStart:rs,onLeaveActive:ns},({className:t,style:r},o)=>{const l=Object.assign(Object.assign({},a),r);return e.createElement(ts,{prefixCls:n,className:b(i,t),style:l,ref:o})})},is=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),as=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},is(`${t}-primary`,o),is(`${t}-danger`,i)]}};var ls,cs=["b"],ss=["v"],us=function(e){return Math.round(Number(e||0))},ds=function(){Ee(t,$r);var e=Re(t);function t(n){return Ce(this,t),e.call(this,function(e){if(e instanceof $r)return e;if(e&&"object"===x(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return D(D({},st(t,cs)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(n))}return $e(t,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=us(100*e.s),n=us(100*e.b),r=us(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return D(D({},st(e,ss)),{},{b:t,a:this.a})}}]),t}();(ls="#1677ff")instanceof ds||new ds(ls);let fs=function(){return $e(function e(t){var n;if(Ce(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new ds(this.colors[0].color.metaColor)):this.metaColor=new ds(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{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:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])}();var ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ms=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:ps}))},gs=l.forwardRef(ms);const hs=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),vs=e=>({animationDuration:e,animationFillMode:"both"}),bs=e=>({animationDuration:e,animationFillMode:"both"}),ys=(e,t,n,r,o=!1)=>{const i=o?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},vs(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},bs(r)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},xs=new Gn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ws=new Gn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Cs=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[ys(r,xs,ws,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Ss=new Gn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),$s=new Gn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ks=new Gn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Es=new Gn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Os=new Gn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Is=new Gn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ns={"move-up":{inKeyframes:new Gn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Gn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Ss,outKeyframes:$s},"move-left":{inKeyframes:ks,outKeyframes:Es},"move-right":{inKeyframes:Os,outKeyframes:Is}},Rs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Ns[t];return[ys(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},js=new Gn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ms=new Gn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ps=new Gn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ds=new Gn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Ts=new Gn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Bs=new Gn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ls=new Gn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),zs=new Gn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Fs={"slide-up":{inKeyframes:js,outKeyframes:Ms},"slide-down":{inKeyframes:Ps,outKeyframes:Ds},"slide-left":{inKeyframes:Ts,outKeyframes:Bs},"slide-right":{inKeyframes:Ls,outKeyframes:zs}},Hs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Fs[t];return[ys(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},As=new Gn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_s=new Gn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ws=new Gn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Vs=new Gn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Gs=new Gn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Us=new Gn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Xs=new Gn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Ks=new Gn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Qs=new Gn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ys=new Gn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),qs=new Gn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Zs=new Gn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Js={zoom:{inKeyframes:As,outKeyframes:_s},"zoom-big":{inKeyframes:Ws,outKeyframes:Vs},"zoom-big-fast":{inKeyframes:Ws,outKeyframes:Vs},"zoom-left":{inKeyframes:Xs,outKeyframes:Ks},"zoom-right":{inKeyframes:Qs,outKeyframes:Ys},"zoom-up":{inKeyframes:Gs,outKeyframes:Us},"zoom-down":{inKeyframes:qs,outKeyframes:Zs}},eu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Js[t];return[ys(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},tu=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Io(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},nu=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Gr(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Gr(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Gr(s),p=((e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new ds(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new fs(e.colorBgSolid),"#fff")?"#000":"#fff",m=To.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${It(e.controlOutlineWidth)} 0 ${Lo(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},m),{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:p,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)})},ru=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:l,calc:c}=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:`${It(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`]:{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"}},"> a":{color:"currentColor"},"&:not(:disabled)":Qo(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(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},ou=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),iu=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),au=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),lu=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},ou(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),cu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},au(e))}),su=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),uu=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?su:cu;return Object.assign(Object.assign({},o(e)),ou(e.componentCls,t,n))},du=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},uu(e,r,o))}),fu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},uu(e,r,o))}),pu=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),mu=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},uu(e,n,r))}),gu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},uu(e,r,o,n))}),hu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},du(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),pu(e)),mu(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),lu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),gu(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),vu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},fu(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),pu(e)),mu(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),gu(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),gu(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),lu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),bu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},du(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),fu(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pu(e)),mu(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),gu(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),gu(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),lu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yu=e=>Object.assign(Object.assign({},gu(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),lu(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),xu=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:hu(e),[`${t}-color-primary`]:vu(e),[`${t}-color-dangerous`]:bu(e),[`${t}-color-link`]:yu(e)},(e=>{const{componentCls:t}=e;return To.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],c=e[`${r}3`],s=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`]},du(e,e.colorTextLightSolid,o,{background:a},{background:s})),fu(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:s,borderColor:s,background:e.colorBgContainer})),pu(e)),mu(e,i,{color:o,background:l},{color:o,background:c})),gu(e,o,"link",{color:a},{color:s})),gu(e,o,"text",{color:a,background:i},{color:s,background:c}))})},{})})(e))},wu=e=>Object.assign(Object.assign(Object.assign(Object.assign({},fu(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),gu(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),du(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),gu(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Cu=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:s}=e;return[{[t]:{fontSize:o,height:r,padding:`${It(c)} ${It(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:s}}}},{[`${n}${n}-circle${t}`]:iu(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Su=e=>{const t=Io(e,{fontSize:e.contentFontSize});return Cu(t,e.componentCls)},$u=e=>{const t=Io(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Cu(t,`${e.componentCls}-sm`)},ku=e=>{const t=Io(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Cu(t,`${e.componentCls}-lg`)},Eu=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Ou=Zo("Button",e=>{const t=tu(e);return[ru(t),Su(t),$u(t),ku(t),Eu(t),xu(t),wu(t),as(t)]},nu,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Iu(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:a}=n,l=a?"> *":"",c=["hover",i?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${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({[c]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function Nu(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 Ru(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return{[i]:Object.assign(Object.assign({},Iu(e,i,t,o)),Nu(o,i,t))}}function ju(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 Mu(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ju(e,t,e.componentCls)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Pu=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))};var Du=ei(["Button","compact"],e=>{const t=tu(e);return[Ru(t),Mu(t),Pu(t)]},nu),Tu=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Bu={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Lu=e.forwardRef((t,n)=>{var r,o;const{loading:i=!1,prefixCls:a,color:l,variant:c,type:s,danger:u=!1,shape:d,size:f,styles:p,disabled:m,className:g,rootClassName:h,children:v,icon:y,iconPosition:x="start",ghost:w=!1,block:C=!1,htmlType:S="button",classNames:$,style:k={},autoInsertSpace:E,autoFocus:O}=t,I=Tu(t,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),N=s||"default",{button:R}=e.useContext(ro),j=d||(null==R?void 0:R.shape)||"default",[M,P]=e.useMemo(()=>{if(l&&c)return[l,c];if(s||u){const e=Bu[N]||[];return u?["danger",e[1]]:e}return(null==R?void 0:R.color)&&(null==R?void 0:R.variant)?[R.color,R.variant]:["default","outlined"]},[l,c,s,u,null==R?void 0:R.color,null==R?void 0:R.variant,N]),D="danger"===M?"dangerous":M,{getPrefixCls:T,direction:B,autoInsertSpace:L,className:z,style:F,classNames:H,styles:A}=ao("button"),_=null===(r=null!=E?E:L)||void 0===r||r,W=T("btn",a),[V,G,U]=Ou(W),K=e.useContext(so),Q=null!=m?m:K,Y=e.useContext(Xc),q=e.useMemo(()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(i),[i]),[Z,J]=e.useState(q.loading),[ee,te]=e.useState(!1),ne=e.useRef(null),re=X(n,ne),oe=1===e.Children.count(v)&&!y&&!Zc(P),ie=e.useRef(!0);e.useEffect(()=>(ie.current=!1,()=>{ie.current=!0}),[]),Dt(()=>{let e=null;return q.delay>0?e=setTimeout(()=>{e=null,J(!0)},q.delay):J(q.loading),function(){e&&(clearTimeout(e),e=null)}},[q.delay,q.loading]),e.useEffect(()=>{if(!ne.current||!_)return;const e=ne.current.textContent||"";oe&&Qc(e)?ee||te(!0):ee&&te(!1)}),e.useEffect(()=>{O&&ne.current&&ne.current.focus()},[]);const ae=e.useCallback(e=>{var n;Z||Q?e.preventDefault():null===(n=t.onClick)||void 0===n||n.call(t,e)},[t.onClick,Z,Q]),{compactSize:le,compactItemClassnames:ce}=Wc(W,B),se={large:"lg",small:"sm",middle:void 0},ue=zc(e=>{var t,n;return null!==(n=null!==(t=null!=f?f:le)&&void 0!==t?t:Y)&&void 0!==n?n:e}),de=ue&&null!==(o=se[ue])&&void 0!==o?o:"",fe=Z?"loading":y,pe=Ic(I,["navigate"]),me=b(W,G,U,{[`${W}-${j}`]:"default"!==j&&j,[`${W}-${N}`]:N,[`${W}-dangerous`]:u,[`${W}-color-${D}`]:D,[`${W}-variant-${P}`]:P,[`${W}-${de}`]:de,[`${W}-icon-only`]:!v&&0!==v&&!!fe,[`${W}-background-ghost`]:w&&!Zc(P),[`${W}-loading`]:Z,[`${W}-two-chinese-chars`]:ee&&_&&!Z,[`${W}-block`]:C,[`${W}-rtl`]:"rtl"===B,[`${W}-icon-end`]:"end"===x},ce,g,h,z),ge=Object.assign(Object.assign({},F),k),he=b(null==$?void 0:$.icon,H.icon),ve=Object.assign(Object.assign({},(null==p?void 0:p.icon)||{}),A.icon||{}),be=t=>e.createElement(es,{prefixCls:W,className:he,style:ve},t);let ye;ye=y&&!Z?be(y):i&&"object"==typeof i&&i.icon?be(i.icon):e.createElement(os,{existIcon:!!y,prefixCls:W,loading:Z,mount:ie.current});const xe=v||0===v?Jc(v,oe&&_):null;if(void 0!==pe.href)return V(e.createElement("a",Object.assign({},pe,{className:b(me,{[`${W}-disabled`]:Q}),href:Q?void 0:pe.href,style:ge,onClick:ae,ref:re,tabIndex:Q?-1:0,"aria-disabled":Q}),ye,xe));let we=e.createElement("button",Object.assign({},I,{type:S,className:me,style:ge,onClick:ae,disabled:Q,ref:re}),ye,xe,ce&&e.createElement(Du,{prefixCls:W}));return Zc(P)||(we=e.createElement(Lc,{component:"Button",disabled:Z},we)),V(we)}),zu=Lu;zu.Group=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ro),{prefixCls:r,size:o,className:i}=e,a=Uc(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,s]=Go(),u=l.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=b(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===n},i,s);return l.createElement(Xc.Provider,{value:o},l.createElement("div",Object.assign({},a,{className:d})))},zu.__ANT_BUTTON=!0;const Fu=e=>"function"==typeof(null==e?void 0:e.then),Hu=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:c,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=l.useRef(!1),p=l.useRef(null),[m,g]=Co(!1),h=(...e)=>{null==i||i.apply(void 0,e)};l.useEffect(()=>{let e=null;return a&&(e=setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[a]);return l.createElement(zu,Object.assign({},Yc(t),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void h();let t;if(c){if(t=d(e),u&&!Fu(t))return f.current=!1,void h(e)}else if(d.length)t=d(i),f.current=!1;else if(t=d(),!Fu(t))return void h();(e=>{Fu(e)&&(g(!0),e.then((...e)=>{g(!1,!0),h.apply(void 0,e),f.current=!1},e=>{if(g(!1,!0),f.current=!1,!(null==s?void 0:s()))return Promise.reject(e)}))})(t)},loading:m,prefixCls:r},o,{ref:p}),n)},Au=e.createContext({}),{Provider:_u}=Au,Wu=()=>{const{autoFocusButton:t,cancelButtonProps:n,cancelTextLocale:r,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:c,onConfirm:s}=e.useContext(Au);return i?e.createElement(Hu,{isSilent:o,actionFn:c,close:(...e)=>{null==l||l.apply(void 0,e),null==s||s(!1)},autoFocus:"cancel"===t,buttonProps:n,prefixCls:`${a}-btn`},r):null},Vu=()=>{const{autoFocusButton:t,close:n,isSilent:r,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:c,onOk:s}=e.useContext(Au);return e.createElement(Hu,{isSilent:r,type:l||"primary",actionFn:s,close:(...e)=>{null==n||n.apply(void 0,e),null==c||c(!0)},autoFocus:"ok"===t,buttonProps:o,prefixCls:`${i}-btn`},a)};var Gu,Uu=l.createContext(null),Xu=[];function Ku(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";ct("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),lt(t),{width:f,height:p}}function Qu(e){return"undefined"==typeof document?0:(void 0===Gu&&(Gu=Ku()),Gu.width)}function Yu(e){return"undefined"!=typeof document&&e&&e instanceof Element?Ku(e):{width:0,height:0}}var qu="rc-util-locker-".concat(Date.now()),Zu=0;function Ju(e){var t=!!e,n=Qe(l.useState(function(){return Zu+=1,"".concat(qu,"_").concat(Zu)}),1)[0];Dt(function(){if(t){var e=Yu(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;ct("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else lt(n);return function(){lt(n)}},[t,n])}var ed=function(e){return!1!==e&&(qe()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},td=l.forwardRef(function(e,t){var n=e.open,o=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,c=void 0===a||a,s=e.children,u=Qe(l.useState(n),2),d=u[0],f=u[1],p=d||n;l.useEffect(function(){(c||n)&&f(n)},[n,c]);var m=Qe(l.useState(function(){return ed(i)}),2),g=m[0],h=m[1];l.useEffect(function(){var e=ed(i);h(null!=e?e:null)});var v=function(e){var t=Qe(l.useState(function(){return qe()?document.createElement("div"):null}),1)[0],n=l.useRef(!1),r=l.useContext(Uu),o=Qe(l.useState(Xu),2),i=o[0],a=o[1],c=r||(n.current?void 0:function(e){a(function(t){return[e].concat(Fe(t))})});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function u(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return Dt(function(){return e?r?r(s):s():u(),u},[e]),Dt(function(){i.length&&(i.forEach(function(e){return e()}),a(Xu))},[i]),[t,c]}(p&&!g),b=Qe(v,2),y=b[0],x=b[1],w=null!=g?g:y;Ju(o&&n&&qe()&&(w===y||w===document.body));var C=null;s&&K(s)&&t&&(C=s.ref);var S=X(C,t);if(!p||!qe()||void 0===g)return null;var $=!1===w||!1,k=s;return t&&(k=l.cloneElement(s,{ref:S})),l.createElement(Uu.Provider,{value:x},$?k:r.createPortal(k,w))}),nd=l.createContext({});var rd=0,od=D({},l).useId,id=od?function(e){var t=od();return e||t}:function(e){var t=Qe(l.useState("ssr-id"),2),n=t[0],r=t[1];return l.useEffect(function(){var e=rd;rd+=1,r("rc_unique_".concat(e))},[]),e||n};function ad(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function ld(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var cd=l.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),sd={width:0,height:0,overflow:"hidden",outline:"none"},ud={outline:"none"},dd=e.forwardRef(function(t,n){var r=t.prefixCls,o=t.className,i=t.style,a=t.title,l=t.ariaId,c=t.footer,s=t.closable,u=t.closeIcon,d=t.onClose,f=t.children,p=t.bodyStyle,m=t.bodyProps,g=t.modalRender,h=t.onMouseDown,v=t.onMouseUp,w=t.holderRef,C=t.visible,S=t.forceRender,$=t.width,k=t.height,E=t.classNames,O=t.styles,I=e.useContext(nd).panel,N=X(w,I),R=e.useRef(),j=e.useRef();e.useImperativeHandle(n,function(){return{focus:function(){var e;null===(e=R.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===j.current?R.current.focus({preventScroll:!0}):e||t!==R.current||j.current.focus({preventScroll:!0})}}});var M={};void 0!==$&&(M.width=$),void 0!==k&&(M.height=k);var P=c?e.createElement("div",{className:b("".concat(r,"-footer"),null==E?void 0:E.footer),style:D({},null==O?void 0:O.footer)},c):null,T=a?e.createElement("div",{className:b("".concat(r,"-header"),null==E?void 0:E.header),style:D({},null==O?void 0:O.header)},e.createElement("div",{className:"".concat(r,"-title"),id:l},a)):null,B=e.useMemo(function(){return"object"===x(s)&&null!==s?s:s?{closeIcon:null!=u?u:e.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[s,u,r]),L=Ya(B,!0),z="object"===x(s)&&s.disabled,F=s?e.createElement("button",y({type:"button",onClick:d,"aria-label":"Close"},L,{className:"".concat(r,"-close"),disabled:z}),B.closeIcon):null,H=e.createElement("div",{className:b("".concat(r,"-content"),null==E?void 0:E.content),style:null==O?void 0:O.content},F,T,e.createElement("div",y({className:b("".concat(r,"-body"),null==E?void 0:E.body),style:D(D({},p),null==O?void 0:O.body)},m),f),P);return e.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:N,style:D(D({},i),M),className:b(r,o),onMouseDown:h,onMouseUp:v},e.createElement("div",{ref:R,tabIndex:0,style:ud},e.createElement(cd,{shouldUpdate:C||S},g?g(H):H)),e.createElement("div",{tabIndex:0,ref:j,style:sd}))}),fd=l.forwardRef(function(t,n){var r=t.prefixCls,o=t.title,i=t.style,a=t.className,c=t.visible,s=t.forceRender,u=t.destroyOnClose,d=t.motionName,f=t.ariaId,p=t.onVisibleChanged,m=t.mousePosition,g=e.useRef(),h=Qe(l.useState(),2),v=h[0],x=h[1],w={};function C(){var e,t,n,r,o,i=(e=g.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=ld(o),n.top+=ld(o,!0),n);x(m&&(m.x||m.y)?"".concat(m.x-i.left,"px ").concat(m.y-i.top,"px"):"")}return v&&(w.transformOrigin=v),l.createElement(Ai,{visible:c,onVisibleChanged:p,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:d,removeOnLeave:u,ref:g},function(e,c){var s=e.className,u=e.style;return l.createElement(dd,y({},t,{ref:n,title:o,ariaId:f,prefixCls:r,holderRef:c,style:D(D(D({},u),i),w),className:b(a,s)}))})});fd.displayName="Content";var pd=function(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return l.createElement(Ai,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var i=e.className,c=e.style;return l.createElement("div",y({ref:r,style:D(D({},c),n),className:b("".concat(t,"-mask"),i,a)},o))})},md=function(t){var n=t.prefixCls,r=void 0===n?"rc-dialog":n,o=t.zIndex,i=t.visible,a=void 0!==i&&i,c=t.keyboard,s=void 0===c||c,u=t.focusTriggerAfterClose,d=void 0===u||u,f=t.wrapStyle,p=t.wrapClassName,m=t.wrapProps,g=t.onClose,h=t.afterOpenChange,v=t.afterClose,x=t.transitionName,w=t.animation,C=t.closable,S=void 0===C||C,$=t.mask,k=void 0===$||$,E=t.maskTransitionName,O=t.maskAnimation,I=t.maskClosable,N=void 0===I||I,R=t.maskStyle,j=t.maskProps,M=t.rootClassName,P=t.classNames,T=t.styles,B=e.useRef(),L=e.useRef(),z=e.useRef(),F=Qe(l.useState(a),2),H=F[0],A=F[1],_=id();function W(e){null==g||g(e)}var V=e.useRef(!1),G=e.useRef(),U=null;N&&(U=function(e){V.current?V.current=!1:L.current===e.target&&W(e)}),e.useEffect(function(){a&&(A(!0),Ze(L.current,document.activeElement)||(B.current=document.activeElement))},[a]),e.useEffect(function(){return function(){clearTimeout(G.current)}},[]);var X=D(D(D({zIndex:o},f),null==T?void 0:T.wrapper),{},{display:H?null:"none"});return l.createElement("div",y({className:b("".concat(r,"-root"),M)},Ya(t,{data:!0})),l.createElement(pd,{prefixCls:r,visible:k&&a,motionName:ad(r,E,O),style:D(D({zIndex:o},R),null==T?void 0:T.mask),maskProps:j,className:null==P?void 0:P.mask}),l.createElement("div",y({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===sl.ESC)return e.stopPropagation(),void W(e);a&&e.keyCode===sl.TAB&&z.current.changeActive(!e.shiftKey)},className:b("".concat(r,"-wrap"),p,null==P?void 0:P.wrapper),ref:L,onClick:U,style:X},m),l.createElement(fd,y({},t,{onMouseDown:function(){clearTimeout(G.current),V.current=!0},onMouseUp:function(){G.current=setTimeout(function(){V.current=!1})},ref:z,closable:S,ariaId:_,prefixCls:r,visible:a&&H,onClose:W,onVisibleChanged:function(e){if(e)Ze(L.current,document.activeElement)||null===(t=z.current)||void 0===t||t.focus();else{if(A(!1),k&&B.current&&d){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}H&&(null==v||v())}var t;null==h||h(e)},motionName:ad(r,x,w)}))))},gd=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,c=e.panelRef,s=Qe(l.useState(t),2),u=s[0],d=s[1],f=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){t&&d(!0)},[t]),r||!i||u?l.createElement(nd.Provider,{value:f},l.createElement(td,{open:t||r||u,autoDestroy:!1,getContainer:n,autoLock:t||u},l.createElement(md,y({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),d(!1)}})))):null};gd.displayName="Dialog";var hd="RC_FORM_INTERNAL_HOOKS",vd=function(){R(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},bd=l.createContext({getFieldValue:vd,getFieldsValue:vd,getFieldError:vd,getFieldWarning:vd,getFieldsError:vd,isFieldsTouched:vd,isFieldTouched:vd,isFieldValidating:vd,isFieldsValidating:vd,resetFields:vd,setFields:vd,setFieldValue:vd,setFieldsValue:vd,validateFields:vd,submit:vd,getInternalHooks:function(){return vd(),{dispatch:vd,initEntityValue:vd,registerField:vd,useSubscribe:vd,setInitialValues:vd,destroyForm:vd,setCallbacks:vd,registerWatch:vd,getFields:vd,setValidateMessages:vd,setPreserve:vd,getInitialValue:vd}}}),yd=l.createContext(null);function xd(e){return null==e?[]:Array.isArray(e)?e:[e]}function wd(){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 Cd=wd();function Sd(e){var t="function"==typeof Map?new Map:void 0;return Sd=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Ie())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ke(o,n.prototype),o}(e,arguments,Oe(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ke(n,e)},Sd(e)}var $d=/%[sdj%]/g;function kd(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Ed(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,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace($d,function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}):e}function Od(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function Id(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env;var Nd=function(){Ee(t,Sd(Error));var e=Re(t);function t(n,r){var o;return Ce(this,t),M(Ne(o=e.call(this,"Async Validation Error")),"errors",void 0),M(Ne(o),"fields",void 0),o.errors=n,o.fields=r,o}return $e(t)}();function Rd(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Fe(e[n]||[]))}),t}(e);Id(a,n,function(e){return r(e),e.length?i(new Nd(e,kd(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise(function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new Nd(u,kd(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?Id(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Fe(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}function jd(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function Md(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===x(r)&&"object"===x(e[n])?e[n]=D(D({},e[n]),r):e[n]=r}return e}var Pd,Dd="enum",Td=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Od(t,i||e.type)||r.push(Ed(o.messages.required,e.fullField))},Bd=/^(([^<>()\[\]\\.,;:\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,}))$/,Ld=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,zd={integer:function(e){return zd.number(e)&&parseInt(e,10)===e},float:function(e){return zd.number(e)&&!zd.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===x(e)&&!zd.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Bd)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Pd)return Pd;var e="[a-fA-F\\d:]",t=function(t){return t&&t.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}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Pd=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Ld)}},Fd={required:Td,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Ed(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)Td(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?zd[i](t)||r.push(Ed(o.messages.types[i],e.fullField,e.type)):i&&x(t)!==e.type&&r.push(Ed(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(Ed(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(Ed(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(Ed(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(Ed(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[Dd]=Array.isArray(e[Dd])?e[Dd]:[],-1===e[Dd].indexOf(t)&&r.push(Ed(o.messages[Dd],e.fullField,e[Dd].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Ed(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(Ed(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Hd=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t,i)&&!e.required)return n();Fd.required(e,t,r,a,o,i),Od(t,i)||Fd.type(e,t,r,a,o)}n(a)},Ad={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t,"string")&&!e.required)return n();Fd.required(e,t,r,i,o,"string"),Od(t,"string")||(Fd.type(e,t,r,i,o),Fd.range(e,t,r,i,o),Fd.pattern(e,t,r,i,o),!0===e.whitespace&&Fd.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t)&&!e.required)return n();Fd.required(e,t,r,i,o),void 0!==t&&Fd.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Od(t)&&!e.required)return n();Fd.required(e,t,r,i,o),void 0!==t&&(Fd.type(e,t,r,i,o),Fd.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t)&&!e.required)return n();Fd.required(e,t,r,i,o),void 0!==t&&Fd.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t)&&!e.required)return n();Fd.required(e,t,r,i,o),Od(t)||Fd.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t)&&!e.required)return n();Fd.required(e,t,r,i,o),void 0!==t&&(Fd.type(e,t,r,i,o),Fd.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t)&&!e.required)return n();Fd.required(e,t,r,i,o),void 0!==t&&(Fd.type(e,t,r,i,o),Fd.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Fd.required(e,t,r,i,o,"array"),null!=t&&(Fd.type(e,t,r,i,o),Fd.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t)&&!e.required)return n();Fd.required(e,t,r,i,o),void 0!==t&&Fd.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t)&&!e.required)return n();Fd.required(e,t,r,i,o),void 0!==t&&Fd.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t,"string")&&!e.required)return n();Fd.required(e,t,r,i,o),Od(t,"string")||Fd.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t,"date")&&!e.required)return n();var a;if(Fd.required(e,t,r,i,o),!Od(t,"date"))a=t instanceof Date?t:new Date(t),Fd.type(e,a,r,i,o),a&&Fd.range(e,a.getTime(),r,i,o)}n(i)},url:Hd,hex:Hd,email:Hd,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":x(t);Fd.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Od(t)&&!e.required)return n();Fd.required(e,t,r,i,o)}n(i)}},_d=function(){function e(t){Ce(this,e),M(this,"rules",null),M(this,"_messages",Cd),this.define(t)}return $e(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==x(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=Md(wd(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===Cd&&(a=wd()),Md(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach(function(e){var o=n.rules[e],i=r[e];o.forEach(function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=D({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":x(i)))),(a="function"==typeof a?{validator:a}:D({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))})});var c={};return Rd(l,o,function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==x(a.fields)&&"object"!==x(a.defaultField));function s(e,t){return D(D({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Fe(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(jd(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(jd(a,r)):o.error&&(d=[o.error(a,Ed(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map(function(e){f[e]=a.defaultField}),f=D(D({},f),t.rule.fields);var p={};Object.keys(f).forEach(function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))});var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];d&&d.length&&t.push.apply(t,Fe(d)),e&&e.length&&t.push.apply(t,Fe(e)),n(t.length?t:null)})}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout(function(){throw e},0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,Fe(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=kd(t),i(t,n)):i(null,r)}(e)},r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Ad.hasOwnProperty(e.type))throw new Error(Ed("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Ad.required:Ad[this.getType(e)]||void 0}}]),e}();M(_d,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ad[e]=t}),M(_d,"warning",function(){}),M(_d,"messages",Cd),M(_d,"validators",Ad);var Wd="'${name}' is not a valid ${type}",Vd={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:Wd,method:Wd,array:Wd,object:Wd,number:Wd,date:Wd,boolean:Wd,integer:Wd,float:Wd,regexp:Wd,email:Wd,url:Wd,hex:Wd},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}"}},Gd=_d;function Ud(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var Xd="CODE_LOGIC_ERROR";function Kd(e,t,n,r,o){return Qd.apply(this,arguments)}function Qd(){return Qd=lc(ic().mark(function e(t,n,r,o,i){var a,c,s,u,d,f,p,m,g;return ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=D({},r)).ruleIndex,Gd.warning=function(){},a.validator&&(c=a.validator,a.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Xd)}}),s=null,a&&"array"===a.type&&a.defaultField&&(s=a.defaultField,delete a.defaultField),u=new Gd(M({},t,[a])),d=er(Vd,o.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(M({},t,n),D({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map(function(e,t){var n=e.message,r=n===Xd?d.default:n;return l.isValidElement(r)?l.cloneElement(r,{key:"error_".concat(t)}):r}));case 18:if(!(!f.length&&s&&Array.isArray(n)&&n.length>0)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return Kd("".concat(t,".").concat(n),e,s,o,i)}));case 21:return p=e.sent,e.abrupt("return",p.reduce(function(e,t){return[].concat(Fe(e),Fe(t))},[]));case 23:return m=D(D({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),g=f.map(function(e){return"string"==typeof e?Ud(e,m):e}),e.abrupt("return",g);case 26:case"end":return e.stop()}},e,null,[[10,15]])})),Qd.apply(this,arguments)}function Yd(e,t,n,r,o,i){var a,l=e.join("."),c=n.map(function(e,t){var n=e.validator,r=D(D({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){R(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});R(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1});if(!0===o)a=new Promise(function(){var e=lc(ic().mark(function e(n,o){var a,s,u;return ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Kd(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map(function(e){return Kd(l,t,e,r,i).then(function(t){return{errors:t,rule:e}})});a=(o?function(e){return Zd.apply(this,arguments)}(s):function(e){return qd.apply(this,arguments)}(s)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function qd(){return(qd=lc(ic().mark(function e(t){return ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,Fe(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Zd(){return(Zd=lc(ic().mark(function e(t){var n;return ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Jd(e){return xd(e)}function ef(e,t){var n={};return t.forEach(function(t){var r=Qn(e,t);n=qn(n,t,r)}),n}function tf(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return nf(t,e,n)})}function nf(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t}))}function rf(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===x(t.target)&&e in t.target?t.target[e]:t}function of(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Fe(e.slice(0,n)),[o],Fe(e.slice(n,t)),Fe(e.slice(t+1,r))):i<0?[].concat(Fe(e.slice(0,t)),Fe(e.slice(t+1,n+1)),[o],Fe(e.slice(n+1,r))):e}var af=["name"],lf=[];function cf(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var sf=function(){Ee(t,l.Component);var e=Re(t);function t(n){var r;(Ce(this,t),M(Ne(r=e.call(this,n)),"state",{resetCount:0}),M(Ne(r),"cancelRegisterFunc",null),M(Ne(r),"mounted",!1),M(Ne(r),"touched",!1),M(Ne(r),"dirty",!1),M(Ne(r),"validatePromise",void 0),M(Ne(r),"prevValidating",void 0),M(Ne(r),"errors",lf),M(Ne(r),"warnings",lf),M(Ne(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Jd(o)),r.cancelRegisterFunc=null}),M(Ne(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Fe(void 0===n?[]:n),Fe(t)):[]}),M(Ne(r),"getRules",function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map(function(e){return"function"==typeof e?e(o):e})}),M(Ne(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),M(Ne(r),"metaCache",null),M(Ne(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=D(D({},r.getMeta()),{},{destroy:e});ut(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),M(Ne(r),"onStoreChange",function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,c=o.onReset,s=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(s),p=t&&tf(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||ut(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=lf,r.warnings=lf,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=lf,r.warnings=lf,r.triggerMetaEvent(),null==c||c(),void r.refresh();break;case"remove":if(i&&cf(i,e,s,d,f,n))return void r.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(r.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(r.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(r.errors=m.errors||lf),"warnings"in m&&(r.warnings=m.warnings||lf),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in m&&tf(t,u,!0))return void r.reRender();if(i&&!u.length&&cf(i,e,s,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(Jd).some(function(e){return tf(n.relatedFields,e)}))return void r.reRender();break;default:if(p||(!l.length||u.length||i)&&cf(i,e,s,d,f,n))return void r.reRender()}!0===i&&r.reRender()}),M(Ne(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(lc(ic().mark(function o(){var a,l,s,u,d,f,p;return ic().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||xd(t).includes(i)})),!d||!i){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(r.validatePromise===c){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=Yd(t,n,f,e,s,u)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lf;if(r.validatePromise===c){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?lf:r;t?o.push.apply(o,Fe(i)):n.push.apply(n,Fe(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",p);case 13:case"end":return o.stop()}},o)})));return l||(r.validatePromise=c,r.dirty=!0,r.errors=lf,r.warnings=lf,r.triggerMetaEvent(),r.reRender()),c}),M(Ne(r),"isFieldValidating",function(){return!!r.validatePromise}),M(Ne(r),"isFieldTouched",function(){return r.touched}),M(Ne(r),"isFieldDirty",function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(hd).getInitialValue)(r.getNamePath())}),M(Ne(r),"getErrors",function(){return r.errors}),M(Ne(r),"getWarnings",function(){return r.warnings}),M(Ne(r),"isListField",function(){return r.props.isListField}),M(Ne(r),"isList",function(){return r.props.isList}),M(Ne(r),"isPreserve",function(){return r.props.preserve}),M(Ne(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),M(Ne(r),"getOnlyChild",function(e){if("function"==typeof e){var t=r.getMeta();return D(D({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=k(e);return 1===n.length&&l.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),M(Ne(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Qn(e||t(!0),n)}),M(Ne(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=r.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,g=p(hd).dispatch,h=r.getValue(),v=s||function(e){return M({},c,e)},b=e[o],y=void 0!==n?v(h):{},x=D(D({},e),y);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):rf.apply(void 0,[c].concat(n)),l&&(e=l(e,h,m(!0))),e!==h&&g({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},xd(d||[]).forEach(function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}}),x}),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(hd).initEntityValue)(Ne(r));return r}return $e(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(hd).registerField;this.cancelRegisterFunc=r(this)}!0===t&&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 e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:l.isValidElement(o)?e=l.cloneElement(o,this.getControlled(o.props)):(R(!o,"`children` of Field is not validate ReactElement."),e=o),l.createElement(l.Fragment,{key:t},e)}}]),t}();function uf(e){var t,n=e.name,r=st(e,af),o=l.useContext(bd),i=l.useContext(yd),a=void 0!==n?Jd(n):void 0,c=null!==(t=r.isListField)&&void 0!==t?t:!!i,s="keep";return c||(s="_".concat((a||[]).join("_"))),l.createElement(sf,y({key:s,name:a,isListField:c},r,{fieldContext:o}))}function df(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,c=l.useContext(bd),s=l.useContext(yd),u=l.useRef({keys:[],id:0}).current,d=l.useMemo(function(){var e=Jd(c.prefixName)||[];return[].concat(Fe(e),Fe(Jd(t)))},[c.prefixName,t]),f=l.useMemo(function(){return D(D({},c),{},{prefixName:d})},[c,d]),p=l.useMemo(function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}},[d]);if("function"!=typeof r)return R(!1,"Form.List only accepts function as children."),null;return l.createElement(yd.Provider,{value:p},l.createElement(bd.Provider,{value:f},l.createElement(uf,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!s},function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Fe(u.keys.slice(0,t)),[u.id],Fe(u.keys.slice(t))),i([].concat(Fe(n.slice(0,t)),[e],Fe(n.slice(t))))):(u.keys=[].concat(Fe(u.keys),[u.id]),i([].concat(Fe(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter(function(e,t){return!n.has(t)}),i(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=of(u.keys,e,t),i(of(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map(function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}}),s,t)})))}M(sf,"contextType",bd),M(sf,"defaultProps",{trigger:"onChange",valuePropName:"value"});var ff="__@field_split__";function pf(e){return e.map(function(e){return"".concat(x(e),":").concat(e)}).join(ff)}var mf=function(){function e(){Ce(this,e),M(this,"kvs",new Map)}return $e(e,[{key:"set",value:function(e,t){this.kvs.set(pf(e),t)}},{key:"get",value:function(e){return this.kvs.get(pf(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(pf(e))}},{key:"map",value:function(e){return Fe(this.kvs.entries()).map(function(t){var n=Qe(t,2),r=n[0],o=n[1],i=r.split(ff);return e({key:i.map(function(e){var t=Qe(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),gf=["name"],hf=$e(function e(t){var n=this;Ce(this,e),M(this,"formHooked",!1),M(this,"forceRootUpdate",void 0),M(this,"subscribable",!0),M(this,"store",{}),M(this,"fieldEntities",[]),M(this,"initialValues",{}),M(this,"callbacks",{}),M(this,"validateMessages",null),M(this,"preserve",null),M(this,"lastValidatePromise",null),M(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}}),M(this,"getInternalHooks",function(e){return e===hd?(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}):(R(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),M(this,"useSubscribe",function(e){n.subscribable=e}),M(this,"prevWithoutPreserves",null),M(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=er(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=qn(o,n,Qn(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),M(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new mf;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),M(this,"getInitialValue",function(e){var t=Qn(n.initialValues,e);return e.length?er(t):t}),M(this,"setCallbacks",function(e){n.callbacks=e}),M(this,"setValidateMessages",function(e){n.validateMessages=e}),M(this,"setPreserve",function(e){n.preserve=e}),M(this,"watchList",[]),M(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),M(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),M(this,"timeoutId",null),M(this,"warningUnhooked",function(){}),M(this,"updateStore",function(e){n.store=e}),M(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),M(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new mf;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),M(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=Jd(e);return t.get(n)||{INVALIDATE_NAME_PATH:Jd(e)}})}),M(this,"getFieldsValue",function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===x(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach(function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)}),ef(n.store,l.map(Jd))}),M(this,"getFieldValue",function(e){n.warningUnhooked();var t=Jd(e);return Qn(n.store,t)}),M(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Jd(e[n]),errors:[],warnings:[]}})}),M(this,"getFieldError",function(e){n.warningUnhooked();var t=Jd(e);return n.getFieldsError([t])[0].errors}),M(this,"getFieldWarning",function(e){n.warningUnhooked();var t=Jd(e);return n.getFieldsError([t])[0].warnings}),M(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Jd),l=!1):(o=null,l=i):(o=i.map(Jd),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every(function(e){return s(e)||e.isList()}):c.some(s);var u=new mf;o.forEach(function(e){u.set(e,[])}),c.forEach(function(e){var t=e.getNamePath();o.forEach(function(n){n.every(function(e,n){return t[n]===e})&&u.update(n,function(t){return[].concat(Fe(t),[e])})})});var d=function(e){return e.some(s)},f=u.map(function(e){return e.value});return l?f.every(d):f.some(d)}),M(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),M(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(Jd);return t.some(function(e){var t=e.getNamePath();return tf(r,t)&&e.isFieldValidating()})}),M(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),M(this,"resetWithFieldInitialValue",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new mf,r=n.getFieldEntities(!0);r.forEach(function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}});var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach(function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Fe(Fe(r).map(function(e){return e.entity})))})):o=r,o.forEach(function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))R(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)R(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(qn(n.store,o,Fe(i)[0].value))}}}})}),M(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(er(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Jd);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(qn(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),M(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=st(e,gf),a=Jd(o);r.push(a),"value"in i&&n.updateStore(qn(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(r)}),M(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=D(D({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),M(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Qn(n.store,r)&&n.updateStore(qn(n.store,r,t))}}),M(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),M(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!nf(e.getNamePath(),t)})){var l=n.store;n.updateStore(qn(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),M(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}}),M(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=D(D({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),M(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Fe(r))}),r}),M(this,"updateValue",function(e,t){var r=Jd(e),o=n.store;n.updateStore(qn(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(ef(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Fe(i)))}),M(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=er(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),M(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),M(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new mf;n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=Jd(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})});return function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),M(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new mf;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){var n=t.name;return tf(e,n)});a.length&&r(a,o)}}),M(this,"validateFields",function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Jd):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach(function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||tf(a,t,d)){var r=e.validateRules(D({validateMessages:D(D({},Vd),n.validateMessages)},o));l.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Fe(n)):r.push.apply(r,Fe(n))}),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))})})}):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var m=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})});m.catch(function(e){return e});var g=a.filter(function(e){return s.has(e.join(c))});return n.triggerOnFieldsChange(g),m}),M(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});function vf(e){var t=l.useRef(),n=Qe(l.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new hf(function(){n({})});t.current=r.getForm()}return[t.current]}var bf=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),yf=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=l.useContext(bf),a=l.useRef({});return l.createElement(bf.Provider,{value:D(D({},i),{},{validateMessages:D(D({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=D(D({},a.current),{},M({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=D({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},xf=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],wf=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,m=e.onValuesChange,g=e.onFieldsChange,h=e.onFinish,v=e.onFinishFailed,b=e.clearOnDestroy,w=st(e,xf),C=l.useRef(null),S=l.useContext(bf),$=Qe(vf(i),1)[0],k=$.getInternalHooks(hd),E=k.useSubscribe,O=k.setInitialValues,I=k.setCallbacks,N=k.setValidateMessages,R=k.setPreserve,j=k.destroyForm;l.useImperativeHandle(t,function(){return D(D({},$),{},{nativeElement:C.current})}),l.useEffect(function(){return S.registerForm(n,$),function(){S.unregisterForm(n)}},[S,$,n]),N(D(D({},S.validateMessages),d)),I({onValuesChange:m,onFieldsChange:function(e){if(S.triggerFormChange(n,e),g){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];g.apply(void 0,[e].concat(r))}},onFinish:function(e){S.triggerFormFinish(n,e),h&&h(e)},onFinishFailed:v}),R(a);var M,P=l.useRef(null);O(r,!P.current),P.current||(P.current=!0),l.useEffect(function(){return function(){return j(b)}},[]);var T="function"==typeof c;T?M=c($.getFieldsValue(!0),$):M=c;E(!T);var B=l.useRef();l.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==x(e)||"object"!==x(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Fe(new Set([].concat(n,r))).every(function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})})(B.current||[],o||[])||$.setFields(o||[]),B.current=o},[o,$]);var L=l.useMemo(function(){return D(D({},$),{},{validateTrigger:p})},[$,p]),z=l.createElement(yd.Provider,{value:null},l.createElement(bd.Provider,{value:L},M));return!1===u?z:l.createElement(u,y({},w,{ref:C,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),$.submit()},onReset:function(e){var t;e.preventDefault(),$.resetFields(),null===(t=w.onReset)||void 0===t||t.call(w,e)}}),z)};function Cf(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}function Sf(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=Qe(e.useState(),2),u=s[0],d=s[1],f=e.useMemo(function(){return Cf(u)},[u]),p=e.useRef(f);p.current=f;var m=e.useContext(bd),g=c||m,h=g&&g._init,v=Jd(o),b=e.useRef(v);return b.current=v,e.useEffect(function(){if(h){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(hd).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):Qn(n,b.current)},r=t(function(e,t){var r=n(e,t),o=Cf(r);p.current!==o&&(p.current=o,d(r))}),i=n(e(),e(!0));return u!==i&&d(i),r}},[h]),u}var $f=l.forwardRef(wf);$f.FormProvider=yf,$f.Field=uf,$f.List=df,$f.useForm=vf,$f.useWatch=Sf;const kf=l.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),Ef=l.createContext(null),Of=e=>{const t=Ic(e,["prefixCls"]);return l.createElement(yf,Object.assign({},t))},If=l.createContext({prefixCls:""}),Nf=l.createContext({}),Rf=({children:e,status:t,override:n})=>{const r=l.useContext(Nf),o=l.useMemo(()=>{const e=Object.assign({},r);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return l.createElement(Nf.Provider,{value:o},e)},jf=l.createContext(void 0),Mf=t=>{const{space:n,form:r,children:o}=t;if(null==o)return null;let i=o;return r&&(i=e.createElement(Rf,{override:!0,status:!0},i)),n&&(i=e.createElement(Vc,null,i)),i};var Pf=function(e){if(qe()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1};function Df(e,t){return Array.isArray(e)||void 0===t?Pf(e):function(e,t){if(!Pf(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}const Tf=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=b({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),c=b({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),s=l.useMemo(()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return l.createElement("span",{className:b(t,a,c,n),style:Object.assign(Object.assign({},s),r)})},Bf=new Gn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Lf=e=>({height:e,lineHeight:It(e)}),zf=e=>Object.assign({width:e},Lf(e)),Ff=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Bf,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Hf=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Lf(e)),Af=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},zf(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},zf(o)),[`${t}${t}-sm`]:Object.assign({},zf(i))}},_f=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Hf(t,l)),[`${r}-lg`]:Object.assign({},Hf(o,l)),[`${r}-sm`]:Object.assign({},Hf(i,l))}},Wf=e=>Object.assign({width:e},Lf(e)),Vf=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Wf(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Wf(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Gf=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Uf=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Lf(e)),Xf=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Uf(r,l))},Gf(e,r,n)),{[`${n}-lg`]:Object.assign({},Uf(o,l))}),Gf(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Uf(i,l))}),Gf(e,i,`${n}-sm`))};var Kf=Zo("Skeleton",e=>{const{componentCls:t,calc:n}=e;return(e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:m,titleHeight:g,blockRadius:h,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},zf(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},zf(s)),[`${n}-sm`]:Object.assign({},zf(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Xf(e)),Af(e)),_f(e)),Vf(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},Ff(e))}}})(Io(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});const Qf=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},Yf=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((t,n)=>l.createElement("li",{key:n,style:{width:Qf(n,e)}}));return l.createElement("ul",{className:b(t,n),style:r},i)},qf=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:b(e,t),style:Object.assign({width:n},r)});function Zf(e){return e&&"object"==typeof e?e:{}}const Jf=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:c=!1,title:s=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:m,className:g,style:h}=ao("skeleton"),v=p("skeleton",t),[y,x,w]=Kf(v);if(n||!("loading"in e)){const e=!!c,t=!!s,n=!!u;let a,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Zf(c));a=l.createElement("div",{className:`${v}-header`},l.createElement(Tf,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Zf(s));r=l.createElement(qf,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Zf(u));o=l.createElement(Yf,Object.assign({},n))}p=l.createElement("div",{className:`${v}-content`},r,o)}const C=b(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:d,[`${v}-rtl`]:"rtl"===m,[`${v}-round`]:f},g,r,o,x,w);return y(l.createElement("div",{className:C,style:Object.assign(Object.assign({},h),i)},a,p))}return null!=a?a:null};function ep(){}Jf.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:c}=l.useContext(ro),s=c("skeleton",t),[u,d,f]=Kf(s),p=Ic(e,["prefixCls"]),m=b(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,d,f);return u(l.createElement("div",{className:m},l.createElement(Tf,Object.assign({prefixCls:`${s}-button`,size:a},p))))},Jf.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:c}=l.useContext(ro),s=c("skeleton",t),[u,d,f]=Kf(s),p=Ic(e,["prefixCls","className"]),m=b(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,f);return u(l.createElement("div",{className:m},l.createElement(Tf,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},p))))},Jf.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:c}=l.useContext(ro),s=c("skeleton",t),[u,d,f]=Kf(s),p=Ic(e,["prefixCls"]),m=b(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,d,f);return u(l.createElement("div",{className:m},l.createElement(Tf,Object.assign({prefixCls:`${s}-input`,size:a},p))))},Jf.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=l.useContext(ro),c=a("skeleton",t),[s,u,d]=Kf(c),f=b(c,`${c}-element`,{[`${c}-active`]:i},n,r,u,d);return s(l.createElement("div",{className:f},l.createElement("div",{className:b(`${c}-image`,n),style:o},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))},Jf.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:c}=l.useContext(ro),s=c("skeleton",t),[u,d,f]=Kf(s),p=b(s,`${s}-element`,{[`${s}-active`]:i},d,n,r,f);return u(l.createElement("div",{className:p},l.createElement("div",{className:b(`${s}-image`,n),style:o},a)))};const tp=l.createContext({add:ep,remove:ep});const np=()=>{const{cancelButtonProps:t,cancelTextLocale:n,onCancel:r}=e.useContext(Au);return e.createElement(zu,Object.assign({onClick:r},t),n)},rp=()=>{const{confirmLoading:t,okButtonProps:n,okType:r,okTextLocale:o,onOk:i}=e.useContext(Au);return e.createElement(zu,Object.assign({},Yc(r),{loading:t,onClick:i},n),o)};function op(t,n){return e.createElement("span",{className:`${t}-close-x`},n||e.createElement(Aa,{className:`${t}-close-icon`}))}const ip=t=>{const{okText:n,okType:r="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:c,cancelButtonProps:s,footer:u}=t,[d]=hr("Modal",mr()),f=n||(null==d?void 0:d.okText),p=o||(null==d?void 0:d.cancelText),m=e.useMemo(()=>({confirmLoading:i,okButtonProps:c,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:p,okType:r,onOk:a,onCancel:l}),[i,c,s,f,p,r,a,l]);let g;return"function"==typeof u||void 0===u?(g=e.createElement(e.Fragment,null,e.createElement(np,null),e.createElement(rp,null)),"function"==typeof u&&(g=u(g,{OkBtn:rp,CancelBtn:np})),g=e.createElement(_u,{value:m},g)):g=u,e.createElement(uo,{disabled:!1},g)},ap=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},lp=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${r}${t}-${e}`]={display:"none"},i[`${r}-push-${e}`]={insetInlineStart:"auto"},i[`${r}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${e}`]={marginInlineStart:0},i[`${r}${t}-order-${e}`]={order:0}):(i[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${r}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${r}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${r}${t}-order-${e}`]={order:e});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),cp=Zo("Grid",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"}}}},()=>({})),sp=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),up=Zo("Grid",e=>{const t=Io(e,{gridColumns:24}),n=sp(t);return delete n.xs,[ap(t),lp(t,""),lp(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${It(t)})`]:Object.assign({},lp(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}));function dp(e){return{position:e,inset:0}}const fp=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},dp("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},dp("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Cs(e)}]},pp=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${It(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Xo(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${It(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:It(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Qo(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${It(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},mp=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},gp=e=>{const{componentCls:t}=e,n=sp(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(e=>({[`@media (min-width: ${It(r[e])})`]:{width:`var(${o}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Fe(Object.keys(n).map((e,t)=>{const r=Object.keys(n)[t-1];return r?{[`${o}${e}-width`]:`var(${o}${r}-width)`}:null})),[{width:`var(${o}xs-width)`}],Fe(i))}}},hp=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Io(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},vp=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${It(e.paddingMD)} ${It(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${It(e.padding)} ${It(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${It(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${It(e.paddingXS)} ${It(e.padding)}`:0,footerBorderTop:e.wireframe?`${It(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${It(2*e.padding)} ${It(2*e.padding)} ${It(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var bp=Zo("Modal",e=>{const t=hp(e);return[pp(t),mp(t),fp(t),eu(t,"zoom"),gp(t)]},vp,{unitless:{titleLineHeight:!0}}),yp=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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};let xp;const wp=e=>{xp={x:e.pageX,y:e.pageY},setTimeout(()=>{xp=null},100)};qe()&&window.document.documentElement&&document.documentElement.addEventListener("click",wp,!0);const Cp=t=>{const{prefixCls:n,className:r,rootClassName:o,open:i,wrapClassName:a,centered:c,getContainer:s,focusTriggerAfterClose:u=!0,style:d,visible:f,width:p=520,footer:m,classNames:g,styles:h,children:v,loading:y,confirmLoading:x,zIndex:w,mousePosition:C,onOk:S,onCancel:$,destroyOnHidden:k,destroyOnClose:E,panelRef:O=null,modalRender:I}=t,N=yp(t,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:R,getPrefixCls:j,direction:M,modal:P}=l.useContext(ro),D=e=>{x||null==$||$(e)},T=j("modal",n),B=j(),L=cl(T),[z,F,H]=bp(T,L),A=b(a,{[`${T}-centered`]:null!=c?c:null==P?void 0:P.centered,[`${T}-wrap-rtl`]:"rtl"===M}),_=null===m||y?null:l.createElement(ip,Object.assign({},t,{onOk:e=>{null==S||S(e)},onCancel:D})),[W,V,G,X]=((t,n,r=El)=>{const o=kl(t),i=kl(n),[a]=hr("global",ur.global),l="boolean"!=typeof o&&!!(null==o?void 0:o.disabled),c=e.useMemo(()=>Object.assign({closeIcon:e.createElement(Aa,null)},r),[r]),s=e.useMemo(()=>!1!==o&&(o?Sl(c,i,o):!1!==i&&(i?Sl(c,i):!!c.closable&&c)),[o,i,c]);return e.useMemo(()=>{var t,n;if(!1===s)return[!1,null,l,{}];const{closeIconRender:r}=c,{closeIcon:o}=s;let i=o;const u=Ya(s,!0);return null!=i&&(r&&(i=r(o)),i=e.isValidElement(i)?e.cloneElement(i,Object.assign(Object.assign(Object.assign({},i.props),{"aria-label":null!==(n=null===(t=i.props)||void 0===t?void 0:t["aria-label"])&&void 0!==n?n:a.close}),u)):e.createElement("span",Object.assign({"aria-label":a.close},u),i)),[!0,i,l,u]},[l,a.close,s,c])})($l(t),$l(P),{closable:!0,closeIcon:l.createElement(Aa,{className:`${T}-close-icon`}),closeIconRender:e=>op(T,e)}),K=I?e=>l.createElement("div",{className:`${T}-render`},I(e)):void 0,Q=function(e){const t=l.useContext(tp),n=l.useRef(null);return wo(r=>{if(r){const o=e?r.querySelector(e):r;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}(`.${T}-${I?"render":"content"}`),Y=U(O,Q),[q,Z]=zl("Modal",w),[J,ee]=l.useMemo(()=>p&&"object"==typeof p?[void 0,p]:[p,void 0],[p]),te=l.useMemo(()=>{const e={};return ee&&Object.keys(ee).forEach(t=>{const n=ee[t];void 0!==n&&(e[`--${T}-${t}-width`]="number"==typeof n?`${n}px`:n)}),e},[T,ee]);return z(l.createElement(Mf,{form:!0,space:!0},l.createElement(Dl.Provider,{value:Z},l.createElement(gd,Object.assign({width:J},N,{zIndex:q,getContainer:void 0===s?R:s,prefixCls:T,rootClassName:b(F,o,H,L),footer:_,visible:null!=i?i:f,mousePosition:null!=C?C:xp,onClose:D,closable:W?Object.assign({disabled:G,closeIcon:V},X):W,closeIcon:V,focusTriggerAfterClose:u,transitionName:Oc(B,"zoom",t.transitionName),maskTransitionName:Oc(B,"fade",t.maskTransitionName),className:b(F,r,null==P?void 0:P.className),style:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),d),te),classNames:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.classNames),g),{wrapper:b(A,null==g?void 0:g.wrapper)}),styles:Object.assign(Object.assign({},null==P?void 0:P.styles),h),panelRef:Y,destroyOnClose:null!=k?k:E,modalRender:K}),y?l.createElement(Jf,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):v))))};var Sp=ei(["Modal","confirm"],e=>(e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:s},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${It(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${It(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}})(hp(e)),vp,{order:-1e3}),$p=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 kp=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:c,footer:s,locale:u}=e,d=$p(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&null!==n)switch(a){case"info":f=l.createElement(Xa,null);break;case"success":f=l.createElement(Ta,null);break;case"error":f=l.createElement(za,null);break;default:f=l.createElement(Va,null)}const p=null!=c?c:"confirm"===a,m=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[g]=hr("Modal"),h=u||g,v=r||(p?null==h?void 0:h.okText:null==h?void 0:h.justOkText),y=o||(null==h?void 0:h.cancelText),x=l.useMemo(()=>Object.assign({autoFocusButton:m,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:p},d),[m,y,v,p,d]),w=l.createElement(l.Fragment,null,l.createElement(Wu,null),l.createElement(Vu,null)),C=void 0!==e.title&&null!==e.title,S=`${i}-body`;return l.createElement("div",{className:`${i}-body-wrapper`},l.createElement("div",{className:b(S,{[`${S}-has-title`]:C})},f,l.createElement("div",{className:`${i}-paragraph`},C&&l.createElement("span",{className:`${i}-title`},e.title),l.createElement("div",{className:`${i}-content`},e.content))),void 0===s||"function"==typeof s?l.createElement(_u,{value:x},l.createElement("div",{className:`${i}-btns`},"function"==typeof s?s(w,{OkBtn:Vu,CancelBtn:Wu}):w)):s,l.createElement(Sp,{prefixCls:t}))},Ep=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:c,bodyStyle:s,closable:u=!1,onConfirm:d,styles:f,title:p}=e,m=`${i}-confirm`,g=e.width||416,h=e.style||{},v=void 0===e.mask||e.mask,y=void 0!==e.maskClosable&&e.maskClosable,x=b(m,`${m}-${e.type}`,{[`${m}-rtl`]:"rtl"===o},e.className),[,w]=Go(),C=l.useMemo(()=>void 0!==n?n:w.zIndexPopupBase+1e3,[n,w]);return l.createElement(Cp,Object.assign({},e,{className:x,wrapClassName:b({[`${m}-centered`]:!!e.centered},a),onCancel:()=>{null==t||t({triggerCancel:!0}),null==d||d(!1)},title:p,footer:null,transitionName:Oc(c||"","zoom",e.transitionName),maskTransitionName:Oc(c||"","fade",e.maskTransitionName),mask:v,maskClosable:y,style:h,styles:Object.assign({body:s,mask:r},f),width:g,zIndex:C,closable:u}),l.createElement(kp,Object.assign({},e,{confirmPrefixCls:m})))},Op=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return l.createElement(da,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},l.createElement(Ep,Object.assign({},e)))},Ip=[];let Np="";function Rp(){return Np}const jp=t=>{var n,r;const{prefixCls:o,getContainer:i,direction:a}=t,l=mr(),c=e.useContext(ro),s=Rp()||c.getPrefixCls(),u=o||`${s}-modal`;let d=i;return!1===d&&(d=void 0),e.createElement(Op,Object.assign({},t,{rootPrefixCls:s,prefixCls:u,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=a?a:c.direction,locale:null!==(r=null===(n=c.locale)||void 0===n?void 0:n.Modal)&&void 0!==r?r:l,getContainer:d}))};function Mp(t){const n=sa(),r=document.createDocumentFragment();let o,i,a=Object.assign(Object.assign({},t),{close:s,open:!0});function l(...e){var n;var r;e.some(e=>null==e?void 0:e.triggerCancel)&&(null===(n=t.onCancel)||void 0===n||(r=n).call.apply(r,[t,()=>{}].concat(Fe(e.slice(1)))));for(let e=0;e<Ip.length;e++){if(Ip[e]===s){Ip.splice(e,1);break}}i()}const c=t=>{clearTimeout(o),o=setTimeout(()=>{const o=n.getPrefixCls(void 0,Rp()),a=n.getIconPrefixCls(),l=n.getTheme(),c=e.createElement(jp,Object.assign({},t)),s=wc();i=s(e.createElement(da,{prefixCls:o,iconPrefixCls:a,theme:l},"function"==typeof n.holderRender?n.holderRender(c):c),r)})};function s(...e){a=Object.assign(Object.assign({},a),{open:!1,afterClose:()=>{"function"==typeof t.afterClose&&t.afterClose(),l.apply(this,e)}}),a.visible&&delete a.visible,c(a)}return c(a),Ip.push(s),{destroy:s,update:function(e){a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e),c(a)}}}function Pp(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Dp(e){return Object.assign(Object.assign({},e),{type:"info"})}function Tp(e){return Object.assign(Object.assign({},e),{type:"success"})}function Bp(e){return Object.assign(Object.assign({},e),{type:"error"})}function Lp(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var zp=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Fp=(e,t)=>{var n,{afterClose:r,config:o}=e,i=zp(e,["afterClose","config"]);const[a,c]=l.useState(!0),[s,u]=l.useState(o),{direction:d,getPrefixCls:f}=l.useContext(ro),p=f("modal"),m=f(),g=(...e)=>{var t;c(!1);var n;e.some(e=>null==e?void 0:e.triggerCancel)&&(null===(t=s.onCancel)||void 0===t||(n=t).call.apply(n,[s,()=>{}].concat(Fe(e.slice(1)))))};l.useImperativeHandle(t,()=>({destroy:g,update:e=>{u(t=>{const n="function"==typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));const h=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[v]=hr("Modal",ur.Modal);return l.createElement(Op,Object.assign({prefixCls:p,rootPrefixCls:m},s,{close:g,open:a,afterClose:()=>{var e;r(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(h?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:s.direction||d,cancelText:s.cancelText||(null==v?void 0:v.cancelText)},i))};var Hp=l.forwardRef(Fp);let Ap=0;const _p=l.memo(l.forwardRef((e,t)=>{const[n,r]=(()=>{const[e,t]=l.useState([]);return[e,l.useCallback(e=>(t(t=>[].concat(Fe(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));const Wp=e.createContext({});function Vp(e){return t=>l.createElement(da,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const Gp=(e,t,n,r,o)=>Vp(i=>{const{prefixCls:a,style:c}=i,s=l.useRef(null),[u,d]=l.useState(0),[f,p]=l.useState(0),[m,g]=$o(!1,{value:i.open}),{getPrefixCls:h}=l.useContext(ro),v=h(r||"select",a);l.useEffect(()=>{if(g(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;d(t.offsetHeight+8),p(t.offsetWidth)}),t=setInterval(()=>{var n;const r=o?`.${o(v)}`:`.${v}-dropdown`,i=null===(n=s.current)||void 0===n?void 0:n.querySelector(r);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[v]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},c),{margin:0}),open:m,visible:m,getPopupContainer:()=>s.current});n&&(b=n(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:u,position:"relative",minWidth:f};return l.createElement("div",{ref:s,style:y},l.createElement(e,Object.assign({},b)))});var Up=function(){if("undefined"==typeof navigator||"undefined"==typeof window)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(null==e?void 0:e.substr(0,4))},Xp=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,c="function"==typeof n?n(r):n;return l.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==c?c:l.createElement("span",{className:b(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},o))},Kp=l.createContext(null);function Qp(){return l.useContext(Kp)}function Yp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);return l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var qp=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Zp=void 0;function Jp(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,m=e.display,g=e.order,h=e.component,v=void 0===h?"div":h,x=st(e,qp),w=a&&!m;function C(e){s(u,e)}l.useEffect(function(){return function(){C(null)}},[]);var S,$=i&&o!==Zp?i(o,{index:g}):p;r||(S={opacity:w?0:1,height:w?0:Zp,overflowY:w?"hidden":Zp,order:a?g:Zp,pointerEvents:w?"none":Zp,position:w?"absolute":Zp});var k={};w&&(k["aria-hidden"]=!0);var E=l.createElement(v,y({className:b(!r&&n,d),style:D(D({},S),f)},k,x,{ref:t}),$);return a&&(E=l.createElement(Te,{onResize:function(e){C(e.offsetWidth)},disabled:c},E)),E}var em=l.forwardRef(Jp);function tm(){var e=l.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Ge(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){r.unstable_batchedUpdates(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function nm(e,t){var n=Qe(l.useState(t),2),r=n[0],o=n[1];return[r,wo(function(t){e(function(){o(t)})})]}em.displayName="Item";var rm=e.createContext(null),om=["component"],im=["className"],am=["className"],lm=function(e,t){var n=l.useContext(rm);if(!n){var r=e.component,o=void 0===r?"div":r,i=st(e,om);return l.createElement(o,y({},i,{ref:t}))}var a=n.className,c=st(n,im),s=e.className,u=st(e,am);return l.createElement(rm.Provider,{value:null},l.createElement(em,y({ref:t,className:b(a,s)},c,u)))},cm=l.forwardRef(lm);cm.displayName="RawItem";var sm=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],um="responsive",dm="invalidate";function fm(e){return"+ ".concat(e.length," ...")}function pm(t,n){var r=t.prefixCls,o=void 0===r?"rc-overflow":r,i=t.data,a=void 0===i?[]:i,c=t.renderItem,s=t.renderRawItem,u=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,p=t.ssr,m=t.style,g=t.className,h=t.maxCount,v=t.renderRest,x=t.renderRawRest,w=t.prefix,C=t.suffix,S=t.component,$=void 0===S?"div":S,k=t.itemComponent,E=t.onVisibleChange,O=st(t,sm),I="full"===p,N=tm(),R=Qe(nm(N,null),2),j=R[0],M=R[1],P=j||0,T=Qe(nm(N,new Map),2),B=T[0],L=T[1],z=Qe(nm(N,0),2),F=z[0],H=z[1],A=Qe(nm(N,0),2),_=A[0],W=A[1],V=Qe(nm(N,0),2),G=V[0],U=V[1],X=Qe(nm(N,0),2),K=X[0],Q=X[1],Y=Qe(e.useState(null),2),q=Y[0],Z=Y[1],J=Qe(e.useState(null),2),ee=J[0],te=J[1],ne=l.useMemo(function(){return null===ee&&I?Number.MAX_SAFE_INTEGER:ee||0},[ee,j]),re=Qe(e.useState(!1),2),oe=re[0],ie=re[1],ae="".concat(o,"-item"),le=Math.max(F,_),ce=h===um,se=a.length&&ce,ue=h===dm,de=se||"number"==typeof h&&a.length>h,fe=e.useMemo(function(){var e=a;return se?e=null===j&&I?a:a.slice(0,Math.min(a.length,P/f)):"number"==typeof h&&(e=a.slice(0,h)),e},[a,f,j,h,se]),pe=e.useMemo(function(){return se?a.slice(ne+1):a.slice(fe.length)},[a,fe,se,ne]),me=e.useCallback(function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t},[u]),ge=e.useCallback(c||function(e){return e},[c]);function he(e,t,n){(ee!==e||void 0!==t&&t!==q)&&(te(e),n||(ie(e<a.length-1),null==E||E(e)),void 0!==t&&Z(t))}function ve(e,t){L(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function be(e){return B.get(me(fe[e],e))}Dt(function(){if(P&&"number"==typeof le&&fe){var e=G+K,t=fe.length,n=t-1;if(!t)return void he(0,null);for(var r=0;r<t;r+=1){var o=be(r);if(I&&(o=o||0),void 0===o){he(r-1,void 0,!0);break}if(e+=o,0===n&&e<=P||r===n-1&&e+be(n)<=P){he(n,null);break}if(e+le>P){he(r-1,e-o-K+_);break}}C&&be(0)+K>P&&Z(null)}},[P,B,_,G,K,me,fe]);var ye=oe&&!!pe.length,xe={};null!==q&&se&&(xe={position:"absolute",left:q,top:0});var we={prefixCls:ae,responsive:se,component:k,invalidate:ue},Ce=s?function(e,t){var n=me(e,t);return l.createElement(rm.Provider,{key:n,value:D(D({},we),{},{order:t,item:e,itemKey:n,registerSize:ve,display:t<=ne})},s(e,t))}:function(e,t){var n=me(e,t);return l.createElement(em,y({},we,{order:t,key:n,item:e,renderItem:ge,itemKey:n,registerSize:ve,display:t<=ne}))},Se={order:ye?ne:Number.MAX_SAFE_INTEGER,className:"".concat(ae,"-rest"),registerSize:function(e,t){W(t),H(_)},display:ye},$e=v||fm,ke=x?l.createElement(rm.Provider,{value:D(D({},we),Se)},x(pe)):l.createElement(em,y({},we,Se),"function"==typeof $e?$e(pe):$e),Ee=l.createElement($,y({className:b(!ue&&o,g),style:m,ref:n},O),w&&l.createElement(em,y({},we,{responsive:ce,responsiveDisabled:!se,order:-1,className:"".concat(ae,"-prefix"),registerSize:function(e,t){U(t)},display:!0}),w),fe.map(Ce),de?ke:null,C&&l.createElement(em,y({},we,{responsive:ce,responsiveDisabled:!se,order:ne,className:"".concat(ae,"-suffix"),registerSize:function(e,t){Q(t)},display:!0,style:xe}),C));return ce?l.createElement(Te,{onResize:function(e,t){M(t.clientWidth)},disabled:!se},Ee):Ee}var mm=l.forwardRef(pm);mm.displayName="Overflow",mm.Item=cm,mm.RESPONSIVE=um,mm.INVALIDATE=dm;var gm=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],hm=function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,i=e.autoFocus,a=e.autoComplete,c=e.editable,s=e.activeDescendantId,u=e.value,d=e.open,f=e.attrs,p=st(e,gm),m=o||l.createElement("input",null),g=m,h=g.ref,v=g.props;return m.props,m=l.cloneElement(m,D(D(D({type:"search"},function(e,t){var n=D(D({},e),t);return Object.keys(t).forEach(function(r){var o=t[r];"function"==typeof o&&(n[r]=function(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o.apply(void 0,i),null===(t=e[r])||void 0===t?void 0:t.call.apply(t,[e].concat(i))})}),n}(p,v)),{},{id:r,ref:U(t,h),autoComplete:a||"off",autoFocus:i,className:b("".concat(n,"-selection-search-input"),null==v?void 0:v.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:c?u:"",readOnly:!c,unselectable:c?null:"on",style:D(D({},v.style),{},{opacity:c?null:0})})),m},vm=l.forwardRef(hm);function bm(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var ym="undefined"!=typeof window&&window.document&&window.document.documentElement;function xm(e){return["string","number"].includes(x(e))}function wm(e){var t=void 0;return e&&(xm(e.title)?t=e.title.toString():xm(e.label)&&(t=e.label.toString())),t}function Cm(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Sm=function(e){e.preventDefault(),e.stopPropagation()},$m=function(t){var n,r,o=t.id,i=t.prefixCls,a=t.values,c=t.open,s=t.searchValue,u=t.autoClearSearchValue,d=t.inputRef,f=t.placeholder,p=t.disabled,m=t.mode,g=t.showSearch,h=t.autoFocus,v=t.autoComplete,y=t.activeDescendantId,x=t.tabIndex,w=t.removeIcon,C=t.maxTagCount,S=t.maxTagTextLength,$=t.maxTagPlaceholder,k=void 0===$?function(e){return"+ ".concat(e.length," ...")}:$,E=t.tagRender,O=t.onToggleOpen,I=t.onRemove,N=t.onInputChange,R=t.onInputPaste,j=t.onInputKeyDown,P=t.onInputMouseDown,D=t.onInputCompositionStart,T=t.onInputCompositionEnd,B=t.onInputBlur,L=l.useRef(null),z=Qe(e.useState(0),2),F=z[0],H=z[1],A=Qe(e.useState(!1),2),_=A[0],W=A[1],V="".concat(i,"-selection"),G=c||"multiple"===m&&!1===u||"tags"===m?s:"",U="tags"===m||"multiple"===m&&!1===u||g&&(c||_);n=function(){H(L.current.scrollWidth)},r=[G],ym?l.useLayoutEffect(n,r):l.useEffect(n,r);var X=function(e,t,n,r,o){return l.createElement("span",{title:wm(e),className:b("".concat(V,"-item"),M({},"".concat(V,"-item-disabled"),n))},l.createElement("span",{className:"".concat(V,"-item-content")},t),r&&l.createElement(Xp,{className:"".concat(V,"-item-remove"),onMouseDown:Sm,onClick:o,customizeIcon:w},"×"))},K=function(e,t,n,r,o,i){return l.createElement("span",{onMouseDown:function(e){Sm(e),O(!c)}},E({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!i}))},Q=l.createElement("div",{className:"".concat(V,"-search"),style:{width:F},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},l.createElement(vm,{ref:d,open:c,prefixCls:i,id:o,inputElement:null,disabled:p,autoFocus:h,autoComplete:v,editable:U,activeDescendantId:y,value:G,onKeyDown:j,onMouseDown:P,onChange:N,onPaste:R,onCompositionStart:D,onCompositionEnd:T,onBlur:B,tabIndex:x,attrs:Ya(t,!0)}),l.createElement("span",{ref:L,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},G," ")),Y=l.createElement(mm,{prefixCls:"".concat(V,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!p&&!t,i=n;if("number"==typeof S&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>S&&(i="".concat(a.slice(0,S),"..."))}var l=function(t){t&&t.stopPropagation(),I(e)};return"function"==typeof E?K(r,i,t,o,l):X(e,i,t,o,l)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof k?k(e):k;return"function"==typeof E?K(void 0,t,!1,!1,void 0,!0):X({title:t},t,!1)},suffix:Q,itemKey:Cm,maxCount:C});return l.createElement("span",{className:"".concat(V,"-wrap")},Y,!a.length&&!G&&l.createElement("span",{className:"".concat(V,"-placeholder")},f))},km=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,g=e.showSearch,h=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,C=e.onInputPaste,S=e.onInputCompositionStart,$=e.onInputCompositionEnd,k=e.onInputBlur,E=e.title,O=Qe(l.useState(!1),2),I=O[0],N=O[1],R="combobox"===u,j=R||g,M=f[0],P=h||"";R&&v&&!I&&(P=v),l.useEffect(function(){R&&N(!1)},[R,v]);var D=!("combobox"!==u&&!d&&!g)&&!!P,T=void 0===E?wm(M):E,B=l.useMemo(function(){return M?null:l.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:D?{visibility:"hidden"}:void 0},p)},[M,D,p,n]);return l.createElement("span",{className:"".concat(n,"-selection-wrap")},l.createElement("span",{className:"".concat(n,"-selection-search")},l.createElement(vm,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:i,autoFocus:a,autoComplete:c,editable:j,activeDescendantId:s,value:P,onKeyDown:y,onMouseDown:x,onChange:function(e){N(!0),w(e)},onPaste:C,onCompositionStart:S,onCompositionEnd:$,onBlur:k,tabIndex:m,attrs:Ya(e,!0),maxLength:R?b:void 0})),!R&&M?l.createElement("span",{className:"".concat(n,"-selection-item"),title:T,style:D?{visibility:"hidden"}:void 0},M.label):null,B)},Em=function(t,n){var r=e.useRef(null),o=e.useRef(!1),i=t.prefixCls,a=t.open,c=t.mode,s=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,p=t.autoClearSearchValue,m=t.onSearch,g=t.onSearchSubmit,h=t.onToggleOpen,v=t.onInputKeyDown,b=t.onInputBlur,x=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}});var w=Qe(Yp(0),2),C=w[0],S=w[1],$=e.useRef(null),k=function(e){!1!==m(e,!0,o.current)&&h(!0)},E={inputRef:r,onInputKeyDown:function(e){var t,n=e.which,i=r.current instanceof HTMLTextAreaElement;(i||!a||n!==sl.UP&&n!==sl.DOWN||e.preventDefault(),v&&v(e),n!==sl.ENTER||"tags"!==c||o.current||a||null==g||g(e.target.value),i&&!a&&~[sl.UP,sl.DOWN,sl.LEFT,sl.RIGHT].indexOf(n))||(t=n)&&![sl.ESC,sl.SHIFT,sl.BACKSPACE,sl.TAB,sl.WIN_KEY,sl.ALT,sl.META,sl.WIN_KEY_RIGHT,sl.CTRL,sl.SEMICOLON,sl.EQUALS,sl.CAPS_LOCK,sl.CONTEXT_MENU,sl.F1,sl.F2,sl.F3,sl.F4,sl.F5,sl.F6,sl.F7,sl.F8,sl.F9,sl.F10,sl.F11,sl.F12].includes(t)&&h(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var t=e.target.value;if(u&&$.current&&/[\r\n]/.test($.current)){var n=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,$.current)}$.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");$.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==c&&k(e.target.value)},onInputBlur:b},O="multiple"===c||"tags"===c?l.createElement($m,y({},t,E)):l.createElement(km,y({},t,E));return l.createElement("div",{ref:x,className:"".concat(i,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){r.current.focus()}):r.current.focus())},onMouseDown:function(e){var t=C();e.target===r.current||t||"combobox"===c&&d||e.preventDefault(),("combobox"===c||s&&t)&&a||(a&&!1!==p&&m("",!0,!1),h())}},f&&l.createElement("div",{className:"".concat(i,"-prefix")},f),O)},Om=l.forwardRef(Em);function Im(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,c=i.content,s=o.x,u=void 0===s?0:s,d=o.y,f=void 0===d?0:d,p=l.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],h=n.points[1],v=g[0],y=g[1],x=h[0],w=h[1];v!==x&&["t","b"].includes(v)?"t"===v?m.top=0:m.bottom=0:m.top=f,y!==w&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=u}return l.createElement("div",{ref:p,className:b("".concat(t,"-arrow"),a),style:m},c)}function Nm(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?l.createElement(Ai,y({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return l.createElement("div",{style:{zIndex:r},className:b("".concat(t,"-mask"),n)})}):null}var Rm=l.memo(function(e){return e.children},function(e,t){return t.cache}),jm=l.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,m=e.arrow,g=e.arrowPos,h=e.align,v=e.motion,x=e.maskMotion,w=e.forceRender,C=e.getPopupContainer,S=e.autoDestroy,$=e.portal,k=e.zIndex,E=e.onMouseEnter,O=e.onMouseLeave,I=e.onPointerEnter,N=e.onPointerDownCapture,R=e.ready,j=e.offsetX,M=e.offsetY,P=e.offsetR,T=e.offsetB,B=e.onAlign,L=e.onPrepare,z=e.stretch,F=e.targetWidth,H=e.targetHeight,A="function"==typeof n?n():n,_=s||u,W=(null==C?void 0:C.length)>0,V=Qe(l.useState(!C||!W),2),G=V[0],X=V[1];if(Dt(function(){!G&&W&&a&&X(!0)},[G,W,a]),!G)return null;var K="auto",Q={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(R||!s){var Y,q=h.points,Z=h.dynamicInset||(null===(Y=h._experimental)||void 0===Y?void 0:Y.dynamicInset),J=Z&&"r"===q[0][1],ee=Z&&"b"===q[0][0];J?(Q.right=P,Q.left=K):(Q.left=j,Q.right=K),ee?(Q.bottom=T,Q.top=K):(Q.top=M,Q.bottom=K)}var te={};return z&&(z.includes("height")&&H?te.height=H:z.includes("minHeight")&&H&&(te.minHeight=H),z.includes("width")&&F?te.width=F:z.includes("minWidth")&&F&&(te.minWidth=F)),s||(te.pointerEvents="none"),l.createElement($,{open:w||_,getContainer:C&&function(){return C(a)},autoDestroy:S},l.createElement(Nm,{prefixCls:o,open:s,zIndex:k,mask:p,motion:x}),l.createElement(Te,{onResize:B,disabled:!s},function(e){return l.createElement(Ai,y({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:L,onEnterPrepare:L,visible:s,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),c(e)}}),function(n,a){var c=n.className,u=n.style,p=b(o,c,r);return l.createElement("div",{ref:U(e,t,a),className:p,style:D(D(D(D({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},Q),te),u),{},{boxSizing:"border-box",zIndex:k},i),onMouseEnter:E,onMouseLeave:O,onPointerEnter:I,onClick:f,onPointerDownCapture:N},m&&l.createElement(Im,{prefixCls:o,arrow:m,arrowPos:g,align:h}),l.createElement(Rm,{cache:!s&&!d},A))})}))}),Mm=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=K(n),i=l.useCallback(function(e){G(t,r?r(e):e)},[r]),a=X(i,Y(n));return o?l.cloneElement(n,{ref:a}):n}),Pm=l.createContext(null);function Dm(e){return e?Array.isArray(e)?e:[e]:[]}function Tm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Bm(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Lm(e){return e.ownerDocument.defaultView}function zm(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Lm(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function Fm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Hm(e){return Fm(parseFloat(e),0)}function Am(e,t){var n=D({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Lm(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=Hm(i),g=Hm(a),h=Hm(l),v=Hm(c),b=Fm(Math.round(s.width/f*1e3)/1e3),y=Fm(Math.round(s.height/u*1e3)/1e3),x=(f-p-h-v)*b,w=(u-d-m-g)*y,C=m*y,S=g*y,$=h*b,k=v*b,E=0,O=0;if("clip"===r){var I=Hm(o);E=I*b,O=I*y}var N=s.x+$-E,R=s.y+C-O,j=N+s.width+2*E-$-k-x,M=R+s.height+2*O-C-S-w;n.left=Math.max(n.left,N),n.top=Math.max(n.top,R),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,M)}}),n}function _m(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Wm(e,t){var n=Qe(t||[],2),r=n[0],o=n[1];return[_m(e.width,r),_m(e.height,o)]}function Vm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Gm(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Um(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var Xm=["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"];var Km=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:td,t=l.forwardRef(function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,c=void 0===a?"hover":a,s=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,p=t.onPopupVisibleChange,m=t.afterPopupVisibleChange,g=t.mouseEnterDelay,h=t.mouseLeaveDelay,v=void 0===h?.1:h,y=t.focusDelay,x=t.blurDelay,w=t.mask,C=t.maskClosable,S=void 0===C||C,$=t.getPopupContainer,k=t.forceRender,E=t.autoDestroy,O=t.destroyPopupOnHide,I=t.popup,N=t.popupClassName,R=t.popupStyle,j=t.popupPlacement,M=t.builtinPlacements,P=void 0===M?{}:M,B=t.popupAlign,L=t.zIndex,z=t.stretch,F=t.getPopupClassNameFromAlign,H=t.fresh,A=t.alignPoint,_=t.onPopupClick,W=t.onPopupAlign,V=t.arrow,G=t.popupMotion,U=t.maskMotion,X=t.popupTransitionName,K=t.popupAnimation,Q=t.maskTransitionName,Y=t.maskAnimation,q=t.className,Z=t.getTriggerDOMNode,J=st(t,Xm),ee=E||O||!1,te=Qe(l.useState(!1),2),ne=te[0],re=te[1];Dt(function(){re(Up())},[]);var oe=l.useRef({}),ie=l.useContext(Pm),ae=l.useMemo(function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null==ie||ie.registerSubPopup(e,t)}}},[ie]),le=id(),ce=Qe(l.useState(null),2),se=ce[0],ue=ce[1],de=l.useRef(null),fe=wo(function(e){de.current=e,T(e)&&se!==e&&ue(e),null==ie||ie.registerSubPopup(le,e)}),pe=Qe(l.useState(null),2),me=pe[0],ge=pe[1],he=l.useRef(null),ve=wo(function(e){T(e)&&me!==e&&(ge(e),he.current=e)}),be=l.Children.only(i),ye=(null==be?void 0:be.props)||{},xe={},we=wo(function(e){var t,n,r=me;return(null==r?void 0:r.contains(e))||(null===(t=Ca(r))||void 0===t?void 0:t.host)===e||e===r||(null==se?void 0:se.contains(e))||(null===(n=Ca(se))||void 0===n?void 0:n.host)===e||e===se||Object.values(oe.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),Ce=Bm(o,G,K,X),Se=Bm(o,U,Y,Q),$e=Qe(l.useState(f||!1),2),ke=$e[0],Ee=$e[1],Oe=null!=d?d:ke,Ie=wo(function(e){void 0===d&&Ee(e)});Dt(function(){Ee(d||!1)},[d]);var Ne=l.useRef(Oe);Ne.current=Oe;var Re=l.useRef([]);Re.current=[];var je=wo(function(e){var t;Ie(e),(null!==(t=Re.current[Re.current.length-1])&&void 0!==t?t:Oe)!==e&&(Re.current.push(e),null==p||p(e))}),Me=l.useRef(),Pe=function(){clearTimeout(Me.current)},De=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Pe(),0===t?je(e):Me.current=setTimeout(function(){je(e)},1e3*t)};l.useEffect(function(){return Pe},[]);var Be=Qe(l.useState(!1),2),Le=Be[0],ze=Be[1];Dt(function(e){e&&!Oe||ze(!0)},[Oe]);var He=Qe(l.useState(null),2),Ae=He[0],_e=He[1],We=Qe(l.useState(null),2),Ve=We[0],Ge=We[1],Ue=function(e){Ge([e.clientX,e.clientY])},Xe=function(e,t,n,r,o,i,a){var c=Qe(l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),s=c[0],u=c[1],d=l.useRef(0),f=l.useMemo(function(){return t?zm(t):[]},[t]),p=l.useRef({});e||(p.current={});var m=wo(function(){if(t&&n&&e){var l,c,s,d,m,g=t,h=g.ownerDocument,v=Lm(g),b=v.getComputedStyle(g).position,y=g.style.left,x=g.style.top,w=g.style.right,C=g.style.bottom,S=g.style.overflow,$=D(D({},o[r]),i),k=h.createElement("div");if(null===(l=g.parentElement)||void 0===l||l.appendChild(k),k.style.left="".concat(g.offsetLeft,"px"),k.style.top="".concat(g.offsetTop,"px"),k.style.position=b,k.style.height="".concat(g.offsetHeight,"px"),k.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var E,O,I=n.getBoundingClientRect();I.x=null!==(E=I.x)&&void 0!==E?E:I.left,I.y=null!==(O=I.y)&&void 0!==O?O:I.top,m={x:I.x,y:I.y,width:I.width,height:I.height}}var N=g.getBoundingClientRect(),R=v.getComputedStyle(g),j=R.height,M=R.width;N.x=null!==(c=N.x)&&void 0!==c?c:N.left,N.y=null!==(s=N.y)&&void 0!==s?s:N.top;var P=h.documentElement,B=P.clientWidth,L=P.clientHeight,z=P.scrollWidth,F=P.scrollHeight,H=P.scrollTop,A=P.scrollLeft,_=N.height,W=N.width,V=m.height,G=m.width,U={left:0,top:0,right:B,bottom:L},X={left:-A,top:-H,right:z-A,bottom:F-H},K=$.htmlRegion,Q="visible",Y="visibleFirst";"scroll"!==K&&K!==Y&&(K=Q);var q=K===Y,Z=Am(X,f),J=Am(U,f),ee=K===Q?J:Z,te=q?J:ee;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var ne=g.getBoundingClientRect();g.style.left=y,g.style.top=x,g.style.right=w,g.style.bottom=C,g.style.overflow=S,null===(d=g.parentElement)||void 0===d||d.removeChild(k);var re=Fm(Math.round(W/parseFloat(M)*1e3)/1e3),oe=Fm(Math.round(_/parseFloat(j)*1e3)/1e3);if(0===re||0===oe||T(n)&&!Nc(n))return;var ie=$.offset,ae=$.targetOffset,le=Qe(Wm(N,ie),2),ce=le[0],se=le[1],ue=Qe(Wm(m,ae),2),de=ue[0],fe=ue[1];m.x-=de,m.y-=fe;var pe=Qe($.points||[],2),me=pe[0],ge=Vm(pe[1]),he=Vm(me),ve=Gm(m,ge),be=Gm(N,he),ye=D({},$),xe=ve.x-be.x+ce,we=ve.y-be.y+se;function gt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ee,r=N.x+e,o=N.y+t,i=r+W,a=o+_,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var Ce,Se,$e,ke,Ee=gt(xe,we),Oe=gt(xe,we,J),Ie=Gm(m,["t","l"]),Ne=Gm(N,["t","l"]),Re=Gm(m,["b","r"]),je=Gm(N,["b","r"]),Me=$.overflow||{},Pe=Me.adjustX,De=Me.adjustY,Te=Me.shiftX,Be=Me.shiftY,Le=function(e){return"boolean"==typeof e?e:e>=0};function ht(){Ce=N.y+we,Se=Ce+_,$e=N.x+xe,ke=$e+W}ht();var ze=Le(De),Fe=he[0]===ge[0];if(ze&&"t"===he[0]&&(Se>te.bottom||p.current.bt)){var He=we;Fe?He-=_-V:He=Ie.y-je.y-se;var Ae=gt(xe,He),_e=gt(xe,He,J);Ae>Ee||Ae===Ee&&(!q||_e>=Oe)?(p.current.bt=!0,we=He,se=-se,ye.points=[Um(he,0),Um(ge,0)]):p.current.bt=!1}if(ze&&"b"===he[0]&&(Ce<te.top||p.current.tb)){var We=we;Fe?We+=_-V:We=Re.y-Ne.y-se;var Ve=gt(xe,We),Ge=gt(xe,We,J);Ve>Ee||Ve===Ee&&(!q||Ge>=Oe)?(p.current.tb=!0,we=We,se=-se,ye.points=[Um(he,0),Um(ge,0)]):p.current.tb=!1}var Ue=Le(Pe),Xe=he[1]===ge[1];if(Ue&&"l"===he[1]&&(ke>te.right||p.current.rl)){var Ke=xe;Xe?Ke-=W-G:Ke=Ie.x-je.x-ce;var Ye=gt(Ke,we),qe=gt(Ke,we,J);Ye>Ee||Ye===Ee&&(!q||qe>=Oe)?(p.current.rl=!0,xe=Ke,ce=-ce,ye.points=[Um(he,1),Um(ge,1)]):p.current.rl=!1}if(Ue&&"r"===he[1]&&($e<te.left||p.current.lr)){var Ze=xe;Xe?Ze+=W-G:Ze=Re.x-Ne.x-ce;var Je=gt(Ze,we),et=gt(Ze,we,J);Je>Ee||Je===Ee&&(!q||et>=Oe)?(p.current.lr=!0,xe=Ze,ce=-ce,ye.points=[Um(he,1),Um(ge,1)]):p.current.lr=!1}ht();var tt=!0===Te?0:Te;"number"==typeof tt&&($e<J.left&&(xe-=$e-J.left-ce,m.x+G<J.left+tt&&(xe+=m.x-J.left+G-tt)),ke>J.right&&(xe-=ke-J.right-ce,m.x>J.right-tt&&(xe+=m.x-J.right+tt)));var nt=!0===Be?0:Be;"number"==typeof nt&&(Ce<J.top&&(we-=Ce-J.top-se,m.y+V<J.top+nt&&(we+=m.y-J.top+V-nt)),Se>J.bottom&&(we-=Se-J.bottom-se,m.y>J.bottom-nt&&(we+=m.y-J.bottom+nt)));var rt=N.x+xe,ot=rt+W,it=N.y+we,at=it+_,lt=m.x,ct=lt+G,st=m.y,ut=st+V,dt=(Math.max(rt,lt)+Math.min(ot,ct))/2-rt,ft=(Math.max(it,st)+Math.min(at,ut))/2-it;null==a||a(t,ye);var pt=ne.right-N.x-(xe+N.width),mt=ne.bottom-N.y-(we+N.height);1===re&&(xe=Math.round(xe),pt=Math.round(pt)),1===oe&&(we=Math.round(we),mt=Math.round(mt)),u({ready:!0,offsetX:xe/re,offsetY:we/oe,offsetR:pt/re,offsetB:mt/oe,arrowX:dt/re,arrowY:ft/oe,scaleX:re,scaleY:oe,align:ye})}}),g=function(){u(function(e){return D(D({},e),{},{ready:!1})})};return Dt(g,[r]),Dt(function(){e||g()},[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then(function(){d.current===e&&m()})}]}(Oe,se,A&&null!==Ve?Ve:me,j,P,B,W),Ke=Qe(Xe,11),Ye=Ke[0],qe=Ke[1],Ze=Ke[2],Je=Ke[3],et=Ke[4],tt=Ke[5],nt=Ke[6],rt=Ke[7],ot=Ke[8],it=Ke[9],at=Ke[10],lt=function(e,t,n,r){return l.useMemo(function(){var o=Dm(null!=n?n:t),i=Dm(null!=r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}(ne,c,s,u),ct=Qe(lt,2),ut=ct[0],dt=ct[1],ft=ut.has("click"),pt=dt.has("click")||dt.has("contextMenu"),mt=wo(function(){Le||at()});!function(e,t,n,r,o){Dt(function(){if(e&&t&&n){var i=n,a=zm(t),l=zm(i),c=Lm(i),s=new Set([c].concat(Fe(a),Fe(l)));function u(){r(),o()}return s.forEach(function(e){e.addEventListener("scroll",u,{passive:!0})}),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach(function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)})}}},[e,t,n])}(Oe,me,se,mt,function(){Ne.current&&A&&pt&&De(!1)}),Dt(function(){mt()},[Ve,j]),Dt(function(){!Oe||null!=P&&P[j]||mt()},[JSON.stringify(B)]);var gt=l.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(Tm(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(P,o,it,A);return b(e,null==F?void 0:F(it))},[it,F,P,o,A]);l.useImperativeHandle(n,function(){return{nativeElement:he.current,popupElement:de.current,forceAlign:mt}});var ht=Qe(l.useState(0),2),vt=ht[0],bt=ht[1],yt=Qe(l.useState(0),2),xt=yt[0],wt=yt[1],Ct=function(){if(z&&me){var e=me.getBoundingClientRect();bt(e.width),wt(e.height)}};function St(e,t,n,r){xe[e]=function(o){var i;null==r||r(o),De(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=ye[e])||void 0===i||i.call.apply(i,[ye,o].concat(l))}}Dt(function(){Ae&&(at(),Ae(),_e(null))},[Ae]),(ft||pt)&&(xe.onClick=function(e){var t;Ne.current&&pt?De(!1):!Ne.current&&ft&&(Ue(e),De(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onClick)||void 0===t||t.call.apply(t,[ye,e].concat(r))});var $t,kt,Et=function(e,t,n,r,o,i,a,c){var s=l.useRef(e);s.current=e;var u=l.useRef(!1);return l.useEffect(function(){if(t&&r&&(!o||i)){var e=function(){u.current=!1},l=function(e){var t;!s.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||c(!1)},d=Lm(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",l,!0),d.addEventListener("contextmenu",l,!0);var f=Ca(n);return f&&(f.addEventListener("mousedown",l,!0),f.addEventListener("contextmenu",l,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",l,!0),d.removeEventListener("contextmenu",l,!0),f&&(f.removeEventListener("mousedown",l,!0),f.removeEventListener("contextmenu",l,!0))}}},[t,n,r,o,i]),function(){u.current=!0}}(Oe,pt,me,se,w,S,we,De),Ot=ut.has("hover"),It=dt.has("hover");Ot&&(St("onMouseEnter",!0,g,function(e){Ue(e)}),St("onPointerEnter",!0,g,function(e){Ue(e)}),$t=function(e){(Oe||Le)&&null!=se&&se.contains(e.target)&&De(!0,g)},A&&(xe.onMouseMove=function(e){var t;null===(t=ye.onMouseMove)||void 0===t||t.call(ye,e)})),It&&(St("onMouseLeave",!1,v),St("onPointerLeave",!1,v),kt=function(){De(!1,v)}),ut.has("focus")&&St("onFocus",!0,y),dt.has("focus")&&St("onBlur",!1,x),ut.has("contextMenu")&&(xe.onContextMenu=function(e){var t;Ne.current&&dt.has("contextMenu")?De(!1):(Ue(e),De(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onContextMenu)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),q&&(xe.className=b(ye.className,q));var Nt=l.useRef(!1);Nt.current||(Nt.current=k||Oe||Le);var Rt=D(D({},ye),xe),jt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){J[e]&&(jt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Rt[e])||void 0===t||t.call.apply(t,[Rt].concat(r)),J[e].apply(J,r)})});var Mt=l.cloneElement(be,D(D({},Rt),jt)),Pt={x:tt,y:nt},Tt=V?D({},!0!==V?V:{}):null;return l.createElement(l.Fragment,null,l.createElement(Te,{disabled:!Oe,ref:ve,onResize:function(){Ct(),mt()}},l.createElement(Mm,{getTriggerDOMNode:Z},Mt)),Nt.current&&l.createElement(Pm.Provider,{value:ae},l.createElement(jm,{portal:e,ref:fe,prefixCls:o,popup:I,className:b(N,gt),style:R,target:me,onMouseEnter:$t,onMouseLeave:kt,onPointerEnter:$t,zIndex:L,open:Oe,keepDom:Le,fresh:H,onClick:_,onPointerDownCapture:Et,mask:w,motion:Ce,maskMotion:Se,onVisibleChanged:function(e){ze(!1),at(),null==m||m(e)},onPrepare:function(){return new Promise(function(e){Ct(),_e(function(){return e})})},forceRender:k,autoDestroy:ee,getPopupContainer:$,align:it,arrow:Tt,arrowPos:Pt,ready:Ye,offsetX:qe,offsetY:Ze,offsetR:Je,offsetB:et,onAlign:mt,stretch:z,targetWidth:vt/rt,targetHeight:xt/ot})))});return t}(td),Qm=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ym=function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,o=e.children,i=e.popupElement,a=e.animation,c=e.transitionName,s=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,f=void 0===d?"ltr":d,p=e.placement,m=e.builtinPlacements,g=e.dropdownMatchSelectWidth,h=e.dropdownRender,v=e.dropdownAlign,x=e.getPopupContainer,w=e.empty,C=e.getTriggerDOMNode,S=e.onPopupVisibleChange,$=e.onPopupMouseEnter,k=st(e,Qm),E="".concat(n,"-dropdown"),O=i;h&&(O=h(i));var I=l.useMemo(function(){return m||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(g)},[m,g]),N=a?"".concat(E,"-").concat(a):c,R="number"==typeof g,j=l.useMemo(function(){return R?null:!1===g?"minWidth":"width"},[g,R]),P=s;R&&(P=D(D({},P),{},{width:g}));var T=l.useRef(null);return l.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.popupElement}}}),l.createElement(Km,y({},k,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:E,popupTransitionName:N,popup:l.createElement("div",{onMouseEnter:$},O),ref:T,stretch:j,popupAlign:v,popupVisible:r,getPopupContainer:x,popupClassName:b(u,M({},"".concat(E,"-empty"),w)),popupStyle:P,getTriggerDOMNode:C,onPopupVisibleChange:S}),o)},qm=l.forwardRef(Ym);function Zm(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function Jm(e){return void 0!==e&&!Number.isNaN(e)}function eg(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function tg(e){var t=D({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return R(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var ng=l.createContext(null);function rg(e){var t=e.visible,n=e.values;if(!t)return null;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes(x(t))?t:n}).join(", ")),n.length>50?", ...":null)}var og=["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"],ig=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ag=function(e){return"tags"===e||"multiple"===e},lg=l.forwardRef(function(t,n){var r,o=t.id,i=t.prefixCls,a=t.className,c=t.showSearch,s=t.tagRender,u=t.direction,d=t.omitDomProps,f=t.displayValues,p=t.onDisplayValuesChange,m=t.emptyOptions,g=t.notFoundContent,h=void 0===g?"Not Found":g,v=t.onClear,w=t.mode,C=t.disabled,S=t.loading,$=t.getInputElement,k=t.getRawInputElement,E=t.open,O=t.defaultOpen,I=t.onDropdownVisibleChange,N=t.activeValue,R=t.onActiveValueChange,j=t.activeDescendantId,P=t.searchValue,T=t.autoClearSearchValue,B=t.onSearch,L=t.onSearchSplit,z=t.tokenSeparators,F=t.allowClear,H=t.prefix,A=t.suffixIcon,_=t.clearIcon,W=t.OptionList,V=t.animation,G=t.transitionName,U=t.dropdownStyle,K=t.dropdownClassName,Q=t.dropdownMatchSelectWidth,Y=t.dropdownRender,q=t.dropdownAlign,Z=t.placement,J=t.builtinPlacements,ee=t.getPopupContainer,te=t.showAction,ne=void 0===te?[]:te,re=t.onFocus,oe=t.onBlur,ie=t.onKeyUp,ae=t.onKeyDown,le=t.onMouseDown,ce=st(t,og),se=ag(w),ue=(void 0!==c?c:se)||"combobox"===w,de=D({},ce);ig.forEach(function(e){delete de[e]}),null==d||d.forEach(function(e){delete de[e]});var fe=Qe(l.useState(!1),2),pe=fe[0],me=fe[1];l.useEffect(function(){me(Up())},[]);var ge=l.useRef(null),he=l.useRef(null),ve=l.useRef(null),be=l.useRef(null),ye=l.useRef(null),xe=l.useRef(!1),we=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Qe(l.useState(!1),2),n=t[0],r=t[1],o=l.useRef(null),i=function(){window.clearTimeout(o.current)};return l.useEffect(function(){return i},[]),[n,function(t,n){i(),o.current=window.setTimeout(function(){r(t),n&&n()},e)},i]}(),Ce=Qe(we,3),Se=Ce[0],$e=Ce[1],ke=Ce[2];l.useImperativeHandle(n,function(){var e,t;return{focus:null===(e=be.current)||void 0===e?void 0:e.focus,blur:null===(t=be.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ye.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:ge.current||he.current}});var Ee=l.useMemo(function(){var e;if("combobox"!==w)return P;var t=null===(e=f[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[P,w,f]),Oe="combobox"===w&&"function"==typeof $&&$()||null,Ie="function"==typeof k&&k(),Ne=X(he,null==Ie||null===(r=Ie.props)||void 0===r?void 0:r.ref),Re=Qe(l.useState(!1),2),je=Re[0],Me=Re[1];Dt(function(){Me(!0)},[]);var Pe=Qe($o(!1,{defaultValue:O,value:E}),2),De=Pe[0],Te=Pe[1],Be=!!je&&De,Le=!h&&m;(C||Le&&Be&&"combobox"===w)&&(Be=!1);var ze=!Le&&Be,He=l.useCallback(function(e){var t=void 0!==e?e:!Be;C||(Te(t),Be!==t&&(null==I||I(t)))},[C,Be,Te,I]),Ae=l.useMemo(function(){return(z||[]).some(function(e){return["\n","\r\n"].includes(e)})},[z]),_e=l.useContext(ng)||{},We=_e.maxCount,Ve=_e.rawValues,Ge=function(e,t,n){if(!(se&&Jm(We)&&(null==Ve?void 0:Ve.size)>=We)){var r=!0,o=e;null==R||R(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=Kn(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce(function(t,n){return[].concat(Fe(t),Fe(e(n,a)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,z,Jm(We)?We-Ve.size:void 0),a=n?null:i;return"combobox"!==w&&a&&(o="",null==L||L(a),He(!1),r=!1),B&&Ee!==o&&B(o,{source:t?"typing":"effect"}),r}};l.useEffect(function(){Be||se||"combobox"===w||Ge("",!1,!1)},[Be]),l.useEffect(function(){De&&C&&Te(!1),C&&!xe.current&&$e(!1)},[C]);var Ue=Qe(Yp(),2),Xe=Ue[0],Ke=Ue[1],Ye=l.useRef(!1),qe=l.useRef(!1),Ze=[];l.useEffect(function(){return function(){Ze.forEach(function(e){return clearTimeout(e)}),Ze.splice(0,Ze.length)}},[]);var Je,et=Qe(l.useState({}),2)[1];Ie&&(Je=function(e){He(e)}),function(e,t,n,r){var o=l.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}},[])}(function(){var e;return[ge.current,null===(e=ve.current)||void 0===e?void 0:e.getPopupElement()]},ze,He,!!Ie);var tt,nt=l.useMemo(function(){return D(D({},t),{},{notFoundContent:h,open:Be,triggerOpen:ze,id:o,showSearch:ue,multiple:se,toggleOpen:He})},[t,h,ze,Be,o,ue,se,He]),rt=!!A||S;rt&&(tt=l.createElement(Xp,{className:b("".concat(i,"-arrow"),M({},"".concat(i,"-arrow-loading"),S)),customizeIcon:A,customizeIconProps:{loading:S,searchValue:Ee,open:Be,focused:Se,showSearch:ue}}));var ot,it=function(t,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=e.useMemo(function(){return"object"===x(o)?o.clearIcon:i||void 0},[o,i]);return{allowClear:e.useMemo(function(){return!(a||!o||!r.length&&!l||"combobox"===c&&""===l)},[o,a,r.length,l,c]),clearIcon:e.createElement(Xp,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:s},"×")}}(i,function(){var e;null==v||v(),null===(e=be.current)||void 0===e||e.focus(),p([],{type:"clear",values:f}),Ge("",!1,!1)},f,F,_,C,Ee,w),at=it.allowClear,lt=it.clearIcon,ct=l.createElement(W,{ref:ye}),ut=b(i,a,M(M(M(M(M(M(M(M(M(M({},"".concat(i,"-focused"),Se),"".concat(i,"-multiple"),se),"".concat(i,"-single"),!se),"".concat(i,"-allow-clear"),F),"".concat(i,"-show-arrow"),rt),"".concat(i,"-disabled"),C),"".concat(i,"-loading"),S),"".concat(i,"-open"),Be),"".concat(i,"-customize-input"),Oe),"".concat(i,"-show-search"),ue)),dt=l.createElement(qm,{ref:ve,disabled:C,prefixCls:i,visible:ze,popupElement:ct,animation:V,transitionName:G,dropdownStyle:U,dropdownClassName:K,direction:u,dropdownMatchSelectWidth:Q,dropdownRender:Y,dropdownAlign:q,placement:Z,builtinPlacements:J,getPopupContainer:ee,empty:m,getTriggerDOMNode:function(e){return he.current||e},onPopupVisibleChange:Je,onPopupMouseEnter:function(){et({})}},Ie?l.cloneElement(Ie,{ref:Ne}):l.createElement(Om,y({},t,{domRef:he,prefixCls:i,inputElement:Oe,ref:be,id:o,prefix:H,showSearch:ue,autoClearSearchValue:T,mode:w,activeDescendantId:j,tagRender:s,values:f,open:Be,onToggleOpen:He,activeValue:N,searchValue:Ee,onSearch:Ge,onSearchSubmit:function(e){e&&e.trim()&&B(e,{source:"submit"})},onRemove:function(e){var t=f.filter(function(t){return t!==e});p(t,{type:"remove",values:[e]})},tokenWithEnter:Ae,onInputBlur:function(){Ye.current=!1}})));return ot=Ie?dt:l.createElement("div",y({className:ut},de,{ref:ge,onMouseDown:function(e){var t,n=e.target,r=null===(t=ve.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=Ze.indexOf(o);-1!==t&&Ze.splice(t,1),ke(),pe||r.contains(document.activeElement)||null===(e=be.current)||void 0===e||e.focus()});Ze.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==le||le.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Xe(),r=e.key,o="Enter"===r;if(o&&("combobox"!==w&&e.preventDefault(),Be||He(!0)),Ke(!!Ee),"Backspace"===r&&!n&&se&&!Ee&&f.length){for(var i=Fe(f),a=null,l=i.length-1;l>=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&p(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d<s;d++)u[d-1]=arguments[d];!Be||o&&Ye.current||(o&&(Ye.current=!0),null===(t=ye.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u))),null==ae||ae.apply(void 0,[e].concat(u))},onKeyUp:function(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;Be&&(null===(o=ye.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(Ye.current=!1),null==ie||ie.apply(void 0,[e].concat(n))},onFocus:function(){$e(!0),C||(re&&!qe.current&&re.apply(void 0,arguments),ne.includes("focus")&&He(!0)),qe.current=!0},onBlur:function(){xe.current=!0,$e(!1,function(){qe.current=!1,xe.current=!1,He(!1)}),C||(Ee&&("tags"===w?B(Ee,{source:"submit"}):"multiple"===w&&B("",{source:"blur"})),oe&&oe.apply(void 0,arguments))}}),l.createElement(rg,{visible:Se&&!Be,values:f}),dt,tt,at&&lt),l.createElement(Kp.Provider,{value:nt},ot)}),cg=function(){return null};cg.isSelectOptGroup=!0;var sg=function(){return null};sg.isSelectOption=!0;var ug=l.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,c=e.onInnerResize,s=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};return void 0!==r&&(f={height:n,position:"relative",overflow:"hidden"},p=D(D({},p),{},M(M(M(M(M({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),l.createElement("div",{style:f},l.createElement(Te,{onResize:function(e){e.offsetHeight&&c&&c()}},l.createElement("div",y({style:p,className:b(M({},"".concat(a,"-holder-inner"),a)),ref:t},s),i,d)))});function dg(e){var t=e.children,n=e.setRef,r=l.useCallback(function(e){n(e)},[]);return l.cloneElement(t,{ref:r})}function fg(e,t,n){var r=Qe(l.useState(e),2),o=r[0],i=r[1],a=Qe(l.useState(null),2),c=a[0],s=a[1];return l.useEffect(function(){var n=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){s=d,u=u||f!==c(o[d+1]);break}}return null===s?null:{index:s,multiple:u}}(o||[],e||[],t);void 0!==(null==n?void 0:n.index)&&s(e[n.index]),i(e)},[e]),[c]}ug.displayName="Filler";var pg="object"===("undefined"==typeof navigator?"undefined":x(navigator))&&/Firefox/i.test(navigator.userAgent),mg=function(t,n,r,o){var i=e.useRef(!1),a=e.useRef(null);var l=e.useRef({top:t,bottom:n,left:r,right:o});return l.current.top=t,l.current.bottom=n,l.current.left=r,l.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)),!i.current&&r}};function gg(t,n,r,o,i,a,l){var c=e.useRef(0),s=e.useRef(null),u=e.useRef(null),d=e.useRef(!1),f=mg(n,r,o,i);var p=e.useRef(null),m=e.useRef(null);return[function(e){if(t){Ge.cancel(m.current),m.current=Ge(function(){p.current=null},2);var n=e.deltaX,r=e.deltaY,o=e.shiftKey,i=n,g=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,g=0,p.current="sx");var h=Math.abs(i),v=Math.abs(g);null===p.current&&(p.current=a&&h>v?"x":"y"),"y"===p.current?function(e,t){if(Ge.cancel(s.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,c.current+=t,u.current=t,pg||n.preventDefault(),s.current=Ge(function(){var e=d.current?10:1;l(c.current*e,!1),c.current=0}))}}(e,g):function(e,t){l(t,!0),pg||e.preventDefault()}(e,i)}},function(e){t&&(d.current=e.detail===u.current)}]}var hg=function(){function e(){Ce(this,e),M(this,"maps",void 0),M(this,"id",0),M(this,"diffRecords",new Map),this.maps=Object.create(null)}return $e(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function vg(e){var t=parseFloat(e);return isNaN(t)?0:t}var bg=14/15;function yg(e){return Math.floor(Math.pow(e,.5))}function xg(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var wg=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,c=e.onStopMove,s=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,m=e.thumbStyle,g=e.showScrollBar,h=Qe(l.useState(!1),2),v=h[0],y=h[1],x=Qe(l.useState(null),2),w=x[0],C=x[1],S=Qe(l.useState(null),2),$=S[0],k=S[1],E=!r,O=l.useRef(),I=l.useRef(),N=Qe(l.useState(g),2),R=N[0],j=N[1],P=l.useRef(),T=function(){!0!==g&&!1!==g&&(clearTimeout(P.current),j(!0),P.current=setTimeout(function(){j(!1)},3e3))},B=i-f||0,L=f-d||0,z=l.useMemo(function(){return 0===o||0===B?0:o/B*L},[o,B,L]),F=l.useRef({top:z,dragging:v,pageY:w,startTop:$});F.current={top:z,dragging:v,pageY:w,startTop:$};var H=function(e){y(!0),C(xg(e,u)),k(F.current.top),a(),e.stopPropagation(),e.preventDefault()};l.useEffect(function(){var e=function(e){e.preventDefault()},t=O.current,n=I.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",H,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",H)}},[]);var A=l.useRef();A.current=B;var _=l.useRef();_.current=L,l.useEffect(function(){if(v){var e,t=function(t){var n=F.current,r=n.dragging,o=n.pageY,i=n.startTop;Ge.cancel(e);var a=O.current.getBoundingClientRect(),l=f/(u?a.width:a.height);if(r){var c=(xg(t,u)-o)*l,d=i;!E&&u?d-=c:d+=c;var p=A.current,m=_.current,g=m?d/m:0,h=Math.ceil(g*p);h=Math.max(h,0),h=Math.min(h,p),e=Ge(function(){s(h,u)})}},n=function(){y(!1),c()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Ge.cancel(e)}}},[v]),l.useEffect(function(){return T(),function(){clearTimeout(P.current)}},[o]),l.useImperativeHandle(t,function(){return{delayHidden:T}});var W="".concat(n,"-scrollbar"),V={position:"absolute",visibility:R?null:"hidden"},G={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(V,{height:8,left:0,right:0,bottom:0}),Object.assign(G,M({height:"100%",width:d},E?"left":"right",z))):(Object.assign(V,M({width:8,top:0,bottom:0},E?"right":"left",0)),Object.assign(G,{width:"100%",height:d,top:z})),l.createElement("div",{ref:O,className:b(W,M(M(M({},"".concat(W,"-horizontal"),u),"".concat(W,"-vertical"),!u),"".concat(W,"-visible"),R)),style:D(D({},V),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:T},l.createElement("div",{ref:I,className:b("".concat(W,"-thumb"),M({},"".concat(W,"-thumb-moving"),v)),style:D(D({},G),m),onMouseDown:H}))});function Cg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var Sg=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],$g=[],kg={overflowY:"auto",overflowAnchor:"none"};function Eg(t,n){var o=t.prefixCls,i=void 0===o?"rc-virtual-list":o,a=t.className,c=t.height,s=t.itemHeight,u=t.fullHeight,d=void 0===u||u,f=t.style,p=t.data,m=t.children,g=t.itemKey,h=t.virtual,v=t.direction,w=t.scrollWidth,C=t.component,S=void 0===C?"div":C,$=t.onScroll,k=t.onVirtualScroll,E=t.onVisibleChange,O=t.innerProps,I=t.extraRender,N=t.styles,R=t.showScrollBar,j=void 0===R?"optional":R,P=st(t,Sg),T=l.useCallback(function(e){return"function"==typeof g?g(e):null==e?void 0:e[g]},[g]),B=function(t){var n=Qe(l.useState(0),2),r=n[0],o=n[1],i=e.useRef(new Map),a=e.useRef(new hg),c=e.useRef(0);function s(){c.current+=1}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s();var t=function(){var e=!1;i.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,l=o.marginBottom,c=r+vg(i)+vg(l);a.current.get(n)!==c&&(a.current.set(n,c),e=!0)}}),e&&o(function(e){return e+1})};if(e)t();else{c.current+=1;var n=c.current;Promise.resolve().then(function(){n===c.current&&t()})}}return e.useEffect(function(){return s},[]),[function(e,n){var r=t(e);i.current.get(r),n?(i.current.set(r,n),u()):i.current.delete(r)},u,a.current,r]}(T),L=Qe(B,4),z=L[0],F=L[1],H=L[2],A=L[3],_=!(!1===h||!c||!s),W=l.useMemo(function(){return Object.values(H.maps).reduce(function(e,t){return e+t},0)},[H.id,H.maps]),V=_&&p&&(Math.max(s*p.length,W)>c||!!w),G="rtl"===v,U=b(i,M({},"".concat(i,"-rtl"),G),a),X=p||$g,K=e.useRef(),Q=e.useRef(),Y=e.useRef(),q=Qe(e.useState(0),2),Z=q[0],J=q[1],ee=Qe(e.useState(0),2),te=ee[0],ne=ee[1],re=Qe(e.useState(!1),2),oe=re[0],ie=re[1],ae=function(){ie(!0)},le=function(){ie(!1)},ce={getKey:T};function se(e){J(function(t){var n=function(e){var t=e;Number.isNaN(Ee.current)||(t=Math.min(t,Ee.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return K.current.scrollTop=n,n})}var ue=e.useRef({start:0,end:X.length}),de=e.useRef(),fe=Qe(fg(X,T),1)[0];de.current=fe;var pe=l.useMemo(function(){if(!_)return{scrollHeight:void 0,start:0,end:X.length-1,offset:void 0};var e;if(!V)return{scrollHeight:(null===(e=Q.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:X.length-1,offset:void 0};for(var t,n,r,o=0,i=X.length,a=0;a<i;a+=1){var l=X[a],u=T(l),d=H.get(u),f=o+(void 0===d?s:d);f>=Z&&void 0===t&&(t=a,n=o),f>Z+c&&void 0===r&&(r=a),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(c/s)),void 0===r&&(r=X.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,X.length-1),offset:n}},[V,_,Z,X,A,c]),me=pe.scrollHeight,ge=pe.start,he=pe.end,ve=pe.offset;ue.current.start=ge,ue.current.end=he,l.useLayoutEffect(function(){var e=H.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=X[ge];if(r&&void 0===n)if(T(r)===t){var o=H.get(t)-s;se(function(e){return e+o})}}H.resetRecord()},[me]);var be=Qe(l.useState({width:0,height:c}),2),ye=be[0],xe=be[1],we=e.useRef(),Ce=e.useRef(),Se=l.useMemo(function(){return Cg(ye.width,w)},[ye.width,w]),$e=l.useMemo(function(){return Cg(ye.height,me)},[ye.height,me]),ke=me-c,Ee=e.useRef(ke);Ee.current=ke;var Oe=Z<=0,Ie=Z>=ke,Ne=te<=0,Re=te>=w,je=mg(Oe,Ie,Ne,Re),Me=function(){return{x:G?-te:te,y:Z}},Pe=e.useRef(Me()),De=wo(function(e){if(k){var t=D(D({},Me()),e);Pe.current.x===t.x&&Pe.current.y===t.y||(k(t),Pe.current=t)}});function Be(e,t){var n=e;t?(r.flushSync(function(){ne(n)}),De()):se(n)}var Le=function(e){var t=e,n=w?w-ye.width:0;return t=Math.max(t,0),t=Math.min(t,n)},ze=wo(function(e,t){t?(r.flushSync(function(){ne(function(t){return Le(t+(G?-e:e))})}),De()):se(function(t){return t+e})}),Fe=Qe(gg(_,Oe,Ie,Ne,Re,!!w,ze),2),He=Fe[0],Ae=Fe[1];!function(t,n,r){var o,i=e.useRef(!1),a=e.useRef(0),l=e.useRef(0),c=e.useRef(null),s=e.useRef(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=a.current-t,c=l.current-n,u=Math.abs(o)>Math.abs(c);u?a.current=t:l.current=n;var d=r(u,u?o:c,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval(function(){u?o*=bg:c*=bg;var e=Math.floor(u?o:c);(!r(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u,{passive:!1}),c.current.addEventListener("touchend",d,{passive:!0}))};o=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",d))},Dt(function(){return t&&n.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(s.current)}},[t])}(_,K,function(e,t,n,r){var o=r;return!je(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),He({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,n){l.useEffect(function(){var r=t.current;if(e&&r){var o,i,a=!1,l=function(){Ge.cancel(o)},c=function e(){l(),o=Ge(function(){n(i),e()})},s=function(){a=!1,l()},u=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},d=function(e){if(a){var t=xg(e,!1),n=r.getBoundingClientRect(),o=n.top,s=n.bottom;t<=o?(i=-yg(o-t),c()):t>=s?(i=yg(t-s),c()):l()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",s),r.ownerDocument.addEventListener("mousemove",d),r.ownerDocument.addEventListener("dragend",s),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",s),r.ownerDocument.removeEventListener("mousemove",d),r.ownerDocument.removeEventListener("dragend",s),l()}}},[e])}(V,K,function(e){se(function(t){return t+e})}),Dt(function(){function e(e){var t=Oe&&e.detail<0,n=Ie&&e.detail>0;!_||t||n||e.preventDefault()}var t=K.current;return t.addEventListener("wheel",He,{passive:!1}),t.addEventListener("DOMMouseScroll",Ae,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",He),t.removeEventListener("DOMMouseScroll",Ae),t.removeEventListener("MozMousePixelScroll",e)}},[_,Oe,Ie]),Dt(function(){if(w){var e=Le(te);ne(e),De({x:e})}},[ye.width,w]);var _e=function(){var e,t;null===(e=we.current)||void 0===e||e.delayHidden(),null===(t=Ce.current)||void 0===t||t.delayHidden()},We=function(e,t,n,r,o,i,a,c){var s=l.useRef(),u=Qe(l.useState(null),2),d=u[0],f=u[1];return Dt(function(){if(d&&d.times<10){if(!e.current)return void f(function(e){return D({},e)});i();var l=d.targetAlign,c=d.originAlign,s=d.index,u=d.offset,p=e.current.clientHeight,m=!1,g=l,h=null;if(p){for(var v=l||c,b=0,y=0,x=0,w=Math.min(t.length-1,s),C=0;C<=w;C+=1){var S=o(t[C]);y=b;var $=n.get(S);b=x=y+(void 0===$?r:$)}for(var k="top"===v?u:p-u,E=w;E>=0;E-=1){var O=o(t[E]),I=n.get(O);if(void 0===I){m=!0;break}if((k-=I)<=0)break}switch(v){case"top":h=y-u;break;case"bottom":h=x-p+u;break;default:var N=e.current.scrollTop;y<N?g="top":x>N+p&&(g="bottom")}null!==h&&a(h),h!==d.lastTop&&(m=!0)}m&&f(D(D({},d),{},{times:d.times+1,targetAlign:g,lastTop:h}))}},[d,e.current]),function(e){if(null!=e){if(Ge.cancel(s.current),"number"==typeof e)a(e);else if(e&&"object"===x(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex(function(t){return o(t)===e.key});var i=e.offset;f({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else c()}}(K,X,H,s,T,function(){return F(!0)},se,_e);l.useImperativeHandle(n,function(){return{nativeElement:Y.current,getScrollInfo:Me,scrollTo:function(e){var t;(t=e)&&"object"===x(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ne(Le(e.left)),We(e.top)):We(e)}}}),Dt(function(){if(E){var e=X.slice(ge,he+1);E(e,X)}},[ge,he,X]);var Ve=function(e,t,n,r){var o=Qe(l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),2),i=o[0],a=o[1];return function(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,c=i.get(o),s=i.get(l);if(void 0===c||void 0===s)for(var u=e.length,d=a.length;d<u;d+=1){var f,p=e[d],m=t(p);i.set(m,d);var g=null!==(f=n.get(m))&&void 0!==f?f:r;if(a[d]=(a[d-1]||0)+g,m===o&&(c=d),m===l&&(s=d),void 0!==c&&void 0!==s)break}return{top:a[c-1]||0,bottom:a[s]}}}(X,T,H,s),Ue=null==I?void 0:I({start:ge,end:he,virtual:V,offsetX:te,offsetY:ve,rtl:G,getSize:Ve}),Xe=function(e,t,n,r,o,i,a,c){var s=c.getKey;return e.slice(t,n+1).map(function(e,n){var c=a(e,t+n,{style:{width:r},offsetX:o}),u=s(e);return l.createElement(dg,{key:u,setRef:function(t){return i(e,t)}},c)})}(X,ge,he,w,te,z,m,ce),Ke=null;c&&(Ke=D(M({},d?"height":"maxHeight",c),kg),_&&(Ke.overflowY="hidden",w&&(Ke.overflowX="hidden"),oe&&(Ke.pointerEvents="none")));var Ye={};return G&&(Ye.dir="rtl"),l.createElement("div",y({ref:Y,style:D(D({},f),{},{position:"relative"}),className:U},Ye,P),l.createElement(Te,{onResize:function(e){xe({width:e.offsetWidth,height:e.offsetHeight})}},l.createElement(S,{className:"".concat(i,"-holder"),style:Ke,ref:K,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==Z&&se(t),null==$||$(e),De()},onMouseEnter:_e},l.createElement(ug,{prefixCls:i,height:me,offsetX:te,offsetY:ve,scrollWidth:w,onInnerResize:F,ref:Q,innerProps:O,rtl:G,extra:Ue},Xe))),V&&me>c&&l.createElement(wg,{ref:we,prefixCls:i,scrollOffset:Z,scrollRange:me,rtl:G,onScroll:Be,onStartMove:ae,onStopMove:le,spinSize:$e,containerSize:ye.height,style:null==N?void 0:N.verticalScrollBar,thumbStyle:null==N?void 0:N.verticalScrollBarThumb,showScrollBar:j}),V&&w>ye.width&&l.createElement(wg,{ref:Ce,prefixCls:i,scrollOffset:te,scrollRange:w,rtl:G,onScroll:Be,onStartMove:ae,onStopMove:le,spinSize:Se,containerSize:ye.width,horizontal:!0,style:null==N?void 0:N.horizontalScrollBar,thumbStyle:null==N?void 0:N.horizontalScrollBarThumb,showScrollBar:j}))}var Og=l.forwardRef(Eg);Og.displayName="List";var Ig=["disabled","title","children","style","className"];function Ng(e){return"string"==typeof e||"number"==typeof e}var Rg=function(t,n){var r=Qp(),o=r.prefixCls,i=r.id,a=r.open,c=r.multiple,s=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,m=l.useContext(ng),g=m.maxCount,h=m.flattenOptions,v=m.onActiveValue,x=m.defaultActiveFirstOption,w=m.onSelect,C=m.menuItemSelectedIcon,S=m.rawValues,$=m.fieldNames,k=m.virtual,E=m.direction,O=m.listHeight,I=m.listItemHeight,N=m.optionRender,R="".concat(o,"-item"),j=W(function(){return h},[a,h],function(e,t){return t[0]&&e[1]!==t[1]}),P=l.useRef(null),D=l.useMemo(function(){return c&&Jm(g)&&(null==S?void 0:S.size)>=g},[c,g,null==S?void 0:S.size]),T=function(e){e.preventDefault()},B=function(e){var t;null===(t=P.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},L=l.useCallback(function(e){return"combobox"!==s&&S.has(e)},[s,Fe(S).toString(),S.size]),z=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=j.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=j[o]||{},a=i.group,l=i.data;if(!a&&(null==l||!l.disabled)&&(L(l.value)||!D))return o}return-1},F=Qe(l.useState(function(){return z(0)}),2),H=F[0],A=F[1],_=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];A(e);var n={source:t?"keyboard":"mouse"},r=j[e];r?v(r.value,e,n):v(null,-1,n)};e.useEffect(function(){_(!1!==x?z(0):-1)},[j.length,u]);var V=l.useCallback(function(e){return"combobox"===s?String(e).toLowerCase()===u.toLowerCase():S.has(e)},[s,u,Fe(S).toString(),S.size]);e.useEffect(function(){var e,t=setTimeout(function(){if(!c&&a&&1===S.size){var e=Array.from(S)[0],t=j.findIndex(function(t){var n=t.data;return u?String(n.value).startsWith(u):n.value===e});-1!==t&&(_(t),B(t))}});a&&(null===(e=P.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}},[a,u]);var G=function(e){void 0!==e&&w(e,{selected:!S.has(e)}),c||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case sl.N:case sl.P:case sl.UP:case sl.DOWN:var r=0;if(t===sl.UP?r=-1:t===sl.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===sl.N?r=1:t===sl.P&&(r=-1)),0!==r){var o=z(H+r,r);B(o),_(o,!0)}break;case sl.TAB:case sl.ENTER:var i,l=j[H];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||D?G(void 0):G(l.value),a&&e.preventDefault();break;case sl.ESC:d(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){B(e)}}}),0===j.length)return l.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(R,"-empty"),onMouseDown:T},f);var U=Object.keys($).map(function(e){return $[e]}),X=function(e){return e.label};function K(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var Q=function(e){var t=j[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,i=Ya(n,!0),a=X(t);return t?l.createElement("div",y({"aria-label":"string"!=typeof a||o?null:a},i,{key:e},K(t,e),{"aria-selected":V(r)}),r):null},Y={role:"listbox",id:"".concat(i,"_list")};return l.createElement(l.Fragment,null,k&&l.createElement("div",y({},Y,{style:{height:0,width:0,overflow:"hidden"}}),Q(H-1),Q(H),Q(H+1)),l.createElement(Og,{itemKey:"key",ref:P,data:j,height:O,itemHeight:I,fullHeight:!1,onMouseDown:T,onScroll:p,virtual:k,direction:E,innerProps:k?null:Y},function(e,t){var n=e.group,r=e.groupOption,o=e.data,i=e.label,a=e.value,c=o.key;if(n){var s,u=null!==(s=o.title)&&void 0!==s?s:Ng(i)?i.toString():void 0;return l.createElement("div",{className:b(R,"".concat(R,"-group"),o.className),title:u},void 0!==i?i:c)}var d=o.disabled,f=o.title;o.children;var p=o.style,m=o.className,g=Ic(st(o,Ig),U),h=L(a),v=d||!h&&D,x="".concat(R,"-option"),w=b(R,x,m,M(M(M(M({},"".concat(x,"-grouped"),r),"".concat(x,"-active"),H===t&&!v),"".concat(x,"-disabled"),v),"".concat(x,"-selected"),h)),S=X(e),$=!C||"function"==typeof C||h,E="number"==typeof S?S:S||a,O=Ng(E)?E.toString():void 0;return void 0!==f&&(O=f),l.createElement("div",y({},Ya(g),k?{}:K(e,t),{"aria-selected":V(a),className:w,title:O,onMouseMove:function(){H===t||v||_(t)},onClick:function(){v||G(a)},style:p}),l.createElement("div",{className:"".concat(x,"-content")},"function"==typeof N?N(e,{index:t}):E),l.isValidElement(C)||h,$&&l.createElement(Xp,{className:"".concat(R,"-option-state"),customizeIcon:C,customizeIconProps:{value:a,disabled:v,isSelected:h}},h?"✓":null))}))},jg=l.forwardRef(Rg);function Mg(e,t){return bm(e).join("").toUpperCase().includes(t)}var Pg=0,Dg=qe();function Tg(e){var t=Qe(l.useState(),2),n=t[0],r=t[1];return l.useEffect(function(){var e;r("rc_select_".concat((Dg?(e=Pg,Pg+=1):e="TEST_OR_SSR",e)))},[]),e||n}var Bg=["children","value"],Lg=["children"];function zg(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return k(e).map(function(e,n){if(!l.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,a=r.props,c=a.children,s=st(a,Lg);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return D({key:n,value:void 0!==i?i:n,children:o},st(r,Bg))}(e):D(D({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:zg(c)})}).filter(function(e){return e})}function Fg(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Hg=["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"],Ag=["inputValue"];var _g=l.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=void 0===o?"rc-select":o,a=e.backfill,c=e.fieldNames,s=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=void 0===f||f,m=e.onSelect,g=e.onDeselect,h=e.dropdownMatchSelectWidth,v=void 0===h||h,b=e.filterOption,w=e.filterSort,C=e.optionFilterProp,S=e.optionLabelProp,$=e.options,k=e.optionRender,E=e.children,O=e.defaultActiveFirstOption,I=e.menuItemSelectedIcon,N=e.virtual,R=e.direction,j=e.listHeight,P=void 0===j?200:j,T=e.listItemHeight,B=void 0===T?20:T,L=e.labelRender,z=e.value,F=e.defaultValue,H=e.labelInValue,A=e.onChange,_=e.maxCount,W=st(e,Hg),V=Tg(n),G=ag(r),U=!($||!E),X=l.useMemo(function(){return(void 0!==b||"combobox"!==r)&&b},[b,r]),K=l.useMemo(function(){return eg(c,U)},[JSON.stringify(c),U]),Q=Qe($o("",{value:void 0!==u?u:s,postState:function(e){return e||""}}),2),Y=Q[0],q=Q[1],Z=function(e,t,n,r,o){return l.useMemo(function(){var i=e;!e&&(i=zg(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[n.options]||i?(a.set(u[n.value],u),c(l,u,n.label),c(l,u,r),c(l,u,o)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:l}},[e,t,n,r,o])}($,E,K,C,S),J=Z.valueOptions,ee=Z.labelOptions,te=Z.options,ne=l.useCallback(function(e){return bm(e).map(function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==x(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,c=J.get(t);c&&(void 0===n&&(n=null==c?void 0:c[S||K.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),o=null==c?void 0:c.disabled,i=null==c?void 0:c.title);return{label:n,value:t,key:r,disabled:o,title:i}})},[K,S,J]),re=Qe($o(F,{value:z}),2),oe=re[0],ie=re[1],ae=l.useMemo(function(){var e,t=ne(G&&null===oe?[]:oe);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t},[oe,ne,r,G]),le=function(e,t){var n=l.useRef({values:new Map,options:new Map});return[l.useMemo(function(){var r=n.current,o=r.values,i=r.options,a=e.map(function(e){var t;return void 0===e.label?D(D({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e}),l=new Map,c=new Map;return a.forEach(function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=l,n.current.options=c,a},[e,t]),l.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]}(ae,J),ce=Qe(le,2),se=ce[0],ue=ce[1],de=l.useMemo(function(){if(!r&&1===se.length){var e=se[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return se.map(function(e){var t;return D(D({},e),{},{label:null!==(t="function"==typeof L?L(e):e.label)&&void 0!==t?t:e.value})})},[r,se,L]),fe=l.useMemo(function(){return new Set(se.map(function(e){return e.value}))},[se]);l.useEffect(function(){if("combobox"===r){var e,t=null===(e=se[0])||void 0===e?void 0:e.value;q(function(e){return null!=e}(t)?String(t):"")}},[se]);var pe=Fg(function(e,t){var n=null!=t?t:e;return M(M({},K.value,e),K.label,n)}),me=function(e,t,n,r,o){return l.useMemo(function(){if(!n||!1===r)return e;var i=t.options,a=t.label,l=t.value,c=[],s="function"==typeof r,u=n.toUpperCase(),d=s?r:function(e,t){return o?Mg(t[o],u):t[i]?Mg(t["children"!==a?a:"label"],u):Mg(t[l],u)},f=s?function(e){return tg(e)}:function(e){return e};return e.forEach(function(e){if(e[i])if(d(n,f(e)))c.push(e);else{var t=e[i].filter(function(e){return d(n,f(e))});t.length&&c.push(D(D({},e),{},M({},i,t)))}else d(n,f(e))&&c.push(e)}),c},[e,r,o,n,t])}(l.useMemo(function(){if("tags"!==r)return te;var e=Fe(te);return Fe(se).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;(function(e){return J.has(e)})(n)||e.push(pe(n,t.label))}),e},[pe,te,J,se,r]),K,Y,X,C),ge=l.useMemo(function(){return"tags"!==r||!Y||me.some(function(e){return e[C||"value"]===Y})||me.some(function(e){return e[K.value]===Y})?me:[pe(Y)].concat(Fe(me))},[pe,C,r,me,Y,K]),he=function e(t){return Fe(t).sort(function(e,t){return w(e,t,{searchValue:Y})}).map(function(t){return Array.isArray(t.options)?D(D({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})},ve=l.useMemo(function(){return w?he(ge):ge},[ge,w,Y]),be=l.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=eg(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(n||!(c in t)){var i=t[l];o.push({key:Zm(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:Zm(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}})}(e,!1),o}(ve,{fieldNames:K,childrenAsData:U})},[ve,K,U]),ye=function(e){var t=ne(e);if(ie(t),A&&(t.length!==se.length||t.some(function(e,t){var n;return(null===(n=se[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=H?t:t.map(function(e){return e.value}),r=t.map(function(e){return tg(ue(e.value))});A(G?n:n[0],G?r:r[0])}},xe=Qe(l.useState(null),2),we=xe[0],Ce=xe[1],Se=Qe(l.useState(0),2),$e=Se[0],ke=Se[1],Ee=void 0!==O?O:"combobox"!==r,Oe=l.useCallback(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;ke(t),a&&"combobox"===r&&null!==e&&"keyboard"===o&&Ce(String(e))},[a,r]),Ie=function(e,t,n){var r=function(){var t,n=ue(e);return[H?{label:null==n?void 0:n[K.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,tg(n)]};if(t&&m){var o=Qe(r(),2),i=o[0],a=o[1];m(i,a)}else if(!t&&g&&"clear"!==n){var l=Qe(r(),2),c=l[0],s=l[1];g(c,s)}},Ne=Fg(function(e,t){var n,o=!G||t.selected;n=o?G?[].concat(Fe(se),[e]):[e]:se.filter(function(t){return t.value!==e}),ye(n),Ie(e,o),"combobox"===r?Ce(""):ag&&!p||(q(""),Ce(""))}),Re=l.useMemo(function(){var e=!1!==N&&!1!==v;return D(D({},Z),{},{flattenOptions:be,onActiveValue:Oe,defaultActiveFirstOption:Ee,onSelect:Ne,menuItemSelectedIcon:I,rawValues:fe,fieldNames:K,virtual:e,direction:R,listHeight:P,listItemHeight:B,childrenAsData:U,maxCount:_,optionRender:k})},[_,Z,be,Oe,Ee,Ne,I,fe,K,N,v,R,P,B,U,k]);return l.createElement(ng.Provider,{value:Re},l.createElement(lg,y({},W,{id:V,prefixCls:i,ref:t,omitDomProps:Ag,mode:r,displayValues:de,onDisplayValuesChange:function(e,t){ye(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach(function(e){Ie(e.value,!1,n)})},direction:R,searchValue:Y,onSearch:function(e,t){if(q(e),Ce(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&ye(e),null==d||d(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Fe(fe),[n])));ye(o),Ie(n,!0),q("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map(function(e){var t=ee.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat(Fe(fe),Fe(t))));ye(n),n.forEach(function(e){Ie(e,!0)})},dropdownMatchSelectWidth:v,OptionList:jg,emptyOptions:!be.length,activeValue:we,activeDescendantId:"".concat(V,"_list_").concat($e)})))}),Wg=_g;function Vg(e,t,n){return b({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}Wg.Option=sg,Wg.OptGroup=cg;const Gg=(e,t)=>t||e,Ug=()=>{const[,e]=Go(),[t]=hr("Empty"),n=new $r(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(null==t?void 0:t.description)||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Xg=()=>{const[,t]=Go(),[n]=hr("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:i,colorBgContainer:a}=t,{borderColor:c,shadowColor:s,contentColor:u}=e.useMemo(()=>({borderColor:new $r(r).onBackground(a).toHexString(),shadowColor:new $r(o).onBackground(a).toHexString(),contentColor:new $r(i).onBackground(a).toHexString()}),[r,o,i,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,(null==n?void 0:n.description)||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:c},l.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"}),l.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:u}))))};var Kg=Zo("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e;return(e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,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}}}}})(Io(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),Qg=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Yg=l.createElement(Ug,null),qg=l.createElement(Xg,null),Zg=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:i,description:a,children:c,imageStyle:s,style:u,classNames:d,styles:f}=e,p=Qg(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:m,direction:g,className:h,style:v,classNames:y,styles:x,image:w}=ao("empty"),C=m("empty",o),[S,$,k]=Kg(C),[E]=hr("Empty"),O=void 0!==a?a:null==E?void 0:E.description,I="string"==typeof O?O:"empty",N=null!==(t=null!=i?i:w)&&void 0!==t?t:Yg;let R=null;return R="string"==typeof N?l.createElement("img",{draggable:!1,alt:I,src:N}):N,S(l.createElement("div",Object.assign({className:b($,k,C,h,{[`${C}-normal`]:N===qg,[`${C}-rtl`]:"rtl"===g},n,r,y.root,null==d?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),v),null==f?void 0:f.root),u)},p),l.createElement("div",{className:b(`${C}-image`,y.image,null==d?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},s),x.image),null==f?void 0:f.image)},R),O&&l.createElement("div",{className:b(`${C}-description`,y.description,null==d?void 0:d.description),style:Object.assign(Object.assign({},x.description),null==f?void 0:f.description)},O),c&&l.createElement("div",{className:b(`${C}-footer`,y.footer,null==d?void 0:d.footer),style:Object.assign(Object.assign({},x.footer),null==f?void 0:f.footer)},c)))};Zg.PRESENTED_IMAGE_DEFAULT=Yg,Zg.PRESENTED_IMAGE_SIMPLE=qg;const Jg=t=>{const{componentName:n}=t,{getPrefixCls:r}=e.useContext(ro),o=r("empty");switch(n){case"Table":case"List":return e.createElement(Zg,{image:Zg.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return e.createElement(Zg,{image:Zg.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return e.createElement(Zg,null)}},eh=(e,t,n)=>{var r,o;const{variant:i,[e]:a}=l.useContext(ro),c=l.useContext(jf),s=null==a?void 0:a.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(o=null!==(r=null!=c?c:s)&&void 0!==r?r:i)&&void 0!==o?o:"outlined";return[u,no.includes(u)]};function th(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const nh=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"}},rh=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Xo(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:js},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:Ps},[`${a}${l}bottomLeft`]:{animationName:Ms},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:Ds},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},nh(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"},Uo),"&-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({},nh(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Hs(e,"slide-up"),Hs(e,"slide-down"),Rs(e,"move-up"),Rs(e,"move-down")]},oh=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:It(t),itemLineHeight:It(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},ih=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{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:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},ah=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",c=oh(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},ih(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${It(r)} 0`,lineHeight:It(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:It(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:It(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:It(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function lh(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[ah(e,t),o]}const ch=e=>{const{componentCls:t}=e,n=Io(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Io(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[lh(e),lh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},lh(r,"lg")]};function sh(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Xo(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:It(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:It(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{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 ${It(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:It(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${It(r)}`,"&:after":{display:"none"}}}}}}}function uh(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[sh(e),sh(Io(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${It(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},sh(Io(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const dh=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${It(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 ${It(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},fh=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},dh(e,t))}),ph=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},dh(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),fh(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),fh(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:`${It(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mh=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${It(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}}}},gh=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mh(e,t))}),hh=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mh(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),gh(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),gh(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:`${It(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),vh=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${It(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:`${It(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}}}}),bh=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${It(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},yh=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},bh(e,t))}),xh=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},bh(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),yh(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),yh(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${It(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),wh=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ph(e)),hh(e)),vh(e)),xh(e))}),Ch=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"}}}},Sh=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"}}}},$h=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Xo(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Ch(e)),Sh(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Uo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Uo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{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"}}),{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)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},kh=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},$h(e),uh(e),ch(e),rh(e),{[`${t}-rtl`]:{direction:"rtl"}},Ru(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var Eh=Zo("Select",(e,{rootPrefixCls:t})=>{const n=Io(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[kh(n),wh(n)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,w=2*l,C=2*r,S=Math.min(o-w,o-C),$=Math.min(i-w,i-C),k=Math.min(a-w,a-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:$,multipleItemHeightLG:k,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Oh={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"},Ih=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:Oh}))},Nh=l.forwardRef(Ih),Rh={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"},jh=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:Rh}))},Mh=l.forwardRef(jh),Ph={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"},Dh=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:Ph}))},Th=l.forwardRef(Dh);function Bh({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:i,hasFeedback:a,prefixCls:c,showSuffixIcon:s,feedbackIcon:u,showArrow:d,componentName:f}){const p=null!=t?t:l.createElement(za,null),m=t=>null!==e||a||d?l.createElement(l.Fragment,null,!1!==s&&t,a&&u):null;let g=null;if(void 0!==e)g=m(e);else if(o)g=m(l.createElement(Cl,{spin:!0}));else{const e=`${c}-suffix`;g=({open:t,showSearch:n})=>m(t&&n?l.createElement(Th,{className:e}):l.createElement(Mh,{className:e}))}let h=null;h=void 0!==n?n:i?l.createElement(Nh,null):null;let v=null;return v=void 0!==r?r:l.createElement(Aa,null),{clearIcon:p,suffixIcon:g,itemIcon:h,removeIcon:v}}function Lh(t){return e.useMemo(()=>{if(t)return(...n)=>e.createElement(Mf,{space:!0},t.apply(void 0,n))},[t])}function zh(e,t){return void 0!==t?t:null!==e}var Fh=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Hh="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ah=(e,t)=>{var n,r,o,i,a;const{prefixCls:c,bordered:s,className:u,rootClassName:d,getPopupContainer:f,popupClassName:p,dropdownClassName:m,listHeight:g=256,placement:h,listItemHeight:v,size:y,disabled:x,notFoundContent:w,status:C,builtinPlacements:S,dropdownMatchSelectWidth:$,popupMatchSelectWidth:k,direction:E,style:O,allowClear:I,variant:N,dropdownStyle:R,transitionName:j,tagRender:M,maxCount:P,prefix:D,dropdownRender:T,popupRender:B,onDropdownVisibleChange:L,onOpenChange:z,styles:F,classNames:H}=e,A=Fh(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:_,getPrefixCls:W,renderEmpty:V,direction:G,virtual:U,popupMatchSelectWidth:X,popupOverflow:K}=l.useContext(ro),{showSearch:Q,style:Y,styles:q,className:Z,classNames:J}=ao("select"),[,ee]=Go(),te=null!=v?v:null==ee?void 0:ee.controlHeight,ne=W("select",c),re=W(),oe=null!=E?E:G,{compactSize:ie,compactItemClassnames:ae}=Wc(ne,oe),[le,ce]=eh("select",N,s),se=cl(ne),[ue,de,fe]=Eh(ne,se),pe=l.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===Hh?"combobox":t},[e.mode]),me="multiple"===pe||"tags"===pe,ge=zh(e.suffixIcon,e.showArrow),he=null!==(n=null!=k?k:$)&&void 0!==n?n:X,ve=(null===(r=null==F?void 0:F.popup)||void 0===r?void 0:r.root)||(null===(o=q.popup)||void 0===o?void 0:o.root)||R,be=Lh(B||T),ye=z||L,{status:xe,hasFeedback:we,isFormItemInput:Ce,feedbackIcon:Se}=l.useContext(Nf),$e=Gg(xe,C);let ke;ke=void 0!==w?w:"combobox"===pe?null:(null==V?void 0:V("Select"))||l.createElement(Jg,{componentName:"Select"});const{suffixIcon:Ee,itemIcon:Oe,removeIcon:Ie,clearIcon:Ne}=Bh(Object.assign(Object.assign({},A),{multiple:me,hasFeedback:we,feedbackIcon:Se,showSuffixIcon:ge,prefixCls:ne,componentName:"Select"})),Re=!0===I?{clearIcon:Ne}:I,je=Ic(A,["suffixIcon","itemIcon"]),Me=b((null===(i=null==H?void 0:H.popup)||void 0===i?void 0:i.root)||(null===(a=null==J?void 0:J.popup)||void 0===a?void 0:a.root)||p||m,{[`${ne}-dropdown-${oe}`]:"rtl"===oe},d,J.root,null==H?void 0:H.root,fe,se,de),Pe=zc(e=>{var t;return null!==(t=null!=y?y:ie)&&void 0!==t?t:e}),De=l.useContext(so),Te=null!=x?x:De,Be=b({[`${ne}-lg`]:"large"===Pe,[`${ne}-sm`]:"small"===Pe,[`${ne}-rtl`]:"rtl"===oe,[`${ne}-${le}`]:ce,[`${ne}-in-form-item`]:Ce},Vg(ne,$e,we),ae,Z,u,J.root,null==H?void 0:H.root,d,fe,se,de),Le=l.useMemo(()=>void 0!==h?h:"rtl"===oe?"bottomRight":"bottomLeft",[h,oe]),[ze]=zl("SelectLike",null==ve?void 0:ve.zIndex);return ue(l.createElement(Wg,Object.assign({ref:t,virtual:U,showSearch:Q},je,{style:Object.assign(Object.assign(Object.assign(Object.assign({},q.root),null==F?void 0:F.root),Y),O),dropdownMatchSelectWidth:he,transitionName:Oc(re,"slide-up",j),builtinPlacements:th(S,K),listHeight:g,listItemHeight:te,mode:pe,prefixCls:ne,placement:Le,direction:oe,prefix:D,suffixIcon:Ee,menuItemSelectedIcon:Oe,removeIcon:Ie,allowClear:Re,notFoundContent:ke,className:Be,getPopupContainer:f||_,dropdownClassName:Me,disabled:Te,dropdownStyle:Object.assign(Object.assign({},ve),{zIndex:ze}),maxCount:me?P:void 0,tagRender:me?M:void 0,dropdownRender:be,onDropdownVisibleChange:ye})))},_h=l.forwardRef(Ah),Wh=Gp(_h,"dropdownAlign");_h.SECRET_COMBOBOX_MODE_DO_NOT_USE=Hh,_h.Option=sg,_h.OptGroup=cg,_h._InternalPanelDoNotUseOrYouWillBeFired=Wh;const{Option:Vh}=_h;function Gh(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const Uh=(e,t)=>{var n,r;const{prefixCls:o,className:i,popupClassName:a,dropdownClassName:c,children:s,dataSource:u,dropdownStyle:d,dropdownRender:f,popupRender:p,onDropdownVisibleChange:m,onOpenChange:g,styles:h,classNames:v}=e,y=k(s),x=(null===(n=null==h?void 0:h.popup)||void 0===n?void 0:n.root)||d,w=(null===(r=null==v?void 0:v.popup)||void 0===r?void 0:r.root)||a||c,C=p||f,S=g||m;let $;1===y.length&&l.isValidElement(y[0])&&!Gh(y[0])&&([$]=y);const E=$?()=>$:void 0;let O;O=y.length&&Gh(y[0])?s:u?u.map(e=>{if(l.isValidElement(e))return e;switch(typeof e){case"string":return l.createElement(Vh,{key:e,value:e},e);case"object":{const{value:t}=e;return l.createElement(Vh,{key:t,value:t},e.text)}default:return}}):[];const{getPrefixCls:I}=l.useContext(ro),N=I("select",o),[R]=zl("SelectLike",null==x?void 0:x.zIndex);return l.createElement(_h,Object.assign({ref:t,suffixIcon:null},Ic(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:N,classNames:{popup:{root:w},root:null==v?void 0:v.root},styles:{popup:{root:Object.assign(Object.assign({},x),{zIndex:R})},root:null==h?void 0:h.root},className:b(`${N}-auto-complete`,i),mode:_h.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:C,onOpenChange:S,getInputElement:E}),O)},Xh=l.forwardRef(Uh),{Option:Kh}=_h,Qh=Gp(Xh,"dropdownAlign",e=>Ic(e,["visible"])),Yh=Xh;Yh.Option=Kh,Yh._InternalPanelDoNotUseOrYouWillBeFired=Qh;const qh=["xxl","xl","lg","md","sm","xs"],Zh=()=>{const[,t]=Go(),n=(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)`}))((e=>{const t=e,n=[].concat(qh).reverse();return n.forEach((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}}),e})(t));return e.useMemo(()=>{const e=new Map;let t=-1,r={};return{responsiveMap:n,matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(n).forEach(([e,t])=>{const n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},r),{[e]:t}))},o=window.matchMedia(t);((e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)})(o,n),this.matchHandlers[t]={mql:o,listener:n},n(o)})},unregister(){Object.values(n).forEach(e=>{const t=this.matchHandlers[e];((e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)})(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[n])};function Jh(t=!0,n={}){const r=e.useRef(n),[,o]=Ol(),i=Zh();return Dt(()=>{const e=i.subscribe(e=>{r.current=e,t&&o()});return()=>i.unsubscribe(e)},[]),r.current}function ev(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,c=e.style;return l.createElement("div",{className:b("".concat(n,"-content"),a),style:c},l.createElement("div",{className:b("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var tv={shiftX:64,adjustY:1},nv={adjustX:1,shiftY:!0},rv=[0,0],ov={left:{points:["cr","cl"],overflow:nv,offset:[-4,0],targetOffset:rv},right:{points:["cl","cr"],overflow:nv,offset:[4,0],targetOffset:rv},top:{points:["bc","tc"],overflow:tv,offset:[0,-4],targetOffset:rv},bottom:{points:["tc","bc"],overflow:tv,offset:[0,4],targetOffset:rv},topLeft:{points:["bl","tl"],overflow:tv,offset:[0,-4],targetOffset:rv},leftTop:{points:["tr","tl"],overflow:nv,offset:[-4,0],targetOffset:rv},topRight:{points:["br","tr"],overflow:tv,offset:[0,-4],targetOffset:rv},rightTop:{points:["tl","tr"],overflow:nv,offset:[4,0],targetOffset:rv},bottomRight:{points:["tr","br"],overflow:tv,offset:[0,4],targetOffset:rv},rightBottom:{points:["bl","br"],overflow:nv,offset:[4,0],targetOffset:rv},bottomLeft:{points:["tl","bl"],overflow:tv,offset:[0,4],targetOffset:rv},leftBottom:{points:["br","bl"],overflow:nv,offset:[-4,0],targetOffset:rv}},iv=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],av=function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,a=t.mouseEnterDelay,c=void 0===a?0:a,s=t.mouseLeaveDelay,u=void 0===s?.1:s,d=t.overlayStyle,f=t.prefixCls,p=void 0===f?"rc-tooltip":f,m=t.children,g=t.onVisibleChange,h=t.afterVisibleChange,v=t.transitionName,x=t.animation,w=t.motion,C=t.placement,S=void 0===C?"right":C,$=t.align,k=void 0===$?{}:$,E=t.destroyTooltipOnHide,O=void 0!==E&&E,I=t.defaultVisible,N=t.getTooltipContainer,R=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,M=t.id,P=t.showArrow,T=void 0===P||P,B=t.classNames,L=t.styles,z=st(t,iv),F=id(M),H=e.useRef(null);e.useImperativeHandle(n,function(){return H.current});var A=D({},z);"visible"in t&&(A.popupVisible=t.visible);var _,W;return l.createElement(Km,y({popupClassName:b(r,null==B?void 0:B.root),prefixCls:p,popup:function(){return l.createElement(ev,{key:"content",prefixCls:p,id:F,bodyClassName:null==B?void 0:B.body,overlayInnerStyle:D(D({},R),null==L?void 0:L.body)},j)},action:i,builtinPlacements:ov,popupPlacement:S,ref:H,popupAlign:k,getPopupContainer:N,onPopupVisibleChange:g,afterPopupVisibleChange:h,popupTransitionName:v,popupAnimation:x,popupMotion:w,defaultPopupVisible:I,autoDestroy:O,mouseLeaveDelay:u,popupStyle:D(D({},d),null==L?void 0:L.root),mouseEnterDelay:c,arrow:T},A),(_=l.Children.only(m),W=D(D({},(null==_?void 0:_.props)||{}),{},{"aria-describedby":j?F:null}),l.cloneElement(m,W)))},lv=e.forwardRef(av);function cv(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,m=2*o-0,g=i,h=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:h,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const sv=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${It(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function uv(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function dv(e,t){return e?t:{}}function fv(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},sv(e,t,o)),{"&:before":{background:t}})]},dv(!!c.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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${It(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),dv(!!c.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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${It(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),dv(!!c.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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),dv(!!c.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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const pv={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"]}},mv={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"]}},gv=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function hv(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={},s=uv({contentRadius:i,limitVerticalRadius:!0});return Object.keys(pv).forEach(e=>{const i=r&&mv[e]||pv[e],u=Object.assign(Object.assign({},i),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,gv.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-s.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=s.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-s.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*s.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,s,t,n),a&&(u.htmlRegion="visibleFirst")}),c}const vv=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:s,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,m=t(a).add(p).add(f).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Xo(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":i,[`${n}-inner`]:{minWidth:g,minHeight:c,padding:`${It(e.calc(u).div(2).equal())} ${It(d)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:s,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),ti(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:"rtl"}})},fv(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},bv=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},uv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),cv(Io(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var yv=(e,t=!0)=>{const n=Zo("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=Io(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[vv(o),eu(e,"zoom-big-fast")]},bv,{resetStyle:!1,injectStyle:t});return n(e)};const xv=To.map(e=>`${e}-inverse`);function wv(e,t){const n=function(e,t=!0){return t?[].concat(Fe(xv),Fe(To)).includes(e):To.includes(e)}(t),r=b({[`${e}-${t}`]:t&&n}),o={},i={},a=(e=>e instanceof fs?e:new fs(e))(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Cv=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Sv=l.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:c,overlayInnerStyle:s,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:m,arrow:g=!0,title:h,overlay:v,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:w=!0,motion:C,getPopupContainer:S,placement:$="top",mouseEnterDelay:k=.1,mouseLeaveDelay:E=.1,overlayStyle:O,rootClassName:I,overlayClassName:N,styles:R,classNames:j}=e,M=Cv(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=!!g,[,D]=Go(),{getPopupContainer:T,getPrefixCls:B,direction:L,className:z,style:F,classNames:H,styles:A}=ao("tooltip"),_=rr(),W=l.useRef(null),V=()=>{var e;null===(e=W.current)||void 0===e||e.forceAlign()};l.useImperativeHandle(t,()=>{var e,t;return{forceAlign:V,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:null===(e=W.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=W.current)||void 0===t?void 0:t.popupElement}});const[G,U]=$o(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),X=!h&&!v&&0!==h,K=l.useMemo(()=>{var e,t;let n=x;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:x),y||hv({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:P?D.sizePopupArrow:0,borderRadius:D.borderRadius,offset:D.marginXXS,visibleFirst:!0})},[x,g,y,D]),Q=l.useMemo(()=>0===h?h:v||h||"",[v,h]),Y=l.createElement(Mf,{space:!0},"function"==typeof Q?Q():Q),q=B("tooltip",o),Z=B(),J=e["data-popover-inject"];let ee=G;"open"in e||"visible"in e||!X||(ee=!1);const te=l.isValidElement(u)&&!qa(u)?u:l.createElement("span",null,u),ne=te.props,re=ne.className&&"string"!=typeof ne.className?ne.className:b(ne.className,i||`${q}-open`),[oe,ie,ae]=yv(q,!J),le=wv(q,c),ce=le.arrowStyle,se=b(N,{[`${q}-rtl`]:"rtl"===L},le.className,I,ie,ae,z,H.root,null==j?void 0:j.root),ue=b(H.body,null==j?void 0:j.body),[de,fe]=zl("Tooltip",M.zIndex),pe=l.createElement(lv,Object.assign({},M,{zIndex:de,showArrow:P,placement:$,mouseEnterDelay:k,mouseLeaveDelay:E,prefixCls:q,classNames:{root:se,body:ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ce),A.root),F),O),null==R?void 0:R.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},A.body),s),null==R?void 0:R.body),le.overlayStyle)},getTooltipContainer:S||a||T,ref:W,builtinPlacements:K,overlay:Y,visible:ee,onVisibleChange:t=>{var n,r;U(!X&&t),X||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:f,arrowContent:l.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:Oc(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=m?m:!!p}),ee?Za(te,{className:re}):te);return oe(l.createElement(Dl.Provider,{value:fe},pe))}),$v=Sv;$v._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:c}=l.useContext(ro),s=c("tooltip",t),[u,d,f]=yv(s),p=wv(s,i),m=p.arrowStyle,g=Object.assign(Object.assign({},a),p.overlayStyle),h=b(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,p.className);return u(l.createElement("div",{className:h,style:m},l.createElement("div",{className:`${s}-arrow`}),l.createElement(ev,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:g}),o)))};var kv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ev=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:kv}))},Ov=l.forwardRef(Ev),Iv=sl.ESC,Nv=sl.TAB;var Rv=e.forwardRef(function(t,n){var r=t.overlay,o=t.arrow,i=t.prefixCls,a=e.useMemo(function(){return"function"==typeof r?r():r},[r]),l=U(n,Y(a));return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"".concat(i,"-arrow")}),e.cloneElement(a,{ref:K(a)?l:void 0}))}),jv={adjustX:1,adjustY:1},Mv=[0,0],Pv={topLeft:{points:["bl","tl"],overflow:jv,offset:[0,-4],targetOffset:Mv},top:{points:["bc","tc"],overflow:jv,offset:[0,-4],targetOffset:Mv},topRight:{points:["br","tr"],overflow:jv,offset:[0,-4],targetOffset:Mv},bottomLeft:{points:["tl","bl"],overflow:jv,offset:[0,4],targetOffset:Mv},bottom:{points:["tc","bc"],overflow:jv,offset:[0,4],targetOffset:Mv},bottomRight:{points:["tr","br"],overflow:jv,offset:[0,4],targetOffset:Mv}},Dv=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Tv(t,n){var r,o=t.arrow,i=void 0!==o&&o,a=t.prefixCls,c=void 0===a?"rc-dropdown":a,s=t.transitionName,u=t.animation,d=t.align,f=t.placement,p=void 0===f?"bottomLeft":f,m=t.placements,g=void 0===m?Pv:m,h=t.getPopupContainer,v=t.showAction,x=t.hideAction,w=t.overlayClassName,C=t.overlayStyle,S=t.visible,$=t.trigger,k=void 0===$?["hover"]:$,E=t.autoFocus,O=t.overlay,I=t.children,N=t.onVisibleChange,R=st(t,Dv),j=Qe(e.useState(),2),P=j[0],D=j[1],T="visible"in t?S:P,B=e.useRef(null),L=e.useRef(null),z=e.useRef(null);e.useImperativeHandle(n,function(){return B.current});var F=function(e){D(e),null==N||N(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=l.useRef(!1),c=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},s=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},u=function(e){switch(e.keyCode){case Iv:c();break;case Nv:var t=!1;a.current||(t=s()),t?e.preventDefault():c()}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&Ge(s,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}({visible:T,triggerRef:z,onVisibleChange:F,autoFocus:E,overlayRef:L});var H,A,_,W=function(){return e.createElement(Rv,{ref:L,overlay:O,prefixCls:c,arrow:i})},V=e.cloneElement(I,{className:b(null===(r=I.props)||void 0===r?void 0:r.className,T&&(H=t.openClassName,void 0!==H?H:"".concat(c,"-open"))),ref:K(I)?U(z,Y(I)):void 0}),G=x;return G||-1===k.indexOf("contextMenu")||(G=["click"]),e.createElement(Km,y({builtinPlacements:g},R,{prefixCls:c,ref:B,popupClassName:b(w,M({},"".concat(c,"-show-arrow"),i)),popupStyle:C,action:k,showAction:v,hideAction:G,popupPlacement:p,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:T,stretch:(A=t.minOverlayWidthMatchTrigger,_=t.alignPoint,("minOverlayWidthMatchTrigger"in t?A:!_)?"minWidth":""),popup:"function"==typeof O?W:W(),onPopupVisibleChange:F,onPopupClick:function(e){var n=t.onOverlayClick;D(!1),n&&n(e)},getPopupContainer:h}),V)}var Bv=e.forwardRef(Tv);var Lv=l.createContext(null);function zv(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Fv(e){return zv(l.useContext(Lv),e)}var Hv=["children","locked"],Av=l.createContext(null);function _v(e){var t=e.children,n=e.locked,r=st(e,Hv),o=l.useContext(Av),i=W(function(){return e=r,t=D({},o),Object.keys(e).forEach(function(n){var r=e[n];void 0!==r&&(t[n]=r)}),t;var e,t},[o,r],function(e,t){return!(n||e[0]===t[0]&&ut(e[1],t[1],!0))});return l.createElement(Av.Provider,{value:i},t)}var Wv=[],Vv=l.createContext(null);function Gv(){return l.useContext(Vv)}var Uv=l.createContext(Wv);function Xv(e){var t=l.useContext(Uv);return l.useMemo(function(){return void 0!==e?[].concat(Fe(t),[e]):t},[t,e])}var Kv=l.createContext(null),Qv=l.createContext({});function Yv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Nc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var qv=sl.LEFT,Zv=sl.RIGHT,Jv=sl.UP,eb=sl.DOWN,tb=sl.ENTER,nb=sl.ESC,rb=sl.HOME,ob=sl.END,ib=[Jv,eb,qv,Zv];function ab(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Fe(e.querySelectorAll("*")).filter(function(e){return Yv(e,t)});return Yv(e,t)&&n.unshift(e),n}(e,!0);return n.filter(function(e){return t.has(e)})}function lb(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=ab(e,t),i=o.length,a=o.findIndex(function(e){return n===e});return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var cb=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var i=document.querySelector("[data-menu-id='".concat(zv(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))}),{elements:n,key2element:r,element2key:o}};function sb(e,t,n,r,o,i,a,c,s,u){var d=l.useRef(),f=l.useRef();f.current=t;var p=function(){Ge.cancel(d.current)};return l.useEffect(function(){return function(){p()}},[]),function(l){var m=l.which;if([].concat(ib,[tb,nb,rb,ob]).includes(m)){var g=i(),h=cb(g,r),v=h,b=v.elements,y=v.key2element,x=v.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),C=x.get(w),S=function(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if("inline"===e&&r===tb)return{inlineTrigger:!0};var s=M(M({},Jv,i),eb,a),u=M(M(M(M({},qv,n?a:i),Zv,n?i:a),eb,l),tb,l),d=M(M(M(M(M(M({},Jv,i),eb,a),tb,l),nb,c),qv,n?l:c),Zv,n?c:l);switch(null===(o={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===a(C,!0).length,n,m);if(!S&&m!==rb&&m!==ob)return;(ib.includes(m)||[rb,ob].includes(m))&&l.preventDefault();var $=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);c(r),p(),d.current=Ge(function(){f.current===r&&t.focus()})}};if([rb,ob].includes(m)||S.sibling||!w){var k,E,O=ab(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):o.current,b);E=m===rb?O[0]:m===ob?O[O.length-1]:lb(k,b,w,S.offset),$(E)}else if(S.inlineTrigger)s(C);else if(S.offset>0)s(C,!0),p(),d.current=Ge(function(){h=cb(g,r);var e=w.getAttribute("aria-controls"),t=lb(document.getElementById(e),h.elements);$(t)},5);else if(S.offset<0){var I=a(C,!0),N=I[I.length-2],R=y.get(N);s(N,!1),$(R)}}null==u||u(l)}}var ub="__RC_UTIL_PATH_SPLIT__",db=function(e){return e.join(ub)},fb="rc-menu-more";function pb(){var t=Qe(l.useState({}),2)[1],n=e.useRef(new Map),r=e.useRef(new Map),o=Qe(l.useState([]),2),i=o[0],a=o[1],c=e.useRef(0),s=e.useRef(!1),u=e.useCallback(function(e,o){var i=db(o);r.current.set(i,e),n.current.set(e,i),c.current+=1;var a,l=c.current;a=function(){l===c.current&&(s.current||t({}))},Promise.resolve().then(a)},[]),d=e.useCallback(function(e,t){var o=db(t);r.current.delete(o),n.current.delete(e)},[]),f=e.useCallback(function(e){a(e)},[]),p=e.useCallback(function(e,t){var r=n.current.get(e)||"",o=r.split(ub);return t&&i.includes(o[0])&&o.unshift(fb),o},[i]),m=e.useCallback(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return p(e,!0).includes(t)})},[p]),g=e.useCallback(function(e){var t="".concat(n.current.get(e)).concat(ub),o=new Set;return Fe(r.current.keys()).forEach(function(e){e.startsWith(t)&&o.add(r.current.get(e))}),o},[]);return l.useEffect(function(){return function(){s.current=!0}},[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:m,getKeyPath:p,getKeys:function(){var e=Fe(n.current.keys());return i.length&&e.push(fb),e},getSubPathKeys:g}}function mb(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return e?n:void 0}var gb=Math.random().toFixed(5).toString().slice(2),hb=0;function vb(e,t,n,r){var o=l.useContext(Av),i=o.activeKey,a=o.onActive,c=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},s.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),c(e)}),s}function bb(e){var t=l.useContext(Av),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}function yb(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=l.createElement(n,D({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var xb=["item"];function wb(e){var t=e.item,n=st(e,xb);return Object.defineProperty(n,"item",{get:function(){return R(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Cb=["title","attribute","elementRef"],Sb=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],$b=["active"],kb=function(){Ee(t,l.Component);var e=Re(t);function t(){return Ce(this,t),e.apply(this,arguments)}return $e(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Ic(st(e,Cb),["eventKey","popupClassName","popupOffset","onTitleClick"]);return R(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(mm.Item,y({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),t}(),Eb=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var i=e.disabled,a=e.itemIcon,c=e.children,s=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,p=e.onKeyDown,m=e.onFocus,g=st(e,Sb),h=Fv(o),v=l.useContext(Av),x=v.prefixCls,w=v.onItemClick,C=v.disabled,S=v.overflowDisabled,$=v.itemIcon,k=v.selectedKeys,E=v.onActive,O=l.useContext(Qv)._internalRenderMenuItem,I="".concat(x,"-item"),N=l.useRef(),R=l.useRef(),j=C||i,P=X(t,R),T=Xv(o),B=function(e){return{key:o,keyPath:Fe(T).reverse(),item:N.current,domEvent:e}},L=a||$,z=vb(o,j,u,d),F=z.active,H=st(z,$b),A=k.includes(o),_=bb(T.length),W={};"option"===e.role&&(W["aria-selected"]=A);var V=l.createElement(kb,y({ref:N,elementRef:P,role:null===s?"none":s||"menuitem",tabIndex:i?null:-1,"data-menu-id":S&&h?null:h},Ic(g,["extra"]),H,W,{component:"li","aria-disabled":i,style:D(D({},_),n),className:b(I,M(M(M({},"".concat(I,"-active"),F),"".concat(I,"-selected"),A),"".concat(I,"-disabled"),j),r),onClick:function(e){if(!j){var t=B(e);null==f||f(wb(t)),w(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===sl.ENTER){var t=B(e);null==f||f(wb(t)),w(t)}},onFocus:function(e){E(o),null==m||m(e)}}),c,l.createElement(yb,{props:D(D({},e),{},{isSelected:A}),icon:L}));return O&&(V=O(V,e,{selected:A})),V});function Ob(e,t){var n=e.eventKey,r=Gv(),o=Xv(n);return l.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:l.createElement(Eb,y({},e,{ref:t}))}var Ib=l.forwardRef(Ob),Nb=["className","children"],Rb=function(e,t){var n=e.className,r=e.children,o=st(e,Nb),i=l.useContext(Av),a=i.prefixCls,c=i.mode,s=i.rtl;return l.createElement("ul",y({className:b(a,s&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},jb=l.forwardRef(Rb);function Mb(e,t){return k(e).map(function(e,n){if(l.isValidElement(e)){var r,o,i=e.key,a=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==a&&(a="tmp_key-".concat([].concat(Fe(t),[n]).join("-")));var c={key:a,eventKey:a};return l.cloneElement(e,c)}return e})}jb.displayName="SubMenuList";var Pb={adjustX:1,adjustY:1},Db={topLeft:{points:["bl","tl"],overflow:Pb},topRight:{points:["br","tr"],overflow:Pb},bottomLeft:{points:["tl","bl"],overflow:Pb},bottomRight:{points:["tr","br"],overflow:Pb},leftTop:{points:["tr","tl"],overflow:Pb},leftBottom:{points:["br","bl"],overflow:Pb},rightTop:{points:["tl","tr"],overflow:Pb},rightBottom:{points:["bl","br"],overflow:Pb}},Tb={topLeft:{points:["bl","tl"],overflow:Pb},topRight:{points:["br","tr"],overflow:Pb},bottomLeft:{points:["tl","bl"],overflow:Pb},bottomRight:{points:["tr","br"],overflow:Pb},rightTop:{points:["tr","tl"],overflow:Pb},rightBottom:{points:["br","bl"],overflow:Pb},leftTop:{points:["tl","tr"],overflow:Pb},leftBottom:{points:["bl","br"],overflow:Pb}};function Bb(e,t,n){return t||(n?n[e]||n.other:void 0)}var Lb={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function zb(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=l.useContext(Av),p=f.getPopupContainer,m=f.rtl,g=f.subMenuOpenDelay,h=f.subMenuCloseDelay,v=f.builtinPlacements,y=f.triggerSubMenuAction,x=f.forceSubMenuRender,w=f.rootClassName,C=f.motion,S=f.defaultMotions,$=Qe(l.useState(!1),2),k=$[0],E=$[1],O=D(D({},m?Tb:Db),v),I=Lb[u],N=Bb(u,C,S),R=l.useRef(N);"inline"!==u&&(R.current=N);var j=D(D({},R.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=l.useRef();return l.useEffect(function(){return P.current=Ge(function(){E(n)}),function(){Ge.cancel(P.current)}},[n]),l.createElement(Km,{prefixCls:t,popupClassName:b("".concat(t,"-popup"),M({},"".concat(t,"-rtl"),m),a,w),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:O,popupPlacement:I,popupVisible:k,popup:o,popupStyle:i,popupAlign:c&&{offset:c},action:s?[]:[y],mouseEnterDelay:g,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:x,popupMotion:j,fresh:!0},r)}function Fb(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=l.useContext(Av),c=a.prefixCls,s=a.forceSubMenuRender,u=a.motion,d=a.defaultMotions,f=a.mode,p=l.useRef(!1);p.current=f===i;var m=Qe(l.useState(!p.current),2),g=m[0],h=m[1],v=!!p.current&&n;l.useEffect(function(){p.current&&h(!1)},[f]);var b=D({},Bb(i,u,d));r.length>1&&(b.motionAppear=!1);var x=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||h(!0),null==x?void 0:x(e)},g?null:l.createElement(_v,{mode:i,locked:!p.current},l.createElement(Ai,y({visible:v},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(e){var n=e.className,r=e.style;return l.createElement(jb,{id:t,className:n,style:r},o)}))}var Hb=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ab=["active"],_b=l.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,c=e.internalPopupClose,s=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,p=e.popupOffset,m=e.popupStyle,g=e.onClick,h=e.onMouseEnter,v=e.onMouseLeave,x=e.onTitleClick,w=e.onTitleMouseEnter,C=e.onTitleMouseLeave,S=st(e,Hb),$=Fv(i),k=l.useContext(Av),E=k.prefixCls,O=k.mode,I=k.openKeys,N=k.disabled,R=k.overflowDisabled,j=k.activeKey,P=k.selectedKeys,T=k.itemIcon,B=k.expandIcon,L=k.onItemClick,z=k.onOpenChange,F=k.onActive,H=l.useContext(Qv)._internalRenderSubMenuItem,A=l.useContext(Kv).isSubPathKey,_=Xv(),W="".concat(E,"-submenu"),V=N||a,G=l.useRef(),U=l.useRef(),X=null!=u?u:T,K=null!=d?d:B,Q=I.includes(i),Y=!R&&Q,q=A(P,i),Z=vb(i,V,w,C),J=Z.active,ee=st(Z,Ab),te=Qe(l.useState(!1),2),ne=te[0],re=te[1],oe=function(e){V||re(e)},ie=l.useMemo(function(){return J||"inline"!==O&&(ne||A([j],i))},[O,J,j,ne,i,A]),ae=bb(_.length),le=mb(function(e){null==g||g(wb(e)),L(e)}),ce=$&&"".concat($,"-popup"),se=l.useMemo(function(){return l.createElement(yb,{icon:"horizontal"!==O?K:void 0,props:D(D({},e),{},{isOpen:Y,isSubMenu:!0})},l.createElement("i",{className:"".concat(W,"-arrow")}))},[O,K,e,Y,W]),ue=l.createElement("div",y({role:"menuitem",style:ae,className:"".concat(W,"-title"),tabIndex:V?null:-1,ref:G,title:"string"==typeof o?o:null,"data-menu-id":R&&$?null:$,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":V,onClick:function(e){V||(null==x||x({key:i,domEvent:e}),"inline"===O&&z(i,!Q))},onFocus:function(){F(i)}},ee),o,se),de=l.useRef(O);if("inline"!==O&&_.length>1?de.current="vertical":de.current=O,!R){var fe=de.current;ue=l.createElement(zb,{mode:fe,prefixCls:W,visible:!c&&Y&&"inline"!==O,popupClassName:f,popupOffset:p,popupStyle:m,popup:l.createElement(_v,{mode:"horizontal"===fe?"vertical":fe},l.createElement(jb,{id:ce,ref:U},s)),disabled:V,onVisibleChange:function(e){"inline"!==O&&z(i,e)}},ue)}var pe=l.createElement(mm.Item,y({ref:t,role:"none"},S,{component:"li",style:n,className:b(W,"".concat(W,"-").concat(O),r,M(M(M(M({},"".concat(W,"-open"),Y),"".concat(W,"-active"),ie),"".concat(W,"-selected"),q),"".concat(W,"-disabled"),V)),onMouseEnter:function(e){oe(!0),null==h||h({key:i,domEvent:e})},onMouseLeave:function(e){oe(!1),null==v||v({key:i,domEvent:e})}}),ue,!R&&l.createElement(Fb,{id:ce,open:Y,keyPath:_},s));return H&&(pe=H(pe,e,{selected:q,active:ie,open:Y,disabled:V})),l.createElement(_v,{onItemClick:le,mode:"horizontal"===O?"vertical":O,itemIcon:X,expandIcon:K},pe)}),Wb=l.forwardRef(function(e,t){var n,r=e.eventKey,o=e.children,i=Xv(r),a=Mb(o,i),c=Gv();return l.useEffect(function(){if(c)return c.registerPath(r,i),function(){c.unregisterPath(r,i)}},[i]),n=c?a:l.createElement(_b,y({ref:t},e),a),l.createElement(Uv.Provider,{value:i},n)});function Vb(e){var t=e.className,n=e.style,r=l.useContext(Av).prefixCls;return Gv()?null:l.createElement("li",{role:"separator",className:b("".concat(r,"-item-divider"),t),style:n})}var Gb=["className","title","eventKey","children"],Ub=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=st(e,Gb),a=l.useContext(Av).prefixCls,c="".concat(a,"-item-group");return l.createElement("li",y({ref:t,role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:b(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof r?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),Xb=l.forwardRef(function(e,t){var n=e.eventKey,r=Mb(e.children,Xv(n));return Gv()?r:l.createElement(Ub,y({ref:t},Ic(e,["warnKey"])),r)}),Kb=["label","children","key","type","extra"];function Qb(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(e,c){if(e&&"object"===x(e)){var s=e,u=s.label,d=s.children,f=s.key,p=s.type,m=s.extra,g=st(s,Kb),h=null!=f?f:"tmp-".concat(c);return d||"group"===p?"group"===p?l.createElement(o,y({key:h},g,{title:u}),Qb(d,t,n)):l.createElement(i,y({key:h},g,{title:u}),Qb(d,t,n)):"divider"===p?l.createElement(a,y({key:h},g)):l.createElement(r,y({key:h},g,{extra:m}),u,(!!m||0===m)&&l.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(e){return e})}function Yb(e,t,n,r,o){var i=e,a=D({divider:Vb,item:Ib,group:Xb,submenu:Wb},r);return t&&(i=Qb(t,a,o)),Mb(i,n)}var qb=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Zb=[],Jb=l.forwardRef(function(t,n){var o,i=t,a=i.prefixCls,c=void 0===a?"rc-menu":a,s=i.rootClassName,u=i.style,d=i.className,f=i.tabIndex,p=void 0===f?0:f,m=i.items,g=i.children,h=i.direction,v=i.id,x=i.mode,w=void 0===x?"vertical":x,C=i.inlineCollapsed,S=i.disabled,$=i.disabledOverflow,k=i.subMenuOpenDelay,E=void 0===k?.1:k,O=i.subMenuCloseDelay,I=void 0===O?.1:O,N=i.forceSubMenuRender,R=i.defaultOpenKeys,j=i.openKeys,P=i.activeKey,T=i.defaultActiveFirst,B=i.selectable,L=void 0===B||B,z=i.multiple,F=void 0!==z&&z,H=i.defaultSelectedKeys,A=i.selectedKeys,_=i.onSelect,W=i.onDeselect,V=i.inlineIndent,G=void 0===V?24:V,U=i.motion,X=i.defaultMotions,K=i.triggerSubMenuAction,Q=void 0===K?"hover":K,Y=i.builtinPlacements,q=i.itemIcon,Z=i.expandIcon,J=i.overflowedIndicator,ee=void 0===J?"...":J,te=i.overflowedIndicatorPopupClassName,ne=i.getPopupContainer,re=i.onClick,oe=i.onOpenChange,ie=i.onKeyDown;i.openAnimation,i.openTransitionName;var ae=i._internalRenderMenuItem,le=i._internalRenderSubMenuItem,ce=i._internalComponents,se=st(i,qb),ue=Qe(l.useMemo(function(){return[Yb(g,m,Zb,ce,c),Yb(g,m,Zb,{},c)]},[g,m,ce]),2),de=ue[0],fe=ue[1],pe=Qe(l.useState(!1),2),me=pe[0],ge=pe[1],he=l.useRef(),ve=function(e){var t=Qe($o(e,{value:e}),2),n=t[0],r=t[1];return l.useEffect(function(){hb+=1;var e="".concat(gb,"-").concat(hb);r("rc-menu-uuid-".concat(e))},[]),n}(v),be="rtl"===h,ye=$o(R,{value:j,postState:function(e){return e||Zb}}),xe=Qe(ye,2),we=xe[0],Ce=xe[1],Se=function(e){function t(){Ce(e),null==oe||oe(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?r.flushSync(t):t()},$e=Qe(l.useState(we),2),ke=$e[0],Ee=$e[1],Oe=l.useRef(!1),Ie=Qe(l.useMemo(function(){return"inline"!==w&&"vertical"!==w||!C?[w,!1]:["vertical",C]},[w,C]),2),Ne=Ie[0],Re=Ie[1],je="inline"===Ne,Me=Qe(l.useState(Ne),2),Pe=Me[0],De=Me[1],Te=Qe(l.useState(Re),2),Be=Te[0],Le=Te[1];l.useEffect(function(){De(Ne),Le(Re),Oe.current&&(je?Ce(ke):Se(Zb))},[Ne,Re]);var ze=Qe(l.useState(0),2),He=ze[0],Ae=ze[1],_e=He>=de.length-1||"horizontal"!==Pe||$;l.useEffect(function(){je&&Ee(we)},[we]),l.useEffect(function(){return Oe.current=!0,function(){Oe.current=!1}},[]);var We=pb(),Ve=We.registerPath,Ge=We.unregisterPath,Ue=We.refreshOverflowKeys,Xe=We.isSubPathKey,Ke=We.getKeyPath,Ye=We.getKeys,qe=We.getSubPathKeys,Ze=l.useMemo(function(){return{registerPath:Ve,unregisterPath:Ge}},[Ve,Ge]),Je=l.useMemo(function(){return{isSubPathKey:Xe}},[Xe]);l.useEffect(function(){Ue(_e?Zb:de.slice(He+1).map(function(e){return e.key}))},[He,_e]);var et=Qe($o(P||T&&(null===(o=de[0])||void 0===o?void 0:o.key),{value:P}),2),tt=et[0],nt=et[1],rt=mb(function(e){nt(e)}),ot=mb(function(){nt(void 0)});e.useImperativeHandle(n,function(){return{list:he.current,focus:function(e){var t,n,r=Ye(),o=cb(r,ve),i=o.elements,a=o.key2element,l=o.element2key,c=ab(he.current,i),s=null!=tt?tt:c[0]?l.get(c[0]):null===(t=de.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}});var it=$o(H||[],{value:A,postState:function(e){return Array.isArray(e)?e:null==e?Zb:[e]}}),at=Qe(it,2),lt=at[0],ct=at[1],dt=mb(function(e){null==re||re(wb(e)),function(e){if(L){var t,n=e.key,r=lt.includes(n);t=F?r?lt.filter(function(e){return e!==n}):[].concat(Fe(lt),[n]):[n],ct(t);var o=D(D({},e),{},{selectedKeys:t});r?null==W||W(o):null==_||_(o)}!F&&we.length&&"inline"!==Pe&&Se(Zb)}(e)}),ft=mb(function(e,t){var n=we.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==Pe){var r=qe(e);n=n.filter(function(e){return!r.has(e)})}ut(we,n,!0)||Se(n,!0)}),pt=sb(Pe,tt,be,ve,he,Ye,Ke,nt,function(e,t){var n=null!=t?t:!we.includes(e);ft(e,n)},ie);l.useEffect(function(){ge(!0)},[]);var mt=l.useMemo(function(){return{_internalRenderMenuItem:ae,_internalRenderSubMenuItem:le}},[ae,le]),gt="horizontal"!==Pe||$?de:de.map(function(e,t){return l.createElement(_v,{key:e.key,overflowDisabled:t>He},e)}),ht=l.createElement(mm,y({id:v,ref:he,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:Ib,className:b(c,"".concat(c,"-root"),"".concat(c,"-").concat(Pe),d,M(M({},"".concat(c,"-inline-collapsed"),Be),"".concat(c,"-rtl"),be),s),dir:h,style:u,role:"menu",tabIndex:p,data:gt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?de.slice(-t):null;return l.createElement(Wb,{eventKey:fb,title:ee,disabled:_e,internalPopupClose:0===t,popupClassName:te},n)},maxCount:"horizontal"!==Pe||$?mm.INVALIDATE:mm.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ae(e)},onKeyDown:pt},se));return l.createElement(Qv.Provider,{value:mt},l.createElement(Lv.Provider,{value:ve},l.createElement(_v,{prefixCls:c,rootClassName:s,mode:Pe,openKeys:we,rtl:be,disabled:S,motion:me?U:null,defaultMotions:me?X:null,activeKey:tt,onActive:rt,onInactive:ot,selectedKeys:lt,inlineIndent:G,subMenuOpenDelay:E,subMenuCloseDelay:I,forceSubMenuRender:N,builtinPlacements:Y,triggerSubMenuAction:Q,getPopupContainer:ne,itemIcon:q,expandIcon:Z,onItemClick:dt,onOpenChange:ft},l.createElement(Kv.Provider,{value:Je},ht),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(Vv.Provider,{value:Ze},fe)))))}),ey=Jb;ey.Item=Ib,ey.SubMenu=Wb,ey.ItemGroup=Xb,ey.Divider=Vb,window&&window.__rest;const ty=l.createContext({});var ny={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ry=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:ny}))},oy=l.forwardRef(ry);const iy=e.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ay=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 ly=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=ay(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=l.useContext(ro),a=i("menu",t),c=b({[`${a}-item-divider-dashed`]:!!r},n);return l.createElement(Vb,Object.assign({className:c},o))},cy=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a,extra:c}=e,{prefixCls:s,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=l.useContext(iy),{siderCollapsed:m}=l.useContext(ty);let g=i;void 0===i?g=u?r:"":!1===i&&(g="");const h={title:g};m||p||(h.title=null,h.open=!1);const v=k(r).length;let y=l.createElement(Ib,Object.assign({},Ic(e,["title","icon","danger"]),{className:b({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?v+1:v)},n),title:"string"==typeof i?i:void 0}),Za(o,{className:b(l.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:void 0,`${s}-item-icon`)}),(e=>{const t=null==r?void 0:r[0],n=l.createElement("span",{className:b(`${s}-title-content`,{[`${s}-title-content-with-extra`]:!!c||0===c})},r);return(!o||l.isValidElement(r)&&"span"===r.type)&&r&&e&&u&&"string"==typeof t?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):n})(p));return f||(y=l.createElement($v,Object.assign({},h,{placement:"rtl"===d?"left":"right",classNames:{root:`${s}-inline-collapsed-tooltip`}}),y)),y};var sy=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 uy=l.createContext(null),dy=l.forwardRef((e,t)=>{const{children:n}=e,r=sy(e,["children"]),o=l.useContext(uy),i=l.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=function(e){return Q(e)&&K(e)}(n),c=X(t,a?Y(n):null);return l.createElement(uy.Provider,{value:i},l.createElement(Mf,{space:!0},a?l.cloneElement(n,{ref:c}):n))}),fy=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${It(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},py=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${It(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${It(t)})`}}}}),my=e=>Ko(e),gy=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:c,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:h,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:x,itemDisabledColor:w,dangerItemColor:C,dangerItemHoverColor:S,dangerItemSelectedColor:$,dangerItemActiveBg:k,dangerItemSelectedBg:E,popupBg:O,itemHoverBg:I,itemActiveBg:N,menuSubMenuBg:R,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:P,horizontalItemHoverBg:D}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},my(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},my(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${It(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:D,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${It(f)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${It(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(",")}}}}}},hy=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:It(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:It(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},vy=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:s,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,v={height:r,lineHeight:It(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},hy(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},hy(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${It(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${It(e.calc(h).div(2).equal())} - ${It(s)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:It(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Uo),{paddingInline:p})}}]},by=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},yy=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${It(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${It(a)})`}}}}},xy=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:h,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xo(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${It(l)} ${It(c)}`,fontSize:b,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),by(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${It(e.calc(r).mul(2).equal())} ${It(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},by(e)),yy(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),yy(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${It(g)})`},"&::after":{transform:`rotate(45deg) translateX(${It(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${It(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${It(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${It(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},wy=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:w,fontSize:C,controlHeightSM:S,fontSizeLG:$,colorTextLightSolid:k,colorErrorHover:E}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,I=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,N=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,R=new $r(k).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:I,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*v+"px",iconSize:C,iconMarginInlineEnd:S-C,collapsedIconSize:$,groupTitleFontSize:C,darkItemDisabledColor:new $r(k).setA(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:k,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${I}px)`:`calc(100% - ${2*N}px)`}};const Cy=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=l.useContext(iy),{prefixCls:c,inlineCollapsed:s,theme:u}=a,d=Xv();let f;if(r){const e=l.isValidElement(o)&&"span"===o.type;f=l.createElement(l.Fragment,null,Za(r,{className:b(l.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:void 0,`${c}-item-icon`)}),e?o:l.createElement("span",{className:`${c}-title-content`},o))}else f=s&&!d.length&&o&&"string"==typeof o?l.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):l.createElement("span",{className:`${c}-title-content`},o);const p=l.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[m]=zl("Menu");return l.createElement(iy.Provider,{value:p},l.createElement(Wb,Object.assign({},Ic(e,["icon"]),{title:f,popupClassName:b(c,n,`${c}-${i||u}`),popupStyle:Object.assign({zIndex:m},e.popupStyle)})))};var Sy=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 $y(e){return null===e||!1===e}const ky={item:cy,submenu:Cy,divider:ly},Ey=e.forwardRef((e,t)=>{var n;const r=l.useContext(uy),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:c,menu:s}=l.useContext(ro),u=i(),{prefixCls:d,className:f,style:p,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:v,siderCollapsed:y,rootClassName:x,mode:w,selectable:C,onClick:S,overflowedIndicatorPopupClassName:$}=e,k=Ic(Sy(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(n=o.validator)||void 0===n||n.call(o,{mode:w});const E=wo((...e)=>{var t;null==S||S.apply(void 0,e),null===(t=o.onClick)||void 0===t||t.call(o)}),O=o.mode||w,I=null!=C?C:o.selectable,N=null!=v?v:y,R={horizontal:{motionName:`${u}-slide-up`},inline:Ec(u),other:{motionName:`${u}-zoom-big`}},j=i("menu",d||o.prefixCls),M=cl(j),[P,D,T]=((e,t=e,n=!0)=>{const r=Zo("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:h,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(r).div(7).mul(5).equal(),w=Io(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),C=Io(w,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:h,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[xy(w),fy(w),vy(w),gy(w,"light"),gy(C,"dark"),py(w),hs(w),Hs(w,"slide-up"),Hs(w,"slide-down"),eu(w,"zoom-big")]},wy,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return r(e,t)})(j,M,!r),B=b(`${j}-${m}`,null==s?void 0:s.className,f),L=l.useMemo(()=>{var e,t;if("function"==typeof g||$y(g))return g||null;if("function"==typeof o.expandIcon||$y(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||$y(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const n=null!==(e=null!=g?g:null==o?void 0:o.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return Za(n,{className:b(`${j}-submenu-expand-icon`,l.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})},[g,null==o?void 0:o.expandIcon,null==s?void 0:s.expandIcon,j]),z=l.useMemo(()=>({prefixCls:j,inlineCollapsed:N||!1,direction:c,firstLevel:!0,theme:m,mode:O,disableMenuItemTitleTooltip:h}),[j,N,c,h,m]);return P(l.createElement(uy.Provider,{value:null},l.createElement(iy.Provider,{value:z},l.createElement(ey,Object.assign({getPopupContainer:a,overflowedIndicator:l.createElement(oy,null),overflowedIndicatorPopupClassName:b(j,`${j}-${m}`,$),mode:O,selectable:I,onClick:E},k,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==s?void 0:s.style),p),className:B,prefixCls:j,direction:c,defaultMotions:R,expandIcon:L,ref:t,rootClassName:b(x,D,o.rootClassName,T,M),_internalComponents:ky})))))}),Oy=e.forwardRef((t,n)=>{const r=e.useRef(null),o=l.useContext(ty);return e.useImperativeHandle(n,()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}})),l.createElement(Ey,Object.assign({ref:r},t,o))});Oy.Item=cy,Oy.SubMenu=Cy,Oy.Divider=ly,Oy.ItemGroup=Xb;const Iy=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Ny=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:js},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Ps},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ms},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ds}}},fv(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Xo(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Qo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${It(s)} ${It(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${It(s)} ${It(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Qo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${It(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${It(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Hs(e,"slide-up"),Hs(e,"slide-down"),Rs(e,"move-up"),Rs(e,"move-down"),eu(e,"zoom-big")]]};var Ry=Zo("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=Io(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Ny(i),Iy(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},uv({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),cv(e)),{resetStyle:!1});const jy=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:c,dropdownRender:s,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:p,overlayStyle:m,open:g,onOpenChange:h,visible:v,onVisibleChange:y,mouseEnterDelay:x=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:C=!0,placement:S="",overlay:$,transitionName:k,destroyOnHidden:E,destroyPopupOnHide:O}=e,{getPopupContainer:I,getPrefixCls:N,direction:R,dropdown:j}=l.useContext(ro),M=u||s;rr();const P=l.useMemo(()=>{const e=N();return void 0!==k?k:S.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[N,S,k]),D=l.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:"rtl"===R?"bottomRight":"bottomLeft",[S,R]),T=N("dropdown",o),B=cl(T),[L,z,F]=Ry(T,B),[,H]=Go(),A=l.Children.only("object"!=typeof(_=i)&&"function"!=typeof _||null===_?l.createElement("span",null,i):i);var _;const W=Za(A,{className:b(`${T}-trigger`,{[`${T}-rtl`]:"rtl"===R},A.props.className),disabled:null!==(t=A.props.disabled)&&void 0!==t?t:c}),V=c?[]:a,G=!!(null==V?void 0:V.includes("contextMenu")),[U,X]=$o(!1,{value:null!=g?g:v}),K=wo(e=>{null==h||h(e,{source:"trigger"}),null==y||y(e),X(e)}),Q=b(f,p,z,F,B,null==j?void 0:j.className,{[`${T}-rtl`]:"rtl"===R}),Y=hv({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:C,offset:H.marginXXS,arrowWidth:r?H.sizePopupArrow:0,borderRadius:H.borderRadius}),q=wo(()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==h||h(!1,{source:"menu"}),X(!1))}),[Z,J]=zl("Dropdown",null==m?void 0:m.zIndex);let ee=l.createElement(Bv,Object.assign({alignPoint:G},Ic(e,["rootClassName"]),{mouseEnterDelay:x,mouseLeaveDelay:w,visible:U,builtinPlacements:Y,arrow:!!r,overlayClassName:Q,prefixCls:T,getPopupContainer:d||I,transitionName:P,trigger:V,overlay:()=>{let e;return e=(null==n?void 0:n.items)?l.createElement(Oy,Object.assign({},n)):"function"==typeof $?$():$,M&&(e=M(e)),e=l.Children.only("string"==typeof e?l.createElement("span",null,e):e),l.createElement(dy,{prefixCls:`${T}-menu`,rootClassName:b(F,B),expandIcon:l.createElement("span",{className:`${T}-menu-submenu-arrow`},"rtl"===R?l.createElement(Ov,{className:`${T}-menu-submenu-arrow-icon`}):l.createElement(gs,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:q,validator:({mode:e})=>{}},e)},placement:D,onVisibleChange:K,overlayStyle:Object.assign(Object.assign(Object.assign({},null==j?void 0:j.style),m),{zIndex:Z}),autoDestroy:null!=E?E:O}),W);return Z&&(ee=l.createElement(Dl.Provider,{value:J},ee)),L(ee)},My=Gp(jy,"align",void 0,"dropdown",e=>e);jy._InternalPanelDoNotUseOrYouWillBeFired=e=>l.createElement(My,Object.assign({},e),l.createElement("span",null));var Py,Dy={exports:{}};function Ty(){return Py||(Py=1,Dy.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,h={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:d,w:c,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",x={};x[y]=h;var w="$isDayjsObject",C=function(e){return e instanceof E||!(!e||!e[w])},S=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},$=function(e,t){if(C(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},k=b;k.l=S,k.i=C,k.w=function(e,t){return $(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function h(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=h.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=$(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return $(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<$(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!k.u(t)||t,u=k.p(e),p=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},m=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,h=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case s:return r?p(1,h):p(0,h+1);case c:var y=this.$locale().weekStart||0,x=(g<y?g+7:g)-y;return p(r?v-x:v+(6-x),h);case l:case f:return m(b+"Hours",0);case a:return m(b+"Minutes",1);case i:return m(b+"Seconds",2);case o:return m(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,c=k.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[s]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],m=c===l?this.$D+(t-this.$W):t;if(c===s||c===d){var g=this.clone().set(f,1);g.$d[p](m),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var m=k.p(u),g=function(e){var t=$(p);return k.w(t.date(t.date()+Math.round(e*r)),p)};if(m===s)return this.set(s,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===l)return g(1);if(m===c)return g(7);var h=(f={},f[i]=t,f[a]=n,f[o]=e,f)[m]||1,v=this.$d.getTime()+r*h;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return k.s(i%12||12,e,"0")},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return l+1;case"MM":return k.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,s,3);case"MMMM":return d(s,l);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var m,g=this,h=k.p(f),v=$(r),b=(v.utcOffset()-this.utcOffset())*t,y=this-v,x=function(){return k.m(g,v)};switch(h){case d:m=x()/12;break;case s:m=x();break;case u:m=x()/3;break;case c:m=(y-b)/6048e5;break;case l:m=(y-b)/864e5;break;case a:m=y/n;break;case i:m=y/t;break;case o:m=y/e;break;default:m=y}return p?m:k.a(m)},v.daysInMonth=function(){return this.endOf(s).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},h}(),O=E.prototype;return $.prototype=O,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",d],["$D",f]].forEach(function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),$.extend=function(e,t){return e.$i||(e(t,E,$),e.$i=!0),$},$.locale=S,$.isDayjs=C,$.unix=function(e){return $(1e3*e)},$.en=x[y],$.Ls=x,$.p={},$}()),Dy.exports}var By,Ly=p(Ty()),zy={exports:{}};var Fy,Hy=(By||(By=1,zy.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}),zy.exports),Ay=p(Hy),_y={exports:{}};var Wy,Vy=(Fy||(Fy=1,_y.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),c=o(a[n]),s=l||c.map(function(e){return e.slice(0,r)});if(!i)return s;var u=a.weekStart;return s.map(function(e,t){return s[(t+(u||0))%7]})},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}),_y.exports),Gy=p(Vy),Uy={exports:{}};var Xy,Ky=(Wy||(Wy=1,Uy.exports=function(){var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()),Uy.exports),Qy=p(Ky),Yy={exports:{}};var qy,Zy=(Xy||(Xy=1,Yy.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}),Yy.exports),Jy=p(Zy),ex={exports:{}};var tx,nx=(qy||(qy=1,ex.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"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(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(i)}}),ex.exports),rx=p(nx),ox={exports:{}};var ix=(tx||(tx=1,ox.exports=function(){var e={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},l=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};function p(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=i.length,c=0;c<l;c+=1){var s=i[c],u=f[s],d=u&&u[0],p=u&&u[1];i[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,c=o.parser,s=e.slice(r),u=a.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var l=i[1];if("string"==typeof l){var c=!0===i[2],s=!0===i[3],u=c||s,d=i[2];s&&(d=i[2]),a=this.$locale(),!c&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),i=o.year,a=o.month,l=o.day,c=o.hours,s=o.minutes,u=o.seconds,d=o.milliseconds,f=o.zone,m=o.week,g=new Date,h=l||(i||a?1:g.getDate()),v=i||g.getFullYear(),b=0;i&&!a||(b=a>0?a-1:g.getMonth());var y,x=c||0,w=s||0,C=u||0,S=d||0;return f?new Date(Date.UTC(v,b,h,x,w,C,S+60*f.offset*1e3)):n?new Date(Date.UTC(v,b,h,x,w,C,S)):(y=new Date(v,b,h,x,w,C,S),m&&(y=r(y).week(m).toDate()),y)}catch(e){return new Date("")}}(t,l,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var f=l.length,m=1;m<=f;m+=1){i[1]=l[m-1];var g=n.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===f&&(this.$d=new Date(""))}else o.call(this,e)}}}()),ox.exports),ax=p(ix);Ly.extend(ax),Ly.extend(rx),Ly.extend(Ay),Ly.extend(Gy),Ly.extend(Qy),Ly.extend(Jy),Ly.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}});var lx={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"},cx=function(e){return lx[e]||e.split("_")[0]},sx={getNow:function(){var e=Ly();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return Ly(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 Ly().locale(cx(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(cx(e)).weekday(0)},getWeek:function(e,t){return t.locale(cx(e)).week()},getShortWeekDays:function(e){return Ly().locale(cx(e)).localeData().weekdaysMin()},getShortMonths:function(e){return Ly().locale(cx(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(cx(e)).format(n)},parse:function(e,t,n){for(var r=cx(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],c=a.split("-")[1],s=Ly(l,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=s.add(u,"week");if(d.format("Wo")===c)return d}return null}var f=Ly(a,i,!0).locale(r);if(f.isValid())return f}return null}}};var ux=l.createContext(null),dx={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 fx(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,i=e.transitionName,a=e.getPopupContainer,c=e.children,s=e.range,u=e.placement,d=e.builtinPlacements,f=void 0===d?dx:d,p=e.direction,m=e.visible,g=e.onClose,h=l.useContext(ux).prefixCls,v="".concat(h,"-dropdown"),y=function(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}(u,"rtl"===p);return l.createElement(Km,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:f,prefixCls:v,popupTransitionName:i,popup:t,popupAlign:o,popupVisible:m,popupClassName:b(r,M(M({},"".concat(v,"-range"),s),"".concat(v,"-rtl"),"rtl"===p)),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(e){e||g()}},c)}function px(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function mx(e){return null==e?[]:Array.isArray(e)?e:[e]}function gx(e,t,n){var r=Fe(e);return r[t]=n,r}function hx(e,t){var n={};return(t||Object.keys(e)).forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n}function vx(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 bx(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find(function(t){return e[t]});return r!==o?e[o]:void 0}function yx(e){return hx(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function xx(e,t,n,r){var o=l.useMemo(function(){return e||function(e,r){var o=e;return t&&"date"===r.type?t(o,r.today):n&&"month"===r.type?n(o,r.locale):r.originNode}},[e,n,t]),i=l.useCallback(function(e,t){return o(e,D(D({},t),{},{range:r}))},[o,r]);return i}function wx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Qe(l.useState([!1,!1]),2),o=r[0],i=r[1],a=l.useMemo(function(){return o.map(function(r,o){if(r)return!0;var i=e[o];return!!i&&(!n[o]&&!i||!(!i||!t(i,{activeIndex:o})))})},[e,o,t,n]);return[a,function(e,t){i(function(n){return gx(n,t,e)})}]}function Cx(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function Sx(t,n){var r=n.showHour,o=n.showMinute,i=n.showSecond,a=n.showMillisecond,l=n.use12Hours;return e.useMemo(function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,h=e.dayFormat,v=e.cellDateFormat,b=Cx(t,n,r,o,i);return D(D({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:v||h||"D"})}(t,r,o,i,a,l)},[t,r,o,i,a,l])}function $x(e,t,n){return null!=n?n:t.some(function(t){return e.includes(t)})}var kx=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Ex(e){return e&&"string"==typeof e}function Ox(e,t,n,r){return[e,t,n,r].some(function(e){return void 0!==e})}function Ix(e,t,n,r,o){var i=t,a=n,l=r;if(e||i||a||l||o){if(e){var c,s,u,d=[i,a,l].some(function(e){return!1===e}),f=[i,a,l].some(function(e){return!0===e}),p=!!d||!f;i=null!==(c=i)&&void 0!==c?c:p,a=null!==(s=a)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else i=!0,a=!0,l=!0;return[i,a,l,o]}function Nx(e){var t=e.showTime,n=function(e){var t=hx(e,kx),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===x(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=Qe(n,2),o=r[0],i=r[1],a=t&&"object"===x(t)?t:{},l=D(D({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),c=l.showMillisecond,s=l.showHour,u=l.showMinute,d=l.showSecond,f=Qe(Ix(Ox(s,u,d,c),s,u,d,c),3);return s=f[0],u=f[1],d=f[2],[l,D(D({},l),{},{showHour:s,showMinute:u,showSecond:d,showMillisecond:c}),l.format,i]}function Rx(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=vx(e,o,null),l=[t,n],c=0;c<l.length;c+=1){var s=mx(l[c])[0];if(Ex(s)){a=s;break}}var u=i.showHour,d=i.showMinute,f=i.showSecond,p=i.showMillisecond,m=$x(a,["a","A","LT","LLL","LTS"],i.use12Hours),g=Ox(u,d,f,p);g||(u=$x(a,["H","h","k","LT","LLL"]),d=$x(a,["m","LT","LLL"]),f=$x(a,["s","LTS"]),p=$x(a,["SSS"]));var h=Qe(Ix(g,u,d,f,p),3);u=h[0],d=h[1],f=h[2];var v=t||Cx(u,d,f,p,m);return D(D({},i),{},{format:v,showHour:u,showMinute:d,showSecond:f,showMillisecond:p,use12Hours:m})}return null}function jx(e,t,n){return!1===t?null:(t&&"object"===x(t)?t:{}).clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}function Mx(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function Px(e,t,n){return Mx(t,n,function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)})}function Dx(e,t,n){return Mx(t,n,function(){return e.getYear(t)===e.getYear(n)})}function Tx(e,t){return Math.floor(e.getMonth(t)/3)+1}function Bx(e,t,n){return Mx(t,n,function(){return Dx(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function Lx(e,t,n){return Mx(t,n,function(){return Dx(e,t,n)&&Bx(e,t,n)&&e.getDate(t)===e.getDate(n)})}function zx(e,t,n){return Mx(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function Fx(e,t,n){return Mx(t,n,function(){return Lx(e,t,n)&&zx(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Hx(e,t,n,r){return Mx(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return Dx(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Ax(e,t,n,r,o){switch(o){case"date":return Lx(e,n,r);case"week":return Hx(e,t.locale,n,r);case"month":return Bx(e,n,r);case"quarter":return function(e,t,n){return Mx(t,n,function(){return Dx(e,t,n)&&Tx(e,t)===Tx(e,n)})}(e,n,r);case"year":return Dx(e,n,r);case"decade":return Px(e,n,r);case"time":return zx(e,n,r);default:return Fx(e,n,r)}}function _x(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function Wx(e,t,n,r,o){return!!Ax(e,t,n,r,o)||e.isAfter(n,r)}function Vx(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"==typeof o?o(e):n.locale.format(r.locale,e,o):""}function Gx(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach(function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)}),r}function Ux(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return l.useMemo(function(){var n=e?mx(e):e;return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function Xx(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,i=void 0===o?"date":o,a=e.prefixCls,c=void 0===a?"rc-picker":a,s=e.styles,u=void 0===s?{}:s,d=e.classNames,f=void 0===d?{}:d,p=e.order,m=void 0===p||p,g=e.components,h=void 0===g?{}:g,v=e.inputRender,b=e.allowClear,y=e.clearIcon,w=e.needConfirm,C=e.multiple,S=e.format,$=e.inputReadOnly,k=e.disabledDate,E=e.minDate,O=e.maxDate,I=e.showTime,N=e.value,R=e.defaultValue,j=e.pickerValue,M=e.defaultPickerValue,P=Ux(N),T=Ux(R),B=Ux(j),L=Ux(M),z="date"===i&&I?"datetime":i,F="time"===z||"datetime"===z,H=F||C,A=null!=w?w:F,_=Qe(Nx(e),4),W=_[0],V=_[1],G=_[2],U=_[3],X=Sx(r,V),K=l.useMemo(function(){return Rx(z,G,U,W,X)},[z,G,U,W,X]),Q=l.useMemo(function(){return D(D({},e),{},{prefixCls:c,locale:X,picker:i,styles:u,classNames:f,order:m,components:D({input:v},h),clearIcon:jx(c,b,y),showTime:K,value:P,defaultValue:T,pickerValue:B,defaultPickerValue:L},null==t?void 0:t())},[e]),Y=function(e,t,n){return l.useMemo(function(){var r=mx(vx(e,t,n)),o=r[0],i="object"===x(o)&&"mask"===o.type?o.format:null;return[r.map(function(e){return"string"==typeof e||"function"==typeof e?e:e.format}),i]},[e,t,n])}(z,X,S),q=Qe(Y,2),Z=q[0],J=q[1],ee=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(Z,$,C),te=function(e,t,n,r,o){var i=wo(function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||Ax(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||Ax(e,t,o,i,a.type))});return i}(n,r,k,E,O),ne=function(e,t,n,r){var o=wo(function(o,i){var a=D({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,c=i&&1===i.activeIndex?"end":"start",s=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,c,{from:a.from}))||{},u=s.disabledHours,d=s.disabledMinutes,f=s.disabledSeconds,p=s.disabledMilliseconds,m=r.disabledHours,g=r.disabledMinutes,h=r.disabledSeconds,v=u||m,b=d||g,y=f||h,x=e.getHour(o),w=e.getMinute(o),C=e.getSecond(o),S=e.getMillisecond(o);if(v&&v().includes(x))return!0;if(b&&b(x).includes(w))return!0;if(y&&y(x,w).includes(C))return!0;if(p&&p(x,w,C).includes(S))return!0}return!1});return o}(n,i,te,K);return[l.useMemo(function(){return D(D({},Q),{},{needConfirm:A,inputReadOnly:ee,disabledDate:te})},[Q,A,ee,te]),z,H,Z,J,ne]}function Kx(t,n){var r,o,i,a,l,c,s,u,d,f,p=arguments.length>3?arguments[3]:void 0,m=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every(function(e){return e})&&t,g=(o=p,i=Qe($o(n||!1,{value:r=m}),2),a=i[0],l=i[1],c=e.useRef(r),s=e.useRef(),u=function(){Ge.cancel(s.current)},d=wo(function(){l(c.current),o&&a!==c.current&&o(c.current)}),f=wo(function(e,t){u(),c.current=e,e||t?d():s.current=Ge(d)}),e.useEffect(function(){return u},[]),[a,f]),h=Qe(g,2),v=h[0],b=h[1];return[v,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!v||b(e,t.force)}]}function Qx(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}}),t}function Yx(e,t){return l.useMemo(function(){return e||(t?(R(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=Qe(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function qx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=l.useRef(t);r.current=t,Tt(function(){if(!e){var t=Ge(function(){r.current(e)},n);return function(){Ge.cancel(t)}}r.current(e)},[e])}function Zx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Qe(l.useState(0),2),o=r[0],i=r[1],a=Qe(l.useState(!1),2),c=a[0],s=a[1],u=l.useRef([]),d=l.useRef(null),f=l.useRef(null),p=function(e){d.current=e};return qx(c||n,function(){c||(u.current=[],p(null))}),l.useEffect(function(){c&&u.current.push(o)},[c,o]),[c,function(e){s(e)},function(e){return e&&(f.current=e),f.current},o,i,function(n){var r=u.current,o=new Set(r.filter(function(e){return n[e]||t[e]})),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},u.current,p,function(e){return d.current===e}]}function Jx(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,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var ew=[];function tw(e,t,n,r,o,i,a,c){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:ew,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ew,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,m="time"===a,g=i||0,h=function(t){var r=e.getNow();return m&&(r=Gx(e,r)),s[t]||n[t]||r},v=Qe(arguments.length>9&&void 0!==arguments[9]?arguments[9]:ew,2),b=v[0],y=v[1],x=Qe($o(function(){return h(0)},{value:b}),2),w=x[0],C=x[1],S=Qe($o(function(){return h(1)},{value:y}),2),$=S[0],k=S[1],E=l.useMemo(function(){var t=[w,$][g];return m?t:Gx(e,t,u[g])},[m,w,$,g,e,u]),O=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[C,k][g])(n);var i=[w,$];i[g]=n,!d||Ax(e,t,w,i[0],a)&&Ax(e,t,$,i[1],a)||d(i,{source:o,range:1===g?"end":"start",mode:r})},I=l.useRef(null);return Dt(function(){if(o&&!s[g]){var r=m?null:e.getNow();if(null!==I.current&&I.current!==g?r=[w,$][1^g]:n[g]?r=0===g?n[0]:function(n,r){if(c){var o={date:"month",week:"month",month:"year",quarter:"year"}[a];if(o&&!Ax(e,t,n,r,o))return Jx(e,a,r,-1);if("year"===a&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return Jx(e,a,r,-1)}return r}(n[0],n[1]):n[1^g]&&(r=n[1^g]),r){f&&e.isAfter(f,r)&&(r=f);var i=c?Jx(e,a,r,1):r;p&&e.isAfter(i,p)&&(r=c?Jx(e,a,p,-1):p),O(r,"reset")}}},[o,g,n[g]]),l.useEffect(function(){I.current=o?g:null},[o,g]),Dt(function(){o&&s&&s[g]&&O(s[g],"reset")},[o,g]),[E,O]}function nw(e,t){var n=l.useRef(e),r=Qe(l.useState({}),2)[1],o=function(e){return e&&void 0!==t?t:n.current};return[o,function(e){n.current=e,r({})},o(!0)]}var rw=[];function ow(e,t,n){return[function(r){return r.map(function(r){return Vx(r,{generateConfig:e,locale:t,format:n[0]})})},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!Fx(e,a,l)){o=i;break}}return[o<0,0!==o]}]}function iw(e,t){return Fe(e).sort(function(e,n){return t.isAfter(e,n)?1:-1})}function aw(e,t,n,r,o,i,a,c,s){var u=Qe($o(i,{value:a}),2),d=u[0],f=u[1],p=d||rw,m=function(e){var t=Qe(nw(e),2),n=t[0],r=t[1],o=wo(function(){r(e)});return l.useEffect(function(){o()},[e]),[n,r]}(p),g=Qe(m,2),h=g[0],v=g[1],b=Qe(ow(e,t,n),2),y=b[0],x=b[1],w=wo(function(t){var n=Fe(t);if(r)for(var i=0;i<2;i+=1)n[i]=n[i]||null;else o&&(n=iw(n.filter(function(e){return e}),e));var a=Qe(x(h(),n),2),l=a[0],s=a[1];if(!l&&(v(n),c)){var u=y(n);c(n,u,{range:s?"end":"start"})}});return[p,f,h,w,function(){s&&s(h())}]}function lw(e,t,n,r,o,i,a,c,s,u){var d=e.generateConfig,f=e.locale,p=e.picker,m=e.onChange,g=e.allowEmpty,h=e.order,v=!i.some(function(e){return e})&&h,b=Qe(ow(d,f,a),2),y=b[0],x=b[1],w=Qe(nw(t),2),C=w[0],S=w[1],$=wo(function(){S(t)});l.useEffect(function(){$()},[t]);var k=wo(function(e){var r=null===e,a=Fe(e||C());if(r)for(var l=Math.max(i.length,a.length),c=0;c<l;c+=1)i[c]||(a[c]=null);v&&a[0]&&a[1]&&(a=iw(a,d)),o(a);var s=Qe(a,2),b=s[0],w=s[1],S=!b,$=!w,k=!g||(!S||g[0])&&(!$||g[1]),E=!h||S||$||Ax(d,f,b,w,p)||d.isAfter(w,b),O=(i[0]||!b||!u(b,{activeIndex:0}))&&(i[1]||!w||!u(w,{from:b,activeIndex:1})),I=r||k&&E&&O;if(I){n(a);var N=Qe(x(a,t),1)[0];m&&!N&&m(r&&a.every(function(e){return!e})?null:a,y(a))}return I}),E=wo(function(e,t){var n=gx(C(),e,r()[e]);S(n),t&&k()}),O=!c&&!s;return qx(!O,function(){O&&(k(),o(t),$())},2),[E,k]}function cw(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function sw(){return[]}function uw(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||a.push({label:px(c,i),value:c,disabled:s})}return a}function dw(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},r=n.use12Hours,o=n.hourStep,i=void 0===o?1:o,a=n.minuteStep,c=void 0===a?1:a,s=n.secondStep,u=void 0===s?1:s,d=n.millisecondStep,f=void 0===d?100:d,p=n.hideDisabledOptions,m=n.disabledTime,g=n.disabledHours,h=n.disabledMinutes,v=n.disabledSeconds,b=l.useMemo(function(){return t||e.getNow()},[t,e]),y=l.useCallback(function(e){var t=(null==m?void 0:m(e))||{};return[t.disabledHours||g||sw,t.disabledMinutes||h||sw,t.disabledSeconds||v||sw,t.disabledMilliseconds||sw]},[m,g,h,v]),x=Qe(l.useMemo(function(){return y(b)},[b,y]),4),w=x[0],C=x[1],S=x[2],$=x[3],k=l.useCallback(function(e,t,n,o){var a=uw(0,23,i,p,e()),l=r?a.map(function(e){return D(D({},e),{},{label:px(e.value%12||12,2)})}):a;return[l,function(e){return uw(0,59,c,p,t(e))},function(e,t){return uw(0,59,u,p,n(e,t))},function(e,t,n){return uw(0,999,f,p,o(e,t,n),3)}]},[p,i,r,f,c,u]),E=Qe(l.useMemo(function(){return k(w,C,S,$)},[k,w,C,S,$]),4),O=E[0],I=E[1],N=E[2],R=E[3];return[function(t,n){var r=function(){return O},o=I,i=N,a=R;if(n){var l=Qe(y(n),4),c=l[0],s=l[1],u=l[2],d=l[3],f=Qe(k(c,s,u,d),4),p=f[0];r=function(){return p},o=f[1],i=f[2],a=f[3]}var m=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find(function(e){return e.value===r});if(!o||o.disabled){var l=n.filter(function(e){return!e.disabled}),c=Fe(l).reverse().find(function(e){return e.value<=r})||l[0];c&&(r=c.value,a=i[t](a,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),a}(t,r,o,i,a,e);return m},O,I,N,R]}function fw(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,i=e.showTime,a=e.onSubmit,c=e.onNow,s=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=l.useContext(ux),m=p.prefixCls,g=p.locale,h=p.button,v=void 0===h?"button":h,y=d.getNow(),x=Qe(dw(d,i,y),1)[0],w=null==r?void 0:r(t),C=f(y,{type:t}),S="".concat(m,"-now"),$="".concat(S,"-btn"),k=o&&l.createElement("li",{className:S},l.createElement("a",{className:b($,C&&"".concat($,"-disabled")),"aria-disabled":C,onClick:function(){if(!C){var e=x(y);c(e)}}},"date"===n?g.today:g.now)),E=u&&l.createElement("li",{className:"".concat(m,"-ok")},l.createElement(v,{disabled:s,onClick:a},g.ok)),O=(k||E)&&l.createElement("ul",{className:"".concat(m,"-ranges")},k,E);return w||O?l.createElement("div",{className:"".concat(m,"-footer")},w&&l.createElement("div",{className:"".concat(m,"-footer-extra")},w),O):null}function pw(e,t,n){return function(r,o){var i=r.findIndex(function(r){return Ax(e,t,r,o,n)});if(-1===i)return[].concat(Fe(r),[o]);var a=Fe(r);return a.splice(i,1),a}}var mw=l.createContext(null);function gw(){return l.useContext(mw)}function hw(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,h=e.nextIcon,v=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:h,superPrevIcon:v,superNextIcon:b},y]}var vw=l.createContext({});function bw(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,i=e.prefixColumn,a=e.rowClassName,c=e.titleFormat,s=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=void 0===f||f,m=e.disabledDate,g=gw(),h=g.prefixCls,v=g.panelType,y=g.now,x=g.disabledDate,w=g.cellRender,C=g.onHover,S=g.hoverValue,$=g.hoverRangeValue,k=g.generateConfig,E=g.values,O=g.locale,I=g.onSelect,N=m||x,R="".concat(h,"-cell"),j=l.useContext(vw).onCellDblClick,P=function(e){return E.some(function(t){return t&&Ax(k,O,e,t,v)})},T=[],B=0;B<t;B+=1){for(var L=[],z=void 0,F=function(){var e=o(r,B*n+H),t=null==N?void 0:N(e,{type:v});0===H&&(z=e,i&&L.push(i(z)));var a=!1,d=!1,f=!1;if(p&&$){var m=Qe($,2),g=m[0],x=m[1];a=_x(k,g,x,e),d=Ax(k,O,e,g,v),f=Ax(k,O,e,x,v)}var E=c?Vx(e,{locale:O,format:c,generateConfig:k}):void 0,T=l.createElement("div",{className:"".concat(R,"-inner")},s(e));L.push(l.createElement("td",{key:H,title:E,className:b(R,D(M(M(M(M(M(M({},"".concat(R,"-disabled"),t),"".concat(R,"-hover"),(S||[]).some(function(t){return Ax(k,O,e,t,v)})),"".concat(R,"-in-range"),a&&!d&&!f),"".concat(R,"-range-start"),d),"".concat(R,"-range-end"),f),"".concat(h,"-cell-selected"),!$&&"week"!==v&&P(e)),u(e))),onClick:function(){t||I(e)},onDoubleClick:function(){!t&&j&&j()},onMouseEnter:function(){t||null==C||C(e)},onMouseLeave:function(){t||null==C||C(null)}},w?w(e,{prefixCls:h,originNode:T,today:y,type:v,locale:O}):T))},H=0;H<n;H+=1)F();T.push(l.createElement("tr",{key:B,className:null==a?void 0:a(z)},L))}return l.createElement("div",{className:"".concat(h,"-body")},l.createElement("table",{className:"".concat(h,"-content")},d&&l.createElement("thead",null,l.createElement("tr",null,d)),l.createElement("tbody",null,T)))}var yw={visibility:"hidden"};function xw(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,i=e.getEnd,a=e.children,c=gw(),s=c.prefixCls,u=c.prevIcon,d=void 0===u?"‹":u,f=c.nextIcon,p=void 0===f?"›":f,m=c.superPrevIcon,g=void 0===m?"«":m,h=c.superNextIcon,v=void 0===h?"»":h,y=c.minDate,x=c.maxDate,w=c.generateConfig,C=c.locale,S=c.pickerValue,$=c.panelType,k="".concat(s,"-header"),E=l.useContext(vw),O=E.hidePrev,I=E.hideNext,N=E.hideHeader,R=l.useMemo(function(){if(!y||!t||!i)return!1;var e=i(t(-1,S));return!Wx(w,C,e,y,$)},[y,t,S,i,w,C,$]),j=l.useMemo(function(){if(!y||!n||!i)return!1;var e=i(n(-1,S));return!Wx(w,C,e,y,$)},[y,n,S,i,w,C,$]),M=l.useMemo(function(){if(!x||!t||!o)return!1;var e=o(t(1,S));return!Wx(w,C,x,e,$)},[x,t,S,o,w,C,$]),P=l.useMemo(function(){if(!x||!n||!o)return!1;var e=o(n(1,S));return!Wx(w,C,x,e,$)},[x,n,S,o,w,C,$]),D=function(e){t&&r(t(e,S))},T=function(e){n&&r(n(e,S))};if(N)return null;var B="".concat(k,"-prev-btn"),L="".concat(k,"-next-btn"),z="".concat(k,"-super-prev-btn"),F="".concat(k,"-super-next-btn");return l.createElement("div",{className:k},n&&l.createElement("button",{type:"button","aria-label":C.previousYear,onClick:function(){return T(-1)},tabIndex:-1,className:b(z,j&&"".concat(z,"-disabled")),disabled:j,style:O?yw:{}},g),t&&l.createElement("button",{type:"button","aria-label":C.previousMonth,onClick:function(){return D(-1)},tabIndex:-1,className:b(B,R&&"".concat(B,"-disabled")),disabled:R,style:O?yw:{}},d),l.createElement("div",{className:"".concat(k,"-view")},a),t&&l.createElement("button",{type:"button","aria-label":C.nextMonth,onClick:function(){return D(1)},tabIndex:-1,className:b(L,M&&"".concat(L,"-disabled")),disabled:M,style:I?yw:{}},p),n&&l.createElement("button",{type:"button","aria-label":C.nextYear,onClick:function(){return T(1)},tabIndex:-1,className:b(F,P&&"".concat(F,"-disabled")),disabled:P,style:I?yw:{}},v))}function ww(e){var t=e.prefixCls,n=e.panelName,r=void 0===n?"date":n,o=e.locale,i=e.generateConfig,a=e.pickerValue,c=e.onPickerValueChange,s=e.onModeChange,u=e.mode,d=void 0===u?"date":u,f=e.disabledDate,p=e.onSelect,m=e.onHover,g=e.showWeek,h="".concat(t,"-").concat(r,"-panel"),v="".concat(t,"-cell"),x="week"===d,w=Qe(hw(e,d),2),C=w[0],S=w[1],$=i.locale.getWeekFirstDay(o.locale),k=i.setDate(a,1),E=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(o.locale,i,k),O=i.getMonth(a),I=(void 0===g?x:g)?function(e){var t=null==f?void 0:f(e,{type:"week"});return l.createElement("td",{key:"week",className:b(v,"".concat(v,"-week"),M({},"".concat(v,"-disabled"),t)),onClick:function(){t||p(e)},onMouseEnter:function(){t||null==m||m(e)},onMouseLeave:function(){t||null==m||m(null)}},l.createElement("div",{className:"".concat(v,"-inner")},i.locale.getWeek(o.locale,e)))}:null,N=[],R=o.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(o.locale):[]);I&&N.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var j=0;j<7;j+=1)N.push(l.createElement("th",{key:j},R[(j+$)%7]));var P=o.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(o.locale):[]),D=l.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){s("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},Vx(a,{locale:o,format:o.yearFormat,generateConfig:i})),T=l.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){s("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?Vx(a,{locale:o,format:o.monthFormat,generateConfig:i}):P[O]),B=o.monthBeforeYear?[T,D]:[D,T];return l.createElement(mw.Provider,{value:C},l.createElement("div",{className:b(h,g&&"".concat(h,"-show-week"))},l.createElement(xw,{offset:function(e){return i.addMonth(a,e)},superOffset:function(e){return i.addYear(a,e)},onChange:c,getStart:function(e){return i.setDate(e,1)},getEnd:function(e){var t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},B),l.createElement(bw,y({titleFormat:o.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:E,headerCells:N,getCellDate:function(e,t){return i.addDate(e,t)},getCellText:function(e){return Vx(e,{locale:o,format:o.cellDateFormat,generateConfig:i})},getCellClassName:function(e){return M(M({},"".concat(t,"-cell-in-view"),Bx(i,e,a)),"".concat(t,"-cell-today"),Lx(i,e,S))},prefixColumn:I,cellSelection:!x}))))}var Cw=1/3;function Sw(e){return e.map(function(e){return[e.value,e.label,e.disabled].join(",")}).join(";")}function $w(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,i=e.onChange,a=e.onHover,c=e.onDblClick,s=e.changeOnScroll,u=gw(),d=u.prefixCls,f=u.cellRender,p=u.now,m=u.locale,g="".concat(d,"-time-panel"),h="".concat(d,"-time-panel-cell"),v=l.useRef(null),y=l.useRef(),x=function(){clearTimeout(y.current)},w=function(e,t){var n=l.useRef(!1),r=l.useRef(null),o=l.useRef(null),i=function(){Ge.cancel(r.current),n.current=!1},a=l.useRef();return[wo(function(){var l=e.current;if(o.current=null,a.current=0,l){var c=l.querySelector('[data-value="'.concat(t,'"]')),s=l.querySelector("li");c&&s&&function e(){i(),n.current=!0,a.current+=1;var t=l.scrollTop,u=s.offsetTop,d=c.offsetTop,f=d-u;if(0===d&&c!==s||!Nc(l))a.current<=5&&(r.current=Ge(e));else{var p=t+(f-t)*Cw,m=Math.abs(f-p);if(null!==o.current&&o.current<m)i();else{if(o.current=m,m<=1)return l.scrollTop=f,void i();l.scrollTop=p,r.current=Ge(e)}}}()}}),i,function(){return n.current}]}(v,null!=n?n:r),C=Qe(w,3),S=C[0],$=C[1],k=C[2];Dt(function(){return S(),x(),function(){$(),x()}},[n,r,Sw(t)]);var E="".concat(g,"-column");return l.createElement("ul",{className:E,ref:v,"data-type":o,onScroll:function(e){x();var n=e.target;!k()&&s&&(y.current=setTimeout(function(){var e=v.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map(function(e){return e.offsetTop-r}).map(function(e,r){return t[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)}),a=Math.min.apply(Math,Fe(o)),l=o.findIndex(function(e){return e===a}),c=t[l];c&&!c.disabled&&i(c.value)},300))}},t.map(function(e){var t=e.label,r=e.value,s=e.disabled,u=l.createElement("div",{className:"".concat(h,"-inner")},t);return l.createElement("li",{key:r,className:b(h,M(M({},"".concat(h,"-selected"),n===r),"".concat(h,"-disabled"),s)),onClick:function(){s||i(r)},onDoubleClick:function(){!s&&c&&c()},onMouseEnter:function(){a(r)},onMouseLeave:function(){a(null)},"data-value":r},f?f(r,{prefixCls:d,originNode:u,today:p,type:"time",subType:o,locale:m}):u)}))}function kw(e){return e<12}function Ew(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,i=e.use12Hours,a=e.changeOnScroll,c=gw(),s=c.prefixCls,u=c.values,d=c.generateConfig,f=c.locale,p=c.onSelect,m=c.onHover,g=void 0===m?function(){}:m,h=c.pickerValue,v=(null==u?void 0:u[0])||null,b=l.useContext(vw).onCellDblClick,x=Qe(dw(d,e,v),5),w=x[0],C=x[1],S=x[2],$=x[3],k=x[4],E=function(e){return[v&&d[e](v),h&&d[e](h)]},O=Qe(E("getHour"),2),I=O[0],N=O[1],R=Qe(E("getMinute"),2),j=R[0],M=R[1],P=Qe(E("getSecond"),2),D=P[0],T=P[1],B=Qe(E("getMillisecond"),2),L=B[0],z=B[1],F=null===I?null:kw(I)?"am":"pm",H=l.useMemo(function(){return i?kw(I)?C.filter(function(e){return kw(e.value)}):C.filter(function(e){return!kw(e.value)}):C},[I,C,i]),A=function(e,t){var n,r=e.filter(function(e){return!e.disabled});return null!=t?t:null==r||null===(n=r[0])||void 0===n?void 0:n.value},_=A(C,I),W=l.useMemo(function(){return S(_)},[S,_]),V=A(W,j),G=l.useMemo(function(){return $(_,V)},[$,_,V]),U=A(G,D),X=l.useMemo(function(){return k(_,V,U)},[k,_,V,U]),K=A(X,L),Q=l.useMemo(function(){if(!i)return[];var e=d.getNow(),t=d.setHour(e,6),n=d.setHour(e,18),r=function(e,t){var n=f.cellMeridiemFormat;return n?Vx(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:C.every(function(e){return e.disabled||!kw(e.value)})},{label:r(n,"PM"),value:"pm",disabled:C.every(function(e){return e.disabled||kw(e.value)})}]},[C,i,d,f]),Y=function(e){var t=w(e);p(t)},q=l.useMemo(function(){var e=v||h||d.getNow(),t=function(e){return null!=e};return t(I)?(e=d.setHour(e,I),e=d.setMinute(e,j),e=d.setSecond(e,D),e=d.setMillisecond(e,L)):t(N)?(e=d.setHour(e,N),e=d.setMinute(e,M),e=d.setSecond(e,T),e=d.setMillisecond(e,z)):t(_)&&(e=d.setHour(e,_),e=d.setMinute(e,V),e=d.setSecond(e,U),e=d.setMillisecond(e,K)),e},[v,h,I,j,D,L,_,V,U,K,N,M,T,z,d]),Z=function(e,t){return null===e?null:d[t](q,e)},J=function(e){return Z(e,"setHour")},ee=function(e){return Z(e,"setMinute")},te=function(e){return Z(e,"setSecond")},ne=function(e){return Z(e,"setMillisecond")},re=function(e){return null===e?null:"am"!==e||kw(I)?"pm"===e&&kw(I)?d.setHour(q,I+12):q:d.setHour(q,I-12)},oe={onDblClick:b,changeOnScroll:a};return l.createElement("div",{className:"".concat(s,"-content")},t&&l.createElement($w,y({units:H,value:I,optionalValue:N,type:"hour",onChange:function(e){Y(J(e))},onHover:function(e){g(J(e))}},oe)),n&&l.createElement($w,y({units:W,value:j,optionalValue:M,type:"minute",onChange:function(e){Y(ee(e))},onHover:function(e){g(ee(e))}},oe)),r&&l.createElement($w,y({units:G,value:D,optionalValue:T,type:"second",onChange:function(e){Y(te(e))},onHover:function(e){g(te(e))}},oe)),o&&l.createElement($w,y({units:X,value:L,optionalValue:z,type:"millisecond",onChange:function(e){Y(ne(e))},onHover:function(e){g(ne(e))}},oe)),i&&l.createElement($w,y({units:Q,value:F,type:"meridiem",onChange:function(e){Y(re(e))},onHover:function(e){g(re(e))}},oe)))}function Ow(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,i=e.showTime,a=(i||{}).format,c="".concat(t,"-time-panel"),s=Qe(hw(e,"time"),1)[0];return l.createElement(mw.Provider,{value:s},l.createElement("div",{className:b(c)},l.createElement(xw,null,n?Vx(n,{locale:r,format:a,generateConfig:o}):" "),l.createElement(Ew,i)))}var Iw={date:ww,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,i=e.value,a=e.pickerValue,c=e.onHover,s="".concat(t,"-datetime-panel"),u=Qe(dw(n,r),1)[0],d=function(e){return Gx(n,e,i||a)};return l.createElement("div",{className:s},l.createElement(ww,y({},e,{onSelect:function(e){var t=d(e);o(u(t,t))},onHover:function(e){null==c||c(e?d(e):e)}})),l.createElement(Ow,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i=e.hoverValue,a=e.hoverRangeValue,c=r.locale,s="".concat(t,"-week-panel-row");return l.createElement(ww,y({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(a){var r=Qe(a,2),l=r[0],u=r[1],d=Hx(n,c,l,e),f=Hx(n,c,u,e);t["".concat(s,"-range-start")]=d,t["".concat(s,"-range-end")]=f,t["".concat(s,"-range-hover")]=!d&&!f&&_x(n,l,u,e)}return i&&(t["".concat(s,"-hover")]=i.some(function(t){return Hx(n,c,e,t)})),b(s,M({},"".concat(s,"-selected"),!a&&Hx(n,c,o,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,c=e.onModeChange,s="".concat(t,"-month-panel"),u=Qe(hw(e,"month"),1)[0],d=r.setMonth(o,0),f=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),p=i?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,r.getMonth(n)+1),a=r.addDate(o,-1);return i(n,t)&&i(a,t)}:null,m=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Vx(o,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(mw.Provider,{value:u},l.createElement("div",{className:s},l.createElement(xw,{superOffset:function(e){return r.addYear(o,e)},onChange:a,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},m),l.createElement(bw,y({},e,{disabledDate:p,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:function(e,t){return r.addMonth(e,t)},getCellText:function(e){var t=r.getMonth(e);return n.monthFormat?Vx(e,{locale:n,format:n.monthFormat,generateConfig:r}):f[t]},getCellClassName:function(){return M({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.onPickerValueChange,a=e.onModeChange,c="".concat(t,"-quarter-panel"),s=Qe(hw(e,"quarter"),1)[0],u=r.setMonth(o,0),d=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Vx(o,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(mw.Provider,{value:s},l.createElement("div",{className:c},l.createElement(xw,{superOffset:function(e){return r.addYear(o,e)},onChange:i,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},d),l.createElement(bw,y({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(e,t){return r.addMonth(e,3*t)},getCellText:function(e){return Vx(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},getCellClassName:function(){return M({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,c=e.onModeChange,s="".concat(t,"-year-panel"),u=Qe(hw(e,"year"),1)[0],d=function(e){var t=10*Math.floor(r.getYear(e)/10);return r.setYear(e,t)},f=function(e){var t=d(e);return r.addYear(t,9)},p=d(o),m=f(o),g=r.addYear(p,-1),h=i?function(e,t){var n=r.setMonth(e,0),o=r.setDate(n,1),a=r.addYear(o,1),l=r.addDate(a,-1);return i(o,t)&&i(l,t)}:null,v=l.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){c("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Vx(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Vx(m,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(mw.Provider,{value:u},l.createElement("div",{className:s},l.createElement(xw,{superOffset:function(e){return r.addYear(o,10*e)},onChange:a,getStart:d,getEnd:f},v),l.createElement(bw,y({},e,{disabledDate:h,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:function(e,t){return r.addYear(e,t)},getCellText:function(e){return Vx(e,{locale:n,format:n.cellYearFormat,generateConfig:r})},getCellClassName:function(e){return M({},"".concat(t,"-cell-in-view"),Dx(r,e,p)||Dx(r,e,m)||_x(r,p,m,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,c="".concat(t,"-decade-panel"),s=Qe(hw(e,"decade"),1)[0],u=function(e){var t=100*Math.floor(r.getYear(e)/100);return r.setYear(e,t)},d=function(e){var t=u(e);return r.addYear(t,99)},f=u(o),p=d(o),m=r.addYear(f,-10),g=i?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,0),a=r.setYear(o,10*Math.floor(r.getYear(o)/10)),l=r.addYear(a,10),c=r.addDate(l,-1);return i(a,t)&&i(c,t)}:null,h="".concat(Vx(f,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Vx(p,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(mw.Provider,{value:s},l.createElement("div",{className:c},l.createElement(xw,{superOffset:function(e){return r.addYear(o,100*e)},onChange:a,getStart:u,getEnd:d},h),l.createElement(bw,y({},e,{disabledDate:g,colNum:3,rowNum:4,baseDate:m,getCellDate:function(e,t){return r.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,o=Vx(e,{locale:n,format:t,generateConfig:r}),i=Vx(r.addYear(e,9),{locale:n,format:t,generateConfig:r});return"".concat(o,"-").concat(i)},getCellClassName:function(e){return M({},"".concat(t,"-cell-in-view"),Px(r,e,f)||Px(r,e,p)||_x(r,f,p,e))}}))))},time:Ow};function Nw(e,t){var n,r=e.locale,o=e.generateConfig,i=e.direction,a=e.prefixCls,c=e.tabIndex,s=void 0===c?0:c,u=e.multiple,d=e.defaultValue,f=e.value,p=e.onChange,m=e.onSelect,g=e.defaultPickerValue,h=e.pickerValue,v=e.onPickerValueChange,x=e.mode,w=e.onPanelChange,C=e.picker,S=void 0===C?"date":C,$=e.showTime,k=e.hoverValue,E=e.hoverRangeValue,O=e.cellRender,I=e.dateRender,N=e.monthCellRender,R=e.components,j=void 0===R?{}:R,P=e.hideHeader,T=(null===(n=l.useContext(ux))||void 0===n?void 0:n.prefixCls)||a||"rc-picker",B=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:B.current}});var L=Qe(Nx(e),4),z=L[0],F=L[1],H=L[2],A=L[3],_=Sx(r,F),W="date"===S&&$?"datetime":S,V=l.useMemo(function(){return Rx(W,H,A,z,_)},[W,H,A,z,_]),G=o.getNow(),U=Qe($o(S,{value:x,postState:function(e){return e||"date"}}),2),X=U[0],K=U[1],Q="date"===X&&V?"datetime":X,Y=pw(o,r,W),q=Qe($o(d,{value:f}),2),Z=q[0],J=q[1],ee=l.useMemo(function(){var e=mx(Z).filter(function(e){return e});return u?e:e.slice(0,1)},[Z,u]),te=wo(function(e){J(e),p&&(null===e||ee.length!==e.length||ee.some(function(t,n){return!Ax(o,r,t,e[n],W)}))&&(null==p||p(u?e:e[0]))}),ne=wo(function(e){if(null==m||m(e),X===S){var t=u?Y(ee,e):[e];te(t)}}),re=Qe($o(g||ee[0]||G,{value:h}),2),oe=re[0],ie=re[1];l.useEffect(function(){ee[0]&&!h&&ie(ee[0])},[ee[0]]);var ae=function(e,t){null==w||w(e||h,t||X)},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ie(e),null==v||v(e),t&&ae(e)},ce=function(e,t){K(e),t&&le(t),ae(t,e)},se=l.useMemo(function(){var e,t;if(Array.isArray(E)){var n=Qe(E,2);e=n[0],t=n[1]}else e=E;return e||t?(e=e||t,t=t||e,o.isAfter(e,t)?[t,e]:[e,t]):null},[E,o]),ue=xx(O,I,N),de=j[Q]||Iw[Q]||ww,fe=l.useContext(vw),pe=l.useMemo(function(){return D(D({},fe),{},{hideHeader:P})},[fe,P]),me="".concat(T,"-panel"),ge=hx(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(vw.Provider,{value:pe},l.createElement("div",{ref:B,tabIndex:s,className:b(me,M({},"".concat(me,"-rtl"),"rtl"===i))},l.createElement(de,y({},ge,{showTime:V,prefixCls:T,locale:_,generateConfig:o,onModeChange:ce,pickerValue:oe,onPickerValueChange:function(e){le(e,!0)},value:ee[0],onSelect:function(e){if(ne(e),le(e),X!==S){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(Fe(n),["week"]),date:[].concat(Fe(n),["date"])}[S]||n,o=r.indexOf(X),i=r[o+1];i&&ce(i,e)}},values:ee,cellRender:ue,hoverRangeValue:se,hoverValue:k}))))}var Rw=l.memo(l.forwardRef(Nw));function jw(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,i=e.needConfirm,a=e.onSubmit,c=e.range,s=e.hoverValue,u=l.useContext(ux),d=u.prefixCls,f=u.generateConfig,p=l.useCallback(function(e,n){return Jx(f,t,e,n)},[f,t]),m=l.useMemo(function(){return p(r,1)},[r,p]),g={onCellDblClick:function(){i&&a()}},h="time"===t,v=D(D({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:h});return c?v.hoverRangeValue=s:v.hoverValue=s,n?l.createElement("div",{className:"".concat(d,"-panels")},l.createElement(vw.Provider,{value:D(D({},g),{},{hideNext:!0})},l.createElement(Rw,v)),l.createElement(vw.Provider,{value:D(D({},g),{},{hidePrev:!0})},l.createElement(Rw,y({},v,{pickerValue:m,onPickerValueChange:function(e){o(p(e,-1))}})))):l.createElement(vw.Provider,{value:D({},g)},l.createElement(Rw,v))}function Mw(e){return"function"==typeof e?e():e}function Pw(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(e,t){var n=e.label,i=e.value;return l.createElement("li",{key:t,onClick:function(){r(Mw(i))},onMouseEnter:function(){o(Mw(i))},onMouseLeave:function(){o(null)}},n)}))):null}function Dw(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,i=e.range,a=e.multiple,c=e.activeInfo,s=void 0===c?[0,0,0]:c,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,p=e.onFocus,m=e.onBlur,g=e.onPanelMouseDown,h=e.direction,v=e.value,x=e.onSelect,w=e.isInvalid,C=e.defaultOpenValue,S=e.onOk,$=e.onSubmit,k=l.useContext(ux).prefixCls,E="".concat(k,"-panel"),O="rtl"===h,I=l.useRef(null),N=l.useRef(null),R=Qe(l.useState(0),2),j=R[0],P=R[1],D=Qe(l.useState(0),2),T=D[0],B=D[1],L=Qe(l.useState(0),2),z=L[0],F=L[1],H=Qe(s,3),A=H[0],_=H[1],W=H[2],V=Qe(l.useState(0),2),G=V[0],U=V[1];function X(e){return e.filter(function(e){return e})}l.useEffect(function(){U(10)},[A]),l.useEffect(function(){if(i&&N.current){var e,t=(null===(e=I.current)||void 0===e?void 0:e.offsetWidth)||0,n=N.current.getBoundingClientRect();if(!n.height||n.right<0)return void U(function(e){return Math.max(0,e-1)});var r=(O?_-t:A)-n.left;if(F(r),j&&j<W){var o=O?n.right-(_-t+j):A+t-n.left-j,a=Math.max(0,o);B(a)}else B(0)}},[G,O,j,A,_,W,i]);var K=l.useMemo(function(){return X(mx(v))},[v]),Q="time"===r&&!K.length,Y=l.useMemo(function(){return Q?X([C]):K},[Q,K,C]),q=Q?C:K,Z=l.useMemo(function(){return!Y.length||Y.some(function(e){return w(e)})},[Y,w]),J=l.createElement("div",{className:"".concat(k,"-panel-layout")},l.createElement(Pw,{prefixCls:k,presets:u,onClick:f,onHover:d}),l.createElement("div",null,l.createElement(jw,y({},e,{value:q})),l.createElement(fw,y({},e,{showNow:!a&&o,invalid:Z,onSubmit:function(){Q&&x(C),S(),$()}}))));t&&(J=t(J));var ee="".concat(E,"-container"),te="marginLeft",ne="marginRight",re=l.createElement("div",{onMouseDown:g,tabIndex:-1,className:b(ee,"".concat(k,"-").concat(n,"-panel-container")),style:M(M({},O?ne:te,T),O?te:ne,"auto"),onFocus:p,onBlur:m},J);return i&&(re=l.createElement("div",{onMouseDown:g,ref:N,className:b("".concat(k,"-range-wrapper"),"".concat(k,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:I,className:"".concat(k,"-range-arrow"),style:{left:z}}),l.createElement(Te,{onResize:function(e){e.width&&P(e.width)}},re))),re}function Tw(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,i=e.locale,a=e.preserveInvalidOnBlur,c=e.inputReadOnly,s=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,m=e.onInputChange,g=e.onInvalid,h=e.open,v=e.onOpenChange,b=e.onKeyDown,y=e.onChange,x=e.activeHelp,w=e.name,C=e.autoComplete,S=e.id,$=e.value,k=e.invalid,E=e.placeholder,O=e.disabled,I=e.activeIndex,N=e.allHelp,R=e.picker,j=function(e,t){var n=o.locale.parse(i.locale,e,[t]);return n&&o.isValidate(n)?n:null},M=n[0],P=l.useCallback(function(e){return Vx(e,{locale:i,format:M,generateConfig:o})},[i,o,M]),T=l.useMemo(function(){return $.map(P)},[$,P]),B=l.useMemo(function(){var e="time"===R?8:10,t="function"==typeof M?M(o.getNow()).length:M.length;return Math.max(e,t)+2},[M,R,o]),L=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if("string"==typeof r){var o=j(e,r);if(o)return o}}return!1};return[function(n){function o(e){return void 0!==n?e[n]:e}var i=D(D({},Ya(e,{aria:!0,data:!0})),{},{format:r,validateFormat:function(e){return!!L(e)},preserveInvalidOnBlur:a,readOnly:c,required:s,"aria-required":u,name:w,autoComplete:C,size:B,id:o(S),value:o(T)||"",invalid:o(k),placeholder:o(E),active:I===n,helped:N||x&&I===n,disabled:o(O),onFocus:function(e){f(e,n)},onBlur:function(e){p(e,n)},onSubmit:d,onChange:function(e){m();var t=L(e);if(t)return g(!1,n),void y(t,n);g(!!e,n)},onHelp:function(){v(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null==b||b(e,function(){t=!0}),!e.defaultPrevented&&!t)switch(e.key){case"Escape":v(!1,{index:n});break;case"Enter":h||v(!0)}}},null==t?void 0:t({valueTexts:T}));return Object.keys(i).forEach(function(e){void 0===i[e]&&delete i[e]}),i},P]}var Bw=["onMouseEnter","onMouseLeave"];function Lw(e){return l.useMemo(function(){return hx(e,Bw)},[e])}var zw=["icon","type"],Fw=["onClear"];function Hw(e){var t=e.icon,n=e.type,r=st(e,zw),o=l.useContext(ux).prefixCls;return t?l.createElement("span",y({className:"".concat(o,"-").concat(n)},r),t):null}function Aw(e){var t=e.onClear,n=st(e,Fw);return l.createElement(Hw,y({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var _w=["YYYY","MM","DD","HH","mm","ss","SSS"],Ww=function(){function e(t){Ce(this,e),M(this,"format",void 0),M(this,"maskFormat",void 0),M(this,"cells",void 0),M(this,"maskCells",void 0),this.format=t;var n=_w.map(function(e){return"(".concat(e,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(e){return"顧".repeat(e.length)});var o=new RegExp("(".concat(_w.join("|"),")")),i=(t.split(o)||[]).filter(function(e){return e}),a=0;this.cells=i.map(function(e){var t=_w.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(function(e){return e.mask})}return $e(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=r)}return n}}]),e}();var Vw=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Gw=l.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=void 0===r||r,i=e.suffixIcon,a=e.format,c=e.validateFormat,s=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,f=e.onSubmit,p=e.onKeyDown,m=e.preserveInvalidOnBlur,g=void 0!==m&&m,h=e.invalid,v=e.clearIcon,x=st(e,Vw),w=e.value,C=e.onFocus,S=e.onBlur,$=e.onMouseUp,k=l.useContext(ux),E=k.prefixCls,O=k.input,I=void 0===O?"input":O,N="".concat(E,"-input"),R=Qe(l.useState(!1),2),j=R[0],P=R[1],D=Qe(l.useState(w),2),T=D[0],B=D[1],L=Qe(l.useState(""),2),z=L[0],F=L[1],H=Qe(l.useState(null),2),A=H[0],_=H[1],W=Qe(l.useState(null),2),V=W[0],G=W[1],U=T||"";l.useEffect(function(){B(w)},[w]);var X=l.useRef(),K=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:X.current,inputElement:K.current,focus:function(e){K.current.focus(e)},blur:function(){K.current.blur()}}});var Q=l.useMemo(function(){return new Ww(a||"")},[a]),Y=Qe(l.useMemo(function(){return u?[0,0]:Q.getSelection(A)},[Q,A,u]),2),q=Y[0],Z=Y[1],J=function(e){e&&e!==a&&e!==w&&d()},ee=wo(function(e){c(e)&&s(e),B(e),J(e)}),te=l.useRef(!1),ne=function(e){S(e)};qx(n,function(){n||g||B(w)});var re=function(e){"Enter"===e.key&&c(U)&&f(),null==p||p(e)},oe=l.useRef();Dt(function(){if(j&&a&&!te.current){if(Q.match(U))return K.current.setSelectionRange(q,Z),oe.current=Ge(function(){K.current.setSelectionRange(q,Z)}),function(){Ge.cancel(oe.current)};ee(a)}},[Q,a,j,U,A,q,Z,V,ee]);var ie=a?{onFocus:function(e){P(!0),_(0),F(""),C(e)},onBlur:function(e){P(!1),ne(e)},onKeyDown:function(e){re(e);var t=e.key,n=null,r=null,o=Z-q,i=a.slice(q,Z),l=function(e){_(function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,Q.size()-1)})},c=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=Qe(t,3),r=n[0],o=n[1],a=n[2],l=U.slice(q,Z),c=Number(l);if(isNaN(c))return String(a||(e>0?r:o));var s=o-r+1;return String(r+(s+(c+e)-r)%s)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",l(-1);break;case"ArrowRight":n="",l(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=z+t)}if(null!==n&&(F(n),n.length>=o&&(l(1),F(""))),null!==r){var s=U.slice(0,q)+px(r,o)+U.slice(Z);ee(s.slice(0,a.length))}G({})},onMouseDown:function(){te.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=Q.getMaskCellIndex(t);_(n),G({}),null==$||$(e),te.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");c(t)&&ee(t)}}:{};return l.createElement("div",{ref:X,className:b(N,M(M({},"".concat(N,"-active"),n&&o),"".concat(N,"-placeholder"),u))},l.createElement(I,y({ref:K,"aria-invalid":h,autoComplete:"off"},x,{onKeyDown:re,onBlur:ne},ie,{value:U,onChange:function(e){if(!a){var t=e.target.value;J(t),B(t),s(t)}}})),l.createElement(Hw,{type:"suffix",icon:i}),v)}),Uw=["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"],Xw=["index"];function Kw(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,i=e.suffixIcon,a=e.separator,c=void 0===a?"~":a,s=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,p=e.style,m=e.onClick,g=e.onClear,h=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,w=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var S=e.onActiveInfo;e.placement;var $=e.onMouseDown;e.required,e["aria-required"];var k=e.autoFocus,E=e.tabIndex,O=st(e,Uw),I="rtl"===C,N=l.useContext(ux).prefixCls,R=l.useMemo(function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]},[n]),j=l.useRef(),P=l.useRef(),T=l.useRef(),B=function(e){var t;return null===(t=[P,T][e])||void 0===t?void 0:t.current};l.useImperativeHandle(t,function(){return{nativeElement:j.current,focus:function(e){if("object"===x(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=st(n,Xw);null===(t=B(o))||void 0===t||t.focus(i)}else{var a;null===(a=B(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=B(0))||void 0===e||e.blur(),null===(t=B(1))||void 0===t||t.blur()}}});var L=Lw(O),z=l.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),F=Qe(Tw(D(D({},e),{},{id:R,placeholder:z})),1)[0],H=Qe(l.useState({position:"absolute",width:0}),2),A=H[0],_=H[1],W=wo(function(){var e=B(s);if(e){var t=e.nativeElement.getBoundingClientRect(),n=j.current.getBoundingClientRect(),r=t.left-n.left;_(function(e){return D(D({},e),{},{width:t.width,left:r})}),S([t.left,t.right,n.width])}});l.useEffect(function(){W()},[s]);var V=o&&(h[0]&&!v[0]||h[1]&&!v[1]),G=k&&!v[0],U=k&&!G&&!v[1];return l.createElement(Te,{onResize:W},l.createElement("div",y({},L,{className:b(N,"".concat(N,"-range"),M(M(M(M({},"".concat(N,"-focused"),u),"".concat(N,"-disabled"),v.every(function(e){return e})),"".concat(N,"-invalid"),w.some(function(e){return e})),"".concat(N,"-rtl"),I),f),style:p,ref:j,onClick:m,onMouseDown:function(e){var t=e.target;t!==P.current.inputElement&&t!==T.current.inputElement&&e.preventDefault(),null==$||$(e)}}),r&&l.createElement("div",{className:"".concat(N,"-prefix")},r),l.createElement(Gw,y({ref:P},F(0),{autoFocus:G,tabIndex:E,"date-range":"start"})),l.createElement("div",{className:"".concat(N,"-range-separator")},c),l.createElement(Gw,y({ref:T},F(1),{autoFocus:U,tabIndex:E,"date-range":"end"})),l.createElement("div",{className:"".concat(N,"-active-bar"),style:A}),l.createElement(Hw,{type:"suffix",icon:i}),V&&l.createElement(Aw,{icon:o,onClear:g})))}var Qw=l.forwardRef(Kw);function Yw(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function qw(e){return 1===e?"end":"start"}function Zw(e,t){var n=Xx(e,function(){var t=e.disabled,n=e.allowEmpty;return{disabled:Yw(t,!1),allowEmpty:Yw(n,!1)}}),r=Qe(n,6),o=r[0],i=r[1],a=r[2],c=r[3],s=r[4],u=r[5],d=o.prefixCls,f=o.styles,p=o.classNames,m=o.defaultValue,g=o.value,h=o.needConfirm,v=o.onKeyDown,b=o.disabled,x=o.allowEmpty,w=o.disabledDate,C=o.minDate,S=o.maxDate,$=o.defaultOpen,k=o.open,E=o.onOpenChange,O=o.locale,I=o.generateConfig,N=o.picker,R=o.showNow,j=o.showToday,M=o.showTime,P=o.mode,T=o.onPanelChange,B=o.onCalendarChange,L=o.onOk,z=o.defaultPickerValue,F=o.pickerValue,H=o.onPickerValueChange,A=o.inputReadOnly,_=o.suffixIcon,W=o.onFocus,V=o.onBlur,G=o.presets,U=o.ranges,X=o.components,K=o.cellRender,Q=o.dateRender,Y=o.monthCellRender,q=o.onClick,Z=Qx(t),J=Qe(Kx(k,$,b,E),2),ee=J[0],te=J[1],ne=function(e,t){!b.some(function(e){return!e})&&e||te(e,t)},re=Qe(aw(I,O,c,!0,!1,m,g,B,L),5),oe=re[0],ie=re[1],ae=re[2],le=re[3],ce=re[4],se=ae(),ue=Qe(Zx(b,x,ee),9),de=ue[0],fe=ue[1],pe=ue[2],me=ue[3],ge=ue[4],he=ue[5],ve=ue[6],be=ue[7],ye=ue[8],xe=function(e,t){fe(!0),null==W||W(e,{range:qw(null!=t?t:me)})},we=function(e,t){fe(!1),null==V||V(e,{range:qw(null!=t?t:me)})},Ce=l.useMemo(function(){if(!M)return null;var e=M.disabledTime,t=e?function(t){var n=qw(me),r=bx(se,ve,me);return e(t,n,{from:r})}:void 0;return D(D({},M),{},{disabledTime:t})},[M,me,se,ve]),Se=Qe($o([N,N],{value:P}),2),$e=Se[0],ke=Se[1],Ee=$e[me]||N,Oe="date"===Ee&&Ce?"datetime":Ee,Ie=Oe===N&&"time"!==Oe,Ne=cw(N,Ee,R,j,!0),Re=Qe(lw(o,oe,ie,ae,le,b,c,de,ee,u),2),je=Re[0],Me=Re[1],Pe=function(e,t,n,r,o,i){var a=n[n.length-1];return function(l,c){var s=Qe(e,2),u=s[0],d=s[1],f=D(D({},c),{},{from:bx(e,n)});return!(1!==a||!t[0]||!u||Ax(r,o,u,l,f.type)||!r.isAfter(u,l))||!(0!==a||!t[1]||!d||Ax(r,o,d,l,f.type)||!r.isAfter(l,d))||(null==i?void 0:i(l,f))}}(se,b,ve,I,O,w),De=Qe(wx(se,u,x),2),Te=De[0],Be=De[1],Le=Qe(tw(I,O,se,$e,ee,me,i,Ie,z,F,null==Ce?void 0:Ce.defaultOpenValue,H,C,S),2),ze=Le[0],He=Le[1],Ae=wo(function(e,t,n){var r=gx($e,me,t);if(r[0]===$e[0]&&r[1]===$e[1]||ke(r),T&&!1!==n){var o=Fe(se);e&&(o[me]=e),T(o,r)}}),_e=function(e,t){return gx(se,t,e)},We=function(e,t){var n=se;e&&(n=_e(e,me)),be(me);var r=he(n);le(n),je(me,null===r),null===r?ne(!1,{force:!0}):t||Z.current.focus({index:r})},Ve=Qe(l.useState(null),2),Ge=Ve[0],Ue=Ve[1],Xe=Qe(l.useState(null),2),Ke=Xe[0],Ye=Xe[1],qe=l.useMemo(function(){return Ke||se},[se,Ke]);l.useEffect(function(){ee||Ye(null)},[ee]);var Ze=Qe(l.useState([0,0,0]),2),Je=Ze[0],et=Ze[1],tt=Yx(G,U),nt=xx(K,Q,Y,qw(me)),rt=se[me]||null,ot=wo(function(e){return u(e,{activeIndex:me})}),it=l.useMemo(function(){var e=Ya(o,!1);return Ic(o,[].concat(Fe(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))},[o]),at=l.createElement(Dw,y({},it,{showNow:Ne,showTime:Ce,range:!0,multiplePanel:Ie,activeInfo:Je,disabledDate:Pe,onFocus:function(e){ne(!0),xe(e)},onBlur:we,onPanelMouseDown:function(){pe("panel")},picker:N,mode:Ee,internalMode:Oe,onPanelChange:Ae,format:s,value:rt,isInvalid:ot,onChange:null,onSelect:function(e){var t=gx(se,me,e);le(t),h||a||i!==Oe||We(e)},pickerValue:ze,defaultOpenValue:mx(null==M?void 0:M.defaultOpenValue)[me],onPickerValueChange:He,hoverValue:qe,onHover:function(e){Ye(e?_e(e,me):null),Ue("cell")},needConfirm:h,onSubmit:We,onOk:ce,presets:tt,onPresetHover:function(e){Ye(e),Ue("preset")},onPresetSubmit:function(e){Me(e)&&ne(!1,{force:!0})},onNow:function(e){We(e)},cellRender:nt})),lt=l.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:I,button:X.button,input:X.input}},[d,O,I,X.button,X.input]);return Dt(function(){ee&&void 0!==me&&Ae(null,N,!1)},[ee,me,N]),Dt(function(){var e=pe();ee||"input"!==e||(ne(!1),We(null,!0)),ee||!a||h||"panel"!==e||(ne(!0),We())},[ee]),l.createElement(ux.Provider,{value:lt},l.createElement(fx,y({},yx(o),{popupElement:at,popupStyle:f.popup,popupClassName:p.popup,visible:ee,onClose:function(){ne(!1)},range:!0}),l.createElement(Qw,y({},o,{ref:Z,suffixIcon:_,activeIndex:de||ee?me:null,activeHelp:!!Ke,allHelp:!!Ke&&"preset"===Ge,focused:de,onFocus:function(e,t){var n=ve.length,r=ve[n-1];n&&r!==t&&h&&!x[r]&&!ye(r)&&se[r]?Z.current.focus({index:r}):(pe("input"),ne(!0,{inherit:!0}),me!==t&&ee&&!h&&a&&We(null,!0),ge(t),xe(e,t))},onBlur:function(e,t){if(ne(!1),!h&&"input"===pe()){var n=he(se);je(me,null===n)}we(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&We(null,!0),null==v||v(e,t)},onSubmit:We,value:qe,maskFormat:s,onChange:function(e,t){var n=_e(e,t);le(n)},onInputChange:function(){pe("input")},format:c,inputReadOnly:A,disabled:b,open:ee,onOpenChange:ne,onClick:function(e){var t,n=e.target.getRootNode();if(!Z.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=b.findIndex(function(e){return!e});r>=0&&Z.current.focus({index:r})}ne(!0),null==q||q(e)},onClear:function(){Me(null),ne(!1,{force:!0})},invalid:Te,onInvalid:Be,onActiveInfo:et}))))}var Jw=l.forwardRef(Zw);function eC(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,i=void 0===o?"×":o,a=e.formatDate,c=e.disabled,s=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function m(e,t){return l.createElement("span",{className:b("".concat(f,"-item")),title:"string"==typeof e?e:null},l.createElement("span",{className:"".concat(f,"-item-content")},e),!c&&t&&l.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(f,"-item-remove")},i))}return l.createElement("div",{className:d},l.createElement(mm,{prefixCls:p,data:n,renderItem:function(e){return m(a(e),function(t){t&&t.stopPropagation(),r(e)})},renderRest:function(e){return m("+ ".concat(e.length," ..."))},itemKey:function(e){return a(e)},maxCount:s}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var tC=["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 nC(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,i=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var c=e.locale,s=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,p=e.onClick,m=e.onClear,g=e.internalPicker,h=e.value,v=e.onChange,x=e.onSubmit;e.onInputChange;var w=e.multiple,C=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,$=e.invalid;e.inputReadOnly;var k=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,I=e.tabIndex,N=e.removeIcon,R=st(e,tC),j="rtl"===k,P=l.useContext(ux).prefixCls,T=l.useRef(),B=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:T.current,focus:function(e){var t;null===(t=B.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=B.current)||void 0===e||e.blur()}}});var L=Lw(R),z=Tw(D(D({},e),{},{onChange:function(e){v([e])}}),function(e){return{value:e.valueTexts[0]||"",active:a}}),F=Qe(z,2),H=F[0],A=F[1],_=!(!o||!h.length||S),W=w?l.createElement(l.Fragment,null,l.createElement(eC,{prefixCls:P,value:h,onRemove:function(e){var t=h.filter(function(t){return t&&!Ax(s,c,t,e,g)});v(t),n||x()},formatDate:A,maxTagCount:C,disabled:S,removeIcon:N,placeholder:u}),l.createElement("input",{className:"".concat(P,"-multiple-input"),value:h.map(A).join(","),ref:B,readOnly:!0,autoFocus:O,tabIndex:I}),l.createElement(Hw,{type:"suffix",icon:i}),_&&l.createElement(Aw,{icon:o,onClear:m})):l.createElement(Gw,y({ref:B},H(),{autoFocus:O,tabIndex:I,suffixIcon:i,clearIcon:_&&l.createElement(Aw,{icon:o,onClear:m}),showActiveCls:!1}));return l.createElement("div",y({},L,{className:b(P,M(M(M(M(M({},"".concat(P,"-multiple"),w),"".concat(P,"-focused"),a),"".concat(P,"-disabled"),S),"".concat(P,"-invalid"),$),"".concat(P,"-rtl"),j),d),style:f,ref:T,onClick:p,onMouseDown:function(e){var t;e.target!==(null===(t=B.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==E||E(e)}}),r&&l.createElement("div",{className:"".concat(P,"-prefix")},r),W)}var rC=l.forwardRef(nC);function oC(e,t){var n=Qe(Xx(e),6),r=n[0],o=n[1],i=n[2],a=n[3],c=n[4],s=n[5],u=r,d=u.prefixCls,f=u.styles,p=u.classNames,m=u.order,g=u.defaultValue,h=u.value,v=u.needConfirm,b=u.onChange,x=u.onKeyDown,w=u.disabled,C=u.disabledDate,S=u.minDate,$=u.maxDate,k=u.defaultOpen,E=u.open,O=u.onOpenChange,I=u.locale,N=u.generateConfig,R=u.picker,j=u.showNow,M=u.showToday,P=u.showTime,T=u.mode,B=u.onPanelChange,L=u.onCalendarChange,z=u.onOk,F=u.multiple,H=u.defaultPickerValue,A=u.pickerValue,_=u.onPickerValueChange,W=u.inputReadOnly,V=u.suffixIcon,G=u.removeIcon,U=u.onFocus,X=u.onBlur,K=u.presets,Q=u.components,Y=u.cellRender,q=u.dateRender,Z=u.monthCellRender,J=u.onClick,ee=Qx(t);function te(e){return null===e?null:F?e:e[0]}var ne=pw(N,I,o),re=Qe(Kx(E,k,[w],O),2),oe=re[0],ie=re[1],ae=Qe(aw(N,I,a,!1,m,g,h,function(e,t,n){if(L){var r=D({},n);delete r.range,L(te(e),te(t),r)}},function(e){null==z||z(te(e))}),5),le=ae[0],ce=ae[1],se=ae[2],ue=ae[3],de=ae[4],fe=se(),pe=Qe(Zx([w]),4),me=pe[0],ge=pe[1],he=pe[2],ve=pe[3],be=function(e){ge(!0),null==U||U(e,{})},ye=function(e){ge(!1),null==X||X(e,{})},xe=Qe($o(R,{value:T}),2),we=xe[0],Ce=xe[1],Se="date"===we&&P?"datetime":we,$e=cw(R,we,j,M),ke=b&&function(e,t){b(te(e),te(t))},Ee=Qe(lw(D(D({},r),{},{onChange:ke}),le,ce,se,ue,[],a,me,oe,s),2)[1],Oe=Qe(wx(fe,s),2),Ie=Oe[0],Ne=Oe[1],Re=l.useMemo(function(){return Ie.some(function(e){return e})},[Ie]),je=Qe(tw(N,I,fe,[we],oe,ve,o,!1,H,A,mx(null==P?void 0:P.defaultOpenValue),function(e,t){if(_){var n=D(D({},t),{},{mode:t.mode[0]});delete n.range,_(e[0],n)}},S,$),2),Me=je[0],Pe=je[1],De=wo(function(e,t,n){if(Ce(t),B&&!1!==n){var r=e||fe[fe.length-1];B(r,t)}}),Te=function(){Ee(se()),ie(!1,{force:!0})},Be=Qe(l.useState(null),2),Le=Be[0],ze=Be[1],He=Qe(l.useState(null),2),Ae=He[0],_e=He[1],We=l.useMemo(function(){var e=[Ae].concat(Fe(fe)).filter(function(e){return e});return F?e:e.slice(0,1)},[fe,Ae,F]),Ve=l.useMemo(function(){return!F&&Ae?[Ae]:fe.filter(function(e){return e})},[fe,Ae,F]);l.useEffect(function(){oe||_e(null)},[oe]);var Ge=Yx(K),Ue=function(e){var t=F?ne(se(),e):[e];Ee(t)&&!F&&ie(!1,{force:!0})},Xe=xx(Y,q,Z),Ke=l.useMemo(function(){var e=Ya(r,!1);return D(D({},Ic(r,[].concat(Fe(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:r.multiple})},[r]),Ye=l.createElement(Dw,y({},Ke,{showNow:$e,showTime:P,disabledDate:C,onFocus:function(e){ie(!0),be(e)},onBlur:ye,picker:R,mode:we,internalMode:Se,onPanelChange:De,format:c,value:fe,isInvalid:s,onChange:null,onSelect:function(e){if(he("panel"),!F||Se===R){var t=F?ne(se(),e):[e];ue(t),v||i||o!==Se||Te()}},pickerValue:Me,defaultOpenValue:null==P?void 0:P.defaultOpenValue,onPickerValueChange:Pe,hoverValue:We,onHover:function(e){_e(e),ze("cell")},needConfirm:v,onSubmit:Te,onOk:de,presets:Ge,onPresetHover:function(e){_e(e),ze("preset")},onPresetSubmit:Ue,onNow:function(e){Ue(e)},cellRender:Xe})),qe=l.useMemo(function(){return{prefixCls:d,locale:I,generateConfig:N,button:Q.button,input:Q.input}},[d,I,N,Q.button,Q.input]);return Dt(function(){oe&&void 0!==ve&&De(null,R,!1)},[oe,ve,R]),Dt(function(){var e=he();oe||"input"!==e||(ie(!1),Te()),oe||!i||v||"panel"!==e||Te()},[oe]),l.createElement(ux.Provider,{value:qe},l.createElement(fx,y({},yx(r),{popupElement:Ye,popupStyle:f.popup,popupClassName:p.popup,visible:oe,onClose:function(){ie(!1)}}),l.createElement(rC,y({},r,{ref:ee,suffixIcon:V,removeIcon:G,activeHelp:!!Ae,allHelp:!!Ae&&"preset"===Le,focused:me,onFocus:function(e){he("input"),ie(!0,{inherit:!0}),be(e)},onBlur:function(e){ie(!1),ye(e)},onKeyDown:function(e,t){"Tab"===e.key&&Te(),null==x||x(e,t)},onSubmit:Te,value:Ve,maskFormat:c,onChange:function(e){ue(e)},onInputChange:function(){he("input")},internalPicker:o,format:a,inputReadOnly:W,disabled:w,open:oe,onOpenChange:ie,onClick:function(e){w||ee.current.nativeElement.contains(document.activeElement)||ee.current.focus(),ie(!0),null==J||J(e)},onClear:function(){Ee(null),ie(!1,{force:!0})},invalid:Re,onInvalid:function(e){Ne(e,0)}}))))}var iC=l.forwardRef(oC);const aC=l.createContext(null),lC=aC.Provider,cC=l.createContext(null),sC=cC.Provider;var uC=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],dC=e.forwardRef(function(t,n){var r=t.prefixCls,o=void 0===r?"rc-checkbox":r,i=t.className,a=t.style,c=t.checked,s=t.disabled,u=t.defaultChecked,d=void 0!==u&&u,f=t.type,p=void 0===f?"checkbox":f,m=t.title,g=t.onChange,h=st(t,uC),v=e.useRef(null),x=e.useRef(null),w=Qe($o(d,{value:c}),2),C=w[0],S=w[1];e.useImperativeHandle(n,function(){return{focus:function(e){var t;null===(t=v.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=v.current)||void 0===e||e.blur()},input:v.current,nativeElement:x.current}});var $=b(o,i,M(M({},"".concat(o,"-checked"),C),"".concat(o,"-disabled"),s));return l.createElement("span",{className:$,title:m,style:a,ref:x},l.createElement("input",y({},h,{className:"".concat(o,"-input"),ref:v,onChange:function(e){s||("checked"in t||S(e.target.checked),null==g||g({target:D(D({},t),{},{type:p,checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},disabled:s,checked:!!C,type:p})),l.createElement("span",{className:"".concat(o,"-inner")}))});function fC(t){const n=e.useRef(null),r=()=>{Ge.cancel(n.current),n.current=null};return[()=>{r(),n.current=Ge(()=>{n.current=null})},e=>{n.current&&(e.stopPropagation(),r()),null==t||t(e)}]}const pC=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Xo(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"}})}},mC=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(o).sub(b(4).mul(2)),w=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Xo(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:`${It(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Xo(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Ko(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:w,height:w,marginBlockStart:b(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},gC=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationMid:l,buttonPaddingInline:c,fontSize:s,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:g,borderRadiusSM:h,borderRadiusLG:v,buttonCheckedBg:b,buttonSolidCheckedColor:y,colorTextDisabled:x,colorBgContainerDisabled:w,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:S,colorPrimary:$,colorPrimaryHover:k,colorPrimaryActive:E,buttonSolidCheckedBg:O,buttonSolidCheckedHoverBg:I,buttonSolidCheckedActiveBg:N,calc:R}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:s,lineHeight:It(R(n).sub(R(o).mul(2)).equal()),background:u,border:`${It(o)} ${i} ${a}`,borderBlockStartWidth:R(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:R(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${It(o)} ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:It(R(f).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:p,paddingInline:R(m).sub(o).equal(),paddingBlock:0,lineHeight:It(R(p).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Ko(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:$,background:b,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:O,borderColor:O,"&:hover":{color:y,background:I,borderColor:I},"&:active":{color:y,background:N,borderColor:N}},"&-disabled":{color:x,backgroundColor:w,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:w,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:S,backgroundColor:C,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}};var hC=Zo("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${It(n)} ${t}`,o=Io(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[pC(o),mC(o),gC(o)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?l:d}},{unitless:{radioSize:!0,dotSize:!0}}),vC=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 bC=(e,t)=>{var n,r;const o=l.useContext(aC),i=l.useContext(cC),{getPrefixCls:a,direction:c,radio:s}=l.useContext(ro),u=l.useRef(null),d=U(t,u),{isFormItemInput:f}=l.useContext(Nf),p=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==o?void 0:o.onChange)||void 0===r||r.call(o,t)},{prefixCls:m,className:g,rootClassName:h,children:v,style:y,title:x}=e,w=vC(e,["prefixCls","className","rootClassName","children","style","title"]),C=a("radio",m),S="button"===((null==o?void 0:o.optionType)||i),$=S?`${C}-button`:C,k=cl(C),[E,O,I]=hC(C,k),N=Object.assign({},w),R=l.useContext(so);o&&(N.name=o.name,N.onChange=p,N.checked=e.value===o.value,N.disabled=null!==(n=N.disabled)&&void 0!==n?n:o.disabled),N.disabled=null!==(r=N.disabled)&&void 0!==r?r:R;const j=b(`${$}-wrapper`,{[`${$}-wrapper-checked`]:N.checked,[`${$}-wrapper-disabled`]:N.disabled,[`${$}-wrapper-rtl`]:"rtl"===c,[`${$}-wrapper-in-form-item`]:f,[`${$}-wrapper-block`]:!!(null==o?void 0:o.block)},null==s?void 0:s.className,g,h,O,I,k),[M,P]=fC(N.onClick);return E(l.createElement(Lc,{component:"Radio",disabled:N.disabled},l.createElement("label",{className:j,style:Object.assign(Object.assign({},null==s?void 0:s.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:M},l.createElement(dC,Object.assign({},N,{className:b(N.className,{[jc]:!S}),type:"radio",prefixCls:$,ref:d,onClick:P})),void 0!==v?l.createElement("span",{className:`${$}-label`},v):null)))},yC=l.forwardRef(bC),xC=["parentNode"];function wC(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function CC(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return xC.includes(n)?`form_item_${n}`:n}function SC(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}var $C=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 kC(e){return wC(e).join("_")}function EC(e,t){const n=B(t.getFieldInstance(e));if(n)return n;const r=CC(wC(e),t.__INTERNAL__.name);return r?document.getElementById(r):void 0}function OC(e){const[t]=vf(),n=l.useRef({}),r=l.useMemo(()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=kC(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{const{focus:n}=t,o=$C(t,["focus"]),i=EC(e,r);i&&(il(i,Object.assign({scrollMode:"if-needed",block:"nearest"},o)),n&&r.focusField(e))},focusField:e=>{var t,n;const o=r.getFieldInstance(e);"function"==typeof(null==o?void 0:o.focus)?o.focus():null===(n=null===(t=EC(e,r))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},getFieldInstance:e=>{const t=kC(e);return n.current[t]}}),[e,t]);return[r]}const IC=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(ro),{name:o}=l.useContext(Nf),i=id(kC(o)),{prefixCls:a,className:c,rootClassName:s,options:u,buttonStyle:d="outline",disabled:f,children:p,size:m,style:g,id:h,optionType:v,name:y=i,defaultValue:x,value:w,block:C=!1,onChange:S,onMouseEnter:$,onMouseLeave:k,onFocus:E,onBlur:O}=e,[I,N]=$o(x,{value:w}),R=l.useCallback(t=>{const n=I,r=t.target.value;"value"in e||N(r),r!==n&&(null==S||S(t))},[I,N,S]),j=n("radio",a),M=`${j}-group`,P=cl(j),[D,T,B]=hC(j,P);let L=p;u&&u.length>0&&(L=u.map(e=>"string"==typeof e||"number"==typeof e?l.createElement(yC,{key:e.toString(),prefixCls:j,disabled:f,value:e,checked:I===e},e):l.createElement(yC,{key:`radio-group-value-options-${e.value}`,prefixCls:j,disabled:e.disabled||f,value:e.value,checked:I===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const z=zc(m),F=b(M,`${M}-${d}`,{[`${M}-${z}`]:z,[`${M}-rtl`]:"rtl"===r,[`${M}-block`]:C},c,s,T,B,P),H=l.useMemo(()=>({onChange:R,value:I,disabled:f,name:y,optionType:v,block:C}),[R,I,f,y,v,C]);return D(l.createElement("div",Object.assign({},Ya(e,{aria:!0,data:!0}),{className:F,style:g,onMouseEnter:$,onMouseLeave:k,onFocus:E,onBlur:O,id:h,ref:t}),l.createElement(lC,{value:H},L)))});var NC=l.memo(IC),RC=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 jC=(e,t)=>{const{getPrefixCls:n}=l.useContext(ro),{prefixCls:r}=e,o=RC(e,["prefixCls"]),i=n("radio",r);return l.createElement(sC,{value:"button"},l.createElement(yC,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))};var MC=l.forwardRef(jC);const PC=yC;function DC(e){return Io(e,{inputAffixPadding:e.paddingXXS})}PC.Button=MC,PC.Group=NC,PC.__ANT_RADIO=!0;const TC=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y,inputFontSize:x,inputFontSizeLG:w,inputFontSizeSM:C}=e,S=x||n,$=C||S,k=w||l,E=Math.round((t-S*r)/2*10)/10-o,O=Math.round((i-$*r)/2*10)/10-o,I=Math.ceil((a-k*c)/2*10)/10-o;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(O,0),paddingBlockLG:Math.max(I,0),paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${h}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:S,inputFontSizeLG:k,inputFontSizeSM:$}},BC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),LC=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({},BC(Io(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),zC=(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}}),FC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},zC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),HC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},LC(e))}),FC(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),FC(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),AC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),_C=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},AC(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),AC(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},LC(e))}})}),WC=(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)}},VC=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null==t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},GC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},VC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),UC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},VC(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},LC(e))}),GC(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),GC(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),XC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),KC=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},XC(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),XC(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:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),QC=(e,t)=>({background:e.colorBgContainer,borderWidth:`${It(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),YC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},QC(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`}}),qC=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},QC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${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"}}),YC(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),YC(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),ZC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),JC=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${It(t)} ${It(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},eS=e=>({padding:`${It(e.paddingBlockSM)} ${It(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),tS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${It(e.paddingBlock)} ${It(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},ZC(e.colorTextPlaceholder)),{"&-lg":Object.assign({},JC(e)),"&-sm":Object.assign({},eS(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),nS=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({},JC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},eS(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 ${It(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${It(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${It(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:`${It(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${It(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"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${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},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{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,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${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,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${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}}}})}},rS=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=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({},Xo(e)),tS(e)),HC(e)),UC(e)),WC(e)),qC(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},oS=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 ${It(e.inputAffixPadding)}`}}}},iS=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,s=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},tS(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}}}),oS(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[s]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},aS=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Xo(e)),nS(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}}},_C(e)),KC(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}}})})}},lS=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,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},cS=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},sS=Zo(["Input","Shared"],e=>{const t=Io(e,DC(e));return[rS(t),iS(t)]},TC,{resetFont:!1});var uS=Zo(["Input","Component"],e=>{const t=Io(e,DC(e));return[aS(t),lS(t),cS(t),Ru(t)]},TC,{resetFont:!1});const dS=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=oh(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:It(i.itemLineHeight)}}}]},fS=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Io(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=Io(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[dS(o,"small"),dS(e),dS(i,"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"}}},ih(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},pS=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=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:It(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${It(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:m}},[`&-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:f,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},mS=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:g,colorSplit:h,pickerControlIconBorderWidth:v,colorIcon:b,textHeight:y,motionDurationMid:x,colorIconHover:w,fontWeightStrong:C,cellHeight:S,pickerCellPaddingVertical:$,colorTextDisabled:k,colorText:E,fontSize:O,motionDurationSlow:I,withoutTimeCellHeight:N,pickerQuarterPanelContentHeight:R,borderRadiusSM:j,colorTextLightSolid:M,cellHoverBg:P,timeColumnHeight:D,timeColumnWidth:T,timeCellHeight:B,controlItemBgActive:L,marginXXS:z,pickerDatePanelPaddingHorizontal:F,pickerControlIconMargin:H}=e,A=e.calc(a).mul(7).add(e.calc(F).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${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:A},"&-header":{display:"flex",padding:`0 ${It(c)}`,color:g,borderBottom:`${It(d)} ${f} ${h}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:It(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:O,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:C,lineHeight:It(y),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:H,insetInlineStart:H,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,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:S,fontWeight:"normal"},th:{height:e.calc(S).add(e.calc($).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${It($)} 0`,color:k,cursor:"pointer","&-in-view":{color:E}},pS(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(N).mul(4).equal()},[r]:{padding:`0 ${It(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:R}},"&-decade-panel":{[r]:{padding:`0 ${It(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${It(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${It(c)} ${It(F)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td:before":{background:P},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new $r(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${It(c)} ${It(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${It(d)} ${f} ${h}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${I}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:D},"&-column":{flex:"1 0 auto",width:T,margin:`${It(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,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% - ${It(B)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${It(d)} ${f} ${h}`},"&-active":{background:new $r(L).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(T).sub(e.calc(z).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(T).sub(B).div(2).equal(),color:E,lineHeight:It(B),borderRadius:j,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:k,background:"transparent",cursor:"not-allowed"}}}}}}}}},gS=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${It(r)} ${s} ${u}`,"&-extra":{padding:`0 ${It(o)}`,lineHeight:It(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${It(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:It(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:It(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},hS=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},HC(e)),qC(e)),UC(e)),WC(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${It(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${It(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${It(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${It(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},vS=(e,t)=>({padding:`${It(e)} ${It(t)}`}),bS=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}}}}},yS=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,colorTextQuaternary:f,fontSizeLG:p,inputFontSizeLG:m,fontSizeSM:g,inputFontSizeSM:h,controlHeightSM:v,paddingInlineSM:b,paddingXS:y,marginXS:x,colorIcon:w,lineWidthBold:C,colorPrimary:S,motionDurationSlow:$,zIndexPopup:k,paddingXXS:E,sizePopupArrow:O,colorBgElevated:I,borderRadiusLG:N,boxShadowSecondary:R,borderRadiusSM:j,colorSplit:M,cellHoverBg:P,presetsWidth:D,presetsMaxWidth:T,boxShadowPopoverArrow:B,fontHeight:L,lineHeightLG:z}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},Xo(e)),vS(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${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:null!==(t=e.inputFontSize)&&void 0!==t?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},ZC(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},vS(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:null!=m?m:p,lineHeight:z}}),"&-small":Object.assign(Object.assign({},vS(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:null!=h?h:g}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:f,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:x}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:f,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:f,fontSize:p,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:w},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:C,background:S,opacity:0,transition:`all ${$} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${It(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:b}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Xo(e)),mS(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:k,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,\n &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,\n &${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,\n &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,\n &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,\n &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Ps},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,\n &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,\n &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:js},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,\n &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Ds},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,\n &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Ms},[`${n}-panel > ${n}-time-panel`]:{paddingTop:E},[`${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 ${$} ease-out`},sv(e,I,B)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:I,borderRadius:N,boxShadow:R,transition:`margin ${$}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:D,maxWidth:T,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${It(i)} ${a} ${M}`,li:Object.assign(Object.assign({},Uo),{borderRadius:j,paddingInline:y,paddingBlock:e.calc(v).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${$}`,"+ li":{marginTop:x},"&:hover":{background:P}})}},[`${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:`${It(e.calc(O).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Hs(e,"slide-up"),Hs(e,"slide-down"),Rs(e,"move-up"),Rs(e,"move-down")]};var xS=Zo("DatePicker",e=>{const t=Io(DC(e),(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()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[gS(t),yS(t),hS(t),bS(t),fS(t),Ru(e,{focusElCls:`${e.componentCls}-focused`})]},e=>Object.assign(Object.assign(Object.assign(Object.assign({},TC(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,l=2*i,c=2*a,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),d=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new $r(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new $r(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),cv(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),wS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},CS=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:wS}))},SS=l.forwardRef(CS),$S=e.createContext(null),kS={width:0,height:0,left:0,top:0};function ES(e,t){var n=l.useRef(e),r=Qe(l.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var OS=Math.pow(.995,20);function IS(t){var n=Qe(e.useState(0),2),r=n[0],o=n[1],i=e.useRef(0),a=e.useRef();return a.current=t,Tt(function(){var e;null===(e=a.current)||void 0===e||e.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var NS={width:0,height:0,left:0,top:0,right:0};function RS(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function jS(e){return String(e).replace(/"/g,"TABS_DQ")}function MS(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var PS=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}),DS=l.forwardRef(function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==x(i)||l.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?l.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}),TS=l.forwardRef(function(t,n){var r=t.prefixCls,o=t.id,i=t.tabs,a=t.locale,c=t.mobile,s=t.more,u=void 0===s?{}:s,d=t.style,f=t.className,p=t.editable,m=t.tabBarGutter,g=t.rtl,h=t.removeAriaLabel,v=t.onTabClick,x=t.getPopupContainer,w=t.popupClassName,C=Qe(e.useState(!1),2),S=C[0],$=C[1],k=Qe(e.useState(null),2),E=k[0],O=k[1],I=u.icon,N=void 0===I?"More":I,R="".concat(o,"-more-popup"),j="".concat(r,"-dropdown"),P=null!==E?"".concat(R,"-").concat(E):null,D=null==a?void 0:a.dropdownAriaLabel;var T=l.createElement(ey,{onClick:function(e){var t=e.key,n=e.domEvent;v(t,n),$(!1)},prefixCls:"".concat(j,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[E],"aria-label":void 0!==D?D:"expanded dropdown"},i.map(function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,i=e.key,a=e.label,c=MS(t,r,p,n);return l.createElement(Ib,{key:i,id:"".concat(R,"-").concat(i),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(i),disabled:n},l.createElement("span",null,a),c&&l.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,i)}},r||p.removeIcon||"×"))}));function B(e){for(var t=i.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===E})||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void O(a.key)}}e.useEffect(function(){var e=document.getElementById(P);e&&e.scrollIntoView&&e.scrollIntoView(!1)},[E]),e.useEffect(function(){S||O(null)},[S]);var L=M({},g?"marginRight":"marginLeft",m);i.length||(L.visibility="hidden",L.order=1);var z=b(M({},"".concat(j,"-rtl"),g)),F=c?null:l.createElement(Bv,y({prefixCls:j,overlay:T,visible:!!i.length&&S,onVisibleChange:$,overlayClassName:b(z,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},u),l.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:L,"aria-haspopup":"listbox","aria-controls":R,id:"".concat(o,"-more"),"aria-expanded":S,onKeyDown:function(e){var t=e.which;if(S)switch(t){case sl.UP:B(-1),e.preventDefault();break;case sl.DOWN:B(1),e.preventDefault();break;case sl.ESC:$(!1);break;case sl.SPACE:case sl.ENTER:null!==E&&v(E,e)}else[sl.DOWN,sl.SPACE,sl.ENTER].includes(t)&&($(!0),e.preventDefault())}},N));return l.createElement("div",{className:b("".concat(r,"-nav-operations"),f),style:d,ref:n},F,l.createElement(PS,{prefixCls:r,locale:a,editable:p}))}),BS=l.memo(TS,function(e,t){return t.tabMoving}),LS=function(e){var t=e.prefixCls,n=e.id,r=e.active,o=e.focus,i=e.tab,a=i.key,c=i.label,s=i.disabled,u=i.closeIcon,d=i.icon,f=e.closable,p=e.renderWrapper,m=e.removeAriaLabel,g=e.editable,h=e.onClick,v=e.onFocus,y=e.onBlur,x=e.onKeyDown,w=e.onMouseDown,C=e.onMouseUp,S=e.style,$=e.tabCount,k=e.currentPosition,E="".concat(t,"-tab"),O=MS(f,u,g,s);function I(e){s||h(e)}var N=l.useMemo(function(){return d&&"string"==typeof c?l.createElement("span",null,c):c},[c,d]),R=l.useRef(null);l.useEffect(function(){o&&R.current&&R.current.focus()},[o]);var j=l.createElement("div",{key:a,"data-node-key":jS(a),className:b(E,M(M(M(M({},"".concat(E,"-with-remove"),O),"".concat(E,"-active"),r),"".concat(E,"-disabled"),s),"".concat(E,"-focus"),o)),style:S,onClick:I},l.createElement("div",{ref:R,role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(E,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:function(e){e.stopPropagation(),I(e)},onKeyDown:x,onMouseDown:w,onMouseUp:C,onFocus:v,onBlur:y},o&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(k," of ").concat($)),d&&l.createElement("span",{className:"".concat(E,"-icon")},d),c&&N),O&&l.createElement("button",{type:"button",role:"tab","aria-label":m||"remove",tabIndex:r?0:-1,className:"".concat(E,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),g.onEdit("remove",{key:a,event:t})}},u||g.removeIcon||"×"));return p?p(j):j},zS=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},FS=function(e,t){return e[t?0:1]},HS=l.forwardRef(function(t,n){var r,o,i,a,c,s=t.className,u=t.style,d=t.id,f=t.animated,p=t.activeKey,m=t.rtl,g=t.extra,h=t.editable,v=t.locale,x=t.tabPosition,w=t.tabBarGutter,C=t.children,S=t.onTabClick,$=t.onTabScroll,k=t.indicator,E=l.useContext($S),O=E.prefixCls,I=E.tabs,N=e.useRef(null),R=e.useRef(null),j=e.useRef(null),P=e.useRef(null),T=e.useRef(null),B=e.useRef(null),L=e.useRef(null),z="top"===x||"bottom"===x,F=ES(0,function(e,t){z&&$&&$({direction:e>t?"left":"right"})}),H=Qe(F,2),A=H[0],_=H[1],W=ES(0,function(e,t){!z&&$&&$({direction:e>t?"top":"bottom"})}),V=Qe(W,2),G=V[0],U=V[1],K=Qe(e.useState([0,0]),2),Q=K[0],Y=K[1],q=Qe(e.useState([0,0]),2),Z=q[0],J=q[1],ee=Qe(e.useState([0,0]),2),te=ee[0],ne=ee[1],re=Qe(e.useState([0,0]),2),oe=re[0],ie=re[1],ae=(r=new Map,o=e.useRef([]),i=Qe(e.useState({}),2)[1],a=e.useRef("function"==typeof r?r():r),c=IS(function(){var e=a.current;o.current.forEach(function(t){e=t(e)}),o.current=[],a.current=e,i({})}),[a.current,function(e){o.current.push(e),c()}]),le=Qe(ae,2),ce=le[0],se=le[1],ue=function(t,n,r){return e.useMemo(function(){for(var e,r=new Map,o=n.get(null===(e=t[0])||void 0===e?void 0:e.key)||kS,i=o.left+o.width,a=0;a<t.length;a+=1){var l,c=t[a].key,s=n.get(c);s||(s=n.get(null===(l=t[a-1])||void 0===l?void 0:l.key)||kS);var u=r.get(c)||D({},s);u.right=i-u.left-u.width,r.set(c,u)}return r},[t.map(function(e){return e.key}).join("_"),n,r])}(I,ce,Z[0]),de=FS(Q,z),fe=FS(Z,z),pe=FS(te,z),me=FS(oe,z),ge=Math.floor(de)<Math.floor(fe+pe),he=ge?de-me:de-pe,ve="".concat(O,"-nav-operations-hidden"),be=0,ye=0;function xe(e){return e<be?be:e>ye?ye:e}z&&m?(be=0,ye=Math.max(0,fe-he)):(be=Math.min(0,he-fe),ye=0);var we=e.useRef(null),Ce=Qe(e.useState(),2),Se=Ce[0],$e=Ce[1];function ke(){$e(Date.now())}function Ee(){we.current&&clearTimeout(we.current)}!function(t,n){var r=Qe(e.useState(),2),o=r[0],i=r[1],a=Qe(e.useState(0),2),c=a[0],s=a[1],u=Qe(e.useState(0),2),d=u[0],f=u[1],p=Qe(e.useState(),2),m=p[0],g=p[1],h=e.useRef(),v=e.useRef(),b=e.useRef(null);b.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(o){var t=e.touches[0],r=t.screenX,a=t.screenY;i({x:r,y:a});var l=r-o.x,u=a-o.y;n(l,u);var d=Date.now();s(d),f(d-c),g({x:l,y:u})}},onTouchEnd:function(){if(o&&(i(null),g(null),m)){var e=m.x/d,t=m.y/d,r=Math.abs(e),a=Math.abs(t);if(Math.max(r,a)<.1)return;var l=e,c=t;h.current=window.setInterval(function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(h.current):n(20*(l*=OS),20*(c*=OS))},20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===v.current?t:r:i>a?(o=t,v.current="x"):(o=r,v.current="y"),n(-o,-o)&&e.preventDefault()}},l.useEffect(function(){function e(e){b.current.onTouchMove(e)}function n(e){b.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",function(e){b.current.onTouchStart(e)},{passive:!0}),t.current.addEventListener("wheel",function(e){b.current.onWheel(e)},{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}},[])}(P,function(e,t){function n(e,t){e(function(e){return xe(e+t)})}return!!ge&&(z?n(_,e):n(U,t),Ee(),ke(),!0)}),e.useEffect(function(){return Ee(),Se&&(we.current=setTimeout(function(){$e(0)},100)),Ee},[Se]);var Oe=function(t,n,r,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(r)):(c="height",s="top",u=-r),e.useMemo(function(){if(!d.length)return[0,0];for(var e=d.length,r=e,o=0;o<e;o+=1){var i=t.get(d[o].key)||NS;if(Math.floor(i[s]+i[c])>Math.floor(u+n)){r=o-1;break}}for(var a=0,l=e-1;l>=0;l-=1)if((t.get(d[l].key)||NS)[s]<u){a=l+1;break}return a>r?[0,-1]:[a,r]},[t,n,o,i,a,u,f,d.map(function(e){return e.key}).join("_"),p])}(ue,he,z?A:G,fe,pe,me,D(D({},t),{},{tabs:I})),Ie=Qe(Oe,2),Ne=Ie[0],Re=Ie[1],je=wo(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(z){var n=A;m?t.right<A?n=t.right:t.right+t.width>A+he&&(n=t.right+t.width-he):t.left<-A?n=-t.left:t.left+t.width>-A+he&&(n=-(t.left+t.width-he)),U(0),_(xe(n))}else{var r=G;t.top<-G?r=-t.top:t.top+t.height>-G+he&&(r=-(t.top+t.height-he)),_(0),U(xe(r))}}),Me=Qe(e.useState(),2),Pe=Me[0],De=Me[1],Be=Qe(e.useState(!1),2),Le=Be[0],ze=Be[1],He=I.filter(function(e){return!e.disabled}).map(function(e){return e.key}),Ae=function(e){var t=He.indexOf(Pe||p),n=He.length,r=He[(t+e+n)%n];De(r)},_e=function(e,t){var n=He.indexOf(e),r=I.find(function(t){return t.key===e});MS(null==r?void 0:r.closable,null==r?void 0:r.closeIcon,h,null==r?void 0:r.disabled)&&(t.preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:e,event:t}),n===He.length-1?Ae(-1):Ae(1))},We=function(e){var t=e.code,n=m&&z,r=He[0],o=He[He.length-1];switch(t){case"ArrowLeft":z&&Ae(n?1:-1);break;case"ArrowRight":z&&Ae(n?-1:1);break;case"ArrowUp":e.preventDefault(),z||Ae(-1);break;case"ArrowDown":e.preventDefault(),z||Ae(1);break;case"Home":e.preventDefault(),De(r);break;case"End":e.preventDefault(),De(o);break;case"Enter":case"Space":e.preventDefault(),S(null!=Pe?Pe:p,e);break;case"Backspace":case"Delete":_e(Pe,e)}},Ve={};z?Ve[m?"marginRight":"marginLeft"]=w:Ve.marginTop=w;var Ue=I.map(function(e,t){var n=e.key;return l.createElement(LS,{id:d,prefixCls:O,key:n,tab:e,style:0===t?void 0:Ve,closable:e.closable,editable:h,active:n===p,focus:n===Pe,renderWrapper:C,removeAriaLabel:null==v?void 0:v.removeAriaLabel,tabCount:He.length,currentPosition:t+1,onClick:function(e){S(n,e)},onKeyDown:We,onFocus:function(){Le||De(n),je(n),ke(),P.current&&(m||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:function(){De(void 0)},onMouseDown:function(e){return function(e,t){ze(!0),1===t.button&&_e(e,t)}(n,e)},onMouseUp:function(){ze(!1)}})}),Xe=function(){return se(function(){var e,t=new Map,n=null===(e=T.current)||void 0===e?void 0:e.getBoundingClientRect();return I.forEach(function(e){var r,o=e.key,i=null===(r=T.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(jS(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.left,u=a.top;return Math.abs(l-n)<1?[l,c,s-t.left,u-t.top]:[n,r,i,o]}(i,n),l=Qe(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}}),t})};e.useEffect(function(){Xe()},[I.map(function(e){return e.key}).join("_")]);var Ke=IS(function(){var e=zS(N),t=zS(R),n=zS(j);Y([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=zS(L);ne(r);var o=zS(B);ie(o);var i=zS(T);J([i[0]-r[0],i[1]-r[1]]),Xe()}),Ye=I.slice(0,Ne),qe=I.slice(Re+1),Ze=[].concat(Fe(Ye),Fe(qe)),Je=ue.get(p),et=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=Qe(e.useState(),2),d=u[0],f=u[1],p=e.useRef(),m=e.useCallback(function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e},[l]);function g(){Ge.cancel(p.current)}return e.useEffect(function(){var e={};if(n)if(r){e.width=m(n.width);var t=o?"right":"left";"start"===s&&(e[t]=n[t]),"center"===s&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=m(n.height),"start"===s&&(e.top=n.top),"center"===s&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return g(),p.current=Ge(function(){var t=d&&e&&Object.keys(e).every(function(t){var n=e[t],r=d[t];return"number"==typeof n&&"number"==typeof r?Math.round(n)===Math.round(r):n===r});t||f(e)}),g},[JSON.stringify(n),r,o,s,m]),{style:d}}({activeTabOffset:Je,horizontal:z,indicator:k,rtl:m}),tt=et.style;e.useEffect(function(){je()},[p,be,ye,RS(Je),RS(ue),z]),e.useEffect(function(){Ke()},[m]);var nt,rt,ot,it,at=!!Ze.length,lt="".concat(O,"-nav-wrap");return z?m?(rt=A>0,nt=A!==ye):(nt=A<0,rt=A!==be):(ot=G<0,it=G!==be),l.createElement(Te,{onResize:Ke},l.createElement("div",{ref:X(n,N),role:"tablist","aria-orientation":z?"horizontal":"vertical",className:b("".concat(O,"-nav"),s),style:u,onKeyDown:function(){ke()}},l.createElement(DS,{ref:R,position:"left",extra:g,prefixCls:O}),l.createElement(Te,{onResize:Ke},l.createElement("div",{className:b(lt,M(M(M(M({},"".concat(lt,"-ping-left"),nt),"".concat(lt,"-ping-right"),rt),"".concat(lt,"-ping-top"),ot),"".concat(lt,"-ping-bottom"),it)),ref:P},l.createElement(Te,{onResize:Ke},l.createElement("div",{ref:T,className:"".concat(O,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(G,"px)"),transition:Se?"none":void 0}},Ue,l.createElement(PS,{ref:L,prefixCls:O,locale:v,editable:h,style:D(D({},0===Ue.length?void 0:Ve),{},{visibility:at?"hidden":null})}),l.createElement("div",{className:b("".concat(O,"-ink-bar"),M({},"".concat(O,"-ink-bar-animated"),f.inkBar)),style:tt}))))),l.createElement(BS,y({},t,{removeAriaLabel:null==v?void 0:v.removeAriaLabel,ref:B,prefixCls:O,tabs:Ze,className:!at&&ve,tabMoving:!!Se})),l.createElement(DS,{ref:j,position:"right",extra:g,prefixCls:O})))}),AS=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,c=e.tabKey,s=e.children;return l.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!a,style:o,className:b(n,a&&"".concat(n,"-active"),r),ref:t},s)}),_S=["renderTabBar"],WS=["label","key"],VS=function(e){var t=e.renderTabBar,n=st(e,_S),r=l.useContext($S).tabs;return t?t(D(D({},n),{},{panes:r.map(function(e){var t=e.label,n=e.key,r=st(e,WS);return l.createElement(AS,y({tab:t,key:n,tabKey:n},r))})}),HS):l.createElement(HS,n)},GS=["key","forceRender","style","className","destroyInactiveTabPane"],US=function(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=l.useContext($S),c=a.prefixCls,s=a.tabs,u=r.tabPane,d="".concat(c,"-tabpane");return l.createElement("div",{className:b("".concat(c,"-content-holder"))},l.createElement("div",{className:b("".concat(c,"-content"),"".concat(c,"-content-").concat(o),M({},"".concat(c,"-content-animated"),u))},s.map(function(e){var o=e.key,a=e.forceRender,c=e.style,s=e.className,f=e.destroyInactiveTabPane,p=st(e,GS),m=o===n;return l.createElement(Ai,y({key:o,visible:m,forceRender:a,removeOnLeave:!(!i&&!f),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),function(e,n){var r=e.style,i=e.className;return l.createElement(AS,y({},p,{prefixCls:d,id:t,tabKey:o,animated:u,active:m,style:D(D({},c),r),className:b(s,i),ref:n}))})})))};var XS=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],KS=0,QS=l.forwardRef(function(t,n){var r=t.id,o=t.prefixCls,i=void 0===o?"rc-tabs":o,a=t.className,c=t.items,s=t.direction,u=t.activeKey,d=t.defaultActiveKey,f=t.editable,p=t.animated,m=t.tabPosition,g=void 0===m?"top":m,h=t.tabBarGutter,v=t.tabBarStyle,w=t.tabBarExtraContent,C=t.locale,S=t.more,$=t.destroyInactiveTabPane,k=t.renderTabBar,E=t.onChange,O=t.onTabClick,I=t.onTabScroll,N=t.getPopupContainer,R=t.popupClassName,j=t.indicator,P=st(t,XS),T=l.useMemo(function(){return(c||[]).filter(function(e){return e&&"object"===x(e)&&"key"in e})},[c]),B="rtl"===s,L=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:D({inkBar:!0},"object"===x(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(p),z=Qe(e.useState(!1),2),F=z[0],H=z[1];e.useEffect(function(){H(Up())},[]);var A=Qe($o(function(){var e;return null===(e=T[0])||void 0===e?void 0:e.key},{value:u,defaultValue:d}),2),_=A[0],W=A[1],V=Qe(e.useState(function(){return T.findIndex(function(e){return e.key===_})}),2),G=V[0],U=V[1];e.useEffect(function(){var e,t=T.findIndex(function(e){return e.key===_});-1===t&&(t=Math.max(0,Math.min(G,T.length-1)),W(null===(e=T[t])||void 0===e?void 0:e.key));U(t)},[T.map(function(e){return e.key}).join("_"),_,G]);var X=Qe($o(null,{value:r}),2),K=X[0],Q=X[1];e.useEffect(function(){r||(Q("rc-tabs-".concat(KS)),KS+=1)},[]);var Y={id:K,activeKey:_,animated:L,tabPosition:g,rtl:B,mobile:F},q=D(D({},Y),{},{editable:f,locale:C,more:S,tabBarGutter:h,onTabClick:function(e,t){null==O||O(e,t);var n=e!==_;W(e),n&&(null==E||E(e))},onTabScroll:I,extra:w,style:v,panes:null,getPopupContainer:N,popupClassName:R,indicator:j});return l.createElement($S.Provider,{value:{tabs:T,prefixCls:i}},l.createElement("div",y({ref:n,id:r,className:b(i,"".concat(i,"-").concat(g),M(M(M({},"".concat(i,"-mobile"),F),"".concat(i,"-editable"),f),"".concat(i,"-rtl"),B),a)},P),l.createElement(VS,y({},q,{renderTabBar:k})),l.createElement(US,y({destroyInactiveTabPane:$},Y,{animated:L}))))});const YS={motionAppear:!1,motionEnter:!0,motionLeave:!0};var qS=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 ZS=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Hs(e,"slide-up"),Hs(e,"slide-down")]]},JS=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${It(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ko(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:It(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:It(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${It(e.borderRadiusLG)} 0 0 ${It(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},e$=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Xo(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${It(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Uo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${It(e.paddingXXS)} ${It(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},t$=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${It(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:It(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},n$=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${It(e.borderRadius)} ${It(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${It(e.borderRadius)} ${It(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${It(e.borderRadius)} ${It(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${It(e.borderRadius)} 0 0 ${It(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},r$=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Qo(e)),"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-focus ${s}-btn:focus-visible`]:Ko(e),[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},o$=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:It(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:It(e.marginXS)},marginLeft:{_skip_check_:!0,value:It(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},i$=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Xo(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${It(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Qo(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),r$(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Qo(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}};var a$=Zo("Tabs",e=>{const t=Io(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${It(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${It(e.horizontalItemGutter)}`});return[n$(t),o$(t),t$(t),e$(t),JS(t),i$(t),ZS(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,l=n||o,c=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:c,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});var l$=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 c$=l.forwardRef((e,t)=>{var n,r,o,i,a,c,s,u,d,f,p;const{type:m,className:g,rootClassName:h,size:v,onEdit:y,hideAdd:x,centered:w,addIcon:C,removeIcon:S,moreIcon:$,more:E,popupClassName:O,children:I,items:N,animated:R,style:j,indicatorSize:M,indicator:P,destroyInactiveTabPane:D,destroyOnHidden:T}=e,B=l$(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:L}=B,{direction:z,tabs:F,getPrefixCls:H,getPopupContainer:A}=l.useContext(ro),_=H("tabs",L),W=cl(_),[V,G,U]=a$(_,W),X=l.useRef(null);let K;l.useImperativeHandle(t,()=>({nativeElement:X.current})),"editable-card"===m&&(K={onEdit:(e,{key:t,event:n})=>{null==y||y("add"===e?n:t,e)},removeIcon:null!==(n=null!=S?S:null==F?void 0:F.removeIcon)&&void 0!==n?n:l.createElement(Aa,null),addIcon:(null!=C?C:null==F?void 0:F.addIcon)||l.createElement(SS,null),showAdd:!0!==x});const Q=H(),Y=zc(v),q=function(e,t){if(e)return e.map(e=>{var t;const n=null!==(t=e.destroyOnHidden)&&void 0!==t?t:e.destroyInactiveTabPane;return Object.assign(Object.assign({},e),{destroyInactiveTabPane:n})});const n=k(t).map(e=>{if(l.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=qS(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null});return function(e){return e.filter(e=>e)}(n)}(N,I),Z=function(e,t={inkBar:!0,tabPane:!1}){let n;return n=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof t?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},YS),{motionName:Oc(e,"switch")})),n}(_,R),J=Object.assign(Object.assign({},null==F?void 0:F.style),j),ee={align:null!==(r=null==P?void 0:P.align)&&void 0!==r?r:null===(o=null==F?void 0:F.indicator)||void 0===o?void 0:o.align,size:null!==(s=null!==(a=null!==(i=null==P?void 0:P.size)&&void 0!==i?i:M)&&void 0!==a?a:null===(c=null==F?void 0:F.indicator)||void 0===c?void 0:c.size)&&void 0!==s?s:null==F?void 0:F.indicatorSize};return V(l.createElement(QS,Object.assign({ref:X,direction:z,getPopupContainer:A},B,{items:q,className:b({[`${_}-${Y}`]:Y,[`${_}-card`]:["card","editable-card"].includes(m),[`${_}-editable-card`]:"editable-card"===m,[`${_}-centered`]:w},null==F?void 0:F.className,g,h,G,U,W),popupClassName:b(O,G,U,W),style:J,editable:K,more:Object.assign({icon:null!==(p=null!==(f=null!==(d=null===(u=null==F?void 0:F.more)||void 0===u?void 0:u.icon)&&void 0!==d?d:null==F?void 0:F.moreIcon)&&void 0!==f?f:$)&&void 0!==p?p:l.createElement(oy,null),transitionName:`${Q}-slide-up`},E),prefixCls:_,animated:Z,indicator:ee,destroyInactiveTabPane:null!=T?T:D})))}),s$=c$;s$.TabPane=()=>null;var u$=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 d$=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=u$(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=l.useContext(ro),a=i("card",t),c=b(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},o,{className:c}))},f$=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${It(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Uo),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},p$=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${It(o)} 0 0 0 ${n},\n 0 ${It(o)} 0 0 ${n},\n ${It(o)} ${It(o)} 0 0 ${n},\n ${It(o)} 0 0 0 ${n} inset,\n 0 ${It(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},m$=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${It(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:It(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:It(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${It(e.lineWidth)} ${e.lineType} ${i}`}}})},g$=e=>Object.assign(Object.assign({margin:`${It(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Uo),"&-description":{color:e.colorTextDescription}}),h$=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${It(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${It(e.padding)} ${It(o)}`}}},v$=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},b$=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Xo(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:f$(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)}`},[`${t}-grid`]:p$(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:m$(e),[`${t}-meta`]:g$(e)}),[`${t}-bordered`]:{border:`${It(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${It(e.borderRadiusLG)} ${It(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:h$(e),[`${t}-loading`]:v$(e),[`${t}-rtl`]:{direction:"rtl"}}},y$=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${It(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}};var x$=Zo("Card",e=>{const t=Io(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[b$(t),y$(t)]},e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:null!==(t=e.bodyPadding)&&void 0!==t?t:e.paddingLG,headerPadding:null!==(n=e.headerPadding)&&void 0!==n?n:e.paddingLG}}),w$=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 C$=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((e,t)=>{const r=`action-${t}`;return l.createElement("li",{style:{width:100/n.length+"%"},key:r},l.createElement("span",null,e))}))},S$=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:c={},bodyStyle:s={},title:u,loading:d,bordered:f,variant:p,size:m,type:g,cover:h,actions:v,tabList:y,children:x,activeTabKey:w,defaultActiveTabKey:C,tabBarExtraContent:S,hoverable:$,tabProps:k={},classNames:E,styles:O}=e,I=w$(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:N,direction:R,card:j}=l.useContext(ro),[M]=eh("card",p,f),P=e=>{var t;return b(null===(t=null==j?void 0:j.classNames)||void 0===t?void 0:t[e],null==E?void 0:E[e])},D=e=>{var t;return Object.assign(Object.assign({},null===(t=null==j?void 0:j.styles)||void 0===t?void 0:t[e]),null==O?void 0:O[e])},T=l.useMemo(()=>{let e=!1;return l.Children.forEach(x,t=>{(null==t?void 0:t.type)===d$&&(e=!0)}),e},[x]),B=N("card",n),[L,z,F]=x$(B),H=l.createElement(Jf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},x),A=void 0!==w,_=Object.assign(Object.assign({},k),{[A?"activeKey":"defaultActiveKey"]:A?w:C,tabBarExtraContent:S});let W;const V=zc(m),G=V&&"default"!==V?V:"large",U=y?l.createElement(s$,Object.assign({size:G},_,{className:`${B}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:y.map(e=>{var{tab:t}=e,n=w$(e,["tab"]);return Object.assign({label:t},n)})})):null;if(u||a||U){const e=b(`${B}-head`,P("header")),t=b(`${B}-head-title`,P("title")),n=b(`${B}-extra`,P("extra")),r=Object.assign(Object.assign({},c),D("header"));W=l.createElement("div",{className:e,style:r},l.createElement("div",{className:`${B}-head-wrapper`},u&&l.createElement("div",{className:t,style:D("title")},u),a&&l.createElement("div",{className:n,style:D("extra")},a)),U)}const X=b(`${B}-cover`,P("cover")),K=h?l.createElement("div",{className:X,style:D("cover")},h):null,Q=b(`${B}-body`,P("body")),Y=Object.assign(Object.assign({},s),D("body")),q=l.createElement("div",{className:Q,style:Y},d?H:x),Z=b(`${B}-actions`,P("actions")),J=(null==v?void 0:v.length)?l.createElement(C$,{actionClasses:Z,actionStyle:D("actions"),actions:v}):null,ee=Ic(I,["onTabChange"]),te=b(B,null==j?void 0:j.className,{[`${B}-loading`]:d,[`${B}-bordered`]:"borderless"!==M,[`${B}-hoverable`]:$,[`${B}-contain-grid`]:T,[`${B}-contain-tabs`]:null==y?void 0:y.length,[`${B}-${V}`]:V,[`${B}-type-${g}`]:!!g,[`${B}-rtl`]:"rtl"===R},r,o,z,F),ne=Object.assign(Object.assign({},null==j?void 0:j.style),i);return L(l.createElement("div",Object.assign({ref:t},ee,{className:te,style:ne}),W,K,q,J))});var $$=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 k$=S$;function E$(e,t,n){var r={}.atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function m(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,s=Date.now()-f;function m(){f=Date.now(),t.apply(l,o)}function g(){r=void 0}d||(c||!u||r||m(),p(),void 0===u&&s>e?c?(f=Date.now(),a||(r=setTimeout(u?g:m,e))):m():!0!==a&&(r=setTimeout(u?g:m,void 0===u?e-s:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},m}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}k$.Grid=d$,k$.Meta=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=$$(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=l.useContext(ro),s=c("card",t),u=b(`${s}-meta`,n),d=r?l.createElement("div",{className:`${s}-meta-avatar`},r):null,f=o?l.createElement("div",{className:`${s}-meta-title`},o):null,p=i?l.createElement("div",{className:`${s}-meta-description`},i):null,m=f||p?l.createElement("div",{className:`${s}-meta-detail`},f,p):null;return l.createElement("div",Object.assign({},a,{className:u}),d,m)};var O$=l.createContext({}),I$="__rc_cascader_search_mark__",N$=function(e,t,n){var r=n.label,o=void 0===r?"":r;return t.some(function(t){return String(t[o]).toLowerCase().includes(e.toLowerCase())})},R$=function(e,t,n,r){return t.map(function(e){return e[r.label]}).join(" / ")},j$="__RC_CASCADER_SPLIT__",M$="SHOW_PARENT",P$="SHOW_CHILD";function D$(e){return e.join(j$)}function T$(e){return e.map(D$)}function B$(e){var t=e||{},n=t.label,r=t.value||"value";return{label:n||"label",value:r,key:r,children:t.children||"children"}}function L$(e,t){var n,r;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(r=e[t.children])&&void 0!==r&&r.length)}function z$(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function F$(e,t){return e.map(function(e){var n;return null===(n=e[I$])||void 0===n?void 0:n.map(function(e){return e[t.value]})})}function H$(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map(function(e){return Array.isArray(e)?e:[e]}):[]}function A$(e,t,n){var r=new Set(e),o=t();return e.filter(function(e){var t=o[e],i=t?t.parent:null,a=t?t.children:null;return!(!t||!t.node.disabled)||(n===P$?!(a&&a.some(function(e){return e.key&&r.has(e.key)})):!(i&&!i.node.disabled&&r.has(i.key)))})}function _$(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t,i=[],a=function(){var t,a,c,s=e[l],u=null===(t=o)||void 0===t?void 0:t.findIndex(function(e){var t=e[n.value];return r?String(t)===String(s):t===s}),d=-1!==u?null===(a=o)||void 0===a?void 0:a[u]:null;i.push({value:null!==(c=null==d?void 0:d[n.value])&&void 0!==c?c:s,index:u,option:d}),o=null==d?void 0:d[n.children]},l=0;l<e.length;l+=1)a();return i}function W$(e,t){return l.useCallback(function(n){var r=[],o=[];return n.forEach(function(n){_$(n,e,t).every(function(e){return e.option})?o.push(n):r.push(n)}),[o,r]},[e,t])}function V$(e,t){return e[t]}var G$=["children"];function U$(e,t){return"".concat(e,"-").concat(t)}function X$(e,t){return null!=e?e:t}function K$(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function Q$(e){return function e(t){return k(t).map(function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return R(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=D({key:n},st(r,G$)),a=e(o);return a.length&&(i.children=a),i}).filter(function(e){return e})}(e)}function Y$(e,t,n){var r=K$(n),o=r._title,i=r.key,a=r.children,l=new Set(!0===t?[]:t),c=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(s,u){for(var d,f=U$(r?r.pos:"0",u),p=X$(s[i],f),m=0;m<o.length;m+=1){var g=o[m];if(void 0!==s[g]){d=s[g];break}}var h=Object.assign(Ic(s,[].concat(Fe(o),[i,a])),{title:d,key:p,parent:r,pos:f,children:null,data:s,isStart:[].concat(Fe(r?r.isStart:[]),[0===u]),isEnd:[].concat(Fe(r?r.isEnd:[]),[u===n.length-1])});return c.push(h),!0===t||l.has(p)?h.children=e(s[a]||[],h):h.children=[],h})}(e),c}function q$(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=i||(arguments.length>2?arguments[2]:void 0),s={},u={},d={posEntities:s,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var r,o=("object"===x(n)?n:{externalGetKey:n})||{},i=o.childrenPropName,a=o.externalGetKey,l=K$(o.fieldNames),c=l.key,s=l.children,u=i||s;a?"string"==typeof a?r=function(e){return e[a]}:"function"==typeof a&&(r=function(e){return a(e)}):r=function(e,t){return X$(e[c],t)},function n(o,i,a,l){var c=o?o[u]:e,s=o?U$(a.pos,i):"0",d=o?[].concat(Fe(l),[o]):[];if(o){var f=r(o,s),p={node:o,index:i,pos:s,key:f,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(p)}c&&c.forEach(function(e,t){n(e,t,{node:o,pos:s,level:a?a.level+1:-1},d)})}(null)}(e,function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},f=X$(i,o);s[o]=c,u[f]=c,c.parent=s[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,d)},{externalGetKey:c,childrenPropName:a,fieldNames:l}),o&&o(d),d}function Z$(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=V$(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function J$(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,m=D(D({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return R(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function ek(e,t){var n=l.useMemo(function(){return t||[]},[t]),r=function(e,t){var n=l.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=l.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=q$(e,{fieldNames:t,initWrapper:function(e){return D(D({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var r=e.nodes.map(function(e){return e[t.value]}).join(j$);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities},[t,e]);return r}(n,e),o=l.useCallback(function(t){var n=r();return t.map(function(t){return n[t].nodes.map(function(t){return t[e.value]})})},[r,e]);return[n,r,o]}function tk(e,t){var n=new Set;return e.forEach(function(e){t.has(e)||n.add(e)}),n}function nk(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function rk(e,t,n,r){var o,i=[];o=r||nk;var a,l=new Set(e.filter(function(e){var t=!!V$(n,e);return t||i.push(e),t})),c=new Map,s=0;return Object.keys(n).forEach(function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),s=Math.max(s,r)}),R(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter(function(e){return!r(e.node)}).forEach(function(e){o.add(e.key)})});for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)}),a&&o.add(t.key),c&&i.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(tk(i,o))}}(l,c,s,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach(function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||l.filter(function(e){return!o(e.node)}).forEach(function(e){i.delete(e.key)})});a=new Set;for(var c=new Set,s=r;s>=0;s-=1)(n.get(s)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),l||!n&&!a.has(t)||(l=!0)}),r||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(tk(a,i))}}(l,t.halfCheckedKeys,c,s,o),a}function ok(e,t,n,r,o,i,a,l){return function(c){if(e){var s=D$(c),u=T$(n),d=T$(r),f=u.includes(s),p=o.some(function(e){return D$(e)===s}),m=n,g=o;if(p&&!f)g=o.filter(function(e){return D$(e)!==s});else{var h,v=f?u.filter(function(e){return e!==s}):[].concat(Fe(u),[s]),b=i();if(f)h=rk(v,{halfCheckedKeys:d},b).checkedKeys;else h=rk(v,!0,b).checkedKeys;var y=A$(h,i,l);m=a(y)}t([].concat(Fe(g),Fe(m)))}else t(c)}}function ik(e,t,n,r,o){return l.useMemo(function(){var i=Qe(o(t),2),a=i[0],l=i[1];if(!e||!t.length)return[a,[],l];var c=rk(T$(a),!0,n()),s=c.checkedKeys,u=c.halfCheckedKeys;return[r(s),r(u),l]},[e,t,n,r,o])}var ak=l.memo(function(e){return e.children},function(e,t){return!t.open});function lk(e){var t,n=e.prefixCls,r=e.checked,o=e.halfChecked,i=e.disabled,a=e.onClick,c=e.disableCheckbox,s=l.useContext(O$).checkable,u="boolean"!=typeof s?s:null;return l.createElement("span",{className:b("".concat(n),(t={},M(t,"".concat(n,"-checked"),r),M(t,"".concat(n,"-indeterminate"),!r&&o),M(t,"".concat(n,"-disabled"),i||c),t)),onClick:a},u)}var ck="__cascader_fix_label__";function sk(e){var t=e.prefixCls,n=e.multiple,r=e.options,o=e.activeValue,i=e.prevValuePath,a=e.onToggleOpen,c=e.onSelect,s=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,p=e.isSelectable,m=e.disabled,g="".concat(t,"-menu"),h="".concat(t,"-menu-item"),v=l.useContext(O$),y=v.fieldNames,x=v.changeOnSelect,w=v.expandTrigger,C=v.expandIcon,S=v.loadingIcon,$=v.dropdownMenuColumnStyle,k=v.optionRender,E="hover"===w,O=function(e){return m||e},I=l.useMemo(function(){return r.map(function(e){var t,n=e.disabled,r=e.disableCheckbox,o=e[I$],a=null!==(t=e[ck])&&void 0!==t?t:e[y.label],l=e[y.value],c=L$(e,y),s=o?o.map(function(e){return e[y.value]}):[].concat(Fe(i),[l]),p=D$(s);return{disabled:n,label:a,value:l,isLeaf:c,isLoading:f.includes(p),checked:u.has(p),halfChecked:d.has(p),option:e,disableCheckbox:r,fullPath:s,fullPathKey:p}})},[r,u,y,d,f,i]);return l.createElement("ul",{className:g,role:"menu"},I.map(function(e){var r,i,u=e.disabled,d=e.label,f=e.value,m=e.isLeaf,g=e.isLoading,v=e.checked,y=e.halfChecked,w=e.option,I=e.fullPath,N=e.fullPathKey,R=e.disableCheckbox,j=function(){if(!O(u)){var e=Fe(I);E&&m&&e.pop(),s(e)}},P=function(){p(w)&&!O(u)&&c(I,m)};return"string"==typeof w.title?i=w.title:"string"==typeof d&&(i=d),l.createElement("li",{key:N,className:b(h,(r={},M(r,"".concat(h,"-expand"),!m),M(r,"".concat(h,"-active"),o===f||o===N),M(r,"".concat(h,"-disabled"),O(u)),M(r,"".concat(h,"-loading"),g),r)),style:$,role:"menuitemcheckbox",title:i,"aria-checked":v,"data-path-key":N,onClick:function(){j(),R||n&&!m||P()},onDoubleClick:function(){x&&a(!1)},onMouseEnter:function(){E&&j()},onMouseDown:function(e){e.preventDefault()}},n&&l.createElement(lk,{prefixCls:"".concat(t,"-checkbox"),checked:v,halfChecked:y,disabled:O(u)||R,disableCheckbox:R,onClick:function(e){R||(e.stopPropagation(),P())}}),l.createElement("div",{className:"".concat(h,"-content")},k?k(w):d),!g&&C&&!m&&l.createElement("div",{className:"".concat(h,"-expand-icon")},C),g&&S&&l.createElement("div",{className:"".concat(h,"-loading-icon")},S))}))}var uk=function(e,t,n,r,o,i,a){var c=a.direction,s=a.searchValue,u=a.toggleOpen,d=a.open,f="rtl"===c,p=l.useMemo(function(){for(var e=-1,o=t,i=[],a=[],l=r.length,c=F$(t,n),s=function(t){var l=o.findIndex(function(e,o){return(c[o]?D$(c[o]):e[n.value])===r[t]});if(-1===l)return 1;e=l,i.push(e),a.push(r[t]),o=o[e][n.children]},u=0;u<l&&o&&!s(u);u+=1);for(var d=t,f=0;f<i.length-1;f+=1)d=d[i[f]][n.children];return[a,e,d,c]},[r,n,t]),m=Qe(p,4),g=m[0],h=m[1],v=m[2],b=m[3],y=function(e){o(e)},x=function(){if(g.length>1){var e=g.slice(0,-1);y(e)}else u(!1)},w=function(){var e,t=((null===(e=v[h])||void 0===e?void 0:e[n.children])||[]).find(function(e){return!e.disabled});if(t){var r=[].concat(Fe(g),[t[n.value]]);y(r)}};l.useImperativeHandle(e,function(){return{onKeyDown:function(e){var t=e.which;switch(t){case sl.UP:case sl.DOWN:var r=0;t===sl.UP?r=-1:t===sl.DOWN&&(r=1),0!==r&&function(e){var t=v.length,r=h;-1===r&&e<0&&(r=t);for(var o=0;o<t;o+=1){var i=v[r=(r+e+t)%t];if(i&&!i.disabled){var a=g.slice(0,-1).concat(b[r]?D$(b[r]):i[n.value]);return void y(a)}}}(r);break;case sl.LEFT:if(s)break;f?w():x();break;case sl.RIGHT:if(s)break;f?x():w();break;case sl.BACKSPACE:s||x();break;case sl.ENTER:if(g.length){var o=v[h],a=(null==o?void 0:o[I$])||[];a.length?i(a.map(function(e){return e[n.value]}),a[a.length-1]):i(g,v[h])}break;case sl.ESC:u(!1),d&&e.stopPropagation()}},onKeyUp:function(){}}})},dk=l.forwardRef(function(e,t){var n,r,o,i=e.prefixCls,a=e.multiple,c=e.searchValue,s=e.toggleOpen,u=e.notFoundContent,d=e.direction,f=e.open,p=e.disabled,m=l.useRef(null),g="rtl"===d,h=l.useContext(O$),v=h.options,x=h.values,w=h.halfValues,C=h.fieldNames,S=h.changeOnSelect,$=h.onSelect,k=h.searchOptions,E=h.dropdownPrefixCls,O=h.loadData,I=h.expandTrigger,N=E||i,R=Qe(l.useState([]),2),j=R[0],P=R[1];l.useEffect(function(){j.length&&j.forEach(function(e){var t=function(e){return e.split(j$)}(e),n=_$(t,v,C,!0).map(function(e){return e.option}),r=n[n.length-1];(!r||r[C.children]||L$(r,C))&&P(function(t){return t.filter(function(t){return t!==e})})})},[v,j,C]);var T=l.useMemo(function(){return new Set(T$(x))},[x]),B=l.useMemo(function(){return new Set(T$(w))},[w]),L=function(e,t){var n=l.useContext(O$).values[0],r=Qe(l.useState([]),2),o=r[0],i=r[1];return l.useEffect(function(){e||i(n||[])},[t,n]),[o,i]}(a,f),z=Qe(L,2),F=z[0],H=z[1],A=function(e){H(e),function(e){if(O&&!c){var t=_$(e,v,C).map(function(e){return e.option}),n=t[t.length-1];if(n&&!L$(n,C)){var r=D$(e);P(function(e){return[].concat(Fe(e),[r])}),O(t)}}}(e)},_=function(e){if(p)return!1;var t=e.disabled,n=L$(e,C);return!t&&(n||S||a)},W=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];$(e),!a&&(t||S&&("hover"===I||n))&&s(!1)},V=l.useMemo(function(){return c?k:v},[c,k,v]),G=l.useMemo(function(){for(var e=[{options:V}],t=V,n=F$(t,C),r=function(){var r=F[o],i=t.find(function(e,t){return(n[t]?D$(n[t]):e[C.value])===r}),a=null==i?void 0:i[C.children];if(null==a||!a.length)return 1;t=a,e.push({options:a})},o=0;o<F.length&&!r();o+=1);return e},[V,F,C]);uk(t,V,C,F,A,function(e,t){_(t)&&W(e,L$(t,C),!0)},{direction:d,searchValue:c,toggleOpen:s,open:f}),l.useEffect(function(){if(!c)for(var e=0;e<F.length;e+=1){var t,n=D$(F.slice(0,e+1)),r=null===(t=m.current)||void 0===t?void 0:t.querySelector('li[data-path-key="'.concat(n.replace(/\\{0,2}"/g,'\\"'),'"]'));r&&z$(r)}},[F,c]);var U=!(null!==(n=G[0])&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.length),X=[(r={},M(r,C.value,"__EMPTY__"),M(r,ck,u),M(r,"disabled",!0),r)],K=D(D({},e),{},{multiple:!U&&a,onSelect:W,onActive:A,onToggleOpen:s,checkedSet:T,halfCheckedSet:B,loadingKeys:j,isSelectable:_}),Q=(U?[{options:X}]:G).map(function(e,t){var n=F.slice(0,t),r=F[t];return l.createElement(sk,y({key:t},K,{prefixCls:N,options:e.options,prevValuePath:n,activeValue:r}))});return l.createElement(ak,{open:f},l.createElement("div",{className:b("".concat(N,"-menus"),(o={},M(o,"".concat(N,"-menu-empty"),U),M(o,"".concat(N,"-rtl"),g),o)),ref:m},Q))}),fk=l.forwardRef(function(e,t){var n=Qp();return l.createElement(dk,y({},e,n,{ref:t}))});function pk(){}function mk(e){var t,n=e,r=n.prefixCls,o=void 0===r?"rc-cascader":r,i=n.style,a=n.className,c=n.options,s=n.checkable,u=n.defaultValue,d=n.value,f=n.fieldNames,p=n.changeOnSelect,m=n.onChange,g=n.showCheckedStrategy,h=n.loadData,v=n.expandTrigger,y=n.expandIcon,x=void 0===y?">":y,w=n.loadingIcon,C=n.direction,S=n.notFoundContent,$=void 0===S?"Not Found":S,k=n.disabled,E=!!s,O=Qe($o(u,{value:d,postState:H$}),2),I=O[0],N=O[1],R=l.useMemo(function(){return B$(f)},[JSON.stringify(f)]),j=Qe(ek(R,c),3),P=j[0],D=j[1],T=j[2],B=W$(P,R),L=Qe(ik(E,I,D,T,B),3),z=L[0],F=L[1],H=L[2],A=wo(function(e){if(N(e),m){var t=H$(e),n=t.map(function(e){return _$(e,P,R).map(function(e){return e.option})}),r=E?t:t[0],o=E?n:n[0];m(r,o)}}),_=ok(E,A,z,F,H,D,T,g),W=wo(function(e){_(e)}),V=l.useMemo(function(){return{options:P,fieldNames:R,values:z,halfValues:F,changeOnSelect:p,onSelect:W,checkable:s,searchOptions:[],dropdownPrefixCls:void 0,loadData:h,expandTrigger:v,expandIcon:x,loadingIcon:w,dropdownMenuColumnStyle:void 0}},[P,R,z,F,p,W,s,h,v,x,w]),G="".concat(o,"-panel"),U=!P.length;return l.createElement(O$.Provider,{value:V},l.createElement("div",{className:b(G,(t={},M(t,"".concat(G,"-rtl"),"rtl"===C),M(t,"".concat(G,"-empty"),U),t),a),style:i},U?$:l.createElement(dk,{prefixCls:o,searchValue:"",multiple:E,toggleOpen:pk,open:!0,direction:C,disabled:k})))}var gk=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],hk=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-cascader":r,i=e.fieldNames,a=e.defaultValue,c=e.value,s=e.changeOnSelect,u=e.onChange,d=e.displayRender,f=e.checkable,p=e.autoClearSearchValue,m=void 0===p||p,g=e.searchValue,h=e.onSearch,v=e.showSearch,b=e.expandTrigger,w=e.options,C=e.dropdownPrefixCls,S=e.loadData,$=e.popupVisible,k=e.open,E=e.popupClassName,O=e.dropdownClassName,I=e.dropdownMenuColumnStyle,N=e.dropdownStyle,R=e.popupPlacement,j=e.placement,P=e.onDropdownVisibleChange,T=e.onPopupVisibleChange,B=e.onOpenChange,L=e.expandIcon,z=void 0===L?">":L,F=e.loadingIcon,H=e.children,A=e.dropdownMatchSelectWidth,_=void 0!==A&&A,W=e.showCheckedStrategy,V=void 0===W?M$:W,G=e.optionRender,U=st(e,gk),X=Tg(n),K=!!f,Q=Qe($o(a,{value:c,postState:H$}),2),Y=Q[0],q=Q[1],Z=l.useMemo(function(){return B$(i)},[JSON.stringify(i)]),J=Qe(ek(Z,w),3),ee=J[0],te=J[1],ne=J[2],re=Qe($o("",{value:g,postState:function(e){return e||""}}),2),oe=re[0],ie=re[1],ae=function(e){return l.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===x(e)&&(t=D(D({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}(v),le=Qe(ae,2),ce=le[0],se=le[1],ue=function(e,t,n,r,o,i){var a=o.filter,c=void 0===a?N$:a,s=o.render,u=void 0===s?R$:s,d=o.limit,f=void 0===d?50:d,p=o.sort;return l.useMemo(function(){var o=[];return e?(function t(a,l){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a.forEach(function(a){if(!(!p&&!1!==f&&f>0&&o.length>=f)){var d,m=[].concat(Fe(l),[a]),g=a[n.children],h=s||a.disabled;g&&0!==g.length&&!i||c(e,m,{label:n.label})&&o.push(D(D({},a),{},(M(d={disabled:h},n.label,u(e,m,r,n)),M(d,I$,m),M(d,n.children,void 0),d))),g&&t(a[n.children],m,h)}})}(t,[]),p&&o.sort(function(t,r){return p(t[I$],r[I$],e,n)}),!1!==f&&f>0?o.slice(0,f):o):[]},[e,t,n,r,u,i,c,p,f])}(oe,ee,Z,C||o,se,s||K),de=W$(ee,Z),fe=Qe(ik(K,Y,te,ne,de),3),pe=fe[0],me=fe[1],ge=fe[2],he=function(e,t,n,r,o){return l.useMemo(function(){var i=o||function(e){var t=r?e.slice(-1):e;return t.every(function(e){return["string","number"].includes(x(e))})?t.join(" / "):t.reduce(function(e,t,n){var r=l.isValidElement(t)?l.cloneElement(t,{key:n}):t;return 0===n?[r]:[].concat(Fe(e),[" / ",r])},[])};return e.map(function(e){var r,o=_$(e,t,n),a=i(o.map(function(e){var t,r=e.option,o=e.value;return null!==(t=null==r?void 0:r[n.label])&&void 0!==t?t:o}),o.map(function(e){return e.option})),l=D$(e);return{label:a,value:l,key:l,valueCells:e,disabled:null===(r=o[o.length-1])||void 0===r||null===(r=r.option)||void 0===r?void 0:r.disabled}})},[e,t,n,o,r])}(l.useMemo(function(){var e=A$(T$(pe),te,V);return[].concat(Fe(ge),Fe(ne(e)))},[pe,te,ne,ge,V]),ee,Z,K,d),ve=wo(function(e){if(q(e),u){var t=H$(e),n=t.map(function(e){return _$(e,ee,Z).map(function(e){return e.option})}),r=K?t:t[0],o=K?n:n[0];u(r,o)}}),be=ok(K,ve,pe,me,ge,te,ne,V),ye=wo(function(e){K&&!m||ie(""),be(e)}),xe=void 0!==k?k:$,we=O||E,Ce=j||R,Se=l.useMemo(function(){return{options:ee,fieldNames:Z,values:pe,halfValues:me,changeOnSelect:s,onSelect:ye,checkable:f,searchOptions:ue,dropdownPrefixCls:C,loadData:S,expandTrigger:b,expandIcon:z,loadingIcon:F,dropdownMenuColumnStyle:I,optionRender:G}},[ee,Z,pe,me,s,ye,f,ue,C,S,b,z,F,I,G]),$e=!(oe?ue:ee).length,ke=oe&&se.matchInputWidth||$e?{}:{minWidth:"auto"};return l.createElement(O$.Provider,{value:Se},l.createElement(lg,y({},U,{ref:t,id:X,prefixCls:o,autoClearSearchValue:m,dropdownMatchSelectWidth:_,dropdownStyle:D(D({},ke),N),displayValues:he,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;ye(n)}else ve([])},mode:K?"multiple":void 0,searchValue:oe,onSearch:function(e,t){ie(e),"blur"!==t.source&&h&&h(e)},showSearch:ce,OptionList:fk,emptyOptions:$e,open:xe,dropdownClassName:we,placement:Ce,onDropdownVisibleChange:function(e){null==B||B(e),null==P||P(e),null==T||T(e)},getRawInputElement:function(){return H}})))});function vk(e,t){const{getPrefixCls:n,direction:r,renderEmpty:o}=l.useContext(ro),i=t||r;return[n("select",e),n("cascader",e),i,o]}function bk(e,t){return l.useMemo(()=>!!t&&l.createElement("span",{className:`${e}-checkbox-inner`}),[e,t])}hk.SHOW_PARENT=M$,hk.SHOW_CHILD=P$,hk.Panel=mk;const yk=(e,t,n)=>{let r=n;n||(r=t?l.createElement(Ov,null):l.createElement(gs,null));const o=l.useMemo(()=>l.createElement("span",{className:`${e}-menu-item-loading-icon`},l.createElement(Cl,{spin:!0})),[e]);return l.useMemo(()=>[r,o],[r,o])};function xk(e,t){return(e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Xo(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Xo(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Xo(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Ko(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${It(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]})(Io(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var wk=Zo("Checkbox",(e,{prefixCls:t})=>[xk(t,e)]);const Ck=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n`;return[xk(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${It(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Uo),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},Sk=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}};var $k=Zo("Cascader",e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Ck(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Ru(e)]},Sk,{unitless:{optionSelectedFontWeight:!0}});var kk=Jo(["Cascader","Panel"],e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Ck(e),{display:"inline-flex",border:`${It(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},Sk);var Ek=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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{SHOW_CHILD:Ok,SHOW_PARENT:Ik}=hk;const Nk=(e,t,n,r)=>{const o=[],i=e.toLowerCase();return t.forEach((e,t)=>{0!==t&&o.push(" / ");let a=e[r.label];const c=typeof a;"string"!==c&&"number"!==c||(a=function(e,t,n){const r=e.toLowerCase().split(t).reduce((e,n,r)=>0===r?[n]:[].concat(Fe(e),[t,n]),[]),o=[];let i=0;return r.forEach((t,r)=>{const a=i+t.length;let c=e.slice(i,a);i=a,r%2==1&&(c=l.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${r}`},c)),o.push(c)}),o}(String(a),i,n)),o.push(a)}),o},Rk=l.forwardRef((e,t)=>{var n,r,o,i;const{prefixCls:a,size:c,disabled:s,className:u,rootClassName:d,multiple:f,bordered:p=!0,transitionName:m,choiceTransitionName:g="",popupClassName:h,dropdownClassName:v,expandIcon:y,placement:x,showSearch:w,allowClear:C=!0,notFoundContent:S,direction:$,getPopupContainer:k,status:E,showArrow:O,builtinPlacements:I,style:N,variant:R,dropdownRender:j,onDropdownVisibleChange:M,dropdownMenuColumnStyle:P,popupRender:D,dropdownStyle:T,popupMenuColumnStyle:B,onOpenChange:L,styles:z,classNames:F}=e,H=Ic(Ek(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),["suffixIcon"]),{getPrefixCls:A,getPopupContainer:_,className:W,style:V,classNames:G,styles:U}=ao("cascader"),{popupOverflow:X}=l.useContext(ro),{status:K,hasFeedback:Q,isFormItemInput:Y,feedbackIcon:q}=l.useContext(Nf),Z=Gg(K,E),[J,ee,te,ne]=vk(a,$),re="rtl"===te,oe=A(),ie=cl(J),[ae,le,ce]=Eh(J,ie),se=cl(ee),[ue]=$k(ee,se),{compactSize:de,compactItemClassnames:fe}=Wc(J,$),[pe,me]=eh("cascader",R,p),ge=S||(null==ne?void 0:ne("Cascader"))||l.createElement(Jg,{componentName:"Cascader"}),he=b((null===(n=null==F?void 0:F.popup)||void 0===n?void 0:n.root)||(null===(r=G.popup)||void 0===r?void 0:r.root)||h||v,`${ee}-dropdown`,{[`${ee}-dropdown-rtl`]:"rtl"===te},d,ie,G.root,null==F?void 0:F.root,se,le,ce),ve=Lh(D||j),be=B||P,ye=L||M,xe=(null===(o=null==z?void 0:z.popup)||void 0===o?void 0:o.root)||(null===(i=U.popup)||void 0===i?void 0:i.root)||T,we=l.useMemo(()=>{if(!w)return w;let e={render:Nk};return"object"==typeof w&&(e=Object.assign(Object.assign({},e),w)),e},[w]),Ce=zc(e=>{var t;return null!==(t=null!=c?c:de)&&void 0!==t?t:e}),Se=l.useContext(so),$e=null!=s?s:Se,[ke,Ee]=yk(J,re,y),Oe=bk(ee,f),Ie=zh(e.suffixIcon,O),{suffixIcon:Ne,removeIcon:Re,clearIcon:je}=Bh(Object.assign(Object.assign({},e),{hasFeedback:Q,feedbackIcon:q,showSuffixIcon:Ie,multiple:f,prefixCls:J,componentName:"Cascader"})),Me=l.useMemo(()=>void 0!==x?x:re?"bottomRight":"bottomLeft",[x,re]),Pe=!0===C?{clearIcon:je}:C,[De]=zl("SelectLike",null==xe?void 0:xe.zIndex);return ue(ae(l.createElement(hk,Object.assign({prefixCls:J,className:b(!a&&ee,{[`${J}-lg`]:"large"===Ce,[`${J}-sm`]:"small"===Ce,[`${J}-rtl`]:re,[`${J}-${pe}`]:me,[`${J}-in-form-item`]:Y},Vg(J,Z,Q),fe,W,u,d,null==F?void 0:F.root,G.root,ie,se,le,ce),disabled:$e,style:Object.assign(Object.assign(Object.assign(Object.assign({},U.root),null==z?void 0:z.root),V),N)},H,{builtinPlacements:th(I,X),direction:te,placement:Me,notFoundContent:ge,allowClear:Pe,showSearch:we,expandIcon:ke,suffixIcon:Ne,removeIcon:Re,loadingIcon:Ee,checkable:Oe,dropdownClassName:he,dropdownPrefixCls:a||ee,dropdownStyle:Object.assign(Object.assign({},xe),{zIndex:De}),dropdownRender:ve,dropdownMenuColumnStyle:be,onOpenChange:ye,choiceTransitionName:Oc(oe,"",g),transitionName:Oc(oe,"slide-up",m),getPopupContainer:k||_,ref:t}))))}),jk=Gp(Rk,"dropdownAlign",e=>Ic(e,["visible"]));Rk.SHOW_PARENT=Ik,Rk.SHOW_CHILD=Ok,Rk.Panel=function(e){const{prefixCls:t,className:n,multiple:r,rootClassName:o,notFoundContent:i,direction:a,expandIcon:c,disabled:s}=e,u=l.useContext(so),d=null!=s?s:u,[f,p,m,g]=vk(t,a),h=cl(p),[v,y,x]=$k(p,h);kk(p);const w="rtl"===m,[C,S]=yk(f,w,c),$=i||(null==g?void 0:g("Cascader"))||l.createElement(Jg,{componentName:"Cascader"}),k=bk(p,r);return v(l.createElement(mk,Object.assign({},e,{checkable:k,prefixCls:p,className:b(n,y,o,x,h),notFoundContent:$,direction:m,expandIcon:C,loadingIcon:S,disabled:d})))},Rk._InternalPanelDoNotUseOrYouWillBeFired=jk;const Mk=e.createContext(null);var Pk=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Dk=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:c=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,m=Pk(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:h,checkbox:v}=l.useContext(ro),y=l.useContext(Mk),{isFormItemInput:x}=l.useContext(Nf),w=l.useContext(so),C=null!==(n=(null==y?void 0:y.disabled)||p)&&void 0!==n?n:w,S=l.useRef(m.value),$=l.useRef(null),k=U(t,$);l.useEffect(()=>{null==y||y.registerValue(m.value)},[]),l.useEffect(()=>{if(!f)return m.value!==S.current&&(null==y||y.cancelValue(S.current),null==y||y.registerValue(m.value),S.current=m.value),()=>null==y?void 0:y.cancelValue(m.value)},[m.value]),l.useEffect(()=>{var e;(null===(e=$.current)||void 0===e?void 0:e.input)&&($.current.input.indeterminate=c)},[c]);const E=g("checkbox",r),O=cl(E),[I,N,R]=wk(E,O),j=Object.assign({},m);y&&!f&&(j.onChange=(...e)=>{m.onChange&&m.onChange.apply(m,e),y.toggleOption&&y.toggleOption({label:a,value:m.value})},j.name=y.name,j.checked=y.value.includes(m.value));const M=b(`${E}-wrapper`,{[`${E}-rtl`]:"rtl"===h,[`${E}-wrapper-checked`]:j.checked,[`${E}-wrapper-disabled`]:C,[`${E}-wrapper-in-form-item`]:x},null==v?void 0:v.className,o,i,R,O,N),P=b({[`${E}-indeterminate`]:c},jc,N),[D,T]=fC(j.onClick);return I(l.createElement(Lc,{component:"Checkbox",disabled:C},l.createElement("label",{className:M,style:Object.assign(Object.assign({},null==v?void 0:v.style),s),onMouseEnter:u,onMouseLeave:d,onClick:D},l.createElement(dC,Object.assign({},j,{onClick:T,prefixCls:E,className:P,disabled:C,ref:k})),null!=a&&l.createElement("span",{className:`${E}-label`},a))))},Tk=l.forwardRef(Dk);var Bk=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Lk=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:c,style:s,onChange:u}=e,d=Bk(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=l.useContext(ro),[m,g]=l.useState(d.value||n||[]),[h,v]=l.useState([]);l.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const y=l.useMemo(()=>o.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[o]),x=e=>{v(t=>t.filter(t=>t!==e))},w=e=>{v(t=>[].concat(Fe(t),[e]))},C=e=>{const t=m.indexOf(e.value),n=Fe(m);-1===t?n.push(e.value):n.splice(t,1),"value"in d||g(n),null==u||u(n.filter(e=>h.includes(e)).sort((e,t)=>y.findIndex(t=>t.value===e)-y.findIndex(e=>e.value===t)))},S=f("checkbox",i),$=`${S}-group`,k=cl(S),[E,O,I]=wk(S,k),N=Ic(d,["value","disabled"]),R=o.length?y.map(e=>l.createElement(Tk,{prefixCls:S,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:b(`${$}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,j=l.useMemo(()=>({toggleOption:C,value:m,disabled:d.disabled,name:d.name,registerValue:w,cancelValue:x}),[C,m,d.disabled,d.name,w,x]),M=b($,{[`${$}-rtl`]:"rtl"===p},a,c,I,k,O);return E(l.createElement("div",Object.assign({className:M,style:s},N,{ref:t}),l.createElement(Mk.Provider,{value:j},R)))}),zk=Tk;zk.Group=Lk,zk.__ANT_CHECKBOX=!0;const Fk=e.createContext({});var Hk=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Ak(e){return"auto"===e?"1 1 auto":"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const _k=["xs","sm","md","lg","xl","xxl"],Wk=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(ro),{gutter:o,wrap:i}=l.useContext(Fk),{prefixCls:a,span:c,order:s,offset:u,push:d,pull:f,className:p,children:m,flex:g,style:h}=e,v=Hk(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[x,w,C]=up(y),S={};let $={};_k.forEach(t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete v[t],$=Object.assign(Object.assign({},$),{[`${y}-${t}-${n.span}`]:void 0!==n.span,[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-rtl`]:"rtl"===r}),n.flex&&($[`${y}-${t}-flex`]=!0,S[`--${y}-${t}-flex`]=Ak(n.flex))});const k=b(y,{[`${y}-${c}`]:void 0!==c,[`${y}-order-${s}`]:s,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${f}`]:f},p,$,w,C),E={};if(null==o?void 0:o[0]){const e="number"==typeof o[0]?o[0]/2+"px":`calc(${o[0]} / 2)`;E.paddingLeft=e,E.paddingRight=e}return g&&(E.flex=Ak(g),!1!==i||E.minWidth||(E.minWidth=0)),x(l.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),h),S),className:k,ref:t}),m))});var Vk=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 Gk(e,t){const[n,r]=l.useState("string"==typeof e?e:"");return l.useEffect(()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<qh.length;n++){const o=qh[n];if(!t||!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()},[JSON.stringify(e),t]),n}const Uk=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:c,gutter:s=0,wrap:u}=e,d=Vk(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=l.useContext(ro),m=Jh(!0,null),g=Gk(o,m),h=Gk(r,m),v=f("row",n),[y,x,w]=cp(v),C=function(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((e,t)=>{if("object"==typeof e&&null!==e)for(let r=0;r<qh.length;r++){const i=qh[r];if(o[i]&&void 0!==e[i]){n[t]=e[i];break}}else n[t]=e}),n}(s,m),S=b(v,{[`${v}-no-wrap`]:!1===u,[`${v}-${h}`]:h,[`${v}-${g}`]:g,[`${v}-rtl`]:"rtl"===p},i,x,w),$={};if(null==C?void 0:C[0]){const e="number"==typeof C[0]?C[0]/-2+"px":`calc(${C[0]} / -2)`;$.marginLeft=e,$.marginRight=e}const[k,E]=C;$.rowGap=E;const O=l.useMemo(()=>({gutter:[k,E],wrap:u}),[k,E,u]);return y(l.createElement(Fk.Provider,{value:O},l.createElement("div",Object.assign({},d,{className:S,style:Object.assign(Object.assign({},$),a),ref:t}),c)))});var Xk={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"},Kk=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:Xk}))},Qk=l.forwardRef(Kk);function Yk(){return"function"==typeof BigInt}function qk(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function Zk(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function Jk(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function eE(e){var t=String(e);if(Jk(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&nE(t)?t.length-t.indexOf(".")-1:0}function tE(e){var t=String(e);if(Jk(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Yk()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Yk()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(eE(t))}return Zk(t).fullStr}function nE(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var rE=function(){function e(t){if(Ce(this,e),M(this,"origin",""),M(this,"negative",void 0),M(this,"integer",void 0),M(this,"decimal",void 0),M(this,"decimalLen",void 0),M(this,"empty",void 0),M(this,"nan",void 0),qk(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(Jk(n)&&(n=Number(n)),nE(n="string"==typeof n?n:tE(n))){var r=Zk(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return $e(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(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{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),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),l=Zk(i),c=l.negativeStr,s=l.trimStr,u="".concat(c).concat(s.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{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(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return 2*e})}},{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(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":Zk("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),oE=function(){function e(t){Ce(this,e),M(this,"origin",""),M(this,"number",void 0),M(this,"empty",void 0),qk(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return $e(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(eE(this.number),eE(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(eE(this.number),eE(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(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":tE(this.number):this.origin}}]),e}();function iE(e){return Yk()?new rE(e):new oE(e)}function aE(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=Zk(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?aE(iE(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}function lE(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function cE(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=lE(t,e,r)):n(o=lE(t,e,""))}}function sE(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var uE=e.forwardRef(function(t,n){var r,o,i,a=t.inputElement,l=t.children,c=t.prefixCls,s=t.prefix,u=t.suffix,d=t.addonBefore,f=t.addonAfter,p=t.className,m=t.style,g=t.disabled,h=t.readOnly,v=t.focused,w=t.triggerFocus,C=t.allowClear,S=t.value,$=t.handleReset,k=t.hidden,E=t.classes,O=t.classNames,I=t.dataAttrs,N=t.styles,R=t.components,j=t.onClear,P=null!=l?l:a,T=(null==R?void 0:R.affixWrapper)||"span",B=(null==R?void 0:R.groupWrapper)||"span",L=(null==R?void 0:R.wrapper)||"span",z=(null==R?void 0:R.groupAddon)||"span",F=e.useRef(null),H=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(t),A=e.cloneElement(P,{value:S,className:b(null===(r=P.props)||void 0===r?void 0:r.className,!H&&(null==O?void 0:O.variant))||null}),_=e.useRef(null);if(e.useImperativeHandle(n,function(){return{nativeElement:_.current||F.current}}),H){var W=null;if(C){var V=!g&&!h&&S,G="".concat(c,"-clear-icon"),U="object"===x(C)&&null!=C&&C.clearIcon?C.clearIcon:"✖";W=e.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==$||$(e),null==j||j()},onMouseDown:function(e){return e.preventDefault()},className:b(G,M(M({},"".concat(G,"-hidden"),!V),"".concat(G,"-has-suffix"),!!u))},U)}var X="".concat(c,"-affix-wrapper"),K=b(X,M(M(M(M(M({},"".concat(c,"-disabled"),g),"".concat(X,"-disabled"),g),"".concat(X,"-focused"),v),"".concat(X,"-readonly"),h),"".concat(X,"-input-with-clear-btn"),u&&C&&S),null==E?void 0:E.affixWrapper,null==O?void 0:O.affixWrapper,null==O?void 0:O.variant),Q=(u||C)&&e.createElement("span",{className:b("".concat(c,"-suffix"),null==O?void 0:O.suffix),style:null==N?void 0:N.suffix},W,u);A=e.createElement(T,y({className:K,style:null==N?void 0:N.affixWrapper,onClick:function(e){var t;null!==(t=F.current)&&void 0!==t&&t.contains(e.target)&&(null==w||w())}},null==I?void 0:I.affixWrapper,{ref:F}),s&&e.createElement("span",{className:b("".concat(c,"-prefix"),null==O?void 0:O.prefix),style:null==N?void 0:N.prefix},s),A,Q)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(t)){var Y="".concat(c,"-group"),q="".concat(Y,"-addon"),Z="".concat(Y,"-wrapper"),J=b("".concat(c,"-wrapper"),Y,null==E?void 0:E.wrapper,null==O?void 0:O.wrapper),ee=b(Z,M({},"".concat(Z,"-disabled"),g),null==E?void 0:E.group,null==O?void 0:O.groupWrapper);A=e.createElement(B,{className:ee,ref:_},e.createElement(L,{className:J},d&&e.createElement(z,{className:q},d),A,f&&e.createElement(z,{className:q},f)))}return e.cloneElement(A,{className:b(null===(o=A.props)||void 0===o?void 0:o.className,p)||null,style:D(D({},null===(i=A.props)||void 0===i?void 0:i.style),m),hidden:k})}),dE=["show"];function fE(e,t){return l.useMemo(function(){var n={};t&&(n.show="object"===x(t)&&t.formatter?t.formatter:!!t);var r=n=D(D({},n),e),o=r.show,i=st(r,dE);return D(D({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})},[e,t])}var pE=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],mE=e.forwardRef(function(t,n){var r=t.autoComplete,o=t.onChange,i=t.onFocus,a=t.onBlur,l=t.onPressEnter,c=t.onKeyDown,s=t.onKeyUp,u=t.prefixCls,d=void 0===u?"rc-input":u,f=t.disabled,p=t.htmlSize,m=t.className,g=t.maxLength,h=t.suffix,v=t.showCount,x=t.count,w=t.type,C=void 0===w?"text":w,S=t.classes,$=t.classNames,k=t.styles,E=t.onCompositionStart,O=t.onCompositionEnd,I=st(t,pE),N=Qe(e.useState(!1),2),R=N[0],j=N[1],P=e.useRef(!1),T=e.useRef(!1),B=e.useRef(null),L=e.useRef(null),z=function(e){B.current&&sE(B.current,e)},F=Qe($o(t.defaultValue,{value:t.value}),2),H=F[0],A=F[1],_=null==H?"":String(H),W=Qe(e.useState(null),2),V=W[0],G=W[1],U=fE(x,v),X=U.max||g,K=U.strategy(_),Q=!!X&&K>X;e.useImperativeHandle(n,function(){var e;return{focus:z,blur:function(){var e;null===(e=B.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=B.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=B.current)||void 0===e||e.select()},input:B.current,nativeElement:(null===(e=L.current)||void 0===e?void 0:e.nativeElement)||B.current}}),e.useEffect(function(){T.current&&(T.current=!1),j(function(e){return(!e||!f)&&e})},[f]);var Y=function(e,t,n){var r,i,a=t;if(!P.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&G([(null===(r=B.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=B.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;A(a),B.current&&cE(B.current,e,o,a)};e.useEffect(function(){var e;V&&(null===(e=B.current)||void 0===e||e.setSelectionRange.apply(e,Fe(V)))},[V]);var q,Z=function(e){Y(e,e.target.value,{source:"change"})},J=function(e){P.current=!1,Y(e,e.currentTarget.value,{source:"compositionEnd"}),null==O||O(e)},ee=function(e){l&&"Enter"===e.key&&!T.current&&(T.current=!0,l(e)),null==c||c(e)},te=function(e){"Enter"===e.key&&(T.current=!1),null==s||s(e)},ne=function(e){j(!0),null==i||i(e)},re=function(e){T.current&&(T.current=!1),j(!1),null==a||a(e)},oe=Q&&"".concat(d,"-out-of-range");return e.createElement(uE,y({},I,{prefixCls:d,className:b(m,oe),handleReset:function(e){A(""),z(),B.current&&cE(B.current,e,o)},value:_,focused:R,triggerFocus:z,suffix:function(){var t=Number(X)>0;if(h||U.show){var n=U.showFormatter?U.showFormatter({value:_,count:K,maxLength:X}):"".concat(K).concat(t?" / ".concat(X):"");return e.createElement(e.Fragment,null,U.show&&e.createElement("span",{className:b("".concat(d,"-show-count-suffix"),M({},"".concat(d,"-show-count-has-suffix"),!!h),null==$?void 0:$.count),style:D({},null==k?void 0:k.count)},n),h)}return null}(),disabled:f,classes:S,classNames:$,styles:k,ref:L}),(q=Ic(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),e.createElement("input",y({autoComplete:r},q,{onChange:Z,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:b(d,M({},"".concat(d,"-disabled"),f),null==$?void 0:$.input),style:null==k?void 0:k.input,ref:B,size:p,type:C,onCompositionStart:function(e){P.current=!0,null==E||E(e)},onCompositionEnd:J}))))});var gE=function(){var t=Qe(e.useState(!1),2),n=t[0],r=t[1];return Dt(function(){r(Up())},[]),n};function hE(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,c=l.useRef(),s=l.useRef([]),u=l.useRef();u.current=a;var d=function(){clearTimeout(c.current)},f=function(e,t){e.preventDefault(),d(),u.current(t),c.current=setTimeout(function e(){u.current(t),c.current=setTimeout(e,200)},600)};if(l.useEffect(function(){return function(){d(),s.current.forEach(function(e){return Ge.cancel(e)})}},[]),gE())return null;var p="".concat(t,"-handler"),m=b(p,"".concat(p,"-up"),M({},"".concat(p,"-up-disabled"),o)),g=b(p,"".concat(p,"-down"),M({},"".concat(p,"-down-disabled"),i)),h=function(){return s.current.push(Ge(d))},v={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return l.createElement("div",{className:"".concat(p,"-wrap")},l.createElement("span",y({},v,{onMouseDown:function(e){f(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",y({},v,{onMouseDown:function(e){f(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:g}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function vE(e){var t="number"==typeof e?tE(e):Zk(e).fullStr;return t.includes(".")?Zk(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var bE=["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"],yE=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],xE=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},wE=function(e){var t=iE(e);return t.isInvalidate()?null:t},CE=l.forwardRef(function(t,n){var r=t.prefixCls,o=t.className,i=t.style,a=t.min,c=t.max,s=t.step,u=void 0===s?1:s,d=t.defaultValue,f=t.value,p=t.disabled,m=t.readOnly,g=t.upHandler,h=t.downHandler,v=t.keyboard,w=t.changeOnWheel,C=void 0!==w&&w,S=t.controls,$=void 0===S||S;t.classNames;var k=t.stringMode,E=t.parser,O=t.formatter,I=t.precision,N=t.decimalSeparator,j=t.onChange,P=t.onInput,D=t.onPressEnter,T=t.onStep,B=t.changeOnBlur,L=void 0===B||B,z=t.domRef,F=st(t,bE),H="".concat(r,"-input"),A=l.useRef(null),_=Qe(l.useState(!1),2),W=_[0],V=_[1],G=l.useRef(!1),X=l.useRef(!1),K=l.useRef(!1),Q=Qe(l.useState(function(){return iE(null!=f?f:d)}),2),Y=Q[0],q=Q[1];var Z=l.useCallback(function(e,t){if(!t)return I>=0?I:Math.max(eE(e),eE(u))},[I,u]),J=l.useCallback(function(e){var t=String(e);if(E)return E(t);var n=t;return N&&(n=n.replace(N,".")),n.replace(/[^\w.-]+/g,"")},[E,N]),ee=l.useRef(""),te=l.useCallback(function(e,t){if(O)return O(e,{userTyping:t,input:String(ee.current)});var n="number"==typeof e?tE(e):e;if(!t){var r=Z(n,t);if(nE(n)&&(N||r>=0))n=aE(n,N||".",r)}return n},[O,Z,N]),ne=Qe(l.useState(function(){var e=null!=d?d:f;return Y.isInvalidate()&&["string","number"].includes(x(e))?Number.isNaN(e)?"":e:te(Y.toString(),!1)}),2),re=ne[0],oe=ne[1];function ie(e,t){oe(te(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ee.current=re;var ae,le,ce,se,ue,de=l.useMemo(function(){return wE(c)},[c,I]),fe=l.useMemo(function(){return wE(a)},[a,I]),pe=l.useMemo(function(){return!(!de||!Y||Y.isInvalidate())&&de.lessEquals(Y)},[de,Y]),me=l.useMemo(function(){return!(!fe||!Y||Y.isInvalidate())&&Y.lessEquals(fe)},[fe,Y]),ge=(ae=A.current,le=W,ce=e.useRef(null),[function(){try{var e=ae.selectionStart,t=ae.selectionEnd,n=ae.value,r=n.substring(0,e),o=n.substring(t);ce.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(e){}},function(){if(ae&&ce.current&&le)try{var e=ae.value,t=ce.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.startsWith(n))i=n.length;else if(e.endsWith(r))i=e.length-ce.current.afterTxt.length;else{var a=n[o-1],l=e.indexOf(a,o-1);-1!==l&&(i=l+1)}ae.setSelectionRange(i,i)}catch(e){R(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),he=Qe(ge,2),ve=he[0],be=he[1],ye=function(e){return de&&!e.lessEquals(de)?de:fe&&!fe.lessEquals(e)?fe:null},xe=function(e){return!ye(e)},we=function(e,t){var n,r=e,o=xe(r)||r.isEmpty();if(r.isEmpty()||t||(r=ye(r)||r,o=!0),!m&&!p&&o){var i=r.toString(),a=Z(i,t);return a>=0&&(r=iE(aE(i,".",a)),xe(r)||(r=iE(aE(i,".",a,!0)))),r.equals(Y)||(n=r,void 0===f&&q(n),null==j||j(r.isEmpty()?null:xE(k,r)),void 0===f&&ie(r,t)),r}return Y},Ce=(se=e.useRef(0),ue=function(){Ge.cancel(se.current)},e.useEffect(function(){return ue},[]),function(e){ue(),se.current=Ge(function(){e()})}),Se=function e(t){if(ve(),ee.current=t,oe(t),!X.current){var n=iE(J(t));n.isNaN()||we(n,!0)}null==P||P(t),Ce(function(){var n=t;E||(n=t.replace(/。/g,".")),n!==t&&e(n)})},$e=function(e){var t;if(!(e&&pe||!e&&me)){G.current=!1;var n=iE(K.current?vE(u):u);e||(n=n.negate());var r=(Y||iE(0)).add(n.toString()),o=we(r,!1);null==T||T(xE(k,o),{offset:K.current?vE(u):u,type:e?"up":"down"}),null===(t=A.current)||void 0===t||t.focus()}},ke=function(e){var t,n=iE(J(re));t=n.isNaN()?we(Y,e):we(n,e),void 0!==f?ie(Y,!1):t.isNaN()||ie(t,!1)};l.useEffect(function(){if(C&&W){var e=function(e){$e(e.deltaY<0),e.preventDefault()},t=A.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}});return Tt(function(){Y.isInvalidate()||ie(Y,!1)},[I,O]),Tt(function(){var e=iE(f);q(e);var t=iE(J(re));e.equals(t)&&G.current&&!O||ie(e,G.current)},[f]),Tt(function(){O&&be()},[re]),l.createElement("div",{ref:z,className:b(r,o,M(M(M(M(M({},"".concat(r,"-focused"),W),"".concat(r,"-disabled"),p),"".concat(r,"-readonly"),m),"".concat(r,"-not-a-number"),Y.isNaN()),"".concat(r,"-out-of-range"),!Y.isInvalidate()&&!xe(Y))),style:i,onFocus:function(){V(!0)},onBlur:function(){L&&ke(!1),V(!1),G.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;G.current=!0,K.current=n,"Enter"===t&&(X.current||(G.current=!1),ke(!1),null==D||D(e)),!1!==v&&!X.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&($e("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){G.current=!1,K.current=!1},onCompositionStart:function(){X.current=!0},onCompositionEnd:function(){X.current=!1,Se(A.current.value)},onBeforeInput:function(){G.current=!0}},$&&l.createElement(hE,{prefixCls:r,upNode:g,downNode:h,upDisabled:pe,downDisabled:me,onStep:$e}),l.createElement("div",{className:"".concat(H,"-wrap")},l.createElement("input",y({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":c,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:u},F,{ref:U(A,n),className:H,value:re,onChange:function(e){Se(e.target.value)},disabled:p,readOnly:m}))))}),SE=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=void 0===o?"rc-input-number":o,a=e.value,c=e.prefix,s=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,m=st(e,yE),g=l.useRef(null),h=l.useRef(null),v=l.useRef(null),b=function(e){v.current&&sE(v.current,e)};return l.useImperativeHandle(t,function(){return e=v.current,t={focus:b,nativeElement:g.current.nativeElement||h.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var r=e[n];return"function"==typeof r?r.bind(e):r}}):e;var e,t}),l.createElement(uE,{className:f,triggerFocus:b,prefixCls:i,value:a,disabled:n,style:r,prefix:c,suffix:s,addonAfter:d,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:g},l.createElement(CE,y({prefixCls:i,disabled:n,ref:v,domRef:h,className:null==p?void 0:p.input},m)))});const $E=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o="lg"===r?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},kE=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:c,colorError:s,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:p,colorIcon:m,motionDurationMid:g,handleHoverColor:h,handleOpacity:v,paddingInline:b,paddingBlock:y,handleBg:x,handleActiveBg:w,colorTextDisabled:C,borderRadiusSM:S,borderRadiusLG:$,controlWidth:k,handleBorderColor:E,filledHandleBg:O,lineHeightLG:I,calc:N}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xo(e)),tS(e)),{display:"inline-block",width:k,margin:0,padding:0,borderRadius:o}),HC(e,{[`${t}-handler-wrap`]:{background:x,[`${t}-handler-down`]:{borderBlockStart:`${It(n)} ${r} ${E}`}}})),UC(e,{[`${t}-handler-wrap`]:{background:O,[`${t}-handler-down`]:{borderBlockStart:`${It(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:x}}})),qC(e,{[`${t}-handler-wrap`]:{background:x,[`${t}-handler-down`]:{borderBlockStart:`${It(n)} ${r} ${E}`}}})),WC(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:I,borderRadius:$,[`input${t}-input`]:{height:N(l).sub(N(n).mul(2)).equal(),padding:`${It(f)} ${It(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:S,[`input${t}-input`]:{height:N(c).sub(N(n).mul(2)).equal(),padding:`${It(d)} ${It(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},Xo(e)),nS(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:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}},_C(e)),KC(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({},Xo(e)),{width:"100%",padding:`${It(y)} ${It(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),ZC(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:v,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%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${It(n)} ${r} ${E}`,transition:`all ${g} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},$E(e,"lg")),$E(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:C}})}]},EE=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${It(n)} 0`}},tS(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${It(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${It(d)} 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 ${f}`}},[`&: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}}};var OE=Zo("InputNumber",e=>{const t=Io(e,DC(e));return[kE(t),EE(t),Ru(t)]},e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto",r=e.controlHeightSM-2*e.lineWidth;return Object.assign(Object.assign({},TC(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new $r(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0,handleVisibleWidth:!0===n?r:0})},{unitless:{handleOpacity:!0},resetFont:!1}),IE=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 NE=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(ro),o=l.useRef(null);l.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:c,disabled:s,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,suffix:m,bordered:g,readOnly:h,status:v,controls:y,variant:x}=e,w=IE(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",u),S=cl(C),[$,k,E]=OE(C,S),{compactSize:O,compactItemClassnames:I}=Wc(C,r);let N=l.createElement(Qk,{className:`${C}-handler-up-inner`}),R=l.createElement(Mh,{className:`${C}-handler-down-inner`});const j="boolean"==typeof y?y:void 0;"object"==typeof y&&(N=void 0===y.upIcon?N:l.createElement("span",{className:`${C}-handler-up-inner`},y.upIcon),R=void 0===y.downIcon?R:l.createElement("span",{className:`${C}-handler-down-inner`},y.downIcon));const{hasFeedback:M,status:P,isFormItemInput:D,feedbackIcon:T}=l.useContext(Nf),B=Gg(P,v),L=zc(e=>{var t;return null!==(t=null!=c?c:O)&&void 0!==t?t:e}),z=l.useContext(so),F=null!=s?s:z,[H,A]=eh("inputNumber",x,g),_=M&&l.createElement(l.Fragment,null,T),W=b({[`${C}-lg`]:"large"===L,[`${C}-sm`]:"small"===L,[`${C}-rtl`]:"rtl"===r,[`${C}-in-form-item`]:D},k),V=`${C}-group`;return $(l.createElement(SE,Object.assign({ref:o,disabled:F,className:b(E,S,i,a,I),upHandler:N,downHandler:R,prefixCls:C,readOnly:h,controls:j,prefix:p,suffix:_||m,addonBefore:d&&l.createElement(Mf,{form:!0,space:!0},d),addonAfter:f&&l.createElement(Mf,{form:!0,space:!0},f),classNames:{input:W,variant:b({[`${C}-${H}`]:A},Vg(C,B,M)),affixWrapper:b({[`${C}-affix-wrapper-sm`]:"small"===L,[`${C}-affix-wrapper-lg`]:"large"===L,[`${C}-affix-wrapper-rtl`]:"rtl"===r,[`${C}-affix-wrapper-without-controls`]:!1===y||F||h},k),wrapper:b({[`${V}-rtl`]:"rtl"===r},k),groupWrapper:b({[`${C}-group-wrapper-sm`]:"small"===L,[`${C}-group-wrapper-lg`]:"large"===L,[`${C}-group-wrapper-rtl`]:"rtl"===r,[`${C}-group-wrapper-${H}`]:A},Vg(`${C}-group-wrapper`,B,M),k)}},w)))}),RE=NE;RE._InternalPanelDoNotUseOrYouWillBeFired=e=>l.createElement(da,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(NE,Object.assign({},e)));const jE=t=>{let n;return"object"==typeof t&&(null==t?void 0:t.clearIcon)?n=t:t&&(n={clearIcon:e.createElement(za,null)}),n};function ME(t,n){const r=e.useRef([]),o=()=>{r.current.push(setTimeout(()=>{var e,n,r,o;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=t.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=t.current)||void 0===o||o.input.removeAttribute("value"))}))};return e.useEffect(()=>(n&&o(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}var PE=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 DE=e.forwardRef((t,n)=>{const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:c,onFocus:s,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:m,style:g,styles:h,rootClassName:v,onChange:y,classNames:x,variant:w,_skipAddonWarning:C}=t,S=PE(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:$,direction:k,allowClear:E,autoComplete:O,className:I,style:N,classNames:R,styles:j}=ao("input"),M=$("input",r),P=e.useRef(null),D=cl(M),[T,B,L]=sS(M,v),[z]=uS(M,D),{compactSize:F,compactItemClassnames:H}=Wc(M,k),A=zc(e=>{var t;return null!==(t=null!=a?a:F)&&void 0!==t?t:e}),_=e.useContext(so),W=null!=l?l:_,{status:V,hasFeedback:G,feedbackIcon:X}=e.useContext(Nf),K=Gg(V,i),Q=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(t)||!!G;e.useRef(Q);const Y=ME(P,!0),q=(G||u)&&e.createElement(e.Fragment,null,u,G&&X),Z=jE(null!=d?d:E),[J,ee]=eh("input",w,o);return T(z(e.createElement(mE,Object.assign({ref:U(n,P),prefixCls:M,autoComplete:O},S,{disabled:W,onBlur:e=>{Y(),null==c||c(e)},onFocus:e=>{Y(),null==s||s(e)},style:Object.assign(Object.assign({},N),g),styles:Object.assign(Object.assign({},j),h),suffix:q,allowClear:Z,className:b(m,v,L,D,H,I),onChange:e=>{Y(),null==y||y(e)},addonBefore:p&&e.createElement(Mf,{form:!0,space:!0},p),addonAfter:f&&e.createElement(Mf,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},x),R),{input:b({[`${M}-sm`]:"small"===A,[`${M}-lg`]:"large"===A,[`${M}-rtl`]:"rtl"===k},null==x?void 0:x.input,R.input,B),variant:b({[`${M}-${J}`]:ee},Vg(M,K)),affixWrapper:b({[`${M}-affix-wrapper-sm`]:"small"===A,[`${M}-affix-wrapper-lg`]:"large"===A,[`${M}-affix-wrapper-rtl`]:"rtl"===k},B),wrapper:b({[`${M}-group-rtl`]:"rtl"===k},B),groupWrapper:b({[`${M}-group-wrapper-sm`]:"small"===A,[`${M}-group-wrapper-lg`]:"large"===A,[`${M}-group-wrapper-rtl`]:"rtl"===k,[`${M}-group-wrapper-${J}`]:ee},Vg(`${M}-group-wrapper`,K,G),B)})}))))});var TE={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"},BE=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:TE}))},LE=l.forwardRef(BE);const zE=(e,t,n,r,o)=>{const{classNames:i,styles:a}=ao(e),[c,s]=Ml([i,t],[a,n],{popup:{_default:"root"}});return l.useMemo(()=>{var e,t;return[Object.assign(Object.assign({},c),{popup:Object.assign(Object.assign({},c.popup),{root:b(null===(e=c.popup)||void 0===e?void 0:e.root,r)})}),Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Object.assign(Object.assign({},null===(t=s.popup)||void 0===t?void 0:t.root),o)})})]},[c,s,r,o])};function FE(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function HE(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function AE(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=Bh(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:r},e)},[n,r]),o]}const[_E,WE]=["week","WeekPicker"],[VE,GE]=["month","MonthPicker"],[UE,XE]=["year","YearPicker"],[KE,QE]=["quarter","QuarterPicker"],[YE,qE]=["time","TimePicker"];var ZE={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"},JE=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:ZE}))},eO=l.forwardRef(JE),tO={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"},nO=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:tO}))},rO=l.forwardRef(nO);const oO=({picker:t,hasFeedback:n,feedbackIcon:r,suffixIcon:o})=>null===o||!1===o?null:!0===o||void 0===o?e.createElement(e.Fragment,null,t===YE?e.createElement(rO,null):e.createElement(eO,null),n&&r):o,iO=e=>l.createElement(zu,Object.assign({size:"small",type:"primary"},e));function aO(t){return e.useMemo(()=>Object.assign({button:iO},t),[t])}var lO=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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};var cO=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 sO=t=>{const{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:a,QuarterPicker:c}=(t=>{const n=(n,r)=>{const o=r===qE?"timePicker":"datePicker",i=e.forwardRef((r,i)=>{var a;const{prefixCls:c,getPopupContainer:s,components:u,style:d,className:f,rootClassName:p,size:m,bordered:g,placement:h,placeholder:v,popupStyle:y,popupClassName:x,dropdownClassName:w,disabled:C,status:S,variant:$,onCalendarChange:k,styles:E,classNames:O,suffixIcon:I}=r,N=cO(r,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:R,direction:j,getPopupContainer:M,[o]:P}=e.useContext(ro),D=R("picker",c),{compactSize:T,compactItemClassnames:B}=Wc(D,j),L=l.useRef(null),[z,F]=eh("datePicker",$,g),H=cl(D),[A,_,W]=xS(D,H);e.useImperativeHandle(i,()=>L.current);const V=n||r.picker,G=R(),{onSelect:U,multiple:X}=N,K=U&&"time"===n&&!X,[Q,Y]=zE(o,O,E,x||w,y),[q,Z]=AE(r,D),J=aO(u),ee=zc(e=>{var t;return null!==(t=null!=m?m:T)&&void 0!==t?t:e}),te=l.useContext(so),ne=null!=C?C:te,re=e.useContext(Nf),{hasFeedback:oe,status:ie,feedbackIcon:ae}=re,le=l.createElement(oO,{picker:V,hasFeedback:oe,feedbackIcon:ae,suffixIcon:I}),[ce]=hr("DatePicker",cr),se=Object.assign(Object.assign({},ce),r.locale),[ue]=zl("DatePicker",null===(a=Y.popup.root)||void 0===a?void 0:a.zIndex);return A(l.createElement(Mf,{space:!0},l.createElement(iC,Object.assign({ref:L,placeholder:FE(se,V,v),suffixIcon:le,placement:h,prevIcon:l.createElement("span",{className:`${D}-prev-icon`}),nextIcon:l.createElement("span",{className:`${D}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${D}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${D}-super-next-icon`}),transitionName:`${G}-slide-up`,picker:n,onCalendarChange:(e,t,n)=>{null==k||k(e,t,n),K&&U(e)}},{showToday:!0},N,{locale:se.lang,className:b({[`${D}-${ee}`]:ee,[`${D}-${z}`]:F},Vg(D,Gg(ie,S),oe),_,B,null==P?void 0:P.className,f,W,H,p,Q.root),style:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),d),Y.root),prefixCls:D,getPopupContainer:s||M,generateConfig:t,components:J,direction:j,disabled:ne,classNames:{popup:b(_,W,H,p,Q.popup.root)},styles:{popup:Object.assign(Object.assign({},Y.popup.root),{zIndex:ue})},allowClear:q,removeIcon:Z}))))});return i},r=n(),o=n(_E,WE),i=n(VE,GE),a=n(UE,XE),c=n(KE,QE);return{DatePicker:r,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:n(YE,qE),QuarterPicker:c}})(t),s=(t=>{const n=e.forwardRef((n,r)=>{var o;const{prefixCls:i,getPopupContainer:a,components:c,className:s,style:u,placement:d,size:f,disabled:p,bordered:m=!0,placeholder:g,popupStyle:h,popupClassName:v,dropdownClassName:y,status:x,rootClassName:w,variant:C,picker:S,styles:$,classNames:k,suffixIcon:E}=n,O=lO(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),I=S===YE?"timePicker":"datePicker",N=l.useRef(null),{getPrefixCls:R,direction:j,getPopupContainer:M,rangePicker:P}=e.useContext(ro),D=R("picker",i),{compactSize:T,compactItemClassnames:B}=Wc(D,j),L=R(),[z,F]=eh("rangePicker",C,m),H=cl(D),[A,_,W]=xS(D,H),[V,G]=zE(I,k,$,v||y,h),[U]=AE(n,D),X=aO(c),K=zc(e=>{var t;return null!==(t=null!=f?f:T)&&void 0!==t?t:e}),Q=l.useContext(so),Y=null!=p?p:Q,q=e.useContext(Nf),{hasFeedback:Z,status:J,feedbackIcon:ee}=q,te=l.createElement(oO,{picker:S,hasFeedback:Z,feedbackIcon:ee,suffixIcon:E});e.useImperativeHandle(r,()=>N.current);const[ne]=hr("Calendar",cr),re=Object.assign(Object.assign({},ne),n.locale),[oe]=zl("DatePicker",null===(o=G.popup.root)||void 0===o?void 0:o.zIndex);return A(l.createElement(Mf,{space:!0},l.createElement(Jw,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${D}-separator`},l.createElement(LE,null)),disabled:Y,ref:N,placement:d,placeholder:HE(re,S,g),suffixIcon:te,prevIcon:l.createElement("span",{className:`${D}-prev-icon`}),nextIcon:l.createElement("span",{className:`${D}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${D}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${D}-super-next-icon`}),transitionName:`${L}-slide-up`,picker:S},O,{className:b({[`${D}-${K}`]:K,[`${D}-${z}`]:F},Vg(D,Gg(J,x),Z),_,B,s,null==P?void 0:P.className,W,H,w,V.root),style:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),u),G.root),locale:re.lang,prefixCls:D,getPopupContainer:a||M,generateConfig:t,components:X,direction:j,classNames:{popup:b(_,W,H,w,V.popup.root)},styles:{popup:Object.assign(Object.assign({},G.popup.root),{zIndex:oe})},allowClear:U}))))});return n})(t),u=n;return u.WeekPicker=r,u.MonthPicker=o,u.YearPicker=i,u.RangePicker=s,u.TimePicker=a,u.QuarterPicker=c,u},uO=sO(sx),dO=Gp(uO,"popupAlign",void 0,"picker");uO._InternalPanelDoNotUseOrYouWillBeFired=dO;const fO=Gp(uO.RangePicker,"popupAlign",void 0,"picker");function pO(e){return["small","middle","large"].includes(e)}function mO(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}uO._InternalRangePanelDoNotUseOrYouWillBeFired=fO,uO.generatePicker=sO;const gO=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:i,fontSizeLG:a,fontSizeSM:l,borderRadiusLG:c,borderRadiusSM:s,colorBgContainerDisabled:u,lineWidth:d}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:u,borderWidth:d,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:a,borderRadius:c},"&-small":{paddingInline:i,borderRadius:s,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Ru(e,{focus:!1})]}};var hO=Zo(["Space","Addon"],e=>[gO(e)]),vO=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 bO=e.forwardRef((t,n)=>{const{className:r,children:o,style:i,prefixCls:a}=t,l=vO(t,["className","children","style","prefixCls"]),{getPrefixCls:c,direction:s}=e.useContext(ro),u=c("space-addon",a),[d,f,p]=hO(u),{compactItemClassnames:m,compactSize:g}=Wc(u,s),h=b(u,f,m,p,{[`${u}-${g}`]:g},r);return d(e.createElement("div",Object.assign({ref:n,className:h,style:i},l),o))}),yO=e.createContext({latestIndex:0}),xO=yO.Provider,wO=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:i}=l.useContext(yO);return null==n?null:l.createElement(l.Fragment,null,l.createElement("div",{className:e,style:o},n),t<i&&r&&l.createElement("span",{className:`${e}-split`},r))},CO=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},SO=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var $O=Zo("Space",e=>{const t=Io(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[CO(t),SO(t)]},()=>({}),{resetStyle:!1}),kO=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 EO=l.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:i,className:a,style:c,classNames:s,styles:u}=ao("space"),{size:d=(null!=i?i:"small"),align:f,className:p,rootClassName:m,children:g,direction:h="horizontal",prefixCls:v,split:y,style:x,wrap:w=!1,classNames:C,styles:S}=e,$=kO(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,O]=Array.isArray(d)?d:[d,d],I=pO(O),N=pO(E),R=mO(O),j=mO(E),M=k(g,{keepEmpty:!0}),P=void 0===f&&"horizontal"===h?"center":f,D=r("space",v),[T,B,L]=$O(D),z=b(D,a,B,`${D}-${h}`,{[`${D}-rtl`]:"rtl"===o,[`${D}-align-${P}`]:P,[`${D}-gap-row-${O}`]:I,[`${D}-gap-col-${E}`]:N},p,m,L),F=b(`${D}-item`,null!==(n=null==C?void 0:C.item)&&void 0!==n?n:s.item),H=Object.assign(Object.assign({},u.item),null==S?void 0:S.item),A=M.map((e,t)=>{const n=(null==e?void 0:e.key)||`${F}-${t}`;return l.createElement(wO,{className:F,key:n,index:t,split:y,style:H},e)}),_=l.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>null!=t?n:e,0)}),[M]);if(0===M.length)return null;const W={};return w&&(W.flexWrap="wrap"),!N&&j&&(W.columnGap=E),!I&&R&&(W.rowGap=O),T(l.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},W),c),x)},$),l.createElement(xO,{value:_},A)))}),OO=EO;OO.Compact=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ro),{size:r,direction:o,block:i,prefixCls:a,className:c,rootClassName:s,children:u}=e,d=Ac(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=zc(e=>null!=r?r:e),p=t("space-compact",a),[m,g]=Hc(p),h=b(p,g,{[`${p}-rtl`]:"rtl"===n,[`${p}-block`]:i,[`${p}-vertical`]:"vertical"===o},c,s),v=l.useContext(_c),y=k(u),x=l.useMemo(()=>y.map((e,t)=>{const n=(null==e?void 0:e.key)||`${p}-item-${t}`;return l.createElement(Gc,{key:n,compactSize:f,compactDirection:o,isFirstItem:0===t&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:t===y.length-1&&(!v||(null==v?void 0:v.isLastItem))},e)}),[y,v,o,f,p]);return 0===y.length?null:m(l.createElement("div",Object.assign({className:h},d),x))},OO.Addon=bO;var IO=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 NO=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(ro),{prefixCls:o,type:i="default",danger:a,disabled:c,loading:s,onClick:u,htmlType:d,children:f,className:p,menu:m,arrow:g,autoFocus:h,overlay:v,trigger:y,align:x,open:w,onOpenChange:C,placement:S,getPopupContainer:$,href:k,icon:E=l.createElement(oy,null),title:O,buttonsRender:I=e=>e,mouseEnterDelay:N,mouseLeaveDelay:R,overlayClassName:j,overlayStyle:M,destroyOnHidden:P,destroyPopupOnHide:D,dropdownRender:T,popupRender:B}=e,L=IO(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),z=n("dropdown",o),F=`${z}-button`,H={menu:m,arrow:g,autoFocus:h,align:x,disabled:c,trigger:c?[]:y,onOpenChange:C,getPopupContainer:$||t,mouseEnterDelay:N,mouseLeaveDelay:R,overlayClassName:j,overlayStyle:M,destroyOnHidden:P,popupRender:B||T},{compactSize:A,compactItemClassnames:_}=Wc(z,r),W=b(F,_,p);"destroyPopupOnHide"in e&&(H.destroyPopupOnHide=D),"overlay"in e&&(H.overlay=v),"open"in e&&(H.open=w),H.placement="placement"in e?S:"rtl"===r?"bottomLeft":"bottomRight";const V=l.createElement(zu,{type:i,danger:a,disabled:c,loading:s,onClick:u,htmlType:d,href:k,title:O},f),G=l.createElement(zu,{type:i,danger:a,icon:E}),[U,X]=I([V,G]);return l.createElement(OO.Compact,Object.assign({className:W,size:A,block:!0},L),U,l.createElement(jy,Object.assign({},H),X))};NO.__ANT_BUTTON=!0;const RO=jy;function jO(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}RO.Button=NO;const MO=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},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n 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)"}}}}},PO=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${It(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 ${It(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),DO=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},TO=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Xo(e)),PO(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},DO(e,e.controlHeightSM)),"&-large":Object.assign({},DO(e,e.controlHeightLG))})}},BO=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:s,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},Xo(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-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:c,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,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:s,marginInlineEnd:u},[`&${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:As,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},LO=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),zO=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,\n ${t}-col-xl-24${n}-label`]:LO(e)}}},FO=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,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},HO=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:LO(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},AO=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,\n ${r}-col-24${n}-label,\n ${r}-col-xl-24${n}-label`]:LO(e)},[`@media (max-width: ${It(e.screenXSMax)})`]:[HO(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:LO(e)}}}],[`@media (max-width: ${It(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:LO(e)}}},[`@media (max-width: ${It(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:LO(e)}}},[`@media (max-width: ${It(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:LO(e)}}}}},_O=(e,t)=>Io(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var WO=Zo("Form",(e,{rootPrefixCls:t})=>{const n=_O(e,t);return[TO(n),BO(n),MO(n),zO(n),FO(n),AO(n),hs(n),As]},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}),{order:-1e3});const VO=[];function GO(e,t,n,r=0){return{key:"string"==typeof e?e:`${t}-${r}`,error:e,errorStatus:n}}const UO=({help:e,helpStatus:t,errors:n=VO,warnings:r=VO,className:o,fieldId:i,onVisibleChanged:a})=>{const{prefixCls:c}=l.useContext(If),s=`${c}-item-explain`,u=cl(c),[d,f,p]=WO(c,u),m=l.useMemo(()=>Ec(c),[c]),g=jO(n),h=jO(r),v=l.useMemo(()=>null!=e?[GO(e,"help",t)]:[].concat(Fe(g.map((e,t)=>GO(e,"error","error",t))),Fe(h.map((e,t)=>GO(e,"warning","warning",t)))),[e,t,g,h]),y=l.useMemo(()=>{const e={};return v.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),v.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[v]),x={};return i&&(x.id=`${i}_help`),d(l.createElement(Ai,{motionDeadline:m.motionDeadline,motionName:`${c}-show-help`,visible:!!y.length,onVisibleChanged:a},e=>{const{className:t,style:n}=e;return l.createElement("div",Object.assign({},x,{className:b(s,t,p,u,o,f),style:n}),l.createElement(qi,Object.assign({keys:y},Ec(c),{motionName:`${c}-show-help-item`,component:!1}),e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return l.createElement("div",{key:t,className:b(o,{[`${s}-${r}`]:r}),style:i},n)}))}))};var XO=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 KO=(e,t)=>{const n=l.useContext(so),{getPrefixCls:r,direction:o,requiredMark:i,colon:a,scrollToFirstError:c,className:s,style:u}=ao("form"),{prefixCls:d,className:f,rootClassName:p,size:m,disabled:g=n,form:h,colon:v,labelAlign:y,labelWrap:x,labelCol:w,wrapperCol:C,hideRequiredMark:S,layout:$="horizontal",scrollToFirstError:k,requiredMark:E,onFinishFailed:O,name:I,style:N,feedbackIcons:R,variant:j}=e,M=XO(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=zc(m),D=l.useContext(or),T=l.useMemo(()=>void 0!==E?E:!S&&(void 0===i||i),[S,E,i]),B=null!=v?v:a,L=r("form",d),z=cl(L),[F,H,A]=WO(L,z),_=b(L,`${L}-${$}`,{[`${L}-hide-required-mark`]:!1===T,[`${L}-rtl`]:"rtl"===o,[`${L}-${P}`]:P},A,z,H,s,f,p),[W]=OC(h),{__INTERNAL__:V}=W;V.name=I;const G=l.useMemo(()=>({name:I,labelAlign:y,labelCol:w,labelWrap:x,wrapperCol:C,layout:$,colon:B,requiredMark:T,itemRef:V.itemRef,form:W,feedbackIcons:R}),[I,y,w,C,$,B,T,W,R]),U=l.useRef(null);l.useImperativeHandle(t,()=>{var e;return Object.assign(Object.assign({},W),{nativeElement:null===(e=U.current)||void 0===e?void 0:e.nativeElement})});const X=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),W.scrollToField(t,n)}};return F(l.createElement(jf.Provider,{value:j},l.createElement(uo,{disabled:g},l.createElement(fo.Provider,{value:P},l.createElement(Of,{validateMessages:D},l.createElement(kf.Provider,{value:G},l.createElement(Rf,{status:!0},l.createElement($f,Object.assign({id:I},M,{name:I,onFinishFailed:e=>{if(null==O||O(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==k)return void X(k,t);void 0!==c&&X(c,t)}},form:W,ref:U,style:Object.assign(Object.assign({},u),N),className:_})))))))))},QO=l.forwardRef(KO);const YO=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(Nf);return{status:e,errors:t,warnings:n}};YO.Context=Nf;var qO=ei(["Form","item-item"],(e,{rootPrefixCls:t})=>(e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}})(_O(e,t))),ZO=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 JO=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:c,_internalItemRender:s,extra:u,help:d,fieldId:f,marginBottom:p,onErrorVisibleChanged:m,label:g}=e,h=`${t}-item`,v=l.useContext(kf),y=l.useMemo(()=>{let e=Object.assign({},o||v.wrapperCol||{});if(null===g&&!r&&!o&&v.labelCol){[void 0,"xs","sm","md","lg","xl","xxl"].forEach(t=>{const n=t?[t]:[],r=Qn(v.labelCol,n),o="object"==typeof r?r:{},i=Qn(e,n);"span"in o&&!("offset"in("object"==typeof i?i:{}))&&o.span<24&&(e=qn(e,[].concat(n,["offset"]),o.span))})}return e},[o,v.wrapperCol,v.labelCol,g,r]),x=b(`${h}-control`,y.className),w=l.useMemo(()=>{const{labelCol:e,wrapperCol:t}=v;return ZO(v,["labelCol","wrapperCol"])},[v]),C=l.useRef(null),[S,$]=l.useState(0);Dt(()=>{u&&C.current?$(C.current.clientHeight):$(0)},[u]);const k=l.createElement("div",{className:`${h}-control-input`},l.createElement("div",{className:`${h}-control-input-content`},i)),E=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=null!==p||a.length||c.length?l.createElement(If.Provider,{value:E},l.createElement(UO,{fieldId:f,errors:a,warnings:c,help:d,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:m})):null,I={};f&&(I.id=`${f}_extra`);const N=u?l.createElement("div",Object.assign({},I,{className:`${h}-extra`,ref:C}),u):null,R=O||N?l.createElement("div",{className:`${h}-additional`,style:p?{minHeight:p+S}:{}},O,N):null,j=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:k,errorList:O,extra:N}):l.createElement(l.Fragment,null,k,R);return l.createElement(kf.Provider,{value:w},l.createElement(Wk,Object.assign({},y,{className:x}),j),l.createElement(qO,{prefixCls:t}))};var eI={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"},tI=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:eI}))},nI=l.forwardRef(tI),rI=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 oI=({prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:c,requiredMark:s,tooltip:u,vertical:d})=>{var f;const[p]=hr("Form"),{labelAlign:m,labelCol:g,labelWrap:h,colon:v}=l.useContext(kf);if(!n)return null;const y=o||g||{},x=`${t}-item-label`,w=b(x,"left"===(i||m)&&`${x}-left`,y.className,{[`${x}-wrap`]:!!h});let C=n;const S=!0===a||!1!==v&&!1!==a;S&&!d&&"string"==typeof n&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const $=function(t){return null==t?null:"object"!=typeof t||e.isValidElement(t)?{title:t}:t}(u);if($){const{icon:e=l.createElement(nI,null)}=$,n=rI($,["icon"]),r=l.createElement($v,Object.assign({},n),l.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));C=l.createElement(l.Fragment,null,C,r)}const k="optional"===s,E="function"==typeof s,O=!1===s;let I;E?C=s(C,{required:!!c}):k&&!c&&(C=l.createElement(l.Fragment,null,C,l.createElement("span",{className:`${t}-item-optional`,title:""},(null==p?void 0:p.optional)||(null===(f=ur.Form)||void 0===f?void 0:f.optional)))),O?I="hidden":(k||E)&&(I="optional");const N=b({[`${t}-item-required`]:c,[`${t}-item-required-mark-${I}`]:I,[`${t}-item-no-colon`]:!S});return l.createElement(Wk,Object.assign({},y,{className:w}),l.createElement("label",{htmlFor:r,className:N,title:"string"==typeof n?n:""},C))},iI={success:Ta,warning:Va,error:za,validating:Cl};function aI({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:i,meta:a,noStyle:c,name:s}){const u=`${i}-item`,{feedbackIcons:d}=l.useContext(kf),f=SC(t,n,a,null,!!r,o),{isFormItemInput:p,status:m,hasFeedback:g,feedbackIcon:h,name:v}=l.useContext(Nf),y=l.useMemo(()=>{var e;let o;if(r){const i=!0!==r&&r.icons||d,a=f&&(null===(e=null==i?void 0:i({status:f,errors:t,warnings:n}))||void 0===e?void 0:e[f]),c=f?iI[f]:null;o=!1!==a&&c?l.createElement("span",{className:b(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},a||l.createElement(c,null)):null}const i={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:o,isFormItemInput:!0,name:s};return c&&(i.status=(null!=f?f:m)||"",i.isFormItemInput=p,i.hasFeedback=!!(null!=r?r:g),i.feedbackIcon=void 0!==r?i.feedbackIcon:h,i.name=null!=s?s:v),i},[f,r,c,p,m]);return l.createElement(Nf.Provider,{value:y},e)}var lI=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 cI(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:c,validateStatus:s,meta:u,hasFeedback:d,hidden:f,children:p,fieldId:m,required:g,isRequired:h,onSubItemMetaChange:v,layout:y,name:x}=e,w=lI(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),C=`${t}-item`,{requiredMark:S,layout:$}=l.useContext(kf),k=y||$,E="vertical"===k,O=l.useRef(null),I=jO(a),N=jO(c),R=null!=i,j=!!(R||a.length||c.length),M=!!O.current&&Nc(O.current),[P,D]=l.useState(null);Dt(()=>{if(j&&O.current){const e=getComputedStyle(O.current);D(Number.parseInt(e.marginBottom,10))}},[j,M]);const T=((e=!1)=>SC(e?I:u.errors,e?N:u.warnings,u,"",!!d,s))(),B=b(C,n,r,{[`${C}-with-help`]:R||I.length||N.length,[`${C}-has-feedback`]:T&&d,[`${C}-has-success`]:"success"===T,[`${C}-has-warning`]:"warning"===T,[`${C}-has-error`]:"error"===T,[`${C}-is-validating`]:"validating"===T,[`${C}-hidden`]:f,[`${C}-${k}`]:k});return l.createElement("div",{className:B,style:o,ref:O},l.createElement(Uk,Object.assign({className:`${C}-row`},Ic(w,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(oI,Object.assign({htmlFor:m},e,{requiredMark:S,required:null!=g?g:h,prefixCls:t,vertical:E})),l.createElement(JO,Object.assign({},e,u,{errors:I,warnings:N,prefixCls:t,status:T,help:i,marginBottom:P,onErrorVisibleChanged:e=>{e||D(null)}}),l.createElement(Ef.Provider,{value:v},l.createElement(aI,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:T,name:x},p)))),!!P&&l.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-P}}))}const sI=l.memo(({children:e})=>e,(e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{const r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o})}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));const uI=function(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:c,children:s,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:m,hidden:g,help:h,layout:v}=e,{getPrefixCls:y}=l.useContext(ro),{name:x}=l.useContext(kf),w=function(e){if("function"==typeof e)return e;const t=k(e);return t.length<=1?t[0]:t}(s),C="function"==typeof w,S=l.useContext(Ef),{validateTrigger:$}=l.useContext(bd),E=void 0!==m?m:$,O=!(null==t),I=y("form",i),N=cl(I),[R,j,M]=WO(I,N);rr();const P=l.useContext(yd),D=l.useRef(null),[T,B]=function(e){const[t,n]=l.useState(e),r=l.useRef(null),o=l.useRef([]),i=l.useRef(!1);return l.useEffect(()=>(i.current=!1,()=>{i.current=!0,Ge.cancel(r.current),r.current=null}),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=Ge(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}({}),[L,z]=Co(()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1})),F=(e,t)=>{B(n=>{const r=Object.assign({},n),o=[].concat(Fe(e.name.slice(0,-1)),Fe(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r})},[H,A]=l.useMemo(()=>{const e=Fe(L.errors),t=Fe(L.warnings);return Object.values(T).forEach(n=>{e.push.apply(e,Fe(n.errors||[])),t.push.apply(t,Fe(n.warnings||[]))}),[e,t]},[T,L.errors,L.warnings]),_=function(){const{itemRef:e}=l.useContext(kf),t=l.useRef({});return function(n,r){const o=r&&"object"==typeof r&&Y(r),i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=U(e(n),o)),t.current.ref}}();function W(o,i,a){return n&&!g?l.createElement(aI,{prefixCls:I,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:L,errors:H,warnings:A,noStyle:!0,name:t},o):l.createElement(cI,Object.assign({key:"row"},e,{className:b(r,M,N,j),prefixCls:I,fieldId:i,isRequired:a,errors:H,warnings:A,meta:L,onSubItemMetaChange:F,layout:v,name:t}),o)}if(!O&&!C&&!o)return R(W(w));let V={};return"string"==typeof d?V.label=d:t&&(V.label=String(t)),f&&(V=Object.assign(Object.assign({},V),f)),R(l.createElement(uf,Object.assign({},e,{messageVariables:V,trigger:p,validateTrigger:E,onMetaChange:e=>{const t=null==P?void 0:P.getKey(e.name);if(z(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==h&&S){let n=e.name;if(e.destroy)n=D.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(Fe(r)),D.current=n}S(e,n)}}}),(n,r,i)=>{const s=wC(t).length&&r?r.name:[],d=CC(s,x),f=void 0!==u?u:!!(null==c?void 0:c.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1})),m=Object.assign({},n);let g=null;if(Array.isArray(w)&&O)g=w;else if(C&&(!a&&!o||O));else if(!o||C||O)if(l.isValidElement(w)){const t=Object.assign(Object.assign({},w.props),m);if(t.id||(t.id=d),h||H.length>0||A.length>0||e.extra){const n=[];(h||H.length>0)&&n.push(`${d}_help`),e.extra&&n.push(`${d}_extra`),t["aria-describedby"]=n.join(" ")}H.length>0&&(t["aria-invalid"]="true"),f&&(t["aria-required"]="true"),K(w)&&(t.ref=_(s,w));new Set([].concat(Fe(wC(p)),Fe(wC(E)))).forEach(e=>{t[e]=(...t)=>{var n,r,o,i,a;null===(o=m[e])||void 0===o||(n=o).call.apply(n,[m].concat(t)),null===(a=(i=w.props)[e])||void 0===a||(r=a).call.apply(r,[i].concat(t))}});const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];g=l.createElement(sI,{control:m,update:w,childProps:n},Za(w,t))}else g=C&&(a||o)&&!O?w(i):w;else;return W(g,d,f)}))};uI.useStatus=YO;var dI=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 fI=QO;fI.Item=uI,fI.List=e=>{var{prefixCls:t,children:n}=e,r=dI(e,["prefixCls","children"]);const{getPrefixCls:o}=l.useContext(ro),i=o("form",t),a=l.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return l.createElement(df,Object.assign({},r),(e,t,r)=>l.createElement(If.Provider,{value:a},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))},fI.ErrorList=UO,fI.useForm=OC,fI.useFormInstance=function(){const{form:e}=l.useContext(kf);return e},fI.useWatch=Sf,fI.Provider=Of,fI.create=()=>{};var pI={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"},mI=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:pI}))},gI=l.forwardRef(mI);function hI(e,t,n,o){var i=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,o)}}}var vI=Zo(["Input","OTP"],e=>(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}}}})(Io(e,DC(e))),TC),bI=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 yI=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:c}=e,s=bI(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=l.useContext(ro),d=u("otp"),f="string"==typeof c?c:r,p=l.useRef(null);l.useImperativeHandle(t,()=>p.current);const m=()=>{Ge(()=>{var e;const t=null===(e=p.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()})};return l.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},c&&""!==r&&void 0!==r&&l.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),l.createElement(DE,Object.assign({"aria-label":`OTP Input ${a+1}`,type:!0===c?"password":"text"},s,{ref:p,value:r,onInput:e=>{o(a,e.target.value)},onFocus:m,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:o}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t?i(a+1):"z"===t&&(n||o)?e.preventDefault():"Backspace"!==t||r||i(a-1),m()},onMouseDown:m,onMouseUp:m,className:b(n,{[`${d}-mask-input`]:c})})))});var xI=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 CI=e=>{const{index:t,prefixCls:n,separator:r}=e,o="function"==typeof r?r(t):r;return o?l.createElement("span",{className:`${n}-separator`},o):null},SI=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:c,formatter:s,separator:u,variant:d,disabled:f,status:p,autoFocus:m,mask:g,type:h,onInput:v,inputMode:y}=e,x=xI(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:w,direction:C}=l.useContext(ro),S=w("otp",n),$=Ya(x,{aria:!0,data:!0,attr:!0}),[k,E,O]=vI(S),I=zc(e=>null!=o?o:e),N=l.useContext(Nf),R=Gg(N.status,p),j=l.useMemo(()=>Object.assign(Object.assign({},N),{status:R,hasFeedback:!1,feedbackIcon:null}),[N,R]),M=l.useRef(null),P=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var e;null===(e=P.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=P.current[t])||void 0===e||e.blur()},nativeElement:M.current}));const D=e=>s?s(e):e,[T,B]=l.useState(()=>wI(D(i||"")));l.useEffect(()=>{void 0!==a&&B(wI(a))},[a]);const L=wo(e=>{B(e),v&&v(e),c&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>T[t]!==e)&&c(e.join(""))}),z=wo((e,t)=>{let n=Fe(T);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(wI(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const o=D(n.map(e=>e||" ").join(""));return n=wI(o).map((e,t)=>" "!==e||n[t]?e:n[t]),n}),F=(e,t)=>{var n;const o=z(e,t),i=Math.min(e+t.length,r-1);i!==e&&void 0!==o[e]&&(null===(n=P.current[i])||void 0===n||n.focus()),L(o)},H=e=>{var t;null===(t=P.current[e])||void 0===t||t.focus()},A={variant:d,disabled:f,status:R,mask:g,type:h,inputMode:y};return k(l.createElement("div",Object.assign({},$,{ref:M,className:b(S,{[`${S}-sm`]:"small"===I,[`${S}-lg`]:"large"===I,[`${S}-rtl`]:"rtl"===C},O,E),role:"group"}),l.createElement(Nf.Provider,{value:j},Array.from({length:r}).map((e,t)=>{const n=`otp-${t}`,o=T[t]||"";return l.createElement(l.Fragment,{key:n},l.createElement(yI,Object.assign({ref:e=>{P.current[t]=e},index:t,size:I,htmlSize:1,className:`${S}-input`,onChange:F,value:o,onActiveChange:H,autoFocus:0===t&&m},A)),t<r-1&&l.createElement(CI,{separator:u,index:t,prefixCls:S}))}))))});var $I={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"},kI=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:$I}))},EI=l.forwardRef(kI),OI=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 II=e=>e?l.createElement(gI,null):l.createElement(EI,null),NI={click:"onClick",hover:"onMouseOver"},RI=l.forwardRef((t,n)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:a=II,suffix:c}=t,s=l.useContext(so),u=null!=r?r:s,d="object"==typeof i&&void 0!==i.visible,[f,p]=e.useState(()=>!!d&&i.visible),m=e.useRef(null);l.useEffect(()=>{d&&p(i.visible)},[d,i]);const g=ME(m),h=()=>{var e;if(u)return;f&&g();const t=!f;p(t),"object"==typeof i&&(null===(e=i.onVisibleChange)||void 0===e||e.call(i,t))},{className:v,prefixCls:y,inputPrefixCls:x,size:w}=t,C=OI(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=l.useContext(ro),$=S("input",x),k=S("input-password",y),E=i&&(e=>{const t=NI[o]||"",n=a(f),r={[t]:h,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return l.cloneElement(l.isValidElement(n)?n:l.createElement("span",null,n),r)})(k),O=b(k,v,{[`${k}-${w}`]:!!w}),I=Object.assign(Object.assign({},Ic(C,["suffix","iconRender","visibilityToggle"])),{type:f?"text":"password",className:O,prefixCls:$,suffix:l.createElement(l.Fragment,null,E,c)});return w&&(I.size=w),l.createElement(DE,Object.assign({ref:U(n,m)},I))});var jI=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 MI=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:g,variant:h,onPressEnter:v}=e,y=jI(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:x,direction:w}=l.useContext(ro),C=l.useRef(!1),S=x("input-search",n),$=x("input",r),{compactSize:k}=Wc(S,w),E=zc(e=>{var t;return null!==(t=null!=i?i:k)&&void 0!==t?t:e}),O=l.useRef(null),I=e=>{var t;document.activeElement===(null===(t=O.current)||void 0===t?void 0:t.input)&&e.preventDefault()},N=e=>{var t,n;f&&f(null===(n=null===(t=O.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},R="boolean"==typeof c?l.createElement(Th,null):null,j=`${S}-button`;let M;const P=c||{},D=P.type&&!0===P.type.__ANT_BUTTON;M=D||"button"===P.type?Za(P,Object.assign({onMouseDown:I,onClick:e=>{var t,n;null===(n=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),N(e)},key:"enterButton"},D?{className:j,size:E}:{})):l.createElement(zu,{className:j,color:c?"primary":"default",size:E,disabled:d,key:"enterButton",onMouseDown:I,onClick:N,loading:u,icon:R,variant:"borderless"===h||"filled"===h||"underlined"===h?"text":c?"solid":void 0},c),s&&(M=[M,Za(s,{key:"addonAfter"})]);const T=b(S,{[`${S}-rtl`]:"rtl"===w,[`${S}-${E}`]:!!E,[`${S}-with-button`]:!!c},o),B=Object.assign(Object.assign({},y),{className:T,prefixCls:$,type:"search",size:E,variant:h,onPressEnter:e=>{C.current||u||(null==v||v(e),N(e))},onCompositionStart:e=>{C.current=!0,null==m||m(e)},onCompositionEnd:e=>{C.current=!1,null==g||g(e)},addonAfter:M,suffix:a,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},disabled:d,_skipAddonWarning:!0});return l.createElement(DE,Object.assign({ref:U(O,t)},B))});var PI,DI=["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"],TI={};function BI(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;PI||((PI=document.createElement("textarea")).setAttribute("tab-index","-1"),PI.setAttribute("aria-hidden","true"),PI.setAttribute("name","hiddenTextarea"),document.body.appendChild(PI)),e.getAttribute("wrap")?PI.setAttribute("wrap",e.getAttribute("wrap")):PI.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&TI[n])return TI[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:DI.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(TI[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;PI.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),PI.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=PI.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){PI.value=" ";var p=PI.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var LI=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],zI=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,c=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=st(n,LI),m=Qe($o(o,{value:i,postState:function(e){return null!=e?e:""}}),2),g=m[0],h=m[1],v=l.useRef();l.useImperativeHandle(t,function(){return{textArea:v.current}});var w=Qe(l.useMemo(function(){return a&&"object"===x(a)?[a.minRows,a.maxRows]:[]},[a]),2),C=w[0],S=w[1],$=!!a,k=Qe(l.useState(2),2),E=k[0],O=k[1],I=Qe(l.useState(),2),N=I[0],R=I[1],j=function(){O(0)};Dt(function(){$&&j()},[i,C,S,$]),Dt(function(){if(0===E)O(1);else if(1===E){var e=BI(v.current,!1,C,S);O(2),R(e)}},[E]);var P=l.useRef(),T=function(){Ge.cancel(P.current)};l.useEffect(function(){return T},[]);var B=$?N:null,L=D(D({},u),B);return 0!==E&&1!==E||(L.overflowY="hidden",L.overflowX="hidden"),l.createElement(Te,{onResize:function(e){2===E&&(null==c||c(e),a&&(T(),P.current=Ge(function(){j()})))},disabled:!(a||c)},l.createElement("textarea",y({},p,{ref:v,style:L,className:b(r,s,M({},"".concat(r,"-disabled"),d)),disabled:d,value:g,onChange:function(e){h(e.target.value),null==f||f(e)}})))}),FI=["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"],HI=e.forwardRef(function(t,n){var r,o=t.defaultValue,i=t.value,a=t.onFocus,l=t.onBlur,c=t.onChange,s=t.allowClear,u=t.maxLength,d=t.onCompositionStart,f=t.onCompositionEnd,p=t.suffix,m=t.prefixCls,g=void 0===m?"rc-textarea":m,h=t.showCount,v=t.count,x=t.className,w=t.style,C=t.disabled,S=t.hidden,$=t.classNames,k=t.styles,E=t.onResize,O=t.onClear,I=t.onPressEnter,N=t.readOnly,R=t.autoSize,j=t.onKeyDown,P=st(t,FI),T=Qe($o(o,{value:i,defaultValue:o}),2),B=T[0],L=T[1],z=null==B?"":String(B),F=Qe(e.useState(!1),2),H=F[0],A=F[1],_=e.useRef(!1),W=Qe(e.useState(null),2),V=W[0],G=W[1],U=e.useRef(null),X=e.useRef(null),K=function(){var e;return null===(e=X.current)||void 0===e?void 0:e.textArea},Q=function(){K().focus()};e.useImperativeHandle(n,function(){var e;return{resizableTextArea:X.current,focus:Q,blur:function(){K().blur()},nativeElement:(null===(e=U.current)||void 0===e?void 0:e.nativeElement)||K()}}),e.useEffect(function(){A(function(e){return!C&&e})},[C]);var Y=Qe(e.useState(null),2),q=Y[0],Z=Y[1];e.useEffect(function(){var e;q&&(e=K()).setSelectionRange.apply(e,Fe(q))},[q]);var J,ee=fE(v,h),te=null!==(r=ee.max)&&void 0!==r?r:u,ne=Number(te)>0,re=ee.strategy(z),oe=!!te&&re>te,ie=function(e,t){var n=t;!_.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Z([K().selectionStart||0,K().selectionEnd||0]),L(n),cE(e.currentTarget,e,c,n)},ae=p;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:z,count:re,maxLength:te}):"".concat(re).concat(ne?" / ".concat(te):""),ae=e.createElement(e.Fragment,null,ae,e.createElement("span",{className:b("".concat(g,"-data-count"),null==$?void 0:$.count),style:null==k?void 0:k.count},J)));var le=!R&&!h&&!s;return e.createElement(uE,{ref:U,value:z,allowClear:s,handleReset:function(e){L(""),Q(),cE(K(),e,c)},suffix:ae,prefixCls:g,classNames:D(D({},$),{},{affixWrapper:b(null==$?void 0:$.affixWrapper,M(M({},"".concat(g,"-show-count"),h),"".concat(g,"-textarea-allow-clear"),s))}),disabled:C,focused:H,className:b(x,oe&&"".concat(g,"-out-of-range")),style:D(D({},w),V&&!le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:S,readOnly:N,onClear:O},e.createElement(zI,y({},P,{autoSize:R,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&I&&I(e),null==j||j(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){A(!0),null==a||a(e)},onBlur:function(e){A(!1),null==l||l(e)},onCompositionStart:function(e){_.current=!0,null==d||d(e)},onCompositionEnd:function(e){_.current=!1,ie(e,e.currentTarget.value),null==f||f(e)},className:b(null==$?void 0:$.textarea),style:D(D({},null==k?void 0:k.textarea),{},{resize:null==w?void 0:w.resize}),disabled:C,prefixCls:g,onResize:function(e){var t;null==E||E(e),null!==(t=K())&&void 0!==t&&t.style.height&&G(!0)},ref:X,readOnly:N})))});var AI=Zo(["Input","TextArea"],e=>(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"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{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}}}}}})(Io(e,DC(e))),TC,{resetFont:!1}),_I=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 WI=e.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:c,allowClear:s,classNames:u,rootClassName:d,className:f,style:p,styles:m,variant:g,showCount:h,onMouseDown:v,onResize:y}=e,x=_I(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:w,direction:C,allowClear:S,autoComplete:$,className:k,style:E,classNames:O,styles:I}=ao("textArea"),N=l.useContext(so),R=null!=a?a:N,{status:j,hasFeedback:M,feedbackIcon:P}=l.useContext(Nf),D=Gg(j,c),T=l.useRef(null);l.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=T.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;sE(null===(n=null===(t=T.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=T.current)||void 0===e?void 0:e.blur()}}});const B=w("input",r),L=cl(B),[z,F,H]=sS(B,d),[A]=AI(B,L),{compactSize:_,compactItemClassnames:W}=Wc(B,C),V=zc(e=>{var t;return null!==(t=null!=i?i:_)&&void 0!==t?t:e}),[G,U]=eh("textArea",g,o),X=jE(null!=s?s:S),[K,Q]=l.useState(!1),[Y,q]=l.useState(!1);return z(A(l.createElement(HI,Object.assign({autoComplete:$},x,{style:Object.assign(Object.assign({},E),p),styles:Object.assign(Object.assign({},I),m),disabled:R,allowClear:X,className:b(H,L,f,d,W,k,Y&&`${B}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),O),{textarea:b({[`${B}-sm`]:"small"===V,[`${B}-lg`]:"large"===V},F,null==u?void 0:u.textarea,O.textarea,K&&`${B}-mouse-active`),variant:b({[`${B}-${G}`]:U},Vg(B,D)),affixWrapper:b(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:"rtl"===C,[`${B}-affix-wrapper-sm`]:"small"===V,[`${B}-affix-wrapper-lg`]:"large"===V,[`${B}-textarea-show-count`]:h||(null===(n=e.count)||void 0===n?void 0:n.show)},F)}),prefixCls:B,suffix:M&&l.createElement("span",{className:`${B}-textarea-suffix`},P),showCount:h,ref:T,onResize:e=>{var t,n;if(null==y||y(e),K&&"function"==typeof getComputedStyle){const e=null===(n=null===(t=T.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&q(!0)}},onMouseDown:e=>{Q(!0),null==v||v(e);const t=()=>{Q(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}),VI=DE;VI.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(ro),{prefixCls:o,className:i}=t,a=n("input-group",o),c=n("input"),[s,u,d]=uS(c),f=b(a,d,{[`${a}-lg`]:"large"===t.size,[`${a}-sm`]:"small"===t.size,[`${a}-compact`]:t.compact,[`${a}-rtl`]:"rtl"===r},u,i),p=e.useContext(Nf),m=e.useMemo(()=>Object.assign(Object.assign({},p),{isFormItemInput:!1}),[p]);return s(l.createElement("span",{className:f,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},l.createElement(Nf.Provider,{value:m},t.children)))},VI.Search=MI,VI.TextArea=WI,VI.Password=RI,VI.OTP=SI;var GI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},UI=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:GI}))},XI=l.forwardRef(UI),KI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},QI=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:KI}))},YI=l.forwardRef(QI),qI={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},ZI=[10,20,50,100],JI=function(t){var n=t.pageSizeOptions,r=void 0===n?ZI:n,o=t.locale,i=t.changeSize,a=t.pageSize,l=t.goButton,c=t.quickGo,s=t.rootPrefixCls,u=t.disabled,d=t.buildOptionText,f=t.showSizeChanger,p=t.sizeChangerRender,m=Qe(e.useState(""),2),g=m[0],h=m[1],v=function(){return!g||Number.isNaN(g)?void 0:Number(g)},b="function"==typeof d?d:function(e){return"".concat(e," ").concat(o.items_per_page)},y=function(e){""!==g&&(e.keyCode!==sl.ENTER&&"click"!==e.type||(h(""),null==c||c(v())))},x="".concat(s,"-options");if(!f&&!c)return null;var w=null,C=null,S=null;return f&&p&&(w=p({disabled:u,size:a,onSizeChange:function(e){null==i||i(Number(e))},"aria-label":o.page_size,className:"".concat(x,"-size-changer"),options:(r.some(function(e){return e.toString()===a.toString()})?r:r.concat([a]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})).map(function(e){return{label:b(e),value:e}})})),c&&(l&&(S="boolean"==typeof l?e.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:u,className:"".concat(x,"-quick-jumper-button")},o.jump_to_confirm):e.createElement("span",{onClick:y,onKeyUp:y},l)),C=e.createElement("div",{className:"".concat(x,"-quick-jumper")},o.jump_to,e.createElement("input",{disabled:u,type:"text",value:g,onChange:function(e){h(e.target.value)},onKeyUp:y,onBlur:function(e){l||""===g||(h(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(s,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(s,"-item"))>=0)||null==c||c(v()))},"aria-label":o.page}),o.page,S)),e.createElement("li",{className:x},w,C)},eN=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,i=t.className,a=t.showTitle,l=t.onClick,c=t.onKeyPress,s=t.itemRender,u="".concat(n,"-item"),d=b(u,"".concat(u,"-").concat(r),M(M({},"".concat(u,"-active"),o),"".concat(u,"-disabled"),!r),i),f=s(r,"page",e.createElement("a",{rel:"nofollow"},r));return f?e.createElement("li",{title:a?String(r):null,className:d,onClick:function(){l(r)},onKeyDown:function(e){c(e,l,r)},tabIndex:0},f):null},tN=function(e,t,n){return n};function nN(){}function rN(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function oN(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}var iN=function(t){var n=t.prefixCls,r=void 0===n?"rc-pagination":n,o=t.selectPrefixCls,i=void 0===o?"rc-select":o,a=t.className,l=t.current,c=t.defaultCurrent,s=void 0===c?1:c,u=t.total,d=void 0===u?0:u,f=t.pageSize,p=t.defaultPageSize,m=void 0===p?10:p,g=t.onChange,h=void 0===g?nN:g,v=t.hideOnSinglePage,w=t.align,C=t.showPrevNextJumpers,S=void 0===C||C,$=t.showQuickJumper,k=t.showLessItems,E=t.showTitle,O=void 0===E||E,I=t.onShowSizeChange,N=void 0===I?nN:I,R=t.locale,j=void 0===R?qI:R,P=t.style,T=t.totalBoundaryShowSizeChanger,B=void 0===T?50:T,L=t.disabled,z=t.simple,F=t.showTotal,H=t.showSizeChanger,A=void 0===H?d>B:H,_=t.sizeChangerRender,W=t.pageSizeOptions,V=t.itemRender,G=void 0===V?tN:V,U=t.jumpPrevIcon,X=t.jumpNextIcon,K=t.prevIcon,Q=t.nextIcon,Y=e.useRef(null),q=Qe($o(10,{value:f,defaultValue:m}),2),Z=q[0],J=q[1],ee=Qe($o(1,{value:l,defaultValue:s,postState:function(e){return Math.max(1,Math.min(e,oN(void 0,Z,d)))}}),2),te=ee[0],ne=ee[1],re=Qe(e.useState(te),2),oe=re[0],ie=re[1];e.useEffect(function(){ie(te)},[te]);var ae=Math.max(1,te-(k?3:5)),le=Math.min(oN(void 0,Z,d),te+(k?3:5));function ce(n,o){var i=n||e.createElement("button",{type:"button","aria-label":o,className:"".concat(r,"-item-link")});return"function"==typeof n&&(i=e.createElement(n,D({},t))),i}function se(e){var t=e.target.value,n=oN(void 0,Z,d);return""===t?t:Number.isNaN(Number(t))?oe:t>=n?n:Number(t)}var ue=d>Z&&$;function de(e){var t=se(e);switch(t!==oe&&ie(t),e.keyCode){case sl.ENTER:fe(t);break;case sl.UP:fe(t-1);break;case sl.DOWN:fe(t+1)}}function fe(e){if(function(e){return rN(e)&&e!==te&&rN(d)&&d>0}(e)&&!L){var t=oN(void 0,Z,d),n=e;return e>t?n=t:e<1&&(n=1),n!==oe&&ie(n),ne(n),null==h||h(n,Z),n}return te}var pe=te>1,me=te<oN(void 0,Z,d);function ge(){pe&&fe(te-1)}function he(){me&&fe(te+1)}function ve(){fe(ae)}function be(){fe(le)}function ye(e,t){if("Enter"===e.key||e.charCode===sl.ENTER||e.keyCode===sl.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}}function xe(e){"click"!==e.type&&e.keyCode!==sl.ENTER||fe(oe)}var we=null,Ce=Ya(t,{aria:!0,data:!0}),Se=F&&e.createElement("li",{className:"".concat(r,"-total-text")},F(d,[0===d?0:(te-1)*Z+1,te*Z>d?d:te*Z])),$e=null,ke=oN(void 0,Z,d);if(v&&d<=Z)return null;var Ee=[],Oe={rootPrefixCls:r,onClick:fe,onKeyPress:ye,showTitle:O,itemRender:G,page:-1},Ie=te-1>0?te-1:0,Ne=te+1<ke?te+1:ke,Re=$&&$.goButton,je="object"===x(z)?z.readOnly:!z,Me=Re,Pe=null;z&&(Re&&(Me="boolean"==typeof Re?e.createElement("button",{type:"button",onClick:xe,onKeyUp:xe},j.jump_to_confirm):e.createElement("span",{onClick:xe,onKeyUp:xe},Re),Me=e.createElement("li",{title:O?"".concat(j.jump_to).concat(te,"/").concat(ke):null,className:"".concat(r,"-simple-pager")},Me)),Pe=e.createElement("li",{title:O?"".concat(te,"/").concat(ke):null,className:"".concat(r,"-simple-pager")},je?oe:e.createElement("input",{type:"text","aria-label":j.jump_to,value:oe,disabled:L,onKeyDown:function(e){e.keyCode!==sl.UP&&e.keyCode!==sl.DOWN||e.preventDefault()},onKeyUp:de,onChange:de,onBlur:function(e){fe(se(e))},size:3}),e.createElement("span",{className:"".concat(r,"-slash")},"/"),ke));var De=k?1:2;if(ke<=3+2*De){ke||Ee.push(e.createElement(eN,y({},Oe,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Te=1;Te<=ke;Te+=1)Ee.push(e.createElement(eN,y({},Oe,{key:Te,page:Te,active:te===Te})))}else{var Be=k?j.prev_3:j.prev_5,Le=k?j.next_3:j.next_5,ze=G(ae,"jump-prev",ce(U,"prev page")),Fe=G(le,"jump-next",ce(X,"next page"));S&&(we=ze?e.createElement("li",{title:O?Be:null,key:"prev",onClick:ve,tabIndex:0,onKeyDown:function(e){ye(e,ve)},className:b("".concat(r,"-jump-prev"),M({},"".concat(r,"-jump-prev-custom-icon"),!!U))},ze):null,$e=Fe?e.createElement("li",{title:O?Le:null,key:"next",onClick:be,tabIndex:0,onKeyDown:function(e){ye(e,be)},className:b("".concat(r,"-jump-next"),M({},"".concat(r,"-jump-next-custom-icon"),!!X))},Fe):null);var He=Math.max(1,te-De),Ae=Math.min(te+De,ke);te-1<=De&&(Ae=1+2*De),ke-te<=De&&(He=ke-2*De);for(var _e=He;_e<=Ae;_e+=1)Ee.push(e.createElement(eN,y({},Oe,{key:_e,page:_e,active:te===_e})));if(te-1>=2*De&&3!==te&&(Ee[0]=e.cloneElement(Ee[0],{className:b("".concat(r,"-item-after-jump-prev"),Ee[0].props.className)}),Ee.unshift(we)),ke-te>=2*De&&te!==ke-2){var We=Ee[Ee.length-1];Ee[Ee.length-1]=e.cloneElement(We,{className:b("".concat(r,"-item-before-jump-next"),We.props.className)}),Ee.push($e)}1!==He&&Ee.unshift(e.createElement(eN,y({},Oe,{key:1,page:1}))),Ae!==ke&&Ee.push(e.createElement(eN,y({},Oe,{key:ke,page:ke})))}var Ve=function(t){var n=G(t,"prev",ce(K,"prev page"));return e.isValidElement(n)?e.cloneElement(n,{disabled:!pe}):n}(Ie);if(Ve){var Ge=!pe||!ke;Ve=e.createElement("li",{title:O?j.prev_page:null,onClick:ge,tabIndex:Ge?null:0,onKeyDown:function(e){ye(e,ge)},className:b("".concat(r,"-prev"),M({},"".concat(r,"-disabled"),Ge)),"aria-disabled":Ge},Ve)}var Ue,Xe,Ke=function(t){var n=G(t,"next",ce(Q,"next page"));return e.isValidElement(n)?e.cloneElement(n,{disabled:!me}):n}(Ne);Ke&&(z?(Ue=!me,Xe=pe?0:null):Xe=(Ue=!me||!ke)?null:0,Ke=e.createElement("li",{title:O?j.next_page:null,onClick:he,tabIndex:Xe,onKeyDown:function(e){ye(e,he)},className:b("".concat(r,"-next"),M({},"".concat(r,"-disabled"),Ue)),"aria-disabled":Ue},Ke));var Ye=b(r,a,M(M(M(M(M({},"".concat(r,"-start"),"start"===w),"".concat(r,"-center"),"center"===w),"".concat(r,"-end"),"end"===w),"".concat(r,"-simple"),z),"".concat(r,"-disabled"),L));return e.createElement("ul",y({className:Ye,style:P,ref:Y},Ce),Se,Ve,z?Pe:Ee,Ke,e.createElement(JI,{locale:j,rootPrefixCls:r,disabled:L,selectPrefixCls:i,changeSize:function(e){var t=oN(e,Z,d),n=te>t&&0!==t?t:te;J(e),ie(n),null==N||N(te,e),ne(n),null==h||h(n,e)},pageSize:Z,pageSizeOptions:W,quickGo:ue?fe:null,goButton:Me,showSizeChanger:A,sizeChangerRender:_}))};const aN=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},lN=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:It(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:It(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:It(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:It(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:It(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:It(e.itemSizeSM),input:Object.assign(Object.assign({},eS(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},cN=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:It(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:It(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${It(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${It(e.inputOutlineOffset)} 0 ${It(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:It(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:It(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},sN=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:It(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${It(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:It(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},tS(e)),zC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},LC(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},uN=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:It(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${It(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${It(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},dN=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xo(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:It(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),uN(e)),sN(e)),cN(e)),lN(e)),aN(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},fN=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Qo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ko(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ko(e)}}}},pN=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},TC(e)),mN=e=>Io(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},DC(e));var gN=Zo("Pagination",e=>{const t=mN(e);return[dN(t),fN(t)]},pN);var hN=ei(["Pagination","bordered"],e=>(e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}})(mN(e)),pN);function vN(t){return e.useMemo(()=>"boolean"==typeof t?[t,{}]:t&&"object"==typeof t?[!0,t]:[void 0,void 0],[t])}var bN=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 yN=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:c,locale:s,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:p}=e,m=bN(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:g}=Jh(u),[,h]=Go(),{getPrefixCls:v,direction:y,showSizeChanger:x,className:w,style:C}=ao("pagination"),S=v("pagination",n),[$,k,E]=gN(S),O=zc(c),I="small"===O||!(!g||O||!u),[N]=hr("Pagination",ir),R=Object.assign(Object.assign({},N),s),[j,M]=vN(d),[P,D]=vN(x),T=null!=j?j:P,B=null!=M?M:D,L=f||_h,z=l.useMemo(()=>p?p.map(e=>Number(e)):void 0,[p]),F=l.useMemo(()=>{const e=l.createElement("span",{className:`${S}-item-ellipsis`},"•••");return{prevIcon:l.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},"rtl"===y?l.createElement(gs,null):l.createElement(Ov,null)),nextIcon:l.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},"rtl"===y?l.createElement(Ov,null):l.createElement(gs,null)),jumpPrevIcon:l.createElement("a",{className:`${S}-item-link`},l.createElement("div",{className:`${S}-item-container`},"rtl"===y?l.createElement(YI,{className:`${S}-item-link-icon`}):l.createElement(XI,{className:`${S}-item-link-icon`}),e)),jumpNextIcon:l.createElement("a",{className:`${S}-item-link`},l.createElement("div",{className:`${S}-item-container`},"rtl"===y?l.createElement(XI,{className:`${S}-item-link-icon`}):l.createElement(YI,{className:`${S}-item-link-icon`}),e))}},[y,S]),H=v("select",r),A=b({[`${S}-${t}`]:!!t,[`${S}-mini`]:I,[`${S}-rtl`]:"rtl"===y,[`${S}-bordered`]:h.wireframe},w,o,i,k,E),_=Object.assign(Object.assign({},C),a);return $(l.createElement(l.Fragment,null,h.wireframe&&l.createElement(hN,{prefixCls:S}),l.createElement(iN,Object.assign({},F,m,{style:_,prefixCls:S,selectPrefixCls:H,className:A,locale:R,pageSizeOptions:z,showSizeChanger:T,sizeChangerRender:e=>{var t;const{disabled:n,size:r,onSizeChange:o,"aria-label":i,className:a,options:c}=e,{className:s,onChange:u}=B||{},d=null===(t=c.find(e=>String(e.value)===String(r)))||void 0===t?void 0:t.value;return l.createElement(L,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:c},B,{value:d,onChange:(e,t)=>{null==o||o(e),null==u||u(e,t)},size:I?"small":"middle",className:b(a,s)}))}}))))},xN=80*Math.PI,wN=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:b(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},CN=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[i,a]=l.useState(!1);Dt(()=>{0!==e&&a(!0)},[0!==e]);const c=Math.max(Math.min(e,100),0);if(!i)return null;const s={strokeDashoffset:""+xN/4,strokeDasharray:`${xN*c/100} ${xN*(100-c)/100}`};return l.createElement("span",{className:b(r,`${n}-progress`,c<=0&&o)},l.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},l.createElement(wN,{dotClassName:n,hasCircleCls:!0}),l.createElement(wN,{dotClassName:n,style:s})))};function SN(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:b(o,n>0&&i)},l.createElement("span",{className:b(r,`${t}-dot-spin`)},[1,2,3,4].map(e=>l.createElement("i",{className:`${t}-dot-item`,key:e})))),l.createElement(CN,{prefixCls:t,percent:n}))}function $N(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,i=`${n}-dot`;return r&&l.isValidElement(r)?Za(r,{className:b(null===(t=r.props)||void 0===t?void 0:t.className,i),percent:o}):l.createElement(SN,{prefixCls:n,percent:o})}const kN=new Gn("antSpinMove",{to:{opacity:1}}),EN=new Gn("antRotate",{to:{transform:"rotate(405deg)"}});var ON=Zo("Spin",e=>(e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Xo(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:kN,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:EN,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}})(Io(e,{spinDotDefault:e.colorTextDescription})),e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}});const IN=[[30,.05],[70,.03],[96,.01]];var NN=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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};let RN;const jN=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:c="default",tip:s,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:m,percent:g}=e,h=NN(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,className:x,style:w,indicator:C}=ao("spin"),S=v("spin",n),[$,k,E]=ON(S),[O,I]=l.useState(()=>r&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(r,o)),N=function(e,t){const[n,r]=l.useState(0),o=l.useRef(null),i="auto"===t;return l.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(e=>{const t=100-e;for(let n=0;n<IN.length;n+=1){const[r,o]=IN[n];if(e<=r)return e+t*o}return e})},200)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[i,e]),i?n:t}(O,g);l.useEffect(()=>{if(r){const e=E$(o,()=>{I(!0)});return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}I(!1)},[o,r]);const R=l.useMemo(()=>void 0!==f&&!p,[f,p]),j=b(S,x,{[`${S}-sm`]:"small"===c,[`${S}-lg`]:"large"===c,[`${S}-spinning`]:O,[`${S}-show-text`]:!!s,[`${S}-rtl`]:"rtl"===y},i,!p&&a,k,E),M=b(`${S}-container`,{[`${S}-blur`]:O}),P=null!==(t=null!=m?m:C)&&void 0!==t?t:RN,D=Object.assign(Object.assign({},w),d),T=l.createElement("div",Object.assign({},h,{style:D,className:j,"aria-live":"polite","aria-busy":O}),l.createElement($N,{prefixCls:S,indicator:P,percent:N}),s&&(R||p)?l.createElement("div",{className:`${S}-text`},s):null);return $(R?l.createElement("div",Object.assign({},h,{className:b(`${S}-nested-loading`,u,k,E)}),O&&l.createElement("div",{key:"loading"},T),l.createElement("div",{className:M,key:"container"},f)):p?l.createElement("div",{className:b(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:O},a,k,E)},T):T)};jN.setDefaultIndicator=e=>{RN=e};let MN=null,PN=e=>e(),DN=[],TN={};function BN(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=TN,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const LN=e.forwardRef((t,n)=>{const{messageConfig:r,sync:o}=t,{getPrefixCls:i}=e.useContext(ro),a=TN.prefixCls||i("message"),l=e.useContext(Wp),[c,s]=Yl(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.message));return e.useImperativeHandle(n,()=>{const e=Object.assign({},c);return Object.keys(e).forEach(t=>{e[t]=(...e)=>(o(),c[t].apply(c,e))}),{instance:e,sync:o}}),s}),zN=e.forwardRef((t,n)=>{const[r,o]=e.useState(BN),i=()=>{o(BN)};e.useEffect(i,[]);const a=sa(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=e.createElement(LN,{ref:n,sync:i,messageConfig:r});return e.createElement(da,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}),FN=()=>{if(!MN){const t=document.createDocumentFragment(),n={fragment:t};return MN=n,void PN(()=>{wc()(e.createElement(zN,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then(()=>{!n.instance&&t&&(n.instance=t,n.sync=r,FN())})}}),t)})}MN.instance&&(DN.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":PN(()=>{const t=MN.instance.open(Object.assign(Object.assign({},TN),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":PN(()=>{null==MN||MN.instance.destroy(e.key)});break;default:PN(()=>{var n;const r=(n=MN.instance)[t].apply(n,Fe(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)})}}),DN=[])};const HN={open:function(e){const t=Wl(t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return DN.push(r),()=>{n?PN(()=>{n()}):r.skipped=!0}});return FN(),t},destroy:e=>{DN.push({type:"destroy",key:e}),FN()},config:function(e){TN=Object.assign(Object.assign({},TN),e),PN(()=>{var e;null===(e=null==MN?void 0:MN.sync)||void 0===e||e.call(MN)})},useMessage:function(e){return Yl(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=Hl(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=l.useContext(ro),s=t||c("message"),u=cl(s),[d,f,p]=Fl(s,u);return d(l.createElement(ul,Object.assign({},a,{prefixCls:s,className:b(n,f,`${s}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:l.createElement(_l,{prefixCls:s,type:r,icon:o},i)})))}},AN=HN;["success","info","warning","error","loading"].forEach(e=>{AN[e]=(...t)=>function(e,t){const n=Wl(n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return DN.push(o),()=>{r?PN(()=>{r()}):o.skipped=!0}});return FN(),n}(e,t)});var _N=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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};var WN=Vp(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:c,footer:s}=e,u=_N(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(ro),f=d(),p=t||d("modal"),m=cl(f),[g,h,v]=bp(p,m),y=`${p}-confirm`;let x={};return x=i?{closable:null!=o&&o,title:"",footer:"",children:l.createElement(kp,Object.assign({},e,{prefixCls:p,confirmPrefixCls:y,rootPrefixCls:f,content:c}))}:{closable:null==o||o,title:a,footer:null!==s&&l.createElement(ip,Object.assign({},e)),children:c},g(l.createElement(dd,Object.assign({prefixCls:p,className:b(h,`${p}-pure-panel`,i&&y,i&&`${y}-${i}`,n,v,m)},u,{closeIcon:op(p,r),closable:o},x)))});function VN(e){return Mp(Pp(e))}const GN=Cp;GN.useModal=function(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{if(t.length){Fe(t).forEach(e=>{e()}),n([])}},[t]);const r=l.useCallback(t=>function(r){var o;Ap+=1;const i=l.createRef();let a;const c=new Promise(e=>{a=e});let s,u=!1;const d=l.createElement(Hp,{key:`modal-${Ap}`,config:t(r),ref:i,afterClose:()=>{null==s||s()},isSilent:()=>u,onConfirm:e=>{a(e)}});s=null===(o=e.current)||void 0===o?void 0:o.patchElement(d),s&&Ip.push(s);const f={destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n(t=>[].concat(Fe(t),[e]))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n(e=>[].concat(Fe(e),[t]))},then:e=>(u=!0,c.then(e))};return f},[]);return[l.useMemo(()=>({info:r(Dp),success:r(Tp),error:r(Bp),warning:r(Pp),confirm:r(Lp)}),[r]),l.createElement(_p,{key:"modal-holder",ref:e})]},GN.info=function(e){return Mp(Dp(e))},GN.success=function(e){return Mp(Tp(e))},GN.error=function(e){return Mp(Bp(e))},GN.warning=VN,GN.warn=VN,GN.confirm=function(e){return Mp(Lp(e))},GN.destroyAll=function(){for(;Ip.length;){const e=Ip.pop();e&&e()}},GN.config=function({rootPrefixCls:e}){Np=e},GN._InternalPanelDoNotUseOrYouWillBeFired=WN;var UN={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},XN=0,KN=qe();var QN=function(e){var t=Qe(l.useState(),2),n=t[0],r=t[1];return l.useEffect(function(){var e;r("rc_progress_".concat((KN?(e=XN,XN+=1):e="TEST_OR_SSR",e)))},[]),e||n},YN=function(e){var t=e.bg,n=e.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function qN(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var ZN=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,c=e.ptg,s=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=r&&"object"===x(r),m=p?"#FFF":void 0,g=d/2,h=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:g,cy:g,stroke:m,strokeLinecap:s,strokeWidth:u,opacity:0===c?0:1,style:a,ref:t});if(!p)return h;var v="".concat(o,"-conic"),b=f?"".concat(180+f/2,"deg"):"0deg",y=qN(r,(360-f)/360),w=qN(r,1),C="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(w.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:v},h),l.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(v,")")},l.createElement(YN,{bg:S},l.createElement(YN,{bg:C}))))}),JN=100,eR=function(e,t,n,r,o,i,a,l,c,s){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),f=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-r)/100*t;"round"===c&&100!==r&&(p+=s/2)>=t&&(p=t-.01);return{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(o+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},tR=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function nR(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var rR=function(t){var n,r,o,i,a,c=D(D({},UN),t),s=c.id,u=c.prefixCls,d=c.steps,f=c.strokeWidth,p=c.trailWidth,m=c.gapDegree,g=void 0===m?0:m,h=c.gapPosition,v=c.trailColor,w=c.strokeLinecap,C=c.style,S=c.className,$=c.strokeColor,k=c.percent,E=st(c,tR),O=QN(s),I="".concat(O,"-gradient"),N=50-f/2,R=2*Math.PI*N,j=g>0?90+g/2:-90,M=R*((360-g)/360),P="object"===x(d)?d:{count:d,gap:2},T=P.count,B=P.gap,L=nR(k),z=nR($),F=z.find(function(e){return e&&"object"===x(e)}),H=F&&"object"===x(F)?"butt":w,A=eR(R,M,0,100,j,g,h,v,H,f),_=(n=e.useRef([]),r=e.useRef(null),e.useEffect(function(){var e=Date.now(),t=!1;n.current.forEach(function(n){if(n){t=!0;var o=n.style;o.transitionDuration=".3s, .3s, .3s, .06s",r.current&&e-r.current<100&&(o.transitionDuration="0s, 0s")}}),t&&(r.current=Date.now())}),n.current);return l.createElement("svg",y({className:b("".concat(u,"-circle"),S),viewBox:"0 0 ".concat(JN," ").concat(JN),style:C,id:s,role:"presentation"},E),!T&&l.createElement("circle",{className:"".concat(u,"-circle-trail"),r:N,cx:50,cy:50,stroke:v,strokeLinecap:H,strokeWidth:p||f,style:A}),T?(o=Math.round(T*(L[0]/100)),i=100/T,a=0,new Array(T).fill(null).map(function(e,t){var n=t<=o-1?z[0]:v,r=n&&"object"===x(n)?"url(#".concat(I,")"):void 0,c=eR(R,M,a,i,j,g,h,n,"butt",f,B);return a+=100*(M-c.strokeDashoffset+B)/M,l.createElement("circle",{key:t,className:"".concat(u,"-circle-path"),r:N,cx:50,cy:50,stroke:r,strokeWidth:f,opacity:1,style:c,ref:function(e){_[t]=e}})})):function(){var e=0;return L.map(function(t,n){var r=z[n]||z[z.length-1],o=eR(R,M,e,t,j,g,h,r,H,f);return e+=t,l.createElement(ZN,{key:n,color:r,ptg:t,radius:N,prefixCls:u,gradientId:I,style:o,strokeLinecap:H,strokeWidth:f,gapDegree:g,ref:function(e){_[n]=e},size:JN})}).reverse()}())};function oR(e){return!e||e<0?0:e>100?100:e}function iR({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const aR=(e,t,n)=>{var r,o,i,a;let l=-1,c=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=r?r:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:Array.isArray(e)&&(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,c=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,c]},lR=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:c,children:s,success:u,size:d=a,steps:f}=e,[p,m]=aR(d,"circle");let{strokeWidth:g}=e;void 0===g&&(g=Math.max((e=>3/e*100)(p),6));const h={width:p,height:m,fontSize:.15*p+6},v=l.useMemo(()=>i||0===i?i:"dashboard"===c?75:void 0,[i,c]),y=(({percent:e,success:t,successPercent:n})=>{const r=oR(iR({success:t,successPercent:n}));return[r,oR(oR(e)-r)]})(e),x=o||"dashboard"===c&&"bottom"||void 0,w="[object Object]"===Object.prototype.toString.call(e.strokeColor),C=(({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Rr.green,t||null]})({success:u,strokeColor:e.strokeColor}),S=b(`${t}-inner`,{[`${t}-circle-gradient`]:w}),$=l.createElement(rR,{steps:f,percent:f?y[1]:y,strokeWidth:g,trailWidth:g,strokeColor:f?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:x}),k=p<=20,E=l.createElement("div",{className:S,style:h},$,!k&&s);return k?l.createElement($v,{title:s},E):E},cR="--progress-line-stroke-color",sR="--progress-percent",uR=e=>{const t=e?"100%":"-100%";return new Gn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},dR=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Xo(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${cR})`]},height:"100%",width:`calc(1 / var(${sR}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${It(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:uR(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:uR(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},fR=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},pR=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},mR=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}};var gR=Zo("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Io(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[dR(n),fR(n),pR(n),mR(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})),hR=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 vR=(e,t)=>{const{from:n=Rr.blue,to:r=Rr.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=hR(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${o}, ${(e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(", ")})(i)})`;return{background:e,[cR]:e}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[cR]:a}},bR=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:c="round",children:s,trailColor:u=null,percentPosition:d,success:f}=e,{align:p,type:m}=d,g=a&&"string"!=typeof a?vR(a,n):{[cR]:a,background:a},h="square"===c||"butt"===c?0:void 0,v=null!=o?o:[-1,i||("small"===o?6:8)],[y,x]=aR(v,"line",{strokeWidth:i}),w={backgroundColor:u||void 0,borderRadius:h},C=Object.assign(Object.assign({width:`${oR(r)}%`,height:x,borderRadius:h},g),{[sR]:oR(r)/100}),S=iR(e),$={width:`${oR(S)}%`,height:x,borderRadius:h,backgroundColor:null==f?void 0:f.strokeColor},k={width:y<0?"100%":y},E=l.createElement("div",{className:`${t}-inner`,style:w},l.createElement("div",{className:b(`${t}-bg`,`${t}-bg-${m}`),style:C},"inner"===m&&s),void 0!==S&&l.createElement("div",{className:`${t}-success-bg`,style:$})),O="outer"===m&&"start"===p,I="outer"===m&&"end"===p;return"outer"===m&&"center"===p?l.createElement("div",{className:`${t}-layout-bottom`},E,s):l.createElement("div",{className:`${t}-outer`,style:k},O&&s,E,I&&s)},yR=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:c=null,prefixCls:s,children:u}=e,d=r(n*(o/100)),f=null!=t?t:["small"===t?2:14,i],[p,m]=aR(f,"step",{steps:n,strokeWidth:i}),g=p/n,h=Array.from({length:n});for(let e=0;e<n;e++){const t=Array.isArray(a)?a[e]:a;h[e]=l.createElement("div",{key:e,className:b(`${s}-steps-item`,{[`${s}-steps-item-active`]:e<=d-1}),style:{backgroundColor:e<=d-1?t:c,width:g,height:m}})}return l.createElement("div",{className:`${s}-steps-outer`},h,u)};var xR=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 wR=["normal","exception","active","success"],CR=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:c=0,size:s="default",showInfo:u=!0,type:d="line",status:f,format:p,style:m,percentPosition:g={}}=e,h=xR(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=g,x=Array.isArray(a)?a[0]:a,w="string"==typeof a||Array.isArray(a)?a:void 0,C=l.useMemo(()=>{if(x){const e="string"==typeof x?x:Object.values(x)[0];return new $r(e).isLight()}return!1},[a]),S=l.useMemo(()=>{var t,n;const r=iR(e);return Number.parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=c?c:0)||void 0===n?void 0:n.toString(),10)},[c,e.success,e.successPercent]),$=l.useMemo(()=>!wR.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:k,direction:E,progress:O}=l.useContext(ro),I=k("progress",n),[N,R,j]=gR(I),M="line"===d,P=M&&!i,D=l.useMemo(()=>{if(!u)return null;const t=iR(e);let n;const r=p||(e=>`${e}%`),o=M&&C&&"inner"===y;return"inner"===y||p||"exception"!==$&&"success"!==$?n=r(oR(c),oR(t)):"exception"===$?n=M?l.createElement(za,null):l.createElement(Aa,null):"success"===$&&(n=M?l.createElement(Ta,null):l.createElement(Nh,null)),l.createElement("span",{className:b(`${I}-text`,{[`${I}-text-bright`]:o,[`${I}-text-${v}`]:P,[`${I}-text-${y}`]:P}),title:"string"==typeof n?n:void 0},n)},[u,c,S,$,d,I,p]);let T;"line"===d?T=i?l.createElement(yR,Object.assign({},e,{strokeColor:w,prefixCls:I,steps:"object"==typeof i?i.count:i}),D):l.createElement(bR,Object.assign({},e,{strokeColor:x,prefixCls:I,direction:E,percentPosition:{align:v,type:y}}),D):"circle"!==d&&"dashboard"!==d||(T=l.createElement(lR,Object.assign({},e,{strokeColor:x,prefixCls:I,progressStatus:$}),D));const B=b(I,`${I}-status-${$}`,{[`${I}-${"dashboard"===d?"circle":d}`]:"line"!==d,[`${I}-inline-circle`]:"circle"===d&&aR(s,"circle")[0]<=20,[`${I}-line`]:P,[`${I}-line-align-${v}`]:P,[`${I}-line-position-${y}`]:P,[`${I}-steps`]:i,[`${I}-show-info`]:u,[`${I}-${s}`]:"string"==typeof s,[`${I}-rtl`]:"rtl"===E},null==O?void 0:O.className,r,o,R,j);return N(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==O?void 0:O.style),m),className:B,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},Ic(h,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),T))});var SR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},$R=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:SR}))},kR=l.forwardRef($R);function ER(t,n){var r=t.disabled,o=t.prefixCls,i=t.character,a=t.characterRender,l=t.index,c=t.count,s=t.value,u=t.allowHalf,d=t.focused,f=t.onHover,p=t.onClick,m=l+1,g=new Set([o]);0===s&&0===l&&d?g.add("".concat(o,"-focused")):u&&s+.5>=m&&s<m?(g.add("".concat(o,"-half")),g.add("".concat(o,"-active")),d&&g.add("".concat(o,"-focused"))):(m<=s?g.add("".concat(o,"-full")):g.add("".concat(o,"-zero")),m===s&&d&&g.add("".concat(o,"-focused")));var h="function"==typeof i?i(t):i,v=e.createElement("li",{className:b(Array.from(g)),ref:n},e.createElement("div",{onClick:r?null:function(e){p(e,l)},onKeyDown:r?null:function(e){e.keyCode===sl.ENTER&&p(e,l)},onMouseMove:r?null:function(e){f(e,l)},role:"radio","aria-checked":s>l?"true":"false","aria-posinset":l+1,"aria-setsize":c,tabIndex:r?-1:0},e.createElement("div",{className:"".concat(o,"-first")},h),e.createElement("div",{className:"".concat(o,"-second")},h)));return a&&(v=a(v,t)),v}var OR=e.forwardRef(ER);var IR=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function NR(t,n){var r,o=t.prefixCls,i=void 0===o?"rc-rate":o,a=t.className,c=t.defaultValue,s=t.value,u=t.count,d=void 0===u?5:u,f=t.allowHalf,p=void 0!==f&&f,m=t.allowClear,g=void 0===m||m,h=t.keyboard,v=void 0===h||h,x=t.character,w=void 0===x?"★":x,C=t.characterRender,S=t.disabled,$=t.direction,k=void 0===$?"ltr":$,E=t.tabIndex,O=void 0===E?0:E,I=t.autoFocus,N=t.onHoverChange,R=t.onChange,j=t.onFocus,P=t.onBlur,D=t.onKeyDown,T=t.onMouseLeave,B=st(t,IR),L=(r=l.useRef({}),[function(e){return r.current[e]},function(e){return function(t){r.current[e]=t}}]),z=Qe(L,2),F=z[0],H=z[1],A=e.useRef(null),_=function(){var e;S||(null===(e=A.current)||void 0===e||e.focus())};e.useImperativeHandle(n,function(){return{focus:_,blur:function(){var e;S||(null===(e=A.current)||void 0===e||e.blur())}}});var W=Qe($o(c||0,{value:s}),2),V=W[0],G=W[1],U=Qe($o(null),2),X=U[0],K=U[1],Q=function(e,t){var n,r,o,i,a="rtl"===k,l=e+1;if(p){var c=F(e),s=(r=function(e){var t,n,r=e.ownerDocument,o=r.body,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=i.clientLeft||o.clientLeft||0,top:n-=i.clientTop||o.clientTop||0}}(n=c),o=n.ownerDocument,i=o.defaultView||o.parentWindow,r.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!=typeof t){var r=e.document;"number"!=typeof(t=r.documentElement[n])&&(t=r.body[n])}return t}(i),r.left),u=c.clientWidth;(a&&t-s>u/2||!a&&t-s<u/2)&&(l-=.5)}return l},Y=function(e){G(e),null==R||R(e)},q=Qe(e.useState(!1),2),Z=q[0],J=q[1],ee=Qe(e.useState(null),2),te=ee[0],ne=ee[1],re=function(e,t){var n=Q(t,e.pageX);n!==X&&(ne(n),K(null)),null==N||N(n)},oe=function(e){S||(ne(null),K(null),null==N||N(void 0)),e&&(null==T||T(e))},ie=function(e,t){var n=Q(t,e.pageX),r=!1;g&&(r=n===V),oe(),Y(r?0:n),K(r?n:null)};e.useEffect(function(){I&&!S&&_()},[]);var ae=new Array(d).fill(0).map(function(t,n){return e.createElement(OR,{ref:H(n),index:n,count:d,disabled:S,prefixCls:"".concat(i,"-star"),allowHalf:p,value:null===te?V:te,onClick:ie,onHover:re,key:t||n,character:w,characterRender:C,focused:Z})}),le=b(i,a,M(M({},"".concat(i,"-disabled"),S),"".concat(i,"-rtl"),"rtl"===k));return e.createElement("ul",y({className:le,onMouseLeave:oe,tabIndex:S?-1:O,onFocus:S?null:function(){J(!0),null==j||j()},onBlur:S?null:function(){J(!1),null==P||P()},onKeyDown:S?null:function(e){var t=e.keyCode,n="rtl"===k,r=p?.5:1;v&&(t===sl.RIGHT&&V<d&&!n?(Y(V+r),e.preventDefault()):t===sl.LEFT&&V>0&&!n||t===sl.RIGHT&&V>0&&n?(Y(V-r),e.preventDefault()):t===sl.LEFT&&V<d&&n&&(Y(V+r),e.preventDefault())),null==D||D(e)},ref:A},Ya(B,{aria:!0,data:!0,attr:!0})),ae)}var RR=e.forwardRef(NR);const jR=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${It(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},MR=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}});var PR=Zo("Rate",e=>(e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Xo(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),jR(e)),MR(e))}})(Io(e,{})),e=>({starColor:e.yellow6,starSize:.5*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent})),DR=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 TR=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,tooltips:a,character:c=l.createElement(kR,null),disabled:s}=e,u=DR(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),{getPrefixCls:d,direction:f,rate:p}=l.useContext(ro),m=d("rate",n),[g,h,v]=PR(m),y=Object.assign(Object.assign({},null==p?void 0:p.style),i),x=l.useContext(so),w=null!=s?s:x;return g(l.createElement(RR,Object.assign({ref:t,character:c,characterRender:(e,{index:t})=>a?l.createElement($v,{title:a[t]},e):e,disabled:w},u,{className:b(r,o,h,v,null==p?void 0:p.className),style:y,prefixCls:m,direction:f})))});var BR=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],LR=l.forwardRef(function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-switch":r,i=e.className,a=e.checked,c=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,m=e.onChange,g=e.onKeyDown,h=st(e,BR),v=Qe($o(!1,{value:a,defaultValue:c}),2),x=v[0],w=v[1];function C(e,t){var n=x;return s||(w(n=e),null==m||m(n,t)),n}var S=b(o,i,(M(n={},"".concat(o,"-checked"),x),M(n,"".concat(o,"-disabled"),s),n));return l.createElement("button",y({},h,{type:"button",role:"switch","aria-checked":x,disabled:s,className:S,ref:t,onKeyDown:function(e){e.which===sl.LEFT?C(!1,e):e.which===sl.RIGHT&&C(!0,e),null==g||g(e)},onClick:function(e){var t=C(!x,e);null==p||p(t,e)}}),u,l.createElement("span",{className:"".concat(o,"-inner")},l.createElement("span",{className:"".concat(o,"-inner-checked")},d),l.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});LR.displayName="Switch";const zR=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s=`${t}-inner`,u=It(c(l).add(c(r).mul(2)).equal()),d=It(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:It(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked, ${s}-unchecked`]:{minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${It(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},FR=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}}}},HR=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${It(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},AR=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,s=It(l(a).add(l(r).mul(2)).equal()),u=It(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-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},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},_R=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Xo(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:It(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}}),Qo(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"}})}};var WR=Zo("Switch",e=>{const t=Io(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[_R(t),AR(t),HR(t),FR(t),zR(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new $r("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),VR=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 GR=l.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:c,style:s,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:m}=e,g=VR(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,v]=$o(!1,{value:null!=u?u:d,defaultValue:null!=f?f:p}),{getPrefixCls:y,direction:x,switch:w}=l.useContext(ro),C=l.useContext(so),S=(null!=o?o:C)||i,$=y("switch",n),k=l.createElement("div",{className:`${$}-handle`},i&&l.createElement(Cl,{className:`${$}-loading-icon`})),[E,O,I]=WR($),N=zc(r),R=b(null==w?void 0:w.className,{[`${$}-small`]:"small"===N,[`${$}-loading`]:i,[`${$}-rtl`]:"rtl"===x},a,c,O,I),j=Object.assign(Object.assign({},null==w?void 0:w.style),s);return E(l.createElement(Lc,{component:"Switch",disabled:S},l.createElement(LR,Object.assign({},g,{checked:h,onChange:(...e)=>{v(e[0]),null==m||m.apply(void 0,e)},prefixCls:$,className:R,style:j,disabled:S,ref:t,loadingIcon:k}))))}),UR=GR;UR.__ANT_SWITCH=!0;var XR={},KR="rc-table-internal-hook";function QR(e){var t=l.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,o=e.children,i=l.useRef(n);i.current=n;var a=Qe(l.useState(function(){return{getValue:function(){return i.current},listeners:new Set}}),1)[0];return Dt(function(){r.unstable_batchedUpdates(function(){a.listeners.forEach(function(e){e(n)})})},[n]),l.createElement(t.Provider,{value:a},o)},defaultValue:e}}function YR(e,t){var n=wo("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),r=l.useContext(null==e?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,c=l.useRef();c.current=n(r?a():null==e?void 0:e.defaultValue);var s=Qe(l.useState({}),2)[1];return Dt(function(){if(r)return i.add(e),function(){i.delete(e)};function e(e){var t=n(e);ut(c.current,t,!0)||s({})}},[r]),c.current}var qR=function(){var e=l.createContext(null);function t(){return l.useContext(e)}return{makeImmutable:function(n,r){var o=K(n),i=function(i,a){var c=o?{ref:a}:{},s=l.useRef(0),u=l.useRef(i);return null!==t()?l.createElement(n,y({},i,c)):(r&&!r(u.current,i)||(s.current+=1),u.current=i,l.createElement(e.Provider,{value:s.current},l.createElement(n,y({},i,c))))};return o?l.forwardRef(i):i},responseImmutable:function(e,n){var r=K(e),o=function(n,o){var i=r?{ref:o}:{};return t(),l.createElement(e,y({},n,i))};return r?l.memo(l.forwardRef(o),n):l.memo(o,n)},useImmutableMark:t}}(),ZR=qR.makeImmutable,JR=qR.responseImmutable,ej=qR.useImmutableMark,tj=QR(),nj=l.createContext({renderWithProps:!1});function rj(e){var t=[],n={};return e.forEach(function(e){for(var r,o=e||{},i=o.key,a=o.dataIndex,l=i||(r=a,null==r?[]:Array.isArray(r)?r:[r]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function oj(e){return null!=e}function ij(e,t,n,r,o,i){var a=l.useContext(nj),c=W(function(){if(oj(r))return[r];var i,c=null==t||""===t?[]:Array.isArray(t)?t:[t],s=Qn(e,c),u=s,d=void 0;if(o){var f=o(s,e,n);!(i=f)||"object"!==x(i)||Array.isArray(i)||l.isValidElement(i)?u=f:(u=f.children,d=f.props,a.renderWithProps=!0)}return[u,d]},[ej(),e,r,t,o,n],function(e,t){if(i){var n=Qe(e,2)[1],r=Qe(t,2)[1];return i(r,n)}return!!a.renderWithProps||!ut(e,t,!0)});return c}function aj(e){var t,n,r,o,i,a,c,s,u=e.component,d=e.children,f=e.ellipsis,p=e.scope,m=e.prefixCls,g=e.className,h=e.align,v=e.record,w=e.render,C=e.dataIndex,S=e.renderIndex,$=e.shouldCellUpdate,k=e.index,E=e.rowType,O=e.colSpan,I=e.rowSpan,N=e.fixLeft,R=e.fixRight,j=e.firstFixLeft,P=e.lastFixLeft,T=e.firstFixRight,B=e.lastFixRight,L=e.appendNode,z=e.additionalProps,F=void 0===z?{}:z,H=e.isSticky,A="".concat(m,"-cell"),_=YR(tj,["supportSticky","allColumnsFixedLeft","rowHoverable"]),W=_.supportSticky,V=_.allColumnsFixedLeft,G=_.rowHoverable,U=Qe(ij(v,C,S,d,w,$),2),X=U[0],K=U[1],Q={},Y="number"==typeof N&&W,q="number"==typeof R&&W;Y&&(Q.position="sticky",Q.left=N),q&&(Q.position="sticky",Q.right=R);var Z=null!==(t=null!==(n=null!==(r=null==K?void 0:K.colSpan)&&void 0!==r?r:F.colSpan)&&void 0!==n?n:O)&&void 0!==t?t:1,J=null!==(o=null!==(i=null!==(a=null==K?void 0:K.rowSpan)&&void 0!==a?a:F.rowSpan)&&void 0!==i?i:I)&&void 0!==o?o:1,ee=function(e,t){return YR(tj,function(n){var r,o,i,a;return[(r=e,o=t||1,i=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+o-1>=i),n.onHover]})}(k,J),te=Qe(ee,2),ne=te[0],re=te[1],oe=wo(function(e){var t;v&&re(k,k+J-1),null==F||null===(t=F.onMouseEnter)||void 0===t||t.call(F,e)}),ie=wo(function(e){var t;v&&re(-1,-1),null==F||null===(t=F.onMouseLeave)||void 0===t||t.call(F,e)});if(0===Z||0===J)return null;var ae=null!==(c=F.title)&&void 0!==c?c:function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,i=!0===n?{showTitle:!0}:n;return i&&(i.showTitle||"header"===r)&&("string"==typeof o||"number"==typeof o?t=o.toString():l.isValidElement(o)&&"string"==typeof o.props.children&&(t=o.props.children)),t}({rowType:E,ellipsis:f,children:X}),le=b(A,g,(M(M(M(M(M(M(M(M(M(M(s={},"".concat(A,"-fix-left"),Y&&W),"".concat(A,"-fix-left-first"),j&&W),"".concat(A,"-fix-left-last"),P&&W),"".concat(A,"-fix-left-all"),P&&V&&W),"".concat(A,"-fix-right"),q&&W),"".concat(A,"-fix-right-first"),T&&W),"".concat(A,"-fix-right-last"),B&&W),"".concat(A,"-ellipsis"),f),"".concat(A,"-with-append"),L),"".concat(A,"-fix-sticky"),(Y||q)&&H&&W),M(s,"".concat(A,"-row-hover"),!K&&ne)),F.className,null==K?void 0:K.className),ce={};h&&(ce.textAlign=h);var se=D(D(D(D({},null==K?void 0:K.style),Q),ce),F.style),ue=X;return"object"!==x(ue)||Array.isArray(ue)||l.isValidElement(ue)||(ue=null),f&&(P||T)&&(ue=l.createElement("span",{className:"".concat(A,"-content")},ue)),l.createElement(u,y({},K,F,{className:le,style:se,title:ae,scope:p,onMouseEnter:G?oe:void 0,onMouseLeave:G?ie:void 0,colSpan:1!==Z?Z:null,rowSpan:1!==J?J:null}),L,ue)}var lj=l.memo(aj);function cj(e,t,n,r,o){var i,a,l=n[e]||{},c=n[t]||{};"left"===l.fixed?i=r.left["rtl"===o?t:e]:"right"===c.fixed&&(a=r.right["rtl"===o?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],m=n[e-1],g=p&&!p.fixed||m&&!m.fixed||n.every(function(e){return"left"===e.fixed});if("rtl"===o){if(void 0!==i)f=!(m&&"left"===m.fixed)&&g;else if(void 0!==a){d=!(p&&"right"===p.fixed)&&g}}else if(void 0!==i){s=!(p&&"left"===p.fixed)&&g}else if(void 0!==a){u=!(m&&"right"===m.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var sj=l.createContext({});var uj=["children"];function dj(e){return e.children}dj.Row=function(e){var t=e.children,n=st(e,uj);return l.createElement("tr",n,t)},dj.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=void 0===o?1:o,a=e.rowSpan,c=e.align,s=YR(tj,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,f=l.useContext(sj),p=f.scrollColumnIndex,m=f.stickyOffsets,g=n+i-1+1===p?i+1:i,h=cj(n,n+g-1,f.flattenColumns,m,d);return l.createElement(lj,y({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:g,rowSpan:a,render:function(){return r}},h))};var fj=JR(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=YR(tj,"prefixCls"),i=r.length-1,a=r[i],c=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=a&&a.scrollbar?i:null}},[a,r,i,n]);return l.createElement(sj.Provider,{value:c},l.createElement("tfoot",{className:"".concat(o,"-summary")},t))}),pj=dj;function mj(e,t,n,r,o,i,a){var l=i(t,a);e.push({record:t,indent:n,index:a,rowKey:l});var c=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s<t[r].length;s+=1)mj(e,t[r][s],n+1,r,o,i,s)}function gj(e,t,n,r){var o=l.useMemo(function(){if(null!=n&&n.size){for(var o=[],i=0;i<(null==e?void 0:e.length);i+=1){mj(o,e[i],0,t,n,r,i)}return o}return null==e?void 0:e.map(function(e,t){return{record:e,indent:0,index:t,rowKey:r(e,t)}})},[e,t,n,r]);return o}function hj(e,t,n,r){var o,i=YR(tj,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,l=i.expandableType,c=i.expandedKeys,s=i.childrenColumnName,u=i.onTriggerExpand,d=i.rowExpandable,f=i.onRow,p=i.expandRowByClick,m=i.rowClassName,g="nest"===l,h="row"===l&&(!d||d(e)),v=h||g,y=c&&c.has(t),x=s&&e&&e[s],w=wo(u),C=null==f?void 0:f(e,n),S=null==C?void 0:C.onClick;"string"==typeof m?o=m:"function"==typeof m&&(o=m(e,n,r));var $=rj(a);return D(D({},i),{},{columnsKey:$,nestExpandable:g,expanded:y,hasNestChildren:x,record:e,onTriggerExpand:w,rowSupportExpand:h,expandable:v,rowProps:D(D({},C),{},{className:b(o,null==C?void 0:C.className),onClick:function(t){p&&v&&u(e,t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==S||S.apply(void 0,[t].concat(r))}})})}function vj(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,c=e.colSpan,s=e.isEmpty,u=e.stickyOffset,d=void 0===u?0:u,f=YR(tj,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=f.scrollbarSize,m=f.fixHeader,g=f.fixColumn,h=f.componentWidth,v=f.horizonScroll,b=n;return(s?v&&h:g)&&(b=l.createElement("div",{style:{width:h-d-(m&&!s?p:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),l.createElement(r,{className:i,style:{display:a?null:"none"}},l.createElement(lj,{component:o,prefixCls:t,colSpan:c},b))}function bj(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,i=e.expandable,a="".concat(t,"-row-expand-icon");if(!i)return l.createElement("span",{className:b(a,"".concat(t,"-row-spaced"))});return l.createElement("span",{className:b(a,M(M({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:function(e){r(n,e),e.stopPropagation()}})}function yj(e,t,n,r){return"string"==typeof e?e:"function"==typeof e?e(t,n,r):""}function xj(e,t,n,r,o){var i,a,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=e.record,d=e.prefixCls,f=e.columnsKey,p=e.fixedInfoList,m=e.expandIconColumnIndex,g=e.nestExpandable,h=e.indentSize,v=e.expandIcon,b=e.expanded,y=e.hasNestChildren,x=e.onTriggerExpand,w=e.expandable,C=e.expandedKeys,S=f[n],$=p[n];n===(m||0)&&g&&(a=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(d,"-row-indent indent-level-").concat(r)}),v({prefixCls:d,expanded:b,expandable:y,record:u,onExpand:x})));var k=(null===(i=t.onCell)||void 0===i?void 0:i.call(t,u,o))||{};if(s){var E=k.rowSpan,O=void 0===E?1:E;if(w&&O&&n<s){for(var I=O,N=o;N<o+O;N+=1){var R=c[N];C.has(R)&&(I+=1)}k.rowSpan=I}}return{key:S,fixedInfo:$,appendCellNode:a,additionalCellProps:k}}var wj=JR(function(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,a=e.rowKey,c=e.rowKeys,s=e.indent,u=void 0===s?0:s,d=e.rowComponent,f=e.cellComponent,p=e.scopeCellComponent,m=e.expandedRowInfo,g=hj(r,a,o,u),h=g.prefixCls,v=g.flattenColumns,x=g.expandedRowClassName,w=g.expandedRowRender,C=g.rowProps,S=g.expanded,$=g.rowSupportExpand,k=l.useRef(!1);k.current||(k.current=S);var E,O=yj(x,r,o,u),I=l.createElement(d,y({},C,{"data-row-key":a,className:b(t,"".concat(h,"-row"),"".concat(h,"-row-level-").concat(u),null==C?void 0:C.className,M({},O,u>=1)),style:D(D({},n),null==C?void 0:C.style)}),v.map(function(e,t){var n=e.render,a=e.dataIndex,s=e.className,d=xj(g,e,t,u,o,c,null==m?void 0:m.offset),v=d.key,b=d.fixedInfo,x=d.appendCellNode,w=d.additionalCellProps;return l.createElement(lj,y({className:s,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:h,key:v,record:r,index:o,renderIndex:i,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},b,{appendNode:x,additionalProps:w}))}));if($&&(k.current||S)){var N=w(r,o,u+1,S);E=l.createElement(vj,{expanded:S,className:b("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(u+1),O),prefixCls:h,component:d,cellComponent:f,colSpan:m?m.colSpan:v.length,stickyOffset:null==m?void 0:m.sticky,isEmpty:!1},N)}return l.createElement(l.Fragment,null,I,E)});function Cj(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,o=e.title,i=l.useRef();return Dt(function(){i.current&&n(t,i.current.offsetWidth)},[]),l.createElement(Te,{data:t},l.createElement("th",{ref:i,className:"".concat(r,"-measure-cell")},l.createElement("div",{className:"".concat(r,"-measure-cell-content")},o||" ")))}function Sj(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=e.columns,i=l.useRef(null),a=YR(tj,["measureRowRender"]).measureRowRender,c=l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:i,tabIndex:-1},l.createElement(Te.Collection,{onBatchResize:function(e){Nc(i.current)&&e.forEach(function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)})}},n.map(function(e){var n=o.find(function(t){return t.key===e}),i=null==n?void 0:n.title,a=l.isValidElement(i)?l.cloneElement(i,{ref:null}):i;return l.createElement(Cj,{prefixCls:t,key:e,columnKey:e,onColumnResize:r,title:a})})));return a?a(c):c}var $j=JR(function(e){var t,n=e.data,r=e.measureColumnWidth,o=YR(tj,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),i=o.prefixCls,a=o.getComponent,c=o.onColumnResize,s=o.flattenColumns,u=o.getRowKey,d=o.expandedKeys,f=o.childrenColumnName,p=o.emptyNode,m=o.expandedRowOffset,g=void 0===m?0:m,h=o.colWidths,v=gj(n,f,d,u),b=l.useMemo(function(){return v.map(function(e){return e.rowKey})},[v]),y=l.useRef({renderWithProps:!1}),x=l.useMemo(function(){for(var e=s.length-g,t=0,n=0;n<g;n+=1)t+=h[n]||0;return{offset:g,colSpan:e,sticky:t}},[s.length,g,h]),w=a(["body","wrapper"],"tbody"),C=a(["body","row"],"tr"),S=a(["body","cell"],"td"),$=a(["body","cell"],"th");t=n.length?v.map(function(e,t){var n=e.record,r=e.indent,o=e.index,i=e.rowKey;return l.createElement(wj,{key:i,rowKey:i,rowKeys:b,record:n,index:t,renderIndex:o,rowComponent:C,cellComponent:S,scopeCellComponent:$,indent:r,expandedRowInfo:x})}):l.createElement(vj,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:C,cellComponent:S,colSpan:s.length,isEmpty:!0},p);var k=rj(s);return l.createElement(nj.Provider,{value:y.current},l.createElement(w,{className:"".concat(i,"-tbody")},r&&l.createElement(Sj,{prefixCls:i,columnsKey:k,onColumnResize:c,columns:s}),t))}),kj=["expandable"],Ej="RC_TABLE_INTERNAL_COL_DEFINE";var Oj=["columnType"];function Ij(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=YR(tj,["tableLayout"]).tableLayout,i=[],a=!1,c=(r||n.length)-1;c>=0;c-=1){var s=t[c],u=n&&n[c],d=void 0,f=void 0;if(u&&(d=u[Ej],"auto"===o&&(f=u.minWidth)),s||f||d||a){var p=d||{};p.columnType;var m=st(p,Oj);i.unshift(l.createElement("col",y({key:c,style:{width:s,minWidth:f}},m))),a=!0}}return i.length>0?l.createElement("colgroup",null,i):null}var Nj=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];var Rj=l.forwardRef(function(t,n){var r=t.className,o=t.noData,i=t.columns,a=t.flattenColumns,c=t.colWidths,s=t.colGroup,u=t.columCount,d=t.stickyOffsets,f=t.direction,p=t.fixHeader,m=t.stickyTopOffset,g=t.stickyBottomOffset,h=t.stickyClassName,v=t.scrollX,y=t.tableLayout,x=void 0===y?"fixed":y,w=t.onScroll,C=t.children,S=st(t,Nj),$=YR(tj,["prefixCls","scrollbarSize","isSticky","getComponent"]),k=$.prefixCls,E=$.scrollbarSize,O=$.isSticky,I=(0,$.getComponent)(["header","table"],"table"),N=O&&!p?0:E,R=l.useRef(null),j=l.useCallback(function(e){G(n,e),G(R,e)},[]);l.useEffect(function(){function e(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(w({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}var t=R.current;return null==t||t.addEventListener("wheel",e,{passive:!1}),function(){null==t||t.removeEventListener("wheel",e)}},[]);var P=a[a.length-1],T={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},B=e.useMemo(function(){return N?[].concat(Fe(i),[T]):i},[N,i]),L=e.useMemo(function(){return N?[].concat(Fe(a),[T]):a},[N,a]),z=e.useMemo(function(){var e=d.right,t=d.left;return D(D({},d),{},{left:"rtl"===f?[].concat(Fe(t.map(function(e){return e+N})),[0]):t,right:"rtl"===f?e:[].concat(Fe(e.map(function(e){return e+N})),[0]),isSticky:O})},[N,d,O]),F=function(t,n){return e.useMemo(function(){for(var e=[],r=0;r<n;r+=1){var o=t[r];if(void 0===o)return null;e[r]=o}return e},[t.join("_"),n])}(c,u),H=e.useMemo(function(){var e=!F||!F.length||F.every(function(e){return!e});return o||e},[o,F]);return l.createElement("div",{style:D({overflow:"hidden"},O?{top:m,bottom:g}:{}),ref:j,className:b(r,M({},h,!!h))},l.createElement(I,{style:{tableLayout:x,minWidth:"100%",width:v}},H?s:l.createElement(Ij,{colWidths:[].concat(Fe(F),[N]),columCount:u+1,columns:L}),C(D(D({},S),{},{stickyOffsets:z,columns:B,flattenColumns:L}))))}),jj=l.memo(Rj),Mj=function(e){var t,n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,i=e.rowComponent,a=e.cellComponent,c=e.onHeaderRow,s=e.index,u=YR(tj,["prefixCls","direction"]),d=u.prefixCls,f=u.direction;c&&(t=c(n.map(function(e){return e.column}),s));var p=rj(n.map(function(e){return e.column}));return l.createElement(i,t,n.map(function(e,t){var n,i=e.column,c=cj(e.colStart,e.colEnd,o,r,f);return i&&i.onHeaderCell&&(n=e.column.onHeaderCell(i)),l.createElement(lj,y({},e,{scope:i.title?e.colSpan>1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:d,key:p[t]},c,{additionalProps:n,rowType:"header"}))}))};var Pj=JR(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=YR(tj,["prefixCls","getComponent"]),a=i.prefixCls,c=i.getComponent,s=l.useMemo(function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,o+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a});return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)})},o=0;o<n;o+=1)r(o);return t}(n)},[n]),u=c(["header","wrapper"],"thead"),d=c(["header","row"],"tr"),f=c(["header","cell"],"th");return l.createElement(u,{className:"".concat(a,"-thead")},s.map(function(e,n){return l.createElement(Mj,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:f,onHeaderRow:o,index:n})}))});function Dj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var Tj=["children"],Bj=["fixed"];function Lj(e){return k(e).filter(function(e){return l.isValidElement(e)}).map(function(e){var t=e.key,n=e.props,r=n.children,o=D({key:t},st(n,Tj));return r&&(o.children=Lj(r)),o})}function zj(e){return e.filter(function(e){return e&&"object"===x(e)&&!e.hidden}).map(function(e){var t=e.children;return t&&t.length>0?D(D({},e),{},{children:zj(t)}):e})}function Fj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter(function(e){return e&&"object"===x(e)}).reduce(function(e,n,r){var o=n.fixed,i=!0===o?"left":o,a="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat(Fe(e),Fe(Fj(l,a).map(function(e){var t;return D(D({},e),{},{fixed:null!==(t=e.fixed)&&void 0!==t?t:i})}))):[].concat(Fe(e),[D(D({key:a},n),{},{fixed:i})])},[])}function Hj(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,m=e.expandedRowOffset,g=void 0===m?0:m,h=e.direction,v=e.expandRowByClick,b=e.columnWidth,y=e.fixed,x=e.scrollWidth,w=e.clientWidth,C=l.useMemo(function(){return zj((r||Lj(o)||[]).slice())},[r,o]),S=l.useMemo(function(){if(i){var e=C.slice();if(!e.includes(XR)){var t=p||0,r=0===t&&"right"===y?C.length:t;r>=0&&e.splice(r,0,XR)}var o=e.indexOf(XR);e=e.filter(function(e,t){return e!==XR||t===o});var m,h=C[o];m=y||(h?h.fixed:null);var x=M(M(M(M(M(M({},Ej,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",c),"fixed",m),"className","".concat(n,"-row-expand-icon-cell")),"width",b),"render",function(e,t,r){var o=s(t,r),i=a.has(o),c=!f||f(t),p=d({prefixCls:n,expanded:i,expandable:c,record:t,onExpand:u});return v?l.createElement("span",{onClick:function(e){return e.stopPropagation()}},p):p});return e.map(function(e,t){var n=e===XR?x:e;return t<g?D(D({},n),{},{fixed:n.fixed||"left"}):n})}return C.filter(function(e){return e!==XR})},[i,C,s,a,d,h,g]),$=l.useMemo(function(){var e=S;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,S,h]),k=l.useMemo(function(){return"rtl"===h?function(e){return e.map(function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),D({fixed:n},st(e,Bj))})}(Fj($)):Fj($)},[$,h,x]),E=l.useMemo(function(){for(var e=-1,t=k.length-1;t>=0;t-=1){var n=k[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=k[r].fixed;if("left"!==o&&!0!==o)return!0}var i=k.findIndex(function(e){return"right"===e.fixed});if(i>=0)for(var a=i;a<k.length;a+=1){if("right"!==k[a].fixed)return!0}return!1},[k]),O=function(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(e){var n=Dj(t,e.width);n?r+=n:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),l=o,c=a/o,s=0,u=e.map(function(e){var n=D({},e),r=Dj(t,n.width);if(r)n.width=r;else{var o=Math.floor(c);n.width=1===l?a:o,a-=o,l-=1}return s+=n.width,n});if(s<i){var d=i/s;a=i,u.forEach(function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?a:n,a-=n})}return[u,Math.max(s,i)]}return[e,t]},[e,t,n])}(k,x,w),I=Qe(O,2),N=I[0],R=I[1];return[$,N,R,E]}function Aj(e,t,n){var r=function(e){var t,n=e.expandable,r=st(e,kj);return!1===(t="expandable"in e?D(D({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,c=r.defaultExpandAllRows,s=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=o||bj,p=r.childrenColumnName||"children",m=l.useMemo(function(){return s?"row":!!(e.expandable&&e.internalHooks===KR&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(e){return e&&"object"===x(e)&&e[p]}))&&"nest"},[!!s,t]),g=l.useState(function(){return a||(c?function(e,t,n){var r=[];return function e(o){(o||[]).forEach(function(o,i){r.push(t(o,i)),e(o[n])})}(e),r}(t,n,p):[])}),h=Qe(g,2),v=h[0],b=h[1],y=l.useMemo(function(){return new Set(i||v||[])},[i,v]),w=l.useCallback(function(e){var r,o=n(e,t.indexOf(e)),i=y.has(o);i?(y.delete(o),r=Fe(y)):r=[].concat(Fe(y),[o]),b(r),u&&u(!i,e),d&&d(r)},[n,y,t,u,d]);return[r,m,y,f,p,w]}var _j=qe()?window:null;function Wj(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)}function Vj(e){var t=B(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var Gj=function(t,n){var r,o,i,a,c,s,u,d=t.scrollBodyRef,f=t.onScroll,p=t.offsetScroll,m=t.container,g=t.direction,h=YR(tj,"prefixCls"),v=(null===(r=d.current)||void 0===r?void 0:r.scrollWidth)||0,y=(null===(o=d.current)||void 0===o?void 0:o.clientWidth)||0,x=v&&y*(y/v),w=l.useRef(),C=(i={scrollLeft:0,isHiddenScrollBar:!0},a=e.useRef(i),c=Qe(e.useState({}),2)[1],s=e.useRef(null),u=e.useRef([]),e.useEffect(function(){return function(){s.current=null}},[]),[a.current,function(e){u.current.push(e);var t=Promise.resolve();s.current=t,t.then(function(){if(s.current===t){var e=u.current,n=a.current;u.current=[],e.forEach(function(e){a.current=e(a.current)}),s.current=null,n!==a.current&&c({})}})}]),S=Qe(C,2),$=S[0],k=S[1],E=l.useRef({delta:0,x:0}),O=Qe(l.useState(!1),2),I=O[0],N=O[1],R=l.useRef(null);l.useEffect(function(){return function(){Ge.cancel(R.current)}},[]);var j=function(){N(!1)},P=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(I&&0!==n){var r=E.current.x+e.pageX-E.current.x-E.current.delta,o="rtl"===g;r=Math.max(o?x-y:0,Math.min(o?0:y-x,r)),(!o||Math.abs(r)+Math.abs(x)<y)&&(f({scrollLeft:r/y*(v+2)}),E.current.x=e.pageX)}else I&&N(!1)},T=function(){Ge.cancel(R.current),R.current=Ge(function(){if(d.current){var e=Vj(d.current).top,t=e+d.current.offsetHeight,n=m===window?document.documentElement.scrollTop+window.innerHeight:Vj(m).top+m.clientHeight;k(function(r){return D(D({},r),{},{isHiddenScrollBar:t-Qu()<=n||e>=n-p})})}})},L=function(e){k(function(t){return D(D({},t),{},{scrollLeft:v?e/v*y:0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:L,checkScrollBarVisible:T}}),l.useEffect(function(){var e=hI(document.body,"mouseup",j,!1),t=hI(document.body,"mousemove",P,!1);return T(),function(){e.remove(),t.remove()}},[x,I]),l.useEffect(function(){if(d.current){for(var e=[],t=B(d.current);t;)e.push(t),t=t.parentElement;return e.forEach(function(e){return e.addEventListener("scroll",T,!1)}),window.addEventListener("resize",T,!1),window.addEventListener("scroll",T,!1),m.addEventListener("scroll",T,!1),function(){e.forEach(function(e){return e.removeEventListener("scroll",T)}),window.removeEventListener("resize",T),window.removeEventListener("scroll",T),m.removeEventListener("scroll",T)}}},[m]),l.useEffect(function(){$.isHiddenScrollBar||k(function(e){var t=d.current;return t?D(D({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[$.isHiddenScrollBar]),v<=y||!x||$.isHiddenScrollBar?null:l.createElement("div",{style:{height:Qu(),width:y,bottom:p},className:"".concat(h,"-sticky-scroll")},l.createElement("div",{onMouseDown:function(e){e.persist(),E.current.delta=e.pageX-$.scrollLeft,E.current.x=0,N(!0),e.preventDefault()},ref:w,className:b("".concat(h,"-sticky-scroll-bar"),M({},"".concat(h,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(x,"px"),transform:"translate3d(".concat($.scrollLeft,"px, 0, 0)")}}))},Uj=l.forwardRef(Gj),Xj="rc-table",Kj=[],Qj={};function Yj(){return"No Data"}function qj(t,n){var r=D({rowKey:"key",prefixCls:Xj,emptyText:Yj},t),o=r.prefixCls,i=r.className,a=r.rowClassName,c=r.style,s=r.data,u=r.rowKey,d=r.scroll,f=r.tableLayout,p=r.direction,m=r.title,g=r.footer,h=r.summary,v=r.caption,w=r.id,C=r.showHeader,S=r.components,$=r.emptyText,k=r.onRow,E=r.onHeaderRow,O=r.measureRowRender,I=r.onScroll,N=r.internalHooks,R=r.transformColumns,j=r.internalRefs,P=r.tailor,T=r.getContainerWidth,L=r.sticky,z=r.rowHoverable,F=void 0===z||z,H=s||Kj,A=!!H.length,_=N===KR,V=l.useCallback(function(e,t){return Qn(S,e)||t},[S]),G=l.useMemo(function(){return"function"==typeof u?u:function(e){return e&&e[u]}},[u]),U=V(["body"]),X=function(){var e=Qe(l.useState(-1),2),t=e[0],n=e[1],r=Qe(l.useState(-1),2),o=r[0],i=r[1];return[t,o,l.useCallback(function(e,t){n(e),i(t)},[])]}(),K=Qe(X,3),Q=K[0],Y=K[1],q=K[2],Z=Qe(Aj(r,H,G),6),J=Z[0],ee=Z[1],te=Z[2],ne=Z[3],re=Z[4],oe=Z[5],ie=null==d?void 0:d.x,ae=Qe(l.useState(0),2),le=ae[0],ce=ae[1],se=Qe(Hj(D(D(D({},r),J),{},{expandable:!!J.expandedRowRender,columnTitle:J.columnTitle,expandedKeys:te,getRowKey:G,onTriggerExpand:oe,expandIcon:ne,expandIconColumnIndex:J.expandIconColumnIndex,direction:p,scrollWidth:_&&P&&"number"==typeof ie?ie:null,clientWidth:le}),_?R:null),4),ue=se[0],de=se[1],fe=se[2],pe=se[3],me=null!=fe?fe:ie,ge=l.useMemo(function(){return{columns:ue,flattenColumns:de}},[ue,de]),he=l.useRef(),ve=l.useRef(),be=l.useRef(),ye=l.useRef();l.useImperativeHandle(n,function(){return{nativeElement:he.current,scrollTo:function(e){var t,n;if(be.current instanceof HTMLElement){var r=e.index,o=e.top,i=e.key;if("number"!=typeof(n=o)||Number.isNaN(n)){var a,l=null!=i?i:G(H[r]);null===(a=be.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var c;null===(c=be.current)||void 0===c||c.scrollTo({top:o})}}else null!==(t=be.current)&&void 0!==t&&t.scrollTo&&be.current.scrollTo(e)}}});var xe,we,Ce,Se=l.useRef(),$e=Qe(l.useState(!1),2),ke=$e[0],Ee=$e[1],Oe=Qe(l.useState(!1),2),Ie=Oe[0],Ne=Oe[1],Re=Qe(l.useState(new Map),2),je=Re[0],Me=Re[1],Pe=rj(de).map(function(e){return je.get(e)}),De=l.useMemo(function(){return Pe},[Pe.join("_")]),Be=function(t,n,r){var o=e.useMemo(function(){var e=n.length,o=function(e,r,o){for(var i=[],a=0,l=e;l!==r;l+=o)i.push(a),n[l].fixed&&(a+=t[l]||0);return i},i=o(0,e,1),a=o(e-1,-1,-1).reverse();return"rtl"===r?{left:a,right:i}:{left:i,right:a}},[t,n,r]);return o}(De,de,p),Le=d&&oj(d.y),ze=d&&oj(me)||Boolean(J.fixed),Fe=ze&&de.some(function(e){return e.fixed}),He=l.useRef(),Ae=function(e,t){var n="object"===x(e)?e:{},r=n.offsetHeader,o=void 0===r?0:r,i=n.offsetSummary,a=void 0===i?0:i,c=n.offsetScroll,s=void 0===c?0:c,u=n.getContainer,d=(void 0===u?function(){return _j}:u)()||_j,f=!!e;return l.useMemo(function(){return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:s,container:d}},[f,s,o,a,t,d])}(L,o),_e=Ae.isSticky,We=Ae.offsetHeader,Ve=Ae.offsetSummary,Ge=Ae.offsetScroll,Ue=Ae.stickyClassName,Xe=Ae.container,Ke=l.useMemo(function(){return null==h?void 0:h(H)},[h,H]),Ye=(Le||_e)&&l.isValidElement(Ke)&&Ke.type===dj&&Ke.props.fixed;Le&&(we={overflowY:A?"scroll":"auto",maxHeight:d.y}),ze&&(xe={overflowX:"auto"},Le||(we={overflowY:"hidden"}),Ce={width:!0===me?"auto":me,minWidth:"100%"});var qe=l.useCallback(function(e,t){Me(function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n})},[]),Ze=Qe(function(){var t=e.useRef(null),n=e.useRef();function r(){window.clearTimeout(n.current)}return e.useEffect(function(){return r},[]),[function(e){t.current=e,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)},function(){return t.current}]}(),2),Je=Ze[0],et=Ze[1];function tt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(function(){t.scrollLeft=e},0)))}var nt=wo(function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===p,i="number"==typeof r?r:n.scrollLeft,a=n||Qj;et()&&et()!==a||(Je(a),tt(i,ve.current),tt(i,be.current),tt(i,Se.current),tt(i,null===(t=He.current)||void 0===t?void 0:t.setScrollLeft));var l=n||ve.current;if(l){var c=_&&P&&"number"==typeof me?me:l.scrollWidth,s=l.clientWidth;if(c===s)return Ee(!1),void Ne(!1);o?(Ee(-i<c-s),Ne(-i>0)):(Ee(i>0),Ne(i<c-s))}}),rt=wo(function(e){nt(e),null==I||I(e)}),ot=function(){var e;ze&&be.current?nt({currentTarget:B(be.current),scrollLeft:null===(e=be.current)||void 0===e?void 0:e.scrollLeft}):(Ee(!1),Ne(!1))},it=l.useRef(!1);l.useEffect(function(){it.current&&ot()},[ze,s,ue.length]),l.useEffect(function(){it.current=!0},[]);var at=Qe(l.useState(0),2),lt=at[0],ct=at[1],st=Qe(l.useState(!0),2),dt=st[0],ft=st[1];Dt(function(){P&&_||(be.current instanceof Element?ct(Yu(be.current).width):ct(Yu(ye.current).width)),ft(Df("position","sticky"))},[]),l.useEffect(function(){_&&j&&(j.body.current=be.current)});var pt,mt=l.useCallback(function(e){return l.createElement(l.Fragment,null,l.createElement(Pj,e),"top"===Ye&&l.createElement(fj,e,Ke))},[Ye,Ke]),gt=l.useCallback(function(e){return l.createElement(fj,e,Ke)},[Ke]),ht=V(["table"],"table"),vt=l.useMemo(function(){return f||(Fe?"max-content"===me?"auto":"fixed":Le||_e||de.some(function(e){return e.ellipsis})?"fixed":"auto")},[Le,Fe,de,f,_e]),bt={colWidths:De,columCount:de.length,stickyOffsets:Be,onHeaderRow:E,fixHeader:Le,scroll:d},yt=l.useMemo(function(){return A?null:"function"==typeof $?$():$},[A,$]),xt=l.createElement($j,{data:H,measureColumnWidth:Le||ze||_e}),wt=l.createElement(Ij,{colWidths:de.map(function(e){return e.width}),columns:de}),Ct=null!=v?l.createElement("caption",{className:"".concat(o,"-caption")},v):void 0,St=Ya(r,{data:!0}),$t=Ya(r,{aria:!0});if(Le||_e){var kt;"function"==typeof U?(kt=U(H,{scrollbarSize:lt,ref:be,onScroll:nt}),bt.colWidths=de.map(function(e,t){var n=e.width,r=t===de.length-1?n-lt:n;return"number"!=typeof r||Number.isNaN(r)?0:r})):kt=l.createElement("div",{style:D(D({},xe),we),onScroll:rt,ref:be,className:b("".concat(o,"-body"))},l.createElement(ht,y({style:D(D({},Ce),{},{tableLayout:vt})},$t),Ct,wt,xt,!Ye&&Ke&&l.createElement(fj,{stickyOffsets:Be,flattenColumns:de},Ke)));var Et=D(D(D({noData:!H.length},bt),ge),{},{direction:p,stickyClassName:Ue,scrollX:me,tableLayout:vt,onScroll:nt});pt=l.createElement(l.Fragment,null,!1!==C&&l.createElement(jj,y({},Et,{stickyTopOffset:We,className:"".concat(o,"-header"),ref:ve,colGroup:wt}),mt),kt,Ye&&"top"!==Ye&&l.createElement(jj,y({},Et,{stickyBottomOffset:Ve,className:"".concat(o,"-summary"),ref:Se,colGroup:wt}),gt),_e&&be.current&&be.current instanceof Element&&l.createElement(Uj,{ref:He,offsetScroll:Ge,scrollBodyRef:be,onScroll:nt,container:Xe,direction:p}))}else pt=l.createElement("div",{style:D(D({},xe),we),className:b("".concat(o,"-content")),onScroll:nt,ref:be},l.createElement(ht,y({style:D(D({},Ce),{},{tableLayout:vt})},$t),Ct,wt,!1!==C&&l.createElement(Pj,y({},bt,ge)),xt,Ke&&l.createElement(fj,{stickyOffsets:Be,flattenColumns:de},Ke)));var Ot=l.createElement("div",y({className:b(o,i,M(M(M(M(M(M(M(M(M(M({},"".concat(o,"-rtl"),"rtl"===p),"".concat(o,"-ping-left"),ke),"".concat(o,"-ping-right"),Ie),"".concat(o,"-layout-fixed"),"fixed"===f),"".concat(o,"-fixed-header"),Le),"".concat(o,"-fixed-column"),Fe),"".concat(o,"-fixed-column-gapped"),Fe&&pe),"".concat(o,"-scroll-horizontal"),ze),"".concat(o,"-has-fix-left"),de[0]&&de[0].fixed),"".concat(o,"-has-fix-right"),de[de.length-1]&&"right"===de[de.length-1].fixed)),style:c,id:w,ref:he},St),m&&l.createElement(Wj,{className:"".concat(o,"-title")},m(H)),l.createElement("div",{ref:ye,className:"".concat(o,"-container")},pt),g&&l.createElement(Wj,{className:"".concat(o,"-footer")},g(H)));ze&&(Ot=l.createElement(Te,{onResize:function(e){var t,n=e.width;null===(t=He.current)||void 0===t||t.checkScrollBarVisible();var r=he.current?he.current.offsetWidth:n;_&&T&&he.current&&(r=T(he.current,r)||r),r!==le&&(ot(),ce(r))}},Ot));var It=function(e,t,n){var r=e.map(function(r,o){return cj(o,o,e,t,n)});return W(function(){return r},[r],function(e,t){return!ut(e,t)})}(de,Be,p),Nt=l.useMemo(function(){return{scrollX:me,prefixCls:o,getComponent:V,scrollbarSize:lt,direction:p,fixedInfoList:It,isSticky:_e,supportSticky:dt,componentWidth:le,fixHeader:Le,fixColumn:Fe,horizonScroll:ze,tableLayout:vt,rowClassName:a,expandedRowClassName:J.expandedRowClassName,expandIcon:ne,expandableType:ee,expandRowByClick:J.expandRowByClick,expandedRowRender:J.expandedRowRender,expandedRowOffset:J.expandedRowOffset,onTriggerExpand:oe,expandIconColumnIndex:J.expandIconColumnIndex,indentSize:J.indentSize,allColumnsFixedLeft:de.every(function(e){return"left"===e.fixed}),emptyNode:yt,columns:ue,flattenColumns:de,onColumnResize:qe,colWidths:De,hoverStartRow:Q,hoverEndRow:Y,onHover:q,rowExpandable:J.rowExpandable,onRow:k,getRowKey:G,expandedKeys:te,childrenColumnName:re,rowHoverable:F,measureRowRender:O}},[me,o,V,lt,p,It,_e,dt,le,Le,Fe,ze,vt,a,J.expandedRowClassName,ne,ee,J.expandRowByClick,J.expandedRowRender,J.expandedRowOffset,oe,J.expandIconColumnIndex,J.indentSize,yt,ue,de,qe,De,Q,Y,q,J.rowExpandable,k,G,te,re,F,O]);return l.createElement(tj.Provider,{value:Nt},Ot)}var Zj=l.forwardRef(qj);function Jj(e){return ZR(Zj,e)}var eM=Jj();eM.EXPAND_COLUMN=XR,eM.INTERNAL_HOOKS=KR,eM.Column=function(e){return null},eM.ColumnGroup=function(e){return null},eM.Summary=pj;var tM=QR(null),nM=QR(null);function rM(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,a=e.component,c=e.renderIndex,s=e.record,u=e.style,d=e.className,f=e.inverse,p=e.getHeight,m=n.render,g=n.dataIndex,h=n.className,v=n.width,x=YR(nM,["columnsOffset"]).columnsOffset,w=xj(t,n,r,o,i),C=w.key,S=w.fixedInfo,$=w.appendCellNode,k=w.additionalCellProps,E=k.style,O=k.colSpan,I=void 0===O?1:O,N=k.rowSpan,R=void 0===N?1:N,j=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,I,x),M=I>1?v-j:0,P=D(D(D({},E),u),{},{flex:"0 0 ".concat(j,"px"),width:"".concat(j,"px"),marginRight:M,pointerEvents:"auto"}),T=l.useMemo(function(){return f?R<=1:0===I||0===R||R>1},[R,I,f]);T?P.visibility="hidden":f&&(P.height=null==p?void 0:p(R));var B=T?function(){return null}:m,L={};return 0!==R&&0!==I||(L.rowSpan=1,L.colSpan=1),l.createElement(lj,y({className:b(h,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:C,record:s,index:i,renderIndex:c,dataIndex:g,render:B,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:$,additionalProps:D(D({},k),{},{style:P},L)}))}var oM=["data","index","className","rowKey","style","extra","getHeight"],iM=l.forwardRef(function(e,t){var n,r=e.data,o=e.index,i=e.className,a=e.rowKey,c=e.style,s=e.extra,u=e.getHeight,d=st(e,oM),f=r.record,p=r.indent,m=r.index,g=YR(tj,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=g.scrollX,v=g.flattenColumns,x=g.prefixCls,w=g.fixColumn,C=g.componentWidth,S=YR(tM,["getComponent"]).getComponent,$=hj(f,a,o,p),k=S(["body","row"],"div"),E=S(["body","cell"],"div"),O=$.rowSupportExpand,I=$.expanded,N=$.rowProps,R=$.expandedRowRender,j=$.expandedRowClassName;if(O&&I){var P=R(f,o,p+1,I),T=yj(j,f,o,p),B={};w&&(B={style:M({},"--virtual-width","".concat(C,"px"))});var L="".concat(x,"-expanded-row-cell");n=l.createElement(k,{className:b("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(p+1),T)},l.createElement(lj,{component:E,prefixCls:x,className:b(L,M({},"".concat(L,"-fixed"),w)),additionalProps:B},P))}var z=D(D({},c),{},{width:h});s&&(z.position="absolute",z.pointerEvents="none");var F=l.createElement(k,y({},N,d,{"data-row-key":a,ref:O?null:t,className:b(i,"".concat(x,"-row"),null==N?void 0:N.className,M({},"".concat(x,"-row-extra"),s)),style:D(D({},z),null==N?void 0:N.style)}),v.map(function(e,t){return l.createElement(rM,{key:t,component:E,rowInfo:$,column:e,colIndex:t,indent:p,index:o,renderIndex:m,record:f,inverse:s,getHeight:u})}));return O?l.createElement("div",{ref:t},F,n):F}),aM=JR(iM),lM=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=YR(tj,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=o.flattenColumns,a=o.onColumnResize,c=o.getRowKey,s=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.scrollX,p=o.direction,m=YR(tM),g=m.sticky,h=m.scrollY,v=m.listItemHeight,b=m.getComponent,y=m.onScroll,w=l.useRef(),C=gj(n,d,s,c),S=l.useMemo(function(){var e=0;return i.map(function(t){var n=t.width,r=t.minWidth,o=t.key,i=Math.max(n||0,r||0);return[o,i,e+=i]})},[i]),$=l.useMemo(function(){return S.map(function(e){return e[2]})},[S]);l.useEffect(function(){S.forEach(function(e){var t=Qe(e,2),n=t[0],r=t[1];a(n,r)})},[S]),l.useImperativeHandle(t,function(){var e,t={scrollTo:function(e){var t;null===(t=w.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=w.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=w.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=w.current)||void 0===t||t.scrollTo({left:e})}}),Object.defineProperty(t,"scrollTop",{get:function(){var e;return(null===(e=w.current)||void 0===e?void 0:e.getScrollInfo().y)||0},set:function(e){var t;null===(t=w.current)||void 0===t||t.scrollTo({top:e})}}),t});var k=function(e,t){var n,r=null===(n=C[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var i,a=o(r,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},E=l.useMemo(function(){return{columnsOffset:$}},[$]),O="".concat(u,"-tbody"),I=b(["body","wrapper"]),N={};return g&&(N.position="sticky",N.bottom=0,"object"===x(g)&&g.offsetScroll&&(N.bottom=g.offsetScroll)),l.createElement(nM.Provider,{value:E},l.createElement(Og,{fullHeight:!1,ref:w,prefixCls:"".concat(O,"-virtual"),styles:{horizontalScrollBar:N},className:O,height:h,itemHeight:v||24,data:C,itemKey:function(e){return c(e.record)},component:I,scrollWidth:f,direction:p,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=w.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:y,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,o=e.offsetY;if(n<0)return null;for(var a=i.filter(function(e){return 0===k(e,t)}),s=t,u=function(e){if(a=a.filter(function(t){return 0===k(t,e)}),!a.length)return s=e,1},d=t;d>=0&&!u(d);d-=1);for(var f=i.filter(function(e){return 1!==k(e,n)}),p=n,m=function(e){if(f=f.filter(function(t){return 1!==k(t,e)}),!f.length)return p=Math.max(e-1,n),1},g=n;g<C.length&&!m(g);g+=1);for(var h=[],v=function(e){if(!C[e])return 1;i.some(function(t){return k(t,e)>1})&&h.push(e)},b=s;b<=p;b+=1)v(b);var y=h.map(function(e){var t=C[e],n=c(t.record,e),i=r(n);return l.createElement(aM,{key:e,data:t,rowKey:n,index:e,style:{top:-o+i.top},extra:!0,getHeight:function(t){var o=e+t-1,i=c(C[o].record,o),a=r(n,i);return a.bottom-a.top}})});return y}},function(e,t,n){var r=c(e.record,t);return l.createElement(aM,{data:e,rowKey:r,index:t,style:n.style})}))}),cM=JR(lM),sM=function(e,t){var n=t.ref,r=t.onScroll;return l.createElement(cM,{ref:n,data:e,onScroll:r})};function uM(e,t){var n=e.data,r=e.columns,o=e.scroll,i=e.sticky,a=e.prefixCls,c=void 0===a?Xj:a,s=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,p=o||{},m=p.x,g=p.y;"number"!=typeof m&&(m=1),"number"!=typeof g&&(g=500);var h=wo(function(e,t){return Qn(d,e)||t}),v=wo(f),x=l.useMemo(function(){return{sticky:i,scrollY:g,listItemHeight:u,getComponent:h,onScroll:v}},[i,g,u,h,v]);return l.createElement(tM.Provider,{value:x},l.createElement(eM,y({},e,{className:b(s,"".concat(c,"-virtual")),scroll:D(D({},o),{},{x:m}),components:D(D({},d),{},{body:null!=n&&n.length?sM:void 0}),columns:r,internalHooks:KR,tailor:!0,ref:t})))}var dM=l.forwardRef(uM);function fM(e){return ZR(dM,e)}fM();var pM=l.createContext(null),mM=l.createContext({}),gM=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,i="".concat(t,"-indent-unit"),a=[],c=0;c<n;c+=1)a.push(l.createElement("span",{key:c,className:b(i,M(M({},"".concat(i,"-start"),r[c]),"".concat(i,"-end"),o[c]))}));return l.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},a)},hM=l.memo(gM),vM=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],bM="open",yM="close",xM=function(t){var n,r,o,i=t.eventKey,a=t.className,l=t.style,c=t.dragOver,s=t.dragOverGapTop,u=t.dragOverGapBottom,d=t.isLeaf,f=t.isStart,p=t.isEnd,m=t.expanded,g=t.selected,h=t.checked,v=t.halfChecked,x=t.loading,w=t.domRef,C=t.active,S=t.data,$=t.onMouseMove,k=t.selectable,E=st(t,vM),O=e.useContext(pM),I=e.useContext(mM),N=e.useRef(null),R=Qe(e.useState(!1),2),j=R[0],P=R[1],T=!!(O.disabled||t.disabled||null!==(n=I.nodeDisabled)&&void 0!==n&&n.call(I,S)),B=e.useMemo(function(){return!(!O.checkable||!1===t.checkable)&&O.checkable},[O.checkable,t.checkable]),L=function(e){T||B&&!t.disableCheckbox&&O.onNodeCheck(e,J$(t),!h)},z=e.useMemo(function(){return"boolean"==typeof k?k:O.selectable},[k,O.selectable]),F=function(e){O.onNodeClick(e,J$(t)),z?function(e){T||O.onNodeSelect(e,J$(t))}(e):L(e)},H=function(e){O.onNodeDoubleClick(e,J$(t))},A=function(e){O.onNodeMouseEnter(e,J$(t))},_=function(e){O.onNodeMouseLeave(e,J$(t))},W=function(e){O.onNodeContextMenu(e,J$(t))},V=e.useMemo(function(){return!(!O.draggable||O.draggable.nodeDraggable&&!O.draggable.nodeDraggable(S))},[O.draggable,S]),G=function(e){x||O.onNodeExpand(e,J$(t))},U=e.useMemo(function(){var e=(V$(O.keyEntities,i)||{}).children;return Boolean((e||[]).length)},[O.keyEntities,i]),X=e.useMemo(function(){return!1!==d&&(d||!O.loadData&&!U||O.loadData&&t.loaded&&!U)},[d,O.loadData,U,t.loaded]);e.useEffect(function(){x||"function"!=typeof O.loadData||!m||X||t.loaded||O.onNodeLoad(J$(t))},[x,O.loadData,O.onNodeLoad,m,X,t]);var K=e.useMemo(function(){var t;return null!==(t=O.draggable)&&void 0!==t&&t.icon?e.createElement("span",{className:"".concat(O.prefixCls,"-draggable-icon")},O.draggable.icon):null},[O.draggable]),Q=function(e){var n=t.switcherIcon||O.switcherIcon;return"function"==typeof n?n(D(D({},t),{},{isLeaf:e})):n},Y=e.useMemo(function(){if(!B)return null;var n="boolean"!=typeof B?B:null;return e.createElement("span",{className:b("".concat(O.prefixCls,"-checkbox"),M(M(M({},"".concat(O.prefixCls,"-checkbox-checked"),h),"".concat(O.prefixCls,"-checkbox-indeterminate"),!h&&v),"".concat(O.prefixCls,"-checkbox-disabled"),T||t.disableCheckbox)),onClick:L,role:"checkbox","aria-checked":v?"mixed":h,"aria-disabled":T||t.disableCheckbox,"aria-label":"Select ".concat("string"==typeof t.title?t.title:"tree node")},n)},[B,h,v,T,t.disableCheckbox,t.title]),q=e.useMemo(function(){return X?null:m?bM:yM},[X,m]),Z=e.useMemo(function(){return e.createElement("span",{className:b("".concat(O.prefixCls,"-iconEle"),"".concat(O.prefixCls,"-icon__").concat(q||"docu"),M({},"".concat(O.prefixCls,"-icon_loading"),x))})},[O.prefixCls,q,x]),J=e.useMemo(function(){var e=Boolean(O.draggable);return!t.disabled&&e&&O.dragOverNodeKey===i?O.dropIndicatorRender({dropPosition:O.dropPosition,dropLevelOffset:O.dropLevelOffset,indent:O.indent,prefixCls:O.prefixCls,direction:O.direction}):null},[O.dropPosition,O.dropLevelOffset,O.indent,O.prefixCls,O.direction,O.draggable,O.dragOverNodeKey,O.dropIndicatorRender]),ee=e.useMemo(function(){var n,r,o=t.title,i=void 0===o?"---":o,a="".concat(O.prefixCls,"-node-content-wrapper");if(O.showIcon){var l=t.icon||O.icon;n=l?e.createElement("span",{className:b("".concat(O.prefixCls,"-iconEle"),"".concat(O.prefixCls,"-icon__customize"))},"function"==typeof l?l(t):l):Z}else O.loadData&&x&&(n=Z);return r="function"==typeof i?i(S):O.titleRender?O.titleRender(S):i,e.createElement("span",{ref:N,title:"string"==typeof i?i:"",className:b(a,"".concat(a,"-").concat(q||"normal"),M({},"".concat(O.prefixCls,"-node-selected"),!T&&(g||j))),onMouseEnter:A,onMouseLeave:_,onContextMenu:W,onClick:F,onDoubleClick:H},n,e.createElement("span",{className:"".concat(O.prefixCls,"-title")},r),J)},[O.prefixCls,O.showIcon,t,O.icon,Z,O.titleRender,S,q,A,_,W,F,H]),te=Ya(E,{aria:!0,data:!0}),ne=(V$(O.keyEntities,i)||{}).level,re=p[p.length-1],oe=!T&&V,ie=O.draggingNodeKey===i,ae=void 0!==k?{"aria-selected":!!k}:void 0;return e.createElement("div",y({ref:w,role:"treeitem","aria-expanded":d?void 0:m,className:b(a,"".concat(O.prefixCls,"-treenode"),(o={},M(M(M(M(M(M(M(M(M(M(o,"".concat(O.prefixCls,"-treenode-disabled"),T),"".concat(O.prefixCls,"-treenode-switcher-").concat(m?"open":"close"),!d),"".concat(O.prefixCls,"-treenode-checkbox-checked"),h),"".concat(O.prefixCls,"-treenode-checkbox-indeterminate"),v),"".concat(O.prefixCls,"-treenode-selected"),g),"".concat(O.prefixCls,"-treenode-loading"),x),"".concat(O.prefixCls,"-treenode-active"),C),"".concat(O.prefixCls,"-treenode-leaf-last"),re),"".concat(O.prefixCls,"-treenode-draggable"),V),"dragging",ie),M(M(M(M(M(M(M(o,"drop-target",O.dropTargetKey===i),"drop-container",O.dropContainerKey===i),"drag-over",!T&&c),"drag-over-gap-top",!T&&s),"drag-over-gap-bottom",!T&&u),"filter-node",null===(r=O.filterTreeNode)||void 0===r?void 0:r.call(O,J$(t))),"".concat(O.prefixCls,"-treenode-leaf"),X))),style:l,draggable:oe,onDragStart:oe?function(e){e.stopPropagation(),P(!0),O.onNodeDragStart(e,t);try{e.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:V?function(e){e.preventDefault(),e.stopPropagation(),O.onNodeDragEnter(e,t)}:void 0,onDragOver:V?function(e){e.preventDefault(),e.stopPropagation(),O.onNodeDragOver(e,t)}:void 0,onDragLeave:V?function(e){e.stopPropagation(),O.onNodeDragLeave(e,t)}:void 0,onDrop:V?function(e){e.preventDefault(),e.stopPropagation(),P(!1),O.onNodeDrop(e,t)}:void 0,onDragEnd:V?function(e){e.stopPropagation(),P(!1),O.onNodeDragEnd(e,t)}:void 0,onMouseMove:$},ae,te),e.createElement(hM,{prefixCls:O.prefixCls,level:ne,isStart:f,isEnd:p}),K,function(){if(X){var t=Q(!0);return!1!==t?e.createElement("span",{className:b("".concat(O.prefixCls,"-switcher"),"".concat(O.prefixCls,"-switcher-noop"))},t):null}var n=Q(!1);return!1!==n?e.createElement("span",{onClick:G,className:b("".concat(O.prefixCls,"-switcher"),"".concat(O.prefixCls,"-switcher_").concat(m?bM:yM))},n):null}(),Y,ee)};function wM(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function CM(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function SM(e){return e.split("-")}function $M(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(t){var r=t.key,o=t.children;n.push(r),e(o)})}(V$(t,e).children),n}function kM(e){if(e.parent){var t=SM(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function EM(e,t,n,r,o,i,a,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,h=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,v=c.filter(function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length}),b=V$(l,n.eventKey);if(f<m+g/2){var y=a.findIndex(function(e){return e.key===b.key}),x=a[y<=0?0:y-1].key;b=V$(l,x)}var w=b.key,C=b,S=b.key,$=0,k=0;if(!v.includes(w))for(var E=0;E<h&&kM(b);E+=1)b=b.parent,k+=1;var O,I=t.data,N=b.node,R=!0;return O=SM(b.pos),0===Number(O[O.length-1])&&0===b.level&&f<m+g/2&&i({dragNode:I,dropNode:N,dropPosition:-1})&&b.key===n.eventKey?$=-1:(C.children||[]).length&&v.includes(S)?i({dragNode:I,dropNode:N,dropPosition:0})?$=0:R=!1:0===k?h>-1.5?i({dragNode:I,dropNode:N,dropPosition:1})?$=1:R=!1:i({dragNode:I,dropNode:N,dropPosition:0})?$=0:i({dragNode:I,dropNode:N,dropPosition:1})?$=1:R=!1:i({dragNode:I,dropNode:N,dropPosition:1})?$=1:R=!1,{dropPosition:$,dropLevelOffset:k,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:S,dropContainerKey:0===$?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:R}}function OM(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function IM(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==x(e))return R(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function NM(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=V$(t,e);if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(e){r(e)}),Fe(n)}xM.isTreeNode=1;const RM={},jM="SELECT_ALL",MM="SELECT_INVERT",PM="SELECT_NONE",DM=[],TM=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&TM(e,t[e],n)}),n),BM=(t,n)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:o,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:c,onChange:s,onSelect:u,onSelectAll:d,onSelectInvert:f,onSelectNone:p,onSelectMultiple:m,columnWidth:g,type:h,selections:v,fixed:y,renderCell:x,hideSelectAll:w,checkStrictly:C=!0}=n||{},{prefixCls:S,data:$,pageData:k,getRecordByKey:E,getRowKey:O,expandType:I,childrenColumnName:N,locale:R,getPopupContainer:j}=t,M=rr(),[P,D]=(t=>{const[n,r]=e.useState(null);return[e.useCallback((e,o,i)=>{const a=null!=n?n:e,l=Math.min(a||0,e),c=Math.max(a||0,e),s=o.slice(l,c+1).map(t),u=s.some(e=>!i.has(e)),d=[];return s.forEach(e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))}),r(u?c:null),d},[n]),r]})(e=>e),[T,B]=$o(o||i||DM,{value:o}),L=l.useRef(new Map),z=e.useCallback(e=>{if(r){const t=new Map;e.forEach(e=>{let n=E(e);!n&&L.current.has(e)&&(n=L.current.get(e)),t.set(e,n)}),L.current=t}},[E,r]);l.useEffect(()=>{z(T)},[T]);const F=e.useMemo(()=>TM(N,k),[N,k]),{keyEntities:H}=e.useMemo(()=>{if(C)return{keyEntities:null};let e=$;if(r){const t=new Set(F.map((e,t)=>O(e,t))),n=Array.from(L.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(Fe(e),Fe(n))}return q$(e,{externalGetKey:O,childrenPropName:N})},[$,O,C,N,r,F]),A=e.useMemo(()=>{const e=new Map;return F.forEach((t,n)=>{const r=O(t,n),o=(a?a(t):null)||{};e.set(r,o)}),e},[F,O,a]),_=e.useCallback(e=>{const t=O(e);let n;return n=A.has(t)?A.get(O(e)):a?a(e):void 0,!!(null==n?void 0:n.disabled)},[A,O]),[W,V]=e.useMemo(()=>{if(C)return[T||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=rk(T,!0,H,_);return[e||[],t]},[T,C,H,_]),G=e.useMemo(()=>{const e="radio"===h?W.slice(0,1):W;return new Set(e)},[W,h]),U=e.useMemo(()=>"radio"===h?new Set:new Set(V),[V,h]);l.useEffect(()=>{n||B(DM)},[!!n]);const X=e.useCallback((e,t)=>{let n,o;z(e),r?(n=e,o=e.map(e=>L.current.get(e))):(n=[],o=[],e.forEach(e=>{const t=E(e);void 0!==t&&(n.push(e),o.push(t))})),B(n),null==s||s(n,o,{type:t})},[B,E,s,r]),K=e.useCallback((e,t,n,r)=>{if(u){const o=n.map(e=>E(e));u(E(e),t,o,r)}X(n,"single")},[u,E,X]),Q=e.useMemo(()=>{if(!v||w)return null;return(!0===v?[jM,MM,PM]:v).map(e=>e===jM?{key:"all",text:R.selectionAll,onSelect(){X($.map((e,t)=>O(e,t)).filter(e=>{const t=A.get(e);return!(null==t?void 0:t.disabled)||G.has(e)}),"all")}}:e===MM?{key:"invert",text:R.selectInvert,onSelect(){const e=new Set(G);k.forEach((t,n)=>{const r=O(t,n),o=A.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});const t=Array.from(e);f&&(M.deprecated(!1,"onSelectInvert","onChange"),f(t)),X(t,"invert")}}:e===PM?{key:"none",text:R.selectNone,onSelect(){null==p||p(),X(Array.from(G).filter(e=>{const t=A.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:(...t)=>{var n,r;null===(r=e.onSelect)||void 0===r||(n=r).call.apply(n,[e].concat(t)),D(null)}}))},[v,G,k,O,f,X]),Y=e.useCallback(e=>{var t;if(!n)return e.filter(e=>e!==RM);let r=Fe(e);const o=new Set(G),i=F.map(O).filter(e=>!A.get(e).disabled),a=i.every(e=>o.has(e)),s=i.some(e=>o.has(e));let u,f,p;if("radio"!==h){let e;if(Q){const t={getPopupContainer:j,items:Q.map((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(i)},label:r}})};e=l.createElement("div",{className:`${S}-selection-extra`},l.createElement(RO,{menu:t,getPopupContainer:j},l.createElement("span",null,l.createElement(Mh,null))))}const t=F.map((e,t)=>{const n=O(e,t),r=A.get(n)||{};return Object.assign({checked:o.has(n)},r)}).filter(({disabled:e})=>e),n=!!t.length&&t.length===F.length,r=n&&t.every(({checked:e})=>e),p=n&&t.some(({checked:e})=>e),m=(null==c?void 0:c())||{},{onChange:g,disabled:h}=m;f=l.createElement(zk,Object.assign({"aria-label":e?"Custom selection":"Select all"},m,{checked:n?r:!!F.length&&a,indeterminate:n?!r&&p:!a&&s,onChange:e=>{(()=>{const e=[];a?i.forEach(t=>{o.delete(t),e.push(t)}):i.forEach(t=>{o.has(t)||(o.add(t),e.push(t))});const t=Array.from(o);null==d||d(!a,t.map(e=>E(e)),e.map(e=>E(e))),X(t,"all"),D(null)})(),null==g||g(e)},disabled:null!=h?h:0===F.length||n,skipGroup:!0})),u=!w&&l.createElement("div",{className:`${S}-selection`},f,e)}p="radio"===h?(e,t,n)=>{const r=O(t,n),i=o.has(r),a=A.get(r);return{node:l.createElement(PC,Object.assign({},a,{checked:i,onClick:e=>{var t;e.stopPropagation(),null===(t=null==a?void 0:a.onClick)||void 0===t||t.call(a,e)},onChange:e=>{var t;o.has(r)||K(r,!0,[r],e.nativeEvent),null===(t=null==a?void 0:a.onChange)||void 0===t||t.call(a,e)}})),checked:i}}:(e,t,n)=>{var r;const a=O(t,n),c=o.has(a),s=U.has(a),u=A.get(a);let d;return d="nest"===I?s:null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:s,{node:l.createElement(zk,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null==u?void 0:u.onClick)||void 0===t||t.call(u,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:r}=n,l=i.indexOf(a),s=W.some(e=>i.includes(e));if(r&&C&&s){const e=P(l,i,o),t=Array.from(o);null==m||m(!c,t.map(e=>E(e)),e.map(e=>E(e))),X(t,"multiple")}else{const e=W;if(C){const t=c?wM(e,a):CM(e,a);K(a,!c,t,n)}else{const t=rk([].concat(Fe(e),[a]),!0,H,_),{checkedKeys:r,halfCheckedKeys:o}=t;let i=r;if(c){const e=new Set(r);e.delete(a),i=rk(Array.from(e),{halfCheckedKeys:o},H,_).checkedKeys}K(a,!c,i,n)}}D(c?null:l),null===(t=null==u?void 0:u.onChange)||void 0===t||t.call(u,e)}})),checked:c}};if(!r.includes(RM))if(0===r.findIndex(e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[Ej])||void 0===t?void 0:t.columnType)})){const[e,...t]=r;r=[e,RM].concat(Fe(t))}else r=[RM].concat(Fe(r));const $=r.indexOf(RM);r=r.filter((e,t)=>e!==RM||t===$);const k=r[$-1],N=r[$+1];let R=y;void 0===R&&(void 0!==(null==N?void 0:N.fixed)?R=N.fixed:void 0!==(null==k?void 0:k.fixed)&&(R=k.fixed)),R&&k&&"EXPAND_COLUMN"===(null===(t=k[Ej])||void 0===t?void 0:t.columnType)&&void 0===k.fixed&&(k.fixed=R);const M=b(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:v&&"checkbox"===h}),T={fixed:R,width:g,className:`${S}-selection-column`,title:(null==n?void 0:n.columnTitle)?"function"==typeof n.columnTitle?n.columnTitle(f):n.columnTitle:u,render:(e,t,n)=>{const{node:r,checked:o}=p(e,t,n);return x?x(o,t,n,r):r},onCell:n.onCell,align:n.align,[Ej]:{className:M}};return r.map(e=>e===RM?T:e)},[O,F,n,W,G,U,g,Q,I,A,m,K,_]);return[Y,G]};const LM=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function zM(e,t){return t?`${t}-${e}`:`${e}`}const FM=(e,t)=>"function"==typeof e?e(t):e;var HM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},AM=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:HM}))},_M=l.forwardRef(AM);function WM(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var VM=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],GM=l.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,c=e.onMotionStart,s=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=st(e,VM),p=Qe(l.useState(!0),2),m=p[0],g=p[1],h=l.useContext(pM).prefixCls,v=i&&"hide"!==a;Dt(function(){i&&v!==m&&g(v)},[i]);var x=l.useRef(!1),w=function(){i&&!x.current&&(x.current=!0,s())};!function(e,t){var n=Qe(l.useState(!1),2),r=n[0],o=n[1];Dt(function(){if(r)return e(),function(){t()}},[r]),Dt(function(){return o(!0),function(){o(!1)}},[])}(function(){i&&c()},w);return i?l.createElement(Ai,y({ref:t,visible:m},o,{motionAppear:"show"===a,onVisibleChanged:function(e){v===e&&w()}}),function(e,t){var n=e.className,r=e.style;return l.createElement("div",{ref:t,className:b("".concat(h,"-treenode-motion"),n),style:r},i.map(function(e){var t=Object.assign({},(WM(e.data),e.data)),n=e.title,r=e.key,o=e.isStart,i=e.isEnd;delete t.children;var a=Z$(r,d);return l.createElement(xM,y({},t,a,{title:n,active:u,data:e.data,key:r,isStart:o,isEnd:i}))}))}):l.createElement(xM,y({domRef:t,className:n,style:r},f,{active:u}))});function UM(e,t,n){var r=e.findIndex(function(e){return e.key===n}),o=e[r+1],i=t.findIndex(function(e){return e.key===n});if(o){var a=t.findIndex(function(e){return e.key===o.key});return t.slice(i+1,a)}return t.slice(i+1)}var XM=["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"],KM={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},QM=function(){},YM="RC_TREE_MOTION_".concat(Math.random()),qM={key:YM},ZM={key:YM,level:0,index:0,pos:"0",node:qM,nodes:[qM]},JM={parent:null,children:[],pos:ZM.pos,data:qM,title:null,key:YM,isStart:[],isEnd:[]};function eP(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function tP(e){return X$(e.key,e.pos)}var nP=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,c=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,m=e.dragOverNodeKey,g=e.dropPosition,h=e.motion,v=e.height,b=e.itemHeight,x=e.virtual,w=e.scrollWidth,C=e.focusable,S=e.activeItem,$=e.focused,k=e.tabIndex,E=e.onKeyDown,O=e.onFocus,I=e.onBlur,N=e.onActiveChange,R=e.onListChangeStart,j=e.onListChangeEnd,M=st(e,XM),P=l.useRef(null),D=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(e){P.current.scrollTo(e)},getIndentWidth:function(){return D.current.offsetWidth}}});var T=Qe(l.useState(o),2),B=T[0],L=T[1],z=Qe(l.useState(r),2),F=z[0],H=z[1],A=Qe(l.useState(r),2),_=A[0],W=A[1],V=Qe(l.useState([]),2),G=V[0],U=V[1],X=Qe(l.useState(null),2),K=X[0],Q=X[1],Y=l.useRef(r);function q(){var e=Y.current;H(e),W(e),U([]),Q(null),j()}Y.current=r,Dt(function(){L(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var r=t.filter(function(e){return!n.has(e)});return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(B,o);if(null!==e.key)if(e.add){var t=F.findIndex(function(t){return t.key===e.key}),n=eP(UM(F,r,e.key),x,v,b),i=F.slice();i.splice(t+1,0,JM),W(i),U(n),Q("show")}else{var a=r.findIndex(function(t){return t.key===e.key}),l=eP(UM(r,F,e.key),x,v,b),c=r.slice();c.splice(a+1,0,JM),W(c),U(l),Q("hide")}else F!==r&&(H(r),W(r))},[o,r]),l.useEffect(function(){p||q()},[p]);var Z=h?_:r,J={expandedKeys:o,selectedKeys:i,loadedKeys:c,loadingKeys:s,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:m,dropPosition:g,keyEntities:d};return l.createElement(l.Fragment,null,$&&S&&l.createElement("span",{style:KM,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(S)),l.createElement("div",null,l.createElement("input",{style:KM,disabled:!1===C||f,tabIndex:!1!==C?k:null,onKeyDown:E,onFocus:O,onBlur:I,value:"",onChange:QM,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:D,className:"".concat(n,"-indent-unit")}))),l.createElement(Og,y({},M,{data:Z,itemKey:tP,height:v,fullHeight:!1,virtual:x,itemHeight:b,scrollWidth:w,prefixCls:"".concat(n,"-list"),ref:P,role:"tree",onVisibleChange:function(e){e.every(function(e){return tP(e)!==YM})&&q()}}),function(e){var t=e.pos,n=Object.assign({},(WM(e.data),e.data)),r=e.title,o=e.key,i=e.isStart,a=e.isEnd,c=X$(o,t);delete n.key,delete n.children;var s=Z$(c,J);return l.createElement(GM,y({},n,s,{title:r,active:!!S&&o===S.key,pos:t,data:e.data,isStart:i,isEnd:a,motion:h,motionNodes:o===YM?G:null,motionType:K,onMotionStart:R,onMotionEnd:q,treeNodeRequiredProps:J,onMouseMove:function(){N(null)}}))}))}),rP=function(){Ee(t,l.Component);var e=Re(t);function t(){var n;Ce(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return M(Ne(n=e.call.apply(e,[this].concat(o))),"destroyed",!1),M(Ne(n),"delayedDragEnterLogic",void 0),M(Ne(n),"loadingRetryTimes",{}),M(Ne(n),"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:K$()}),M(Ne(n),"dragStartMousePosition",null),M(Ne(n),"dragNodeProps",null),M(Ne(n),"currentMouseOverDroppableNodeKey",null),M(Ne(n),"listRef",l.createRef()),M(Ne(n),"onNodeDragStart",function(e,t){var r=n.state,o=r.expandedKeys,i=r.keyEntities,a=n.props.onDragStart,l=t.eventKey;n.dragNodeProps=t,n.dragStartMousePosition={x:e.clientX,y:e.clientY};var c=wM(o,l);n.setState({draggingNodeKey:l,dragChildrenKeys:$M(l,i),indent:n.listRef.current.getIndentWidth()}),n.setExpandedKeys(c),window.addEventListener("dragend",n.onWindowDragEnd),null==a||a({event:e,node:J$(t)})}),M(Ne(n),"onNodeDragEnter",function(e,t){var r=n.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,l=r.flattenNodes,c=r.indent,s=n.props,u=s.onDragEnter,d=s.onExpand,f=s.allowDrop,p=s.direction,m=t.pos,g=t.eventKey;if(n.currentMouseOverDroppableNodeKey!==g&&(n.currentMouseOverDroppableNodeKey=g),n.dragNodeProps){var h=EM(e,n.dragNodeProps,t,c,n.dragStartMousePosition,f,l,i,o,p),v=h.dropPosition,b=h.dropLevelOffset,y=h.dropTargetKey,x=h.dropContainerKey,w=h.dropTargetPos,C=h.dropAllowed,S=h.dragOverNodeKey;!a.includes(y)&&C?(n.delayedDragEnterLogic||(n.delayedDragEnterLogic={}),Object.keys(n.delayedDragEnterLogic).forEach(function(e){clearTimeout(n.delayedDragEnterLogic[e])}),n.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),n.delayedDragEnterLogic[m]=window.setTimeout(function(){if(null!==n.state.draggingNodeKey){var r=Fe(o),a=V$(i,t.eventKey);a&&(a.children||[]).length&&(r=CM(o,t.eventKey)),n.props.hasOwnProperty("expandedKeys")||n.setExpandedKeys(r),null==d||d(r,{node:J$(t),expanded:!0,nativeEvent:e.nativeEvent})}},800)),n.dragNodeProps.eventKey!==y||0!==b?(n.setState({dragOverNodeKey:S,dropPosition:v,dropLevelOffset:b,dropTargetKey:y,dropContainerKey:x,dropTargetPos:w,dropAllowed:C}),null==u||u({event:e,node:J$(t),expandedKeys:o})):n.resetDragState()):n.resetDragState()}else n.resetDragState()}),M(Ne(n),"onNodeDragOver",function(e,t){var r=n.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,l=r.expandedKeys,c=r.indent,s=n.props,u=s.onDragOver,d=s.allowDrop,f=s.direction;if(n.dragNodeProps){var p=EM(e,n.dragNodeProps,t,c,n.dragStartMousePosition,d,i,a,l,f),m=p.dropPosition,g=p.dropLevelOffset,h=p.dropTargetKey,v=p.dropContainerKey,b=p.dropTargetPos,y=p.dropAllowed,x=p.dragOverNodeKey;!o.includes(h)&&y&&(n.dragNodeProps.eventKey===h&&0===g?null===n.state.dropPosition&&null===n.state.dropLevelOffset&&null===n.state.dropTargetKey&&null===n.state.dropContainerKey&&null===n.state.dropTargetPos&&!1===n.state.dropAllowed&&null===n.state.dragOverNodeKey||n.resetDragState():m===n.state.dropPosition&&g===n.state.dropLevelOffset&&h===n.state.dropTargetKey&&v===n.state.dropContainerKey&&b===n.state.dropTargetPos&&y===n.state.dropAllowed&&x===n.state.dragOverNodeKey||n.setState({dropPosition:m,dropLevelOffset:g,dropTargetKey:h,dropContainerKey:v,dropTargetPos:b,dropAllowed:y,dragOverNodeKey:x}),null==u||u({event:e,node:J$(t)}))}}),M(Ne(n),"onNodeDragLeave",function(e,t){n.currentMouseOverDroppableNodeKey!==t.eventKey||e.currentTarget.contains(e.relatedTarget)||(n.resetDragState(),n.currentMouseOverDroppableNodeKey=null);var r=n.props.onDragLeave;null==r||r({event:e,node:J$(t)})}),M(Ne(n),"onWindowDragEnd",function(e){n.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",n.onWindowDragEnd)}),M(Ne(n),"onNodeDragEnd",function(e,t){var r=n.props.onDragEnd;n.setState({dragOverNodeKey:null}),n.cleanDragState(),null==r||r({event:e,node:J$(t)}),n.dragNodeProps=null,window.removeEventListener("dragend",n.onWindowDragEnd)}),M(Ne(n),"onNodeDrop",function(e,t){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var u=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),null!==c){var d=D(D({},Z$(c,n.getTreeNodeRequiredProps())),{},{active:(null===(r=n.getActiveItem())||void 0===r?void 0:r.key)===c,data:V$(n.state.keyEntities,c).node});R(!a.includes(c),"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var f=SM(s),p={event:e,node:J$(d),dragNode:n.dragNodeProps?J$(n.dragNodeProps):null,dragNodesKeys:[n.dragNodeProps.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(f[f.length-1])};o||null==u||u(p),n.dragNodeProps=null}}}),M(Ne(n),"cleanDragState",function(){null!==n.state.draggingNodeKey&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null}),M(Ne(n),"triggerExpandActionExpand",function(e,t){var r=n.state,o=r.expandedKeys,i=r.flattenNodes,a=t.expanded,l=t.key;if(!(t.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey)){var c=i.filter(function(e){return e.key===l})[0],s=J$(D(D({},Z$(l,n.getTreeNodeRequiredProps())),{},{data:c.data}));n.setExpandedKeys(a?wM(o,l):CM(o,l)),n.onNodeExpand(e,s)}}),M(Ne(n),"onNodeClick",function(e,t){var r=n.props,o=r.onClick;"click"===r.expandAction&&n.triggerExpandActionExpand(e,t),null==o||o(e,t)}),M(Ne(n),"onNodeDoubleClick",function(e,t){var r=n.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&n.triggerExpandActionExpand(e,t),null==o||o(e,t)}),M(Ne(n),"onNodeSelect",function(e,t){var r=n.state.selectedKeys,o=n.state,i=o.keyEntities,a=o.fieldNames,l=n.props,c=l.onSelect,s=l.multiple,u=t.selected,d=t[a.key],f=!u,p=(r=f?s?CM(r,d):[d]:wM(r,d)).map(function(e){var t=V$(i,e);return t?t.node:null}).filter(Boolean);n.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:e.nativeEvent})}),M(Ne(n),"onNodeCheck",function(e,t,r){var o,i=n.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=n.props,u=s.checkStrictly,d=s.onCheck,f=t.key,p={event:"check",node:t,checked:r,nativeEvent:e.nativeEvent};if(u){var m=r?CM(l,f):wM(l,f);o={checked:m,halfChecked:wM(c,f)},p.checkedNodes=m.map(function(e){return V$(a,e)}).filter(Boolean).map(function(e){return e.node}),n.setUncontrolledState({checkedKeys:m})}else{var g=rk([].concat(Fe(l),[f]),!0,a),h=g.checkedKeys,v=g.halfCheckedKeys;if(!r){var b=new Set(h);b.delete(f);var y=rk(Array.from(b),{halfCheckedKeys:v},a);h=y.checkedKeys,v=y.halfCheckedKeys}o=h,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,h.forEach(function(e){var t=V$(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}}),n.setUncontrolledState({checkedKeys:h},!1,{halfCheckedKeys:v})}null==d||d(o,p)}),M(Ne(n),"onNodeLoad",function(e){var t,r=e.key,o=V$(n.state.keyEntities,r);if(null==o||null===(t=o.children)||void 0===t||!t.length){var i=new Promise(function(t,o){n.setState(function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=n.props,d=u.loadData,f=u.onLoad;return!d||l.includes(r)||s.includes(r)?null:(d(e).then(function(){var o=CM(n.state.loadedKeys,r);null==f||f(o,{event:"load",node:e}),n.setUncontrolledState({loadedKeys:o}),n.setState(function(e){return{loadingKeys:wM(e.loadingKeys,r)}}),t()}).catch(function(e){if(n.setState(function(e){return{loadingKeys:wM(e.loadingKeys,r)}}),n.loadingRetryTimes[r]=(n.loadingRetryTimes[r]||0)+1,n.loadingRetryTimes[r]>=10){var i=n.state.loadedKeys;R(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:CM(i,r)}),t()}o(e)}),{loadingKeys:CM(s,r)})})});return i.catch(function(){}),i}}),M(Ne(n),"onNodeMouseEnter",function(e,t){var r=n.props.onMouseEnter;null==r||r({event:e,node:t})}),M(Ne(n),"onNodeMouseLeave",function(e,t){var r=n.props.onMouseLeave;null==r||r({event:e,node:t})}),M(Ne(n),"onNodeContextMenu",function(e,t){var r=n.props.onRightClick;r&&(e.preventDefault(),r({event:e,node:t}))}),M(Ne(n),"onFocus",function(){var e=n.props.onFocus;n.setState({focused:!0});for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];null==e||e.apply(void 0,r)}),M(Ne(n),"onBlur",function(){var e=n.props.onBlur;n.setState({focused:!1}),n.onActiveChange(null);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];null==e||e.apply(void 0,r)}),M(Ne(n),"getTreeNodeRequiredProps",function(){var e=n.state;return{expandedKeys:e.expandedKeys||[],selectedKeys:e.selectedKeys||[],loadedKeys:e.loadedKeys||[],loadingKeys:e.loadingKeys||[],checkedKeys:e.checkedKeys||[],halfCheckedKeys:e.halfCheckedKeys||[],dragOverNodeKey:e.dragOverNodeKey,dropPosition:e.dropPosition,keyEntities:e.keyEntities}}),M(Ne(n),"setExpandedKeys",function(e){var t=n.state,r=Y$(t.treeData,e,t.fieldNames);n.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)}),M(Ne(n),"onNodeExpand",function(e,t){var r=n.state.expandedKeys,o=n.state,i=o.listChanging,a=o.fieldNames,l=n.props,c=l.onExpand,s=l.loadData,u=t.expanded,d=t[a.key];if(!i){var f=r.includes(d),p=!u;if(R(u&&f||!u&&!f,"Expand state not sync with index check"),r=p?CM(r,d):wM(r,d),n.setExpandedKeys(r),null==c||c(r,{node:t,expanded:p,nativeEvent:e.nativeEvent}),p&&s){var m=n.onNodeLoad(t);m&&m.then(function(){var e=Y$(n.state.treeData,r,a);n.setUncontrolledState({flattenNodes:e})}).catch(function(){var e=wM(n.state.expandedKeys,d);n.setExpandedKeys(e)})}}}),M(Ne(n),"onListChangeStart",function(){n.setUncontrolledState({listChanging:!0})}),M(Ne(n),"onListChangeEnd",function(){setTimeout(function(){n.setUncontrolledState({listChanging:!1})})}),M(Ne(n),"onActiveChange",function(e){var t=n.state.activeKey,r=n.props,o=r.onActiveChange,i=r.itemScrollOffset,a=void 0===i?0:i;t!==e&&(n.setState({activeKey:e}),null!==e&&n.scrollTo({key:e,offset:a}),null==o||o(e))}),M(Ne(n),"getActiveItem",function(){var e=n.state,t=e.activeKey,r=e.flattenNodes;return null===t?null:r.find(function(e){return e.key===t})||null}),M(Ne(n),"offsetActiveKey",function(e){var t=n.state,r=t.flattenNodes,o=t.activeKey,i=r.findIndex(function(e){return e.key===o});-1===i&&e<0&&(i=r.length);var a=r[i=(i+e+r.length)%r.length];if(a){var l=a.key;n.onActiveChange(l)}else n.onActiveChange(null)}),M(Ne(n),"onKeyDown",function(e){var t=n.state,r=t.activeKey,o=t.expandedKeys,i=t.checkedKeys,a=t.fieldNames,l=n.props,c=l.onKeyDown,s=l.checkable,u=l.selectable;switch(e.which){case sl.UP:n.offsetActiveKey(-1),e.preventDefault();break;case sl.DOWN:n.offsetActiveKey(1),e.preventDefault()}var d=n.getActiveItem();if(d&&d.data){var f=n.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,m=J$(D(D({},Z$(r,f)),{},{data:d.data,active:!0}));switch(e.which){case sl.LEFT:p&&o.includes(r)?n.onNodeExpand({},m):d.parent&&n.onActiveChange(d.parent.key),e.preventDefault();break;case sl.RIGHT:p&&!o.includes(r)?n.onNodeExpand({},m):d.children&&d.children.length&&n.onActiveChange(d.children[0].key),e.preventDefault();break;case sl.ENTER:case sl.SPACE:!s||m.disabled||!1===m.checkable||m.disableCheckbox?s||!u||m.disabled||!1===m.selectable||n.onNodeSelect({},m):n.onNodeCheck({},m,!i.includes(r))}}null==c||c(e)}),M(Ne(n),"setUncontrolledState",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!n.destroyed){var o=!1,i=!0,a={};Object.keys(e).forEach(function(t){n.props.hasOwnProperty(t)?i=!1:(o=!0,a[t]=e[t])}),!o||t&&!i||n.setState(D(D({},a),r))}}),M(Ne(n),"scrollTo",function(e){n.listRef.current.scrollTo(e)}),n}return $e(t,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{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 e,t=this.state,n=t.focused,r=t.flattenNodes,o=t.keyEntities,i=t.draggingNodeKey,a=t.activeKey,c=t.dropLevelOffset,s=t.dropContainerKey,u=t.dropTargetKey,d=t.dropPosition,f=t.dragOverNodeKey,p=t.indent,m=this.props,g=m.prefixCls,h=m.className,v=m.style,w=m.showLine,C=m.focusable,S=m.tabIndex,$=void 0===S?0:S,k=m.selectable,E=m.showIcon,O=m.icon,I=m.switcherIcon,N=m.draggable,R=m.checkable,j=m.checkStrictly,P=m.disabled,D=m.motion,T=m.loadData,B=m.filterTreeNode,L=m.height,z=m.itemHeight,F=m.scrollWidth,H=m.virtual,A=m.titleRender,_=m.dropIndicatorRender,W=m.onContextMenu,V=m.onScroll,G=m.direction,U=m.rootClassName,X=m.rootStyle,K=Ya(this.props,{aria:!0,data:!0});N&&(e="object"===x(N)?N:"function"==typeof N?{nodeDraggable:N}:{});var Q={prefixCls:g,selectable:k,showIcon:E,icon:O,switcherIcon:I,draggable:e,draggingNodeKey:i,checkable:R,checkStrictly:j,disabled:P,keyEntities:o,dropLevelOffset:c,dropContainerKey:s,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f,indent:p,direction:G,dropIndicatorRender:_,loadData:T,filterTreeNode:B,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 l.createElement(pM.Provider,{value:Q},l.createElement("div",{className:b(g,h,U,M(M(M({},"".concat(g,"-show-line"),w),"".concat(g,"-focused"),n),"".concat(g,"-active-focused"),null!==a)),style:X},l.createElement(nP,y({ref:this.listRef,prefixCls:g,style:v,data:r,disabled:P,selectable:k,checkable:!!R,motion:D,dragging:null!==i,height:L,itemHeight:z,virtual:H,focusable:C,focused:n,tabIndex:$,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:V,scrollWidth:F},this.getTreeNodeRequiredProps(),K))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&e.hasOwnProperty(t)||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=K$(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(R(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Q$(e.children)),n){o.treeData=n;var l=q$(n,{fieldNames:a});o.keyEntities=D(M({},YM,ZM),l.keyEntities)}var c,s=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?NM(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=D({},s);delete u[YM];var d=[];Object.keys(u).forEach(function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)}),o.expandedKeys=d}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?NM(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=Y$(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=f}if((e.selectable&&(i("selectedKeys")?o.selectedKeys=OM(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=OM(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=IM(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?c=IM(e.defaultCheckedKeys)||{}:n&&(c=IM(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var p=c,m=p.checkedKeys,g=void 0===m?[]:m,h=p.halfCheckedKeys,v=void 0===h?[]:h;if(!e.checkStrictly){var b=rk(g,!0,s);g=b.checkedKeys,v=b.halfCheckedKeys}o.checkedKeys=g,o.halfCheckedKeys=v}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),t}();M(rP,"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:function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o}return e.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),M(rP,"TreeNode",xM);var oP={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"},iP=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:oP}))},aP=l.forwardRef(iP),lP={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"},cP=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:lP}))},sP=l.forwardRef(cP),uP={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"},dP=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:uP}))},fP=l.forwardRef(dP),pP={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"},mP=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:pP}))},gP=l.forwardRef(mP);const hP=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:i,controlItemBgHover:a})=>({[`${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:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),vP=new Gn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),bP=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),yP=(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:`${It(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),xP=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:s,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},Xo(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)`]:Ko(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:vP,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:It(i),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:u},[`${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:i,textAlign:"center",visibility:"visible",color:s},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},bP(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,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(i).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(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},yP(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,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(i).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:`${It(t.calc(i).div(2).equal())} !important`}})}},wP=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=Io(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[xP(e,a),n&&hP(a)].filter(Boolean)},CP=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}};var SP=Zo("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:xk(`${t}-checkbox`,e)},wP(t,e),hs(e)],e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},CP(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})});function $P(t){const{dropPosition:n,dropLevelOffset:r,prefixCls:o,indent:i,direction:a="ltr"}=t,l="ltr"===a?"left":"right",c="ltr"===a?"right":"left",s={[l]:-r*i+4,[c]:0};switch(n){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=i+4}return e.createElement("div",{style:s,className:`${o}-drop-indicator`})}var kP={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"},EP=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:kP}))},OP=l.forwardRef(EP),IP={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"},NP=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:IP}))},RP=l.forwardRef(NP),jP={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"},MP=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:jP}))},PP=l.forwardRef(MP);const DP=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:i,showLine:a,switcherLoadingIcon:c}=e,{isLeaf:s,expanded:u,loading:d}=i;if(d)return l.isValidElement(c)?c:l.createElement(Cl,{className:`${r}-switcher-loading-icon`});let f;if(a&&"object"==typeof a&&(f=a.showLeafIcon),s){if(!a)return null;if("boolean"!=typeof f&&f){const e="function"==typeof f?f(i):f,n=`${r}-switcher-line-custom-icon`;return l.isValidElement(e)?Za(e,{className:b(null===(t=e.props)||void 0===t?void 0:t.className,n)}):e}return f?l.createElement(aP,{className:`${r}-switcher-line-icon`}):l.createElement("span",{className:`${r}-switcher-leaf-line`})}const p=`${r}-switcher-icon`,m="function"==typeof o?o(i):o;return l.isValidElement(m)?Za(m,{className:b(null===(n=m.props)||void 0===n?void 0:n.className,p)}):void 0!==m?m:a?u?l.createElement(RP,{className:`${r}-switcher-line-icon`}):l.createElement(PP,{className:`${r}-switcher-line-icon`}):l.createElement(OP,{className:p})},TP=e.forwardRef((t,n)=>{var r;const{getPrefixCls:o,direction:i,virtual:a,tree:l}=e.useContext(ro),{prefixCls:c,className:s,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:p,blockNode:m=!1,children:g,checkable:h=!1,selectable:v=!0,draggable:y,disabled:x,motion:w,style:C}=t,S=o("tree",c),$=o(),k=e.useContext(so),E=null!=x?x:k,O=null!=w?w:Object.assign(Object.assign({},Ec($)),{motionAppear:!1}),I=Object.assign(Object.assign({},t),{checkable:h,selectable:v,showIcon:u,motion:O,blockNode:m,disabled:E,showLine:Boolean(d),dropIndicatorRender:$P}),[N,R,j]=SP(S),[,M]=Go(),P=M.paddingXS/2+((null===(r=M.Tree)||void 0===r?void 0:r.titleHeight)||M.controlHeightSM),D=e.useMemo(()=>{if(!y)return!1;let t={};switch(typeof y){case"function":t.nodeDraggable=y;break;case"object":t=Object.assign({},y)}return!1!==t.icon&&(t.icon=t.icon||e.createElement(gP,null)),t},[y]);return N(e.createElement(rP,Object.assign({itemHeight:P,ref:n,virtual:a},I,{style:Object.assign(Object.assign({},null==l?void 0:l.style),C),prefixCls:S,className:b({[`${S}-icon-hide`]:!u,[`${S}-block-node`]:m,[`${S}-unselectable`]:!v,[`${S}-rtl`]:"rtl"===i,[`${S}-disabled`]:E},null==l?void 0:l.className,s,R,j),direction:i,checkable:h?e.createElement("span",{className:`${S}-checkbox-inner`}):h,selectable:v,switcherIcon:t=>e.createElement(DP,{prefixCls:S,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:t,showLine:d}),draggable:D}),g))});function BP(e,t,n){const{key:r,children:o}=n;e.forEach(function(e){const i=e[r],a=e[o];!1!==t(i,e)&&BP(a||[],t,n)})}function LP({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const i=[];let a=0;if(n&&n===r)return[n];if(!n||!r)return[];return BP(e,e=>{if(2===a)return!1;if(function(e){return e===n||e===r}(e)){if(i.push(e),0===a)a=1;else if(1===a)return a=2,!1}else 1===a&&i.push(e);return t.includes(e)},K$(o)),i}function zP(e,t,n){const r=Fe(t),o=[];return BP(e,(e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length},K$(n)),o}var FP=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 HP(e){const{isLeaf:t,expanded:n}=e;return t?l.createElement(aP,null):n?l.createElement(sP,null):l.createElement(fP,null)}function AP({treeData:e,children:t}){return e||Q$(t)}const _P=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=FP(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=l.useRef(null),c=l.useRef(null),[s,u]=l.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[d,f]=l.useState(()=>(()=>{const{keyEntities:e}=q$(AP(i),{fieldNames:i.fieldNames});let t;return t=n?Object.keys(e):r?NM(i.expandedKeys||o||[],e):i.expandedKeys||o||[],t})());l.useEffect(()=>{"selectedKeys"in i&&u(i.selectedKeys)},[i.selectedKeys]),l.useEffect(()=>{"expandedKeys"in i&&f(i.expandedKeys)},[i.expandedKeys]);const{getPrefixCls:p,direction:m}=l.useContext(ro),{prefixCls:g,className:h,showIcon:v=!0,expandAction:y="click"}=i,x=FP(i,["prefixCls","className","showIcon","expandAction"]),w=p("tree",g),C=b(`${w}-directory`,{[`${w}-directory-rtl`]:"rtl"===m},h);return l.createElement(TP,Object.assign({icon:HP,ref:t,blockNode:!0},x,{showIcon:v,expandAction:y,prefixCls:w,className:C,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=i,{node:l,nativeEvent:s}=t,{key:f=""}=l,p=AP(i),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==s?void 0:s.ctrlKey)||(null==s?void 0:s.metaKey),h=null==s?void 0:s.shiftKey;let v;r&&g?(v=e,a.current=f,c.current=v,m.selectedNodes=zP(p,v,o)):r&&h?(v=Array.from(new Set([].concat(Fe(c.current||[]),Fe(LP({treeData:p,expandedKeys:d,startKey:f,endKey:a.current,fieldNames:o}))))),m.selectedNodes=zP(p,v,o)):(v=[f],a.current=f,c.current=v,m.selectedNodes=zP(p,v,o)),null===(n=i.onSelect)||void 0===n||n.call(i,v,m),"selectedKeys"in i||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||f(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))},WP=l.forwardRef(_P),VP=TP;VP.DirectoryTree=WP,VP.TreeNode=xM;const GP=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(DE,{prefix:l.createElement(Th,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},UP=e=>{const{keyCode:t}=e;t===sl.ENTER&&e.stopPropagation()},XP=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:UP,ref:t},e.children));function KP(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(Fe(t),Fe(KP(n))))}),t}function QP(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function YP({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:i}){return e.map((e,a)=>{const c=String(e.value);if(e.children)return{key:c||a,label:e.text,popupClassName:`${t}-dropdown-submenu`,children:YP({filters:e.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:i})};const s=r?zk:PC,u={key:void 0!==e.value?c:a,label:l.createElement(l.Fragment,null,l.createElement(s,{checked:n.includes(c)}),l.createElement("span",null,e.text))};return o.trim()?"function"==typeof i?i(o,e)?u:null:QP(o,e.text)?u:null:u})}function qP(e){return e||[]}const ZP=e=>{var t,n,r,o;const{tablePrefixCls:i,prefixCls:a,column:c,dropdownPrefixCls:s,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:p="menu",filterSearch:m=!1,filterState:g,triggerFilter:h,locale:v,children:y,getPopupContainer:x,rootClassName:w}=e,{filterResetToDefaultFilteredValue:C,defaultFilteredValue:S,filterDropdownProps:$={},filterDropdownOpen:k,filterDropdownVisible:E,onFilterDropdownVisibleChange:O,onFilterDropdownOpenChange:I}=c,[N,R]=l.useState(!1),j=!(!g||!(null===(t=g.filteredKeys)||void 0===t?void 0:t.length)&&!g.forceFiltered),M=e=>{var t;R(e),null===(t=$.onOpenChange)||void 0===t||t.call($,e),null==I||I(e),null==O||O(e)},P=null!==(o=null!==(r=null!==(n=$.open)&&void 0!==n?n:k)&&void 0!==r?r:E)&&void 0!==o?o:N,D=null==g?void 0:g.filteredKeys,[T,B]=(e=>{const t=l.useRef(e),[,n]=Ol();return[()=>t.current,e=>{t.current=e,n()}]})(qP(D)),L=({selectedKeys:e})=>{B(e)},z=(e,{node:t,checked:n})=>{L(f?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};l.useEffect(()=>{N&&L({selectedKeys:qP(D)})},[D]);const[F,H]=l.useState([]),A=e=>{H(e)},[_,W]=l.useState(""),V=e=>{const{value:t}=e.target;W(t)};l.useEffect(()=>{N||W("")},[N]);const G=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||g&&g.filteredKeys?ut(t,null==g?void 0:g.filteredKeys,!0)?null:void h({column:c,key:u,filteredKeys:t}):null},U=()=>{M(!1),G(T())},X=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&G([]),t&&M(!1),W(""),B(C?(S||[]).map(e=>String(e)):[])},K=({closeDropdown:e}={closeDropdown:!0})=>{e&&M(!1),G(T())},Q=b({[`${s}-menu-without-submenu`]:(Y=c.filters||[],!Y.some(({children:e})=>e))});var Y;const q=e=>{if(e.target.checked){const e=KP(null==c?void 0:c.filters).map(e=>String(e));B(e)}else B([])},Z=({filters:e})=>(e||[]).map((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=Z({filters:e.children})),r}),J=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>J(e)))||[]})};let ee;const{direction:te,renderEmpty:ne}=l.useContext(ro);if("function"==typeof c.filterDropdown)ee=c.filterDropdown({prefixCls:`${s}-custom`,setSelectedKeys:e=>L({selectedKeys:e}),selectedKeys:T(),confirm:K,clearFilters:X,filters:c.filters,visible:P,close:()=>{M(!1)}});else if(c.filterDropdown)ee=c.filterDropdown;else{const e=T()||[],t=()=>{var t,n;const r=null!==(t=null==ne?void 0:ne("Table.filter"))&&void 0!==t?t:l.createElement(Zg,{image:Zg.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(c.filters||[]).length)return r;if("tree"===p)return l.createElement(l.Fragment,null,l.createElement(GP,{filterSearch:m,value:_,onChange:V,tablePrefixCls:i,locale:v}),l.createElement("div",{className:`${i}-filter-dropdown-tree`},f?l.createElement(zk,{checked:e.length===KP(c.filters).length,indeterminate:e.length>0&&e.length<KP(c.filters).length,className:`${i}-filter-dropdown-checkall`,onChange:q},null!==(n=null==v?void 0:v.filterCheckall)&&void 0!==n?n:null==v?void 0:v.filterCheckAll):null,l.createElement(VP,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${s}-menu`,onCheck:z,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:Z({filters:c.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:_.trim()?e=>"function"==typeof m?m(_,J(e)):QP(_,e.title):void 0})));const o=YP({filters:c.filters||[],filterSearch:m,prefixCls:a,filteredKeys:T(),filterMultiple:f,searchValue:_}),u=o.every(e=>null===e);return l.createElement(l.Fragment,null,l.createElement(GP,{filterSearch:m,value:_,onChange:V,tablePrefixCls:i,locale:v}),u?r:l.createElement(Oy,{selectable:!0,multiple:f,prefixCls:`${s}-menu`,className:Q,onSelect:L,onDeselect:L,selectedKeys:e,getPopupContainer:x,openKeys:F,onOpenChange:A,items:o}))},n=()=>C?ut((S||[]).map(e=>String(e)),e,!0):0===e.length;ee=l.createElement(l.Fragment,null,t(),l.createElement("div",{className:`${a}-dropdown-btns`},l.createElement(zu,{type:"link",size:"small",disabled:n(),onClick:()=>X()},v.filterReset),l.createElement(zu,{type:"primary",size:"small",onClick:U},v.filterConfirm)))}c.filterDropdown&&(ee=l.createElement(dy,{selectable:void 0},ee)),ee=l.createElement(XP,{className:`${a}-dropdown`},ee);const re=Sl({trigger:["click"],placement:"rtl"===te?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof c.filterIcon?c.filterIcon(j):c.filterIcon?c.filterIcon:l.createElement(_M,null),l.createElement("span",{role:"button",tabIndex:-1,className:b(`${a}-trigger`,{active:j}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:x},Object.assign(Object.assign({},$),{rootClassName:b(w,$.rootClassName),open:P,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==D&&B(qP(D)),M(e),e||c.filterDropdown||!d||U())},popupRender:()=>"function"==typeof(null==$?void 0:$.dropdownRender)?$.dropdownRender(ee):ee}));return l.createElement("div",{className:`${a}-column`},l.createElement("span",{className:`${i}-column-title`},y),l.createElement(RO,Object.assign({},re)))},JP=(e,t,n)=>{let r=[];return(e||[]).forEach((e,o)=>{var i;const a=zM(o,n),l=void 0!==e.filterDropdown;if(e.filters||l||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;l||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:LM(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:LM(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(Fe(r),Fe(JP(e.children,t,a))))}),r};function eD(e,t,n,r,o,i,a,c,s){return n.map((n,u)=>{const d=zM(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=n;let h=n;if(h.filters||h.filterDropdown){const c=LM(h,d),u=r.find(({key:e})=>c===e);h=Object.assign(Object.assign({},h),{title:r=>l.createElement(ZP,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:s},FM(n.title,r))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:eD(e,t,h.children,r,o,i,a,d,s)})),h})}const tD=e=>{const t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{const o=e,{filters:i,filterDropdown:a}=r;if(a)t[o]=n||null;else if(Array.isArray(n)){const e=KP(i);t[o]=e.filter(e=>n.includes(String(e)))}else t[o]=null}),t},nD=(e,t,n)=>{const r=t.reduce((e,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?e.map(e=>Object.assign({},e)).filter(e=>a.some(r=>{const a=KP(i),l=a.findIndex(e=>String(e)===String(r)),c=-1!==l?a[l]:r;return e[n]&&(e[n]=nD(e[n],t,n)),o(c,e)})):e},e);return r},rD=e=>e.flatMap(e=>"children"in e?[e].concat(Fe(rD(e.children||[]))):[e]),oD=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:c}=e;rr();const s=l.useMemo(()=>rD(r||[]),[r]),[u,d]=l.useState(()=>JP(s,!0)),f=l.useMemo(()=>{const e=JP(s,!1);if(0===e.length)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e&&(t=!1)}),t){const e=(s||[]).map((e,t)=>LM(e,zM(t)));return u.filter(({key:t})=>e.includes(t)).map(t=>{const n=s[e.indexOf(t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[s,u]),p=l.useMemo(()=>tD(f),[f]),m=e=>{const t=f.filter(({key:t})=>t!==e.key);t.push(e),d(t),o(tD(t),t)};return[e=>eD(t,n,e,f,a,m,i,void 0,c),f,p]};var iD=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 aD=10;var lD={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:"outlined"},cD=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:lD}))},sD=l.forwardRef(cD),uD={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},dD=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:uD}))},fD=l.forwardRef(dD);const pD="ascend",mD="descend",gD=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,hD=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,vD=(e,t,n)=>{let r=[];const o=(e,t)=>{r.push({column:e,key:LM(e,t),multiplePriority:gD(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,i)=>{const a=zM(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(Fe(r),Fe(vD(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:LM(e,a),multiplePriority:gD(e),sortOrder:e.defaultSortOrder}))}),r},bD=(e,t,n,r,o,i,a,c)=>{const s=(t||[]).map((t,s)=>{const u=zM(s,c);let d=t;if(d.sorter){const c=d.sortDirections||o,s=void 0===d.showSorterTooltip?a:d.showSorterTooltip,f=LM(d,u),p=n.find(({key:e})=>e===f),m=p?p.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(c,m);let h;if(t.sortIcon)h=t.sortIcon({sortOrder:m});else{const t=c.includes(pD)&&l.createElement(fD,{className:b(`${e}-column-sorter-up`,{active:m===pD})}),n=c.includes(mD)&&l.createElement(sD,{className:b(`${e}-column-sorter-down`,{active:m===mD})});h=l.createElement("span",{className:b(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:y,triggerDesc:x}=i||{};let w=v;g===mD?w=x:g===pD&&(w=y);const C="object"==typeof s?Object.assign({title:w},s):{title:w};d=Object.assign(Object.assign({},d),{className:b(d.className,{[`${e}-column-sort`]:m}),title:n=>{const r=`${e}-column-sorters`,o=l.createElement("span",{className:`${e}-column-title`},FM(t.title,n)),i=l.createElement("div",{className:r},o,h);return s?"boolean"!=typeof s&&"sorter-icon"===(null==s?void 0:s.target)?l.createElement("div",{className:b(r,`${r}-tooltip-target-sorter`)},o,l.createElement($v,Object.assign({},C),h)):l.createElement($v,Object.assign({},C),i):i},onHeaderCell:n=>{var o;const i=(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,n))||{},a=i.onClick,l=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:g,multiplePriority:gD(t)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===sl.ENTER&&(r({column:t,key:f,sortOrder:g,multiplePriority:gD(t)}),null==l||l(e))};const c=((e,t)=>{const n=FM(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),s=null==c?void 0:c.toString();return m&&(i["aria-sort"]="ascend"===m?"ascending":"descending"),i["aria-label"]=s||"",i.className=b(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!=c?c:"").toString()),i}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:bD(e,d.children,n,r,o,i,a,u)})),d});return s},yD=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},xD=e=>{const t=e.filter(({sortOrder:e})=>e).map(yD);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},yD(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},wD=(e,t,n)=>{const r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),o=e.slice(),i=r.filter(({column:{sorter:e},sortOrder:t})=>hD(e)&&t);return i.length?o.sort((e,t)=>{for(let n=0;n<i.length;n+=1){const r=i[n],{column:{sorter:o},sortOrder:a}=r,l=hD(o);if(l&&a){const n=l(e,t,a);if(0!==n)return a===pD?n:-n}}return 0}).map(e=>{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:wD(r,t,n)}):e}):o},CD=(e,t)=>{const n=e.map(e=>{const n=Object.assign({},e);return n.title=FM(e.title,t),"children"in n&&(n.children=CD(n.children,t)),n});return n},SD=Jj((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),$D=fM((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),kD=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s=`${It(n)} ${r} ${o}`,u=(e,r,o)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${It(c(r).mul(-1).equal())}\n ${It(c(c(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${It(c(a).mul(-1).equal())} ${It(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${It(n)} 0 ${It(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}},ED=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Uo),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},OD=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},ID=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:h,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${It(o)} ${a} ${l}`,w=y(m).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},qo(e)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:It(h),background:c,border:x,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:w,insetInlineStart:w,height:o},"&::after":{top:w,bottom:w,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${It(y(d).mul(-1).equal())} ${It(y(f).mul(-1).equal())}`,padding:`${It(d)} ${It(f)}`}}}},ND=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:h,colorIcon:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:S,controlItemBgActive:$,boxShadowSecondary:k,filterDropdownMenuBg:E,calc:O}=e,I=`${n}-dropdown`,N=`${t}-filter-dropdown`,R=`${n}-tree`,j=`${It(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:O(a).mul(-1).equal(),marginInline:`${It(a)} ${It(O(m).div(2).mul(-1).equal())}`,padding:`0 ${It(a)}`,color:f,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[N]:Object.assign(Object.assign({},Xo(e)),{minWidth:o,backgroundColor:w,borderRadius:g,boxShadow:k,overflow:"hidden",[`${I}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${It(l)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${N}-tree`]:{paddingBlock:`${It(l)} 0`,paddingInline:l,[R]:{padding:0},[`${R}-treenode ${R}-node-content-wrapper:hover`]:{backgroundColor:S},[`${R}-treenode-checkbox-checked ${R}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$}}},[`${N}-search`]:{padding:l,borderBottom:j,"&-input":{input:{minWidth:i},[r]:{color:x}}},[`${N}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${N}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${It(O(l).sub(s).equal())} ${It(l)}`,overflow:"hidden",borderTop:j}})}},{[`${n}-dropdown ${N}, ${N}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},RD=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,s=r;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},jD=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${It(r)} 0`}}},MD=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${It(n)} ${It(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${It(n)} ${It(n)}`}}}}},PD=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},DD=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(s).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(i).div(4)).add(m(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:It(m(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},TD=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${It(o)} ${It(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:It(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${It(r(o).mul(-1).equal())} ${It(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:It(r(o).mul(-1).equal()),marginInline:`${It(r(n).sub(i).equal())} ${It(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:It(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},BD=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},LD=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f=`${It(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${It(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},zD=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${It(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${It(o(n).mul(-1).equal())} 0 ${r}`}}}},FD=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${It(r)} ${o} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${It(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},HD=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:h,tableFooterBg:v,calc:b}=e,y=`${It(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},Xo(e)),{fontSize:s,background:u,borderRadius:`${It(d)} ${It(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${It(d)} ${It(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${It(r)} ${It(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${It(r)} ${It(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:It(b(r).mul(-1).equal()),marginInline:`${It(b(i).sub(o).equal())}\n ${It(b(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${It(r)} ${It(o)}`,color:h,background:v}})}};var AD=Zo("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:h,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:w,footerColor:C,headerBorderRadius:S,cellFontSize:$,cellFontSizeMD:k,cellFontSizeSM:E,headerSplitColor:O,fixedHeaderSortActiveBg:I,headerFilterHoverBg:N,filterDropdownBg:R,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:P,calc:D}=e,T=Io(e,{tableFontSize:$,tableBg:r,tableRadius:S,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:C,tableFooterBg:w,tableHeaderCellSplitColor:O,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:N,tableFilterDropdownBg:R,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:D(2).add(1).equal({unit:!1}),tableFontSizeMiddle:k,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:D(o).add(D(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[HD(T),jD(T),zD(T),BD(T),ND(T),kD(T),MD(T),ID(T),zD(T),OD(T),DD(T),RD(T),LD(T),ED(T),TD(T),PD(T),FD(T)]},e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:w,controlInteractiveSize:C}=e,S=new $r(o).onBackground(n).toHexString(),$=new $r(i).onBackground(n).toHexString(),k=new $r(t).onBackground(n).toHexString(),E=new $r(y),O=new $r(x),I=C/2-b,N=2*I+3*b;return{headerBg:k,headerColor:r,headerSortActiveBg:S,headerSortHoverBg:$,bodySortBg:k,rowHoverBg:k,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:k,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:S,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*h-3*b)/2),headerIconColor:E.clone().setA(E.a*w).toRgbString(),headerIconHoverColor:O.clone().setA(O.a*w).toRgbString(),expandIconHalfInner:I,expandIconSize:N,expandIconScale:C/N}},{unitless:{expandIconScale:!0}});const _D=[],WD=(t,n)=>{var r,o;const{prefixCls:i,className:a,rootClassName:c,style:s,size:u,bordered:d,dropdownPrefixCls:f,dataSource:p,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:v,columns:y,children:x,childrenColumnName:w,onChange:C,getPopupContainer:S,loading:$,expandIcon:k,expandable:E,expandedRowRender:O,expandIconColumnIndex:I,indentSize:N,scroll:R,sortDirections:j,locale:M,showSorterTooltip:P={target:"full-header"},virtual:D}=t;rr();const T=l.useMemo(()=>y||Lj(x),[y,x]),B=Jh(l.useMemo(()=>T.some(e=>e.responsive),[T])),L=l.useMemo(()=>{const e=new Set(Object.keys(B).filter(e=>B[e]));return T.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[T,B]),z=Ic(t,["className","style","columns"]),{locale:F=ur,direction:H,table:A,renderEmpty:_,getPrefixCls:W,getPopupContainer:V}=l.useContext(ro),G=zc(u),U=Object.assign(Object.assign({},F.Table),M),X=p||_D,K=W("table",i),Q=W("dropdown",f),[,Y]=Go(),q=cl(K),[Z,J,ee]=AD(K,q),te=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:I},E),{expandIcon:null!==(r=null==E?void 0:E.expandIcon)&&void 0!==r?r:null===(o=null==A?void 0:A.expandable)||void 0===o?void 0:o.expandIcon}),{childrenColumnName:ne="children"}=te,re=l.useMemo(()=>X.some(e=>null==e?void 0:e[ne])?"nest":O||(null==E?void 0:E.expandedRowRender)?"row":null,[X]),oe={body:l.useRef(null)},ie=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-Number.parseInt(e.borderLeftWidth,10)-Number.parseInt(e.borderRightWidth,10)}return o}}(K),ae=l.useRef(null),le=l.useRef(null);Pl(n,()=>Object.assign(Object.assign({},le.current),{nativeElement:ae.current}));const ce=l.useMemo(()=>"function"==typeof h?h:e=>null==e?void 0:e[h],[h]),[se]=((e,t,n)=>{const r=l.useRef({});return[function(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function l(e){e.forEach((e,r)=>{const o=n(e,r);a.set(o,e),e&&"object"==typeof e&&t in e&&l(e[t]||[])})}l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(o)}]})(X,ne,ce),ue={},de=(e,t,n=!1)=>{var r,o,i,a;const l=Object.assign(Object.assign({},ue),e);n&&(null===(r=ue.resetPagination)||void 0===r||r.call(ue),(null===(o=l.pagination)||void 0===o?void 0:o.current)&&(l.pagination.current=1),m&&(null===(i=m.onChange)||void 0===i||i.call(m,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),R&&!1!==R.scrollToFirstRowOnChange&&oe.body.current&&ll(0,{getContainer:()=>oe.body.current}),null==C||C(l.pagination,l.filters,l.sorter,{currentDataSource:nD(wD(X,l.sorterStates,ne),l.filterStates,ne),action:t})},[fe,pe,me,ge]=(e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a}=e,[c,s]=l.useState(()=>vD(n,!0)),u=(e,t)=>{const n=[];return e.forEach((e,r)=>{const o=zM(r,t);if(n.push(LM(e,o)),Array.isArray(e.children)){const t=u(e.children,o);n.push.apply(n,Fe(t))}}),n},d=l.useMemo(()=>{let e=!0;const t=vD(n,!1);if(!t.length){const e=u(n);return c.filter(({key:t})=>e.includes(t))}const r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach(t=>{null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))}),r},[n,c]),f=l.useMemo(()=>{var e,t;const n=d.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}},[d]),p=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(Fe(d.filter(({key:t})=>t!==e.key)),[e]):[e],s(t),a(xD(t),t)};return[e=>bD(t,e,d,p,r,o,i),d,f,()=>xD(d)]})({prefixCls:K,mergedColumns:L,onSorterChange:(e,t)=>{de({sorter:e,sorterStates:t},"sort",!1)},sortDirections:j||["ascend","descend"],tableLocale:U,showSorterTooltip:P}),he=l.useMemo(()=>wD(X,pe,ne),[X,pe]);ue.sorter=ge(),ue.sorterStates=pe;const[ve,be,ye]=oD({prefixCls:K,locale:U,dropdownPrefixCls:Q,mergedColumns:L,onFilterChange:(e,t)=>{de({filters:e,filterStates:t},"filter",!0)},getPopupContainer:S||V,rootClassName:b(c,q)}),xe=nD(he,be,ne);ue.filters=ye,ue.filterStates=be;const we=l.useMemo(()=>{const e={};return Object.keys(ye).forEach(t=>{null!==ye[t]&&(e[t]=ye[t])}),Object.assign(Object.assign({},me),{filters:e})},[me,ye]),[Ce]=(e=>[l.useCallback(t=>CD(t,e),[e])])(we),[Se,$e]=function(t,n,r){const o=r&&"object"==typeof r?r:{},{total:i=0}=o,a=iD(o,["total"]),[l,c]=e.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:aD})),s=Sl(l,a,{total:i>0?i:t}),u=Math.ceil((i||t)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!=e?e:1,pageSize:t||s.pageSize})};return!1===r?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,t)=>{var o;r&&(null===(o=r.onChange)||void 0===o||o.call(r,e,t)),d(e,t),n(e,t||(null==s?void 0:s.pageSize))}}),d]}(xe.length,(e,t)=>{de({pagination:Object.assign(Object.assign({},ue.pagination),{current:e,pageSize:t})},"paginate")},m);ue.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach(t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)}),n}(Se,m),ue.resetPagination=$e;const ke=l.useMemo(()=>{if(!1===m||!Se.pageSize)return xe;const{current:e=1,total:t,pageSize:n=aD}=Se;return xe.length<t?xe.length>n?xe.slice((e-1)*n,e*n):xe:xe.slice((e-1)*n,e*n)},[!!m,xe,null==Se?void 0:Se.current,null==Se?void 0:Se.pageSize,null==Se?void 0:Se.total]),[Ee,Oe]=BM({prefixCls:K,data:xe,pageData:ke,getRowKey:ce,getRecordByKey:se,expandType:re,childrenColumnName:ne,locale:U,getPopupContainer:S||V},g);te.__PARENT_RENDER_ICON__=te.expandIcon,te.expandIcon=te.expandIcon||k||function(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,c=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:e=>{r(o,e),e.stopPropagation()},className:b(c,{[`${c}-spaced`]:!a,[`${c}-expanded`]:a&&i,[`${c}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}(U),"nest"===re&&void 0===te.expandIconColumnIndex?te.expandIconColumnIndex=g?1:0:te.expandIconColumnIndex>0&&g&&(te.expandIconColumnIndex-=1),"number"!=typeof te.indentSize&&(te.indentSize="number"==typeof N?N:15);const Ie=l.useCallback(e=>Ce(Ee(ve(fe(e)))),[fe,ve,Ee]),Ne=l.useMemo(()=>"boolean"==typeof $?{spinning:$}:"object"==typeof $&&null!==$?Object.assign({spinning:!0},$):void 0,[$]),Re=b(ee,q,`${K}-wrapper`,null==A?void 0:A.className,{[`${K}-wrapper-rtl`]:"rtl"===H},a,c,J),je=Object.assign(Object.assign({},null==A?void 0:A.style),s),Me=l.useMemo(()=>(null==Ne?void 0:Ne.spinning)&&X===_D?null:void 0!==(null==M?void 0:M.emptyText)?M.emptyText:(null==_?void 0:_("Table"))||l.createElement(Jg,{componentName:"Table"}),[null==Ne?void 0:Ne.spinning,X,null==M?void 0:M.emptyText,_]),Pe=D?$D:SD,De={},Te=l.useMemo(()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:o,paddingSM:i}=Y,a=Math.floor(e*t);switch(G){case"middle":return 2*i+a+n;case"small":return 2*o+a+n;default:return 2*r+a+n}},[Y,G]);D&&(De.listItemHeight=Te);const{top:Be,bottom:Le}=(()=>{if(!1===m||!(null==Se?void 0:Se.total))return{};const e=e=>{const t="left"===e?"start":"right"===e?"end":e;return l.createElement(yN,Object.assign({},Se,{align:Se.align||t,className:b(`${K}-pagination`,Se.className),size:Se.size||("small"===G||"middle"===G?"small":void 0)}))},t="rtl"===H?"left":"right",n=Se.position;if(null===n||!Array.isArray(n))return{bottom:e(t)};const r=n.find(e=>"string"==typeof e&&e.toLowerCase().includes("top")),o=n.find(e=>"string"==typeof e&&e.toLowerCase().includes("bottom")),i=n.every(e=>"none"==`${e}`),a=r?r.toLowerCase().replace("top",""):"",c=o?o.toLowerCase().replace("bottom",""):"",s=!r&&!o&&!i;return{top:a?e(a):void 0,bottom:c?e(c):s?e(t):void 0}})();return Z(l.createElement("div",{ref:ae,className:Re,style:je},l.createElement(jN,Object.assign({spinning:!1},Ne),Be,l.createElement(Pe,Object.assign({},De,z,{ref:le,columns:L,direction:H,expandable:te,prefixCls:K,className:b({[`${K}-middle`]:"middle"===G,[`${K}-small`]:"small"===G,[`${K}-bordered`]:d,[`${K}-empty`]:0===X.length},ee,q,J),data:ke,rowKey:ce,rowClassName:(e,t,n)=>{let r;return r=b("function"==typeof v?v(e,t,n):v),b({[`${K}-row-selected`]:Oe.has(ce(e,t))},r)},emptyText:Me,internalHooks:KR,internalRefs:oe,transformColumns:Ie,getContainerWidth:ie,measureRowRender:e=>l.createElement(da,{getPopupContainer:e=>e},e)})),Le)))};var VD=l.forwardRef(WD);const GD=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(VD,Object.assign({},e,{ref:t,_renderTimes:n.current}))},UD=l.forwardRef(GD);UD.SELECTION_COLUMN=RM,UD.EXPAND_COLUMN=XR,UD.SELECTION_ALL=jM,UD.SELECTION_INVERT=MM,UD.SELECTION_NONE=PM,UD.Column=e=>null,UD.ColumnGroup=e=>null,UD.Summary=pj;var XD=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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{TimePicker:KD,RangePicker:QD}=uO,YD=l.forwardRef((e,t)=>l.createElement(QD,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),qD=l.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:o,bordered:i}=e,a=XD(e,["addon","renderExtraFooter","variant","bordered"]);const[c]=eh("timePicker",o,i),s=l.useMemo(()=>r||(n||void 0),[n,r]);return l.createElement(KD,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:s,variant:c}))}),ZD=Gp(qD,"popupAlign",void 0,"picker");qD._InternalPanelDoNotUseOrYouWillBeFired=ZD,qD.RangePicker=YD,qD._InternalPanelDoNotUseOrYouWillBeFired=ZD;var JD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},eT=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:JD}))},tT=l.forwardRef(eT),nT=function(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable},rT=function(e){return null==e},oT=function(){return null},iT=["children","value"];function aT(e){return k(e).map(function(e){if(!l.isValidElement(e)||!e.type)return null;var t=e,n=t.key,r=t.props,o=r.children,i=D({key:n,value:r.value},st(r,iT)),a=aT(o);return a.length&&(i.children=a),i}).filter(function(e){return e})}function lT(e){if(!e)return e;var t=D({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return R(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function cT(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function sT(e,t,n){return l.useMemo(function(){if(e){if(n){var r=D({id:"id",pId:"pId",rootPId:null},"object"===x(n)?n:{});return function(e,t){var n=t.id,r=t.pId,o=t.rootPId,i=new Map,a=[];return e.forEach(function(e){var t=e[n],r=D(D({},e),{},{key:e.key||t});i.set(t,r)}),i.forEach(function(e){var t=e[r],n=i.get(t);n?(n.children=n.children||[],n.children.push(e)):t!==o&&null!==o||a.push(e)}),a}(e,r)}return e}return aT(t)},[t,n,e])}var uT=l.createContext(null),dT=l.createContext(null),fT={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},pT=function(e,t){var n=Qp(),r=n.prefixCls,o=n.multiple,i=n.searchValue,a=n.toggleOpen,c=n.open,s=n.notFoundContent,u=l.useContext(dT),d=u.virtual,f=u.listHeight,p=u.listItemHeight,m=u.listItemScrollOffset,g=u.treeData,h=u.fieldNames,v=u.onSelect,b=u.dropdownMatchSelectWidth,x=u.treeExpandAction,w=u.treeTitleRender,C=u.onPopupScroll,S=u.leftMaxCount,$=u.leafCountOnly,k=u.valueEntities,E=l.useContext(uT),O=E.checkable,I=E.checkedKeys,N=E.halfCheckedKeys,R=E.treeExpandedKeys,j=E.treeDefaultExpandAll,M=E.treeDefaultExpandedKeys,P=E.onTreeExpand,D=E.treeIcon,T=E.showTreeIcon,B=E.switcherIcon,L=E.treeLine,z=E.treeNodeFilterProp,F=E.loadData,H=E.treeLoadedKeys,A=E.treeMotion,_=E.onTreeLoad,V=E.keyEntities,G=l.useRef(),U=W(function(){return g},[c,g],function(e,t){return t[0]&&e[1]!==t[1]}),X=l.useMemo(function(){return O?{checked:I,halfChecked:N}:null},[O,I,N]);l.useEffect(function(){var e;c&&!o&&I.length&&(null===(e=G.current)||void 0===e||e.scrollTo({key:I[0]}))},[c]);var K=function(e){e.preventDefault()},Q=function(e,t){var n=t.node;O&&nT(n)||(v(n.key,{selected:!I.includes(n.key)}),o||a(!1))},Y=Qe(l.useState(M),2),q=Y[0],Z=Y[1],J=Qe(l.useState(null),2),ee=J[0],te=J[1],ne=l.useMemo(function(){return R?Fe(R):i?ee:q},[q,ee,R,i]),re=String(i).toLowerCase(),oe=function(e){return!!re&&String(e[z]).toLowerCase().includes(re)};l.useEffect(function(){i&&te(function(e,t){var n=[];return function e(r){r.forEach(function(r){var o=r[t.children];o&&(n.push(r[t.value]),e(o))})}(e),n}(g,h))},[i]);var ie=Qe(l.useState(function(){return new Map}),2),ae=ie[0],le=ie[1];l.useEffect(function(){S&&le(new Map)},[S]);var ce=wo(function(e){var t=e[h.value];return!I.includes(t)&&(null!==S&&(S<=0||!(!$||!S)&&function(e){var t=e[h.value];if(!ae.has(t)){var n=k.get(t);if(0===(n.children||[]).length)ae.set(t,!1);else{var r=n.children.filter(function(e){return!e.node.disabled&&!e.node.disableCheckbox&&!I.includes(e.node[h.value])}).length;ae.set(t,r>S)}}return ae.get(t)}(e)))}),se=function e(t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ze(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!o.disabled&&!1!==o.selectable){if(!i)return o;if(oe(o))return o;if(o[h.children]){var a=e(o[h.children]);if(a)return a}}}}catch(e){r.e(e)}finally{r.f()}return null},ue=Qe(l.useState(null),2),de=ue[0],fe=ue[1],pe=V[de];l.useEffect(function(){if(c){var e,t=null;t=o||!I.length||i?(e=se(U))?e[h.value]:null:I[0],fe(t)}},[c,i]),l.useImperativeHandle(t,function(){var e;return{scrollTo:null===(e=G.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case sl.UP:case sl.DOWN:case sl.LEFT:case sl.RIGHT:null===(t=G.current)||void 0===t||t.onKeyDown(e);break;case sl.ENTER:if(pe){var n=ce(pe.node),r=(null==pe?void 0:pe.node)||{},o=r.selectable,i=r.value,l=r.disabled;!1===o||l||n||Q(0,{node:{key:de},selected:!I.includes(i)})}break;case sl.ESC:a(!1)}},onKeyUp:function(){}}});var me=W(function(){return!i},[i,R||q],function(e,t){var n=Qe(e,1)[0],r=Qe(t,2),o=r[0],i=r[1];return n!==o&&!(!o&&!i)})?F:null;if(0===U.length)return l.createElement("div",{role:"listbox",className:"".concat(r,"-empty"),onMouseDown:K},s);var ge={fieldNames:h};return H&&(ge.loadedKeys=H),ne&&(ge.expandedKeys=ne),l.createElement("div",{onMouseDown:K},pe&&c&&l.createElement("span",{style:fT,"aria-live":"assertive"},pe.node.value),l.createElement(mM.Provider,{value:{nodeDisabled:ce}},l.createElement(rP,y({ref:G,focusable:!1,prefixCls:"".concat(r,"-tree"),treeData:U,height:f,itemHeight:p,itemScrollOffset:m,virtual:!1!==d&&!1!==b,multiple:o,icon:D,showIcon:T,switcherIcon:B,showLine:L,loadData:me,motion:A,activeKey:de,checkable:O,checkStrictly:!0,checkedKeys:X,selectedKeys:O?[]:I,defaultExpandAll:j,titleRender:w},ge,{onActiveChange:fe,onSelect:Q,onCheck:Q,onExpand:function(e){Z(e),te(e),P&&P(e)},onLoad:_,filterTreeNode:oe,expandAction:x,onScroll:C}))))},mT=l.forwardRef(pT),gT="SHOW_ALL",hT="SHOW_PARENT",vT="SHOW_CHILD";function bT(e,t,n,r){var o=new Set(e);return t===vT?e.filter(function(e){var t=n[e];return!(t&&t.children&&t.children.some(function(e){var t=e.node;return o.has(t[r.value])})&&t.children.every(function(e){var t=e.node;return nT(t)||o.has(t[r.value])}))}):t===hT?e.filter(function(e){var t=n[e],r=t?t.parent:null;return!r||nT(r.node)||!o.has(r.key)}):e}var yT=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];var xT=l.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=void 0===i?"rc-tree-select":i,c=e.value,s=e.defaultValue,u=e.onChange,d=e.onSelect,f=e.onDeselect,p=e.searchValue,m=e.inputValue,g=e.onSearch,h=e.autoClearSearchValue,v=void 0===h||h,b=e.filterTreeNode,w=e.treeNodeFilterProp,C=void 0===w?"value":w,S=e.showCheckedStrategy,$=e.treeNodeLabelProp,k=e.multiple,E=e.treeCheckable,O=e.treeCheckStrictly,I=e.labelInValue,N=e.maxCount,j=e.fieldNames,P=e.treeDataSimpleMode,T=e.treeData,B=e.children,L=e.loadData,z=e.treeLoadedKeys,F=e.onTreeLoad,H=e.treeDefaultExpandAll,A=e.treeExpandedKeys,_=e.treeDefaultExpandedKeys,W=e.onTreeExpand,V=e.treeExpandAction,G=e.virtual,U=e.listHeight,X=void 0===U?200:U,K=e.listItemHeight,Q=void 0===K?20:K,Y=e.listItemScrollOffset,q=void 0===Y?0:Y,Z=e.onDropdownVisibleChange,J=e.dropdownMatchSelectWidth,ee=void 0===J||J,te=e.treeLine,ne=e.treeIcon,re=e.showTreeIcon,oe=e.switcherIcon,ie=e.treeMotion,ae=e.treeTitleRender,le=e.onPopupScroll,ce=st(e,yT),se=Tg(o),ue=E&&!O,de=E||O,fe=O||I,pe=de||k,me=Qe($o(s,{value:c}),2),ge=me[0],he=me[1],ve=l.useMemo(function(){return E?S||vT:gT},[S,E]),be=l.useMemo(function(){return function(e){var t=e||{},n=t.label,r=t.value;return{_title:n?[n]:["title","label"],value:r||"value",key:r||"value",children:t.children||"children"}}(j)},[JSON.stringify(j)]),ye=Qe($o("",{value:void 0!==p?p:m,postState:function(e){return e||""}}),2),xe=ye[0],we=ye[1],Ce=sT(T,B,P),Se=function(e,t){return l.useMemo(function(){return q$(e,{fieldNames:t,initWrapper:function(e){return D(D({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var r=e.node[t.value];n.valueEntities.set(r,e)}})},[e,t])}(Ce,be),$e=Se.keyEntities,ke=Se.valueEntities,Ee=l.useCallback(function(e){var t=[],n=[];return e.forEach(function(e){ke.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},[ke]),Oe=function(e,t,n){var r=n.fieldNames,o=n.treeNodeFilterProp,i=n.filterTreeNode,a=r.children;return l.useMemo(function(){if(!t||!1===i)return e;var n="function"==typeof i?i:function(e,n){return String(n[o]).toUpperCase().includes(t.toUpperCase())};return function e(r){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce(function(r,i){var l=i[a],c=o||n(t,lT(i)),s=e(l||[],c);return(c||s.length)&&r.push(D(D({},i),{},M({isLeaf:void 0},a,s))),r},[])}(e)},[e,t,a,o,i])}(Ce,xe,{fieldNames:be,treeNodeFilterProp:C,filterTreeNode:b}),Ie=l.useCallback(function(e){if(e){if($)return e[$];for(var t=be._title,n=0;n<t.length;n+=1){var r=e[t[n]];if(void 0!==r)return r}}},[be,$]),Ne=l.useCallback(function(e){var t=function(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}(e);return t.map(function(e){return function(e){return!e||"object"!==x(e)}(e)?{value:e}:e})},[]),Re=l.useCallback(function(e){return Ne(e).map(function(e){var t,n,r=e.label,o=e.value,i=e.halfChecked,a=ke.get(o);if(a)r=ae?ae(a.node):null!==(n=r)&&void 0!==n?n:Ie(a.node),t=a.node.disabled;else if(void 0===r){r=Ne(ge).find(function(e){return e.value===o}).label}return{label:r,value:o,halfChecked:i,disabled:t}})},[ke,Ie,Ne,ge]),je=l.useMemo(function(){return Ne(null===ge?[]:ge)},[Ne,ge]),Me=Qe(l.useMemo(function(){var e=[],t=[];return je.forEach(function(n){n.halfChecked?t.push(n):e.push(n)}),[e,t]},[je]),2),Pe=Me[0],De=Me[1],Te=l.useMemo(function(){return Pe.map(function(e){return e.value})},[Pe]),Be=function(e,t,n,r){return l.useMemo(function(){var o=function(e){return e.map(function(e){return e.value})},i=o(e),a=o(t),l=i.filter(function(e){return!r[e]}),c=i,s=a;if(n){var u=rk(i,!0,r);c=u.checkedKeys,s=u.halfCheckedKeys}return[Array.from(new Set([].concat(Fe(l),Fe(c)))),s]},[e,t,n,r])}(Pe,De,ue,$e),Le=Qe(Be,2),ze=Le[0],He=Le[1],Ae=l.useMemo(function(){var e=bT(ze,ve,$e,be).map(function(e){var t,n;return null!==(t=null===(n=$e[e])||void 0===n||null===(n=n.node)||void 0===n?void 0:n[be.value])&&void 0!==t?t:e}).map(function(e){var t=Pe.find(function(t){return t.value===e}),n=I?null==t?void 0:t.label:null==ae?void 0:ae(t);return{value:e,label:n}}),t=Re(e),n=t[0];return!pe&&n&&rT(n.value)&&rT(n.label)?[]:t.map(function(e){var t;return D(D({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})})},[be,pe,ze,Pe,Re,ve,$e]),_e=(n=Ae,r=l.useRef({valueLabels:new Map}),l.useMemo(function(){var e=r.current.valueLabels,t=new Map,o=n.map(function(n){var r=n.value,o=n.label,i=null!=o?o:e.get(r);return t.set(r,i),D(D({},n),{},{label:i})});return r.current.valueLabels=t,[o]},[n])),We=Qe(_e,1)[0],Ve=l.useMemo(function(){return!pe||"SHOW_CHILD"!==ve&&!O&&E?null:N},[N,pe,O,ve,E]),Ge=cT(function(e,t,n){var r=bT(e,ve,$e,be);if(!(Ve&&r.length>Ve)){var o=Re(e);if(he(o),v&&we(""),u){var i=e;ue&&(i=r.map(function(e){var t=ke.get(e);return t?t.node[be.value]:e}));var a=t||{triggerValue:void 0,selected:void 0},c=a.triggerValue,s=a.selected,d=i;if(O){var f=De.filter(function(e){return!i.includes(e.value)});d=[].concat(Fe(d),Fe(f))}var p=Re(d),m={preValue:Pe,triggerValue:c},g=!0;(O||"selection"===n&&!s)&&(g=!1),function(e,t,n,r,o,i){var a=null,c=null;function s(){c||(c=[],function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map(function(r,u){var d="".concat(o,"-").concat(u),f=r[i.value],p=n.includes(f),m=e(r[i.children]||[],d,p),g=l.createElement(oT,r,m.map(function(e){return e.node}));if(t===f&&(a=g),p){var h={pos:d,node:g,children:m};return s||c.push(h),h}return null}).filter(function(e){return e})}(r),c.sort(function(e,t){var r=e.node.props.value,o=t.node.props.value;return n.indexOf(r)-n.indexOf(o)}))}Object.defineProperty(e,"triggerNode",{get:function(){return R(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return R(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),o?c:c.map(function(e){return e.node})}})}(m,c,e,Ce,g,be),de?m.checked=s:m.selected=s;var h=fe?p:p.map(function(e){return e.value});u(pe?h:h[0],fe?null:p.map(function(e){return e.label}),m)}}}),Ue=l.useCallback(function(e,t){var n,r=t.selected,o=t.source,i=$e[e],a=null==i?void 0:i.node,l=null!==(n=null==a?void 0:a[be.value])&&void 0!==n?n:e;if(pe){var c=r?[].concat(Fe(Te),[l]):ze.filter(function(e){return e!==l});if(ue){var s,u=Ee(c),p=u.missingRawValues,m=u.existRawValues.map(function(e){return ke.get(e).key});if(r)s=rk(m,!0,$e).checkedKeys;else s=rk(m,{halfCheckedKeys:He},$e).checkedKeys;c=[].concat(Fe(p),Fe(s.map(function(e){return $e[e].node[be.value]})))}Ge(c,{selected:r,triggerValue:l},o||"option")}else Ge([l],{selected:!0,triggerValue:l},"option");r||!pe?null==d||d(l,lT(a)):null==f||f(l,lT(a))},[Ee,ke,$e,be,pe,Te,Ge,ue,d,f,ze,He,N]),Xe=l.useCallback(function(e){if(Z){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return R(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Z(e,t)}},[Z]),Ke=cT(function(e,t){var n=e.map(function(e){return e.value});"clear"!==t.type?t.values.length&&Ue(t.values[0].value,{selected:!1,source:"selection"}):Ge(n,{},"selection")}),Ye=l.useMemo(function(){return{virtual:G,dropdownMatchSelectWidth:ee,listHeight:X,listItemHeight:Q,listItemScrollOffset:q,treeData:Oe,fieldNames:be,onSelect:Ue,treeExpandAction:V,treeTitleRender:ae,onPopupScroll:le,leftMaxCount:void 0===N?null:N-We.length,leafCountOnly:"SHOW_CHILD"===ve&&!O&&!!E,valueEntities:ke}},[G,ee,X,Q,q,Oe,be,Ue,V,ae,le,N,We.length,ve,O,E,ke]),qe=l.useMemo(function(){return{checkable:de,loadData:L,treeLoadedKeys:z,onTreeLoad:F,checkedKeys:ze,halfCheckedKeys:He,treeDefaultExpandAll:H,treeExpandedKeys:A,treeDefaultExpandedKeys:_,onTreeExpand:W,treeIcon:ne,treeMotion:ie,showTreeIcon:re,switcherIcon:oe,treeLine:te,treeNodeFilterProp:C,keyEntities:$e}},[de,L,z,F,ze,He,H,A,_,W,ne,ie,re,oe,te,C,$e]);return l.createElement(dT.Provider,{value:Ye},l.createElement(uT.Provider,{value:qe},l.createElement(lg,y({ref:t},ce,{id:se,prefixCls:a,mode:pe?"multiple":void 0,displayValues:We,onDisplayValuesChange:Ke,searchValue:xe,onSearch:function(e){we(e),null==g||g(e)},OptionList:mT,emptyOptions:!Ce.length,onDropdownVisibleChange:Xe,dropdownMatchSelectWidth:ee}))))}),wT=xT;wT.TreeNode=oT,wT.SHOW_ALL=gT,wT.SHOW_PARENT=hT,wT.SHOW_CHILD=vT;function CT(e,t,n){return Zo("TreeSelect",e=>(e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${It(e.paddingXS)} ${It(e.calc(e.paddingXS).div(2).equal())}`},wP(n,Io(e,{colorBgContainer:r}),!1),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},xk(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]})(Io(e,{treePrefixCls:t})),CP)(e,n)}var ST=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 $T=(e,t)=>{var n,r,o,i,a;const{prefixCls:c,size:s,disabled:u,bordered:d=!0,style:f,className:p,rootClassName:m,treeCheckable:g,multiple:h,listHeight:v=256,listItemHeight:y,placement:x,notFoundContent:w,switcherIcon:C,treeLine:S,getPopupContainer:$,popupClassName:k,dropdownClassName:E,treeIcon:O=!1,transitionName:I,choiceTransitionName:N="",status:R,treeExpandAction:j,builtinPlacements:M,dropdownMatchSelectWidth:P,popupMatchSelectWidth:D,allowClear:T,variant:B,dropdownStyle:L,dropdownRender:z,popupRender:F,onDropdownVisibleChange:H,onOpenChange:A,tagRender:_,maxCount:W,showCheckedStrategy:V,treeCheckStrictly:G,styles:U,classNames:X}=e,K=ST(e,["prefixCls","size","disabled","bordered","style","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly","styles","classNames"]),{getPopupContainer:Q,getPrefixCls:Y,renderEmpty:q,direction:Z,virtual:J,popupMatchSelectWidth:ee,popupOverflow:te}=l.useContext(ro),{styles:ne,classNames:re,switcherIcon:oe}=ao("treeSelect"),[,ie]=Go(),ae=null!=y?y:(null==ie?void 0:ie.controlHeightSM)+(null==ie?void 0:ie.paddingXXS),le=Y(),ce=Y("select",c),se=Y("select-tree",c),ue=Y("tree-select",c),{compactSize:de,compactItemClassnames:fe}=Wc(ce,Z),pe=cl(ce),me=cl(ue),[ge,he,ve]=Eh(ce,pe),[be]=CT(ue,se,me),[ye,xe]=eh("treeSelect",B,d),we=b((null===(n=null==X?void 0:X.popup)||void 0===n?void 0:n.root)||(null===(r=null==re?void 0:re.popup)||void 0===r?void 0:r.root)||k||E,`${ue}-dropdown`,{[`${ue}-dropdown-rtl`]:"rtl"===Z},m,re.root,null==X?void 0:X.root,ve,pe,me,he),Ce=(null===(o=null==U?void 0:U.popup)||void 0===o?void 0:o.root)||(null===(i=null==ne?void 0:ne.popup)||void 0===i?void 0:i.root)||L,Se=Lh(F||z),$e=A||H,ke=!(!g&&!h),Ee=l.useMemo(()=>{if(!W||("SHOW_ALL"!==V||G)&&"SHOW_PARENT"!==V)return W},[W,V,G]),Oe=zh(e.suffixIcon,e.showArrow),Ie=null!==(a=null!=D?D:P)&&void 0!==a?a:ee,{status:Ne,hasFeedback:Re,isFormItemInput:je,feedbackIcon:Me}=l.useContext(Nf),Pe=Gg(Ne,R),{suffixIcon:De,removeIcon:Te,clearIcon:Be}=Bh(Object.assign(Object.assign({},K),{multiple:ke,showSuffixIcon:Oe,hasFeedback:Re,feedbackIcon:Me,prefixCls:ce,componentName:"TreeSelect"})),Le=!0===T?{clearIcon:Be}:T;let ze;ze=void 0!==w?w:(null==q?void 0:q("Select"))||l.createElement(Jg,{componentName:"Select"});const Fe=Ic(K,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon","style"]),He=l.useMemo(()=>void 0!==x?x:"rtl"===Z?"bottomRight":"bottomLeft",[x,Z]),Ae=zc(e=>{var t;return null!==(t=null!=s?s:de)&&void 0!==t?t:e}),_e=l.useContext(so),We=null!=u?u:_e,Ve=b(!c&&ue,{[`${ce}-lg`]:"large"===Ae,[`${ce}-sm`]:"small"===Ae,[`${ce}-rtl`]:"rtl"===Z,[`${ce}-${ye}`]:xe,[`${ce}-in-form-item`]:je},Vg(ce,Pe,Re),fe,p,m,re.root,null==X?void 0:X.root,ve,pe,me,he),Ge=null!=C?C:oe,[Ue]=zl("SelectLike",null==Ce?void 0:Ce.zIndex);return ge(be(l.createElement(wT,Object.assign({virtual:J,disabled:We},Fe,{dropdownMatchSelectWidth:Ie,builtinPlacements:th(M,te),ref:t,prefixCls:ce,className:Ve,style:Object.assign(Object.assign({},null==U?void 0:U.root),f),listHeight:v,listItemHeight:ae,treeCheckable:g?l.createElement("span",{className:`${ce}-tree-checkbox-inner`}):g,treeLine:!!S,suffixIcon:De,multiple:ke,placement:He,removeIcon:Te,allowClear:Le,switcherIcon:e=>l.createElement(DP,{prefixCls:se,switcherIcon:Ge,treeNodeProps:e,showLine:S}),showTreeIcon:O,notFoundContent:ze,getPopupContainer:$||Q,treeMotion:null,dropdownClassName:we,dropdownStyle:Object.assign(Object.assign({},Ce),{zIndex:Ue}),dropdownRender:Se,onDropdownVisibleChange:$e,choiceTransitionName:Oc(le,"",N),transitionName:Oc(le,"slide-up",I),treeExpandAction:j,tagRender:ke?_:void 0,maxCount:Ee,showCheckedStrategy:V,treeCheckStrictly:G}))))},kT=l.forwardRef($T),ET=Gp(kT,"dropdownAlign",e=>Ic(e,["visible"]));kT.TreeNode=oT,kT.SHOW_ALL=gT,kT.SHOW_PARENT=hT,kT.SHOW_CHILD=vT,kT._InternalPanelDoNotUseOrYouWillBeFired=ET;var OT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},IT=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:OT}))},NT=l.forwardRef(IT),RT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},jT=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:RT}))},MT=l.forwardRef(jT);const PT=e=>{const t={};return[1,2,3,4,5].forEach(n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},DT=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},qo(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},TT=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Dr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),BT=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},LT=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}});var zT=Zo("Typography",e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},PT(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),TT(e)),DT(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},qo(e)),{marginInlineStart:e.marginXXS})}),BT(e)),LT(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}));const FT=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:c=!0,value:s,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:m=l.createElement(MT,null)}=e,g=l.useRef(null),h=l.useRef(!1),v=l.useRef(null),[y,x]=l.useState(s);l.useEffect(()=>{x(s)},[s]),l.useEffect(()=>{var e;if(null===(e=g.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=g.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}},[]);const w=()=>{u(y.trim())},[C,S,$]=zT(t),k=b(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===i,[`${t}-${p}`]:!!p},r,S,$);return C(l.createElement("div",{className:k,style:o},l.createElement(WI,{ref:g,maxLength:a,value:y,onChange:({target:e})=>{x(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{h.current||(v.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:o})=>{v.current!==e||h.current||t||n||r||o||(e===sl.ENTER?(w(),null==f||f()):e===sl.ESC&&d())},onCompositionStart:()=>{h.current=!0},onCompositionEnd:()=>{h.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:c}),null!==m?Za(m,{className:`${t}-edit-content-confirm`}):null))};var HT,AT,_T,WT;var VT=function(){if(WT)return _T;WT=1;var e=(AT||(AT=1,HT=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}),HT),t={"text/plain":"Text","text/html":"Url",default:"Text"};return _T=function(n,r){var o,i,a,l,c,s,u=!1;r||(r={}),o=r.debug||!1;try{if(a=e(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=n,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(e){if(e.stopPropagation(),r.format)if(e.preventDefault(),void 0===e.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=t[r.format]||t.default;window.clipboardData.setData(i,n)}else e.clipboardData.clearData(),e.clipboardData.setData(r.format,n);r.onCopy&&(e.preventDefault(),r.onCopy(e.clipboardData))}),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(e){o&&console.error("unable to copy using execCommand: ",e),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",n),r.onCopy&&r.onCopy(window.clipboardData),u=!0}catch(e){o&&console.error("unable to copy using clipboardData: ",e),o&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in r?r.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,n)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u},_T}(),GT=p(VT),UT=window&&window.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((r=r.apply(e,t||[])).next())})};const XT=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[o,i]=l.useState(!1),a=l.useRef(null),c=()=>{a.current&&clearTimeout(a.current)},s={};e.format&&(s.format=e.format),l.useEffect(()=>c,[]);const u=wo(n=>UT(void 0,void 0,void 0,function*(){var o;null==n||n.preventDefault(),null==n||n.stopPropagation(),i(!0);try{const l="function"==typeof e.text?yield e.text():e.text;GT(l||((e,t=!1)=>t&&null==e?[]:Array.isArray(e)?e:[e])(t,!0).join("")||"",s),i(!1),r(!0),c(),a.current=setTimeout(()=>{r(!1)},3e3),null===(o=e.onCopy)||void 0===o||o.call(e,n)}catch(e){throw i(!1),e}}));return{copied:n,copyLoading:o,onClick:u}};function KT(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]},[e])}var QT=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 YT=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:c,direction:s,style:u}=e,d=QT(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,className:m,style:g}=ao("typography"),h=null!=s?s:p,v=a?U(t,a):t,y=f("typography",n),[x,w,C]=zT(y),S=b(y,m,{[`${y}-rtl`]:"rtl"===h},o,i,w,C),$=Object.assign(Object.assign({},g),u);return x(l.createElement(r,Object.assign({className:S,style:$,ref:v},d),c))});var qT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},ZT=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:qT}))},JT=l.forwardRef(ZT);function eB(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function tB(e,t,n){return!0===e||void 0===e?t:e||n&&t}const nB=e=>["string","number"].includes(typeof e),rB=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:i,tabIndex:a,onCopy:c,loading:s})=>{const u=eB(o),d=eB(i),{copied:f,copy:p}=null!=n?n:{},m=t?f:p,g=tB(u[t?1:0],m),h="string"==typeof g?g:m;return l.createElement($v,{title:g},l.createElement("button",{type:"button",className:b(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:c,"aria-label":h,tabIndex:a},t?tB(d[1],l.createElement(Nh,null),!0):tB(d[0],s?l.createElement(Cl,null):l.createElement(JT,null),!0)))},oB=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)});function iB(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],a=n+(nB(i)?String(i).length:1);if(a>t){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const aB=0,lB=4,cB={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function sB(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:c,onEllipsis:s}=e,u=l.useMemo(()=>k(r),[r]),d=l.useMemo(()=>(e=>e.reduce((e,t)=>e+(nB(t)?String(t).length:1),0))(u),[r]),f=l.useMemo(()=>o(u,!1),[r]),[p,m]=l.useState(null),g=l.useRef(null),h=l.useRef(null),v=l.useRef(null),b=l.useRef(null),y=l.useRef(null),[x,w]=l.useState(!1),[C,S]=l.useState(aB),[$,E]=l.useState(0),[O,I]=l.useState(null);Dt(()=>{S(t&&n&&d?1:aB)},[n,r,i,t,u]),Dt(()=>{var e,t,n,r;if(1===C){S(2);const e=h.current&&getComputedStyle(h.current).whiteSpace;I(e)}else if(2===C){const o=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());S(o?3:lB),m(o?[0,d]:null),w(o);const a=(null===(t=v.current)||void 0===t?void 0:t.getHeight())||0,l=1===i?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(r=y.current)||void 0===r?void 0:r.getHeight())||0,u=Math.max(a,l+c);E(u+1),s(o)}},[C]);const N=p?Math.ceil((p[0]+p[1])/2):0;Dt(()=>{var e;const[t,n]=p||[0,0];if(t!==n){const r=((null===(e=g.current)||void 0===e?void 0:e.getHeight())||0)>$;let o=N;n-t===1&&(o=r?t:n),m(r?[t,o]:[o,n])}},[p,N]);const R=l.useMemo(()=>{if(!t)return o(u,!1);if(3!==C||!p||p[0]!==p[1]){const e=o(u,!1);return[lB,aB].includes(C)?e:l.createElement("span",{style:Object.assign(Object.assign({},cB),{WebkitLineClamp:i})},e)}return o(a?u:iB(u,p[0]),x)},[a,C,p,u].concat(Fe(c))),j={width:n,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return l.createElement(l.Fragment,null,R,2===C&&l.createElement(l.Fragment,null,l.createElement(oB,{style:Object.assign(Object.assign(Object.assign({},j),cB),{WebkitLineClamp:i}),ref:v},f),l.createElement(oB,{style:Object.assign(Object.assign(Object.assign({},j),cB),{WebkitLineClamp:i-1}),ref:b},f),l.createElement(oB,{style:Object.assign(Object.assign(Object.assign({},j),cB),{WebkitLineClamp:1}),ref:y},o([],!0))),3===C&&p&&p[0]!==p[1]&&l.createElement(oB,{style:Object.assign(Object.assign({},j),{top:400}),ref:g},o(iB(u,N),!0)),1===C&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}const uB=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>(null==r?void 0:r.title)&&e?l.createElement($v,Object.assign({open:!!t&&void 0},r),n):n;var dB=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 fB=["delete","mark","code","underline","strong","keyboard","italic"],pB=l.forwardRef((t,n)=>{var r;const{prefixCls:o,className:i,style:a,type:c,disabled:s,children:u,ellipsis:d,editable:f,copyable:p,component:m,title:g}=t,h=dB(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:v,direction:y}=l.useContext(ro),[x]=hr("Text"),w=l.useRef(null),C=l.useRef(null),S=v("typography",o),$=Ic(h,fB),[E,O]=KT(f),[I,N]=$o(!1,{value:O.editing}),{triggerType:R=["icon"]}=O,j=e=>{var t;e&&(null===(t=O.onStart)||void 0===t||t.call(O)),N(e)},M=(t=>{const n=e.useRef(void 0);return e.useEffect(()=>{n.current=t}),n.current})(I);Dt(()=>{var e;!I&&M&&(null===(e=C.current)||void 0===e||e.focus())},[I]);const P=e=>{null==e||e.preventDefault(),j(!0)},D=e=>{var t;null===(t=O.onChange)||void 0===t||t.call(O,e),j(!1)},T=()=>{var e;null===(e=O.onCancel)||void 0===e||e.call(O),j(!1)},[B,L]=KT(p),{copied:z,copyLoading:F,onClick:H}=XT({copyConfig:L,children:u}),[A,_]=l.useState(!1),[W,V]=l.useState(!1),[G,X]=l.useState(!1),[K,Q]=l.useState(!1),[Y,q]=l.useState(!0),[Z,J]=KT(d,{expandable:!1,symbol:e=>e?null==x?void 0:x.collapse:null==x?void 0:x.expand}),[ee,te]=$o(J.defaultExpanded||!1,{value:J.expanded}),ne=Z&&(!ee||"collapsible"===J.expandable),{rows:re=1}=J,oe=l.useMemo(()=>ne&&(void 0!==J.suffix||J.onEllipsis||J.expandable||E||B),[ne,J,E,B]);Dt(()=>{Z&&!oe&&(_(Df("webkitLineClamp")),V(Df("textOverflow")))},[oe,Z]);const[ie,ae]=l.useState(ne),le=l.useMemo(()=>!oe&&(1===re?W:A),[oe,W,A]);Dt(()=>{ae(le&&ne)},[le,ne]);const ce=ne&&(ie?K:G),se=ne&&1===re&&ie,ue=ne&&re>1&&ie,[de,fe]=l.useState(0),pe=e=>{var t;X(e),G!==e&&(null===(t=J.onEllipsis)||void 0===t||t.call(J,e))};l.useEffect(()=>{const e=w.current;if(Z&&ie&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}(e);K!==t&&Q(t)}},[Z,ie,u,ue,Y,de]),l.useEffect(()=>{const e=w.current;if("undefined"==typeof IntersectionObserver||!e||!ie||!ne)return;const t=new IntersectionObserver(()=>{q(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ie,ne]);const me=((t,n,r)=>e.useMemo(()=>!0===t?{title:null!=n?n:r}:e.isValidElement(t)?{title:t}:"object"==typeof t?Object.assign({title:null!=n?n:r},t):{title:t},[t,n,r]))(J.tooltip,O.text,u),ge=l.useMemo(()=>{if(Z&&!ie)return[O.text,u,g,me.title].find(nB)},[Z,ie,g,me.title,ce]);if(I)return l.createElement(FT,{value:null!==(r=O.text)&&void 0!==r?r:"string"==typeof u?u:"",onSave:D,onCancel:T,onEnd:O.onEnd,prefixCls:S,className:i,style:a,direction:y,component:m,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const he=()=>{const{expandable:e,symbol:t}=J;return e?l.createElement("button",{type:"button",key:"expand",className:`${S}-${ee?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;te(t.expanded),null===(n=J.onExpand)||void 0===n||n.call(J,e,t)})(e,{expanded:!ee}),"aria-label":ee?x.collapse:null==x?void 0:x.expand},"function"==typeof t?t(ee):t):null},ve=()=>{if(!E)return;const{icon:e,tooltip:t,tabIndex:n}=O,r=k(t)[0]||(null==x?void 0:x.edit),o="string"==typeof r?r:"";return R.includes("icon")?l.createElement($v,{key:"edit",title:!1===t?"":r},l.createElement("button",{type:"button",ref:C,className:`${S}-edit`,onClick:P,"aria-label":o,tabIndex:n},e||l.createElement(NT,{role:"button"}))):null},be=e=>[e&&he(),ve(),B?l.createElement(rB,Object.assign({key:"copy"},L,{prefixCls:S,copied:z,locale:x,onCopy:H,loading:F,iconOnly:null==u})):null];return l.createElement(Te,{onResize:({offsetWidth:e})=>{fe(e)},disabled:!ne},e=>l.createElement(uB,{tooltipProps:me,enableEllipsis:ne,isEllipsis:ce},l.createElement(YT,Object.assign({className:b({[`${S}-${c}`]:c,[`${S}-disabled`]:s,[`${S}-ellipsis`]:Z,[`${S}-ellipsis-single-line`]:se,[`${S}-ellipsis-multiple-line`]:ue},i),prefixCls:o,style:Object.assign(Object.assign({},a),{WebkitLineClamp:ue?re:void 0}),component:m,ref:U(e,w,n),direction:y,onClick:R.includes("text")?P:void 0,"aria-label":null==ge?void 0:ge.toString(),title:g},$),l.createElement(sB,{enableMeasure:ne&&!ie,text:u,rows:re,width:de,onEllipsis:pe,expanded:ee,miscDeps:[z,ee,F,E,B,x].concat(Fe(fB.map(e=>t[e])))},(e,n)=>function({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:i,italic:a},c){let s=c;function u(e,t){t&&(s=l.createElement(e,{},s))}return u("strong",o),u("u",n),u("del",r),u("code",t),u("mark",e),u("kbd",i),u("i",a),s}(t,l.createElement(l.Fragment,null,e.length>0&&n&&!ee&&ge?l.createElement("span",{key:"show-content","aria-hidden":!0},e):e,(e=>[e&&!ee&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),J.suffix,be(e)])(n)))))))});var mB=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 gB=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:i}=e,a=mB(e,["ellipsis","rel","children","navigate"]),c=Object.assign(Object.assign({},a),{rel:void 0===r&&"_blank"===a.target?"noopener noreferrer":r});return l.createElement(pB,Object.assign({},c,{ref:t,ellipsis:!!n,component:"a"}),o)});var hB=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 vB=l.forwardRef((e,t)=>{const{children:n}=e,r=hB(e,["children"]);return l.createElement(pB,Object.assign({ref:t},r,{component:"div"}),n)});var bB=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 yB=(e,t)=>{const{ellipsis:n,children:r}=e,o=bB(e,["ellipsis","children"]),i=l.useMemo(()=>n&&"object"==typeof n?Ic(n,["expandable","rows"]):n,[n]);return l.createElement(pB,Object.assign({ref:t},o,{ellipsis:i,component:"span"}),r)};var xB=l.forwardRef(yB),wB=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 CB=[1,2,3,4,5],SB=l.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=wB(e,["level","children"]),i=CB.includes(n)?`h${n}`:"h1";return l.createElement(pB,Object.assign({ref:t},o,{component:i}),r)}),$B=YT;$B.Text=xB,$B.Link=gB,$B.Title=SB,$B.Paragraph=vB;var kB=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&(R(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0};function EB(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function OB(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var r=e.data[t];Array.isArray(r)?r.forEach(function(e){n.append("".concat(t,"[]"),e)}):n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),EB(t)):e.onSuccess(EB(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(e){null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort:function(){t.abort()}}}var IB=function(){var e=lc(ic().mark(function e(t,n){var r,o,i,a,l,c,s,u;return ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c=function(){return(c=lc(ic().mark(function e(t){return ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){t.file(function(r){n(r)?(t.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),e(r)):e(null)})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return c.apply(this,arguments)},a=function(){return a=lc(ic().mark(function e(t){var n,r,o,i,a;return ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),r=[];case 2:return e.next=5,new Promise(function(e){n.readEntries(e,function(){return e([])})});case 5:if(o=e.sent,i=o.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a<i;a++)r.push(o[a]);e.next=2;break;case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}},e)})),a.apply(this,arguments)},i=function(e){return a.apply(this,arguments)},r=[],o=[],t.forEach(function(e){return o.push(e.webkitGetAsEntry())}),s=function(){var e=lc(ic().mark(function e(t,n){var a,c;return ic().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.path=n||"",!t.isFile){e.next=10;break}return e.next=6,l(t);case 6:(a=e.sent)&&r.push(a),e.next=15;break;case 10:if(!t.isDirectory){e.next=15;break}return e.next=13,i(t);case 13:c=e.sent,o.push.apply(o,Fe(c));case 15:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),u=0;case 9:if(!(u<o.length)){e.next=15;break}return e.next=12,s(o[u]);case 12:u++,e.next=9;break;case 15:return e.abrupt("return",r);case 16:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),NB=+new Date,RB=0;function jB(){return"rc-upload-".concat(NB,"-").concat(++RB)}var MB=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","folder","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],PB=function(){Ee(n,e.Component);var t=Re(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return M(Ne(e=t.call.apply(t,[this].concat(o))),"state",{uid:jB()}),M(Ne(e),"reqs",{}),M(Ne(e),"fileInput",void 0),M(Ne(e),"_isMounted",void 0),M(Ne(e),"onChange",function(t){var n=e.props,r=n.accept,o=n.directory,i=Fe(t.target.files).filter(function(e){return!o||kB(e,r)});e.uploadFiles(i),e.reset()}),M(Ne(e),"onClick",function(t){var n=e.fileInput;if(n){var r=t.target,o=e.props.onClick;if(r&&"BUTTON"===r.tagName)n.parentNode.focus(),r.blur();n.click(),o&&o(t)}}),M(Ne(e),"onKeyDown",function(t){"Enter"===t.key&&e.onClick(t)}),M(Ne(e),"onDataTransferFiles",function(){var t=lc(ic().mark(function t(n,r){var o,i,a,l,c,s,u;return ic().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props,i=o.multiple,a=o.accept,l=o.directory,c=Fe(n.items||[]),((s=Fe(n.files||[])).length>0||c.some(function(e){return"file"===e.kind}))&&(null==r||r()),!l){t.next=11;break}return t.next=7,IB(Array.prototype.slice.call(c),function(t){return kB(t,e.props.accept)});case 7:s=t.sent,e.uploadFiles(s),t.next=14;break;case 11:u=Fe(s).filter(function(e){return kB(e,a)}),!1===i&&(u=s.slice(0,1)),e.uploadFiles(u);case 14:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()),M(Ne(e),"onFilePaste",function(){var t=lc(ic().mark(function t(n){var r;return ic().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.props.pastable){t.next=3;break}return t.abrupt("return");case 3:if("paste"!==n.type){t.next=6;break}return r=n.clipboardData,t.abrupt("return",e.onDataTransferFiles(r,function(){n.preventDefault()}));case 6:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),M(Ne(e),"onFileDragOver",function(e){e.preventDefault()}),M(Ne(e),"onFileDrop",function(){var t=lc(ic().mark(function t(n){var r;return ic().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),"drop"!==n.type){t.next=4;break}return r=n.dataTransfer,t.abrupt("return",e.onDataTransferFiles(r));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),M(Ne(e),"uploadFiles",function(t){var n=Fe(t),r=n.map(function(t){return t.uid=jB(),e.processFile(t,n)});Promise.all(r).then(function(t){var n=e.props.onBatchStart;null==n||n(t.map(function(e){return{file:e.origin,parsedFile:e.parsedFile}})),t.filter(function(e){return null!==e.parsedFile}).forEach(function(t){e.post(t)})})}),M(Ne(e),"processFile",function(){var t=lc(ic().mark(function t(n,r){var o,i,a,l,c,s,u,d,f;return ic().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,i=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:l=t.sent,t.next=22;break;case 21:l=a;case 22:if("function"!=typeof(c=e.props.data)){t.next=29;break}return t.next=26,c(n);case 26:s=t.sent,t.next=30;break;case 29:s=c;case 30:return u="object"!==x(i)&&"string"!=typeof i||!i?n:i,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(f=d).uid=n.uid,t.abrupt("return",{origin:n,data:s,parsedFile:f,action:l});case 35:case"end":return t.stop()}},t,null,[[3,9]])}));return function(e,n){return t.apply(this,arguments)}}()),M(Ne(e),"saveFileInput",function(t){e.fileInput=t}),e}return $e(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.pastable&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(e){var t=this.props.pastable;t&&!e.pastable?document.addEventListener("paste",this.onFilePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,o=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,l=a.onStart,c=a.customRequest,s=a.name,u=a.headers,d=a.withCredentials,f=a.method,p=r.uid,m=c||OB,g={action:o,filename:s,data:n,file:i,headers:u,withCredentials:d,method:f||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,i)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,i,n),delete t.reqs[p]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,i),delete t.reqs[p]}};l(r),this.reqs[p]=m(g,{defaultRequest:OB})}}},{key:"reset",value:function(){this.setState({uid:jB()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var t=this.props,n=t.component,r=t.prefixCls,o=t.className,i=t.classNames,a=void 0===i?{}:i,l=t.disabled,c=t.id,s=t.name,u=t.style,d=t.styles,f=void 0===d?{}:d,p=t.multiple,m=t.accept,g=t.capture,h=t.children,v=t.directory,x=t.folder,w=t.openFileDialogOnClick,C=t.onMouseEnter,S=t.onMouseLeave,$=t.hasControlInside,k=st(t,MB),E=b(M(M(M({},r,!0),"".concat(r,"-disabled"),l),o,o)),O=v||x?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},I=l?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:C,onMouseLeave:S,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:$?void 0:"0"};return e.createElement(n,y({},I,{className:E,role:$?void 0:"button",style:u}),e.createElement("input",y({},Ya(k,{aria:!0,data:!0}),{id:c,name:s,disabled:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:D({display:"none"},f.input),className:a.input,accept:m},O,{multiple:p,onChange:this.onChange},null!=g?{capture:g}:{})),h)}}]),n}();function DB(){}var TB=function(){Ee(n,e.Component);var t=Re(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return M(Ne(e=t.call.apply(t,[this].concat(o))),"uploader",void 0),M(Ne(e),"saveUploader",function(t){e.uploader=t}),e}return $e(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return e.createElement(PB,y({},this.props,{ref:this.saveUploader}))}}]),n}();M(TB,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:DB,onError:DB,onSuccess:DB,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const BB=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${It(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${It(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${It(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},LB=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:i}=e,a=`${t}-list-item`,l=`${a}-actions`,c=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Uo),{padding:`0 ${It(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${c}:focus-visible,\n &.picture ${c}\n `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${c}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},zB=e=>{const{componentCls:t}=e,n=new Gn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Gn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:Cs(e)},n,r]},FB=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${It(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},Uo),{width:r,height:r,lineHeight:It(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${It(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${Fr[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Fr.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},HB=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${It(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${It(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${It(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:r,margin:`0 ${It(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${It(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${It(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},AB=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},_B=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Xo(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}};var WB=Zo("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:o,calc:i}=e,a=Io(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:o});return[_B(a),BB(a),FB(a),HB(a),LB(a),zB(a),AB(a),hs(a)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG})),VB={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},GB=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:VB}))},UB=l.forwardRef(GB),XB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},KB=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:XB}))},QB=l.forwardRef(KB),YB={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},qB=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:YB}))},ZB=l.forwardRef(qB);function JB(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function eL(e,t){const n=Fe(t),r=n.findIndex(({uid:t})=>t===e.uid);return-1===r?n.push(e):n[r]=e,n}function tL(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}const nL=e=>0===e.indexOf("image/"),rL=e=>{if(e.type&&!e.thumbUrl)return nL(e.type);const t=e.thumbUrl||e.url||"",n=((e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]})(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},oL=200;function iL(e){return new Promise(t=>{if(!e.type||!nL(e.type))return void t("");const n=document.createElement("canvas");n.width=oL,n.height=oL,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=oL,l=oL,c=0,s=0;e>i?(l=i*(oL/e),s=-(l-a)/2):(a=e*(oL/i),c=-(a-l)/2),r.drawImage(o,c,s,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var aL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},lL=function(e,t){return l.createElement(Pa,y({},e,{ref:t,icon:aL}))},cL=l.forwardRef(lL);const sL=l.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:i,items:a,progress:c,iconRender:s,actionIconRender:u,itemRender:d,isImgUrl:f,showPreviewIcon:p,showRemoveIcon:m,showDownloadIcon:g,previewIcon:h,removeIcon:v,downloadIcon:y,extra:x,onPreview:w,onDownload:C,onClose:S},$)=>{var k,E;const{status:O}=i,[I,N]=l.useState(O);l.useEffect(()=>{"removed"!==O&&N(O)},[O]);const[R,j]=l.useState(!1);l.useEffect(()=>{const e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);const M=s(i);let P=l.createElement("div",{className:`${e}-icon`},M);if("picture"===o||"picture-card"===o||"picture-circle"===o)if("uploading"===I||!i.thumbUrl&&!i.url){const t=b(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:"uploading"!==I});P=l.createElement("div",{className:t},M)}else{const t=(null==f?void 0:f(i))?l.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):M,n=b(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(i)});P=l.createElement("a",{className:n,onClick:e=>w(i,e),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}const D=b(`${e}-list-item`,`${e}-list-item-${I}`),T="string"==typeof i.linkProps?JSON.parse(i.linkProps):i.linkProps,B=("function"==typeof m?m(i):m)?u(("function"==typeof v?v(i):v)||l.createElement(tT,null),()=>S(i),e,r.removeFile,!0):null,L=("function"==typeof g?g(i):g)&&"done"===I?u(("function"==typeof y?y(i):y)||l.createElement(cL,null),()=>C(i),e,r.downloadFile):null,z="picture-card"!==o&&"picture-circle"!==o&&l.createElement("span",{key:"download-delete",className:b(`${e}-list-item-actions`,{picture:"picture"===o})},L,B),F="function"==typeof x?x(i):x,H=F&&l.createElement("span",{className:`${e}-list-item-extra`},F),A=b(`${e}-list-item-name`),_=i.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:A,title:i.name},T,{href:i.url,onClick:e=>w(i,e)}),i.name,H):l.createElement("span",{key:"view",className:A,onClick:e=>w(i,e),title:i.name},i.name,H),W=("function"==typeof p?p(i):p)&&(i.url||i.thumbUrl)?l.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>w(i,e),title:r.previewFile},"function"==typeof h?h(i):h||l.createElement(gI,null)):null,V=("picture-card"===o||"picture-circle"===o)&&"uploading"!==I&&l.createElement("span",{className:`${e}-list-item-actions`},W,"done"===I&&L,B),{getPrefixCls:G}=l.useContext(ro),U=G(),X=l.createElement("div",{className:D},P,_,z,V,R&&l.createElement(Ai,{motionName:`${U}-fade`,visible:"uploading"===I,motionDeadline:2e3},({className:t})=>{const n="percent"in i?l.createElement(CR,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},c)):null;return l.createElement("div",{className:b(`${e}-list-item-progress`,t)},n)})),K=i.response&&"string"==typeof i.response?i.response:(null===(k=i.error)||void 0===k?void 0:k.statusText)||(null===(E=i.error)||void 0===E?void 0:E.message)||r.uploadError,Q="error"===I?l.createElement($v,{title:K,getPopupContainer:e=>e.parentNode},X):X;return l.createElement("div",{className:b(`${e}-list-item-container`,t),style:n,ref:$},d?d(Q,i,a,{download:C.bind(null,i),preview:w.bind(null,i),remove:S.bind(null,i)}):Q)}),uL=(e,t)=>{const{listType:n="text",previewFile:r=iL,onPreview:o,onDownload:i,onRemove:a,locale:c,iconRender:s,isImageUrl:u=rL,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:m=!0,showDownloadIcon:g=!1,removeIcon:h,previewIcon:v,downloadIcon:y,extra:x,progress:w={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:S=!0,itemRender:$,disabled:k}=e,[,E]=Ol(),[O,I]=l.useState(!1),N=["picture-card","picture-circle"].includes(n);l.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==r||r(e.originFileObj).then(t=>{e.thumbUrl=t||"",E()}))})},[n,f,r]),l.useEffect(()=>{I(!0)},[]);const R=(e,t)=>{if(o)return null==t||t.preventDefault(),o(e)},j=e=>{"function"==typeof i?i(e):e.url&&window.open(e.url)},M=e=>{null==a||a(e)},P=e=>{if(s)return s(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const r="picture"===n?l.createElement(Cl,null):c.uploading,o=(null==u?void 0:u(e))?l.createElement(ZB,null):l.createElement(UB,null);return t?r:o}return t?l.createElement(Cl,null):l.createElement(QB,null)},D=(e,t,n,r,o)=>{const i={type:"text",size:"small",title:r,onClick:n=>{var r,o;t(),l.isValidElement(e)&&(null===(o=(r=e.props).onClick)||void 0===o||o.call(r,n))},className:`${n}-list-item-action`,disabled:!!o&&k};return l.isValidElement(e)?l.createElement(zu,Object.assign({},i,{icon:Za(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):l.createElement(zu,Object.assign({},i),l.createElement("span",null,e))};l.useImperativeHandle(t,()=>({handlePreview:R,handleDownload:j}));const{getPrefixCls:T}=l.useContext(ro),B=T("upload",d),L=T(),z=b(`${B}-list`,`${B}-list-${n}`),F=l.useMemo(()=>Ic(Ec(L),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[L]),H=Object.assign(Object.assign({},N?{}:F),{motionDeadline:2e3,motionName:`${B}-${N?"animate-inline":"animate"}`,keys:Fe(f.map(e=>({key:e.uid,file:e}))),motionAppear:O});return l.createElement("div",{className:z},l.createElement(qi,Object.assign({},H,{component:!1}),({key:e,file:t,className:r,style:o})=>l.createElement(sL,{key:e,locale:c,prefixCls:B,className:r,style:o,file:t,items:f,progress:w,listType:n,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:m,showDownloadIcon:g,removeIcon:h,previewIcon:v,downloadIcon:y,extra:x,iconRender:P,actionIconRender:D,itemRender:$,onPreview:R,onDownload:j,onClose:M})),C&&l.createElement(Ai,Object.assign({},H,{visible:S,forceRender:!0}),({className:e,style:t})=>Za(C,n=>({className:b(n.className,e),style:Object.assign(Object.assign(Object.assign({},t),{pointerEvents:e?"none":void 0}),n.style)}))))},dL=l.forwardRef(uL);var fL=window&&window.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((r=r.apply(e,t||[])).next())})};const pL=`__LIST_IGNORE_${Date.now()}__`,mL=(e,t)=>{const n=ao("upload"),{fileList:o,defaultFileList:i,onRemove:a,showUploadList:c=!0,listType:s="text",onPreview:u,onDownload:d,onChange:f,onDrop:p,previewFile:m,disabled:g,locale:h,iconRender:v,isImageUrl:y,progress:x,prefixCls:w,className:C,type:S="select",children:$,style:k,itemRender:E,maxCount:O,data:I={},multiple:N=!1,hasControlInside:R=!0,action:j="",accept:M="",supportServerRender:P=!0,rootClassName:D}=e,T=l.useContext(so),B=null!=g?g:T,L=e.customRequest||n.customRequest,[z,F]=$o(i||[],{value:o,postState:e=>null!=e?e:[]}),[H,A]=l.useState("drop"),_=l.useRef(null),W=l.useRef(null);l.useMemo(()=>{const e=Date.now();(o||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[o]);const V=(e,t,n)=>{let o=Fe(t),i=!1;1===O?o=o.slice(-1):O&&(i=o.length>O,o=o.slice(0,O)),r.flushSync(()=>{F(o)});const a={file:e,fileList:o};n&&(a.event=n),i&&"removed"!==e.status&&!o.some(t=>t.uid===e.uid)||r.flushSync(()=>{null==f||f(a)})},G=e=>{const t=e.filter(e=>!e.file[pL]);if(!t.length)return;const n=t.map(e=>JB(e.file));let r=Fe(z);n.forEach(e=>{r=eL(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}V(o,r)})},U=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!tL(t,z))return;const r=JB(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=eL(r,z);V(r,o)},X=(e,t)=>{if(!tL(t,z))return;const n=JB(t);n.status="uploading",n.percent=e.percent;const r=eL(n,z);V(n,r,e)},K=(e,t,n)=>{if(!tL(n,z))return;const r=JB(n);r.error=e,r.response=t,r.status="error";const o=eL(r,z);V(r,o)},Q=e=>{let t;Promise.resolve("function"==typeof a?a(e):a).then(n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}(e,z);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==z||z.forEach(e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null===(r=_.current)||void 0===r||r.abort(t),V(t,o))})},Y=e=>{A(e.type),"drop"===e.type&&(null==p||p(e))};l.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:U,onProgress:X,onError:K,fileList:z,upload:_.current,nativeElement:W.current}));const{getPrefixCls:q,direction:Z,upload:J}=l.useContext(ro),ee=q("upload",w),te=Object.assign(Object.assign({onBatchStart:G,onError:K,onProgress:X,onSuccess:U},e),{customRequest:L,data:I,multiple:N,action:j,accept:M,supportServerRender:P,prefixCls:ee,disabled:B,beforeUpload:(t,n)=>fL(void 0,void 0,void 0,function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[pL],e===pL)return Object.defineProperty(t,pL,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i}),onChange:void 0,hasControlInside:R});delete te.className,delete te.style,$&&!B||delete te.id;const ne=`${ee}-wrapper`,[re,oe,ie]=WB(ee,ne),[ae]=hr("Upload",ur.Upload),{showRemoveIcon:le,showPreviewIcon:ce,showDownloadIcon:se,removeIcon:ue,previewIcon:de,downloadIcon:fe,extra:pe}="boolean"==typeof c?{}:c,me=void 0===le?!B:le,ge=(e,t)=>c?l.createElement(dL,{prefixCls:ee,listType:s,items:z,previewFile:m,onPreview:u,onDownload:d,onRemove:Q,showRemoveIcon:me,showPreviewIcon:ce,showDownloadIcon:se,removeIcon:ue,previewIcon:de,downloadIcon:fe,iconRender:v,extra:pe,locale:Object.assign(Object.assign({},ae),h),isImageUrl:y,progress:x,appendAction:e,appendActionVisible:t,itemRender:E,disabled:B}):e,he=b(ne,C,D,oe,ie,null==J?void 0:J.className,{[`${ee}-rtl`]:"rtl"===Z,[`${ee}-picture-card-wrapper`]:"picture-card"===s,[`${ee}-picture-circle-wrapper`]:"picture-circle"===s}),ve=Object.assign(Object.assign({},null==J?void 0:J.style),k);if("drag"===S){const e=b(oe,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:z.some(e=>"uploading"===e.status),[`${ee}-drag-hover`]:"dragover"===H,[`${ee}-disabled`]:B,[`${ee}-rtl`]:"rtl"===Z});return re(l.createElement("span",{className:he,ref:W},l.createElement("div",{className:e,style:ve,onDrop:Y,onDragOver:Y,onDragLeave:Y},l.createElement(TB,Object.assign({},te,{ref:_,className:`${ee}-btn`}),l.createElement("div",{className:`${ee}-drag-container`},$))),ge()))}const be=b(ee,`${ee}-select`,{[`${ee}-disabled`]:B,[`${ee}-hidden`]:!$}),ye=l.createElement("div",{className:be,style:ve},l.createElement(TB,Object.assign({},te,{ref:_})));return re("picture-card"===s||"picture-circle"===s?l.createElement("span",{className:he,ref:W},ge(ye,!!$)):l.createElement("span",{className:he,ref:W},ye,ge()))},gL=l.forwardRef(mL);var hL=window&&window.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 vL=l.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:o=!1,children:i}=e,a=hL(e,["style","height","hasControlInside","children"]),c=Object.assign(Object.assign({},n),{height:r});return l.createElement(gL,Object.assign({ref:t,hasControlInside:o},a,{style:c,type:"drag"}),i)}),bL=gL;bL.Dragger=vL,bL.LIST_IGNORE=pL;s(".dialog .ant-modal-content{display:flex;flex-direction:column;height:100%}.dialog .ant-modal-body{flex:auto;overflow:auto}.dialog.ant-modal>.react-draggable{height:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvRGlhbG9nL2luZGV4Lmxlc3MiLCJpbmRleC5sZXNzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDJCQUVJLFlBQUEsQ0FDQSxxQkFBQSxDQUNBLFdDQUosQ0RKQSx3QkFPSSxTQUFBLENBQ0EsYUNBSixDREVFLG1DQUNFLFdDQUoiLCJmaWxlIjoiaW5kZXgubGVzcyJ9 */");let yL=1;class xL extends e.Component{static show(e){let t,o=document.body,i=document.createElement("div"),a=e&&e.onOk,l=e&&e.onCancel;return i.id="dialog-"+yL++,i.style.cssText="position:absolute;top:0;left:0;",o.appendChild(i),(e=e||{}).visible=!0,e.getContainer=!1,e.destroyOnClose=!0,e.onOk=()=>{a&&a(),o.removeChild(i)},e.onCancel=()=>{l&&l(),o.removeChild(i)},r.render(n.jsx(xL,{...e,ref:e=>t=e}),i),t}static confirm(e,t,n){return xL.show({title:e,children:t,onOk:n})}draggleRef;constructor(e){super(e),this.state={disabled:!0,bounds:{left:0,top:0,bottom:0,right:0}}}onStart(e,t){const{clientWidth:n,clientHeight:r}=window.document.documentElement,o=this.draggleRef?.current?.getBoundingClientRect();this.setState({bounds:{left:-o?.left+t?.x,right:n-(o?.right-t?.x),top:-o?.top+t?.y,bottom:r-(o?.bottom-t?.y)}})}render(){let e={...this.props},t=this.state,r=e.visible;return delete e.visible,n.jsx(GN,{className:"dialog",maskClosable:!1,...e,open:r,title:n.jsx("div",{style:{cursor:"move"},onMouseOver:()=>{this.setState({disabled:!1})},onMouseOut:()=>{this.setState({disabled:!0})},onFocus:()=>{},onBlur:()=>{},children:e.title}),modalRender:e=>n.jsx(o,{disabled:t.disabled,bounds:t.bounds,onStart:(e,t)=>this.onStart(e,t),children:n.jsx("div",{ref:this.draggleRef,children:e})}),children:e.children})}close(e){let t=this.props;e?t.onOk&&t.onOk():t.onCancel&&t.onCancel()}}s(".BMap_cpyCtrl,.anchorBL{display:none}.tangram-suggestion-main{z-index:10000}.gaoDe-container{position:relative}.gaoDe-container .input-item-prepend{background-color:#fff;border:1px solid #ddd;border-radius:6px;left:12px;padding-left:12px;position:absolute;top:12px;width:320px;z-index:99}.gaoDe-container .input-item-prepend .input-group-wrapper{align-items:center;display:flex;position:relative}.gaoDe-container .input-item-prepend .input-group-wrapper .input-group-addon{padding-right:12px}.gaoDe-container .input-item-prepend .input-group-wrapper .input-affix-wrapper{border-radius:0;flex:1;padding-bottom:0;padding-top:0}.gaoDe-container .input-item-prepend .input-group-wrapper .input-affix-wrapper input{border:0;border-left:1px solid #ddd;display:block;height:30px;outline:none;padding-left:10px;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvR2FvRGVNYXAvaW5kZXgubGVzcyIsImluZGV4Lmxlc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0Esd0JBRUUsWUNDRixDRENBLHlCQUNFLGFDQ0YsQ0RFQSxpQkFDRSxpQkNBRixDRERBLHFDQVFJLHFCQUFBLENBQ0EscUJBQUEsQ0FFQSxpQkFBQSxDQU5BLFNBQUEsQ0FLQSxpQkFBQSxDQVBBLGlCQUFBLENBQ0EsUUFBQSxDQUdBLFdBQUEsQ0FEQSxVQ01KLENEWkEsMERBZU0sa0JBQUEsQ0FEQSxZQUFBLENBREEsaUJDSU4sQ0RqQkEsNkVBaUJRLGtCQ0dSLENEcEJBLCtFQXNCUSxlQUFBLENBQ0EsTUFBQSxDQUZBLGdCQUFBLENBREEsYUNNUixDRDFCQSxxRkE4QlUsUUFBQSxDQUFBLDBCQUFBLENBTEEsYUFBQSxDQUVBLFdBQUEsQ0FJQSxZQUFBLENBSEEsaUJBQUEsQ0FGQSxVQ1NWIiwiZmlsZSI6ImluZGV4Lmxlc3MifQ== */");var wL=e.forwardRef((t,r)=>{const o=e.useRef(null),a=e.useRef(null),l=e.useRef(null),c=e.useMemo(()=>i.v4(),[]),s=e.useMemo(()=>i.v4(),[]),u=e=>{let t=0,n=0;const r=new BMap.Convertor,o=[];o.push(e.point),"baidu"===e.target&&(t=3,n=5),"google"===e.target&&(t=5,n=3),r.translate(o,t,n,t=>{0===t.status&&e.callback&&e.callback(t.points[0])})},d=e=>{o.current.addOverlay(new BMap.Marker(e,{icon:new BMap.Icon("https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",new BMap.Size(20,32))}))},f=e.useCallback((e,t)=>{if(o.current){const n=new BMap.Point(e[0],e[1]);d(n),o.current.centerAndZoom(n,t||18)}else a.current={location:e,zoom:t}},[]),p=e.useCallback(e=>{console.log("转换为google坐标前:",e.location);const n=new BMap.Point(e.location.lng,e.location.lat);u({target:"google",point:n,callback:n=>{e.location.lng=n.lng,e.location.lat=n.lat,console.log("转换为google坐标后:",e.location),t.onChange&&t.onChange(e)}})},[t]),m=e.useCallback(e=>{o.current.clearOverlays();const t=new BMap.LocalSearch(o.current,{onSearchComplete:()=>{let e=t.getResults().getPoi(0);if(e){const t=e.point;f([t.lng,t.lat]),p({...e,location:{lng:t.lng,lat:t.lat}})}}});t.search(e)},[f,p]);return e.useEffect(()=>{const e=()=>{o.current=new BMap.Map(c,{enableMapClick:!1}),o.current.enableScrollWheelZoom(!0);new BMap.Autocomplete({input:s,location:o.current}).addEventListener("onconfirm",e=>{const{province:t,city:n,district:r,street:o,business:i}=e.item.value;m(t+n+r+o+i)}),o.current.addEventListener("click",e=>{o.current.clearOverlays(),d(new BMap.Point(e.point.lng,e.point.lat)),p({location:{lng:e.point.lng,lat:e.point.lat}})}),l.current&&l.current(),a.current?f(a.current.location,a.current.zoom):f([116.404,39.915])};if(document.getElementById("lbs"))e();else{window.onMapInit=function(){e()};let t="https://api.map.baidu.com/api?v=3.0&ak=1IzhwXLOwlEnencZUoSnMkSkMVADfT3s&callback=onMapInit",n=document.createElement("script");n.src=t,n.id="lbs",document.head.appendChild(n)}},[c]),e.useImperativeHandle(r,()=>({setMapCenter:(e,t)=>{console.log("转换为百度坐标前:",{lng:e[0],lat:e[1]});const n=()=>{const n=new BMap.Point(e[0],e[1]);u({target:"baidu",point:n,callback:e=>{console.log("转换为百度坐标后:",{lng:e.lng,lat:e.lat}),f([e.lng,e.lat],t)}})};try{n()}catch(e){console.log("error",e),l.current=n}}})),n.jsxs("div",{className:`gaoDe-container ${t.className}`,children:[n.jsx("div",{id:c,style:t.style?t.style:{width:"100%",height:365}}),n.jsx("div",{className:"input-item-prepend",children:n.jsxs("span",{className:"input-group-wrapper",children:[n.jsx("span",{className:"input-group-addon",children:"关键字"}),n.jsx("span",{className:"input-affix-wrapper",children:n.jsx("input",{id:s,className:"ant-input",type:"text",placeholder:"请输入关键字"})})]})})]})});s("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbmRleC5sZXNzIn0= */");var CL=e.forwardRef(function(t,r){const[o,i]=e.useState([]);return e.useImperativeHandle(r,()=>({setFileList:e=>{i(e)}})),n.jsx(bL,{onChange:e=>{const{response:r}=e.file;let o=r&&parseInt(r.code);if(AN.destroy(),console.log("上传的文件对象:",e),("string"==typeof r||"object"==typeof r&&500===r.status)&&(o=-1),console.log("fileObject",e),"removed"!==e.file.status&&(-1===o||400===o||404===o||500===o)){const t=r.msg||"上传失败";e.file.status="error",e.file.response=t,AN.warning({content:n.jsx("span",{dangerouslySetInnerHTML:{__html:t}}),duration:1.5})}"done"===e.file.status&&AN.success("上传成功",1.5),i(e.fileList),"done"===e.file.status&&t.uploadSuccess&&t.uploadSuccess(e.fileList.filter(e=>"done"===e.status))},fileList:o,onRemove:e=>{i(n=>(n&&(n=n.filter(t=>t.uid!==e.uid),t.uploadSuccess&&t.uploadSuccess(n.filter(e=>"done"===e.status))),n))},...t,beforeUpload:(e,n)=>!t.beforeUpload||(t.beforeUpload(e,n)||bL.LIST_IGNORE),children:t.children})});s(".tree-wrap .tree-search{margin-bottom:10px}.tree-wrap .tree-handle-box{align-items:center;display:flex;margin-right:5px;visibility:hidden}.tree-wrap .ant-tree-node-content-wrapper.ant-tree-node-selected .tree-handle-box,.tree-wrap .ant-tree-node-content-wrapper:hover .tree-handle-box{visibility:visible}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvVHJlZU5vZGUvaW5kZXgubGVzcyIsImluZGV4Lmxlc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsd0JBRUksa0JDQUosQ0RGQSw0QkFNSSxrQkFBQSxDQURBLFlBQUEsQ0FFQSxnQkFBQSxDQUNBLGlCQ0FKLENER0ksbUpBR0ksa0JDRlIiLCJmaWxlIjoiaW5kZXgubGVzcyJ9 */");const{Search:SL}=VI;var $L=e.forwardRef((r,o)=>{const[i,a]=f.useSetState({loading:!1,searchOpen:!1,searchValue:"",treeList:[],draggableOpen:!1,processOpen:!1,checkedOpen:!1,firstLevelCollection:[],expandedKeys:[],autoExpandParent:!1,selectNode:[],selectCurrent:[],checkedNode:[],checkedCurrent:[]}),l=e.useCallback(e=>{const t=[],n=e=>{for(let r=0;r<e.length;r++){const o=e[r];t.push(e[r]),o.children&&n(o.children)}};n(e),a({firstLevelCollection:t})},[a]),c=e.useCallback((e,n)=>{t.isArray(e)&&(a({selectNode:e.map(String)}),r.onSelect&&r.onSelect(e.map(String),n))},[r,a]),s=e.useCallback(e=>{a({autoExpandParent:!1,expandedKeys:e.map(String)})},[a]),u=e.useCallback((e,t)=>{let n;for(let r=0;r<t.length;r++){const o=t[r];o.children&&(o.children.some(t=>t.key===e)?n=o.key:u(e,o.children)&&(n=u(e,o.children)))}return n},[]),d=e.useCallback(e=>{const{value:t}=e.target,n=i.firstLevelCollection.map(e=>e.title.indexOf(t)>-1?u(e.key,i.treeList):null).filter((e,t,n)=>e&&n.indexOf(e)===t).map(String);a({searchValue:t,expandedKeys:n.map(String),autoExpandParent:!0})},[u,a,i.firstLevelCollection,i.treeList]),p=e.useCallback(e=>{let t=[];Array.isArray(e)?t=e.map(String):e&&Array.isArray(e.checked)&&(t=e.checked.map(String)),a({checkedNode:t.map(String)})},[a]),m=e.useCallback(e=>e.map(e=>{const t=e.title,o=t.indexOf(i.searchValue),a=t.substr(0,o),l=t.substr(o+i.searchValue.length),c=r.processOpen&&!e.processOpen&&!e.disabled?n.jsx(Wk,{className:"tree-handle-box",children:r.customAction&&r.customAction(e)}):null,s=o>-1?n.jsxs(Uk,{justify:"space-between",align:"middle",children:[n.jsxs(Wk,{children:[a,n.jsx("span",{className:"text-error",children:i.searchValue}),l]}),c]}):n.jsxs(Uk,{justify:"space-between",align:"middle",children:[n.jsx(Wk,{children:e.title}),c]});return e.children?{...e,title:s,children:m(e.children)}:{...e,title:s}}),[r,i.searchValue]);return e.useEffect(()=>{const e=e=>{let t=[];const n=e=>{for(let r of e)i.checkedNode.some(e=>e===r.key)&&t.push(r),r.children&&n(r.children)};return n(e),t};a(t=>({...t,checkedCurrent:e(i.treeList),expandedKeys:t.expandedKeys?t.expandedKeys.map(String):[]}))},[a,i.checkedNode,i.treeList]),e.useEffect(()=>{const e=e=>{let t=[];const n=e=>{for(let r of e)i.selectNode.some(e=>e===r.key)&&t.push(r),r.children&&n(r.children)};return n(e),t};a(t=>({...t,selectCurrent:e(i.treeList),expandedKeys:t.expandedKeys?t.expandedKeys.map(String):[]}))},[a,i.selectNode,i.treeList]),e.useEffect(()=>{t.isArray(r.data)&&(a({treeList:r.data}),l(r.data))},[l,r.data,a]),e.useEffect(()=>{let e={};r.searchOpen&&(e.searchOpen=r.searchOpen),r.draggableOpen&&(e.draggableOpen=r.draggableOpen),r.processOpen&&(e.processOpen=r.processOpen),r.checkedOpen&&(e.checkedOpen=r.checkedOpen),Object.keys(e).length&&(e.expandedKeys&&(e.expandedKeys=e.expandedKeys.map(String)),a(e))},[r.checkedOpen,r.draggableOpen,r.processOpen,r.searchOpen,a]),e.useImperativeHandle(o,()=>({setLoading:e=>{a({loading:e})},getSelectNode:()=>i.selectNode,getSelectCurrent:()=>i.selectCurrent,getCheckedNode:()=>i.checkedNode,getCheckedCurrent:()=>i.checkedCurrent,setSelectNode:e=>{a({selectNode:e})},setCheckedNode:e=>{a({checkedNode:e})}})),n.jsx("div",{className:"tree-wrap",children:n.jsxs(jN,{spinning:i.loading,children:[i.searchOpen?n.jsx(SL,{className:"tree-search",placeholder:"输入名称搜索",onChange:d}):null,i.treeList.length?n.jsx(VP,{blockNode:!0,height:500,showLine:{showLeafIcon:!1},checkable:i.checkedOpen,treeData:m(i.treeList),expandedKeys:i.expandedKeys.map(String),selectedKeys:i.selectNode.map(String),checkedKeys:i.checkedNode.map(String),autoExpandParent:i.autoExpandParent,onSelect:(e,t)=>c(e.map(String),t),onExpand:e=>s(e.map(String)),onCheck:e=>p(Array.isArray(e)?e.map(String):{checked:e.checked.map(String),halfChecked:e.halfChecked.map(String)}),draggable:i.draggableOpen,onDrop:e=>{const t=e.node.key,n=e.dragNode.key,o=e.node.pos.split("-"),l=e.dropPosition-Number(o[o.length-1]),c=(e,t,n)=>{for(let r=0;r<e.length;r++){if(e[r].key===t)return n(e[r],r,e);e[r].children&&c(e[r].children,t,n)}};if(r.onVerificationDropCallBack&&r.onVerificationDropCallBack(e,i.treeList))return;if(e.dragNode.noDrag)return void AN.warning("此节点不支持修改",1.5);const s=[...i.treeList];let u={title:"",key:""};if(c(s,n,(e,t,n)=>{n.splice(t,1),u=e}),e.dropToGap)if((e.node.children||[]).length>0&&e.node.expanded&&1===l)c(s,t,e=>{e.children=e.children||[],e.children.unshift(u)});else{let e=[],n=0;c(s,t,(t,r,o)=>{e=o,n=r}),-1===l?e.splice(n,0,u):e.splice(n+1,0,u)}else c(s,t,e=>{e.children=e.children||[],e.children.push(u)});r.onDropCallBack&&r.onDropCallBack(e,s),a({treeList:s})},onDragEnter:e=>{a({expandedKeys:e.expandedKeys.map(String)})},...r.treeConfig}):n.jsx(Zg,{})]})})});const kL=e=>Object.prototype.toString.call(e.data)===`[object ${e.type}]`,EL=(e,t)=>{for(let n of e){let e=n.value;if("number"==typeof t&&(e=parseInt(n.value)),e===t)return n.label}return t};var OL,IL={},NL={exports:{}};function RL(){return OL||(OL=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(NL)),NL.exports}var jL,ML={};var PL,DL={},TL={},BL={},LL={exports:{}},zL={exports:{}},FL={exports:{}},HL={exports:{}};function AL(){return PL||(PL=1,function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(HL)),HL.exports}var _L,WL,VL,GL,UL={exports:{}};function XL(){return _L||(_L=1,function(e){var t=AL().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(UL)),UL.exports}function KL(){return WL||(WL=1,function(e){var t=AL().default,n=XL();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(FL)),FL.exports}function QL(){return VL||(VL=1,function(e){var t=KL();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(zL)),zL.exports}function YL(){return GL||(GL=1,function(e){var t=QL();function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}e.exports=function(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?n(Object(o),!0).forEach(function(n){t(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e},e.exports.__esModule=!0,e.exports.default=e.exports}(LL)),LL.exports}var qL,ZL,JL={};function ez(){return qL||(qL=1,Object.defineProperty(JL,"__esModule",{value:!0}),JL.commonLocale=void 0,JL.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),JL}var tz,nz,rz,oz,iz,az,lz={};function cz(){if(tz)return lz;tz=1,Object.defineProperty(lz,"__esModule",{value:!0}),lz.default=void 0;return lz.default={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},lz}function sz(){if(nz)return TL;nz=1;var e=RL().default;Object.defineProperty(TL,"__esModule",{value:!0}),TL.default=void 0;var t=e(function(){if(ZL)return BL;ZL=1;var e=RL().default;Object.defineProperty(BL,"__esModule",{value:!0}),BL.default=void 0;var t=e(YL()),n=ez(),r=(0,t.default)((0,t.default)({},n.commonLocale),{},{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"});return BL.default=r,BL}()),n=e(cz());const r={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"]},t.default),timePickerLocale:Object.assign({},n.default)};return TL.default=r,TL}function uz(){if(rz)return DL;rz=1;var e=RL().default;Object.defineProperty(DL,"__esModule",{value:!0}),DL.default=void 0;var t=e(sz());return DL.default=t.default,DL}function dz(){if(oz)return IL;oz=1;var e=RL().default;Object.defineProperty(IL,"__esModule",{value:!0}),IL.default=void 0;var t=e((jL||(jL=1,Object.defineProperty(ML,"__esModule",{value:!0}),ML.default=void 0,ML.default={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"}),ML)),n=e(uz()),r=e(sz()),o=e(cz());const i="${label} is not a valid ${type}",a={locale:"en",Pagination:t.default,DatePicker:r.default,TimePicker:o.default,Calendar:n.default,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:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},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"}};return IL.default=a,IL}function fz(){return az?iz:(az=1,iz=dz())}var pz,mz=p(fz()),gz={},hz={};var vz,bz={},yz={},xz={};var wz,Cz,Sz,$z,kz,Ez,Oz={};function Iz(){if(wz)return Oz;wz=1,Object.defineProperty(Oz,"__esModule",{value:!0}),Oz.default=void 0;return Oz.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Oz}function Nz(){if(Cz)return yz;Cz=1;var e=RL().default;Object.defineProperty(yz,"__esModule",{value:!0}),yz.default=void 0;var t=e(function(){if(vz)return xz;vz=1;var e=RL().default;Object.defineProperty(xz,"__esModule",{value:!0}),xz.default=void 0;var t=e(YL()),n=ez(),r=(0,t.default)((0,t.default)({},n.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});return xz.default=r,xz}()),n=e(Iz());const r={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},t.default),timePickerLocale:Object.assign({},n.default)};return r.lang.ok="确定",yz.default=r,yz}function Rz(){if(Sz)return bz;Sz=1;var e=RL().default;Object.defineProperty(bz,"__esModule",{value:!0}),bz.default=void 0;var t=e(Nz());return bz.default=t.default,bz}function jz(){if($z)return gz;$z=1;var e=RL().default;Object.defineProperty(gz,"__esModule",{value:!0}),gz.default=void 0;var t=e((pz||(pz=1,Object.defineProperty(hz,"__esModule",{value:!0}),hz.default=void 0,hz.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}),hz)),n=e(Rz()),r=e(Nz()),o=e(Iz());const i="${label}不是一个有效的${type}",a={locale:"zh-cn",Pagination:t.default,DatePicker:r.default,TimePicker:o.default,Calendar:n.default,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return gz.default=a,gz}function Mz(){return Ez?kz:(Ez=1,kz=jz())}var Pz,Dz=p(Mz()),Tz={},Bz={};var Lz,zz={},Fz={},Hz={};var Az,_z,Wz,Vz,Gz,Uz,Xz={};function Kz(){if(Az)return Xz;Az=1,Object.defineProperty(Xz,"__esModule",{value:!0}),Xz.default=void 0;return Xz.default={placeholder:"請選擇時間",rangePlaceholder:["開始時間","結束時間"]},Xz}function Qz(){if(_z)return Fz;_z=1;var e=RL().default;Object.defineProperty(Fz,"__esModule",{value:!0}),Fz.default=void 0;var t=e(function(){if(Lz)return Hz;Lz=1;var e=RL().default;Object.defineProperty(Hz,"__esModule",{value:!0}),Hz.default=void 0;var t=e(YL()),n=ez(),r=(0,t.default)((0,t.default)({},n.commonLocale),{},{locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",week:"週",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀",cellDateFormat:"D",monthBeforeYear:!1});return Hz.default=r,Hz}()),n=e(Kz());const r={lang:Object.assign({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeQuarterPlaceholder:["開始季度","結束季度"],rangeWeekPlaceholder:["開始周","結束周"]},t.default),timePickerLocale:Object.assign({},n.default)};return r.lang.ok="確 定",Fz.default=r,Fz}function Yz(){if(Wz)return zz;Wz=1;var e=RL().default;Object.defineProperty(zz,"__esModule",{value:!0}),zz.default=void 0;var t=e(Qz());return zz.default=t.default,zz}function qz(){if(Vz)return Tz;Vz=1;var e=RL().default;Object.defineProperty(Tz,"__esModule",{value:!0}),Tz.default=void 0;var t=e((Pz||(Pz=1,Object.defineProperty(Bz,"__esModule",{value:!0}),Bz.default=void 0,Bz.default={items_per_page:"條/頁",jump_to:"跳至",jump_to_confirm:"確定",page:"頁",prev_page:"上一頁",next_page:"下一頁",prev_5:"向前 5 頁",next_5:"向後 5 頁",prev_3:"向前 3 頁",next_3:"向後 3 頁",page_size:"頁碼"}),Bz)),n=e(Yz()),r=e(Qz()),o=e(Kz());const i="${label}不是一個有效的${type}",a={locale:"zh-hk",Pagination:t.default,DatePicker:r.default,TimePicker:o.default,Calendar:n.default,global:{placeholder:"請選擇",close:"關閉"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",filterCheckAll:"全選",filterSearchPlaceholder:"在篩選項中搜尋",emptyText:"暫無數據",selectAll:"全部選取",selectInvert:"反向選取",selectNone:"清空所有",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"結束導覽"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{titles:["",""],searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目",remove:"刪除",selectCurrent:"全選當頁",removeCurrent:"刪除當頁",selectAll:"全選所有",removeAll:"刪除全部",selectInvert:"反選當頁"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開",collapse:"收起"},Form:{defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},Image:{preview:"預覽"},QRCode:{expired:"二維碼過期",refresh:"點擊刷新",scanned:"已掃描"},ColorPicker:{presetEmpty:"暫無",transparent:"透明",singleColor:"單色",gradientColor:"漸變色"}};return Tz.default=a,Tz}function Zz(){return Uz?Gz:(Uz=1,Gz=qz())}var Jz,eF=p(Zz()),tF={exports:{}};Jz||(Jz=1,tF.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return n.default.locale(r,null,!0),r}(Ty()));var nF,rF={exports:{}};nF||(nF=1,rF.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"zh-hk",months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),ordinal:function(e,t){return"W"===t?e+"週":e+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d 分鐘",h:"一小時",hh:"%d 小時",d:"一天",dd:"%d 天",M:"一個月",MM:"%d 個月",y:"一年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return n.default.locale(r,null,!0),r}(Ty())),Ly.locale("zh-cn");const oF=t=>{const[r,o]=e.useState(Dz);return e.useEffect(()=>{const e=e=>{switch(e){case"zh-CN":o(Dz),Ly.locale("zh-cn");break;case"zh-HK":o(eF),Ly.locale("zh-hk");break;case"en":o(mz),Ly.locale("en")}};e((e=>{if(!e)return null;e=e.toString();const t=window.localStorage.getItem(e);try{return JSON.parse(t)}catch(e){return console.log(e),t}})("i18nextLng")),window.addEventListener("web_pack:language",t=>{const n=t.language;e(n)})},[]),n.jsx(da,{locale:r,theme:{token:{fontSize:12,colorText:"#6a717f",colorPrimary:"#5860f8",colorBorder:"#e3e5e6",borderRadius:4}},children:t.children})};s(".generate-form.ant-form .ant-row.ant-form-item{margin-bottom:8px}.generate-form.ant-form .ant-row .ant-col.ant-form-item-label{padding-bottom:0}.generate-form.ant-form .ant-row .ant-col .ant-picker{width:100%}.generate-form.ant-form .ant-row .ant-col .form-item-divide .ant-form-item{margin-bottom:0}.generate-form.ant-form .ant-row .ant-col .form-item-divide .divide{color:#ccc;position:absolute;right:-5px;top:5px;z-index:1}.multiple-checkbox .ant-checkbox-wrapper{margin-bottom:5px;margin-left:10px;margin-top:5px}.hlyc-web-com-align-right input{padding-right:24px;text-align:right}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvR2VuZXJhdGVGb3JtL2luZGV4Lmxlc3MiLCJpbmRleC5sZXNzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdNLCtDQUNFLGlCQ0ZSLENES1EsOERBQ0UsZ0JDSFYsQ0RKRSxzREFVUSxVQ0hWLENEUEUsMkVBY1UsZUNKWixDRFZFLG9FQXFCVSxVQUFBLENBSkEsaUJBQUEsQ0FFQSxVQUFBLENBREEsT0FBQSxDQUVBLFNDSFosQ0RZQSx5Q0FHSSxpQkFBQSxDQUNBLGdCQUFBLENBRkEsY0NUSixDRGVBLGdDQUVJLGtCQUFBLENBQ0EsZ0JDZEoiLCJmaWxlIjoiaW5kZXgubGVzcyJ9 */");const{Option:iF}=_h,{RangePicker:aF}=uO,{RangePicker:lF}=qD;var cF,sF=e.forwardRef(function(r,o){const[a]=fI.useForm();let{className:l,formConfig:c,rowGridConfig:s,colGirdConfig:u,render:d}=r;const p=e.useRef({}),m=e.useRef({}),g=e.useRef({}),[h,v]=f.useSetState({update:!1,remoteFetching:!1,remoteData:{},treeSelectData:{},treeSelectFlattenData:{},selectMultiple:{}});let b=e.useMemo(()=>r.list?[...r.list]:[],[r.list]);const y=e.useMemo(()=>i.v4(),[]),x=e.useCallback((e,t)=>{const n=t.remoteConfig,r=t.name;let o=p.current[r];n&&n.remoteApi&&(v(e=>(e.remoteFetching=!0,p.current[r]=[],e.remoteData[r]=[],e)),n.remoteApi(e).then(e=>{setTimeout(()=>{void 0===o&&(p.current[r]=[]),r&&v(t=>(t.remoteFetching=!1,p.current[r]=e,t.remoteData[r]=e,console.log("remoteRef.curren",p.current),console.log("prev.remoteData",t.remoteData),t))},100)}).catch(()=>{v(e=>(e.remoteFetching=!1,p.current[r]=[],e.remoteData[r]=[],e))}))},[v]),w=e.useCallback((e,t)=>{const n=e.treeSelectConfig;n&&n.data&&n.data.api(t).then(t=>{const r=e.name;if(r){g.current[r]=[];let e=[],o=[];const i=(e,t)=>{for(let[r,a]of e.entries()){const e=n.data?.children||"children";t[r]={},t[r].title=a[n.data?.title],t[r].value=a[n.data?.value],t[r].key=t[r].value,o.push(a),Array.isArray(a[e])&&(t[r].children=[],i(a[e],t[r].children))}};i(t,e),v(t=>(t.treeSelectData[r]=e,t.treeSelectFlattenData[r]=o,t))}})},[v]),C=e.useCallback(async(e,t)=>{if(t){const n=t[t.length-1];let r=[];if(!e.regionSelectionConfig?.selectLoad)return;n.loading=!0,r=await(e.regionSelectionConfig?.selectLoad(n.id)),n.loading=!1,r.length?n.children=r:n.isLeaf=!0,v({update:!h.update})}},[v,h.update]),S=e.useCallback(()=>{const r=(e,t)=>{v(n=>(e.name&&(n.selectMultiple[e.name]=t),n))};if(!b)return;const o=e=>{const{inputMode:t,...r}=e.inputConfig||{};return n.jsx(VI,{disabled:e.disabled,type:t||"text",maxLength:e.maxLength,placeholder:e.placeholder||`请输入${e.label}`,onChange:e.inputChange,onPressEnter:e.inputEnter,...r})},i=e=>n.jsx(_h,{allowClear:!0,disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:e.selectChange,...e.selectConfig,children:e.selectData?e.selectData.map((e,t)=>n.jsx(iF,{value:e.value,children:e.label},`${e.value}-${t}`)):null}),l=e=>{const t=e.selectData||[];return n.jsx(_h,{mode:"multiple",allowClear:!0,disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:n=>{r(e,n.length===t.length),e.multipleChange&&e.multipleChange(n)},filterOption:(e,t)=>!!t&&(t.children??"").toLowerCase().includes(e.toLowerCase()),popupRender:t=>((e,t)=>{const o=t.selectData||[];return n.jsxs("div",{className:"multiple-checkbox",children:[n.jsx(zk,{checked:t.name?h.selectMultiple[t.name]:void 0,onChange:e=>{const n={};e.target.checked?t.name&&(n[t.name]=o.map(e=>e.value)):t.name&&(n[t.name]=[]),r(t,e.target.checked),a.setFieldsValue(n),t.multipleChange&&t.multipleChange(n[t.name||""])},children:"全选"}),e]})})(t,e),maxTagPlaceholder:e=>{const t=e?.map(e=>e.label)?.join("、")||"";return n.jsxs($v,{title:t,placement:"top",children:["+",e?.length]})},...e.selectConfig,children:t.map((e,t)=>n.jsx(iF,{value:e.value,children:e.label},`${e.value}-${t}`))})},c=e=>{const r=e.remoteConfig,o=r&&r.remoteMode,i=r&&r.allowClear,a=r&&r.showSearch,l=e.name||"";return!1!==a&&l&&(m.current[l]||(m.current[l]=t.debounce(t=>x(t,e),300))),n.jsx(_h,{mode:o||void 0,disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,notFoundContent:h.remoteFetching?n.jsx(jN,{size:"small"}):n.jsx(Zg,{style:{marginTop:8,marginBottom:8},image:Zg.PRESENTED_IMAGE_SIMPLE}),filterOption:!1,allowClear:!1!==i,showSearch:!1!==a,onFocus:()=>x(void 0,e),onSearch:!1===a?void 0:m.current[l],onChange:e.remoteSearchChange,...e.selectConfig,children:e.name&&h.remoteData[e.name]?h.remoteData[e.name].map((e,t)=>n.jsx(iF,{value:e.value,children:e.label},`${e.value}-${t}`)):null})},s=e=>n.jsx(uO,{disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:e.datePickerChange,...e.datePickerConfig}),d=e=>n.jsx(qD,{disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:e.timePickerChange,...e.timePickerConfig}),f=e=>"Input"===e.componentName?o(e):"Select"===e.componentName?i(e):"DatePicker"===e.componentName?s(e):"TimePicker"===e.componentName?d(e):"RemoteSearch"===e.componentName?c(e):null;return b.map((r,p)=>{let m=null;switch(r.selectData&&r.selectIsHideAll&&(r.selectData=r.selectData.filter(e=>!r.selectIsHideAll||"全部"!==e.label&&""!==e.value)),r.componentName){case"Input":m=o(r);break;case"InputNumber":m=(e=>{const{alignRight:t,...r}=e.inputNumberConfig||{};return n.jsx(RE,{disabled:e.disabled,style:{width:"100%"},placeholder:e.placeholder||`请输入${e.label}`,onChange:e.inputNumberChange,className:t?"hlyc-web-com-align-right":"",...r})})(r);break;case"HideInput":m=(e=>n.jsx(VI,{style:{display:"none"},maxLength:e.maxLength,disabled:e.disabled,type:"text",placeholder:e.placeholder||`请输入${e.label}`,onChange:e.inputChange,onPressEnter:e.inputEnter}))(r);break;case"TextArea":m=(e=>n.jsx(VI.TextArea,{rows:e.rows,disabled:e.disabled,maxLength:e.maxLength,placeholder:e.placeholder||`请输入${e.label}`,onChange:e.textAreaChange}))(r);break;case"AutoComplete":m=(e=>n.jsx(_h,{allowClear:!0,showSearch:!0,disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,optionFilterProp:"children",filterOption:(e,t)=>!!t&&(t.children??"").toLowerCase().includes(e.toLowerCase()),onChange:e.autoCompleteChange,...e.selectConfig,children:e.selectData?e.selectData.map((e,t)=>n.jsx(iF,{value:e.value,children:e.label},`${e.value}-${t}`)):null}))(r);break;case"InputAutoComplete":m=(e=>n.jsx(Yh,{filterOption:(e,t)=>(t.value||"").toUpperCase().includes(e.toUpperCase()),disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:e.inputAutoCompleteChange,...e.inputAutoCompleteConfig}))(r);break;case"Select":m=i(r);break;case"Multiple":m=l(r);break;case"MultipleTag":m=(e=>n.jsx(_h,{mode:"tags",allowClear:!0,disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:e.multipleChange,...e.selectConfig,children:e.selectData?e.selectData.map((e,t)=>n.jsx(iF,{value:e.value,children:e.label},`${e.value}-${t}`)):null}))(r);break;case"RemoteSearch":m=c(r);break;case"DatePicker":m=s(r);break;case"RangePicker":m=(e=>n.jsx(aF,{disabled:e.disabled,placeholder:e.rangePickerPlaceholder,onChange:e.rangePickerChange,...e.rangePickerConfig}))(r);break;case"TimeRangePicker":m=(e=>n.jsx(lF,{disabled:e.disabled,placeholder:e.timeRangePickerPlaceholder,onChange:e.timeRangePickerChange,...e.timeRangePickerConfig}))(r);break;case"TimePicker":m=d(r);break;case"Switch":m=(e=>n.jsx(UR,{defaultChecked:!1,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:e.disabled,onChange:e.switchChange}))(r);break;case"Radio":m=(e=>n.jsx(PC.Group,{onChange:e.radioChange,children:e.selectData?e.selectData.map((t,r)=>n.jsx(PC,{disabled:e.disabled,value:t.value,children:t.label},`${t.value}-${r}`)):null}))(r);break;case"Checkbox":m=(e=>n.jsx(zk.Group,{onChange:e.checkboxChange,children:e.selectData?e.selectData.map((t,r)=>n.jsx(zk,{disabled:e.disabled,value:t.value,children:t.label},`${t.value}-${r}`)):null}))(r);break;case"TreeSelect":m=((e,t)=>{const r=e.name;return n.jsx(kT,{disabled:e.disabled,style:{width:"100%"},styles:{root:{maxHeight:400,overflow:"auto"}},treeData:h.treeSelectData[r],placeholder:e.placeholder||`请选择${e.label}`,onChange:n=>{if(e.treeSelectConfig&&e.treeSelectConfig.data){const o=e.treeSelectConfig.data,i=o.onChange,l=h.treeSelectFlattenData[r],c=Object.prototype.toString.call(n);let s=[],u={...e};if("[object String]"===c&&(s=l.filter(e=>e[o.value]===n)),"[object Array]"===c&&Array.isArray(n))for(let e=l.length;e--;)n.some(t=>t===l[e][o.value])&&s.push(l[e]);if(i){const n=i(s,{...e});n&&(u=n),u&&(b[t]=u)}a.setFieldsValue({[u.name]:n}),w(u)}},allowClear:!0,treeDefaultExpandAll:!0,...e.treeSelectConfig?.extra})})(r,p);break;case"Union":let e,t=0;r.unionConfig&&(t=r.unionConfig.unionItems.length,e=100/t+"%"),m=n.jsx(Uk,{className:"form-item-divide",gutter:16,children:r.unionConfig?.unionItems.map((o,i)=>n.jsxs(Wk,{style:{width:e},children:[n.jsx(fI.Item,{name:o.name,rules:o.rules,noStyle:!0,children:f(o)}),i<t-1?n.jsx("span",{className:"divide",children:r.unionConfig&&(r.unionConfig.divide?r.unionConfig.divide:"~")}):null]},i))});break;case"RegionSelection":m=(e=>{const t=e.regionSelectionConfig;return n.jsx(Rk,{disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,options:t&&t.loadData||[],loadData:t=>C(e,t),changeOnSelect:!0,onChange:e.cascaderChange})})(r);break;case"Rate":m=(e=>n.jsx(TR,{disabled:e.disabled,onChange:e.rateChange,...e.rateConfig}))(r);break;default:return null}let g,v={...r};return v.label=(e=>{let t=e.label;return"Union"===e.componentName&&e.rules&&(t=n.jsxs("span",{children:[n.jsx("i",{style:{marginRight:4,color:"#ff4d4f",fontStyle:"normal",fontFamily:"SimSun, sans-serif"},children:"*"}),e.label]})),t})(v),v=t.omit(v,["colProps","componentName","selectData","inputConfig","inputNumberConfig","datePickerConfig","rangePickerConfig","timeRangePickerConfig","timePickerConfig","inputAutoCompleteConfig","unionConfig","remoteConfig","selectConfig","regionSelectionConfig","treeSelectConfig","rows","render","rangePickerPlaceholder","timeRangePickerPlaceholder","visible","selectIsHideAll","rateConfig","inputChange","inputNumberChange","inputAutoCompleteChange","inputEnter","textAreaChange","autoCompleteChange","selectChange","multipleChange","remoteSearchChange","datePickerChange","rangePickerChange","timeRangePickerChange","timePickerChange","switchChange","radioChange","checkboxChange","cascaderChange","rateChange"]),"Union"===r.componentName&&(v=t.omit(v,["name"])),g=r.colProps?r.colProps:u,e.createElement(Wk,{...g,key:p,style:{display:!1===r.visible?"none":"block"}},n.jsx(fI.Item,{className:"HideInput"===r.componentName?"hide-item":void 0,...v,children:m}),r.render&&r.render())})},[b,h.selectMultiple,h.remoteFetching,h.remoteData,h.treeSelectData,h.treeSelectFlattenData,u,v,x,w,a,C]),$=e.useMemo(()=>S(),[S]);return e.useEffect(()=>{if(b){let e={};for(let e of b)"RemoteSearch"===e.componentName&&e.name&&!p.current[e.name]&&e.remoteConfig&&!1!==e.remoteConfig.initLoad&&x(void 0,e),"TreeSelect"===e.componentName&&e.name&&!g.current[e.name]&&e.treeSelectConfig&&e.treeSelectConfig.data&&w(e);a.setFieldsValue(e)}},[x,w,a,b]),e.useImperativeHandle(o,()=>({getFormValues:e=>a.getFieldsValue(e),setFormFields:e=>{a.setFields(e)},setFormValues:e=>{a.setFieldsValue(e),setTimeout(()=>{b.forEach(e=>{"RemoteSearch"===e.componentName&&e.remoteConfig&&e.remoteConfig.reLoad&&x(void 0,e)})},100)},formSubmit:e=>new Promise((t,n)=>{a.validateFields(e).then(e=>{for(let t in e)kL({data:e[t],type:"String"})&&(e[t]=e[t].replace(/(^\s*)|(\s*$)/g,""));t(e)}).catch(e=>{e.errorFields&&e.errorFields.length&&(console.warn("请输入或选择表单必填项:",e),AN.warning("请输入或选择表单必填项",1.5)),n(new Error("false"))})}),formReset:e=>(a.resetFields(e),a.getFieldsValue())})),n.jsx(oF,{children:n.jsx(fI,{name:y,className:`generate-form ${l||""}`,form:a,...c,initialValues:{sortSeq:10,startTime:Ly(`${(new Date).getFullYear()}-01-01`),endTime:Ly("2099-12-31"),...c?c.initialValues:void 0},children:n.jsxs(Uk,{...s,children:[$,d?n.jsx(Wk,{children:n.jsx(fI.Item,{children:d&&d()})}):null]})})})}),uF={exports:{}};var dF,fF=(cF||(cF=1,function(e,t){function n(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var r="object"==typeof process&&!0;function o(e,t){if(!e){if(r)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=o;var i=Object.prototype.hasOwnProperty,a=Array.prototype.splice,l=Object.prototype.toString;function c(e){return l.call(e).slice(8,-1)}var s=Object.assign||function(e,t){return u(t).forEach(function(n){i.call(t,n)&&(e[n]=t[n])}),e},u="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function d(e){return Array.isArray(e)?s(e.constructor(e.length),e):"Map"===c(e)?new Map(e):"Set"===c(e)?new Set(e):e&&"object"==typeof e?s(Object.create(Object.getPrototypeOf(e)),e):e}var f=function(){function e(){this.commands=s({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,r="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(r)||o(!Array.isArray(r),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),o("object"==typeof r&&null!==r,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."});var a=e;return u(r).forEach(function(t){if(i.call(n.commands,t)){var o=e===a;a=n.commands[t](r[t],a,r,e),o&&n.isEquals(a,e)&&(a=e)}else{var l="Map"===c(e)?n.update(e.get(t),r[t]):n.update(e[t],r[t]),s="Map"===c(a)?a.get(t):a[t];n.isEquals(l,s)&&(void 0!==l||i.call(e,t))||(a===e&&(a=d(e)),"Map"===c(a)?a.set(t,l):a[t]=l)}}),a},e}();t.Context=f;var p={$push:function(e,t,n){return g(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return g(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,r,i){return function(e,t){o(Array.isArray(e),function(){return"Expected $splice target to be an array; got "+n(e)}),v(t.$splice)}(t,r),e.forEach(function(e){v(e),t===i&&e.length&&(t=d(i)),a.apply(t,e)}),t},$set:function(e,t,n){return function(e){o(1===Object.keys(e).length,function(){return"Cannot have more than one key in an object with $set"})}(n),e},$toggle:function(e,t){h(e,"$toggle");var n=e.length?d(t):t;return e.forEach(function(e){n[e]=!t[e]}),n},$unset:function(e,t,n,r){return h(e,"$unset"),e.forEach(function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=d(r)),delete t[e])}),t},$add:function(e,t,n,r){return b(t,"$add"),h(e,"$add"),"Map"===c(t)?e.forEach(function(e){var n=e[0],o=e[1];t===r&&t.get(n)!==o&&(t=d(r)),t.set(n,o)}):e.forEach(function(e){t!==r||t.has(e)||(t=d(r)),t.add(e)}),t},$remove:function(e,t,n,r){return b(t,"$remove"),h(e,"$remove"),e.forEach(function(e){t===r&&t.has(e)&&(t=d(r)),t.delete(e)}),t},$merge:function(e,t,r,i){var a,l;return a=t,o((l=e)&&"object"==typeof l,function(){return"update(): $merge expects a spec of type 'object'; got "+n(l)}),o(a&&"object"==typeof a,function(){return"update(): $merge expects a target of type 'object'; got "+n(a)}),u(e).forEach(function(n){e[n]!==t[n]&&(t===i&&(t=d(i)),t[n]=e[n])}),t},$apply:function(e,t){var r;return o("function"==typeof(r=e),function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."}),e(t)}},m=new f;function g(e,t,r){o(Array.isArray(e),function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(e)+"."}),h(t[r],r)}function h(e,t){o(Array.isArray(e),function(){return"update(): expected spec of "+n(t)+" to be an array; got "+n(e)+". Did you forget to wrap your parameter in an array?"})}function v(e){o(Array.isArray(e),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(e)+". Did you forget to wrap your parameters in an array?"})}function b(e,t){var r=c(e);o("Map"===r||"Set"===r,function(){return"update(): "+n(t)+" expects a target of type Set or Map; got "+n(r)})}t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=s(t.default,t)}(uF,uF.exports)),uF.exports),pF=p(fF),mF={exports:{}},gF={},hF={};function vF(){if(dF)return hF;dF=1,hF.__esModule=!0,hF.cloneElement=function(e,t){t.style&&e.props.style&&(t.style=o(o({},e.props.style),t.style));t.className&&e.props.className&&(t.className=e.props.className+" "+t.className);return n.default.cloneElement(e,t)};var t,n=(t=e)&&t.__esModule?t:{default:t};function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return hF}var bF,yF,xF,wF,CF,SF,$F,kF={},EF={exports:{}};function OF(){if(yF)return bF;yF=1;return bF="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function IF(){if(wF)return xF;wF=1;var e=OF();function t(){}function n(){}return n.resetWarningCache=t,xF=function(){function r(t,n,r,o,i,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function NF(){return CF||(CF=1,EF.exports=IF()()),EF.exports}function RF(){if(SF)return kF;SF=1,kF.__esModule=!0,kF.resizableProps=void 0;var e,t=(e=NF())&&e.__esModule?e:{default:e};var n={axis:t.default.oneOf(["both","x","y","none"]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:t.default.node,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o,i=n[0];return"both"===i.axis||"y"===i.axis?(o=t.default.number).isRequired.apply(o,n):t.default.number.apply(t.default,n)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:t.default.number,width:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o,i=n[0];return"both"===i.axis||"x"===i.axis?(o=t.default.number).isRequired.apply(o,n):t.default.number.apply(t.default,n)}};return kF.resizableProps=n,kF}function jF(){if($F)return gF;$F=1,gF.__esModule=!0,gF.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(e),n=o,r=vF(),i=RF(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(){return c=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},c.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){var o,i;function l(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleRefs={},t.lastHandleRect=null,t.slack=null,t}i=e,(o=l).prototype=Object.create(i.prototype),o.prototype.constructor=o,f(o,i);var s=l.prototype;return s.componentWillUnmount=function(){this.resetData()},s.resetData=function(){this.lastHandleRect=this.slack=null},s.runConstraints=function(e,t){var n=this.props,r=n.minConstraints,o=n.maxConstraints,i=n.lockAspectRatio;if(!r&&!o&&!i)return[e,t];if(i){var a=this.props.width/this.props.height,l=e-this.props.width,c=t-this.props.height;Math.abs(l)>Math.abs(c*a)?t=e/a:e=t*a}var s=e,u=t,d=this.slack||[0,0],f=d[0],p=d[1];return e+=f,t+=p,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),o&&(e=Math.min(o[0],e),t=Math.min(o[1],t)),this.slack=[f+(s-e),p+(u-t)],[e,t]},s.resizeHandler=function(e,t){var n=this;return function(r,o){var i=o.node,a=o.deltaX,l=o.deltaY;"onResizeStart"===e&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(c||s){var u=t[0],d=t[t.length-1],f=i.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)a+=f.left-n.lastHandleRect.left;if("n"===u)l+=f.top-n.lastHandleRect.top}n.lastHandleRect=f,"w"===d&&(a=-a),"n"===u&&(l=-l);var p=n.props.width+(c?a/n.props.transformScale:0),m=n.props.height+(s?l/n.props.transformScale:0),g=n.runConstraints(p,m);p=g[0],m=g[1];var h=p!==n.props.width||m!==n.props.height,v="function"==typeof n.props[e]?n.props[e]:null;v&&!("onResize"===e&&!h)&&(null==r.persist||r.persist(),v(r,{node:i,size:{width:p,height:m},handle:t})),"onResizeStop"===e&&n.resetData()}}},s.renderResizeHandle=function(e,n){var r=this.props.handle;if(!r)return t.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:n});if("function"==typeof r)return r(e,n);var o=u({ref:n},"string"==typeof r.type?{}:{handleAxis:e});return t.cloneElement(r,o)},s.render=function(){var e=this,o=this.props,i=o.children,l=o.className,s=o.draggableOpts;o.width,o.height,o.handle,o.handleSize,o.lockAspectRatio,o.axis,o.minConstraints,o.maxConstraints,o.onResize,o.onResizeStop,o.onResizeStart;var d=o.resizeHandles;o.transformScale;var f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(o,a);return(0,r.cloneElement)(i,u(u({},f),{},{className:(l?l+" ":"")+"react-resizable",children:[].concat(i.props.children,d.map(function(r){var o,i=null!=(o=e.handleRefs[r])?o:e.handleRefs[r]=t.createRef();return t.createElement(n.DraggableCore,c({},s,{nodeRef:i,key:"resizableHandle-"+r,onStop:e.resizeHandler("onResizeStop",r),onStart:e.resizeHandler("onResizeStart",r),onDrag:e.resizeHandler("onResize",r)}),e.renderResizeHandle(r,i))}))}))},l}(t.Component);return gF.default=p,p.propTypes=i.resizableProps,p.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},gF}var MF,PF,DF={};function TF(){if(MF)return DF;MF=1,DF.__esModule=!0,DF.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(e),n=a(NF()),r=a(jF()),o=RF(),i=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function a(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(){return c=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},c.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){var n,o;function a(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height},t.onResize=function(e,n){var r=n.size;t.props.onResize?(null==e.persist||e.persist(),t.setState(r,function(){return t.props.onResize&&t.props.onResize(e,n)})):t.setState(r)},t}return o=e,(n=a).prototype=Object.create(o.prototype),n.prototype.constructor=n,f(n,o),a.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},a.prototype.render=function(){var e=this.props,n=e.handle,o=e.handleSize;e.onResize;var a=e.onResizeStart,l=e.onResizeStop,s=e.draggableOpts,d=e.minConstraints,f=e.maxConstraints,p=e.lockAspectRatio,m=e.axis;e.width,e.height;var g=e.resizeHandles,h=e.style,v=e.transformScale,b=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,i);return t.createElement(r.default,{axis:m,draggableOpts:s,handle:n,handleSize:o,height:this.state.height,lockAspectRatio:p,maxConstraints:f,minConstraints:d,onResizeStart:a,onResize:this.onResize,onResizeStop:l,resizeHandles:g,transformScale:v,width:this.state.width},t.createElement("div",c({},b,{style:u(u({},h),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},a}(t.Component);return DF.default=p,p.propTypes=u(u({},o.resizableProps),{},{children:n.default.element}),DF}var BF=(PF||(PF=1,mF.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},mF.exports.Resizable=jF().default,mF.exports.ResizableBox=TF().default),mF.exports);var LF,zF=e.memo(({onResize:t,width:o,...i})=>{const a=e.useCallback(e=>{e.stopPropagation(),e.preventDefault()},[]),[l,c]=e.useState("number"==typeof o?o:0);e.useEffect(()=>{"number"==typeof o&&c(o)},[o]);const s=e.useMemo(()=>({enableUserSelectHack:!1}),[]),u=l,d=l>0?n.jsx("span",{className:"react-resizable-handle",onMouseDown:a,onClick:a}):void 0,f=e.useRef(null),p=e.useRef(null),[m,g]=e.useState(null);e.useEffect(()=>{if("number"!=typeof o&&f.current){const e=f.current.offsetWidth;e>0&&c(e)}},[o]);const h=e=>Math.min(Math.max(e,80),1e4),v=e.useRef(null),b=l>0?(e,t)=>{const n=e;null!==v.current&&cancelAnimationFrame(v.current),v.current=requestAnimationFrame(()=>{S(n.clientX),c(h(t.size.width)),v.current=null})}:void 0,y=l>0?(e,n)=>{w(!1);const r=h(n.size.width);t&&t(e,{...n,size:{...n.size,width:r}}),S(null),g(null),null!==v.current&&(cancelAnimationFrame(v.current),v.current=null)}:void 0,[x,w]=e.useState(!1),[C,S]=e.useState(null),$=l>0?e=>{w(!0);S(e.clientX);const t=f.current;if(t){const e=t.closest(".ant-table-container");p.current=e??null,g(e?e.getBoundingClientRect():null)}}:void 0;return n.jsx(BF.Resizable,{width:u,height:0,handle:d,onResizeStart:$,onResize:b,onResizeStop:y,draggableOpts:s,children:n.jsxs("th",{...i,ref:f,style:{position:"relative",width:u,...i.style},children:[x&&n.jsx(n.Fragment,{children:null!==C&&p.current&&m&&r.createPortal(n.jsx("span",{style:{position:"absolute",top:0,bottom:0,left:C-m.left,width:0,borderLeft:"1px dashed #ccc",pointerEvents:"none",zIndex:9}}),p.current)}),i.children]})})}),FF=e.createContext({dragDropManager:void 0});function HF(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,function(){return r[a++]}))).name="Invariant Violation"}throw i.framesToPop=1,i}}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(LF||(LF={}));var AF="dnd-core/INIT_COORDS",_F="dnd-core/BEGIN_DRAG",WF="dnd-core/PUBLISH_DRAG_SOURCE",VF="dnd-core/HOVER",GF="dnd-core/DROP",UF="dnd-core/END_DRAG";function XF(e,t){return{type:AF,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function KF(e){return KF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KF(e)}function QF(e,t,n){return t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:n||null},e)}function YF(e){return"object"===KF(e)}var qF={type:AF,payload:{clientOffset:null,sourceClientOffset:null}};function ZF(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,i=n.clientOffset,a=n.getSourceClientOffset,l=e.getMonitor(),c=e.getRegistry();e.dispatch(XF(i)),function(e,t,n){HF(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){HF(n.getSource(e),"Expected sourceIds to be registered.")})}(t,l,c);var s=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,l);if(null!==s){var u=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){HF("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),u=a(s)}e.dispatch(XF(i,u));var d=c.getSource(s).beginDrag(l,s);if(null!=d){!function(e){HF(YF(e),"Item must be an object.")}(d),c.pinSource(s);var f=c.getSourceType(s);return{type:_F,payload:{itemType:f,item:d,sourceId:s,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!o}}}}else e.dispatch(qF)}}function JF(e){return function(){if(e.getMonitor().isDragging())return{type:WF}}}function eH(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function tH(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){HF(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){HF(t.isDragging(),"Cannot call hover while not dragging."),HF(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];HF(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array."),HF(n.getTarget(o),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){for(var r=e.length-1;r>=0;r--){var o=e[r];eH(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,i),{type:VF,payload:{targetIds:r,clientOffset:n||null}}}}function nH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nH(Object(n),!0).forEach(function(t){oH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iH(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){HF(e.isDragging(),"Cannot call drop while not dragging."),HF(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var o=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(function(o,i){var a=function(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;(function(e){HF(void 0===e||YF(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:r.getDropResult());return i}(o,i,r,n),l={type:GF,payload:{dropResult:rH(rH({},t),a)}};e.dispatch(l)})}}function aH(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){HF(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource());return{type:UF}}}function lH(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function cH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sH=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cH(this,"store",void 0),cH(this,"monitor",void 0),cH(this,"backend",void 0),cH(this,"isSetUp",!1),cH(this,"handleRefCountChange",function(){var e=r.store.getState().refCount>0;r.backend&&(e&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!e&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}return lH(e,[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch;var n=function(e){return{beginDrag:ZF(e),publishDragSource:JF(e),hover:tH(e),drop:iH(e),endDrag:aH(e)}}(this);return Object.keys(n).reduce(function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=i.apply(e,r);void 0!==a&&t(a)}),r},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}]),e}();function uH(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var dH="function"==typeof Symbol&&Symbol.observable||"@@observable",fH=function(){return Math.random().toString(36).substring(7).split("").join(".")},pH={INIT:"@@redux/INIT"+fH(),REPLACE:"@@redux/REPLACE"+fH()};function mH(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(uH(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(uH(1));return n(mH)(e,t)}if("function"!=typeof e)throw new Error(uH(2));var o=e,i=t,a=[],l=a,c=!1;function s(){l===a&&(l=a.slice())}function u(){if(c)throw new Error(uH(3));return i}function d(e){if("function"!=typeof e)throw new Error(uH(4));if(c)throw new Error(uH(5));var t=!0;return s(),l.push(e),function(){if(t){if(c)throw new Error(uH(6));t=!1,s();var n=l.indexOf(e);l.splice(n,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(uH(7));if(void 0===e.type)throw new Error(uH(8));if(c)throw new Error(uH(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=l,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:pH.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(uH(10));o=e,f({type:pH.REPLACE})}})[dH]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(uH(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[dH]=function(){return this},e},r}var gH=function(e,t){return e===t};function hH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hH(Object(n),!0).forEach(function(t){bH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yH={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function xH(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yH,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case AF:case _F:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case VF:return e=n.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:vH(vH({},n),{},{clientOffset:o.clientOffset});case UF:case GF:return yH;default:return n}}var wH="dnd-core/ADD_SOURCE",CH="dnd-core/ADD_TARGET",SH="dnd-core/REMOVE_SOURCE",$H="dnd-core/REMOVE_TARGET";function kH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kH(Object(n),!0).forEach(function(t){OH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function OH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var IH={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function NH(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:IH,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case _F:return EH(EH({},n),{},{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case WF:return EH(EH({},n),{},{isSourcePublic:!0});case VF:return EH(EH({},n),{},{targetIds:o.targetIds});case $H:return-1===n.targetIds.indexOf(o.targetId)?n:EH(EH({},n),{},{targetIds:(e=n.targetIds,t=o.targetId,e.filter(function(e){return e!==t}))});case GF:return EH(EH({},n),{},{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case UF:return EH(EH({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function RH(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case wH:case CH:return e+1;case SH:case $H:return e-1;default:return e}}var jH=[],MH=[];function PH(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case VF:break;case wH:case CH:case $H:case SH:return jH;default:return MH}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,o=t.prevTargetIds,i=void 0===o?[]:o,a=function(e,t){var n=new Map,r=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var o=[];return n.forEach(function(e,t){1===e&&o.push(t)}),o}(r,i),l=a.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gH;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,i);if(!l)return jH;var c=i[i.length-1],s=r[r.length-1];return c!==s&&(c&&a.push(c),s&&a.push(s)),a}function DH(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function TH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TH(Object(n),!0).forEach(function(t){LH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zH(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:PH(e.dirtyHandlerIds,{type:t.type,payload:BH(BH({},t.payload),{},{prevTargetIds:QF(e,"dragOperation.targetIds",[])})}),dragOffset:xH(e.dragOffset,t),refCount:RH(e.refCount,t),dragOperation:NH(e.dragOperation,t),stateId:DH(e.stateId)}}function FH(e,t){return{x:e.x-t.x,y:e.y-t.y}}function HH(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function AH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}jH.__IS_NONE__=!0,MH.__IS_ALL__=!0;var _H=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),AH(this,"store",void 0),AH(this,"registry",void 0),this.store=t,this.registry=n}return HH(e,[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;HF("function"==typeof e,"listener must be a function."),HF(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe(function(){var o=t.store.getState(),i=o.stateId;try{var a=i===r||i===r+1&&!function(e,t){if(e===jH)return!1;if(e===MH||void 0===t)return!0;var n,r=(n=e,t.filter(function(e){return n.indexOf(e)>-1}));return r.length>0}(o.dirtyHandlerIds,n);a||e()}finally{r=i}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;HF("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return HF(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return HF(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&(eH(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return HF(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!eH(n,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(e);return t?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,r=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,r&&o&&i?FH((n=i,{x:(t=r).x+n.x,y:t.y+n.y}),o):null;var e,t,n,r,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?FH(t,n):null;var e,t,n}}]),e}(),WH=0;function VH(e){return VH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VH(e)}function GH(e,t){t&&Array.isArray(e)?e.forEach(function(e){return GH(e,!1)}):HF("string"==typeof e||"symbol"===VH(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const UH="undefined"!=typeof global?global:self,XH=UH.MutationObserver||UH.WebKitMutationObserver;function KH(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const QH="function"==typeof XH?function(e){let t=1;const n=new XH(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:KH;class YH{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const qH=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=QH(this.flush),this.requestErrorThrow=KH(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},ZH=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new YH(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(qH.registerPendingError);function JH(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function eA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nA(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rA(e){var t=(WH++).toString();switch(e){case LF.SOURCE:return"S".concat(t);case LF.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function oA(e){switch(e[0]){case"S":return LF.SOURCE;case"T":return LF.TARGET;default:HF(!1,"Cannot parse handler ID: ".concat(e))}}function iA(e,t){var n=e.entries(),r=!1;do{var o=n.next(),i=o.done;if(tA(o.value,2)[1]===t)return!0;r=!!i}while(!r);return!1}var aA=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),eA(this,"types",new Map),eA(this,"dragSources",new Map),eA(this,"dropTargets",new Map),eA(this,"pinnedSourceId",null),eA(this,"pinnedSource",null),eA(this,"store",void 0),this.store=t}return JH(e,[{key:"addSource",value:function(e,t){GH(e),function(e){HF("function"==typeof e.canDrag,"Expected canDrag to be a function."),HF("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),HF("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(LF.SOURCE,e,t);return this.store.dispatch(function(e){return{type:wH,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){GH(e,!0),function(e){HF("function"==typeof e.canDrop,"Expected canDrop to be a function."),HF("function"==typeof e.hover,"Expected hover to be a function."),HF("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(LF.TARGET,e,t);return this.store.dispatch(function(e){return{type:CH,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return iA(this.dragSources,e)||iA(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return HF(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return HF(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return HF(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return HF(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return oA(e)===LF.SOURCE}},{key:"isTargetId",value:function(e){return oA(e)===LF.TARGET}},{key:"removeSource",value:function(e){var t,n=this;HF(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:SH,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},qH.enqueueTask(ZH.create(t))}},{key:"removeTarget",value:function(e){HF(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:$H,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);HF(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){HF(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=rA(e);return this.types.set(r,t),e===LF.SOURCE?this.dragSources.set(r,n):e===LF.TARGET&&this.dropTargets.set(r,n),r}}]),e}();function lA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return mH(zH,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),o=new _H(r,new aA(r)),i=new sH(r,o),a=e(i,t,n);return i.receiveBackend(a),i}var cA=["children"];function sA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uA(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fA=0,pA=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),mA=e.memo(function(t){var r=t.children,o=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gA(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;o[pA]||(o[pA]={dragDropManager:lA(e,t,n,r)});return o[pA]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(dA(t,cA)),i=sA(o,2),a=i[0],l=i[1];return e.useEffect(function(){if(l){var e=gA();return++fA,function(){0===--fA&&(e[pA]=null)}}},[]),n.jsx(FF.Provider,Object.assign({value:a},{children:r}),void 0)});function gA(){return"undefined"!=typeof global?global:window}function hA(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function vA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bA=!1,yA=!1,xA=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vA(this,"internalMonitor",void 0),vA(this,"sourceId",null),this.internalMonitor=t.getMonitor()}return hA(e,[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){HF(!bA,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return bA=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{bA=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;HF(!yA,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return yA=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{yA=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}();function wA(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function CA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SA=!1,$A=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),CA(this,"internalMonitor",void 0),CA(this,"targetId",null),this.internalMonitor=t.getMonitor()}return wA(e,[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;HF(!SA,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return SA=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{SA=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}();function kA(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e.isValidElement(n)){var o=n;return t(o,r),o}var i=n;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(i);var a=r?function(e){return t(e,r)}:t;return function(t,n){var r=t.ref;return HF("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?e.cloneElement(t,{ref:function(e){OA(r,e),OA(n,e)}}):e.cloneElement(t,{ref:n})}(i,a)}}function EA(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=kA(r);t[n]=function(){return o}}}),t}function OA(e,t){"function"==typeof e?e(t):e.current=t}function IA(e){return IA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IA(e)}function NA(e){return null!==e&&"object"===IA(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function RA(e,t,n,r){var o=void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var s=i[c];if(!l(s))return!1;var u=e[s],d=t[s];if(!1===(o=void 0)||void 0===o&&u!==d)return!1}return!0}function jA(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function MA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PA=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),MA(this,"hooks",EA({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,NA(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,NA(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),MA(this,"handlerId",null),MA(this,"dragSourceRef",null),MA(this,"dragSourceNode",void 0),MA(this,"dragSourceOptionsInternal",null),MA(this,"dragSourceUnsubscribe",void 0),MA(this,"dragPreviewRef",null),MA(this,"dragPreviewNode",void 0),MA(this,"dragPreviewOptionsInternal",null),MA(this,"dragPreviewUnsubscribe",void 0),MA(this,"lastConnectedHandlerId",null),MA(this,"lastConnectedDragSource",null),MA(this,"lastConnectedDragSourceOptions",null),MA(this,"lastConnectedDragPreview",null),MA(this,"lastConnectedDragPreviewOptions",null),MA(this,"backend",void 0),this.backend=t}return jA(e,[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!RA(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!RA(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),e}();function DA(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function TA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BA=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),TA(this,"hooks",EA({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,NA(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),TA(this,"handlerId",null),TA(this,"dropTargetRef",null),TA(this,"dropTargetNode",void 0),TA(this,"dropTargetOptionsInternal",null),TA(this,"unsubscribeDropTarget",void 0),TA(this,"lastConnectedHandlerId",null),TA(this,"lastConnectedDropTarget",null),TA(this,"lastConnectedDropTargetOptions",null),TA(this,"backend",void 0),this.backend=t}return DA(e,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!RA(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),e}();var LA="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function zA(e){return zA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zA(e)}function FA(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function HA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AA,_A,WA=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),HA(this,"spec",void 0),HA(this,"monitor",void 0),HA(this,"connector",void 0),this.spec=t,this.monitor=n,this.connector=r}return FA(e,[{key:"beginDrag",value:function(){var e,t=this.spec,n=this.monitor;return null!==(e="object"===zA(t.item)?t.item:"function"==typeof t.item?t.item(n):{})&&void 0!==e?e:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var n=this.spec,r=this.monitor,o=n.isDragging;return o?o(r):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()}}]),e}();function VA(){var t=e.useContext(FF).dragDropManager;return HF(null!=t,"Expected drag drop context"),t}function GA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return UA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UA(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XA(t,n,r){var o=VA(),i=function(t,n,r){var o=e.useMemo(function(){return new WA(t,n,r)},[n,r]);return e.useEffect(function(){o.spec=t},[t]),o}(t,n,r),a=function(t){return e.useMemo(function(){var e=t.type;return HF(null!=e,"spec.type must be defined"),e},[t])}(t);LA(function(){if(null!=a){var e=function(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}(a,i,o),t=GA(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),r.receiveHandlerId(l),c}},[o,n,r,i,a])}function KA(e){return function(e){if(Array.isArray(e))return QA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return QA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YA(t,n){var r=KA([]);return"function"!=typeof t&&r.push(t),e.useMemo(function(){return"function"==typeof t?t():t},r)}var qA=(_A||(_A=1,AA=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}),AA),ZA=p(qA);function JA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return e_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r_(t,n,r){var o=function(t,n,r){var o=JA(e.useState(function(){return n(t)}),2),i=o[0],a=o[1],l=e.useCallback(function(){var e=n(t);ZA(i,e)||(a(e),r&&r())},[i,t,r]);return LA(l),[i,l]}(t,n,r),i=t_(o,2),a=i[0],l=i[1];return LA(function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(l,{handlerIds:[e]})},[t,l]),a}function o_(e,t,n){return r_(t,e||function(){return{}},function(){return n.reconnect()})}function i_(t){return e.useMemo(function(){return t.hooks.dragSource()},[t])}function a_(t){return e.useMemo(function(){return t.hooks.dragPreview()},[t])}function l_(t,n){var r=YA(t);HF(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var o,i=(o=VA(),e.useMemo(function(){return new xA(o)},[o])),a=function(t,n){var r=VA(),o=e.useMemo(function(){return new PA(r.getBackend())},[r]);return LA(function(){return o.dragSourceOptions=t||null,o.reconnect(),function(){return o.disconnectDragSource()}},[o,t]),LA(function(){return o.dragPreviewOptions=n||null,o.reconnect(),function(){return o.disconnectDragPreview()}},[o,n]),o}(r.options,r.previewOptions);return XA(r,i,a),[o_(r.collect,i,a),i_(a),a_(a)]}function c_(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function s_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u_=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s_(this,"spec",void 0),s_(this,"monitor",void 0),this.spec=t,this.monitor=n}return c_(e,[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}]),e}();function d_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f_(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p_(t,n,r){var o=VA(),i=function(t,n){var r=e.useMemo(function(){return new u_(t,n)},[n]);return e.useEffect(function(){r.spec=t},[t]),r}(t,n),a=function(t){var n=t.accept;return e.useMemo(function(){return HF(null!=t.accept,"accept must be defined"),Array.isArray(n)?n:[n]},[n])}(t);LA(function(){var e=function(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}(a,i,o),t=d_(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),r.receiveHandlerId(l),c},[o,n,i,r,a.map(function(e){return e.toString()}).join("|")])}function m_(t){return e.useMemo(function(){return t.hooks.dropTarget()},[t])}function g_(t,n){var r,o=YA(t),i=(r=VA(),e.useMemo(function(){return new $A(r)},[r])),a=function(t){var n=VA(),r=e.useMemo(function(){return new BA(n.getBackend())},[n]);return LA(function(){return r.dropTargetOptions=t||null,r.reconnect(),function(){return r.disconnectDropTarget()}},[t]),r}(o.options);return p_(o,i,a),[o_(o.collect,i,a),m_(a)]}s('.drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}.editable-cell-value-wrap{cursor:pointer;min-height:20px;min-width:50px;position:relative}.editable-form-item-wrap .ant-form-item-control-input{min-height:auto!important}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{border:1px dashed #5860f8;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvR2VuZXJhdGVUYWJsZS9FZGl0YWJsZUNlbGwvaW5kZXgubGVzcyIsImluZGV4Lmxlc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsdUJBQ0UsMENDREYsQ0RJQSxxQkFDRSx1Q0NGRixDREtBLDBCQUlFLGNBQUEsQ0FEQSxlQUFBLENBREEsY0FBQSxDQURBLGlCQ0FGLENETUEsc0RBQ0UseUJDSkYsQ0RPQSwwSEFRRSx5QkFBQSxDQUhBLFFBQUEsQ0FJQSxVQUFBLENBSEEsTUFBQSxDQUpBLGlCQUFBLENBRUEsT0FBQSxDQURBLEtBQUEsQ0FJQSxTQ0hGIiwiZmlsZSI6ImluZGV4Lmxlc3MifQ== */');const{Option:h_}=_h,v_=e.createContext(null),b_=e.memo(e.forwardRef(({open:t,index:r,moveRow:o,className:i,style:a,...l},c)=>{const[s]=fI.useForm(),u=e.useRef(null);e.useImperativeHandle(c,()=>u.current,[]);const[{isOver:d,dropClassName:f},p]=g_({accept:"DraggableBodyRow",collect:e=>{const{index:t}=e.getItem()||{};return t===r?{}:{isOver:e.isOver(),dropClassName:t<r?" drop-over-downward":" drop-over-upward"}},drop:e=>{o(e.index,r)}}),[,m]=l_({type:"DraggableBodyRow",item:{index:r},collect:e=>({isDragging:e.isDragging()})});t&&p(m(u));const g={ref:u,className:`${i}${d?f:""}`,style:{cursor:t?"move":"auto",...a},...l};return n.jsx(fI,{size:"small",component:!1,form:s,children:n.jsx(v_.Provider,{value:s,children:n.jsx("tr",{...g})})})}),(e,t)=>e.index===t.index&&e.open===t.open&&e.className===t.className&&e.style===t.style&&e.moveRow===t.moveRow);var y_=e.memo(({columns:r,record:o,recordIndex:i,dataIndex:a,title:l,rowSpanNum:c,colSpanNum:s,rowSpan:u,colSpan:d,editable:f,inputType:p,valueType:m,valueEnum:g,recordSelectField:h,controlRender:v,render:b,formChange:y,remoteConfig:x,children:w,formItemProps:C,handleSave:S,placeholder:$,triggerRemoteSearch:k,...E})=>{const O=e.useContext(v_),[I,N]=e.useState(!1),[R,j]=e.useState(!1),[M,P]=e.useState({}),D=e.useRef(null);e.useEffect(()=>{I&&D.current.focus()},[I]),e.useEffect(()=>{"RemoteSearch"===m&&o&&o[a]&&x?.remoteApi&&k&&T(void 0,a,o,x?.remoteApi)},[x?.remoteApi,o?.[a],k]);const T=(e,t,n,r)=>{r&&(j(!0),r(e,n).then(e=>{j(!1),t&&P(n=>({...n,[t]:e}))}))},B=()=>{L()},L=()=>{N(!1)},z=()=>{let e=o[a];null!=e&&""!==e&&("DatePicker"!==m&&"DateTimePicker"!==m||(e=Ly(e)),"status"===a&&(e=String(e))),N(!I),O.setFieldsValue({[a]:e})},F=e.useCallback(e=>{const t={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(t).includes(m)&&e[a]&&(e[a]=e[a].format(t[m])),e},[m,a]),H=e.useMemo(()=>{if(m&&a){if(g&&("Select"===m||"AutoComplete"===m))return EL(g,o[a]);if("RemoteSearch"===m&&M[a])return EL(M[a],o[a]);if(o[h]&&"RecordSelect"===m)return EL(o[h],o[a]);if(Ly.isDayjs(o[a]))return F({...o})[a]}return w},[m,a,g,M,o,w,h,F]),A=(e,r)=>{let i=null;const l=(e,t)=>{let n="";const r=function(e){for(let t of e)if(t)if(kL({data:t,type:"String"}))n+=t;else{const e=t.props.children;kL({data:e,type:"Object"})&&r([e]),kL({data:e,type:"Array"})&&r(e),kL({data:e,type:"String"})&&(n+=e)}};return r([t.children]),n.toLowerCase().indexOf(e.toLowerCase())>=0},c=e=>t.isArray(e)?e.map((e,t)=>n.jsx(h_,{value:e.value,children:e.label},t)):null;switch(e){case"RecordSelect":i=n.jsx(_h,{ref:D,open:I,allowClear:!0,showSearch:!0,popupMatchSelectWidth:!1,placeholder:$||r,onChange:_,onBlur:B,optionFilterProp:"children",filterOption:l,children:c(o[h])});break;case"Select":i=n.jsx(_h,{ref:D,open:I,popupMatchSelectWidth:!1,onChange:_,onBlur:B,placeholder:$||r,children:c(g)});break;case"DatePicker":i=n.jsx(uO,{ref:D,open:I,onChange:_,onBlur:B,placeholder:$||r});break;case"DateTimePicker":i=n.jsx(uO,{ref:D,open:I,onChange:_,onBlur:B,placeholder:$||r,showTime:!0});break;case"AutoComplete":i=n.jsx(_h,{ref:D,open:I,allowClear:!0,showSearch:!0,popupMatchSelectWidth:!1,placeholder:$||r,onChange:_,onBlur:B,optionFilterProp:"children",filterOption:l,children:c(g)});break;case"RemoteSearch":let e=g;M[a]&&(e=M[a]),i=n.jsx(_h,{ref:D,open:I,mode:x.remoteMode,placeholder:$||r,notFoundContent:R?n.jsx(jN,{size:"small"}):null,popupMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:_,onBlur:B,onFocus:()=>T(void 0,a,o,x.remoteApi),onSearch:e=>T(e,a,o,x.remoteApi),children:a&&c(e)});break;default:i=n.jsx(VI,{ref:D,onPressEnter:_,onBlur:_,placeholder:$||r,type:p||"text"})}return i},_=async()=>{try{const e=await O.validateFields();let t={...o,...e};t[a]=t[a]||void 0,t=F(t),y&&(t=await y(t)||t),o[a]!==t[a]&&S(t,a),L()}catch(e){console.log("保存表单字段失败:",e)}};let W=w;const V=e.useMemo(()=>b?b(o[a],o,i):H,[b,o,i,a,H]);W=f?I?n.jsx("div",{className:"editable-form-item-wrap",children:n.jsx(fI.Item,{style:{margin:0},name:a,rules:C?C.rules:void 0,children:A(m,l)})}):n.jsx("div",{className:"editable-cell-value-wrap",onClick:z,children:V}):V,v&&(W=v(o,W));const G=e.useCallback((e,t)=>n.jsx("td",{...e,children:t}),[]);return u||d?G({...E,rowSpan:u,colSpan:d,title:o&&o[a]},W):0!==c&&0!==s?G({...E,rowSpan:c,colSpan:u,title:o&&o[a]},W):null});function x_(e){var t=null;return function(){return null==t&&(t=e()),t}}function w_(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function C_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S_=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),C_(this,"entered",[]),C_(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}return w_(e,[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach(function(e){return o.push(e)}),o}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),e}(),$_=x_(function(){return/firefox/i.test(navigator.userAgent)}),k_=x_(function(){return Boolean(window.safari)});function E_(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function O_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I_=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),O_(this,"xs",void 0),O_(this,"ys",void 0),O_(this,"c1s",void 0),O_(this,"c2s",void 0),O_(this,"c3s",void 0);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort(function(e,n){return t[e]<t[n]?-1:1});for(var a,l,c=[],s=[],u=0;u<r-1;u++)a=t[u+1]-t[u],l=n[u+1]-n[u],c.push(a),s.push(l/a);for(var d=[s[0]],f=0;f<c.length-1;f++){var p=s[f],m=s[f+1];if(p*m<=0)d.push(0);else{a=c[f];var g=c[f+1],h=a+g;d.push(3*h/((h+g)/p+(h+a)/m))}}d.push(s[s.length-1]);for(var v,b=[],y=[],x=0;x<d.length-1;x++){v=s[x];var w=d[x],C=1/c[x],S=w+d[x+1]-v-v;b.push((v-w-S)*C),y.push(S*C*C)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=b,this.c3s=y}return E_(e,[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var l,c=0,s=i.length-1;c<=s;){var u=t[l=Math.floor(.5*(c+s))];if(u<e)c=l+1;else{if(!(u>e))return n[l];s=l-1}}var d=e-t[a=Math.max(0,s)],f=d*d;return n[a]+r[a]*d+o[a]*f+i[a]*d*f}}]),e}();function N_(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function R_(e){return{x:e.clientX,y:e.clientY}}function j_(e,t,n,r,o){var i,a=function(e){var t;return"IMG"===e.nodeName&&($_()||!(null!==(t=document.documentElement)&&void 0!==t&&t.contains(e)))}(t),l=N_(a?e:t),c={x:n.x-l.x,y:n.y-l.y},s=e.offsetWidth,u=e.offsetHeight,d=r.anchorX,f=r.anchorY,p=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return k_()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(a,t,s,u),m=p.dragPreviewWidth,g=p.dragPreviewHeight,h=o.offsetX,v=o.offsetY,b=0===v||v;return{x:0===h||h?h:new I_([0,.5,1],[c.x,c.x/s*m,c.x+m-s]).interpolate(d),y:b?v:(i=new I_([0,.5,1],[c.y,c.y/u*g,c.y+g-u]).interpolate(f),k_()&&a&&(i+=(window.devicePixelRatio-1)*g),i)}}var M_,P_="__NATIVE_FILE__",D_="__NATIVE_URL__",T_="__NATIVE_TEXT__",B_="__NATIVE_HTML__",L_=Object.freeze({__proto__:null,FILE:P_,HTML:B_,TEXT:T_,URL:D_});function z_(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=r?r:n}function F_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H_=(F_(M_={},P_,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),F_(M_,B_,{exposeProperties:{html:function(e,t){return z_(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),F_(M_,D_,{exposeProperties:{urls:function(e,t){return z_(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),F_(M_,T_,{exposeProperties:{text:function(e,t){return z_(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),M_);function A_(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function __(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W_=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),__(this,"item",void 0),__(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}return A_(e,[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}();function V_(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(H_).filter(function(e){return H_[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}function G_(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function U_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X_=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),U_(this,"ownerDocument",null),U_(this,"globalContext",void 0),U_(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}return G_(e,[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}]),e}();function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K_(Object(n),!0).forEach(function(t){q_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Y_(e,t,n){return t&&function(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,r.key,r)}}(e.prototype,t),e}function q_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z_=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),q_(this,"options",void 0),q_(this,"actions",void 0),q_(this,"monitor",void 0),q_(this,"registry",void 0),q_(this,"enterLeaveCounter",void 0),q_(this,"sourcePreviewNodes",new Map),q_(this,"sourcePreviewNodeOptions",new Map),q_(this,"sourceNodes",new Map),q_(this,"sourceNodeOptions",new Map),q_(this,"dragStartSourceIds",null),q_(this,"dropTargetIds",[]),q_(this,"dragEnterTargetIds",[]),q_(this,"currentNativeSource",null),q_(this,"currentNativeHandle",null),q_(this,"currentDragSourceNode",null),q_(this,"altKeyPressed",!1),q_(this,"mouseMoveTimeoutTimer",null),q_(this,"asyncEndDragFrameId",null),q_(this,"dragOverTargetIds",null),q_(this,"lastClientOffset",null),q_(this,"hoverRafId",null),q_(this,"getSourceClientOffset",function(e){var t=o.sourceNodes.get(e);return t&&N_(t)||null}),q_(this,"endDragNativeItem",function(){o.isDraggingNativeItem()&&(o.actions.endDrag(),o.currentNativeHandle&&o.registry.removeSource(o.currentNativeHandle),o.currentNativeHandle=null,o.currentNativeSource=null)}),q_(this,"isNodeInDocument",function(e){return Boolean(e&&o.document&&o.document.body&&o.document.body.contains(e))}),q_(this,"endDragIfSourceWasRemovedFromDOM",function(){var e=o.currentDragSourceNode;null==e||o.isNodeInDocument(e)||o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag()}),q_(this,"handleTopDragStartCapture",function(){o.clearCurrentDragSourceNode(),o.dragStartSourceIds=[]}),q_(this,"handleTopDragStart",function(e){if(!e.defaultPrevented){var t=o.dragStartSourceIds;o.dragStartSourceIds=null;var n=R_(e);o.monitor.isDragging()&&o.actions.endDrag(),o.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:o.getSourceClientOffset,clientOffset:n});var r=e.dataTransfer,i=V_(r);if(o.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var a=o.monitor.getSourceId(),l=o.sourceNodes.get(a),c=o.sourcePreviewNodes.get(a)||l;if(c){var s=o.getCurrentSourcePreviewNodeOptions(),u=j_(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});r.setDragImage(c,u.x,u.y)}}try{null==r||r.setData("application/json",{})}catch(e){}o.setCurrentDragSourceNode(e.target),o.getCurrentSourcePreviewNodeOptions().captureDraggingState?o.actions.publishDragSource():setTimeout(function(){return o.actions.publishDragSource()},0)}else if(i)o.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}}),q_(this,"handleTopDragEndCapture",function(){o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag()}),q_(this,"handleTopDragEnterCapture",function(e){if(o.dragEnterTargetIds=[],o.enterLeaveCounter.enter(e.target)&&!o.monitor.isDragging()){var t=e.dataTransfer,n=V_(t);n&&o.beginDragNativeItem(n,t)}}),q_(this,"handleTopDragEnter",function(e){var t=o.dragEnterTargetIds;(o.dragEnterTargetIds=[],o.monitor.isDragging())&&(o.altKeyPressed=e.altKey,t.length>0&&o.actions.hover(t,{clientOffset:R_(e)}),t.some(function(e){return o.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())))}),q_(this,"handleTopDragOverCapture",function(){o.dragOverTargetIds=[]}),q_(this,"handleTopDragOver",function(e){var t=o.dragOverTargetIds;if(o.dragOverTargetIds=[],!o.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));o.altKeyPressed=e.altKey,o.lastClientOffset=R_(e),null===o.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(o.hoverRafId=requestAnimationFrame(function(){o.monitor.isDragging()&&o.actions.hover(t||[],{clientOffset:o.lastClientOffset}),o.hoverRafId=null})),(t||[]).some(function(e){return o.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())):o.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))}),q_(this,"handleTopDragLeaveCapture",function(e){o.isDraggingNativeItem()&&e.preventDefault(),o.enterLeaveCounter.leave(e.target)&&o.isDraggingNativeItem()&&setTimeout(function(){return o.endDragNativeItem()},0)}),q_(this,"handleTopDropCapture",function(e){var t;(o.dropTargetIds=[],o.isDraggingNativeItem())?(e.preventDefault(),null===(t=o.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):V_(e.dataTransfer)&&e.preventDefault();o.enterLeaveCounter.reset()}),q_(this,"handleTopDrop",function(e){var t=o.dropTargetIds;o.dropTargetIds=[],o.actions.hover(t,{clientOffset:R_(e)}),o.actions.drop({dropEffect:o.getCurrentDropEffect()}),o.isDraggingNativeItem()?o.endDragNativeItem():o.monitor.isDragging()&&o.actions.endDrag()}),q_(this,"handleSelectStart",function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}),this.options=new X_(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new S_(this.isNodeInDocument)}return Y_(e,[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Q_({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return Q_({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(L_).some(function(t){return L_[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new W_(H_[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}]),e}();const J_=function(e,t,n){return new Z_(e,t,n)},eW=e=>n.jsx(mA,{backend:J_,context:window,children:e.children});s(".ant-table-wrapper .ant-table-cell{color:#333}.ant-table-wrapper .ant-table-thead>tr>th{font-weight:700}.ant-table-wrapper .ant-table-tbody>tr>td,.ant-table-wrapper .ant-table-thead>tr>td,.ant-table-wrapper .ant-table-thead>tr>th{padding:6px 8px}.ant-table-wrapper .ant-table-tbody>tr>td.ant-table-cell .ant-form-item .ant-form-item-control-input{min-height:auto}.ant-table-wrapper .ant-table-tbody .ant-table-tbody-virtual-holder .ant-table-tbody-virtual-holder-inner .ant-table-cell{padding:6px 8px}.ant-table-wrapper .ant-table-tbody .btn-operate{height:26px;width:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-bottom:10px;margin-top:10px;padding-bottom:10px;padding-top:10px}.ant-table-wrapper .react-resizable{background-clip:padding-box;position:relative}.ant-table-wrapper .react-resizable-handle{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-5px;width:10px;z-index:1}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvR2VuZXJhdGVUYWJsZS9pbmRleC5sZXNzIiwiaW5kZXgubGVzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxtQ0FFSSxVQ0ZKLENEQUEsMENBTU0sZUNITixDREhBLDhIQWVNLGVDTE4sQ0RNTSxxR0FHTSxlQ05aLENEYkEsMEhBMkJVLGVDWFYsQ0RoQkEsaURBaUNNLFdBQUEsQ0FEQSxVQ1pOLENEaUJJLHdEQUVFLGtCQUFBLENBREEsZUFBQSxDQUdBLG1CQUFBLENBREEsZ0JDZE4sQ0QxQkEsb0NBOENJLDJCQUFBLENBREEsaUJDZkosQ0Q5QkEsMkNBbURJLFFBQUEsQ0FJQSxpQkFBQSxDQURBLFdBQUEsQ0FMQSxpQkFBQSxDQUNBLFVBQUEsQ0FHQSxVQUFBLENBREEsU0NiSiIsImZpbGUiOiJpbmRleC5sZXNzIn0= */");var tW=e.memo(e.forwardRef((r,o)=>{const i=e.useMemo(()=>{const e=r.extra||{};return{tableConfig:e.tableConfig,virtual:e.virtual,rowType:e.rowType,scroll:e.scroll,apiMethod:e.apiMethod,columns:e.columns||[],data:e.data,drag:e.drag,onSelect:e.onSelect,hidSortColumn:e.hidSortColumn,paginationConfig:e.paginationConfig,getCheckboxProps:e.getCheckboxProps,resultFilter:e.resultFilter,getTableSuccessData:e.getTableSuccessData}},[r.extra]),a=e.useRef(),l=e.useRef(!0),c=e.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),s=e.useRef([]),[u,d]=e.useState(i.columns),[p,m]=e.useState(!1),[g,h]=f.useSetState({listData:[],selectRowIds:[],selectRowArray:[]}),[v,b]=e.useState({x:void 0,y:330}),y=e.useMemo(()=>i.tableConfig&&i.tableConfig.rowKey?i.tableConfig.rowKey:"id",[i.tableConfig]),x=e.forwardRef((e,t)=>n.jsx(b_,{...e,ref:t})),w=e.forwardRef((e,t)=>n.jsx(y_,{...e,ref:t})),C=e.useMemo(()=>({header:{cell:zF},body:{row:x,cell:w}}),[x,w]),S=!(!t.isFunction(i.apiMethod)||!l.current)&&{size:"small",position:["bottomCenter"],showTotal:e=>`共${e}条`,showSizeChanger:!0,showQuickJumper:!0,...c.current},$=e.useCallback((e,t)=>{const n=new Map;return e.forEach(e=>{n.set(e[y],e)}),t.forEach(e=>{n.set(e[y],e)}),Array.from(n.values())},[y]),k=e.useCallback(async e=>{let n=!0;m(!0),e&&(void 0!==e.updateSelected&&(n=e.updateSelected,delete e.updateSelected),"not-reset"===e.pagination&&delete e.pagination,a.current={...a.current,...e});try{const r={...a.current};for(let e in c.current){const t=c.current[e];"orderByInfo"===e&&(r.orderByInfo=t),"current"===e&&(r.page=t),"pageSize"===e&&(r.size=r.size||t)}if(e&&e.current&&(r.page=e.current,c.current.current=e.current),i.apiMethod){delete r.current;const e=await i.apiMethod(t.pickBy(r,t.identity));let o=[];t.isArray(e.data.content)&&(!1!==i.paginationConfig?l.current=!0:l.current=!1,o=e.data.content,c.current.total=e.data.total,c.current.pages=e.data.pages),t.isArray(e.data)&&(l.current=!1,o=e.data),i.resultFilter&&(o=await i.resultFilter(o)),n&&h(e=>{let t=[...e.selectRowIds],n=[];const r=o=>{if(e.selectRowIds.length)for(let i of o){for(let r of e.selectRowIds)i[y]===r&&(t.push(r),n.push(i));i.children&&r(i.children)}};return r(o),e.selectRowIds=Array.from(new Set(t)),e.selectRowArray=$(e.selectRowArray,n),e}),h(e=>(e.listData=o,e)),i.getTableSuccessData&&i.getTableSuccessData(e)}}catch(e){console.error("error",e)}m(!1)},[i,y,$,h]),E=e.useCallback(e=>{!t.isEqual(e,c.current)&&l.current&&(c.current={...c.current,...e},k())},[k]),O=e.useCallback((e,t,n)=>{const{order:r}=n;e.orderByInfo=void 0,r&&(e.orderByInfo=`${n.field}:${"ascend"===r?1:-1}`),E(e)},[E]),I={fixed:!0,type:i.rowType,selectedRowKeys:g.selectRowIds,getCheckboxProps:i.getCheckboxProps,onSelectAll:(e,n,r)=>{h(n=>{let o=[...n.selectRowIds],a=[...n.selectRowArray];return e?(o=t.uniq([...o,...r.map(e=>e[y])]),a=t.uniqBy([...a,...r],y)):(o=o.filter(e=>!r.some(t=>t[y]===e)),a=a.filter(e=>!r.some(t=>t[y]===e[y]))),i.onSelect&&i.onSelect(a,o),n.selectRowIds=o,n.selectRowArray=a,n})},onSelect:(e,t)=>{h(n=>{let r=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===i.rowType&&(t?(r.push(e[y]),o.push(e)):(r=r.filter(t=>t!==e[y]),o=o.filter(t=>t[y]!==e[y]))),"radio"===i.rowType&&t&&(r=[e[y]],o=[e]),i.onSelect&&i.onSelect(o,r),n.selectRowIds=r,n.selectRowArray=o,n})}},N=e=>(t,{size:n})=>{d(t=>{const r=[...t];return r[e]={...r[e],width:n.width},s.current=r,r})},R=e.useCallback(e=>{h(t=>{let n=JSON.parse(JSON.stringify(t.listData));for(let[t,r]of n.entries())if(r[y]===e[y]){n[t]={...n[t],...e};break}return t.listData=n,t})},[y,h]),j=e.useCallback(async(e,t)=>{const n=g.listData[e],r=pF(g.listData,{$splice:[[e,1],[t,0,n]]});m(!0);try{if(i.drag){const n=JSON.parse(JSON.stringify(r)),o=JSON.parse(JSON.stringify(g.listData)),a=[e,t].sort();!1!==await i.drag.moveRow(e,t,n,o,n.slice(a[0],a[1]+1))&&h(e=>(e.listData=n,e))}}finally{m(!1)}},[i.drag,h,g.listData]),M=e.useCallback((e,t)=>({index:t,moveRow:j,open:i.drag&&i.drag.open}),[i.drag,j]),P=e.useCallback(e=>{let t=[];const n=e=>{for(let r of e){for(let e of g.selectRowIds)r[y]===e&&t.push(r);r.children&&n(r.children)}};return n(e),t},[y,g.selectRowIds]);return e.useEffect(()=>{(async()=>{let e=[...i.columns];i.hidSortColumn||e.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(e,t,n)=>{const r=c.current;return Object.keys(r).length?((r.current||0)-1)*(r.pageSize||0)+n+1:n+1}});for(let[t,n]of e.entries()){let r={...n,onHeaderCell:e=>({width:e.width,onResize:N(t)}),onCell:(e,t)=>({record:e,recordIndex:t,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(e,t):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(e,t):n.colSpanNum,editable:"function"==typeof n.editable?n.editable(e,t):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,render:n.render,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:R,placeholder:n.placeholder,triggerRemoteSearch:n.triggerRemoteSearch})},o=s.current.find(e=>e.dataIndex===n.dataIndex&&e.title===n.title);o&&(r.width=o.width),e[t]=r}d(e)})()},[i.columns,i.hidSortColumn,R]),e.useEffect(()=>{t.isArray(i.data)&&h(e=>(e.listData=JSON.parse(JSON.stringify(i.data)),e))},[i.data,h]),e.useEffect(()=>{const e=document.getElementById("slider-menu"),t=document.getElementById("router-render");if(void 0!==i.scroll?.x||void 0!==i.scroll?.y)b(e=>({...e,...i.scroll}));else if(e&&t){let n=parseInt(window.getComputedStyle(t,null).paddingLeft);b(t=>(t.x=document.body.clientWidth-e.clientWidth-(2*n+43),t))}},[i.scroll]),e.useEffect(()=>{i.paginationConfig&&(c.current={...c.current,...i.paginationConfig})},[i.paginationConfig]),e.useImperativeHandle(o,()=>({setTableLoading:e=>{m(e)},getPages:()=>({...c.current}),getTableList:async(e,t)=>{e&&("not-reset"===e.pagination?e.current=c.current.current:void 0===e.current&&(e.current=1),e.clearSelectIds&&(delete e.clearSelectIds,h(e=>(e.selectRowArray=[],e.selectRowIds=[],e)))),await k(e),t&&t()},setRowSelected:(e,t)=>{let n=e;!0===t&&(n=Array.from(new Set([...g.selectRowIds,...e]))),h({selectRowIds:n})},setRowSelectedBy:e=>{h({selectRowArray:e})},getSelectIds:()=>g.selectRowIds,clearSelectIds:()=>{h({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>{const e=P(g.listData);return t.cloneDeep($(g.selectRowArray,e))},removeSelectIds:e=>{if(!Array.isArray(e)||0===e.length)return;const t=(t,n)=>t.filter(t=>"string"==typeof t?!e.includes(t):!e.includes(t[n]));h({selectRowIds:t(g.selectRowIds,y),selectRowArray:t(g.selectRowArray,y)})},getStaticDataList:()=>{try{return t.cloneDeep(g.listData||[])}catch(e){return console.error("error",e),[]}},setStaticDataList:(e,n)=>{if(e)try{if("object"!=typeof e||Array.isArray(e))Array.isArray(e)&&h(n=>(n.listData=t.cloneDeep(e),n));else{const t=e;h(e=>(e.listData=g.listData.map(e=>e[y]===t[y]?{...e,...t}:e),e))}n&&n()}catch(e){console.error("error",e)}}})),n.jsx(oF,{children:n.jsx(eW,{children:n.jsx(UD,{bordered:!0,rowKey:"id",rowClassName:"editable-row",virtual:i.virtual?.open,loading:p,components:C,onRow:M,columns:u,dataSource:g.listData,rowSelection:i.rowType?I:void 0,pagination:S,onChange:O,scroll:v,...i.tableConfig})})})}),(e,n)=>{const r=e.extra||{},o=n.extra||{};if(!(r.apiMethod===o.apiMethod&&r.onSelect===o.onSelect&&r.drag?.moveRow===o.drag?.moveRow&&r.getCheckboxProps===o.getCheckboxProps&&r.resultFilter===o.resultFilter&&r.getTableSuccessData===o.getTableSuccessData))return!1;const i=e=>{if(!e)return e;const{apiMethod:t,onSelect:n,drag:r,getCheckboxProps:o,resultFilter:i,getTableSuccessData:a,...l}=e;return{...l,drag:r?{...r,moveRow:void 0}:void 0}};try{return t.isEqual(i(r),i(o))}catch(e){return i(r)===i(o)}});s("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbmRleC5sZXNzIn0= */");const nW=e=>{const t={...e};return delete t.outerHeight,n.jsx(Uk,{className:"empty-wrap",style:{minHeight:e&&e.outerHeight?e.outerHeight:400},align:"middle",justify:"center",children:n.jsx(Zg,{description:"暂无数据",...t})})};s(".from-table-modal .ant-modal-body{padding-top:15px}.from-table-modal .ant-modal-body .search-form{margin-bottom:8px}.from-table-modal .ant-modal-body .ant-table-wrapper .ant-pagination{margin-bottom:0}.from-table-modal .from-table-modal-foot{margin-top:20px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvTGF5b3V0VGFibGVNb2RhbC9pbmRleC5sZXNzIiwiaW5kZXgubGVzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxrQ0FFSSxnQkNBSixDREZBLCtDQUlNLGlCQ0NOLENETEEscUVBUVEsZUNBUixDRFJBLHlDQWFJLGVDRkoiLCJmaWxlIjoiaW5kZXgubGVzcyJ9 */");const{Link:rW,Paragraph:oW}=$B;var iW=e.forwardRef(function(t,r){const o=e.useRef(null),i=e.useRef(),[a,l]=f.useSetState({saveLoading:!1,selectedRows:[]}),c=e.useMemo(()=>t.tableColumnsList&&t.tableColumnsList.tableConfig&&t.tableColumnsList.tableConfig.rowKey||"id",[t.tableColumnsList]),s=e.useMemo(()=>{const e=t.width||0;return e>=500&&e<=800?{span:7}:e>800&&e<=1e3?{span:6}:e>1e3&&e<=1200?{span:5}:e>1200?{span:4}:{span:8}},[t.width]),u=(e,t)=>{if(i.current){let n=[],r=[];"all"===e&&i.current.clearSelectIds(),"odd"===e&&t&&(n=[t[c]],r=a.selectedRows.filter(e=>e[c]!==t[c]),i.current.removeSelectIds(n)),l({selectedRows:r})}},d=e.useCallback(async()=>{if(o.current&&i.current){let e=await o.current.formSubmit();if(e&&Object.keys(e).length){for(let t in e){const n="YYYY-MM-DD HH:mm:ss";Ly(e[t],n,!0).isValid()&&(e[t]=Ly(e[t]).format(n))}e={clearSelectIds:!0,...e},void 0!==t.clearSelectIds&&(e.clearSelectIds=t.clearSelectIds),e.clearSelectIds&&l(e=>(e.selectedRows=[],e)),t.manualParameterChange&&(e=t.manualParameterChange(e)),t.searchCallback?t.searchCallback(e).then(t=>{t&&i.current?.getTableList(e)}):i.current.getTableList(e)}}else i.current?.getTableList()},[t,l]),p=()=>{if(o.current){let e=[];const n=t.searchNoResetFiled||[];if(t.searchFormList)for(let r of t.searchFormList){if(r.unionConfig)for(let t of r.unionConfig.unionItems)t.name&&!n.includes(t.name)&&e.push(t.name);r.name&&!n.includes(r.name)&&e.push(r.name)}o.current.formReset(e)}d()};return e.useEffect(()=>{t.visible&&(t.autoGetList&&i.current?.getTableList(),t.openSelected&&t.openSelected.visible&&l(e=>(e.selectedRows=t.openSelected?.defaultValues||[],i.current?.setRowSelectedBy(e.selectedRows),i.current?.setRowSelected(e.selectedRows.map(e=>e[c])),e)))},[t.autoGetList,t.openSelected,t.visible,c,l]),e.useImperativeHandle(r,()=>({...o.current,...i.current,setSavaLoading:e=>{l({saveLoading:e})}})),n.jsxs(xL,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:t.width,visible:t.visible,title:t.title||"弹窗",onCancel:()=>{t.onCancel&&t.onCancel()},...t.modalConfig,children:[t.topExtra,t.searchFormList?n.jsx(sF,{ref:o,rowGridConfig:{gutter:10},colGirdConfig:s,list:(m=t.searchFormList,m?m.map(e=>("Select"===e.componentName&&e.selectData&&e.selectData.length&&(e.selectData.some(e=>"全部"===e.label)||(e.selectData=[{label:"全部",value:""},...e.selectData])),e)):[]),formConfig:t.formConfig,render:()=>t.searchFormList&&t.searchFormList.length?n.jsxs(OO,{size:10,children:[n.jsx(zu,{type:"primary",onClick:()=>{d()},children:"查询"}),n.jsx(zu,{className:"btn-reset",onClick:p,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(Uk,{...t.rowProps,children:[t.leftSlot?n.jsx(Wk,{...t.leftSlot.colProps,children:t.leftSlot.jsx}):null,n.jsx(Wk,{span:24,...t.colProps,children:n.jsxs(Uk,{gutter:10,children:[n.jsx(Wk,{span:t.openSelected&&t.openSelected.visible?16:24,children:n.jsx(tW,{ref:i,extra:{rowType:t.tableColumnsList.rowType,apiMethod:t.apiMethod,columns:t.tableColumnsList.list,data:t.data,onSelect:(e,n)=>{((e,n)=>{l({selectedRows:n.map(n=>{let r={};const o=e.find(e=>e[c]===n);if(r[c]=n,t.openSelected&&t.openSelected.fileName&&(r[t.openSelected.fileName]=n),o&&(r=o),t.openSelected){const e=t.openSelected.fileName,o=t.openSelected.defaultValues;if(e&&o){const t=o.find(e=>e[c]===n);t&&(r[e]=t[e])}}return r})})})(e,n),t.onSelect&&t.onSelect(e,n)},virtual:t.virtual,getTableSuccessData:t.getTableSuccessData,scroll:{x:t.virtual?.open?void 0:"max-content"},tableConfig:t.tableColumnsList.tableConfig}})}),t.openSelected&&t.openSelected.visible?n.jsx(Wk,{span:8,children:n.jsx(k$,{title:"已选列表",size:"small",styles:{body:{height:t.openSelected.height||330,overflowY:"auto"}},extra:n.jsxs(n.Fragment,{children:[t.rightExport&&t.rightExport.open?n.jsx(rW,{style:{marginRight:"8px"},onClick:()=>(()=>{const e=t.rightExport?.fileName,n=t.rightExport?.headres,r=a.selectedRows;if(r&&r.length&&n&&n.length){let t="";const o=n.map(e=>e.title);t+=o.join(",")+"\n",r.forEach(e=>{const r=n.map(t=>{const n=void 0!==e[t.key]?e[t.key]:"";return`"${String(n).replace(/"/g,'""')}"`});t+=r.join(",")+"\n"});const i=new Blob(["\ufeff"+t],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a"),l=URL.createObjectURL(i);a.setAttribute("href",l),a.setAttribute("download",`${e}.csv`),a.style.visibility="hidden",document.body.appendChild(a),a.click(),document.body.removeChild(a)}else AN.warning("请选择导出数据",1.5)})(),children:"导出"}):null,n.jsx(rW,{onClick:()=>u("all"),children:"全部移除"})]}),children:a.selectedRows.length?a.selectedRows.map(e=>{const r=e[c],o=e[t.openSelected?.fileName];return n.jsxs(Uk,{gutter:12,children:[n.jsx(Wk,{span:11,title:o,children:n.jsx(oW,{ellipsis:!0,children:o})}),n.jsx(Wk,{span:8,title:r,children:n.jsx(oW,{ellipsis:!0,children:r})}),n.jsx(Wk,{span:5,children:n.jsx(rW,{onClick:()=>u("odd",e),children:"移除"})})]},r)}):n.jsx(nW,{outerHeight:200})})}):null]})}),t.rightSlot?n.jsx(Wk,{...t.rightSlot.colProps,children:t.rightSlot.jsx}):null]}),n.jsx(Uk,{className:"from-table-modal-foot",justify:"center",children:n.jsx(Wk,{children:n.jsxs(OO,{size:20,children:[t.onCancel?n.jsx(zu,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"}):null,t.onConfirm?n.jsx(zu,{type:"primary",loading:a.saveLoading,onClick:()=>{let e=i.current?.getSelectRowsArray()||[],n=[];const r=i.current?.getStaticDataList()||[];t.onConfirm&&(i.current&&(n=i.current.getSelectIds()),l({saveLoading:!0}),t.onConfirm(e,n,r).then(e=>{l({saveLoading:!1}),e&&setTimeout(()=>{t.onCancel&&t.onCancel()},100)}).catch(e=>{l({saveLoading:!1}),AN.warning(e,1.5)}))},children:"确定"}):null]})})})]});var m});const aW=e.createContext({});function lW(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=lW(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}var cW={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};const sW=Math.round;function uW(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const dW=(e,t,n)=>0===n?e:e/100;function fW(e,t){const n=t||255;return e>n?n:e<0?0:e}class pW{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(r("rgb"))this.fromRgbString(n);else if(r("hsl"))this.fromHslString(n);else if(r("hsv")||r("hsb"))this.fromHsvString(n);else{const o=cW[n.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(e instanceof pW)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=fW(e.r),this.g=fW(e.g),this.b=fW(e.b),this.a="number"==typeof e.a?fW(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:sW(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:sW(o("r")),g:sW(o("g")),b:sW(o("b")),a:sW(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>sW((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=sW(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=sW(100*this.getSaturation()),n=sW(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}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 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=fW(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=sW(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,i=s):l>=1&&l<2?(o=s,i=c):l>=2&&l<3?(i=c,a=s):l>=3&&l<4?(i=s,a=c):l>=4&&l<5?(o=s,a=c):l>=5&&l<6&&(o=c,a=s);const u=n-c/2;this.r=sW(255*(o+u)),this.g=sW(255*(i+u)),this.b=sW(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=sW(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,c=sW(n*(1-t)*255),s=sW(n*(1-t*l)*255),u=sW(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=uW(e,dW);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=uW(e,dW);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=uW(e,(e,t)=>t.includes("%")?sW(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const mW=[{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 gW(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,r<0?r+=360:r>=360&&(r-=360),r}function hW(e,t,n){if(0===e.h&&0===e.s)return e.s;let r;return r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,r>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100}function vW(e,t,n){let r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}const bW=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];bW.primary=bW[5];const yW="data-rc-order",xW="data-rc-priority",wW=new Map;function CW({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function SW(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function $W(e){return Array.from((wW.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function kW(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:n,prepend:r,priority:o=0}=t,i=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),a="prependQueue"===i,l=document.createElement("style");l.setAttribute(yW,i),a&&o&&l.setAttribute(xW,`${o}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const c=SW(t),{firstChild:s}=c;if(r){if(a){const e=(t.styles||$W(c)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(yW)))return!1;const t=Number(e.getAttribute(xW)||0);return o>=t});if(e.length)return c.insertBefore(l,e[e.length-1].nextSibling),l}c.insertBefore(l,s)}else c.appendChild(l);return l}function EW(e,t,n={}){const r=SW(n),o=$W(r),i={...n,styles:o};!function(e,t){const n=wW.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=kW("",t),{parentNode:r}=n;wW.set(e,r),e.removeChild(n)}}(r,i);const a=function(e,t={}){let{styles:n}=t;return n||=$W(SW(t)),n.find(n=>n.getAttribute(CW(t))===e)}(t,i);if(a)return i.csp?.nonce&&a.nonce!==i.csp?.nonce&&(a.nonce=i.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const l=kW(e,i);return l.setAttribute(CW(i),t),l}function OW(e){return e?.getRootNode?.()}function IW(e){return function(e){return OW(e)instanceof ShadowRoot}(e)?OW(e):null}let NW={};function RW(e,t){}function jW(e,t){}function MW(e,t,n){t||NW[n]||(e(!1,n),NW[n]=!0)}function PW(e,t){MW(RW,e,t)}function DW(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function TW(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[(o=n,o.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=r;var o;return t},{})}function BW(t,n,r){return r?e.createElement(t.tag,{key:n,...TW(t.attrs),...r},(t.children||[]).map((e,r)=>BW(e,`${n}-${t.tag}-${r}`))):e.createElement(t.tag,{key:n,...TW(t.attrs)},(t.children||[]).map((e,r)=>BW(e,`${n}-${t.tag}-${r}`)))}function LW(e){return function(e,t={}){const n=[],r=new pW(e),o=r.toHsv();for(let e=5;e>0;e-=1){const t=new pW({h:gW(o,e,!0),s:hW(o,e,!0),v:vW(o,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=4;e+=1){const t=new pW({h:gW(o,e),s:hW(o,e),v:vW(o,e)});n.push(t)}return"dark"===t.theme?mW.map(({index:e,amount:r})=>new pW(t.backgroundColor||"#141414").mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}(e)[0]}function zW(e){return e?Array.isArray(e)?e:[e]:[]}PW.preMessage=e=>{},PW.resetWarned=function(){NW={}},PW.noteOnce=function(e,t){MW(jW,e,t)};const FW={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const HW=t=>{const{icon:n,className:r,onClick:o,style:i,primaryColor:a,secondaryColor:c,...s}=t,u=l.useRef(null);let d=FW;if(a&&(d={primaryColor:a,secondaryColor:c||LW(a)}),(t=>{const{csp:n,prefixCls:r,layer:o}=e.useContext(aW);let i="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(i=i.replace(/anticon/g,r)),o&&(i=`@layer ${o} {\n${i}\n}`),e.useEffect(()=>{const e=IW(t.current);EW(i,"@ant-design-icons",{prepend:!o,csp:n,attachTo:e})},[])})(u),function(e,t){PW(e,`[@ant-design/icons] ${t}`)}(DW(n),`icon should be icon definiton, but got ${n}`),!DW(n))return null;let f=n;return f&&"function"==typeof f.icon&&(f={...f,icon:f.icon(d.primaryColor,d.secondaryColor)}),BW(f.icon,`svg-${f.name}`,{className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:u})};function AW(e){const[t,n]=zW(e);return HW.setTwoToneColors({primaryColor:t,secondaryColor:n})}function _W(){return _W=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},_W.apply(this,arguments)}HW.displayName="IconReact",HW.getTwoToneColors=function(){return{...FW}},HW.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){FW.primaryColor=e,FW.secondaryColor=t||LW(e),FW.calculated=!!t},AW(bW.primary);const WW=l.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:i,tabIndex:a,onClick:c,twoToneColor:s,...u}=e,{prefixCls:d="anticon",rootClassName:f}=l.useContext(aW),p=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=lW(e))&&(r&&(r+=" "),r+=t);return r}(f,d,{[`${d}-${r.name}`]:!!r.name,[`${d}-spin`]:!!o||"loading"===r.name},n);let m=a;void 0===m&&c&&(m=-1);const g=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[h,v]=zW(s);return l.createElement("span",_W({role:"img","aria-label":r.name},u,{ref:t,tabIndex:m,onClick:c,className:p}),l.createElement(HW,{icon:r,primaryColor:h,secondaryColor:v,style:g}))});function VW(){return VW=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},VW.apply(this,arguments)}WW.getTwoToneColor=function(){const e=HW.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},WW.setTwoToneColor=AW;const GW=(e,t)=>l.createElement(WW,VW({},e,{ref:t,icon:Fa})),UW=l.forwardRef(GW);
10
- /**![close](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNzk5Ljg2IDE2Ni4zMWMuMDIgMCAuMDQuMDIuMDguMDZsNTcuNjkgNTcuN2MuMDQuMDMuMDUuMDUuMDYuMDhhLjEyLjEyIDAgMDEwIC4wNmMwIC4wMy0uMDIuMDUtLjA2LjA5TDU2OS45MyA1MTJsMjg3LjcgMjg3LjdjLjA0LjA0LjA1LjA2LjA2LjA5YS4xMi4xMiAwIDAxMCAuMDdjMCAuMDItLjAyLjA0LS4wNi4wOGwtNTcuNyA1Ny42OWMtLjAzLjA0LS4wNS4wNS0uMDcuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMyAwLS4wNS0uMDItLjA5LS4wNkw1MTIgNTY5LjkzbC0yODcuNyAyODcuN2MtLjA0LjA0LS4wNi4wNS0uMDkuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMiAwLS4wNC0uMDItLjA4LS4wNmwtNTcuNjktNTcuN2MtLjA0LS4wMy0uMDUtLjA1LS4wNi0uMDdhLjEyLjEyIDAgMDEwLS4wN2MwLS4wMy4wMi0uMDUuMDYtLjA5TDQ1NC4wNyA1MTJsLTI4Ny43LTI4Ny43Yy0uMDQtLjA0LS4wNS0uMDYtLjA2LS4wOWEuMTIuMTIgMCAwMTAtLjA3YzAtLjAyLjAyLS4wNC4wNi0uMDhsNTcuNy01Ny42OWMuMDMtLjA0LjA1LS4wNS4wNy0uMDZhLjEyLjEyIDAgMDEuMDcgMGMuMDMgMCAuMDUuMDIuMDkuMDZMNTEyIDQ1NC4wN2wyODcuNy0yODcuN2MuMDQtLjA0LjA2LS4wNS4wOS0uMDZhLjEyLjEyIDAgMDEuMDcgMHoiIC8+PC9zdmc+) */var XW={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 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 010-12.9l246-178a8 8 0 0112.7 6.5v46.8z"}}]},name:"left-circle",theme:"filled"};function KW(){return KW=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},KW.apply(this,arguments)}const QW=(e,t)=>l.createElement(WW,KW({},e,{ref:t,icon:XW})),YW=l.forwardRef(QW);
11
- /**![left-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xMDQgMzE2LjljMCAxMC4yLTQuOSAxOS45LTEzLjIgMjUuOUw0NTcuNCA1MTJsMTQ1LjQgMTA1LjJjOC4zIDYgMTMuMiAxNS42IDEzLjIgMjUuOVY2OTBjMCA2LjUtNy40IDEwLjMtMTIuNyA2LjVsLTI0Ni0xNzhhNy45NSA3Ljk1IDAgMDEwLTEyLjlsMjQ2LTE3OGE4IDggMCAwMTEyLjcgNi41djQ2Ljh6IiAvPjwvc3ZnPg==) */var qW={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 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z"}}]},name:"right-circle",theme:"filled"};function ZW(){return ZW=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},ZW.apply(this,arguments)}const JW=(e,t)=>l.createElement(WW,ZW({},e,{ref:t,icon:qW})),eV=l.forwardRef(JW);
12
- /**![right-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xNTQuNyA0NTQuNWwtMjQ2IDE3OGMtNS4zIDMuOC0xMi43IDAtMTIuNy02LjV2LTQ2LjljMC0xMC4yIDQuOS0xOS45IDEzLjItMjUuOUw1NjYuNiA1MTIgNDIxLjIgNDA2LjhjLTguMy02LTEzLjItMTUuNi0xMy4yLTI1LjlWMzM0YzAtNi41IDcuNC0xMC4zIDEyLjctNi41bDI0NiAxNzhjNC40IDMuMiA0LjQgOS44IDAgMTN6IiAvPjwvc3ZnPg==) */s(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvUXVpY2tseVByb2Nlc3NGb3Jtcy9pbmRleC5sZXNzIiwiaW5kZXgubGVzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQ0FFSSxnQkNBSixDREZBLDZDQUtJLGVDQUoiLCJmaWxlIjoiaW5kZXgubGVzcyJ9 */");s(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;overflow-x:hidden;overflow-y:auto;padding-right:5px}.form-modal .ant-modal-body .modal-form-height .generate-form.ant-form-horizontal.ant-form .ant-row.ant-form-item{margin-bottom:4px}.form-modal .form-modal-foot{margin-top:20px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvTGF5b3V0Rm9ybU1vZGFsL2luZGV4Lmxlc3MiLCJpbmRleC5sZXNzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRCQUVJLGdCQ0FKLENERkEsK0NBSU0sZ0JBQUEsQ0FFQSxpQkFBQSxDQUNBLGVBQUEsQ0FGQSxpQkNHTixDREljLGtIQUNFLGlCQ0ZoQixDRFhBLDZCQXNCSSxlQ1JKIiwiZmlsZSI6ImluZGV4Lmxlc3MifQ== */");var tV=e.forwardRef((r,o)=>{const i=e.useRef(),[a,l]=f.useSetState({loading:!1,saveLoading:!1,disabled:!1}),c=async()=>{let e=await(i.current?.formSubmit());if(e){if(e.endTime&&e.startTime&&Ly(e.endTime).isBefore(e.startTime))return void AN.warning("生效日期不能大于失效日期",1.5);l({saveLoading:!0});try{let n={};if(e={...e,...r.submitExtraParameters},r.switchTransform)for(let t=0;t<r.switchTransform.length;t++)e[r.switchTransform[t]]?e[r.switchTransform[t]]="1":e[r.switchTransform[t]]="0";if(r.submitRemoveField)for(let t=0;t<r.submitRemoveField.length;t++)e[r.submitRemoveField[t]]&&delete e[r.submitRemoveField[t]];for(let t in e){const n="YYYY-MM-DD HH:mm:ss";Ly(e[t],n,!0).isValid()&&(e[t]=Ly(e[t]).format(n))}if(r.manualParameterChange&&(e=r.manualParameterChange(e)),r.manualVerification&&!r.manualVerification(e))return console.warn("手动验证表单不通过"),void l({saveLoading:!1});if(e=t.omitBy(e,t.isNil),r.submitApi&&e){if(r.id?(e.id=r.id,n=await r.submitApi(e,"put")):n=await r.submitApi(e,"post"),1===n.code){if(r.onConfirm){if(!1===r.onConfirm(n))return}AN.success("操作成功",1.5),r.onCancel&&r.onCancel()}l({saveLoading:!1})}else r.onConfirm&&e&&r.onConfirm(e)}catch(e){l({saveLoading:!1}),console.error(e)}}};return e.useEffect(()=>{!1===r.visible&&l({saveLoading:!1})},[r.visible,l]),e.useEffect(()=>{l({disabled:r.disable})},[r.disable,l]),e.useImperativeHandle(o,()=>({setFormLoading:e=>{l({loading:e})},setFormSaveLoading:e=>{l({saveLoading:e})},setFormFields:e=>{i.current&&i.current.setFormFields(e)},getFormValues:e=>i.current?.getFormValues(e),setFormValues:e=>{i.current&&i.current.setFormValues(e)},excludeFormSubmitValues:async e=>{if(i.current){const t=r.formList.filter(t=>!e?.includes(t.name));return await(i.current?.formSubmit(t.map(e=>e.name)))}return{}},getFormSubmitValues:async e=>i.current?await(i.current?.formSubmit(e)):{}})),n.jsx(xL,{className:`form-modal ${r.className}`,width:r.width?r.width:600,visible:r.visible,title:r.title||"对话框",onCancel:r.onCancel,destroyOnHidden:!0,maskClosable:!1,footer:null,children:n.jsxs(jN,{spinning:a.loading,children:[n.jsxs("div",{className:"modal-form-height",children:[r.topRender?r.topRender:null,n.jsx(sF,{ref:i,formConfig:{labelCol:{span:24},...r.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:r.colGirdConfig||{span:12},list:r.formList}),r.children]}),(()=>{const t=(()=>{const e=[n.jsx(zu,{onClick:()=>r.onCancel&&r.onCancel(),children:"关闭"},-1)];return a.disabled||e.push(n.jsx(zu,{type:"primary",loading:a.saveLoading,onClick:c,children:"提交"},-2)),e})(),o=e=>n.jsx(Uk,{className:"form-modal-foot",justify:"center",children:n.jsx(Wk,{children:n.jsx(OO,{size:20,children:e})})});if(r.footer)return r.footer;if(r.footBtnList){const{model:n,data:i}=r.footBtnList,a=i.map((t,n)=>{const{children:r,...o}=t;return e.createElement(zu,{...o,key:n},r)});if("new"===n)return o(a);if("before"===n)return o([...a,...t]);if("after"===n)return o([...t,...a])}return o(t)})()]})})});s('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{align-items:center;border:2px solid #fff;border-radius:4px;cursor:pointer;display:flex;height:36px;justify-content:center;overflow:hidden;width:36px}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4Lmxlc3MiLCJjb21wb25lbnRzL0ljb25TZWxlY3Rpb25Nb2RhbC9pbmRleC5sZXNzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDhEQ0FRLENBR1Isc0NBR0ksa0JBQUEsQ0FLQSxxQkFBQSxDQUNBLGlCQUFBLENBQ0EsY0FBQSxDQVJBLFlBQUEsQ0FJQSxXQUFBLENBRkEsc0JBQUEsQ0FHQSxlQUFBLENBRkEsVURHSixDQ0dJLHlEQUNFLG9CREROLENDWEEseUNBZ0JJLGVERkoiLCJmaWxlIjoiaW5kZXgubGVzcyJ9 */');s(".button-group{align-items:center;background-color:#f2f2f3;background-image:none;border:0;border-radius:4px;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;display:inline-flex;font-size:12px;height:30px;justify-content:center;line-height:1.15;outline:none;padding:3px 15px;position:relative;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);user-select:none;white-space:nowrap}.button-group:hover{background-color:#e3e5e6}.button-group-large{height:40px}.button-group-small{height:26px}.button-group-primary{background-color:#5860f8;color:#fff}.button-group-primary:hover{background-color:#828cff}.button-group .anticon{font-size:12px;margin-left:5px}.button-group .anticon.anticon-close{align-items:center;background-color:#878d99;border-radius:100%;color:#fff;display:inline-flex;font-size:10px;height:16px;justify-content:center;position:absolute;right:-5px;top:-5px;width:16px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvQnV0dG9uR3JvdXAvaW5kZXgubGVzcyIsImluZGV4Lmxlc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsY0FHRSxrQkFBQSxDQVFBLHdCQUFBLENBQ0EscUJBQUEsQ0FDQSxRQUFBLENBQ0EsaUJBQUEsQ0FFQSxtQ0FBQSxDQUNBLGNBQUEsQ0FmQSxtQkFBQSxDQUtBLGNBQUEsQ0FGQSxXQUFBLENBREEsc0JBQUEsQ0FJQSxnQkFBQSxDQU9BLFlBQUEsQ0FUQSxnQkFBQSxDQUxBLGlCQUFBLENBU0EsaUJBQUEsQ0FVQSx5QkFBQSxDQUZBLGlEQUFBLENBQ0EsZ0JBQUEsQ0FWQSxrQkNVRixDREVFLG9CQUNFLHdCQ0FKLENESUUsb0JBQ0UsV0NGSixDRElFLG9CQUNFLFdDRkosQ0RNRSxzQkFFRSx3QkFBQSxDQURBLFVDSEosQ0RLSSw0QkFDRSx3QkNITixDRG5DQSx1QkE2Q0ksY0FBQSxDQURBLGVDTEosQ0RPSSxxQ0FLRSxrQkFBQSxDQU1BLHdCQUFBLENBQ0Esa0JBQUEsQ0FIQSxVQUFBLENBTEEsbUJBQUEsQ0FNQSxjQUFBLENBRkEsV0FBQSxDQUZBLHNCQUFBLENBTEEsaUJBQUEsQ0FFQSxVQUFBLENBREEsUUFBQSxDQUtBLFVDQU4iLCJmaWxlIjoiaW5kZXgubGVzcyJ9 */");const nV="button-group";var rV=e.forwardRef((t,r)=>{const[o,i]=f.useSetState({type:"checkbox",deleteOpen:!1,data:[]}),a=e=>{let n=nV;return t.buttonClassName&&(n=`${n} ${t.buttonClassName}`),t.size&&(n=`${n} ${nV}-${t.size}`),e.selected&&(n=`${n} ${nV}-primary`),n};return e.useEffect(()=>{if(t.checkType&&i({type:t.checkType}),t.deleteOpen&&i({deleteOpen:t.deleteOpen}),t.data){const e=t.data.map(e=>(void 0===e.selected&&(e.selected=!1),e));i({data:e})}},[t,i]),e.useImperativeHandle(r,()=>({getButtonGroupSelected:()=>o.data.filter(e=>e.selected)})),n.jsx(Uk,{className:t.className,gutter:[10,10],children:o.data.map((e,r)=>n.jsx(Wk,{children:n.jsxs("div",{className:a(e),onClick:()=>((e,n)=>{let r=[];t.deleteOpen||(o.data&&("checkbox"===o.type&&(o.data[n].selected=!e.selected,r=o.data),"radio"===o.type&&(r=o.data.map((t,r)=>{let o=!1;return n===r&&(o=!e.selected),{...t,selected:o}}))),t.onChange&&t.onChange(r),i({data:r}))})(e,r),children:[e.name,o.deleteOpen?n.jsx(UW,{onClick:()=>(e=>{if(o.data){const n=o.data.filter((t,n)=>e!==n);t.onChange&&t.onChange(n),i({data:n})}})(r)}):null]})},r))})});exports.Affix=e=>{let t={...e},r="";return t.targetId&&(r=t.targetId,delete t.targetId),n.jsx(ya,{target:()=>document.getElementById(r||"router-render")||window,...t})},exports.ButtonGroup=rV,exports.Dialog=xL,exports.Empty=nW,exports.GaoDeMap=wL,exports.GenerateForm=sF,exports.GenerateTable=tW,exports.IconSelectionModal=e=>{const[t,r]=f.useSetState({iconModal:{selected:-1,list:["iconmove","iconmap","iconnotice","iconpassword","iconNotvisible1","iconphone","iconpic1","iconpin","iconproduct","iconQRcode1","iconreeor","iconreduce","iconresonserate","iconremind","iconrising1","iconRightarrow","iconrmb1","iconsave","iconscanning","iconseleted","iconsearchcart","iconshare","iconRightbutton","iconsorting","iconsound-Mute","iconsound-filling","iconsuggest","iconsuccess","iconsupplier-features","iconswitch","iconsuspended","iconTop","iconsmile","icontradealert","icontopsales","icontradingvolume","iconupload","iconviewlarger","iconwarning","iconset","iconDaytimemode","iconunlock","iconexchangerate","iconall","iconbussiness-man","iconcomponent","iconcode","iconcopy","icondollar","iconhistory","iconeditor","icondata","icongift","iconintegral","iconnav-list","iconpic","iconNotvisible","iconplay","iconQRcode","iconrmb","iconsimilar-product","iconExportservices","iconsendinquiry","iconcolumn","iconadd-account","iconcolumn1","iconadd","iconadd-cart","iconarrow-right","iconarrow-left","iconall1","iconarrow-up","iconashbin","iconatm","iconbad","iconattachent","iconbrowse","iconcalendar","iconcart-full","iconcalculator","iconcameraswitching","iconcecurity-protection","iconcategory","iconclose","iconcertified-supplier","iconcart-Empty","iconcode1","iconcopy1","iconcoupons","iconconnections","iconcry","iconclock","iconCurrencyConverter","iconcut","icondata1","iconCustomermanagement","icondouble-arro-right","iconcustomization","icondouble-arrow-left","icondiscount","icondownload","icondollar1","icondefault-template","iconeditor1","iconetrical-equipm","iconellipsis","iconemail","iconfalling","iconfilter","iconfolder","iconhelp","icongood","icongift1","iconhot","iconinspection","iconleftbutton","iconleftarrow","iconlink","iconloading","iconphone1"]}}),o={height:34,fontSize:22};return n.jsxs(xL,{className:"icon-selected-modal",width:e.width?e.width:590,visible:e.visible,title:e.title?e.title:"图标选择",onCancel:e.onCancel,destroyOnHidden:!0,maskClosable:!1,footer:null,children:[n.jsx(Uk,{gutter:[10,10],children:t.iconModal.list.map((e,i)=>n.jsx(Wk,{children:n.jsx("div",{className:`avatar-selected ${i===t.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{r(e=>(e.iconModal.selected=i,e))},children:n.jsx("i",{className:`iconfont ${e}`,title:e,style:o})})},i))}),n.jsx(Uk,{className:"icon-selected-foot",justify:"center",children:n.jsx(Wk,{children:n.jsxs(OO,{size:20,children:[n.jsx(zu,{onClick:e.onCancel,children:"关闭"}),n.jsx(zu,{type:"primary",onClick:()=>{const n=t.iconModal.list[t.iconModal.selected];e.onConfirm&&e.onConfirm(n)},children:"确定"})]})})})]})},exports.LayoutFormModal=tV,exports.LayoutTableModal=iW,exports.QuicklyProcessForms=t=>{const r=e.useRef(),o=e.useRef({page:1,pages:1,size:10}),[i,a]=f.useSetState({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=e.useCallback((e,t)=>e.map(e=>{if(t)for(let n of t)e[n]&&(e[n]=Ly(e[n]));return e}),[]),s=e.useCallback(async e=>{if(t.apiMethod)try{let n="";const r=await t.apiMethod(o.current);console.log("getList useCallback",r,"queryPagination.current",o.current);const i=r.data.content;o.current.pages=r.data.pages,"up"===e&&(n=i[i.length-1].id),"down"===e&&(n=i[0].id),a({id:n||t.id,data:i})}catch(e){console.error(e)}},[t,a]),u=e.useMemo(()=>{let e=0;for(let[t,n]of i.data.entries())if(n.id===i.id){e=t;break}return e},[i.data,i.id]),d=e.useCallback(async()=>{if(t.apiMethod){if(1===o.current.page&&0===u)return AN.destroy(),void AN.warning("已经是第一页啦~",1.5);if(u-1<0)return o.current.page=o.current.page-1,s("up"),void(t.onChange&&t.onChange(i.data[u],o.current))}else if(0===u)return AN.destroy(),void AN.warning("已经是第一个啦~",1.5);if(r.current){const e=await r.current.formSubmit();if(e){e.id=i.data[u].id;try{const n=i.data[u-1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,o.current),a(t=>(t.id=n.id,t.data[u]={...t.data[u],...e},t))}catch(e){console.error(e)}}}},[u,s,t,a,i.data]),p=e.useCallback(async()=>{if(t.apiMethod){if(o.current.page===o.current.pages&&u===i.data.length-1)return AN.destroy(),void AN.warning("已经是最后一页啦~",1.5);if(u+1>=i.data.length)return o.current.page=o.current.page+1,s("down"),void(t.onChange&&t.onChange(i.data[u],o.current))}else if(0===i.data.length||u===i.data.length-1)return AN.destroy(),void AN.warning("已经是最后一个啦~",1.5);if(r.current){const e=await r.current.formSubmit();if(e){e.id=i.data[u].id;try{const n=i.data[u+1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,o.current),a(t=>(t.id=n.id,t.data[u]={...t.data[u],...e},t))}catch(e){console.error(e)}}}},[u,s,t,a,i.data]),m=e.useCallback(async e=>{if("PageUp"===e.key&&(d(),e.preventDefault()),"PageDown"===e.key&&(p(),e.preventDefault()),"Enter"===e.key&&r.current){const e=await r.current.formSubmit();e.id=i.data[u].id;try{t.submitApi(e,"put"),AN.success("保存成功",1.5)}catch(e){console.error(e)}}},[u,p,d,t,i.data]),g=e.useCallback(async()=>{if(t.methodParams){let e=["page","pages","size"],n={},r=await t.methodParams;for(let t in o.current)for(let r of e)t===r&&(n[r]=o.current[t]);n={...n,...r},n.page=r.page?r.page.current:1,o.current=n}},[t.methodParams]);return e.useEffect(()=>{t.visible&&setTimeout(()=>{r.current&&r.current.setFormValues(i.data[u])},100)},[u,t.visible,i.data]),e.useEffect(()=>{t.visible&&(t.apiMethod?g().then(()=>{s()}):a({id:t.id,data:c(t.data,t.transformTime)}))},[g,s,t.apiMethod,t.data,t.id,t.transformTime,t.visible,a,c]),e.useEffect(()=>(t.visible?document.addEventListener("keydown",m):document.removeEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}),[m,t.visible]),n.jsx(xL,{className:"quickly-form-modal",width:t.width?t.width:960,visible:t.visible,title:t.title||"快速编辑信息",onCancel:()=>{t.onCancel&&t.onCancel(o.current)},maskClosable:!1,destroyOnHidden:!0,footer:null,children:n.jsxs(Uk,{className:"modal-form-height",gutter:16,align:"middle",wrap:!1,children:[n.jsx(Wk,{flex:"60px",children:n.jsx(Uk,{justify:"center",children:n.jsx(Wk,{children:n.jsx(YW,{className:"circle-filled",style:l,onClick:d})})})}),n.jsx(Wk,{flex:"auto",children:n.jsx(sF,{ref:r,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:t.formList})}),n.jsx(Wk,{flex:"60px",children:n.jsx(Uk,{justify:"center",children:n.jsx(Wk,{children:n.jsx(eV,{className:"circle-filled",style:l,onClick:p})})})})]})})},exports.TreeNode=$L,exports.Upload=CL,exports.VirtualList=r=>{const{vl:o,columns:i,...a}=r,l=e.useRef(o);var c,s;c=o,s=l.current,t.isEqualWith(c,s,(e,n)=>{if(t.isFunction(e)&&t.isFunction(n))return e.toString()===n.toString()})&&(l.current=o);const[u,d]=e.useState(i||[]);e.useEffect(()=>{d(i||[])},[i]);const f=e.useCallback(e=>(t,{size:n})=>{const r=[...u];r[e]={...r[e],width:n.width},d(r)},[u]),p=e.useMemo(()=>u.map((e,t)=>({...e,onHeaderCell:e=>({width:e.width,onResize:f(t)})})),[u,f]),m=e.useMemo(()=>({header:{cell:zF}}),[]),g=e.useCallback(e=>{const{onScroll:t,onReachEnd:n,onListRender:r}=o||{};t&&t();const i=e.currentTarget;n&&i.scrollTop+i.clientHeight>=i.scrollHeight-2&&n(),r&&r({start:0,renderLen:0})},[o]);e.useEffect(()=>{if(!o)return;const e=setTimeout(()=>{const e=document.querySelector(".ant-table-body");e&&o.onScroll&&(e.onscroll=()=>{g({currentTarget:e})})},500);return()=>clearTimeout(e)},[o,g]);let h=o.height;try{h=parseInt(o.height)}catch(e){h=o.height}return n.jsx(oF,{children:n.jsx(UD,{virtual:!0,bordered:!0,components:m,rowKey:"id",pagination:!1,scroll:{y:h,x:void 0},columns:p,...a})})},exports.hooks=f;
1
+ "use strict";require("antd/dist/reset.css");var e=require("react"),t=require("lodash"),n=require("react/jsx-runtime"),r=require("antd"),a=require("react-dom"),o=require("react-draggable"),l=require("dayjs");require("dayjs/locale/zh-cn"),require("dayjs/locale/zh-hk");var i=require("uuid"),c=require("react-resizable"),s=require("react-dnd"),d=require("react-dnd-html5-backend"),u=require("@ant-design/icons");function p(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var h=p(e);var m,f=(m=e.useEffect,(t,n)=>{const r=e.useRef(!1);m(()=>()=>{r.current=!1},[]),m(()=>{if(r.current)return t();r.current=!0},n)});var g={useSetState:(t={})=>{const[n,r]=e.useState(t);return[n,e.useCallback(e=>{r(t=>Object.assign({},t,e instanceof Function?e(t):e))},[])]},useDeepCompareEffect:function(e,n){return h.useEffect(e,function(e){const n=h.useRef(),r=h.useRef(0);return t.isEqual(e,n.current)||(n.current=e,r.current+=1),[r.current]}(n))},useUpdateEffect:f,useMemoizedFn:f,useMount:t=>{e.useEffect(()=>{t()},[])},useUnmount:t=>{const n=e.useRef(t);e.useEffect(()=>()=>{n.current()},[])},useMethods:function(t){const{current:n}=e.useRef({methods:t,func:void 0});if(n.methods=t,!n.func){const e=Object.create(null);Object.keys(t).forEach(t=>{e[t]=(...e)=>n.methods[t].call(n.methods,...e)}),n.func=e}return n.func},useToggle:function(t=!1,n){const[r,a]=e.useState(t);return[r,e.useMemo(()=>{const e=void 0===n?!t:n;return{toggle:()=>a(n=>n===t?e:t),set:e=>a(e),setLeft:()=>a(t),setRight:()=>a(e)}},[])]},useLatest:function(t){const n=e.useRef(t);return n.current=t,n}};const b=e=>Object.prototype.toString.call(e.data)===`[object ${e.type}]`,C=(e,t)=>{for(let n of e){let e=n.value;if("number"==typeof t&&(e=parseInt(n.value)),e===t)return n.label}return t};l.locale("zh-cn");const y=e=>{switch(e){case"zh-CN":l.locale("zh-cn");break;case"zh-HK":l.locale("zh-hk");break;case"en":l.locale("en")}},x=t=>{const a=e.useContext(r.ConfigProvider.ConfigContext);return e.useEffect(()=>{a?.locale?.locale?(e=>{switch(e){case"zh_CN":default:l.locale("zh-cn");break;case"zh_HK":l.locale("zh-hk");break;case"en_US":l.locale("en")}})(a.locale.locale):y((e=>{if(!e)return null;e=e.toString();const t=window.localStorage.getItem(e);try{return JSON.parse(t)}catch(e){return t}})("i18nextLng"))},[a?.locale]),e.useEffect(()=>{const e=e=>{y(e?.language)};return window.addEventListener("web_pack:language",e),()=>window.removeEventListener("web_pack:language",e)},[]),n.jsx(n.Fragment,{children:t.children})};let w=1;class S extends e.Component{static show(e){let t,r=document.body,o=document.createElement("div"),l=e&&e.onOk,i=e&&e.onCancel;return o.id="dialog-"+w++,o.style.cssText="position:absolute;top:0;left:0;",r.appendChild(o),(e=e||{}).visible=!0,e.getContainer=!1,e.destroyOnClose=!0,e.onOk=()=>{l&&l(),r.removeChild(o)},e.onCancel=()=>{i&&i(),r.removeChild(o)},a.render(n.jsx(S,{...e,ref:e=>t=e}),o),t}static confirm(e,t,n){return S.show({title:e,children:t,onOk:n})}draggleRef;constructor(e){super(e),this.state={disabled:!0,bounds:{left:0,top:0,bottom:0,right:0}}}onStart(e,t){const{clientWidth:n,clientHeight:r}=window.document.documentElement,a=this.draggleRef?.current?.getBoundingClientRect();this.setState({bounds:{left:-a?.left+t?.x,right:n-(a?.right-t?.x),top:-a?.top+t?.y,bottom:r-(a?.bottom-t?.y)}})}render(){let e={...this.props},t=this.state,a=e.visible;return delete e.visible,n.jsx(x,{children:n.jsx(r.Modal,{className:"dialog",maskClosable:!1,...e,open:a,title:n.jsx("div",{style:{cursor:"move"},onMouseOver:()=>{this.setState({disabled:!1})},onMouseOut:()=>{this.setState({disabled:!0})},onFocus:()=>{},onBlur:()=>{},children:e.title}),modalRender:e=>n.jsx(o,{disabled:t.disabled,bounds:t.bounds,onStart:(e,t)=>this.onStart(e,t),children:n.jsx("div",{ref:this.draggleRef,children:e})}),children:e.children})})}close(e){let t=this.props;e?t.onOk&&t.onOk():t.onCancel&&t.onCancel()}}var v=e.forwardRef((t,r)=>{const a=e.useRef(null),o=e.useRef(null),l=e.useRef(null),c=e.useMemo(()=>i.v4(),[]),s=e.useMemo(()=>i.v4(),[]),d=e=>{let t=0,n=0;const r=new BMap.Convertor,a=[];a.push(e.point),"baidu"===e.target&&(t=3,n=5),"google"===e.target&&(t=5,n=3),r.translate(a,t,n,t=>{0===t.status&&e.callback&&e.callback(t.points[0])})},u=e=>{a.current.addOverlay(new BMap.Marker(e,{icon:new BMap.Icon("https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",new BMap.Size(20,32))}))},p=e.useCallback((e,t)=>{if(a.current){const n=new BMap.Point(e[0],e[1]);u(n),a.current.centerAndZoom(n,t||18)}else o.current={location:e,zoom:t}},[]),h=e.useCallback(e=>{console.log("转换为google坐标前:",e.location);const n=new BMap.Point(e.location.lng,e.location.lat);d({target:"google",point:n,callback:n=>{e.location.lng=n.lng,e.location.lat=n.lat,console.log("转换为google坐标后:",e.location),t.onChange&&t.onChange(e)}})},[t]),m=e.useCallback(e=>{a.current.clearOverlays();const t=new BMap.LocalSearch(a.current,{onSearchComplete:()=>{let e=t.getResults().getPoi(0);if(e){const t=e.point;p([t.lng,t.lat]),h({...e,location:{lng:t.lng,lat:t.lat}})}}});t.search(e)},[p,h]);return e.useEffect(()=>{const e=()=>{a.current=new BMap.Map(c,{enableMapClick:!1}),a.current.enableScrollWheelZoom(!0);new BMap.Autocomplete({input:s,location:a.current}).addEventListener("onconfirm",e=>{const{province:t,city:n,district:r,street:a,business:o}=e.item.value;m(t+n+r+a+o)}),a.current.addEventListener("click",e=>{a.current.clearOverlays(),u(new BMap.Point(e.point.lng,e.point.lat)),h({location:{lng:e.point.lng,lat:e.point.lat}})}),l.current&&l.current(),o.current?p(o.current.location,o.current.zoom):p([116.404,39.915])};if(document.getElementById("lbs"))e();else{window.onMapInit=function(){e()};let t="https://api.map.baidu.com/api?v=3.0&ak=1IzhwXLOwlEnencZUoSnMkSkMVADfT3s&callback=onMapInit",n=document.createElement("script");n.src=t,n.id="lbs",document.head.appendChild(n)}},[c]),e.useImperativeHandle(r,()=>({setMapCenter:(e,t)=>{console.log("转换为百度坐标前:",{lng:e[0],lat:e[1]});const n=()=>{const n=new BMap.Point(e[0],e[1]);d({target:"baidu",point:n,callback:e=>{console.log("转换为百度坐标后:",{lng:e.lng,lat:e.lat}),p([e.lng,e.lat],t)}})};try{n()}catch(e){console.log("error",e),l.current=n}}})),n.jsxs("div",{className:`gaoDe-container ${t.className}`,children:[n.jsx("div",{id:c,style:t.style?t.style:{width:"100%",height:365}}),n.jsx("div",{className:"input-item-prepend",children:n.jsxs("span",{className:"input-group-wrapper",children:[n.jsx("span",{className:"input-group-addon",children:"关键字"}),n.jsx("span",{className:"input-affix-wrapper",children:n.jsx("input",{id:s,className:"ant-input",type:"text",placeholder:"请输入关键字"})})]})})]})});var k=e.forwardRef(function(t,a){const[o,l]=e.useState([]);return e.useImperativeHandle(a,()=>({setFileList:e=>{l(e)}})),n.jsx(r.Upload,{onChange:e=>{const{response:a}=e.file;let o=a&&parseInt(a.code);if(r.message.destroy(),console.log("上传的文件对象:",e),("string"==typeof a||"object"==typeof a&&500===a.status)&&(o=-1),console.log("fileObject",e),"removed"!==e.file.status&&(-1===o||400===o||404===o||500===o)){const t=a.msg||"上传失败";e.file.status="error",e.file.response=t,r.message.warning({content:n.jsx("span",{dangerouslySetInnerHTML:{__html:t}}),duration:1.5})}"done"===e.file.status&&r.message.success("上传成功",1.5),l(e.fileList),"done"===e.file.status&&t.uploadSuccess&&t.uploadSuccess(e.fileList.filter(e=>"done"===e.status))},fileList:o,onRemove:e=>{l(n=>(n&&(n=n.filter(t=>t.uid!==e.uid),t.uploadSuccess&&t.uploadSuccess(n.filter(e=>"done"===e.status))),n))},...t,beforeUpload:(e,n)=>!t.beforeUpload||(t.beforeUpload(e,n)||r.Upload.LIST_IGNORE),children:t.children})});const{Search:j}=r.Input;var R=e.forwardRef((a,o)=>{const[l,i]=g.useSetState({loading:!1,searchOpen:!1,searchValue:"",treeList:[],draggableOpen:!1,processOpen:!1,checkedOpen:!1,firstLevelCollection:[],expandedKeys:[],autoExpandParent:!1,selectNode:[],selectCurrent:[],checkedNode:[],checkedCurrent:[]}),c=e.useCallback(e=>{const t=[],n=e=>{for(let r=0;r<e.length;r++){const a=e[r];t.push(e[r]),a.children&&n(a.children)}};n(e),i({firstLevelCollection:t})},[i]),s=e.useCallback((e,n)=>{t.isArray(e)&&(i({selectNode:e.map(String)}),a.onSelect&&a.onSelect(e.map(String),n))},[a,i]),d=e.useCallback(e=>{i({autoExpandParent:!1,expandedKeys:e.map(String)})},[i]),u=e.useCallback((e,t)=>{let n;for(let r=0;r<t.length;r++){const a=t[r];a.children&&(a.children.some(t=>t.key===e)?n=a.key:u(e,a.children)&&(n=u(e,a.children)))}return n},[]),p=e.useCallback(e=>{const{value:t}=e.target,n=l.firstLevelCollection.map(e=>e.title.indexOf(t)>-1?u(e.key,l.treeList):null).filter((e,t,n)=>e&&n.indexOf(e)===t).map(String);i({searchValue:t,expandedKeys:n.map(String),autoExpandParent:!0})},[u,i,l.firstLevelCollection,l.treeList]),h=e.useCallback(e=>{let t=[];Array.isArray(e)?t=e.map(String):e&&Array.isArray(e.checked)&&(t=e.checked.map(String)),i({checkedNode:t.map(String)})},[i]),m=e.useCallback(e=>e.map(e=>{const t=e.title,o=t.indexOf(l.searchValue),i=t.substr(0,o),c=t.substr(o+l.searchValue.length),s=a.processOpen&&!e.processOpen&&!e.disabled?n.jsx(r.Col,{className:"tree-handle-box",children:a.customAction&&a.customAction(e)}):null,d=o>-1?n.jsxs(r.Row,{justify:"space-between",align:"middle",children:[n.jsxs(r.Col,{children:[i,n.jsx("span",{className:"text-error",children:l.searchValue}),c]}),s]}):n.jsxs(r.Row,{justify:"space-between",align:"middle",children:[n.jsx(r.Col,{children:e.title}),s]});return e.children?{...e,title:d,children:m(e.children)}:{...e,title:d}}),[a,l.searchValue]);return e.useEffect(()=>{const e=e=>{let t=[];const n=e=>{for(let r of e)l.checkedNode.some(e=>e===r.key)&&t.push(r),r.children&&n(r.children)};return n(e),t};i(t=>({...t,checkedCurrent:e(l.treeList),expandedKeys:t.expandedKeys?t.expandedKeys.map(String):[]}))},[i,l.checkedNode,l.treeList]),e.useEffect(()=>{const e=e=>{let t=[];const n=e=>{for(let r of e)l.selectNode.some(e=>e===r.key)&&t.push(r),r.children&&n(r.children)};return n(e),t};i(t=>({...t,selectCurrent:e(l.treeList),expandedKeys:t.expandedKeys?t.expandedKeys.map(String):[]}))},[i,l.selectNode,l.treeList]),e.useEffect(()=>{t.isArray(a.data)&&(i({treeList:a.data}),c(a.data))},[c,a.data,i]),e.useEffect(()=>{let e={};a.searchOpen&&(e.searchOpen=a.searchOpen),a.draggableOpen&&(e.draggableOpen=a.draggableOpen),a.processOpen&&(e.processOpen=a.processOpen),a.checkedOpen&&(e.checkedOpen=a.checkedOpen),Object.keys(e).length&&(e.expandedKeys&&(e.expandedKeys=e.expandedKeys.map(String)),i(e))},[a.checkedOpen,a.draggableOpen,a.processOpen,a.searchOpen,i]),e.useImperativeHandle(o,()=>({setLoading:e=>{i({loading:e})},getSelectNode:()=>l.selectNode,getSelectCurrent:()=>l.selectCurrent,getCheckedNode:()=>l.checkedNode,getCheckedCurrent:()=>l.checkedCurrent,setSelectNode:e=>{i({selectNode:e})},setCheckedNode:e=>{i({checkedNode:e})}})),n.jsx("div",{className:"tree-wrap",children:n.jsxs(r.Spin,{spinning:l.loading,children:[l.searchOpen?n.jsx(j,{className:"tree-search",placeholder:"输入名称搜索",onChange:p}):null,l.treeList.length?n.jsx(r.Tree,{blockNode:!0,height:500,showLine:{showLeafIcon:!1},checkable:l.checkedOpen,treeData:m(l.treeList),expandedKeys:l.expandedKeys.map(String),selectedKeys:l.selectNode.map(String),checkedKeys:l.checkedNode.map(String),autoExpandParent:l.autoExpandParent,onSelect:(e,t)=>s(e.map(String),t),onExpand:e=>d(e.map(String)),onCheck:e=>h(Array.isArray(e)?e.map(String):{checked:e.checked.map(String),halfChecked:e.halfChecked.map(String)}),draggable:l.draggableOpen,onDrop:e=>{const t=e.node.key,n=e.dragNode.key,o=e.node.pos.split("-"),c=e.dropPosition-Number(o[o.length-1]),s=(e,t,n)=>{for(let r=0;r<e.length;r++){if(e[r].key===t)return n(e[r],r,e);e[r].children&&s(e[r].children,t,n)}};if(a.onVerificationDropCallBack&&a.onVerificationDropCallBack(e,l.treeList))return;if(e.dragNode.noDrag)return void r.message.warning("此节点不支持修改",1.5);const d=[...l.treeList];let u={title:"",key:""};if(s(d,n,(e,t,n)=>{n.splice(t,1),u=e}),e.dropToGap)if((e.node.children||[]).length>0&&e.node.expanded&&1===c)s(d,t,e=>{e.children=e.children||[],e.children.unshift(u)});else{let e=[],n=0;s(d,t,(t,r,a)=>{e=a,n=r}),-1===c?e.splice(n,0,u):e.splice(n+1,0,u)}else s(d,t,e=>{e.children=e.children||[],e.children.push(u)});a.onDropCallBack&&a.onDropCallBack(e,d),i({treeList:d})},onDragEnter:e=>{i({expandedKeys:e.expandedKeys.map(String)})},...a.treeConfig}):n.jsx(r.Empty,{})]})})});const{Option:N}=r.Select,{RangePicker:D}=r.DatePicker,{RangePicker:E}=r.TimePicker;var O=e.forwardRef(function(a,o){const[c]=r.Form.useForm();let{className:s,formConfig:d,rowGridConfig:u,colGirdConfig:p,render:h}=a;const m=e.useRef({}),f=e.useRef({}),C=e.useRef({}),[y,w]=g.useSetState({update:!1,remoteFetching:!1,remoteData:{},treeSelectData:{},treeSelectFlattenData:{},selectMultiple:{}});let S=e.useMemo(()=>a.list?[...a.list]:[],[a.list]);const v=e.useMemo(()=>i.v4(),[]),k=e.useCallback((e,t)=>{const n=t.remoteConfig,r=t.name;let a=m.current[r];n&&n.remoteApi&&(w(e=>(e.remoteFetching=!0,m.current[r]=[],e.remoteData[r]=[],e)),n.remoteApi(e).then(e=>{setTimeout(()=>{void 0===a&&(m.current[r]=[]),r&&w(t=>(t.remoteFetching=!1,m.current[r]=e,t.remoteData[r]=e,console.log("remoteRef.curren",m.current),console.log("prev.remoteData",t.remoteData),t))},100)}).catch(()=>{w(e=>(e.remoteFetching=!1,m.current[r]=[],e.remoteData[r]=[],e))}))},[w]),j=e.useCallback((e,t)=>{const n=e.treeSelectConfig;n&&n.data&&n.data.api(t).then(t=>{const r=e.name;if(r){C.current[r]=[];let e=[],a=[];const o=(e,t)=>{for(let[r,l]of e.entries()){const e=n.data?.children||"children";t[r]={},t[r].title=l[n.data?.title],t[r].value=l[n.data?.value],t[r].key=t[r].value,a.push(l),Array.isArray(l[e])&&(t[r].children=[],o(l[e],t[r].children))}};o(t,e),w(t=>(t.treeSelectData[r]=e,t.treeSelectFlattenData[r]=a,t))}})},[w]),R=e.useCallback(async(e,t)=>{if(t){const n=t[t.length-1];let r=[];if(!e.regionSelectionConfig?.selectLoad)return;n.loading=!0,r=await(e.regionSelectionConfig?.selectLoad(n.id)),n.loading=!1,r.length?n.children=r:n.isLeaf=!0,w({update:!y.update})}},[w,y.update]),O=e.useCallback(()=>{const a=(e,t)=>{w(n=>(e.name&&(n.selectMultiple[e.name]=t),n))};if(!S)return;const o=e=>{const{inputMode:t,...a}=e.inputConfig||{};return n.jsx(r.Input,{disabled:e.disabled,type:t||"text",maxLength:e.maxLength,placeholder:e.placeholder||`请输入${e.label}`,onChange:e.inputChange,onPressEnter:e.inputEnter,...a})},l=e=>n.jsx(r.Select,{allowClear:!0,disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:e.selectChange,...e.selectConfig,children:e.selectData?e.selectData.map((e,t)=>n.jsx(N,{value:e.value,children:e.label},`${e.value}-${t}`)):null}),i=e=>{const t=e.selectData||[];return n.jsx(r.Select,{mode:"multiple",allowClear:!0,disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:n=>{a(e,n.length===t.length),e.multipleChange&&e.multipleChange(n)},filterOption:(e,t)=>!!t&&(t.children??"").toLowerCase().includes(e.toLowerCase()),popupRender:t=>((e,t)=>{const o=t.selectData||[];return n.jsxs("div",{className:"multiple-checkbox",children:[n.jsx(r.Checkbox,{checked:t.name?y.selectMultiple[t.name]:void 0,onChange:e=>{const n={};e.target.checked?t.name&&(n[t.name]=o.map(e=>e.value)):t.name&&(n[t.name]=[]),a(t,e.target.checked),c.setFieldsValue(n),t.multipleChange&&t.multipleChange(n[t.name||""])},children:"全选"}),e]})})(t,e),maxTagPlaceholder:e=>{const t=e?.map(e=>e.label)?.join("、")||"";return n.jsxs(r.Tooltip,{title:t,placement:"top",children:["+",e?.length]})},...e.selectConfig,children:t.map((e,t)=>n.jsx(N,{value:e.value,children:e.label},`${e.value}-${t}`))})},s=e=>{const a=e.remoteConfig,o=a&&a.remoteMode,l=a&&a.allowClear,i=a&&a.showSearch,c=e.name||"";return!1!==i&&c&&(f.current[c]||(f.current[c]=t.debounce(t=>k(t,e),300))),n.jsx(r.Select,{mode:o||void 0,disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,notFoundContent:y.remoteFetching?n.jsx(r.Spin,{size:"small"}):n.jsx(r.Empty,{style:{marginTop:8,marginBottom:8},image:r.Empty.PRESENTED_IMAGE_SIMPLE}),filterOption:!1,allowClear:!1!==l,showSearch:!1!==i,onFocus:()=>k(void 0,e),onSearch:!1===i?void 0:f.current[c],onChange:e.remoteSearchChange,...e.selectConfig,children:e.name&&y.remoteData[e.name]?y.remoteData[e.name].map((e,t)=>n.jsx(N,{value:e.value,children:e.label},`${e.value}-${t}`)):null})},d=e=>n.jsx(r.DatePicker,{disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:e.datePickerChange,...e.datePickerConfig}),u=e=>n.jsx(r.TimePicker,{disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:e.timePickerChange,...e.timePickerConfig}),h=e=>"Input"===e.componentName?o(e):"Select"===e.componentName?l(e):"DatePicker"===e.componentName?d(e):"TimePicker"===e.componentName?u(e):"RemoteSearch"===e.componentName?s(e):null;return S.map((a,m)=>{let f=null;switch(a.selectData&&a.selectIsHideAll&&(a.selectData=a.selectData.filter(e=>!a.selectIsHideAll||"全部"!==e.label&&""!==e.value)),a.componentName){case"Input":f=o(a);break;case"InputNumber":f=(e=>{const{alignRight:t,...a}=e.inputNumberConfig||{};return n.jsx(r.InputNumber,{disabled:e.disabled,style:{width:"100%"},placeholder:e.placeholder||`请输入${e.label}`,onChange:e.inputNumberChange,className:t?"hlyc-web-com-align-right":"",...a})})(a);break;case"HideInput":f=(e=>n.jsx(r.Input,{style:{display:"none"},maxLength:e.maxLength,disabled:e.disabled,type:"text",placeholder:e.placeholder||`请输入${e.label}`,onChange:e.inputChange,onPressEnter:e.inputEnter}))(a);break;case"TextArea":f=(e=>n.jsx(r.Input.TextArea,{rows:e.rows,disabled:e.disabled,maxLength:e.maxLength,placeholder:e.placeholder||`请输入${e.label}`,onChange:e.textAreaChange}))(a);break;case"AutoComplete":f=(e=>n.jsx(r.Select,{allowClear:!0,showSearch:!0,disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,optionFilterProp:"children",filterOption:(e,t)=>!!t&&(t.children??"").toLowerCase().includes(e.toLowerCase()),onChange:e.autoCompleteChange,...e.selectConfig,children:e.selectData?e.selectData.map((e,t)=>n.jsx(N,{value:e.value,children:e.label},`${e.value}-${t}`)):null}))(a);break;case"InputAutoComplete":f=(e=>n.jsx(r.AutoComplete,{filterOption:(e,t)=>(t.value||"").toUpperCase().includes(e.toUpperCase()),disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:e.inputAutoCompleteChange,...e.inputAutoCompleteConfig}))(a);break;case"Select":f=l(a);break;case"Multiple":f=i(a);break;case"MultipleTag":f=(e=>n.jsx(r.Select,{mode:"tags",allowClear:!0,disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,onChange:e.multipleChange,...e.selectConfig,children:e.selectData?e.selectData.map((e,t)=>n.jsx(N,{value:e.value,children:e.label},`${e.value}-${t}`)):null}))(a);break;case"RemoteSearch":f=s(a);break;case"DatePicker":f=d(a);break;case"RangePicker":f=(e=>n.jsx(D,{disabled:e.disabled,placeholder:e.rangePickerPlaceholder,onChange:e.rangePickerChange,...e.rangePickerConfig}))(a);break;case"TimeRangePicker":f=(e=>n.jsx(E,{disabled:e.disabled,placeholder:e.timeRangePickerPlaceholder,onChange:e.timeRangePickerChange,...e.timeRangePickerConfig}))(a);break;case"TimePicker":f=u(a);break;case"Switch":f=(e=>n.jsx(r.Switch,{defaultChecked:!1,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:e.disabled,onChange:e.switchChange}))(a);break;case"Radio":f=(e=>n.jsx(r.Radio.Group,{onChange:e.radioChange,children:e.selectData?e.selectData.map((t,a)=>n.jsx(r.Radio,{disabled:e.disabled,value:t.value,children:t.label},`${t.value}-${a}`)):null}))(a);break;case"Checkbox":f=(e=>n.jsx(r.Checkbox.Group,{onChange:e.checkboxChange,children:e.selectData?e.selectData.map((t,a)=>n.jsx(r.Checkbox,{disabled:e.disabled,value:t.value,children:t.label},`${t.value}-${a}`)):null}))(a);break;case"TreeSelect":f=((e,t)=>{const a=e.name;return n.jsx(r.TreeSelect,{disabled:e.disabled,style:{width:"100%"},styles:{root:{maxHeight:400,overflow:"auto"}},treeData:y.treeSelectData[a],placeholder:e.placeholder||`请选择${e.label}`,onChange:n=>{if(e.treeSelectConfig&&e.treeSelectConfig.data){const r=e.treeSelectConfig.data,o=r.onChange,l=y.treeSelectFlattenData[a],i=Object.prototype.toString.call(n);let s=[],d={...e};if("[object String]"===i&&(s=l.filter(e=>e[r.value]===n)),"[object Array]"===i&&Array.isArray(n))for(let e=l.length;e--;)n.some(t=>t===l[e][r.value])&&s.push(l[e]);if(o){const n=o(s,{...e});n&&(d=n),d&&(S[t]=d)}c.setFieldsValue({[d.name]:n}),j(d)}},allowClear:!0,treeDefaultExpandAll:!0,...e.treeSelectConfig?.extra})})(a,m);break;case"Union":let e,t=0;a.unionConfig&&(t=a.unionConfig.unionItems.length,e=100/t+"%"),f=n.jsx(r.Row,{className:"form-item-divide",gutter:16,children:a.unionConfig?.unionItems.map((o,l)=>n.jsxs(r.Col,{style:{width:e},children:[n.jsx(r.Form.Item,{name:o.name,rules:o.rules,noStyle:!0,children:h(o)}),l<t-1?n.jsx("span",{className:"divide",children:a.unionConfig&&(a.unionConfig.divide?a.unionConfig.divide:"~")}):null]},l))});break;case"RegionSelection":f=(e=>{const t=e.regionSelectionConfig;return n.jsx(r.Cascader,{disabled:e.disabled,placeholder:e.placeholder||`请选择${e.label}`,options:t&&t.loadData||[],loadData:t=>R(e,t),changeOnSelect:!0,onChange:e.cascaderChange})})(a);break;case"Rate":f=(e=>n.jsx(r.Rate,{disabled:e.disabled,onChange:e.rateChange,...e.rateConfig}))(a);break;default:return null}let g,b={...a};return b.label=(e=>{let t=e.label;return"Union"===e.componentName&&e.rules&&(t=n.jsxs("span",{children:[n.jsx("i",{style:{marginRight:4,color:"#ff4d4f",fontStyle:"normal",fontFamily:"SimSun, sans-serif"},children:"*"}),e.label]})),t})(b),b=t.omit(b,["colProps","componentName","selectData","inputConfig","inputNumberConfig","datePickerConfig","rangePickerConfig","timeRangePickerConfig","timePickerConfig","inputAutoCompleteConfig","unionConfig","remoteConfig","selectConfig","regionSelectionConfig","treeSelectConfig","rows","render","rangePickerPlaceholder","timeRangePickerPlaceholder","visible","selectIsHideAll","rateConfig","inputChange","inputNumberChange","inputAutoCompleteChange","inputEnter","textAreaChange","autoCompleteChange","selectChange","multipleChange","remoteSearchChange","datePickerChange","rangePickerChange","timeRangePickerChange","timePickerChange","switchChange","radioChange","checkboxChange","cascaderChange","rateChange"]),"Union"===a.componentName&&(b=t.omit(b,["name"])),g=a.colProps?a.colProps:p,e.createElement(r.Col,{...g,key:m,style:{display:!1===a.visible?"none":"block"}},n.jsx(r.Form.Item,{className:"HideInput"===a.componentName?"hide-item":void 0,...b,children:f}),a.render&&a.render())})},[S,y.selectMultiple,y.remoteFetching,y.remoteData,y.treeSelectData,y.treeSelectFlattenData,p,w,k,j,c,R]),L=e.useMemo(()=>O(),[O]);return e.useEffect(()=>{if(S){let e={};for(let e of S)"RemoteSearch"===e.componentName&&e.name&&!m.current[e.name]&&e.remoteConfig&&!1!==e.remoteConfig.initLoad&&k(void 0,e),"TreeSelect"===e.componentName&&e.name&&!C.current[e.name]&&e.treeSelectConfig&&e.treeSelectConfig.data&&j(e);c.setFieldsValue(e)}},[k,j,c,S]),e.useImperativeHandle(o,()=>({getFormValues:e=>c.getFieldsValue(e),setFormFields:e=>{c.setFields(e)},setFormValues:e=>{c.setFieldsValue(e),setTimeout(()=>{S.forEach(e=>{"RemoteSearch"===e.componentName&&e.remoteConfig&&e.remoteConfig.reLoad&&k(void 0,e)})},100)},formSubmit:e=>new Promise((t,n)=>{c.validateFields(e).then(e=>{for(let t in e)b({data:e[t],type:"String"})&&(e[t]=e[t].replace(/(^\s*)|(\s*$)/g,""));t(e)}).catch(e=>{e.errorFields&&e.errorFields.length&&(console.warn("请输入或选择表单必填项:",e),r.message.warning("请输入或选择表单必填项",1.5)),n(new Error("false"))})}),formReset:e=>(c.resetFields(e),c.getFieldsValue())})),n.jsx(x,{children:n.jsx(r.Form,{name:v,className:`generate-form ${s||""}`,form:c,...d,initialValues:{sortSeq:10,startTime:l(`${(new Date).getFullYear()}-01-01`),endTime:l("2099-12-31"),...d?d.initialValues:void 0},children:n.jsxs(r.Row,{...u,children:[L,h?n.jsx(r.Col,{children:n.jsx(r.Form.Item,{children:h&&h()})}):null]})})})});function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P,M={exports:{}};var I=L((P||(P=1,function(e,t){function n(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var r="object"==typeof process&&!0;function a(e,t){if(!e){if(r)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=a;var o=Object.prototype.hasOwnProperty,l=Array.prototype.splice,i=Object.prototype.toString;function c(e){return i.call(e).slice(8,-1)}var s=Object.assign||function(e,t){return d(t).forEach(function(n){o.call(t,n)&&(e[n]=t[n])}),e},d="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function u(e){return Array.isArray(e)?s(e.constructor(e.length),e):"Map"===c(e)?new Map(e):"Set"===c(e)?new Set(e):e&&"object"==typeof e?s(Object.create(Object.getPrototypeOf(e)),e):e}var p=function(){function e(){this.commands=s({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,r="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(r)||a(!Array.isArray(r),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),a("object"==typeof r&&null!==r,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."});var l=e;return d(r).forEach(function(t){if(o.call(n.commands,t)){var a=e===l;l=n.commands[t](r[t],l,r,e),a&&n.isEquals(l,e)&&(l=e)}else{var i="Map"===c(e)?n.update(e.get(t),r[t]):n.update(e[t],r[t]),s="Map"===c(l)?l.get(t):l[t];n.isEquals(i,s)&&(void 0!==i||o.call(e,t))||(l===e&&(l=u(e)),"Map"===c(l)?l.set(t,i):l[t]=i)}}),l},e}();t.Context=p;var h={$push:function(e,t,n){return f(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return f(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,r,o){return function(e,t){a(Array.isArray(e),function(){return"Expected $splice target to be an array; got "+n(e)}),b(t.$splice)}(t,r),e.forEach(function(e){b(e),t===o&&e.length&&(t=u(o)),l.apply(t,e)}),t},$set:function(e,t,n){return function(e){a(1===Object.keys(e).length,function(){return"Cannot have more than one key in an object with $set"})}(n),e},$toggle:function(e,t){g(e,"$toggle");var n=e.length?u(t):t;return e.forEach(function(e){n[e]=!t[e]}),n},$unset:function(e,t,n,r){return g(e,"$unset"),e.forEach(function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=u(r)),delete t[e])}),t},$add:function(e,t,n,r){return C(t,"$add"),g(e,"$add"),"Map"===c(t)?e.forEach(function(e){var n=e[0],a=e[1];t===r&&t.get(n)!==a&&(t=u(r)),t.set(n,a)}):e.forEach(function(e){t!==r||t.has(e)||(t=u(r)),t.add(e)}),t},$remove:function(e,t,n,r){return C(t,"$remove"),g(e,"$remove"),e.forEach(function(e){t===r&&t.has(e)&&(t=u(r)),t.delete(e)}),t},$merge:function(e,t,r,o){var l,i;return l=t,a((i=e)&&"object"==typeof i,function(){return"update(): $merge expects a spec of type 'object'; got "+n(i)}),a(l&&"object"==typeof l,function(){return"update(): $merge expects a target of type 'object'; got "+n(l)}),d(e).forEach(function(n){e[n]!==t[n]&&(t===o&&(t=u(o)),t[n]=e[n])}),t},$apply:function(e,t){var r;return a("function"==typeof(r=e),function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."}),e(t)}},m=new p;function f(e,t,r){a(Array.isArray(e),function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(e)+"."}),g(t[r],r)}function g(e,t){a(Array.isArray(e),function(){return"update(): expected spec of "+n(t)+" to be an array; got "+n(e)+". Did you forget to wrap your parameter in an array?"})}function b(e){a(Array.isArray(e),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(e)+". Did you forget to wrap your parameters in an array?"})}function C(e,t){var r=c(e);a("Map"===r||"Set"===r,function(){return"update(): "+n(t)+" expects a target of type Set or Map; got "+n(r)})}t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=s(t.default,t)}(M,M.exports)),M.exports));var A=e.memo(({onResize:t,width:r,...o})=>{const l=e.useCallback(e=>{e.stopPropagation(),e.preventDefault()},[]),[i,s]=e.useState("number"==typeof r?r:0);e.useEffect(()=>{"number"==typeof r&&s(r)},[r]);const d=e.useMemo(()=>({enableUserSelectHack:!1}),[]),u=i,p=i>0?n.jsx("span",{className:"react-resizable-handle",onMouseDown:l,onClick:l}):void 0,h=e.useRef(null),m=e.useRef(null),[f,g]=e.useState(null);e.useEffect(()=>{if("number"!=typeof r&&h.current){const e=h.current.offsetWidth;e>0&&s(e)}},[r]);const b=e=>Math.min(Math.max(e,80),1e4),C=e.useRef(null),y=i>0?(e,t)=>{const n=e;null!==C.current&&cancelAnimationFrame(C.current),C.current=requestAnimationFrame(()=>{k(n.clientX),s(b(t.size.width)),C.current=null})}:void 0,x=i>0?(e,n)=>{S(!1);const r=b(n.size.width);t&&t(e,{...n,size:{...n.size,width:r}}),k(null),g(null),null!==C.current&&(cancelAnimationFrame(C.current),C.current=null)}:void 0,[w,S]=e.useState(!1),[v,k]=e.useState(null),j=i>0?e=>{S(!0);k(e.clientX);const t=h.current;if(t){const e=t.closest(".ant-table-container");m.current=e??null,g(e?e.getBoundingClientRect():null)}}:void 0;return n.jsx(c.Resizable,{width:u,height:0,handle:p,onResizeStart:j,onResize:y,onResizeStop:x,draggableOpts:d,children:n.jsxs("th",{...o,ref:h,style:{position:"relative",width:u,...o.style},children:[w&&n.jsx(n.Fragment,{children:null!==v&&m.current&&f&&a.createPortal(n.jsx("span",{style:{position:"absolute",top:0,bottom:0,left:v-f.left,width:0,borderLeft:"1px dashed #ccc",pointerEvents:"none",zIndex:9}}),m.current)}),o.children]})})});const{Option:F}=r.Select,T=e.createContext(null),$=e.memo(e.forwardRef(({open:t,index:a,moveRow:o,className:l,style:i,...c},d)=>{const[u]=r.Form.useForm(),p=e.useRef(null);e.useImperativeHandle(d,()=>p.current,[]);const[{isOver:h,dropClassName:m},f]=s.useDrop({accept:"DraggableBodyRow",collect:e=>{const{index:t}=e.getItem()||{};return t===a?{}:{isOver:e.isOver(),dropClassName:t<a?" drop-over-downward":" drop-over-upward"}},drop:e=>{o(e.index,a)}}),[,g]=s.useDrag({type:"DraggableBodyRow",item:{index:a},collect:e=>({isDragging:e.isDragging()})});t&&f(g(p));const b={ref:p,className:`${l}${h?m:""}`,style:{cursor:t?"move":"auto",...i},...c};return n.jsx(r.Form,{size:"small",component:!1,form:u,children:n.jsx(T.Provider,{value:u,children:n.jsx("tr",{...b})})})}),(e,t)=>e.index===t.index&&e.open===t.open&&e.className===t.className&&e.style===t.style&&e.moveRow===t.moveRow);var B=e.memo(({columns:a,record:o,recordIndex:i,dataIndex:c,title:s,rowSpanNum:d,colSpanNum:u,rowSpan:p,colSpan:h,editable:m,inputType:f,valueType:g,valueEnum:y,recordSelectField:x,controlRender:w,render:S,formChange:v,remoteConfig:k,children:j,formItemProps:R,handleSave:N,placeholder:D,triggerRemoteSearch:E,...O})=>{const L=e.useContext(T),[P,M]=e.useState(!1),[I,A]=e.useState(!1),[$,B]=e.useState({}),z=e.useRef(null);e.useEffect(()=>{P&&z.current.focus()},[P]),e.useEffect(()=>{"RemoteSearch"===g&&o&&o[c]&&k?.remoteApi&&E&&H(void 0,c,o,k?.remoteApi)},[k?.remoteApi,o?.[c],E]);const H=(e,t,n,r)=>{r&&(A(!0),r(e,n).then(e=>{A(!1),t&&B(n=>({...n,[t]:e}))}))},q=()=>{V()},V=()=>{M(!1)},K=()=>{let e=o[c];null!=e&&""!==e&&("DatePicker"!==g&&"DateTimePicker"!==g||(e=l(e)),"status"===c&&(e=String(e))),M(!P),L.setFieldsValue({[c]:e})},G=e.useCallback(e=>{const t={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(t).includes(g)&&e[c]&&(e[c]=e[c].format(t[g])),e},[g,c]),Y=e.useMemo(()=>{if(g&&c){if(y&&("Select"===g||"AutoComplete"===g))return C(y,o[c]);if("RemoteSearch"===g&&$[c])return C($[c],o[c]);if(o[x]&&"RecordSelect"===g)return C(o[x],o[c]);if(l.isDayjs(o[c]))return G({...o})[c]}return j},[g,c,y,$,o,j,x,G]),U=(e,a)=>{let l=null;const i=(e,t)=>{let n="";const r=function(e){for(let t of e)if(t)if(b({data:t,type:"String"}))n+=t;else{const e=t.props.children;b({data:e,type:"Object"})&&r([e]),b({data:e,type:"Array"})&&r(e),b({data:e,type:"String"})&&(n+=e)}};return r([t.children]),n.toLowerCase().indexOf(e.toLowerCase())>=0},s=e=>t.isArray(e)?e.map((e,t)=>n.jsx(F,{value:e.value,children:e.label},t)):null;switch(e){case"RecordSelect":l=n.jsx(r.Select,{ref:z,open:P,allowClear:!0,showSearch:!0,popupMatchSelectWidth:!1,placeholder:D||a,onChange:_,onBlur:q,optionFilterProp:"children",filterOption:i,children:s(o[x])});break;case"Select":l=n.jsx(r.Select,{ref:z,open:P,popupMatchSelectWidth:!1,onChange:_,onBlur:q,placeholder:D||a,children:s(y)});break;case"DatePicker":l=n.jsx(r.DatePicker,{ref:z,open:P,onChange:_,onBlur:q,placeholder:D||a});break;case"DateTimePicker":l=n.jsx(r.DatePicker,{ref:z,open:P,onChange:_,onBlur:q,placeholder:D||a,showTime:!0});break;case"AutoComplete":l=n.jsx(r.Select,{ref:z,open:P,allowClear:!0,showSearch:!0,popupMatchSelectWidth:!1,placeholder:D||a,onChange:_,onBlur:q,optionFilterProp:"children",filterOption:i,children:s(y)});break;case"RemoteSearch":let e=y;$[c]&&(e=$[c]),l=n.jsx(r.Select,{ref:z,open:P,mode:k.remoteMode,placeholder:D||a,notFoundContent:I?n.jsx(r.Spin,{size:"small"}):null,popupMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:_,onBlur:q,onFocus:()=>H(void 0,c,o,k.remoteApi),onSearch:e=>H(e,c,o,k.remoteApi),children:c&&s(e)});break;default:l=n.jsx(r.Input,{ref:z,onPressEnter:_,onBlur:_,placeholder:D||a,type:f||"text"})}return l},_=async()=>{try{const e=await L.validateFields();let t={...o,...e};t[c]=t[c]||void 0,t=G(t),v&&(t=await v(t)||t),o[c]!==t[c]&&N(t,c),V()}catch(e){console.log("保存表单字段失败:",e)}};let J=j;const W=e.useMemo(()=>S?S(o[c],o,i):Y,[S,o,i,c,Y]);J=m?P?n.jsx("div",{className:"editable-form-item-wrap",children:n.jsx(r.Form.Item,{style:{margin:0},name:c,rules:R?R.rules:void 0,children:U(g,s)})}):n.jsx("div",{className:"editable-cell-value-wrap",onClick:K,children:W}):W,w&&(J=w(o,J));const Q=e.useCallback((e,t)=>n.jsx("td",{...e,children:t}),[]);return p||h?Q({...O,rowSpan:p,colSpan:h,title:o&&o[c]},J):0!==d&&0!==u?Q({...O,rowSpan:d,colSpan:p,title:o&&o[c]},J):null});const z=d.HTML5Backend,H=e=>n.jsx(s.DndProvider,{backend:z,context:window,children:e.children});var q=e.memo(e.forwardRef((a,o)=>{const l=e.useMemo(()=>{const e=a.extra||{};return{tableConfig:e.tableConfig,virtual:e.virtual,rowType:e.rowType,scroll:e.scroll,apiMethod:e.apiMethod,columns:e.columns||[],data:e.data,drag:e.drag,onSelect:e.onSelect,hidSortColumn:e.hidSortColumn,paginationConfig:e.paginationConfig,getCheckboxProps:e.getCheckboxProps,resultFilter:e.resultFilter,getTableSuccessData:e.getTableSuccessData}},[a.extra]),i=e.useRef(),c=e.useRef(!0),s=e.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),d=e.useRef([]),[u,p]=e.useState(l.columns),[h,m]=e.useState(!1),[f,b]=g.useSetState({listData:[],selectRowIds:[],selectRowArray:[]}),[C,y]=e.useState({x:void 0,y:330}),w=e.useMemo(()=>l.tableConfig&&l.tableConfig.rowKey?l.tableConfig.rowKey:"id",[l.tableConfig]),S=e.forwardRef((e,t)=>n.jsx($,{...e,ref:t})),v=e.forwardRef((e,t)=>n.jsx(B,{...e,ref:t})),k=e.useMemo(()=>({header:{cell:A},body:{row:S,cell:v}}),[S,v]),j=!(!t.isFunction(l.apiMethod)||!c.current)&&{size:"small",position:["bottomCenter"],showTotal:e=>`共${e}条`,showSizeChanger:!0,showQuickJumper:!0,...s.current},R=e.useCallback((e,t)=>{const n=new Map;return e.forEach(e=>{n.set(e[w],e)}),t.forEach(e=>{n.set(e[w],e)}),Array.from(n.values())},[w]),N=e.useCallback(async e=>{let n=!0;m(!0),e&&(void 0!==e.updateSelected&&(n=e.updateSelected,delete e.updateSelected),"not-reset"===e.pagination&&delete e.pagination,i.current={...i.current,...e});try{const r={...i.current};for(let e in s.current){const t=s.current[e];"orderByInfo"===e&&(r.orderByInfo=t),"current"===e&&(r.page=t),"pageSize"===e&&(r.size=r.size||t)}if(e&&e.current&&(r.page=e.current,s.current.current=e.current),l.apiMethod){delete r.current;const e=await l.apiMethod(t.pickBy(r,t.identity));let a=[];t.isArray(e.data.content)&&(!1!==l.paginationConfig?c.current=!0:c.current=!1,a=e.data.content,s.current.total=e.data.total,s.current.pages=e.data.pages),t.isArray(e.data)&&(c.current=!1,a=e.data),l.resultFilter&&(a=await l.resultFilter(a)),n&&b(e=>{let t=[...e.selectRowIds],n=[];const r=a=>{if(e.selectRowIds.length)for(let o of a){for(let r of e.selectRowIds)o[w]===r&&(t.push(r),n.push(o));o.children&&r(o.children)}};return r(a),e.selectRowIds=Array.from(new Set(t)),e.selectRowArray=R(e.selectRowArray,n),e}),b(e=>(e.listData=a,e)),l.getTableSuccessData&&l.getTableSuccessData(e)}}catch(e){console.error("error",e)}m(!1)},[l,w,R,b]),D=e.useCallback(e=>{!t.isEqual(e,s.current)&&c.current&&(s.current={...s.current,...e},N())},[N]),E=e.useCallback((e,t,n)=>{const{order:r}=n;e.orderByInfo=void 0,r&&(e.orderByInfo=`${n.field}:${"ascend"===r?1:-1}`),D(e)},[D]),O={fixed:!0,type:l.rowType,selectedRowKeys:f.selectRowIds,getCheckboxProps:l.getCheckboxProps,onSelectAll:(e,n,r)=>{b(n=>{let a=[...n.selectRowIds],o=[...n.selectRowArray];return e?(a=t.uniq([...a,...r.map(e=>e[w])]),o=t.uniqBy([...o,...r],w)):(a=a.filter(e=>!r.some(t=>t[w]===e)),o=o.filter(e=>!r.some(t=>t[w]===e[w]))),l.onSelect&&l.onSelect(o,a),n.selectRowIds=a,n.selectRowArray=o,n})},onSelect:(e,t)=>{b(n=>{let r=[...n.selectRowIds],a=[...n.selectRowArray];return"checkbox"===l.rowType&&(t?(r.push(e[w]),a.push(e)):(r=r.filter(t=>t!==e[w]),a=a.filter(t=>t[w]!==e[w]))),"radio"===l.rowType&&t&&(r=[e[w]],a=[e]),l.onSelect&&l.onSelect(a,r),n.selectRowIds=r,n.selectRowArray=a,n})}},L=e=>(t,{size:n})=>{p(t=>{const r=[...t];return r[e]={...r[e],width:n.width},d.current=r,r})},P=e.useCallback(e=>{b(t=>{let n=JSON.parse(JSON.stringify(t.listData));for(let[t,r]of n.entries())if(r[w]===e[w]){n[t]={...n[t],...e};break}return t.listData=n,t})},[w,b]),M=e.useCallback(async(e,t)=>{const n=f.listData[e],r=I(f.listData,{$splice:[[e,1],[t,0,n]]});m(!0);try{if(l.drag){const n=JSON.parse(JSON.stringify(r)),a=JSON.parse(JSON.stringify(f.listData)),o=[e,t].sort();!1!==await l.drag.moveRow(e,t,n,a,n.slice(o[0],o[1]+1))&&b(e=>(e.listData=n,e))}}finally{m(!1)}},[l.drag,b,f.listData]),F=e.useCallback((e,t)=>({index:t,moveRow:M,open:l.drag&&l.drag.open}),[l.drag,M]),T=e.useCallback(e=>{let t=[];const n=e=>{for(let r of e){for(let e of f.selectRowIds)r[w]===e&&t.push(r);r.children&&n(r.children)}};return n(e),t},[w,f.selectRowIds]);return e.useEffect(()=>{(async()=>{let e=[...l.columns];l.hidSortColumn||e.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(e,t,n)=>{const r=s.current;return Object.keys(r).length?((r.current||0)-1)*(r.pageSize||0)+n+1:n+1}});for(let[t,n]of e.entries()){let r={...n,onHeaderCell:e=>({width:e.width,onResize:L(t)}),onCell:(e,t)=>({record:e,recordIndex:t,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(e,t):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(e,t):n.colSpanNum,editable:"function"==typeof n.editable?n.editable(e,t):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,render:n.render,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:P,placeholder:n.placeholder,triggerRemoteSearch:n.triggerRemoteSearch})},a=d.current.find(e=>e.dataIndex===n.dataIndex&&e.title===n.title);a&&(r.width=a.width),e[t]=r}p(e)})()},[l.columns,l.hidSortColumn,P]),e.useEffect(()=>{t.isArray(l.data)&&b(e=>(e.listData=JSON.parse(JSON.stringify(l.data)),e))},[l.data,b]),e.useEffect(()=>{const e=document.getElementById("slider-menu"),t=document.getElementById("router-render");if(void 0!==l.scroll?.x||void 0!==l.scroll?.y)y(e=>({...e,...l.scroll}));else if(e&&t){let n=parseInt(window.getComputedStyle(t,null).paddingLeft);y(t=>(t.x=document.body.clientWidth-e.clientWidth-(2*n+43),t))}},[l.scroll]),e.useEffect(()=>{l.paginationConfig&&(s.current={...s.current,...l.paginationConfig})},[l.paginationConfig]),e.useImperativeHandle(o,()=>({setTableLoading:e=>{m(e)},getPages:()=>({...s.current}),getTableList:async(e,t)=>{e&&("not-reset"===e.pagination?e.current=s.current.current:void 0===e.current&&(e.current=1),e.clearSelectIds&&(delete e.clearSelectIds,b(e=>(e.selectRowArray=[],e.selectRowIds=[],e)))),await N(e),t&&t()},setRowSelected:(e,t)=>{let n=e;!0===t&&(n=Array.from(new Set([...f.selectRowIds,...e]))),b({selectRowIds:n})},setRowSelectedBy:e=>{b({selectRowArray:e})},getSelectIds:()=>f.selectRowIds,clearSelectIds:()=>{b({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>{const e=T(f.listData);return t.cloneDeep(R(f.selectRowArray,e))},removeSelectIds:e=>{if(!Array.isArray(e)||0===e.length)return;const t=(t,n)=>t.filter(t=>"string"==typeof t?!e.includes(t):!e.includes(t[n]));b({selectRowIds:t(f.selectRowIds,w),selectRowArray:t(f.selectRowArray,w)})},getStaticDataList:()=>{try{return t.cloneDeep(f.listData||[])}catch(e){return console.error("error",e),[]}},setStaticDataList:(e,n)=>{if(e)try{if("object"!=typeof e||Array.isArray(e))Array.isArray(e)&&b(n=>(n.listData=t.cloneDeep(e),n));else{const t=e;b(e=>(e.listData=f.listData.map(e=>e[w]===t[w]?{...e,...t}:e),e))}n&&n()}catch(e){console.error("error",e)}}})),n.jsx(x,{children:n.jsx(H,{children:n.jsx(r.Table,{bordered:!0,rowKey:"id",rowClassName:"editable-row",virtual:l.virtual?.open,loading:h,components:k,onRow:F,columns:u,dataSource:f.listData,rowSelection:l.rowType?O:void 0,pagination:j,onChange:E,scroll:C,...l.tableConfig})})})}),(e,n)=>{const r=e.extra||{},a=n.extra||{};if(!(r.apiMethod===a.apiMethod&&r.onSelect===a.onSelect&&r.drag?.moveRow===a.drag?.moveRow&&r.getCheckboxProps===a.getCheckboxProps&&r.resultFilter===a.resultFilter&&r.getTableSuccessData===a.getTableSuccessData))return!1;const o=e=>{if(!e)return e;const{apiMethod:t,onSelect:n,drag:r,getCheckboxProps:a,resultFilter:o,getTableSuccessData:l,...i}=e;return{...i,drag:r?{...r,moveRow:void 0}:void 0}};try{return t.isEqual(o(r),o(a))}catch(e){return o(r)===o(a)}});const V=e=>{const t={...e};return delete t.outerHeight,n.jsx(r.Row,{className:"empty-wrap",style:{minHeight:e&&e.outerHeight?e.outerHeight:400},align:"middle",justify:"center",children:n.jsx(r.Empty,{description:"暂无数据",...t})})},{Link:K,Paragraph:G}=r.Typography;var Y=e.forwardRef(function(t,a){const o=e.useRef(null),i=e.useRef(),[c,s]=g.useSetState({saveLoading:!1,selectedRows:[]}),d=e.useMemo(()=>t.tableColumnsList&&t.tableColumnsList.tableConfig&&t.tableColumnsList.tableConfig.rowKey||"id",[t.tableColumnsList]),u=e.useMemo(()=>{const e=t.width||0;return e>=500&&e<=800?{span:7}:e>800&&e<=1e3?{span:6}:e>1e3&&e<=1200?{span:5}:e>1200?{span:4}:{span:8}},[t.width]),p=(e,t)=>{if(i.current){let n=[],r=[];"all"===e&&i.current.clearSelectIds(),"odd"===e&&t&&(n=[t[d]],r=c.selectedRows.filter(e=>e[d]!==t[d]),i.current.removeSelectIds(n)),s({selectedRows:r})}},h=e.useCallback(async()=>{if(o.current&&i.current){let e=await o.current.formSubmit();if(e&&Object.keys(e).length){for(let t in e){const n="YYYY-MM-DD HH:mm:ss";l(e[t],n,!0).isValid()&&(e[t]=l(e[t]).format(n))}e={clearSelectIds:!0,...e},void 0!==t.clearSelectIds&&(e.clearSelectIds=t.clearSelectIds),e.clearSelectIds&&s(e=>(e.selectedRows=[],e)),t.manualParameterChange&&(e=t.manualParameterChange(e)),t.searchCallback?t.searchCallback(e).then(t=>{t&&i.current?.getTableList(e)}):i.current.getTableList(e)}}else i.current?.getTableList()},[t,s]),m=()=>{if(o.current){let e=[];const n=t.searchNoResetFiled||[];if(t.searchFormList)for(let r of t.searchFormList){if(r.unionConfig)for(let t of r.unionConfig.unionItems)t.name&&!n.includes(t.name)&&e.push(t.name);r.name&&!n.includes(r.name)&&e.push(r.name)}o.current.formReset(e)}h()};return e.useEffect(()=>{t.visible&&(t.autoGetList&&i.current?.getTableList(),t.openSelected&&t.openSelected.visible&&s(e=>(e.selectedRows=t.openSelected?.defaultValues||[],i.current?.setRowSelectedBy(e.selectedRows),i.current?.setRowSelected(e.selectedRows.map(e=>e[d])),e)))},[t.autoGetList,t.openSelected,t.visible,d,s]),e.useImperativeHandle(a,()=>({...o.current,...i.current,setSavaLoading:e=>{s({saveLoading:e})}})),n.jsxs(S,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:t.width,visible:t.visible,title:t.title||"弹窗",onCancel:()=>{t.onCancel&&t.onCancel()},...t.modalConfig,children:[t.topExtra,t.searchFormList?n.jsx(O,{ref:o,rowGridConfig:{gutter:10},colGirdConfig:u,list:(f=t.searchFormList,f?f.map(e=>("Select"===e.componentName&&e.selectData&&e.selectData.length&&(e.selectData.some(e=>"全部"===e.label)||(e.selectData=[{label:"全部",value:""},...e.selectData])),e)):[]),formConfig:t.formConfig,render:()=>t.searchFormList&&t.searchFormList.length?n.jsxs(r.Space,{size:10,children:[n.jsx(r.Button,{type:"primary",onClick:()=>{h()},children:"查询"}),n.jsx(r.Button,{className:"btn-reset",onClick:m,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(r.Row,{...t.rowProps,children:[t.leftSlot?n.jsx(r.Col,{...t.leftSlot.colProps,children:t.leftSlot.jsx}):null,n.jsx(r.Col,{span:24,...t.colProps,children:n.jsxs(r.Row,{gutter:10,children:[n.jsx(r.Col,{span:t.openSelected&&t.openSelected.visible?16:24,children:n.jsx(q,{ref:i,extra:{rowType:t.tableColumnsList.rowType,apiMethod:t.apiMethod,columns:t.tableColumnsList.list,data:t.data,onSelect:(e,n)=>{((e,n)=>{s({selectedRows:n.map(n=>{let r={};const a=e.find(e=>e[d]===n);if(r[d]=n,t.openSelected&&t.openSelected.fileName&&(r[t.openSelected.fileName]=n),a&&(r=a),t.openSelected){const e=t.openSelected.fileName,a=t.openSelected.defaultValues;if(e&&a){const t=a.find(e=>e[d]===n);t&&(r[e]=t[e])}}return r})})})(e,n),t.onSelect&&t.onSelect(e,n)},virtual:t.virtual,getTableSuccessData:t.getTableSuccessData,scroll:{x:t.virtual?.open?void 0:"max-content"},tableConfig:t.tableColumnsList.tableConfig}})}),t.openSelected&&t.openSelected.visible?n.jsx(r.Col,{span:8,children:n.jsx(r.Card,{title:"已选列表",size:"small",styles:{body:{height:t.openSelected.height||330,overflowY:"auto"}},extra:n.jsxs(n.Fragment,{children:[t.rightExport&&t.rightExport.open?n.jsx(K,{style:{marginRight:"8px"},onClick:()=>(()=>{const e=t.rightExport?.fileName,n=t.rightExport?.headres,a=c.selectedRows;if(a&&a.length&&n&&n.length){let t="";const r=n.map(e=>e.title);t+=r.join(",")+"\n",a.forEach(e=>{const r=n.map(t=>{const n=void 0!==e[t.key]?e[t.key]:"";return`"${String(n).replace(/"/g,'""')}"`});t+=r.join(",")+"\n"});const o=new Blob(["\ufeff"+t],{type:"text/csv;charset=utf-8;"}),l=document.createElement("a"),i=URL.createObjectURL(o);l.setAttribute("href",i),l.setAttribute("download",`${e}.csv`),l.style.visibility="hidden",document.body.appendChild(l),l.click(),document.body.removeChild(l)}else r.message.warning("请选择导出数据",1.5)})(),children:"导出"}):null,n.jsx(K,{onClick:()=>p("all"),children:"全部移除"})]}),children:c.selectedRows.length?c.selectedRows.map(e=>{const a=e[d],o=e[t.openSelected?.fileName];return n.jsxs(r.Row,{gutter:12,children:[n.jsx(r.Col,{span:11,title:o,children:n.jsx(G,{ellipsis:!0,children:o})}),n.jsx(r.Col,{span:8,title:a,children:n.jsx(G,{ellipsis:!0,children:a})}),n.jsx(r.Col,{span:5,children:n.jsx(K,{onClick:()=>p("odd",e),children:"移除"})})]},a)}):n.jsx(V,{outerHeight:200})})}):null]})}),t.rightSlot?n.jsx(r.Col,{...t.rightSlot.colProps,children:t.rightSlot.jsx}):null]}),n.jsx(r.Row,{className:"from-table-modal-foot",justify:"center",children:n.jsx(r.Col,{children:n.jsxs(r.Space,{size:20,children:[t.onCancel?n.jsx(r.Button,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"}):null,t.onConfirm?n.jsx(r.Button,{type:"primary",loading:c.saveLoading,onClick:()=>{let e=i.current?.getSelectRowsArray()||[],n=[];const a=i.current?.getStaticDataList()||[];t.onConfirm&&(i.current&&(n=i.current.getSelectIds()),s({saveLoading:!0}),t.onConfirm(e,n,a).then(e=>{s({saveLoading:!1}),e&&setTimeout(()=>{t.onCancel&&t.onCancel()},100)}).catch(e=>{s({saveLoading:!1}),r.message.warning(e,1.5)}))},children:"确定"}):null]})})})]});var f});var U=e.forwardRef((a,o)=>{const i=e.useRef(),[c,s]=g.useSetState({loading:!1,saveLoading:!1,disabled:!1}),d=async()=>{let e=await(i.current?.formSubmit());if(e){if(e.endTime&&e.startTime&&l(e.endTime).isBefore(e.startTime))return void r.message.warning("生效日期不能大于失效日期",1.5);s({saveLoading:!0});try{let n={};if(e={...e,...a.submitExtraParameters},a.switchTransform)for(let t=0;t<a.switchTransform.length;t++)e[a.switchTransform[t]]?e[a.switchTransform[t]]="1":e[a.switchTransform[t]]="0";if(a.submitRemoveField)for(let t=0;t<a.submitRemoveField.length;t++)e[a.submitRemoveField[t]]&&delete e[a.submitRemoveField[t]];for(let t in e){const n="YYYY-MM-DD HH:mm:ss";l(e[t],n,!0).isValid()&&(e[t]=l(e[t]).format(n))}if(a.manualParameterChange&&(e=a.manualParameterChange(e)),a.manualVerification&&!a.manualVerification(e))return console.warn("手动验证表单不通过"),void s({saveLoading:!1});if(e=t.omitBy(e,t.isNil),a.submitApi&&e){if(a.id?(e.id=a.id,n=await a.submitApi(e,"put")):n=await a.submitApi(e,"post"),1===n.code){if(a.onConfirm){if(!1===a.onConfirm(n))return}r.message.success("操作成功",1.5),a.onCancel&&a.onCancel()}s({saveLoading:!1})}else a.onConfirm&&e&&a.onConfirm(e)}catch(e){s({saveLoading:!1}),console.error(e)}}};return e.useEffect(()=>{!1===a.visible&&s({saveLoading:!1})},[a.visible,s]),e.useEffect(()=>{s({disabled:a.disable})},[a.disable,s]),e.useImperativeHandle(o,()=>({setFormLoading:e=>{s({loading:e})},setFormSaveLoading:e=>{s({saveLoading:e})},setFormFields:e=>{i.current&&i.current.setFormFields(e)},getFormValues:e=>i.current?.getFormValues(e),setFormValues:e=>{i.current&&i.current.setFormValues(e)},excludeFormSubmitValues:async e=>{if(i.current){const t=a.formList.filter(t=>!e?.includes(t.name));return await(i.current?.formSubmit(t.map(e=>e.name)))}return{}},getFormSubmitValues:async e=>i.current?await(i.current?.formSubmit(e)):{}})),n.jsx(S,{className:`form-modal ${a.className}`,width:a.width?a.width:600,visible:a.visible,title:a.title||"对话框",onCancel:a.onCancel,destroyOnHidden:!0,maskClosable:!1,footer:null,children:n.jsxs(r.Spin,{spinning:c.loading,children:[n.jsxs("div",{className:"modal-form-height",children:[a.topRender?a.topRender:null,n.jsx(O,{ref:i,formConfig:{labelCol:{span:24},...a.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:a.colGirdConfig||{span:12},list:a.formList}),a.children]}),(()=>{const t=(()=>{const e=[n.jsx(r.Button,{onClick:()=>a.onCancel&&a.onCancel(),children:"关闭"},-1)];return c.disabled||e.push(n.jsx(r.Button,{type:"primary",loading:c.saveLoading,onClick:d,children:"提交"},-2)),e})(),o=e=>n.jsx(r.Row,{className:"form-modal-foot",justify:"center",children:n.jsx(r.Col,{children:n.jsx(r.Space,{size:20,children:e})})});if(a.footer)return a.footer;if(a.footBtnList){const{model:n,data:l}=a.footBtnList,i=l.map((t,n)=>{const{children:a,...o}=t;return e.createElement(r.Button,{...o,key:n},a)});if("new"===n)return o(i);if("before"===n)return o([...i,...t]);if("after"===n)return o([...t,...i])}return o(t)})()]})})});const _="button-group";var J=e.forwardRef((t,a)=>{const[o,l]=g.useSetState({type:"checkbox",deleteOpen:!1,data:[]}),i=e=>{let n=_;return t.buttonClassName&&(n=`${n} ${t.buttonClassName}`),t.size&&(n=`${n} ${_}-${t.size}`),e.selected&&(n=`${n} ${_}-primary`),n};return e.useEffect(()=>{if(t.checkType&&l({type:t.checkType}),t.deleteOpen&&l({deleteOpen:t.deleteOpen}),t.data){const e=t.data.map(e=>(void 0===e.selected&&(e.selected=!1),e));l({data:e})}},[t,l]),e.useImperativeHandle(a,()=>({getButtonGroupSelected:()=>o.data.filter(e=>e.selected)})),n.jsx(r.Row,{className:t.className,gutter:[10,10],children:o.data.map((e,a)=>n.jsx(r.Col,{children:n.jsxs("div",{className:i(e),onClick:()=>((e,n)=>{let r=[];t.deleteOpen||(o.data&&("checkbox"===o.type&&(o.data[n].selected=!e.selected,r=o.data),"radio"===o.type&&(r=o.data.map((t,r)=>{let a=!1;return n===r&&(a=!e.selected),{...t,selected:a}}))),t.onChange&&t.onChange(r),l({data:r}))})(e,a),children:[e.name,o.deleteOpen?n.jsx(u.CloseOutlined,{onClick:()=>(e=>{if(o.data){const n=o.data.filter((t,n)=>e!==n);t.onChange&&t.onChange(n),l({data:n})}})(a)}):null]})},a))})});exports.Affix=e=>{let t={...e},a="";return t.targetId&&(a=t.targetId,delete t.targetId),n.jsx(r.Affix,{target:()=>document.getElementById(a||"router-render")||window,...t})},exports.ButtonGroup=J,exports.Dialog=S,exports.Empty=V,exports.GaoDeMap=v,exports.GenerateForm=O,exports.GenerateTable=q,exports.IconSelectionModal=e=>{const[t,a]=g.useSetState({iconModal:{selected:-1,list:["iconmove","iconmap","iconnotice","iconpassword","iconNotvisible1","iconphone","iconpic1","iconpin","iconproduct","iconQRcode1","iconreeor","iconreduce","iconresonserate","iconremind","iconrising1","iconRightarrow","iconrmb1","iconsave","iconscanning","iconseleted","iconsearchcart","iconshare","iconRightbutton","iconsorting","iconsound-Mute","iconsound-filling","iconsuggest","iconsuccess","iconsupplier-features","iconswitch","iconsuspended","iconTop","iconsmile","icontradealert","icontopsales","icontradingvolume","iconupload","iconviewlarger","iconwarning","iconset","iconDaytimemode","iconunlock","iconexchangerate","iconall","iconbussiness-man","iconcomponent","iconcode","iconcopy","icondollar","iconhistory","iconeditor","icondata","icongift","iconintegral","iconnav-list","iconpic","iconNotvisible","iconplay","iconQRcode","iconrmb","iconsimilar-product","iconExportservices","iconsendinquiry","iconcolumn","iconadd-account","iconcolumn1","iconadd","iconadd-cart","iconarrow-right","iconarrow-left","iconall1","iconarrow-up","iconashbin","iconatm","iconbad","iconattachent","iconbrowse","iconcalendar","iconcart-full","iconcalculator","iconcameraswitching","iconcecurity-protection","iconcategory","iconclose","iconcertified-supplier","iconcart-Empty","iconcode1","iconcopy1","iconcoupons","iconconnections","iconcry","iconclock","iconCurrencyConverter","iconcut","icondata1","iconCustomermanagement","icondouble-arro-right","iconcustomization","icondouble-arrow-left","icondiscount","icondownload","icondollar1","icondefault-template","iconeditor1","iconetrical-equipm","iconellipsis","iconemail","iconfalling","iconfilter","iconfolder","iconhelp","icongood","icongift1","iconhot","iconinspection","iconleftbutton","iconleftarrow","iconlink","iconloading","iconphone1"]}}),o={height:34,fontSize:22};return n.jsxs(S,{className:"icon-selected-modal",width:e.width?e.width:590,visible:e.visible,title:e.title?e.title:"图标选择",onCancel:e.onCancel,destroyOnHidden:!0,maskClosable:!1,footer:null,children:[n.jsx(r.Row,{gutter:[10,10],children:t.iconModal.list.map((e,l)=>n.jsx(r.Col,{children:n.jsx("div",{className:`avatar-selected ${l===t.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a(e=>(e.iconModal.selected=l,e))},children:n.jsx("i",{className:`iconfont ${e}`,title:e,style:o})})},l))}),n.jsx(r.Row,{className:"icon-selected-foot",justify:"center",children:n.jsx(r.Col,{children:n.jsxs(r.Space,{size:20,children:[n.jsx(r.Button,{onClick:e.onCancel,children:"关闭"}),n.jsx(r.Button,{type:"primary",onClick:()=>{const n=t.iconModal.list[t.iconModal.selected];e.onConfirm&&e.onConfirm(n)},children:"确定"})]})})})]})},exports.LayoutFormModal=U,exports.LayoutTableModal=Y,exports.QuicklyProcessForms=t=>{const a=e.useRef(),o=e.useRef({page:1,pages:1,size:10}),[i,c]=g.useSetState({id:void 0,saveLoading:!1,data:[]}),s={fontSize:24},d=e.useCallback((e,t)=>e.map(e=>{if(t)for(let n of t)e[n]&&(e[n]=l(e[n]));return e}),[]),p=e.useCallback(async e=>{if(t.apiMethod)try{let n="";const r=await t.apiMethod(o.current);console.log("getList useCallback",r,"queryPagination.current",o.current);const a=r.data.content;o.current.pages=r.data.pages,"up"===e&&(n=a[a.length-1].id),"down"===e&&(n=a[0].id),c({id:n||t.id,data:a})}catch(e){console.error(e)}},[t,c]),h=e.useMemo(()=>{let e=0;for(let[t,n]of i.data.entries())if(n.id===i.id){e=t;break}return e},[i.data,i.id]),m=e.useCallback(async()=>{if(t.apiMethod){if(1===o.current.page&&0===h)return r.message.destroy(),void r.message.warning("已经是第一页啦~",1.5);if(h-1<0)return o.current.page=o.current.page-1,p("up"),void(t.onChange&&t.onChange(i.data[h],o.current))}else if(0===h)return r.message.destroy(),void r.message.warning("已经是第一个啦~",1.5);if(a.current){const e=await a.current.formSubmit();if(e){e.id=i.data[h].id;try{const n=i.data[h-1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,o.current),c(t=>(t.id=n.id,t.data[h]={...t.data[h],...e},t))}catch(e){console.error(e)}}}},[h,p,t,c,i.data]),f=e.useCallback(async()=>{if(t.apiMethod){if(o.current.page===o.current.pages&&h===i.data.length-1)return r.message.destroy(),void r.message.warning("已经是最后一页啦~",1.5);if(h+1>=i.data.length)return o.current.page=o.current.page+1,p("down"),void(t.onChange&&t.onChange(i.data[h],o.current))}else if(0===i.data.length||h===i.data.length-1)return r.message.destroy(),void r.message.warning("已经是最后一个啦~",1.5);if(a.current){const e=await a.current.formSubmit();if(e){e.id=i.data[h].id;try{const n=i.data[h+1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,o.current),c(t=>(t.id=n.id,t.data[h]={...t.data[h],...e},t))}catch(e){console.error(e)}}}},[h,p,t,c,i.data]),b=e.useCallback(async e=>{if("PageUp"===e.key&&(m(),e.preventDefault()),"PageDown"===e.key&&(f(),e.preventDefault()),"Enter"===e.key&&a.current){const e=await a.current.formSubmit();e.id=i.data[h].id;try{t.submitApi(e,"put"),r.message.success("保存成功",1.5)}catch(e){console.error(e)}}},[h,f,m,t,i.data]),C=e.useCallback(async()=>{if(t.methodParams){let e=["page","pages","size"],n={},r=await t.methodParams;for(let t in o.current)for(let r of e)t===r&&(n[r]=o.current[t]);n={...n,...r},n.page=r.page?r.page.current:1,o.current=n}},[t.methodParams]);return e.useEffect(()=>{t.visible&&setTimeout(()=>{a.current&&a.current.setFormValues(i.data[h])},100)},[h,t.visible,i.data]),e.useEffect(()=>{t.visible&&(t.apiMethod?C().then(()=>{p()}):c({id:t.id,data:d(t.data,t.transformTime)}))},[C,p,t.apiMethod,t.data,t.id,t.transformTime,t.visible,c,d]),e.useEffect(()=>(t.visible?document.addEventListener("keydown",b):document.removeEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}),[b,t.visible]),n.jsx(S,{className:"quickly-form-modal",width:t.width?t.width:960,visible:t.visible,title:t.title||"快速编辑信息",onCancel:()=>{t.onCancel&&t.onCancel(o.current)},maskClosable:!1,destroyOnHidden:!0,footer:null,children:n.jsxs(r.Row,{className:"modal-form-height",gutter:16,align:"middle",wrap:!1,children:[n.jsx(r.Col,{flex:"60px",children:n.jsx(r.Row,{justify:"center",children:n.jsx(r.Col,{children:n.jsx(u.LeftCircleFilled,{className:"circle-filled",style:s,onClick:m})})})}),n.jsx(r.Col,{flex:"auto",children:n.jsx(O,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:t.formList})}),n.jsx(r.Col,{flex:"60px",children:n.jsx(r.Row,{justify:"center",children:n.jsx(r.Col,{children:n.jsx(u.RightCircleFilled,{className:"circle-filled",style:s,onClick:f})})})})]})})},exports.TreeNode=R,exports.Upload=k,exports.VirtualList=a=>{const{vl:o,columns:l,...i}=a,c=e.useRef(o);var s,d;s=o,d=c.current,t.isEqualWith(s,d,(e,n)=>{if(t.isFunction(e)&&t.isFunction(n))return e.toString()===n.toString()})&&(c.current=o);const[u,p]=e.useState(l||[]);e.useEffect(()=>{p(l||[])},[l]);const h=e.useCallback(e=>(t,{size:n})=>{const r=[...u];r[e]={...r[e],width:n.width},p(r)},[u]),m=e.useMemo(()=>u.map((e,t)=>({...e,onHeaderCell:e=>({width:e.width,onResize:h(t)})})),[u,h]),f=e.useMemo(()=>({header:{cell:A}}),[]),g=e.useCallback(e=>{const{onScroll:t,onReachEnd:n,onListRender:r}=o||{};t&&t();const a=e.currentTarget;n&&a.scrollTop+a.clientHeight>=a.scrollHeight-2&&n(),r&&r({start:0,renderLen:0})},[o]);e.useEffect(()=>{if(!o)return;const e=setTimeout(()=>{const e=document.querySelector(".ant-table-body");e&&o.onScroll&&(e.onscroll=()=>{g({currentTarget:e})})},500);return()=>clearTimeout(e)},[o,g]);let b=o.height;try{b=parseInt(o.height)}catch(e){b=o.height}return n.jsx(x,{children:n.jsx(r.Table,{virtual:!0,bordered:!0,components:f,rowKey:"id",pagination:!1,scroll:{y:b,x:void 0},columns:m,...i})})},exports.hooks=g;
13
2
  //# sourceMappingURL=index.cjs.js.map