@icos-desktop/react-components 0.1.4 → 0.1.5

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.
@@ -1 +1,17 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("ahooks"),require("react"),require("antd"),require("axios"),require("@ant-design/icons"),require("immer"),require("react-highlight-words"),require("lodash")):"function"==typeof define&&define.amd?define(["exports","ahooks","react","antd","axios","@ant-design/icons","immer","react-highlight-words","lodash"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["@icos-desktop/react-components"]={},e.ahooks,e.React,e.antd,e.axios,e.icons,e.immer,e.Highlighter,e.lodash)}(this,(function(e,n,t,r,o,i,a,l,d){"use strict";function c(e){var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var s=c(t),u=function(){return u=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},u.apply(this,arguments)};function f(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{d(r.next(e))}catch(e){i(e)}}function l(e){try{d(r.throw(e))}catch(e){i(e)}}function d(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,l)}d((r=r.apply(e,n||[])).next())}))}function p(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(d){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=n.call(e,a)}catch(e){l=[6,e],r=0}finally{t=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,d])}}}function h(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var m,g={timeout:3e4},v=new(function(){function e(e){var n=e.getAccessToken,t=e.onUnauthorized,r=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(e,["getAccessToken","onUnauthorized"]);this.axiosInstance=o.create(u(u({},g),r)),this.axiosInstance.interceptors.request.use(this.requestInterceptor.bind(this)),this.axiosInstance.interceptors.response.use(this.responseSuccessInterceptor.bind(this),this.responseErrorInterceptor.bind(this)),this.getAccessToken=n,this.onUnauthorized=t}return e.prototype.requestInterceptor=function(e){return f(this,void 0,void 0,(function(){var n,t;return p(this,(function(r){switch(r.label){case 0:return[4,null===(t=this.getAccessToken)||void 0===t?void 0:t.call(this)];case 1:return(n=r.sent())&&(n.startsWith("Bearer ")?e.headers.Authorization=n:e.headers.Authorization="Bearer ".concat(n)),[2,Promise.resolve(e)]}}))}))},e.prototype.responseSuccessInterceptor=function(e){return f(this,void 0,void 0,(function(){var n,t,o,i;return p(this,(function(a){return n=e.data,t=n.code,o=n.data,i=n.message,0===t?[2,Promise.resolve(o)]:(r.message.error(i||"服务器内部错误"),[2,Promise.reject(i||"服务器内部错误")])}))}))},e.prototype.responseErrorInterceptor=function(e){return f(this,void 0,void 0,(function(){var n,t,o,i;return p(this,(function(a){return n=(null==e?void 0:e.response)||{},t=n.status,o=n.data,401===t?(r.message.error("登录已过期,请重新登录"),null===(i=this.onUnauthorized)||void 0===i||i.call(this)):404===t?r.message.error("请求的资源不存在"):r.message.error((null==o?void 0:o.message)||"服务器内部错误"),[2,Promise.reject(e)]}))}))},e.prototype.get=function(e,n,t){return this.axiosInstance.get(e,u({params:n},t))},e.prototype.post=function(e,n,t){return this.axiosInstance.post(e,n,t)},e.prototype.put=function(e,n,t){return this.axiosInstance.put(e,n,t)},e.prototype.delete=function(e,n,t){return this.axiosInstance.delete(e,u({params:n},t))},e}())({baseURL:"/api/icos/desktop",getAccessToken:function(){var e,n;return null===(n=null===(e=window._ICOS_DESKTOP_)||void 0===e?void 0:e.getAccessToken)||void 0===n?void 0:n.call(e)}});function y(){return y=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},y.apply(null,arguments)}var E=function(e){return s.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:21,height:20,fill:"none"},e),m||(m=s.createElement("path",{fill:"#3CF0E1",d:"m17.65 6.433-4.374-4.375a.63.63 0 0 0-.442-.183h-7.5a1.25 1.25 0 0 0-1.25 1.25v13.75a1.25 1.25 0 0 0 1.25 1.25h11.25a1.25 1.25 0 0 0 1.25-1.25v-10a.63.63 0 0 0-.183-.442M13.46 13.75h-5a.625.625 0 1 1 0-1.25h5a.624.624 0 1 1 0 1.25m0-2.5h-5a.625.625 0 1 1 0-1.25h5a.624.624 0 1 1 0 1.25m-.625-4.375V3.438l3.437 3.437z"})))};function A(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var _="index-module_container__7YD-E",k="index-module_item__OSsjr";A(".index-module_container__7YD-E {\n display: flex;\n flex-direction: column;\n row-gap: 4px;\n}\n.index-module_container__7YD-E .index-module_item__OSsjr {\n color: #0ff;\n font-size: 14px;\n word-break: break-all;\n}\n.index-module_container__7YD-E .index-module_item__OSsjr > svg {\n transform: translateY(4px);\n}\n");var b=function(e){var n=e.value;return(null==n?void 0:n.length)?t.createElement("div",{className:_},n.map((function(e){return t.createElement("a",{key:e.fileName,className:k,href:e.url,download:e.fileName},t.createElement(E,null),e.fileName)}))):"-"},w="index-module_container__fDmC2";A(".index-module_container__fDmC2 {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n");var x=function(e){var n=e.value;return(null==n?void 0:n.length)?t.createElement("div",{className:w},t.createElement(r.Image.PreviewGroup,null,n.map((function(e){return t.createElement(r.Image,{key:e.fileName,width:60,height:60,src:e.url,fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="})})))):"-"},C="index-module_container__q5ZGw",B="index-module_value__4UnN-";A(".index-module_container__q5ZGw {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.index-module_container__q5ZGw .index-module_value__4UnN- {\n border-radius: 4px;\n background: rgba(0, 255, 255, 0.2);\n padding: 4px 12px;\n color: #0ff;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n}\n");var N,Q=function(e){var n=e.value;return(null==n?void 0:n.length)?t.createElement("div",{className:C},n.map((function(e){return t.createElement("div",{key:e,className:B},e)}))):"-"};function I(){return I=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},I.apply(null,arguments)}var T=function(e){return s.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),N||(N=s.createElement("path",{fill:"#0FF",d:"M12 4.5v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1m3.625.016a.52.52 0 0 0-.415.076l-2.099 1.4a.25.25 0 0 0-.111.207v3.602a.25.25 0 0 0 .111.208l2.111 1.407a.5.5 0 0 0 .537.012.52.52 0 0 0 .24-.448V5a.5.5 0 0 0-.374-.484"})))},O="index-module_container__4mEf4",S="index-module_item__0764d",j="index-module_label__tTm1g",z="index-module_value__vycbA",P="index-module_button__HL70E";A(".index-module_container__4mEf4 {\n display: flex;\n flex-direction: column;\n}\n.index-module_container__4mEf4 .index-module_item__0764d {\n display: flex;\n width: 100%;\n margin-top: -1px;\n color: #fff;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px;\n}\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_label__tTm1g,\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_value__vycbA {\n padding: 16px;\n border: 1px solid rgba(255, 255, 255, 0.1);\n}\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_label__tTm1g {\n flex: 0 0 138px;\n width: 138px;\n background: linear-gradient(90deg, rgba(60, 125, 250, 0.1) -3.63%, rgba(60, 240, 225, 0.08) 100%);\n}\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_value__vycbA {\n flex: 1;\n display: flex;\n align-items: center;\n border-left: none;\n}\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_value__vycbA > span {\n display: inline-flex;\n margin-left: 4px;\n cursor: pointer;\n}\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_button__HL70E {\n color: #00fefe;\n cursor: pointer;\n}\n");var J=function(e){var n=e.data,o=function(e){return f(void 0,void 0,void 0,(function(){var n,t,o;return p(this,(function(i){switch(i.label){case 0:return(null==e?void 0:e.length)?[4,(a={openUserIds:e},v.post("/v1/sense-form/meeting-info",a))]:[3,2];case 1:n=i.sent(),t=n.confirmMessage,o=n.url,t?r.Modal.confirm({content:t,onOk:function(){window.open(o)}}):o&&window.open(o),i.label=2;case 2:return[2]}var a}))}))};if(!n)return null;var i=function(e){var n;return"string"==typeof e.fieldValue?e.fieldValue&&(null===(n=e.props)||void 0===n?void 0:n.unit)?"".concat(e.fieldValue).concat(e.props.unit):e.fieldValue||"-":"object"==typeof e.fieldValue?function(e){var n=e.widget,r=e.fieldValue;return"IdCardWidget"===n?"".concat(r.idCardType," - ").concat(r.idCardNumber):"RegionWidget"===n?r.regionDesc||"-":"AddressFillWidget"===n?"".concat(r.regionDesc,"/").concat(r.addressDetail):"MapPointWidget"===n?"".concat(r.lon,", ").concat(r.lat):"MapLineWidget"===n?"请在地图上查看路线信息":"MapPolygonWidget"===n?"请在地图上查看区块信息":"FileUploadWidget"===n?t.createElement(b,{value:r}):"ImageUploadWidget"===n?t.createElement(x,{value:r}):["IncrementInputWidget","MultiSelectWidget","CascadeSelectWidget"].includes(n)?r?r.join("/"):"-":"CustomTags"===n?t.createElement(Q,{value:r}):JSON.stringify(e.fieldValue)||"-"}(e):"-"};return t.createElement("div",{className:O},n.map((function(e){return e.hidden?null:t.createElement("div",{key:e.fieldId,className:S},t.createElement("div",{className:j},e.fieldName),t.createElement("div",{className:z},e.linkEntityCode?t.createElement("span",{className:P,onClick:function(){return n=e.linkEntityCode,void console.log(n);var n}},i(e)):i(e),e.openUserId?t.createElement("span",{onClick:function(){return o([e.openUserId])}},t.createElement(T,null)):null))})))},R="EntityInfo-module_container__n1dmP";A(".EntityInfo-module_container__n1dmP * {\n box-sizing: border-box;\n}\n");var D=function(e){var n=e.bookId,t=e.senseCode;return v.get("/v2/sense-form/sense-detail/".concat(n,"/").concat(t))},M="EntityTable-module_container__vwTV3";A(".EntityTable-module_container__vwTV3 * {\n box-sizing: border-box;\n}\n");var K,F={current:1,total:0,pageSize:50,pageSizeOptions:["20","50","100","200"],showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!1,showTotal:function(e){return"共 ".concat(e," 条")}},L=function(){var e=t.useState(!1),n=e[0],r=e[1],o=t.useState(),i=o[0],a=o[1];return t.useEffect((function(){var e;if(null===(e=window._ICOS_DESKTOP_)||void 0===e?void 0:e.ksCode)return a(window._ICOS_DESKTOP_.ksCode),void r(!0);v.get("/v1/entity-manager/category-ks-code-map").then((function(e){window._ICOS_DESKTOP_?window._ICOS_DESKTOP_.ksCode=e:window._ICOS_DESKTOP_={ksCode:e},a(e),r(!0)}))}),[]),{loaded:n,ksCode:i}},H=function(e,n){for(var t=h([],e,!0);t.length>0;){var r=t.pop();if(r.key===n)return r;r.children&&t.push.apply(t,r.children)}return null};function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Z.apply(null,arguments)}var V,U=function(e){return s.createElement("svg",Z({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),K||(K=s.createElement("path",{fill:"currentColor",d:"m13.354 6.354-5 5a.5.5 0 0 1-.708 0l-5-5a.5.5 0 0 1 .708-.708L8 10.293l4.646-4.647a.5.5 0 1 1 .708.708"})))};function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Y.apply(null,arguments)}var q,G=function(e){return s.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",width:17,height:16,fill:"none"},e),V||(V=s.createElement("path",{fill:"currentColor",d:"M14.3 10.6a.5.5 0 0 0-.3-.1h-.5V4a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2c0 .85.628 1.346.7 1.4a.49.49 0 0 0 .59.006.5.5 0 0 0 .014-.802C2.302 4.601 2 4.36 2 4a1 1 0 0 1 2 0v8a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2c0-.85-.625-1.346-.7-1.4M7 6h4a.5.5 0 0 1 0 1H7a.5.5 0 1 1 0-1m-.5 2.5A.5.5 0 0 1 7 8h4a.5.5 0 0 1 0 1H7a.5.5 0 0 1-.5-.5M13 13H7.232c.176-.304.268-.649.268-1q0-.256-.076-.5H13.8a.8.8 0 0 1 .202.5A1 1 0 0 1 13 13"})))};function W(){return W=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},W.apply(null,arguments)}var X,$=function(e){return s.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),q||(q=s.createElement("path",{fill:"currentColor",d:"m13.98 4.134-5.5-3.009a.99.99 0 0 0-.96 0l-5.5 3.01a1 1 0 0 0-.52.876v5.977a1 1 0 0 0 .52.875l5.5 3.01a.99.99 0 0 0 .96 0l5.5-3.01a1 1 0 0 0 .52-.875V5.011a1 1 0 0 0-.52-.877M8 2l5.022 2.75-1.861 1.018-5.022-2.75zm0 5.5L2.978 4.75l2.12-1.16 5.021 2.75zm5.5 3.49-5 2.737V8.365l2-1.094V9.5a.5.5 0 0 0 1 0V6.723l2-1.095v5.363"})))};function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ee.apply(null,arguments)}var ne,te=function(e){return s.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),X||(X=s.createElement("path",{fill:"currentColor",d:"M14.983 13H14V6a1 1 0 0 0-1-1h-2.75a.25.25 0 0 0-.25.25V13H9V2.026a1.03 1.03 0 0 0-.385-.813 1 1 0 0 0-1.17-.043l-5 3.33A1 1 0 0 0 2 5.334V13h-.983a.51.51 0 0 0-.517.467A.5.5 0 0 0 1 14h14a.499.499 0 0 0 .333-.868.5.5 0 0 0-.35-.132M4.75 11.5a.5.5 0 0 1-.533.5.51.51 0 0 1-.467-.518v-.965A.51.51 0 0 1 4.217 10a.5.5 0 0 1 .533.5zm0-3.5a.5.5 0 0 1-.533.5.51.51 0 0 1-.467-.517v-.966a.51.51 0 0 1 .467-.517.5.5 0 0 1 .533.5zm2.5 3.5a.5.5 0 0 1-.533.5.51.51 0 0 1-.467-.516v-.967A.51.51 0 0 1 6.717 10a.5.5 0 0 1 .533.5zm0-3.5a.5.5 0 0 1-.533.5.51.51 0 0 1-.467-.516v-.967a.51.51 0 0 1 .467-.516.5.5 0 0 1 .533.5z"})))};function re(){return re=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},re.apply(null,arguments)}var oe,ie=function(e){return s.createElement("svg",re({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),ne||(ne=s.createElement("path",{fill:"currentColor",d:"M14.433 13.75A.5.5 0 0 1 14 14H2a.5.5 0 0 1-.433-.75c.952-1.646 2.42-2.826 4.131-3.385a4.5 4.5 0 1 1 4.604 0c1.712.56 3.179 1.74 4.13 3.385a.5.5 0 0 1 .001.5"})))};function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ae.apply(null,arguments)}var le=function(e){return s.createElement("svg",ae({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),oe||(oe=s.createElement("path",{fill:"currentColor",d:"M8 1.5A6.5 6.5 0 1 0 14.5 8 6.507 6.507 0 0 0 8 1.5M3.893 11.654l.158-.103a1 1 0 0 0 .449-.83l.013-2.265L5.823 6.5l.02.014 1.23.804c.206.146.459.207.709.173l1.968-.267a1 1 0 0 0 .625-.338l1.386-1.61A1 1 0 0 0 12 4.625v-.396a5.49 5.49 0 0 1 1.236 5.459l-1.01-.923a1 1 0 0 0-1.057-.187l-1.904.79a1 1 0 0 0-.605.778l-.15 1.012a1 1 0 0 0 .736 1.113l1.342.354.147.148a5.49 5.49 0 0 1-6.842-1.119"})))},de="EntityTree-module_container__F8BNC",ce="EntityTree-module_node-more__Zo2wM",se="EntityTree-module_node-default__iVIc-",ue="EntityTree-module_title__BJnDv",fe="EntityTree-module_total__icLCA",pe="EntityTree-module_node-sense__s75ax",he="EntityTree-module_fields__jwWMe",me="EntityTree-module_node-sense-content__FHgPl",ge="EntityTree-module_highlight__QWIYs";A(".EntityTree-module_container__F8BNC {\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.EntityTree-module_container__F8BNC * {\n box-sizing: border-box;\n}\n.EntityTree-module_container__F8BNC .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.EntityTree-module_container__F8BNC .ant-tree {\n background: transparent;\n color: rgba(255, 255, 255, 0.8);\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-node-content-wrapper:hover,\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-checkbox + span:hover,\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-switcher:not(.ant-tree-switcher-noop):hover:before {\n background: transparent;\n}\n.EntityTree-module_container__F8BNC .ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper {\n width: 0;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode {\n align-items: center;\n padding: 0;\n min-height: 40px;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode .ant-tree-switcher {\n line-height: 40px;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode .ant-tree-checkbox {\n align-self: center;\n margin: 0;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='root'] {\n min-height: 32px;\n margin-bottom: 4px;\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAvUAAABACAMAAACtBHhQAAAAdVBMVEVAm/hDsvNDvPJCqPg/jPgAAAA8hv4+nvY/u+49ivxAtfI9jfo+lfg+mfdBsfNAqfNByu8/we8+kfo+xu89ovE+pPI+p/ZBsfI+tfA+kfs/nvc+ifxCnflAwvA9h/4+h/8xnsMoc65Cp/QjcZojbpkpdLIjb5ioMoMLAAAAJnRSTlMmJiYmJgBGQDhGOkZEQjs9NDZFNUA+LisuOjQ+Ki1CJkyiKuZflsDG+oIAAAsfSURBVHja7JpRjgQhCERR7HN4/1uupfZW9m+SFSYE3yj2AV4qQEaeyyUb1/pLPqS11ttb+HEIaZIWHceEomXVcWJTSx0UHE8e6XT+PCKZvVdRxbWhDFSjil9xvX2n9Q10K+1zKq+r0nkLylY/buJXyu/LI/TdwHxJm/Qr5+2k/7UdnxpV/QocI5/W28V81qjf1qPawM4maodTZ6Xsvto/Audx/3BbnP+huNbjbODmpuLOwrh3gtZD+97bzfqT/Y0YdjiM+piN/ZB8PgDVF06zu1zvTy8tDcTfSR/UeJoP4cu87pvLtiF3W38AtWX39HEb+/L9rDebZ5NGPTf1KOcp6wm7umHYr4EWrxu0vnNhf2fZIGk/DlC8QSdbGI+yqhfM+mn9Vf5wZz+qGlHwg/kk0t7+HWc/bnLi9PVph9kp/dLeCjb0IcdaNjUw/0vWmyR9k4zzrLr1OBFtn1Q+r+8fiB8m69OiAJWPgfNh/4Xzw74Z7AAMgjB0kQ/Z///lNJA0HHYxVkXpwbD7C4GulB7kgyQSrvYuRdoD4inUS1zjsrhldo1f7//MZtJ4Zw+nco63QR81m2Cm5VwTB9S/oD47/RCznoe9jxlLPNad+LD/J40hfGTWuF+iDzGJ03A/45hqrkC99Xm17LXMdXZA4pIbNNZmb9SH5b+0CefEbfZW9K3bj1fl2wqTVcHmnaKz/MoJJ6f64RJhns3Gjte7O6r52CNfz9Fz52Bfxc0Zm3EZ+JgKy+zMdg/qgTwB+n2cy4/3MthpIwiCKJcYFgjGNiYckgiSiP//xPSb7kpptJrVrkWo6a7qHef4aE2+f7Z+cUI4ev4IfUtPkav18vz8wnlhyIOI/6If6U36tLjh15xoTojLVlzp5qP15ert5+doatpF393tohl8h/iFqiQ6TdiRgYmZ5mDhBMlVr/uoe2yFvnpC5JKur+koRGzWk6cSg3WOIs5RTfv9WRPN4Wo/1AP9EGVZtxW3UZGE5HGsm5vbOIiQt+uVOtBRhzCK4dDr1OwUeSo9YpoeH9PotEW9vl69v+2Gmpa+A1d5wpsnI8Q1A4b0ZfqbGfnJEvS0CU+mp+Yx07r8dyfq8V4beacRw4B7eId4gubjUuxBPdsy9DpJvqGn9kKeHDAP1s2jjboF68afXkP+jVz8GvkNEvMUOVMBn46MeyWo50F1lbPMOr3+/nP1Psd+cloz1uf/KmmuS1Mu5d+EoY8jxD3ym297FdYYJ698UxcGP4L9TrHpM9coMMdpmMfGyh1PMNOXgK9sUlrgnvgLd0CPfIJ4xkXqEciPBd7iH1u97dtaz+ZsBt5e6KMh+2CvwCC83/YS93OdgP4d6pe2vRBWFNMyZ+56b/mcnJbBB3EWfvfYAfa8QrXxj37TTIU11v0J0ApSAntoj1yJfL/uRb0XvAXtOB3jJbQ/ZdIhrKO9kMcIrLrRjkV3vI/2/VimPd37nlxmnvbjZj35B08BO0YzDtCHcqHuHU9jLalkW+NcAT3UD7CfHBr69BRFJ/GERn1aO6p/x3CB6QYF6Mx0Uq84hvM3IPItrmqgjpQE8GFrBeURGGP2YM+Xa8nLNpIP8t2yh/eUqBfsin1EEl/U4wPi6Yc1KvJD6972EI7TiNgqKA/DjT/REx/FmUtvG5T8q08D6JP6Hvtp8V1PE5hVC95TOkOPPhOMZ1C7eN8DOZNQD2/Syk8/EgI6B4LKkxuexo18xUoBOxEqI+bSjkfKi7a9aq6zdj0TifJb0qonhoJ5YiBteB3RThPL1OuNQ+uTJoag99DjSNjLwRzmsUyKRiCeYciVEr/6I6EX9cbeMHuaVL38vHcyehDskm5g3S8gxiCf6vY7E0l51bPoGZkpye8dStRb+cChV6hYJxkHuEfLvOWpzf+NbTMnpeFMR3GwkDhPyrEIRIwF9PSAeqyDnsitP3zYWAW6WKc3q9Y7w+CNU/zP/kerAndC1GvA+01v6v+Sb+46bgMxFG0DCEjjIM8qRf7/F8PHiQ4EQmNF2IWLvRqRMyNtd8y9puQ/q26Nu0Yy3LpVK5JWh9TaaqqVQSzzKvu2LMnYdwLC5Pch7r2ygdPhSqGn1kN9zYVf7BHEE82XBfA14lSg36NPCzyC99hYfZ3V1pMgHbFBybfOX5esm5eMj5X1nThlmS+6zQDu2m+3Mj+pt9QrOe54YH02dSJzrwVcHw/zftd1DwF7zfaWPQFRxdnzO2yPDvZw6hR60lU15ZIfeQr8GTck9hT9IWt+HWnmZR5TD/cM4J/t+oH5tDnHhr2zqU+zeWnNv+3sIwxhcJp2wGdx7FxG7JGBNMq9DkfoJRuNBVvzRuZaG3IeisVWdwE7z6zciaMzI3XMQX5RL+BEPxohzY0O53IXR+Qn5s6wNZx3mefIMHGX+VAEpa/vY6Es8hVW4mssZf9ylS/yKfFMLj+ZQo078aRrSYZ9RcOSiMmXdSX2TzuXcFzRHZ08aqKZcL/lfqvInwXlMM5zWP4O4ecTepLmnlZOMByn1gYBPVd62Ln8nzrfUe57OvXPy7O4Z3Fw9sPfYORt30h8rX00VcRf4f5EDbsnzJMXuJMA3yez5MsC9Eo2cdSjTno4x9YlgarOFOKnHnYuhV6JtNm2PVHp413G3N1O4J8E7/8KNhuWsegs6zFnppunqpNzwpVcwXycw+KcEn52AW+jBvQkgL+vL6Tpbcx26f0AqLOns2hpcXwqy55kOx+S+VJMbryLUIEUkn/L/kP2294QkL5e1J0q9+sp1crTa2Yquhx31SHlkD5a9Fvfttnd33Jtxx7SDalM4M7EYS9HzslbjoI9sb9t6peWHpdTqzukU+rJE3jmpZxMNed7mvoM9GuDg62pmW1M9MTf267nZLIEnpiDaWKeJ0HRv+yBZH7/6now+AvlGwm/F8zD+VkP348Eg8DfIMx9Zqu9VzduslXZ8LNWexXvi+xJfl1kPgT9V1/EKeRzzOYluO8NHNJ9ib59S4Wnp4HTrUtxPz6kevL+2Qr4jOSFs4H0OQfx268l1GEjZxoc7E2cupuK5AzMmEcahd63z369RD9erZ8v1td31fcccysUoeO3Fytera/xCvELQgJ6258Pfszflfxl7wxSAISBGAjd//9ZbZfOVZGshjbVH4RQCplESHE4zkzXVLv+YuF6hPV3Xfy9lOVBKoReZdkpcr4+8GkQnkehH3WpahX9U/g+6Qjn8eS6poC7Vousl8zzLNsYV0OgsHwYwbuHUMZ8ORqErJ+ghB30LiBvT6sjxqhuu95joWdlGE63vm6gJ8eVjUfZ2sOU96FArRr1eafXXnIs2U+ofTZVwg1H4v0e9Uu+Ww7TS10f4cuvP9q7ghyGYRAmwv//vGbJYqFqh2lA4xZrivIADznGBetc3mxDz1NrvYZN/APj+0E84BK6Ptu3xMQ/+5Ytx95x5h/gr294R9cv63KQPxFgvUGZOE4T7DUYzGV+4OPeSG7FR6231K/h9VtvK/lw3kQS+BYS5i4oObO+/+ZRAsfPxImBzJ8odSLhQNsjh9NRz1mCIM6AvDFupOONWzrOrMebthSORwon1rqUA8zqHmsbstlvu1T2Xhrn30ofxHus51llnkvRT/zSoyLycB6eSdAICC4ivAtn2zyWidPyYGs9btWZdSj1wTkcK26UzsXBt1SX9WZn8hLEL7/eI3UZCGLvxgj7a3qz37heJs6u1qXKPVjftvFwDvj9Ax4scODjBEJElDd0aT4WT6M/WF+1HvBT9VEmTmf64jxzyV9cl3FkAa/ZRfxivVOdD0zjyCR/h5KaOK2hPZv/mn0BGRZn7LppW7YAAAAASUVORK5CYII=');\n background-repeat: no-repeat;\n background-size: 100% 100%;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='root'] .ant-tree-title {\n color: #fff;\n font-family: YouSheBiaoTiHei;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='more'] .ant-tree-switcher,\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='more'] .ant-tree-checkbox {\n display: none;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='sense'],\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='more'] {\n padding-top: 8px;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-more__Zo2wM {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n color: #2bf2f8;\n column-gap: 4px;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-default__iVIc- {\n display: flex;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-default__iVIc- .EntityTree-module_title__BJnDv {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-default__iVIc- .EntityTree-module_total__icLCA {\n flex-shrink: 0;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-sense__s75ax {\n display: flex;\n flex-direction: column;\n row-gap: 12px;\n padding: 8px;\n background: rgba(69, 147, 255, 0.1);\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-sense__s75ax .EntityTree-module_title__BJnDv {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-sense__s75ax .EntityTree-module_title__BJnDv > svg {\n width: 20px;\n height: 20px;\n flex-shrink: 0;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-sense__s75ax .EntityTree-module_title__BJnDv > span {\n flex: 1;\n width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-sense__s75ax .EntityTree-module_fields__jwWMe {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.EntityTree-module_node-sense-content__FHgPl {\n display: flex;\n flex-direction: column;\n max-width: 440px;\n}\n.EntityTree-module_highlight__QWIYs {\n background: transparent;\n color: #0ff;\n}\n");var ve=function(e){return v.post("/v1/map-window/search/org-tree",e)},ye=function(e){return v.post("/v1/map-window/search/entity-class-tree",e)},Ee=function(e){return(null==e?void 0:e.length)?e:void 0},Ae=function(e){var n=e.treeData,t=e.checkedKeys,r=e.halfCheckedKeys;if(!(null==n?void 0:n.length))return{info:{},total:0};var o="all"===n[0].type?n[0].children:n,i=0,a=[],l=[],d=[],c=[],s=[],u=[],f=function(e){var n=-1!==t.indexOf(e.key),o=-1!==r.indexOf(e.key);return{checked:n||o,halfChecked:o}},p=function(e,n){if(null==e?void 0:e.length){var r=e.find((function(e){return"more"===e.type}));if(r)if(-1!==t.indexOf(r.key)){"senseObj"===n.type?a.push(n.key):"senseBook"===n.type&&l.push(n.key);var o=0;e.forEach((function(e){"more"!==e.type&&-1===t.indexOf(e.key)&&(s.push(e.key),o+=1)})),i+=n.total-o}else e.forEach((function(e){"more"!==e&&-1!==t.indexOf(e.key)&&(c.push(e.key),i+=1)}));else e.forEach((function(e){-1!==t.indexOf(e.key)&&(c.push(e.key),i+=1)}))}},h=function(e){(null==e?void 0:e.length)&&e.forEach((function(e){var n;if("senseObj"===e.type){var r=f(e),o=r.checked,c=r.halfChecked;o&&(c?(null===(n=e.children)||void 0===n?void 0:n.length)&&("senseBook"===e.children[0].type?function(e,n){if(null==e?void 0:e.length){var r=e.find((function(e){return"more"===e.type}));if(r)if(-1!==t.indexOf(r.key)){a.push(n.key);var o=0;e.forEach((function(e){if("more"!==e){var n=f(e),t=n.checked,r=n.halfChecked;t?r&&p(e.children,e):(d.push(e.key),o+=1)}})),i+=n.total-o}else e.forEach((function(e){if("more"!==e){var n=f(e),t=n.checked,r=n.halfChecked;t&&(r?p(e.children,e):(l.push(e.key),i+=e.total))}}));else e.forEach((function(e){var n=f(e),t=n.checked,r=n.halfChecked;t&&(r?p(e.children,e):(l.push(e.key),i+=e.total))}))}}(e.children,e):"sense"===e.children[0].type&&p(e.children,e)):(a.push(e.key),i+=e.total))}else"senseType"===e.type&&h(e.children)}))},m=function(e){e.forEach((function(e){if("senseOrg"===e.type){var n=f(e),r=n.checked,o=n.halfChecked;r&&(o?m(e.children):(u.push(e.key),i+=e.total))}else{(r=-1!==t.indexOf(e.key))&&(c.push(e.key),i+=1)}}))};return"senseOrg"===o[0].type?m(o):h(o),{info:{selectSenseObjCodes:Ee(a),selectBookIds:Ee(l),unSelectBookIds:Ee(d),selectSenseGlobalCodes:Ee(c),unSelectSenseGlobalCodes:Ee(s),selectOrgIds:Ee(u)},total:i}},_e="RegionTree-module_container__baOAt";A(".RegionTree-module_container__baOAt {\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.RegionTree-module_container__baOAt * {\n box-sizing: border-box;\n}\n.RegionTree-module_container__baOAt .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.RegionTree-module_container__baOAt .ant-tree {\n background: transparent;\n color: rgba(255, 255, 255, 0.8);\n}\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-node-content-wrapper:hover,\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-checkbox + span:hover,\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-switcher:not(.ant-tree-switcher-noop):hover:before {\n background: transparent;\n}\n.RegionTree-module_container__baOAt .ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper {\n width: 0;\n}\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-treenode {\n align-items: center;\n padding: 0;\n min-height: 40px;\n}\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-treenode .ant-tree-switcher {\n line-height: 40px;\n}\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-treenode .ant-tree-checkbox {\n align-self: center;\n margin: 0;\n}\n");var ke=function(e){return v.get("/open/gis/v1/region-children",e)},be=function(e){return e.map((function(e){return{key:e.regionId,title:e.regionName,isLeaf:!!e.leaf}}))};e.EntityInfo=function(e){var r=e.senseGlobalCode,o=n.useRequest((function(){return f(void 0,void 0,void 0,(function(){var e,n,t,o,i,a,l,d;return p(this,(function(c){switch(c.label){case 0:return e=function(e){if(!e)return{};var n=e.split("|");return{senseObjCode:n[0],templateId:n[1],bookId:n[2],senseCode:n.slice(3).join("|")}}(r),n=e.bookId,t=e.senseCode,[4,D({bookId:n,senseCode:t})];case 1:return(null==(o=c.sent())?void 0:o.icosSenseDetail)?i=o.icosSenseDetail.fieldInfoList:(null==o?void 0:o.jmtSenseDetail)&&(s=o.jmtSenseDetail.schemaJSON,u=JSON.parse(s).schema,f=[],p=function(e,n){e.forEach((function(e){var t=e.id,r=e.props,o=e.maps,i=e.widget,a=e.children;a&&0!==a.length?p(a,h(h([],n,!0),[t],!1)):f.push({id:t,path:h(h([],n,!0),[t],!1),props:r,maps:o,widget:i})}))},p(u.children||[],[u.id]),a=f,o.jmtSenseDetail.entityInfo&&(l=JSON.parse(o.jmtSenseDetail.entityInfo),i=a.map((function(e){var n,t,r,i,a;return{fieldId:e.id,fieldName:e.props.title,fieldValue:(i=l,a=e.path,a.reduce((function(e,n){return e&&void 0!==e[n]?e[n]:void 0}),i)),maps:e.maps,props:e.props,widget:e.widget,linkEntityCode:null===(t=null===(n=o.jmtSenseDetail.jumpVOList)||void 0===n?void 0:n.find((function(n){return n.fieldName===e.id})))||void 0===t?void 0:t.entityCode,hidden:e.props.hidden||!e.props.title,readonly:null===(r=o.readonlyList)||void 0===r?void 0:r.includes(e.id)}})))),i.length&&(null===(d=o.tagNames)||void 0===d?void 0:d.length)&&i.push({fieldId:"CustomTags",fieldName:"标签",fieldValue:o.tagNames,widget:"CustomTags"}),[2,i]}var s,u,f,p}))}))}),{refreshDeps:[r]}).data;return o?t.createElement("div",{className:R},t.createElement(J,{data:o})):null},e.EntityTable=function(e){var n=e.bookId,o=t.useState([]),a=o[0],l=o[1],d=t.useState([]),c=d[0],s=d[1],h=t.useState(u({},F)),m=h[0],g=h[1],y=t.useState({}),E=y[0],A=y[1],_=function(e){return f(void 0,[e],void 0,(function(e){var o,a,d,c,f=e.pagination,h=void 0===f?m:f,y=e.sorter,A=void 0===y?E:y;return p(this,(function(e){switch(e.label){case 0:return o=A.order?{sortField:A.field,sortFieldOrder:"descend"===A.order?"desc":"asc"}:{},[4,(f=u(u({page:h.current,pageSize:h.pageSize},o),{bookId:n,keyword:"",viewCodes:["system-icos_city_object"]}),v.post("/v1/entity-manager/sense-page",f))];case 1:return a=e.sent(),l(null===(d=a.header)||void 0===d?void 0:d.map((function(e){return{key:e.code,dataIndex:e.code,title:e.name,width:200,sorter:e.sort,sortOrder:a.sortField===e.code?"desc"===a.sortFieldOrder?"descend":"ascend":null,ellipsis:!0}}))),g(function(e,n){var o=e||{},a=o.pageNum,l=o.pageSize,d=o.total;return u(u({},n),{total:d?d>1e4?1e4:d:0,current:a||1,pageSize:l||n.pageSize,showTotal:function(){return t.createElement(r.Space,{align:"center"},d>1e4?t.createElement(r.Tooltip,{title:"最大展示10000条"},t.createElement(i.ExclamationCircleOutlined,null)):null,t.createElement("span",null,"共",d,"条"))}})}(a.body,h)),s(null===(c=a.body)||void 0===c?void 0:c.list),[2,a]}var f}))}))};return t.useEffect((function(){_({})}),[]),t.createElement("div",{className:M},t.createElement(r.Table,{columns:a,dataSource:c,pagination:m,onChange:function(e,n,t){g(e),A(t),_({pagination:e,sorter:t})},scroll:{x:"100%"},sticky:!0}))},e.EntityTree=function(e){var n=e.viewCodes,o=void 0===n?[]:n,c=e.onTotalChange,s=e.onCheck,m=e.defaultCheckedAll,g={},y=L().ksCode,E=t.useState(!1),A=E[0],_=E[1],k=t.useState([]),b=k[0],w=k[1],x=t.useState([]),C=x[0],B=x[1],N=t.useState([]),Q=N[0],I=N[1],T=function(e){return(null==g?void 0:g.keyword)?t.createElement(l,{highlightClassName:ge,searchWords:[g.keyword],textToHighlight:e||"",autoEscape:!0}):e},O=function(e){return f(void 0,void 0,void 0,(function(){var n,t,r,i,l,d,c,s,f;return p(this,(function(p){switch(p.label){case 0:return n="more"===e.type,t="senseOrg"===e.type,r=n?e.reqId:e.key,i="senseIcosBook"===e.type||n?e.parentKey:r,l=u(u({},g),{viewCodes:o,page:n?e.morePage:1,pageSize:100}),t?l.orgIds=[r]:l.bookIds=[r],n&&w(a.produce((function(n){H(n,e.key).loading=!0}))),[4,(h=l,v.post("/v2/map-window/search/sense-list",h))];case 1:return d=p.sent(),c=d.list,s=d.pageNum,f=d.total,w(a.produce((function(t){var o,a=H(t,i);if(a){var l=[];if(a.extraChildren&&l.push.apply(l,a.extraChildren),l.push.apply(l,(c||[]).map((function(n){return{key:n.senseGlobalCode,parentKey:i,ksCode:e.ksCode,title:n.dataList[0].fieldValue,dataList:n.dataList,tagCodes:n.tagCodes,tagNames:n.tagNames,"data-type":"sense",type:"sense",isLeaf:!0,dataRef:n}}))),n?(a.children.pop(),(o=a.children).push.apply(o,l)):a.children=l,a.children.length<f){var d=s+1;a.children.push({key:"more__".concat(r,"__").concat(d),parentKey:i,reqId:r,ksCode:e.ksCode,title:"加载更多",morePage:d,loading:!1,moreType:"sense","data-type":"more",type:"more",isLeaf:!0})}}}))),n&&-1!==C.indexOf(e.key)&&B(a.produce((function(e){e.push.apply(e,(c||[]).map((function(e){return e.senseGlobalCode})))}))),[2]}var h}))}))},S=function(e){return f(void 0,void 0,void 0,(function(){var n,t,r,i,l,d;return p(this,(function(c){switch(c.label){case 0:return n="more"===e.type,t=u(u({},g),{viewCodes:o,senseObjCodes:[e.key],isMore:n}),n&&(w(a.produce((function(n){H(n,e.key).loading=!0}))),t.excludeBookIds=function(){var n,t=null===(n=H(b,e.key))||void 0===n?void 0:n.children;return t?t.map((function(e){return e.key})):[]}()),[4,(s=t,v.post("/v1/map-window/search/book-list",s))];case 1:return r=c.sent(),i=r.list,l=r.next,(null==i?void 0:i.length)&&"senseIcosBook"===i[0].type?(d=i[0],[4,O({key:d.code,parentKey:d.parentCode,ksCode:e.ksCode,type:d.type})]):[3,3];case 2:return c.sent(),[2];case 3:return w(a.produce((function(t){var r,o=H(t,e.key);if(o){var a=(i||[]).map((function(n){return{key:n.code,parentKey:n.parentCode,ksCode:e.ksCode,title:n.name,total:n.count,"data-type":n.type,type:n.type,isLeaf:!n.count,dataRef:n}}));n?(o.children.pop(),(r=o.children).push.apply(r,a)):o.children=a,l&&o.children.push({key:"more__".concat(e.key,"__").concat(Date.now()),parentKey:e.key,ksCode:e.ksCode,title:"加载更多",loading:!1,moreType:"senseBook","data-type":"more",type:"more",isLeaf:!0})}}))),n&&-1!==C.indexOf(e.key)&&B((i||[]).map((function(e){return e.code}))),[2]}var s}))}))},j=function(){return f(void 0,void 0,void 0,(function(){var e,n,t,r,i,a,l,f,v,y;return p(this,(function(p){switch(p.label){case 0:return _(!0),e=o.includes("system-icos_gov_user"),n=u(u({},g),{viewCodes:o}),[4,ye(n)];case 1:return t=p.sent(),e?(r=null===(v=t[0])||void 0===v?void 0:v.ksCategoryCode,[4,ve(n)]):[3,3];case 2:t=p.sent(),p.label=3;case 3:return i=function(e,n,t){for(var r=[],o={},i=(t||{}).children,a=void 0===i?"children":i,l=d.cloneDeep(e),c=0;c<l.length;c++){var s=n(l[c]);l[c]=s,o[s.key]=s}return l.forEach((function(e){var n=o[e.parentKey];n&&n.key!==e.key?(n[a]||(n[a]=[])).push(e):r.push(e)})),r}(t,(function(e){return{key:e.code,parentKey:e.parentCode,ksCode:r||e.ksCategoryCode,title:e.name,total:e.count,"data-type":"0000000000"===e.parentCode?"root":e.type,type:e.type,isLeaf:!e.count,dataRef:e}}),e?{children:"extraChildren"}:null),e&&i.forEach((function(e){e["data-type"]="root"})),a=t.reduce((function(n,t){return e||"0000000000"===t.parentCode?n+t.count:n}),0),i.length>1&&(l=h([],i,!0),i=[{key:"all",parentKey:"",title:"全部",total:a,"data-type":"root",type:"all",children:l.map((function(e){return u(u({},e),{parentKey:"all","data-type":e.type})}))}]),w(i),null==c||c(a),m?(f=i.map((function(e){return e.key})),B(f),null==s||s({info:{},total:a})):(B([]),null==s||s({info:{},total:0})),"all"===(null===(y=null==i?void 0:i[0])||void 0===y?void 0:y.type)?I([i[0].key]):I([]),_(!1),[2]}}))}))};return t.useEffect((function(){j()}),[o]),t.createElement("div",{className:de},t.createElement(r.Spin,{spinning:A,delay:500},t.createElement(r.Tree,{treeData:b,titleRender:function(e){var n;if("more"===e.type)return t.createElement("div",{className:ce},e.title,e.loading?t.createElement(i.LoadingOutlined,null):t.createElement(U,null));if("sense"===e.type){var o=(null===(n=e.tagNames)||void 0===n?void 0:n.length)?e.tagNames.join(", "):"",a=t.createElement("div",{className:me},(e.dataList||[]).map((function(e){return t.createElement("div",{key:e.fieldId},T("".concat(e.fieldName,":").concat(e.fieldValue)))})),o?t.createElement("div",null,T("标签:".concat(o))):null),l=(e.dataList||[]).map((function(e){return"".concat(e.fieldName,":").concat(e.fieldValue)})).join(" ");return o&&(l+=" 标签:".concat(o)),t.createElement("div",{className:pe},t.createElement("div",{className:ue,title:e.title},e.ksCode?function(e){var n;if(y)return((n={})[y.person]=t.createElement(ie,null),n[y.place]=t.createElement(le,null),n[y.event]=t.createElement(G,null),n[y.object]=t.createElement($,null),n[y.org]=t.createElement(te,null),n)[e]}(e.ksCode):null,t.createElement("span",null,T(e.title))),l?t.createElement(r.Popover,{content:a},t.createElement("div",{className:he,title:""},T(l))):null)}return t.createElement("div",{className:se},t.createElement("div",{className:ue},T(e.title)),t.createElement("div",{className:fe},"(",e.total,")"))},loadData:function(e){return f(void 0,void 0,void 0,(function(){return p(this,(function(n){switch(n.label){case 0:return e.children?[2]:"senseObj"!==e.type?[3,2]:[4,S(e)];case 1:n.sent(),n.label=2;case 2:return"senseBook"!==e.type&&"senseOrg"!==e.type?[3,4]:[4,O(e)];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))},selectedKeys:[],expandedKeys:Q,checkedKeys:C,onSelect:function(e,n){var t,r,o=n.node;"more"===o.type?("senseBook"===o.moreType&&S(o),"sense"===o.moreType&&O(o)):"sense"!==o.type&&(t=o.key,r=Q.indexOf(t),I(-1===r?a.produce((function(e){e.push(t)})):a.produce((function(e){e.splice(r,1)}))))},onExpand:function(e){I(e)},onCheck:function(e,n){B(e);var t=Ae({treeData:b,checkedKeys:e,halfCheckedKeys:n.halfCheckedKeys});null==s||s(t)},onDoubleClick:function(e,n){n.type},checkable:!0,blockNode:!0})))},e.RegionTree=function(){var e=t.useState(!1),o=e[0],i=e[1],l=t.useState([]),d=l[0],c=l[1];return n.useMount((function(){return f(void 0,void 0,void 0,(function(){var e;return p(this,(function(n){switch(n.label){case 0:return i(!0),[4,ke()];case 1:return e=n.sent(),c(be(e)),i(!1),[2]}}))}))})),t.createElement("div",{className:_e},t.createElement(r.Spin,{spinning:o,delay:500},t.createElement(r.Tree,{treeData:d,loadData:function(e){return f(void 0,void 0,void 0,(function(){var n;return p(this,(function(t){switch(t.label){case 0:return[4,ke({regionId:e.key})];case 1:return n=t.sent(),console.log(n),c(a.produce((function(t){H(t,e.key).children=be(n)}))),[2]}}))}))},selectedKeys:[],blockNode:!0})))},e.config=function(e){window._ICOS_DESKTOP_=u(u({},window._ICOS_DESKTOP_),e)}}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@icos-desktop/react-components"]={},e.React,e.ReactDOM)}(this,(function(e,t,n){"use strict";function r(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 o=r(t),i=r(n),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function l(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 c(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())}))}function s(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var f=function(e){return"function"==typeof e},p="development"===process.env.NODE_ENV||"test"===process.env.NODE_ENV;function m(e){p&&(f(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var n=t.useRef(e);n.current=t.useMemo((function(){return e}),[e]);var r=t.useRef();return r.current||(r.current=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.current.apply(this,e)}),r.current}var h,g=(h=t.useEffect,function(e,n){var r=t.useRef(!1);h((function(){return function(){r.current=!1}}),[]),h((function(){if(r.current)return e();r.current=!0}),n)}),v=function(e,n){var r=n.manual,o=n.ready,i=void 0===o||o,a=n.defaultParams,l=void 0===a?[]:a,c=n.refreshDeps,s=void 0===c?[]:c,f=n.refreshDepsAction,p=t.useRef(!1);return p.current=!1,g((function(){!r&&i&&(p.current=!0,e.run.apply(e,d([],u(l),!1)))}),[i]),g((function(){p.current||r||(p.current=!0,f?f():e.refresh())}),d([],u(s),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};function b(e,n){var r=t.useRef({deps:n,obj:void 0,initialized:!1}).current;return!1!==r.initialized&&function(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}(r.deps,n)||(r.deps=n,r.obj=e(),r.initialized=!0),r.obj}function y(e){var n=t.useRef(e);return n.current=e,n}v.onInit=function(e){var t=e.ready,n=void 0===t||t;return{loading:!e.manual&&n}};var w=function(e){p&&(f(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var n=y(e);t.useEffect((function(){return function(){n.current()}}),[])},x=new Map,E=new Map,C={},S=function(e,t){return C[e]||(C[e]=[]),C[e].push(t),function(){var n=C[e].indexOf(t);C[e].splice(n,1)}},O=function(e,n){var r=n.cacheKey,o=n.cacheTime,i=void 0===o?3e5:o,l=n.staleTime,c=void 0===l?0:l,s=n.setCache,f=n.getCache,p=t.useRef(),m=t.useRef(),h=function(e,t){s?s(t):function(e,t,n){var r=x.get(e);(null==r?void 0:r.timer)&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout((function(){x.delete(e)}),t)),x.set(e,a(a({},n),{timer:o}))}(e,i,t),function(e,t){C[e]&&C[e].forEach((function(e){return e(t)}))}(e,t.data)},g=function(e,t){return void 0===t&&(t=[]),f?f(t):function(e){return x.get(e)}(e)};return b((function(){if(r){var t=g(r);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===c||(new Date).getTime()-t.time<=c)&&(e.state.loading=!1)),p.current=S(r,(function(t){e.setState({data:t})}))}}),[]),w((function(){var e;null===(e=p.current)||void 0===e||e.call(p)})),r?{onBefore:function(e){var t=g(r,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===c||(new Date).getTime()-t.time<=c?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var n=function(e){return E.get(e)}(r);return n&&n!==m.current||(n=e.apply(void 0,d([],u(t),!1)),m.current=n,function(e,t){E.set(e,t),t.then((function(t){return E.delete(e),t})).catch((function(){E.delete(e)}))}(r,n)),{servicePromise:n}},onSuccess:function(t,n){var o;r&&(null===(o=p.current)||void 0===o||o.call(p),h(r,{data:t,params:n,time:(new Date).getTime()}),p.current=S(r,(function(t){e.setState({data:t})})))},onMutate:function(t){var n;r&&(null===(n=p.current)||void 0===n||n.call(p),h(r,{data:t,params:e.state.params,time:(new Date).getTime()}),p.current=S(r,(function(t){e.setState({data:t})})))}}:{}},k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},I="object"==typeof k&&k&&k.Object===Object&&k,_="object"==typeof self&&self&&self.Object===Object&&self,R=I||_||Function("return this")(),P=R,j=function(){return P.Date.now()},A=/\s/;var M=function(e){for(var t=e.length;t--&&A.test(e.charAt(t)););return t},T=M,D=/^\s+/;var z=function(e){return e?e.slice(0,T(e)+1).replace(D,""):e},B=R.Symbol,L=B,H=Object.prototype,F=H.hasOwnProperty,V=H.toString,K=L?L.toStringTag:void 0;var W=function(e){var t=F.call(e,K),n=e[K];try{e[K]=void 0;var r=!0}catch(e){}var o=V.call(e);return r&&(t?e[K]=n:delete e[K]),o},q=Object.prototype.toString;var U=W,X=function(e){return q.call(e)},G=B?B.toStringTag:void 0;var Y=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?U(e):X(e)},Q=function(e){return null!=e&&"object"==typeof e};var J=z,Z=$,ee=function(e){return"symbol"==typeof e||Q(e)&&"[object Symbol]"==Y(e)},te=/^[-+]0x[0-9a-f]+$/i,ne=/^0b[01]+$/i,re=/^0o[0-7]+$/i,oe=parseInt;var ie=$,ae=j,le=function(e){if("number"==typeof e)return e;if(ee(e))return NaN;if(Z(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Z(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=J(e);var n=ne.test(e);return n||re.test(e)?oe(e.slice(2),n?2:8):te.test(e)?NaN:+e},ce=Math.max,se=Math.min;var ue=function(e,t,n){var r,o,i,a,l,c,s=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function m(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-s>=i}function h(){var e=ae();if(m(e))return g(e);l=setTimeout(h,function(e){var n=t-(e-c);return d?se(n,i-(e-s)):n}(e))}function g(e){return l=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=ae(),n=m(e);if(r=arguments,o=this,c=e,n){if(void 0===l)return function(e){return s=e,l=setTimeout(h,t),u?p(e):a}(c);if(d)return clearTimeout(l),l=setTimeout(h,t),p(c)}return void 0===l&&(l=setTimeout(h,t)),a}return t=le(t)||0,ie(n)&&(u=!!n.leading,i=(d="maxWait"in n)?ce(le(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=c=o=l=void 0},v.flush=function(){return void 0===l?a:g(ae())},v},de=N(ue),fe=function(e,n){var r=n.debounceWait,o=n.debounceLeading,i=n.debounceTrailing,a=n.debounceMaxWait,l=t.useRef(),c=t.useMemo((function(){var e={};return void 0!==o&&(e.leading=o),void 0!==i&&(e.trailing=i),void 0!==a&&(e.maxWait=a),e}),[o,i,a]);return t.useEffect((function(){if(r){var t=e.runAsync.bind(e);return l.current=de((function(e){e()}),r,c),e.runAsync=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise((function(n,r){var o;null===(o=l.current)||void 0===o||o.call(l,(function(){t.apply(void 0,d([],u(e),!1)).then(n).catch(r)}))}))},function(){var n;null===(n=l.current)||void 0===n||n.cancel(),e.runAsync=t}}}),[r,c]),r?{onCancel:function(){var e;null===(e=l.current)||void 0===e||e.cancel()}}:{}},pe=function(e,n){var r=n.loadingDelay,o=n.ready,i=t.useRef();if(!r)return{};var a=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return a(),!1!==o&&(i.current=setTimeout((function(){e.setState({loading:!0})}),r)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}},me=!("undefined"==typeof window||!window.document||!window.document.createElement);function he(){return!me||"hidden"!==document.visibilityState}var ge=[];if(me){window.addEventListener("visibilitychange",(function(){if(he())for(var e=0;e<ge.length;e++){(0,ge[e])()}}),!1)}var ve=function(e,n){var r=n.pollingInterval,o=n.pollingWhenHidden,i=void 0===o||o,a=n.pollingErrorRetryCount,l=void 0===a?-1:a,c=t.useRef(),s=t.useRef(),u=t.useRef(0),d=function(){var e;c.current&&clearTimeout(c.current),null===(e=s.current)||void 0===e||e.call(s)};return g((function(){r||d()}),[r]),r?{onBefore:function(){d()},onError:function(){u.current+=1},onSuccess:function(){u.current=0},onFinally:function(){-1===l||-1!==l&&u.current<=l?c.current=setTimeout((function(){var t;i||he()?e.refresh():s.current=(t=function(){e.refresh()},ge.push(t),function(){var e=ge.indexOf(t);ge.splice(e,1)})}),r):u.current=0},onCancel:function(){d()}}:{}};var be=[];if(me){var ye=function(){if(he()&&(!me||void 0===navigator.onLine||navigator.onLine))for(var e=0;e<be.length;e++){(0,be[e])()}};window.addEventListener("visibilitychange",ye,!1),window.addEventListener("focus",ye,!1)}var we=function(e,n){var r=n.refreshOnWindowFocus,o=n.focusTimespan,i=void 0===o?5e3:o,a=t.useRef(),l=function(){var e;null===(e=a.current)||void 0===e||e.call(a)};return t.useEffect((function(){if(r){var t=(o=e.refresh.bind(e),c=i,s=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s||(s=!0,o.apply(void 0,d([],u(e),!1)),setTimeout((function(){s=!1}),c))});a.current=(n=function(){t()},be.push(n),function(){var e=be.indexOf(n);e>-1&&be.splice(e,1)})}var n,o,c,s;return function(){l()}}),[r,i]),w((function(){l()})),{}},xe=function(e,n){var r=n.retryInterval,o=n.retryCount,i=t.useRef(),a=t.useRef(0),l=t.useRef(!1);return o?{onBefore:function(){l.current||(a.current=0),l.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,-1===o||a.current<=o){var t=null!=r?r:Math.min(1e3*Math.pow(2,a.current),3e4);i.current=setTimeout((function(){l.current=!0,e.refresh()}),t)}else a.current=0},onCancel:function(){a.current=0,i.current&&clearTimeout(i.current)}}:{}},Ee=ue,Ce=$;var Se=N((function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Ce(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ee(e,t,{leading:r,maxWait:t,trailing:o})})),Oe=function(e,n){var r=n.throttleWait,o=n.throttleLeading,i=n.throttleTrailing,a=t.useRef(),l={};return void 0!==o&&(l.leading=o),void 0!==i&&(l.trailing=i),t.useEffect((function(){if(r){var t=e.runAsync.bind(e);return a.current=Se((function(e){e()}),r,l),e.runAsync=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise((function(n,r){var o;null===(o=a.current)||void 0===o||o.call(a,(function(){t.apply(void 0,d([],u(e),!1)).then(n).catch(r)}))}))},function(){var n;e.runAsync=t,null===(n=a.current)||void 0===n||n.cancel()}}}),[r,o,i]),r?{onCancel:function(){var e;null===(e=a.current)||void 0===e||e.cancel()}}:{}},ke=function(e){p&&(f(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),t.useEffect((function(){null==e||e()}),[])},Ne=function(){var e=u(t.useState({}),2)[1];return t.useCallback((function(){return e({})}),[])},$e=function(){function e(e,t,n,r){void 0===r&&(r={}),this.serviceRef=e,this.options=t,this.subscribe=n,this.initState=r,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=a(a(a({},this.state),{loading:!t.manual}),r)}return e.prototype.setState=function(e){void 0===e&&(e={}),this.state=a(a({},this.state),e),this.subscribe()},e.prototype.runPluginHandler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.pluginImpls.map((function(n){var r;return null===(r=n[e])||void 0===r?void 0:r.call.apply(r,d([n],u(t),!1))})).filter(Boolean);return Object.assign.apply(Object,d([{}],u(r),!1))},e.prototype.runAsync=function(){for(var e,t,n,r,o,i,f,p,m,h,g=[],v=0;v<arguments.length;v++)g[v]=arguments[v];return c(this,void 0,void 0,(function(){var c,v,b,y,w,x,E,C,S,O,k;return s(this,(function(s){switch(s.label){case 0:if(this.count+=1,c=this.count,v=this.runPluginHandler("onBefore",g),b=v.stopNow,y=void 0!==b&&b,w=v.returnNow,x=void 0!==w&&w,E=l(v,["stopNow","returnNow"]),y)return[2,new Promise((function(){}))];if(this.setState(a({loading:!0,params:g},E)),x)return[2,Promise.resolve(E.data)];null===(t=(e=this.options).onBefore)||void 0===t||t.call(e,g),s.label=1;case 1:return s.trys.push([1,3,,4]),(C=this.runPluginHandler("onRequest",this.serviceRef.current,g).servicePromise)||(C=(k=this.serviceRef).current.apply(k,d([],u(g),!1))),[4,C];case 2:return S=s.sent(),c!==this.count?[2,new Promise((function(){}))]:(this.setState({data:S,error:void 0,loading:!1}),null===(r=(n=this.options).onSuccess)||void 0===r||r.call(n,S,g),this.runPluginHandler("onSuccess",S,g),null===(i=(o=this.options).onFinally)||void 0===i||i.call(o,g,S,void 0),c===this.count&&this.runPluginHandler("onFinally",g,S,void 0),[2,S]);case 3:if(O=s.sent(),c!==this.count)return[2,new Promise((function(){}))];throw this.setState({error:O,loading:!1}),null===(p=(f=this.options).onError)||void 0===p||p.call(f,O,g),this.runPluginHandler("onError",O,g),null===(h=(m=this.options).onFinally)||void 0===h||h.call(m,g,void 0,O),c===this.count&&this.runPluginHandler("onFinally",g,void 0,O),O;case 4:return[2]}}))}))},e.prototype.run=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.runAsync.apply(this,d([],u(t),!1)).catch((function(t){e.options.onError||console.error(t)}))},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,d([],u(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,d([],u(this.state.params||[]),!1))},e.prototype.mutate=function(e){var t=f(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})},e}();function Ie(e,t,n){return function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);var r=t.manual,o=void 0!==r&&r,i=t.ready,c=void 0===i||i,s=l(t,["manual","ready"]);p&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var f=a({manual:o,ready:c},s),h=y(e),g=Ne(),v=b((function(){var e=n.map((function(e){var t;return null===(t=null==e?void 0:e.onInit)||void 0===t?void 0:t.call(e,f)})).filter(Boolean);return new $e(h,f,g,Object.assign.apply(Object,d([{}],u(e),!1)))}),[]);return v.options=f,v.pluginImpls=n.map((function(e){return e(v,f)})),ke((function(){if(!o&&c){var e=v.state.params||t.defaultParams||[];v.run.apply(v,d([],u(e),!1))}})),w((function(){v.cancel()})),{loading:v.state.loading,data:v.state.data,error:v.state.error,params:v.state.params||[],cancel:m(v.cancel.bind(v)),refresh:m(v.refresh.bind(v)),refreshAsync:m(v.refreshAsync.bind(v)),run:m(v.run.bind(v)),runAsync:m(v.runAsync.bind(v)),mutate:m(v.mutate.bind(v))}}(e,t,d(d([],u([]),!1),[fe,pe,ve,we,Oe,v,O,xe],!1))}var _e=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}()}(),Re="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Pe="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),je="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Pe):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Ae=["top","right","bottom","left","width","height","size","weight"],Me="undefined"!=typeof MutationObserver,Te=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(){je(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(){Re&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Me?(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(){Re&&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;Ae.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}(),De=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},ze=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Pe},Be=We(0,0,0,0);function Le(e){return parseFloat(e)||0}function He(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Le(e["border-"+n+"-width"])}),0)}function Fe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Be;var r=ze(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]=Le(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Le(r.width),c=Le(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=He(r,"left","right")+i),Math.round(c+a)!==n&&(c-=He(r,"top","bottom")+a)),!function(e){return e===ze(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 We(o.left,o.top,l,c)}var Ve="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof ze(e).SVGGraphicsElement}:function(e){return e instanceof ze(e).SVGElement&&"function"==typeof e.getBBox};function Ke(e){return Re?Ve(e)?function(e){var t=e.getBBox();return We(0,0,t.width,t.height)}(e):Fe(e):Be}function We(e,t,n,r){return{x:e,y:t,width:n,height:r}}var qe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=We(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ke(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}(),Ue=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),De(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);De(this,{target:e,contentRect:s})},Xe=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new _e,"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 ze(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new qe(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 ze(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 Ue(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}(),Ge="undefined"!=typeof WeakMap?new WeakMap:new _e,Ye=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=Te.getInstance(),r=new Xe(t,n,this);Ge.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Ye.prototype[e]=function(){var t;return(t=Ge.get(this))[e].apply(t,arguments)}}));var Qe=void 0!==Pe.ResizeObserver?Pe.ResizeObserver:Ye,Je={exports:{}};
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */
7
+ !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Je);var Ze=N(Je.exports);function et(){return et=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},et.apply(null,arguments)}var tt,nt={exports:{}},rt={};var ot,it={};
8
+ /**
9
+ * @license React
10
+ * react-is.development.js
11
+ *
12
+ * Copyright (c) Facebook, Inc. and its affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */"production"===process.env.NODE_ENV?nt.exports=function(){if(tt)return rt;tt=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 h(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"),rt.ContextConsumer=l,rt.ContextProvider=a,rt.Element=t,rt.ForwardRef=s,rt.Fragment=r,rt.Lazy=p,rt.Memo=f,rt.Portal=n,rt.Profiler=i,rt.StrictMode=o,rt.Suspense=u,rt.SuspenseList=d,rt.isAsyncMode=function(){return!1},rt.isConcurrentMode=function(){return!1},rt.isContextConsumer=function(e){return h(e)===l},rt.isContextProvider=function(e){return h(e)===a},rt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},rt.isForwardRef=function(e){return h(e)===s},rt.isFragment=function(e){return h(e)===r},rt.isLazy=function(e){return h(e)===p},rt.isMemo=function(e){return h(e)===f},rt.isPortal=function(e){return h(e)===n},rt.isProfiler=function(e){return h(e)===i},rt.isStrictMode=function(e){return h(e)===o},rt.isSuspense=function(e){return h(e)===u},rt.isSuspenseList=function(e){return h(e)===d},rt.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)},rt.typeOf=h,rt}():nt.exports=(ot||(ot=1,"production"!==process.env.NODE_ENV&&function(){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 h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case r:case i:case o:case u:case d:return h;default:var g=h&&h.$$typeof;switch(g){case c:case l:case s:case p:case f:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=l,v=a,b=t,y=s,w=r,x=p,E=f,C=n,S=i,O=o,k=u,N=d,$=!1,I=!1;it.ContextConsumer=g,it.ContextProvider=v,it.Element=b,it.ForwardRef=y,it.Fragment=w,it.Lazy=x,it.Memo=E,it.Portal=C,it.Profiler=S,it.StrictMode=O,it.Suspense=k,it.SuspenseList=N,it.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},it.isConcurrentMode=function(e){return I||(I=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},it.isContextConsumer=function(e){return h(e)===l},it.isContextProvider=function(e){return h(e)===a},it.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},it.isForwardRef=function(e){return h(e)===s},it.isFragment=function(e){return h(e)===r},it.isLazy=function(e){return h(e)===p},it.isMemo=function(e){return h(e)===f},it.isPortal=function(e){return h(e)===n},it.isProfiler=function(e){return h(e)===i},it.isStrictMode=function(e){return h(e)===o},it.isSuspense=function(e){return h(e)===u},it.isSuspenseList=function(e){return h(e)===d},it.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)},it.typeOf=h}()),it);var at=nt.exports;function lt(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(lt(e)):at.isFragment(e)&&e.props?r=r.concat(lt(e.props.children,n)):r.push(e))})),r}var ct={},st=[];function ut(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=st.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function dt(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=st.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function ft(){ct={}}function pt(e,t,n){t||ct[n]||(e(!1,n),ct[n]=!0)}function mt(e,t){pt(ut,e,t)}function ht(e,t){pt(dt,e,t)}function gt(e){return gt="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},gt(e)}function vt(e){var t=function(e,t){if("object"!=gt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gt(t)?t:t+""}function bt(e,t,n){return(t=vt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(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 wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xt(e){return e instanceof HTMLElement||e instanceof SVGElement}function Et(e){var r,o=function(e){return e&&"object"===gt(e)&&xt(e.nativeElement)?e.nativeElement:xt(e)?e:null}(e);return o||(e instanceof t.Component?null===(r=n.findDOMNode)||void 0===r?void 0:r.call(n,e):null)}function Ct(e,t,n){var r=o.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}mt.preMessage=function(e){st.push(e)},mt.resetWarned=ft,mt.noteOnce=ht;var St=function(e,t){"function"==typeof e?e(t):"object"===gt(e)&&e&&"current"in e&&(e.current=t)},Ot=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){St(t,e)}))}},kt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ct((function(){return Ot.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},Nt=function(e){var t,n,r=at.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===at.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===at.ForwardRef)};function $t(e){return t.isValidElement(e)&&!at.isFragment(e)}Number(t.version.split(".")[0]);var It=o.createContext(null);var _t=new Map;function Rt(e){e.forEach((function(e){var t,n=e.target;null===(t=_t.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var Pt=new Qe(Rt);function jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(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,vt(r.key),r)}}function Mt(e,t,n){return t&&At(e.prototype,t),n&&At(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tt(e,t){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tt(e,t)}function Dt(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&&Tt(e,t)}function zt(e){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zt(e)}function Bt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bt=function(){return!!e})()}function Lt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ht(e){var t=Bt();return function(){var n,r=zt(e);if(t){var o=zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Lt(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ft=function(e){Dt(n,e);var t=Ht(n);function n(){return jt(this,n),t.apply(this,arguments)}return Mt(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function Vt(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),a=o.useRef(null),l=o.useContext(It),c="function"==typeof n,s=c?n(i):n,u=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&o.isValidElement(s)&&Nt(s),f=d?s.ref:null,p=kt(f,i),m=function(){var e;return Et(i.current)||(i.current&&"object"===gt(i.current)?Et(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Et(a.current)};o.useImperativeHandle(t,(function(){return m()}));var h=o.useRef(e);h.current=e;var g=o.useCallback((function(e){var t=h.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);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,g=s===Math.round(a)?a:s,v=wt(wt({},p),{},{offsetWidth:m,offsetHeight:g});null==l||l(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return o.useEffect((function(){var e,t,n=m();return n&&!r&&(e=n,t=g,_t.has(e)||(_t.set(e,new Set),Pt.observe(e)),_t.get(e).add(t)),function(){return function(e,t){_t.has(e)&&(_t.get(e).delete(t),_t.get(e).size||(Pt.unobserve(e),_t.delete(e)))}(n,g)}}),[i.current,r]),o.createElement(Ft,{ref:a},d?o.cloneElement(s,{ref:p}):s)}var Kt=o.forwardRef(Vt);"production"!==process.env.NODE_ENV&&(Kt.displayName="SingleObserver");function Wt(e,t){var n=e.children,r="function"==typeof n?[n]:lt(n);return"production"!==process.env.NODE_ENV&&(r.length>1?ut(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&ut(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((function(n,r){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return o.createElement(Kt,et({},e,{key:i,ref:0===r?t:void 0}),n)}))}var qt=o.forwardRef(Wt);function Ut(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function Xt(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 Gt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Yt(e,t){if(e){if("string"==typeof e)return Xt(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)?Xt(e,t):void 0}}function Qt(e){return function(e){if(Array.isArray(e))return Xt(e)}(e)||Gt(e)||Yt(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.")}()}"production"!==process.env.NODE_ENV&&(qt.displayName="ResizeObserver"),qt.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(It),l=o.useCallback((function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(It.Provider,{value:l},t)};var Jt=function(e){return+setTimeout(e,16)},Zt=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Jt=function(e){return window.requestAnimationFrame(e)},Zt=function(e){return window.cancelAnimationFrame(e)});var en=0,tn=new Map;function nn(e){tn.delete(e)}var rn=function(e){var t=en+=1;return function n(r){if(0===r)nn(t),e();else{var o=Jt((function(){n(r-1)}));tn.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function on(e){if(Array.isArray(e))return e}function an(){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 ln(e,t){return on(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)||Yt(e,t)||an()}function cn(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 sn(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function un(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}rn.cancel=function(e){var t=tn.get(e);return nn(e),Zt(t)},"production"!==process.env.NODE_ENV&&(rn.ids=function(){return tn});var dn="data-rc-order",fn="data-rc-priority",pn="rc-util-key",mn=new Map;function hn(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):pn}function gn(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function vn(e){return Array.from((mn.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!sn())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(dn,a),l&&i&&c.setAttribute(fn,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=gn(t),u=s.firstChild;if(r){if(l){var d=(t.styles||vn(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(dn)))return!1;var t=Number(e.getAttribute(fn)||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 yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=gn(t);return(t.styles||vn(n)).find((function(n){return n.getAttribute(hn(t))===e}))}function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=yn(e,t);n&&gn(t).removeChild(n)}function xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=gn(n),o=vn(r),i=wt(wt({},n),{},{styles:o});!function(e,t){var n=mn.get(e);if(!n||!un(document,n)){var r=bn("",t),o=r.parentNode;mn.set(e,o),e.removeChild(r)}}(r,i);var a=yn(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=bn(e,i);return u.setAttribute(hn(i),t),u}function En(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(t.includes(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],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Cn(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(mt(!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"===gt(t)&&"object"===gt(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)}var Sn="%";function On(e){return e.join(Sn)}var kn=function(){function e(t){jt(this,e),bt(this,"instanceId",void 0),bt(this,"cache",new Map),this.instanceId=t}return Mt(e,[{key:"get",value:function(e){return this.opGet(On(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(On(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}(),Nn="data-token-hash",$n="data-css-hash",In="data-cache-path",_n="__cssinjs_instance__";var Rn=o.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($n,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[_n]=t[_n]||e,t[_n]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat($n,"]"))).forEach((function(t){var n,o=t.getAttribute($n);r[o]?t[_n]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new kn(e)}(),defaultCache:!0});var Pn=function(){function e(){jt(this,e),bt(this,"cache",void 0),bt(this,"keys",void 0),bt(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Mt(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=ln(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=ln(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}();bt(Pn,"MAX_CACHE_SIZE",20),bt(Pn,"MAX_CACHE_OFFSET",5);var jn=0,An=function(){function e(t){jt(this,e),bt(this,"derivatives",void 0),bt(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=jn,0===t.length&&ut(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),jn+=1}return Mt(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Mn=new Pn;function Tn(e){var t=Array.isArray(e)?e:[e];return Mn.has(t)||Mn.set(t,new An(t)),Mn.get(t)}var Dn=new WeakMap,zn={};var Bn=new WeakMap;function Ln(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Bn.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof An?n+=o.id:o&&"object"===gt(o)?n+=Ln(o,t):n+=o})),t&&(n=cn(n)),Bn.set(e,n)),n}function Hn(e,t){return cn("".concat(t,"_").concat(Ln(e,!0)))}var Fn=sn();function Vn(e){return"number"==typeof e?"".concat(e,"px"):e}function Kn(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=wt(wt({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},bt(bt({},Nn,t),$n,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 Wn=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()},qn=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=ln(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Un=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=ln(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=Wn(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,qn(r,t,{scope:null==n?void 0:n.scope})]},Xn="test"!==process.env.NODE_ENV&&sn()?o.useLayoutEffect:o.useEffect,Gn=function(e,t){var n=o.useRef(!0);Xn((function(){return e(n.current)}),t),Xn((function(){return n.current=!1,function(){n.current=!0}}),[])},Yn=function(e,t){Gn((function(t){if(!t)return e()}),t)},Qn=wt({},o).useInsertionEffect,Jn=Qn?function(e,t,n){return Qn((function(){return e(),t()}),n)}:function(e,t,n){o.useMemo(e,n),Gn((function(){return t(!0)}),n)},Zn=void 0!==wt({},o).useInsertionEffect?function(e){var t=[],n=!1;return o.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&ut(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var er=!1;var tr="production"===process.env.NODE_ENV?function(){return!1}:function(){return er};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var nr=window;if("function"==typeof nr.webpackHotUpdate){var rr=nr.webpackHotUpdate;nr.webpackHotUpdate=function(){return er=!0,setTimeout((function(){er=!1}),0),rr.apply(void 0,arguments)}}}function or(e,t,n,r,i){var a=o.useContext(Rn).cache,l=On([e].concat(Qt(t))),c=Zn([l]),s=tr(),u=function(e){a.opUpdate(l,(function(t){var o=ln(t||[void 0,void 0],2),i=o[0],a=void 0===i?0:i,l=o[1],c=l;"production"!==process.env.NODE_ENV&&l&&s&&(null==r||r(c,s),c=null);var u=[a,c||n()];return e?e(u):u}))};o.useMemo((function(){u()}),[l]);var d=a.opGet(l);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(l));var f=d[1];return Jn((function(){null==i||i(f)}),(function(e){return u((function(t){var n=ln(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(f)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=ln(t||[],2),o=n[0],i=void 0===o?0:o,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null==r||r(s,!1)})),null):[i-1,s]}))}}),[l]),f}var ir={},ar="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",lr=new Map;var cr=0;function sr(e,t){lr.set(e,(lr.get(e)||0)-1);var n=Array.from(lr.keys()),r=n.filter((function(e){return(lr.get(e)||0)<=0}));n.length-r.length>cr&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Nn,'="').concat(e,'"]')).forEach((function(e){var n;e[_n]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),lr.delete(e)}))}var ur=function(e,t,n,r){var o=wt(wt({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},dr="token";function fr(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.useContext(Rn),i=o.cache.instanceId,a=o.container,l=r.salt,c=void 0===l?"":l,s=r.override,u=void 0===s?ir:s,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,m=function(e,t){for(var n=Dn,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(zn)||n.set(zn,e()),n.get(zn)}((function(){return Object.assign.apply(Object,[{}].concat(Qt(n)))}),n),h=Ln(m),g=Ln(u),v=p?Ln(p):"",b=or(dr,[c,e.id,h,g,v],(function(){var t,n=f?f(m,u,e):ur(m,u,e,d),r=wt({},n),o="";if(p){var i=ln(Un(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=Hn(n,c);n._tokenKey=a,r._tokenKey=Hn(r,c);var l=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){lr.set(e,(lr.get(e)||0)+1)}(l);var s="".concat(ar,"-").concat(cn(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){sr(e[0]._themeKey,i)}),(function(e){var t=ln(e,4),n=t[0],r=t[3];if(p&&r){var o=xn(r,cn("css-variables-".concat(n._themeKey)),{mark:$n,prepend:"queue",attachTo:a,priority:-999});o[_n]=i,o.setAttribute(Nn,n._themeKey)}}));return b}var pr={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},mr="comm",hr="rule",gr="decl",vr="@import",br="@keyframes",yr="@layer",wr=Math.abs,xr=String.fromCharCode;function Er(e){return e.trim()}function Cr(e,t,n){return e.replace(t,n)}function Sr(e,t,n){return e.indexOf(t,n)}function Or(e,t){return 0|e.charCodeAt(t)}function kr(e,t,n){return e.slice(t,n)}function Nr(e){return e.length}function $r(e,t){return t.push(e),e}var Ir=1,_r=1,Rr=0,Pr=0,jr=0,Ar="";function Mr(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ir,column:_r,length:a,return:"",siblings:l}}function Tr(){return jr=Pr>0?Or(Ar,--Pr):0,_r--,10===jr&&(_r=1,Ir--),jr}function Dr(){return jr=Pr<Rr?Or(Ar,Pr++):0,_r++,10===jr&&(_r=1,Ir++),jr}function zr(){return Or(Ar,Pr)}function Br(){return Pr}function Lr(e,t){return kr(Ar,e,t)}function Hr(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 Fr(e){return Er(Lr(Pr-1,Wr(91===e?e+2:40===e?e+1:e)))}function Vr(e){for(;(jr=zr())&&jr<33;)Dr();return Hr(e)>2||Hr(jr)>3?"":" "}function Kr(e,t){for(;--t&&Dr()&&!(jr<48||jr>102||jr>57&&jr<65||jr>70&&jr<97););return Lr(e,Br()+(t<6&&32==zr()&&32==Dr()))}function Wr(e){for(;Dr();)switch(jr){case e:return Pr;case 34:case 39:34!==e&&39!==e&&Wr(jr);break;case 40:41===e&&Wr(e);break;case 92:Dr()}return Pr}function qr(e,t){for(;Dr()&&e+jr!==57&&(e+jr!==84||47!==zr()););return"/*"+Lr(t,Pr-1)+"*"+xr(47===e?e:Dr())}function Ur(e){for(;!Hr(zr());)Dr();return Lr(e,Pr)}function Xr(e){return function(e){return Ar="",e}(Gr("",null,null,null,[""],e=function(e){return Ir=_r=1,Rr=Nr(Ar=e),Pr=0,[]}(e),0,[0],e))}function Gr(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,h=1,g=1,v=1,b=0,y="",w=o,x=i,E=r,C=y;g;)switch(m=b,b=Dr()){case 40:if(108!=m&&58==Or(C,d-1)){-1!=Sr(C+=Cr(Fr(b),"&","&\f"),"&\f",wr(s?l[s-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Fr(b);break;case 9:case 10:case 13:case 32:C+=Vr(m);break;case 92:C+=Kr(Br()-1,7);continue;case 47:switch(zr()){case 42:case 47:$r(Qr(qr(Dr(),Br()),t,n,c),c);break;default:C+="/"}break;case 123*h:l[s++]=Nr(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(C=Cr(C,/\f/g,"")),p>0&&Nr(C)-d&&$r(p>32?Jr(C+";",r,n,d-1,c):Jr(Cr(C," ","")+";",r,n,d-2,c),c);break;case 59:C+=";";default:if($r(E=Yr(C,t,n,s,u,o,l,y,w=[],x=[],d,i),i),123===b)if(0===u)Gr(C,t,E,E,w,i,d,l,x);else switch(99===f&&110===Or(C,3)?100:f){case 100:case 108:case 109:case 115:Gr(e,E,E,r&&$r(Yr(e,E,E,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:Gr(C,E,E,E,[""],x,0,l,x)}}s=u=p=0,h=v=1,y=C="",d=a;break;case 58:d=1+Nr(C),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Tr())continue;switch(C+=xr(b),b*h){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[s++]=(Nr(C)-1)*v,v=1;break;case 64:45===zr()&&(C+=Fr(Dr())),f=zr(),u=d=Nr(y=C+=Ur(Br())),b++;break;case 45:45===m&&2==Nr(C)&&(h=0)}}return i}function Yr(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),h=0,g=0,v=0;h<r;++h)for(var b=0,y=kr(e,f+1,f=wr(g=a[h])),w=e;b<m;++b)(w=Er(g>0?p[b]+" "+y:Cr(y,/&\f/g,p[b])))&&(c[v++]=w);return Mr(e,t,n,0===o?hr:l,c,s,u,d)}function Qr(e,t,n,r){return Mr(e,t,n,mr,xr(jr),kr(e,2,-2),0,r)}function Jr(e,t,n,r,o){return Mr(e,t,n,gr,kr(e,0,r),kr(e,r+1,-1),r,o)}function Zr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function eo(e,t,n,r){switch(e.type){case yr:if(e.children.length)break;case vr:case gr:return e.return=e.return||e.value;case mr:return"";case br:return e.return=e.value+"{"+Zr(e.children,r)+"}";case hr:if(!Nr(e.value=e.props.join(",")))return""}return Nr(n=Zr(e.children,r))?e.return=e.value+"{"+n+"}":""}function to(e,t){var n=t.path,r=t.parentSelectors;mt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var no,ro=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&to("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},oo=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&to("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},io="data-ant-cssinjs-cache-path",ao="_FILE_STYLE__",lo=!0;function co(e){return function(){if(!no&&(no={},sn())){var e=document.createElement("div");e.className=io,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=ln(e.split(":"),2),n=t[0],r=t[1];no[n]=r}));var n,r=document.querySelector("style[".concat(io,"]"));r&&(lo=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!no[e]}var so="_skip_check_",uo="_multi_value_";function fo(e){return Zr(Xr(e),eo).replace(/\{%%%\:[^;];}/g,";")}var po=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,s=n.path,u=n.hashPriority,d=n.transformers,f=void 0===d?[]:d,p=n.linters,m=void 0===p?[]:p,h="",g={};function v(t){var r=t.getName(l);if(!g[r]){var o=ln(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var b=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 b.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)v(r);else{var c=f.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"!==gt(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===gt(e)&&e&&(so in e||uo in e)}(r)){var d;function C(e,t){"production"===process.env.NODE_ENV||"object"===gt(r)&&null!=r&&r[so]||[ro,oo].concat(Qt(m)).forEach((function(n){return n(e,t,{path:s,hashId:l,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;pr[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),o=t.getName(l)),h+="".concat(n,":").concat(o,";")}var f=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===gt(r)&&null!=r&&r[uo]&&Array.isArray(f)?f.forEach((function(e){C(t,e)})):C(t,f)}else{var p=!1,b=t.trim(),y=!1;(o||i)&&l?b.startsWith("@")?p=!0:b=function(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(Qt(n.slice(1))).join(" ")})).join(",")}(t,l,u):!o||l||"&"!==b&&""!==b||(b="",y=!0);var w=ln(e(r,n,{root:y,injectHash:p,parentSelectors:[].concat(Qt(a),[b])}),2),x=w[0],E=w[1];g=wt(wt({},g),E),h+="".concat(b).concat(x)}}))}})),o?c&&(h="@layer ".concat(c.name," {").concat(h,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):h="{".concat(h,"}"),[h,g]};function mo(e,t){return cn("".concat(e.join("%")).concat(t))}function ho(){return null}var go="style";function vo(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,d=o.useContext(Rn),f=d.autoClear,p=d.mock,m=d.defaultCache,h=d.hashPriority,g=d.container,v=d.ssrInline,b=d.transformers,y=d.linters,w=d.cache,x=d.layer,E=n._tokenKey,C=[E];x&&C.push("layer"),C.push.apply(C,Qt(r));var S=Fn;"production"!==process.env.NODE_ENV&&void 0!==p&&(S="client"===p);var O=or(go,C,(function(){var e=C.join("|");if(co(e)){var n=function(e){var t=no[e],n=null;if(t&&sn())if(lo)n=ao;else{var r=document.querySelector("style[".concat($n,'="').concat(no[e],'"]'));r?n=r.innerHTML:delete no[e]}return[n,t]}(e),o=ln(n,2),l=o[0],s=o[1];if(l)return[l,E,s,{},c,u]}var d=t(),f=ln(po(d,{hashId:i,hashPriority:h,layer:x?a:void 0,path:r.join("-"),transformers:b,linters:y}),2),p=f[0],m=f[1],g=fo(p),v=mo(C,g);return[g,E,v,m,c,u]}),(function(e,t){var n=ln(e,3)[2];(t||f)&&Fn&&wn(n,{mark:$n})}),(function(e){var t=ln(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(S&&n!==ao){var i={mark:$n,prepend:!x&&"queue",attachTo:g,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){xn(fo(o[e]),"_layer-".concat(e),wt(wt({},i),{},{prepend:!0}))}));var d=xn(n,r,i);d[_n]=w.instanceId,d.setAttribute(Nn,E),"production"!==process.env.NODE_ENV&&d.setAttribute(In,C.join("|")),s.forEach((function(e){xn(fo(o[e]),"_effect-".concat(e),i)}))}})),k=ln(O,3),N=k[0],$=k[1],I=k[2];return function(e){var t;return t=v&&!S&&m?o.createElement("style",et({},bt(bt({},Nn,$),$n,I),{dangerouslySetInnerHTML:{__html:N}})):o.createElement(ho,null),o.createElement(o.Fragment,null,t,e)}}var bo="cssVar";bt(bt(bt({},go,(function(e,t,n){var r=ln(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=Kn(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Kn(fo(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),dr,(function(e,t,n){var r=ln(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,Kn(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),bo,(function(e,t,n){var r=ln(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Kn(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var yo=function(){function e(t,n){jt(this,e),bt(this,"name",void 0),bt(this,"style",void 0),bt(this,"_keyframe",!0),this.name=t,this.style=n}return Mt(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 wo(e){return e.notSplit=!0,e}wo(["borderTop","borderBottom"]),wo(["borderTop"]),wo(["borderBottom"]),wo(["borderLeft","borderRight"]),wo(["borderLeft"]),wo(["borderRight"]);var xo=t.createContext({});function Eo(e){return on(e)||Gt(e)||Yt(e)||an()}function Co(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function So(e,t,n,r){if(!t.length)return n;var o,i=Eo(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?Qt(e):wt({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=So(o[a],l,n,r),o}function Oo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Co(e,t.slice(0,-1))?e:So(e,t,n,r)}function ko(e){return Array.isArray(e)?[]:{}}var No="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function $o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=ko(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=Co(e,n),c=Array.isArray(l);if(c||"object"===gt(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=Co(r,n);c?r=Oo(r,n,[]):s&&"object"===gt(s)||(r=Oo(r,n,ko(l))),No(l).forEach((function(e){t([].concat(Qt(n),[e]),a)}))}}else r=Oo(r,n,l)}([])})),r}function Io(){}let _o=null;let Ro=Io;"production"!==process.env.NODE_ENV&&(Ro=(e,t,n)=>{mt(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(_o=null,ft())});const Po=o.createContext({}),jo="production"!==process.env.NODE_ENV?e=>{const{strict:t}=o.useContext(Po),n=(n,r,o)=>{if(!n)if(!1===t&&"deprecated"===r){const t=_o;_o||(_o={}),_o[e]=_o[e]||[],_o[e].includes(o||"")||_o[e].push(o||""),t||console.warn("[antd] There exists deprecated usage in your code:",_o)}else"production"!==process.env.NODE_ENV&&Ro(n,e,o)};return n.deprecated=(e,t,r,o)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=Io,e};var Ao=Ro,Mo=t.createContext(void 0),To={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"},Do=wt(wt({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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 zo={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Bo={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"]},Do),timePickerLocale:Object.assign({},zo)},Lo="${label} is not a valid ${type}",Ho={locale:"en",Pagination:To,DatePicker:Bo,TimePicker:zo,Calendar:Bo,global:{placeholder:"Please select"},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:Lo,method:Lo,array:Lo,object:Lo,number:Lo,date:Lo,boolean:Lo,integer:Lo,float:Lo,regexp:Lo,email:Lo,url:Lo,hex:Lo},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 Fo=Object.assign({},Ho.Modal),Vo=[];const Ko=()=>Vo.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Ho.Modal);function Wo(){return Fo}const qo=t.createContext(void 0),Uo=(e,t)=>{const n=o.useContext(qo),r=o.useMemo((()=>{var r;const o=t||Ho[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,o.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Ho.locale:e}),[n])]},Xo="internalMark",Go=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if("production"!==process.env.NODE_ENV){const e=jo("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===Xo,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}o.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Vo.push(t),Fo=Ko(),()=>{Vo=Vo.filter((e=>e!==t)),Fo=Ko()}}Fo=Object.assign({},Ho.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=o.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return o.createElement(qo.Provider,{value:i},n)};function Yo(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Qo(e){return Math.min(1,Math.max(0,e))}function Jo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Zo(e){return e<=1?"".concat(100*Number(e),"%"):e}function ei(e){return 1===e.length?"0"+e:String(e)}function ti(e,t,n){e=Yo(e,255),t=Yo(t,255),n=Yo(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function ni(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ri(e,t,n){e=Yo(e,255),t=Yo(t,255),n=Yo(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function oi(e,t,n,r){var o=[ei(Math.round(e).toString(16)),ei(Math.round(t).toString(16)),ei(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function ii(e){return ai(e)/255}function ai(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(Go.displayName="LocaleProvider");var li={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ci(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,l=null,c=null,s=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(li[e])e=li[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=fi.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=fi.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=fi.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=fi.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=fi.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=fi.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=fi.hex8.exec(e),n)return{r:ai(n[1]),g:ai(n[2]),b:ai(n[3]),a:ii(n[4]),format:t?"name":"hex8"};if(n=fi.hex6.exec(e),n)return{r:ai(n[1]),g:ai(n[2]),b:ai(n[3]),format:t?"name":"hex"};if(n=fi.hex4.exec(e),n)return{r:ai(n[1]+n[1]),g:ai(n[2]+n[2]),b:ai(n[3]+n[3]),a:ii(n[4]+n[4]),format:t?"name":"hex8"};if(n=fi.hex3.exec(e),n)return{r:ai(n[1]+n[1]),g:ai(n[2]+n[2]),b:ai(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(pi(e.r)&&pi(e.g)&&pi(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Yo(t,255),g:255*Yo(n,255),b:255*Yo(r,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):pi(e.h)&&pi(e.s)&&pi(e.v)?(a=Zo(e.s),l=Zo(e.v),o=function(e,t,n){e=6*Yo(e,360),t=Yo(t,100),n=Yo(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,a,l),s=!0,u="hsv"):pi(e.h)&&pi(e.s)&&pi(e.l)&&(a=Zo(e.s),c=Zo(e.l),o=function(e,t,n){var r,o,i;if(e=Yo(e,360),t=Yo(t,100),n=Yo(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=ni(l,a,e+1/3),o=ni(l,a,e),i=ni(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Jo(i),{ok:s,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var si="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ui="[\\s|\\(]+(".concat(si,")[,|\\s]+(").concat(si,")[,|\\s]+(").concat(si,")\\s*\\)?"),di="[\\s|\\(]+(".concat(si,")[,|\\s]+(").concat(si,")[,|\\s]+(").concat(si,")[,|\\s]+(").concat(si,")\\s*\\)?"),fi={CSS_UNIT:new RegExp(si),rgb:new RegExp("rgb"+ui),rgba:new RegExp("rgba"+di),hsl:new RegExp("hsl"+ui),hsla:new RegExp("hsla"+di),hsv:new RegExp("hsv"+ui),hsva:new RegExp("hsva"+di),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function pi(e){return Boolean(fi.CSS_UNIT.exec(String(e)))}var mi=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=ci(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Jo(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=ri(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=ri(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=ti(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=ti(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),oi(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[ei(Math.round(e).toString(16)),ei(Math.round(t).toString(16)),ei(Math.round(n).toString(16)),ei((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Yo(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Yo(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+oi(this.r,this.g,this.b,!1),t=0,n=Object.entries(li);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Qo(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Qo(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Qo(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Qo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),hi=2,gi=.16,vi=.05,bi=.05,yi=.15,wi=5,xi=4,Ei=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ci(e){var t=ri(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Si(e){var t=e.r,n=e.g,r=e.b;return"#".concat(oi(t,n,r,!1))}function Oi(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-hi*t:Math.round(e.h)+hi*t:n?Math.round(e.h)+hi*t:Math.round(e.h)-hi*t)<0?r+=360:r>=360&&(r-=360),r}function ki(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-gi*t:t===xi?e.s+gi:e.s+vi*t)>1&&(r=1),n&&t===wi&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Ni(e,t,n){var r;return(r=n?e.v+bi*t:e.v-yi*t)>1&&(r=1),Number(r.toFixed(2))}function $i(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=ci(e),o=wi;o>0;o-=1){var i=Ci(r),a=Si(ci({h:Oi(i,o,!0),s:ki(i,o,!0),v:Ni(i,o,!0)}));n.push(a)}n.push(Si(r));for(var l=1;l<=xi;l+=1){var c=Ci(r),s=Si(ci({h:Oi(c,l),s:ki(c,l),v:Ni(c,l)}));n.push(s)}return"dark"===t.theme?Ei.map((function(e){var r,o,i,a=e.index,l=e.opacity;return Si((r=ci(t.backgroundColor||"#141414"),o=ci(n[a]),i=100*l/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var Ii={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"},_i=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_i.primary=_i[5];var Ri=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ri.primary=Ri[5];var Pi=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Pi.primary=Pi[5];var ji=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ji.primary=ji[5];var Ai=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ai.primary=Ai[5];var Mi=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Mi.primary=Mi[5];var Ti=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ti.primary=Ti[5];var Di=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Di.primary=Di[5];var zi=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];zi.primary=zi[5];var Bi=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Bi.primary=Bi[5];var Li=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Li.primary=Li[5];var Hi=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Hi.primary=Hi[5];var Fi=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Fi.primary=Fi[5];var Vi={red:_i,volcano:Ri,orange:Pi,gold:ji,yellow:Ai,lime:Mi,green:Ti,cyan:Di,blue:zi,geekblue:Bi,purple:Li,magenta:Hi,grey:Fi};const Ki={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"},Wi=Object.assign(Object.assign({},Ki),{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});const qi=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function Ui(e){return(e+8)/e}const Xi=e=>{const t=function(e){const t=new Array(10).fill(null).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:Ui(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 Gi=(e,t)=>new mi(e).setAlpha(t).toRgbString(),Yi=(e,t)=>new mi(e).darken(t).toHexString(),Qi=e=>{const t=$i(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]}},Ji=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Gi(r,.88),colorTextSecondary:Gi(r,.65),colorTextTertiary:Gi(r,.45),colorTextQuaternary:Gi(r,.25),colorFill:Gi(r,.15),colorFillSecondary:Gi(r,.06),colorFillTertiary:Gi(r,.04),colorFillQuaternary:Gi(r,.02),colorBgLayout:Yi(n,4),colorBgContainer:Yi(n,0),colorBgElevated:Yi(n,0),colorBgSpotlight:Gi(r,.85),colorBgBlur:"transparent",colorBorder:Yi(n,15),colorBorderSecondary:Yi(n,6)}};const Zi=Tn((function(e){Ii.pink=Ii.magenta,Vi.pink=Vi.magenta;const t=Object.keys(Ki).map((t=>{const n=e[t]===Ii[t]?Vi[t]:$i(e[t]);return new Array(10).fill(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,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),m=n(a),h=n(l),g=r(s,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new mi("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Qi,generateNeutralColorPalettes:Ji})),Xi(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},qi(r))}(e))})),ea={token:Wi,override:{override:Wi},hashed:!0},ta=t.createContext(ea),na="ant",ra="anticon",oa=["outlined","borderless","filled"],ia=o.createContext({getPrefixCls:(e,t)=>t||(e?`${na}-${e}`:na),iconPrefixCls:ra}),aa=`-ant-${Date.now()}-${Math.random()}`;function la(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 mi(e),i=$i(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().setAlpha(.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 mi(t.primaryColor),i=$i(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.setAlpha(.12*e.getAlpha())));const a=new mi(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),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);sn()?xn(n,`${aa}-dynamic-theme`):"production"!==process.env.NODE_ENV&&Ao(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ca=o.createContext(!1),sa=e=>{let{children:t,disabled:n}=e;const r=o.useContext(ca);return o.createElement(ca.Provider,{value:null!=n?n:r},t)},ua=o.createContext(void 0),da=e=>{let{children:t,size:n}=e;const r=o.useContext(ua);return o.createElement(ua.Provider,{value:n||r},t)};var fa=Mt((function e(){jt(this,e)})),pa="CALC_UNIT",ma=new RegExp(pa,"g");function ha(e){return"number"==typeof e?"".concat(e).concat(pa):e}var ga=function(e){Dt(n,e);var t=Ht(n);function n(e,r){var o;jt(this,n),bt(Lt(o=t.call(this)),"result",""),bt(Lt(o),"unitlessCssVar",void 0),bt(Lt(o),"lowPriority",void 0);var i=gt(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=ha(e):"string"===i&&(o.result=e),o}return Mt(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(ha(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(ha(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?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 n?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(ma,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(fa),va=function(e){Dt(n,e);var t=Ht(n);function n(e){var r;return jt(this,n),bt(Lt(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return Mt(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(fa),ba=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 ya(e){var t=o.useRef();t.current=e;var n=o.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 wa(e){var t=o.useRef(!1),n=ln(o.useState(e),2),r=n[0],i=n[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||i(e)}]}function xa(e){return void 0!==e}function Ea(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=ln(wa((function(){return xa(o)?o:xa(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=ya(i),p=ln(wa([u]),2),m=p[0],h=p[1];return Yn((function(){var e=m[0];c!==e&&f(c,e)}),[m]),Yn((function(){xa(o)||s(o)}),[o]),[d,ya((function(e,t){s(e,t),h([u],t)}))]}function Ca(e,t,n,r){var o=wt({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=ln(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&mt(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=wt(wt({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Sa="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Oa=!0;function ka(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Sa)return Object.assign.apply(Object,[{}].concat(t));Oa=!1;var r={};return t.forEach((function(e){"object"===gt(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Oa=!0,r}var Na={};function $a(){}function Ia(e,t,n){var r;return"function"==typeof n?n(ka(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var _a=function(){function e(){jt(this,e),bt(this,"map",new Map),bt(this,"objectIDMap",new WeakMap),bt(this,"nextID",0),bt(this,"lastAccessBeat",new Map),bt(this,"accessBeat",0)}return Mt(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"===gt(e)?"obj_".concat(t.getObjectID(e)):"".concat(gt(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}(),Ra=new _a;var Pa=function(){return{}};const ja=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Aa="5.20.1";function Ma(e){return e>=0&&e<=255}function Ta(e,t){const{r:n,g:r,b:o,a:i}=new mi(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new mi(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(Ma(t)&&Ma(i)&&Ma(s))return new mi({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new mi({r:n,g:r,b:o,a:1}).toRgbString()}var Da=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 za(e){const{override:t}=e,n=Da(e,["override"]),r=Object.assign({},t);Object.keys(Wi).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:Ta(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:Ta(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ta(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*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:Ta(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 mi("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new mi("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new mi("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 Ba=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 La={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},Ha={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Fa={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},Va=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Ba(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=za(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Ba(n,["theme"]);let i=o;r&&(i=Va(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Ka(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t.useContext(ta),a=`${Aa}-${n||""}`,l=r||Zi,[c,s,u]=fr(l,[Wi,e],{salt:a,override:o,getComputedToken:Va,formatToken:za,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:La,ignore:Ha,preserve:Fa}});return[l,u,n?s:"",c,i]}const Wa=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),qa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ua=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Xa=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"}}}),Ga=e=>({outline:`${Vn(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ya=e=>({"&:focus-visible":Object.assign({},Ga(e))}),Qa=(e,t)=>{const[n,r]=Ka();return vo({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${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"}})}]))},{genStyleHooks:Ja,genComponentStyleHook:Za,genSubStyleComponent:el}=function(e){var n=e.useCSP,r=void 0===n?Pa:n,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function s(e,n,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(e)?e:[e,e],d=ln(u,1)[0],f=u.join("-");return function(e){var u,p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,h=o(),g=h.theme,v=h.realToken,b=h.hashId,y=h.token,w=h.cssVar,x=i(),E=x.rootPrefixCls,C=x.iconPrefixCls,S=r(),O=w?"css":"js",k=(u=function(){var e=new Set;return w&&Object.keys(s.unitless||{}).forEach((function(t){e.add(Wn(t,w.prefix)),e.add(Wn(t,ba(d,w.prefix)))})),function(e,t){var n="css"===e?ga:va;return function(e){return new n(e,t)}}(O,e)},p=[O,d,null==w?void 0:w.prefix],t.useMemo((function(){var e=Ra.get(p);if(e)return e;var t=u();return Ra.set(p,t),t}),p)),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 Vn(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 Vn(e)})).join(","),")")}}}(O),$=N.max,I=N.min,_={theme:g,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:{name:"antd"},order:s.order||-999};vo(wt(wt({},_),{},{clientOnly:!1,path:["Shared",E]}),(function(){return"function"==typeof a?a(y):[]}));var R=vo(wt(wt({},_),{},{path:[f,e,C]}),(function(){if(!1===s.injectStyle)return[];var t=function(e){var t,n=e,r=$a;return Sa&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return Oa&&t.add(n),e[n]}}),r=function(e,n){var r;Na[e]={global:Array.from(t),component:wt(wt({},null===(r=Na[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(y),r=t.token,o=t.flush,i=Ia(d,v,c),a=".".concat(e),u=Ca(d,v,i,{deprecatedTokens:s.deprecatedTokens});w&&"object"===gt(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(Wn(e,ba(d,w.prefix)),")")}));var f=ka(r,{componentCls:a,prefixCls:e,iconCls:".".concat(C),antCls:".".concat(E),calc:k,max:$,min:I},w?i:u),p=n(f,{hashId:b,prefixCls:e,rootPrefixCls:E,iconPrefixCls:C});o(d,u);var h="function"==typeof l?l(f,e,m,s.resetFont):null;return[!1===s.resetStyle?null:h,p]}));return[R,b]}}return{genStyleHooks:function(e,n,r,i){var a=Array.isArray(e)?e[0]:e;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=wt(wt({},"function"==typeof c?c(e):{}),{},bt({},l("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[l(e)]=u[e]}));var f=wt(wt({},i),{},{unitless:d,prefixToken:l}),p=s(e,n,r,f),m=function(e,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(e,n){var r=e.key,o=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=t.useContext(Rn),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(Qt(e.path),[r,s,p]),h=or(bo,m,(function(){var e=n(),t=ln(Un(e,r,{prefix:o,unitless:i,ignore:a,scope:s}),2),l=t[0],c=t[1];return[l,c,mo(m,c),r]}),(function(e){var t=ln(e,3)[2];Fn&&wn(t,{mark:$n})}),(function(e){var t=ln(e,3),n=t[1],o=t[2];if(n){var i=xn(n,o,{mark:$n,prepend:"queue",attachTo:f,priority:-999});i[_n]=d,i.setAttribute(Nn,r)}}))}({path:[e],prefix:d.prefix,key:d.key,unitless:i,ignore:s,token:f,scope:l},(function(){var t=Ia(e,f,n),o=Ca(e,f,t,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(t).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?t.createElement(t.Fragment,null,t.createElement(u,{rootCls:n,cssVar:r,component:e}),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=ln(p(e,t),2)[1],r=ln(m(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,wt({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=t.useContext(ia);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=Ka();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:n}=t.useContext(ia);return Qa(n,e),null!=e?e:{}},getResetStyles:e=>[{"&":Xa(e)}],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:()=>La});function tl(e,t){return ja.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 nl=Object.assign({},o),{useId:rl}=nl,ol=void 0===rl?()=>"":rl;var il=["children"],al=o.createContext({});function ll(e){var t=e.children,n=En(e,il);return o.createElement(al.Provider,{value:n},t)}var cl=function(e){Dt(n,e);var t=Ht(n);function n(){return jt(this,n),t.apply(this,arguments)}return Mt(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);var sl="none",ul="appear",dl="enter",fl="leave",pl="none",ml="prepare",hl="start",gl="active",vl="end",bl="prepared";function yl(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 wl=function(e,t){var n={animationend:yl("Animation","AnimationEnd"),transitionend:yl("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(sn(),"undefined"!=typeof window?window:{}),xl={};if(sn()){var El=document.createElement("div");xl=El.style}var Cl={};function Sl(e){if(Cl[e])return Cl[e];var t=wl[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 xl)return Cl[e]=t[i],Cl[e]}return""}var Ol=Sl("animationend"),kl=Sl("transitionend"),Nl=!(!Ol||!kl),$l=Ol||"animationend",Il=kl||"transitionend";function _l(e,t){if(!e)return null;if("object"===gt(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Rl=function(e){var n=t.useRef();function r(t){t&&(t.removeEventListener(Il,e),t.removeEventListener($l,e))}return o.useEffect((function(){return function(){r(n.current)}}),[]),[function(t){n.current&&n.current!==t&&r(n.current),t&&t!==n.current&&(t.addEventListener(Il,e),t.addEventListener($l,e),n.current=t)},r]},Pl=sn()?t.useLayoutEffect:t.useEffect,jl=[ml,hl,gl,vl],Al=[ml,bl],Ml=!1,Tl=!0;function Dl(e){return e===gl||e===vl}var zl=function(e,t,n){var r=ln(wa(pl),2),i=r[0],a=r[1],l=function(){var e=o.useRef(null);function t(){rn.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=rn((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=ln(l,2),s=c[0],u=c[1];var d=t?Al:jl;return Pl((function(){if(i!==pl&&i!==vl){var e=d.indexOf(i),t=d[e+1],r=n(i);r===Ml?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),o.useEffect((function(){return function(){u()}}),[]),[function(){a(ml,!0)},i]};function Bl(e,n,r,i){var a,l,c,s=i.motionEnter,u=void 0===s||s,d=i.motionAppear,f=void 0===d||d,p=i.motionLeave,m=void 0===p||p,h=i.motionDeadline,g=i.motionLeaveImmediately,v=i.onAppearPrepare,b=i.onEnterPrepare,y=i.onLeavePrepare,w=i.onAppearStart,x=i.onEnterStart,E=i.onLeaveStart,C=i.onAppearActive,S=i.onEnterActive,O=i.onLeaveActive,k=i.onAppearEnd,N=i.onEnterEnd,$=i.onLeaveEnd,I=i.onVisibleChanged,_=ln(wa(),2),R=_[0],P=_[1],j=(a=sl,l=ln(o.useReducer((function(e){return e+1}),0),2)[1],c=o.useRef(a),[ya((function(){return c.current})),ya((function(e){c.current="function"==typeof e?e(c.current):e,l()}))]),A=ln(j,2),M=A[0],T=A[1],D=ln(wa(null),2),z=D[0],B=D[1],L=M(),H=t.useRef(!1),F=t.useRef(null);function V(){return r()}var K=t.useRef(!1);function W(){T(sl),B(null,!0)}var q=ya((function(e){var t=M();if(t!==sl){var n=V();if(!e||e.deadline||e.target===n){var r,o=K.current;t===ul&&o?r=null==k?void 0:k(n,e):t===dl&&o?r=null==N?void 0:N(n,e):t===fl&&o&&(r=null==$?void 0:$(n,e)),o&&!1!==r&&W()}}})),U=ln(Rl(q),1)[0],X=function(e){switch(e){case ul:return bt(bt(bt({},ml,v),hl,w),gl,C);case dl:return bt(bt(bt({},ml,b),hl,x),gl,S);case fl:return bt(bt(bt({},ml,y),hl,E),gl,O);default:return{}}},G=o.useMemo((function(){return X(L)}),[L]),Y=ln(zl(L,!e,(function(e){if(e===ml){var t=G[ml];return t?t(V()):Ml}var n;J in G&&B((null===(n=G[J])||void 0===n?void 0:n.call(G,V(),null))||null);return J===gl&&L!==sl&&(U(V()),h>0&&(clearTimeout(F.current),F.current=setTimeout((function(){q({deadline:!0})}),h))),J===bl&&W(),Tl})),2),Q=Y[0],J=Y[1],Z=Dl(J);K.current=Z,Pl((function(){P(n);var t,r=H.current;H.current=!0,!r&&n&&f&&(t=ul),r&&n&&u&&(t=dl),(r&&!n&&m||!r&&g&&!n&&m)&&(t=fl);var o=X(t);t&&(e||o[ml])?(T(t),Q()):T(sl)}),[n]),t.useEffect((function(){(L===ul&&!f||L===dl&&!u||L===fl&&!m)&&T(sl)}),[f,u,m]),t.useEffect((function(){return function(){H.current=!1,clearTimeout(F.current)}}),[]);var ee=o.useRef(!1);t.useEffect((function(){R&&(ee.current=!0),void 0!==R&&L===sl&&((ee.current||R)&&(null==I||I(R)),ee.current=!0)}),[R,L]);var te=z;return G[ml]&&J===hl&&(te=wt({transition:"none"},te)),[L,J,te,null!=R?R:n]}var Ll=function(e){var n=e;"object"===gt(e)&&(n=e.transitionSupport);var r=o.forwardRef((function(e,r){var i=e.visible,a=void 0===i||i,l=e.removeOnLeave,c=void 0===l||l,s=e.forceRender,u=e.children,d=e.motionName,f=e.leavedClassName,p=e.eventProps,m=function(e,t){return!(!e.motionName||!n||!1===t)}(e,o.useContext(al).motion),h=t.useRef(),g=t.useRef();var v=ln(Bl(m,a,(function(){try{return h.current instanceof HTMLElement?h.current:Et(g.current)}catch(e){return null}}),e),4),b=v[0],y=v[1],w=v[2],x=v[3],E=o.useRef(x);x&&(E.current=!0);var C,S=o.useCallback((function(e){h.current=e,St(r,e)}),[r]),O=wt(wt({},p),{},{visible:a});if(u)if(b===sl)C=x?u(wt({},O),S):!c&&E.current&&f?u(wt(wt({},O),{},{className:f}),S):s||!c&&!f?u(wt(wt({},O),{},{style:{display:"none"}}),S):null;else{var k;y===ml?k="prepare":Dl(y)?k="active":y===hl&&(k="start");var N=_l(d,"".concat(b,"-").concat(k));C=u(wt(wt({},O),{},{className:Ze(_l(d,b),bt(bt({},N,N&&k),d,"string"==typeof d)),style:w}),S)}else C=null;o.isValidElement(C)&&Nt(C)&&(C.ref||(C=o.cloneElement(C,{ref:S})));return o.createElement(cl,{ref:g},C)}));return r.displayName="CSSMotion",r}(Nl),Hl="add",Fl="keep",Vl="remove",Kl="removed";function Wl(e){var t;return wt(wt({},t=e&&"object"===gt(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function ql(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Wl)}var Ul=["component","children","onVisibleChanged","onAllRemoved"],Xl=["status"],Gl=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var Yl=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ll,t=function(t){Dt(r,t);var n=Ht(r);function r(){var e;jt(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return bt(Lt(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),bt(Lt(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:wt(wt({},e),{},{status:Kl})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Kl})).length})),e}return Mt(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,l=r.onVisibleChanged,c=r.onAllRemoved,s=En(r,Ul),u=i||o.Fragment,d={};return Gl.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,o.createElement(u,s,n.map((function(n,r){var i=n.status,s=En(n,Xl),u=i===Hl||i===Fl;return o.createElement(e,et({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){(null==l||l(e,{key:s.key}),e)||0===t.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(wt(wt({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=ql(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=ql(e),a=ql(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 wt(wt({},e),{},{status:Hl})}))),r=i),n.push(wt(wt({},l),{},{status:Fl})),r+=1,t=!0;break}}t||n.push(wt(wt({},e),{},{status:Vl}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return wt(wt({},e),{},{status:Hl})}))));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!==Vl}))).forEach((function(t){t.key===e&&(t.status=Fl)}))})),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!==Kl||e.status!==Vl}))}}}]),r}(o.Component);return bt(t,"defaultProps",{component:"div"}),t}(Nl);function Ql(e){const{children:t}=e,[,n]=Ka(),{motion:r}=n,i=o.useRef(!1);return i.current=i.current||!1===r,i.current?o.createElement(ll,{motion:r},t):t}const Jl=o.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return jo("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(Jl.displayName="PropWarning");var Zl="production"!==process.env.NODE_ENV?Jl:()=>null,ec=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 tc=!1;const nc="production"!==process.env.NODE_ENV?e=>{"production"!==process.env.NODE_ENV&&Ao(!tc,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,rc=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let oc,ic,ac,lc;function cc(){return oc||na}function sc(){return ic||ra}const uc=()=>({getPrefixCls:(e,t)=>t||(e?`${cc()}-${e}`:cc()),getIconPrefixCls:sc,getRootPrefixCls:()=>oc||cc(),getTheme:()=>ac,holderRender:lc}),dc=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:h,legacyLocale:g,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:w,segmented:x,statistic:E,spin:C,calendar:S,carousel:O,cascader:k,collapse:N,typography:$,checkbox:I,descriptions:_,divider:R,drawer:P,skeleton:j,steps:A,image:M,layout:T,list:D,mentions:z,modal:B,progress:L,result:H,slider:F,breadcrumb:V,menu:K,pagination:W,input:q,textArea:U,empty:X,badge:G,radio:Y,rate:Q,switch:J,transfer:Z,avatar:ee,message:te,tag:ne,table:re,card:oe,tabs:ie,timeline:ae,timePicker:le,upload:ce,notification:se,tree:ue,colorPicker:de,datePicker:fe,rangePicker:pe,flex:me,wave:he,dropdown:ge,warning:ve,tour:be,floatButtonGroup:ye,variant:we,inputNumber:xe,treeSelect:Ee}=e,Ce=o.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||v.getPrefixCls("");return t?`${o}-${t}`:o}),[v.getPrefixCls,e.prefixCls]),Se=b||v.iconPrefixCls||ra,Oe=n||v.csp;Qa(Se,Oe);const ke=function(e,t,n){var r,o;const i=jo("ConfigProvider"),a=e||{},l=!1!==a.inherit&&t?t:Object.assign(Object.assign({},ea),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:ea.hashed,cssVar:null==t?void 0:t.cssVar}),c=ol();if("production"!==process.env.NODE_ENV){const e=a.cssVar||l.cssVar,t=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||c);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Ct((()=>{var r,o;if(!e)return t;const i=Object.assign({},l.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const s=`css-var-${c.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof l.cssVar?l.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||s});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:i,cssVar:u})}),[a,l],((e,t)=>e.some(((e,n)=>!Cn(e,t[n],!0)))))}(y,v.theme,{prefixCls:Ce("")});"production"!==process.env.NODE_ENV&&(tc=tc||!!ke);const Ne={csp:Oe,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:c||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=m?m:p,popupOverflow:h,getPrefixCls:Ce,iconPrefixCls:Se,theme:ke,segmented:x,statistic:E,spin:C,calendar:S,carousel:O,cascader:k,collapse:N,typography:$,checkbox:I,descriptions:_,divider:R,drawer:P,skeleton:j,steps:A,image:M,input:q,textArea:U,layout:T,list:D,mentions:z,modal:B,progress:L,result:H,slider:F,breadcrumb:V,menu:K,pagination:W,empty:X,badge:G,radio:Y,rate:Q,switch:J,transfer:Z,avatar:ee,message:te,tag:ne,table:re,card:oe,tabs:ie,timeline:ae,timePicker:le,upload:ce,notification:se,tree:ue,colorPicker:de,datePicker:fe,rangePicker:pe,flex:me,wave:he,dropdown:ge,warning:ve,tour:be,floatButtonGroup:ye,variant:we,inputNumber:xe,treeSelect:Ee};if("production"!==process.env.NODE_ENV){jo("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const $e=Object.assign({},v);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&($e[e]=Ne[e])})),rc.forEach((t=>{const n=e[t];n&&($e[t]=n)})),void 0!==r&&($e.button=Object.assign({autoInsertSpace:r},$e.button));const Ie=Ct((()=>$e),$e,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),_e=o.useMemo((()=>({prefixCls:Se,csp:Oe})),[Se,Oe]);let Re=o.createElement(o.Fragment,null,o.createElement(Zl,{dropdownMatchSelectWidth:p}),t);const Pe=o.useMemo((()=>{var e,t,n,r;return $o((null===(e=Ho.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ie.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ie.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Ie,null==l?void 0:l.validateMessages]);Object.keys(Pe).length>0&&(Re=o.createElement(Mo.Provider,{value:Pe},Re)),c&&(Re=o.createElement(Go,{locale:c,_ANT_MARK__:Xo},Re)),(Se||Oe)&&(Re=o.createElement(xo.Provider,{value:_e},Re)),s&&(Re=o.createElement(da,{size:s},Re)),Re=o.createElement(Ql,null,Re);const je=o.useMemo((()=>{const e=ke||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=ec(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Tn(t):Zi,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Tn(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},Wi),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[ke]);return y&&(Re=o.createElement(ta.Provider,{value:je},Re)),Ie.warning&&(Re=o.createElement(Po.Provider,{value:Ie.warning},Re)),void 0!==w&&(Re=o.createElement(sa,{disabled:w},Re)),o.createElement(ia.Provider,{value:Ie},Re)},fc=e=>{const t=o.useContext(ia),n=o.useContext(qo);return o.createElement(dc,Object.assign({parentContext:t,legacyLocale:n},e))};fc.ConfigContext=ia,fc.SizeContext=ua,fc.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(oc=t),void 0!==n&&(ic=n),"holderRender"in e&&(lc=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?ac=r:("production"!==process.env.NODE_ENV&&Ao(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),la(cc(),r)))},fc.useConfig=function(){return{componentDisabled:t.useContext(ca),componentSize:t.useContext(ua)}},Object.defineProperty(fc,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&Ao(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ua)}),"production"!==process.env.NODE_ENV&&(fc.displayName="ConfigProvider");var pc={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 mc(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function hc(e){return function(e){return mc(e)instanceof ShadowRoot}(e)?mc(e):null}function gc(e){return"object"===gt(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===gt(e.icon)||"function"==typeof e.icon)}function vc(){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 bc(e,n,r){return r?t.createElement(e.tag,wt(wt({key:n},vc(e.attrs)),r),(e.children||[]).map((function(t,r){return bc(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,wt({key:n},vc(e.attrs)),(e.children||[]).map((function(t,r){return bc(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function yc(e){return $i(e)[0]}function wc(e){return e?Array.isArray(e)?e:[e]:[]}var xc=["icon","className","onClick","style","primaryColor","secondaryColor"],Ec={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Cc=function(e){var n,r,i,a,l,c=e.icon,s=e.className,u=e.onClick,d=e.style,f=e.primaryColor,p=e.secondaryColor,m=En(e,xc),h=o.useRef(),g=Ec;if(f&&(g={primaryColor:f,secondaryColor:p||yc(f)}),n=h,r=t.useContext(xo),i=r.csp,a=r.prefixCls,l="\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",a&&(l=l.replace(/anticon/g,a)),t.useEffect((function(){var e=hc(n.current);xn(l,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),function(e,t){mt(e,"[@ant-design/icons] ".concat(t))}(gc(c),"icon should be icon definiton, but got ".concat(c)),!gc(c))return null;var v=c;return v&&"function"==typeof v.icon&&(v=wt(wt({},v),{},{icon:v.icon(g.primaryColor,g.secondaryColor)})),bc(v.icon,"svg-".concat(v.name),wt(wt({className:s,onClick:u,style:d,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:h}))};function Sc(e){var t=ln(wc(e),2),n=t[0],r=t[1];return Cc.setTwoToneColors({primaryColor:n,secondaryColor:r})}Cc.displayName="IconReact",Cc.getTwoToneColors=function(){return wt({},Ec)},Cc.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Ec.primaryColor=t,Ec.secondaryColor=n||yc(t),Ec.calculated=!!n};var Oc=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Sc(zi.primary);var kc=o.forwardRef((function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=En(e,Oc),d=o.useContext(xo),f=d.prefixCls,p=void 0===f?"anticon":f,m=d.rootClassName,h=Ze(m,p,bt(bt({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||"loading"===r.name),n),g=l;void 0===g&&c&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=ln(wc(s),2),y=b[0],w=b[1];return o.createElement("span",et({role:"img","aria-label":r.name},u,{ref:t,tabIndex:g,onClick:c,className:h}),o.createElement(Cc,{icon:r,primaryColor:y,secondaryColor:w,style:v}))}));kc.displayName="AntdIcon",kc.getTwoToneColor=function(){var e=Cc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},kc.setTwoToneColor=Sc;var Nc=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:pc}))},$c=o.forwardRef(Nc);
17
+ /**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xOTMuNSAzMDEuN2wtMjEwLjYgMjkyYTMxLjggMzEuOCAwIDAxLTUxLjcgMEwzMTguNSA0ODQuOWMtMy44LTUuMyAwLTEyLjcgNi41LTEyLjdoNDYuOWMxMC4yIDAgMTkuOSA0LjkgMjUuOSAxMy4zbDcxLjIgOTguOCAxNTcuMi0yMThjNi04LjMgMTUuNi0xMy4zIDI1LjktMTMuM0g2OTljNi41IDAgMTAuMyA3LjQgNi41IDEyLjd6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&($c.displayName="CheckCircleFilled");var Ic={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"},_c=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:Ic}))},Rc=o.forwardRef(_c);"production"!==process.env.NODE_ENV&&(Rc.displayName="CloseCircleFilled");var Pc={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"},jc=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:Pc}))},Ac=o.forwardRef(jc);"production"!==process.env.NODE_ENV&&(Ac.displayName="CloseOutlined");var Mc={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"},Tc=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:Mc}))},Dc=o.forwardRef(Tc);"production"!==process.env.NODE_ENV&&(Dc.displayName="ExclamationCircleFilled");var zc={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"},Bc=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:zc}))},Lc=o.forwardRef(Bc);"production"!==process.env.NODE_ENV&&(Lc.displayName="InfoCircleFilled");var Hc="".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]+/),Fc="aria-",Vc="data-";function Kc(e,t){return 0===e.indexOf(t)}function Wc(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}:wt({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Kc(n,Fc))||t.data&&Kc(n,Vc)||t.attr&&Hc.includes(n))&&(r[n]=e[n])})),r}function qc(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const Uc=(e,n,r)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof r?r(e.props||{}):r):n;function Xc(e,t){return Uc(e,e,t)}function Gc(e){return null!=e&&e===e.window}function Yc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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 Gc(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Gc(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);Gc(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<o?rn(c):"function"==typeof r&&r()};rn(c)}const Qc=e=>{const[,,,,t]=Ka();return t?`${e}-css-var`:""};var Jc={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Jc.F1&&t<=Jc.F12)return!1;switch(t){case Jc.ALT:case Jc.CAPS_LOCK:case Jc.CONTEXT_MENU:case Jc.CTRL:case Jc.DOWN:case Jc.END:case Jc.ESC:case Jc.HOME:case Jc.INSERT:case Jc.LEFT:case Jc.MAC_FF_META:case Jc.META:case Jc.NUMLOCK:case Jc.NUM_CENTER:case Jc.PAGE_DOWN:case Jc.PAGE_UP:case Jc.PAUSE:case Jc.PRINT_SCREEN:case Jc.RIGHT:case Jc.SHIFT:case Jc.UP:case Jc.WIN_KEY:case Jc.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Jc.ZERO&&e<=Jc.NINE)return!0;if(e>=Jc.NUM_ZERO&&e<=Jc.NUM_MULTIPLY)return!0;if(e>=Jc.A&&e<=Jc.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Jc.SPACE:case Jc.QUESTION_MARK:case Jc.NUM_PLUS:case Jc.NUM_MINUS:case Jc.NUM_PERIOD:case Jc.NUM_DIVISION:case Jc.SEMICOLON:case Jc.DASH:case Jc.EQUALS:case Jc.COMMA:case Jc.PERIOD:case Jc.SLASH:case Jc.APOSTROPHE:case Jc.SINGLE_QUOTE:case Jc.OPEN_SQUARE_BRACKET:case Jc.BACKSLASH:case Jc.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Zc=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,l=void 0===a?4.5:a,c=e.showProgress,s=e.pauseOnHover,u=void 0===s||s,d=e.eventKey,f=e.content,p=e.closable,m=e.closeIcon,h=void 0===m?"x":m,g=e.props,v=e.onClick,b=e.onNoticeClose,y=e.times,w=e.hovering,x=ln(o.useState(!1),2),E=x[0],C=x[1],S=ln(o.useState(0),2),O=S[0],k=S[1],N=ln(o.useState(0),2),$=N[0],I=N[1],_=w||E,R=l>0&&c,P=function(){b(d)};o.useEffect((function(){if(!_&&l>0){var e=Date.now()-$,t=setTimeout((function(){P()}),1e3*l-$);return function(){u&&clearTimeout(t),I(Date.now()-e)}}}),[l,_,y]),o.useEffect((function(){if(!_&&R&&(u||0===$)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+$-t,o=Math.min(r/(1e3*l),1);k(100*o),o<1&&n()}))}(),function(){u&&cancelAnimationFrame(e)}}}),[l,$,_,R,y]);var j=o.useMemo((function(){return"object"===gt(p)&&null!==p?p:p?{closeIcon:h}:{}}),[p,h]),A=Wc(j,!0),M=100-(!O||O<0?0:O>100?100:O),T="".concat(n,"-notice");return o.createElement("div",et({},g,{ref:t,className:Ze(T,i,bt({},"".concat(T,"-closable"),p)),style:r,onMouseEnter:function(e){var t;C(!0),null==g||null===(t=g.onMouseEnter)||void 0===t||t.call(g,e)},onMouseLeave:function(e){var t;C(!1),null==g||null===(t=g.onMouseLeave)||void 0===t||t.call(g,e)},onClick:v}),o.createElement("div",{className:"".concat(T,"-content")},f),p&&o.createElement("a",et({tabIndex:0,className:"".concat(T,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Jc.ENTER||P()},"aria-label":"Close"},A,{onClick:function(e){e.preventDefault(),e.stopPropagation(),P()}}),j.closeIcon),R&&o.createElement("progress",{className:"".concat(T,"-progress"),max:"100",value:M},M+"%"))})),es=t.createContext({}),ts=function(e){var n=e.children,r=e.classNames;return t.createElement(es.Provider,{value:{classNames:r}},n)},ns=["className","style","classNames","styles"],rs=function(e){var n,r,o,i,a,l=e.configList,c=e.placement,s=e.prefixCls,u=e.className,d=e.style,f=e.motion,p=e.onAllNoticeRemoved,m=e.onNoticeClose,h=e.stack,g=t.useContext(es).classNames,v=t.useRef({}),b=ln(t.useState(null),2),y=b[0],w=b[1],x=ln(t.useState([]),2),E=x[0],C=x[1],S=l.map((function(e){return{config:e,key:String(e.key)}})),O=ln((a={offset:8,threshold:3,gap:16},(n=h)&&"object"===gt(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),k=O[0],N=O[1],$=N.offset,I=N.threshold,_=N.gap,R=k&&(E.length>0||S.length<=I),P="function"==typeof f?f(c):f;return t.useEffect((function(){k&&E.length>1&&C((function(e){return e.filter((function(e){return S.some((function(t){var n=t.key;return e===n}))}))}))}),[E,S,k]),t.useEffect((function(){var e,t;k&&v.current[null===(e=S[S.length-1])||void 0===e?void 0:e.key]&&w(v.current[null===(t=S[S.length-1])||void 0===t?void 0:t.key])}),[S,k]),t.createElement(Yl,et({key:c,className:Ze(s,"".concat(s,"-").concat(c),null==g?void 0:g.list,u,bt(bt({},"".concat(s,"-stack"),!!k),"".concat(s,"-stack-expanded"),R)),style:d,keys:S,motionAppear:!0},P,{onAllRemoved:function(){p(c)}}),(function(e,n){var r=e.config,o=e.className,i=e.style,a=e.index,l=r,u=l.key,d=l.times,f=String(u),p=r,h=p.className,b=p.style,w=p.classNames,x=p.styles,O=En(p,ns),N=S.findIndex((function(e){return e.key===f})),I={};if(k){var P=S.length-1-(N>-1?N:a-1),j="top"===c||"bottom"===c?"-50%":"0";if(P>0){var A,M,T;I.height=R?null===(A=v.current[f])||void 0===A?void 0:A.offsetHeight:null==y?void 0:y.offsetHeight;for(var D=0,z=0;z<P;z++){var B;D+=(null===(B=v.current[S[S.length-1-z].key])||void 0===B?void 0:B.offsetHeight)+_}var L=(R?D:P*$)*(c.startsWith("top")?1:-1),H=!R&&null!=y&&y.offsetWidth&&null!==(M=v.current[f])&&void 0!==M&&M.offsetWidth?((null==y?void 0:y.offsetWidth)-2*$*(P<3?P:3))/(null===(T=v.current[f])||void 0===T?void 0:T.offsetWidth):1;I.transform="translate3d(".concat(j,", ").concat(L,"px, 0) scaleX(").concat(H,")")}else I.transform="translate3d(".concat(j,", 0, 0)")}return t.createElement("div",{ref:n,className:Ze("".concat(s,"-notice-wrapper"),o,null==w?void 0:w.wrapper),style:wt(wt(wt({},i),I),null==x?void 0:x.wrapper),onMouseEnter:function(){return C((function(e){return e.includes(f)?e:[].concat(Qt(e),[f])}))},onMouseLeave:function(){return C((function(e){return e.filter((function(e){return e!==f}))}))}},t.createElement(Zc,et({},O,{ref:function(e){N>-1?v.current[f]=e:delete v.current[f]},prefixCls:s,classNames:w,styles:x,className:Ze(h,null==g?void 0:g.notice),style:b,times:d,key:u,eventKey:u,onNoticeClose:m,hovering:k&&E.length>0})))}))};"production"!==process.env.NODE_ENV&&(rs.displayName="NoticeList");var os=o.forwardRef((function(e,t){var r=e.prefixCls,i=void 0===r?"rc-notification":r,a=e.container,l=e.motion,c=e.maxCount,s=e.className,u=e.style,d=e.onAllRemoved,f=e.stack,p=e.renderNotifications,m=ln(o.useState([]),2),h=m[0],g=m[1],v=function(e){var t,n=h.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),g((function(t){return t.filter((function(t){return t.key!==e}))}))};o.useImperativeHandle(t,(function(){return{open:function(e){g((function(t){var n,r=Qt(t),o=r.findIndex((function(t){return t.key===e.key})),i=wt({},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(){g([])}}}));var b=ln(o.useState({}),2),y=b[0],w=b[1];o.useEffect((function(){var e={};h.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]||[]})),w(e)}),[h]);var x=function(e){w((function(t){var n=wt({},t);return(n[e]||[]).length||delete n[e],n}))},E=o.useRef(!1);if(o.useEffect((function(){Object.keys(y).length>0?E.current=!0:E.current&&(null==d||d(),E.current=!1)}),[y]),!a)return null;var C=Object.keys(y);return n.createPortal(o.createElement(o.Fragment,null,C.map((function(e){var t=y[e],n=o.createElement(rs,{key:e,configList:t,placement:e,prefixCls:i,className:null==s?void 0:s(e),style:null==u?void 0:u(e),motion:l,onNoticeClose:v,onAllNoticeRemoved:x,stack:f});return p?p(n,{prefixCls:i,key:e}):n}))),a)}));"production"!==process.env.NODE_ENV&&(os.displayName="Notifications");var is=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],as=function(){return document.body},ls=0;function cs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?as:t,r=e.motion,i=e.prefixCls,a=e.maxCount,l=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=En(e,is),p=ln(o.useState(),2),m=p[0],h=p[1],g=o.useRef(),v=o.createElement(os,{container:m,ref:g,prefixCls:i,motion:r,maxCount:a,className:l,style:c,onAllRemoved:s,stack:u,renderNotifications:d}),b=ln(o.useState([]),2),y=b[0],w=b[1],x=o.useMemo((function(){return{open: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(ls),ls+=1),w((function(e){return[].concat(Qt(e),[{type:"open",config:t}])}))},close:function(e){w((function(t){return[].concat(Qt(t),[{type:"close",key:e}])}))},destroy:function(){w((function(e){return[].concat(Qt(e),[{type:"destroy"}])}))}}}),[]);return o.useEffect((function(){h(n())})),o.useEffect((function(){g.current&&y.length&&(y.forEach((function(e){switch(e.type){case"open":g.current.open(e.config);break;case"close":g.current.close(e.key);break;case"destroy":g.current.destroy()}})),w((function(e){return e.filter((function(e){return!y.includes(e)}))})))}),[y]),[x,v]}var ss={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"},us=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:ss}))},ds=o.forwardRef(us);"production"!==process.env.NODE_ENV&&(ds.displayName="LoadingOutlined");const fs=t.createContext(void 0);"production"!==process.env.NODE_ENV&&(fs.displayName="zIndexContext");const ps=100,ms=1e3,hs={Modal:ps,Drawer:ps,Popover:ps,Popconfirm:ps,Tooltip:ps,Tour:ps},gs={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function vs(e,n){const[,r]=Ka(),o=t.useContext(fs),i=function(e){return e in hs}(e);let a;if(void 0!==n)a=[n,n];else{let t=null!=o?o:0;t+=i?(o?0:r.zIndexPopupBase)+hs[e]:gs[e],a=[void 0===o?n:t,t]}if("production"!==process.env.NODE_ENV){const t=jo(e),o=r.zIndexPopupBase+ms,i=a[0]||0;"production"!==process.env.NODE_ENV&&t(void 0!==n||i<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}const bs=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:h,contentPadding:g,contentBg:v}=e,b=`${t}-notice`,y=new yo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new yo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={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:g,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({},Ua(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:h,[`${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:w,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({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]};var ys=Ja("Message",(e=>{const t=ka(e,{height:150});return[bs(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+ms+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))),ws=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 xs={info:o.createElement(Lc,null),success:o.createElement($c,null),error:o.createElement(Rc,null),warning:o.createElement(Dc,null),loading:o.createElement(ds,null)},Es=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return o.createElement("div",{className:Ze(`${t}-custom-content`,`${t}-${n}`)},r||xs[n],o.createElement("span",null,i))};function Cs(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 Ss=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 Os=3,ks=e=>{let{children:t,prefixCls:n}=e;const r=Qc(n),[i,a,l]=ys(n,r);return i(o.createElement(ts,{classNames:{list:Ze(a,l,r)}},t))},Ns=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(ks,{prefixCls:n,key:r},e)},$s=o.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:l=Os,rtl:c,transitionName:s,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:m}=o.useContext(ia),h=r||d("message"),g=o.createElement("span",{className:`${h}-close-x`},o.createElement(Ac,{className:`${h}-close-icon`})),[v,b]=cs({prefixCls:h,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>Ze({[`${h}-rtl`]:null!=c?c:"rtl"===m}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(h,s),closable:!1,closeIcon:g,duration:l,getContainer:()=>(null==i?void 0:i())||(null==f?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:Ns});return o.useImperativeHandle(t,(()=>Object.assign(Object.assign({},v),{prefixCls:h,message:p}))),b}));let Is=0;function _s(e){const t=o.useRef(null),n=jo("Message"),r=o.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},r=r=>{if(!t.current){"production"!==process.env.NODE_ENV&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const e=()=>{};return e.then=()=>{},e}const{open:i,prefixCls:a,message:l}=t.current,c=`${a}-notice`,{content:s,icon:u,type:d,key:f,className:p,style:m,onClose:h}=r,g=Ss(r,["content","icon","type","key","className","style","onClose"]);let v=f;return null==v&&(Is+=1,v=`antd-message-${Is}`),Cs((t=>(i(Object.assign(Object.assign({},g),{key:v,content:o.createElement(Es,{prefixCls:a,type:d,icon:u},s),placement:"top",className:Ze(d&&`${c}-${d}`,p,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),m),onClose:()=>{null==h||h(),t()}})),()=>{e(v)})))},i={open:r,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=>{i[e]=(t,n,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?l=n:(a=n,l=o);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return r(c)}})),i}),[]);return[r,o.createElement($s,Object.assign({key:"message-holder"},e,{ref:t}))]}function Rs(){Rs=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new _(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",h="completed",g={};function v(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(R([])));E&&E!==n&&r.call(E,a)&&(w=E);var C=y.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==gt(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=N(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?h:p,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function N(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(gt(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(O.prototype),s(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new O(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=R,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Ps(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 js(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ps(i,r,o,a,l,"next",e)}function l(e){Ps(i,r,o,a,l,"throw",e)}a(void 0)}))}}var As,Ms=wt({},i),Ts=Ms.version,Ds=Ms.render,zs=Ms.unmountComponentAtNode;try{Number((Ts||"").split(".")[0])>=18&&(As=Ms.createRoot)}catch(e){}function Bs(e){var t=Ms.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===gt(t)&&(t.usingClientEntryPoint=e)}var Ls="__rc_react_root__";function Hs(e,t){As?function(e,t){Bs(!0);var n=t[Ls]||As(t);Bs(!1),n.render(e),t[Ls]=n}(e,t):function(e,t){Ds(e,t)}(e,t)}function Fs(e){return Vs.apply(this,arguments)}function Vs(){return(Vs=js(Rs().mark((function e(t){return Rs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Ls])||void 0===e||e.unmount(),delete t[Ls]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ks(e){zs(e)}function Ws(e){return qs.apply(this,arguments)}function qs(){return(qs=js(Rs().mark((function e(t){return Rs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===As){e.next=2;break}return e.abrupt("return",Fs(t));case 2:Ks(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Us=()=>({height:0,opacity:0}),Xs=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Gs=e=>({height:e?e.offsetHeight:0}),Ys=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Qs=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:na}-motion-collapse`,onAppearStart:Us,onEnterStart:Us,onAppearActive:Xs,onEnterActive:Xs,onLeaveStart:Gs,onLeaveActive:Us,onAppearEnd:Ys,onEnterEnd:Ys,onLeaveEnd:Ys,motionDeadline:500}},Js=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var Zs=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};const eu=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(",")}}}}};var tu=Za("Wave",(e=>[eu(e)]));const nu=`${na}-wave-target`;function ru(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function ou(e){return Number.isNaN(e)?0:e}const iu=e=>{const{className:t,target:n,component:r}=e,i=o.useRef(null),[a,l]=o.useState(null),[c,s]=o.useState([]),[u,d]=o.useState(0),[f,p]=o.useState(0),[m,h]=o.useState(0),[g,v]=o.useState(0),[b,y]=o.useState(!1),w={left:u,top:f,width:m,height:g,borderRadius:c.map((e=>`${e}px`)).join(" ")};function x(){const e=getComputedStyle(n);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return ru(t)?t:ru(n)?n:ru(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:ou(-parseFloat(r))),p(t?n.offsetTop:ou(-parseFloat(o))),h(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>ou(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),o.useEffect((()=>{if(n){const e=rn((()=>{x(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(n)),()=>{rn.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const E=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(nu));return o.createElement(Ll,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;Ws(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:r}=e;return o.createElement("div",{ref:Ot(i,n),className:Ze(t,r,{"wave-quick":E}),style:w})}))},au=(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 i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),Hs(o.createElement(iu,Object.assign({},t,{target:e})),i)},lu=(e,t,n)=>{const{wave:r}=o.useContext(ia),[,i,a]=Ka(),l=ya((o=>{const l=e.current;if((null==r?void 0:r.disabled)||!l)return;const c=l.querySelector(`.${nu}`)||l,{showEffect:s}=r||{};(s||au)(c,{className:t,token:i,component:n,event:o,hashId:a})})),c=o.useRef();return e=>{rn.cancel(c.current),c.current=rn((()=>{l(e)}))}},cu=e=>{const{children:n,disabled:r,component:o}=e,{getPrefixCls:i}=t.useContext(ia),a=t.useRef(null),l=i("wave"),[,c]=tu(l),s=lu(a,Ze(l,c),o);if(t.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!Zs(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!t.isValidElement(n))return null!=n?n:null;return Xc(n,{ref:Nt(n)?Ot(n.ref,a):a})};"production"!==process.env.NODE_ENV&&(cu.displayName="Wave");const su=e=>{const n=t.useContext(ua);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])},uu=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},du=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"}}}},fu=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 pu=Ja("Space",(e=>{const t=ka(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[du(t),fu(t),uu(t)]}),(()=>({})),{resetStyle:!1}),mu=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 hu=o.createContext(null),gu=(e,t)=>{const n=o.useContext(hu),r=o.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return Ze(`${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}},vu=e=>{let{children:t}=e;return o.createElement(hu.Provider,{value:null},t)},bu=e=>{var{children:t}=e,n=mu(e,["children"]);return o.createElement(hu.Provider,{value:n},t)};var yu=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 wu=o.createContext(void 0),xu=/^[\u4e00-\u9fa5]{2}$/,Eu=xu.test.bind(xu);function Cu(e){return"danger"===e?{danger:!0}:{type:e}}function Su(e){return"string"==typeof e}function Ou(e){return"text"===e||"link"===e}function ku(e,n){let r=!1;const o=[];return t.Children.forEach(e,(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})),t.Children.map(o,(e=>function(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Su(e.type)&&Eu(e.props.children)?Xc(e,{children:e.props.children.split("").join(r)}):Su(e)?Eu(e)?t.createElement("span",null,e.split("").join(r)):t.createElement("span",null,e):qc(e)?t.createElement("span",null,e):e}(e,n)))}const Nu=t.forwardRef(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=Ze(`${a}-icon`,r);return t.createElement("span",{ref:n,className:l,style:o},i)})),$u=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,l=Ze(`${r}-loading-icon`,o);return t.createElement(Nu,{prefixCls:r,className:l,style:i,ref:n},t.createElement(ds,{className:a}))})),Iu=()=>({width:0,opacity:0,transform:"scale(0)"}),_u=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ru=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=e,l=!!r;return o?t.createElement($u,{prefixCls:n,className:i,style:a}):t.createElement(Ll,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:Iu,onAppearActive:_u,onEnterStart:Iu,onEnterActive:_u,onLeaveStart:_u,onLeaveActive:Iu},((e,r)=>{let{className:o,style:l}=e;return t.createElement($u,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))},Pu=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ju=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}},Pu(`${t}-primary`,o),Pu(`${t}-danger`,i)]}},Au=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return ka(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Mu=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:Ui(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Ui(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Ui(s);return{fontWeight:400,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:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,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,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)}},Tu=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Vn(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Ya(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Du=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),zu=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Bu=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Lu=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Hu=(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"},Du(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Fu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Lu(e))}),Vu=e=>Object.assign({},Fu(e)),Ku=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Wu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vu(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Du(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Hu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Du(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Hu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Fu(e))}),qu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vu(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Du(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Hu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Du(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Hu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Fu(e))}),Uu=e=>Object.assign(Object.assign({},Wu(e)),{borderStyle:"dashed"}),Xu=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Du(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ku(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Du(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ku(e))}),Gu=e=>Object.assign(Object.assign(Object.assign({},Du(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ku(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ku(e)),Du(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Yu=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Wu(e),[`${t}-primary`]:qu(e),[`${t}-dashed`]:Uu(e),[`${t}-link`]:Xu(e),[`${t}-text`]:Gu(e),[`${t}-ghost`]:Hu(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Qu=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${Vn(s)} ${Vn(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:zu(e)},{[`${n}${n}-round${t}`]:Bu(e)}]},Ju=e=>{const t=ka(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Qu(t,e.componentCls)},Zu=e=>{const t=ka(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Qu(t,`${e.componentCls}-sm`)},ed=e=>{const t=ka(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Qu(t,`${e.componentCls}-lg`)},td=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var nd=Ja("Button",(e=>{const t=Au(e);return[Tu(t),Ju(t),Zu(t),ed(t),td(t),Yu(t),ju(t)]}),Mu,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function rd(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function od(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 id(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},rd(e,r,t)),od(n,r,t))}}function ad(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function ld(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ad(e,t)),(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 cd=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Vn(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Vn(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var sd=el(["Button","compact"],(e=>{const t=Au(e);return[id(t),ld(t),cd(t)]}),Mu),ud=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 dd=t.forwardRef(((e,n)=>{var r,o,i;const{loading:a=!1,prefixCls:l,type:c,danger:s=!1,shape:u="default",size:d,styles:f,disabled:p,className:m,rootClassName:h,children:g,icon:v,iconPosition:b="start",ghost:y=!1,block:w=!1,htmlType:x="button",classNames:E,style:C={},autoInsertSpace:S}=e,O=ud(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),k=c||"default",{getPrefixCls:N,direction:$,button:I}=t.useContext(ia),_=null===(r=null!=S?S:null==I?void 0:I.autoInsertSpace)||void 0===r||r,R=N("btn",l),[P,j,A]=nd(R),M=t.useContext(ca),T=null!=p?p:M,D=t.useContext(wu),z=t.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}}(a)),[a]),[B,L]=t.useState(z.loading),[H,F]=t.useState(!1),V=Ot(n,t.createRef()),K=1===t.Children.count(g)&&!v&&!Ou(k);t.useEffect((()=>{let e=null;return z.delay>0?e=setTimeout((()=>{e=null,L(!0)}),z.delay):L(z.loading),function(){e&&(clearTimeout(e),e=null)}}),[z]),t.useEffect((()=>{if(!V||!V.current||!_)return;const e=V.current.textContent;K&&Eu(e)?H||F(!0):H&&F(!1)}),[V]);const W=t=>{const{onClick:n}=e;B||T?t.preventDefault():null==n||n(t)};if("production"!==process.env.NODE_ENV){const e=jo("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof v&&v.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${v}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(y&&Ou(k)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:q,compactItemClassnames:U}=gu(R,$),X={large:"lg",small:"sm",middle:void 0},G=su((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:q)&&void 0!==t?t:D)&&void 0!==n?n:e})),Y=G&&X[G]||"",Q=B?"loading":v,J=Ut(O,["navigate"]),Z=Ze(R,j,A,{[`${R}-${u}`]:"default"!==u&&u,[`${R}-${k}`]:k,[`${R}-${Y}`]:Y,[`${R}-icon-only`]:!g&&0!==g&&!!Q,[`${R}-background-ghost`]:y&&!Ou(k),[`${R}-loading`]:B,[`${R}-two-chinese-chars`]:H&&_&&!B,[`${R}-block`]:w,[`${R}-dangerous`]:s,[`${R}-rtl`]:"rtl"===$,[`${R}-icon-end`]:"end"===b},U,m,h,null==I?void 0:I.className),ee=Object.assign(Object.assign({},null==I?void 0:I.style),C),te=Ze(null==E?void 0:E.icon,null===(o=null==I?void 0:I.classNames)||void 0===o?void 0:o.icon),ne=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(i=null==I?void 0:I.styles)||void 0===i?void 0:i.icon)||{}),re=v&&!B?t.createElement(Nu,{prefixCls:R,className:te,style:ne},v):t.createElement(Ru,{existIcon:!!v,prefixCls:R,loading:B}),oe=g||0===g?ku(g,K&&_):null;if(void 0!==J.href)return P(t.createElement("a",Object.assign({},J,{className:Ze(Z,{[`${R}-disabled`]:T}),href:T?void 0:J.href,style:ee,onClick:W,ref:V,tabIndex:T?-1:0}),re,oe));let ie=t.createElement("button",Object.assign({},O,{type:x,className:Z,style:ee,onClick:W,disabled:T,ref:V}),re,oe,!!U&&t.createElement(sd,{key:"compact",prefixCls:R}));return Ou(k)||(ie=t.createElement(cu,{component:"Button",disabled:B},ie)),P(ie)})),fd=dd;function pd(e){return!!(null==e?void 0:e.then)}fd.Group=e=>{const{getPrefixCls:t,direction:n}=o.useContext(ia),{prefixCls:r,size:i,className:a}=e,l=yu(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,s]=Ka();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=jo("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=Ze(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===n},a,s);return o.createElement(wu.Provider,{value:i},o.createElement("div",Object.assign({},l,{className:d})))},fd.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(fd.displayName="Button");const md=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:l,emitEvent:c,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=o.useRef(!1),p=o.useRef(null),[m,h]=wa(!1),g=function(){null==a||a.apply(void 0,arguments)};o.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return o.createElement(fd,Object.assign({},Cu(t),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void g();let t;if(c){if(t=d(e),u&&!pd(t))return f.current=!1,void g(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!pd(t))return void g();(e=>{pd(e)&&(h(!0),e.then((function(){h(!1,!0),g.apply(void 0,arguments),f.current=!1}),(e=>{if(h(!1,!0),f.current=!1,!(null==s?void 0:s()))return Promise.reject(e)})))})(t)},loading:m,prefixCls:r},i,{ref:p}),n)},hd=t.createContext({}),{Provider:gd}=hd,vd=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:r,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:c,onConfirm:s}=t.useContext(hd);return i?t.createElement(md,{isSilent:o,actionFn:c,close:function(){null==l||l.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:n,prefixCls:`${a}-btn`},r):null},bd=()=>{const{autoFocusButton:e,close:n,isSilent:r,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:c,onOk:s}=t.useContext(hd);return t.createElement(md,{isSilent:r,type:l||"primary",actionFn:s,close:function(){null==n||n.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${i}-btn`},a)};var yd,wd=o.createContext(null),xd=[];function Ed(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,";"):"";xn("\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),wn(t),{width:f,height:p}}function Cd(e){return"undefined"==typeof document?0:(void 0===yd&&(yd=Ed()),yd.width)}function Sd(e){return"undefined"!=typeof document&&e&&e instanceof Element?Ed(e):{width:0,height:0}}var Od="rc-util-locker-".concat(Date.now()),kd=0;function Nd(e){var t=!!e,n=ln(o.useState((function(){return kd+=1,"".concat(Od,"_").concat(kd)})),1)[0];Gn((function(){if(t){var e=Sd(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;xn("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else wn(n);return function(){wn(n)}}),[t,n])}var $d=function(e){return!1!==e&&(sn()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Id=o.forwardRef((function(e,t){var r=e.open,i=e.autoLock,a=e.getContainer,l=e.debug,c=e.autoDestroy,s=void 0===c||c,u=e.children,d=ln(o.useState(r),2),f=d[0],p=d[1],m=f||r;"production"!==process.env.NODE_ENV&&mt(sn()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),o.useEffect((function(){(s||r)&&p(r)}),[r,s]);var h=ln(o.useState((function(){return $d(a)})),2),g=h[0],v=h[1];o.useEffect((function(){var e=$d(a);v(null!=e?e:null)}));var b=function(e,t){var n=ln(o.useState((function(){if(!sn())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e})),1)[0],r=o.useRef(!1),i=o.useContext(wd),a=ln(o.useState(xd),2),l=a[0],c=a[1],s=i||(r.current?void 0:function(e){c((function(t){return[e].concat(Qt(t))}))});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Gn((function(){return e?i?i(u):u():d(),d}),[e]),Gn((function(){l.length&&(l.forEach((function(e){return e()})),c(xd))}),[l]),[n,s]}(m&&!g,l),y=ln(b,2),w=y[0],x=y[1],E=null!=g?g:w;Nd(i&&r&&sn()&&(E===w||E===document.body));var C=null;u&&Nt(u)&&t&&(C=u.ref);var S=kt(C,t);if(!m||!sn()||void 0===g)return null;var O=!1===E||!1,k=u;return t&&(k=o.cloneElement(u,{ref:S})),o.createElement(wd.Provider,{value:x},O?k:n.createPortal(k,E))}));"production"!==process.env.NODE_ENV&&(Id.displayName="Portal");var _d=o.createContext({});var Rd=0,Pd=wt({},o).useId,jd=Pd?function(e){var t=Pd();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=ln(o.useState("ssr-id"),2),n=t[0],r=t[1];return o.useEffect((function(){var e=Rd;Rd+=1,r("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)};function Ad(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Md(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 Td=o.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),Dd={width:0,height:0,overflow:"hidden",outline:"none"},zd={outline:"none"},Bd=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.className,i=e.style,a=e.title,l=e.ariaId,c=e.footer,s=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,m=e.bodyProps,h=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,b=e.holderRef,y=e.visible,w=e.forceRender,x=e.width,E=e.height,C=e.classNames,S=e.styles,O=t.useContext(_d).panel,k=kt(b,O),N=t.useRef(),$=t.useRef(),I=t.useRef();t.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=I.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===$.current?N.current.focus({preventScroll:!0}):e||t!==N.current||$.current.focus({preventScroll:!0})}}}));var _={};void 0!==x&&(_.width=x),void 0!==E&&(_.height=E);var R=c?t.createElement("div",{className:Ze("".concat(r,"-footer"),null==C?void 0:C.footer),style:wt({},null==S?void 0:S.footer)},c):null,P=a?t.createElement("div",{className:Ze("".concat(r,"-header"),null==C?void 0:C.header),style:wt({},null==S?void 0:S.header)},t.createElement("div",{className:"".concat(r,"-title"),id:l},a)):null,j=t.useMemo((function(){return"object"===gt(s)&&null!==s?s:s?{closeIcon:null!=u?u:t.createElement("span",{className:"".concat(r,"-close-x")})}:{}}),[s,u,r]),A=Wc(j,!0),M="object"===gt(s)&&s.disabled,T=s?t.createElement("button",et({type:"button",onClick:d,"aria-label":"Close"},A,{className:"".concat(r,"-close"),disabled:M}),j.closeIcon):null,D=t.createElement("div",{className:Ze("".concat(r,"-content"),null==C?void 0:C.content),style:null==S?void 0:S.content},T,P,t.createElement("div",et({className:Ze("".concat(r,"-body"),null==C?void 0:C.body),style:wt(wt({},p),null==S?void 0:S.body)},m),f),R);return t.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:k,style:wt(wt({},i),_),className:Ze(r,o),onMouseDown:g,onMouseUp:v},t.createElement("div",{tabIndex:0,ref:N,style:Dd,"aria-hidden":"true"}),t.createElement("div",{ref:I,tabIndex:-1,style:zd},t.createElement(Td,{shouldUpdate:y||w},h?h(D):D)),t.createElement("div",{tabIndex:0,ref:$,style:Dd,"aria-hidden":"true"}))}));"production"!==process.env.NODE_ENV&&(Bd.displayName="Panel");var Ld=o.forwardRef((function(e,n){var r=e.prefixCls,i=e.title,a=e.style,l=e.className,c=e.visible,s=e.forceRender,u=e.destroyOnClose,d=e.motionName,f=e.ariaId,p=e.onVisibleChanged,m=e.mousePosition,h=t.useRef(),g=ln(o.useState(),2),v=g[0],b=g[1],y={};function w(){var e,t,n,r,o,i=(e=h.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=Md(o),n.top+=Md(o,!0),n);b(m&&(m.x||m.y)?"".concat(m.x-i.left,"px ").concat(m.y-i.top,"px"):"")}return v&&(y.transformOrigin=v),o.createElement(Ll,{visible:c,onVisibleChanged:p,onAppearPrepare:w,onEnterPrepare:w,forceRender:s,motionName:d,removeOnLeave:u,ref:h},(function(t,c){var s=t.className,u=t.style;return o.createElement(Bd,et({},e,{ref:n,title:i,ariaId:f,prefixCls:r,holderRef:c,style:wt(wt(wt({},u),a),y),className:Ze(l,s)}))}))}));Ld.displayName="Content";var Hd=function(e){var t=e.prefixCls,n=e.style,r=e.visible,i=e.maskProps,a=e.motionName,l=e.className;return o.createElement(Ll,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var a=e.className,c=e.style;return o.createElement("div",et({ref:r,style:wt(wt({},c),n),className:Ze("".concat(t,"-mask"),a,l)},i))}))},Fd=function(e){var n=e.prefixCls,r=void 0===n?"rc-dialog":n,i=e.zIndex,a=e.visible,l=void 0!==a&&a,c=e.keyboard,s=void 0===c||c,u=e.focusTriggerAfterClose,d=void 0===u||u,f=e.wrapStyle,p=e.wrapClassName,m=e.wrapProps,h=e.onClose,g=e.afterOpenChange,v=e.afterClose,b=e.transitionName,y=e.animation,w=e.closable,x=void 0===w||w,E=e.mask,C=void 0===E||E,S=e.maskTransitionName,O=e.maskAnimation,k=e.maskClosable,N=void 0===k||k,$=e.maskStyle,I=e.maskProps,_=e.rootClassName,R=e.classNames,P=e.styles;"production"!==process.env.NODE_ENV&&(["wrapStyle","bodyStyle","maskStyle"].forEach((function(t){ut(!(t in e),"".concat(t," is deprecated, please use styles instead."))})),"wrapClassName"in e&&ut(!1,"wrapClassName is deprecated, please use classNames instead."));var j=t.useRef(),A=t.useRef(),M=t.useRef(),T=ln(o.useState(l),2),D=T[0],z=T[1],B=jd();function L(e){null==h||h(e)}var H=t.useRef(!1),F=t.useRef(),V=null;N&&(V=function(e){H.current?H.current=!1:A.current===e.target&&L(e)}),t.useEffect((function(){l&&(z(!0),un(A.current,document.activeElement)||(j.current=document.activeElement))}),[l]),t.useEffect((function(){return function(){clearTimeout(F.current)}}),[]);var K=wt(wt(wt({zIndex:i},f),null==P?void 0:P.wrapper),{},{display:D?null:"none"});return o.createElement("div",et({className:Ze("".concat(r,"-root"),_)},Wc(e,{data:!0})),o.createElement(Hd,{prefixCls:r,visible:C&&l,motionName:Ad(r,S,O),style:wt(wt({zIndex:i},$),null==P?void 0:P.mask),maskProps:I,className:null==R?void 0:R.mask}),o.createElement("div",et({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===Jc.ESC)return e.stopPropagation(),void L(e);l&&e.keyCode===Jc.TAB&&M.current.changeActive(!e.shiftKey)},className:Ze("".concat(r,"-wrap"),p,null==R?void 0:R.wrapper),ref:A,onClick:V,style:K},m),o.createElement(Ld,et({},e,{onMouseDown:function(){clearTimeout(F.current),H.current=!0},onMouseUp:function(){F.current=setTimeout((function(){H.current=!1}))},ref:M,closable:x,ariaId:B,prefixCls:r,visible:l&&D,onClose:L,onVisibleChanged:function(e){if(e)un(A.current,document.activeElement)||null===(t=M.current)||void 0===t||t.focus();else{if(z(!1),C&&j.current&&d){try{j.current.focus({preventScroll:!0})}catch(e){}j.current=null}D&&(null==v||v())}var t;null==g||g(e)},motionName:Ad(r,b,y)}))))},Vd=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,l=e.afterClose,c=e.panelRef,s=ln(o.useState(t),2),u=s[0],d=s[1],f=o.useMemo((function(){return{panel:c}}),[c]);return o.useEffect((function(){t&&d(!0)}),[t]),r||!a||u?o.createElement(_d.Provider,{value:f},o.createElement(Id,{open:t||r||u,autoDestroy:!1,getContainer:n,autoLock:t||u},o.createElement(Fd,et({},e,{destroyOnClose:a,afterClose:function(){null==l||l(),d(!1)}})))):null};Vd.displayName="Dialog";var Kd="RC_FORM_INTERNAL_HOOKS",Wd=function(){mt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},qd=o.createContext({getFieldValue:Wd,getFieldsValue:Wd,getFieldError:Wd,getFieldWarning:Wd,getFieldsError:Wd,isFieldsTouched:Wd,isFieldTouched:Wd,isFieldValidating:Wd,isFieldsValidating:Wd,resetFields:Wd,setFields:Wd,setFieldValue:Wd,setFieldsValue:Wd,validateFields:Wd,submit:Wd,getInternalHooks:function(){return Wd(),{dispatch:Wd,initEntityValue:Wd,registerField:Wd,useSubscribe:Wd,setInitialValues:Wd,destroyForm:Wd,setCallbacks:Wd,registerWatch:Wd,getFields:Wd,setValidateMessages:Wd,setPreserve:Wd,getInitialValue:Wd}}}),Ud=o.createContext(null);function Xd(e){return null==e?[]:Array.isArray(e)?e:[e]}function Gd(){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 Yd=Gd();function Qd(e){var t="function"==typeof Map?new Map:void 0;return Qd=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(Bt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Tt(o,n.prototype),o}(e,arguments,zt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tt(n,e)},Qd(e)}var Jd=/%[sdj%]/g,Zd=function(){};function ef(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 tf(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(Jd,(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 nf(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 rf(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&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(Zd=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var of=function(e){Dt(n,e);var t=Ht(n);function n(e,r){var o;return jt(this,n),bt(Lt(o=t.call(this,"Async Validation Error")),"errors",void 0),bt(Lt(o),"fields",void 0),o.errors=e,o.fields=r,o}return Mt(n)}(Qd(Error));function af(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,Qt(e[n]||[]))})),t}(e);rf(a,n,(function(e){return r(e),e.length?i(new of(e,ef(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 of(u,ef(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?rf(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Qt(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function lf(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 cf(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===gt(r)&&"object"===gt(e[n])?e[n]=wt(wt({},e[n]),r):e[n]=r}return e}var sf,uf="enum",df=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!nf(t,i||e.type)||r.push(tf(o.messages.required,e.fullField))},ff=/^(([^<>()\[\]\\.,;:\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,}))$/,pf=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,mf={integer:function(e){return mf.number(e)&&parseInt(e,10)===e},float:function(e){return mf.number(e)&&!mf.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"===gt(e)&&!mf.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(ff)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(sf)return sf;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 sf=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(pf)}},hf={required:df,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(tf(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)df(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?mf[i](t)||r.push(tf(o.messages.types[i],e.fullField,e.type)):i&&gt(t)!==e.type&&r.push(tf(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(tf(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(tf(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(tf(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(tf(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[uf]=Array.isArray(e[uf])?e[uf]:[],-1===e[uf].indexOf(t)&&r.push(tf(o.messages[uf],e.fullField,e[uf].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(tf(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(tf(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},gf=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nf(t,i)&&!e.required)return n();hf.required(e,t,r,a,o,i),nf(t,i)||hf.type(e,t,r,a,o)}n(a)},vf={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(nf(t,"string")&&!e.required)return n();hf.required(e,t,r,i,o,"string"),nf(t,"string")||(hf.type(e,t,r,i,o),hf.range(e,t,r,i,o),hf.pattern(e,t,r,i,o),!0===e.whitespace&&hf.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(nf(t)&&!e.required)return n();hf.required(e,t,r,i,o),void 0!==t&&hf.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),nf(t)&&!e.required)return n();hf.required(e,t,r,i,o),void 0!==t&&(hf.type(e,t,r,i,o),hf.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(nf(t)&&!e.required)return n();hf.required(e,t,r,i,o),void 0!==t&&hf.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(nf(t)&&!e.required)return n();hf.required(e,t,r,i,o),nf(t)||hf.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(nf(t)&&!e.required)return n();hf.required(e,t,r,i,o),void 0!==t&&(hf.type(e,t,r,i,o),hf.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(nf(t)&&!e.required)return n();hf.required(e,t,r,i,o),void 0!==t&&(hf.type(e,t,r,i,o),hf.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();hf.required(e,t,r,i,o,"array"),null!=t&&(hf.type(e,t,r,i,o),hf.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(nf(t)&&!e.required)return n();hf.required(e,t,r,i,o),void 0!==t&&hf.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(nf(t)&&!e.required)return n();hf.required(e,t,r,i,o),void 0!==t&&hf.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(nf(t,"string")&&!e.required)return n();hf.required(e,t,r,i,o),nf(t,"string")||hf.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(nf(t,"date")&&!e.required)return n();var a;if(hf.required(e,t,r,i,o),!nf(t,"date"))a=t instanceof Date?t:new Date(t),hf.type(e,a,r,i,o),a&&hf.range(e,a.getTime(),r,i,o)}n(i)},url:gf,hex:gf,email:gf,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":gt(t);hf.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(nf(t)&&!e.required)return n();hf.required(e,t,r,i,o)}n(i)}},bf=function(){function e(t){jt(this,e),bt(this,"rules",null),bt(this,"_messages",Yd),this.define(t)}return Mt(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==gt(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=cf(Gd(),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===Yd&&(a=Gd()),cf(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=wt({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":gt(i)))),(a="function"==typeof a?{validator:a}:wt({},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 af(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==gt(a.fields)&&"object"!==gt(a.defaultField));function s(e,t){return wt(wt({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Qt(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(lf(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(lf(a,r)):o.error&&(d=[o.error(a,tf(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=wt(wt({},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,Qt(d)),e&&e.length&&t.push.apply(t,Qt(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){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,Qt(t)):o.push(t);o.length?(a=ef(o),i(o,a)):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&&!vf.hasOwnProperty(e.type))throw new Error(tf("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]?vf.required:vf[this.getType(e)]||void 0}}]),e}();bt(bf,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");vf[e]=t})),bt(bf,"warning",Zd),bt(bf,"messages",Yd),bt(bf,"validators",vf);var yf="'${name}' is not a valid ${type}",wf={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:yf,method:yf,array:yf,object:yf,number:yf,date:yf,boolean:yf,integer:yf,float:yf,regexp:yf,email:yf,url:yf,hex:yf},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}"}},xf=bf;function Ef(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var Cf="CODE_LOGIC_ERROR";function Sf(e,t,n,r,o){return Of.apply(this,arguments)}function Of(){return Of=js(Rs().mark((function e(t,n,r,i,a){var l,c,s,u,d,f,p,m,h;return Rs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=wt({},r)).ruleIndex,xf.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Cf)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new xf(bt({},t,[l])),d=$o(wf,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(bt({},t,n),wt({},i)));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===Cf?d.default:n;return o.isValidElement(r)?o.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Sf("".concat(t,".").concat(n),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Qt(e),Qt(t))}),[]));case 23:return m=wt(wt({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=f.map((function(e){return"string"==typeof e?Ef(e,m):e})),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Of.apply(this,arguments)}function kf(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=wt(wt({},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(){mt(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));mt(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=js(Rs().mark((function e(n,o){var a,s,u;return Rs().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,Sf(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 Sf(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return $f.apply(this,arguments)}(s):function(e){return Nf.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Nf(){return(Nf=js(Rs().mark((function e(t){return Rs().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,Qt(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $f(){return($f=js(Rs().mark((function e(t){var n;return Rs().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 If(e){return Xd(e)}function _f(e,t){var n={};return t.forEach((function(t){var r=Co(e,t);n=Oo(n,t,r)})),n}function Rf(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Pf(t,e,n)}))}function Pf(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 jf(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===gt(t.target)&&e in t.target?t.target[e]:t}function Af(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(Qt(e.slice(0,n)),[o],Qt(e.slice(n,t)),Qt(e.slice(t+1,r))):i<0?[].concat(Qt(e.slice(0,t)),Qt(e.slice(t+1,n+1)),[o],Qt(e.slice(n+1,r))):e}var Mf=["name"],Tf=[];function Df(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var zf=function(e){Dt(n,e);var t=Ht(n);function n(e){var r;(jt(this,n),bt(Lt(r=t.call(this,e)),"state",{resetCount:0}),bt(Lt(r),"cancelRegisterFunc",null),bt(Lt(r),"mounted",!1),bt(Lt(r),"touched",!1),bt(Lt(r),"dirty",!1),bt(Lt(r),"validatePromise",void 0),bt(Lt(r),"prevValidating",void 0),bt(Lt(r),"errors",Tf),bt(Lt(r),"warnings",Tf),bt(Lt(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,If(o)),r.cancelRegisterFunc=null})),bt(Lt(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Qt(void 0===n?[]:n),Qt(t)):[]})),bt(Lt(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}))})),bt(Lt(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),bt(Lt(r),"metaCache",null),bt(Lt(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=wt(wt({},r.getMeta()),{},{destroy:e});Cn(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),bt(Lt(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&&Rf(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Cn(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=Tf,r.warnings=Tf,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=Tf,r.warnings=Tf,r.triggerMetaEvent(),null==c||c(),void r.refresh();break;case"remove":if(i&&Df(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||Tf),"warnings"in m&&(r.warnings=m.warnings||Tf),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in m&&Rf(t,u,!0))return void r.reRender();if(i&&!u.length&&Df(i,e,s,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(If).some((function(e){return Rf(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!l.length||u.length||i)&&Df(i,e,s,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),bt(Lt(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(js(Rs().mark((function o(){var a,l,s,u,d,f,p;return Rs().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=kf(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tf;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?Tf:r;t?o.push.apply(o,Qt(i)):n.push.apply(n,Qt(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=Tf,r.warnings=Tf,r.triggerMetaEvent(),r.reRender()),c})),bt(Lt(r),"isFieldValidating",(function(){return!!r.validatePromise})),bt(Lt(r),"isFieldTouched",(function(){return r.touched})),bt(Lt(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(Kd).getInitialValue)(r.getNamePath())})),bt(Lt(r),"getErrors",(function(){return r.errors})),bt(Lt(r),"getWarnings",(function(){return r.warnings})),bt(Lt(r),"isListField",(function(){return r.props.isListField})),bt(Lt(r),"isList",(function(){return r.props.isList})),bt(Lt(r),"isPreserve",(function(){return r.props.preserve})),bt(Lt(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}})),bt(Lt(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return wt(wt({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=lt(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),bt(Lt(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Co(e||t(!0),n)})),bt(Lt(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,h=p(Kd).dispatch,g=r.getValue(),v=s||function(e){return bt({},c,e)},b=e[o],y=void 0!==n?v(g):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){mt("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var w=wt(wt({},e),y);return w[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):jf.apply(void 0,[c].concat(n)),l&&(e=l(e,g,m(!0))),h({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},Xd(d||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&h({type:"validateField",namePath:f,triggerName:e})}})),w})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(Kd).initEntityValue)(Lt(r));return r}return Mt(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Kd).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),i=r.child;return r.isFunction?e=i:o.isValidElement(i)?e=o.cloneElement(i,this.getControlled(i.props)):(mt(!i,"`children` of Field is not validate ReactElement."),e=i),o.createElement(o.Fragment,{key:t},e)}}]),n}(o.Component);function Bf(e){var t=e.name,n=En(e,Mf),r=o.useContext(qd),i=o.useContext(Ud),a=void 0!==t?If(t):void 0,l="keep";return n.isListField||(l="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===n.preserve&&n.isListField&&a.length<=1&&mt(!1,"`preserve` should not apply on Form.List fields."),o.createElement(zf,et({key:l,name:a,isListField:!!i},n,{fieldContext:r}))}bt(zf,"contextType",qd),bt(zf,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Lf="__@field_split__";function Hf(e){return e.map((function(e){return"".concat(gt(e),":").concat(e)})).join(Lf)}var Ff=function(){function e(){jt(this,e),bt(this,"kvs",new Map)}return Mt(e,[{key:"set",value:function(e,t){this.kvs.set(Hf(e),t)}},{key:"get",value:function(e){return this.kvs.get(Hf(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(Hf(e))}},{key:"map",value:function(e){return Qt(this.kvs.entries()).map((function(t){var n=ln(t,2),r=n[0],o=n[1],i=r.split(Lf);return e({key:i.map((function(e){var t=ln(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}(),Vf=["name"],Kf=Mt((function e(t){var n=this;jt(this,e),bt(this,"formHooked",!1),bt(this,"forceRootUpdate",void 0),bt(this,"subscribable",!0),bt(this,"store",{}),bt(this,"fieldEntities",[]),bt(this,"initialValues",{}),bt(this,"callbacks",{}),bt(this,"validateMessages",null),bt(this,"preserve",null),bt(this,"lastValidatePromise",null),bt(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}})),bt(this,"getInternalHooks",(function(e){return e===Kd?(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}):(mt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),bt(this,"useSubscribe",(function(e){n.subscribable=e})),bt(this,"prevWithoutPreserves",null),bt(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=$o(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Oo(o,n,Co(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),bt(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Ff;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),bt(this,"getInitialValue",(function(e){var t=Co(n.initialValues,e);return e.length?$o(t):t})),bt(this,"setCallbacks",(function(e){n.callbacks=e})),bt(this,"setValidateMessages",(function(e){n.validateMessages=e})),bt(this,"setPreserve",(function(e){n.preserve=e})),bt(this,"watchList",[]),bt(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),bt(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)}))}})),bt(this,"timeoutId",null),bt(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||mt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),bt(this,"updateStore",(function(e){n.store=e})),bt(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),bt(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Ff;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),bt(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=If(e);return t.get(n)||{INVALIDATE_NAME_PATH:If(e)}}))})),bt(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===gt(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)})),_f(n.store,l.map(If))})),bt(this,"getFieldValue",(function(e){n.warningUnhooked();var t=If(e);return Co(n.store,t)})),bt(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:If(e[n]),errors:[],warnings:[]}}))})),bt(this,"getFieldError",(function(e){n.warningUnhooked();var t=If(e);return n.getFieldsError([t])[0].errors})),bt(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=If(e);return n.getFieldsError([t])[0].warnings})),bt(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(If),l=!1):(o=null,l=i):(o=i.map(If),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 Ff;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(Qt(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)})),bt(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),bt(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(If);return t.some((function(e){var t=e.getNamePath();return Rf(r,t)&&e.isFieldValidating()}))})),bt(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),bt(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ff,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,Qt(Qt(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))mt(!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)mt(!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(Oo(n.store,o,Qt(i)[0].value))}}}}))})),bt(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore($o(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(If);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Oo(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),bt(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=En(e,Vf),a=If(o);r.push(a),"value"in i&&n.updateStore(Oo(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),bt(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=wt(wt({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),bt(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Co(n.store,r)&&n.updateStore(Oo(n.store,r,t))}})),bt(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),bt(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!Pf(e.getNamePath(),t)}))){var l=n.store;n.updateStore(Oo(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),bt(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})}})),bt(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=wt(wt({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),bt(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(Qt(r))}),r})),bt(this,"updateValue",(function(e,t){var r=If(e),o=n.store;n.updateStore(Oo(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(_f(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Qt(i)))})),bt(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=$o(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),bt(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),bt(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Ff;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=If(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})),bt(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Ff;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 Rf(e,n)}));a.length&&r(a,o)}})),bt(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(If):[],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||Rf(a,t,d)){var r=e.validateRules(wt({validateMessages:wt(wt({},wf),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,Qt(n)):r.push.apply(r,Qt(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 h=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(h),m})),bt(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 Wf(e){var t=o.useRef(),n=ln(o.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new Kf((function(){n({})}));t.current=r.getForm()}return[t.current]}var qf=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Uf=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Xf=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,a=e.form,l=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,h=e.onFieldsChange,g=e.onFinish,v=e.onFinishFailed,b=e.clearOnDestroy,y=En(e,Uf),w=o.useRef(null),x=o.useContext(qf),E=ln(Wf(a),1)[0],C=E.getInternalHooks(Kd),S=C.useSubscribe,O=C.setInitialValues,k=C.setCallbacks,N=C.setValidateMessages,$=C.setPreserve,I=C.destroyForm;o.useImperativeHandle(t,(function(){return wt(wt({},E),{},{nativeElement:w.current})})),o.useEffect((function(){return x.registerForm(n,E),function(){x.unregisterForm(n)}}),[x,E,n]),N(wt(wt({},x.validateMessages),d)),k({onValuesChange:m,onFieldsChange:function(e){if(x.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];h.apply(void 0,[e].concat(r))}},onFinish:function(e){x.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:v}),$(l);var _,R=o.useRef(null);O(r,!R.current),R.current||(R.current=!0),o.useEffect((function(){return function(){return I(b)}}),[]);var P="function"==typeof c;P?_=c(E.getFieldsValue(!0),E):_=c;S(!P);var j=o.useRef();o.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==gt(e)||"object"!==gt(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Qt(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(j.current||[],i||[])||E.setFields(i||[]),j.current=i}),[i,E]);var A=o.useMemo((function(){return wt(wt({},E),{},{validateTrigger:p})}),[E,p]),M=o.createElement(Ud.Provider,{value:null},o.createElement(qd.Provider,{value:A},_));return!1===u?M:o.createElement(u,et({},y,{ref:w,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),M)};function Gf(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var Yf="production"!==process.env.NODE_ENV?function(e){var n=e.join("__RC_FIELD_FORM_SPLIT__");mt(t.useRef(n).current===n,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var Qf=o.forwardRef(Xf);Qf.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(qf),l=o.useRef({});return o.createElement(qf.Provider,{value:wt(wt({},a),{},{validateMessages:wt(wt({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=wt(wt({},l.current),{},bt({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=wt({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},Qf.Field=Bf,Qf.List=function(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=o.useContext(qd),s=o.useContext(Ud),u=o.useRef({keys:[],id:0}).current,d=o.useMemo((function(){var e=If(c.prefixName)||[];return[].concat(Qt(e),Qt(If(t)))}),[c.prefixName,t]),f=o.useMemo((function(){return wt(wt({},c),{},{prefixName:d})}),[c,d]),p=o.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof r?(mt(!1,"Form.List only accepts function as children."),null):o.createElement(Ud.Provider,{value:p},o.createElement(qd.Provider,{value:f},o.createElement(Bf,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=l?l:!!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(Qt(u.keys.slice(0,t)),[u.id],Qt(u.keys.slice(t))),i([].concat(Qt(n.slice(0,t)),[e],Qt(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&mt(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Qt(u.keys),[u.id]),i([].concat(Qt(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=Af(u.keys,e,t),i(Af(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&mt(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),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)}))))},Qf.useForm=Wf,Qf.useWatch=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;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=ln(t.useState(),2),u=s[0],d=s[1],f=t.useMemo((function(){return Gf(u)}),[u]),p=t.useRef(f);p.current=f;var m=t.useContext(qd),h=c||m,g=h&&h._init;"production"!==process.env.NODE_ENV&&mt(2===n.length&&!c||g,"useWatch requires a form instance since it can not auto detect from context.");var v=If(o),b=t.useRef(v);return b.current=v,Yf(v),t.useEffect((function(){if(g){var e=h.getFieldsValue,t=(0,h.getInternalHooks)(Kd).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):Co(n,b.current)},r=t((function(e,t){var r=n(e,t),o=Gf(r);p.current!==o&&(p.current=o,d(r))})),i=n(e(),e(!0));return u!==i&&d(i),r}}),[g]),u};const Jf=o.createContext({});"production"!==process.env.NODE_ENV&&(Jf.displayName="FormItemInputContext");const Zf=e=>{let{children:n,status:r,override:i}=e;const a=t.useContext(Jf),l=t.useMemo((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,i,a]);return o.createElement(Jf.Provider,{value:l},n)},ep=t.createContext(void 0),tp=e=>{const{space:n,form:r,children:o}=e;if(null==o)return null;let i=o;return r&&(i=t.createElement(Zf,{override:!0,status:!0},i)),n&&(i=t.createElement(vu,null,i)),i};function np(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function rp(e){const{closable:n,closeIcon:r}=e||{};return t.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])}function op(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const ip={};var ap=function(e){if(sn()&&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},lp=function(e,t){if(!ap(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};const cp=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,l=Ze({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),c=Ze({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),s=o.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return o.createElement("span",{className:Ze(t,l,c,n),style:Object.assign(Object.assign({},s),r)})},sp=new yo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),up=e=>({height:e,lineHeight:Vn(e)}),dp=e=>Object.assign({width:e},up(e)),fp=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:sp,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),pp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},up(e)),mp=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},dp(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},dp(o)),[`${t}${t}-sm`]:Object.assign({},dp(i))}},hp=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},pp(t,l)),[`${r}-lg`]:Object.assign({},pp(o,l)),[`${r}-sm`]:Object.assign({},pp(i,l))}},gp=e=>Object.assign({width:e},up(e)),vp=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},gp(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},gp(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%"}}},bp=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},yp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},up(e)),wp=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()},yp(r,l))},bp(e,r,n)),{[`${n}-lg`]:Object.assign({},yp(o,l))}),bp(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},yp(i,l))}),bp(e,i,`${n}-sm`))},xp=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:h,blockRadius:g,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},dp(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},dp(s)),[`${n}-sm`]:Object.assign({},dp(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:h,background:d,borderRadius:g,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:g,"+ 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"},wp(e)),mp(e)),hp(e)),vp(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({},fp(e))}}};var Ep=Ja("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=ka(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"});return[xp(r)]}),(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"]]});var Cp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Sp=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:Cp}))},Op=o.forwardRef(Sp);"production"!==process.env.NODE_ENV&&(Op.displayName="DotChartOutlined");const kp=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},Np=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=Qt(Array(i)).map(((t,n)=>o.createElement("li",{key:n,style:{width:kp(n,e)}})));return o.createElement("ul",{className:Ze(t,n),style:r},a)},$p=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return o.createElement("h3",{className:Ze(t,n),style:Object.assign({width:r},i)})};function Ip(e){return e&&"object"==typeof e?e:{}}const _p=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:l,avatar:c=!1,title:s=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:m,skeleton:h}=o.useContext(ia),g=p("skeleton",t),[v,b,y]=Ep(g);if(n||!("loading"in e)){const e=!!c,t=!!s,n=!!u;let l,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Ip(c));l=o.createElement("div",{className:`${g}-header`},o.createElement(cp,Object.assign({},e)))}if(t||n){let r,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Ip(s));r=o.createElement($p,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Ip(u));i=o.createElement(Np,Object.assign({},n))}p=o.createElement("div",{className:`${g}-content`},r,i)}const w=Ze(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:d,[`${g}-rtl`]:"rtl"===m,[`${g}-round`]:f},null==h?void 0:h.className,r,i,b,y);return v(o.createElement("div",{className:w,style:Object.assign(Object.assign({},null==h?void 0:h.style),a)},l,p))}return null!=l?l:null};function Rp(){}_p.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:l="default"}=e,{getPrefixCls:c}=o.useContext(ia),s=c("skeleton",t),[u,d,f]=Ep(s),p=Ut(e,["prefixCls"]),m=Ze(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:a},n,r,d,f);return u(o.createElement("div",{className:m},o.createElement(cp,Object.assign({prefixCls:`${s}-button`,size:l},p))))},_p.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:l="default"}=e,{getPrefixCls:c}=o.useContext(ia),s=c("skeleton",t),[u,d,f]=Ep(s),p=Ut(e,["prefixCls","className"]),m=Ze(s,`${s}-element`,{[`${s}-active`]:i},n,r,d,f);return u(o.createElement("div",{className:m},o.createElement(cp,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:l},p))))},_p.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:l="default"}=e,{getPrefixCls:c}=o.useContext(ia),s=c("skeleton",t),[u,d,f]=Ep(s),p=Ut(e,["prefixCls"]),m=Ze(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:a},n,r,d,f);return u(o.createElement("div",{className:m},o.createElement(cp,Object.assign({prefixCls:`${s}-input`,size:l},p))))},_p.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:l}=o.useContext(ia),c=l("skeleton",t),[s,u,d]=Ep(c),f=Ze(c,`${c}-element`,{[`${c}-active`]:a},n,r,u,d);return s(o.createElement("div",{className:f},o.createElement("div",{className:Ze(`${c}-image`,n),style:i},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},o.createElement("title",null,"Image placeholder"),o.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`})))))},_p.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:l}=e,{getPrefixCls:c}=o.useContext(ia),s=c("skeleton",t),[u,d,f]=Ep(s),p=Ze(s,`${s}-element`,{[`${s}-active`]:a},d,n,r,f),m=null!=l?l:o.createElement(Op,null);return u(o.createElement("div",{className:p},o.createElement("div",{className:Ze(`${s}-image`,n),style:i},m)))},"production"!==process.env.NODE_ENV&&(_p.displayName="Skeleton");const Pp=o.createContext({add:Rp,remove:Rp});const jp=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:r}=t.useContext(hd);return t.createElement(fd,Object.assign({onClick:r},e),n)},Ap=()=>{const{confirmLoading:e,okButtonProps:n,okType:r,okTextLocale:o,onOk:i}=t.useContext(hd);return t.createElement(fd,Object.assign({},Cu(r),{loading:e,onClick:i},n),o)};function Mp(e,n){return t.createElement("span",{className:`${e}-close-x`},n||t.createElement(Ac,{className:`${e}-close-icon`}))}const Tp=e=>{const{okText:n,okType:r="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:c,cancelButtonProps:s,footer:u}=e,[d]=Uo("Modal",Wo()),f={confirmLoading:i,okButtonProps:c,cancelButtonProps:s,okTextLocale:n||(null==d?void 0:d.okText),cancelTextLocale:o||(null==d?void 0:d.cancelText),okType:r,onOk:a,onCancel:l},p=t.useMemo((()=>f),Qt(Object.values(f)));let m;return"function"==typeof u||void 0===u?(m=t.createElement(t.Fragment,null,t.createElement(jp,null),t.createElement(Ap,null)),"function"==typeof u&&(m=u(m,{OkBtn:Ap,CancelBtn:jp})),m=t.createElement(gd,{value:p},m)):m=u,t.createElement(sa,{disabled:!1},m)},Dp=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`}}}),zp=e=>({animationDuration:e,animationFillMode:"both"}),Bp=e=>({animationDuration:e,animationFillMode:"both"}),Lp=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},zp(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Bp(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Hp=new yo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Fp=new yo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Vp=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Lp(r,Hp,Fp,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Kp=new yo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Wp=new yo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),qp=new yo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Up=new yo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Xp=new yo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gp=new yo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Yp={"move-up":{inKeyframes:new yo("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 yo("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:Kp,outKeyframes:Wp},"move-left":{inKeyframes:qp,outKeyframes:Up},"move-right":{inKeyframes:Xp,outKeyframes:Gp}},Qp=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Yp[t];return[Lp(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Jp=new yo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Zp=new yo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),em=new yo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),tm=new yo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),nm=new yo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),rm=new yo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),om=new yo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),im=new yo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),am={"slide-up":{inKeyframes:Jp,outKeyframes:Zp},"slide-down":{inKeyframes:em,outKeyframes:tm},"slide-left":{inKeyframes:nm,outKeyframes:rm},"slide-right":{inKeyframes:om,outKeyframes:im}},lm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=am[t];return[Lp(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}}]},cm=new yo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sm=new yo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),um=new yo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),dm=new yo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),fm=new yo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),pm=new yo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),mm={zoom:{inKeyframes:cm,outKeyframes:sm},"zoom-big":{inKeyframes:um,outKeyframes:dm},"zoom-big-fast":{inKeyframes:um,outKeyframes:dm},"zoom-left":{inKeyframes:new yo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new yo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new yo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new yo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:fm,outKeyframes:pm},"zoom-down":{inKeyframes:new yo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new yo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},hm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=mm[t];return[Lp(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}}]};function gm(e){return{position:e,inset:0}}const vm=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({},gm("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},gm("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Vp(e)}]},bm=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:`${Vn(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ua(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Vn(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:Vn(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ya(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Vn(e.borderRadiusLG)} ${Vn(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:`${Vn(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"}}}]},ym=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},wm=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return ka(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()})},xm=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Vn(e.paddingMD)} ${Vn(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Vn(e.padding)} ${Vn(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Vn(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Vn(e.paddingXS)} ${Vn(e.padding)}`:0,footerBorderTop:e.wireframe?`${Vn(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Vn(e.borderRadiusLG)} ${Vn(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Vn(2*e.padding)} ${Vn(2*e.padding)} ${Vn(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var Em=Ja("Modal",(e=>{const t=wm(e);return[bm(t),ym(t),vm(t),hm(t,"zoom")]}),xm,{unitless:{titleLineHeight:!0}}),Cm=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 Sm;const Om=e=>{Sm={x:e.pageX,y:e.pageY},setTimeout((()=>{Sm=null}),100)};sn()&&window.document.documentElement&&document.documentElement.addEventListener("click",Om,!0);const km=e=>{var n;const{getPopupContainer:r,getPrefixCls:i,direction:a,modal:l}=o.useContext(ia),c=t=>{const{onCancel:n}=e;null==n||n(t)};if("production"!==process.env.NODE_ENV){const t=jo("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[r,o]=n;t.deprecated(!(r in e),r,o)}))}const{prefixCls:s,className:u,rootClassName:d,open:f,wrapClassName:p,centered:m,getContainer:h,focusTriggerAfterClose:g=!0,style:v,visible:b,width:y=520,footer:w,classNames:x,styles:E,children:C,loading:S}=e,O=Cm(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),k=i("modal",s),N=i(),$=Qc(k),[I,_,R]=Em(k,$),P=Ze(p,{[`${k}-centered`]:!!m,[`${k}-wrap-rtl`]:"rtl"===a}),j=null===w||S?null:o.createElement(Tp,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:c})),[A,M]=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ip;const o=rp(e),i=rp(n),a=t.useMemo((()=>Object.assign({closeIcon:t.createElement(Ac,null)},r)),[r]),l=t.useMemo((()=>!1!==o&&(o?op(a,i,o):!1!==i&&(i?op(a,i):!!a.closable&&a))),[o,i,a]);return t.useMemo((()=>{if(!1===l)return[!1,null];const{closeIconRender:e}=a,{closeIcon:n}=l;let r=n;if(null!=r){e&&(r=e(n));const o=Wc(l,!0);Object.keys(o).length&&(r=t.isValidElement(r)?t.cloneElement(r,o):t.createElement("span",Object.assign({},o),r))}return[!0,r]}),[l,a])}(np(e),np(l),{closable:!0,closeIcon:o.createElement(Ac,{className:`${k}-close-icon`}),closeIconRender:e=>Mp(k,e)}),T=function(e){const t=o.useContext(Pp),n=o.useRef();return ya((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}(`.${k}-content`),[D,z]=vs("Modal",O.zIndex);return I(o.createElement(tp,{form:!0,space:!0},o.createElement(fs.Provider,{value:z},o.createElement(Vd,Object.assign({width:y},O,{zIndex:D,getContainer:void 0===h?r:h,prefixCls:k,rootClassName:Ze(_,d,R,$),footer:j,visible:null!=f?f:b,mousePosition:null!==(n=O.mousePosition)&&void 0!==n?n:Sm,onClose:c,closable:A,closeIcon:M,focusTriggerAfterClose:g,transitionName:Js(N,"zoom",e.transitionName),maskTransitionName:Js(N,"fade",e.maskTransitionName),className:Ze(_,u,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),v),classNames:Object.assign(Object.assign(Object.assign({},null==l?void 0:l.classNames),x),{wrapper:Ze(P,null==x?void 0:x.wrapper)}),styles:Object.assign(Object.assign({},null==l?void 0:l.styles),E),panelRef:T}),S?o.createElement(_p,{active:!0,title:!1,paragraph:{rows:4},className:`${k}-body-skeleton`}):C))))},Nm=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},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Vn(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}}};var $m=el(["Modal","confirm"],(e=>{const t=wm(e);return[Nm(t)]}),xm,{order:-1e3}),Im=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 _m(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:l,okCancel:c,footer:s,locale:u}=e,d=Im(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if("production"!==process.env.NODE_ENV){const e=jo("Modal");"production"!==process.env.NODE_ENV&&e(!("string"==typeof n&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let f=n;if(!n&&null!==n)switch(l){case"info":f=o.createElement(Lc,null);break;case"success":f=o.createElement($c,null);break;case"error":f=o.createElement(Rc,null);break;default:f=o.createElement(Dc,null)}const p=null!=c?c:"confirm"===l,m=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=Uo("Modal"),g=u||h,v=r||(p?null==g?void 0:g.okText:null==g?void 0:g.justOkText),b=i||(null==g?void 0:g.cancelText),y=Object.assign({autoFocusButton:m,cancelTextLocale:b,okTextLocale:v,mergedOkCancel:p},d),w=o.useMemo((()=>y),Qt(Object.values(y))),x=o.createElement(o.Fragment,null,o.createElement(vd,null),o.createElement(bd,null)),E=void 0!==e.title&&null!==e.title,C=`${a}-body`;return o.createElement("div",{className:`${a}-body-wrapper`},o.createElement("div",{className:Ze(C,{[`${C}-has-title`]:E})},f,o.createElement("div",{className:`${a}-paragraph`},E&&o.createElement("span",{className:`${a}-title`},e.title),o.createElement("div",{className:`${a}-content`},e.content))),void 0===s||"function"==typeof s?o.createElement(gd,{value:w},o.createElement("div",{className:`${a}-btns`},"function"==typeof s?s(x,{OkBtn:bd,CancelBtn:vd}):x)):s,o.createElement($m,{prefixCls:t}))}const Rm=e=>{const{close:t,zIndex:n,afterClose:r,open:i,keyboard:a,centered:l,getContainer:c,maskStyle:s,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:p,bodyStyle:m,closable:h=!1,closeIcon:g,modalRender:v,focusTriggerAfterClose:b,onConfirm:y,styles:w}=e;if("production"!==process.env.NODE_ENV){const t=jo("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[r,o]=n;t.deprecated(!(r in e),r,o)}))}const x=`${d}-confirm`,E=e.width||416,C=e.style||{},S=void 0===e.mask||e.mask,O=void 0!==e.maskClosable&&e.maskClosable,k=Ze(x,`${x}-${e.type}`,{[`${x}-rtl`]:"rtl"===u},e.className),[,N]=Ka(),$=o.useMemo((()=>void 0!==n?n:N.zIndexPopupBase+ms),[n,N]);return o.createElement(km,{prefixCls:d,className:k,wrapClassName:Ze({[`${x}-centered`]:!!e.centered},f),onCancel:()=>{null==t||t({triggerCancel:!0}),null==y||y(!1)},open:i,title:"",footer:null,transitionName:Js(p||"","zoom",e.transitionName),maskTransitionName:Js(p||"","fade",e.maskTransitionName),mask:S,maskClosable:O,style:C,styles:Object.assign({body:m,mask:s},w),width:E,zIndex:$,afterClose:r,keyboard:a,centered:l,getContainer:c,closable:h,closeIcon:g,modalRender:v,focusTriggerAfterClose:b},o.createElement(_m,Object.assign({},e,{confirmPrefixCls:x})))},Pm=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return o.createElement(fc,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},o.createElement(Rm,Object.assign({},e)))};"production"!==process.env.NODE_ENV&&(Rm.displayName="ConfirmDialog",Pm.displayName="ConfirmDialogWrapper");const jm=[];let Am="";function Mm(){return Am}const Tm=e=>{var n,r;const{prefixCls:o,getContainer:i,direction:a}=e,l=Wo(),c=t.useContext(ia),s=Mm()||c.getPrefixCls(),u=o||`${s}-modal`;let d=i;return!1===d&&(d=void 0,"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&Ao(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),t.createElement(Pm,Object.assign({},e,{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 Dm(e){const n=uc();"production"===process.env.NODE_ENV||n.holderRender||nc("Modal");const r=document.createDocumentFragment();let o,i=Object.assign(Object.assign({},e),{close:c,open:!0});function a(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a;o.some((e=>null==e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(Qt(o.slice(1)))));for(let e=0;e<jm.length;e++){if(jm[e]===c){jm.splice(e,1);break}}Ws(r)}function l(e){clearTimeout(o),o=setTimeout((()=>{const o=n.getPrefixCls(void 0,Mm()),i=n.getIconPrefixCls(),a=n.getTheme(),l=t.createElement(Tm,Object.assign({},e));Hs(t.createElement(fc,{prefixCls:o,iconPrefixCls:i,theme:a},n.holderRender?n.holderRender(l):l),r)}))}function c(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,l(i)}return l(i),jm.push(c),{destroy:c,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),l(i)}}}function zm(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Bm(e){return Object.assign(Object.assign({},e),{type:"info"})}function Lm(e){return Object.assign(Object.assign({},e),{type:"success"})}function Hm(e){return Object.assign(Object.assign({},e),{type:"error"})}function Fm(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var Vm=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 Km=(e,t)=>{var n,{afterClose:r,config:i}=e,a=Vm(e,["afterClose","config"]);const[l,c]=o.useState(!0),[s,u]=o.useState(i),{direction:d,getPrefixCls:f}=o.useContext(ia),p=f("modal"),m=f(),h=function(){var e;c(!1);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;n.some((e=>null==e?void 0:e.triggerCancel))&&(null===(e=s.onCancel)||void 0===e||(o=e).call.apply(o,[s,()=>{}].concat(Qt(n.slice(1)))))};o.useImperativeHandle(t,(()=>({destroy:h,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[v]=Uo("Modal",Ho.Modal);return o.createElement(Pm,Object.assign({prefixCls:p,rootPrefixCls:m},s,{close:h,open:l,afterClose:()=>{var e;r(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(g?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)},a))};var Wm=o.forwardRef(Km);let qm=0;const Um=o.memo(o.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=o.useState([]);return[e,o.useCallback((e=>(t((t=>[].concat(Qt(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return o.useImperativeHandle(t,(()=>({patchElement:r})),[]),o.createElement(o.Fragment,null,n)})));const Xm=t.createContext({});function Gm(e){return t=>o.createElement(fc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},t)))}const Ym=(e,t,n,r)=>Gm((i=>{const{prefixCls:a,style:l}=i,c=o.useRef(null),[s,u]=o.useState(0),[d,f]=o.useState(0),[p,m]=Ea(!1,{value:i.open}),{getPrefixCls:h}=o.useContext(ia),g=h(t||"select",a);o.useEffect((()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?`.${n(g)}`:`.${g}-dropdown`,i=null===(r=c.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});r&&(v=r(v));const b={paddingBottom:s,position:"relative",minWidth:d};return o.createElement("div",{ref:c,style:b},o.createElement(e,Object.assign({},v)))}));var Qm=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))},Jm=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,a=e.onMouseDown,l=e.onClick,c="function"==typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==c?c:o.createElement("span",{className:Ze(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},Zm=o.createContext(null);function eh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);return o.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 th=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],nh=void 0;function rh(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,m=e.display,h=e.order,g=e.component,v=void 0===g?"div":g,b=En(e,th),y=l&&!m;function w(e){s(u,e)}o.useEffect((function(){return function(){w(null)}}),[]);var x,E=a&&i!==nh?a(i):p;r||(x={opacity:y?0:1,height:y?0:nh,overflowY:y?"hidden":nh,order:l?h:nh,pointerEvents:y?"none":nh,position:y?"absolute":nh});var C={};y&&(C["aria-hidden"]=!0);var S=o.createElement(v,et({className:Ze(!r&&n,d),style:wt(wt({},x),f)},C,b,{ref:t}),E);return l&&(S=o.createElement(qt,{onResize:function(e){w(e.offsetWidth)},disabled:c},S)),S}var oh=o.forwardRef(rh);function ih(){var e=o.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)rn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){n.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function ah(e,t){var n=ln(o.useState(t),2),r=n[0],i=n[1];return[r,ya((function(t){e((function(){i(t)}))}))]}oh.displayName="Item";var lh=t.createContext(null),ch=["component"],sh=["className"],uh=["className"],dh=function(e,t){var n=o.useContext(lh);if(!n){var r=e.component,i=void 0===r?"div":r,a=En(e,ch);return o.createElement(i,et({},a,{ref:t}))}var l=n.className,c=En(n,sh),s=e.className,u=En(e,uh);return o.createElement(lh.Provider,{value:null},o.createElement(oh,et({ref:t,className:Ze(l,s)},c,u)))},fh=o.forwardRef(dh);fh.displayName="RawItem";var ph=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],mh="responsive",hh="invalidate";function gh(e){return"+ ".concat(e.length," ...")}function vh(e,n){var r=e.prefixCls,i=void 0===r?"rc-overflow":r,a=e.data,l=void 0===a?[]:a,c=e.renderItem,s=e.renderRawItem,u=e.itemKey,d=e.itemWidth,f=void 0===d?10:d,p=e.ssr,m=e.style,h=e.className,g=e.maxCount,v=e.renderRest,b=e.renderRawRest,y=e.suffix,w=e.component,x=void 0===w?"div":w,E=e.itemComponent,C=e.onVisibleChange,S=En(e,ph),O="full"===p,k=ih(),N=ln(ah(k,null),2),$=N[0],I=N[1],_=$||0,R=ln(ah(k,new Map),2),P=R[0],j=R[1],A=ln(ah(k,0),2),M=A[0],T=A[1],D=ln(ah(k,0),2),z=D[0],B=D[1],L=ln(ah(k,0),2),H=L[0],F=L[1],V=ln(t.useState(null),2),K=V[0],W=V[1],q=ln(t.useState(null),2),U=q[0],X=q[1],G=o.useMemo((function(){return null===U&&O?Number.MAX_SAFE_INTEGER:U||0}),[U,$]),Y=ln(t.useState(!1),2),Q=Y[0],J=Y[1],Z="".concat(i,"-item"),ee=Math.max(M,z),te=g===mh,ne=l.length&&te,re=g===hh,oe=ne||"number"==typeof g&&l.length>g,ie=t.useMemo((function(){var e=l;return ne?e=null===$&&O?l:l.slice(0,Math.min(l.length,_/f)):"number"==typeof g&&(e=l.slice(0,g)),e}),[l,f,$,g,ne]),ae=t.useMemo((function(){return ne?l.slice(G+1):l.slice(ie.length)}),[l,ie,ne,G]),le=t.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]),ce=t.useCallback(c||function(e){return e},[c]);function se(e,t,n){(U!==e||void 0!==t&&t!==K)&&(X(e),n||(J(e<l.length-1),null==C||C(e)),void 0!==t&&W(t))}function ue(e,t){j((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function de(e){return P.get(le(ie[e],e))}Gn((function(){if(_&&"number"==typeof ee&&ie){var e=H,t=ie.length,n=t-1;if(!t)return void se(0,null);for(var r=0;r<t;r+=1){var o=de(r);if(O&&(o=o||0),void 0===o){se(r-1,void 0,!0);break}if(e+=o,0===n&&e<=_||r===n-1&&e+de(n)<=_){se(n,null);break}if(e+ee>_){se(r-1,e-o-H+z);break}}y&&de(0)+H>_&&W(null)}}),[_,P,z,H,le,ie]);var fe=Q&&!!ae.length,pe={};null!==K&&ne&&(pe={position:"absolute",left:K,top:0});var me,he={prefixCls:Z,responsive:ne,component:E,invalidate:re},ge=s?function(e,t){var n=le(e,t);return o.createElement(lh.Provider,{key:n,value:wt(wt({},he),{},{order:t,item:e,itemKey:n,registerSize:ue,display:t<=G})},s(e,t))}:function(e,t){var n=le(e,t);return o.createElement(oh,et({},he,{order:t,key:n,item:e,renderItem:ce,itemKey:n,registerSize:ue,display:t<=G}))},ve={order:fe?G:Number.MAX_SAFE_INTEGER,className:"".concat(Z,"-rest"),registerSize:function(e,t){B(t),T(z)},display:fe};if(b)b&&(me=o.createElement(lh.Provider,{value:wt(wt({},he),ve)},b(ae)));else{var be=v||gh;me=o.createElement(oh,et({},he,ve),"function"==typeof be?be(ae):be)}var ye=o.createElement(x,et({className:Ze(!re&&i,h),style:m,ref:n},S),ie.map(ge),oe?me:null,y&&o.createElement(oh,et({},he,{responsive:te,responsiveDisabled:!ne,order:G,className:"".concat(Z,"-suffix"),registerSize:function(e,t){F(t)},display:!0,style:pe}),y));return te&&(ye=o.createElement(qt,{onResize:function(e,t){I(t.clientWidth)},disabled:!ne},ye)),ye}var bh=o.forwardRef(vh);bh.displayName="Overflow",bh.Item=fh,bh.RESPONSIVE=mh,bh.INVALIDATE=hh;var yh=function(e,t){var n,r=e.prefixCls,i=e.id,a=e.inputElement,l=e.disabled,c=e.tabIndex,s=e.autoFocus,u=e.autoComplete,d=e.editable,f=e.activeDescendantId,p=e.value,m=e.maxLength,h=e.onKeyDown,g=e.onMouseDown,v=e.onChange,b=e.onPaste,y=e.onCompositionStart,w=e.onCompositionEnd,x=e.open,E=e.attrs,C=a||o.createElement("input",null),S=C,O=S.ref,k=S.props,N=k.onKeyDown,$=k.onChange,I=k.onMouseDown,_=k.onCompositionStart,R=k.onCompositionEnd,P=k.style;return ut(!("maxLength"in C.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),C=o.cloneElement(C,wt(wt(wt({type:"search"},k),{},{id:i,ref:Ot(t,O),disabled:l,tabIndex:c,autoComplete:u||"off",autoFocus:s,className:Ze("".concat(r,"-selection-search-input"),null===(n=C)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":x?f:void 0},E),{},{value:d?p:"",maxLength:m,readOnly:!d,unselectable:d?null:"on",style:wt(wt({},P),{},{opacity:d?null:0}),onKeyDown:function(e){h(e),N&&N(e)},onMouseDown:function(e){g(e),I&&I(e)},onChange:function(e){v(e),$&&$(e)},onCompositionStart:function(e){y(e),_&&_(e)},onCompositionEnd:function(e){w(e),R&&R(e)},onPaste:b}))},wh=o.forwardRef(yh);function xh(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"production"!==process.env.NODE_ENV&&(wh.displayName="Input");var Eh="undefined"!=typeof window&&window.document&&window.document.documentElement,Ch="test"!==process.env.NODE_ENV&&Eh;function Sh(e){return["string","number"].includes(gt(e))}function Oh(e){var t=void 0;return e&&(Sh(e.title)?t=e.title.toString():Sh(e.label)&&(t=e.label.toString())),t}function kh(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Nh=function(e){e.preventDefault(),e.stopPropagation()},$h=function(e){var n,r,i=e.id,a=e.prefixCls,l=e.values,c=e.open,s=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,p=e.disabled,m=e.mode,h=e.showSearch,g=e.autoFocus,v=e.autoComplete,b=e.activeDescendantId,y=e.tabIndex,w=e.removeIcon,x=e.maxTagCount,E=e.maxTagTextLength,C=e.maxTagPlaceholder,S=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,O=e.tagRender,k=e.onToggleOpen,N=e.onRemove,$=e.onInputChange,I=e.onInputPaste,_=e.onInputKeyDown,R=e.onInputMouseDown,P=e.onInputCompositionStart,j=e.onInputCompositionEnd,A=o.useRef(null),M=ln(t.useState(0),2),T=M[0],D=M[1],z=ln(t.useState(!1),2),B=z[0],L=z[1],H="".concat(a,"-selection"),F=c||"multiple"===m&&!1===u||"tags"===m?s:"",V="tags"===m||"multiple"===m&&!1===u||h&&(c||B);n=function(){D(A.current.scrollWidth)},r=[F],Ch?o.useLayoutEffect(n,r):o.useEffect(n,r);var K=function(e,t,n,r,i){return o.createElement("span",{title:Oh(e),className:Ze("".concat(H,"-item"),bt({},"".concat(H,"-item-disabled"),n))},o.createElement("span",{className:"".concat(H,"-item-content")},t),r&&o.createElement(Jm,{className:"".concat(H,"-item-remove"),onMouseDown:Nh,onClick:i,customizeIcon:w},"×"))},W=function(e,t,n,r,i,a){return o.createElement("span",{onMouseDown:function(e){Nh(e),k(!c)}},O({label:t,value:e,disabled:n,closable:r,onClose:i,isMaxTag:!!a}))},q=o.createElement("div",{className:"".concat(H,"-search"),style:{width:T},onFocus:function(){L(!0)},onBlur:function(){L(!1)}},o.createElement(wh,{ref:d,open:c,prefixCls:a,id:i,inputElement:null,disabled:p,autoFocus:g,autoComplete:v,editable:V,activeDescendantId:b,value:F,onKeyDown:_,onMouseDown:R,onChange:$,onPaste:I,onCompositionStart:P,onCompositionEnd:j,tabIndex:y,attrs:Wc(e,!0)}),o.createElement("span",{ref:A,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},F," ")),U=o.createElement(bh,{prefixCls:"".concat(H,"-overflow"),data:l,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!p&&!t,i=n;if("number"==typeof E&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>E&&(i="".concat(a.slice(0,E),"..."))}var l=function(t){t&&t.stopPropagation(),N(e)};return"function"==typeof O?W(r,i,t,o,l):K(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof S?S(e):S;return"function"==typeof O?W(void 0,t,!1,!1,void 0,!0):K({title:t},t,!1)},suffix:q,itemKey:kh,maxCount:x});return o.createElement(o.Fragment,null,U,!l.length&&!F&&o.createElement("span",{className:"".concat(H,"-placeholder")},f))},Ih=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,w=e.onInputMouseDown,x=e.onInputChange,E=e.onInputPaste,C=e.onInputCompositionStart,S=e.onInputCompositionEnd,O=e.title,k=ln(o.useState(!1),2),N=k[0],$=k[1],I="combobox"===u,_=I||h,R=f[0],P=g||"";I&&v&&!N&&(P=v),o.useEffect((function(){I&&$(!1)}),[I,v]);var j=!("combobox"!==u&&!d&&!h)&&!!P,A=void 0===O?Oh(R):O,M=o.useMemo((function(){return R?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},p)}),[R,j,p,n]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(wh,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:l,autoComplete:c,editable:_,activeDescendantId:s,value:P,onKeyDown:y,onMouseDown:w,onChange:function(e){$(!0),x(e)},onPaste:E,onCompositionStart:C,onCompositionEnd:S,tabIndex:m,attrs:Wc(e,!0),maxLength:I?b:void 0})),!I&&R?o.createElement("span",{className:"".concat(n,"-selection-item"),title:A,style:j?{visibility:"hidden"}:void 0},R.label):null,M)},_h=function(e,n){var r=t.useRef(null),i=t.useRef(!1),a=e.prefixCls,l=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.disabled,f=e.autoClearSearchValue,p=e.onSearch,m=e.onSearchSubmit,h=e.onToggleOpen,g=e.onInputKeyDown,v=e.domRef;o.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var b=ln(eh(0),2),y=b[0],w=b[1],x=t.useRef(null),E=function(e){!1!==p(e,!0,i.current)&&h(!0)},C={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==Jc.UP&&n!==Jc.DOWN||e.preventDefault(),g&&g(e),n!==Jc.ENTER||"tags"!==c||i.current||l||null==m||m(e.target.value),t=n,[Jc.ESC,Jc.SHIFT,Jc.BACKSPACE,Jc.TAB,Jc.WIN_KEY,Jc.ALT,Jc.META,Jc.WIN_KEY_RIGHT,Jc.CTRL,Jc.SEMICOLON,Jc.EQUALS,Jc.CAPS_LOCK,Jc.CONTEXT_MENU,Jc.F1,Jc.F2,Jc.F3,Jc.F4,Jc.F5,Jc.F6,Jc.F7,Jc.F8,Jc.F9,Jc.F10,Jc.F11,Jc.F12].includes(t)||h(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(u&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,E(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");x.current=n||""},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(e){i.current=!1,"combobox"!==c&&E(e.target.value)}},S="multiple"===c||"tags"===c?o.createElement($h,et({},e,C)):o.createElement(Ih,et({},e,C));return o.createElement("div",{ref:v,className:"".concat(a,"-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=y();e.target===r.current||t||"combobox"===c&&d||e.preventDefault(),("combobox"===c||s&&t)&&l||(l&&!1!==f&&p("",!0,!1),h())}},S)},Rh=o.forwardRef(_h);function Ph(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,p=o.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],v=h[0],b=h[1],y=g[0],w=g[1];v!==y&&["t","b"].includes(v)?"t"===v?m.top=0:m.bottom=0:m.top=f,b!==w&&["l","r"].includes(b)?"l"===b?m.left=0:m.right=0:m.left=u}return o.createElement("div",{ref:p,className:Ze("".concat(t,"-arrow"),l),style:m},c)}function jh(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?o.createElement(Ll,et({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return o.createElement("div",{style:{zIndex:r},className:Ze("".concat(t,"-mask"),n)})})):null}"production"!==process.env.NODE_ENV&&(Rh.displayName="Selector");var Ah=o.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(Ah.displayName="PopupContent");var Mh=o.forwardRef((function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,w=e.getPopupContainer,x=e.autoDestroy,E=e.portal,C=e.zIndex,S=e.onMouseEnter,O=e.onMouseLeave,k=e.onPointerEnter,N=e.ready,$=e.offsetX,I=e.offsetY,_=e.offsetR,R=e.offsetB,P=e.onAlign,j=e.onPrepare,A=e.stretch,M=e.targetWidth,T=e.targetHeight,D="function"==typeof n?n():n,z=s||u,B=(null==w?void 0:w.length)>0,L=ln(o.useState(!w||!B),2),H=L[0],F=L[1];if(Gn((function(){!H&&B&&l&&F(!0)}),[H,B,l]),!H)return null;var V="auto",K={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(N||!s){var W,q=g.points,U=g.dynamicInset||(null===(W=g._experimental)||void 0===W?void 0:W.dynamicInset),X=U&&"r"===q[0][1],G=U&&"b"===q[0][0];X?(K.right=_,K.left=V):(K.left=$,K.right=V),G?(K.bottom=R,K.top=V):(K.top=I,K.bottom=V)}var Y={};return A&&(A.includes("height")&&T?Y.height=T:A.includes("minHeight")&&T&&(Y.minHeight=T),A.includes("width")&&M?Y.width=M:A.includes("minWidth")&&M&&(Y.minWidth=M)),s||(Y.pointerEvents="none"),o.createElement(E,{open:y||z,getContainer:w&&function(){return w(l)},autoDestroy:x},o.createElement(jh,{prefixCls:i,open:s,zIndex:C,mask:p,motion:b}),o.createElement(qt,{onResize:P,disabled:!s},(function(e){return o.createElement(Ll,et({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:j,onEnterPrepare:j,visible:s,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),c(e)}}),(function(n,l){var c=n.className,u=n.style,p=Ze(i,c,r);return o.createElement("div",{ref:Ot(e,t,l),className:p,style:wt(wt(wt(wt({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},K),Y),u),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:S,onMouseLeave:O,onPointerEnter:k,onClick:f},m&&o.createElement(Ph,{prefixCls:i,arrow:m,arrowPos:h,align:g}),o.createElement(Ah,{cache:!s&&!d},D))}))})))}));"production"!==process.env.NODE_ENV&&(Mh.displayName="Popup");var Th=o.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Nt(n),a=o.useCallback((function(e){St(t,r?r(e):e)}),[r]),l=kt(a,n.ref);return i?o.cloneElement(n,{ref:l}):n}));"production"!==process.env.NODE_ENV&&(Th.displayName="TriggerWrapper");var Dh=o.createContext(null);function zh(e){return e?Array.isArray(e)?e:[e]:[]}function Bh(){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 Lh(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Hh(e){return e.ownerDocument.defaultView}function Fh(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Hh(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 Vh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Kh(e){return Vh(parseFloat(e),0)}function Wh(e,t){var n=wt({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Hh(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=Kh(i),h=Kh(a),g=Kh(l),v=Kh(c),b=Vh(Math.round(s.width/f*1e3)/1e3),y=Vh(Math.round(s.height/u*1e3)/1e3),w=(f-p-g-v)*b,x=(u-d-m-h)*y,E=m*y,C=h*y,S=g*b,O=v*b,k=0,N=0;if("clip"===r){var $=Kh(o);k=$*b,N=$*y}var I=s.x+S-k,_=s.y+E-N,R=I+s.width+2*k-S-O-w,P=_+s.height+2*N-E-C-x;n.left=Math.max(n.left,I),n.top=Math.max(n.top,_),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,P)}})),n}function qh(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 Uh(e,t){var n=ln(t||[],2),r=n[0],o=n[1];return[qh(e.width,r),qh(e.height,o)]}function Xh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Gh(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 Yh(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 Qh=["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 Jh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Id,t=o.forwardRef((function(t,n){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=t.children,l=t.action,c=void 0===l?"hover":l,s=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,p=t.onPopupVisibleChange,m=t.afterPopupVisibleChange,h=t.mouseEnterDelay,g=t.mouseLeaveDelay,v=void 0===g?.1:g,b=t.focusDelay,y=t.blurDelay,w=t.mask,x=t.maskClosable,E=void 0===x||x,C=t.getPopupContainer,S=t.forceRender,O=t.autoDestroy,k=t.destroyPopupOnHide,N=t.popup,$=t.popupClassName,I=t.popupStyle,_=t.popupPlacement,R=t.builtinPlacements,P=void 0===R?{}:R,j=t.popupAlign,A=t.zIndex,M=t.stretch,T=t.getPopupClassNameFromAlign,D=t.fresh,z=t.alignPoint,B=t.onPopupClick,L=t.onPopupAlign,H=t.arrow,F=t.popupMotion,V=t.maskMotion,K=t.popupTransitionName,W=t.popupAnimation,q=t.maskTransitionName,U=t.maskAnimation,X=t.className,G=t.getTriggerDOMNode,Y=En(t,Qh),Q=O||k||!1,J=ln(o.useState(!1),2),Z=J[0],ee=J[1];Gn((function(){ee(Qm())}),[]);var te=o.useRef({}),ne=o.useContext(Dh),re=o.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=jd(),ie=ln(o.useState(null),2),ae=ie[0],le=ie[1],ce=o.useRef(null),se=ya((function(e){ce.current=e,xt(e)&&ae!==e&&le(e),null==ne||ne.registerSubPopup(oe,e)})),ue=ln(o.useState(null),2),de=ue[0],fe=ue[1],pe=o.useRef(null),me=ya((function(e){xt(e)&&de!==e&&(fe(e),pe.current=e)})),he=o.Children.only(a),ge=(null==he?void 0:he.props)||{},ve={},be=ya((function(e){var t,n,r=de;return(null==r?void 0:r.contains(e))||(null===(t=hc(r))||void 0===t?void 0:t.host)===e||e===r||(null==ae?void 0:ae.contains(e))||(null===(n=hc(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ye=Lh(i,F,W,K),we=Lh(i,V,U,q),xe=ln(o.useState(f||!1),2),Ee=xe[0],Ce=xe[1],Se=null!=d?d:Ee,Oe=ya((function(e){void 0===d&&Ce(e)}));Gn((function(){Ce(d||!1)}),[d]);var ke=o.useRef(Se);ke.current=Se;var Ne=o.useRef([]);Ne.current=[];var $e=ya((function(e){var t;Oe(e),(null!==(t=Ne.current[Ne.current.length-1])&&void 0!==t?t:Se)!==e&&(Ne.current.push(e),null==p||p(e))})),Ie=o.useRef(),_e=function(){clearTimeout(Ie.current)},Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_e(),0===t?$e(e):Ie.current=setTimeout((function(){$e(e)}),1e3*t)};o.useEffect((function(){return _e}),[]);var Pe=ln(o.useState(!1),2),je=Pe[0],Ae=Pe[1];Gn((function(e){e&&!Se||Ae(!0)}),[Se]);var Me=ln(o.useState(null),2),Te=Me[0],De=Me[1],ze=ln(o.useState([0,0]),2),Be=ze[0],Le=ze[1],He=function(e){Le([e.clientX,e.clientY])},Fe=function(e,t,n,r,i,a,l){var c=ln(o.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),s=c[0],u=c[1],d=o.useRef(0),f=o.useMemo((function(){return t?Fh(t):[]}),[t]),p=o.useRef({});e||(p.current={});var m=ya((function(){if(t&&n&&e){var o,c,s,d=t,m=d.ownerDocument,h=Hh(d).getComputedStyle(d),g=h.width,v=h.height,b=h.position,y=d.style.left,w=d.style.top,x=d.style.right,E=d.style.bottom,C=d.style.overflow,S=wt(wt({},i[r]),a),O=m.createElement("div");if(null===(o=d.parentElement)||void 0===o||o.appendChild(O),O.style.left="".concat(d.offsetLeft,"px"),O.style.top="".concat(d.offsetTop,"px"),O.style.position=b,O.style.height="".concat(d.offsetHeight,"px"),O.style.width="".concat(d.offsetWidth,"px"),d.style.left="0",d.style.top="0",d.style.right="auto",d.style.bottom="auto",d.style.overflow="hidden",Array.isArray(n))s={x:n[0],y:n[1],width:0,height:0};else{var k=n.getBoundingClientRect();s={x:k.x,y:k.y,width:k.width,height:k.height}}var N=d.getBoundingClientRect(),$=m.documentElement,I=$.clientWidth,_=$.clientHeight,R=$.scrollWidth,P=$.scrollHeight,j=$.scrollTop,A=$.scrollLeft,M=N.height,T=N.width,D=s.height,z=s.width,B={left:0,top:0,right:I,bottom:_},L={left:-A,top:-j,right:R-A,bottom:P-j},H=S.htmlRegion,F="visible",V="visibleFirst";"scroll"!==H&&H!==V&&(H=F);var K=H===V,W=Wh(L,f),q=Wh(B,f),U=H===F?q:W,X=K?q:U;d.style.left="auto",d.style.top="auto",d.style.right="0",d.style.bottom="0";var G=d.getBoundingClientRect();d.style.left=y,d.style.top=w,d.style.right=x,d.style.bottom=E,d.style.overflow=C,null===(c=d.parentElement)||void 0===c||c.removeChild(O);var Y=Vh(Math.round(T/parseFloat(g)*1e3)/1e3),Q=Vh(Math.round(M/parseFloat(v)*1e3)/1e3);if(0===Y||0===Q||xt(n)&&!Zs(n))return;var J=S.offset,Z=S.targetOffset,ee=ln(Uh(N,J),2),te=ee[0],ne=ee[1],re=ln(Uh(s,Z),2),oe=re[0],ie=re[1];s.x-=oe,s.y-=ie;var ae=ln(S.points||[],2),le=ae[0],ce=Xh(ae[1]),se=Xh(le),ue=Gh(s,ce),de=Gh(N,se),fe=wt({},S),pe=ue.x-de.x+te,me=ue.y-de.y+ne;function lt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,r=N.x+e,o=N.y+t,i=r+T,a=o+M,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 he,ge,ve,be,ye=lt(pe,me),we=lt(pe,me,q),xe=Gh(s,["t","l"]),Ee=Gh(N,["t","l"]),Ce=Gh(s,["b","r"]),Se=Gh(N,["b","r"]),Oe=S.overflow||{},ke=Oe.adjustX,Ne=Oe.adjustY,$e=Oe.shiftX,Ie=Oe.shiftY,_e=function(e){return"boolean"==typeof e?e:e>=0};function ct(){he=N.y+me,ge=he+M,ve=N.x+pe,be=ve+T}ct();var Re=_e(Ne),Pe=se[0]===ce[0];if(Re&&"t"===se[0]&&(ge>X.bottom||p.current.bt)){var je=me;Pe?je-=M-D:je=xe.y-Se.y-ne;var Ae=lt(pe,je),Me=lt(pe,je,q);Ae>ye||Ae===ye&&(!K||Me>=we)?(p.current.bt=!0,me=je,ne=-ne,fe.points=[Yh(se,0),Yh(ce,0)]):p.current.bt=!1}if(Re&&"b"===se[0]&&(he<X.top||p.current.tb)){var Te=me;Pe?Te+=M-D:Te=Ce.y-Ee.y-ne;var De=lt(pe,Te),ze=lt(pe,Te,q);De>ye||De===ye&&(!K||ze>=we)?(p.current.tb=!0,me=Te,ne=-ne,fe.points=[Yh(se,0),Yh(ce,0)]):p.current.tb=!1}var Be=_e(ke),Le=se[1]===ce[1];if(Be&&"l"===se[1]&&(be>X.right||p.current.rl)){var He=pe;Le?He-=T-z:He=xe.x-Se.x-te;var Fe=lt(He,me),Ve=lt(He,me,q);Fe>ye||Fe===ye&&(!K||Ve>=we)?(p.current.rl=!0,pe=He,te=-te,fe.points=[Yh(se,1),Yh(ce,1)]):p.current.rl=!1}if(Be&&"r"===se[1]&&(ve<X.left||p.current.lr)){var Ke=pe;Le?Ke+=T-z:Ke=Ce.x-Ee.x-te;var We=lt(Ke,me),qe=lt(Ke,me,q);We>ye||We===ye&&(!K||qe>=we)?(p.current.lr=!0,pe=Ke,te=-te,fe.points=[Yh(se,1),Yh(ce,1)]):p.current.lr=!1}ct();var Ue=!0===$e?0:$e;"number"==typeof Ue&&(ve<q.left&&(pe-=ve-q.left-te,s.x+z<q.left+Ue&&(pe+=s.x-q.left+z-Ue)),be>q.right&&(pe-=be-q.right-te,s.x>q.right-Ue&&(pe+=s.x-q.right+Ue)));var Xe=!0===Ie?0:Ie;"number"==typeof Xe&&(he<q.top&&(me-=he-q.top-ne,s.y+D<q.top+Xe&&(me+=s.y-q.top+D-Xe)),ge>q.bottom&&(me-=ge-q.bottom-ne,s.y>q.bottom-Xe&&(me+=s.y-q.bottom+Xe)));var Ge=N.x+pe,Ye=Ge+T,Qe=N.y+me,Je=Qe+M,Ze=s.x,et=Ze+z,tt=s.y,nt=tt+D,rt=(Math.max(Ge,Ze)+Math.min(Ye,et))/2-Ge,ot=(Math.max(Qe,tt)+Math.min(Je,nt))/2-Qe;null==l||l(t,fe);var it=G.right-N.x-(pe+N.width),at=G.bottom-N.y-(me+N.height);1===Y&&(pe=Math.round(pe),it=Math.round(it)),1===Q&&(me=Math.round(me),at=Math.round(at)),u({ready:!0,offsetX:pe/Y,offsetY:me/Q,offsetR:it/Y,offsetB:at/Q,arrowX:rt/Y,arrowY:ot/Q,scaleX:Y,scaleY:Q,align:fe})}})),h=function(){u((function(e){return wt(wt({},e),{},{ready:!1})}))};return Gn(h,[r]),Gn((function(){e||h()}),[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()}))}]}(Se,ae,z?Be:de,_,P,j,L),Ve=ln(Fe,11),Ke=Ve[0],We=Ve[1],qe=Ve[2],Ue=Ve[3],Xe=Ve[4],Ge=Ve[5],Ye=Ve[6],Qe=Ve[7],Je=Ve[8],et=Ve[9],tt=Ve[10],nt=function(e,t,n,r){return o.useMemo((function(){var o=zh(null!=n?n:t),i=zh(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])}(Z,c,s,u),rt=ln(nt,2),ot=rt[0],it=rt[1],at=ot.has("click"),lt=it.has("click")||it.has("contextMenu"),ct=ya((function(){je||tt()}));!function(e,t,n,r,o){Gn((function(){if(e&&t&&n){var i=n,a=Fh(t),l=Fh(i),c=Hh(i),s=new Set([c].concat(Qt(a),Qt(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])}(Se,de,ae,ct,(function(){ke.current&&z&&lt&&Re(!1)})),Gn((function(){ct()}),[Be,_]),Gn((function(){!Se||null!=P&&P[_]||ct()}),[JSON.stringify(j)]);var st=o.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(Bh(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(P,i,et,z);return Ze(e,null==T?void 0:T(et))}),[et,T,P,i,z]);o.useImperativeHandle(n,(function(){return{nativeElement:pe.current,popupElement:ce.current,forceAlign:ct}}));var dt=ln(o.useState(0),2),ft=dt[0],pt=dt[1],mt=ln(o.useState(0),2),ht=mt[0],gt=mt[1],vt=function(){if(M&&de){var e=de.getBoundingClientRect();pt(e.width),gt(e.height)}};function bt(e,t,n,r){ve[e]=function(o){var i;null==r||r(o),Re(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=ge[e])||void 0===i||i.call.apply(i,[ge,o].concat(l))}}Gn((function(){Te&&(tt(),Te(),De(null))}),[Te]),(at||lt)&&(ve.onClick=function(e){var t;ke.current&&lt?Re(!1):!ke.current&&at&&(He(e),Re(!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=ge.onClick)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),function(e,t,n,r,i,a,l,c){var s=o.useRef(e);s.current=e,o.useEffect((function(){if(t&&r&&(!i||a)){var e=function(e){var t;s.current&&!l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},o=Hh(r);o.addEventListener("mousedown",e,!0),o.addEventListener("contextmenu",e,!0);var u,d,f=hc(n);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&ut((null==n||null===(u=n.getRootNode)||void 0===u?void 0:u.call(n))===(null===(d=r.getRootNode)||void 0===d?void 0:d.call(r)),"trigger element and popup element should in same shadow root."),function(){o.removeEventListener("mousedown",e,!0),o.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,i,a])}(Se,lt,de,ae,w,E,be,Re);var yt,Et,Ct=ot.has("hover"),St=it.has("hover");Ct&&(bt("onMouseEnter",!0,h,(function(e){He(e)})),bt("onPointerEnter",!0,h,(function(e){He(e)})),yt=function(e){(Se||je)&&null!=ae&&ae.contains(e.target)&&Re(!0,h)},z&&(ve.onMouseMove=function(e){var t;null===(t=ge.onMouseMove)||void 0===t||t.call(ge,e)})),St&&(bt("onMouseLeave",!1,v),bt("onPointerLeave",!1,v),Et=function(){Re(!1,v)}),ot.has("focus")&&bt("onFocus",!0,b),it.has("focus")&&bt("onBlur",!1,y),ot.has("contextMenu")&&(ve.onContextMenu=function(e){var t;ke.current&&it.has("contextMenu")?Re(!1):(He(e),Re(!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=ge.onContextMenu)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),X&&(ve.className=Ze(ge.className,X));var Ot=wt(wt({},ge),ve),kt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Y[e]&&(kt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Ot[e])||void 0===t||t.call.apply(t,[Ot].concat(r)),Y[e].apply(Y,r)})}));var Nt=o.cloneElement(he,wt(wt({},Ot),kt)),$t={x:Ge,y:Ye},It=H?wt({},!0!==H?H:{}):null;return o.createElement(o.Fragment,null,o.createElement(qt,{disabled:!Se,ref:me,onResize:function(){vt(),ct()}},o.createElement(Th,{getTriggerDOMNode:G},Nt)),o.createElement(Dh.Provider,{value:re},o.createElement(Mh,{portal:e,ref:se,prefixCls:i,popup:N,className:Ze($,st),style:I,target:de,onMouseEnter:yt,onMouseLeave:Et,onPointerEnter:yt,zIndex:A,open:Se,keepDom:je,fresh:D,onClick:B,mask:w,motion:ye,maskMotion:we,onVisibleChanged:function(e){Ae(!1),tt(),null==m||m(e)},onPrepare:function(){return new Promise((function(e){vt(),De((function(){return e}))}))},forceRender:S,autoDestroy:Q,getPopupContainer:C,align:et,arrow:It,arrowPos:$t,ready:Ke,offsetX:We,offsetY:qe,offsetR:Ue,offsetB:Xe,onAlign:ct,stretch:M,targetWidth:ft/Qe,targetHeight:ht/Je})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(Id),Zh=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],eg=function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,i=e.children,a=e.popupElement,l=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,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,v=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,w=e.getTriggerDOMNode,x=e.onPopupVisibleChange,E=e.onPopupMouseEnter,C=En(e,Zh),S="".concat(n,"-dropdown"),O=a;g&&(O=g(a));var k=o.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"}}}(h)}),[m,h]),N=l?"".concat(S,"-").concat(l):c,$="number"==typeof h,I=o.useMemo((function(){return $?null:!1===h?"minWidth":"width"}),[h,$]),_=s;$&&(_=wt(wt({},_),{},{width:h}));var R=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=R.current)||void 0===e?void 0:e.popupElement}}})),o.createElement(Jh,et({},C,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:S,popupTransitionName:N,popup:o.createElement("div",{onMouseEnter:E},O),ref:R,stretch:I,popupAlign:v,popupVisible:r,getPopupContainer:b,popupClassName:Ze(u,bt({},"".concat(S,"-empty"),y)),popupStyle:_,getTriggerDOMNode:w,onPopupVisibleChange:x}),i)},tg=o.forwardRef(eg);function ng(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 rg(e){return void 0!==e&&!Number.isNaN(e)}function og(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 ig(e){var t=wt({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return mt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}"production"!==process.env.NODE_ENV&&(tg.displayName="SelectTrigger");var ag=o.createContext(null);function lg(e){var t=e.visible,n=e.values;if(!t)return null;return o.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(gt(t))?t:n})).join(", ")),n.length>50?", ...":null)}var cg=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],sg=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ug=function(e){return"tags"===e||"multiple"===e},dg=o.forwardRef((function(e,n){var r,i=e.id,a=e.prefixCls,l=e.className,c=e.showSearch,s=e.tagRender,u=e.direction,d=e.omitDomProps,f=e.displayValues,p=e.onDisplayValuesChange,m=e.emptyOptions,h=e.notFoundContent,g=void 0===h?"Not Found":h,v=e.onClear,b=e.mode,y=e.disabled,w=e.loading,x=e.getInputElement,E=e.getRawInputElement,C=e.open,S=e.defaultOpen,O=e.onDropdownVisibleChange,k=e.activeValue,N=e.onActiveValueChange,$=e.activeDescendantId,I=e.searchValue,_=e.autoClearSearchValue,R=e.onSearch,P=e.onSearchSplit,j=e.tokenSeparators,A=e.allowClear,M=e.suffixIcon,T=e.clearIcon,D=e.OptionList,z=e.animation,B=e.transitionName,L=e.dropdownStyle,H=e.dropdownClassName,F=e.dropdownMatchSelectWidth,V=e.dropdownRender,K=e.dropdownAlign,W=e.placement,q=e.builtinPlacements,U=e.getPopupContainer,X=e.showAction,G=void 0===X?[]:X,Y=e.onFocus,Q=e.onBlur,J=e.onKeyUp,Z=e.onKeyDown,ee=e.onMouseDown,te=En(e,cg),ne=ug(b),re=(void 0!==c?c:ne)||"combobox"===b,oe=wt({},te);sg.forEach((function(e){delete oe[e]})),null==d||d.forEach((function(e){delete oe[e]}));var ie=ln(o.useState(!1),2),ae=ie[0],le=ie[1];o.useEffect((function(){le(Qm())}),[]);var ce=o.useRef(null),se=o.useRef(null),ue=o.useRef(null),de=o.useRef(null),fe=o.useRef(null),pe=o.useRef(!1),me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=ln(o.useState(!1),2),n=t[0],r=t[1],i=o.useRef(null),a=function(){window.clearTimeout(i.current)};return o.useEffect((function(){return a}),[]),[n,function(t,n){a(),i.current=window.setTimeout((function(){r(t),n&&n()}),e)},a]}(),he=ln(me,3),ge=he[0],ve=he[1],be=he[2];o.useImperativeHandle(n,(function(){var e,t;return{focus:null===(e=de.current)||void 0===e?void 0:e.focus,blur:null===(t=de.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=fe.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:ce.current||se.current}}));var ye=o.useMemo((function(){var e;if("combobox"!==b)return I;var t=null===(e=f[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[I,b,f]),we="combobox"===b&&"function"==typeof x&&x()||null,xe="function"==typeof E&&E(),Ee=kt(se,null==xe||null===(r=xe.props)||void 0===r?void 0:r.ref),Ce=ln(o.useState(!1),2),Se=Ce[0],Oe=Ce[1];Gn((function(){Oe(!0)}),[]);var ke=ln(Ea(!1,{defaultValue:S,value:C}),2),Ne=ke[0],$e=ke[1],Ie=!!Se&&Ne,_e=!g&&m;(y||_e&&Ie&&"combobox"===b)&&(Ie=!1);var Re=!_e&&Ie,Pe=o.useCallback((function(e){var t=void 0!==e?e:!Ie;y||($e(t),Ie!==t&&(null==O||O(t)))}),[y,Ie,$e,O]),je=o.useMemo((function(){return(j||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[j]),Ae=o.useContext(ag)||{},Me=Ae.maxCount,Te=Ae.rawValues,De=function(e,t,n){if(!(ne&&rg(Me)&&(null==Te?void 0:Te.size)>=Me)){var r=!0,o=e;null==N||N(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=Eo(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(Qt(t),Qt(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,j,rg(Me)?Me-Te.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(o="",null==P||P(a),Pe(!1),r=!1),R&&ye!==o&&R(o,{source:t?"typing":"effect"}),r}};o.useEffect((function(){Ie||ne||"combobox"===b||De("",!1,!1)}),[Ie]),o.useEffect((function(){Ne&&y&&$e(!1),y&&!pe.current&&ve(!1)}),[y]);var ze=ln(eh(),2),Be=ze[0],Le=ze[1],He=o.useRef(!1),Fe=o.useRef(!1),Ve=[];o.useEffect((function(){return function(){Ve.forEach((function(e){return clearTimeout(e)})),Ve.splice(0,Ve.length)}}),[]);var Ke,We=ln(o.useState({}),2)[1];xe&&(Ke=function(e){Pe(e)}),function(e,t,n,r){var i=o.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[ce.current,null===(e=ue.current)||void 0===e?void 0:e.getPopupElement()]}),Re,Pe,!!xe);var qe,Ue=o.useMemo((function(){return wt(wt({},e),{},{notFoundContent:g,open:Ie,triggerOpen:Re,id:i,showSearch:re,multiple:ne,toggleOpen:Pe})}),[e,g,Re,Ie,i,re,ne,Pe]),Xe=!!M||w;Xe&&(qe=o.createElement(Jm,{className:Ze("".concat(a,"-arrow"),bt({},"".concat(a,"-arrow-loading"),w)),customizeIcon:M,customizeIconProps:{loading:w,searchValue:ye,open:Ie,focused:ge,showSearch:re}}));var Ge,Ye=function(e,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=t.useMemo((function(){return"object"===gt(o)?o.clearIcon:i||void 0}),[o,i]);return{allowClear:t.useMemo((function(){return!(a||!o||!r.length&&!l||"combobox"===c&&""===l)}),[o,a,r.length,l,c]),clearIcon:t.createElement(Jm,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:s},"×")}}(a,(function(){var e;null==v||v(),null===(e=de.current)||void 0===e||e.focus(),p([],{type:"clear",values:f}),De("",!1,!1)}),f,A,T,y,ye,b),Qe=Ye.allowClear,Je=Ye.clearIcon,tt=o.createElement(D,{ref:fe}),nt=Ze(a,l,bt(bt(bt(bt(bt(bt(bt(bt(bt(bt({},"".concat(a,"-focused"),ge),"".concat(a,"-multiple"),ne),"".concat(a,"-single"),!ne),"".concat(a,"-allow-clear"),A),"".concat(a,"-show-arrow"),Xe),"".concat(a,"-disabled"),y),"".concat(a,"-loading"),w),"".concat(a,"-open"),Ie),"".concat(a,"-customize-input"),we),"".concat(a,"-show-search"),re)),rt=o.createElement(tg,{ref:ue,disabled:y,prefixCls:a,visible:Re,popupElement:tt,animation:z,transitionName:B,dropdownStyle:L,dropdownClassName:H,direction:u,dropdownMatchSelectWidth:F,dropdownRender:V,dropdownAlign:K,placement:W,builtinPlacements:q,getPopupContainer:U,empty:m,getTriggerDOMNode:function(e){return se.current||e},onPopupVisibleChange:Ke,onPopupMouseEnter:function(){We({})}},xe?o.cloneElement(xe,{ref:Ee}):o.createElement(Rh,et({},e,{domRef:se,prefixCls:a,inputElement:we,ref:de,id:i,showSearch:re,autoClearSearchValue:_,mode:b,activeDescendantId:$,tagRender:s,values:f,open:Ie,onToggleOpen:Pe,activeValue:k,searchValue:ye,onSearch:De,onSearchSubmit:function(e){e&&e.trim()&&R(e,{source:"submit"})},onRemove:function(e){var t=f.filter((function(t){return t!==e}));p(t,{type:"remove",values:[e]})},tokenWithEnter:je})));return Ge=xe?rt:o.createElement("div",et({className:nt},oe,{ref:ce,onMouseDown:function(e){var t,n=e.target,r=null===(t=ue.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Ve.indexOf(o);-1!==t&&Ve.splice(t,1),be(),ae||r.contains(document.activeElement)||null===(e=de.current)||void 0===e||e.focus()}));Ve.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==ee||ee.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Be(),r=e.key,o="Enter"===r;if(o&&("combobox"!==b&&e.preventDefault(),Ie||Pe(!0)),Le(!!ye),"Backspace"===r&&!n&&ne&&!ye&&f.length){for(var i=Qt(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];!Ie||o&&He.current||null===(t=fe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),o&&(He.current=!0),null==Z||Z.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;Ie&&(null===(o=fe.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(He.current=!1),null==J||J.apply(void 0,[e].concat(n))},onFocus:function(){ve(!0),y||(Y&&!Fe.current&&Y.apply(void 0,arguments),G.includes("focus")&&Pe(!0)),Fe.current=!0},onBlur:function(){pe.current=!0,ve(!1,(function(){Fe.current=!1,pe.current=!1,Pe(!1)})),y||(ye&&("tags"===b?R(ye,{source:"submit"}):"multiple"===b&&R("",{source:"blur"})),Q&&Q.apply(void 0,arguments))}}),o.createElement(lg,{visible:ge&&!Ie,values:f}),rt,qe,Qe&&Je),o.createElement(Zm.Provider,{value:Ue},Ge)}));"production"!==process.env.NODE_ENV&&(dg.displayName="BaseSelect");var fg=function(){return null};fg.isSelectOptGroup=!0;var pg=function(){return null};pg.isSelectOption=!0;var mg=o.forwardRef((function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,a=e.children,l=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=wt(wt({},p),{},bt(bt(bt(bt(bt({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),o.createElement("div",{style:f},o.createElement(qt,{onResize:function(e){e.offsetHeight&&c&&c()}},o.createElement("div",et({style:p,className:Ze(bt({},"".concat(l,"-holder-inner"),l)),ref:t},s),a,d)))}));function hg(e){var t=e.children,n=e.setRef,r=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:r})}function gg(e,t,n){var r=ln(o.useState(e),2),i=r[0],a=r[1],l=ln(o.useState(null),2),c=l[0],s=l[1];return o.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}}(i||[],e||[],t);void 0!==(null==n?void 0:n.index)&&s(e[n.index]),a(e)}),[e]),[c]}mg.displayName="Filler";var vg="object"===("undefined"==typeof navigator?"undefined":gt(navigator))&&/Firefox/i.test(navigator.userAgent),bg=function(e,n,r,o){var i=t.useRef(!1),a=t.useRef(null);var l=t.useRef({top:e,bottom:n,left:r,right:o});return l.current.top=e,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 yg(e,n,r,o,i,a,l){var c=t.useRef(0),s=t.useRef(null),u=t.useRef(null),d=t.useRef(!1),f=bg(n,r,o,i);var p=t.useRef(null),m=t.useRef(null);return[function(t){if(e){rn.cancel(m.current),m.current=rn((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,i=n,h=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,h=0,p.current="sx");var g=Math.abs(i),v=Math.abs(h);null===p.current&&(p.current=a&&g>v?"x":"y"),"y"===p.current?function(e,t){rn.cancel(s.current),c.current+=t,u.current=t,f(!1,t)||(vg||e.preventDefault(),s.current=rn((function(){var e=d.current?10:1;l(c.current*e),c.current=0})))}(t,h):function(e,t){l(t,!0),vg||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}var wg=function(){function e(){jt(this,e),bt(this,"maps",void 0),bt(this,"id",0),this.maps=Object.create(null)}return Mt(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var xg=14/15;var Eg=10;function Cg(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var Sg=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,c=e.onStopMove,s=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,m=e.thumbStyle,h=ln(o.useState(!1),2),g=h[0],v=h[1],b=ln(o.useState(null),2),y=b[0],w=b[1],x=ln(o.useState(null),2),E=x[0],C=x[1],S=!r,O=o.useRef(),k=o.useRef(),N=ln(o.useState(!1),2),$=N[0],I=N[1],_=o.useRef(),R=function(){clearTimeout(_.current),I(!0),_.current=setTimeout((function(){I(!1)}),3e3)},P=a-f||0,j=f-d||0,A=o.useMemo((function(){return 0===i||0===P?0:i/P*j}),[i,P,j]),M=o.useRef({top:A,dragging:g,pageY:y,startTop:E});M.current={top:A,dragging:g,pageY:y,startTop:E};var T=function(e){v(!0),w(Cg(e,u)),C(M.current.top),l(),e.stopPropagation(),e.preventDefault()};o.useEffect((function(){var e=function(e){e.preventDefault()},t=O.current,n=k.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",T,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",T)}}),[]);var D=o.useRef();D.current=P;var z=o.useRef();z.current=j,o.useEffect((function(){if(g){var e,t=function(t){var n=M.current,r=n.dragging,o=n.pageY,i=n.startTop;rn.cancel(e);var a=O.current.getBoundingClientRect(),l=f/(u?a.width:a.height);if(r){var c=(Cg(t,u)-o)*l,d=i;!S&&u?d-=c:d+=c;var p=D.current,m=z.current,h=m?d/m:0,g=Math.ceil(h*p);g=Math.max(g,0),g=Math.min(g,p),e=rn((function(){s(g,u)}))}},n=function(){v(!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),rn.cancel(e)}}}),[g]),o.useEffect((function(){return R(),function(){clearTimeout(_.current)}}),[i]),o.useImperativeHandle(t,(function(){return{delayHidden:R}}));var B="".concat(n,"-scrollbar"),L={position:"absolute",visibility:$?null:"hidden"},H={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(L.height=8,L.left=0,L.right=0,L.bottom=0,H.height="100%",H.width=d,S?H.left=A:H.right=A):(L.width=8,L.top=0,L.bottom=0,S?L.right=0:L.left=0,H.width="100%",H.height=d,H.top=A),o.createElement("div",{ref:O,className:Ze(B,bt(bt(bt({},"".concat(B,"-horizontal"),u),"".concat(B,"-vertical"),!u),"".concat(B,"-visible"),$)),style:wt(wt({},L),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:R},o.createElement("div",{ref:k,className:Ze("".concat(B,"-thumb"),bt({},"".concat(B,"-thumb-moving"),g)),style:wt(wt({},H),m),onMouseDown:T}))}));"production"!==process.env.NODE_ENV&&(Sg.displayName="ScrollBar");var Og=20;function kg(){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,Og),Math.floor(t)}var Ng=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],$g=[],Ig={overflowY:"auto",overflowAnchor:"none"};function _g(e,r){var i=e.prefixCls,a=void 0===i?"rc-virtual-list":i,l=e.className,c=e.height,s=e.itemHeight,u=e.fullHeight,d=void 0===u||u,f=e.style,p=e.data,m=e.children,h=e.itemKey,g=e.virtual,v=e.direction,b=e.scrollWidth,y=e.component,w=void 0===y?"div":y,x=e.onScroll,E=e.onVirtualScroll,C=e.onVisibleChange,S=e.innerProps,O=e.extraRender,k=e.styles,N=En(e,Ng),$=o.useCallback((function(e){return"function"==typeof h?h(e):null==e?void 0:e[h]}),[h]),I=function(e){var n=ln(o.useState(0),2),r=n[0],i=n[1],a=t.useRef(new Map),l=t.useRef(new wg),c=t.useRef();function s(){rn.cancel(c.current)}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s();var t=function(){a.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Et(e),r=n.offsetHeight;l.current.get(t)!==r&&l.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))};e?t():c.current=rn(t)}return t.useEffect((function(){return s}),[]),[function(t,n){var r=e(t);a.current.get(r),n?(a.current.set(r,n),u()):a.current.delete(r)},u,l.current,r]}($),_=ln(I,4),R=_[0],P=_[1],j=_[2],A=_[3],M=!(!1===g||!c||!s),T=o.useMemo((function(){return Object.values(j.maps).reduce((function(e,t){return e+t}),0)}),[j.id,j.maps]),D=M&&p&&(Math.max(s*p.length,T)>c||!!b),z="rtl"===v,B=Ze(a,bt({},"".concat(a,"-rtl"),z),l),L=p||$g,H=t.useRef(),F=t.useRef(),V=t.useRef(),K=ln(t.useState(0),2),W=K[0],q=K[1],U=ln(t.useState(0),2),X=U[0],G=U[1],Y=ln(t.useState(!1),2),Q=Y[0],J=Y[1],Z=function(){J(!0)},ee=function(){J(!1)},te={getKey:$};function ne(e){q((function(t){var n=function(e){var t=e;Number.isNaN(ye.current)||(t=Math.min(t,ye.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return H.current.scrollTop=n,n}))}var re=t.useRef({start:0,end:L.length}),oe=t.useRef(),ie=ln(gg(L,$),1)[0];oe.current=ie;var ae=o.useMemo((function(){if(!M)return{scrollHeight:void 0,start:0,end:L.length-1,offset:void 0};var e;if(!D)return{scrollHeight:(null===(e=F.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:L.length-1,offset:void 0};for(var t,n,r,o=0,i=L.length,a=0;a<i;a+=1){var l=L[a],u=$(l),d=j.get(u),f=o+(void 0===d?s:d);f>=W&&void 0===t&&(t=a,n=o),f>W+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=L.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,L.length-1),offset:n}}),[D,M,W,L,A,c]),le=ae.scrollHeight,ce=ae.start,se=ae.end,ue=ae.offset;re.current.start=ce,re.current.end=se;var de=ln(o.useState({width:0,height:c}),2),fe=de[0],pe=de[1],me=t.useRef(),he=t.useRef(),ge=o.useMemo((function(){return kg(fe.width,b)}),[fe.width,b]),ve=o.useMemo((function(){return kg(fe.height,le)}),[fe.height,le]),be=le-c,ye=t.useRef(be);ye.current=be;var we=W<=0,xe=W>=be,Ee=X<=0,Ce=X>=b,Se=bg(we,xe,Ee,Ce),Oe=function(){return{x:z?-X:X,y:W}},ke=t.useRef(Oe()),Ne=ya((function(e){if(E){var t=wt(wt({},Oe()),e);ke.current.x===t.x&&ke.current.y===t.y||(E(t),ke.current=t)}}));function $e(e,t){var r=e;t?(n.flushSync((function(){G(r)})),Ne()):ne(r)}var Ie=function(e){var t=e,n=b?b-fe.width:0;return t=Math.max(t,0),t=Math.min(t,n)},_e=ya((function(e,t){t?(n.flushSync((function(){G((function(t){return Ie(t+(z?-e:e))}))})),Ne()):ne((function(t){return t+e}))})),Re=ln(yg(M,we,xe,Ee,Ce,!!b,_e),2),Pe=Re[0],je=Re[1];!function(e,n,r){var o,i=t.useRef(!1),a=t.useRef(0),l=t.useRef(0),c=t.useRef(null),s=t.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,r(u,u?o:c)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){u?o*=xg:c*=xg;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))},Gn((function(){return e&&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)}}),[e])}(M,H,(function(e,t,n){return!Se(e,t,n)&&(Pe({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)})),Gn((function(){function e(e){M&&e.preventDefault()}var t=H.current;return t.addEventListener("wheel",Pe,{passive:!1}),t.addEventListener("DOMMouseScroll",je,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Pe),t.removeEventListener("DOMMouseScroll",je),t.removeEventListener("MozMousePixelScroll",e)}}),[M]),Gn((function(){if(b){var e=Ie(X);G(e),Ne({x:e})}}),[fe.width,b]);var Ae=function(){var e,t;null===(e=me.current)||void 0===e||e.delayHidden(),null===(t=he.current)||void 0===t||t.delayHidden()},Me=function(e,t,n,r,i,a,l,c){var s=o.useRef(),u=ln(o.useState(null),2),d=u[0],f=u[1];return Gn((function(){if(d&&d.times<Eg){if(!e.current)return void f((function(e){return wt({},e)}));a();var o=d.targetAlign,c=d.originAlign,s=d.index,u=d.offset,p=e.current.clientHeight,m=!1,h=o,g=null;if(p){for(var v=o||c,b=0,y=0,w=0,x=Math.min(t.length-1,s),E=0;E<=x;E+=1){var C=i(t[E]);y=b;var S=n.get(C);b=w=y+(void 0===S?r:S)}for(var O="top"===v?u:p-u,k=x;k>=0;k-=1){var N=i(t[k]),$=n.get(N);if(void 0===$){m=!0;break}if((O-=$)<=0)break}switch(v){case"top":g=y-u;break;case"bottom":g=w-p+u;break;default:var I=e.current.scrollTop;y<I?h="top":w>I+p&&(h="bottom")}null!==g&&l(g),g!==d.lastTop&&(m=!0)}m&&f(wt(wt({},d),{},{times:d.times+1,targetAlign:h,lastTop:g}))}else"production"!==process.env.NODE_ENV&&(null==d?void 0:d.times)===Eg&&mt(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")}),[d,e.current]),function(e){if(null!=e){if(rn.cancel(s.current),"number"==typeof e)l(e);else if(e&&"object"===gt(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var o=e.offset;f({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else c()}}(H,L,j,s,$,(function(){return P(!0)}),ne,Ae);o.useImperativeHandle(r,(function(){return{nativeElement:V.current,getScrollInfo:Oe,scrollTo:function(e){var t;(t=e)&&"object"===gt(t)&&("left"in t||"top"in t)?(void 0!==e.left&&G(Ie(e.left)),Me(e.top)):Me(e)}}})),Gn((function(){if(C){var e=L.slice(ce,se+1);C(e,L)}}),[ce,se,L]);var Te=function(e,t,n,r){var i=ln(o.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),a=i[0],l=i[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,c=a.get(o),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,d=l.length;d<u;d+=1){var f,p=e[d],m=t(p);a.set(m,d);var h=null!==(f=n.get(m))&&void 0!==f?f:r;if(l[d]=(l[d-1]||0)+h,m===o&&(c=d),m===i&&(s=d),void 0!==c&&void 0!==s)break}return{top:l[c-1]||0,bottom:l[s]}}}(L,$,j,s),De=null==O?void 0:O({start:ce,end:se,virtual:D,offsetX:X,offsetY:ue,rtl:z,getSize:Te}),ze=function(e,t,n,r,i,a,l,c){var s=c.getKey;return e.slice(t,n+1).map((function(e,n){var c=l(e,t+n,{style:{width:r},offsetX:i}),u=s(e);return o.createElement(hg,{key:u,setRef:function(t){return a(e,t)}},c)}))}(L,ce,se,b,X,R,m,te),Be=null;c&&(Be=wt(bt({},d?"height":"maxHeight",c),Ig),M&&(Be.overflowY="hidden",b&&(Be.overflowX="hidden"),Q&&(Be.pointerEvents="none")));var Le={};return z&&(Le.dir="rtl"),o.createElement("div",et({ref:V,style:wt(wt({},f),{},{position:"relative"}),className:B},Le,N),o.createElement(qt,{onResize:function(e){pe({width:e.offsetWidth,height:e.offsetHeight})}},o.createElement(w,{className:"".concat(a,"-holder"),style:Be,ref:H,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==W&&ne(t),null==x||x(e),Ne()},onMouseEnter:Ae},o.createElement(mg,{prefixCls:a,height:le,offsetX:X,offsetY:ue,scrollWidth:b,onInnerResize:P,ref:F,innerProps:S,rtl:z,extra:De},ze))),D&&le>c&&o.createElement(Sg,{ref:me,prefixCls:a,scrollOffset:W,scrollRange:le,rtl:z,onScroll:$e,onStartMove:Z,onStopMove:ee,spinSize:ve,containerSize:fe.height,style:null==k?void 0:k.verticalScrollBar,thumbStyle:null==k?void 0:k.verticalScrollBarThumb}),D&&b>fe.width&&o.createElement(Sg,{ref:he,prefixCls:a,scrollOffset:X,scrollRange:b,rtl:z,onScroll:$e,onStartMove:Z,onStopMove:ee,spinSize:ge,containerSize:fe.width,horizontal:!0,style:null==k?void 0:k.horizontalScrollBar,thumbStyle:null==k?void 0:k.horizontalScrollBarThumb}))}var Rg=o.forwardRef(_g);Rg.displayName="List";var Pg=["disabled","title","children","style","className"];function jg(e){return"string"==typeof e||"number"==typeof e}var Ag=function(e,n){var r=o.useContext(Zm),i=r.prefixCls,a=r.id,l=r.open,c=r.multiple,s=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,m=o.useContext(ag),h=m.maxCount,g=m.flattenOptions,v=m.onActiveValue,b=m.defaultActiveFirstOption,y=m.onSelect,w=m.menuItemSelectedIcon,x=m.rawValues,E=m.fieldNames,C=m.virtual,S=m.direction,O=m.listHeight,k=m.listItemHeight,N=m.optionRender,$="".concat(i,"-item"),I=Ct((function(){return g}),[l,g],(function(e,t){return t[0]&&e[1]!==t[1]})),_=o.useRef(null),R=o.useMemo((function(){return c&&rg(h)&&(null==x?void 0:x.size)>=h}),[c,h,null==x?void 0:x.size]),P=function(e){e.preventDefault()},j=function(e){var t;null===(t=_.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},A=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=I.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=I[o]||{},a=i.group,l=i.data;if(!(a||null!=l&&l.disabled||R))return o}return-1},M=ln(o.useState((function(){return A(0)})),2),T=M[0],D=M[1],z=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];D(e);var n={source:t?"keyboard":"mouse"},r=I[e];r?v(r.value,e,n):v(null,-1,n)};t.useEffect((function(){z(!1!==b?A(0):-1)}),[I.length,u]);var B=o.useCallback((function(e){return x.has(e)&&"combobox"!==s}),[s,Qt(x).toString(),x.size]);t.useEffect((function(){var e,t=setTimeout((function(){if(!c&&l&&1===x.size){var e=Array.from(x)[0],t=I.findIndex((function(t){return t.data.value===e}));-1!==t&&(z(t),j(t))}}));l&&(null===(e=_.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[l,u]);var L=function(e){void 0!==e&&y(e,{selected:!x.has(e)}),c||d(!1)};if(o.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Jc.N:case Jc.P:case Jc.UP:case Jc.DOWN:var r=0;if(t===Jc.UP?r=-1:t===Jc.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Jc.N?r=1:t===Jc.P&&(r=-1)),0!==r){var o=A(T+r,r);j(o),z(o,!0)}break;case Jc.ENTER:var i,a=I[T];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||R?L(void 0):L(a.value),l&&e.preventDefault();break;case Jc.ESC:d(!1),l&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===I.length)return o.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat($,"-empty"),onMouseDown:P},f);var H=Object.keys(E).map((function(e){return E[e]})),F=function(e){return e.label};function V(e,t){return{role:e.group?"presentation":"option",id:"".concat(a,"_list_").concat(t)}}var K=function(e){var t=I[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,a=Wc(n,!0),l=F(t);return t?o.createElement("div",et({"aria-label":"string"!=typeof l||i?null:l},a,{key:e},V(t,e),{"aria-selected":B(r)}),r):null},W={role:"listbox",id:"".concat(a,"_list")};return o.createElement(o.Fragment,null,C&&o.createElement("div",et({},W,{style:{height:0,width:0,overflow:"hidden"}}),K(T-1),K(T),K(T+1)),o.createElement(Rg,{itemKey:"key",ref:_,data:I,height:O,itemHeight:k,fullHeight:!1,onMouseDown:P,onScroll:p,virtual:C,direction:S,innerProps:C?null:W},(function(e,t){var n=e.group,r=e.groupOption,i=e.data,a=e.label,l=e.value,c=i.key;if(n){var s,u=null!==(s=i.title)&&void 0!==s?s:jg(a)?a.toString():void 0;return o.createElement("div",{className:Ze($,"".concat($,"-group"),i.className),title:u},void 0!==a?a:c)}var d=i.disabled,f=i.title;i.children;var p=i.style,m=i.className,h=Ut(En(i,Pg),H),g=B(l),v=d||!g&&R,b="".concat($,"-option"),y=Ze($,b,m,bt(bt(bt(bt({},"".concat(b,"-grouped"),r),"".concat(b,"-active"),T===t&&!v),"".concat(b,"-disabled"),v),"".concat(b,"-selected"),g)),x=F(e),E=!w||"function"==typeof w||g,S="number"==typeof x?x:x||l,O=jg(S)?S.toString():void 0;return void 0!==f&&(O=f),o.createElement("div",et({},Wc(h),C?{}:V(e,t),{"aria-selected":g,className:y,title:O,onMouseMove:function(){T===t||v||z(t)},onClick:function(){v||L(l)},style:p}),o.createElement("div",{className:"".concat(b,"-content")},"function"==typeof N?N(e,{index:t}):S),o.isValidElement(w)||g,E&&o.createElement(Jm,{className:"".concat($,"-option-state"),customizeIcon:w,customizeIconProps:{value:l,disabled:v,isSelected:g}},g?"✓":null))})))},Mg=o.forwardRef(Ag);"production"!==process.env.NODE_ENV&&(Mg.displayName="OptionList");function Tg(e,t){return xh(e).join("").toUpperCase().includes(t)}var Dg=0,zg="test"!==process.env.NODE_ENV&&sn();function Bg(e){var t=ln(o.useState(),2),n=t[0],r=t[1];return o.useEffect((function(){var e;r("rc_select_".concat((zg?(e=Dg,Dg+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var Lg=["children","value"],Hg=["children"];function Fg(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return lt(e).map((function(e,n){if(!o.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,l=r.props,c=l.children,s=En(l,Hg);return t||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return wt({key:n,value:void 0!==i?i:n,children:o},En(r,Lg))}(e):wt(wt({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},s),{},{options:Fg(c)})})).filter((function(e){return e}))}function Vg(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var Kg=["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"],Wg=["inputValue"];var qg=o.forwardRef((function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,a=void 0===i?"rc-select":i,l=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,h=e.onDeselect,g=e.dropdownMatchSelectWidth,v=void 0===g||g,b=e.filterOption,y=e.filterSort,w=e.optionFilterProp,x=e.optionLabelProp,E=e.options,C=e.optionRender,S=e.children,O=e.defaultActiveFirstOption,k=e.menuItemSelectedIcon,N=e.virtual,$=e.direction,I=e.listHeight,_=void 0===I?200:I,R=e.listItemHeight,P=void 0===R?20:R,j=e.labelRender,A=e.value,M=e.defaultValue,T=e.labelInValue,D=e.onChange,z=e.maxCount,B=En(e,Kg),L=Bg(n),H=ug(r),F=!(E||!S),V=o.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),K=o.useMemo((function(){return og(c,F)}),[JSON.stringify(c),F]),W=ln(Ea("",{value:void 0!==u?u:s,postState:function(e){return e||""}}),2),q=W[0],U=W[1],X=function(e,t,n,r,i){return o.useMemo((function(){var o=e;!e&&(o=Fg(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 o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[n.options]||o?(a.set(u[n.value],u),c(l,u,n.label),c(l,u,r),c(l,u,i)):e(u[n.options],!0)}}(o),{options:o,valueOptions:a,labelOptions:l}}),[e,t,n,r,i])}(E,S,K,w,x),G=X.valueOptions,Y=X.labelOptions,Q=X.options,J=o.useCallback((function(e){return xh(e).map((function(e){var t,n,r,i,a,l;(function(e){return!e||"object"!==gt(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(l=e.value)&&void 0!==l?l:r);var c,s=G.get(t);if(s&&(void 0===n&&(n=null==s?void 0:s[x||K.label]),void 0===r&&(r=null!==(c=null==s?void 0:s.key)&&void 0!==c?c:t),i=null==s?void 0:s.disabled,a=null==s?void 0:s.title,"production"!==process.env.NODE_ENV&&!x)){var u=null==s?void 0:s[K.label];void 0===u||o.isValidElement(u)||o.isValidElement(n)||u===n||mt(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:n,value:t,key:r,disabled:i,title:a}}))}),[K,x,G]),Z=ln(Ea(M,{value:A}),2),ee=Z[0],te=Z[1],ne=o.useMemo((function(){var e,t=J(H&&null===ee?[]:ee);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ee,J,r,H]),re=function(e,t){var n=o.useRef({values:new Map,options:new Map});return[o.useMemo((function(){var r=n.current,o=r.values,i=r.options,a=e.map((function(e){var t;return void 0===e.label?wt(wt({},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]),o.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(ne,G),oe=ln(re,2),ie=oe[0],ae=oe[1],le=o.useMemo((function(){if(!r&&1===ie.length){var e=ie[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ie.map((function(e){var t;return wt(wt({},e),{},{label:null!==(t="function"==typeof j?j(e):e.label)&&void 0!==t?t:e.value})}))}),[r,ie,j]),ce=o.useMemo((function(){return new Set(ie.map((function(e){return e.value})))}),[ie]);o.useEffect((function(){if("combobox"===r){var e,t=null===(e=ie[0])||void 0===e?void 0:e.value;U(function(e){return null!=e}(t)?String(t):"")}}),[ie]);var se=Vg((function(e,t){var n=null!=t?t:e;return bt(bt({},K.value,e),K.label,n)})),ue=function(e,t,n,r,i){return o.useMemo((function(){if(!n||!1===r)return e;var o=t.options,a=t.label,l=t.value,c=[],s="function"==typeof r,u=n.toUpperCase(),d=s?r:function(e,t){return i?Tg(t[i],u):t[o]?Tg(t["children"!==a?a:"label"],u):Tg(t[l],u)},f=s?function(e){return ig(e)}:function(e){return e};return e.forEach((function(e){if(e[o])if(d(n,f(e)))c.push(e);else{var t=e[o].filter((function(e){return d(n,f(e))}));t.length&&c.push(wt(wt({},e),{},bt({},o,t)))}else d(n,f(e))&&c.push(e)})),c}),[e,r,i,n,t])}(o.useMemo((function(){if("tags"!==r)return Q;var e=Qt(Q);return Qt(ie).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return G.has(e)})(n)||e.push(se(n,t.label))})),e}),[se,Q,G,ie,r]),K,q,V,w),de=o.useMemo((function(){return"tags"!==r||!q||ue.some((function(e){return e[w||"value"]===q}))||ue.some((function(e){return e[K.value]===q}))?ue:[se(q)].concat(Qt(ue))}),[se,w,r,ue,q,K]),fe=o.useMemo((function(){return y?Qt(de).sort((function(e,t){return y(e,t,{searchValue:q})})):de}),[de,y,q]),pe=o.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=og(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:ng(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:ng(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(fe,{fieldNames:K,childrenAsData:F})}),[fe,K,F]),me=function(e){var t=J(e);if(te(t),D&&(t.length!==ie.length||t.some((function(e,t){var n;return(null===(n=ie[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=T?t:t.map((function(e){return e.value})),r=t.map((function(e){return ig(ae(e.value))}));D(H?n:n[0],H?r:r[0])}},he=ln(o.useState(null),2),ge=he[0],ve=he[1],be=ln(o.useState(0),2),ye=be[0],we=be[1],xe=void 0!==O?O:"combobox"!==r,Ee=o.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;we(t),l&&"combobox"===r&&null!==e&&"keyboard"===o&&ve(String(e))}),[l,r]),Ce=function(e,t,n){var r=function(){var t,n=ae(e);return[T?{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,ig(n)]};if(t&&m){var o=ln(r(),2),i=o[0],a=o[1];m(i,a)}else if(!t&&h&&"clear"!==n){var l=ln(r(),2),c=l[0],s=l[1];h(c,s)}},Se=Vg((function(e,t){var n,o=!H||t.selected;n=o?H?[].concat(Qt(ie),[e]):[e]:ie.filter((function(t){return t.value!==e})),me(n),Ce(e,o),"combobox"===r?ve(""):ug&&!p||(U(""),ve(""))})),Oe=o.useMemo((function(){var e=!1!==N&&!1!==v;return wt(wt({},X),{},{flattenOptions:pe,onActiveValue:Ee,defaultActiveFirstOption:xe,onSelect:Se,menuItemSelectedIcon:k,rawValues:ce,fieldNames:K,virtual:e,direction:$,listHeight:_,listItemHeight:P,childrenAsData:F,maxCount:z,optionRender:C})}),[z,X,pe,Ee,xe,Se,k,ce,K,N,v,$,_,P,F,C]);return"production"!==process.env.NODE_ENV&&(function(e){var t=e.mode,n=e.options,r=e.children,i=e.backfill,a=e.allowClear,l=e.placeholder,c=e.getInputElement,s=e.showSearch,u=e.onSearch,d=e.defaultOpen,f=e.autoFocus,p=e.labelInValue,m=e.value,h=e.inputValue,g=e.optionLabelProp,v=ug(t),b=void 0!==s?s:v||"combobox"===t,y=n||Fg(r);if(mt("tags"!==t||y.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),("tags"===t||"combobox"===t)&&mt(!y.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)})),"`value` of Option should not use number type when `mode` is `tags` or `combobox`."),mt("combobox"!==t||!g,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),mt("combobox"===t||!i,"`backfill` only works with `combobox` mode."),mt("combobox"===t||!c,"`getInputElement` only work with `combobox` mode."),ht("combobox"!==t||!c||!a||!l,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!b&&"combobox"!==t&&"tags"!==t&&mt(!1,"`onSearch` should work with `showSearch` instead of use alone."),ht(!d||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=m){var w=xh(m);mt(!p||w.every((function(e){return"object"===gt(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),mt(!v||Array.isArray(m),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var x=null;lt(r).some((function(e){if(!o.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!lt(e.props.children).every((function(t){return!(o.isValidElement(t)&&e.type&&!t.type.isSelectOption&&(x=t.type,1))})):(x=t,!0))})),x&&mt(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(x.displayName||x.name||x,"`.")),mt(void 0===h,"`inputValue` is deprecated, please use `searchValue` instead.")}}(e),function(e,t){e&&function e(n){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0;o<n.length;o++){var i=n[o];if(null===i[null==t?void 0:t.value])return mt(!1,"`value` in Select options should not be `null`."),!0;if(!r&&Array.isArray(i[null==t?void 0:t.options])&&e(i[null==t?void 0:t.options],!0))break}}(e)}(Q,K)),o.createElement(ag.Provider,{value:Oe},o.createElement(dg,et({},B,{id:L,prefixCls:a,ref:t,omitDomProps:Wg,mode:r,displayValues:le,onDisplayValuesChange:function(e,t){me(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Ce(e.value,!1,n)}))},direction:$,searchValue:q,onSearch:function(e,t){if(U(e),ve(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&me(e),null==d||d(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Qt(ce),[n])));me(o),Ce(n,!0),U("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=Y.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Qt(ce),Qt(t))));me(n),n.forEach((function(e){Ce(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:Mg,emptyOptions:!pe.length,activeValue:ge,activeDescendantId:"".concat(L,"_list_").concat(ye)})))}));"production"!==process.env.NODE_ENV&&(qg.displayName="Select");var Ug=qg;function Xg(e,t,n){return Ze({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}Ug.Option=pg,Ug.OptGroup=fg;const Gg=(e,t)=>t||e,Yg=()=>{const[,e]=Ka(),t=new mi(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"empty image"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.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"}),o.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)"}),o.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"}),o.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"})),o.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"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};"production"!==process.env.NODE_ENV&&(Yg.displayName="EmptyImage");const Qg=()=>{const[,e]=Ka(),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:l,shadowColor:c,contentColor:s}=t.useMemo((()=>({borderColor:new mi(n).onBackground(a).toHexShortString(),shadowColor:new mi(r).onBackground(a).toHexShortString(),contentColor:new mi(i).onBackground(a).toHexShortString()})),[n,r,i,a]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Simple Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:l},o.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"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))};"production"!==process.env.NODE_ENV&&(Qg.displayName="SimpleImage");const Jg=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}}}}};var Zg=Ja("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=ka(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Jg(o)]})),ev=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 tv=o.createElement(Yg,null),nv=o.createElement(Qg,null),rv=e=>{var{className:t,rootClassName:n,prefixCls:r,image:i=tv,description:a,children:l,imageStyle:c,style:s}=e,u=ev(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=o.useContext(ia),m=d("empty",r),[h,g,v]=Zg(m),[b]=Uo("Empty"),y=void 0!==a?a:null==b?void 0:b.description,w="string"==typeof y?y:"empty";let x=null;return x="string"==typeof i?o.createElement("img",{alt:w,src:i}):i,h(o.createElement("div",Object.assign({className:Ze(g,v,m,null==p?void 0:p.className,{[`${m}-normal`]:i===nv,[`${m}-rtl`]:"rtl"===f},t,n),style:Object.assign(Object.assign({},null==p?void 0:p.style),s)},u),o.createElement("div",{className:`${m}-image`,style:c},x),y&&o.createElement("div",{className:`${m}-description`},y),l&&o.createElement("div",{className:`${m}-footer`},l)))};rv.PRESENTED_IMAGE_DEFAULT=tv,rv.PRESENTED_IMAGE_SIMPLE=nv,"production"!==process.env.NODE_ENV&&(rv.displayName="Empty");const ov=e=>{const{componentName:n}=e,{getPrefixCls:r}=t.useContext(ia),o=r("empty");switch(n){case"Table":case"List":return t.createElement(rv,{image:rv.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t.createElement(rv,{image:rv.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return t.createElement(rv,null)}},iv=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:l}=t.useContext(ia),c=t.useContext(ep),s=null==l?void 0:l.variant;let u;u=void 0!==n?n:!1===r?"borderless":null!==(i=null!==(o=null!=c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,oa.includes(u)]};function av(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 lv=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"}},cv=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-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ua(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:Jp},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:em},[`${a}${l}bottomLeft`]:{animationName:Zp},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:tm},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},lv(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"},qa),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-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({},lv(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},lm(e,"slide-up"),lm(e,"slide-down"),Qp(e,"move-up"),Qp(e,"move-down")]},sv=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:"100%",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}})}}}},uv=(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=(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:Vn(t),itemLineHeight:Vn(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},sv(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",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:`${Vn(r)} 0`,lineHeight:Vn(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:Vn(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${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:Vn(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.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function dv(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[uv(e,t),o]}const fv=e=>{const{componentCls:t}=e,n=ka(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ka(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[dv(e),dv(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},dv(r,"lg")]};function pv(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({},Ua(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Vn(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-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Vn(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Vn(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 ${Vn(r)}`,"&:after":{display:"none"}}}}}}}function mv(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[pv(e),pv(ka(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Vn(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()}}}},pv(ka(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const hv=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Vn(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 ${Vn(o)} ${t.activeShadowColor}`,outline:0}}}},gv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},hv(e,t))}),vv=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},hv(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),gv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),gv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${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:`${Vn(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bv=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Vn(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}}}},yv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},bv(e,t))}),wv=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},bv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),yv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),yv(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:`${Vn(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),xv=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"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:`${Vn(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Ev=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},vv(e)),wv(e)),xv(e))}),Cv=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"}}}},Sv=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","-webkit-appearance":"none"}}}},Ov=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Ua(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Cv(e)),Sv(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},qa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},qa),{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}-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","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},kv=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Ov(e),mv(e),fv(e),cv(e),{[`${t}-rtl`]:{direction:"rtl"}},id(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var Nv=Ja("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=ka(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[kv(r),Ev(r)]}),(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:h,colorBgContainerDisabled:g,colorTextDisabled:v}=e,b=2*l,y=2*r,w=Math.min(o-b,o-y),x=Math.min(i-b,i-y),E=Math.min(a-b,a-y);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:h,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:x,multipleItemHeightLG:E,multipleSelectorBgDisabled:g,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),$v={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"},Iv=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:$v}))},_v=o.forwardRef(Iv);"production"!==process.env.NODE_ENV&&(_v.displayName="CheckOutlined");var Rv={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"},Pv=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:Rv}))},jv=o.forwardRef(Pv);"production"!==process.env.NODE_ENV&&(jv.displayName="DownOutlined");var Av={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"},Mv=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:Av}))},Tv=o.forwardRef(Mv);"production"!==process.env.NODE_ENV&&(Tv.displayName="SearchOutlined");var Dv=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 zv="SECRET_COMBOBOX_MODE_DO_NOT_USE",Bv=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:l,getPopupContainer:c,popupClassName:s,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:m,disabled:h,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:E,allowClear:C,variant:S,dropdownStyle:O,transitionName:k,tagRender:N,maxCount:$}=e,I=Dv(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"]),{getPopupContainer:_,getPrefixCls:R,renderEmpty:P,direction:j,virtual:A,popupMatchSelectWidth:M,popupOverflow:T,select:D}=o.useContext(ia),[,z]=Ka(),B=null!=p?p:null==z?void 0:z.controlHeight,L=R("select",r),H=R(),F=null!=x?x:j,{compactSize:V,compactItemClassnames:K}=gu(L,F),[W,q]=iv("select",S,i),U=Qc(L),[X,G,Y]=Nv(L,U),Q=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===zv?"combobox":t}),[e.mode]),J="multiple"===Q||"tags"===Q,Z=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ee=null!==(n=null!=w?w:y)&&void 0!==n?n:M,{status:te,hasFeedback:ne,isFormItemInput:re,feedbackIcon:oe}=o.useContext(Jf),ie=Gg(te,v);let ae;ae=void 0!==g?g:"combobox"===Q?null:(null==P?void 0:P("Select"))||o.createElement(ov,{componentName:"Select"});const{suffixIcon:le,itemIcon:ce,removeIcon:se,clearIcon:ue}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;"production"!==process.env.NODE_ENV&&jo(p).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const m=null!=n?n:o.createElement(Rc,null),h=e=>null!==t||c||f?o.createElement(o.Fragment,null,!1!==u&&e,c&&d):null;let g=null;if(void 0!==t)g=h(t);else if(a)g=h(o.createElement(ds,{spin:!0}));else{const e=`${s}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return h(n&&r?o.createElement(Tv,{className:e}):o.createElement(jv,{className:e}))}}let v=null;v=void 0!==r?r:l?o.createElement(_v,null):null;let b=null;return b=void 0!==i?i:o.createElement(Ac,null),{clearIcon:m,suffixIcon:g,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},I),{multiple:J,hasFeedback:ne,feedbackIcon:oe,showSuffixIcon:Z,prefixCls:L,componentName:"Select"})),de=!0===C?{clearIcon:ue}:C,fe=Ut(I,["suffixIcon","itemIcon"]),pe=Ze(s||u,{[`${L}-dropdown-${F}`]:"rtl"===F},l,Y,U,G),me=su((e=>{var t;return null!==(t=null!=m?m:V)&&void 0!==t?t:e})),he=o.useContext(ca),ge=null!=h?h:he,ve=Ze({[`${L}-lg`]:"large"===me,[`${L}-sm`]:"small"===me,[`${L}-rtl`]:"rtl"===F,[`${L}-${W}`]:q,[`${L}-in-form-item`]:re},Xg(L,ie,ne),K,null==D?void 0:D.className,a,l,Y,U,G),be=o.useMemo((()=>void 0!==f?f:"rtl"===F?"bottomRight":"bottomLeft"),[f,F]);if("production"!==process.env.NODE_ENV){const t=jo("Select");t.deprecated(!u,"dropdownClassName","popupClassName"),t.deprecated(void 0===y,"dropdownMatchSelectWidth","popupMatchSelectWidth"),"production"!==process.env.NODE_ENV&&t(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),t.deprecated(!("bordered"in e),"bordered","variant"),"production"!==process.env.NODE_ENV&&t(!(void 0!==$&&!J),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[ye]=vs("SelectLike",null==O?void 0:O.zIndex);return X(o.createElement(Ug,Object.assign({ref:t,virtual:A,showSearch:null==D?void 0:D.showSearch},fe,{style:Object.assign(Object.assign({},null==D?void 0:D.style),E),dropdownMatchSelectWidth:ee,transitionName:Js(H,"slide-up",k),builtinPlacements:av(b,T),listHeight:d,listItemHeight:B,mode:Q,prefixCls:L,placement:be,direction:F,suffixIcon:le,menuItemSelectedIcon:ce,removeIcon:se,allowClear:de,notFoundContent:ae,className:ve,getPopupContainer:c||_,dropdownClassName:pe,disabled:ge,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:ye}),maxCount:J?$:void 0,tagRender:J?N:void 0})))};"production"!==process.env.NODE_ENV&&(Bv.displayName="Select");const Lv=o.forwardRef(Bv),Hv=Ym(Lv);Lv.SECRET_COMBOBOX_MODE_DO_NOT_USE=zv,Lv.Option=pg,Lv.OptGroup=fg,Lv._InternalPanelDoNotUseOrYouWillBeFired=Hv,"production"!==process.env.NODE_ENV&&(Lv.displayName="Select");const Fv=["xxl","xl","lg","md","sm","xs"],Vv=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)`}),Kv=e=>{const t=e,n=[].concat(Fv).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};function Wv(){const[,e]=o.useReducer((e=>e+1),0);return e}function qv(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const n=t.useRef({}),r=Wv(),o=function(){const[,e]=Ka(),n=Vv(Kv(e));return t.useMemo((()=>{const e=new Map;let t=-1,r={};return{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()},unregister(){Object.keys(n).forEach((e=>{const t=n[e],r=this.matchHandlers[t];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(n).forEach((e=>{const t=n[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(t);i.addListener(o),this.matchHandlers[t]={mql:i,listener:o},o(i)}))},responsiveMap:n}}),[e])}();return Gn((()=>{const t=o.subscribe((t=>{n.current=t,e&&r()}));return()=>o.unsubscribe(t)}),[]),n.current}const Uv=e=>e?"function"==typeof e?e():e:null;function Xv(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return o.createElement("div",{className:Ze("".concat(n,"-content"),a),style:l},o.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t))}var Gv={shiftX:64,adjustY:1},Yv={adjustX:1,shiftY:!0},Qv=[0,0],Jv={left:{points:["cr","cl"],overflow:Yv,offset:[-4,0],targetOffset:Qv},right:{points:["cl","cr"],overflow:Yv,offset:[4,0],targetOffset:Qv},top:{points:["bc","tc"],overflow:Gv,offset:[0,-4],targetOffset:Qv},bottom:{points:["tc","bc"],overflow:Gv,offset:[0,4],targetOffset:Qv},topLeft:{points:["bl","tl"],overflow:Gv,offset:[0,-4],targetOffset:Qv},leftTop:{points:["tr","tl"],overflow:Yv,offset:[-4,0],targetOffset:Qv},topRight:{points:["br","tr"],overflow:Gv,offset:[0,-4],targetOffset:Qv},rightTop:{points:["tl","tr"],overflow:Yv,offset:[4,0],targetOffset:Qv},bottomRight:{points:["tr","br"],overflow:Gv,offset:[0,4],targetOffset:Qv},rightBottom:{points:["bl","br"],overflow:Yv,offset:[4,0],targetOffset:Qv},bottomLeft:{points:["tl","bl"],overflow:Gv,offset:[0,4],targetOffset:Qv},leftBottom:{points:["br","bl"],overflow:Yv,offset:[-4,0],targetOffset:Qv}},Zv=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],eb=function(e,n){var r=e.overlayClassName,i=e.trigger,a=void 0===i?["hover"]:i,l=e.mouseEnterDelay,c=void 0===l?0:l,s=e.mouseLeaveDelay,u=void 0===s?.1:s,d=e.overlayStyle,f=e.prefixCls,p=void 0===f?"rc-tooltip":f,m=e.children,h=e.onVisibleChange,g=e.afterVisibleChange,v=e.transitionName,b=e.animation,y=e.motion,w=e.placement,x=void 0===w?"right":w,E=e.align,C=void 0===E?{}:E,S=e.destroyTooltipOnHide,O=void 0!==S&&S,k=e.defaultVisible,N=e.getTooltipContainer,$=e.overlayInnerStyle;e.arrowContent;var I=e.overlay,_=e.id,R=e.showArrow,P=void 0===R||R,j=En(e,Zv),A=t.useRef(null);t.useImperativeHandle(n,(function(){return A.current}));var M=wt({},j);"visible"in e&&(M.popupVisible=e.visible);return o.createElement(Jh,et({popupClassName:r,prefixCls:p,popup:function(){return o.createElement(Xv,{key:"content",prefixCls:p,id:_,overlayInnerStyle:$},I)},action:a,builtinPlacements:Jv,popupPlacement:x,ref:A,popupAlign:C,getPopupContainer:N,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:b,popupMotion:y,defaultPopupVisible:k,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c,arrow:P},M),m)},tb=t.forwardRef(eb);function nb(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,h=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,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} ${h} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const rb=(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 ${Vn(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},ob=8;function ib(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?ob:r}}function ab(e,t){return e?t:{}}function lb(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"},rb(e,t,o)),{"&:before":{background:t}})]},ab(!!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% - ${Vn(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ab(!!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% - ${Vn(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ab(!!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}})),ab(!!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 cb={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"]}},sb={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"]}},ub=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function db(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(cb).forEach((e=>{const s=r&&sb[e]||cb[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,ub.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}const d=ib({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":u.offset[1]=d.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,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const fb=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ua(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,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":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${Vn(e.calc(s).div(2).equal())} ${Vn(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,ob)}},[`${t}-content`]:{position:"relative"}}),tl(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},lb(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},pb=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},ib({contentRadius:e.borderRadius,limitVerticalRadius:!0})),nb(ka(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var mb=function(e){const t=Ja("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=ka(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[fb(o),hm(e,"zoom-big-fast")]}),pb,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const hb=ja.map((e=>`${e}-inverse`));function gb(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?ja.includes(e):[].concat(Qt(hb),Qt(ja)).includes(e)}(t),r=Ze({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var vb=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 bb=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:h=!0,title:g,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=e,x=!!h,[,E]=Ka(),{getPopupContainer:C,getPrefixCls:S,direction:O}=o.useContext(ia),k=jo("Tooltip"),N=o.useRef(null),$=()=>{var e;null===(e=N.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>{var e;return{forceAlign:$,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),$()},nativeElement:null===(e=N.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((t=>{let[n,r]=t;k.deprecated(!(n in e),n,r)})),"production"!==process.env.NODE_ENV&&k(!m||"boolean"==typeof m,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&k(!h||"boolean"==typeof h||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[I,_]=Ea(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),R=!g&&!v&&0!==g,P=o.useMemo((()=>{var e,t;let n=y;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:y),b||db({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:x?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})}),[y,h,b,E]),j=o.useMemo((()=>0===g?g:v||g||""),[v,g]),A=o.createElement(tp,{space:!0},"function"==typeof j?j():j),{getPopupContainer:M,placement:T="top",mouseEnterDelay:D=.1,mouseLeaveDelay:z=.1,overlayStyle:B,rootClassName:L}=e,H=vb(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),F=S("tooltip",i),V=S(),K=e["data-popover-inject"];let W=I;"open"in e||"visible"in e||!R||(W=!1);const q=o.isValidElement(d)&&!qc(d)?d:o.createElement("span",null,d),U=q.props,X=U.className&&"string"!=typeof U.className?U.className:Ze(U.className,a||`${F}-open`),[G,Y,Q]=mb(F,!K),J=gb(F,s),Z=J.arrowStyle,ee=Object.assign(Object.assign({},u),J.overlayStyle),te=Ze(c,{[`${F}-rtl`]:"rtl"===O},J.className,L,Y,Q),[ne,re]=vs("Tooltip",H.zIndex),oe=o.createElement(tb,Object.assign({},H,{zIndex:ne,showArrow:x,placement:T,mouseEnterDelay:D,mouseLeaveDelay:z,prefixCls:F,overlayClassName:te,overlayStyle:Object.assign(Object.assign({},Z),B),getTooltipContainer:M||l||C,ref:N,builtinPlacements:P,overlay:A,visible:W,onVisibleChange:t=>{var n,r;_(!R&&t),R||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=f?f:p,overlayInnerStyle:ee,arrowContent:o.createElement("span",{className:`${F}-arrow-content`}),motion:{motionName:Js(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),W?Xc(q,{className:X}):q);return G(o.createElement(fs.Provider,{value:re},oe))})),yb=bb;"production"!==process.env.NODE_ENV&&(yb.displayName="Tooltip"),yb._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=o.useContext(ia),s=c("tooltip",t),[u,d,f]=mb(s),p=gb(s,a),m=p.arrowStyle,h=Object.assign(Object.assign({},l),p.overlayStyle),g=Ze(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,p.className);return u(o.createElement("div",{className:g,style:m},o.createElement("div",{className:`${s}-arrow`}),o.createElement(Xv,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:h}),i)))};const wb=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},Ua(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:h},[`${t}-inner-content`]:{color:n,padding:m}})},lb(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},xb=e=>{const{componentCls:t}=e;return{[t]:ja.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}};var Eb=Ja("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=ka(e,{popoverBg:t,popoverColor:n});return[wb(r),xb(r),hm(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},nb(e)),ib({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${h}px ${m}px`:0,titleBorderBottom:i?`${t}px ${s} ${u}`:"none",innerContentPadding:i?`${d}px ${h}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),Cb=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 Sb=e=>{let{title:t,content:n,prefixCls:r}=e;return t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:`${r}-title`},t),n&&o.createElement("div",{className:`${r}-inner-content`},n)):null},Ob=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:l,content:c,children:s}=e,u=Uv(l),d=Uv(c),f=Ze(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return o.createElement("div",{className:f,style:i},o.createElement("div",{className:`${n}-arrow`}),o.createElement(Xv,Object.assign({},e,{className:t,prefixCls:n}),s||o.createElement(Sb,{prefixCls:n,title:u,content:d})))};var kb=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 Nb=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,title:a,content:l,overlayClassName:c,placement:s="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:m,overlayStyle:h={}}=e,g=kb(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:v}=o.useContext(ia),b=v("popover",i),[y,w,x]=Eb(b),E=v(),C=Ze(c,w,x),[S,O]=Ea(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),k=(e,t)=>{O(e,!0),null==m||m(e,t)},N=Uv(a),$=Uv(l);return y(o.createElement(yb,Object.assign({placement:s,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:h},g,{prefixCls:b,overlayClassName:C,ref:t,open:S,onOpenChange:e=>{k(e)},overlay:N||$?o.createElement(Sb,{prefixCls:b,title:N,content:$}):null,transitionName:Js(E,"zoom-big",g.transitionName),"data-popover-inject":!0}),Xc(d,{onKeyDown:e=>{var t,n;o.isValidElement(d)&&(null===(n=null==d?void 0:(t=d.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===Jc.ESC&&k(!1,e)})(e)}})))})),$b=Nb;$b._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n}=e,r=Cb(e,["prefixCls","className"]),{getPrefixCls:i}=o.useContext(ia),a=i("popover",t),[l,c,s]=Eb(a);return l(o.createElement(Ob,Object.assign({},r,{prefixCls:a,hashId:c,className:Ze(n,s)})))},"production"!==process.env.NODE_ENV&&($b.displayName="Popover");var Ib={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"},_b=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:Ib}))},Rb=o.forwardRef(_b);"production"!==process.env.NODE_ENV&&(Rb.displayName="RightOutlined");var Pb=Jc.ESC,jb=Jc.TAB;var Ab=t.forwardRef((function(e,n){var r=e.overlay,o=e.arrow,i=e.prefixCls,a=t.useMemo((function(){return"function"==typeof r?r():r}),[r]),l=Ot(n,null==a?void 0:a.ref);return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:Nt(a)?l:void 0}))})),Mb={adjustX:1,adjustY:1},Tb=[0,0],Db={topLeft:{points:["bl","tl"],overflow:Mb,offset:[0,-4],targetOffset:Tb},top:{points:["bc","tc"],overflow:Mb,offset:[0,-4],targetOffset:Tb},topRight:{points:["br","tr"],overflow:Mb,offset:[0,-4],targetOffset:Tb},bottomLeft:{points:["tl","bl"],overflow:Mb,offset:[0,4],targetOffset:Tb},bottom:{points:["tc","bc"],overflow:Mb,offset:[0,4],targetOffset:Tb},bottomRight:{points:["tr","br"],overflow:Mb,offset:[0,4],targetOffset:Tb}},zb=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Bb(e,n){var r,i=e.arrow,a=void 0!==i&&i,l=e.prefixCls,c=void 0===l?"rc-dropdown":l,s=e.transitionName,u=e.animation,d=e.align,f=e.placement,p=void 0===f?"bottomLeft":f,m=e.placements,h=void 0===m?Db:m,g=e.getPopupContainer,v=e.showAction,b=e.hideAction,y=e.overlayClassName,w=e.overlayStyle,x=e.visible,E=e.trigger,C=void 0===E?["hover"]:E,S=e.autoFocus,O=e.overlay,k=e.children,N=e.onVisibleChange,$=En(e,zb),I=ln(t.useState(),2),_=I[0],R=I[1],P="visible"in e?x:_,j=t.useRef(null),A=t.useRef(null),M=t.useRef(null);t.useImperativeHandle(n,(function(){return j.current}));var T=function(e){R(e),null==N||N(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=o.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=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case Pb:c();break;case jb:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};o.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&rn(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:P,triggerRef:M,onVisibleChange:T,autoFocus:S,overlayRef:A});var D,z,B,L=function(){return t.createElement(Ab,{ref:A,overlay:O,prefixCls:c,arrow:a})},H=t.cloneElement(k,{className:Ze(null===(r=k.props)||void 0===r?void 0:r.className,P&&(D=e.openClassName,void 0!==D?D:"".concat(c,"-open"))),ref:Nt(k)?Ot(M,k.ref):void 0}),F=b;return F||-1===C.indexOf("contextMenu")||(F=["click"]),t.createElement(Jh,et({builtinPlacements:h},$,{prefixCls:c,ref:j,popupClassName:Ze(y,bt({},"".concat(c,"-show-arrow"),a)),popupStyle:w,action:C,showAction:v,hideAction:F,popupPlacement:p,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:P,stretch:(z=e.minOverlayWidthMatchTrigger,B=e.alignPoint,("minOverlayWidthMatchTrigger"in e?z:!B)?"minWidth":""),popup:"function"==typeof O?L:L(),onPopupVisibleChange:T,onPopupClick:function(t){var n=e.onOverlayClick;R(!1),n&&n(t)},getPopupContainer:g}),H)}var Lb=t.forwardRef(Bb),Hb=o.createContext(null);function Fb(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Vb(e){return Fb(o.useContext(Hb),e)}var Kb=["children","locked"],Wb=o.createContext(null);function qb(e){var t=e.children,n=e.locked,r=En(e,Kb),i=o.useContext(Wb),a=Ct((function(){return function(e,t){var n=wt({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}(i,r)}),[i,r],(function(e,t){return!(n||e[0]===t[0]&&Cn(e[1],t[1],!0))}));return o.createElement(Wb.Provider,{value:a},t)}var Ub=[],Xb=o.createContext(null);function Gb(){return o.useContext(Xb)}var Yb=o.createContext(Ub);function Qb(e){var t=o.useContext(Yb);return o.useMemo((function(){return void 0!==e?[].concat(Qt(t),[e]):t}),[t,e])}var Jb=o.createContext(null),Zb=o.createContext({});function ey(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Zs(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 ty=Jc.LEFT,ny=Jc.RIGHT,ry=Jc.UP,oy=Jc.DOWN,iy=Jc.ENTER,ay=Jc.ESC,ly=Jc.HOME,cy=Jc.END,sy=[ry,oy,ty,ny];function uy(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Qt(e.querySelectorAll("*")).filter((function(e){return ey(e,t)}));return ey(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function dy(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=uy(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 fy=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(Fb(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function py(e,t,n,r,i,a,l,c,s,u){var d=o.useRef(),f=o.useRef();f.current=t;var p=function(){rn.cancel(d.current)};return o.useEffect((function(){return function(){p()}}),[]),function(o){var m=o.which;if([].concat(sy,[iy,ay,ly,cy]).includes(m)){var h=a(),g=fy(h,r),v=g,b=v.elements,y=v.key2element,w=v.element2key,x=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),E=w.get(x),C=function(e,t,n,r){var o,i,a,l,c="prev",s="next",u="children",d="parent";if("inline"===e&&r===iy)return{inlineTrigger:!0};var f=(bt(o={},ry,c),bt(o,oy,s),o),p=(bt(i={},ty,n?s:c),bt(i,ny,n?c:s),bt(i,oy,u),bt(i,iy,u),i),m=(bt(a={},ry,c),bt(a,oy,s),bt(a,iy,u),bt(a,ay,d),bt(a,ty,n?u:d),bt(a,ny,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(E,!0).length,n,m);if(!C&&m!==ly&&m!==cy)return;(sy.includes(m)||[ly,cy].includes(m))&&o.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);c(r),p(),d.current=rn((function(){f.current===r&&t.focus()}))}};if([ly,cy].includes(m)||C.sibling||!x){var O,k;O=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):i.current;var N=uy(O,b);k=m===ly?N[0]:m===cy?N[N.length-1]:dy(O,b,x,C.offset),S(k)}else if(C.inlineTrigger)s(E);else if(C.offset>0)s(E,!0),p(),d.current=rn((function(){g=fy(h,r);var e=x.getAttribute("aria-controls"),t=dy(document.getElementById(e),g.elements);S(t)}),5);else if(C.offset<0){var $=l(E,!0),I=$[$.length-2],_=y.get(I);s(I,!1),S(_)}}null==u||u(o)}}var my="__RC_UTIL_PATH_SPLIT__",hy=function(e){return e.join(my)},gy="rc-menu-more";function vy(){var e=ln(o.useState({}),2)[1],n=t.useRef(new Map),r=t.useRef(new Map),i=ln(o.useState([]),2),a=i[0],l=i[1],c=t.useRef(0),s=t.useRef(!1),u=t.useCallback((function(t,o){"production"!==process.env.NODE_ENV&&mt(!n.current.has(t),"Duplicated key '".concat(t,"' used in Menu by path [").concat(o.join(" > "),"]"));var i=hy(o);r.current.set(i,t),n.current.set(t,i),c.current+=1;var a,l=c.current;a=function(){l===c.current&&(s.current||e({}))},Promise.resolve().then(a)}),[]),d=t.useCallback((function(e,t){var o=hy(t);r.current.delete(o),n.current.delete(e)}),[]),f=t.useCallback((function(e){l(e)}),[]),p=t.useCallback((function(e,t){var r=n.current.get(e)||"",o=r.split(my);return t&&a.includes(o[0])&&o.unshift(gy),o}),[a]),m=t.useCallback((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return p(e,!0).includes(t)}))}),[p]),h=t.useCallback((function(e){var t="".concat(n.current.get(e)).concat(my),o=new Set;return Qt(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return o.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:m,getKeyPath:p,getKeys:function(){var e=Qt(n.current.keys());return a.length&&e.push(gy),e},getSubPathKeys:h}}function by(e){var t=o.useRef(e);t.current=e;var n=o.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 yy=Math.random().toFixed(5).toString().slice(2),wy=0;function xy(e,t,n,r){var i=o.useContext(Wb),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),c(e)}),s}function Ey(e){var t=o.useContext(Wb),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}function Cy(e){var t,n=e.icon,r=e.props,i=e.children;return null===n||!1===n?null:("function"==typeof n?t=o.createElement(n,wt({},r)):"boolean"!=typeof n&&(t=n),t||i||null)}var Sy=["item"];function Oy(e){var t=e.item,n=En(e,Sy);return Object.defineProperty(n,"item",{get:function(){return mt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var ky=["title","attribute","elementRef"],Ny=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],$y=["active"],Iy=function(e){Dt(n,e);var t=Ht(n);function n(){return jt(this,n),t.apply(this,arguments)}return Mt(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=Ut(En(e,ky),["eventKey","popupClassName","popupOffset","onTitleClick"]);return mt(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(bh.Item,et({},n,{title:"string"==typeof t?t:void 0},i,{ref:r}))}}]),n}(o.Component),_y=o.forwardRef((function(e,t){var n,r=e.style,i=e.className,a=e.eventKey,l=e.warnKey,c=e.disabled,s=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,p=e.onMouseLeave,m=e.onClick,h=e.onKeyDown,g=e.onFocus,v=En(e,Ny),b=Vb(a),y=o.useContext(Wb),w=y.prefixCls,x=y.onItemClick,E=y.disabled,C=y.overflowDisabled,S=y.itemIcon,O=y.selectedKeys,k=y.onActive,N=o.useContext(Zb)._internalRenderMenuItem,$="".concat(w,"-item"),I=o.useRef(),_=o.useRef(),R=E||c,P=kt(t,_),j=Qb(a);"production"!==process.env.NODE_ENV&&l&&mt(!1,"MenuItem should not leave undefined `key`.");var A=function(e){return{key:a,keyPath:Qt(j).reverse(),item:I.current,domEvent:e}},M=s||S,T=xy(a,R,f,p),D=T.active,z=En(T,$y),B=O.includes(a),L=Ey(j.length),H={};"option"===e.role&&(H["aria-selected"]=B);var F=o.createElement(Iy,et({ref:I,elementRef:P,role:null===d?"none":d||"menuitem",tabIndex:c?null:-1,"data-menu-id":C&&b?null:b},v,z,H,{component:"li","aria-disabled":c,style:wt(wt({},L),r),className:Ze($,(n={},bt(n,"".concat($,"-active"),D),bt(n,"".concat($,"-selected"),B),bt(n,"".concat($,"-disabled"),R),n),i),onClick:function(e){if(!R){var t=A(e);null==m||m(Oy(t)),x(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===Jc.ENTER){var t=A(e);null==m||m(Oy(t)),x(t)}},onFocus:function(e){k(a),null==g||g(e)}}),u,o.createElement(Cy,{props:wt(wt({},e),{},{isSelected:B}),icon:M}));return N&&(F=N(F,e,{selected:B})),F}));function Ry(e,t){var n=e.eventKey,r=Gb(),i=Qb(n);return o.useEffect((function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}}),[i]),r?null:o.createElement(_y,et({},e,{ref:t}))}var Py=o.forwardRef(Ry),jy=["className","children"],Ay=function(e,t){var n=e.className,r=e.children,i=En(e,jy),a=o.useContext(Wb),l=a.prefixCls,c=a.mode,s=a.rtl;return o.createElement("ul",et({className:Ze(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),r)},My=o.forwardRef(Ay);function Ty(e,t){return lt(e).map((function(e,n){if(o.isValidElement(e)){var r,i,a=e.key,l=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a,c=null==l;c&&(l="tmp_key-".concat([].concat(Qt(t),[n]).join("-")));var s={key:l,eventKey:l};return"production"!==process.env.NODE_ENV&&c&&(s.warnKey=!0),o.cloneElement(e,s)}return e}))}My.displayName="SubMenuList";var Dy={adjustX:1,adjustY:1},zy={topLeft:{points:["bl","tl"],overflow:Dy},topRight:{points:["br","tr"],overflow:Dy},bottomLeft:{points:["tl","bl"],overflow:Dy},bottomRight:{points:["tr","br"],overflow:Dy},leftTop:{points:["tr","tl"],overflow:Dy},leftBottom:{points:["br","bl"],overflow:Dy},rightTop:{points:["tl","tr"],overflow:Dy},rightBottom:{points:["bl","br"],overflow:Dy}},By={topLeft:{points:["bl","tl"],overflow:Dy},topRight:{points:["br","tr"],overflow:Dy},bottomLeft:{points:["tl","bl"],overflow:Dy},bottomRight:{points:["tr","br"],overflow:Dy},rightTop:{points:["tr","tl"],overflow:Dy},rightBottom:{points:["br","bl"],overflow:Dy},leftTop:{points:["tl","tr"],overflow:Dy},leftBottom:{points:["bl","br"],overflow:Dy}};function Ly(e,t,n){return t||(n?n[e]||n.other:void 0)}var Hy={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Fy(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,d=e.onVisibleChange,f=o.useContext(Wb),p=f.getPopupContainer,m=f.rtl,h=f.subMenuOpenDelay,g=f.subMenuCloseDelay,v=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,w=f.rootClassName,x=f.motion,E=f.defaultMotions,C=ln(o.useState(!1),2),S=C[0],O=C[1],k=wt(wt({},m?By:zy),v),N=Hy[u],$=Ly(u,x,E),I=o.useRef($);"inline"!==u&&(I.current=$);var _=wt(wt({},I.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),R=o.useRef();return o.useEffect((function(){return R.current=rn((function(){O(n)})),function(){rn.cancel(R.current)}}),[n]),o.createElement(Jh,{prefixCls:t,popupClassName:Ze("".concat(t,"-popup"),bt({},"".concat(t,"-rtl"),m),l,w),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:k,popupPlacement:N,popupVisible:S,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[b],mouseEnterDelay:h,mouseLeaveDelay:g,onPopupVisibleChange:d,forceRender:y,popupMotion:_,fresh:!0},r)}function Vy(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",l=o.useContext(Wb),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=o.useRef(!1);p.current=f===a;var m=ln(o.useState(!p.current),2),h=m[0],g=m[1],v=!!p.current&&n;o.useEffect((function(){p.current&&g(!1)}),[f]);var b=wt({},Ly(a,u,d));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||g(!0),null==y?void 0:y(e)},h?null:o.createElement(qb,{mode:a,locked:!p.current},o.createElement(Ll,et({visible:v},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,r=e.style;return o.createElement(My,{id:t,className:n,style:r},i)})))}var Ky=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Wy=["active"],qy=o.forwardRef((function(e,t){var n,r=e.style,i=e.className,a=e.title,l=e.eventKey,c=e.warnKey,s=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,p=e.expandIcon,m=e.popupClassName,h=e.popupOffset,g=e.popupStyle,v=e.onClick,b=e.onMouseEnter,y=e.onMouseLeave,w=e.onTitleClick,x=e.onTitleMouseEnter,E=e.onTitleMouseLeave,C=En(e,Ky),S=Vb(l),O=o.useContext(Wb),k=O.prefixCls,N=O.mode,$=O.openKeys,I=O.disabled,_=O.overflowDisabled,R=O.activeKey,P=O.selectedKeys,j=O.itemIcon,A=O.expandIcon,M=O.onItemClick,T=O.onOpenChange,D=O.onActive,z=o.useContext(Zb)._internalRenderSubMenuItem,B=o.useContext(Jb).isSubPathKey,L=Qb(),H="".concat(k,"-submenu"),F=I||s,V=o.useRef(),K=o.useRef();"production"!==process.env.NODE_ENV&&c&&mt(!1,"SubMenu should not leave undefined `key`.");var W=null!=f?f:j,q=null!=p?p:A,U=$.includes(l),X=!_&&U,G=B(P,l),Y=xy(l,F,x,E),Q=Y.active,J=En(Y,Wy),Z=ln(o.useState(!1),2),ee=Z[0],te=Z[1],ne=function(e){F||te(e)},re=o.useMemo((function(){return Q||"inline"!==N&&(ee||B([R],l))}),[N,Q,R,ee,l,B]),oe=Ey(L.length),ie=by((function(e){null==v||v(Oy(e)),M(e)})),ae=S&&"".concat(S,"-popup"),le=o.createElement("div",et({role:"menuitem",style:oe,className:"".concat(H,"-title"),tabIndex:F?null:-1,ref:V,title:"string"==typeof a?a:null,"data-menu-id":_&&S?null:S,"aria-expanded":X,"aria-haspopup":!0,"aria-controls":ae,"aria-disabled":F,onClick:function(e){F||(null==w||w({key:l,domEvent:e}),"inline"===N&&T(l,!U))},onFocus:function(){D(l)}},J),a,o.createElement(Cy,{icon:"horizontal"!==N?q:void 0,props:wt(wt({},e),{},{isOpen:X,isSubMenu:!0})},o.createElement("i",{className:"".concat(H,"-arrow")}))),ce=o.useRef(N);if("inline"!==N&&L.length>1?ce.current="vertical":ce.current=N,!_){var se=ce.current;le=o.createElement(Fy,{mode:se,prefixCls:H,visible:!u&&X&&"inline"!==N,popupClassName:m,popupOffset:h,popupStyle:g,popup:o.createElement(qb,{mode:"horizontal"===se?"vertical":se},o.createElement(My,{id:ae,ref:K},d)),disabled:F,onVisibleChange:function(e){"inline"!==N&&T(l,e)}},le)}var ue=o.createElement(bh.Item,et({ref:t,role:"none"},C,{component:"li",style:r,className:Ze(H,"".concat(H,"-").concat(N),i,(n={},bt(n,"".concat(H,"-open"),X),bt(n,"".concat(H,"-active"),re),bt(n,"".concat(H,"-selected"),G),bt(n,"".concat(H,"-disabled"),F),n)),onMouseEnter:function(e){ne(!0),null==b||b({key:l,domEvent:e})},onMouseLeave:function(e){ne(!1),null==y||y({key:l,domEvent:e})}}),le,!_&&o.createElement(Vy,{id:ae,open:X,keyPath:L},d));return z&&(ue=z(ue,e,{selected:G,active:re,open:X,disabled:F})),o.createElement(qb,{onItemClick:ie,mode:"horizontal"===N?"vertical":N,itemIcon:W,expandIcon:q},ue)})),Uy=o.forwardRef((function(e,t){var n,r=e.eventKey,i=e.children,a=Qb(r),l=Ty(i,a),c=Gb();return o.useEffect((function(){if(c)return c.registerPath(r,a),function(){c.unregisterPath(r,a)}}),[a]),n=c?l:o.createElement(qy,et({ref:t},e),l),o.createElement(Yb.Provider,{value:a},n)}));function Xy(e){var t=e.className,n=e.style,r=o.useContext(Wb).prefixCls;return Gb()?null:o.createElement("li",{role:"separator",className:Ze("".concat(r,"-item-divider"),t),style:n})}"production"!==process.env.NODE_ENV&&(Uy.displayName="SubMenu");var Gy=["className","title","eventKey","children"],Yy=o.forwardRef((function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=En(e,Gy),l=o.useContext(Wb).prefixCls,c="".concat(l,"-item-group");return o.createElement("li",et({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:Ze(c,n)}),o.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof r?r:void 0},r),o.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))})),Qy=o.forwardRef((function(e,t){var n=e.eventKey,r=Ty(e.children,Qb(n));return Gb()?r:o.createElement(Yy,et({ref:t},Ut(e,["warnKey"])),r)}));"production"!==process.env.NODE_ENV&&(Qy.displayName="MenuItemGroup");var Jy=["label","children","key","type"];function Zy(e,t){var n=t.item,r=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,l){if(e&&"object"===gt(e)){var c=e,s=c.label,u=c.children,d=c.key,f=c.type,p=En(c,Jy),m=null!=d?d:"tmp-".concat(l);return u||"group"===f?"group"===f?o.createElement(r,et({key:m},p,{title:s}),Zy(u,t)):o.createElement(i,et({key:m},p,{title:s}),Zy(u,t)):"divider"===f?o.createElement(a,et({key:m},p)):o.createElement(n,et({key:m},p),s)}return null})).filter((function(e){return e}))}function ew(e,t,n,r){var o=e,i=wt({divider:Xy,item:Py,group:Qy,submenu:Uy},r);return t&&(o=Zy(t,i)),Ty(o,n)}var tw=["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"],nw=[],rw=o.forwardRef((function(e,r){var i,a,l=e,c=l.prefixCls,s=void 0===c?"rc-menu":c,u=l.rootClassName,d=l.style,f=l.className,p=l.tabIndex,m=void 0===p?0:p,h=l.items,g=l.children,v=l.direction,b=l.id,y=l.mode,w=void 0===y?"vertical":y,x=l.inlineCollapsed,E=l.disabled,C=l.disabledOverflow,S=l.subMenuOpenDelay,O=void 0===S?.1:S,k=l.subMenuCloseDelay,N=void 0===k?.1:k,$=l.forceSubMenuRender,I=l.defaultOpenKeys,_=l.openKeys,R=l.activeKey,P=l.defaultActiveFirst,j=l.selectable,A=void 0===j||j,M=l.multiple,T=void 0!==M&&M,D=l.defaultSelectedKeys,z=l.selectedKeys,B=l.onSelect,L=l.onDeselect,H=l.inlineIndent,F=void 0===H?24:H,V=l.motion,K=l.defaultMotions,W=l.triggerSubMenuAction,q=void 0===W?"hover":W,U=l.builtinPlacements,X=l.itemIcon,G=l.expandIcon,Y=l.overflowedIndicator,Q=void 0===Y?"...":Y,J=l.overflowedIndicatorPopupClassName,Z=l.getPopupContainer,ee=l.onClick,te=l.onOpenChange,ne=l.onKeyDown,re=l.openAnimation,oe=l.openTransitionName,ie=l._internalRenderMenuItem,ae=l._internalRenderSubMenuItem,le=l._internalComponents,ce=En(l,tw),se=ln(o.useMemo((function(){return[ew(g,h,nw,le),ew(g,h,nw,{})]}),[g,h,le]),2),ue=se[0],de=se[1],fe=ln(o.useState(!1),2),pe=fe[0],me=fe[1],he=o.useRef(),ge=function(e){var t=ln(Ea(e,{value:e}),2),n=t[0],r=t[1];return o.useEffect((function(){wy+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(yy,"-").concat(wy);r("rc-menu-uuid-".concat(e))}),[]),n}(b),ve="rtl"===v;"production"!==process.env.NODE_ENV&&mt(!re&&!oe,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var be=Ea(I,{value:_,postState:function(e){return e||nw}}),ye=ln(be,2),we=ye[0],xe=ye[1],Ee=function(e){function t(){xe(e),null==te||te(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?n.flushSync(t):t()},Ce=ln(o.useState(we),2),Se=Ce[0],Oe=Ce[1],ke=o.useRef(!1),Ne=ln(o.useMemo((function(){return"inline"!==w&&"vertical"!==w||!x?[w,!1]:["vertical",x]}),[w,x]),2),$e=Ne[0],Ie=Ne[1],_e="inline"===$e,Re=ln(o.useState($e),2),Pe=Re[0],je=Re[1],Ae=ln(o.useState(Ie),2),Me=Ae[0],Te=Ae[1];o.useEffect((function(){je($e),Te(Ie),ke.current&&(_e?xe(Se):Ee(nw))}),[$e,Ie]);var De=ln(o.useState(0),2),ze=De[0],Be=De[1],Le=ze>=ue.length-1||"horizontal"!==Pe||C;o.useEffect((function(){_e&&Oe(we)}),[we]),o.useEffect((function(){return ke.current=!0,function(){ke.current=!1}}),[]);var He=vy(),Fe=He.registerPath,Ve=He.unregisterPath,Ke=He.refreshOverflowKeys,We=He.isSubPathKey,qe=He.getKeyPath,Ue=He.getKeys,Xe=He.getSubPathKeys,Ge=o.useMemo((function(){return{registerPath:Fe,unregisterPath:Ve}}),[Fe,Ve]),Ye=o.useMemo((function(){return{isSubPathKey:We}}),[We]);o.useEffect((function(){Ke(Le?nw:ue.slice(ze+1).map((function(e){return e.key})))}),[ze,Le]);var Qe=ln(Ea(R||P&&(null===(i=ue[0])||void 0===i?void 0:i.key),{value:R}),2),Je=Qe[0],tt=Qe[1],nt=by((function(e){tt(e)})),rt=by((function(){tt(void 0)}));t.useImperativeHandle(r,(function(){return{list:he.current,focus:function(e){var t,n,r=Ue(),o=fy(r,ge),i=o.elements,a=o.key2element,l=o.element2key,c=uy(he.current,i),s=null!=Je?Je:c[0]?l.get(c[0]):null===(t=ue.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 ot=Ea(D||[],{value:z,postState:function(e){return Array.isArray(e)?e:null==e?nw:[e]}}),it=ln(ot,2),at=it[0],lt=it[1],ct=by((function(e){null==ee||ee(Oy(e)),function(e){if(A){var t,n=e.key,r=at.includes(n);t=T?r?at.filter((function(e){return e!==n})):[].concat(Qt(at),[n]):[n],lt(t);var o=wt(wt({},e),{},{selectedKeys:t});r?null==L||L(o):null==B||B(o)}!T&&we.length&&"inline"!==Pe&&Ee(nw)}(e)})),st=by((function(e,t){var n=we.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Pe){var r=Xe(e);n=n.filter((function(e){return!r.has(e)}))}Cn(we,n,!0)||Ee(n,!0)})),ut=py(Pe,Je,ve,ge,he,Ue,qe,tt,(function(e,t){var n=null!=t?t:!we.includes(e);st(e,n)}),ne);o.useEffect((function(){me(!0)}),[]);var dt=o.useMemo((function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ae}}),[ie,ae]),ft="horizontal"!==Pe||C?ue:ue.map((function(e,t){return o.createElement(qb,{key:e.key,overflowDisabled:t>ze},e)})),pt=o.createElement(bh,et({id:b,ref:he,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Py,className:Ze(s,"".concat(s,"-root"),"".concat(s,"-").concat(Pe),f,(a={},bt(a,"".concat(s,"-inline-collapsed"),Me),bt(a,"".concat(s,"-rtl"),ve),a),u),dir:v,style:d,role:"menu",tabIndex:m,data:ft,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ue.slice(-t):null;return o.createElement(Uy,{eventKey:gy,title:Q,disabled:Le,internalPopupClose:0===t,popupClassName:J},n)},maxCount:"horizontal"!==Pe||C?bh.INVALIDATE:bh.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Be(e)},onKeyDown:ut},ce));return o.createElement(Zb.Provider,{value:dt},o.createElement(Hb.Provider,{value:ge},o.createElement(qb,{prefixCls:s,rootClassName:u,mode:Pe,openKeys:we,rtl:ve,disabled:E,motion:pe?V:null,defaultMotions:pe?K:null,activeKey:Je,onActive:nt,onInactive:rt,selectedKeys:at,inlineIndent:F,subMenuOpenDelay:O,subMenuCloseDelay:N,forceSubMenuRender:$,builtinPlacements:U,triggerSubMenuAction:q,getPopupContainer:Z,itemIcon:X,expandIcon:G,onItemClick:ct,onOpenChange:st},o.createElement(Jb.Provider,{value:Ye},pt),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(Xb.Provider,{value:Ge},de)))))})),ow=rw;ow.Item=Py,ow.SubMenu=Uy,ow.ItemGroup=Qy,ow.Divider=Xy;var iw={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},aw=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:iw}))},lw=o.forwardRef(aw);"production"!==process.env.NODE_ENV&&(lw.displayName="BarsOutlined");var cw={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"},sw=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:cw}))},uw=o.forwardRef(sw);"production"!==process.env.NODE_ENV&&(uw.displayName="LeftOutlined");const dw=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var fw=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 pw={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},mw=o.createContext({}),hw=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),gw=o.forwardRef(((e,n)=>{const{prefixCls:r,className:i,trigger:a,children:l,defaultCollapsed:c=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:p=200,collapsedWidth:m=80,zeroWidthTriggerStyle:h,breakpoint:g,onCollapse:v,onBreakpoint:b}=e,y=fw(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=t.useContext(dw),[x,E]=t.useState("collapsed"in e?e.collapsed:c),[C,S]=t.useState(!1);t.useEffect((()=>{"collapsed"in e&&E(e.collapsed)}),[e.collapsed]);const O=(t,n)=>{"collapsed"in e||E(t),null==v||v(t,n)},k=t.useRef();k.current=e=>{S(e.matches),null==b||b(e.matches),x!==e.matches&&O(e.matches,"responsive")},t.useEffect((()=>{function e(e){return k.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&g&&g in pw){t=n(`screen and (max-width: ${pw[g]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[g]),t.useEffect((()=>{const e=hw("ant-sider-");return w.addSider(e),()=>w.removeSider(e)}),[]);const N=()=>{O(!x,"clickTrigger")},{getPrefixCls:$}=t.useContext(ia),I=o.useMemo((()=>({siderCollapsed:x})),[x]);return o.createElement(mw.Provider,{value:I},(()=>{const e=$("layout-sider",r),t=Ut(y,["collapsed"]),c=x?m:p,g=(v=c,!isNaN(parseFloat(v))&&isFinite(v)?`${c}px`:String(c));var v;const b=0===parseFloat(String(m||0))?o.createElement("span",{onClick:N,className:Ze(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${f?"right":"left"}`),style:h},a||o.createElement(lw,null)):null,w={expanded:f?o.createElement(Rb,null):o.createElement(uw,null),collapsed:f?o.createElement(uw,null):o.createElement(Rb,null)}[x?"collapsed":"expanded"],E=null!==a?b||o.createElement("div",{className:`${e}-trigger`,onClick:N,style:{width:g}},a||w):null,S=Object.assign(Object.assign({},u),{flex:`0 0 ${g}`,maxWidth:g,minWidth:g,width:g}),O=Ze(e,`${e}-${s}`,{[`${e}-collapsed`]:!!x,[`${e}-has-trigger`]:d&&null!==a&&!b,[`${e}-below`]:!!C,[`${e}-zero-width`]:0===parseFloat(g)},i);return o.createElement("aside",Object.assign({className:O},t,{style:S,ref:n}),o.createElement("div",{className:`${e}-children`},l),d||C&&b?E:null)})())}));"production"!==process.env.NODE_ENV&&(gw.displayName="Sider");var vw={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"},bw=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:vw}))},yw=o.forwardRef(bw);"production"!==process.env.NODE_ENV&&(yw.displayName="EllipsisOutlined");const ww=t.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var xw=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 Ew=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=xw(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=o.useContext(ia),l=a("menu",t),c=Ze({[`${l}-item-divider-dashed`]:!!r},n);return o.createElement(Xy,Object.assign({className:c},i))},Cw=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:l}=e,{prefixCls:c,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=o.useContext(ww),{siderCollapsed:p}=o.useContext(mw);let m=a;void 0===a?m=s?r:"":!1===a&&(m="");const h={title:m};p||f||(h.title=null,h.open=!1);const g=lt(r).length;let v=o.createElement(Py,Object.assign({},Ut(e,["title","icon","danger"]),{className:Ze({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?g+1:g)},n),title:"string"==typeof a?a:void 0}),Xc(i,{className:Ze(o.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),(e=>{const t=o.createElement("span",{className:`${c}-title-content`},r);return(!i||o.isValidElement(r)&&"span"===r.type)&&r&&e&&s&&"string"==typeof r?o.createElement("div",{className:`${c}-inline-collapsed-noicon`},r.charAt(0)):t})(f));return d||(v=o.createElement(yb,Object.assign({},h,{placement:"rtl"===u?"left":"right",overlayClassName:`${c}-inline-collapsed-tooltip`}),v)),v};var Sw=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 Ow=o.createContext(null),kw=o.forwardRef(((e,t)=>{const{children:n}=e,r=Sw(e,["children"]),i=o.useContext(Ow),a=o.useMemo((()=>Object.assign(Object.assign({},i),r)),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=function(e){return $t(e)&&Nt(e)}(n),c=kt(t,l?n.ref:null);return o.createElement(Ow.Provider,{value:a},o.createElement(tp,{space:!0},l?o.cloneElement(n,{ref:c}):n))})),Nw=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:`${Vn(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"}}}},$w=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Vn(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Vn(n)})`}}}}},Iw=e=>Object.assign({},Ga(e)),_w=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:h,motionDurationMid:g,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:S,dangerItemSelectedBg:O,popupBg:k,itemHoverBg:N,itemActiveBg:$,menuSubMenuBg:I,horizontalItemSelectedColor:_,horizontalItemSelectedBg:R,horizontalItemBorderRadius:P,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Iw(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Iw(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:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:$}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:$}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:O}},[`&${n}-submenu > ${n}`]:{backgroundColor:I},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${Vn(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:s,borderBottomColor:_}},"&-selected":{color:_,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:s,borderBottomColor:_}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Vn(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Vn(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${m}`,`opacity ${g} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(",")}}}}}},Rw=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c}=e,s=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Vn(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Vn(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:s}}},Pw=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:h,collapsedIconSize:g}=e,v={height:r,lineHeight:Vn(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Rw(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Rw(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Vn(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 ${l} ${c}`,`padding-inline calc(50% - ${Vn(e.calc(d).div(2).equal())} - ${Vn(u)})`].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:s}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,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% - ${Vn(e.calc(d).div(2).equal())} - ${Vn(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Vn(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({},qa),{paddingInline:p})}}]},jw=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 ${n} ${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"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Aw=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(${Vn(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Vn(a)})`}}}}},Mw=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:h,lineType:g,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({},Ua(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:`${Vn(l)} ${Vn(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}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),jw(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Vn(e.calc(r).mul(2).equal())} ${Vn(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},jw(e)),Aw(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}}}),Aw(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Vn(h)})`},"&::after":{transform:`rotate(45deg) translateX(${Vn(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Vn(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Vn(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Vn(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Tw=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:h,colorBgTextHover:g,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:w,padding:x,fontSize:E,controlHeightSM:C,fontSizeLG:S,colorTextLightSolid:O,colorErrorHover:k}=e,N=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,$=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,I=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,_=new mi(O).setAlpha(.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,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:h,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:$,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:I,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*v+"px",iconSize:E,iconMarginInlineEnd:C-E,collapsedIconSize:S,groupTitleFontSize:E,darkItemDisabledColor:new mi(O).setAlpha(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:O,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:i,itemWidth:N?`calc(100% + ${$}px)`:`calc(100% - ${2*I}px)`}};const Dw=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,l=o.useContext(ww),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=Qb();let f;if(r){const e=o.isValidElement(i)&&"span"===i.type;f=o.createElement(o.Fragment,null,Xc(r,{className:Ze(o.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${c}-item-icon`)}),e?i:o.createElement("span",{className:`${c}-title-content`},i))}else f=s&&!d.length&&i&&"string"==typeof i?o.createElement("div",{className:`${c}-inline-collapsed-noicon`},i.charAt(0)):o.createElement("span",{className:`${c}-title-content`},i);const p=o.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[m]=vs("Menu");return o.createElement(ww.Provider,{value:p},o.createElement(Uy,Object.assign({},Ut(e,["icon"]),{title:f,popupClassName:Ze(c,n,`${c}-${a||u}`),popupStyle:{zIndex:m}})))};var zw=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 Bw(e){return null===e||!1===e}const Lw={item:Cw,submenu:Dw,divider:Ew},Hw=t.forwardRef(((e,t)=>{var n;const r=o.useContext(Ow),i=r||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:s}=o.useContext(ia),u=a(),{prefixCls:d,className:f,style:p,theme:m="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:w,selectable:x,onClick:E,overflowedIndicatorPopupClassName:C}=e,S=Ut(zw(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=jo("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==w),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&t(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),t.deprecated("items"in e&&!e.children,"children","items")}null===(n=i.validator)||void 0===n||n.call(i,{mode:w});const O=ya((function(){var e;null==E||E.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),k=i.mode||w,N=null!=x?x:i.selectable,$=o.useMemo((()=>void 0!==b?b:v),[v,b]),I={horizontal:{motionName:`${u}-slide-up`},inline:Qs(u),other:{motionName:`${u}-zoom-big`}},_=a("menu",d||i.prefixCls),R=Qc(_),[P,j,A]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Ja("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:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,w=e.calc(r).div(7).mul(5).equal(),x=ka(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),E=ka(x,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[Mw(x),Nw(x),Pw(x),_w(x,"light"),_w(E,"dark"),$w(x),Dp(x),lm(x,"slide-up"),lm(x,"slide-down"),hm(x,"zoom-big")]}),Tw,{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:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(_,R,!r),M=Ze(`${_}-${m}`,null==s?void 0:s.className,f),T=o.useMemo((()=>{var e,t;if("function"==typeof h||Bw(h))return h||null;if("function"==typeof i.expandIcon||Bw(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||Bw(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const n=null!==(e=null!=h?h:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return Xc(n,{className:Ze(`${_}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[h,null==i?void 0:i.expandIcon,null==s?void 0:s.expandIcon,_]),D=o.useMemo((()=>({prefixCls:_,inlineCollapsed:$||!1,direction:c,firstLevel:!0,theme:m,mode:k,disableMenuItemTitleTooltip:g})),[_,$,c,g,m]);return P(o.createElement(Ow.Provider,{value:null},o.createElement(ww.Provider,{value:D},o.createElement(ow,Object.assign({getPopupContainer:l,overflowedIndicator:o.createElement(yw,null),overflowedIndicatorPopupClassName:Ze(_,`${_}-${m}`,C),mode:k,selectable:N,onClick:O},S,{inlineCollapsed:$,style:Object.assign(Object.assign({},null==s?void 0:s.style),p),className:M,prefixCls:_,direction:c,defaultMotions:I,expandIcon:T,ref:t,rootClassName:Ze(y,j,i.rootClassName,A,R),_internalComponents:Lw})))))})),Fw=t.forwardRef(((e,n)=>{const r=t.useRef(null),i=o.useContext(mw);return t.useImperativeHandle(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),o.createElement(Hw,Object.assign({ref:r},e,i))}));Fw.Item=Cw,Fw.SubMenu=Dw,Fw.Divider=Ew,Fw.ItemGroup=Qy,"production"!==process.env.NODE_ENV&&(Fw.displayName="Menu");const Vw=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}}}}}},Kw=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:h}=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:'""'},[`&-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:Jp},[`&${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:em},[`&${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:Zp},[`&${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:tm}}},lb(e,h,{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({},Ua(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ya(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Vn(s)} ${Vn(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Vn(s)} ${Vn(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ya(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Vn(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.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Vn(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:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[lm(e,"slide-up"),lm(e,"slide-down"),Qp(e,"move-up"),Qp(e,"move-down"),hm(e,"zoom-big")]]};var Ww=Ja("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=ka(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Kw(i),Vw(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},ib({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),nb(e))),{resetStyle:!1});const qw=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:l,disabled:c,dropdownRender:s,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:m,onOpenChange:h,visible:g,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:w=!0,placement:x="",overlay:E,transitionName:C}=e,{getPopupContainer:S,getPrefixCls:O,direction:k,dropdown:N}=o.useContext(ia),$=jo("Dropdown");"production"!==process.env.NODE_ENV&&([["visible","open"],["onVisibleChange","onOpenChange"]].forEach((t=>{let[n,r]=t;$.deprecated(!(n in e),n,r)})),$.deprecated(!("overlay"in e),"overlay","menu"));const I=o.useMemo((()=>{const e=O();return void 0!==C?C:x.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[O,x,C]),_=o.useMemo((()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:"rtl"===k?"bottomRight":"bottomLeft"),[x,k]);if("production"!==process.env.NODE_ENV){if(x.includes("Center")){const e=x.slice(0,x.indexOf("Center"));"production"!==process.env.NODE_ENV&&$(!x.includes("Center"),"deprecated",`You are using '${x}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach((t=>{let[n,r]=t;$.deprecated(!(n in e),n,r)}))}const R=O("dropdown",i),P=Qc(R),[j,A,M]=Ww(R,P),[,T]=Ka(),D=o.Children.only(a),z=Xc(D,{className:Ze(`${R}-trigger`,{[`${R}-rtl`]:"rtl"===k},D.props.className),disabled:null!==(t=D.props.disabled)&&void 0!==t?t:c}),B=c?[]:l,L=!!(null==B?void 0:B.includes("contextMenu")),[H,F]=Ea(!1,{value:null!=m?m:g}),V=ya((e=>{null==h||h(e,{source:"trigger"}),null==v||v(e),F(e)})),K=Ze(d,f,A,M,P,null==N?void 0:N.className,{[`${R}-rtl`]:"rtl"===k}),W=db({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:w,offset:T.marginXXS,arrowWidth:r?T.sizePopupArrow:0,borderRadius:T.borderRadius}),q=o.useCallback((()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==h||h(!1,{source:"menu"}),F(!1))}),[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[U,X]=vs("Dropdown",null==p?void 0:p.zIndex);let G=o.createElement(Lb,Object.assign({alignPoint:L},Ut(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:H,builtinPlacements:W,arrow:!!r,overlayClassName:K,prefixCls:R,getPopupContainer:u||S,transitionName:I,trigger:B,overlay:()=>{let e;return e=(null==n?void 0:n.items)?o.createElement(Fw,Object.assign({},n)):"function"==typeof E?E():E,s&&(e=s(e)),e=o.Children.only("string"==typeof e?o.createElement("span",null,e):e),o.createElement(kw,{prefixCls:`${R}-menu`,rootClassName:Ze(M,P),expandIcon:o.createElement("span",{className:`${R}-menu-submenu-arrow`},o.createElement(Rb,{className:`${R}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:q,validator:e=>{let{mode:t}=e;"production"!==process.env.NODE_ENV&&$(!t||"vertical"===t,"usage",`mode="${t}" is not supported for Dropdown's Menu.`)}},e)},placement:_,onVisibleChange:V,overlayStyle:Object.assign(Object.assign(Object.assign({},null==N?void 0:N.style),p),{zIndex:U})}),z);return U&&(G=o.createElement(fs.Provider,{value:X},G)),j(G)};const Uw=Ym(qw,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));qw._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(Uw,Object.assign({},e),o.createElement("span",null)),"production"!==process.env.NODE_ENV&&(qw.displayName="Dropdown");const Xw=o.createContext(null),Gw=Xw.Provider,Yw=o.createContext(null),Qw=Yw.Provider;var Jw=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Zw=t.forwardRef((function(e,n){var r=e.prefixCls,i=void 0===r?"rc-checkbox":r,a=e.className,l=e.style,c=e.checked,s=e.disabled,u=e.defaultChecked,d=void 0!==u&&u,f=e.type,p=void 0===f?"checkbox":f,m=e.title,h=e.onChange,g=En(e,Jw),v=t.useRef(null),b=t.useRef(null),y=ln(Ea(d,{value:c}),2),w=y[0],x=y[1];t.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:b.current}}));var E=Ze(i,a,bt(bt({},"".concat(i,"-checked"),w),"".concat(i,"-disabled"),s));return o.createElement("span",{className:E,title:m,style:l,ref:b},o.createElement("input",et({},g,{className:"".concat(i,"-input"),ref:v,onChange:function(t){s||("checked"in e||x(t.target.checked),null==h||h({target:wt(wt({},e),{},{type:p,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:s,checked:!!w,type:p})),o.createElement("span",{className:"".concat(i,"-inner")}))}));const ex=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Ua(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},tx=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:h,radioColor:g,radioBgColor:v,calc:b}=e,y=`${t}-inner`,w=b(o).sub(b(4).mul(2)),x=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ua(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Vn(u)} ${h} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ua(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}`]:Object.assign({},Ga(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:x,height:x,marginBlockStart:b(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,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(w).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},nx=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:h,borderRadius:g,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:E,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:S,colorPrimary:O,colorPrimaryHover:k,colorPrimaryActive:N,buttonSolidCheckedBg:$,buttonSolidCheckedHoverBg:I,buttonSolidCheckedActiveBg:_,calc:R}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:Vn(R(n).sub(R(o).mul(2)).equal()),background:d,border:`${Vn(o)} ${i} ${a}`,borderBlockStartWidth:R(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:R(o).mul(-1).equal(),insetInlineStart:R(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${Vn(o)} ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:Vn(R(p).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:R(h).sub(o).equal(),paddingBlock:0,lineHeight:Vn(R(m).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Object.assign({},Ga(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:O,background:y,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:$,borderColor:$,"&:hover":{color:w,background:I,borderColor:I},"&:active":{color:w,background:_,borderColor:_}},"&-disabled":{color:x,backgroundColor:E,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:E,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:S,backgroundColor:C,borderColor:a,boxShadow:"none"}}}};var rx=Ja("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Vn(n)} ${t}`,o=ka(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[ex(o),tx(o),nx(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}}),ox=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 ix=(e,t)=>{var n,r;const i=o.useContext(Xw),a=o.useContext(Yw),{getPrefixCls:l,direction:c,radio:s}=o.useContext(ia),u=o.useRef(null),d=Ot(t,u),{isFormItemInput:f}=o.useContext(Jf);if("production"!==process.env.NODE_ENV){const t=jo("Radio");"production"!==process.env.NODE_ENV&&t(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const p=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:m,className:h,rootClassName:g,children:v,style:b,title:y}=e,w=ox(e,["prefixCls","className","rootClassName","children","style","title"]),x=l("radio",m),E="button"===((null==i?void 0:i.optionType)||a),C=E?`${x}-button`:x,S=Qc(x),[O,k,N]=rx(x,S),$=Object.assign({},w),I=o.useContext(ca);i&&($.name=i.name,$.onChange=p,$.checked=e.value===i.value,$.disabled=null!==(n=$.disabled)&&void 0!==n?n:i.disabled),$.disabled=null!==(r=$.disabled)&&void 0!==r?r:I;const _=Ze(`${C}-wrapper`,{[`${C}-wrapper-checked`]:$.checked,[`${C}-wrapper-disabled`]:$.disabled,[`${C}-wrapper-rtl`]:"rtl"===c,[`${C}-wrapper-in-form-item`]:f},null==s?void 0:s.className,h,g,k,N,S);return O(o.createElement(cu,{component:"Radio",disabled:$.disabled},o.createElement("label",{className:_,style:Object.assign(Object.assign({},null==s?void 0:s.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},o.createElement(Zw,Object.assign({},$,{className:Ze($.className,{[nu]:!E}),type:"radio",prefixCls:C,ref:d})),void 0!==v?o.createElement("span",null,v):null)))},ax=o.forwardRef(ix);"production"!==process.env.NODE_ENV&&(ax.displayName="Radio");const lx=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(ia),[i,a]=Ea(e.defaultValue,{value:e.value}),{prefixCls:l,className:c,rootClassName:s,options:u,buttonStyle:d="outline",disabled:f,children:p,size:m,style:h,id:g,onMouseEnter:v,onMouseLeave:b,onFocus:y,onBlur:w}=e,x=n("radio",l),E=`${x}-group`,C=Qc(x),[S,O,k]=rx(x,C);let N=p;u&&u.length>0&&(N=u.map((e=>"string"==typeof e||"number"==typeof e?o.createElement(ax,{key:e.toString(),prefixCls:x,disabled:f,value:e,checked:i===e},e):o.createElement(ax,{key:`radio-group-value-options-${e.value}`,prefixCls:x,disabled:e.disabled||f,value:e.value,checked:i===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const $=su(m),I=Ze(E,`${E}-${d}`,{[`${E}-${$}`]:$,[`${E}-rtl`]:"rtl"===r},c,s,O,k,C);return S(o.createElement("div",Object.assign({},Wc(e,{aria:!0,data:!0}),{className:I,style:h,onMouseEnter:v,onMouseLeave:b,onFocus:y,onBlur:w,id:g,ref:t}),o.createElement(Gw,{value:{onChange:t=>{const n=i,r=t.target.value;"value"in e||a(r);const{onChange:o}=e;o&&r!==n&&o(t)},value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},N)))}));var cx=o.memo(lx),sx=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 ux=(e,t)=>{const{getPrefixCls:n}=o.useContext(ia),{prefixCls:r}=e,i=sx(e,["prefixCls"]),a=n("radio",r);return o.createElement(Qw,{value:"button"},o.createElement(ax,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))};var dx=o.forwardRef(ux);const fx=ax;function px(e){return ka(e,{inputAffixPadding:e.paddingXXS})}fx.Button=dx,fx.Group=cx,fx.__ANT_RADIO=!0;const mx=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:h,controlOutline:g,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${v}`,warningActiveShadow:`0 0 0 ${h}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},hx=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),gx=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({},hx(ka(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),vx=(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}}),bx=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},vx(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),yx=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vx(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gx(e))}),bx(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),bx(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),wx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),xx=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Vn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},wx(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),wx(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},gx(e))}})}),Ex=(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},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Cx=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Sx=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Cx(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Ox=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gx(e))}),Sx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Sx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),kx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Nx=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Vn(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Vn(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},kx(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),kx(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:`${Vn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Vn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Vn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Vn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Vn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Vn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),$x=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Vn(t)} ${Vn(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Ix=e=>({padding:`${Vn(e.paddingBlockSM)} ${Vn(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),_x=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Vn(e.paddingBlock)} ${Vn(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},$x(e)),"&-sm":Object.assign({},Ix(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Rx=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({},$x(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Ix(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 ${Vn(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Vn(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Vn(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:`${Vn(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Vn(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}}}})}},Px=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({},Ua(e)),_x(e)),yx(e)),Ox(e)),Ex(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':{"-webkit-appearance":"none"}})}},jx=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Vn(e.inputAffixPadding)}`}}}},Ax=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},_x(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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),jx(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},Mx=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ua(e)),Rx(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}}},xx(e)),Nx(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}}})})}},Tx=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{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,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${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}}}}},Dx=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${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","&: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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},zx=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var Bx=Ja("Input",(e=>{const t=ka(e,px(e));return[Px(t),Dx(t),Ax(t),Mx(t),Tx(t),zx(t),id(t)]}),mx,{resetFont:!1});function Lx(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 h(){r=void 0}d||(c||!u||r||m(),p(),void 0===u&&s>e?c?(f=Date.now(),a||(r=setTimeout(u?h:m,e))):m():!0!==a&&(r=setTimeout(u?h: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)})}function Hx(e,t){return e[t]}var Fx=["children"];function Vx(e,t){return"".concat(e,"-").concat(t)}function Kx(e,t){return null!=e?e:t}function Wx(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function qx(e){return function e(t){return lt(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return mt(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=wt({key:n},En(r,Fx)),a=e(o);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e)}function Ux(e,t,n){var r=Wx(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=Vx(r?r.pos:"0",u),p=Kx(s[i],f),m=0;m<o.length;m+=1){var h=o[m];if(void 0!==s[h]){d=s[h];break}}var g=Object.assign(Ut(s,[].concat(Qt(o),[i,a])),{title:d,key:p,parent:r,pos:f,children:null,data:s,isStart:[].concat(Qt(r?r.isStart:[]),[0===u]),isEnd:[].concat(Qt(r?r.isEnd:[]),[u===n.length-1])});return c.push(g),!0===t||l.has(p)?g.children=e(s[a]||[],g):g.children=[],g}))}(e),c}function Xx(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"===gt(n)?n:{externalGetKey:n})||{},i=o.childrenPropName,a=o.externalGetKey,l=Wx(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 Kx(e[c],t)},function n(o,i,a,l){var c=o?o[u]:e,s=o?Vx(a.pos,i):"0",d=o?[].concat(Qt(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=Kx(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 Gx(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=Hx(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 Yx(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=wt(wt({},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 mt(!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 Qx(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Jx(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Zx(e,t,n,r){var o,i=[];o=r||Jx;var a,l=new Set(e.filter((function(e){var t=!!Hx(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)})),mt(!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(Qx(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(Qx(a,i))}}(l,t.halfCheckedKeys,c,s,o),a}const eE=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ua(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ua(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({},Ua(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`]:Object.assign({},Ga(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Vn(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:`${Vn(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} !important`,borderColor:`${e.colorBorder} !important`,"&: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} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${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}}}]};function tE(e,t){const n=ka(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[eE(n)]}var nE=Ja("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[tE(n,e)]}));const rE=t.createContext(null);var oE=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 iE=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:a,children:l,indeterminate:c=!1,style:s,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,m=oE(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:g,checkbox:v}=o.useContext(ia),b=o.useContext(rE),{isFormItemInput:y}=o.useContext(Jf),w=o.useContext(ca),x=null!==(n=(null==b?void 0:b.disabled)||p)&&void 0!==n?n:w,E=o.useRef(m.value);if("production"!==process.env.NODE_ENV){const e=jo("Checkbox");"production"!==process.env.NODE_ENV&&e("checked"in m||!!b||!("value"in m),"usage","`value` is not a valid prop, do you mean `checked`?")}o.useEffect((()=>{null==b||b.registerValue(m.value)}),[]),o.useEffect((()=>{if(!f)return m.value!==E.current&&(null==b||b.cancelValue(E.current),null==b||b.registerValue(m.value),E.current=m.value),()=>null==b?void 0:b.cancelValue(m.value)}),[m.value]);const C=h("checkbox",r),S=Qc(C),[O,k,N]=nE(C,S),$=Object.assign({},m);b&&!f&&($.onChange=function(){m.onChange&&m.onChange.apply(m,arguments),b.toggleOption&&b.toggleOption({label:l,value:m.value})},$.name=b.name,$.checked=b.value.includes(m.value));const I=Ze(`${C}-wrapper`,{[`${C}-rtl`]:"rtl"===g,[`${C}-wrapper-checked`]:$.checked,[`${C}-wrapper-disabled`]:x,[`${C}-wrapper-in-form-item`]:y},null==v?void 0:v.className,i,a,N,S,k),_=Ze({[`${C}-indeterminate`]:c},nu,k),R=c?"mixed":void 0;return O(o.createElement(cu,{component:"Checkbox",disabled:x},o.createElement("label",{className:I,style:Object.assign(Object.assign({},null==v?void 0:v.style),s),onMouseEnter:u,onMouseLeave:d},o.createElement(Zw,Object.assign({"aria-checked":R},$,{prefixCls:C,className:_,disabled:x,ref:t})),void 0!==l&&o.createElement("span",null,l))))},aE=o.forwardRef(iE);"production"!==process.env.NODE_ENV&&(aE.displayName="Checkbox");var lE=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 cE=o.forwardRef(((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:l,rootClassName:c,style:s,onChange:u}=e,d=lE(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=o.useContext(ia),[m,h]=o.useState(d.value||n||[]),[g,v]=o.useState([]);o.useEffect((()=>{"value"in d&&h(d.value||[])}),[d.value]);const b=o.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),y=f("checkbox",a),w=`${y}-group`,x=Qc(y),[E,C,S]=nE(y,x),O=Ut(d,["value","disabled"]),k=i.length?b.map((e=>o.createElement(aE,{prefixCls:y,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:`${w}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,N={toggleOption:e=>{const t=m.indexOf(e.value),n=Qt(m);-1===t?n.push(e.value):n.splice(t,1),"value"in d||h(n),null==u||u(n.filter((e=>g.includes(e))).sort(((e,t)=>b.findIndex((t=>t.value===e))-b.findIndex((e=>e.value===t)))))},value:m,disabled:d.disabled,name:d.name,registerValue:e=>{v((t=>[].concat(Qt(t),[e])))},cancelValue:e=>{v((t=>t.filter((t=>t!==e))))}},$=Ze(w,{[`${w}-rtl`]:"rtl"===p},l,c,S,x,C);return E(o.createElement("div",Object.assign({className:$,style:s},O,{ref:t}),o.createElement(rE.Provider,{value:N},k)))})),sE=aE;function uE(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 dE(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=uE(t,e,r)):n(o=uE(t,e,""))}}sE.Group=cE,sE.__ANT_CHECKBOX=!0,"production"!==process.env.NODE_ENV&&(sE.displayName="Checkbox");var fE=t.forwardRef((function(e,n){var r,o,i=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,s=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.style,m=e.disabled,h=e.readOnly,g=e.focused,v=e.triggerFocus,b=e.allowClear,y=e.value,w=e.handleReset,x=e.hidden,E=e.classes,C=e.classNames,S=e.dataAttrs,O=e.styles,k=e.components,N=e.onClear,$=null!=a?a:i,I=(null==k?void 0:k.affixWrapper)||"span",_=(null==k?void 0:k.groupWrapper)||"span",R=(null==k?void 0:k.wrapper)||"span",P=(null==k?void 0:k.groupAddon)||"span",j=t.useRef(null),A=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),M=t.cloneElement($,{value:y,className:Ze($.props.className,!A&&(null==C?void 0:C.variant))||null}),T=t.useRef(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:T.current||j.current}})),A){var D=null;if(b){var z=!m&&!h&&y,B="".concat(l,"-clear-icon"),L="object"===gt(b)&&null!=b&&b.clearIcon?b.clearIcon:"✖";D=t.createElement("span",{onClick:function(e){null==w||w(e),null==N||N()},onMouseDown:function(e){return e.preventDefault()},className:Ze(B,bt(bt({},"".concat(B,"-hidden"),!z),"".concat(B,"-has-suffix"),!!s)),role:"button",tabIndex:-1},L)}var H="".concat(l,"-affix-wrapper"),F=Ze(H,bt(bt(bt(bt(bt({},"".concat(l,"-disabled"),m),"".concat(H,"-disabled"),m),"".concat(H,"-focused"),g),"".concat(H,"-readonly"),h),"".concat(H,"-input-with-clear-btn"),s&&b&&y),null==E?void 0:E.affixWrapper,null==C?void 0:C.affixWrapper,null==C?void 0:C.variant),V=(s||b)&&t.createElement("span",{className:Ze("".concat(l,"-suffix"),null==C?void 0:C.suffix),style:null==O?void 0:O.suffix},D,s);M=t.createElement(I,et({className:F,style:null==O?void 0:O.affixWrapper,onClick:function(e){var t;null!==(t=j.current)&&void 0!==t&&t.contains(e.target)&&(null==v||v())}},null==S?void 0:S.affixWrapper,{ref:j}),c&&t.createElement("span",{className:Ze("".concat(l,"-prefix"),null==C?void 0:C.prefix),style:null==O?void 0:O.prefix},c),M,V)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var K="".concat(l,"-group"),W="".concat(K,"-addon"),q="".concat(K,"-wrapper"),U=Ze("".concat(l,"-wrapper"),K,null==E?void 0:E.wrapper,null==C?void 0:C.wrapper),X=Ze(q,bt({},"".concat(q,"-disabled"),m),null==E?void 0:E.group,null==C?void 0:C.groupWrapper);M=t.createElement(_,{className:X,ref:T},t.createElement(R,{className:U},u&&t.createElement(P,{className:W},u),M,d&&t.createElement(P,{className:W},d)))}return t.cloneElement(M,{className:Ze(null===(r=M.props)||void 0===r?void 0:r.className,f)||null,style:wt(wt({},null===(o=M.props)||void 0===o?void 0:o.style),p),hidden:x})})),pE=["show"];function mE(e,t){return o.useMemo((function(){var n={};t&&(n.show="object"===gt(t)&&t.formatter?t.formatter:!!t);var r=n=wt(wt({},n),e),o=r.show,i=En(r,pE);return wt(wt({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var hE=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],gE=t.forwardRef((function(e,n){var r=e.autoComplete,o=e.onChange,i=e.onFocus,a=e.onBlur,l=e.onPressEnter,c=e.onKeyDown,s=e.onKeyUp,u=e.prefixCls,d=void 0===u?"rc-input":u,f=e.disabled,p=e.htmlSize,m=e.className,h=e.maxLength,g=e.suffix,v=e.showCount,b=e.count,y=e.type,w=void 0===y?"text":y,x=e.classes,E=e.classNames,C=e.styles,S=e.onCompositionStart,O=e.onCompositionEnd,k=En(e,hE),N=ln(t.useState(!1),2),$=N[0],I=N[1],_=t.useRef(!1),R=t.useRef(!1),P=t.useRef(null),j=t.useRef(null),A=function(e){P.current&&function(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)}}}}(P.current,e)},M=ln(Ea(e.defaultValue,{value:e.value}),2),T=M[0],D=M[1],z=null==T?"":String(T),B=ln(t.useState(null),2),L=B[0],H=B[1],F=mE(b,v),V=F.max||h,K=F.strategy(z),W=!!V&&K>V;t.useImperativeHandle(n,(function(){var e;return{focus:A,blur:function(){var e;null===(e=P.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=P.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=P.current)||void 0===e||e.select()},input:P.current,nativeElement:(null===(e=j.current)||void 0===e?void 0:e.nativeElement)||P.current}})),t.useEffect((function(){I((function(e){return(!e||!f)&&e}))}),[f]);var q=function(e,t,n){var r,i,a=t;if(!_.current&&F.exceedFormatter&&F.max&&F.strategy(t)>F.max)t!==(a=F.exceedFormatter(t,{max:F.max}))&&H([(null===(r=P.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=P.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;D(a),P.current&&dE(P.current,e,o,a)};t.useEffect((function(){var e;L&&(null===(e=P.current)||void 0===e||e.setSelectionRange.apply(e,Qt(L)))}),[L]);var U,X=function(e){q(e,e.target.value,{source:"change"})},G=function(e){_.current=!1,q(e,e.currentTarget.value,{source:"compositionEnd"}),null==O||O(e)},Y=function(e){l&&"Enter"===e.key&&!R.current&&(R.current=!0,l(e)),null==c||c(e)},Q=function(e){"Enter"===e.key&&(R.current=!1),null==s||s(e)},J=function(e){I(!0),null==i||i(e)},Z=function(e){I(!1),null==a||a(e)},ee=W&&"".concat(d,"-out-of-range");return t.createElement(fE,et({},k,{prefixCls:d,className:Ze(m,ee),handleReset:function(e){D(""),A(),P.current&&dE(P.current,e,o)},value:z,focused:$,triggerFocus:A,suffix:function(){var e=Number(V)>0;if(g||F.show){var n=F.showFormatter?F.showFormatter({value:z,count:K,maxLength:V}):"".concat(K).concat(e?" / ".concat(V):"");return t.createElement(t.Fragment,null,F.show&&t.createElement("span",{className:Ze("".concat(d,"-show-count-suffix"),bt({},"".concat(d,"-show-count-has-suffix"),!!g),null==E?void 0:E.count),style:wt({},null==C?void 0:C.count)},n),g)}return null}(),disabled:f,classes:x,classNames:E,styles:C}),(U=Ut(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t.createElement("input",et({autoComplete:r},U,{onChange:X,onFocus:J,onBlur:Z,onKeyDown:Y,onKeyUp:Q,className:Ze(d,bt({},"".concat(d,"-disabled"),f),null==E?void 0:E.input),style:null==C?void 0:C.input,ref:P,size:p,type:w,onCompositionStart:function(e){_.current=!0,null==S||S(e)},onCompositionEnd:G}))))}));const vE=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement(Rc,null)}),n};function bE(e,n){const r=t.useRef([]),o=()=>{r.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return t.useEffect((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var yE=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 wE=t.forwardRef(((e,n)=>{var r;const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:c,onBlur:s,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:m,className:h,style:g,styles:v,rootClassName:b,onChange:y,classNames:w,variant:x}=e,E=yE(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=jo("Input");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:S,input:O}=t.useContext(ia),k=C("input",o),N=t.useRef(null),$=Qc(k),[I,_,R]=Bx(k,$),{compactSize:P,compactItemClassnames:j}=gu(k,S),A=su((e=>{var t;return null!==(t=null!=l?l:P)&&void 0!==t?t:e})),M=t.useContext(ca),T=null!=c?c:M,{status:D,hasFeedback:z,feedbackIcon:B}=t.useContext(Jf),L=Gg(D,a),H=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!z,F=t.useRef(H);if("production"!==process.env.NODE_ENV){const e=jo("Input");t.useEffect((()=>{var t;H&&!F.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===(null===(t=N.current)||void 0===t?void 0:t.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),F.current=H}),[H])}const V=bE(N,!0),K=(z||d)&&t.createElement(t.Fragment,null,d,z&&B),W=vE(null!=f?f:null==O?void 0:O.allowClear),[q,U]=iv("input",x,i);return I(t.createElement(gE,Object.assign({ref:Ot(n,N),prefixCls:k,autoComplete:null==O?void 0:O.autoComplete},E,{disabled:T,onBlur:e=>{V(),null==s||s(e)},onFocus:e=>{V(),null==u||u(e)},style:Object.assign(Object.assign({},null==O?void 0:O.style),g),styles:Object.assign(Object.assign({},null==O?void 0:O.styles),v),suffix:K,allowClear:W,className:Ze(h,b,R,$,j,null==O?void 0:O.className),onChange:e=>{V(),null==y||y(e)},addonBefore:m&&t.createElement(tp,{form:!0,space:!0},m),addonAfter:p&&t.createElement(tp,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},w),null==O?void 0:O.classNames),{input:Ze({[`${k}-sm`]:"small"===A,[`${k}-lg`]:"large"===A,[`${k}-rtl`]:"rtl"===S},null==w?void 0:w.input,null===(r=null==O?void 0:O.classNames)||void 0===r?void 0:r.input,_),variant:Ze({[`${k}-${q}`]:U},Xg(k,L)),affixWrapper:Ze({[`${k}-affix-wrapper-sm`]:"small"===A,[`${k}-affix-wrapper-lg`]:"large"===A,[`${k}-affix-wrapper-rtl`]:"rtl"===S},_),wrapper:Ze({[`${k}-group-rtl`]:"rtl"===S},_),groupWrapper:Ze({[`${k}-group-wrapper-sm`]:"small"===A,[`${k}-group-wrapper-lg`]:"large"===A,[`${k}-group-wrapper-rtl`]:"rtl"===S,[`${k}-group-wrapper-${q}`]:U},Xg(`${k}-group-wrapper`,L,z),_)})})))}));"production"!==process.env.NODE_ENV&&(wE.displayName="Input");const xE=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}};var EE=Ja(["Input","OTP"],(e=>{const t=ka(e,px(e));return[xE(t)]}),mx),CE=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 SE=o.forwardRef(((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:a,mask:l}=e,c=CE(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"==typeof l?l:n,u=o.useRef(null);o.useImperativeHandle(t,(()=>u.current));const d=()=>{rn((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return o.createElement(wE,Object.assign({},c,{ref:u,value:s,onInput:e=>{r(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===l?"password":"text"}))}));var OE=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 kE(e){return(e||"").split("")}const NE=o.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:d,status:f,autoFocus:p,mask:m}=e,h=OE(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=jo("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof m&&m.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:g,direction:v}=o.useContext(ia),b=g("otp",n),y=Wc(h,{aria:!0,data:!0,attr:!0}),w=Qc(b),[x,E,C]=EE(b,w),S=su((e=>null!=i?i:e)),O=o.useContext(Jf),k=Gg(O.status,f),N=o.useMemo((()=>Object.assign(Object.assign({},O),{status:k,hasFeedback:!1,feedbackIcon:null})),[O,k]),$=o.useRef(null),I=o.useRef({});o.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=I.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=I.current[t])||void 0===e||e.blur()},nativeElement:$.current})));const _=e=>s?s(e):e,[R,P]=o.useState(kE(_(a||"")));o.useEffect((()=>{void 0!==l&&P(kE(l))}),[l]);const j=ya((e=>{P(e),c&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>R[t]!==e))&&c(e.join(""))})),A=ya(((e,t)=>{let n=Qt(R);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(kE(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const o=_(n.map((e=>e||" ")).join(""));return n=kE(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),M=(e,t)=>{var n;const o=A(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=I.current[i])||void 0===n||n.focus()),j(o)},T=e=>{var t;null===(t=I.current[e])||void 0===t||t.focus()},D={variant:u,disabled:d,status:k,mask:m};return x(o.createElement("div",Object.assign({},y,{ref:$,className:Ze(b,{[`${b}-sm`]:"small"===S,[`${b}-lg`]:"large"===S,[`${b}-rtl`]:"rtl"===v},C,E)}),o.createElement(Jf.Provider,{value:N},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,r=R[t]||"";return o.createElement(SE,Object.assign({ref:e=>{I.current[t]=e},key:n,index:t,size:S,htmlSize:1,className:`${b}-input`,onChange:M,value:r,onActiveChange:T,autoFocus:0===t&&p},D))})))))}));var $E={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"},IE=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:$E}))},_E=o.forwardRef(IE);"production"!==process.env.NODE_ENV&&(_E.displayName="EyeInvisibleOutlined");var RE={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"},PE=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:RE}))},jE=o.forwardRef(PE);"production"!==process.env.NODE_ENV&&(jE.displayName="EyeOutlined");var AE=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 ME=e=>e?o.createElement(jE,null):o.createElement(_E,null),TE={click:"onClick",hover:"onMouseOver"},DE=o.forwardRef(((e,n)=>{const{disabled:r,action:i="click",visibilityToggle:a=!0,iconRender:l=ME}=e,c="object"==typeof a&&void 0!==a.visible,[s,u]=t.useState((()=>!!c&&a.visible)),d=t.useRef(null);o.useEffect((()=>{c&&u(a.visible)}),[c,a]);const f=bE(d),p=()=>{r||(s&&f(),u((e=>{var t;const n=!e;return"object"==typeof a&&(null===(t=a.onVisibleChange)||void 0===t||t.call(a,n)),n})))},{className:m,prefixCls:h,inputPrefixCls:g,size:v}=e,b=AE(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=o.useContext(ia),w=y("input",g),x=y("input-password",h),E=a&&(e=>{const t=TE[i]||"",n=l(s),r={[t]:p,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(n)?n:o.createElement("span",null,n),r)})(x),C=Ze(x,m,{[`${x}-${v}`]:!!v}),S=Object.assign(Object.assign({},Ut(b,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:C,prefixCls:w,suffix:E});return v&&(S.size=v),o.createElement(wE,Object.assign({ref:Ot(n,d)},S))}));"production"!==process.env.NODE_ENV&&(DE.displayName="Input.Password");var zE=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 BE=o.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:h}=e,g=zE(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=o.useContext(ia),y=o.useRef(!1),w=v("input-search",n),x=v("input",r),{compactSize:E}=gu(w,b),C=su((e=>{var t;return null!==(t=null!=a?a:E)&&void 0!==t?t:e})),S=o.useRef(null),O=e=>{var t;document.activeElement===(null===(t=S.current)||void 0===t?void 0:t.input)&&e.preventDefault()},k=e=>{var t,n;f&&f(null===(n=null===(t=S.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},N="boolean"==typeof c?o.createElement(Tv,null):null,$=`${w}-button`;let I;const _=c||{},R=_.type&&!0===_.type.__ANT_BUTTON;I=R||"button"===_.type?Xc(_,Object.assign({onMouseDown:O,onClick:e=>{var t,n;null===(n=null===(t=null==_?void 0:_.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),k(e)},key:"enterButton"},R?{className:$,size:C}:{})):o.createElement(fd,{className:$,type:c?"primary":void 0,size:C,disabled:d,key:"enterButton",onMouseDown:O,onClick:k,loading:u,icon:N},c),s&&(I=[I,Xc(s,{key:"addonAfter"})]);const P=Ze(w,{[`${w}-rtl`]:"rtl"===b,[`${w}-${C}`]:!!C,[`${w}-with-button`]:!!c},i);return o.createElement(wE,Object.assign({ref:Ot(S,t),onPressEnter:e=>{y.current||u||k(e)}},g,{size:C,onCompositionStart:e=>{y.current=!0,null==m||m(e)},onCompositionEnd:e=>{y.current=!1,null==h||h(e)},prefixCls:x,addonAfter:I,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},className:P,disabled:d}))}));"production"!==process.env.NODE_ENV&&(BE.displayName="Search");var LE,HE=["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"],FE={};function VE(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;LE||((LE=document.createElement("textarea")).setAttribute("tab-index","-1"),LE.setAttribute("aria-hidden","true"),document.body.appendChild(LE)),e.getAttribute("wrap")?LE.setAttribute("wrap",e.getAttribute("wrap")):LE.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&&FE[n])return FE[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:HE.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(FE[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;LE.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")),LE.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=LE.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){LE.value=" ";var p=LE.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 KE=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],WE=o.forwardRef((function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,l=n.autoSize,c=n.onResize,s=n.className,u=n.style,d=n.disabled,f=n.onChange,p=n.onInternalAutoSize,m=En(n,KE),h=ln(Ea(i,{value:a,postState:function(e){return null!=e?e:""}}),2),g=h[0],v=h[1],b=o.useRef();o.useImperativeHandle(t,(function(){return{textArea:b.current}}));var y=ln(o.useMemo((function(){return l&&"object"===gt(l)?[l.minRows,l.maxRows]:[]}),[l]),2),w=y[0],x=y[1],E=!!l,C=ln(o.useState(2),2),S=C[0],O=C[1],k=ln(o.useState(),2),N=k[0],$=k[1],I=function(){O(0),"test"===process.env.NODE_ENV&&(null==p||p())};Gn((function(){E&&I()}),[a,w,x,E]),Gn((function(){if(0===S)O(1);else if(1===S){var e=VE(b.current,!1,w,x);O(2),$(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=r}}catch(e){}}()}),[S]);var _=o.useRef(),R=function(){rn.cancel(_.current)};o.useEffect((function(){return R}),[]);var P=E?N:null,j=wt(wt({},u),P);return 0!==S&&1!==S||(j.overflowY="hidden",j.overflowX="hidden"),o.createElement(qt,{onResize:function(e){2===S&&(null==c||c(e),l&&(R(),_.current=rn((function(){I()}))))},disabled:!(l||c)},o.createElement("textarea",et({},m,{ref:b,style:j,className:Ze(r,s,bt({},"".concat(r,"-disabled"),d)),disabled:d,value:g,onChange:function(e){v(e.target.value),null==f||f(e)}})))})),qE=["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"],UE=t.forwardRef((function(e,n){var r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,c=e.onChange,s=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,m=e.prefixCls,h=void 0===m?"rc-textarea":m,g=e.showCount,v=e.count,b=e.className,y=e.style,w=e.disabled,x=e.hidden,E=e.classNames,C=e.styles,S=e.onResize,O=e.onClear,k=e.onPressEnter,N=e.readOnly,$=e.autoSize,I=e.onKeyDown,_=En(e,qE),R=ln(Ea(o,{value:i,defaultValue:o}),2),P=R[0],j=R[1],A=null==P?"":String(P),M=ln(t.useState(!1),2),T=M[0],D=M[1],z=t.useRef(!1),B=ln(t.useState(null),2),L=B[0],H=B[1],F=t.useRef(null),V=t.useRef(null),K=function(){var e;return null===(e=V.current)||void 0===e?void 0:e.textArea},W=function(){K().focus()};t.useImperativeHandle(n,(function(){var e;return{resizableTextArea:V.current,focus:W,blur:function(){K().blur()},nativeElement:(null===(e=F.current)||void 0===e?void 0:e.nativeElement)||K()}})),t.useEffect((function(){D((function(e){return!w&&e}))}),[w]);var q=ln(t.useState(null),2),U=q[0],X=q[1];t.useEffect((function(){var e;U&&(e=K()).setSelectionRange.apply(e,Qt(U))}),[U]);var G,Y=mE(v,g),Q=null!==(r=Y.max)&&void 0!==r?r:u,J=Number(Q)>0,Z=Y.strategy(A),ee=!!Q&&Z>Q,te=function(e,t){var n=t;!z.current&&Y.exceedFormatter&&Y.max&&Y.strategy(t)>Y.max&&t!==(n=Y.exceedFormatter(t,{max:Y.max}))&&X([K().selectionStart||0,K().selectionEnd||0]),j(n),dE(e.currentTarget,e,c,n)},ne=p;Y.show&&(G=Y.showFormatter?Y.showFormatter({value:A,count:Z,maxLength:Q}):"".concat(Z).concat(J?" / ".concat(Q):""),ne=t.createElement(t.Fragment,null,ne,t.createElement("span",{className:Ze("".concat(h,"-data-count"),null==E?void 0:E.count),style:null==C?void 0:C.count},G)));var re=!$&&!g&&!s;return t.createElement(fE,{ref:F,value:A,allowClear:s,handleReset:function(e){j(""),W(),dE(K(),e,c)},suffix:ne,prefixCls:h,classNames:wt(wt({},E),{},{affixWrapper:Ze(null==E?void 0:E.affixWrapper,bt(bt({},"".concat(h,"-show-count"),g),"".concat(h,"-textarea-allow-clear"),s))}),disabled:w,focused:T,className:Ze(b,ee&&"".concat(h,"-out-of-range")),style:wt(wt({},y),L&&!re?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof G?G:void 0}},hidden:x,readOnly:N,onClear:O},t.createElement(WE,et({},_,{autoSize:$,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&k&&k(e),null==I||I(e)},onChange:function(e){te(e,e.target.value)},onFocus:function(e){D(!0),null==a||a(e)},onBlur:function(e){D(!1),null==l||l(e)},onCompositionStart:function(e){z.current=!0,null==d||d(e)},onCompositionEnd:function(e){z.current=!1,te(e,e.currentTarget.value),null==f||f(e)},className:Ze(null==E?void 0:E.textarea),style:wt(wt({},null==C?void 0:C.textarea),{},{resize:null==y?void 0:y.resize}),disabled:w,prefixCls:h,onResize:function(e){var t;null==S||S(e),null!==(t=K())&&void 0!==t&&t.style.height&&H(!0)},ref:V,readOnly:N})))})),XE=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 GE=t.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:f,className:p,style:m,styles:h,variant:g}=e,v=XE(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=jo("TextArea");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:w}=o.useContext(ia),x=su(l),E=o.useContext(ca),C=null!=c?c:E,{status:S,hasFeedback:O,feedbackIcon:k}=o.useContext(Jf),N=Gg(S,s),$=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=$.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=$.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.blur()}}}));const I=b("input",i),_=Qc(I),[R,P,j]=Bx(I,_),[A,M]=iv("textArea",g,a),T=vE(null!=u?u:null==w?void 0:w.allowClear);return R(o.createElement(UE,Object.assign({autoComplete:null==w?void 0:w.autoComplete},v,{style:Object.assign(Object.assign({},null==w?void 0:w.style),m),styles:Object.assign(Object.assign({},null==w?void 0:w.styles),h),disabled:C,allowClear:T,className:Ze(j,_,p,f,null==w?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==w?void 0:w.classNames),{textarea:Ze({[`${I}-sm`]:"small"===x,[`${I}-lg`]:"large"===x},P,null==d?void 0:d.textarea,null===(n=null==w?void 0:w.classNames)||void 0===n?void 0:n.textarea),variant:Ze({[`${I}-${A}`]:M},Xg(I,N)),affixWrapper:Ze(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:"rtl"===y,[`${I}-affix-wrapper-sm`]:"small"===x,[`${I}-affix-wrapper-lg`]:"large"===x,[`${I}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},P)}),prefixCls:I,suffix:O&&o.createElement("span",{className:`${I}-textarea-suffix`},k),ref:$})))})),YE=wE;function QE(e){return["small","middle","large"].includes(e)}function JE(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}YE.Group=e=>{const{getPrefixCls:n,direction:r}=t.useContext(ia),{prefixCls:i,className:a}=e,l=n("input-group",i),c=n("input"),[s,u]=Bx(c),d=Ze(l,{[`${l}-lg`]:"large"===e.size,[`${l}-sm`]:"small"===e.size,[`${l}-compact`]:e.compact,[`${l}-rtl`]:"rtl"===r},u,a),f=t.useContext(Jf),p=t.useMemo((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);if("production"!==process.env.NODE_ENV){jo("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return s(o.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(Jf.Provider,{value:p},e.children)))},YE.Search=BE,YE.TextArea=GE,YE.Password=DE,YE.OTP=NE;const ZE=t.createContext({latestIndex:0}),eC=ZE.Provider,tC=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:l}=o.useContext(ZE);return null==r?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:a},r),n<l&&i&&o.createElement("span",{className:`${t}-split`},i))};var nC=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 rC=o.forwardRef(((e,t)=>{var n,r,i;const{getPrefixCls:a,space:l,direction:c}=o.useContext(ia),{size:s=(null!==(n=null==l?void 0:l.size)&&void 0!==n?n:"small"),align:u,className:d,rootClassName:f,children:p,direction:m="horizontal",prefixCls:h,split:g,style:v,wrap:b=!1,classNames:y,styles:w}=e,x=nC(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,C]=Array.isArray(s)?s:[s,s],S=QE(C),O=QE(E),k=JE(C),N=JE(E),$=lt(p,{keepEmpty:!0}),I=void 0===u&&"horizontal"===m?"center":u,_=a("space",h),[R,P,j]=pu(_),A=Ze(_,null==l?void 0:l.className,P,`${_}-${m}`,{[`${_}-rtl`]:"rtl"===c,[`${_}-align-${I}`]:I,[`${_}-gap-row-${C}`]:S,[`${_}-gap-col-${E}`]:O},d,f,j),M=Ze(`${_}-item`,null!==(r=null==y?void 0:y.item)&&void 0!==r?r:null===(i=null==l?void 0:l.classNames)||void 0===i?void 0:i.item);let T=0;const D=$.map(((e,t)=>{var n,r;null!=e&&(T=t);const i=(null==e?void 0:e.key)||`${M}-${t}`;return o.createElement(tC,{className:M,key:i,index:t,split:g,style:null!==(n=null==w?void 0:w.item)&&void 0!==n?n:null===(r=null==l?void 0:l.styles)||void 0===r?void 0:r.item},e)})),z=o.useMemo((()=>({latestIndex:T})),[T]);if(0===$.length)return null;const B={};return b&&(B.flexWrap="wrap"),!O&&N&&(B.columnGap=E),!S&&k&&(B.rowGap=C),R(o.createElement("div",Object.assign({ref:t,className:A,style:Object.assign(Object.assign(Object.assign({},B),null==l?void 0:l.style),v)},x),o.createElement(eC,{value:z},D)))})),oC=rC;oC.Compact=e=>{const{getPrefixCls:t,direction:n}=o.useContext(ia),{size:r,direction:i,block:a,prefixCls:l,className:c,rootClassName:s,children:u}=e,d=mu(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=su((e=>null!=r?r:e)),p=t("space-compact",l),[m,h]=pu(p),g=Ze(p,h,{[`${p}-rtl`]:"rtl"===n,[`${p}-block`]:a,[`${p}-vertical`]:"vertical"===i},c,s),v=o.useContext(hu),b=lt(u),y=o.useMemo((()=>b.map(((e,t)=>{const n=(null==e?void 0:e.key)||`${p}-item-${t}`;return o.createElement(bu,{key:n,compactSize:f,compactDirection:i,isFirstItem:0===t&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:t===b.length-1&&(!v||(null==v?void 0:v.isLastItem))},e)}))),[r,b,v]);return 0===b.length?null:m(o.createElement("div",Object.assign({className:g},d),y))},"production"!==process.env.NODE_ENV&&(oC.displayName="Space");var iC=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 aC=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(ia),{prefixCls:i,type:a="default",danger:l,disabled:c,loading:s,onClick:u,htmlType:d,children:f,className:p,menu:m,arrow:h,autoFocus:g,overlay:v,trigger:b,align:y,open:w,onOpenChange:x,placement:E,getPopupContainer:C,href:S,icon:O=o.createElement(yw,null),title:k,buttonsRender:N=e=>e,mouseEnterDelay:$,mouseLeaveDelay:I,overlayClassName:_,overlayStyle:R,destroyPopupOnHide:P,dropdownRender:j}=e,A=iC(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","destroyPopupOnHide","dropdownRender"]),M=n("dropdown",i),T=`${M}-button`,D={menu:m,arrow:h,autoFocus:g,align:y,disabled:c,trigger:c?[]:b,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:$,mouseLeaveDelay:I,overlayClassName:_,overlayStyle:R,destroyPopupOnHide:P,dropdownRender:j},{compactSize:z,compactItemClassnames:B}=gu(M,r),L=Ze(T,B,p);"overlay"in e&&(D.overlay=v),"open"in e&&(D.open=w),D.placement="placement"in e?E:"rtl"===r?"bottomLeft":"bottomRight";const H=o.createElement(fd,{type:a,danger:l,disabled:c,loading:s,onClick:u,htmlType:d,href:S,title:k},f),F=o.createElement(fd,{type:a,danger:l,icon:O}),[V,K]=N([H,F]);return o.createElement(oC.Compact,Object.assign({className:L,size:z,block:!0},A),V,o.createElement(qw,Object.assign({},D),K))};aC.__ANT_BUTTON=!0;const lC=qw;function cC(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function sC(e){var t=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)}}function uC(e,t,r,o){var i=n.unstable_batchedUpdates?function(e){n.unstable_batchedUpdates(r,e)}:r;return null!=e&&e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,o)}}}lC.Button=aC;var dC=o.createContext(null),fC=function(e){var n=e.visible,r=e.maskTransitionName,i=e.getContainer,a=e.prefixCls,l=e.rootClassName,c=e.icons,s=e.countRender,u=e.showSwitch,d=e.showProgress,f=e.current,p=e.transform,m=e.count,h=e.scale,g=e.minScale,v=e.maxScale,b=e.closeIcon,y=e.onSwitchLeft,w=e.onSwitchRight,x=e.onClose,E=e.onZoomIn,C=e.onZoomOut,S=e.onRotateRight,O=e.onRotateLeft,k=e.onFlipX,N=e.onFlipY,$=e.onReset,I=e.toolbarRender,_=e.zIndex,R=e.image,P=t.useContext(dC),j=c.rotateLeft,A=c.rotateRight,M=c.zoomIn,T=c.zoomOut,D=c.close,z=c.left,B=c.right,L=c.flipX,H=c.flipY,F="".concat(a,"-operations-operation");o.useEffect((function(){var e=function(e){e.keyCode===Jc.ESC&&x()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var V=[{icon:H,onClick:N,type:"flipY"},{icon:L,onClick:k,type:"flipX"},{icon:j,onClick:O,type:"rotateLeft"},{icon:A,onClick:S,type:"rotateRight"},{icon:T,onClick:C,type:"zoomOut",disabled:h<=g},{icon:M,onClick:E,type:"zoomIn",disabled:h===v}].map((function(e){var t,n=e.icon,r=e.onClick,i=e.type,l=e.disabled;return o.createElement("div",{className:Ze(F,(t={},bt(t,"".concat(a,"-operations-operation-").concat(i),!0),bt(t,"".concat(a,"-operations-operation-disabled"),!!l),t)),onClick:r,key:i},n)})),K=o.createElement("div",{className:"".concat(a,"-operations")},V);return o.createElement(Ll,{visible:n,motionName:r},(function(e){var t=e.className,n=e.style;return o.createElement(Id,{open:!0,getContainer:null!=i?i:document.body},o.createElement("div",{className:Ze("".concat(a,"-operations-wrapper"),t,l),style:wt(wt({},n),{},{zIndex:_})},null===b?null:o.createElement("button",{className:"".concat(a,"-close"),onClick:x},b||D),u&&o.createElement(o.Fragment,null,o.createElement("div",{className:Ze("".concat(a,"-switch-left"),bt({},"".concat(a,"-switch-left-disabled"),0===f)),onClick:y},z),o.createElement("div",{className:Ze("".concat(a,"-switch-right"),bt({},"".concat(a,"-switch-right-disabled"),f===m-1)),onClick:w},B)),o.createElement("div",{className:"".concat(a,"-footer")},d&&o.createElement("div",{className:"".concat(a,"-progress")},s?s(f+1,m):"".concat(f+1," / ").concat(m)),I?I(K,wt(wt({icons:{flipYIcon:V[0],flipXIcon:V[1],rotateLeftIcon:V[2],rotateRightIcon:V[3],zoomOutIcon:V[4],zoomInIcon:V[5]},actions:{onFlipY:N,onFlipX:k,onRotateLeft:O,onRotateRight:S,onZoomOut:C,onZoomIn:E,onReset:$,onClose:x},transform:p},P?{current:f,total:m}:{}),{},{image:R})):K)))}))},pC={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function mC(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return bt({},e,i);if(t<0&&o<r)return bt({},e,-i)}else if(t<0||o>r)return bt({},e,t<0?i:-i);return{}}function hC(e,t,n,r){var o=cC(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=wt(wt({},mC("x",n,e,i)),mC("y",r,t,a))),l}function gC(e){var n=e.src,r=e.isCustomPlaceholder,o=e.fallback,i=ln(t.useState(r?"loading":"normal"),2),a=i[0],l=i[1],c=t.useRef(!1),s="error"===a;t.useEffect((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(n).then((function(t){!t&&e&&l("error")})),function(){e=!1}}),[n]),t.useEffect((function(){r&&!c.current?l("loading"):s&&l("normal")}),[n]);var u=function(){l("normal")};return[function(e){c.current=!1,"loading"===a&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,u())},s&&o?{src:o}:{onLoad:u,src:n},a]}function vC(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function bC(e,n,r,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=ln(t.useState(!1),2),p=f[0],m=f[1],h=t.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),g=function(e){h.current=wt(wt({},h.current),e)};return t.useEffect((function(){var e;return r&&n&&(e=uC(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[r,n]),{isTouching:p,onTouchStart:function(e){if(n){e.stopPropagation(),m(!0);var t=e.touches,r=void 0===t?[]:t;r.length>1?g({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):g({point1:{x:r[0].clientX-u,y:r[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=h.current,o=r.point1,i=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=vC(e,n),i=vC(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,s,u),f=ln(d,2),p=f[0],m=f[1],v=vC(s,u)/vC(o,i);l(v,"touchZoom",p,m,!0),g({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),g({eventType:"move"}))},onTouchEnd:function(){if(r){if(p&&m(!1),g({eventType:"none"}),o>s)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*s,n=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,d=c%180!=0,f=hC(d?n:t,d?t:n,l,u);f&&a(wt({},f),"dragRebound")}}}}var yC=["fallback","src","imgRef"],wC=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],xC=function(e){var n=e.fallback,r=e.src,o=e.imgRef,i=En(e,yC),a=ln(gC({src:r,fallback:n}),2),l=a[0],c=a[1];return t.createElement("img",et({ref:function(e){o.current=e,l(e)}},i,c))},EC=function(e){var n=e.prefixCls,r=e.src,o=e.alt,i=e.imageInfo,a=e.fallback,l=e.movable,c=void 0===l||l,s=e.onClose,u=e.visible,d=e.icons,f=void 0===d?{}:d,p=e.rootClassName,m=e.closeIcon,h=e.getContainer,g=e.current,v=void 0===g?0:g,b=e.count,y=void 0===b?1:b,w=e.countRender,x=e.scaleStep,E=void 0===x?.5:x,C=e.minScale,S=void 0===C?1:C,O=e.maxScale,k=void 0===O?50:O,N=e.transitionName,$=void 0===N?"zoom":N,I=e.maskTransitionName,_=void 0===I?"fade":I,R=e.imageRender,P=e.imgCommonProps,j=e.toolbarRender,A=e.onTransform,M=e.onChange,T=En(e,wC),D=t.useRef(),z=t.useContext(dC),B=z&&y>1,L=z&&y>=1,H=ln(t.useState(!0),2),F=H[0],V=H[1],K=function(e,n,r,o){var i=t.useRef(null),a=t.useRef([]),l=ln(t.useState(pC),2),c=l[0],s=l[1],u=function(e,t){null===i.current&&(a.current=[],i.current=rn((function(){s((function(e){var n=e;return a.current.forEach((function(e){n=wt(wt({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push(wt(wt({},c),e))};return{transform:c,resetTransform:function(e){s(pC),Cn(pC,c)||null==o||o({transform:pC,action:e})},updateTransform:u,dispatchZoomChange:function(t,o,i,a,l){var s=e.current,d=s.width,f=s.height,p=s.offsetWidth,m=s.offsetHeight,h=s.offsetLeft,g=s.offsetTop,v=t,b=c.scale*t;b>r?(b=r,v=r/c.scale):b<n&&(v=(b=l?b:n)/c.scale);var y=null!=i?i:innerWidth/2,w=null!=a?a:innerHeight/2,x=v-1,E=x*d*.5,C=x*f*.5,S=x*(y-c.x-h),O=x*(w-c.y-g),k=c.x-(S-E),N=c.y-(O-C);if(t<1&&1===b){var $=p*b,I=m*b,_=cC(),R=_.width,P=_.height;$<=R&&I<=P&&(k=0,N=0)}u({x:k,y:N,scale:b},o)}}}(D,S,k,A),W=K.transform,q=K.resetTransform,U=K.updateTransform,X=K.dispatchZoomChange,G=function(e,n,r,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=ln(t.useState(!1),2),p=f[0],m=f[1],h=t.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),g=function(e){r&&p&&a({x:e.pageX-h.current.diffX,y:e.pageY-h.current.diffY},"move")},v=function(){if(r&&p){m(!1);var t=h.current,n=t.transformX,o=t.transformY;if(u===n||d===o)return;var i=e.current.offsetWidth*s,l=e.current.offsetHeight*s,f=e.current.getBoundingClientRect(),g=f.left,v=f.top,b=c%180!=0,y=hC(b?l:i,b?i:l,g,v);y&&a(wt({},y),"dragRebound")}};return t.useEffect((function(){var e,t,r,o;if(n){r=uC(window,"mouseup",v,!1),o=uC(window,"mousemove",g,!1);try{window.top!==window.self&&(e=uC(window.top,"mouseup",v,!1),t=uC(window.top,"mousemove",g,!1))}catch(e){ut(!1,"[rc-image] ".concat(e))}}return function(){var n,i,a,l;null===(n=r)||void 0===n||n.remove(),null===(i=o)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(l=t)||void 0===l||l.remove()}}),[r,p,u,d,c,n]),{isMoving:p,onMouseDown:function(e){n&&0===e.button&&(e.preventDefault(),e.stopPropagation(),h.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},m(!0))},onMouseMove:g,onMouseUp:v,onWheel:function(e){if(r&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),n=1+Math.min(t,1)*o;e.deltaY>0&&(n=1/n),l(n,"wheel",e.clientX,e.clientY)}}}}(D,c,u,E,W,U,X),Y=G.isMoving,Q=G.onMouseDown,J=G.onWheel,Z=bC(D,c,u,S,W,U,X),ee=Z.isTouching,te=Z.onTouchStart,ne=Z.onTouchMove,re=Z.onTouchEnd,oe=W.rotate,ie=W.scale,ae=Ze(bt({},"".concat(n,"-moving"),Y));t.useEffect((function(){F||V(!0)}),[F]);var le=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),v>0&&(V(!1),q("prev"),null==M||M(v-1,v))},ce=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),v<y-1&&(V(!1),q("next"),null==M||M(v+1,v))},se=function(e){u&&B&&(e.keyCode===Jc.LEFT?le():e.keyCode===Jc.RIGHT&&ce())};t.useEffect((function(){var e=uC(window,"keydown",se,!1);return function(){e.remove()}}),[u,B,v]);var ue=t.createElement(xC,et({},P,{width:e.width,height:e.height,imgRef:D,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(W.x,"px, ").concat(W.y,"px, 0) scale3d(").concat(W.flipX?"-":"").concat(ie,", ").concat(W.flipY?"-":"").concat(ie,", 1) rotate(").concat(oe,"deg)"),transitionDuration:(!F||ee)&&"0s"},fallback:a,src:r,onWheel:J,onMouseDown:Q,onDoubleClick:function(e){u&&(1!==ie?U({x:0,y:0,scale:1},"doubleClick"):X(1+E,"doubleClick",e.clientX,e.clientY))},onTouchStart:te,onTouchMove:ne,onTouchEnd:re,onTouchCancel:re})),de=wt({url:r,alt:o},i);return t.createElement(t.Fragment,null,t.createElement(Vd,et({transitionName:$,maskTransitionName:_,closable:!1,keyboard:!0,prefixCls:n,onClose:s,visible:u,classNames:{wrapper:ae},rootClassName:p,getContainer:h},T,{afterClose:function(){q("close")}}),t.createElement("div",{className:"".concat(n,"-img-wrapper")},R?R(ue,wt({transform:W,image:de},z?{current:v}:{})):ue)),t.createElement(fC,{visible:u,transform:W,maskTransitionName:_,closeIcon:m,getContainer:h,prefixCls:n,rootClassName:p,icons:f,countRender:w,showSwitch:B,showProgress:L,current:v,count:y,scale:ie,minScale:S,maxScale:k,toolbarRender:j,onSwitchLeft:le,onSwitchRight:ce,onZoomIn:function(){X(1+E,"zoomIn")},onZoomOut:function(){X(1/(1+E),"zoomOut")},onRotateRight:function(){U({rotate:oe+90},"rotateRight")},onRotateLeft:function(){U({rotate:oe-90},"rotateLeft")},onFlipX:function(){U({flipX:!W.flipX},"flipX")},onFlipY:function(){U({flipY:!W.flipY},"flipY")},onClose:s,onReset:function(){q("reset")},zIndex:void 0!==T.zIndex?T.zIndex+1:void 0,image:de}))},CC=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var SC=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],OC=["src"],kC=0;var NC=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],$C=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],IC=function(e){var n=e.src,r=e.alt,i=e.onPreviewClose,a=e.prefixCls,l=void 0===a?"rc-image":a,c=e.previewPrefixCls,s=void 0===c?"".concat(l,"-preview"):c,u=e.placeholder,d=e.fallback,f=e.width,p=e.height,m=e.style,h=e.preview,g=void 0===h||h,v=e.className,b=e.onClick,y=e.onError,w=e.wrapperClassName,x=e.wrapperStyle,E=e.rootClassName,C=En(e,NC),S=u&&!0!==u,O="object"===gt(g)?g:{},k=O.src,N=O.visible,$=void 0===N?void 0:N,I=O.onVisibleChange,_=void 0===I?i:I,R=O.getContainer,P=void 0===R?void 0:R,j=O.mask,A=O.maskClassName,M=O.movable,T=O.icons,D=O.scaleStep,z=O.minScale,B=O.maxScale,L=O.imageRender,H=O.toolbarRender,F=En(O,$C),V=null!=k?k:n,K=ln(Ea(!!$,{value:$,onChange:_}),2),W=K[0],q=K[1],U=ln(gC({src:n,isCustomPlaceholder:S,fallback:d}),3),X=U[0],G=U[1],Y=U[2],Q=ln(t.useState(null),2),J=Q[0],Z=Q[1],ee=t.useContext(dC),te=!!g,ne=Ze(l,w,E,bt({},"".concat(l,"-error"),"error"===Y)),re=t.useMemo((function(){var t={};return CC.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),CC.map((function(t){return e[t]}))),oe=function(e,t){var n=ln(o.useState((function(){return String(kC+=1)})),1)[0],r=o.useContext(dC),i={data:t,canPreview:e};return o.useEffect((function(){if(r)return r.register(n,i)}),[]),o.useEffect((function(){r&&r.register(n,i)}),[e,t]),n}(te,t.useMemo((function(){return wt(wt({},re),{},{src:V})}),[V,re]));return o.createElement(o.Fragment,null,o.createElement("div",et({},C,{className:ne,onClick:te?function(e){var t=sC(e.target),n=t.left,r=t.top;ee?ee.onPreview(oe,V,n,r):(Z({x:n,y:r}),q(!0)),null==b||b(e)}:b,style:wt({width:f,height:p},x)}),o.createElement("img",et({},re,{className:Ze("".concat(l,"-img"),bt({},"".concat(l,"-img-placeholder"),!0===u),v),style:wt({height:p},m),ref:X},G,{width:f,height:p,onError:y})),"loading"===Y&&o.createElement("div",{"aria-hidden":"true",className:"".concat(l,"-placeholder")},u),j&&te&&o.createElement("div",{className:Ze("".concat(l,"-mask"),A),style:{display:"none"===(null==m?void 0:m.display)?"none":void 0}},j)),!ee&&te&&o.createElement(EC,et({"aria-hidden":!W,visible:W,prefixCls:s,onClose:function(){q(!1),Z(null)},mousePosition:J,src:V,alt:r,imageInfo:{width:f,height:p},fallback:d,getContainer:P,icons:T,movable:M,scaleStep:D,minScale:z,maxScale:B,rootClassName:E,imageRender:L,imgCommonProps:re,toolbarRender:H},F)))};IC.PreviewGroup=function(e){var n,r=e.previewPrefixCls,i=void 0===r?"rc-image-preview":r,a=e.children,l=e.icons,c=void 0===l?{}:l,s=e.items,u=e.preview,d=e.fallback,f="object"===gt(u)?u:{},p=f.visible,m=f.onVisibleChange,h=f.getContainer,g=f.current,v=f.movable,b=f.minScale,y=f.maxScale,w=f.countRender,x=f.closeIcon,E=f.onChange,C=f.onTransform,S=f.toolbarRender,O=f.imageRender,k=En(f,SC),N=function(e){var t=ln(o.useState({}),2),n=t[0],r=t[1],i=o.useCallback((function(e,t){return r((function(n){return wt(wt({},n),{},bt({},e,t))})),function(){r((function(t){var n=wt({},t);return delete n[e],n}))}}),[]);return[o.useMemo((function(){return e?e.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(Qt(CC)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(n).reduce((function(e,t){var r=n[t],o=r.canPreview,i=r.data;return o&&e.push({data:i,id:t}),e}),[])}),[e,n]),i,!!e]}(s),$=ln(N,3),I=$[0],_=$[1],R=$[2],P=ln(Ea(0,{value:g}),2),j=P[0],A=P[1],M=ln(t.useState(!1),2),T=M[0],D=M[1],z=(null===(n=I[j])||void 0===n?void 0:n.data)||{},B=z.src,L=En(z,OC),H=ln(Ea(!!p,{value:p,onChange:function(e,t){null==m||m(e,t,j)}}),2),F=H[0],V=H[1],K=ln(t.useState(null),2),W=K[0],q=K[1],U=o.useCallback((function(e,t,n,r){var o=R?I.findIndex((function(e){return e.data.src===t})):I.findIndex((function(t){return t.id===e}));A(o<0?0:o),V(!0),q({x:n,y:r}),D(!0)}),[I,R]);o.useEffect((function(){F?T||A(0):D(!1)}),[F]);var X=o.useMemo((function(){return{register:_,onPreview:U}}),[_,U]);return o.createElement(dC.Provider,{value:X},a,o.createElement(EC,et({"aria-hidden":!F,movable:v,visible:F,prefixCls:i,closeIcon:x,onClose:function(){V(!1),q(null)},mousePosition:W,imgCommonProps:L,src:B,fallback:d,icons:c,minScale:b,maxScale:y,getContainer:h,current:j,count:I.length,countRender:w,onTransform:C,toolbarRender:S,imageRender:O,onChange:function(e,t){A(e),null==E||E(e,t)}},k)))},"production"!==process.env.NODE_ENV&&(IC.displayName="Image");var _C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},RC=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:_C}))},PC=o.forwardRef(RC);"production"!==process.env.NODE_ENV&&(PC.displayName="RotateLeftOutlined");var jC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},AC=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:jC}))},MC=o.forwardRef(AC);"production"!==process.env.NODE_ENV&&(MC.displayName="RotateRightOutlined");var TC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},DC=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:TC}))},zC=o.forwardRef(DC);"production"!==process.env.NODE_ENV&&(zC.displayName="SwapOutlined");var BC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},LC=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:BC}))},HC=o.forwardRef(LC);"production"!==process.env.NODE_ENV&&(HC.displayName="ZoomInOutlined");var FC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},VC=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:FC}))},KC=o.forwardRef(VC);"production"!==process.env.NODE_ENV&&(KC.displayName="ZoomOutOutlined");const WC=e=>({position:e||"absolute",inset:0}),qC=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new mi("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},qa),{padding:`0 ${Vn(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},UC=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new mi(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Vn(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},XC=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new mi(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},GC=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},WC()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},WC()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[UC(e),XC(e)]}]},YC=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},qC(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},WC())}}},QC=e=>{const{previewCls:t}=e;return{[`${t}-root`]:hm(e,"zoom"),"&":Vp(e,!0)}};var JC=Ja("Image",(e=>{const t=`${e.componentCls}-preview`,n=ka(e,{previewCls:t,modalMaskBg:new mi("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[YC(n),GC(n),vm(ka(n,{componentCls:t})),QC(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new mi(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new mi(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new mi(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),ZC=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 eS={rotateLeft:o.createElement(PC,null),rotateRight:o.createElement(MC,null),zoomIn:o.createElement(HC,null),zoomOut:o.createElement(KC,null),close:o.createElement(Ac,null),left:o.createElement(uw,null),right:o.createElement(Rb,null),flipX:o.createElement(zC,null),flipY:o.createElement(zC,{rotate:90})};var tS=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 nS=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:l}=e,c=tS(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=Ho,getPopupContainer:d,image:f}=o.useContext(ia),p=s("image",n),m=s(),h=u.Image||Ho.Image,g=Qc(p),[v,b,y]=JC(p,g),w=Ze(a,b,y,g),x=Ze(i,b,null==f?void 0:f.className),[E]=vs("ImagePreview","object"==typeof r?r.zIndex:void 0),C=o.useMemo((()=>{var e;if(!1===r)return r;const t="object"==typeof r?r:{},{getContainer:n,closeIcon:i}=t,a=tS(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${p}-mask-info`},o.createElement(jE,null),null==h?void 0:h.preview),icons:eS},a),{getContainer:null!=n?n:d,transitionName:Js(m,"zoom",t.transitionName),maskTransitionName:Js(m,"fade",t.maskTransitionName),zIndex:E,closeIcon:null!=i?i:null===(e=null==f?void 0:f.preview)||void 0===e?void 0:e.closeIcon})}),[r,h,null===(t=null==f?void 0:f.preview)||void 0===t?void 0:t.closeIcon]),S=Object.assign(Object.assign({},null==f?void 0:f.style),l);return v(o.createElement(IC,Object.assign({prefixCls:p,preview:C,rootClassName:w,className:x,style:S},c)))};nS.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,r=ZC(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=o.useContext(ia),a=i("image",t),l=`${a}-preview`,c=i(),s=Qc(a),[u,d,f]=JC(a,s),[p]=vs("ImagePreview","object"==typeof n?n.zIndex:void 0),m=o.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},r=Ze(d,f,s,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:Js(c,"zoom",t.transitionName),maskTransitionName:Js(c,"fade",t.maskTransitionName),rootClassName:r,zIndex:p})}),[n]);return u(o.createElement(IC.PreviewGroup,Object.assign({preview:m,previewPrefixCls:l,icons:eS},r)))},"production"!==process.env.NODE_ENV&&(nS.displayName="Image");var rS={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"},oS=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:rS}))},iS=o.forwardRef(oS);"production"!==process.env.NODE_ENV&&(iS.displayName="DoubleLeftOutlined");var aS={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"},lS=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:aS}))},cS=o.forwardRef(lS);"production"!==process.env.NODE_ENV&&(cS.displayName="DoubleRightOutlined");var sS={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:"页码"},uS=["10","20","50","100"],dS=function(e){var n=e.pageSizeOptions,r=void 0===n?uS:n,o=e.locale,i=e.changeSize,a=e.pageSize,l=e.goButton,c=e.quickGo,s=e.rootPrefixCls,u=e.selectComponentClass,d=e.selectPrefixCls,f=e.disabled,p=e.buildOptionText,m=ln(t.useState(""),2),h=m[0],g=m[1],v=function(){return!h||Number.isNaN(h)?void 0:Number(h)},b="function"==typeof p?p:function(e){return"".concat(e," ").concat(o.items_per_page)},y=function(e){""!==h&&(e.keyCode!==Jc.ENTER&&"click"!==e.type||(g(""),null==c||c(v())))},w="".concat(s,"-options");if(!i&&!c)return null;var x=null,E=null,C=null;if(i&&u){var S=(r.some((function(e){return e.toString()===a.toString()}))?r:r.concat([a.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,n){return t.createElement(u.Option,{key:n,value:e.toString()},b(e))}));x=t.createElement(u,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||r[0]).toString(),onChange:function(e){null==i||i(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":o.page_size,defaultOpen:!1},S)}return c&&(l&&(C="boolean"==typeof l?t.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:f,className:"".concat(w,"-quick-jumper-button")},o.jump_to_confirm):t.createElement("span",{onClick:y,onKeyUp:y},l)),E=t.createElement("div",{className:"".concat(w,"-quick-jumper")},o.jump_to,t.createElement("input",{disabled:f,type:"text",value:h,onChange:function(e){g(e.target.value)},onKeyUp:y,onBlur:function(e){l||""===h||(g(""),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,C)),t.createElement("li",{className:w},x,E)};"production"!==process.env.NODE_ENV&&(dS.displayName="Options");var fS=function(e){var n,r=e.rootPrefixCls,o=e.page,i=e.active,a=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(r,"-item"),f=Ze(d,"".concat(d,"-").concat(o),(bt(n={},"".concat(d,"-active"),i),bt(n,"".concat(d,"-disabled"),!o),n),a),p=u(o,"page",t.createElement("a",{rel:"nofollow"},o));return p?t.createElement("li",{title:l?String(o):null,className:f,onClick:function(){c(o)},onKeyDown:function(e){s(e,c,o)},tabIndex:0},p):null};"production"!==process.env.NODE_ENV&&(fS.displayName="Pager");var pS=function(e,t,n){return n};function mS(){}function hS(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function gS(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}var vS=function(e){var n,r=e.prefixCls,o=void 0===r?"rc-pagination":r,i=e.selectPrefixCls,a=void 0===i?"rc-select":i,l=e.className,c=e.selectComponentClass,s=e.current,u=e.defaultCurrent,d=void 0===u?1:u,f=e.total,p=void 0===f?0:f,m=e.pageSize,h=e.defaultPageSize,g=void 0===h?10:h,v=e.onChange,b=void 0===v?mS:v,y=e.hideOnSinglePage,w=e.align,x=e.showPrevNextJumpers,E=void 0===x||x,C=e.showQuickJumper,S=e.showLessItems,O=e.showTitle,k=void 0===O||O,N=e.onShowSizeChange,$=void 0===N?mS:N,I=e.locale,_=void 0===I?sS:I,R=e.style,P=e.totalBoundaryShowSizeChanger,j=void 0===P?50:P,A=e.disabled,M=e.simple,T=e.showTotal,D=e.showSizeChanger,z=e.pageSizeOptions,B=e.itemRender,L=void 0===B?pS:B,H=e.jumpPrevIcon,F=e.jumpNextIcon,V=e.prevIcon,K=e.nextIcon,W=t.useRef(null),q=ln(Ea(10,{value:m,defaultValue:g}),2),U=q[0],X=q[1],G=ln(Ea(1,{value:s,defaultValue:d,postState:function(e){return Math.max(1,Math.min(e,gS(void 0,U,p)))}}),2),Y=G[0],Q=G[1],J=ln(t.useState(Y),2),Z=J[0],ee=J[1];t.useEffect((function(){ee(Y)}),[Y]);var te=b!==mS,ne="current"in e;"production"!==process.env.NODE_ENV&&mt(!ne||te,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var re=Math.max(1,Y-(S?3:5)),oe=Math.min(gS(void 0,U,p),Y+(S?3:5));function ie(n,r){var i=n||t.createElement("button",{type:"button","aria-label":r,className:"".concat(o,"-item-link")});return"function"==typeof n&&(i=t.createElement(n,wt({},e))),i}function ae(e){var t=e.target.value,n=gS(void 0,U,p);return""===t?t:Number.isNaN(Number(t))?Z:t>=n?n:Number(t)}var le=p>U&&C;function ce(e){var t=ae(e);switch(t!==Z&&ee(t),e.keyCode){case Jc.ENTER:se(t);break;case Jc.UP:se(t-1);break;case Jc.DOWN:se(t+1)}}function se(e){if(function(e){return hS(e)&&e!==Y&&hS(p)&&p>0}(e)&&!A){var t=gS(void 0,U,p),n=e;return e>t?n=t:e<1&&(n=1),n!==Z&&ee(n),Q(n),null==b||b(n,U),n}return Y}var ue=Y>1,de=Y<gS(void 0,U,p),fe=null!=D?D:p>j;function pe(){ue&&se(Y-1)}function me(){de&&se(Y+1)}function he(){se(re)}function ge(){se(oe)}function ve(e,t){if("Enter"===e.key||e.charCode===Jc.ENTER||e.keyCode===Jc.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 be(e){"click"!==e.type&&e.keyCode!==Jc.ENTER||se(Z)}var ye=null,we=Wc(e,{aria:!0,data:!0}),xe=T&&t.createElement("li",{className:"".concat(o,"-total-text")},T(p,[0===p?0:(Y-1)*U+1,Y*U>p?p:Y*U])),Ee=null,Ce=gS(void 0,U,p);if(y&&p<=U)return null;var Se=[],Oe={rootPrefixCls:o,onClick:se,onKeyPress:ve,showTitle:k,itemRender:L,page:-1},ke=Y-1>0?Y-1:0,Ne=Y+1<Ce?Y+1:Ce,$e=C&&C.goButton,Ie="object"===gt(M)?M.readOnly:!M,_e=$e,Re=null;M&&($e&&(_e="boolean"==typeof $e?t.createElement("button",{type:"button",onClick:be,onKeyUp:be},_.jump_to_confirm):t.createElement("span",{onClick:be,onKeyUp:be},$e),_e=t.createElement("li",{title:k?"".concat(_.jump_to).concat(Y,"/").concat(Ce):null,className:"".concat(o,"-simple-pager")},_e)),Re=t.createElement("li",{title:k?"".concat(Y,"/").concat(Ce):null,className:"".concat(o,"-simple-pager")},Ie?Z:t.createElement("input",{type:"text",value:Z,disabled:A,onKeyDown:function(e){e.keyCode!==Jc.UP&&e.keyCode!==Jc.DOWN||e.preventDefault()},onKeyUp:ce,onChange:ce,onBlur:function(e){se(ae(e))},size:3}),t.createElement("span",{className:"".concat(o,"-slash")},"/"),Ce));var Pe=S?1:2;if(Ce<=3+2*Pe){Ce||Se.push(t.createElement(fS,et({},Oe,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var je=1;je<=Ce;je+=1)Se.push(t.createElement(fS,et({},Oe,{key:je,page:je,active:Y===je})))}else{var Ae=S?_.prev_3:_.prev_5,Me=S?_.next_3:_.next_5,Te=L(re,"jump-prev",ie(H,"prev page")),De=L(oe,"jump-next",ie(F,"next page"));E&&(ye=Te?t.createElement("li",{title:k?Ae:null,key:"prev",onClick:he,tabIndex:0,onKeyDown:function(e){ve(e,he)},className:Ze("".concat(o,"-jump-prev"),bt({},"".concat(o,"-jump-prev-custom-icon"),!!H))},Te):null,Ee=De?t.createElement("li",{title:k?Me:null,key:"next",onClick:ge,tabIndex:0,onKeyDown:function(e){ve(e,ge)},className:Ze("".concat(o,"-jump-next"),bt({},"".concat(o,"-jump-next-custom-icon"),!!F))},De):null);var ze=Math.max(1,Y-Pe),Be=Math.min(Y+Pe,Ce);Y-1<=Pe&&(Be=1+2*Pe),Ce-Y<=Pe&&(ze=Ce-2*Pe);for(var Le=ze;Le<=Be;Le+=1)Se.push(t.createElement(fS,et({},Oe,{key:Le,page:Le,active:Y===Le})));if(Y-1>=2*Pe&&3!==Y&&(Se[0]=t.cloneElement(Se[0],{className:Ze("".concat(o,"-item-after-jump-prev"),Se[0].props.className)}),Se.unshift(ye)),Ce-Y>=2*Pe&&Y!==Ce-2){var He=Se[Se.length-1];Se[Se.length-1]=t.cloneElement(He,{className:Ze("".concat(o,"-item-before-jump-next"),He.props.className)}),Se.push(Ee)}1!==ze&&Se.unshift(t.createElement(fS,et({},Oe,{key:1,page:1}))),Be!==Ce&&Se.push(t.createElement(fS,et({},Oe,{key:Ce,page:Ce})))}var Fe=function(e){var n=L(e,"prev",ie(V,"prev page"));return t.isValidElement(n)?t.cloneElement(n,{disabled:!ue}):n}(ke);if(Fe){var Ve=!ue||!Ce;Fe=t.createElement("li",{title:k?_.prev_page:null,onClick:pe,tabIndex:Ve?null:0,onKeyDown:function(e){ve(e,pe)},className:Ze("".concat(o,"-prev"),bt({},"".concat(o,"-disabled"),Ve)),"aria-disabled":Ve},Fe)}var Ke,We,qe=function(e){var n=L(e,"next",ie(K,"next page"));return t.isValidElement(n)?t.cloneElement(n,{disabled:!de}):n}(Ne);qe&&(M?(Ke=!de,We=ue?0:null):We=(Ke=!de||!Ce)?null:0,qe=t.createElement("li",{title:k?_.next_page:null,onClick:me,tabIndex:We,onKeyDown:function(e){ve(e,me)},className:Ze("".concat(o,"-next"),bt({},"".concat(o,"-disabled"),Ke)),"aria-disabled":Ke},qe));var Ue=Ze(o,l,(bt(n={},"".concat(o,"-start"),"start"===w),bt(n,"".concat(o,"-center"),"center"===w),bt(n,"".concat(o,"-end"),"end"===w),bt(n,"".concat(o,"-simple"),M),bt(n,"".concat(o,"-disabled"),A),n));return t.createElement("ul",et({className:Ue,style:R,ref:W},we),xe,Fe,M?Re:Se,qe,t.createElement(dS,{locale:_,rootPrefixCls:o,disabled:A,selectComponentClass:c,selectPrefixCls:a,changeSize:fe?function(e){var t=gS(e,U,p),n=Y>t&&0!==t?t:Y;X(e),ee(n),null==$||$(Y,e),Q(n),null==b||b(n,e)}:null,pageSize:U,pageSizeOptions:z,quickGo:le?se:null,goButton:_e}))};"production"!==process.env.NODE_ENV&&(vS.displayName="Pagination");const bS=e=>o.createElement(Lv,Object.assign({},e,{showSearch:!0,size:"small"})),yS=e=>o.createElement(Lv,Object.assign({},e,{showSearch:!0,size:"middle"}));bS.Option=Lv.Option,yS.Option=Lv.Option;const wS=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","&: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}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},xS=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Vn(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Vn(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Vn(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:Vn(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Vn(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Vn(e.itemSizeSM),input:Object.assign(Object.assign({},Ix(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ES=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:Vn(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Vn(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Vn(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Vn(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:`${Vn(e.inputOutlineOffset)} 0 ${Vn(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},CS=e=>{const{componentCls:t,antCls:n}=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,fontFamily:"Arial, Helvetica, sans-serif",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:Vn(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",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:`${Vn(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",[`${n}-select-arrow:not(:last-child)`]:{opacity:1}},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Vn(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},_x(e)),vx(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},gx(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},SS=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Vn(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Vn(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Vn(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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},OS=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ua(e)),{display:"flex","&-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:Vn(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),SS(e)),CS(e)),ES(e)),xS(e)),wS(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"}}},kS=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ya(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ga(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Ga(e))}}}},NS=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},mx(e)),$S=e=>ka(e,{inputOutlineOffset:0,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"},px(e));var IS=Ja("Pagination",(e=>{const t=$S(e);return[OS(t),kS(t)]}),NS);const _S=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:`${Vn(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}}}}};var RS=el(["Pagination","bordered"],(e=>{const t=$S(e);return[_S(t)]}),NS),PS=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 jS=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:l,size:c,locale:s,selectComponentClass:u,responsive:d,showSizeChanger:f}=e,p=PS(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=qv(d),[,h]=Ka(),{getPrefixCls:g,direction:v,pagination:b={}}=o.useContext(ia),y=g("pagination",n),[w,x,E]=IS(y),C=null!=f?f:b.showSizeChanger,S=o.useMemo((()=>{const e=o.createElement("span",{className:`${y}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?o.createElement(Rb,null):o.createElement(uw,null)),nextIcon:o.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?o.createElement(uw,null):o.createElement(Rb,null)),jumpPrevIcon:o.createElement("a",{className:`${y}-item-link`},o.createElement("div",{className:`${y}-item-container`},"rtl"===v?o.createElement(cS,{className:`${y}-item-link-icon`}):o.createElement(iS,{className:`${y}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${y}-item-link`},o.createElement("div",{className:`${y}-item-container`},"rtl"===v?o.createElement(iS,{className:`${y}-item-link-icon`}):o.createElement(cS,{className:`${y}-item-link-icon`}),e))}}),[v,y]),[O]=Uo("Pagination",To),k=Object.assign(Object.assign({},O),s),N=su(c),$="small"===N||!(!m||N||!d),I=g("select",r),_=Ze({[`${y}-${t}`]:!!t,[`${y}-mini`]:$,[`${y}-rtl`]:"rtl"===v,[`${y}-bordered`]:h.wireframe},null==b?void 0:b.className,i,a,x,E),R=Object.assign(Object.assign({},null==b?void 0:b.style),l);return w(o.createElement(o.Fragment,null,h.wireframe&&o.createElement(RS,{prefixCls:y}),o.createElement(vS,Object.assign({},S,p,{style:R,prefixCls:y,selectPrefixCls:I,className:_,selectComponentClass:u||($?bS:yS),locale:k,showSizeChanger:C}))))};"production"!==process.env.NODE_ENV&&(jS.displayName="Pagination");const AS=80*Math.PI,MS=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return o.createElement("circle",{className:Ze(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},TS=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[l,c]=o.useState(!1);Gn((()=>{0!==t&&c(!0)}),[0!==t]);const s=Math.max(Math.min(t,100),0);if(!l)return null;const u={strokeDashoffset:""+AS/4,strokeDasharray:`${AS*s/100} ${AS*(100-s)/100}`};return o.createElement("span",{className:Ze(i,`${r}-progress`,s<=0&&a)},o.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},o.createElement(MS,{dotClassName:r,hasCircleCls:!0}),o.createElement(MS,{dotClassName:r,style:u})))};function DS(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return o.createElement(o.Fragment,null,o.createElement("span",{className:Ze(i,n>0&&a)},o.createElement("span",{className:Ze(r,`${t}-dot-spin`)},[1,2,3,4].map((e=>o.createElement("i",{className:`${t}-dot-item`,key:e}))))),o.createElement(TS,{prefixCls:t,percent:n}))}function zS(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&o.isValidElement(n)?Xc(n,{className:Ze(n.props.className,i),percent:r}):o.createElement(DS,{prefixCls:t,percent:r})}const BS=new yo("antSpinMove",{to:{opacity:1}}),LS=new yo("antRotate",{to:{transform:"rotate(405deg)"}}),HS=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ua(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",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${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:BS,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:LS,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"}})}};var FS=Ja("Spin",(e=>{const t=ka(e,{spinDotDefault:e.colorTextDescription});return[HS(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));const VS=[[30,.05],[70,.03],[96,.01]];var KS=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 WS;const qS=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:l,size:c="default",tip:s,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:m,percent:h}=e,g=KS(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:b,spin:y}=o.useContext(ia),w=v("spin",n),[x,E,C]=FS(w),[S,O]=o.useState((()=>r&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(r,i))),k=function(e,t){const[n,r]=o.useState(0),i=o.useRef(),a="auto"===t;return o.useEffect((()=>(a&&e&&(r(0),i.current=setInterval((()=>{r((e=>{const t=100-e;for(let n=0;n<VS.length;n+=1){const[r,o]=VS[n];if(e<=r)return e+t*o}return e}))}),200)),()=>{clearInterval(i.current)})),[a,e]),a?n:t}(S,h);o.useEffect((()=>{if(r){const e=Lx(i,(()=>{O(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}O(!1)}),[i,r]);const N=o.useMemo((()=>void 0!==f&&!p),[f,p]);if("production"!==process.env.NODE_ENV){const e=jo("Spin");"production"!==process.env.NODE_ENV&&e(!s||N||p,"usage","`tip` only work in nest or fullscreen pattern.")}const $=Ze(w,null==y?void 0:y.className,{[`${w}-sm`]:"small"===c,[`${w}-lg`]:"large"===c,[`${w}-spinning`]:S,[`${w}-show-text`]:!!s,[`${w}-rtl`]:"rtl"===b},a,!p&&l,E,C),I=Ze(`${w}-container`,{[`${w}-blur`]:S}),_=null!==(t=null!=m?m:null==y?void 0:y.indicator)&&void 0!==t?t:WS,R=Object.assign(Object.assign({},null==y?void 0:y.style),d),P=o.createElement("div",Object.assign({},g,{style:R,className:$,"aria-live":"polite","aria-busy":S}),o.createElement(zS,{prefixCls:w,indicator:_,percent:k}),s&&(N||p)?o.createElement("div",{className:`${w}-text`},s):null);return x(N?o.createElement("div",Object.assign({},g,{className:Ze(`${w}-nested-loading`,u,E,C)}),S&&o.createElement("div",{key:"loading"},P),o.createElement("div",{className:I,key:"container"},f)):p?o.createElement("div",{className:Ze(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:S},l,E,C)},P):P)};qS.setDefaultIndicator=e=>{WS=e},"production"!==process.env.NODE_ENV&&(qS.displayName="Spin");let US=null,XS=e=>e(),GS=[],YS={};function QS(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=YS,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const JS=t.forwardRef(((e,n)=>{const{messageConfig:r,sync:o}=e,{getPrefixCls:i}=t.useContext(ia),a=YS.prefixCls||i("message"),l=t.useContext(Xm),[c,s]=_s(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.message));return t.useImperativeHandle(n,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),c[t].apply(c,arguments)}})),{instance:e,sync:o}})),s})),ZS=t.forwardRef(((e,n)=>{const[r,o]=t.useState(QS),i=()=>{o(QS)};t.useEffect(i,[]);const a=uc(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=t.createElement(JS,{ref:n,sync:i,messageConfig:r});return t.createElement(fc,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function eO(){if(!US){const e=document.createDocumentFragment(),n={fragment:e};return US=n,void XS((()=>{Hs(t.createElement(ZS,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,eO())}))}}),e)}))}US.instance&&(GS.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":XS((()=>{const t=US.instance.open(Object.assign(Object.assign({},YS),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":XS((()=>{null==US||US.instance.destroy(e.key)}));break;default:XS((()=>{var n;const r=(n=US.instance)[t].apply(n,Qt(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),GS=[])}const tO={open:function(e){const t=Cs((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return GS.push(r),()=>{n?XS((()=>{n()})):r.skipped=!0}}));return eO(),t},destroy:e=>{GS.push({type:"destroy",key:e}),eO()},config:function(e){YS=Object.assign(Object.assign({},YS),e),XS((()=>{var e;null===(e=null==US?void 0:US.sync)||void 0===e||e.call(US)}))},useMessage:function(e){return _s(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,l=ws(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=o.useContext(ia),s=t||c("message"),u=Qc(s),[d,f,p]=ys(s,u);return d(o.createElement(Zc,Object.assign({},l,{prefixCls:s,className:Ze(n,f,`${s}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:o.createElement(Es,{prefixCls:s,type:r,icon:i},a)})))}},nO=tO;["success","info","warning","error","loading"].forEach((e=>{nO[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){const n=uc();"production"===process.env.NODE_ENV||n.holderRender||nc("message");const r=Cs((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return GS.push(o),()=>{r?XS((()=>{r()})):o.skipped=!0}}));return eO(),r}(e,n)}})),process.env.NODE_ENV,process.env.NODE_ENV;var rO=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 oO=Gm((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:l,children:c,footer:s}=e,u=rO(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=o.useContext(ia),f=d(),p=t||d("modal"),m=Qc(f),[h,g,v]=Em(p,m),b=`${p}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:o.createElement(_m,Object.assign({},e,{prefixCls:p,confirmPrefixCls:b,rootPrefixCls:f,content:c}))}:{closable:null==i||i,title:l,footer:null!==s&&o.createElement(Tp,Object.assign({},e)),children:c},h(o.createElement(Bd,Object.assign({prefixCls:p,className:Ze(g,`${p}-pure-panel`,a&&b,a&&`${b}-${a}`,n,v,m)},u,{closeIcon:Mp(p,r),closable:i},y)))}));function iO(e){return Dm(zm(e))}const aO=km;aO.useModal=function(){const e=o.useRef(null),[t,n]=o.useState([]);o.useEffect((()=>{if(t.length){Qt(t).forEach((e=>{e()})),n([])}}),[t]);const r=o.useCallback((t=>function(r){var i;qm+=1;const a=o.createRef();let l;const c=new Promise((e=>{l=e}));let s,u=!1;const d=o.createElement(Wm,{key:`modal-${qm}`,config:t(r),ref:a,afterClose:()=>{null==s||s()},isSilent:()=>u,onConfirm:e=>{l(e)}});s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d),s&&jm.push(s);const f={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(Qt(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(Qt(e),[t])))},then:e=>(u=!0,c.then(e))};return f}),[]);return[o.useMemo((()=>({info:r(Bm),success:r(Lm),error:r(Hm),warning:r(zm),confirm:r(Fm)})),[]),o.createElement(Um,{key:"modal-holder",ref:e})]},aO.info=function(e){return Dm(Bm(e))},aO.success=function(e){return Dm(Lm(e))},aO.error=function(e){return Dm(Hm(e))},aO.warning=iO,aO.warn=iO,aO.confirm=function(e){return Dm(Fm(e))},aO.destroyAll=function(){for(;jm.length;){const e=jm.pop();e&&e()}},aO.config=function(e){let{rootPrefixCls:t}=e;"production"!==process.env.NODE_ENV&&Ao(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),Am=t},aO._InternalPanelDoNotUseOrYouWillBeFired=oO,"production"!==process.env.NODE_ENV&&(aO.displayName="Modal");var lO={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"},cO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:lO}))},sO=o.forwardRef(cO);"production"!==process.env.NODE_ENV&&(sO.displayName="CaretDownFilled");var uO={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"},dO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:uO}))},fO=o.forwardRef(dO);"production"!==process.env.NODE_ENV&&(fO.displayName="CaretDownOutlined");var pO={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"},mO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:pO}))},hO=o.forwardRef(mO);"production"!==process.env.NODE_ENV&&(hO.displayName="CaretUpOutlined");var gO={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:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},vO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:gO}))},bO=o.forwardRef(vO);"production"!==process.env.NODE_ENV&&(bO.displayName="ExclamationCircleOutlined");var yO={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"},wO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:yO}))},xO=o.forwardRef(wO);"production"!==process.env.NODE_ENV&&(xO.displayName="FileOutlined");var EO={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"},CO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:EO}))},SO=o.forwardRef(CO);"production"!==process.env.NODE_ENV&&(SO.displayName="FilterFilled");var OO={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"},kO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:OO}))},NO=o.forwardRef(kO);"production"!==process.env.NODE_ENV&&(NO.displayName="FolderOpenOutlined");var $O={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"},IO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:$O}))},_O=o.forwardRef(IO);"production"!==process.env.NODE_ENV&&(_O.displayName="FolderOutlined");var RO={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"},PO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:RO}))},jO=o.forwardRef(PO);"production"!==process.env.NODE_ENV&&(jO.displayName="HolderOutlined");var AO={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"},MO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:AO}))},TO=o.forwardRef(MO);"production"!==process.env.NODE_ENV&&(TO.displayName="MinusSquareOutlined");var DO={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"},zO=function(e,t){return o.createElement(kc,et({},e,{ref:t,icon:DO}))},BO=o.forwardRef(zO);"production"!==process.env.NODE_ENV&&(BO.displayName="PlusSquareOutlined");var LO={},HO="rc-table-internal-hook";function FO(e){var t=o.createContext(void 0);return{Context:t,Provider:function(e){var r=e.value,i=e.children,a=o.useRef(r);a.current=r;var l=ln(o.useState((function(){return{getValue:function(){return a.current},listeners:new Set}})),1)[0];return Gn((function(){n.unstable_batchedUpdates((function(){l.listeners.forEach((function(e){e(r)}))}))}),[r]),o.createElement(t.Provider,{value:l},i)},defaultValue:e}}function VO(e,t){var n=ya("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=o.useContext(null==e?void 0:e.Context),i=r||{},a=i.listeners,l=i.getValue,c=o.useRef();c.current=n(r?l():null==e?void 0:e.defaultValue);var s=ln(o.useState({}),2)[1];return Gn((function(){if(r)return a.add(e),function(){a.delete(e)};function e(e){var t=n(e);Cn(c.current,t,!0)||s({})}}),[r]),c.current}var KO=function(){var e=o.createContext(null);function t(){return o.useContext(e)}return{makeImmutable:function(n,r){var i=Nt(n),a=function(a,l){var c=i?{ref:l}:{},s=o.useRef(0),u=o.useRef(a);return null!==t()?o.createElement(n,et({},a,c)):(r&&!r(u.current,a)||(s.current+=1),u.current=a,o.createElement(e.Provider,{value:s.current},o.createElement(n,et({},a,c))))};return"production"!==process.env.NODE_ENV&&(a.displayName="ImmutableRoot(".concat(n.displayName||n.name,")")),i?o.forwardRef(a):a},responseImmutable:function(e,n){var r=Nt(e),i=function(n,i){var a=r?{ref:i}:{};return t(),o.createElement(e,et({},n,a))};return"production"!==process.env.NODE_ENV&&(i.displayName="ImmutableResponse(".concat(e.displayName||e.name,")")),r?o.memo(o.forwardRef(i),n):o.memo(i,n)},useImmutableMark:t}}(),WO=KO.makeImmutable,qO=KO.responseImmutable,UO=KO.useImmutableMark,XO=FO();function GO(e,t){var n=o.useRef(0);n.current+=1;var r=o.useRef(e),i=[];Object.keys(e||{}).map((function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&i.push(t)})),r.current=e;var a=o.useRef([]);return i.length&&(a.current=i),o.useDebugValue(n.current),o.useDebugValue(a.current.join(", ")),t&&console.log("".concat(t,":"),n.current,a.current),n.current}var YO="production"!==process.env.NODE_ENV?GO:function(){},QO=o.memo((function(){var e=GO();return o.createElement("h1",null,"Render Times: ",e)}));"production"!==process.env.NODE_ENV&&(QO.displayName="RenderBlock");var JO=o.createContext({renderWithProps:!1}),ZO="RC_TABLE_KEY";function ek(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("-")||ZO;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function tk(e){return null!=e}function nk(e,t,n,r,i,a){var l=o.useContext(JO),c=Ct((function(){if(tk(r))return[r];var a,c=null==t||""===t?[]:Array.isArray(t)?t:[t],s=Co(e,c),u=s,d=void 0;if(i){var f=i(s,e,n);!(a=f)||"object"!==gt(a)||Array.isArray(a)||o.isValidElement(a)?u=f:("production"!==process.env.NODE_ENV&&mt(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),u=f.children,d=f.props,l.renderWithProps=!0)}return[u,d]}),[UO(),e,r,t,i,n],(function(e,t){if(a){var n=ln(e,2)[1],r=ln(t,2)[1];return a(r,n)}return!!l.renderWithProps||!Cn(e,t,!0)}));return c}function rk(e){var t,n,r,i,a,l,c,s;"production"!==process.env.NODE_ENV&&YO(e);var u=e.component,d=e.children,f=e.ellipsis,p=e.scope,m=e.prefixCls,h=e.className,g=e.align,v=e.record,b=e.render,y=e.dataIndex,w=e.renderIndex,x=e.shouldCellUpdate,E=e.index,C=e.rowType,S=e.colSpan,O=e.rowSpan,k=e.fixLeft,N=e.fixRight,$=e.firstFixLeft,I=e.lastFixLeft,_=e.firstFixRight,R=e.lastFixRight,P=e.appendNode,j=e.additionalProps,A=void 0===j?{}:j,M=e.isSticky,T="".concat(m,"-cell"),D=VO(XO,["supportSticky","allColumnsFixedLeft","rowHoverable"]),z=D.supportSticky,B=D.allColumnsFixedLeft,L=D.rowHoverable,H=ln(nk(v,y,w,d,b,x),2),F=H[0],V=H[1],K={},W="number"==typeof k&&z,q="number"==typeof N&&z;W&&(K.position="sticky",K.left=k),q&&(K.position="sticky",K.right=N);var U=null!==(t=null!==(n=null!==(r=null==V?void 0:V.colSpan)&&void 0!==r?r:A.colSpan)&&void 0!==n?n:S)&&void 0!==t?t:1,X=null!==(i=null!==(a=null!==(l=null==V?void 0:V.rowSpan)&&void 0!==l?l:A.rowSpan)&&void 0!==a?a:O)&&void 0!==i?i:1,G=function(e,t){return VO(XO,(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]}))}(E,X),Y=ln(G,2),Q=Y[0],J=Y[1],Z=ya((function(e){var t;v&&J(E,E+X-1),null==A||null===(t=A.onMouseEnter)||void 0===t||t.call(A,e)})),ee=ya((function(e){var t;v&&J(-1,-1),null==A||null===(t=A.onMouseLeave)||void 0===t||t.call(A,e)}));if(0===U||0===X)return null;var te=null!==(c=A.title)&&void 0!==c?c:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?t=i.toString():o.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:C,ellipsis:f,children:F}),ne=Ze(T,h,(bt(s={},"".concat(T,"-fix-left"),W&&z),bt(s,"".concat(T,"-fix-left-first"),$&&z),bt(s,"".concat(T,"-fix-left-last"),I&&z),bt(s,"".concat(T,"-fix-left-all"),I&&B&&z),bt(s,"".concat(T,"-fix-right"),q&&z),bt(s,"".concat(T,"-fix-right-first"),_&&z),bt(s,"".concat(T,"-fix-right-last"),R&&z),bt(s,"".concat(T,"-ellipsis"),f),bt(s,"".concat(T,"-with-append"),P),bt(s,"".concat(T,"-fix-sticky"),(W||q)&&M&&z),bt(s,"".concat(T,"-row-hover"),!V&&Q),s),A.className,null==V?void 0:V.className),re={};g&&(re.textAlign=g);var oe=wt(wt(wt(wt({},K),A.style),re),null==V?void 0:V.style),ie=F;return"object"!==gt(ie)||Array.isArray(ie)||o.isValidElement(ie)||(ie=null),f&&(I||_)&&(ie=o.createElement("span",{className:"".concat(T,"-content")},ie)),o.createElement(u,et({},V,A,{className:ne,style:oe,title:te,scope:p,onMouseEnter:L?Z:void 0,onMouseLeave:L?ee:void 0,colSpan:1!==U?U:null,rowSpan:1!==X?X:null}),P,ie)}var ok=o.memo(rk);function ik(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],h=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)&&h;else if(void 0!==a){d=!(p&&"right"===p.fixed)&&h}}else if(void 0!==i){s=!(p&&"left"===p.fixed)&&h}else if(void 0!==a){u=!(m&&"right"===m.fixed)&&h}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var ak=o.createContext({});var lk=["children"];function ck(e){return e.children}ck.Row=function(e){var t=e.children,n=En(e,lk);return o.createElement("tr",n,t)},ck.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=void 0===i?1:i,l=e.rowSpan,c=e.align,s=VO(XO,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,f=o.useContext(ak),p=f.scrollColumnIndex,m=f.stickyOffsets,h=n+a-1+1===p?a+1:a,g=ik(n,n+h-1,f.flattenColumns,m,d);return o.createElement(ok,et({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:h,rowSpan:l,render:function(){return r}},g))};var sk=qO((function(e){"production"!==process.env.NODE_ENV&&YO(e);var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=VO(XO,"prefixCls"),a=r.length-1,l=r[a],c=o.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=l&&l.scrollbar?a:null}}),[l,r,a,n]);return o.createElement(ak.Provider,{value:c},o.createElement("tfoot",{className:"".concat(i,"-summary")},t))})),uk=ck;function dk(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),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)dk(e,t[r][s],n+1,r,o,i,s)}function fk(e,t,n,r){var i=o.useMemo((function(){if(null!=n&&n.size){for(var o=[],i=0;i<(null==e?void 0:e.length);i+=1){dk(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}}))}),[e,t,n,r]);return i}function pk(e,t,n,r){var o,i=VO(XO,["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,h="nest"===l,g="row"===l&&(!d||d(e)),v=g||h,b=c&&c.has(t),y=s&&e&&e[s],w=ya(u),x=null==f?void 0:f(e,n),E=null==x?void 0:x.onClick;"string"==typeof m?o=m:"function"==typeof m&&(o=m(e,n,r));var C=ek(a);return wt(wt({},i),{},{columnsKey:C,nestExpandable:h,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:w,rowSupportExpand:g,expandable:v,rowProps:wt(wt({},x),{},{className:Ze(o,null==x?void 0:x.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==E||E.apply(void 0,[t].concat(r))}})})}function mk(e){"production"!==process.env.NODE_ENV&&YO(e);var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,a=e.className,l=e.expanded,c=e.colSpan,s=e.isEmpty,u=VO(XO,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,p=u.fixColumn,m=u.componentWidth,h=u.horizonScroll,g=n;return(s?h&&m:p)&&(g=o.createElement("div",{style:{width:m-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},g)),o.createElement(r,{className:a,style:{display:l?null:"none"}},o.createElement(ok,{component:i,prefixCls:t,colSpan:c},g))}function hk(e,t,n,r,i){var a,l,c=e.record,s=e.prefixCls,u=e.columnsKey,d=e.fixedInfoList,f=e.expandIconColumnIndex,p=e.nestExpandable,m=e.indentSize,h=e.expandIcon,g=e.expanded,v=e.hasNestChildren,b=e.onTriggerExpand,y=u[n],w=d[n];return n===(f||0)&&p&&(a=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(m*r,"px")},className:"".concat(s,"-row-indent indent-level-").concat(r)}),h({prefixCls:s,expanded:g,expandable:v,record:c,onExpand:b}))),t.onCell&&(l=t.onCell(c,i)),{key:y,fixedInfo:w,appendCellNode:a,additionalCellProps:l||{}}}function gk(e){"production"!==process.env.NODE_ENV&&YO(e);var t=e.className,n=e.style,r=e.record,i=e.index,a=e.renderIndex,l=e.rowKey,c=e.indent,s=void 0===c?0:c,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,p=pk(r,l,i,s),m=p.prefixCls,h=p.flattenColumns,g=p.expandedRowClassName,v=p.expandedRowRender,b=p.rowProps,y=p.expanded,w=p.rowSupportExpand,x=o.useRef(!1);x.current||(x.current=y),"production"!==process.env.NODE_ENV&&YO(e);var E,C=g&&g(r,i,s),S=o.createElement(u,et({},b,{"data-row-key":l,className:Ze(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(s),null==b?void 0:b.className,s>=1?C:""),style:wt(wt({},n),null==b?void 0:b.style)}),h.map((function(e,t){var n=e.render,l=e.dataIndex,c=e.className,u=hk(p,e,t,s,i),h=u.key,g=u.fixedInfo,v=u.appendCellNode,b=u.additionalCellProps;return o.createElement(ok,et({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:d,prefixCls:m,key:h,record:r,index:i,renderIndex:a,dataIndex:l,render:n,shouldCellUpdate:e.shouldCellUpdate},g,{appendNode:v,additionalProps:b}))})));if(w&&(x.current||y)){var O=v(r,i,s+1,y);E=o.createElement(mk,{expanded:y,className:Ze("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(s+1),C),prefixCls:m,component:u,cellComponent:d,colSpan:h.length,isEmpty:!1},O)}return o.createElement(o.Fragment,null,S,E)}"production"!==process.env.NODE_ENV&&(gk.displayName="BodyRow");var vk=qO(gk);function bk(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return o.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),o.createElement(qt,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function yk(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},o.createElement(qt.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return o.createElement(bk,{key:e,columnKey:e,onColumnResize:r})}))))}function wk(e){"production"!==process.env.NODE_ENV&&YO(e);var t,n=e.data,r=e.measureColumnWidth,i=VO(XO,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,l=i.getComponent,c=i.onColumnResize,s=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,f=i.childrenColumnName,p=i.emptyNode,m=fk(n,f,d,u),h=o.useRef({renderWithProps:!1}),g=l(["body","wrapper"],"tbody"),v=l(["body","row"],"tr"),b=l(["body","cell"],"td"),y=l(["body","cell"],"th");t=n.length?m.map((function(e,t){var n=e.record,r=e.indent,i=e.index,a=u(n,t);return o.createElement(vk,{key:a,rowKey:a,record:n,index:t,renderIndex:i,rowComponent:v,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:r})})):o.createElement(mk,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:v,cellComponent:b,colSpan:s.length,isEmpty:!0},p);var w=ek(s);return o.createElement(JO.Provider,{value:h.current},o.createElement(g,{className:"".concat(a,"-tbody")},r&&o.createElement(yk,{prefixCls:a,columnsKey:w,onColumnResize:c}),t))}"production"!==process.env.NODE_ENV&&(wk.displayName="Body");var xk=qO(wk),Ek=["expandable"],Ck="RC_TABLE_INTERNAL_COL_DEFINE";var Sk=["columnType"];function Ok(e){for(var t=e.colWidths,n=e.columns,r=[],i=!1,a=(e.columCount||n.length)-1;a>=0;a-=1){var l=t[a],c=n&&n[a],s=c&&c[Ck];if(l||s||i){var u=s||{};u.columnType;var d=En(u,Sk);r.unshift(o.createElement("col",et({key:a,style:{width:l}},d))),i=!0}}return o.createElement("colgroup",null,r)}var kk=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Nk=o.forwardRef((function(e,n){"production"!==process.env.NODE_ENV&&YO(e);var r=e.className,i=e.noData,a=e.columns,l=e.flattenColumns,c=e.colWidths,s=e.columCount,u=e.stickyOffsets,d=e.direction,f=e.fixHeader,p=e.stickyTopOffset,m=e.stickyBottomOffset,h=e.stickyClassName,g=e.onScroll,v=e.maxContentScroll,b=e.children,y=En(e,kk),w=VO(XO,["prefixCls","scrollbarSize","isSticky","getComponent"]),x=w.prefixCls,E=w.scrollbarSize,C=w.isSticky,S=(0,w.getComponent)(["header","table"],"table"),O=C&&!f?0:E,k=o.useRef(null),N=o.useCallback((function(e){St(n,e),St(k,e)}),[]);o.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(g({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=k.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=k.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var $=o.useMemo((function(){return l.every((function(e){return e.width}))}),[l]),I=l[l.length-1],_={fixed:I?I.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(x,"-cell-scrollbar")}}},R=t.useMemo((function(){return O?[].concat(Qt(a),[_]):a}),[O,a]),P=t.useMemo((function(){return O?[].concat(Qt(l),[_]):l}),[O,l]),j=t.useMemo((function(){var e=u.right,t=u.left;return wt(wt({},u),{},{left:"rtl"===d?[].concat(Qt(t.map((function(e){return e+O}))),[0]):t,right:"rtl"===d?e:[].concat(Qt(e.map((function(e){return e+O}))),[0]),isSticky:C})}),[O,u,C]),A=function(e,n){return t.useMemo((function(){for(var t=[],r=0;r<n;r+=1){var o=e[r];if(void 0===o)return null;t[r]=o}return t}),[e.join("_"),n])}(c,s);return o.createElement("div",{style:wt({overflow:"hidden"},C?{top:p,bottom:m}:{}),ref:N,className:Ze(r,bt({},h,!!h))},o.createElement(S,{style:{tableLayout:"fixed",visibility:i||A?null:"hidden"}},(!i||!v||$)&&o.createElement(Ok,{colWidths:A?[].concat(Qt(A),[O]):[],columCount:s+1,columns:P}),b(wt(wt({},y),{},{stickyOffsets:j,columns:R,flattenColumns:P}))))}));"production"!==process.env.NODE_ENV&&(Nk.displayName="FixedHolder");var $k=o.memo(Nk),Ik=function(e){var t,n=e.cells,r=e.stickyOffsets,i=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,c=e.onHeaderRow,s=e.index,u=VO(XO,["prefixCls","direction"]),d=u.prefixCls,f=u.direction;c&&(t=c(n.map((function(e){return e.column})),s));var p=ek(n.map((function(e){return e.column})));return o.createElement(a,t,n.map((function(e,t){var n,a=e.column,c=ik(e.colStart,e.colEnd,i,r,f);return a&&a.onHeaderCell&&(n=e.column.onHeaderCell(a)),o.createElement(ok,et({},e,{scope:a.title?e.colSpan>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:l,prefixCls:d,key:p[t]},c,{additionalProps:n,rowType:"header"}))})))};"production"!==process.env.NODE_ENV&&(Ik.displayName="HeaderRow");var _k=qO((function(e){"production"!==process.env.NODE_ENV&&YO(e);var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,a=VO(XO,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,s=o.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 o.createElement(u,{className:"".concat(l,"-thead")},s.map((function(e,n){return o.createElement(Ik,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:f,onHeaderRow:i,index:n})})))}));function Rk(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 Pk=["children"],jk=["fixed"];function Ak(e){return lt(e).filter((function(e){return o.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=wt({key:t},En(n,Pk));return r&&(o.children=Ak(r)),o}))}function Mk(e){return e.filter((function(e){return e&&"object"===gt(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?wt(wt({},e),{},{children:Mk(t)}):e}))}function Tk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===gt(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(Qt(e),Qt(Tk(l,a).map((function(e){return wt({fixed:i},e)})))):[].concat(Qt(e),[wt(wt({key:a},n),{},{fixed:i})])}),[])}function Dk(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,l=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,m=e.direction,h=e.expandRowByClick,g=e.columnWidth,v=e.fixed,b=e.scrollWidth,y=e.clientWidth,w=o.useMemo((function(){return Mk((r||Ak(i)||[]).slice())}),[r,i]),x=o.useMemo((function(){if(a){var e,t=w.slice();if("production"!==process.env.NODE_ENV&&p>=0&&mt(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!t.includes(LO)){var r=p||0;r>=0&&t.splice(r,0,LO)}"production"!==process.env.NODE_ENV&&t.filter((function(e){return e===LO})).length>1&&mt(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");var i=t.indexOf(LO);t=t.filter((function(e,t){return e!==LO||t===i}));var m,b=w[i];m="left"!==v&&!v||p?"right"!==v&&!v||p!==w.length?b?b.fixed:null:"right":"left";var y=(bt(e={},Ck,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),bt(e,"title",c),bt(e,"fixed",m),bt(e,"className","".concat(n,"-row-expand-icon-cell")),bt(e,"width",g),bt(e,"render",(function(e,t,r){var i=s(t,r),a=l.has(i),c=!f||f(t),p=d({prefixCls:n,expanded:a,expandable:c,record:t,onExpand:u});return h?o.createElement("span",{onClick:function(e){return e.stopPropagation()}},p):p})),e);return t.map((function(e){return e===LO?y:e}))}return"production"!==process.env.NODE_ENV&&w.includes(LO)&&mt(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),w.filter((function(e){return e!==LO}))}),[a,w,s,l,d,m]),E=o.useMemo((function(){var e=x;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,x,m]),C=o.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),wt({fixed:n},En(e,jk))}))}(Tk(E)):Tk(E)}),[E,m,b]),S=o.useMemo((function(){for(var e=-1,t=C.length-1;t>=0;t-=1){var n=C[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=C[r].fixed;if("left"!==o&&!0!==o)return!0}var i=C.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a<C.length;a+=1){if("right"!==C[a].fixed)return!0}return!1}),[C]),O=function(e,t,n){return o.useMemo((function(){if(t&&t>0){var r=0,o=0;e.forEach((function(e){var n=Rk(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=wt({},e),r=Rk(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])}(C,b,y),k=ln(O,2),N=k[0],$=k[1];return[E,N,$,S]}function zk(e){var t,n=e.prefixCls,r=e.record,i=e.onExpand,a=e.expanded,l=e.expandable,c="".concat(n,"-row-expand-icon");if(!l)return o.createElement("span",{className:Ze(c,"".concat(n,"-row-spaced"))});return o.createElement("span",{className:Ze(c,(t={},bt(t,"".concat(n,"-row-expanded"),a),bt(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:function(e){i(r,e),e.stopPropagation()}})}function Bk(e,t,n){var r=function(e){var t,n=e.expandable,r=En(e,Ek);return"expandable"in e?t=wt(wt({},r),n):("production"!==process.env.NODE_ENV&&["indentSize","expandedRowKeys","defaultExpandedRowKeys","defaultExpandAllRows","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","expandedRowClassName","expandIconColumnIndex","showExpandColumn","title"].some((function(t){return t in e}))&&mt(!1,"expanded related props have been moved into `expandable`."),t=r),!1===t.showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),i=r.expandIcon,a=r.expandedRowKeys,l=r.defaultExpandedRowKeys,c=r.defaultExpandAllRows,s=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=i||zk,p=r.childrenColumnName||"children",m=o.useMemo((function(){return s?"row":!!(e.expandable&&e.internalHooks===HO&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===gt(e)&&e[p]})))&&"nest"}),[!!s,t]),h=o.useState((function(){return l||(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):[])})),g=ln(h,2),v=g[0],b=g[1],y=o.useMemo((function(){return new Set(a||v||[])}),[a,v]),w=o.useCallback((function(e){var r,o=n(e,t.indexOf(e)),i=y.has(o);i?(y.delete(o),r=Qt(y)):r=[].concat(Qt(y),[o]),b(r),u&&u(!i,e),d&&d(r)}),[n,y,t,u,d]);return"production"!==process.env.NODE_ENV&&s&&t.some((function(e){return Array.isArray(null==e?void 0:e[p])}))&&mt(!1,"`expandedRowRender` should not use with nested Table"),[r,m,y,f,p,w]}function Lk(e){var n=t.useRef(e),r=ln(t.useState({}),2)[1],o=t.useRef(null),i=t.useRef([]);return t.useEffect((function(){return function(){o.current=null}}),[]),[n.current,function(e){i.current.push(e);var t=Promise.resolve();o.current=t,t.then((function(){if(o.current===t){var e=i.current,a=n.current;i.current=[],e.forEach((function(e){n.current=e(n.current)})),o.current=null,a!==n.current&&r({})}}))}]}var Hk=sn()?window:null;function Fk(e){var t=e.className,n=e.children;return o.createElement("div",{className:t},n)}var Vk=function(e,t){var n,r,i=e.scrollBodyRef,a=e.onScroll,l=e.offsetScroll,c=e.container,s=VO(XO,"prefixCls"),u=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,d=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,f=u&&d*(d/u),p=o.useRef(),m=ln(Lk({scrollLeft:0,isHiddenScrollBar:!1}),2),h=m[0],g=m[1],v=o.useRef({delta:0,x:0}),b=ln(o.useState(!1),2),y=b[0],w=b[1],x=o.useRef(null);o.useEffect((function(){return function(){rn.cancel(x.current)}}),[]);var E=function(){w(!1)},C=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(y&&0!==n){var r=v.current.x+e.pageX-v.current.x-v.current.delta;r<=0&&(r=0),r+f>=d&&(r=d-f),a({scrollLeft:r/d*(u+2)}),v.current.x=e.pageX}else y&&w(!1)},S=function(){x.current=rn((function(){if(i.current){var e=sC(i.current).top,t=e+i.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:sC(c).top+c.clientHeight;t-Cd()<=n||e>=n-l?g((function(e){return wt(wt({},e),{},{isHiddenScrollBar:!0})})):g((function(e){return wt(wt({},e),{},{isHiddenScrollBar:!1})}))}}))},O=function(e){g((function(t){return wt(wt({},t),{},{scrollLeft:e/u*d||0})}))};return o.useImperativeHandle(t,(function(){return{setScrollLeft:O,checkScrollBarVisible:S}})),o.useEffect((function(){var e=uC(document.body,"mouseup",E,!1),t=uC(document.body,"mousemove",C,!1);return S(),function(){e.remove(),t.remove()}}),[f,y]),o.useEffect((function(){var e=uC(c,"scroll",S,!1),t=uC(window,"resize",S,!1);return function(){e.remove(),t.remove()}}),[c]),o.useEffect((function(){h.isHiddenScrollBar||g((function(e){var t=i.current;return t?wt(wt({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[h.isHiddenScrollBar]),u<=d||!f||h.isHiddenScrollBar?null:o.createElement("div",{style:{height:Cd(),width:d,bottom:l},className:"".concat(s,"-sticky-scroll")},o.createElement("div",{onMouseDown:function(e){e.persist(),v.current.delta=e.pageX-h.scrollLeft,v.current.x=0,w(!0),e.preventDefault()},ref:p,className:Ze("".concat(s,"-sticky-scroll-bar"),bt({},"".concat(s,"-sticky-scroll-bar-active"),y)),style:{width:"".concat(f,"px"),transform:"translate3d(".concat(h.scrollLeft,"px, 0, 0)")}}))},Kk=o.forwardRef(Vk),Wk="rc-table",qk=[],Uk={};function Xk(){return"No Data"}function Gk(e,n){var r,i=wt({rowKey:"key",prefixCls:Wk,emptyText:Xk},e),a=i.prefixCls,l=i.className,c=i.rowClassName,s=i.style,u=i.data,d=i.rowKey,f=i.scroll,p=i.tableLayout,m=i.direction,h=i.title,g=i.footer,v=i.summary,b=i.caption,y=i.id,w=i.showHeader,x=i.components,E=i.emptyText,C=i.onRow,S=i.onHeaderRow,O=i.onScroll,k=i.internalHooks,N=i.transformColumns,$=i.internalRefs,I=i.tailor,_=i.getContainerWidth,R=i.sticky,P=i.rowHoverable,j=void 0===P||P,A=u||qk,M=!!A.length,T=k===HO;"production"!==process.env.NODE_ENV&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach((function(e){mt(void 0===i[e],"`".concat(e,"` is removed, please use `onRow` instead."))})),mt(!("getBodyWrapper"in i),"`getBodyWrapper` is deprecated, please use custom `components` instead."));var D=o.useCallback((function(e,t){return Co(x,e)||t}),[x]),z=o.useMemo((function(){return"function"==typeof d?d:function(e){var t=e&&e[d];return"production"!==process.env.NODE_ENV&&mt(void 0!==t,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),t}}),[d]),B=D(["body"]),L=function(){var e=ln(o.useState(-1),2),t=e[0],n=e[1],r=ln(o.useState(-1),2),i=r[0],a=r[1];return[t,i,o.useCallback((function(e,t){n(e),a(t)}),[])]}(),H=ln(L,3),F=H[0],V=H[1],K=H[2],W=ln(Bk(i,A,z),6),q=W[0],U=W[1],X=W[2],G=W[3],Y=W[4],Q=W[5],J=null==f?void 0:f.x,Z=ln(o.useState(0),2),ee=Z[0],te=Z[1],ne=ln(Dk(wt(wt(wt({},i),q),{},{expandable:!!q.expandedRowRender,columnTitle:q.columnTitle,expandedKeys:X,getRowKey:z,onTriggerExpand:Q,expandIcon:G,expandIconColumnIndex:q.expandIconColumnIndex,direction:m,scrollWidth:T&&I&&"number"==typeof J?J:null,clientWidth:ee}),T?N:null),4),re=ne[0],oe=ne[1],ie=ne[2],ae=ne[3],le=null!=ie?ie:J,ce=o.useMemo((function(){return{columns:re,flattenColumns:oe}}),[re,oe]),se=o.useRef(),ue=o.useRef(),de=o.useRef(),fe=o.useRef();o.useImperativeHandle(n,(function(){return{nativeElement:se.current,scrollTo:function(e){var t;if(de.current instanceof HTMLElement){var n=e.index,r=e.top,o=e.key;if(r){var i;null===(i=de.current)||void 0===i||i.scrollTo({top:r})}else{var a,l=null!=o?o:z(A[n]);null===(a=de.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}}else null!==(t=de.current)&&void 0!==t&&t.scrollTo&&de.current.scrollTo(e)}}}));var pe,me,he,ge=o.useRef(),ve=ln(o.useState(!1),2),be=ve[0],ye=ve[1],we=ln(o.useState(!1),2),xe=we[0],Ee=we[1],Ce=ln(Lk(new Map),2),Se=Ce[0],Oe=Ce[1],ke=ek(oe).map((function(e){return Se.get(e)})),Ne=o.useMemo((function(){return ke}),[ke.join("_")]),$e=function(e,n,r){var o=t.useMemo((function(){var t=n.length,o=function(t,r,o){for(var i=[],a=0,l=t;l!==r;l+=o)i.push(a),n[l].fixed&&(a+=e[l]||0);return i},i=o(0,t,1),a=o(t-1,-1,-1).reverse();return"rtl"===r?{left:a,right:i}:{left:i,right:a}}),[e,n,r]);return o}(Ne,oe,m),Ie=f&&tk(f.y),_e=f&&tk(le)||Boolean(q.fixed),Re=_e&&oe.some((function(e){return e.fixed})),Pe=o.useRef(),je=function(e,t){var n="object"===gt(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,a=n.offsetSummary,l=void 0===a?0:a,c=n.offsetScroll,s=void 0===c?0:c,u=n.getContainer,d=(void 0===u?function(){return Hk}:u)()||Hk;return o.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:s,container:d}}),[s,i,l,t,d])}(R,a),Ae=je.isSticky,Me=je.offsetHeader,Te=je.offsetSummary,De=je.offsetScroll,ze=je.stickyClassName,Be=je.container,Le=o.useMemo((function(){return null==v?void 0:v(A)}),[v,A]),He=(Ie||Ae)&&o.isValidElement(Le)&&Le.type===ck&&Le.props.fixed;Ie&&(me={overflowY:"scroll",maxHeight:f.y}),_e&&(pe={overflowX:"auto"},Ie||(me={overflowY:"hidden"}),he={width:!0===le?"auto":le,minWidth:"100%"});var Fe=o.useCallback((function(e,t){Zs(se.current)&&Oe((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),Ve=ln(function(){var e=t.useRef(null),n=t.useRef();function r(){window.clearTimeout(n.current)}return t.useEffect((function(){return r}),[]),[function(t){e.current=t,r(),n.current=window.setTimeout((function(){e.current=null,n.current=void 0}),100)},function(){return e.current}]}(),2),Ke=Ve[0],We=Ve[1];function qe(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Ue=ya((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===m,i="number"==typeof r?r:n.scrollLeft,a=n||Uk;We()&&We()!==a||(Ke(a),qe(i,ue.current),qe(i,de.current),qe(i,ge.current),qe(i,null===(t=Pe.current)||void 0===t?void 0:t.setScrollLeft));var l=n||ue.current;if(l){var c=l.scrollWidth,s=l.clientWidth;if(c===s)return ye(!1),void Ee(!1);o?(ye(-i<c-s),Ee(-i>0)):(ye(i>0),Ee(i<c-s))}})),Xe=ya((function(e){Ue(e),null==O||O(e)})),Ge=function(){_e&&de.current?Ue({currentTarget:de.current}):(ye(!1),Ee(!1))},Ye=o.useRef(!1);o.useEffect((function(){Ye.current&&Ge()}),[_e,u,re.length]),o.useEffect((function(){Ye.current=!0}),[]);var Qe=ln(o.useState(0),2),Je=Qe[0],tt=Qe[1],nt=ln(o.useState(!0),2),rt=nt[0],ot=nt[1];o.useEffect((function(){var e,t;I&&T||(de.current instanceof Element?tt(Sd(de.current).width):tt(Sd(fe.current).width)),ot((e="position",t="sticky",Array.isArray(e)||void 0===t?ap(e):lp(e,t)))}),[]),o.useEffect((function(){T&&$&&($.body.current=de.current)}));var it,at=o.useCallback((function(e){return o.createElement(o.Fragment,null,o.createElement(_k,e),"top"===He&&o.createElement(sk,e,Le))}),[He,Le]),lt=o.useCallback((function(e){return o.createElement(sk,e,Le)}),[Le]),ct=D(["table"],"table"),st=o.useMemo((function(){return p||(Re?"max-content"===le?"auto":"fixed":Ie||Ae||oe.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[Ie,Re,oe,p,Ae]),ut={colWidths:Ne,columCount:oe.length,stickyOffsets:$e,onHeaderRow:S,fixHeader:Ie,scroll:f},dt=o.useMemo((function(){return M?null:"function"==typeof E?E():E}),[M,E]),ft=o.createElement(xk,{data:A,measureColumnWidth:Ie||_e||Ae}),pt=o.createElement(Ok,{colWidths:oe.map((function(e){return e.width})),columns:oe}),ht=null!=b?o.createElement("caption",{className:"".concat(a,"-caption")},b):void 0,vt=Wc(i,{data:!0}),yt=Wc(i,{aria:!0});if(Ie||Ae){var xt;"function"==typeof B?(xt=B(A,{scrollbarSize:Je,ref:de,onScroll:Ue}),ut.colWidths=oe.map((function(e,t){var n=e.width,r=t===oe.length-1?n-Je:n;return"number"!=typeof r||Number.isNaN(r)?("production"!==process.env.NODE_ENV&&mt(0===i.columns.length,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):r}))):xt=o.createElement("div",{style:wt(wt({},pe),me),onScroll:Xe,ref:de,className:Ze("".concat(a,"-body"))},o.createElement(ct,et({style:wt(wt({},he),{},{tableLayout:st})},yt),ht,pt,ft,!He&&Le&&o.createElement(sk,{stickyOffsets:$e,flattenColumns:oe},Le)));var Et=wt(wt(wt({noData:!A.length,maxContentScroll:_e&&"max-content"===le},ut),ce),{},{direction:m,stickyClassName:ze,onScroll:Ue});it=o.createElement(o.Fragment,null,!1!==w&&o.createElement($k,et({},Et,{stickyTopOffset:Me,className:"".concat(a,"-header"),ref:ue}),at),xt,He&&"top"!==He&&o.createElement($k,et({},Et,{stickyBottomOffset:Te,className:"".concat(a,"-summary"),ref:ge}),lt),Ae&&de.current&&de.current instanceof Element&&o.createElement(Kk,{ref:Pe,offsetScroll:De,scrollBodyRef:de,onScroll:Ue,container:Be}))}else it=o.createElement("div",{style:wt(wt({},pe),me),className:Ze("".concat(a,"-content")),onScroll:Ue,ref:de},o.createElement(ct,et({style:wt(wt({},he),{},{tableLayout:st})},yt),ht,pt,!1!==w&&o.createElement(_k,et({},ut,ce)),ft,Le&&o.createElement(sk,{stickyOffsets:$e,flattenColumns:oe},Le)));var St=o.createElement("div",et({className:Ze(a,l,(r={},bt(r,"".concat(a,"-rtl"),"rtl"===m),bt(r,"".concat(a,"-ping-left"),be),bt(r,"".concat(a,"-ping-right"),xe),bt(r,"".concat(a,"-layout-fixed"),"fixed"===p),bt(r,"".concat(a,"-fixed-header"),Ie),bt(r,"".concat(a,"-fixed-column"),Re),bt(r,"".concat(a,"-fixed-column-gapped"),Re&&ae),bt(r,"".concat(a,"-scroll-horizontal"),_e),bt(r,"".concat(a,"-has-fix-left"),oe[0]&&oe[0].fixed),bt(r,"".concat(a,"-has-fix-right"),oe[oe.length-1]&&"right"===oe[oe.length-1].fixed),r)),style:s,id:y,ref:se},vt),h&&o.createElement(Fk,{className:"".concat(a,"-title")},h(A)),o.createElement("div",{ref:fe,className:"".concat(a,"-container")},it),g&&o.createElement(Fk,{className:"".concat(a,"-footer")},g(A)));_e&&(St=o.createElement(qt,{onResize:function(e){var t,n=e.width;null===(t=Pe.current)||void 0===t||t.checkScrollBarVisible();var r=se.current?se.current.offsetWidth:n;T&&_&&se.current&&(r=_(se.current,r)||r),r!==ee&&(Ge(),te(r))}},St));var Ot=function(e,t,n){var r=e.map((function(r,o){return ik(o,o,e,t,n)}));return Ct((function(){return r}),[r],(function(e,t){return!Cn(e,t)}))}(oe,$e,m),kt=o.useMemo((function(){return{scrollX:le,prefixCls:a,getComponent:D,scrollbarSize:Je,direction:m,fixedInfoList:Ot,isSticky:Ae,supportSticky:rt,componentWidth:ee,fixHeader:Ie,fixColumn:Re,horizonScroll:_e,tableLayout:st,rowClassName:c,expandedRowClassName:q.expandedRowClassName,expandIcon:G,expandableType:U,expandRowByClick:q.expandRowByClick,expandedRowRender:q.expandedRowRender,onTriggerExpand:Q,expandIconColumnIndex:q.expandIconColumnIndex,indentSize:q.indentSize,allColumnsFixedLeft:oe.every((function(e){return"left"===e.fixed})),emptyNode:dt,columns:re,flattenColumns:oe,onColumnResize:Fe,hoverStartRow:F,hoverEndRow:V,onHover:K,rowExpandable:q.rowExpandable,onRow:C,getRowKey:z,expandedKeys:X,childrenColumnName:Y,rowHoverable:j}}),[le,a,D,Je,m,Ot,Ae,rt,ee,Ie,Re,_e,st,c,q.expandedRowClassName,G,U,q.expandRowByClick,q.expandedRowRender,Q,q.expandIconColumnIndex,q.indentSize,dt,re,oe,Fe,F,V,K,q.rowExpandable,C,z,X,Y,j]);return o.createElement(XO.Provider,{value:kt},St)}var Yk=o.forwardRef(Gk);function Qk(e){return WO(Yk,e)}"production"!==process.env.NODE_ENV&&(Yk.displayName="Table");var Jk=Qk();Jk.EXPAND_COLUMN=LO,Jk.INTERNAL_HOOKS=HO,Jk.Column=function(e){return null},Jk.ColumnGroup=function(e){return null},Jk.Summary=uk;var Zk=FO(null),eN=FO(null);function tN(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,a=e.index,l=e.component,c=e.renderIndex,s=e.record,u=e.style,d=e.className,f=e.inverse,p=e.getHeight,m=n.render,h=n.dataIndex,g=n.className,v=n.width,b=VO(eN,["columnsOffset"]).columnsOffset,y=hk(t,n,r,i,a),w=y.key,x=y.fixedInfo,E=y.appendCellNode,C=y.additionalCellProps,S=C.style,O=C.colSpan,k=void 0===O?1:O,N=C.rowSpan,$=void 0===N?1:N,I=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,k,b),_=k>1?v-I:0,R=wt(wt(wt({},S),u),{},{flex:"0 0 ".concat(I,"px"),width:"".concat(I,"px"),marginRight:_,pointerEvents:"auto"}),P=o.useMemo((function(){return f?$<=1:0===k||0===$||$>1}),[$,k,f]);P?R.visibility="hidden":f&&(R.height=null==p?void 0:p($));var j=P?function(){return null}:m,A={};return 0!==$&&0!==k||(A.rowSpan=1,A.colSpan=1),o.createElement(ok,et({className:Ze(g,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:w,record:s,index:a,renderIndex:c,dataIndex:h,render:j,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:E,additionalProps:wt(wt({},C),{},{style:R},A)}))}var nN=["data","index","className","rowKey","style","extra","getHeight"],rN=o.forwardRef((function(e,t){var n,r=e.data,i=e.index,a=e.className,l=e.rowKey,c=e.style,s=e.extra,u=e.getHeight,d=En(e,nN),f=r.record,p=r.indent,m=r.index,h=VO(XO,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=h.scrollX,v=h.flattenColumns,b=h.prefixCls,y=h.fixColumn,w=h.componentWidth,x=VO(Zk,["getComponent"]).getComponent,E=pk(f,l,i,p),C=x(["body","row"],"div"),S=x(["body","cell"],"div"),O=E.rowSupportExpand,k=E.expanded,N=E.rowProps,$=E.expandedRowRender,I=E.expandedRowClassName;if(O&&k){var _=$(f,i,p+1,k),R=null==I?void 0:I(f,i,p),P={};y&&(P={style:bt({},"--virtual-width","".concat(w,"px"))});var j="".concat(b,"-expanded-row-cell");n=o.createElement(C,{className:Ze("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(p+1),R)},o.createElement(ok,{component:S,prefixCls:b,className:Ze(j,bt({},"".concat(j,"-fixed"),y)),additionalProps:P},_))}var A=wt(wt({},c),{},{width:g});s&&(A.position="absolute",A.pointerEvents="none");var M=o.createElement(C,et({},N,d,{"data-row-key":l,ref:O?null:t,className:Ze(a,"".concat(b,"-row"),null==N?void 0:N.className,bt({},"".concat(b,"-row-extra"),s)),style:wt(wt({},A),null==N?void 0:N.style)}),v.map((function(e,t){return o.createElement(tN,{key:t,component:S,rowInfo:E,column:e,colIndex:t,indent:p,index:i,renderIndex:m,record:f,inverse:s,getHeight:u})})));return O?o.createElement("div",{ref:t},M,n):M})),oN=qO(rN);"production"!==process.env.NODE_ENV&&(oN.displayName="BodyLine");var iN=o.forwardRef((function(e,t){var n=e.data,r=e.onScroll,i=VO(XO,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=i.flattenColumns,l=i.onColumnResize,c=i.getRowKey,s=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,f=i.emptyNode,p=i.scrollX,m=VO(Zk),h=m.sticky,g=m.scrollY,v=m.listItemHeight,b=m.getComponent,y=m.onScroll,w=o.useRef(),x=fk(n,d,s,c),E=o.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),C=o.useMemo((function(){return E.map((function(e){return e[2]}))}),[E]);o.useEffect((function(){E.forEach((function(e){var t=ln(e,2),n=t[0],r=t[1];l(n,r)}))}),[E]),o.useImperativeHandle(t,(function(){var e={scrollTo:function(e){var t;null===(t=w.current)||void 0===t||t.scrollTo(e)}};return Object.defineProperty(e,"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})}}),e}));var S,O=function(e,t){var n,r=null===(n=x[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},k=o.useMemo((function(){return{columnsOffset:C}}),[C]),N="".concat(u,"-tbody"),$=b(["body","wrapper"]),I=b(["body","row"],"div"),_=b(["body","cell"],"div");if(x.length){var R={};h&&(R.position="sticky",R.bottom=0,"object"===gt(h)&&h.offsetScroll&&(R.bottom=h.offsetScroll)),S=o.createElement(Rg,{fullHeight:!1,ref:w,prefixCls:"".concat(N,"-virtual"),styles:{horizontalScrollBar:R},className:N,height:g,itemHeight:v||24,data:x,itemKey:function(e){return c(e.record)},component:$,scrollWidth:p,onVirtualScroll:function(e){var t=e.x;r({scrollLeft:t})},onScroll:y,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,i=e.offsetY;if(n<0)return null;for(var l=a.filter((function(e){return 0===O(e,t)})),s=t,u=function(e){if(l=l.filter((function(t){return 0===O(t,e)})),!l.length)return s=e,1},d=t;d>=0&&!u(d);d-=1);for(var f=a.filter((function(e){return 1!==O(e,n)})),p=n,m=function(e){if(f=f.filter((function(t){return 1!==O(t,e)})),!f.length)return p=Math.max(e-1,n),1},h=n;h<x.length&&!m(h);h+=1);for(var g=[],v=function(e){if(!x[e])return 1;a.some((function(t){return O(t,e)>1}))&&g.push(e)},b=s;b<=p;b+=1)v(b);var y=g.map((function(e){var t=x[e],n=c(t.record,e),a=r(n);return o.createElement(oN,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var o=e+t-1,i=c(x[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 o.createElement(oN,{data:e,rowKey:r,index:t,style:n.style})}))}else S=o.createElement(I,{className:Ze("".concat(u,"-placeholder"))},o.createElement(ok,{component:_,prefixCls:u},f));return o.createElement(eN.Provider,{value:k},S)})),aN=qO(iN);"production"!==process.env.NODE_ENV&&(aN.displayName="ResponseGrid");var lN=function(e,t){var n=t.ref,r=t.onScroll;return o.createElement(aN,{ref:n,data:e,onScroll:r})};function cN(e,t){var n=e.columns,r=e.scroll,i=e.sticky,a=e.prefixCls,l=void 0===a?Wk:a,c=e.className,s=e.listItemHeight,u=e.components,d=e.onScroll,f=r||{},p=f.x,m=f.y;"number"!=typeof p&&("production"!==process.env.NODE_ENV&&mt(!p,"`scroll.x` in virtual table must be number."),p=1),"number"!=typeof m&&(m=500,"production"!==process.env.NODE_ENV&&mt(!1,"`scroll.y` in virtual table must be number."));var h=ya((function(e,t){return Co(u,e)||t})),g=ya(d),v=o.useMemo((function(){return{sticky:i,scrollY:m,listItemHeight:s,getComponent:h,onScroll:g}}),[i,m,s,h,g]);return o.createElement(Zk.Provider,{value:v},o.createElement(Jk,et({},e,{className:Ze(c,"".concat(l,"-virtual")),scroll:wt(wt({},r),{},{x:p}),components:wt(wt({},u),{},{body:lN}),columns:n,internalHooks:HO,tailor:!0,ref:t})))}var sN=o.forwardRef(cN);function uN(e){return WO(sN,e)}"production"!==process.env.NODE_ENV&&(sN.displayName="VirtualTable"),uN();var dN=o.createContext(null),fN=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),l=[],c=0;c<n;c+=1)l.push(o.createElement("span",{key:c,className:Ze(a,bt(bt({},"".concat(a,"-start"),r[c]),"".concat(a,"-end"),i[c]))}));return o.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},l)},pN=o.memo(fN),mN=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],hN="open",gN="close",vN=function(e){Dt(n,e);var t=Ht(n);function n(){var e;jt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return bt(Lt(e=t.call.apply(t,[this].concat(i))),"state",{dragNodeHighlight:!1}),bt(Lt(e),"selectHandle",void 0),bt(Lt(e),"cacheIndent",void 0),bt(Lt(e),"onSelectorClick",(function(t){(0,e.props.context.onNodeClick)(t,Yx(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)})),bt(Lt(e),"onSelectorDoubleClick",(function(t){(0,e.props.context.onNodeDoubleClick)(t,Yx(e.props))})),bt(Lt(e),"onSelect",(function(t){e.isDisabled()||(0,e.props.context.onNodeSelect)(t,Yx(e.props))})),bt(Lt(e),"onCheck",(function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){var a=!o;i(t,Yx(e.props),a)}}})),bt(Lt(e),"onMouseEnter",(function(t){(0,e.props.context.onNodeMouseEnter)(t,Yx(e.props))})),bt(Lt(e),"onMouseLeave",(function(t){(0,e.props.context.onNodeMouseLeave)(t,Yx(e.props))})),bt(Lt(e),"onContextMenu",(function(t){(0,e.props.context.onNodeContextMenu)(t,Yx(e.props))})),bt(Lt(e),"onDragStart",(function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,Lt(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}})),bt(Lt(e),"onDragEnter",(function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,Lt(e))})),bt(Lt(e),"onDragOver",(function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,Lt(e))})),bt(Lt(e),"onDragLeave",(function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,Lt(e))})),bt(Lt(e),"onDragEnd",(function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Lt(e))})),bt(Lt(e),"onDrop",(function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Lt(e))})),bt(Lt(e),"onExpand",(function(t){var n=e.props,r=n.loading,o=n.context.onNodeExpand;r||o(t,Yx(e.props))})),bt(Lt(e),"setSelectHandle",(function(t){e.selectHandle=t})),bt(Lt(e),"getNodeState",(function(){var t=e.props.expanded;return e.isLeaf()?null:t?hN:gN})),bt(Lt(e),"hasChildren",(function(){var t=e.props.eventKey;return!!((Hx(e.props.context.keyEntities,t)||{}).children||[]).length})),bt(Lt(e),"isLeaf",(function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)})),bt(Lt(e),"isDisabled",(function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)})),bt(Lt(e),"isCheckable",(function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n})),bt(Lt(e),"syncLoadData",(function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,l=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&!o&&l(Yx(e.props))})),bt(Lt(e),"isDraggable",(function(){var t=e.props,n=t.data,r=t.context.draggable;return!(!r||r.nodeDraggable&&!r.nodeDraggable(n))})),bt(Lt(e),"renderDragHandler",(function(){var t=e.props.context,n=t.draggable,r=t.prefixCls;return null!=n&&n.icon?o.createElement("span",{className:"".concat(r,"-draggable-icon")},n.icon):null})),bt(Lt(e),"renderSwitcherIconDom",(function(t){var n=e.props.switcherIcon,r=e.props.context.switcherIcon,o=n||r;return"function"==typeof o?o(wt(wt({},e.props),{},{isLeaf:t})):o})),bt(Lt(e),"renderSwitcher",(function(){var t=e.props.expanded,n=e.props.context.prefixCls;if(e.isLeaf()){var r=e.renderSwitcherIconDom(!0);return!1!==r?o.createElement("span",{className:Ze("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var i=Ze("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?hN:gN)),a=e.renderSwitcherIconDom(!1);return!1!==a?o.createElement("span",{onClick:e.onExpand,className:i},a):null})),bt(Lt(e),"renderCheckbox",(function(){var t=e.props,n=t.checked,r=t.halfChecked,i=t.disableCheckbox,a=e.props.context.prefixCls,l=e.isDisabled(),c=e.isCheckable();if(!c)return null;var s="boolean"!=typeof c?c:null;return o.createElement("span",{className:Ze("".concat(a,"-checkbox"),n&&"".concat(a,"-checkbox-checked"),!n&&r&&"".concat(a,"-checkbox-indeterminate"),(l||i)&&"".concat(a,"-checkbox-disabled")),onClick:e.onCheck},s)})),bt(Lt(e),"renderIcon",(function(){var t=e.props.loading,n=e.props.context.prefixCls;return o.createElement("span",{className:Ze("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})})),bt(Lt(e),"renderSelector",(function(){var t,n,r=e.state.dragNodeHighlight,i=e.props,a=i.title,l=void 0===a?"---":a,c=i.selected,s=i.icon,u=i.loading,d=i.data,f=e.props.context,p=f.prefixCls,m=f.showIcon,h=f.icon,g=f.loadData,v=f.titleRender,b=e.isDisabled(),y="".concat(p,"-node-content-wrapper");if(m){var w=s||h;t=w?o.createElement("span",{className:Ze("".concat(p,"-iconEle"),"".concat(p,"-icon__customize"))},"function"==typeof w?w(e.props):w):e.renderIcon()}else g&&u&&(t=e.renderIcon());n="function"==typeof l?l(d):v?v(d):l;var x=o.createElement("span",{className:"".concat(p,"-title")},n);return o.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof l?l:"",className:Ze("".concat(y),"".concat(y,"-").concat(e.getNodeState()||"normal"),!b&&(c||r)&&"".concat(p,"-node-selected")),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick},t,x,e.renderDropIndicator())})),bt(Lt(e),"renderDropIndicator",(function(){var t=e.props,n=t.disabled,r=t.eventKey,o=e.props.context,i=o.draggable,a=o.dropLevelOffset,l=o.dropPosition,c=o.prefixCls,s=o.indent,u=o.dropIndicatorRender,d=o.dragOverNodeKey,f=o.direction,p=!n&&!!i&&d===r,m=null!=s?s:e.cacheIndent;return e.cacheIndent=s,p?u({dropPosition:l,dropLevelOffset:a,indent:m,prefixCls:c,direction:f}):null})),e}return Mt(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,r=t.className,i=t.style,a=t.dragOver,l=t.dragOverGapTop,c=t.dragOverGapBottom,s=t.isLeaf,u=t.isStart,d=t.isEnd,f=t.expanded,p=t.selected,m=t.checked,h=t.halfChecked,g=t.loading,v=t.domRef,b=t.active;t.data;var y=t.onMouseMove,w=t.selectable,x=En(t,mN),E=this.props.context,C=E.prefixCls,S=E.filterTreeNode,O=E.keyEntities,k=E.dropContainerKey,N=E.dropTargetKey,$=E.draggingNodeKey,I=this.isDisabled(),_=Wc(x,{aria:!0,data:!0}),R=(Hx(O,n)||{}).level,P=d[d.length-1],j=this.isDraggable(),A=!I&&j,M=$===n,T=void 0!==w?{"aria-selected":!!w}:void 0;return o.createElement("div",et({ref:v,className:Ze(r,"".concat(C,"-treenode"),(e={},bt(bt(bt(bt(bt(bt(bt(bt(bt(bt(e,"".concat(C,"-treenode-disabled"),I),"".concat(C,"-treenode-switcher-").concat(f?"open":"close"),!s),"".concat(C,"-treenode-checkbox-checked"),m),"".concat(C,"-treenode-checkbox-indeterminate"),h),"".concat(C,"-treenode-selected"),p),"".concat(C,"-treenode-loading"),g),"".concat(C,"-treenode-active"),b),"".concat(C,"-treenode-leaf-last"),P),"".concat(C,"-treenode-draggable"),j),"dragging",M),bt(bt(bt(bt(bt(bt(e,"drop-target",N===n),"drop-container",k===n),"drag-over",!I&&a),"drag-over-gap-top",!I&&l),"drag-over-gap-bottom",!I&&c),"filter-node",S&&S(Yx(this.props))))),style:i,draggable:A,"aria-grabbed":M,onDragStart:A?this.onDragStart:void 0,onDragEnter:j?this.onDragEnter:void 0,onDragOver:j?this.onDragOver:void 0,onDragLeave:j?this.onDragLeave:void 0,onDrop:j?this.onDrop:void 0,onDragEnd:j?this.onDragEnd:void 0,onMouseMove:y},T,_),o.createElement(pN,{prefixCls:C,level:R,isStart:u,isEnd:d}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(o.Component),bN=function(e){return o.createElement(dN.Consumer,null,(function(t){return o.createElement(vN,et({},e,{context:t}))}))};function yN(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function wN(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function xN(e){return e.split("-")}function EN(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)}))}(Hx(t,e).children),n}function CN(e){if(e.parent){var t=xN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function SN(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,h=p.height,g=(("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=Hx(l,n.props.eventKey);if(f<m+h/2){var y=a.findIndex((function(e){return e.key===b.key})),w=a[y<=0?0:y-1].key;b=Hx(l,w)}var x=b.key,E=b,C=b.key,S=0,O=0;if(!v.includes(x))for(var k=0;k<g&&CN(b);k+=1)b=b.parent,O+=1;var N,$=t.props.data,I=b.node,_=!0;return N=xN(b.pos),0===Number(N[N.length-1])&&0===b.level&&f<m+h/2&&i({dragNode:$,dropNode:I,dropPosition:-1})&&b.key===n.props.eventKey?S=-1:(E.children||[]).length&&v.includes(C)?i({dragNode:$,dropNode:I,dropPosition:0})?S=0:_=!1:0===O?g>-1.5?i({dragNode:$,dropNode:I,dropPosition:1})?S=1:_=!1:i({dragNode:$,dropNode:I,dropPosition:0})?S=0:i({dragNode:$,dropNode:I,dropPosition:1})?S=1:_=!1:i({dragNode:$,dropNode:I,dropPosition:1})?S=1:_=!1,{dropPosition:S,dropLevelOffset:O,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:C,dropContainerKey:0===S?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:_}}function ON(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function kN(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==gt(e))return mt(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function NN(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=Hx(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)})),Qt(n)}bN.displayName="TreeNode",bN.isTreeNode=1;const $N={},IN="SELECT_ALL",_N="SELECT_INVERT",RN="SELECT_NONE",PN=[],jN=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat(Qt(n),Qt(jN(e,t[e]))))})),n},AN=(e,n)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:i,defaultSelectedRowKeys:a,getCheckboxProps:l,onChange:c,onSelect:s,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:p,columnWidth:m,type:h,selections:g,fixed:v,renderCell:b,hideSelectAll:y,checkStrictly:w=!0}=n||{},{prefixCls:x,data:E,pageData:C,getRecordByKey:S,getRowKey:O,expandType:k,childrenColumnName:N,locale:$,getPopupContainer:I}=e,_=jo("Table"),[R,P]=function(e){const[n,r]=t.useState(null);return[t.useCallback(((t,o,i)=>{const a=null!=n?n:t,l=Math.min(a||0,t),c=Math.max(a||0,t),s=o.slice(l,c+1).map((t=>e(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]),e=>{r(e)}]}((e=>e)),[j,A]=Ea(i||a||PN,{value:i}),M=o.useRef(new Map),T=t.useCallback((e=>{if(r){const t=new Map;e.forEach((e=>{let n=S(e);!n&&M.current.has(e)&&(n=M.current.get(e)),t.set(e,n)})),M.current=t}}),[S,r]);o.useEffect((()=>{T(j)}),[j]);const{keyEntities:D}=t.useMemo((()=>{if(w)return{keyEntities:null};let e=E;if(r){const t=new Set(E.map(((e,t)=>O(e,t)))),n=Array.from(M.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat(Qt(e),Qt(n))}return Xx(e,{externalGetKey:O,childrenPropName:N})}),[E,O,w,N,r]),z=t.useMemo((()=>jN(N,C)),[N,C]),B=t.useMemo((()=>{const e=new Map;return z.forEach(((t,n)=>{const r=O(t,n),o=(l?l(t):null)||{};e.set(r,o),"production"!==process.env.NODE_ENV&&_(!("checked"in o||"defaultChecked"in o),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")})),e}),[z,O,l]),L=t.useCallback((e=>{var t;return!!(null===(t=B.get(O(e)))||void 0===t?void 0:t.disabled)}),[B,O]),[H,F]=t.useMemo((()=>{if(w)return[j||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Zx(j,!0,D,L);return[e||[],t]}),[j,w,D,L]),V=t.useMemo((()=>{const e="radio"===h?H.slice(0,1):H;return new Set(e)}),[H,h]),K=t.useMemo((()=>"radio"===h?new Set:new Set(F)),[F,h]);o.useEffect((()=>{n||A(PN)}),[!!n]);const W=t.useCallback(((e,t)=>{let n,o;T(e),r?(n=e,o=e.map((e=>M.current.get(e)))):(n=[],o=[],e.forEach((e=>{const t=S(e);void 0!==t&&(n.push(e),o.push(t))}))),A(n),null==c||c(n,o,{type:t})}),[A,S,c,r]),q=t.useCallback(((e,t,n,r)=>{if(s){const o=n.map((e=>S(e)));s(S(e),t,o,r)}W(n,"single")}),[s,S,W]),U=t.useMemo((()=>{if(!g||y)return null;return(!0===g?[IN,_N,RN]:g).map((e=>e===IN?{key:"all",text:$.selectionAll,onSelect(){W(E.map(((e,t)=>O(e,t))).filter((e=>{const t=B.get(e);return!(null==t?void 0:t.disabled)||V.has(e)})),"all")}}:e===_N?{key:"invert",text:$.selectInvert,onSelect(){const e=new Set(V);C.forEach(((t,n)=>{const r=O(t,n),o=B.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);d&&(_.deprecated(!1,"onSelectInvert","onChange"),d(t)),W(t,"invert")}}:e===RN?{key:"none",text:$.selectNone,onSelect(){null==f||f(),W(Array.from(V).filter((e=>{const t=B.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(o)),P(null)}})))}),[g,V,C,O,d,W]),X=t.useCallback((e=>{var t;if(!n)return"production"!==process.env.NODE_ENV&&_(!e.includes($N),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),e.filter((e=>e!==$N));let r=Qt(e);const i=new Set(V),a=z.map(O).filter((e=>!B.get(e).disabled)),l=a.every((e=>i.has(e))),c=a.some((e=>i.has(e))),s=()=>{const e=[];l?a.forEach((t=>{i.delete(t),e.push(t)})):a.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==u||u(!l,t.map((e=>S(e))),e.map((e=>S(e)))),W(t,"all"),P(null)};let d,f,E;if("radio"!==h){let e;if(U){const t={getPopupContainer:I,items:U.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(a)},label:r}}))};e=o.createElement("div",{className:`${x}-selection-extra`},o.createElement(lC,{menu:t,getPopupContainer:I},o.createElement("span",null,o.createElement(jv,null))))}const t=z.map(((e,t)=>{const n=O(e,t),r=B.get(n)||{};return Object.assign({checked:i.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===z.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),u=n&&t.some((e=>{let{checked:t}=e;return t}));f=o.createElement(sE,{checked:n?r:!!z.length&&l,indeterminate:n?!r&&u:!l&&c,onChange:s,disabled:0===z.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),d=!y&&o.createElement("div",{className:`${x}-selection`},f,e)}E="radio"===h?(e,t,n)=>{const r=O(t,n),a=i.has(r);return{node:o.createElement(fx,Object.assign({},B.get(r),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(r)||q(r,!0,[r],e.nativeEvent)}})),checked:a}}:(e,t,n)=>{var r;const l=O(t,n),c=i.has(l),s=K.has(l),u=B.get(l);let d;return"nest"===k?(d=s,"production"!==process.env.NODE_ENV&&_("boolean"!=typeof(null==u?void 0:u.indeterminate),"usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):d=null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:s,{node:o.createElement(sE,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,r=a.findIndex((e=>e===l)),o=H.some((e=>a.includes(e)));if(n&&w&&o){const e=R(r,a,i),t=Array.from(i);null==p||p(!c,t.map((e=>S(e))),e.map((e=>S(e)))),W(t,"multiple")}else{const e=H;if(w){const n=c?yN(e,l):wN(e,l);q(l,!c,n,t)}else{const n=Zx([].concat(Qt(e),[l]),!0,D,L),{checkedKeys:r,halfCheckedKeys:o}=n;let i=r;if(c){const e=new Set(r);e.delete(l),i=Zx(Array.from(e),{checked:!1,halfCheckedKeys:o},D,L).checkedKeys}q(l,!c,i,t)}}P(c?null:r)}})),checked:c}};if(!r.includes($N))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[Ck])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,$N].concat(Qt(t))}else r=[$N].concat(Qt(r));const C=r.indexOf($N);"production"!==process.env.NODE_ENV&&_(r.filter((e=>e===$N)).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),r=r.filter(((e,t)=>e!==$N||t===C));const N=r[C-1],$=r[C+1];let j=v;void 0===j&&(void 0!==(null==$?void 0:$.fixed)?j=$.fixed:void 0!==(null==N?void 0:N.fixed)&&(j=N.fixed)),j&&N&&"EXPAND_COLUMN"===(null===(t=N[Ck])||void 0===t?void 0:t.columnType)&&void 0===N.fixed&&(N.fixed=j);const A=Ze(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:g&&"checkbox"===h}),M={fixed:j,width:m,className:`${x}-selection-column`,title:(null==n?void 0:n.columnTitle)?"function"==typeof n.columnTitle?n.columnTitle(f):n.columnTitle:d,render:(e,t,n)=>{const{node:r,checked:o}=E(e,t,n);return b?b(o,t,n,r):r},onCell:n.onCell,[Ck]:{className:A}};return r.map((e=>e===$N?M:e))}),[O,z,n,H,V,K,m,U,k,B,p,q,L]);return[X,V]};function MN(e,n){return t.useImperativeHandle(e,(()=>{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}))}const TN=(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 DN(e,t){return t?`${t}-${e}`:`${e}`}const zN=(e,t)=>"function"==typeof e?e(t):e;function BN(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var LN=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],HN=function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,l=e.motionType,c=e.onMotionStart,s=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=En(e,LN),p=ln(o.useState(!0),2),m=p[0],h=p[1],g=o.useContext(dN).prefixCls,v=a&&"hide"!==l;Gn((function(){a&&v!==m&&h(v)}),[a]);var b=o.useRef(!1),y=function(){a&&!b.current&&(b.current=!0,s())};!function(e,t){var n=ln(o.useState(!1),2),r=n[0],i=n[1];Gn((function(){if(r)return e(),function(){t()}}),[r]),Gn((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&c()}),y);return a?o.createElement(Ll,et({ref:t,visible:m},i,{motionAppear:"show"===l,onVisibleChanged:function(e){v===e&&y()}}),(function(e,t){var n=e.className,r=e.style;return o.createElement("div",{ref:t,className:Ze("".concat(g,"-treenode-motion"),n),style:r},a.map((function(e){var t=Object.assign({},(BN(e.data),e.data)),n=e.title,r=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=Gx(r,d);return o.createElement(bN,et({},t,l,{title:n,active:u,data:e.data,key:r,isStart:i,isEnd:a}))})))})):o.createElement(bN,et({domRef:t,className:n,style:r},f,{active:u}))};HN.displayName="MotionTreeNode";var FN=o.forwardRef(HN);function VN(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 KN=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],WN={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},qN=function(){},UN="RC_TREE_MOTION_".concat(Math.random()),XN={key:UN},GN={key:UN,level:0,index:0,pos:"0",node:XN,nodes:[XN]},YN={parent:null,children:[],pos:GN.pos,data:XN,title:null,key:UN,isStart:[],isEnd:[]};function QN(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function JN(e){return Kx(e.key,e.pos)}var ZN=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,l=e.checkedKeys,c=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,m=e.dragOverNodeKey,h=e.dropPosition,g=e.motion,v=e.height,b=e.itemHeight,y=e.virtual,w=e.focusable,x=e.activeItem,E=e.focused,C=e.tabIndex,S=e.onKeyDown,O=e.onFocus,k=e.onBlur,N=e.onActiveChange,$=e.onListChangeStart,I=e.onListChangeEnd,_=En(e,KN),R=o.useRef(null),P=o.useRef(null);o.useImperativeHandle(t,(function(){return{scrollTo:function(e){R.current.scrollTo(e)},getIndentWidth:function(){return P.current.offsetWidth}}}));var j=ln(o.useState(i),2),A=j[0],M=j[1],T=ln(o.useState(r),2),D=T[0],z=T[1],B=ln(o.useState(r),2),L=B[0],H=B[1],F=ln(o.useState([]),2),V=F[0],K=F[1],W=ln(o.useState(null),2),q=W[0],U=W[1],X=o.useRef(r);function G(){var e=X.current;z(e),H(e),K([]),U(null),I()}X.current=r,Gn((function(){M(i);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)}}(A,i);if(null!==e.key)if(e.add){var t=D.findIndex((function(t){return t.key===e.key})),n=QN(VN(D,r,e.key),y,v,b),o=D.slice();o.splice(t+1,0,YN),H(o),K(n),U("show")}else{var a=r.findIndex((function(t){return t.key===e.key})),l=QN(VN(r,D,e.key),y,v,b),c=r.slice();c.splice(a+1,0,YN),H(c),K(l),U("hide")}else D!==r&&(z(r),H(r))}),[i,r]),o.useEffect((function(){p||G()}),[p]);var Y=g?L:r,Q={expandedKeys:i,selectedKeys:a,loadedKeys:c,loadingKeys:s,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:m,dropPosition:h,keyEntities:d};return o.createElement(o.Fragment,null,E&&x&&o.createElement("span",{style:WN,"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}(x)),o.createElement("div",null,o.createElement("input",{style:WN,disabled:!1===w||f,tabIndex:!1!==w?C:null,onKeyDown:S,onFocus:O,onBlur:k,value:"",onChange:qN,"aria-label":"for screen reader"})),o.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:"".concat(n,"-indent")},o.createElement("div",{ref:P,className:"".concat(n,"-indent-unit")}))),o.createElement(Rg,et({},_,{data:Y,itemKey:JN,height:v,fullHeight:!1,virtual:y,itemHeight:b,prefixCls:"".concat(n,"-list"),ref:R,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return JN(e)===UN}))&&G()}}),(function(e){var t=e.pos,n=Object.assign({},(BN(e.data),e.data)),r=e.title,i=e.key,a=e.isStart,l=e.isEnd,c=Kx(i,t);delete n.key,delete n.children;var s=Gx(c,Q);return o.createElement(FN,et({},n,s,{title:r,active:!!x&&i===x.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:g,motionNodes:i===UN?V:null,motionType:q,onMotionStart:$,onMotionEnd:G,treeNodeRequiredProps:Q,onMouseMove:function(){N(null)}}))})))}));ZN.displayName="NodeList";var e$=function(e){Dt(n,e);var t=Ht(n);function n(){var e;jt(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return bt(Lt(e=t.call.apply(t,[this].concat(i))),"destroyed",!1),bt(Lt(e),"delayedDragEnterLogic",void 0),bt(Lt(e),"loadingRetryTimes",{}),bt(Lt(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Wx()}),bt(Lt(e),"dragStartMousePosition",null),bt(Lt(e),"dragNode",void 0),bt(Lt(e),"currentMouseOverDroppableNodeKey",null),bt(Lt(e),"listRef",o.createRef()),bt(Lt(e),"onNodeDragStart",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,l=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var c=yN(o,l);e.setState({draggingNodeKey:l,dragChildrenKeys:EN(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(c),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:Yx(n.props)})})),bt(Lt(e),"onNodeDragEnter",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,l=r.flattenNodes,c=r.indent,s=e.props,u=s.onDragEnter,d=s.onExpand,f=s.allowDrop,p=s.direction,m=n.props,h=m.pos,g=m.eventKey,v=Lt(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==g&&(e.currentMouseOverDroppableNodeKey=g),v){var b=SN(t,v,n,c,e.dragStartMousePosition,f,l,i,o,p),y=b.dropPosition,w=b.dropLevelOffset,x=b.dropTargetKey,E=b.dropContainerKey,C=b.dropTargetPos,S=b.dropAllowed,O=b.dragOverNodeKey;-1===a.indexOf(x)&&S?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),v.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[h]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var r=Qt(o),a=Hx(i,n.props.eventKey);a&&(a.children||[]).length&&(r=wN(o,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),null==d||d(r,{node:Yx(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),v.props.eventKey!==x||0!==w?(e.setState({dragOverNodeKey:O,dropPosition:y,dropLevelOffset:w,dropTargetKey:x,dropContainerKey:E,dropTargetPos:C,dropAllowed:S}),null==u||u({event:t,node:Yx(n.props),expandedKeys:o})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),bt(Lt(e),"onNodeDragOver",(function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,l=r.expandedKeys,c=r.indent,s=e.props,u=s.onDragOver,d=s.allowDrop,f=s.direction,p=Lt(e).dragNode;if(p){var m=SN(t,p,n,c,e.dragStartMousePosition,d,i,a,l,f),h=m.dropPosition,g=m.dropLevelOffset,v=m.dropTargetKey,b=m.dropContainerKey,y=m.dropAllowed,w=m.dropTargetPos,x=m.dragOverNodeKey;-1===o.indexOf(v)&&y&&(p.props.eventKey===v&&0===g?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():h===e.state.dropPosition&&g===e.state.dropLevelOffset&&v===e.state.dropTargetKey&&b===e.state.dropContainerKey&&w===e.state.dropTargetPos&&y===e.state.dropAllowed&&x===e.state.dragOverNodeKey||e.setState({dropPosition:h,dropLevelOffset:g,dropTargetKey:v,dropContainerKey:b,dropTargetPos:w,dropAllowed:y,dragOverNodeKey:x}),null==u||u({event:t,node:Yx(n.props)}))}})),bt(Lt(e),"onNodeDragLeave",(function(t,n){e.currentMouseOverDroppableNodeKey!==n.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:t,node:Yx(n.props)})})),bt(Lt(e),"onWindowDragEnd",(function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)})),bt(Lt(e),"onNodeDragEnd",(function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:t,node:Yx(n.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),bt(Lt(e),"onNodeDrop",(function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var d=wt(wt({},Gx(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:Hx(e.state.keyEntities,c).node});mt(!(-1!==a.indexOf(c)),"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var f=xN(s),p={event:t,node:Yx(d),dragNode:e.dragNode?Yx(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(f[f.length-1])};o||null==u||u(p),e.dragNode=null}}})),bt(Lt(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),bt(Lt(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter((function(e){return e.key===l}))[0],s=Yx(wt(wt({},Gx(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?yN(o,l):wN(o,l)),e.onNodeExpand(t,s)}})),bt(Lt(e),"onNodeClick",(function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),bt(Lt(e),"onNodeDoubleClick",(function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),bt(Lt(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(r=f?s?wN(r,d):[d]:yN(r,d)).map((function(e){var t=Hx(i,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),bt(Lt(e),"onNodeCheck",(function(t,n,r){var o,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var m=r?wN(l,f):yN(l,f);o={checked:m,halfChecked:yN(c,f)},p.checkedNodes=m.map((function(e){return Hx(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var h=Zx([].concat(Qt(l),[f]),!0,a),g=h.checkedKeys,v=h.halfCheckedKeys;if(!r){var b=new Set(g);b.delete(f);var y=Zx(Array.from(b),{checked:!1,halfCheckedKeys:v},a);g=y.checkedKeys,v=y.halfCheckedKeys}o=g,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,g.forEach((function(e){var t=Hx(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:v})}null==d||d(o,p)})),bt(Lt(e),"onNodeLoad",(function(t){var n,r=t.key,o=Hx(e.state.keyEntities,r);if(null==o||null===(n=o.children)||void 0===n||!n.length){var i=new Promise((function(n,o){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return d&&-1===l.indexOf(r)&&-1===s.indexOf(r)?(d(t).then((function(){var o=wN(e.state.loadedKeys,r);null==f||f(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:yN(e.loadingKeys,r)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:yN(e.loadingKeys,r)}})),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var i=e.state.loadedKeys;mt(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:wN(i,r)}),n()}o(t)})),{loadingKeys:wN(s,r)}):null}))}));return i.catch((function(){})),i}})),bt(Lt(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),bt(Lt(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),bt(Lt(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),bt(Lt(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)})),bt(Lt(e),"onBlur",(function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)})),bt(Lt(e),"getTreeNodeRequiredProps",(function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}})),bt(Lt(e),"setExpandedKeys",(function(t){var n=e.state,r=Ux(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)})),bt(Lt(e),"onNodeExpand",(function(t,n){var r=e.state.expandedKeys,o=e.state,i=o.listChanging,a=o.fieldNames,l=e.props,c=l.onExpand,s=l.loadData,u=n.expanded,d=n[a.key];if(!i){var f=r.indexOf(d),p=!u;if(mt(u&&-1!==f||!u&&-1===f,"Expand state not sync with index check"),r=p?wN(r,d):yN(r,d),e.setExpandedKeys(r),null==c||c(r,{node:n,expanded:p,nativeEvent:t.nativeEvent}),p&&s){var m=e.onNodeLoad(n);m&&m.then((function(){var t=Ux(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=yN(e.state.expandedKeys,d);e.setExpandedKeys(t)}))}}})),bt(Lt(e),"onListChangeStart",(function(){e.setUncontrolledState({listChanging:!0})})),bt(Lt(e),"onListChangeEnd",(function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))})),bt(Lt(e),"onActiveChange",(function(t){var n=e.state.activeKey,r=e.props,o=r.onActiveChange,i=r.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null==o||o(t))})),bt(Lt(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.key===n}))||null})),bt(Lt(e),"offsetActiveKey",(function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex((function(e){return e.key===o}));-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)})),bt(Lt(e),"onKeyDown",(function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,c=l.onKeyDown,s=l.checkable,u=l.selectable;switch(t.which){case Jc.UP:e.offsetActiveKey(-1),t.preventDefault();break;case Jc.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var f=e.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,m=Yx(wt(wt({},Gx(r,f)),{},{data:d.data,active:!0}));switch(t.which){case Jc.LEFT:p&&o.includes(r)?e.onNodeExpand({},m):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case Jc.RIGHT:p&&!o.includes(r)?e.onNodeExpand({},m):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case Jc.ENTER:case Jc.SPACE:!s||m.disabled||!1===m.checkable||m.disableCheckbox?s||!u||m.disabled||!1===m.selectable||e.onNodeSelect({},m):e.onNodeCheck({},m,!i.includes(r))}}null==c||c(t)})),bt(Lt(e),"setUncontrolledState",(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,a[n]=t[n])})),!o||n&&!i||e.setState(wt(wt({},a),r))}})),bt(Lt(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return Mt(n,[{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,i=t.keyEntities,a=t.draggingNodeKey,l=t.activeKey,c=t.dropLevelOffset,s=t.dropContainerKey,u=t.dropTargetKey,d=t.dropPosition,f=t.dragOverNodeKey,p=t.indent,m=this.props,h=m.prefixCls,g=m.className,v=m.style,b=m.showLine,y=m.focusable,w=m.tabIndex,x=void 0===w?0:w,E=m.selectable,C=m.showIcon,S=m.icon,O=m.switcherIcon,k=m.draggable,N=m.checkable,$=m.checkStrictly,I=m.disabled,_=m.motion,R=m.loadData,P=m.filterTreeNode,j=m.height,A=m.itemHeight,M=m.virtual,T=m.titleRender,D=m.dropIndicatorRender,z=m.onContextMenu,B=m.onScroll,L=m.direction,H=m.rootClassName,F=m.rootStyle,V=Wc(this.props,{aria:!0,data:!0});return k&&(e="object"===gt(k)?k:"function"==typeof k?{nodeDraggable:k}:{}),o.createElement(dN.Provider,{value:{prefixCls:h,selectable:E,showIcon:C,icon:S,switcherIcon:O,draggable:e,draggingNodeKey:a,checkable:N,checkStrictly:$,disabled:I,keyEntities:i,dropLevelOffset:c,dropContainerKey:s,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f,indent:p,direction:L,dropIndicatorRender:D,loadData:R,filterTreeNode:P,titleRender:T,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}},o.createElement("div",{role:"tree",className:Ze(h,g,H,bt(bt(bt({},"".concat(h,"-show-line"),b),"".concat(h,"-focused"),n),"".concat(h,"-active-focused"),null!==l)),style:F},o.createElement(ZN,et({ref:this.listRef,prefixCls:h,style:v,data:r,disabled:I,selectable:E,checkable:!!N,motion:_,dragging:null!==a,height:j,itemHeight:A,virtual:M,focusable:y,focused:n,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:z,onScroll:B},this.getTreeNodeRequiredProps(),V))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&t in e||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=Wx(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(mt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=qx(e.children)),n){o.treeData=n;var l=Xx(n,{fieldNames:a});o.keyEntities=wt(bt({},UN,GN),l.keyEntities),"production"!==process.env.NODE_ENV&&function(e,t){var n=new Map;!function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(r||[]).forEach((function(r){var i=r[t.key],a=r[t.children];mt(null!=i,"Tree node must have a certain key: [".concat(o).concat(i,"]"));var l=String(i);mt(!n.has(l)||null==i,"Same 'key' exist in the Tree: ".concat(l)),n.set(l,!0),e(a,"".concat(o).concat(l," > "))}))}(e)}(n,a)}var c,s=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?NN(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=wt({},s);delete u[UN],o.expandedKeys=Object.keys(u).map((function(e){return u[e].key}))}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?NN(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var d=Ux(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=d}if((e.selectable&&(i("selectedKeys")?o.selectedKeys=ON(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=ON(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=kN(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?c=kN(e.defaultCheckedKeys)||{}:n&&(c=kN(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var f=c,p=f.checkedKeys,m=void 0===p?[]:p,h=f.halfCheckedKeys,g=void 0===h?[]:h;if(!e.checkStrictly){var v=Zx(m,!0,s);m=v.checkedKeys,g=v.halfCheckedKeys}o.checkedKeys=m,o.halfCheckedKeys=g}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(o.Component);bt(e$,"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(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return o.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),bt(e$,"TreeNode",bN);const t$=new yo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),n$=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),r$=(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:`${Vn(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),o$=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},Ua(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Ga(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`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:t$,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[r]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Vn(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:Vn(i),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},n$(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:Vn(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}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${Vn(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:Vn(i),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:Vn(i),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:Vn(i),userSelect:"none"},r$(e,t)),[`${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:`${Vn(t.calc(i).div(2).equal())} !important`}}}}})}},i$=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},a$=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=ka(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[o$(e,i),i$(i)]};var l$=Ja("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:tE(`${n}-checkbox`,e)},a$(n,e),Dp(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function c$(e){const{dropPosition:n,dropLevelOffset:r,prefixCls:o,indent:i,direction:a="ltr"}=e,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 t.createElement("div",{style:s,className:`${o}-drop-indicator`})}const s$=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:l,expanded:c,loading:s}=r;if(s)return o.isValidElement(a)?a:o.createElement(ds,{className:`${t}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),l){if(!i)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(r):u,n=`${t}-switcher-line-custom-icon`;return o.isValidElement(e)?Xc(e,{className:Ze(e.props.className||"",n)}):e}return u?o.createElement(xO,{className:`${t}-switcher-line-icon`}):o.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f="function"==typeof n?n(r):n;return o.isValidElement(f)?Xc(f,{className:Ze(f.props.className||"",d)}):void 0!==f?f:i?c?o.createElement(TO,{className:`${t}-switcher-line-icon`}):o.createElement(BO,{className:`${t}-switcher-line-icon`}):o.createElement(sO,{className:d})},u$=t.forwardRef(((e,n)=>{var r;const{getPrefixCls:o,direction:i,virtual:a,tree:l}=t.useContext(ia),{prefixCls:c,className:s,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:p,blockNode:m=!1,children:h,checkable:g=!1,selectable:v=!0,draggable:b,motion:y,style:w}=e,x=o("tree",c),E=o(),C=null!=y?y:Object.assign(Object.assign({},Qs(E)),{motionAppear:!1}),S=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:u,motion:C,blockNode:m,showLine:Boolean(d),dropIndicatorRender:c$}),[O,k,N]=l$(x),[,$]=Ka(),I=$.paddingXS/2+((null===(r=$.Tree)||void 0===r?void 0:r.titleHeight)||$.controlHeightSM),_=t.useMemo((()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||t.createElement(jO,null)),e}),[b]);return O(t.createElement(e$,Object.assign({itemHeight:I,ref:n,virtual:a},S,{style:Object.assign(Object.assign({},null==l?void 0:l.style),w),prefixCls:x,className:Ze({[`${x}-icon-hide`]:!u,[`${x}-block-node`]:m,[`${x}-unselectable`]:!v,[`${x}-rtl`]:"rtl"===i},null==l?void 0:l.className,s,k,N),direction:i,checkable:g?t.createElement("span",{className:`${x}-checkbox-inner`}):g,selectable:v,switcherIcon:e=>t.createElement(s$,{prefixCls:x,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:e,showLine:d}),draggable:_}),h))}));"production"!==process.env.NODE_ENV&&(u$.displayName="Tree");function d$(e,t,n){const{key:r,children:o}=n;e.forEach((function(e){const i=e[r],a=e[o];!1!==t(i,e)&&d$(a||[],t,n)}))}function f$(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=0;if(r&&r===o)return[r];if(!r||!o)return[];return d$(t,(e=>{if(2===l)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&a.push(e);return n.includes(e)}),Wx(i)),a}function p$(e,t,n){const r=Qt(t),o=[];return d$(e,((e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length}),Wx(n)),o}var m$=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 h$(e){const{isLeaf:t,expanded:n}=e;return t?o.createElement(xO,null):n?o.createElement(NO,null):o.createElement(_O,null)}function g$(e){let{treeData:t,children:n}=e;return t||qx(n)}const v$=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=m$(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=o.useRef(),c=o.useRef(),[s,u]=o.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=o.useState((()=>(()=>{const{keyEntities:e}=Xx(g$(a));let t;return t=n?Object.keys(e):r?NN(a.expandedKeys||i||[],e):a.expandedKeys||i||[],t})()));o.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),o.useEffect((()=>{"expandedKeys"in a&&f(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:p,direction:m}=o.useContext(ia),{prefixCls:h,className:g,showIcon:v=!0,expandAction:b="click"}=a,y=m$(a,["prefixCls","className","showIcon","expandAction"]),w=p("tree",h),x=Ze(`${w}-directory`,{[`${w}-directory-rtl`]:"rtl"===m},g);return o.createElement(u$,Object.assign({icon:h$,ref:t,blockNode:!0},y,{showIcon:v,expandAction:b,prefixCls:w,className:x,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=a,{node:i,nativeEvent:s}=t,{key:f=""}=i,p=g$(a),m=Object.assign(Object.assign({},t),{selected:!0}),h=(null==s?void 0:s.ctrlKey)||(null==s?void 0:s.metaKey),g=null==s?void 0:s.shiftKey;let v;r&&h?(v=e,l.current=f,c.current=v,m.selectedNodes=p$(p,v,o)):r&&g?(v=Array.from(new Set([].concat(Qt(c.current||[]),Qt(f$({treeData:p,expandedKeys:d,startKey:f,endKey:l.current,fieldNames:o}))))),m.selectedNodes=p$(p,v,o)):(v=[f],l.current=f,c.current=v,m.selectedNodes=p$(p,v,o)),null===(n=a.onSelect)||void 0===n||n.call(a,v,m),"selectedKeys"in a||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||f(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))},b$=o.forwardRef(v$);"production"!==process.env.NODE_ENV&&(b$.displayName="DirectoryTree");const y$=u$;y$.DirectoryTree=b$,y$.TreeNode=bN;const w$=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?o.createElement("div",{className:`${r}-filter-dropdown-search`},o.createElement(YE,{prefix:o.createElement(Tv,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},x$=e=>{const{keyCode:t}=e;t===Jc.ENTER&&e.stopPropagation()},E$=o.forwardRef(((e,t)=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:x$,ref:t},e.children)));function C$(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat(Qt(t),Qt(C$(r))))})),t}function S$(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function O$(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map(((e,t)=>{const c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:O$({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l})};const s=i?sE:fx,u={key:void 0!==e.value?c:t,label:o.createElement(o.Fragment,null,o.createElement(s,{checked:r.includes(c)}),o.createElement("span",null,e.text))};return a.trim()?"function"==typeof l?l(a,e)?u:null:S$(a,e.text)?u:null:u}))}function k$(e){return e||[]}"production"!==process.env.NODE_ENV&&(E$.displayName="FilterDropdownMenuWrapper");const N$=e=>{var t,n;const{tablePrefixCls:r,prefixCls:i,column:a,dropdownPrefixCls:l,columnKey:c,filterOnClose:s,filterMultiple:u,filterMode:d="menu",filterSearch:f=!1,filterState:p,triggerFilter:m,locale:h,children:g,getPopupContainer:v,rootClassName:b}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:x,defaultFilteredValue:E,filterDropdownVisible:C,onFilterDropdownVisibleChange:S}=a,[O,k]=o.useState(!1),N=!(!p||!(null===(t=p.filteredKeys)||void 0===t?void 0:t.length)&&!p.forceFiltered),$=e=>{k(e),null==w||w(e),null==S||S(e)};if("production"!==process.env.NODE_ENV){const e=jo("Table");[["filterDropdownVisible","filterDropdownOpen",C],["onFilterDropdownVisibleChange","onFilterDropdownOpenChange",S]].forEach((t=>{let[n,r,o]=t;e.deprecated(null==o,n,r)}))}const I=null!==(n=null!=y?y:C)&&void 0!==n?n:O,_=null==p?void 0:p.filteredKeys,[R,P]=function(e){const t=o.useRef(e),n=Wv();return[()=>t.current,e=>{t.current=e,n()}]}(k$(_)),j=e=>{let{selectedKeys:t}=e;P(t)},A=(e,t)=>{let{node:n,checked:r}=t;j(u?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};o.useEffect((()=>{O&&j({selectedKeys:k$(_)})}),[_]);const[M,T]=o.useState([]),D=e=>{T(e)},[z,B]=o.useState(""),L=e=>{const{value:t}=e.target;B(t)};o.useEffect((()=>{O||B("")}),[O]);const H=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||p&&p.filteredKeys?Cn(t,null==p?void 0:p.filteredKeys,!0)?null:void m({column:a,key:c,filteredKeys:t}):null},F=()=>{$(!1),H(R())},V=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&H([]),t&&$(!1),B(""),P(x?(E||[]).map((e=>String(e))):[])},K=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&$(!1),H(R())},W=Ze({[`${l}-menu-without-submenu`]:(q=a.filters||[],!q.some((e=>{let{children:t}=e;return t})))});var q;const U=e=>{if(e.target.checked){const e=C$(null==a?void 0:a.filters).map((e=>String(e)));P(e)}else P([])},X=e=>{let{filters:t}=e;return(t||[]).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=X({filters:e.children})),r}))},G=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=>G(e))))||[]})};let Y;const{direction:Q,renderEmpty:J}=o.useContext(ia);if("function"==typeof a.filterDropdown)Y=a.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:R(),confirm:K,clearFilters:V,filters:a.filters,visible:I,close:()=>{$(!1)}});else if(a.filterDropdown)Y=a.filterDropdown;else{const e=R()||[],t=()=>{var t;const n=null!==(t=null==J?void 0:J("Table.filter"))&&void 0!==t?t:o.createElement(rv,{image:rv.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(a.filters||[]).length)return n;if("tree"===d)return o.createElement(o.Fragment,null,o.createElement(w$,{filterSearch:f,value:z,onChange:L,tablePrefixCls:r,locale:h}),o.createElement("div",{className:`${r}-filter-dropdown-tree`},u?o.createElement(sE,{checked:e.length===C$(a.filters).length,indeterminate:e.length>0&&e.length<C$(a.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:U},h.filterCheckall):null,o.createElement(y$,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:`${l}-menu`,onCheck:A,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:X({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:z.trim()?e=>"function"==typeof f?f(z,G(e)):S$(z,e.title):void 0})));const c=O$({filters:a.filters||[],filterSearch:f,prefixCls:i,filteredKeys:R(),filterMultiple:u,searchValue:z}),s=c.every((e=>null===e));return o.createElement(o.Fragment,null,o.createElement(w$,{filterSearch:f,value:z,onChange:L,tablePrefixCls:r,locale:h}),s?n:o.createElement(Fw,{selectable:!0,multiple:u,prefixCls:`${l}-menu`,className:W,onSelect:j,onDeselect:j,selectedKeys:e,getPopupContainer:v,openKeys:M,onOpenChange:D,items:c}))},n=()=>x?Cn((E||[]).map((e=>String(e))),e,!0):0===e.length;Y=o.createElement(o.Fragment,null,t(),o.createElement("div",{className:`${i}-dropdown-btns`},o.createElement(fd,{type:"link",size:"small",disabled:n(),onClick:()=>V()},h.filterReset),o.createElement(fd,{type:"primary",size:"small",onClick:F},h.filterConfirm)))}a.filterDropdown&&(Y=o.createElement(kw,{selectable:void 0},Y));let Z;return Z="function"==typeof a.filterIcon?a.filterIcon(N):a.filterIcon?a.filterIcon:o.createElement(SO,null),o.createElement("div",{className:`${i}-column`},o.createElement("span",{className:`${r}-column-title`},g),o.createElement(lC,{dropdownRender:()=>o.createElement(E$,{className:`${i}-dropdown`},Y),trigger:["click"],open:I,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==_&&P(k$(_)),$(e),e||a.filterDropdown||!s||F())},getPopupContainer:v,placement:"rtl"===Q?"bottomLeft":"bottomRight",rootClassName:b},o.createElement("span",{role:"button",tabIndex:-1,className:Ze(`${i}-trigger`,{active:N}),onClick:e=>{e.stopPropagation()}},Z)))},$$=(e,t,n)=>{let r=[];return(e||[]).forEach(((e,o)=>{var i;const a=DN(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:TN(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:TN(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(Qt(r),Qt($$(e.children,t,a))))})),r};function I$(e,t,n,r,i,a,l,c,s){return n.map(((n,u)=>{const d=DN(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:h}=n;let g=n;if(g.filters||g.filterDropdown){const c=TN(g,d),u=r.find((e=>{let{key:t}=e;return c===t}));g=Object.assign(Object.assign({},g),{title:r=>o.createElement(N$,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:h,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:s},zN(n.title,r))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:I$(e,t,g.children,r,i,a,l,d,s)})),g}))}const _$=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const i=n,{filters:a,filterDropdown:l}=o;if(l)t[i]=r||null;else if(Array.isArray(r)){const e=C$(a);t[i]=e.filter((e=>r.includes(String(e))))}else t[i]=null})),t},R$=(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=C$(i),l=a.findIndex((e=>String(e)===String(r))),c=-1!==l?a[l]:r;return e[n]&&(e[n]=R$(e[n],t,n)),o(c,e)})))):e}),e);return r},P$=e=>e.flatMap((e=>"children"in e?[e].concat(Qt(P$(e.children||[]))):[e])),j$=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:c}=e,s=jo("Table"),u=o.useMemo((()=>P$(r||[])),[r]),[d,f]=o.useState((()=>$$(u,!0))),p=o.useMemo((()=>{const e=$$(u,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:r}=e;void 0!==r?t=!1:n=!1})),t){const e=(u||[]).map(((e,t)=>TN(e,DN(t))));return d.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=u[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return"production"!==process.env.NODE_ENV&&s(n,"usage","Columns should all contain `filteredValue` or not contain `filteredValue`."),e}),[u,d]),m=o.useMemo((()=>_$(p)),[p]),h=e=>{const t=p.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),f(t),i(_$(t),t)};return[e=>I$(t,n,e,p,l,h,a,void 0,c),p,m]};var A$=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 M$=10;function T$(e,n,r){const o=r&&"object"==typeof r?r:{},{total:i=0}=o,a=A$(o,["total"]),[l,c]=t.useState((()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:M$}))),s=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const r=n[t];void 0!==r&&(e[t]=r)}))}return e}(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/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]}const D$="ascend",z$="descend",B$=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,L$=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,H$=(e,t,n)=>{let r=[];const o=(e,t)=>{r.push({column:e,key:TN(e,t),multiplePriority:B$(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=DN(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(Qt(r),Qt(H$(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:TN(e,a),multiplePriority:B$(e),sortOrder:e.defaultSortOrder}))})),r},F$=(e,t,n,r,i,a,l,c)=>{const s=(t||[]).map(((t,s)=>{const u=DN(s,c);let d=t;if(d.sorter){const c=d.sortDirections||i,s=void 0===d.showSorterTooltip?l:d.showSorterTooltip,f=TN(d,u),p=n.find((e=>{let{key:t}=e;return t===f})),m=p?p.sortOrder:null,h=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(c,m);let g;if(t.sortIcon)g=t.sortIcon({sortOrder:m});else{const t=c.includes(D$)&&o.createElement(hO,{className:Ze(`${e}-column-sorter-up`,{active:m===D$})}),n=c.includes(z$)&&o.createElement(fO,{className:Ze(`${e}-column-sorter-down`,{active:m===z$})});g=o.createElement("span",{className:Ze(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:b,triggerDesc:y}=a||{};let w=v;h===z$?w=y:h===D$&&(w=b);const x="object"==typeof s?Object.assign({title:w},s):{title:w};d=Object.assign(Object.assign({},d),{className:Ze(d.className,{[`${e}-column-sort`]:m}),title:n=>{const r=`${e}-column-sorters`,i=o.createElement("span",{className:`${e}-column-title`},zN(t.title,n)),a=o.createElement("div",{className:r},i,g);return s?"boolean"!=typeof s&&"sorter-icon"===(null==s?void 0:s.target)?o.createElement("div",{className:`${r} ${e}-column-sorters-tooltip-target-sorter`},i,o.createElement(yb,Object.assign({},x),g)):o.createElement(yb,Object.assign({},x),a):a},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:h,multiplePriority:B$(t)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===Jc.ENTER&&(r({column:t,key:f,sortOrder:h,multiplePriority:B$(t)}),null==l||l(e))};const c=((e,t)=>{const n=zN(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=Ze(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:F$(e,d.children,n,r,i,a,l,u)})),d}));return s},V$=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},K$=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(V$);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},V$(e[t])),{column:void 0})}return t.length<=1?t[0]||{}:t},W$=(e,t,n)=>{const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),i=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return L$(t)&&n}));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=L$(o);if(l&&a){const n=l(e,t,a);if(0!==n)return a===D$?n:-n}}return 0})).map((e=>{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:W$(r,t,n)}):e})):o},q$=(e,t)=>{const n=e.map((e=>{const n=Object.assign({},e);return n.title=zN(e.title,t),"children"in n&&(n.children=q$(n.children,t)),n}));return n},U$=Qk(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),X$=uN(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),G$=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s=`${Vn(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:`${Vn(c(r).mul(-1).equal())}\n ${Vn(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:`${Vn(c(a).mul(-1).equal())} ${Vn(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 ${Vn(n)} 0 ${Vn(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}},Y$=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},qa),{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"}})}}},Q$=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}}}}},J$=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:h,expandIconSize:g,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,w=`${Vn(o)} ${a} ${l}`,x=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({},Wa(e)),{position:"relative",float:"left",boxSizing:"border-box",width:g,height:g,padding:0,color:"inherit",lineHeight:Vn(g),background:c,border:w,borderRadius:u,transform:`scale(${b})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:x,insetInlineStart:x,height:o},"&::after":{top:x,bottom:x,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:h,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:`${Vn(y(d).mul(-1).equal())} ${Vn(y(f).mul(-1).equal())}`,padding:`${Vn(d)} ${Vn(f)}`}}}},Z$=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:h,motionDurationSlow:g,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:w,tableFilterDropdownBg:x,tableFilterDropdownHeight:E,controlItemBgHover:C,controlItemBgActive:S,boxShadowSecondary:O,filterDropdownMenuBg:k,calc:N}=e,$=`${n}-dropdown`,I=`${t}-filter-dropdown`,_=`${n}-tree`,R=`${Vn(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(a).mul(-1).equal(),marginInline:`${Vn(a)} ${Vn(N(m).div(2).mul(-1).equal())}`,padding:`0 ${Vn(a)}`,color:f,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[I]:Object.assign(Object.assign({},Ua(e)),{minWidth:o,backgroundColor:x,borderRadius:h,boxShadow:O,overflow:"hidden",[`${$}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${Vn(l)} 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${I}-tree`]:{paddingBlock:`${Vn(l)} 0`,paddingInline:l,[_]:{padding:0},[`${_}-treenode ${_}-node-content-wrapper:hover`]:{backgroundColor:C},[`${_}-treenode-checkbox-checked ${_}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${I}-search`]:{padding:l,borderBottom:R,"&-input":{input:{minWidth:i},[r]:{color:w}}},[`${I}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${I}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Vn(N(l).sub(s).equal())} ${Vn(l)}`,overflow:"hidden",borderTop:R}})}},{[`${n}-dropdown ${I}, ${I}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},eI=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"},[`${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"}}}}},tI=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Vn(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},nI=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Vn(n)} ${Vn(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 ${Vn(n)} ${Vn(n)}`}}}}},rI=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"}}}}},oI=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:Vn(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}}}}}},iI=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:`${Vn(o)} ${Vn(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Vn(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Vn(r(o).mul(-1).equal())} ${Vn(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Vn(r(o).mul(-1).equal()),marginInline:`${Vn(r(n).sub(i).equal())} ${Vn(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Vn(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))}},aI=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}`,"&: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},[`${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}}}},lI=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=`${Vn(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Vn(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 none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},cI=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${Vn(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 ${Vn(o(n).mul(-1).equal())} 0 ${r}`}}}},sI=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${Vn(r)} ${o} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{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) - ${Vn(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}}}}}},uI=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:h,tableFooterTextColor:g,tableFooterBg:v,calc:b}=e,y=`${Vn(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},Ua(e)),{fontSize:s,background:u,borderRadius:`${Vn(d)} ${Vn(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Vn(d)} ${Vn(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:`${Vn(r)} ${Vn(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Vn(r)} ${Vn(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:h,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:Vn(b(r).mul(-1).equal()),marginInline:`${Vn(b(i).sub(o).equal())}\n ${Vn(b(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom: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}-footer`]:{padding:`${Vn(r)} ${Vn(o)}`,color:g,background:v}})}};var dI=Ja("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:h,cellPaddingBlockMD:g,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:w,footerBg:x,footerColor:E,headerBorderRadius:C,cellFontSize:S,cellFontSizeMD:O,cellFontSizeSM:k,headerSplitColor:N,fixedHeaderSortActiveBg:$,headerFilterHoverBg:I,filterDropdownBg:_,expandIconBg:R,selectionColumnWidth:P,stickyScrollBarBg:j,calc:A}=e,M=ka(e,{tableFontSize:S,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:w,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:E,tableFooterBg:x,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:$,tableHeaderFilterActiveBg:I,tableFilterDropdownBg:_,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:A(2).add(1).equal({unit:!1}),tableFontSizeMiddle:O,tableFontSizeSmall:k,tableSelectionColumnWidth:P,tableExpandIconBg:R,tableExpandColumnWidth:A(o).add(A(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:j,tableScrollThumbBgHover:t,tableScrollBg:n});return[uI(M),tI(M),cI(M),aI(M),Z$(M),G$(M),nI(M),J$(M),cI(M),Q$(M),oI(M),eI(M),lI(M),Y$(M),iI(M),rI(M),sI(M)]}),(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:h,fontSizeSM:g,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:w,opacityLoading:x,controlInteractiveSize:E}=e,C=new mi(o).onBackground(n).toHexShortString(),S=new mi(i).onBackground(n).toHexShortString(),O=new mi(t).onBackground(n).toHexShortString(),k=new mi(y),N=new mi(w),$=E/2-b,I=2*$+3*b;return{headerBg:O,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:S,bodySortBg:O,rowHoverBg:O,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:O,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*v-3*b)/2-Math.ceil((1.4*g-3*b)/2),headerIconColor:k.clone().setAlpha(k.getAlpha()*x).toRgbString(),headerIconHoverColor:N.clone().setAlpha(N.getAlpha()*x).toRgbString(),expandIconHalfInner:$,expandIconSize:I,expandIconScale:E/I}}),{unitless:{expandIconScale:!0}});const fI=[],pI=(e,t)=>{var n,r;const{prefixCls:i,className:a,rootClassName:l,style:c,size:s,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:p,rowSelection:m,rowKey:h="key",rowClassName:g,columns:v,children:b,childrenColumnName:y,onChange:w,getPopupContainer:x,loading:E,expandIcon:C,expandable:S,expandedRowRender:O,expandIconColumnIndex:k,indentSize:N,scroll:$,sortDirections:I,locale:_,showSorterTooltip:R={target:"full-header"},virtual:P}=e,j=jo("Table");"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&j(!("function"==typeof h&&h.length>1),"usage","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");const A=o.useMemo((()=>v||Ak(b)),[v,b]),M=qv(o.useMemo((()=>A.some((e=>e.responsive))),[A])),T=o.useMemo((()=>{const e=new Set(Object.keys(M).filter((e=>M[e])));return A.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[A,M]),D=Ut(e,["className","style","columns"]),{locale:z=Ho,direction:B,table:L,renderEmpty:H,getPrefixCls:F,getPopupContainer:V}=o.useContext(ia),K=su(s),W=Object.assign(Object.assign({},z.Table),_),q=f||fI,U=F("table",i),X=F("dropdown",d),[,G]=Ka(),Y=Qc(U),[Q,J,Z]=dI(U,Y),ee=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:k},S),{expandIcon:null!==(n=null==S?void 0:S.expandIcon)&&void 0!==n?n:null===(r=null==L?void 0:L.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:te="children"}=ee,ne=o.useMemo((()=>q.some((e=>null==e?void 0:e[te]))?"nest":O||(null==S?void 0:S.expandedRowRender)?"row":null),[q]),re={body:o.useRef()},oe=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(U),ie=o.useRef(null),ae=o.useRef(null);MN(t,(()=>Object.assign(Object.assign({},ae.current),{nativeElement:ie.current})));const le=o.useMemo((()=>"function"==typeof h?h:e=>null==e?void 0:e[h]),[h]),[ce]=((e,t,n)=>{const r=o.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)}]})(q,te,le),se={},ue=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,i,a;const l=Object.assign(Object.assign({},se),e);n&&(null===(r=se.resetPagination)||void 0===r||r.call(se),(null===(o=l.pagination)||void 0===o?void 0:o.current)&&(l.pagination.current=1),p&&(null===(i=p.onChange)||void 0===i||i.call(p,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),$&&!1!==$.scrollToFirstRowOnChange&&re.body.current&&Yc(0,{getContainer:()=>re.body.current}),null==w||w(l.pagination,l.filters,l.sorter,{currentDataSource:R$(W$(q,l.sorterStates,te),l.filterStates,te),action:t})},[de,fe,pe,me]=(e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:l}=e,[c,s]=o.useState(H$(n,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,r)=>{const o=DN(r,t);if(n.push(TN(e,o)),Array.isArray(e.children)){const t=u(e.children,o);n.push.apply(n,Qt(t))}})),n},d=o.useMemo((()=>{let e=!0;const t=H$(n,!1);if(!t.length){const e=u(n);return c.filter((t=>{let{key:n}=t;return e.includes(n)}))}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=o.useMemo((()=>{var e,t;const n=d.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));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(Qt(d.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),l(K$(t),t)};return[e=>F$(t,e,d,p,r,i,a),d,f,()=>K$(d)]})({prefixCls:U,mergedColumns:T,onSorterChange:(e,t)=>{ue({sorter:e,sorterStates:t},"sort",!1)},sortDirections:I||["ascend","descend"],tableLocale:W,showSorterTooltip:R}),he=o.useMemo((()=>W$(q,fe,te)),[q,fe]);se.sorter=me(),se.sorterStates=fe;const[ge,ve,be]=j$({prefixCls:U,locale:W,dropdownPrefixCls:X,mergedColumns:T,onFilterChange:(e,t)=>{ue({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x||V,rootClassName:Ze(l,Y)}),ye=R$(he,ve,te);se.filters=be,se.filterStates=ve;const we=o.useMemo((()=>{const e={};return Object.keys(be).forEach((t=>{null!==be[t]&&(e[t]=be[t])})),Object.assign(Object.assign({},pe),{filters:e})}),[pe,be]),[xe]=(e=>[o.useCallback((t=>q$(t,e)),[e])])(we),[Ee,Ce]=T$(ye.length,((e,t)=>{ue({pagination:Object.assign(Object.assign({},se.pagination),{current:e,pageSize:t})},"paginate")}),p);se.pagination=!1===p?{}: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}(Ee,p),se.resetPagination=Ce;const Se=o.useMemo((()=>{if(!1===p||!Ee.pageSize)return ye;const{current:e=1,total:t,pageSize:n=M$}=Ee;return"production"!==process.env.NODE_ENV&&j(e>0,"usage","`current` should be positive number."),ye.length<t?ye.length>n?("production"!==process.env.NODE_ENV&&j(!1,"usage","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),ye.slice((e-1)*n,e*n)):ye:ye.slice((e-1)*n,e*n)}),[!!p,ye,null==Ee?void 0:Ee.current,null==Ee?void 0:Ee.pageSize,null==Ee?void 0:Ee.total]),[Oe,ke]=AN({prefixCls:U,data:ye,pageData:Se,getRowKey:le,getRecordByKey:ce,expandType:ne,childrenColumnName:te,locale:W,getPopupContainer:x||V},m);ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||C||function(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:l}=t,c=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:Ze(c,{[`${c}-spaced`]:!l,[`${c}-expanded`]:l&&a,[`${c}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}(W),"nest"===ne&&void 0===ee.expandIconColumnIndex?ee.expandIconColumnIndex=m?1:0:ee.expandIconColumnIndex>0&&m&&(ee.expandIconColumnIndex-=1),"number"!=typeof ee.indentSize&&(ee.indentSize="number"==typeof N?N:15);const Ne=o.useCallback((e=>xe(Oe(ge(de(e))))),[de,ge,Oe]);let $e,Ie,_e;if(!1!==p&&(null==Ee?void 0:Ee.total)){let e;e=Ee.size?Ee.size:"small"===K||"middle"===K?"small":void 0;const t=t=>o.createElement(jS,Object.assign({},Ee,{className:Ze(`${U}-pagination ${U}-pagination-${t}`,Ee.className),size:e})),n="rtl"===B?"left":"right",{position:r}=Ee;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),o=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||o||i||(Ie=t(n)),e&&($e=t(e.toLowerCase().replace("top",""))),o&&(Ie=t(o.toLowerCase().replace("bottom","")))}else Ie=t(n)}"boolean"==typeof E?_e={spinning:E}:"object"==typeof E&&(_e=Object.assign({spinning:!0},E));const Re=Ze(Z,Y,`${U}-wrapper`,null==L?void 0:L.className,{[`${U}-wrapper-rtl`]:"rtl"===B},a,l,J),Pe=Object.assign(Object.assign({},null==L?void 0:L.style),c),je=void 0!==(null==_?void 0:_.emptyText)?_.emptyText:(null==H?void 0:H("Table"))||o.createElement(ov,{componentName:"Table"}),Ae=P?X$:U$,Me={},Te=o.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=G,i=Math.floor(e*t);switch(K){case"large":return 2*n+i;case"small":return 2*r+i;default:return 2*o+i}}),[G,K]);return P&&(Me.listItemHeight=Te),Q(o.createElement("div",{ref:ie,className:Re,style:Pe},o.createElement(qS,Object.assign({spinning:!1},_e),$e,o.createElement(Ae,Object.assign({},Me,D,{ref:ae,columns:T,direction:B,expandable:ee,prefixCls:U,className:Ze({[`${U}-middle`]:"middle"===K,[`${U}-small`]:"small"===K,[`${U}-bordered`]:u,[`${U}-empty`]:0===q.length},Z,Y,J),data:Se,rowKey:le,rowClassName:(e,t,n)=>{let r;return r=Ze("function"==typeof g?g(e,t,n):g),Ze({[`${U}-row-selected`]:ke.has(le(e,t))},r)},emptyText:je,internalHooks:HO,internalRefs:re,transformColumns:Ne,getContainerWidth:oe})),Ie)))};var mI=o.forwardRef(pI);const hI=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(mI,Object.assign({},e,{ref:t,_renderTimes:n.current}))},gI=o.forwardRef(hI);function vI(e,t){return function(){return e.apply(t,arguments)}}gI.SELECTION_COLUMN=$N,gI.EXPAND_COLUMN=LO,gI.SELECTION_ALL=IN,gI.SELECTION_INVERT=_N,gI.SELECTION_NONE=RN,gI.Column=e=>null,gI.ColumnGroup=e=>null,gI.Summary=uk,"production"!==process.env.NODE_ENV&&(gI.displayName="Table");const{toString:bI}=Object.prototype,{getPrototypeOf:yI}=Object,wI=(e=>t=>{const n=bI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xI=e=>(e=e.toLowerCase(),t=>wI(t)===e),EI=e=>t=>typeof t===e,{isArray:CI}=Array,SI=EI("undefined");const OI=xI("ArrayBuffer");const kI=EI("string"),NI=EI("function"),$I=EI("number"),II=e=>null!==e&&"object"==typeof e,_I=e=>{if("object"!==wI(e))return!1;const t=yI(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},RI=xI("Date"),PI=xI("File"),jI=xI("Blob"),AI=xI("FileList"),MI=xI("URLSearchParams"),[TI,DI,zI,BI]=["ReadableStream","Request","Response","Headers"].map(xI);function LI(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),CI(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function HI(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const FI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,VI=e=>!SI(e)&&e!==FI;const KI=(WI="undefined"!=typeof Uint8Array&&yI(Uint8Array),e=>WI&&e instanceof WI);var WI;const qI=xI("HTMLFormElement"),UI=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),XI=xI("RegExp"),GI=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};LI(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},YI="abcdefghijklmnopqrstuvwxyz",QI="0123456789",JI={DIGIT:QI,ALPHA:YI,ALPHA_DIGIT:YI+YI.toUpperCase()+QI};const ZI=xI("AsyncFunction"),e_=(t_="function"==typeof setImmediate,n_=NI(FI.postMessage),t_?setImmediate:n_?((e,t)=>(FI.addEventListener("message",(({source:n,data:r})=>{n===FI&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),FI.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var t_,n_;const r_="undefined"!=typeof queueMicrotask?queueMicrotask.bind(FI):"undefined"!=typeof process&&process.nextTick||e_;var o_={isArray:CI,isArrayBuffer:OI,isBuffer:function(e){return null!==e&&!SI(e)&&null!==e.constructor&&!SI(e.constructor)&&NI(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||NI(e.append)&&("formdata"===(t=wI(e))||"object"===t&&NI(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&OI(e.buffer),t},isString:kI,isNumber:$I,isBoolean:e=>!0===e||!1===e,isObject:II,isPlainObject:_I,isReadableStream:TI,isRequest:DI,isResponse:zI,isHeaders:BI,isUndefined:SI,isDate:RI,isFile:PI,isBlob:jI,isRegExp:XI,isFunction:NI,isStream:e=>II(e)&&NI(e.pipe),isURLSearchParams:MI,isTypedArray:KI,isFileList:AI,forEach:LI,merge:function e(){const{caseless:t}=VI(this)&&this||{},n={},r=(r,o)=>{const i=t&&HI(n,o)||o;_I(n[i])&&_I(r)?n[i]=e(n[i],r):_I(r)?n[i]=e({},r):CI(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&LI(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(LI(t,((t,r)=>{n&&NI(t)?e[r]=vI(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&yI(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:wI,kindOfTest:xI,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(CI(e))return e;let t=e.length;if(!$I(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:qI,hasOwnProperty:UI,hasOwnProp:UI,reduceDescriptors:GI,freezeMethods:e=>{GI(e,((t,n)=>{if(NI(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];NI(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return CI(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:HI,global:FI,isContextDefined:VI,ALPHABET:JI,generateString:(e=16,t=JI.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&NI(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(II(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=CI(e)?[]:{};return LI(e,((e,t)=>{const i=n(e,r+1);!SI(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ZI,isThenable:e=>e&&(II(e)||NI(e))&&NI(e.then)&&NI(e.catch),setImmediate:e_,asap:r_};function i_(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}o_.inherits(i_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:o_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const a_=i_.prototype,l_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{l_[e]={value:e}})),Object.defineProperties(i_,l_),Object.defineProperty(a_,"isAxiosError",{value:!0}),i_.from=(e,t,n,r,o,i)=>{const a=Object.create(a_);return o_.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),i_.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function c_(e){return o_.isPlainObject(e)||o_.isArray(e)}function s_(e){return o_.endsWith(e,"[]")?e.slice(0,-2):e}function u_(e,t,n){return e?e.concat(t).map((function(e,t){return e=s_(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const d_=o_.toFlatObject(o_,{},null,(function(e){return/^is[A-Z]/.test(e)}));function f_(e,t,n){if(!o_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=o_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!o_.isUndefined(t[e])}))).metaTokens,o=n.visitor||s,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&o_.isSpecCompliantForm(t);if(!o_.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(o_.isDate(e))return e.toISOString();if(!l&&o_.isBlob(e))throw new i_("Blob is not supported. Use a Buffer instead.");return o_.isArrayBuffer(e)||o_.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(o_.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(o_.isArray(e)&&function(e){return o_.isArray(e)&&!e.some(c_)}(e)||(o_.isFileList(e)||o_.endsWith(n,"[]"))&&(l=o_.toArray(e)))return n=s_(n),l.forEach((function(e,r){!o_.isUndefined(e)&&null!==e&&t.append(!0===a?u_([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!c_(e)||(t.append(u_(o,n,i),c(e)),!1)}const u=[],d=Object.assign(d_,{defaultVisitor:s,convertValue:c,isVisitable:c_});if(!o_.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!o_.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),o_.forEach(n,(function(n,i){!0===(!(o_.isUndefined(n)||null===n)&&o.call(t,n,o_.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function p_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function m_(e,t){this._pairs=[],e&&f_(e,this,t)}const h_=m_.prototype;function g_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function v_(e,t,n){if(!t)return e;const r=n&&n.encode||g_,o=n&&n.serialize;let i;if(i=o?o(t,n):o_.isURLSearchParams(t)?t.toString():new m_(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}h_.append=function(e,t){this._pairs.push([e,t])},h_.toString=function(e){const t=e?function(t){return e.call(this,t,p_)}:p_;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class b_{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){o_.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var y_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},w_={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:m_,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const x_="undefined"!=typeof window&&"undefined"!=typeof document,E_=(C_="undefined"!=typeof navigator&&navigator.product,x_&&["ReactNative","NativeScript","NS"].indexOf(C_)<0);var C_;const S_="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,O_=x_&&window.location.href||"http://localhost";var k_={...Object.freeze({__proto__:null,hasBrowserEnv:x_,hasStandardBrowserEnv:E_,hasStandardBrowserWebWorkerEnv:S_,origin:O_}),...w_};function N_(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),l=o>=e.length;if(i=!i&&o_.isArray(r)?r.length:i,l)return o_.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&o_.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&o_.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(o_.isFormData(e)&&o_.isFunction(e.entries)){const n={};return o_.forEachEntry(e,((e,r)=>{t(function(e){return o_.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const $_={transitional:y_,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=o_.isObject(e);o&&o_.isHTMLForm(e)&&(e=new FormData(e));if(o_.isFormData(e))return r?JSON.stringify(N_(e)):e;if(o_.isArrayBuffer(e)||o_.isBuffer(e)||o_.isStream(e)||o_.isFile(e)||o_.isBlob(e)||o_.isReadableStream(e))return e;if(o_.isArrayBufferView(e))return e.buffer;if(o_.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return f_(e,new k_.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return k_.isNode&&o_.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=o_.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return f_(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(o_.isString(e))try{return(t||JSON.parse)(e),o_.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$_.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(o_.isResponse(e)||o_.isReadableStream(e))return e;if(e&&o_.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw i_.from(e,i_.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:k_.classes.FormData,Blob:k_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};o_.forEach(["delete","get","head","post","put","patch"],(e=>{$_.headers[e]={}}));const I_=o_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const __=Symbol("internals");function R_(e){return e&&String(e).trim().toLowerCase()}function P_(e){return!1===e||null==e?e:o_.isArray(e)?e.map(P_):String(e)}function j_(e,t,n,r,o){return o_.isFunction(r)?r.call(this,t,n):(o&&(t=n),o_.isString(t)?o_.isString(r)?-1!==t.indexOf(r):o_.isRegExp(r)?r.test(t):void 0:void 0)}class A_{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=R_(t);if(!o)throw new Error("header name must be a non-empty string");const i=o_.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=P_(e))}const i=(e,t)=>o_.forEach(e,((e,n)=>o(e,n,t)));if(o_.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(o_.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&I_[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(o_.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=R_(e)){const n=o_.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(o_.isFunction(t))return t.call(this,e,n);if(o_.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=R_(e)){const n=o_.findKey(this,e);return!(!n||void 0===this[n]||t&&!j_(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=R_(e)){const o=o_.findKey(n,e);!o||t&&!j_(0,n[o],o,t)||(delete n[o],r=!0)}}return o_.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!j_(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return o_.forEach(this,((r,o)=>{const i=o_.findKey(n,o);if(i)return t[i]=P_(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=P_(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return o_.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&o_.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[__]=this[__]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=R_(e);t[r]||(!function(e,t){const n=o_.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return o_.isArray(e)?e.forEach(r):r(e),this}}function M_(e,t){const n=this||$_,r=t||n,o=A_.from(r.headers);let i=r.data;return o_.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function T_(e){return!(!e||!e.__CANCEL__)}function D_(e,t,n){i_.call(this,null==e?"canceled":e,i_.ERR_CANCELED,t,n),this.name="CanceledError"}function z_(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new i_("Request failed with status code "+n.status,[i_.ERR_BAD_REQUEST,i_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}A_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),o_.reduceDescriptors(A_.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),o_.freezeMethods(A_),o_.inherits(D_,i_,{__CANCEL__:!0});const B_=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(l){const c=Date.now(),s=r[a];o||(o=c),n[i]=l,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const f=s&&c-s;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),l=t-o;l>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-l)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,l=i-r,c=o(l);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},L_=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},H_=e=>(...t)=>o_.asap((()=>e(...t)));var F_=k_.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=o_.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},V_=k_.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];o_.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),o_.isString(r)&&a.push("path="+r),o_.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function K_(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const W_=e=>e instanceof A_?{...e}:e;function q_(e,t){t=t||{};const n={};function r(e,t,n){return o_.isPlainObject(e)&&o_.isPlainObject(t)?o_.merge.call({caseless:n},e,t):o_.isPlainObject(t)?o_.merge({},t):o_.isArray(t)?t.slice():t}function o(e,t,n){return o_.isUndefined(t)?o_.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!o_.isUndefined(t))return r(void 0,t)}function a(e,t){return o_.isUndefined(t)?o_.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t)=>o(W_(e),W_(t),!0)};return o_.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,a=i(e[r],t[r],r);o_.isUndefined(a)&&i!==l||(n[r]=a)})),n}var U_=e=>{const t=q_({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:l,auth:c}=t;if(t.headers=l=A_.from(l),t.url=v_(K_(t.baseURL,t.url),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),o_.isFormData(r))if(k_.hasStandardBrowserEnv||k_.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(!1!==(n=l.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];l.setContentType([e||"multipart/form-data",...t].join("; "))}if(k_.hasStandardBrowserEnv&&(o&&o_.isFunction(o)&&(o=o(t)),o||!1!==o&&F_(t.url))){const e=i&&a&&V_.read(a);e&&l.set(i,e)}return t};var X_="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=U_(e);let o=r.data;const i=A_.from(r.headers).normalize();let a,l,c,s,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function m(){s&&s(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=A_.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());z_((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new i_("Request aborted",i_.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new i_("Network Error",i_.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||y_;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new i_(t,o.clarifyTimeoutError?i_.ETIMEDOUT:i_.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&o_.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),o_.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),p&&([c,u]=B_(p,!0),h.addEventListener("progress",c)),f&&h.upload&&([l,s]=B_(f),h.upload.addEventListener("progress",l),h.upload.addEventListener("loadend",s)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new D_(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===k_.protocols.indexOf(v)?n(new i_("Unsupported protocol "+v+":",i_.ERR_BAD_REQUEST,e)):h.send(o||null)}))};const G_=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof i_?t:new D_(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new i_(`timeout ${t} of ms exceeded`,i_.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:l}=r;return l.unsubscribe=a,[l,()=>{i&&clearTimeout(i),i=null}]},Y_=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Q_=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Y_(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,l=0,c=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return c(),void e.close();let o=r.byteLength;if(n){let e=l+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},J_="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Z_=J_&&"function"==typeof ReadableStream,eR=J_&&("function"==typeof TextEncoder?(tR=new TextEncoder,e=>tR.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var tR;const nR=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},rR=Z_&&nR((()=>{let e=!1;const t=new Request(k_.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),oR=Z_&&nR((()=>o_.isReadableStream(new Response("").body))),iR={stream:oR&&(e=>e.body)};var aR;J_&&(aR=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!iR[e]&&(iR[e]=o_.isFunction(aR[e])?t=>t[e]():(t,n)=>{throw new i_(`Response type '${e}' is not supported`,i_.ERR_NOT_SUPPORT,n)})})));const lR=async(e,t)=>{const n=o_.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:o_.isBlob(e)?e.size:o_.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:o_.isArrayBufferView(e)||o_.isArrayBuffer(e)?e.byteLength:(o_.isURLSearchParams(e)&&(e+=""),o_.isString(e)?(await eR(e)).byteLength:void 0))(t):n};var cR=J_&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:c,responseType:s,headers:u,withCredentials:d="same-origin",fetchOptions:f}=U_(e);s=s?(s+"").toLowerCase():"text";let p,m,[h,g]=o||i||a?G_([o,i],a):[];const v=()=>{!p&&setTimeout((()=>{h&&h.unsubscribe()})),p=!0};let b;try{if(c&&rR&&"get"!==n&&"head"!==n&&0!==(b=await lR(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(o_.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=L_(b,B_(H_(c)));r=Q_(n.body,65536,e,t,eR)}}o_.isString(d)||(d=d?"include":"omit"),m=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(m);const i=oR&&("stream"===s||"response"===s);if(oR&&(l||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=o_.toFiniteNumber(o.headers.get("content-length")),[n,r]=l&&L_(t,B_(H_(l),!0))||[];o=new Response(Q_(o.body,65536,n,(()=>{r&&r(),i&&v()}),eR),e)}s=s||"text";let a=await iR[o_.findKey(iR,s)||"text"](o,e);return!i&&v(),g&&g(),await new Promise(((t,n)=>{z_(t,n,{data:a,headers:A_.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(t){if(v(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new i_("Network Error",i_.ERR_NETWORK,e,m),{cause:t.cause||t});throw i_.from(t,t&&t.code,e,m)}});const sR={http:null,xhr:X_,fetch:cR};o_.forEach(sR,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const uR=e=>`- ${e}`,dR=e=>o_.isFunction(e)||null===e||!1===e;var fR=e=>{e=o_.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!dR(n)&&(r=sR[(t=String(n)).toLowerCase()],void 0===r))throw new i_(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new i_("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(uR).join("\n"):" "+uR(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function pR(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new D_(null,e)}function mR(e){pR(e),e.headers=A_.from(e.headers),e.data=M_.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return fR(e.adapter||$_.adapter)(e).then((function(t){return pR(e),t.data=M_.call(e,e.transformResponse,t),t.headers=A_.from(t.headers),t}),(function(t){return T_(t)||(pR(e),t&&t.response&&(t.response.data=M_.call(e,e.transformResponse,t.response),t.response.headers=A_.from(t.response.headers))),Promise.reject(t)}))}const hR="1.7.4",gR={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{gR[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const vR={};gR.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new i_(r(o," has been removed"+(t?" in "+t:"")),i_.ERR_DEPRECATED);return t&&!vR[o]&&(vR[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var bR={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i_("options must be an object",i_.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new i_("option "+i+" must be "+n,i_.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i_("Unknown option "+i,i_.ERR_BAD_OPTION)}},validators:gR};const yR=bR.validators;class wR{constructor(e){this.defaults=e,this.interceptors={request:new b_,response:new b_}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=q_(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&bR.assertOptions(n,{silentJSONParsing:yR.transitional(yR.boolean),forcedJSONParsing:yR.transitional(yR.boolean),clarifyTimeoutError:yR.transitional(yR.boolean)},!1),null!=r&&(o_.isFunction(r)?t.paramsSerializer={serialize:r}:bR.assertOptions(r,{encode:yR.function,serialize:yR.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&o_.merge(o.common,o[t.method]);o&&o_.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=A_.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let s;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!l){const e=[mR.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,s=Promise.resolve(t);d<u;)s=s.then(e[d++],e[d++]);return s}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{s=mR.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=c.length;d<u;)s=s.then(c[d++],c[d++]);return s}getUri(e){return v_(K_((e=q_(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}o_.forEach(["delete","get","head","options"],(function(e){wR.prototype[e]=function(t,n){return this.request(q_(n||{},{method:e,url:t,data:(n||{}).data}))}})),o_.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(q_(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}wR.prototype[e]=t(),wR.prototype[e+"Form"]=t(!0)}));class xR{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new D_(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new xR((function(t){e=t})),cancel:e}}}const ER={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ER).forEach((([e,t])=>{ER[t]=e}));const CR=function e(t){const n=new wR(t),r=vI(wR.prototype.request,n);return o_.extend(r,wR.prototype,n,{allOwnKeys:!0}),o_.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(q_(t,n))},r}($_);CR.Axios=wR,CR.CanceledError=D_,CR.CancelToken=xR,CR.isCancel=T_,CR.VERSION=hR,CR.toFormData=f_,CR.AxiosError=i_,CR.Cancel=CR.CanceledError,CR.all=function(e){return Promise.all(e)},CR.spread=function(e){return function(t){return e.apply(null,t)}},CR.isAxiosError=function(e){return o_.isObject(e)&&!0===e.isAxiosError},CR.mergeConfig=q_,CR.AxiosHeaders=A_,CR.formToJSON=e=>N_(o_.isHTMLForm(e)?new FormData(e):e),CR.getAdapter=fR,CR.HttpStatusCode=ER,CR.default=CR;var SR,OR={timeout:3e4},kR=new(function(){function e(e){var t=e.getAccessToken,n=e.onUnauthorized,r=l(e,["getAccessToken","onUnauthorized"]);this.axiosInstance=CR.create(a(a({},OR),r)),this.axiosInstance.interceptors.request.use(this.requestInterceptor.bind(this)),this.axiosInstance.interceptors.response.use(this.responseSuccessInterceptor.bind(this),this.responseErrorInterceptor.bind(this)),this.getAccessToken=t,this.onUnauthorized=n}return e.prototype.requestInterceptor=function(e){return c(this,void 0,void 0,(function(){var t,n;return s(this,(function(r){switch(r.label){case 0:return[4,null===(n=this.getAccessToken)||void 0===n?void 0:n.call(this)];case 1:return(t=r.sent())&&(t.startsWith("Bearer ")?e.headers.Authorization=t:e.headers.Authorization="Bearer ".concat(t)),[2,Promise.resolve(e)]}}))}))},e.prototype.responseSuccessInterceptor=function(e){return c(this,void 0,void 0,(function(){var t,n,r,o;return s(this,(function(i){return t=e.data,n=t.code,r=t.data,o=t.message,0===n?[2,Promise.resolve(r)]:(nO.error(o||"服务器内部错误"),[2,Promise.reject(o||"服务器内部错误")])}))}))},e.prototype.responseErrorInterceptor=function(e){return c(this,void 0,void 0,(function(){var t,n,r,o;return s(this,(function(i){return t=(null==e?void 0:e.response)||{},n=t.status,r=t.data,401===n?(nO.error("登录已过期,请重新登录"),null===(o=this.onUnauthorized)||void 0===o||o.call(this)):404===n?nO.error("请求的资源不存在"):nO.error((null==r?void 0:r.message)||"服务器内部错误"),[2,Promise.reject(e)]}))}))},e.prototype.get=function(e,t,n){return this.axiosInstance.get(e,a({params:t},n))},e.prototype.post=function(e,t,n){return this.axiosInstance.post(e,t,n)},e.prototype.put=function(e,t,n){return this.axiosInstance.put(e,t,n)},e.prototype.delete=function(e,t,n){return this.axiosInstance.delete(e,a({params:t},n))},e}())({baseURL:"/api/icos/desktop",getAccessToken:function(){var e,t;return null===(t=null===(e=window._ICOS_DESKTOP_)||void 0===e?void 0:e.getAccessToken)||void 0===t?void 0:t.call(e)}});function NR(){return NR=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},NR.apply(null,arguments)}var $R=function(e){return o.createElement("svg",NR({xmlns:"http://www.w3.org/2000/svg",width:21,height:20,fill:"none"},e),SR||(SR=o.createElement("path",{fill:"#3CF0E1",d:"m17.65 6.433-4.374-4.375a.63.63 0 0 0-.442-.183h-7.5a1.25 1.25 0 0 0-1.25 1.25v13.75a1.25 1.25 0 0 0 1.25 1.25h11.25a1.25 1.25 0 0 0 1.25-1.25v-10a.63.63 0 0 0-.183-.442M13.46 13.75h-5a.625.625 0 1 1 0-1.25h5a.624.624 0 1 1 0 1.25m0-2.5h-5a.625.625 0 1 1 0-1.25h5a.624.624 0 1 1 0 1.25m-.625-4.375V3.438l3.437 3.437z"})))};function IR(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))}}var _R="index-module_container__7YD-E",RR="index-module_item__OSsjr";IR(".index-module_container__7YD-E {\n display: flex;\n flex-direction: column;\n row-gap: 4px;\n}\n.index-module_container__7YD-E .index-module_item__OSsjr {\n color: #0ff;\n font-size: 14px;\n word-break: break-all;\n}\n.index-module_container__7YD-E .index-module_item__OSsjr > svg {\n transform: translateY(4px);\n}\n");var PR=function(e){var n=e.value;return(null==n?void 0:n.length)?t.createElement("div",{className:_R},n.map((function(e){return t.createElement("a",{key:e.fileName,className:RR,href:e.url,download:e.fileName},t.createElement($R,null),e.fileName)}))):"-"},jR="index-module_container__fDmC2";IR(".index-module_container__fDmC2 {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n");var AR=function(e){var n=e.value;return(null==n?void 0:n.length)?t.createElement("div",{className:jR},t.createElement(nS.PreviewGroup,null,n.map((function(e){return t.createElement(nS,{key:e.fileName,width:60,height:60,src:e.url,fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="})})))):"-"},MR="index-module_container__q5ZGw",TR="index-module_value__4UnN-";IR(".index-module_container__q5ZGw {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.index-module_container__q5ZGw .index-module_value__4UnN- {\n border-radius: 4px;\n background: rgba(0, 255, 255, 0.2);\n padding: 4px 12px;\n color: #0ff;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n}\n");var DR,zR=function(e){var n=e.value;return(null==n?void 0:n.length)?t.createElement("div",{className:MR},n.map((function(e){return t.createElement("div",{key:e,className:TR},e)}))):"-"};function BR(){return BR=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},BR.apply(null,arguments)}var LR=function(e){return o.createElement("svg",BR({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),DR||(DR=o.createElement("path",{fill:"#0FF",d:"M12 4.5v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1m3.625.016a.52.52 0 0 0-.415.076l-2.099 1.4a.25.25 0 0 0-.111.207v3.602a.25.25 0 0 0 .111.208l2.111 1.407a.5.5 0 0 0 .537.012.52.52 0 0 0 .24-.448V5a.5.5 0 0 0-.374-.484"})))},HR="index-module_container__4mEf4",FR="index-module_item__0764d",VR="index-module_label__tTm1g",KR="index-module_value__vycbA",WR="index-module_button__HL70E";IR(".index-module_container__4mEf4 {\n display: flex;\n flex-direction: column;\n}\n.index-module_container__4mEf4 .index-module_item__0764d {\n display: flex;\n width: 100%;\n margin-top: -1px;\n color: #fff;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px;\n}\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_label__tTm1g,\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_value__vycbA {\n padding: 16px;\n border: 1px solid rgba(255, 255, 255, 0.1);\n}\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_label__tTm1g {\n flex: 0 0 138px;\n width: 138px;\n background: linear-gradient(90deg, rgba(60, 125, 250, 0.1) -3.63%, rgba(60, 240, 225, 0.08) 100%);\n}\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_value__vycbA {\n flex: 1;\n display: flex;\n align-items: center;\n border-left: none;\n}\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_value__vycbA > span {\n display: inline-flex;\n margin-left: 4px;\n cursor: pointer;\n}\n.index-module_container__4mEf4 .index-module_item__0764d .index-module_button__HL70E {\n color: #00fefe;\n cursor: pointer;\n}\n");var qR=function(e){var n=e.data,r=function(e){return c(void 0,void 0,void 0,(function(){var t,n,r;return s(this,(function(o){switch(o.label){case 0:return(null==e?void 0:e.length)?[4,(i={openUserIds:e},kR.post("/v1/sense-form/meeting-info",i))]:[3,2];case 1:t=o.sent(),n=t.confirmMessage,r=t.url,n?aO.confirm({content:n,onOk:function(){window.open(r)}}):r&&window.open(r),o.label=2;case 2:return[2]}var i}))}))};if(!n)return null;var o=function(e){var n;return"string"==typeof e.fieldValue?e.fieldValue&&(null===(n=e.props)||void 0===n?void 0:n.unit)?"".concat(e.fieldValue).concat(e.props.unit):e.fieldValue||"-":"object"==typeof e.fieldValue?function(e){var n=e.widget,r=e.fieldValue;return"IdCardWidget"===n?"".concat(r.idCardType," - ").concat(r.idCardNumber):"RegionWidget"===n?r.regionDesc||"-":"AddressFillWidget"===n?"".concat(r.regionDesc,"/").concat(r.addressDetail):"MapPointWidget"===n?"".concat(r.lon,", ").concat(r.lat):"MapLineWidget"===n?"请在地图上查看路线信息":"MapPolygonWidget"===n?"请在地图上查看区块信息":"FileUploadWidget"===n?t.createElement(PR,{value:r}):"ImageUploadWidget"===n?t.createElement(AR,{value:r}):["IncrementInputWidget","MultiSelectWidget","CascadeSelectWidget"].includes(n)?r?r.join("/"):"-":"CustomTags"===n?t.createElement(zR,{value:r}):JSON.stringify(e.fieldValue)||"-"}(e):"-"};return t.createElement("div",{className:HR},n.map((function(e){return e.hidden?null:t.createElement("div",{key:e.fieldId,className:FR},t.createElement("div",{className:VR},e.fieldName),t.createElement("div",{className:KR},e.linkEntityCode?t.createElement("span",{className:WR,onClick:function(){return t=e.linkEntityCode,void console.log(t);var t}},o(e)):o(e),e.openUserId?t.createElement("span",{onClick:function(){return r([e.openUserId])}},t.createElement(LR,null)):null))})))},UR="EntityInfo-module_container__n1dmP";IR(".EntityInfo-module_container__n1dmP * {\n box-sizing: border-box;\n}\n");var XR=function(e){var t=e.bookId,n=e.senseCode;return kR.get("/v2/sense-form/sense-detail/".concat(t,"/").concat(n))},GR=function(e,t){return t.reduce((function(e,t){return e&&void 0!==e[t]?e[t]:void 0}),e)},YR="EntityTable-module_container__vwTV3";IR(".EntityTable-module_container__vwTV3 * {\n box-sizing: border-box;\n}\n");var QR={current:1,total:0,pageSize:50,pageSizeOptions:["20","50","100","200"],showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!1,showTotal:function(e){return"共 ".concat(e," 条")}},JR=Symbol.for("immer-nothing"),ZR=Symbol.for("immer-draftable"),eP=Symbol.for("immer-state"),tP="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function nP(e,...t){if("production"!==process.env.NODE_ENV){const n=tP[e],r="function"==typeof n?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var rP=Object.getPrototypeOf;function oP(e){return!!e&&!!e[eP]}function iP(e){return!!e&&(lP(e)||Array.isArray(e)||!!e[ZR]||!!e.constructor?.[ZR]||fP(e)||pP(e))}var aP=Object.prototype.constructor.toString();function lP(e){if(!e||"object"!=typeof e)return!1;const t=rP(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===aP}function cP(e,t){0===sP(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function sP(e){const t=e[eP];return t?t.type_:Array.isArray(e)?1:fP(e)?2:pP(e)?3:0}function uP(e,t){return 2===sP(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dP(e,t,n){const r=sP(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function fP(e){return e instanceof Map}function pP(e){return e instanceof Set}function mP(e){return e.copy_||e.base_}function hP(e,t){if(fP(e))return new Map(e);if(pP(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=lP(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[eP];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(rP(e),t)}{const t=rP(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function gP(e,t=!1){return bP(e)||oP(e)||!iP(e)||(sP(e)>1&&(e.set=e.add=e.clear=e.delete=vP),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>gP(t,!0)))),e}function vP(){nP(2)}function bP(e){return Object.isFrozen(e)}var yP,wP={};function xP(e){const t=wP[e];return t||nP(0,e),t}function EP(){return yP}function CP(e,t){t&&(xP("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function SP(e){OP(e),e.drafts_.forEach(NP),e.drafts_=null}function OP(e){e===yP&&(yP=e.parent_)}function kP(e){return yP={drafts_:[],parent_:yP,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function NP(e){const t=e[eP];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function $P(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[eP].modified_&&(SP(t),nP(4)),iP(e)&&(e=IP(t,e),t.parent_||RP(t,e)),t.patches_&&xP("Patches").generateReplacementPatches_(n[eP].base_,e,t.patches_,t.inversePatches_)):e=IP(t,n,[]),SP(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==JR?e:void 0}function IP(e,t,n){if(bP(t))return t;const r=t[eP];if(!r)return cP(t,((o,i)=>_P(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return RP(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),cP(o,((o,a)=>_P(e,r,t,o,a,n,i))),RP(e,t,!1),n&&e.patches_&&xP("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function _P(e,t,n,r,o,i,a){if("production"!==process.env.NODE_ENV&&o===n&&nP(5),oP(o)){const a=IP(e,o,i&&t&&3!==t.type_&&!uP(t.assigned_,r)?i.concat(r):void 0);if(dP(n,r,a),!oP(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(iP(o)&&!bP(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;IP(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||RP(e,o)}}function RP(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&gP(t,n)}var PP={get(e,t){if(t===eP)return e;const n=mP(e);if(!uP(n,t))return function(e,t,n){const r=MP(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!iP(r)?r:r===AP(e.base_,t)?(DP(e),e.copy_[t]=zP(r,e)):r},has:(e,t)=>t in mP(e),ownKeys:e=>Reflect.ownKeys(mP(e)),set(e,t,n){const r=MP(mP(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=AP(mP(e),t),a=r?.[eP];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==n||uP(e.base_,t)))return!0;DP(e),TP(e)}var o,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==AP(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,DP(e),TP(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=mP(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){nP(11)},getPrototypeOf:e=>rP(e.base_),setPrototypeOf(){nP(12)}},jP={};function AP(e,t){const n=e[eP];return(n?mP(n):e)[t]}function MP(e,t){if(!(t in e))return;let n=rP(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=rP(n)}}function TP(e){e.modified_||(e.modified_=!0,e.parent_&&TP(e.parent_))}function DP(e){e.copy_||(e.copy_=hP(e.base_,e.scope_.immer_.useStrictShallowCopy_))}cP(PP,((e,t)=>{jP[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),jP.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&nP(13),jP.set.call(this,e,t,void 0)},jP.set=function(e,t,n){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&nP(14),PP.set.call(this,e[0],t,n,e[0])};function zP(e,t){const n=fP(e)?xP("MapSet").proxyMap_(e,t):pP(e)?xP("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:EP(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=PP;n&&(o=[r],i=jP);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}(e,t);return(t?t.scope_:EP()).drafts_.push(n),n}function BP(e){if(!iP(e)||bP(e))return e;const t=e[eP];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=hP(e,t.scope_.immer_.useStrictShallowCopy_)}else n=hP(e,!0);return cP(n,((e,t)=>{dP(n,e,BP(t))})),t&&(t.finalized_=!1),n}var LP=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!=typeof t&&nP(6),void 0!==n&&"function"!=typeof n&&nP(7),iP(e)){const o=kP(this),i=zP(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?SP(o):OP(o)}return CP(o,n),$P(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===JR&&(r=void 0),this.autoFreeze_&&gP(r,!0),n){const t=[],o=[];xP("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}nP(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){iP(e)||nP(8),oP(e)&&(e=function(e){oP(e)||nP(10,e);return BP(e)}(e));const t=kP(this),n=zP(e,void 0);return n[eP].isManual_=!0,OP(t),n}finishDraft(e,t){const n=e&&e[eP];n&&n.isManual_||nP(9);const{scope_:r}=n;return CP(r,t),$P(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=xP("Patches").applyPatches_;return oP(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},HP=LP.produce;LP.produceWithPatches.bind(LP),LP.setAutoFreeze.bind(LP),LP.setUseStrictShallowCopy.bind(LP),LP.applyPatches.bind(LP),LP.createDraft.bind(LP),LP.finishDraft.bind(LP);var FP={exports:{}};!function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||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};function o(e){return e&&e.__esModule?e:{default:e}}t.default=s;var i=n(3),a=o(n(4)),l=n(14),c=o(n(15));function s(e){var t=e.activeClassName,n=void 0===t?"":t,o=e.activeIndex,a=void 0===o?-1:o,s=e.activeStyle,u=e.autoEscape,d=e.caseSensitive,f=void 0!==d&&d,p=e.className,m=e.findChunks,h=e.highlightClassName,g=void 0===h?"":h,v=e.highlightStyle,b=void 0===v?{}:v,y=e.highlightTag,w=void 0===y?"mark":y,x=e.sanitize,E=e.searchWords,C=e.textToHighlight,S=e.unhighlightTag,O=void 0===S?"span":S,k=e.unhighlightClassName,N=void 0===k?"":k,$=e.unhighlightStyle,I=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),_=(0,i.findAll)({autoEscape:u,caseSensitive:f,findChunks:m,sanitize:x,searchWords:E,textToHighlight:C}),R=w,P=-1,j="",A=void 0,M=(0,c.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,l.createElement)("span",r({className:p},I,{children:_.map((function(e,t){var r=C.substr(e.start,e.end-e.start);if(e.highlight){P++;var o=void 0;o="object"==typeof g?f?g[r]:(g=M(g))[r.toLowerCase()]:g;var i=P===+a;j=o+" "+(i?n:""),A=!0===i&&null!=s?Object.assign({},b,s):b;var c={children:r,className:j,key:t,style:A};return"string"!=typeof R&&(c.highlightIndex=P),(0,l.createElement)(R,c)}return(0,l.createElement)(O,{children:r,className:N,key:t,style:$})}))}))}s.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,l=e.findChunks,c=void 0===l?r:l,s=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:c({autoEscape:t,caseSensitive:a,sanitize:s,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,l=e.textToHighlight;return l=o(l),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(l);){var c=a.index,s=i.lastIndex;s>c&&e.push({start:c,end:s}),a.index==i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?s=c.concat(s):d=-1,s.length&&p())}function p(){if(!u){var e=l(f);u=!0;for(var t=s.length;t;){for(c=s,s=[];++d<t;)c&&c[d].run();d=-1,t=s.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||u||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){(function(t){var r=n(7),o=n(8),i=n(9),a=n(10),l=n(11),c=n(12);e.exports=function(e,n){var s="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";var d="<<anonymous>>",f={array:g("array"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:h(r.thatReturnsNull),arrayOf:function(e){return h((function(t,n,r,o,i){if("function"!=typeof e)return new m("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new m("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<a.length;c++){var s=e(a,c,r,o,i+"["+c+"]",l);if(s instanceof Error)return s}return null}))},element:h((function(t,n,r,o,i){var a=t[n];return e(a)?null:new m("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return h((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new m("Invalid "+o+" `"+i+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:h((function(e,t,n,r,o){return v(e[t])?null:new m("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,r,o,i){if("function"!=typeof e)return new m("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],c=b(a);if("object"!==c)return new m("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in a)if(a.hasOwnProperty(s)){var u=e(a,s,r,o,i+"."+s,l);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull;return h((function(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;return new m("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",w(o),n),r.thatReturnsNull}return h((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,l))return null;return new m("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return h((function(t,n,r,o,i){var a=t[n],c=b(a);if("object"!==c)return new m("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var u=e[s];if(u){var d=u(a,s,r,o,i+"."+s,l);if(d)return d}}return null}))},exact:function(e){return h((function(t,n,r,o,i){var c=t[n],s=b(c);if("object"!==s)return new m("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");var u=a({},t[n],e);for(var d in u){var f=e[d];if(!f)return new m("Invalid "+o+" `"+i+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=f(c,d,r,o,i+"."+d,l);if(p)return p}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e){this.message=e,this.stack=""}function h(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function c(c,s,u,f,p,h,g){if(f=f||d,h=h||u,g!==l)if(n)o(!1,"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");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=f+":"+u;!r[v]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,f),r[v]=!0,a++)}return null==s[u]?c?null===s[u]?new m("The "+p+" `"+h+"` is marked as required in `"+f+"`, but its value is `null`."):new m("The "+p+" `"+h+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(s,u,f,p,h)}var s=c.bind(null,!1);return s.isRequired=c.bind(null,!0),s}function g(e){return h((function(t,n,r,o,i,a){var l=t[n];return b(l)!==e?new m("Invalid "+o+" `"+i+"` of type `"+y(l)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||e(t))return!0;var n=function(e){var t=e&&(s&&e[s]||e[u]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!v(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,f.checkPropTypes=c,f.PropTypes=f,f}}).call(t,n(5))},function(e,t){function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,l,c){if(n(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,a,l,c],d=0;(s=new Error(t.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}}).call(t,n(5))},function(e,t,n){(function(t){var r=n(7);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(5))},function(e,t){var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var s in i=Object(arguments[c]))r.call(i,s)&&(l[s]=i[s]);if(n){a=n(i);for(var u=0;u<a.length;u++)o.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l}},function(e,t){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(8),o=n(9),i=n(11),a={};e.exports=function(e,n,l,c,s){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var d;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",l,u,typeof e[u]),d=e[u](n,u,c,l,null,i)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",l,u,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=s?s():"";o(!1,"Failed %s type: %s%s",l,d.message,null!=f?f:"")}}}}).call(t,n(5))},function(e,t,n){var r=n(7),o=n(8),i=n(11);e.exports=function(){function e(e,t,n,r,a,l){l!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,n){e.exports=t},function(e,t){var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=void 0,o=[],i=void 0,a=!1,l=function(e,n){return t(e,o[n])};return function(){for(var t=arguments.length,n=Array(t),c=0;c<t;c++)n[c]=arguments[c];return a&&r===this&&n.length===o.length&&n.every(l)?i:(a=!0,r=this,o=n,i=e.apply(this,n))}}}])}(FP);var VP=N(FP.exports),KP=function(){var e=t.useState(!1),n=e[0],r=e[1],o=t.useState(),i=o[0],a=o[1];return t.useEffect((function(){var e;if(null===(e=window._ICOS_DESKTOP_)||void 0===e?void 0:e.ksCode)return a(window._ICOS_DESKTOP_.ksCode),void r(!0);kR.get("/v1/entity-manager/category-ks-code-map").then((function(e){window._ICOS_DESKTOP_?window._ICOS_DESKTOP_.ksCode=e:window._ICOS_DESKTOP_={ksCode:e},a(e),r(!0)}))}),[]),{loaded:n,ksCode:i}},WP={exports:{}};!function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,l=32,c=64,s=128,u=256,d=1/0,f=9007199254740991,p=NaN,m=4294967295,h=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",l],["partialRight",c],["rearg",u]],g="[object Arguments]",v="[object Array]",b="[object Boolean]",y="[object Date]",w="[object Error]",x="[object Function]",E="[object GeneratorFunction]",C="[object Map]",S="[object Number]",O="[object Object]",N="[object Promise]",$="[object RegExp]",I="[object Set]",_="[object String]",R="[object Symbol]",P="[object WeakMap]",j="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",T="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",B="[object Int32Array]",L="[object Uint8Array]",H="[object Uint8ClampedArray]",F="[object Uint16Array]",V="[object Uint32Array]",K=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,G=RegExp(U.source),Y=RegExp(X.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ie=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,Ce="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Ne="A-Z\\xc0-\\xd6\\xd8-\\xde",$e="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_e="['’]",Re="["+Ce+"]",Pe="["+Ie+"]",je="["+Se+"]",Ae="\\d+",Me="["+Oe+"]",Te="["+ke+"]",De="[^"+Ce+Ie+Ae+Oe+ke+Ne+"]",ze="\\ud83c[\\udffb-\\udfff]",Be="[^"+Ce+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ne+"]",Ve="\\u200d",Ke="(?:"+Te+"|"+De+")",We="(?:"+Fe+"|"+De+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xe="(?:"+je+"|"+ze+")"+"?",Ge="["+$e+"]?",Ye=Ge+Xe+("(?:"+Ve+"(?:"+[Be,Le,He].join("|")+")"+Ge+Xe+")*"),Qe="(?:"+[Me,Le,He].join("|")+")"+Ye,Je="(?:"+[Be+je+"?",je,Le,He,Re].join("|")+")",Ze=RegExp(_e,"g"),et=RegExp(je,"g"),tt=RegExp(ze+"(?="+ze+")|"+Je+Ye,"g"),nt=RegExp([Fe+"?"+Te+"+"+qe+"(?="+[Pe,Fe,"$"].join("|")+")",We+"+"+Ue+"(?="+[Pe,Fe+Ke,"$"].join("|")+")",Fe+"?"+Ke+"+"+qe,Fe+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Qe].join("|"),"g"),rt=RegExp("["+Ve+Ce+Se+$e+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,lt={};lt[M]=lt[T]=lt[D]=lt[z]=lt[B]=lt[L]=lt[H]=lt[F]=lt[V]=!0,lt[g]=lt[v]=lt[j]=lt[b]=lt[A]=lt[y]=lt[w]=lt[x]=lt[C]=lt[S]=lt[O]=lt[$]=lt[I]=lt[_]=lt[P]=!1;var ct={};ct[g]=ct[v]=ct[j]=ct[A]=ct[b]=ct[y]=ct[M]=ct[T]=ct[D]=ct[z]=ct[B]=ct[C]=ct[S]=ct[O]=ct[$]=ct[I]=ct[_]=ct[R]=ct[L]=ct[H]=ct[F]=ct[V]=!0,ct[w]=ct[x]=ct[P]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,dt=parseInt,ft="object"==typeof k&&k&&k.Object===Object&&k,pt="object"==typeof self&&self&&self.Object===Object&&self,mt=ft||pt||Function("return this")(),ht=t&&!t.nodeType&&t,gt=ht&&e&&!e.nodeType&&e,vt=gt&&gt.exports===ht,bt=vt&&ft.process,yt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(e){}}(),wt=yt&&yt.isArrayBuffer,xt=yt&&yt.isDate,Et=yt&&yt.isMap,Ct=yt&&yt.isRegExp,St=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Nt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Pt(e,t){return!!(null==e?0:e.length)&&Ft(e,t,0)>-1}function jt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Mt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Tt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Dt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=qt("length");function Lt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ht(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ft(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ht(e,Kt,n)}function Vt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Kt(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:p}function qt(e){return function(t){return null==t?n:t[e]}}function Ut(e){return function(t){return null==e?n:e[t]}}function Xt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Gt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,hn(e)+1).replace(ie,""):e}function Jt(e){return function(t){return e(t)}}function Zt(e,t){return At(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var rn=Ut({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),on=Ut({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+st[e]}function ln(e){return rt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var l=e[n];l!==t&&l!==i||(e[n]=i,a[o++]=n)}return a}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Bt(e)}function mn(e){return ln(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var gn=Ut({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var k=(t=null==t?mt:vn.defaults(mt.Object(),t,vn.pick(mt,it))).Array,ae=t.Date,Ce=t.Error,Se=t.Function,Oe=t.Math,ke=t.Object,Ne=t.RegExp,$e=t.String,Ie=t.TypeError,_e=k.prototype,Re=Se.prototype,Pe=ke.prototype,je=t["__core-js_shared__"],Ae=Re.toString,Me=Pe.hasOwnProperty,Te=0,De=function(){var e=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ze=Pe.toString,Be=Ae.call(ke),Le=mt._,He=Ne("^"+Ae.call(Me).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=vt?t.Buffer:n,Ve=t.Symbol,Ke=t.Uint8Array,We=Fe?Fe.allocUnsafe:n,qe=sn(ke.getPrototypeOf,ke),Ue=ke.create,Xe=Pe.propertyIsEnumerable,Ge=_e.splice,Ye=Ve?Ve.isConcatSpreadable:n,Qe=Ve?Ve.iterator:n,Je=Ve?Ve.toStringTag:n,tt=function(){try{var e=fi(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,st=ae&&ae.now!==mt.Date.now&&ae.now,ft=t.setTimeout!==mt.setTimeout&&t.setTimeout,pt=Oe.ceil,ht=Oe.floor,gt=ke.getOwnPropertySymbols,bt=Fe?Fe.isBuffer:n,yt=t.isFinite,Bt=_e.join,Ut=sn(ke.keys,ke),bn=Oe.max,yn=Oe.min,wn=ae.now,xn=t.parseInt,En=Oe.random,Cn=_e.reverse,Sn=fi(t,"DataView"),On=fi(t,"Map"),kn=fi(t,"Promise"),Nn=fi(t,"Set"),$n=fi(t,"WeakMap"),In=fi(ke,"create"),_n=$n&&new $n,Rn={},Pn=zi(Sn),jn=zi(On),An=zi(kn),Mn=zi(Nn),Tn=zi($n),Dn=Ve?Ve.prototype:n,zn=Dn?Dn.valueOf:n,Bn=Dn?Dn.toString:n;function Ln(e){if(tl(e)&&!Ka(e)&&!(e instanceof Kn)){if(e instanceof Vn)return e;if(Me.call(e,"__wrapped__"))return Bi(e)}return new Vn(e)}var Hn=function(){function e(){}return function(t){if(!el(t))return{};if(Ue)return Ue(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Fn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Kn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Un;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new qn(e);this.size=t.size}function Yn(e,t){var n=Ka(e),r=!n&&Va(e),o=!n&&!r&&Xa(e),i=!n&&!r&&!o&&sl(e),a=n||r||o||i,l=a?Yt(e.length,$e):[],c=l.length;for(var s in e)!t&&!Me.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||yi(s,c))||l.push(s);return l}function Qn(e){var t=e.length;return t?e[Xr(0,t-1)]:n}function Jn(e,t){return Mi(_o(e),lr(t,0,e.length))}function Zn(e){return Mi(_o(e))}function er(e,t,r){(r!==n&&!La(e[t],r)||r===n&&!(t in e))&&ir(e,t,r)}function tr(e,t,r){var o=e[t];Me.call(e,t)&&La(o,r)&&(r!==n||t in e)||ir(e,t,r)}function nr(e,t){for(var n=e.length;n--;)if(La(e[n][0],t))return n;return-1}function rr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function or(e,t){return e&&Ro(t,Rl(t),e)}function ir(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,o=t.length,i=k(o),a=null==e;++r<o;)i[r]=a?n:kl(e,t[r]);return i}function lr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var l,c=1&t,s=2&t,u=4&t;if(r&&(l=i?r(e,o,i,a):r(e)),l!==n)return l;if(!el(e))return e;var d=Ka(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return _o(e,l)}else{var f=hi(e),p=f==x||f==E;if(Xa(e))return So(e,c);if(f==O||f==g||p&&!i){if(l=s||p?{}:vi(e),!c)return s?function(e,t){return Ro(e,mi(e),t)}(e,function(e,t){return e&&Ro(t,Pl(t),e)}(l,e)):function(e,t){return Ro(e,pi(e),t)}(e,or(l,e))}else{if(!ct[f])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case j:return Oo(e);case b:case y:return new r(+e);case A:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case T:case D:case z:case B:case L:case H:case F:case V:return ko(e,n);case C:return new r;case S:case _:return new r(e);case $:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new r;case R:return o=e,zn?ke(zn.call(o)):{}}var o}(e,f,c)}}a||(a=new Gn);var m=a.get(e);if(m)return m;a.set(e,l),al(e)?e.forEach((function(n){l.add(cr(n,t,r,n,e,a))})):nl(e)&&e.forEach((function(n,o){l.set(o,cr(n,t,r,o,e,a))}));var h=d?n:(u?s?ii:oi:s?Pl:Rl)(e);return $t(h||e,(function(n,o){h&&(n=e[o=n]),tr(l,o,cr(n,t,r,o,e,a))})),l}function sr(e,t,r){var o=r.length;if(null==e)return!o;for(e=ke(e);o--;){var i=r[o],a=t[i],l=e[i];if(l===n&&!(i in e)||!a(l))return!1}return!0}function ur(e,t,o){if("function"!=typeof e)throw new Ie(r);return Ri((function(){e.apply(n,o)}),t)}function dr(e,t,n,r){var o=-1,i=Pt,a=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=At(t,Jt(n))),r?(i=jt,a=!1):t.length>=200&&(i=en,a=!1,t=new Xn(t));e:for(;++o<l;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=s;f--;)if(t[f]===d)continue e;c.push(u)}else i(t,d,r)||c.push(u)}return c}Ln.templateSettings={escape:Q,evaluate:J,interpolate:Z,variable:"",imports:{_:Ln}},Ln.prototype=Fn.prototype,Ln.prototype.constructor=Ln,Vn.prototype=Hn(Fn.prototype),Vn.prototype.constructor=Vn,Kn.prototype=Hn(Fn.prototype),Kn.prototype.constructor=Kn,Wn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(In){var r=t[e];return r===o?n:r}return Me.call(t,e)?t[e]:n},Wn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==n:Me.call(t,e)},Wn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=In&&t===n?o:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},qn.prototype.get=function(e){var t=this.__data__,r=nr(t,e);return r<0?n:t[r][1]},qn.prototype.has=function(e){return nr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(On||qn),string:new Wn}},Un.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Un.prototype.get=function(e){return ui(this,e).get(e)},Un.prototype.has=function(e){return ui(this,e).has(e)},Un.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,o),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new qn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Un(r)}return n.set(e,t),this.size=n.size,this};var fr=Ao(wr),pr=Ao(xr,!0);function mr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],l=t(a);if(null!=l&&(c===n?l==l&&!cl(l):r(l,c)))var c=l,s=a}return s}function gr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function vr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=bi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?vr(l,t-1,n,r,o):Mt(o,l):r||(o[o.length]=l)}return o}var br=Mo(),yr=Mo(!0);function wr(e,t){return e&&br(e,t,Rl)}function xr(e,t){return e&&yr(e,t,Rl)}function Er(e,t){return Rt(t,(function(t){return Qa(e[t])}))}function Cr(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[Di(t[r++])];return r&&r==o?e:n}function Sr(e,t,n){var r=t(e);return Ka(e)?r:Mt(r,n(e))}function Or(e){return null==e?e===n?"[object Undefined]":"[object Null]":Je&&Je in ke(e)?function(e){var t=Me.call(e,Je),r=e[Je];try{e[Je]=n;var o=!0}catch(e){}var i=ze.call(e);o&&(t?e[Je]=r:delete e[Je]);return i}(e):function(e){return ze.call(e)}(e)}function kr(e,t){return e>t}function Nr(e,t){return null!=e&&Me.call(e,t)}function $r(e,t){return null!=e&&t in ke(e)}function Ir(e,t,r){for(var o=r?jt:Pt,i=e[0].length,a=e.length,l=a,c=k(a),s=1/0,u=[];l--;){var d=e[l];l&&t&&(d=At(d,Jt(t))),s=yn(d.length,s),c[l]=!r&&(t||i>=120&&d.length>=120)?new Xn(l&&d):n}d=e[0];var f=-1,p=c[0];e:for(;++f<i&&u.length<s;){var m=d[f],h=t?t(m):m;if(m=r||0!==m?m:0,!(p?en(p,h):o(u,h,r))){for(l=a;--l;){var g=c[l];if(!(g?en(g,h):o(e[l],h,r)))continue e}p&&p.push(h),u.push(m)}}return u}function _r(e,t,r){var o=null==(e=$i(e,t=wo(t,e)))?e:e[Di(Yi(t))];return null==o?n:kt(o,e,r)}function Rr(e){return tl(e)&&Or(e)==g}function Pr(e,t,r,o,i){return e===t||(null==e||null==t||!tl(e)&&!tl(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var l=Ka(e),c=Ka(t),s=l?v:hi(e),u=c?v:hi(t),d=(s=s==g?O:s)==O,f=(u=u==g?O:u)==O,p=s==u;if(p&&Xa(e)){if(!Xa(t))return!1;l=!0,d=!1}if(p&&!d)return a||(a=new Gn),l||sl(e)?ni(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!i(new Ke(e),new Ke(t)));case b:case y:case S:return La(+e,+t);case w:return e.name==t.name&&e.message==t.message;case $:case _:return e==t+"";case C:var l=cn;case I:var c=1&r;if(l||(l=dn),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var u=ni(l(e),l(t),r,o,i,a);return a.delete(e),u;case R:if(zn)return zn.call(e)==zn.call(t)}return!1}(e,t,s,r,o,i,a);if(!(1&r)){var m=d&&Me.call(e,"__wrapped__"),h=f&&Me.call(t,"__wrapped__");if(m||h){var x=m?e.value():e,E=h?t.value():t;return a||(a=new Gn),i(x,E,r,o,a)}}if(!p)return!1;return a||(a=new Gn),function(e,t,r,o,i,a){var l=1&r,c=oi(e),s=c.length,u=oi(t),d=u.length;if(s!=d&&!l)return!1;var f=s;for(;f--;){var p=c[f];if(!(l?p in t:Me.call(t,p)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var g=!0;a.set(e,t),a.set(t,e);var v=l;for(;++f<s;){var b=e[p=c[f]],y=t[p];if(o)var w=l?o(y,b,p,t,e,a):o(b,y,p,e,t,a);if(!(w===n?b===y||i(b,y,r,o,a):w)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var x=e.constructor,E=t.constructor;x==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,o,i,a)}(e,t,r,o,Pr,i))}function jr(e,t,r,o){var i=r.length,a=i,l=!o;if(null==e)return!a;for(e=ke(e);i--;){var c=r[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var s=(c=r[i])[0],u=e[s],d=c[1];if(l&&c[2]){if(u===n&&!(s in e))return!1}else{var f=new Gn;if(o)var p=o(u,d,s,e,t,f);if(!(p===n?Pr(d,u,3,o,f):p))return!1}}return!0}function Ar(e){return!(!el(e)||(t=e,De&&De in t))&&(Qa(e)?He:ve).test(zi(e));var t}function Mr(e){return"function"==typeof e?e:null==e?rc:"object"==typeof e?Ka(e)?Hr(e[0],e[1]):Lr(e):fc(e)}function Tr(e){if(!Si(e))return Ut(e);var t=[];for(var n in ke(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e){if(!el(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Si(e),n=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&n.push(r);return n}function zr(e,t){return e<t}function Br(e,t){var n=-1,r=qa(e)?k(e.length):[];return fr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Lr(e){var t=di(e);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function Hr(e,t){return xi(e)&&Oi(t)?ki(Di(e),t):function(r){var o=kl(r,e);return o===n&&o===t?Nl(r,e):Pr(t,o,3)}}function Fr(e,t,r,o,i){e!==t&&br(t,(function(a,l){if(i||(i=new Gn),el(a))!function(e,t,r,o,i,a,l){var c=Ii(e,r),s=Ii(t,r),u=l.get(s);if(u)return void er(e,r,u);var d=a?a(c,s,r+"",e,t,l):n,f=d===n;if(f){var p=Ka(s),m=!p&&Xa(s),h=!p&&!m&&sl(s);d=s,p||m||h?Ka(c)?d=c:Ua(c)?d=_o(c):m?(f=!1,d=So(s,!0)):h?(f=!1,d=ko(s,!0)):d=[]:ol(s)||Va(s)?(d=c,Va(c)?d=vl(c):el(c)&&!Qa(c)||(d=vi(s))):f=!1}f&&(l.set(s,d),i(d,s,o,a,l),l.delete(s));er(e,r,d)}(e,t,l,r,Fr,o,i);else{var c=o?o(Ii(e,l),a,l+"",e,t,i):n;c===n&&(c=a),er(e,l,c)}}),Pl)}function Vr(e,t){var r=e.length;if(r)return yi(t+=t<0?r:0,r)?e[t]:n}function Kr(e,t,n){t=t.length?At(t,(function(e){return Ka(e)?function(t){return Cr(t,1===e.length?e[0]:e)}:e})):[rc];var r=-1;t=At(t,Jt(si()));var o=Br(e,(function(e,n,o){var i=At(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;for(;++r<a;){var c=No(o[r],i[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Cr(e,a);n(l,a)&&Zr(i,wo(a,e),l)}return i}function qr(e,t,n,r){var o=r?Vt:Ft,i=-1,a=t.length,l=e;for(e===t&&(t=_o(t)),n&&(l=At(e,Jt(n)));++i<a;)for(var c=0,s=t[i],u=n?n(s):s;(c=o(l,u,c,r))>-1;)l!==e&&Ge.call(l,c,1),Ge.call(e,c,1);return e}function Ur(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;yi(o)?Ge.call(e,o,1):fo(e,o)}}return e}function Xr(e,t){return e+ht(En()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Pi(Ni(e,t,rc),e+"")}function Qr(e){return Qn(Ll(e))}function Jr(e,t){var n=Ll(e);return Mi(n,lr(t,0,n.length))}function Zr(e,t,r,o){if(!el(e))return e;for(var i=-1,a=(t=wo(t,e)).length,l=a-1,c=e;null!=c&&++i<a;){var s=Di(t[i]),u=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var d=c[s];(u=o?o(d,s,c):n)===n&&(u=el(d)?d:yi(t[i+1])?[]:{})}tr(c,s,u),c=c[s]}return e}var eo=_n?function(e,t){return _n.set(e,t),e}:rc,to=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:rc;function no(e){return Mi(Ll(e))}function ro(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=k(o);++r<o;)i[r]=e[r+t];return i}function oo(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function io(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ao(e,t,rc,n)}function ao(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=r(t))!=t,c=null===t,s=cl(t),u=t===n;i<a;){var d=ht((i+a)/2),f=r(e[d]),p=f!==n,m=null===f,h=f==f,g=cl(f);if(l)var v=o||h;else v=u?h&&(o||p):c?h&&p&&(o||!m):s?h&&p&&!m&&(o||!g):!m&&!g&&(o?f<=t:f<t);v?i=d+1:a=d}return yn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!La(l,c)){var c=l;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cl(e)?p:+e}function so(e){if("string"==typeof e)return e;if(Ka(e))return At(e,so)+"";if(cl(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=Pt,i=e.length,a=!0,l=[],c=l;if(n)a=!1,o=jt;else if(i>=200){var s=t?null:Yo(e);if(s)return dn(s);a=!1,o=en,c=new Xn}else c=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),l.push(u)}else o(c,d,n)||(c!==l&&c.push(d),l.push(u))}return l}function fo(e,t){return null==(e=$i(e,t=wo(t,e)))||delete e[Di(Yi(t))]}function po(e,t,n,r){return Zr(e,t,n(Cr(e,t)),r)}function mo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?ro(e,r?0:i,r?i+1:o):ro(e,r?i+1:0,r?o:i)}function ho(e,t){var n=e;return n instanceof Kn&&(n=n.value()),Tt(t,(function(e,t){return t.func.apply(t.thisArg,Mt([e],t.args))}),n)}function go(e,t,n){var r=e.length;if(r<2)return r?uo(e[0]):[];for(var o=-1,i=k(r);++o<r;)for(var a=e[o],l=-1;++l<r;)l!=o&&(i[o]=dr(i[o]||a,e[l],t,n));return uo(vr(i,1),t,n)}function vo(e,t,r){for(var o=-1,i=e.length,a=t.length,l={};++o<i;){var c=o<a?t[o]:n;r(l,e[o],c)}return l}function bo(e){return Ua(e)?e:[]}function yo(e){return"function"==typeof e?e:rc}function wo(e,t){return Ka(e)?e:xi(e,t)?[e]:Ti(bl(e))}var xo=Yr;function Eo(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:ro(e,t,r)}var Co=rt||function(e){return mt.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Ke(t).set(new Ke(e)),t}function ko(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function No(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cl(e),l=t!==n,c=null===t,s=t==t,u=cl(t);if(!c&&!u&&!a&&e>t||a&&l&&s&&!c&&!u||o&&l&&s||!r&&s||!i)return 1;if(!o&&!a&&!u&&e<t||u&&r&&i&&!o&&!a||c&&r&&i||!l&&i||!s)return-1}return 0}function $o(e,t,n,r){for(var o=-1,i=e.length,a=n.length,l=-1,c=t.length,s=bn(i-a,0),u=k(c+s),d=!r;++l<c;)u[l]=t[l];for(;++o<a;)(d||o<i)&&(u[n[o]]=e[o]);for(;s--;)u[l++]=e[o++];return u}function Io(e,t,n,r){for(var o=-1,i=e.length,a=-1,l=n.length,c=-1,s=t.length,u=bn(i-l,0),d=k(u+s),f=!r;++o<u;)d[o]=e[o];for(var p=o;++c<s;)d[p+c]=t[c];for(;++a<l;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function _o(e,t){var n=-1,r=e.length;for(t||(t=k(r));++n<r;)t[n]=e[n];return t}function Ro(e,t,r,o){var i=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var c=t[a],s=o?o(r[c],e[c],c,r,e):n;s===n&&(s=e[c]),i?ir(r,c,s):tr(r,c,s)}return r}function Po(e,t){return function(n,r){var o=Ka(n)?Nt:rr,i=t?t():{};return o(n,e,si(r,2),i)}}function jo(e){return Yr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,l=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,l&&wi(r[0],r[1],l)&&(a=i<3?n:a,i=1),t=ke(t);++o<i;){var c=r[o];c&&e(t,c,o,a)}return t}))}function Ao(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=ke(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Mo(e){return function(t,n,r){for(var o=-1,i=ke(t),a=r(t),l=a.length;l--;){var c=a[e?l:++o];if(!1===n(i[c],c,i))break}return t}}function To(e){return function(t){var r=ln(t=bl(t))?mn(t):n,o=r?r[0]:t.charAt(0),i=r?Eo(r,1).join(""):t.slice(1);return o[e]()+i}}function Do(e){return function(t){return Tt(Ql(Vl(t).replace(Ze,"")),e,"")}}function zo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hn(e.prototype),r=e.apply(n,t);return el(r)?r:n}}function Bo(e){return function(t,r,o){var i=ke(t);if(!qa(t)){var a=si(r,3);t=Rl(t),r=function(e){return a(i[e],e,i)}}var l=e(t,r,o);return l>-1?i[a?t[l]:l]:n}}function Lo(e){return ri((function(t){var o=t.length,i=o,a=Vn.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new Ie(r);if(a&&!c&&"wrapper"==li(l))var c=new Vn([],!0)}for(i=c?i:o;++i<o;){var s=li(l=t[i]),u="wrapper"==s?ai(l):n;c=u&&Ei(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[li(u[0])].apply(c,u[3]):1==l.length&&Ei(l)?c[s]():c.thru(l)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&Ka(n))return c.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}}))}function Ho(e,t,r,o,i,a,l,c,u,d){var f=t&s,p=1&t,m=2&t,h=24&t,g=512&t,v=m?n:zo(e);return function s(){for(var b=arguments.length,y=k(b),w=b;w--;)y[w]=arguments[w];if(h)var x=ci(s),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,x);if(o&&(y=$o(y,o,i,h)),a&&(y=Io(y,a,l,h)),b-=E,h&&b<d){var C=un(y,x);return Xo(e,t,Ho,s.placeholder,r,y,C,c,u,d-b)}var S=p?r:this,O=m?S[e]:e;return b=y.length,c?y=function(e,t){var r=e.length,o=yn(t.length,r),i=_o(e);for(;o--;){var a=t[o];e[o]=yi(a,r)?i[a]:n}return e}(y,c):g&&b>1&&y.reverse(),f&&u<b&&(y.length=u),this&&this!==mt&&this instanceof s&&(O=v||zo(O)),O.apply(S,y)}}function Fo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Vo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=so(r),o=so(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Ko(e){return ri((function(t){return t=At(t,Jt(si())),Yr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Wo(e,t){var r=(t=t===n?" ":so(t)).length;if(r<2)return r?Gr(t,e):t;var o=Gr(t,pt(e/pn(t)));return ln(t)?Eo(mn(o),0,e).join(""):o.slice(0,e)}function qo(e){return function(t,r,o){return o&&"number"!=typeof o&&wi(t,r,o)&&(r=o=n),t=pl(t),r===n?(r=t,t=0):r=pl(r),function(e,t,n,r){for(var o=-1,i=bn(pt((t-e)/(n||1)),0),a=k(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:pl(o),e)}}function Uo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gl(t),n=gl(n)),e(t,n)}}function Xo(e,t,r,o,i,a,s,u,d,f){var p=8&t;t|=p?l:c,4&(t&=~(p?c:l))||(t&=-4);var m=[e,t,i,p?a:n,p?s:n,p?n:a,p?n:s,u,d,f],h=r.apply(n,m);return Ei(e)&&_i(h,m),h.placeholder=o,ji(h,e,t)}function Go(e){var t=Oe[e];return function(e,n){if(e=gl(e),(n=null==n?0:yn(ml(n),292))&&yt(e)){var r=(bl(e)+"e").split("e");return+((r=(bl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Yo=Nn&&1/dn(new Nn([,-0]))[1]==d?function(e){return new Nn(e)}:cc;function Qo(e){return function(t){var n=hi(t);return n==C?cn(t):n==I?fn(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,o,d,f,p,m,h){var g=2&t;if(!g&&"function"!=typeof e)throw new Ie(r);var v=d?d.length:0;if(v||(t&=-97,d=f=n),m=m===n?m:bn(ml(m),0),h=h===n?h:ml(h),v-=f?f.length:0,t&c){var b=d,y=f;d=f=n}var w=g?n:ai(e),x=[e,t,o,d,f,b,y,p,m,h];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,l=r==s&&8==n||r==s&&n==u&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!l)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var d=e[3];e[3]=d?$o(d,c,t[4]):c,e[4]=d?un(e[3],i):t[4]}(c=t[5])&&(d=e[5],e[5]=d?Io(d,c,t[6]):c,e[6]=d?un(e[5],i):t[6]);(c=t[7])&&(e[7]=c);r&s&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(x,w),e=x[0],t=x[1],o=x[2],d=x[3],f=x[4],!(h=x[9]=x[9]===n?g?0:e.length:bn(x[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==a?function(e,t,r){var o=zo(e);return function i(){for(var a=arguments.length,l=k(a),c=a,s=ci(i);c--;)l[c]=arguments[c];var u=a<3&&l[0]!==s&&l[a-1]!==s?[]:un(l,s);return(a-=u.length)<r?Xo(e,t,Ho,i.placeholder,n,l,u,n,n,r-a):kt(this&&this!==mt&&this instanceof i?o:e,this,l)}}(e,t,h):t!=l&&33!=t||f.length?Ho.apply(n,x):function(e,t,n,r){var o=1&t,i=zo(e);return function t(){for(var a=-1,l=arguments.length,c=-1,s=r.length,u=k(s+l),d=this&&this!==mt&&this instanceof t?i:e;++c<s;)u[c]=r[c];for(;l--;)u[c++]=arguments[++a];return kt(d,o?n:this,u)}}(e,t,o,d);else var E=function(e,t,n){var r=1&t,o=zo(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return ji((w?eo:_i)(E,x),e,t)}function Zo(e,t,r,o){return e===n||La(e,Pe[r])&&!Me.call(o,r)?t:e}function ei(e,t,r,o,i,a){return el(e)&&el(t)&&(a.set(t,e),Fr(e,t,n,ei,a),a.delete(t)),e}function ti(e){return ol(e)?n:e}function ni(e,t,r,o,i,a){var l=1&r,c=e.length,s=t.length;if(c!=s&&!(l&&s>c))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=2&r?new Xn:n;for(a.set(e,t),a.set(t,e);++f<c;){var h=e[f],g=t[f];if(o)var v=l?o(g,h,f,t,e,a):o(h,g,f,e,t,a);if(v!==n){if(v)continue;p=!1;break}if(m){if(!zt(t,(function(e,t){if(!en(m,t)&&(h===e||i(h,e,r,o,a)))return m.push(t)}))){p=!1;break}}else if(h!==g&&!i(h,g,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ri(e){return Pi(Ni(e,n,Wi),e+"")}function oi(e){return Sr(e,Rl,pi)}function ii(e){return Sr(e,Pl,mi)}var ai=_n?function(e){return _n.get(e)}:cc;function li(e){for(var t=e.name+"",n=Rn[t],r=Me.call(Rn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Me.call(Ln,"placeholder")?Ln:e).placeholder}function si(){var e=Ln.iteratee||oc;return e=e===oc?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function di(e){for(var t=Rl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function fi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Ar(r)?r:n}var pi=gt?function(e){return null==e?[]:(e=ke(e),Rt(gt(e),(function(t){return Xe.call(e,t)})))}:hc,mi=gt?function(e){for(var t=[];e;)Mt(t,pi(e)),e=qe(e);return t}:hc,hi=Or;function gi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=Di(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Za(o)&&yi(a,o)&&(Ka(e)||Va(e))}function vi(e){return"function"!=typeof e.constructor||Si(e)?{}:Hn(qe(e))}function bi(e){return Ka(e)||Va(e)||!!(Ye&&e&&e[Ye])}function yi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!el(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&yi(t,n.length):"string"==r&&t in n)&&La(n[t],e)}function xi(e,t){if(Ka(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cl(e))||(te.test(e)||!ee.test(e)||null!=t&&e in ke(t))}function Ei(e){var t=li(e),n=Ln[t];if("function"!=typeof n||!(t in Kn.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(Sn&&hi(new Sn(new ArrayBuffer(1)))!=A||On&&hi(new On)!=C||kn&&hi(kn.resolve())!=N||Nn&&hi(new Nn)!=I||$n&&hi(new $n)!=P)&&(hi=function(e){var t=Or(e),r=t==O?e.constructor:n,o=r?zi(r):"";if(o)switch(o){case Pn:return A;case jn:return C;case An:return N;case Mn:return I;case Tn:return P}return t});var Ci=je?Qa:gc;function Si(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function Oi(e){return e==e&&!el(e)}function ki(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in ke(r)))}}function Ni(e,t,r){return t=bn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=bn(n.length-t,0),a=k(i);++o<i;)a[o]=n[t+o];o=-1;for(var l=k(t+1);++o<t;)l[o]=n[o];return l[t]=r(a),kt(e,this,l)}}function $i(e,t){return t.length<2?e:Cr(e,ro(t,0,-1))}function Ii(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var _i=Ai(eo),Ri=ft||function(e,t){return mt.setTimeout(e,t)},Pi=Ai(to);function ji(e,t,n){var r=t+"";return Pi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return $t(h,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(se):[]}(r),n)))}function Ai(e){var t=0,r=0;return function(){var o=wn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Mi(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Xr(r,i),l=e[a];e[a]=e[r],e[r]=l}return e.length=t,e}var Ti=function(e){var t=Aa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)})),t}));function Di(e){if("string"==typeof e||cl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function zi(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bi(e){if(e instanceof Kn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=_o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Li=Yr((function(e,t){return Ua(e)?dr(e,vr(t,1,Ua,!0)):[]})),Hi=Yr((function(e,t){var r=Yi(t);return Ua(r)&&(r=n),Ua(e)?dr(e,vr(t,1,Ua,!0),si(r,2)):[]})),Fi=Yr((function(e,t){var r=Yi(t);return Ua(r)&&(r=n),Ua(e)?dr(e,vr(t,1,Ua,!0),n,r):[]}));function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ml(n);return o<0&&(o=bn(r+o,0)),Ht(e,si(t,3),o)}function Ki(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=ml(r),i=r<0?bn(o+i,0):yn(i,o-1)),Ht(e,si(t,3),i,!0)}function Wi(e){return(null==e?0:e.length)?vr(e,1):[]}function qi(e){return e&&e.length?e[0]:n}var Ui=Yr((function(e){var t=At(e,bo);return t.length&&t[0]===e[0]?Ir(t):[]})),Xi=Yr((function(e){var t=Yi(e),r=At(e,bo);return t===Yi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ir(r,si(t,2)):[]})),Gi=Yr((function(e){var t=Yi(e),r=At(e,bo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Ir(r,n,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Qi=Yr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var Zi=ri((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Ur(e,At(t,(function(e){return yi(e,n)?+e:e})).sort(No)),r}));function ea(e){return null==e?e:Cn.call(e)}var ta=Yr((function(e){return uo(vr(e,1,Ua,!0))})),na=Yr((function(e){var t=Yi(e);return Ua(t)&&(t=n),uo(vr(e,1,Ua,!0),si(t,2))})),ra=Yr((function(e){var t=Yi(e);return t="function"==typeof t?t:n,uo(vr(e,1,Ua,!0),n,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=Rt(e,(function(e){if(Ua(e))return t=bn(e.length,t),!0})),Yt(t,(function(t){return At(e,qt(t))}))}function ia(e,t){if(!e||!e.length)return[];var r=oa(e);return null==t?r:At(r,(function(e){return kt(t,n,e)}))}var aa=Yr((function(e,t){return Ua(e)?dr(e,t):[]})),la=Yr((function(e){return go(Rt(e,Ua))})),ca=Yr((function(e){var t=Yi(e);return Ua(t)&&(t=n),go(Rt(e,Ua),si(t,2))})),sa=Yr((function(e){var t=Yi(e);return t="function"==typeof t?t:n,go(Rt(e,Ua),n,t)})),ua=Yr(oa);var da=Yr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ia(e,r)}));function fa(e){var t=Ln(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ma=ri((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Kn&&yi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:n}),new Vn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var ha=Po((function(e,t,n){Me.call(e,n)?++e[n]:ir(e,n,1)}));var ga=Bo(Vi),va=Bo(Ki);function ba(e,t){return(Ka(e)?$t:fr)(e,si(t,3))}function ya(e,t){return(Ka(e)?It:pr)(e,si(t,3))}var wa=Po((function(e,t,n){Me.call(e,n)?e[n].push(t):ir(e,n,[t])}));var xa=Yr((function(e,t,n){var r=-1,o="function"==typeof t,i=qa(e)?k(e.length):[];return fr(e,(function(e){i[++r]=o?kt(t,e,n):_r(e,t,n)})),i})),Ea=Po((function(e,t,n){ir(e,n,t)}));function Ca(e,t){return(Ka(e)?At:Br)(e,si(t,3))}var Sa=Po((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Oa=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Kr(e,vr(t,1),[])})),ka=st||function(){return mt.Date.now()};function Na(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Jo(e,s,n,n,n,n,t)}function $a(e,t){var o;if("function"!=typeof t)throw new Ie(r);return e=ml(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ia=Yr((function(e,t,n){var r=1;if(n.length){var o=un(n,ci(Ia));r|=l}return Jo(e,r,t,n,o)})),_a=Yr((function(e,t,n){var r=3;if(n.length){var o=un(n,ci(_a));r|=l}return Jo(t,r,e,n,o)}));function Ra(e,t,o){var i,a,l,c,s,u,d=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new Ie(r);function h(t){var r=i,o=a;return i=a=n,d=t,c=e.apply(o,r)}function g(e){var r=e-u;return u===n||r>=t||r<0||p&&e-d>=l}function v(){var e=ka();if(g(e))return b(e);s=Ri(v,function(e){var n=t-(e-u);return p?yn(n,l-(e-d)):n}(e))}function b(e){return s=n,m&&i?h(e):(i=a=n,c)}function y(){var e=ka(),r=g(e);if(i=arguments,a=this,u=e,r){if(s===n)return function(e){return d=e,s=Ri(v,t),f?h(e):c}(u);if(p)return Co(s),s=Ri(v,t),h(u)}return s===n&&(s=Ri(v,t)),c}return t=gl(t)||0,el(o)&&(f=!!o.leading,l=(p="maxWait"in o)?bn(gl(o.maxWait)||0,t):l,m="trailing"in o?!!o.trailing:m),y.cancel=function(){s!==n&&Co(s),d=0,i=u=a=s=n},y.flush=function(){return s===n?c:b(ka())},y}var Pa=Yr((function(e,t){return ur(e,1,t)})),ja=Yr((function(e,t,n){return ur(e,gl(t)||0,n)}));function Aa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Aa.Cache||Un),n}function Ma(e){if("function"!=typeof e)throw new Ie(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Aa.Cache=Un;var Ta=xo((function(e,t){var n=(t=1==t.length&&Ka(t[0])?At(t[0],Jt(si())):At(vr(t,1),Jt(si()))).length;return Yr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return kt(e,this,r)}))})),Da=Yr((function(e,t){var r=un(t,ci(Da));return Jo(e,l,n,t,r)})),za=Yr((function(e,t){var r=un(t,ci(za));return Jo(e,c,n,t,r)})),Ba=ri((function(e,t){return Jo(e,u,n,n,n,t)}));function La(e,t){return e===t||e!=e&&t!=t}var Ha=Uo(kr),Fa=Uo((function(e,t){return e>=t})),Va=Rr(function(){return arguments}())?Rr:function(e){return tl(e)&&Me.call(e,"callee")&&!Xe.call(e,"callee")},Ka=k.isArray,Wa=wt?Jt(wt):function(e){return tl(e)&&Or(e)==j};function qa(e){return null!=e&&Za(e.length)&&!Qa(e)}function Ua(e){return tl(e)&&qa(e)}var Xa=bt||gc,Ga=xt?Jt(xt):function(e){return tl(e)&&Or(e)==y};function Ya(e){if(!tl(e))return!1;var t=Or(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ol(e)}function Qa(e){if(!el(e))return!1;var t=Or(e);return t==x||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ml(e)}function Za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function el(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tl(e){return null!=e&&"object"==typeof e}var nl=Et?Jt(Et):function(e){return tl(e)&&hi(e)==C};function rl(e){return"number"==typeof e||tl(e)&&Or(e)==S}function ol(e){if(!tl(e)||Or(e)!=O)return!1;var t=qe(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Be}var il=Ct?Jt(Ct):function(e){return tl(e)&&Or(e)==$};var al=St?Jt(St):function(e){return tl(e)&&hi(e)==I};function ll(e){return"string"==typeof e||!Ka(e)&&tl(e)&&Or(e)==_}function cl(e){return"symbol"==typeof e||tl(e)&&Or(e)==R}var sl=Ot?Jt(Ot):function(e){return tl(e)&&Za(e.length)&&!!lt[Or(e)]};var ul=Uo(zr),dl=Uo((function(e,t){return e<=t}));function fl(e){if(!e)return[];if(qa(e))return ll(e)?mn(e):_o(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=hi(e);return(t==C?cn:t==I?dn:Ll)(e)}function pl(e){return e?(e=gl(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ml(e){var t=pl(e),n=t%1;return t==t?n?t-n:t:0}function hl(e){return e?lr(ml(e),0,m):0}function gl(e){if("number"==typeof e)return e;if(cl(e))return p;if(el(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=el(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ge.test(e);return n||be.test(e)?dt(e.slice(2),n?2:8):he.test(e)?p:+e}function vl(e){return Ro(e,Pl(e))}function bl(e){return null==e?"":so(e)}var yl=jo((function(e,t){if(Si(t)||qa(t))Ro(t,Rl(t),e);else for(var n in t)Me.call(t,n)&&tr(e,n,t[n])})),wl=jo((function(e,t){Ro(t,Pl(t),e)})),xl=jo((function(e,t,n,r){Ro(t,Pl(t),e,r)})),El=jo((function(e,t,n,r){Ro(t,Rl(t),e,r)})),Cl=ri(ar);var Sl=Yr((function(e,t){e=ke(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&wi(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],l=Pl(a),c=-1,s=l.length;++c<s;){var u=l[c],d=e[u];(d===n||La(d,Pe[u])&&!Me.call(e,u))&&(e[u]=a[u])}return e})),Ol=Yr((function(e){return e.push(n,ei),kt(Al,n,e)}));function kl(e,t,r){var o=null==e?n:Cr(e,t);return o===n?r:o}function Nl(e,t){return null!=e&&gi(e,t,$r)}var $l=Fo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),e[t]=n}),ec(rc)),Il=Fo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),si),_l=Yr(_r);function Rl(e){return qa(e)?Yn(e):Tr(e)}function Pl(e){return qa(e)?Yn(e,!0):Dr(e)}var jl=jo((function(e,t,n){Fr(e,t,n)})),Al=jo((function(e,t,n,r){Fr(e,t,n,r)})),Ml=ri((function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,(function(t){return t=wo(t,e),r||(r=t.length>1),t})),Ro(e,ii(e),n),r&&(n=cr(n,7,ti));for(var o=t.length;o--;)fo(n,t[o]);return n}));var Tl=ri((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Nl(e,n)}))}(e,t)}));function Dl(e,t){if(null==e)return{};var n=At(ii(e),(function(e){return[e]}));return t=si(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var zl=Qo(Rl),Bl=Qo(Pl);function Ll(e){return null==e?[]:Zt(e,Rl(e))}var Hl=Do((function(e,t,n){return t=t.toLowerCase(),e+(n?Fl(t):t)}));function Fl(e){return Yl(bl(e).toLowerCase())}function Vl(e){return(e=bl(e))&&e.replace(we,rn).replace(et,"")}var Kl=Do((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Wl=Do((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ql=To("toLowerCase");var Ul=Do((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xl=Do((function(e,t,n){return e+(n?" ":"")+Yl(t)}));var Gl=Do((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Yl=To("toUpperCase");function Ql(e,t,r){return e=bl(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Jl=Yr((function(e,t){try{return kt(e,n,t)}catch(e){return Ya(e)?e:new Ce(e)}})),Zl=ri((function(e,t){return $t(t,(function(t){t=Di(t),ir(e,t,Ia(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Lo(),nc=Lo(!0);function rc(e){return e}function oc(e){return Mr("function"==typeof e?e:cr(e,1))}var ic=Yr((function(e,t){return function(n){return _r(n,e,t)}})),ac=Yr((function(e,t){return function(n){return _r(e,n,t)}}));function lc(e,t,n){var r=Rl(t),o=Er(t,r);null!=n||el(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Er(t,Rl(t)));var i=!(el(n)&&"chain"in n&&!n.chain),a=Qa(e);return $t(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=_o(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})})),e}function cc(){}var sc=Ko(At),uc=Ko(_t),dc=Ko(zt);function fc(e){return xi(e)?qt(Di(e)):function(e){return function(t){return Cr(t,e)}}(e)}var pc=qo(),mc=qo(!0);function hc(){return[]}function gc(){return!1}var vc=Vo((function(e,t){return e+t}),0),bc=Go("ceil"),yc=Vo((function(e,t){return e/t}),1),wc=Go("floor");var xc,Ec=Vo((function(e,t){return e*t}),1),Cc=Go("round"),Sc=Vo((function(e,t){return e-t}),0);return Ln.after=function(e,t){if("function"!=typeof t)throw new Ie(r);return e=ml(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=Na,Ln.assign=yl,Ln.assignIn=wl,Ln.assignInWith=xl,Ln.assignWith=El,Ln.at=Cl,Ln.before=$a,Ln.bind=Ia,Ln.bindAll=Zl,Ln.bindKey=_a,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ka(e)?e:[e]},Ln.chain=fa,Ln.chunk=function(e,t,r){t=(r?wi(e,t,r):t===n)?1:bn(ml(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,l=k(pt(o/t));i<o;)l[a++]=ro(e,i,i+=t);return l},Ln.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Ln.concat=function(){var e=arguments.length;if(!e)return[];for(var t=k(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Mt(Ka(n)?_o(n):[n],vr(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Ie(r);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var o=e[r];if(kt(o[0],this,n))return kt(o[1],this,n)}}))},Ln.conforms=function(e){return function(e){var t=Rl(e);return function(n){return sr(n,e,t)}}(cr(e,1))},Ln.constant=ec,Ln.countBy=ha,Ln.create=function(e,t){var n=Hn(e);return null==t?n:or(n,t)},Ln.curry=function e(t,r,o){var i=Jo(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Ln.curryRight=function e(t,r,o){var i=Jo(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Ln.debounce=Ra,Ln.defaults=Sl,Ln.defaultsDeep=Ol,Ln.defer=Pa,Ln.delay=ja,Ln.difference=Li,Ln.differenceBy=Hi,Ln.differenceWith=Fi,Ln.drop=function(e,t,r){var o=null==e?0:e.length;return o?ro(e,(t=r||t===n?1:ml(t))<0?0:t,o):[]},Ln.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?ro(e,0,(t=o-(t=r||t===n?1:ml(t)))<0?0:t):[]},Ln.dropRightWhile=function(e,t){return e&&e.length?mo(e,si(t,3),!0,!0):[]},Ln.dropWhile=function(e,t){return e&&e.length?mo(e,si(t,3),!0):[]},Ln.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&wi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=ml(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:ml(o))<0&&(o+=i),o=r>o?0:hl(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Ln.filter=function(e,t){return(Ka(e)?Rt:gr)(e,si(t,3))},Ln.flatMap=function(e,t){return vr(Ca(e,t),1)},Ln.flatMapDeep=function(e,t){return vr(Ca(e,t),d)},Ln.flatMapDepth=function(e,t,r){return r=r===n?1:ml(r),vr(Ca(e,t),r)},Ln.flatten=Wi,Ln.flattenDeep=function(e){return(null==e?0:e.length)?vr(e,d):[]},Ln.flattenDepth=function(e,t){return(null==e?0:e.length)?vr(e,t=t===n?1:ml(t)):[]},Ln.flip=function(e){return Jo(e,512)},Ln.flow=tc,Ln.flowRight=nc,Ln.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Ln.functions=function(e){return null==e?[]:Er(e,Rl(e))},Ln.functionsIn=function(e){return null==e?[]:Er(e,Pl(e))},Ln.groupBy=wa,Ln.initial=function(e){return(null==e?0:e.length)?ro(e,0,-1):[]},Ln.intersection=Ui,Ln.intersectionBy=Xi,Ln.intersectionWith=Gi,Ln.invert=$l,Ln.invertBy=Il,Ln.invokeMap=xa,Ln.iteratee=oc,Ln.keyBy=Ea,Ln.keys=Rl,Ln.keysIn=Pl,Ln.map=Ca,Ln.mapKeys=function(e,t){var n={};return t=si(t,3),wr(e,(function(e,r,o){ir(n,t(e,r,o),e)})),n},Ln.mapValues=function(e,t){var n={};return t=si(t,3),wr(e,(function(e,r,o){ir(n,r,t(e,r,o))})),n},Ln.matches=function(e){return Lr(cr(e,1))},Ln.matchesProperty=function(e,t){return Hr(e,cr(t,1))},Ln.memoize=Aa,Ln.merge=jl,Ln.mergeWith=Al,Ln.method=ic,Ln.methodOf=ac,Ln.mixin=lc,Ln.negate=Ma,Ln.nthArg=function(e){return e=ml(e),Yr((function(t){return Vr(t,e)}))},Ln.omit=Ml,Ln.omitBy=function(e,t){return Dl(e,Ma(si(t)))},Ln.once=function(e){return $a(2,e)},Ln.orderBy=function(e,t,r,o){return null==e?[]:(Ka(t)||(t=null==t?[]:[t]),Ka(r=o?n:r)||(r=null==r?[]:[r]),Kr(e,t,r))},Ln.over=sc,Ln.overArgs=Ta,Ln.overEvery=uc,Ln.overSome=dc,Ln.partial=Da,Ln.partialRight=za,Ln.partition=Sa,Ln.pick=Tl,Ln.pickBy=Dl,Ln.property=fc,Ln.propertyOf=function(e){return function(t){return null==e?n:Cr(e,t)}},Ln.pull=Qi,Ln.pullAll=Ji,Ln.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,si(n,2)):e},Ln.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?qr(e,t,n,r):e},Ln.pullAt=Zi,Ln.range=pc,Ln.rangeRight=mc,Ln.rearg=Ba,Ln.reject=function(e,t){return(Ka(e)?Rt:gr)(e,Ma(si(t,3)))},Ln.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Ur(e,o),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new Ie(r);return Yr(e,t=t===n?t:ml(t))},Ln.reverse=ea,Ln.sampleSize=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:ml(t),(Ka(e)?Jn:Jr)(e,t)},Ln.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Ln.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Zr(e,t,r,o)},Ln.shuffle=function(e){return(Ka(e)?Zn:no)(e)},Ln.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&wi(e,t,r)?(t=0,r=o):(t=null==t?0:ml(t),r=r===n?o:ml(r)),ro(e,t,r)):[]},Ln.sortBy=Oa,Ln.sortedUniq=function(e){return e&&e.length?lo(e):[]},Ln.sortedUniqBy=function(e,t){return e&&e.length?lo(e,si(t,2)):[]},Ln.split=function(e,t,r){return r&&"number"!=typeof r&&wi(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=bl(e))&&("string"==typeof t||null!=t&&!il(t))&&!(t=so(t))&&ln(e)?Eo(mn(e),0,r):e.split(t,r):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new Ie(r);return t=null==t?0:bn(ml(t),0),Yr((function(n){var r=n[t],o=Eo(n,0,t);return r&&Mt(o,r),kt(e,this,o)}))},Ln.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},Ln.take=function(e,t,r){return e&&e.length?ro(e,0,(t=r||t===n?1:ml(t))<0?0:t):[]},Ln.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?ro(e,(t=o-(t=r||t===n?1:ml(t)))<0?0:t,o):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?mo(e,si(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?mo(e,si(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Ie(r);return el(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Ra(e,t,{leading:o,maxWait:t,trailing:i})},Ln.thru=pa,Ln.toArray=fl,Ln.toPairs=zl,Ln.toPairsIn=Bl,Ln.toPath=function(e){return Ka(e)?At(e,Di):cl(e)?[e]:_o(Ti(bl(e)))},Ln.toPlainObject=vl,Ln.transform=function(e,t,n){var r=Ka(e),o=r||Xa(e)||sl(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:el(e)&&Qa(i)?Hn(qe(e)):{}}return(o?$t:wr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Ln.unary=function(e){return Na(e,1)},Ln.union=ta,Ln.unionBy=na,Ln.unionWith=ra,Ln.uniq=function(e){return e&&e.length?uo(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?uo(e,si(t,2)):[]},Ln.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?uo(e,n,t):[]},Ln.unset=function(e,t){return null==e||fo(e,t)},Ln.unzip=oa,Ln.unzipWith=ia,Ln.update=function(e,t,n){return null==e?e:po(e,t,yo(n))},Ln.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:po(e,t,yo(r),o)},Ln.values=Ll,Ln.valuesIn=function(e){return null==e?[]:Zt(e,Pl(e))},Ln.without=aa,Ln.words=Ql,Ln.wrap=function(e,t){return Da(yo(t),e)},Ln.xor=la,Ln.xorBy=ca,Ln.xorWith=sa,Ln.zip=ua,Ln.zipObject=function(e,t){return vo(e||[],t||[],tr)},Ln.zipObjectDeep=function(e,t){return vo(e||[],t||[],Zr)},Ln.zipWith=da,Ln.entries=zl,Ln.entriesIn=Bl,Ln.extend=wl,Ln.extendWith=xl,lc(Ln,Ln),Ln.add=vc,Ln.attempt=Jl,Ln.camelCase=Hl,Ln.capitalize=Fl,Ln.ceil=bc,Ln.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gl(r))==r?r:0),t!==n&&(t=(t=gl(t))==t?t:0),lr(gl(e),t,r)},Ln.clone=function(e){return cr(e,4)},Ln.cloneDeep=function(e){return cr(e,5)},Ln.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Ln.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Ln.conformsTo=function(e,t){return null==t||sr(e,t,Rl(t))},Ln.deburr=Vl,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=yc,Ln.endsWith=function(e,t,r){e=bl(e),t=so(t);var o=e.length,i=r=r===n?o:lr(ml(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Ln.eq=La,Ln.escape=function(e){return(e=bl(e))&&Y.test(e)?e.replace(X,on):e},Ln.escapeRegExp=function(e){return(e=bl(e))&&oe.test(e)?e.replace(re,"\\$&"):e},Ln.every=function(e,t,r){var o=Ka(e)?_t:mr;return r&&wi(e,t,r)&&(t=n),o(e,si(t,3))},Ln.find=ga,Ln.findIndex=Vi,Ln.findKey=function(e,t){return Lt(e,si(t,3),wr)},Ln.findLast=va,Ln.findLastIndex=Ki,Ln.findLastKey=function(e,t){return Lt(e,si(t,3),xr)},Ln.floor=wc,Ln.forEach=ba,Ln.forEachRight=ya,Ln.forIn=function(e,t){return null==e?e:br(e,si(t,3),Pl)},Ln.forInRight=function(e,t){return null==e?e:yr(e,si(t,3),Pl)},Ln.forOwn=function(e,t){return e&&wr(e,si(t,3))},Ln.forOwnRight=function(e,t){return e&&xr(e,si(t,3))},Ln.get=kl,Ln.gt=Ha,Ln.gte=Fa,Ln.has=function(e,t){return null!=e&&gi(e,t,Nr)},Ln.hasIn=Nl,Ln.head=qi,Ln.identity=rc,Ln.includes=function(e,t,n,r){e=qa(e)?e:Ll(e),n=n&&!r?ml(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),ll(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ft(e,t,n)>-1},Ln.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ml(n);return o<0&&(o=bn(r+o,0)),Ft(e,t,o)},Ln.inRange=function(e,t,r){return t=pl(t),r===n?(r=t,t=0):r=pl(r),function(e,t,n){return e>=yn(t,n)&&e<bn(t,n)}(e=gl(e),t,r)},Ln.invoke=_l,Ln.isArguments=Va,Ln.isArray=Ka,Ln.isArrayBuffer=Wa,Ln.isArrayLike=qa,Ln.isArrayLikeObject=Ua,Ln.isBoolean=function(e){return!0===e||!1===e||tl(e)&&Or(e)==b},Ln.isBuffer=Xa,Ln.isDate=Ga,Ln.isElement=function(e){return tl(e)&&1===e.nodeType&&!ol(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(qa(e)&&(Ka(e)||"string"==typeof e||"function"==typeof e.splice||Xa(e)||sl(e)||Va(e)))return!e.length;var t=hi(e);if(t==C||t==I)return!e.size;if(Si(e))return!Tr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return Pr(e,t)},Ln.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Pr(e,t,n,r):!!o},Ln.isError=Ya,Ln.isFinite=function(e){return"number"==typeof e&&yt(e)},Ln.isFunction=Qa,Ln.isInteger=Ja,Ln.isLength=Za,Ln.isMap=nl,Ln.isMatch=function(e,t){return e===t||jr(e,t,di(t))},Ln.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,jr(e,t,di(t),r)},Ln.isNaN=function(e){return rl(e)&&e!=+e},Ln.isNative=function(e){if(Ci(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ar(e)},Ln.isNil=function(e){return null==e},Ln.isNull=function(e){return null===e},Ln.isNumber=rl,Ln.isObject=el,Ln.isObjectLike=tl,Ln.isPlainObject=ol,Ln.isRegExp=il,Ln.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=f},Ln.isSet=al,Ln.isString=ll,Ln.isSymbol=cl,Ln.isTypedArray=sl,Ln.isUndefined=function(e){return e===n},Ln.isWeakMap=function(e){return tl(e)&&hi(e)==P},Ln.isWeakSet=function(e){return tl(e)&&"[object WeakSet]"==Or(e)},Ln.join=function(e,t){return null==e?"":Bt.call(e,t)},Ln.kebabCase=Kl,Ln.last=Yi,Ln.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ml(r))<0?bn(o+i,0):yn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ht(e,Kt,i,!0)},Ln.lowerCase=Wl,Ln.lowerFirst=ql,Ln.lt=ul,Ln.lte=dl,Ln.max=function(e){return e&&e.length?hr(e,rc,kr):n},Ln.maxBy=function(e,t){return e&&e.length?hr(e,si(t,2),kr):n},Ln.mean=function(e){return Wt(e,rc)},Ln.meanBy=function(e,t){return Wt(e,si(t,2))},Ln.min=function(e){return e&&e.length?hr(e,rc,zr):n},Ln.minBy=function(e,t){return e&&e.length?hr(e,si(t,2),zr):n},Ln.stubArray=hc,Ln.stubFalse=gc,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=Ec,Ln.nth=function(e,t){return e&&e.length?Vr(e,ml(t)):n},Ln.noConflict=function(){return mt._===this&&(mt._=Le),this},Ln.noop=cc,Ln.now=ka,Ln.pad=function(e,t,n){e=bl(e);var r=(t=ml(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(ht(o),n)+e+Wo(pt(o),n)},Ln.padEnd=function(e,t,n){e=bl(e);var r=(t=ml(t))?pn(e):0;return t&&r<t?e+Wo(t-r,n):e},Ln.padStart=function(e,t,n){e=bl(e);var r=(t=ml(t))?pn(e):0;return t&&r<t?Wo(t-r,n)+e:e},Ln.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(bl(e).replace(ie,""),t||0)},Ln.random=function(e,t,r){if(r&&"boolean"!=typeof r&&wi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=pl(e),t===n?(t=e,e=0):t=pl(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=En();return yn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Xr(e,t)},Ln.reduce=function(e,t,n){var r=Ka(e)?Tt:Xt,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Ln.reduceRight=function(e,t,n){var r=Ka(e)?Dt:Xt,o=arguments.length<3;return r(e,si(t,4),n,o,pr)},Ln.repeat=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:ml(t),Gr(bl(e),t)},Ln.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(e,t,r){var o=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[Di(t[o])];a===n&&(o=i,a=r),e=Qa(a)?a.call(e):a}return e},Ln.round=Cc,Ln.runInContext=e,Ln.sample=function(e){return(Ka(e)?Qn:Qr)(e)},Ln.size=function(e){if(null==e)return 0;if(qa(e))return ll(e)?pn(e):e.length;var t=hi(e);return t==C||t==I?e.size:Tr(e).length},Ln.snakeCase=Ul,Ln.some=function(e,t,r){var o=Ka(e)?zt:oo;return r&&wi(e,t,r)&&(t=n),o(e,si(t,3))},Ln.sortedIndex=function(e,t){return io(e,t)},Ln.sortedIndexBy=function(e,t,n){return ao(e,t,si(n,2))},Ln.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=io(e,t);if(r<n&&La(e[r],t))return r}return-1},Ln.sortedLastIndex=function(e,t){return io(e,t,!0)},Ln.sortedLastIndexBy=function(e,t,n){return ao(e,t,si(n,2),!0)},Ln.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=io(e,t,!0)-1;if(La(e[n],t))return n}return-1},Ln.startCase=Xl,Ln.startsWith=function(e,t,n){return e=bl(e),n=null==n?0:lr(ml(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Ln.subtract=Sc,Ln.sum=function(e){return e&&e.length?Gt(e,rc):0},Ln.sumBy=function(e,t){return e&&e.length?Gt(e,si(t,2)):0},Ln.template=function(e,t,r){var o=Ln.templateSettings;r&&wi(e,t,r)&&(t=n),e=bl(e),t=xl({},t,o,Zo);var i,a,l=xl({},t.imports,o.imports,Zo),c=Rl(l),s=Zt(l,c),u=0,d=t.interpolate||xe,f="__p += '",p=Ne((t.escape||xe).source+"|"+d.source+"|"+(d===Z?pe:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),m="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(p,(function(t,n,r,o,l,c){return r||(r=o),f+=e.slice(u,c).replace(Ee,an),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var h=Me.call(t,"variable")&&t.variable;if(h){if(de.test(h))throw new Ce("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(K,""):f).replace(W,"$1").replace(q,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Jl((function(){return Se(c,m+"return "+f).apply(n,s)}));if(g.source=f,Ya(g))throw g;return g},Ln.times=function(e,t){if((e=ml(e))<1||e>f)return[];var n=m,r=yn(e,m);t=si(t),e-=m;for(var o=Yt(r,t);++n<e;)t(n);return o},Ln.toFinite=pl,Ln.toInteger=ml,Ln.toLength=hl,Ln.toLower=function(e){return bl(e).toLowerCase()},Ln.toNumber=gl,Ln.toSafeInteger=function(e){return e?lr(ml(e),-9007199254740991,f):0===e?e:0},Ln.toString=bl,Ln.toUpper=function(e){return bl(e).toUpperCase()},Ln.trim=function(e,t,r){if((e=bl(e))&&(r||t===n))return Qt(e);if(!e||!(t=so(t)))return e;var o=mn(e),i=mn(t);return Eo(o,tn(o,i),nn(o,i)+1).join("")},Ln.trimEnd=function(e,t,r){if((e=bl(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=so(t)))return e;var o=mn(e);return Eo(o,0,nn(o,mn(t))+1).join("")},Ln.trimStart=function(e,t,r){if((e=bl(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=so(t)))return e;var o=mn(e);return Eo(o,tn(o,mn(t))).join("")},Ln.truncate=function(e,t){var r=30,o="...";if(el(t)){var i="separator"in t?t.separator:i;r="length"in t?ml(t.length):r,o="omission"in t?so(t.omission):o}var a=(e=bl(e)).length;if(ln(e)){var l=mn(e);a=l.length}if(r>=a)return e;var c=r-pn(o);if(c<1)return o;var s=l?Eo(l,0,c).join(""):e.slice(0,c);if(i===n)return s+o;if(l&&(c+=s.length-c),il(i)){if(e.slice(c).search(i)){var u,d=s;for(i.global||(i=Ne(i.source,bl(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;s=s.slice(0,f===n?c:f)}}else if(e.indexOf(so(i),c)!=c){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+o},Ln.unescape=function(e){return(e=bl(e))&&G.test(e)?e.replace(U,gn):e},Ln.uniqueId=function(e){var t=++Te;return bl(e)+t},Ln.upperCase=Gl,Ln.upperFirst=Yl,Ln.each=ba,Ln.eachRight=ya,Ln.first=qi,lc(Ln,(xc={},wr(Ln,(function(e,t){Me.call(Ln.prototype,t)||(xc[t]=e)})),xc),{chain:!1}),Ln.VERSION="4.17.21",$t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ln[e].placeholder=Ln})),$t(["drop","take"],(function(e,t){Kn.prototype[e]=function(r){r=r===n?1:bn(ml(r),0);var o=this.__filtered__&&!t?new Kn(this):this.clone();return o.__filtered__?o.__takeCount__=yn(r,o.__takeCount__):o.__views__.push({size:yn(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Kn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),$t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Kn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),$t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Kn.prototype[e]=function(){return this[n](1).value()[0]}})),$t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Kn.prototype[e]=function(){return this.__filtered__?new Kn(this):this[n](1)}})),Kn.prototype.compact=function(){return this.filter(rc)},Kn.prototype.find=function(e){return this.filter(e).head()},Kn.prototype.findLast=function(e){return this.reverse().find(e)},Kn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Kn(this):this.map((function(n){return _r(n,e,t)}))})),Kn.prototype.reject=function(e){return this.filter(Ma(si(e)))},Kn.prototype.slice=function(e,t){e=ml(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Kn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ml(t))<0?r.dropRight(-t):r.take(t-e)),r)},Kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kn.prototype.toArray=function(){return this.take(m)},wr(Kn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Ln[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Ln.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,c=t instanceof Kn,s=l[0],u=c||Ka(t),d=function(e){var t=i.apply(Ln,Mt([e],l));return o&&f?t[0]:t};u&&r&&"function"==typeof s&&1!=s.length&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,h=c&&!p;if(!a&&u){t=h?t:new Kn(this);var g=e.apply(t,l);return g.__actions__.push({func:pa,args:[d],thisArg:n}),new Vn(g,f)}return m&&h?e.apply(this,l):(g=this.thru(d),m?o?g.value()[0]:g.value():g)})})),$t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=_e[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ka(o)?o:[],e)}return this[n]((function(n){return t.apply(Ka(n)?n:[],e)}))}})),wr(Kn.prototype,(function(e,t){var n=Ln[t];if(n){var r=n.name+"";Me.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Ho(n,2).name]=[{name:"wrapper",func:n}],Kn.prototype.clone=function(){var e=new Kn(this.__wrapped__);return e.__actions__=_o(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=_o(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=_o(this.__views__),e},Kn.prototype.reverse=function(){if(this.__filtered__){var e=new Kn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ka(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,c=l-a,s=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,p=yn(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return ho(e,this.__actions__);var m=[];e:for(;c--&&f<p;){for(var h=-1,g=e[s+=t];++h<d;){var v=u[h],b=v.iteratee,y=v.type,w=b(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}m[f++]=g}return m},Ln.prototype.at=ma,Ln.prototype.chain=function(){return fa(this)},Ln.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Ln.prototype.next=function(){this.__values__===n&&(this.__values__=fl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Ln.prototype.plant=function(e){for(var t,r=this;r instanceof Fn;){var o=Bi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Ln.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Kn){var t=e;return this.__actions__.length&&(t=new Kn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ea],thisArg:n}),new Vn(t,this.__chain__)}return this.thru(ea)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return ho(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,Qe&&(Ln.prototype[Qe]=function(){return this}),Ln}();gt?((gt.exports=vn)._=vn,ht._=vn):mt._=vn}).call(k)}(WP,WP.exports);var qP,UP=WP.exports,XP=function(e,t){for(var n=d([],e,!0);n.length>0;){var r=n.pop();if(r.key===t)return r;r.children&&n.push.apply(n,r.children)}return null};function GP(){return GP=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},GP.apply(null,arguments)}var YP,QP=function(e){return o.createElement("svg",GP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),qP||(qP=o.createElement("path",{fill:"currentColor",d:"m13.354 6.354-5 5a.5.5 0 0 1-.708 0l-5-5a.5.5 0 0 1 .708-.708L8 10.293l4.646-4.647a.5.5 0 1 1 .708.708"})))};function JP(){return JP=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},JP.apply(null,arguments)}var ZP,ej=function(e){return o.createElement("svg",JP({xmlns:"http://www.w3.org/2000/svg",width:17,height:16,fill:"none"},e),YP||(YP=o.createElement("path",{fill:"currentColor",d:"M14.3 10.6a.5.5 0 0 0-.3-.1h-.5V4a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2c0 .85.628 1.346.7 1.4a.49.49 0 0 0 .59.006.5.5 0 0 0 .014-.802C2.302 4.601 2 4.36 2 4a1 1 0 0 1 2 0v8a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2c0-.85-.625-1.346-.7-1.4M7 6h4a.5.5 0 0 1 0 1H7a.5.5 0 1 1 0-1m-.5 2.5A.5.5 0 0 1 7 8h4a.5.5 0 0 1 0 1H7a.5.5 0 0 1-.5-.5M13 13H7.232c.176-.304.268-.649.268-1q0-.256-.076-.5H13.8a.8.8 0 0 1 .202.5A1 1 0 0 1 13 13"})))};function tj(){return tj=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},tj.apply(null,arguments)}var nj,rj=function(e){return o.createElement("svg",tj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),ZP||(ZP=o.createElement("path",{fill:"currentColor",d:"m13.98 4.134-5.5-3.009a.99.99 0 0 0-.96 0l-5.5 3.01a1 1 0 0 0-.52.876v5.977a1 1 0 0 0 .52.875l5.5 3.01a.99.99 0 0 0 .96 0l5.5-3.01a1 1 0 0 0 .52-.875V5.011a1 1 0 0 0-.52-.877M8 2l5.022 2.75-1.861 1.018-5.022-2.75zm0 5.5L2.978 4.75l2.12-1.16 5.021 2.75zm5.5 3.49-5 2.737V8.365l2-1.094V9.5a.5.5 0 0 0 1 0V6.723l2-1.095v5.363"})))};function oj(){return oj=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},oj.apply(null,arguments)}var ij,aj=function(e){return o.createElement("svg",oj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),nj||(nj=o.createElement("path",{fill:"currentColor",d:"M14.983 13H14V6a1 1 0 0 0-1-1h-2.75a.25.25 0 0 0-.25.25V13H9V2.026a1.03 1.03 0 0 0-.385-.813 1 1 0 0 0-1.17-.043l-5 3.33A1 1 0 0 0 2 5.334V13h-.983a.51.51 0 0 0-.517.467A.5.5 0 0 0 1 14h14a.499.499 0 0 0 .333-.868.5.5 0 0 0-.35-.132M4.75 11.5a.5.5 0 0 1-.533.5.51.51 0 0 1-.467-.518v-.965A.51.51 0 0 1 4.217 10a.5.5 0 0 1 .533.5zm0-3.5a.5.5 0 0 1-.533.5.51.51 0 0 1-.467-.517v-.966a.51.51 0 0 1 .467-.517.5.5 0 0 1 .533.5zm2.5 3.5a.5.5 0 0 1-.533.5.51.51 0 0 1-.467-.516v-.967A.51.51 0 0 1 6.717 10a.5.5 0 0 1 .533.5zm0-3.5a.5.5 0 0 1-.533.5.51.51 0 0 1-.467-.516v-.967a.51.51 0 0 1 .467-.516.5.5 0 0 1 .533.5z"})))};function lj(){return lj=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},lj.apply(null,arguments)}var cj,sj=function(e){return o.createElement("svg",lj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),ij||(ij=o.createElement("path",{fill:"currentColor",d:"M14.433 13.75A.5.5 0 0 1 14 14H2a.5.5 0 0 1-.433-.75c.952-1.646 2.42-2.826 4.131-3.385a4.5 4.5 0 1 1 4.604 0c1.712.56 3.179 1.74 4.13 3.385a.5.5 0 0 1 .001.5"})))};function uj(){return uj=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},uj.apply(null,arguments)}var dj=function(e){return o.createElement("svg",uj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),cj||(cj=o.createElement("path",{fill:"currentColor",d:"M8 1.5A6.5 6.5 0 1 0 14.5 8 6.507 6.507 0 0 0 8 1.5M3.893 11.654l.158-.103a1 1 0 0 0 .449-.83l.013-2.265L5.823 6.5l.02.014 1.23.804c.206.146.459.207.709.173l1.968-.267a1 1 0 0 0 .625-.338l1.386-1.61A1 1 0 0 0 12 4.625v-.396a5.49 5.49 0 0 1 1.236 5.459l-1.01-.923a1 1 0 0 0-1.057-.187l-1.904.79a1 1 0 0 0-.605.778l-.15 1.012a1 1 0 0 0 .736 1.113l1.342.354.147.148a5.49 5.49 0 0 1-6.842-1.119"})))},fj="EntityTree-module_container__F8BNC",pj="EntityTree-module_node-more__Zo2wM",mj="EntityTree-module_node-default__iVIc-",hj="EntityTree-module_title__BJnDv",gj="EntityTree-module_total__icLCA",vj="EntityTree-module_node-sense__s75ax",bj="EntityTree-module_fields__jwWMe",yj="EntityTree-module_node-sense-content__FHgPl",wj="EntityTree-module_highlight__QWIYs";IR(".EntityTree-module_container__F8BNC {\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.EntityTree-module_container__F8BNC * {\n box-sizing: border-box;\n}\n.EntityTree-module_container__F8BNC .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.EntityTree-module_container__F8BNC .ant-tree {\n background: transparent;\n color: rgba(255, 255, 255, 0.8);\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-node-content-wrapper:hover,\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-checkbox + span:hover,\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-switcher:not(.ant-tree-switcher-noop):hover:before {\n background: transparent;\n}\n.EntityTree-module_container__F8BNC .ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper {\n width: 0;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode {\n align-items: center;\n padding: 0;\n min-height: 40px;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode .ant-tree-switcher {\n line-height: 40px;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode .ant-tree-checkbox {\n align-self: center;\n margin: 0;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='root'] {\n min-height: 32px;\n margin-bottom: 4px;\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAvUAAABACAMAAACtBHhQAAAAdVBMVEVAm/hDsvNDvPJCqPg/jPgAAAA8hv4+nvY/u+49ivxAtfI9jfo+lfg+mfdBsfNAqfNByu8/we8+kfo+xu89ovE+pPI+p/ZBsfI+tfA+kfs/nvc+ifxCnflAwvA9h/4+h/8xnsMoc65Cp/QjcZojbpkpdLIjb5ioMoMLAAAAJnRSTlMmJiYmJgBGQDhGOkZEQjs9NDZFNUA+LisuOjQ+Ki1CJkyiKuZflsDG+oIAAAsfSURBVHja7JpRjgQhCERR7HN4/1uupfZW9m+SFSYE3yj2AV4qQEaeyyUb1/pLPqS11ttb+HEIaZIWHceEomXVcWJTSx0UHE8e6XT+PCKZvVdRxbWhDFSjil9xvX2n9Q10K+1zKq+r0nkLylY/buJXyu/LI/TdwHxJm/Qr5+2k/7UdnxpV/QocI5/W28V81qjf1qPawM4maodTZ6Xsvto/Audx/3BbnP+huNbjbODmpuLOwrh3gtZD+97bzfqT/Y0YdjiM+piN/ZB8PgDVF06zu1zvTy8tDcTfSR/UeJoP4cu87pvLtiF3W38AtWX39HEb+/L9rDebZ5NGPTf1KOcp6wm7umHYr4EWrxu0vnNhf2fZIGk/DlC8QSdbGI+yqhfM+mn9Vf5wZz+qGlHwg/kk0t7+HWc/bnLi9PVph9kp/dLeCjb0IcdaNjUw/0vWmyR9k4zzrLr1OBFtn1Q+r+8fiB8m69OiAJWPgfNh/4Xzw74Z7AAMgjB0kQ/Z///lNJA0HHYxVkXpwbD7C4GulB7kgyQSrvYuRdoD4inUS1zjsrhldo1f7//MZtJ4Zw+nco63QR81m2Cm5VwTB9S/oD47/RCznoe9jxlLPNad+LD/J40hfGTWuF+iDzGJ03A/45hqrkC99Xm17LXMdXZA4pIbNNZmb9SH5b+0CefEbfZW9K3bj1fl2wqTVcHmnaKz/MoJJ6f64RJhns3Gjte7O6r52CNfz9Fz52Bfxc0Zm3EZ+JgKy+zMdg/qgTwB+n2cy4/3MthpIwiCKJcYFgjGNiYckgiSiP//xPSb7kpptJrVrkWo6a7qHef4aE2+f7Z+cUI4ev4IfUtPkav18vz8wnlhyIOI/6If6U36tLjh15xoTojLVlzp5qP15ert5+doatpF393tohl8h/iFqiQ6TdiRgYmZ5mDhBMlVr/uoe2yFvnpC5JKur+koRGzWk6cSg3WOIs5RTfv9WRPN4Wo/1AP9EGVZtxW3UZGE5HGsm5vbOIiQt+uVOtBRhzCK4dDr1OwUeSo9YpoeH9PotEW9vl69v+2Gmpa+A1d5wpsnI8Q1A4b0ZfqbGfnJEvS0CU+mp+Yx07r8dyfq8V4beacRw4B7eId4gubjUuxBPdsy9DpJvqGn9kKeHDAP1s2jjboF68afXkP+jVz8GvkNEvMUOVMBn46MeyWo50F1lbPMOr3+/nP1Psd+cloz1uf/KmmuS1Mu5d+EoY8jxD3ym297FdYYJ698UxcGP4L9TrHpM9coMMdpmMfGyh1PMNOXgK9sUlrgnvgLd0CPfIJ4xkXqEciPBd7iH1u97dtaz+ZsBt5e6KMh+2CvwCC83/YS93OdgP4d6pe2vRBWFNMyZ+56b/mcnJbBB3EWfvfYAfa8QrXxj37TTIU11v0J0ApSAntoj1yJfL/uRb0XvAXtOB3jJbQ/ZdIhrKO9kMcIrLrRjkV3vI/2/VimPd37nlxmnvbjZj35B08BO0YzDtCHcqHuHU9jLalkW+NcAT3UD7CfHBr69BRFJ/GERn1aO6p/x3CB6QYF6Mx0Uq84hvM3IPItrmqgjpQE8GFrBeURGGP2YM+Xa8nLNpIP8t2yh/eUqBfsin1EEl/U4wPi6Yc1KvJD6972EI7TiNgqKA/DjT/REx/FmUtvG5T8q08D6JP6Hvtp8V1PE5hVC95TOkOPPhOMZ1C7eN8DOZNQD2/Syk8/EgI6B4LKkxuexo18xUoBOxEqI+bSjkfKi7a9aq6zdj0TifJb0qonhoJ5YiBteB3RThPL1OuNQ+uTJoag99DjSNjLwRzmsUyKRiCeYciVEr/6I6EX9cbeMHuaVL38vHcyehDskm5g3S8gxiCf6vY7E0l51bPoGZkpye8dStRb+cChV6hYJxkHuEfLvOWpzf+NbTMnpeFMR3GwkDhPyrEIRIwF9PSAeqyDnsitP3zYWAW6WKc3q9Y7w+CNU/zP/kerAndC1GvA+01v6v+Sb+46bgMxFG0DCEjjIM8qRf7/F8PHiQ4EQmNF2IWLvRqRMyNtd8y9puQ/q26Nu0Yy3LpVK5JWh9TaaqqVQSzzKvu2LMnYdwLC5Pch7r2ygdPhSqGn1kN9zYVf7BHEE82XBfA14lSg36NPCzyC99hYfZ3V1pMgHbFBybfOX5esm5eMj5X1nThlmS+6zQDu2m+3Mj+pt9QrOe54YH02dSJzrwVcHw/zftd1DwF7zfaWPQFRxdnzO2yPDvZw6hR60lU15ZIfeQr8GTck9hT9IWt+HWnmZR5TD/cM4J/t+oH5tDnHhr2zqU+zeWnNv+3sIwxhcJp2wGdx7FxG7JGBNMq9DkfoJRuNBVvzRuZaG3IeisVWdwE7z6zciaMzI3XMQX5RL+BEPxohzY0O53IXR+Qn5s6wNZx3mefIMHGX+VAEpa/vY6Es8hVW4mssZf9ylS/yKfFMLj+ZQo078aRrSYZ9RcOSiMmXdSX2TzuXcFzRHZ08aqKZcL/lfqvInwXlMM5zWP4O4ecTepLmnlZOMByn1gYBPVd62Ln8nzrfUe57OvXPy7O4Z3Fw9sPfYORt30h8rX00VcRf4f5EDbsnzJMXuJMA3yez5MsC9Eo2cdSjTno4x9YlgarOFOKnHnYuhV6JtNm2PVHp413G3N1O4J8E7/8KNhuWsegs6zFnppunqpNzwpVcwXycw+KcEn52AW+jBvQkgL+vL6Tpbcx26f0AqLOns2hpcXwqy55kOx+S+VJMbryLUIEUkn/L/kP2294QkL5e1J0q9+sp1crTa2Yquhx31SHlkD5a9Fvfttnd33Jtxx7SDalM4M7EYS9HzslbjoI9sb9t6peWHpdTqzukU+rJE3jmpZxMNed7mvoM9GuDg62pmW1M9MTf267nZLIEnpiDaWKeJ0HRv+yBZH7/6now+AvlGwm/F8zD+VkP348Eg8DfIMx9Zqu9VzduslXZ8LNWexXvi+xJfl1kPgT9V1/EKeRzzOYluO8NHNJ9ib59S4Wnp4HTrUtxPz6kevL+2Qr4jOSFs4H0OQfx268l1GEjZxoc7E2cupuK5AzMmEcahd63z369RD9erZ8v1td31fcccysUoeO3Fytera/xCvELQgJ6258Pfszflfxl7wxSAISBGAjd//9ZbZfOVZGshjbVH4RQCplESHE4zkzXVLv+YuF6hPV3Xfy9lOVBKoReZdkpcr4+8GkQnkehH3WpahX9U/g+6Qjn8eS6poC7Vousl8zzLNsYV0OgsHwYwbuHUMZ8ORqErJ+ghB30LiBvT6sjxqhuu95joWdlGE63vm6gJ8eVjUfZ2sOU96FArRr1eafXXnIs2U+ofTZVwg1H4v0e9Uu+Ww7TS10f4cuvP9q7ghyGYRAmwv//vGbJYqFqh2lA4xZrivIADznGBetc3mxDz1NrvYZN/APj+0E84BK6Ptu3xMQ/+5Ytx95x5h/gr294R9cv63KQPxFgvUGZOE4T7DUYzGV+4OPeSG7FR6231K/h9VtvK/lw3kQS+BYS5i4oObO+/+ZRAsfPxImBzJ8odSLhQNsjh9NRz1mCIM6AvDFupOONWzrOrMebthSORwon1rqUA8zqHmsbstlvu1T2Xhrn30ofxHus51llnkvRT/zSoyLycB6eSdAICC4ivAtn2zyWidPyYGs9btWZdSj1wTkcK26UzsXBt1SX9WZn8hLEL7/eI3UZCGLvxgj7a3qz37heJs6u1qXKPVjftvFwDvj9Ax4scODjBEJElDd0aT4WT6M/WF+1HvBT9VEmTmf64jxzyV9cl3FkAa/ZRfxivVOdD0zjyCR/h5KaOK2hPZv/mn0BGRZn7LppW7YAAAAASUVORK5CYII=');\n background-repeat: no-repeat;\n background-size: 100% 100%;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='root'] .ant-tree-title {\n color: #fff;\n font-family: YouSheBiaoTiHei;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='more'] .ant-tree-switcher,\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='more'] .ant-tree-checkbox {\n display: none;\n}\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='sense'],\n.EntityTree-module_container__F8BNC .ant-tree .ant-tree-treenode[data-type='more'] {\n padding-top: 8px;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-more__Zo2wM {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n color: #2bf2f8;\n column-gap: 4px;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-default__iVIc- {\n display: flex;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-default__iVIc- .EntityTree-module_title__BJnDv {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-default__iVIc- .EntityTree-module_total__icLCA {\n flex-shrink: 0;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-sense__s75ax {\n display: flex;\n flex-direction: column;\n row-gap: 12px;\n padding: 8px;\n background: rgba(69, 147, 255, 0.1);\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-sense__s75ax .EntityTree-module_title__BJnDv {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-sense__s75ax .EntityTree-module_title__BJnDv > svg {\n width: 20px;\n height: 20px;\n flex-shrink: 0;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-sense__s75ax .EntityTree-module_title__BJnDv > span {\n flex: 1;\n width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.EntityTree-module_container__F8BNC .EntityTree-module_node-sense__s75ax .EntityTree-module_fields__jwWMe {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.EntityTree-module_node-sense-content__FHgPl {\n display: flex;\n flex-direction: column;\n max-width: 440px;\n}\n.EntityTree-module_highlight__QWIYs {\n background: transparent;\n color: #0ff;\n}\n");var xj=function(e){return kR.post("/v1/map-window/search/org-tree",e)},Ej=function(e){return kR.post("/v1/map-window/search/entity-class-tree",e)},Cj=function(e){return(null==e?void 0:e.length)?e:void 0},Sj=function(e){var t=e.treeData,n=e.checkedKeys,r=e.halfCheckedKeys;if(!(null==t?void 0:t.length))return{info:{},total:0};var o="all"===t[0].type?t[0].children:t,i=0,a=[],l=[],c=[],s=[],u=[],d=[],f=function(e){var t=-1!==n.indexOf(e.key),o=-1!==r.indexOf(e.key);return{checked:t||o,halfChecked:o}},p=function(e,t){if(null==e?void 0:e.length){var r=e.find((function(e){return"more"===e.type}));if(r)if(-1!==n.indexOf(r.key)){"senseObj"===t.type?a.push(t.key):"senseBook"===t.type&&l.push(t.key);var o=0;e.forEach((function(e){"more"!==e.type&&-1===n.indexOf(e.key)&&(u.push(e.key),o+=1)})),i+=t.total-o}else e.forEach((function(e){"more"!==e&&-1!==n.indexOf(e.key)&&(s.push(e.key),i+=1)}));else e.forEach((function(e){-1!==n.indexOf(e.key)&&(s.push(e.key),i+=1)}))}},m=function(e){(null==e?void 0:e.length)&&e.forEach((function(e){var t;if("senseObj"===e.type){var r=f(e),o=r.checked,s=r.halfChecked;o&&(s?(null===(t=e.children)||void 0===t?void 0:t.length)&&("senseBook"===e.children[0].type?function(e,t){if(null==e?void 0:e.length){var r=e.find((function(e){return"more"===e.type}));if(r)if(-1!==n.indexOf(r.key)){a.push(t.key);var o=0;e.forEach((function(e){if("more"!==e){var t=f(e),n=t.checked,r=t.halfChecked;n?r&&p(e.children,e):(c.push(e.key),o+=1)}})),i+=t.total-o}else e.forEach((function(e){if("more"!==e){var t=f(e),n=t.checked,r=t.halfChecked;n&&(r?p(e.children,e):(l.push(e.key),i+=e.total))}}));else e.forEach((function(e){var t=f(e),n=t.checked,r=t.halfChecked;n&&(r?p(e.children,e):(l.push(e.key),i+=e.total))}))}}(e.children,e):"sense"===e.children[0].type&&p(e.children,e)):(a.push(e.key),i+=e.total))}else"senseType"===e.type&&m(e.children)}))},h=function(e){e.forEach((function(e){if("senseOrg"===e.type){var t=f(e),r=t.checked,o=t.halfChecked;r&&(o?h(e.children):(d.push(e.key),i+=e.total))}else{(r=-1!==n.indexOf(e.key))&&(s.push(e.key),i+=1)}}))};return"senseOrg"===o[0].type?h(o):m(o),{info:{selectSenseObjCodes:Cj(a),selectBookIds:Cj(l),unSelectBookIds:Cj(c),selectSenseGlobalCodes:Cj(s),unSelectSenseGlobalCodes:Cj(u),selectOrgIds:Cj(d)},total:i}},Oj="RegionTree-module_container__baOAt";IR(".RegionTree-module_container__baOAt {\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n}\n.RegionTree-module_container__baOAt * {\n box-sizing: border-box;\n}\n.RegionTree-module_container__baOAt .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.RegionTree-module_container__baOAt .ant-tree {\n background: transparent;\n color: rgba(255, 255, 255, 0.8);\n}\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-node-content-wrapper:hover,\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-checkbox + span:hover,\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-switcher:not(.ant-tree-switcher-noop):hover:before {\n background: transparent;\n}\n.RegionTree-module_container__baOAt .ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper {\n width: 0;\n}\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-list-holder-inner {\n gap: 4px;\n}\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-treenode {\n align-items: center;\n padding: 0;\n min-height: 40px;\n background: rgba(69, 147, 255, 0.1);\n box-shadow: 0px 0px 5px 0px rgba(0, 7, 23, 0.2);\n}\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-treenode .ant-tree-switcher {\n line-height: 40px;\n}\n.RegionTree-module_container__baOAt .ant-tree .ant-tree-treenode .ant-tree-checkbox {\n align-self: center;\n margin: 0;\n}\n");var kj=function(e){return kR.get("/open/gis/v1/region-children",e)},Nj=function(e){return e.map((function(e){return{key:e.regionId,title:e.regionName,isLeaf:!!e.leaf}}))};e.EntityInfo=function(e){var n=e.senseGlobalCode,r=Ie((function(){return c(void 0,void 0,void 0,(function(){var e,t,r,o,i,a,l,c;return s(this,(function(s){switch(s.label){case 0:return e=function(e){if(!e)return{};var t=e.split("|");return{senseObjCode:t[0],templateId:t[1],bookId:t[2],senseCode:t.slice(3).join("|")}}(n),t=e.bookId,r=e.senseCode,[4,XR({bookId:t,senseCode:r})];case 1:return(null==(o=s.sent())?void 0:o.icosSenseDetail)?i=o.icosSenseDetail.fieldInfoList:(null==o?void 0:o.jmtSenseDetail)&&(u=o.jmtSenseDetail.schemaJSON,f=JSON.parse(u).schema,p=[],m=function(e,t){e.forEach((function(e){var n=e.id,r=e.props,o=e.maps,i=e.widget,a=e.children;a&&0!==a.length?m(a,d(d([],t,!0),[n],!1)):p.push({id:n,path:d(d([],t,!0),[n],!1),props:r,maps:o,widget:i})}))},m(f.children||[],[f.id]),a=p,o.jmtSenseDetail.entityInfo&&(l=JSON.parse(o.jmtSenseDetail.entityInfo),i=a.map((function(e){var t,n,r;return{fieldId:e.id,fieldName:e.props.title,fieldValue:GR(l,e.path),maps:e.maps,props:e.props,widget:e.widget,linkEntityCode:null===(n=null===(t=o.jmtSenseDetail.jumpVOList)||void 0===t?void 0:t.find((function(t){return t.fieldName===e.id})))||void 0===n?void 0:n.entityCode,hidden:e.props.hidden||!e.props.title,readonly:null===(r=o.readonlyList)||void 0===r?void 0:r.includes(e.id)}})))),i.length&&(null===(c=o.tagNames)||void 0===c?void 0:c.length)&&i.push({fieldId:"CustomTags",fieldName:"标签",fieldValue:o.tagNames,widget:"CustomTags"}),[2,i]}var u,f,p,m}))}))}),{refreshDeps:[n]}).data;return r?t.createElement("div",{className:UR},t.createElement(qR,{data:r})):null},e.EntityTable=function(e){var n=e.bookId,r=t.useState([]),o=r[0],i=r[1],l=t.useState([]),u=l[0],d=l[1],f=t.useState(a({},QR)),p=f[0],m=f[1],h=t.useState({}),g=h[0],v=h[1],b=function(e){return c(void 0,[e],void 0,(function(e){var r,o,l,c,u=e.pagination,f=void 0===u?p:u,h=e.sorter,v=void 0===h?g:h;return s(this,(function(e){switch(e.label){case 0:return r=v.order?{sortField:v.field,sortFieldOrder:"descend"===v.order?"desc":"asc"}:{},[4,(s=a(a({page:f.current,pageSize:f.pageSize},r),{bookId:n,keyword:"",viewCodes:["system-icos_city_object"]}),kR.post("/v1/entity-manager/sense-page",s))];case 1:return o=e.sent(),i(null===(l=o.header)||void 0===l?void 0:l.map((function(e){return{key:e.code,dataIndex:e.code,title:e.name,width:200,sorter:e.sort,sortOrder:o.sortField===e.code?"desc"===o.sortFieldOrder?"descend":"ascend":null,ellipsis:!0}}))),m(function(e,n){var r=e||{},o=r.pageNum,i=r.pageSize,l=r.total;return a(a({},n),{total:l?l>1e4?1e4:l:0,current:o||1,pageSize:i||n.pageSize,showTotal:function(){return t.createElement(oC,{align:"center"},l>1e4?t.createElement(yb,{title:"最大展示10000条"},t.createElement(bO,null)):null,t.createElement("span",null,"共",l,"条"))}})}(o.body,f)),d(null===(c=o.body)||void 0===c?void 0:c.list),[2,o]}var s}))}))};return t.useEffect((function(){b({})}),[n]),t.createElement("div",{className:YR},t.createElement(gI,{columns:o,dataSource:u,pagination:p,onChange:function(e,t,n){m(e),v(n),b({pagination:e,sorter:n})},scroll:{x:"100%"},sticky:!0}))},e.EntityTree=function(e){var n=e.viewCodes,r=void 0===n?[]:n,o=e.onTotalChange,i=e.onCheck,l=e.defaultCheckedAll,u={},f=KP().ksCode,p=t.useState(!1),m=p[0],h=p[1],g=t.useState([]),v=g[0],b=g[1],y=t.useState([]),w=y[0],x=y[1],E=t.useState([]),C=E[0],S=E[1],O=function(e){return(null==u?void 0:u.keyword)?t.createElement(VP,{highlightClassName:wj,searchWords:[u.keyword],textToHighlight:e||"",autoEscape:!0}):e},k=function(e){return c(void 0,void 0,void 0,(function(){var t,n,o,i,l,c,d,f,p;return s(this,(function(s){switch(s.label){case 0:return t="more"===e.type,n="senseOrg"===e.type,o=t?e.reqId:e.key,i="senseIcosBook"===e.type||t?e.parentKey:o,l=a(a({},u),{viewCodes:r,page:t?e.morePage:1,pageSize:100}),n?l.orgIds=[o]:l.bookIds=[o],t&&b(HP((function(t){XP(t,e.key).loading=!0}))),[4,(m=l,kR.post("/v2/map-window/search/sense-list",m))];case 1:return c=s.sent(),d=c.list,f=c.pageNum,p=c.total,b(HP((function(n){var r,a=XP(n,i);if(a){var l=[];if(a.extraChildren&&l.push.apply(l,a.extraChildren),l.push.apply(l,(d||[]).map((function(t){return{key:t.senseGlobalCode,parentKey:i,ksCode:e.ksCode,title:t.dataList[0].fieldValue,dataList:t.dataList,tagCodes:t.tagCodes,tagNames:t.tagNames,"data-type":"sense",type:"sense",isLeaf:!0,dataRef:t}}))),t?(a.children.pop(),(r=a.children).push.apply(r,l)):a.children=l,a.children.length<p){var c=f+1;a.children.push({key:"more__".concat(o,"__").concat(c),parentKey:i,reqId:o,ksCode:e.ksCode,title:"加载更多",morePage:c,loading:!1,moreType:"sense","data-type":"more",type:"more",isLeaf:!0})}}}))),t&&-1!==w.indexOf(e.key)&&x(HP((function(e){e.push.apply(e,(d||[]).map((function(e){return e.senseGlobalCode})))}))),[2]}var m}))}))},N=function(e){return c(void 0,void 0,void 0,(function(){var t,n,o,i,l,c;return s(this,(function(s){switch(s.label){case 0:return t="more"===e.type,n=a(a({},u),{viewCodes:r,senseObjCodes:[e.key],isMore:t}),t&&(b(HP((function(t){XP(t,e.key).loading=!0}))),n.excludeBookIds=function(){var t,n=null===(t=XP(v,e.key))||void 0===t?void 0:t.children;return n?n.map((function(e){return e.key})):[]}()),[4,(d=n,kR.post("/v1/map-window/search/book-list",d))];case 1:return o=s.sent(),i=o.list,l=o.next,(null==i?void 0:i.length)&&"senseIcosBook"===i[0].type?(c=i[0],[4,k({key:c.code,parentKey:c.parentCode,ksCode:e.ksCode,type:c.type})]):[3,3];case 2:return s.sent(),[2];case 3:return b(HP((function(n){var r,o=XP(n,e.key);if(o){var a=(i||[]).map((function(t){return{key:t.code,parentKey:t.parentCode,ksCode:e.ksCode,title:t.name,total:t.count,"data-type":t.type,type:t.type,isLeaf:!t.count,dataRef:t}}));t?(o.children.pop(),(r=o.children).push.apply(r,a)):o.children=a,l&&o.children.push({key:"more__".concat(e.key,"__").concat(Date.now()),parentKey:e.key,ksCode:e.ksCode,title:"加载更多",loading:!1,moreType:"senseBook","data-type":"more",type:"more",isLeaf:!0})}}))),t&&-1!==w.indexOf(e.key)&&x((i||[]).map((function(e){return e.code}))),[2]}var d}))}))},$=function(){return c(void 0,void 0,void 0,(function(){var e,t,n,c,f,p,m,g,v,y;return s(this,(function(s){switch(s.label){case 0:return h(!0),e=r.includes("system-icos_gov_user"),t=a(a({},u),{viewCodes:r}),[4,Ej(t)];case 1:return n=s.sent(),e?(c=null===(v=n[0])||void 0===v?void 0:v.ksCategoryCode,[4,xj(t)]):[3,3];case 2:n=s.sent(),s.label=3;case 3:return f=function(e,t,n){for(var r=[],o={},i=(n||{}).children,a=void 0===i?"children":i,l=UP.cloneDeep(e),c=0;c<l.length;c++){var s=t(l[c]);l[c]=s,o[s.key]=s}return l.forEach((function(e){var t=o[e.parentKey];t&&t.key!==e.key?(t[a]||(t[a]=[])).push(e):r.push(e)})),r}(n,(function(e){return{key:e.code,parentKey:e.parentCode,ksCode:c||e.ksCategoryCode,title:e.name,total:e.count,"data-type":"0000000000"===e.parentCode?"root":e.type,type:e.type,isLeaf:!e.count,dataRef:e}}),e?{children:"extraChildren"}:null),e&&f.forEach((function(e){e["data-type"]="root"})),p=n.reduce((function(t,n){return e||"0000000000"===n.parentCode?t+n.count:t}),0),f.length>1&&(m=d([],f,!0),f=[{key:"all",parentKey:"",title:"全部",total:p,"data-type":"root",type:"all",children:m.map((function(e){return a(a({},e),{parentKey:"all","data-type":e.type})}))}]),b(f),null==o||o(p),l?(g=f.map((function(e){return e.key})),x(g),null==i||i({info:{},total:p})):(x([]),null==i||i({info:{},total:0})),"all"===(null===(y=null==f?void 0:f[0])||void 0===y?void 0:y.type)?S([f[0].key]):S([]),h(!1),[2]}}))}))};return t.useEffect((function(){$()}),[r]),t.createElement("div",{className:fj},t.createElement(qS,{spinning:m,delay:500},t.createElement(y$,{treeData:v,titleRender:function(e){var n;if("more"===e.type)return t.createElement("div",{className:pj},e.title,e.loading?t.createElement(ds,null):t.createElement(QP,null));if("sense"===e.type){var r=(null===(n=e.tagNames)||void 0===n?void 0:n.length)?e.tagNames.join(", "):"",o=t.createElement("div",{className:yj},(e.dataList||[]).map((function(e){return t.createElement("div",{key:e.fieldId},O("".concat(e.fieldName,":").concat(e.fieldValue)))})),r?t.createElement("div",null,O("标签:".concat(r))):null),i=(e.dataList||[]).map((function(e){return"".concat(e.fieldName,":").concat(e.fieldValue)})).join(" ");return r&&(i+=" 标签:".concat(r)),t.createElement("div",{className:vj},t.createElement("div",{className:hj,title:e.title},e.ksCode?function(e){var n;if(f)return((n={})[f.person]=t.createElement(sj,null),n[f.place]=t.createElement(dj,null),n[f.event]=t.createElement(ej,null),n[f.object]=t.createElement(rj,null),n[f.org]=t.createElement(aj,null),n)[e]}(e.ksCode):null,t.createElement("span",null,O(e.title))),i?t.createElement($b,{content:o},t.createElement("div",{className:bj,title:""},O(i))):null)}return t.createElement("div",{className:mj},t.createElement("div",{className:hj},O(e.title)),t.createElement("div",{className:gj},"(",e.total,")"))},loadData:function(e){return c(void 0,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return e.children?[2]:"senseObj"!==e.type?[3,2]:[4,N(e)];case 1:t.sent(),t.label=2;case 2:return"senseBook"!==e.type&&"senseOrg"!==e.type?[3,4]:[4,k(e)];case 3:t.sent(),t.label=4;case 4:return[2]}}))}))},selectedKeys:[],expandedKeys:C,checkedKeys:w,onSelect:function(e,t){var n=t.node;"more"===n.type?("senseBook"===n.moreType&&N(n),"sense"===n.moreType&&k(n)):"sense"!==n.type&&function(e){var t=C.indexOf(e);S(HP(-1===t?function(t){t.push(e)}:function(e){e.splice(t,1)}))}(n.key)},onExpand:function(e){S(e)},onCheck:function(e,t){x(e);var n=Sj({treeData:v,checkedKeys:e,halfCheckedKeys:t.halfCheckedKeys});null==i||i(n)},onDoubleClick:function(e,t){t.type},checkable:!0,blockNode:!0})))},e.RegionTree=function(e){var n=e.onClick,r=t.useState(!1),o=r[0],i=r[1],a=t.useState([]),l=a[0],u=a[1];return ke((function(){return c(void 0,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return i(!0),[4,kj()];case 1:return e=t.sent(),u(Nj(e)),i(!1),[2]}}))}))})),t.createElement("div",{className:Oj},t.createElement(qS,{spinning:o,delay:500},t.createElement(y$,{treeData:l,loadData:function(e){return c(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,kj({regionId:e.key})];case 1:return t=n.sent(),console.log(t),u(HP((function(n){XP(n,e.key).children=Nj(t)}))),[2]}}))}))},selectedKeys:[],onSelect:function(e,t){var r=t.node;null==n||n(r)},blockNode:!0})))},e.config=function(e){window._ICOS_DESKTOP_=a(a({},window._ICOS_DESKTOP_),e)}}));