@kne-components/react-file 0.1.35 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +22 -20
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{511.901a4718.chunk.css → 776.e7e6d018.chunk.css} +2 -2
- package/build/static/css/776.e7e6d018.chunk.css.map +1 -0
- package/build/static/js/151.b276c881.chunk.js +3 -0
- package/build/static/js/151.b276c881.chunk.js.map +1 -0
- package/build/static/js/258.b3ee8f02.chunk.js +2 -0
- package/build/static/js/258.b3ee8f02.chunk.js.map +1 -0
- package/build/static/js/{72.4bacf538.chunk.js → 72.5c6903b0.chunk.js} +2 -2
- package/build/static/js/{72.4bacf538.chunk.js.map → 72.5c6903b0.chunk.js.map} +1 -1
- package/build/static/js/776.d98d1437.chunk.js +9 -0
- package/build/static/js/776.d98d1437.chunk.js.map +1 -0
- package/build/static/js/{784.bb2153da.chunk.js → 784.aeeb864e.chunk.js} +2 -2
- package/build/static/js/{784.bb2153da.chunk.js.map → 784.aeeb864e.chunk.js.map} +1 -1
- package/build/static/js/872.a5a26e7d.chunk.js +2 -0
- package/build/static/js/872.a5a26e7d.chunk.js.map +1 -0
- package/build/static/js/main.caa69af7.js +2 -0
- package/build/static/js/main.caa69af7.js.map +1 -0
- package/build/static/media/check~elxgVvVe.d6bb9a199bf3a5853749ecea3ce6a127.svg +3 -0
- package/build/static/media/collapse~vphRLfPi.378d83c01100d172e79c04ba3179be58.svg +6 -0
- package/build/static/media/copy~drOLfxzP.5880fbbaf59db852794c06f32786d138.svg +4 -0
- package/build/static/media/expand~blSbUwvt.8a0d1f9fb3339d7da34c3117df14b545.svg +6 -0
- package/package.json +1 -1
- package/build/static/css/511.901a4718.chunk.css.map +0 -1
- package/build/static/css/892.901a4718.chunk.css +0 -2
- package/build/static/css/892.901a4718.chunk.css.map +0 -1
- package/build/static/js/151.ba88b4c8.chunk.js +0 -3
- package/build/static/js/151.ba88b4c8.chunk.js.map +0 -1
- package/build/static/js/258.26b6de58.chunk.js +0 -2
- package/build/static/js/258.26b6de58.chunk.js.map +0 -1
- package/build/static/js/418.0e897104.chunk.js +0 -9
- package/build/static/js/418.0e897104.chunk.js.map +0 -1
- package/build/static/js/872.47e0183e.chunk.js +0 -2
- package/build/static/js/872.47e0183e.chunk.js.map +0 -1
- package/build/static/js/main.882fe1b6.js +0 -2
- package/build/static/js/main.882fe1b6.js.map +0 -1
- /package/build/static/js/{151.ba88b4c8.chunk.js.LICENSE.txt → 151.b276c881.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{418.0e897104.chunk.js.LICENSE.txt → 776.d98d1437.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 151.b276c881.chunk.js.LICENSE.txt */
|
|
2
|
+
(globalThis.webpackChunk_kne_components_react_file=globalThis.webpackChunk_kne_components_react_file||[]).push([[151],{65457(e,t,n){"use strict";var r=n(85714);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},58151(e,t,n){"use strict";n.r(t),n.d(t,{Affix:()=>Ko,Alert:()=>Ta,Anchor:()=>rl,App:()=>gg,AutoComplete:()=>cy,Avatar:()=>p$,BackTop:()=>y$,Badge:()=>L$,Breadcrumb:()=>mw,Button:()=>fw,Calendar:()=>QM,Card:()=>pR,Carousel:()=>mO,Cascader:()=>Iz,Checkbox:()=>Tz,Col:()=>jz,Collapse:()=>Cd,ColorPicker:()=>VB,ConfigProvider:()=>jc,DatePicker:()=>RH,Descriptions:()=>_H,Divider:()=>Xz,Drawer:()=>mD,Dropdown:()=>ID,Empty:()=>sv,Flex:()=>_D,FloatButton:()=>lL,Form:()=>KL,Grid:()=>qL,Image:()=>jj,Input:()=>xF,InputNumber:()=>CT,Layout:()=>RF,List:()=>AW,Masonry:()=>LW,Mentions:()=>c_,Menu:()=>Yx,Modal:()=>S_,Pagination:()=>sW,Popconfirm:()=>F_,Popover:()=>s$,Progress:()=>gV,QRCode:()=>XV,Radio:()=>qV,Rate:()=>iX,Result:()=>$X,Row:()=>CX,Segmented:()=>rA,Select:()=>ty,Skeleton:()=>zf,Slider:()=>yB,Space:()=>SD,Spin:()=>wW,Splitter:()=>BX,Statistic:()=>KX,Steps:()=>MK,Switch:()=>FK,Table:()=>gQ,Tabs:()=>QP,Tag:()=>PQ,TimePicker:()=>XQ,Timeline:()=>JQ,Tooltip:()=>Jy,Tour:()=>wZ,Transfer:()=>UZ,Tree:()=>sU,TreeSelect:()=>SJ,Typography:()=>v0,Upload:()=>h1,Watermark:()=>N1,message:()=>$_,notification:()=>T_,theme:()=>LQ,unstableSetRender:()=>I1,version:()=>xr});var r=n(94922),o=n.t(r,2);const i=Symbol.for("react.element"),a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(e){return e&&"object"===typeof e&&(e.$$typeof===i||e.$$typeof===a)&&e.type===l}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,e=>{(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(c(e)):s(e)&&e.props?n=n.concat(c(e.props.children,t)):n.push(e))}),n}let u={};const d=[];function p(e,t){0}function m(e,t){0}function f(e,t,n){t||u[n]||(e(!1,n),u[n]=!0)}function h(e,t){f(p,e,t)}h.preMessage=e=>{d.push(e)},h.resetWarned=function(){u={}},h.noteOnce=function(e,t){f(m,e,t)};const g=h;function b(e){return e instanceof HTMLElement||e instanceof SVGElement}function v(e){return e&&"object"===typeof e&&b(e.nativeElement)?e.nativeElement:b(e)?e:null}var y=n(2086);function $(e,t,n){const o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}const C=Number(r.version.split(".")[0]),x=(e,t)=>{"function"===typeof e?e(t):"object"===typeof e&&e&&"current"in e&&(e.current=t)},w=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.filter(Boolean);return r.length<=1?r[0]:e=>{t.forEach(t=>{x(t,e)})}},S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(()=>w(...t),t,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n]))},E=e=>{if(!e)return!1;if(k(e)&&C>=19)return!0;const t=(0,y.isMemo)(e)?e.type.type:e.type;return!("function"===typeof t&&!t.prototype?.render&&t.$$typeof!==y.ForwardRef)&&!("function"===typeof e&&!e.prototype?.render&&e.$$typeof!==y.ForwardRef)};function k(e){return(0,r.isValidElement)(e)&&!s(e)}const N=e=>k(e)&&E(e),I=e=>{if(e&&k(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},M=r.createContext(null);const P=new Map;function R(e){e.forEach(e=>{const{target:t}=e;P.get(t)?.forEach(e=>e(t))})}let O;function z(){return O||(O=new ResizeObserver(R)),O}const A=e=>{const t=r.useRef(e);t.current=e;const n=r.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current?.(...n)},[]);return n};function T(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}const B=T()?r.useLayoutEffect:r.useEffect,H=(e,t)=>{const n=r.useRef(!0);B(()=>e(n.current),t),B(()=>(n.current=!1,()=>{n.current=!0}),[])},D=(e,t)=>{H(t=>{if(!t)return e()},t)},L=H,j=e=>{const t=r.useRef(!1),[n,o]=r.useState(e);return r.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]),[n,function(e,n){n&&t.current||o(e)}]};function F(e,t){const[n,o]=(0,r.useState)(e),i=void 0!==t?t:n;return L(e=>{e||o(t)},[t]),[i,o]}function W(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}function _(e,t,n,r){if(!t.length)return n;const[o,...i]=t;let a;return a=e||"number"!==typeof o?Array.isArray(e)?[...e]:{...e}:[],r&&void 0===n&&1===i.length?delete a[o][i[0]]:a[o]=_(a[o],i,n,r),a}function V(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!W(e,t.slice(0,-1))?e:_(e,t,n,r)}function X(e){return Array.isArray(e)?[]:{}}const K="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{prepareArray:n}=t,r=n||(()=>[]);let o=X(e[0]);return e.forEach(e=>{!function t(n,i){const a=new Set(i),l=W(e,n),s=Array.isArray(l);if(s||"object"===typeof(c=l)&&null!==c&&Object.getPrototypeOf(c)===Object.prototype){if(!a.has(l)){a.add(l);const e=W(o,n);s?o=V(o,n,r(e,l)):e&&"object"===typeof e||(o=V(o,n,X(l))),K(l).forEach(e=>{Object.getOwnPropertyDescriptor(l,e).enumerable&&t([...n,e],a)})}}else o=V(o,n,l);var c}([])}),o}function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return q(t)}function Y(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}function U(e,t,n,o){const i=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=A(e=>{const{width:t,height:r}=e.getBoundingClientRect(),{offsetWidth:a,offsetHeight:l}=e,s=Math.floor(t),c=Math.floor(r);if(i.current.width!==s||i.current.height!==c||i.current.offsetWidth!==a||i.current.offsetHeight!==l){const u={width:s,height:c,offsetWidth:a,offsetHeight:l};i.current=u;const d=a===Math.round(t)?t:a,p=l===Math.round(r)?r:l,m={...u,offsetWidth:d,offsetHeight:p};o?.(m,e),Promise.resolve().then(()=>{n?.(m,e)})}}),l="function"===typeof t,s=r.useRef(0);r.useEffect(()=>{const n=l?t():t;var r,o;return n&&e?(r=n,o=a,P.has(r)||(P.set(r,new Set),z().observe(r)),P.get(r).add(o)):e&&l&&(s.current+=1),()=>{n&&function(e,t){P.has(e)&&(P.get(e).delete(t),P.get(e).size||(z().unobserve(e),P.delete(e)))}(n,a)}},[e,l?s.current:t])}const Q=r.forwardRef(function(e,t){const{children:n,disabled:o,onResize:i,data:a}=e,l=r.useRef(null),s=r.useContext(M),c="function"===typeof n,u=c?n(l):n,d=!c&&r.isValidElement(u)&&E(u),p=d?I(u):null,m=S(p,l),f=()=>v(l.current);return r.useImperativeHandle(t,()=>f()),U(!o,f,i,(e,t)=>{s?.(e,t,a)}),d?r.cloneElement(u,{ref:m}):u});const Z=Q;function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(this,arguments)}const ee=r.forwardRef(function(e,t){const{children:n}=e;return("function"===typeof n?[n]:c(n)).map((n,o)=>{const i=n?.key||`rc-observer-key-${o}`;return r.createElement(Z,J({},e,{key:i,ref:0===o?t:void 0}),n)})});ee.Collection=function(e){let{children:t,onBatchResize:n}=e;const o=r.useRef(0),i=r.useRef([]),a=r.useContext(M),l=r.useCallback((e,t,r)=>{o.current+=1;const l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then(()=>{l===o.current&&(n?.(i.current),i.current=[])}),a?.(e,t,r)},[n,a]);return r.createElement(M.Provider,{value:l},t)};const te=ee;function ne(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ne(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function re(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ne(e))&&(r&&(r+=" "),r+=t);return r}const oe=re;function ie(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 ae(e,t){if(e){if("string"==typeof e)return ie(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)?ie(e,t):void 0}}function le(e){return function(e){if(Array.isArray(e))return ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ae(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.")}()}let se=e=>+setTimeout(e,16),ce=e=>clearTimeout(e);"undefined"!==typeof window&&"requestAnimationFrame"in window&&(se=e=>window.requestAnimationFrame(e),ce=e=>window.cancelAnimationFrame(e));let ue=0;const de=new Map;function pe(e){de.delete(e)}const me=function(e){ue+=1;const t=ue;return function n(r){if(0===r)pe(t),e();else{const e=se(()=>{n(r-1)});de.set(t,e)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};me.cancel=e=>{const t=de.get(e);return pe(e),ce(t)};const fe=me;const he=function(e){let t=null;const n=function(){if(null===t){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t=fe((n=>()=>{t=null,e.apply(void 0,le(n))})(r))}};return n.cancel=()=>{fe.cancel(t),t=null},n},ge="ant",be="anticon",ve=["outlined","borderless","filled","underlined"],ye=r.createContext({getPrefixCls:(e,t)=>t||(e?`${ge}-${e}`:ge),iconPrefixCls:be}),{Consumer:$e}=ye,Ce={};function xe(e){const t=r.useContext(ye),{getPrefixCls:n,direction:o,getPopupContainer:i,renderEmpty:a}=t,l=t[e];return{classNames:Ce,styles:Ce,...l,getPrefixCls:n,direction:o,getPopupContainer:i,renderEmpty:a}}var we=n(82284);function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||ae(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ee=n(64467);function ke(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 Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach(function(t){(0,Ee.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Ie=function(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 Me(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const Pe="data-rc-order",Re="data-rc-priority",Oe=new Map;function ze(){let{mark:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function Ae(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function Te(e){return Array.from((Oe.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function Be(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!T())return null;const{csp:n,prepend:r,priority:o=0}=t,i=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),a="prependQueue"===i,l=document.createElement("style");l.setAttribute(Pe,i),a&&o&&l.setAttribute(Re,`${o}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const s=Ae(t),{firstChild:c}=s;if(r){if(a){const e=(t.styles||Te(s)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(Pe)))return!1;const t=Number(e.getAttribute(Re)||0);return o>=t});if(e.length)return s.insertBefore(l,e[e.length-1].nextSibling),l}s.insertBefore(l,c)}else s.appendChild(l);return l}function He(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{styles:n}=t;return n||=Te(Ae(t)),n.find(n=>n.getAttribute(ze(t))===e)}function De(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=He(e,t);if(n){Ae(t).removeChild(n)}}function Le(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Ae(n),o=Te(r),i={...n,styles:o};!function(e,t){const n=Oe.get(e);if(!n||!Me(document,n)){const n=Be("",t),{parentNode:r}=n;Oe.set(e,r),e.removeChild(n)}}(r,i);const a=He(t,i);if(a)return i.csp?.nonce&&a.nonce!==i.csp?.nonce&&(a.nonce=i.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const l=Be(e,i);return l.setAttribute(ze(i),t),l}const je=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new Set;return function e(t,o){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const a=r.has(t);if(g(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);const l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],o[n],l))return!1;return!0}if(t&&o&&"object"===typeof t&&"object"===typeof o){const n=Object.keys(t);return n.length===Object.keys(o).length&&n.every(n=>e(t[n],o[n],l))}return!1}(e,t)};function Fe(e){return e.join("%")}let We=0;const _e=class{instanceId;constructor(e){this.instanceId=e}cache=(()=>new Map)();updateTimes=(()=>new Map)();extracted=(()=>new Set)();get(e){return this.opGet(Fe(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(Fe(e),t)}opUpdate(e,t){const n=t(this.cache.get(e));null===n?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,We),We+=1)}};const Ve="data-token-hash",Xe="data-css-hash",Ke="__cssinjs_instance__";function qe(){const e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Xe}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[Ke]||=e,t[Ke]===e&&document.head.insertBefore(t,n)});const r={};Array.from(document.querySelectorAll(`style[${Xe}]`)).forEach(t=>{const n=t.getAttribute(Xe);r[n]?t[Ke]===e&&t.parentNode?.removeChild(t):r[n]=!0})}return new _e(e)}const Ge=r.createContext({hashPriority:"low",cache:qe(),defaultCache:!0,autoPrefix:!1}),Ye=Ge;const Ue="CALC_UNIT";new RegExp(Ue,"g");class Qe{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={map:this.cache};return e.forEach(e=>{n=n?n?.map?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>Qe.MAX_CACHE_SIZE+Qe.MAX_CACHE_OFFSET){const[e]=this.keys.reduce((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(e)}let n=this.cache;e.forEach((r,o)=>{if(o===e.length-1)n.set(r,{value:[t,this.cacheCallTimes++]});else{const e=n.get(r);e?e.map||(e.map=new Map):n.set(r,{map:new Map}),n=n.get(r).map}})}deleteByPath(e,t){const n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];const r=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.value||e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)),this.deleteByPath(this.cache,e)}}let Ze=0;class Je{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=Ze,0===e.length&&p(e.length),Ze+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}}const et=new Qe;function tt(e){const t=Array.isArray(e)?e:[e];return et.has(t)||et.set(t,new Je(t)),et.get(t)}const nt=new WeakMap,rt={};const ot=new WeakMap;function it(e){let t=ot.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,t+=r instanceof Je?r.id:r&&"object"===typeof r?it(r):r}),t=Ie(t),ot.set(e,t)),t}`random-${Date.now()}-${Math.random()}`.replace(/\./g,"");const at=T();function lt(e){return"number"===typeof e?`${e}px`:e}function st(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return"low"===n?`:where(${r})`:r}function ct(e,t){const n="function"===typeof t?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const ut=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return`--${t?`${t}-`:""}${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()},dt=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:i}=n||{};if(!Object.keys(e).length)return"";const a=`${st({hashCls:r,hashPriority:o})}.${t}`,l=[i].flat().filter(Boolean);return`${l.length?l.map(e=>`${a}.${e}`).join(", "):a}{${Object.entries(e).map(e=>{let[t,n]=e;return`${t}:${n};`}).join("")}}`},pt=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",prefix:i,unitless:a,ignore:l,preserve:s}=n||{},c={},u={};return Object.entries(e).forEach(e=>{let[t,n]=e;if(s?.[t])u[t]=n;else if(("string"===typeof n||"number"===typeof n)&&!l?.[t]){const e=ut(t,i);c[e]="number"!==typeof n||a?.[t]?String(n):`${n}px`,u[t]=`var(${e})`}}),[u,dt(c,t,{scope:n?.scope,hashCls:r,hashPriority:o})]};const mt=function(){return!1};const ft=new Map;function ht(e,t,n,o,i){const{cache:a}=r.useContext(Ye),l=Fe([e,...t]),s=(mt(),e=>{a.opUpdate(l,t=>{const[r=0,o]=t||[void 0,void 0];const i=[r,o||n()];return e?e(i):i})});r.useMemo(()=>{s()},[l]);const c=a.opGet(l)[1];return(0,r.useInsertionEffect)(()=>(s(e=>{let[t,n]=e;return[t+1,n]}),ft.has(l)||(i?.(c),ft.set(l,!0),Promise.resolve().then(()=>{ft.delete(l)})),()=>{a.opUpdate(l,e=>{const[t=0,n]=e||[];return 0===t-1?(o?.(n,!1),ft.delete(l),null):[t-1,n]})}),[l]),c}const gt={},bt=new Map;function vt(e,t){bt.set(e,(bt.get(e)||0)-1);const n=new Set;bt.forEach((e,t)=>{e<=0&&n.add(t)}),bt.size-n.size>-1&&n.forEach(e=>{!function(e,t){"undefined"!==typeof document&&document.querySelectorAll(`style[${Ve}="${e}"]`).forEach(e=>{e[Ke]===t&&e.parentNode?.removeChild(e)})}(e,t),bt.delete(e)})}const yt=(e,t,n,r)=>{let o={...n.getDerivativeToken(e),...t};return r&&(o=r(o)),o},$t="token";function Ct(e,t,n){const{cache:{instanceId:o},container:i,hashPriority:a}=(0,r.useContext)(Ye),{salt:l="",override:s=gt,formatToken:c,getComputedToken:u,cssVar:d,nonce:p}=n,m=function(e,t){let n=nt;for(let r=0;r<t.length;r+=1){const e=t[r];n.has(e)||n.set(e,new WeakMap),n=n.get(e)}return n.has(rt)||n.set(rt,e()),n.get(rt)}(()=>Object.assign({},...t),t),f=it(m),h=it(s),g=it(d),b=ht($t,[l,e.id,f,h,g],()=>{const t=u?u(m,s,e):yt(m,s,e,c),n={...t},r=`${l}_${d.prefix}`,o=Ie(r),i=`css-${o}`;n._tokenKey=function(e,t){return Ie(`${t}_${it(e)}`)}(n,r);const[p,f]=pt(t,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve,hashPriority:a,hashCls:d.hashed?i:void 0});var h;return p._hashId=o,h=d.key,bt.set(h,(bt.get(h)||0)+1),[p,i,n,f,d.key]},e=>{let[,,,,t]=e;vt(t,o)},e=>{let[,,,t,n]=e;if(!t)return;let r={mark:Xe,prepend:"queue",attachTo:i,priority:-999};r=ct(r,p);const a=Le(t,Ie(`css-var-${n}`),r);a[Ke]=o,a.setAttribute(Ve,n)});return b}const xt={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};var wt="-ms-",St="-moz-",Et="-webkit-",kt="comm",Nt="rule",It="decl",Mt="@keyframes",Pt=Math.abs,Rt=String.fromCharCode,Ot=Object.assign;function zt(e){return e.trim()}function At(e,t){return(e=t.exec(e))?e[0]:e}function Tt(e,t,n){return e.replace(t,n)}function Bt(e,t,n){return e.indexOf(t,n)}function Ht(e,t){return 0|e.charCodeAt(t)}function Dt(e,t,n){return e.slice(t,n)}function Lt(e){return e.length}function jt(e){return e.length}function Ft(e,t){return t.push(e),e}function Wt(e,t){return e.filter(function(e){return!At(e,t)})}function _t(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Vt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case It:return e.return=e.return||e.value;case kt:return"";case Mt:return e.return=e.value+"{"+_t(e.children,r)+"}";case Nt:if(!Lt(e.value=e.props.join(",")))return""}return Lt(n=_t(e.children,r))?e.return=e.value+"{"+n+"}":""}var Xt=1,Kt=1,qt=0,Gt=0,Yt=0,Ut="";function Qt(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Xt,column:Kt,length:a,return:"",siblings:l}}function Zt(e,t){return Ot(Qt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Jt(e){for(;e.root;)e=Zt(e.root,{children:[e]});Ft(e,e.siblings)}function en(){return Yt=Gt>0?Ht(Ut,--Gt):0,Kt--,10===Yt&&(Kt=1,Xt--),Yt}function tn(){return Yt=Gt<qt?Ht(Ut,Gt++):0,Kt++,10===Yt&&(Kt=1,Xt++),Yt}function nn(){return Ht(Ut,Gt)}function rn(){return Gt}function on(e,t){return Dt(Ut,e,t)}function an(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 ln(e){return Xt=Kt=1,qt=Lt(Ut=e),Gt=0,[]}function sn(e){return Ut="",e}function cn(e){return zt(on(Gt-1,pn(91===e?e+2:40===e?e+1:e)))}function un(e){for(;(Yt=nn())&&Yt<33;)tn();return an(e)>2||an(Yt)>3?"":" "}function dn(e,t){for(;--t&&tn()&&!(Yt<48||Yt>102||Yt>57&&Yt<65||Yt>70&&Yt<97););return on(e,rn()+(t<6&&32==nn()&&32==tn()))}function pn(e){for(;tn();)switch(Yt){case e:return Gt;case 34:case 39:34!==e&&39!==e&&pn(Yt);break;case 40:41===e&&pn(e);break;case 92:tn()}return Gt}function mn(e,t){for(;tn()&&e+Yt!==57&&(e+Yt!==84||47!==nn()););return"/*"+on(t,Gt-1)+"*"+Rt(47===e?e:tn())}function fn(e){for(;!an(nn());)tn();return on(e,Gt)}function hn(e){return sn(gn("",null,null,null,[""],e=ln(e),0,[0],e))}function gn(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,p=0,m=0,f=0,h=1,g=1,b=1,v=0,y="",$=o,C=i,x=r,w=y;g;)switch(f=v,v=tn()){case 40:if(108!=f&&58==Ht(w,d-1)){-1!=Bt(w+=Tt(cn(v),"&","&\f"),"&\f",Pt(c?l[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=cn(v);break;case 9:case 10:case 13:case 32:w+=un(f);break;case 92:w+=dn(rn()-1,7);continue;case 47:switch(nn()){case 42:case 47:Ft(vn(mn(tn(),rn()),t,n,s),s),5!=an(f||1)&&5!=an(nn()||1)||!Lt(w)||" "===Dt(w,-1,void 0)||(w+=" ");break;default:w+="/"}break;case 123*h:l[c++]=Lt(w)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=Tt(w,/\f/g,"")),m>0&&(Lt(w)-d||0===h&&47===f)&&Ft(m>32?yn(w+";",r,n,d-1,s):yn(Tt(w," ","")+";",r,n,d-2,s),s);break;case 59:w+=";";default:if(Ft(x=bn(w,t,n,c,u,o,l,y,$=[],C=[],d,i),i),123===v)if(0===u)gn(w,t,x,x,$,i,d,l,C);else{switch(p){case 99:if(110===Ht(w,3))break;case 108:if(97===Ht(w,2))break;default:u=0;case 100:case 109:case 115:}u?gn(e,x,x,r&&Ft(bn(e,x,x,0,0,o,l,y,o,$=[],d,C),C),o,C,d,l,r?$:C):gn(w,x,x,x,[""],C,0,l,C)}}c=u=m=0,h=b=1,y=w="",d=a;break;case 58:d=1+Lt(w),m=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==en())continue;switch(w+=Rt(v),v*h){case 38:b=u>0?1:(w+="\f",-1);break;case 44:l[c++]=(Lt(w)-1)*b,b=1;break;case 64:45===nn()&&(w+=cn(tn())),p=nn(),u=d=Lt(y=w+=fn(rn())),v++;break;case 45:45===f&&2==Lt(w)&&(h=0)}}return i}function bn(e,t,n,r,o,i,a,l,s,c,u,d){for(var p=o-1,m=0===o?i:[""],f=jt(m),h=0,g=0,b=0;h<r;++h)for(var v=0,y=Dt(e,p+1,p=Pt(g=a[h])),$=e;v<f;++v)($=zt(g>0?m[v]+" "+y:Tt(y,/&\f/g,m[v])))&&(s[b++]=$);return Qt(e,t,n,0===o?Nt:l,s,c,u,d)}function vn(e,t,n,r){return Qt(e,t,n,kt,Rt(Yt),Dt(e,2,-2),0,r)}function yn(e,t,n,r,o){return Qt(e,t,n,It,Dt(e,0,r),Dt(e,r+1,-1),r,o)}function $n(e,t,n){switch(function(e,t){return 45^Ht(e,0)?(((t<<2^Ht(e,0))<<2^Ht(e,1))<<2^Ht(e,2))<<2^Ht(e,3):0}(e,t)){case 5103:return Et+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Et+e+e;case 4855:return Et+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return St+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Et+e+St+e+wt+e+e;case 5936:switch(Ht(e,t+11)){case 114:return Et+e+wt+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Et+e+wt+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Et+e+wt+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Et+e+wt+e+e;case 6165:return Et+e+wt+"flex-"+e+e;case 5187:return Et+e+Tt(e,/(\w+).+(:[^]+)/,Et+"box-$1$2"+wt+"flex-$1$2")+e;case 5443:return Et+e+wt+"flex-item-"+Tt(e,/flex-|-self/g,"")+(At(e,/flex-|baseline/)?"":wt+"grid-row-"+Tt(e,/flex-|-self/g,""))+e;case 4675:return Et+e+wt+"flex-line-pack"+Tt(e,/align-content|flex-|-self/g,"")+e;case 5548:return Et+e+wt+Tt(e,"shrink","negative")+e;case 5292:return Et+e+wt+Tt(e,"basis","preferred-size")+e;case 6060:return Et+"box-"+Tt(e,"-grow","")+Et+e+wt+Tt(e,"grow","positive")+e;case 4554:return Et+Tt(e,/([^-])(transform)/g,"$1"+Et+"$2")+e;case 6187:return Tt(Tt(Tt(e,/(zoom-|grab)/,Et+"$1"),/(image-set)/,Et+"$1"),e,"")+e;case 5495:case 3959:return Tt(e,/(image-set\([^]*)/,Et+"$1$`$1");case 4968:return Tt(Tt(e,/(.+:)(flex-)?(.*)/,Et+"box-pack:$3"+wt+"flex-pack:$3"),/space-between/,"justify")+Et+e+e;case 4200:if(!At(e,/flex-|baseline/))return wt+"grid-column-align"+Dt(e,t)+e;break;case 2592:case 3360:return wt+Tt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,At(e.props,/grid-\w+-end/)})?~Bt(e+(n=n[t].value),"span",0)?e:wt+Tt(e,"-start","")+e+wt+"grid-row-span:"+(~Bt(n,"span",0)?At(n,/\d+/):+At(n,/\d+/)-+At(e,/\d+/))+";":wt+Tt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return At(e.props,/grid-\w+-start/)})?e:wt+Tt(Tt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Tt(e,/(.+)-inline(.+)/,Et+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Lt(e)-1-t>6)switch(Ht(e,t+1)){case 109:if(45!==Ht(e,t+4))break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+Et+"$2-$3$1"+St+(108==Ht(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Bt(e,"stretch",0)?$n(Tt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Tt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,l){return wt+n+":"+r+l+(o?wt+n+"-span:"+(i?a:+a-+r)+l:"")+e});case 4949:if(121===Ht(e,t+6))return Tt(e,":",":"+Et)+e;break;case 6444:switch(Ht(e,45===Ht(e,14)?18:11)){case 120:return Tt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Et+(45===Ht(e,14)?"inline-":"")+"box$3$1"+Et+"$2$3$1"+wt+"$2box$3")+e;case 100:return Tt(e,":",":"+wt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Tt(e,"scroll-","scroll-snap-")+e}return e}function Cn(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case It:return void(e.return=$n(e.value,e.length,n));case Mt:return _t([Zt(e,{value:Tt(e.value,"@","@"+Et)})],r);case Nt:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(At(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Jt(Zt(e,{props:[Tt(t,/:(read-\w+)/,":-moz-$1")]})),Jt(Zt(e,{props:[t]})),Ot(e,{props:Wt(n,r)});break;case"::placeholder":Jt(Zt(e,{props:[Tt(t,/:(plac\w+)/,":"+Et+"input-$1")]})),Jt(Zt(e,{props:[Tt(t,/:(plac\w+)/,":-moz-$1")]})),Jt(Zt(e,{props:[Tt(t,/:(plac\w+)/,wt+"input-$1")]})),Jt(Zt(e,{props:[t]})),Ot(e,{props:Wt(n,r)})}return""})}}const xn="data-ant-cssinjs-cache-path",wn="_FILE_STYLE__";let Sn,En=!0;function kn(e){return function(){if(!Sn&&(Sn={},T())){const e=document.createElement("div");e.className=xn,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(e=>{const[t,n]=e.split(":");Sn[t]=n});const n=document.querySelector(`style[${xn}]`);n&&(En=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}(),!!Sn[e]}const Nn="_multi_value_";function In(e,t){const n=_t(hn(e),t?function(e){var t=jt(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}([Cn,Vt]):Vt);return n.replace(/\{%%%\:[^;];}/g,";")}function Mn(e,t){if(!t)return e;const n=st({hashCls:t,hashPriority:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"high"});return e.split(",").map(e=>{const t=e.trim().split(/\s+/);let r=t[0]||"";const o=r.match(/^\w+/)?.[0]||"";return r=`${o}${n}${r.slice(o.length)}`,[r,...t.slice(1)].join(" ")}).join(",")}const Pn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{root:n,injectHash:r,parentSelectors:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:a,path:l,hashPriority:s,transformers:c=[],linters:u=[]}=t;let d="",p={};function m(e){const n=e.getName(i);if(!p[n]){const[r]=Pn(e.style,t,{root:!1,parentSelectors:o});p[n]=`@keyframes ${e.getName(i)}${r}`}}const f=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(t=>{Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(e)?e:[e]);return f.forEach(e=>{const a="string"!==typeof e||n?e:{};if("string"===typeof a)d+=`${a}\n`;else if(a._keyframe)m(a);else{const e=c.reduce((e,t)=>t?.visit?.(e)||e,a);Object.keys(e).forEach(a=>{const l=e[a];if("object"!==typeof l||!l||"animationName"===a&&l._keyframe||function(e){return"object"===typeof e&&e&&("_skip_check_"in e||Nn in e)}(l)){function u(e,t){const n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);let r=t;xt[e]||"number"!==typeof r||0===r||(r=`${r}px`),"animationName"===e&&t?._keyframe&&(m(t),r=t.getName(i)),d+=`${n}:${r};`}const f=l?.value??l;"object"===typeof l&&l?.[Nn]&&Array.isArray(f)?f.forEach(e=>{u(a,e)}):void 0!==(c=f)&&null!==c&&u(a,f)}else{let h=!1,g=a.trim(),b=!1;(n||r)&&i?g.startsWith("@")?h=!0:g=Mn("&"===g?"":a,i,s):!n||i||"&"!==g&&""!==g||(g="",b=!0);const[v,y]=Pn(l,t,{root:b,injectHash:h,parentSelectors:[...o,g]});p={...p,...y},d+=`${g}${v}`}var c})}}),n?a&&(d&&(d=`@layer ${a.name} {${d}}`),a.dependencies&&(p[`@layer ${a.name}`]=a.dependencies.map(e=>`@layer ${e}, ${a.name};`).join("\n"))):d=`{${d}}`,[d,p]};function Rn(e,t){return Ie(`${e.join("%")}${t}`)}const On="style";function zn(e,t){const{path:n,hashId:o,layer:i,nonce:a,clientOnly:l,order:s=0}=e,{mock:c,hashPriority:u,container:d,transformers:p,linters:m,cache:f,layer:h,autoPrefix:g}=r.useContext(Ye),b=[o||""];h&&b.push("layer"),b.push(...n);let v=at;ht(On,b,()=>{const e=b.join("|");if(kn(e)){const[t,n]=function(e){const t=Sn[e];let n=null;if(t&&T())if(En)n=wn;else{const t=document.querySelector(`style[${Xe}="${Sn[e]}"]`);t?n=t.innerHTML:delete Sn[e]}return[n,t]}(e);if(t)return[t,n,{},l,s]}const r=t(),[a,c]=Pn(r,{hashId:o,hashPriority:u,layer:h?i:void 0,path:n.join("-"),transformers:p,linters:m}),d=In(a,g||!1);return[d,Rn(b,d),c,l,s]},(e,t)=>{const[,n]=e;t&&at&&De(n,{mark:Xe,attachTo:d})},e=>{const[t,n,r,,o]=e;if(v&&t!==wn){let e={mark:Xe,prepend:!h&&"queue",attachTo:d,priority:o};e=ct(e,a);const i=[],l=[];Object.keys(r).forEach(e=>{e.startsWith("@layer")?i.push(e):l.push(e)}),i.forEach(t=>{Le(In(r[t],g||!1),`_layer-${t}`,{...e,prepend:!0})});Le(t,n,e)[Ke]=f.instanceId,l.forEach(t=>{Le(In(r[t],g||!1),`_effect-${t}`,e)})}})}const An="cssVar",Tn=(e,t)=>{const{key:n,prefix:o,unitless:i,ignore:a,token:l,hashId:s,scope:c,nonce:u}=e,{cache:{instanceId:d},container:p,hashPriority:m}=(0,r.useContext)(Ye),{_tokenKey:f}=l,h=Array.isArray(c)?c.join("@@"):c,g=[...e.path,n,h,f],b=ht(An,g,()=>{const e=t(),[r,l]=pt(e,n,{prefix:o,unitless:i,ignore:a,scope:c,hashPriority:m,hashCls:s});return[r,l,Rn(g,l),n]},e=>{let[,,t]=e;at&&De(t,{mark:Xe,attachTo:p})},e=>{let[,t,r]=e;if(!t)return;let o={mark:Xe,prepend:"queue",attachTo:p,priority:-999};o=ct(o,u);const i=Le(t,r,o);i[Ke]=d,i.setAttribute(Ve,n)});return b};const Bn=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?`${e}-${this.name}`:this.name}_keyframe=!0};function Hn(e){return e.notSplit=!0,e}Hn(["borderTop","borderBottom"]),Hn(["borderTop"]),Hn(["borderBottom"]),Hn(["borderLeft","borderRight"]),Hn(["borderLeft"]),Hn(["borderRight"]);var Dn=n(23029),Ln=n(92901),jn=n(9417),Fn=n(85501),Wn=n(53954);function _n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_n=function(){return!!e})()}var Vn=n(56822);function Xn(e){var t=_n();return function(){var n,r=(0,Wn.A)(e);if(t){var o=(0,Wn.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,Vn.A)(this,n)}}var Kn=(0,Ln.A)(function e(){(0,Dn.A)(this,e)});const qn=Kn;var Gn="CALC_UNIT",Yn=new RegExp(Gn,"g");function Un(e){return"number"===typeof e?"".concat(e).concat(Gn):e}var Qn=function(e){(0,Fn.A)(n,e);var t=Xn(n);function n(e,r){var o;(0,Dn.A)(this,n),o=t.call(this),(0,Ee.A)((0,jn.A)(o),"result",""),(0,Ee.A)((0,jn.A)(o),"unitlessCssVar",void 0),(0,Ee.A)((0,jn.A)(o),"lowPriority",void 0);var i=(0,we.A)(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=Un(e):"string"===i&&(o.result=e),o}return(0,Ln.A)(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(Un(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(Un(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(Yn,r?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(qn),Zn=function(e){(0,Fn.A)(n,e);var t=Xn(n);function n(e){var r;return(0,Dn.A)(this,n),r=t.call(this),(0,Ee.A)((0,jn.A)(r),"result",0),e instanceof n?r.result=e.result:"number"===typeof e&&(r.result=e),r}return(0,Ln.A)(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}(qn);const Jn=Zn;const er=function(e,t){var n="css"===e?Qn:Jn;return function(e){return new n(e,t)}};const tr=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("-"))};const nr=function(e,t,n,r){var o=Ne({},t[e]);null!==r&&void 0!==r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=Se(e,2),r=n[0],i=n[1];(null!==o&&void 0!==o&&o[r]||null!==o&&void 0!==o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null===o||void 0===o?void 0:o[r]))});var i=Ne(Ne({},n),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i};var rr="undefined"!==typeof CSSINJS_STATISTIC,or=!0;function ir(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!rr)return Object.assign.apply(Object,[{}].concat(t));or=!1;var r={};return t.forEach(function(e){"object"===(0,we.A)(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),or=!0,r}var ar={};function lr(){}const sr=function(e){var t,n=e,r=lr;return rr&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;or&&(null===(r=t)||void 0===r||r.add(n));return e[n]}}),r=function(e,n){var r;ar[e]={global:Array.from(t),component:Ne(Ne({},null===(r=ar[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}};const cr=function(e,t,n){var r;return"function"===typeof n?n(ir(t,null!==(r=t[e])&&void 0!==r?r:{})):null!==n&&void 0!==n?n:{}};const ur=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 lt(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 lt(e)}).join(","),")")}}};var dr=function(){function e(){(0,Dn.A)(this,e),(0,Ee.A)(this,"map",new Map),(0,Ee.A)(this,"objectIDMap",new WeakMap),(0,Ee.A)(this,"nextID",0),(0,Ee.A)(this,"lastAccessBeat",new Map),(0,Ee.A)(this,"accessBeat",0)}return(0,Ln.A)(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"===(0,we.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,we.A)(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}(),pr=new dr;const mr=function(e,t){return r.useMemo(function(){var n=pr.get(t);if(n)return n;var r=e();return pr.set(t,r),r},t)};const fr=function(){return{}};const hr=function(e){var t=e.useCSP,n=void 0===t?fr:t,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,s=e.getCompUnitless;function c(t,s,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(t)?t:[t,t],p=Se(d,1)[0],m=d.join("-"),f=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,d=o(),h=d.theme,g=d.realToken,b=d.hashId,v=d.token,y=d.cssVar,$=d.zeroRuntime;if((0,r.useMemo)(function(){return $},[]))return b;var C=i(),x=C.rootPrefixCls,w=C.iconPrefixCls,S=n(),E="css",k=mr(function(){var e=new Set;return Object.keys(u.unitless||{}).forEach(function(t){e.add(ut(t,y.prefix)),e.add(ut(t,tr(p,y.prefix)))}),er(E,e)},[E,p,null===y||void 0===y?void 0:y.prefix]),N=ur(E),I=N.max,M=N.min,P={theme:h,token:v,hashId:b,nonce:function(){return S.nonce},clientOnly:u.clientOnly,layer:f,order:u.order||-999};return"function"===typeof a&&zn(Ne(Ne({},P),{},{clientOnly:!1,path:["Shared",x]}),function(){return a(v,{prefix:{rootPrefixCls:x,iconPrefixCls:w},csp:S})}),zn(Ne(Ne({},P),{},{path:[m,e,w]}),function(){if(!1===u.injectStyle)return[];var n=sr(v),r=n.token,o=n.flush,i=cr(p,g,c),a=".".concat(e),d=nr(p,g,i,{deprecatedTokens:u.deprecatedTokens});i&&"object"===(0,we.A)(i)&&Object.keys(i).forEach(function(e){i[e]="var(".concat(ut(e,tr(p,y.prefix)),")")});var m=ir(r,{componentCls:a,prefixCls:e,iconCls:".".concat(w),antCls:".".concat(x),calc:k,max:I,min:M},i),f=s(m,{hashId:b,prefixCls:e,rootPrefixCls:x,iconPrefixCls:w});o(p,d);var h="function"===typeof l?l(m,e,t,u.resetFont):null;return[!1===u.resetStyle?null:h,f]}),b}}return{genStyleHooks:function(e,t,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?void 0:i.unitless)||{},d=Ne(Ne({},"function"===typeof s?s(e):{}),{},(0,Ee.A)({},l("zIndexPopup"),!0));Object.keys(u).forEach(function(e){d[l(e)]=u[e]});var p=Ne(Ne({},i),{},{unitless:d,prefixToken:l}),m=c(e,t,r,p),f=function(e,t,r){var i=r.unitless,a=r.prefixToken,l=r.ignore;return function(s){var c=o(),u=c.cssVar,d=c.realToken,p=n();return Tn({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:l,token:d,scope:s,nonce:function(){return p.nonce}},function(){var n=cr(e,d,t),o=nr(e,d,n,{deprecatedTokens:null===r||void 0===r?void 0:r.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){o[a(e)]=o[e],delete o[e]}),o}),null===u||void 0===u?void 0:u.key}}(a,r,p);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=m(e,t),r=null===i||void 0===i?void 0:i.extraCssVarPrefixCls,o="function"===typeof r?r({prefixCls:e,rootCls:t}):r;return[n,f(null!==o&&void 0!==o&&o.length?[t].concat(le(o)):t)]}},genSubStyleComponent:function(e,t,n){var r=c(e,t,n,Ne({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:c}},gr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},br=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}},vr=(e,t)=>({outline:`${lt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),yr=(e,t)=>({"&:focus-visible":vr(e,t)}),$r=e=>({[`.${e}`]:{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"}}}),Cr=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...yr(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),xr="6.3.4",wr={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"},Sr={...wr,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},Er={token:Sr,override:{override:Sr},hashed:!0},kr=r.createContext(Er),Nr={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Ir=Math.round;function Mr(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Pr=(e,t,n)=>0===n?e:e/100;function Rr(e,t){const n=t||255;return e>n?n:e<0?0:e}class Or{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"===typeof e){const n=e.trim();function r(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(r("rgb"))this.fromRgbString(n);else if(r("hsl"))this.fromHslString(n);else if(r("hsv")||r("hsb"))this.fromHsvString(n);else{const o=Nr[n.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(e instanceof Or)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._hsl_s=e._hsl_s,this._hsv_s=e._hsv_s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Rr(e.r),this.g=Rr(e.g),this.b=Rr(e.b),this.a="number"===typeof e.a?Rr(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if("undefined"===typeof this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:Ir(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if("undefined"===typeof this._hsv_s){const e=this.getMax()-this.getMin();this._hsv_s=0===e?0:e/this.getMax()}return this._hsv_s}getHSLSaturation(){if("undefined"===typeof this._hsl_s){const e=this.getMax()-this.getMin();if(0===e)this._hsl_s=0;else{const t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return"undefined"===typeof this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return"undefined"===typeof this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return"undefined"===typeof this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:Ir(o("r")),g:Ir(o("g")),b:Ir(o("b")),a:Ir(100*o("a"))/100};return this._c(i)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>Ir((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"===typeof this.a&&this.a>=0&&this.a<1){const t=Ir(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=Ir(100*this.getHSLSaturation()),n=Ir(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Rr(t,n),r}_c(e){return new this.constructor(e)}getMax(){return"undefined"===typeof this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return"undefined"===typeof this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl(e){let{h:t,s:n,l:r,a:o}=e;const i=(t%360+360)%360;if(this._h=i,this._hsl_s=n,this._l=r,this.a="number"===typeof o?o:1,n<=0){const e=Ir(255*r);return this.r=e,this.g=e,void(this.b=e)}let a=0,l=0,s=0;const c=i/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,l=d):c>=1&&c<2?(a=d,l=u):c>=2&&c<3?(l=u,s=d):c>=3&&c<4?(l=d,s=u):c>=4&&c<5?(a=d,s=u):c>=5&&c<6&&(a=u,s=d);const p=r-u/2;this.r=Ir(255*(a+p)),this.g=Ir(255*(l+p)),this.b=Ir(255*(s+p))}fromHsv(e){let{h:t,s:n,v:r,a:o}=e;const i=(t%360+360)%360;this._h=i,this._hsv_s=n,this._v=r,this.a="number"===typeof o?o:1;const a=Ir(255*r);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=i/60,s=Math.floor(l),c=l-s,u=Ir(r*(1-n)*255),d=Ir(r*(1-n*c)*255),p=Ir(r*(1-n*(1-c))*255);switch(s){case 0:this.g=p,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=p;break;case 3:this.r=u,this.g=d;break;case 4:this.r=p,this.g=u;break;default:this.g=u,this.b=d}}fromHsvString(e){const t=Mr(e,Pr);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Mr(e,Pr);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Mr(e,(e,t)=>t.includes("%")?Ir(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const zr=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Ar(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,r<0?r+=360:r>=360&&(r-=360),r}function Tr(e,t,n){if(0===e.h&&0===e.s)return e.s;let r;return r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,r>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100}function Br(e,t,n){let r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Hr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[],r=new Or(e),o=r.toHsv();for(let i=5;i>0;i-=1){const e=new Or({h:Ar(o,i,!0),s:Tr(o,i,!0),v:Br(o,i,!0)});n.push(e)}n.push(r);for(let i=1;i<=4;i+=1){const e=new Or({h:Ar(o,i),s:Tr(o,i),v:Br(o,i)});n.push(e)}return"dark"===t.theme?zr.map(e=>{let{index:r,amount:o}=e;return new Or(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(e=>e.toHexString())}const Dr={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"},Lr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Lr.primary=Lr[5];const jr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];jr.primary=jr[5];const Fr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Fr.primary=Fr[5];const Wr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Wr.primary=Wr[5];const _r=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];_r.primary=_r[5];const Vr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Vr.primary=Vr[5];const Xr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Xr.primary=Xr[5];const Kr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Kr.primary=Kr[5];const qr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];qr.primary=qr[5];const Gr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Gr.primary=Gr[5];const Yr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Yr.primary=Yr[5];const Ur=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ur.primary=Ur[5];const Qr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Qr.primary=Qr[5];const Zr={red:Lr,volcano:jr,orange:Fr,gold:Wr,yellow:_r,lime:Vr,green:Xr,cyan:Kr,blue:qr,geekblue:Gr,purple:Yr,magenta:Ur,grey:Qr},Jr=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Jr.primary=Jr[5];const eo=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];eo.primary=eo[5];const to=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];to.primary=to[5];const no=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];no.primary=no[5];const ro=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];ro.primary=ro[5];const oo=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];oo.primary=oo[5];const io=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];io.primary=io[5];const ao=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];ao.primary=ao[5];const lo=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];lo.primary=lo[5];const so=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];so.primary=so[5];const co=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];co.primary=co[5];const uo=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];uo.primary=uo[5];const po=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];po.primary=po[5];const mo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function fo(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),p=n(o),m=n(i),f=n(a),h=n(l),g=r(c,u),b=e.colorLink||e.colorInfo,v=n(b),y=new Or(f[1]).mix(new Or(f[3]),50).toHexString(),$={};return mo.forEach(t=>{const r=e[t];if(r){const e=n(r);$[`${t}Hover`]=e[5],$[`${t}Active`]=e[7]}}),{...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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:y,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[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 Or("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const ho=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 go(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1,...ho(r)}}const bo=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function vo(e){return(e+8)/e}const yo=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,o=e*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:vo(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],s=r[0],c=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:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function $o(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Co=(e,t)=>new Or(e).setA(t).toRgbString(),xo=(e,t)=>new Or(e).darken(t).toHexString(),wo=e=>{const t=Hr(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]}},So=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Co(r,.88),colorTextSecondary:Co(r,.65),colorTextTertiary:Co(r,.45),colorTextQuaternary:Co(r,.25),colorFill:Co(r,.15),colorFillSecondary:Co(r,.06),colorFillTertiary:Co(r,.04),colorFillQuaternary:Co(r,.02),colorBgSolid:Co(r,1),colorBgSolidHover:Co(r,.75),colorBgSolidActive:Co(r,.95),colorBgLayout:xo(n,4),colorBgContainer:xo(n,0),colorBgElevated:xo(n,0),colorBgSpotlight:Co(r,.85),colorBgBlur:"transparent",colorBorder:xo(n,15),colorBorderDisabled:xo(n,15),colorBorderSecondary:xo(n,6)}};function Eo(e){Dr.pink=Dr.magenta,Zr.pink=Zr.magenta;const t=Object.keys(wr).map(t=>{const n=e[t]===Dr[t]?Zr[t]:Hr(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e={...e,...t},{});return{...e,...t,...fo(e,{generateColorPalettes:wo,generateNeutralColorPalettes:So}),...yo(e.fontSize),...$o(e),...bo(e),...go(e)}}const ko=tt(Eo);function No(e){return e>=0&&e<=255}const Io=function(e,t){const{r:n,g:r,b:o,a:i}=new Or(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Or(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-l*(1-c))/c),i=Math.round((o-s*(1-c))/c);if(No(e)&&No(t)&&No(i))return new Or({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new Or({r:n,g:r,b:o,a:1}).toRgbString()};function Mo(e){const{override:t,...n}=e,r={...t};Object.keys(Sr).forEach(e=>{delete r[e]});const o={...n,...r},i=1200,a=1600,l=1920;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Io(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:Io(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Io(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Io(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,screenXXLMax:1919,screenXXXL:l,screenXXXLMin:l,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Or("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Or("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Or("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}}const Po={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},Ro={motionBase:!0,motionUnit:!0},Oo={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,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},zo=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...i}=t;let a={...r,override:o};return a=Mo(a),i&&Object.entries(i).forEach(e=>{let[t,n]=e;const{theme:r,...o}=n;let i=o;r&&(i=zo({...a,...o},{override:o},r)),a[t]=i}),a};function Ao(){const{token:e,hashed:t,theme:n,override:o,cssVar:i,zeroRuntime:a}=r.useContext(kr),{csp:l}=r.useContext(ye),s={prefix:i?.prefix??"ant",key:i?.key??"css-var-root"},c=`${xr}-${t||""}`,u=n||ko,[d,p,m]=Ct(u,[Sr,e],{salt:c,override:o,getComputedToken:zo,cssVar:{...s,unitless:Po,ignore:Ro,preserve:Oo},nonce:l?.nonce});return[u,m,t?p:"",d,s,!!a]}const{genStyleHooks:To,genComponentStyleHook:Bo,genSubStyleComponent:Ho}=hr({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(ye);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o,i]=Ao();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o,zeroRuntime:i}},useCSP:()=>{const{csp:e}=(0,r.useContext)(ye);return e??{}},getResetStyles:(e,t)=>{const n=(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},...yr(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[n,{"&":n},$r(t?.prefix.iconPrefixCls??be)]},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]:{...l,...a,[o]:a}}},getCompUnitless:()=>Po}),Do=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]},Lo=To("Affix",e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},e=>({zIndexPopup:e.zIndexBase+10}));function jo(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Fo(e,t,n){if(void 0!==n&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function Wo(e,t,n){if(void 0!==n&&Math.round(t.bottom)<Math.round(e.bottom)+n){return n+(window.innerHeight-t.bottom)}}const _o=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],Vo=()=>"undefined"!==typeof window?window:null,Xo=r.forwardRef((e,t)=>{const{style:n,offsetTop:o,offsetBottom:i,prefixCls:a,className:l,rootClassName:s,children:c,target:u,onChange:d,onTestUpdatePosition:p,...m}=e,{getPrefixCls:f,className:h,style:g}=xe("affix"),{getTargetContainer:b}=r.useContext(ye),v=f("affix",a),[y,$]=r.useState(!1),[C,x]=r.useState(),[w,S]=r.useState(),E=r.useRef(0),k=r.useRef(null),N=r.useRef(null),I=r.useRef(null),M=r.useRef(null),P=r.useRef(null),R=u??b??Vo,O=void 0===i&&void 0===o?0:o,z=()=>{E.current=1,(()=>{if(1!==E.current||!M.current||!I.current||!R)return;const e=R();if(e){const t={status:0},n=jo(I.current);if(0===n.top&&0===n.left&&0===n.width&&0===n.height)return;const r=jo(e),o=Fo(n,r,O),a=Wo(n,r,i);void 0!==o?(t.affixStyle={position:"fixed",top:o,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}):void 0!==a&&(t.affixStyle={position:"fixed",bottom:a,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}),t.lastAffix=!!t.affixStyle,y!==t.lastAffix&&d?.(t.lastAffix),E.current=t.status,x(t.affixStyle),S(t.placeholderStyle),$(t.lastAffix)}})()},A=he(()=>{z()}),T=he(()=>{if(R&&C){const e=R();if(e&&I.current){const t=jo(e),n=jo(I.current),r=Fo(n,t,O),o=Wo(n,t,i);if(void 0!==r&&C.top===r||void 0!==o&&C.bottom===o)return}}z()}),B=()=>{const e=R?.();e&&(_o.forEach(t=>{N.current&&k.current?.removeEventListener(t,N.current),e?.addEventListener(t,T)}),k.current=e,N.current=T)},H=()=>{const e=R?.();_o.forEach(t=>{e?.removeEventListener(t,T),N.current&&k.current?.removeEventListener(t,N.current)}),A.cancel(),T.cancel()};r.useImperativeHandle(t,()=>({updatePosition:A})),r.useEffect(()=>(P.current=setTimeout(B),()=>{P.current&&(clearTimeout(P.current),P.current=null),H()}),[]),r.useEffect(()=>(B(),()=>H()),[u,C,y,o,i]),r.useEffect(()=>{A()},[u,o,i]);const[D,L]=Lo(v),j=re(s,D,v,L),F=re({[j]:C});return r.createElement(te,{onResize:A},r.createElement("div",{style:{...g,...n},className:re(l,h),ref:I,...m},C&&r.createElement("div",{style:w,"aria-hidden":"true"}),r.createElement("div",{className:F,ref:M,style:C},r.createElement(te,{onResize:A},c))))});const Ko=Xo;const qo={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"},Go=(0,r.createContext)({});function Yo(e){return e?.getRootNode?.()}function Uo(e){return function(e){return Yo(e)instanceof ShadowRoot}(e)?Yo(e):null}function Qo(e){return"object"===typeof e&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===typeof e.icon||"function"===typeof e.icon)}function Zo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((t,n)=>{const r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,(e,t)=>t.toUpperCase())}(n)]=r;return t},{})}function Jo(e,t,n){return n?r.createElement(e.tag,{key:t,...Zo(e.attrs),...n},(e.children||[]).map((n,r)=>Jo(n,`${t}-${e.tag}-${r}`))):r.createElement(e.tag,{key:t,...Zo(e.attrs)},(e.children||[]).map((n,r)=>Jo(n,`${t}-${e.tag}-${r}`)))}function ei(e){return Hr(e)[0]}function ti(e){return e?Array.isArray(e)?e:[e]:[]}const ni={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const ri=e=>{const{icon:t,className:n,onClick:o,style:i,primaryColor:a,secondaryColor:l,...s}=e,c=r.useRef(null);let u=ni;if(a&&(u={primaryColor:a,secondaryColor:l||ei(a)}),(e=>{const{csp:t,prefixCls:n,layer:o}=(0,r.useContext)(Go);let i="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin {\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";n&&(i=i.replace(/anticon/g,n)),o&&(i=`@layer ${o} {\n${i}\n}`),(0,r.useEffect)(()=>{const n=Uo(e.current);Le(i,"@ant-design-icons",{prepend:!o,csp:t,attachTo:n})},[])})(c),function(e,t){h(e,`[@ant-design/icons] ${t}`)}(Qo(t),`icon should be icon definiton, but got ${t}`),!Qo(t))return null;let d=t;return d&&"function"===typeof d.icon&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),Jo(d.icon,`svg-${d.name}`,{className:n,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:c})};ri.displayName="IconReact",ri.getTwoToneColors=function(){return{...ni}},ri.setTwoToneColors=function(e){let{primaryColor:t,secondaryColor:n}=e;ni.primaryColor=t,ni.secondaryColor=n||ei(t),ni.calculated=!!n};const oi=ri;function ii(e){const[t,n]=ti(e);return oi.setTwoToneColors({primaryColor:t,secondaryColor:n})}function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ai.apply(this,arguments)}ii(qr.primary);const li=r.forwardRef((e,t)=>{const{className:n,icon:o,spin:i,rotate:a,tabIndex:l,onClick:s,twoToneColor:c,...u}=e,{prefixCls:d="anticon",rootClassName:p}=r.useContext(Go),m=re(p,d,{[`${d}-${o.name}`]:!!o.name,[`${d}-spin`]:!!i||"loading"===o.name},n);let f=l;void 0===f&&s&&(f=-1);const h=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[g,b]=ti(c);return r.createElement("span",ai({role:"img","aria-label":o.name},u,{ref:t,tabIndex:f,onClick:s,className:m}),r.createElement(oi,{icon:o,primaryColor:g,secondaryColor:b,style:h}))});li.getTwoToneColor=function(){const e=oi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},li.setTwoToneColor=ii;const si=li;function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ci.apply(this,arguments)}const ui=r.forwardRef((e,t)=>r.createElement(si,ci({},e,{ref:t,icon:qo})));const di={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"};function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pi.apply(this,arguments)}const mi=r.forwardRef((e,t)=>r.createElement(si,pi({},e,{ref:t,icon:di})));const fi={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"};function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hi.apply(this,arguments)}const gi=r.forwardRef((e,t)=>r.createElement(si,hi({},e,{ref:t,icon:fi})));const bi={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"};function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vi.apply(this,arguments)}const yi=r.forwardRef((e,t)=>r.createElement(si,vi({},e,{ref:t,icon:bi})));const $i={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"};function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ci.apply(this,arguments)}const xi=r.forwardRef((e,t)=>r.createElement(si,Ci({},e,{ref:t,icon:$i}))),wi=r.createContext({}),Si=e=>{const{children:t,...n}=e,o=r.useMemo(()=>({motion:n.motion}),[n.motion]);return r.createElement(wi.Provider,{value:o},t)};const Ei=function(e){const[,t]=r.useReducer(e=>e+1,0),n=r.useRef(e);return[A(()=>n.current),A(e=>{n.current="function"===typeof e?e(n.current):e,t()})]},ki="none",Ni="appear",Ii="enter",Mi="leave",Pi="none",Ri="prepare",Oi="start",zi="active",Ai="end",Ti="prepared";function Bi(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}const Hi=function(e,t){const n={animationend:Bi("Animation","AnimationEnd"),transitionend:Bi("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(T(),"undefined"!==typeof window?window:{});let Di={};T()&&({style:Di}=document.createElement("div"));const Li={};function ji(e){if(Li[e])return Li[e];const t=Hi[e];if(t){const n=Object.keys(t),r=n.length;for(let o=0;o<r;o+=1){const r=n[o];if(Object.prototype.hasOwnProperty.call(t,r)&&r in Di)return Li[e]=t[r],Li[e]}}return""}const Fi=ji("animationend"),Wi=ji("transitionend"),_i=!(!Fi||!Wi),Vi=Fi||"animationend",Xi=Wi||"transitionend";function Ki(e,t){if(!e)return null;if("object"===typeof e){const n=t.replace(/-\w/g,e=>e[1].toUpperCase());return e[n]}return`${e}-${t}`}const qi=T()?r.useLayoutEffect:r.useEffect,Gi=[Ri,Oi,zi,Ai],Yi=[Ri,Ti],Ui=!1;function Qi(e){return e===zi||e===Ai}const Zi=(e,t,n)=>{const[o,i]=j(Pi),[a,l]=(()=>{const e=r.useRef(null);function t(){fe.cancel(e.current)}return r.useEffect(()=>()=>{t()},[]),[function n(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();const i=fe(()=>{o<=1?r({isCanceled:()=>i!==e.current}):n(r,o-1)});e.current=i},t]})();const s=t?Yi:Gi;return qi(()=>{if(o!==Pi&&o!==Ai){const e=s.indexOf(o),t=s[e+1],r=n(o);r===Ui?i(t,!0):t&&a(e=>{function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,o]),r.useEffect(()=>()=>{l()},[]),[function(){i(Ri,!0)},o]};function Ji(e,t,n,o){let{motionEnter:i=!0,motionAppear:a=!0,motionLeave:l=!0,motionDeadline:s,motionLeaveImmediately:c,onAppearPrepare:u,onEnterPrepare:d,onLeavePrepare:p,onAppearStart:m,onEnterStart:f,onLeaveStart:h,onAppearActive:g,onEnterActive:b,onLeaveActive:v,onAppearEnd:y,onEnterEnd:$,onLeaveEnd:C,onVisibleChanged:x}=o;const[w,S]=r.useState(),[E,k]=Ei(ki),[N,I]=r.useState([null,null]),M=E(),P=(0,r.useRef)(!1),R=(0,r.useRef)(null);function O(){return n()}const z=(0,r.useRef)(!1);function T(){k(ki),I([null,null])}const B=A(e=>{const t=E();if(t===ki)return;const n=O();if(e&&!e.deadline&&e.target!==n)return;const r=z.current;let o;t===Ni&&r?o=y?.(n,e):t===Ii&&r?o=$?.(n,e):t===Mi&&r&&(o=C?.(n,e)),r&&!1!==o&&T()}),[H]=(e=>{const t=(0,r.useRef)();function n(t){t&&(t.removeEventListener(Xi,e),t.removeEventListener(Vi,e))}return r.useEffect(()=>()=>{n(t.current),t.current=null},[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Xi,e),r.addEventListener(Vi,e),t.current=r)},n]})(B),D=e=>{switch(e){case Ni:return{[Ri]:u,[Oi]:m,[zi]:g};case Ii:return{[Ri]:d,[Oi]:f,[zi]:b};case Mi:return{[Ri]:p,[Oi]:h,[zi]:v};default:return{}}},L=r.useMemo(()=>D(M),[M]),[j,F]=Zi(M,!e,e=>{if(e===Ri){const e=L[Ri];return e?e(O()):Ui}return e in L&&I([L[e]?.(O(),null)||null,e]),e===zi&&M!==ki&&(H(O()),s>0&&(clearTimeout(R.current),R.current=setTimeout(()=>{B({deadline:!0})},s))),e===Ti&&T(),true}),W=Qi(F);z.current=W;const _=(0,r.useRef)(null);qi(()=>{if(P.current&&_.current===t)return;S(t);const n=P.current;let r;P.current=!0,!n&&t&&a&&(r=Ni),n&&t&&i&&(r=Ii),(n&&!t&&l||!n&&c&&!t&&l)&&(r=Mi);const o=D(r);r&&(e||o[Ri])?(k(r),j()):k(ki),_.current=t},[t]),(0,r.useEffect)(()=>{(M===Ni&&!a||M===Ii&&!i||M===Mi&&!l)&&k(ki)},[a,i,l]),(0,r.useEffect)(()=>()=>{P.current=!1,clearTimeout(R.current)},[]);const V=r.useRef(!1);(0,r.useEffect)(()=>{w&&(V.current=!0),void 0!==w&&M===ki&&((V.current||w)&&x?.(w),V.current=!0)},[w,M]);let X=N[0];L[Ri]&&F===Oi&&(X={transition:"none",...X});const K=N[1];return[E,F,X,w??t,!P.current&&M===ki&&e&&a?"NONE":F!==Oi&&F!==zi||K===F]}function ea(e){return e?.length<2}const ta=function(e){let t=e;"object"===typeof e&&({transitionSupport:t}=e);const n=r.forwardRef((e,n)=>{const{visible:o=!0,removeOnLeave:i=!0,forceRender:a,children:l,motionName:s,leavedClassName:c,eventProps:u}=e,{motion:d}=r.useContext(wi),p=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d),m=(0,r.useRef)();function f(){return v(m.current)}const[h,g,b,y,$]=Ji(p,o,f,e),C=h(),x=r.useRef(y);y&&(x.current=!0);const S=r.useMemo(()=>{const e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:f},inMotion:{enumerable:!0,get:()=>()=>h()!==ki},enableMotion:{enumerable:!0,get:()=>()=>p}}),e},[]);r.useImperativeHandle(n,()=>S,[]);const E=r.useRef(0);$&&(E.current+=1);const k=r.useMemo(()=>{if("NONE"===$)return null;let e;const t={...u,visible:o};if(l)if(C===ki)e=y?l({...t},m):!i&&x.current&&c?l({...t,className:c},m):a||!i&&!c?l({...t,style:{display:"none"}},m):null;else{let n;g===Ri?n="prepare":Qi(g)?n="active":g===Oi&&(n="start");const r=Ki(s,`${C}-${n}`);e=l({...t,className:re(Ki(s,C),{[r]:r&&n,[s]:"string"===typeof s}),style:b},m)}else e=null;return e},[E.current]);if(ea(l)&&N(k)){const e=I(k);if(e!==m)return r.cloneElement(k,{ref:w(e,m)})}return k});return n.displayName="CSSMotion",n}(_i),na="add",ra="keep",oa="remove",ia="removed";function aa(e){let t;return t=e&&"object"===typeof e&&"key"in e?e:{key:e},{...t,key:String(t.key)}}function la(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(aa)}function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(this,arguments)}const ca=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const ua=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ta;class t extends r.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps(e,t){let{keys:n}=e,{keyEntities:r}=t;const o=la(n),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0;const o=t.length,i=la(e),a=la(t);i.forEach(e=>{let t=!1;for(let i=r;i<o;i+=1){const o=a[i];if(o.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(e=>({...e,status:na}))),r=i),n.push({...o,status:ra}),r+=1,t=!0;break}}t||n.push({...e,status:oa})}),r<o&&(n=n.concat(a.slice(r).map(e=>({...e,status:na}))));const l={};return n.forEach(e=>{let{key:t}=e;l[t]=(l[t]||0)+1}),Object.keys(l).filter(e=>l[e]>1).forEach(e=>{n=n.filter(t=>{let{key:n,status:r}=t;return n!==e||r!==oa}),n.forEach(t=>{t.key===e&&(t.status=ra)})}),n}(r,o);return{keyEntities:i.filter(e=>{const t=r.find(t=>{let{key:n}=t;return e.key===n});return!t||t.status!==ia||e.status!==oa})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key!==e?t:{...t,status:ia})}),()=>{const{keyEntities:e}=this.state;0===e.filter(e=>{let{status:t}=e;return t!==ia}).length&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:t}=this.state,{component:n,children:o,onVisibleChanged:i,onAllRemoved:a,...l}=this.props,s=n||r.Fragment,c={};return ca.forEach(e=>{c[e]=l[e],delete l[e]}),delete l.keys,r.createElement(s,l,t.map((t,n)=>{let{status:a,...l}=t;const s=a===na||a===ra;return r.createElement(e,sa({},c,{key:l.key,visible:s,eventProps:l,onVisibleChanged:e=>{i?.(e,{key:l.key}),e||this.removeKey(l.key)}}),ea(o)?e=>o({...e,index:n}):(e,t)=>o({...e,index:n},t))}))}}return t}(_i),da=ta,pa="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 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]+/);function ma(e,t){return 0===e.indexOf(t)}function fa(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:{...n};const r={};return Object.keys(e).forEach(n=>{(t.aria&&("role"===n||ma(n,"aria-"))||t.data&&ma(n,"data-")||t.attr&&pa.includes(n))&&(r[n]=e[n])}),r}const ha=function(e){const t=e||{};for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.filter(Boolean).reduce((e,n)=>(Object.keys(n||{}).forEach(r=>{const o=t[r],i=n[r];if(o&&"object"===typeof o)if(i&&"object"===typeof i)e[r]=ha(o,e[r],i);else{const{_default:t}=o;t&&(e[r]=e[r]||{},e[r][t]=re(e[r][t],i))}else e[r]=re(e[r],i)}),e),{})},ga=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r.useMemo(()=>ha.apply(void 0,[e].concat(n)),[e].concat(n))},ba=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).reduce(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e},{})},va=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo(()=>ba.apply(void 0,t),[].concat(t))},ya=(e,t)=>{const n={...e};return Object.keys(t).forEach(e=>{if("_default"!==e){const r=t[e],o=n[e]||{};n[e]=r?ya(o,r):o}}),n},$a=(e,t)=>"function"===typeof e?e(t):e,Ca=(e,t,n,o)=>{const i=e.map(e=>e?$a(e,n):void 0),a=t.map(e=>e?$a(e,n):void 0),l=ga.apply(void 0,[o].concat(le(i))),s=va.apply(void 0,le(a));return r.useMemo(()=>o?[ya(l,o),ya(s,o)]:[l,s],[l,s,o])},xa=e=>void 0!==e&&null!==e,wa=(e,t,n,r,o)=>({background:e,border:`${lt(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),Sa=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:p,withDescriptionPadding:m,defaultPadding:f}=e;return{[t]:{...br(e),position:"relative",display:"flex",alignItems:"center",padding:f,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-title":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(e=>`${e} ${n} ${c}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:m,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:p,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Ea=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:m}=e;return{[t]:{"&-success":wa(o,r,n,e,t),"&-info":wa(m,p,d,e,t),"&-warning":wa(l,a,i,e,t),"&-error":{...wa(u,c,s,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},ka=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-actions":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:lt(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},Na=To("Alert",e=>[Sa(e),Ea(e),ka(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),Ia=e=>{const{icon:t,type:n,className:o,style:i,successIcon:a,infoIcon:l,warningIcon:s,errorIcon:c}=e,u={success:a??r.createElement(ui,null),info:l??r.createElement(xi,null),error:c??r.createElement(mi,null),warning:s??r.createElement(yi,null)};return r.createElement("span",{className:o,style:i},t??u[n])},Ma=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:i,ariaProps:a,className:l,style:s}=e,c=!0===o||void 0===o?r.createElement(gi,null):o;return t?r.createElement("button",{type:"button",onClick:i,className:re(`${n}-close-icon`,l),tabIndex:0,style:s,...a},c):null},Pa=r.forwardRef((e,t)=>{const{description:n,prefixCls:o,message:i,title:a,banner:l,className:s,rootClassName:c,style:u,onMouseEnter:d,onMouseLeave:p,onClick:m,afterClose:f,showIcon:h,closable:g,closeText:b,closeIcon:v,action:y,id:$,styles:C,classNames:x,...S}=e,E=a??i,[k,N]=r.useState(!1);const I=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:I.current}));const{getPrefixCls:M,direction:P,closable:R,closeIcon:O,className:z,style:A,classNames:T,styles:B,successIcon:H,infoIcon:D,warningIcon:L,errorIcon:j}=xe("alert"),F=M("alert",o),[W,_]=Na(F),{onClose:V,afterClose:X}=g&&"object"===typeof g?g:{},K=t=>{N(!0),(V??e.onClose)?.(t)},q=r.useMemo(()=>void 0!==e.type?e.type:l?"warning":"info",[e.type,l]),G=r.useMemo(()=>!("object"!==typeof g||!g.closeIcon)||(!!b||("boolean"===typeof g?g:!(!1===v||!xa(v))||!!R)),[b,v,g,R]),Y=!(!l||void 0!==h)||h,U={...e,prefixCls:F,type:q,showIcon:Y,closable:G},[Q,Z]=Ca([T,x],[B,C],{props:U}),J=re(F,`${F}-${q}`,{[`${F}-with-description`]:!!n,[`${F}-no-icon`]:!Y,[`${F}-banner`]:!!l,[`${F}-rtl`]:"rtl"===P},z,s,c,Q.root,_,W),ee=fa(S,{aria:!0,data:!0}),te=r.useMemo(()=>"object"===typeof g&&g.closeIcon?g.closeIcon:b||(void 0!==v?v:"object"===typeof R&&R.closeIcon?R.closeIcon:O),[v,g,R,b,O]),ne=r.useMemo(()=>{const e=g??R;return"object"===typeof e?fa(e,{data:!0,aria:!0}):{}},[g,R]);return r.createElement(da,{visible:!k,motionName:`${F}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:X??f},(t,o)=>{let{className:i,style:a}=t;return r.createElement("div",{id:$,ref:w(I,o),"data-show":!k,className:re(J,i),style:{...Z.root,...A,...u,...a},onMouseEnter:d,onMouseLeave:p,onClick:m,role:"alert",...ee},Y?r.createElement(Ia,{className:re(`${F}-icon`,Q.icon),style:Z.icon,description:n,icon:e.icon,prefixCls:F,type:q,successIcon:H,infoIcon:D,warningIcon:L,errorIcon:j}):null,r.createElement("div",{className:re(`${F}-section`,Q.section),style:Z.section},E?r.createElement("div",{className:re(`${F}-title`,Q.title),style:Z.title},E):null,n?r.createElement("div",{className:re(`${F}-description`,Q.description),style:Z.description},n):null),y?r.createElement("div",{className:re(`${F}-actions`,Q.actions),style:Z.actions},y):null,r.createElement(Ma,{className:Q.close,style:Z.close,isClosable:G,prefixCls:F,closeIcon:te,handleClose:K,ariaProps:ne}))})});const Ra=Pa;let Oa=function(e){function t(){var e;return(0,Dn.A)(this,t),e=function(e,t,n){return t=(0,Wn.A)(t),(0,Vn.A)(e,_n()?Reflect.construct(t,n||[],(0,Wn.A)(e).constructor):t.apply(e,n))}(this,t,arguments),e.state={error:void 0,info:{}},e}return(0,Fn.A)(t,e),(0,Ln.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,title:t,description:n,id:o,children:i}=this.props,{error:a,info:l}=this.state,s=t??e,c=l?.componentStack||null,u=xa(s)?s:a?.toString(),d=xa(n)?n:c;return a?r.createElement(Ra,{id:o,type:"error",title:u,description:r.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):i}}])}(r.PureComponent);const za=Oa,Aa=Ra;Aa.ErrorBoundary=za;const Ta=Aa,Ba=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Ha=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Da=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ha(n.overflowY,t)||Ha(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},La=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,ja=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},Fa=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Ba(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,m=[];let f=e;for(;Ba(f)&&d(f);){if(f=ja(f),f===p){m.push(f);break}null!=f&&f===document.body&&Da(f)&&!Da(document.documentElement)||null!=f&&Da(f,u)&&m.push(f)}const h=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:$,top:C,right:x,bottom:w,left:S}=e.getBoundingClientRect(),{top:E,right:k,bottom:N,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let M="start"===l||"nearest"===l?C-E:"end"===l?w+N:C+y/2-E+N,P="center"===s?S+$/2-I+k:"end"===s?x+k:S-I;const R=[];for(let O=0;O<m.length;O++){const e=m[O],{height:t,width:n,top:r,right:o,bottom:i,left:c}=e.getBoundingClientRect();if("if-needed"===a&&C>=0&&S>=0&&w<=g&&x<=h&&(e===p&&!Da(e)||C>=r&&w<=i&&S>=c&&x<=o))return R;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),f=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),k=parseInt(u.borderBottomWidth,10);let N=0,I=0;const z="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,A="offsetHeight"in e?e.offsetHeight-e.clientHeight-f-k:0,T="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,B="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(p===e)N="start"===l?M:"end"===l?M-g:"nearest"===l?La(v,v+g,g,f,k,v+M,v+M+y,y):M-g/2,I="start"===s?P:"center"===s?P-h/2:"end"===s?P-h:La(b,b+h,h,d,E,b+P,b+P+$,$),N=Math.max(0,N+v),I=Math.max(0,I+b);else{N="start"===l?M-r-f:"end"===l?M-i+k+A:"nearest"===l?La(r,i,t,f,k+A,M,M+y,y):M-(r+t/2)+A/2,I="start"===s?P-c-d:"center"===s?P-(c+n/2)+z/2:"end"===s?P-o+E+z:La(c,o,n,d,E+z,P,P+$,$);const{scrollLeft:a,scrollTop:u}=e;N=0===B?0:Math.max(0,Math.min(u+N/B,e.scrollHeight-t/B+A)),I=0===T?0:Math.max(0,Math.min(a+I/T,e.scrollWidth-n/T+z)),M+=u-N,P+=a-I}R.push({el:e,top:N,left:I})}return R};function Wa(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(Fa(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of Fa(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}function _a(e){return xa(e)&&e===e.window}const Va=e=>{if("undefined"===typeof window)return 0;let t=0;return _a(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!_a(e)&&"number"!==typeof t&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function Xa(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=Va(i),l=Date.now();let s;const 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);_a(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<o?s=fe(c):"function"===typeof r&&r()};return s=fe(c),()=>{fe.cancel(s)}}const Ka=e=>`${e}-css-var`,qa=r.createContext(void 0),Ga=e=>{const{href:t,title:n,prefixCls:o,children:i,className:a,target:l,replace:s}=e,c=r.useContext(qa),{registerLink:u,unregisterLink:d,scrollTo:p,onClick:m,activeLink:f,direction:h,classNames:g,styles:b}=c||{};r.useEffect(()=>(u?.(t),()=>{d?.(t)}),[t]);const{getPrefixCls:v}=r.useContext(ye),y=v("anchor",o),$=f===t,C=re(`${y}-link`,a,g?.item,{[`${y}-link-active`]:$}),x=re(`${y}-link-title`,g?.itemTitle,{[`${y}-link-title-active`]:$});return r.createElement("div",{className:C,style:b?.item},r.createElement("a",{className:x,style:b?.itemTitle,href:t,title:"string"===typeof n?n:"",target:l,onClick:e=>{if(m?.(e,{title:n,href:t}),p?.(t),e.defaultPrevented)return;if(t.startsWith("http://")||t.startsWith("https://"))return void(s&&(e.preventDefault(),window.location.replace(t)));e.preventDefault();const r=s?"replaceState":"pushState";window.history[r](null,"",t)}},n),"horizontal"!==h?i:null)},Ya=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:o,colorPrimary:i,lineType:a,colorSplit:l,calc:s}=e;return{[`${t}-wrapper`]:{marginBlockStart:s(n).mul(-1).equal(),paddingBlockStart:n,[t]:{...br(e),position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${lt(e.linkPaddingInlineStart)} 0`,"&-title":{...gr,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${lt(o)} ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:o,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},Ua=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:o}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:["left","width"].map(e=>`${e} ${n} ease-in-out`).join(", "),height:r,backgroundColor:o}}}}},Qa=To("Anchor",e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:r,calc:o}=e,i=ir(e,{holderOffsetBlock:r,anchorPaddingBlockSecondary:o(r).div(2).equal(),anchorTitleBlock:o(t).div(14).mul(3).equal(),anchorBallSize:o(n).div(2).equal()});return[Ya(i),Ua(i)]},e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}));function Za(){return window}function Ja(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?n.top-e.ownerDocument.documentElement.clientTop:n.top-t.getBoundingClientRect().top:n.top}const el=/#([\S ]+)$/;const tl=e=>{const{rootClassName:t,prefixCls:n,className:o,style:i,offsetTop:a,affix:l=!0,showInkInFixed:s=!1,children:c,items:u,direction:d="vertical",bounds:p,targetOffset:m,onClick:f,onChange:h,getContainer:g,getCurrentAnchor:b,replace:v,classNames:y,styles:$}=e;const[C,x]=r.useState([]),[w,S]=r.useState(null),E=r.useRef(w),k=r.useRef(null),N=r.useRef(null),I=r.useRef(!1),M=r.useRef(null),{direction:P,getPrefixCls:R,className:O,style:z,classNames:T,styles:B}=xe("anchor"),{getTargetContainer:H}=r.useContext(ye),D=R("anchor",n),L=Ka(D),[j,F]=Qa(D,L),W=g??H??Za,_=JSON.stringify(C),V=A(e=>{C.includes(e)||x(t=>[].concat(le(t),[e]))}),X=A(e=>{C.includes(e)&&x(t=>t.filter(t=>t!==e))}),K=A(e=>{if(E.current===e)return;const t="function"===typeof b?b(e):e;S(t),E.current=t,h?.(e)}),q=r.useCallback(()=>{if(I.current)return;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const r=[],o=W();if(e.forEach(e=>{const i=el.exec(e?.toString());if(!i)return;const a=document.getElementById(i[1]);if(a){const i=Ja(a,o);i<=t+n&&r.push({link:e,top:i})}}),r.length){const e=r.reduce((e,t)=>t.top>e.top?t:e);return e.link}return""}(C,void 0!==m?m:a||0,p);K(e)},[C,m,a,p]),G=r.useCallback(e=>{const t=E.current;K(e);const n=el.exec(e);if(!n)return;const r=document.getElementById(n[1]);if(!r)return;if(I.current){if(t===e)return;M.current?.()}const o=W();let i=Va(o)+Ja(r,o);i-=void 0!==m?m:a||0,I.current=!0,M.current=Xa(i,{getContainer:W,callback(){I.current=!1}})},[m,a]),Y={...e,direction:d},[U,Q]=Ca([T,y],[B,$],{props:Y}),Z=re(j,F,L,t,`${D}-wrapper`,{[`${D}-wrapper-horizontal`]:"horizontal"===d,[`${D}-rtl`]:"rtl"===P},o,O,U.root),J=re(D,{[`${D}-fixed`]:!l&&!s}),ee=re(`${D}-ink`,U.indicator,{[`${D}-ink-visible`]:w}),te={maxHeight:a?`calc(100vh - ${a}px)`:"100vh",...Q.root,...z,...i},ne=e=>Array.isArray(e)?e.map(e=>r.createElement(Ga,{replace:v,...e,key:e.key},"vertical"===d&&ne(e.children))):null,oe=r.createElement("div",{ref:k,className:Z,style:te},r.createElement("div",{className:J},r.createElement("span",{className:ee,ref:N,style:Q.indicator}),"items"in e?ne(u):c));r.useEffect(()=>{const e=W();return q(),e?.addEventListener("scroll",q),()=>{e?.removeEventListener("scroll",q)}},[_]),r.useEffect(()=>{"function"===typeof b&&K(b(E.current||""))},[b]),r.useEffect(()=>{(()=>{const e=k.current?.querySelector(`.${D}-link-title-active`);if(e&&N.current){const{style:t}=N.current,n="horizontal"===d;t.top=n?"":`${e.offsetTop+e.clientHeight/2}px`,t.height=n?"":`${e.clientHeight}px`,t.left=n?`${e.offsetLeft}px`:"",t.width=n?`${e.clientWidth}px`:"",n&&Wa(e,{scrollMode:"if-needed",block:"nearest"})}})()},[d,b,_,w]);const ie=r.useMemo(()=>({registerLink:V,unregisterLink:X,scrollTo:G,activeLink:w,onClick:f,direction:d,classNames:U,styles:Q}),[w,f,G,d,Q,U]),ae=l&&"object"===typeof l?l:void 0;return r.createElement(qa.Provider,{value:ie},l?r.createElement(Ko,{offsetTop:a,target:W,...ae},oe):oe)},nl=tl;nl.Link=Ga;const rl=nl;function ol(){}const{resetWarned:il}=g;const al=r.createContext({}),ll=()=>{const e=()=>{};return e.deprecated=ol,e};var sl=n(85714);const cl={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){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=cl.F1&&t<=cl.F12)return!1;switch(t){case cl.ALT:case cl.CAPS_LOCK:case cl.CONTEXT_MENU:case cl.CTRL:case cl.DOWN:case cl.END:case cl.ESC:case cl.HOME:case cl.INSERT:case cl.LEFT:case cl.MAC_FF_META:case cl.META:case cl.NUMLOCK:case cl.NUM_CENTER:case cl.PAGE_DOWN:case cl.PAGE_UP:case cl.PAUSE:case cl.PRINT_SCREEN:case cl.RIGHT:case cl.SHIFT:case cl.UP:case cl.WIN_KEY:case cl.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=cl.ZERO&&e<=cl.NINE)return!0;if(e>=cl.NUM_ZERO&&e<=cl.NUM_MULTIPLY)return!0;if(e>=cl.A&&e<=cl.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case cl.SPACE:case cl.QUESTION_MARK:case cl.NUM_PLUS:case cl.NUM_MINUS:case cl.NUM_PERIOD:case cl.NUM_DIVISION:case cl.SEMICOLON:case cl.DASH:case cl.EQUALS:case cl.COMMA:case cl.PERIOD:case cl.SLASH:case cl.APOSTROPHE:case cl.SINGLE_QUOTE:case cl.OPEN_SQUARE_BRACKET:case cl.BACKSLASH:case cl.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){const t=e.target;if(!(t instanceof HTMLElement))return!1;const n=t.tagName;return!("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n&&!t.isContentEditable)}},ul=cl;function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dl.apply(this,arguments)}const pl=r.forwardRef((e,t)=>{const{prefixCls:n,style:o,className:i,duration:a=4.5,showProgress:l,pauseOnHover:s=!0,eventKey:c,content:u,closable:d,props:p,onClick:m,onNoticeClose:f,times:h,hovering:g}=e,[b,v]=r.useState(!1),[y,$]=r.useState(0),[C,x]=r.useState(0),w=g||b,S="number"===typeof a?a:0,E=S>0&&l,k=()=>{f(c)};r.useEffect(()=>{if(!w&&S>0){const e=Date.now()-C,t=setTimeout(()=>{k()},1e3*S-C);return()=>{s&&clearTimeout(t),x(Date.now()-e)}}},[S,w,h]),r.useEffect(()=>{if(!w&&E&&(s||0===C)){const e=performance.now();let t;const n=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(t=>{const r=t+C-e,o=Math.min(r/(1e3*S),1);$(100*o),o<1&&n()})};return n(),()=>{s&&cancelAnimationFrame(t)}}},[S,C,w,E,h]);const N=r.useMemo(()=>"object"===typeof d&&null!==d?d:{},[d]),I=fa(N,!0),M=100-(!y||y<0?0:y>100?100:y),P=`${n}-notice`;return r.createElement("div",dl({},p,{ref:t,className:re(P,i,{[`${P}-closable`]:d}),style:o,onMouseEnter:e=>{v(!0),p?.onMouseEnter?.(e)},onMouseLeave:e=>{v(!1),p?.onMouseLeave?.(e)},onClick:m}),r.createElement("div",{className:`${P}-content`},u),d&&r.createElement("button",dl({className:`${P}-close`,onKeyDown:e=>{"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==ul.ENTER||k()},"aria-label":"Close"},I,{onClick:e=>{e.preventDefault(),e.stopPropagation(),k()}}),N.closeIcon??"x"),E&&r.createElement("progress",{className:`${P}-progress`,max:"100",value:M},M+"%"))}),ml=pl,fl=r.createContext({}),hl=e=>{let{children:t,classNames:n}=e;return r.createElement(fl.Provider,{value:{classNames:n}},t)},gl=e=>{const t={offset:8,threshold:3,gap:16};return e&&"object"===typeof e&&(t.offset=e.offset??8,t.threshold=e.threshold??3,t.gap=e.gap??16),[!!e,t]};function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bl.apply(this,arguments)}const vl=e=>{const{configList:t,placement:n,prefixCls:o,className:i,style:a,motion:l,onAllNoticeRemoved:s,onNoticeClose:c,stack:u}=e,{classNames:d}=(0,r.useContext)(fl),p=(0,r.useRef)({}),[m,f]=(0,r.useState)(null),[h,g]=(0,r.useState)([]),b=t.map(e=>({config:e,key:String(e.key)})),[v,{offset:y,threshold:$,gap:C}]=gl(u),x=v&&(h.length>0||b.length<=$),w="function"===typeof l?l(n):l;return(0,r.useEffect)(()=>{v&&h.length>1&&g(e=>e.filter(e=>b.some(t=>{let{key:n}=t;return e===n})))},[h,b,v]),(0,r.useEffect)(()=>{v&&p.current[b[b.length-1]?.key]&&f(p.current[b[b.length-1]?.key])},[b,v]),r.createElement(ua,bl({key:n,className:re(o,`${o}-${n}`,d?.list,i,{[`${o}-stack`]:!!v,[`${o}-stack-expanded`]:x}),style:a,keys:b,motionAppear:!0},w,{onAllRemoved:()=>{s(n)}}),(e,t)=>{let{config:i,className:a,style:l,index:s}=e;const{key:u,times:f}=i,$=String(u),{className:w,style:S,classNames:E,styles:k,...N}=i,I=b.findIndex(e=>e.key===$),M={};if(v){const e=b.length-1-(I>-1?I:s-1),t="top"===n||"bottom"===n?"-50%":"0";if(e>0){M.height=x?p.current[$]?.offsetHeight:m?.offsetHeight;let r=0;for(let t=0;t<e;t++)r+=p.current[b[b.length-1-t].key]?.offsetHeight+C;const o=(x?r:e*y)*(n.startsWith("top")?1:-1),i=!x&&m?.offsetWidth&&p.current[$]?.offsetWidth?(m?.offsetWidth-2*y*(e<3?e:3))/p.current[$]?.offsetWidth:1;M.transform=`translate3d(${t}, ${o}px, 0) scaleX(${i})`}else M.transform=`translate3d(${t}, 0, 0)`}return r.createElement("div",{ref:t,className:re(`${o}-notice-wrapper`,a,E?.wrapper),style:{...l,...M,...k?.wrapper},onMouseEnter:()=>g(e=>e.includes($)?e:[...e,$]),onMouseLeave:()=>g(e=>e.filter(e=>e!==$))},r.createElement(ml,bl({},N,{ref:e=>{I>-1?p.current[$]=e:delete p.current[$]},prefixCls:o,classNames:E,styles:k,className:re(w,d?.notice),style:S,times:f,key:u,eventKey:u,onNoticeClose:c,hovering:v&&h.length>0})))})},yl=r.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:o,motion:i,maxCount:a,className:l,style:s,onAllRemoved:c,stack:u,renderNotifications:d}=e,[p,m]=r.useState([]),f=e=>{const t=p.find(t=>t.key===e),n=t?.closable,r=n&&"object"===typeof n?n:{},{onClose:o}=r;o?.(),t?.onClose?.(),m(t=>t.filter(t=>t.key!==e))};r.useImperativeHandle(t,()=>({open:e=>{m(t=>{let n=[...t];const r=n.findIndex(t=>t.key===e.key),o={...e};return r>=0?(o.times=(t[r]?.times||0)+1,n[r]=o):(o.times=0,n.push(o)),a>0&&n.length>a&&(n=n.slice(-a)),n})},close:e=>{f(e)},destroy:()=>{m([])}}));const[h,g]=r.useState({});r.useEffect(()=>{const e={};p.forEach(t=>{const{placement:n="topRight"}=t;n&&(e[n]=e[n]||[],e[n].push(t))}),Object.keys(h).forEach(t=>{e[t]=e[t]||[]}),g(e)},[p]);const b=e=>{g(t=>{const n={...t};return(n[e]||[]).length||delete n[e],n})},v=r.useRef(!1);if(r.useEffect(()=>{Object.keys(h).length>0?v.current=!0:v.current&&(c?.(),v.current=!1)},[h]),!o)return null;const y=Object.keys(h);return(0,sl.createPortal)(r.createElement(r.Fragment,null,y.map(e=>{const t=h[e],o=r.createElement(vl,{key:e,configList:t,placement:e,prefixCls:n,className:l?.(e),style:s?.(e),motion:i,onNoticeClose:f,onAllNoticeRemoved:b,stack:u});return d?d(o,{prefixCls:n,key:e}):o})),o)});const $l=yl,Cl=()=>document.body;let xl=0;function wl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getContainer:t=Cl,motion:n,prefixCls:o,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u,...d}=e,[p,m]=r.useState(),f=r.useRef(),h=r.createElement($l,{container:p,ref:f,prefixCls:o,motion:n,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),[g,b]=r.useState([]),v=A(e=>{const t=function(){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=>{const r=t[n];void 0!==r&&(e[n]=r)})}),e}(d,e);null!==t.key&&void 0!==t.key||(t.key=`rc-notification-${xl}`,xl+=1),b(e=>[...e,{type:"open",config:t}])}),y=r.useMemo(()=>({open:v,close:e=>{b(t=>[...t,{type:"close",key:e}])},destroy:()=>{b(e=>[...e,{type:"destroy"}])}}),[]);return r.useEffect(()=>{m(t())}),r.useEffect(()=>{if(f.current&&g.length){let e,t;g.forEach(e=>{switch(e.type){case"open":f.current.open(e.config);break;case"close":f.current.close(e.key);break;case"destroy":f.current.destroy()}}),b(n=>(e===n&&t||(e=n,t=n.filter(e=>!g.includes(e))),t))}},[g]),[y,h]}const Sl={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"};function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},El.apply(this,arguments)}const kl=r.forwardRef((e,t)=>r.createElement(si,El({},e,{ref:t,icon:Sl})));function Nl(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}const Il=(e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t;function Ml(e,t){return Il(e,e,t)}const Pl=r.createContext(void 0),Rl=100,Ol=1e3,zl={Modal:Rl,Drawer:Rl,Popover:Rl,Popconfirm:Rl,Tooltip:Rl,Tour:Rl,FloatButton:Rl},Al={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Tl=(e,t)=>{const[,n]=Ao(),o=r.useContext(Pl),i=(e=>e in zl)(e);let a;if(void 0!==t)a=[t,t];else{let r=o??0;r+=i?(o?0:n.zIndexPopupBase)+zl[e]:Al[e],a=[void 0===o?t:r,r]}return a},Bl=To("Message",e=>(e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:m,borderRadiusLG:f,zIndexPopup:h,contentPadding:g,contentBg:b}=e,v=`${t}-notice`,y=new Bn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),$=new Bn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:m,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${v}-content`]:{display:"inline-block",padding:g,background:b,borderRadius:f,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:s}};return[{[t]:{...br(e),color:o,position:"fixed",top:p,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:$,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${v}-wrapper`]:{...C}}},{[`${t}-notice-pure-panel`]:{...C,padding:0,textAlign:"start"}}]})(ir(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+Ol+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),Hl={info:r.createElement(xi,null),success:r.createElement(ui,null),error:r.createElement(mi,null),warning:r.createElement(yi,null),loading:r.createElement(kl,null)},Dl=e=>{const{prefixCls:t,type:n,icon:o,children:i,classNames:a,styles:l}=e,s=Ml(o||n&&Hl[n],e=>{const t={...e?.style,...l?.icon};return{className:re(e.className,a?.icon),style:t}});return r.createElement("div",{className:re(`${t}-custom-content`,`${t}-${n}`)},s,r.createElement("span",{className:a?.content,style:l?.content},i))},Ll=e=>{const{prefixCls:t,className:n,style:o,type:i,icon:a,content:l,classNames:s,styles:c,...u}=e,{getPrefixCls:d,className:p,style:m,classNames:f,styles:h}=xe("message"),g=t||d("message"),b=Ka(g),[v,y]=Bl(g,b),[$,C]=Ca([f,s],[h,c],{props:e});return r.createElement(ml,{...u,prefixCls:g,className:re(p,$.root,n,v,`${g}-notice-pure-panel`,y,b),style:{...C.root,...m,...o},eventKey:"pure",duration:null,content:r.createElement(Dl,{prefixCls:g,type:i,icon:a,classNames:$,styles:C},l)})};function jl(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}const Fl=3,Wl=e=>{let{children:t,prefixCls:n}=e;const o=Ka(n),[i,a]=Bl(n,o);return r.createElement(hl,{classNames:{list:re(i,a,o)}},t)},_l=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(Wl,{prefixCls:n,key:o},e)},Vl=r.forwardRef((e,t)=>{const{top:n,prefixCls:o,getContainer:i,maxCount:a,duration:l=Fl,rtl:s,transitionName:c,onAllRemoved:u,pauseOnHover:d=!0}=e,{getPrefixCls:p,direction:m,getPopupContainer:f}=xe("message"),{message:h}=r.useContext(ye),g=o||p("message"),[b,v]=Ca([e?.classNames,h?.classNames],[e?.styles,h?.styles],{props:e}),[y,$]=wl({prefixCls:g,style:()=>({left:"50%",transform:"translateX(-50%)",top:n??8}),className:()=>re({[`${g}-rtl`]:s??"rtl"===m}),motion:()=>function(e,t){return{motionName:t??`${e}-move-up`}}(g,c),closable:!1,duration:l,getContainer:()=>i?.()||f?.()||document.body,maxCount:a,onAllRemoved:u,renderNotifications:_l,pauseOnHover:d});return r.useImperativeHandle(t,()=>({...y,prefixCls:g,message:h,classNames:b,styles:v})),$});let Xl=0;function Kl(e){const t=r.useRef(null),n=(ll("Message"),r.useMemo(()=>{const n=e=>{t.current?.close(e)},o=o=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:i,prefixCls:a,message:l,classNames:s,styles:c}=t.current,u=l?.className||{},d=l?.style||{},p=l?.classNames||{},m=l?.styles||{},f=`${a}-notice`,{content:h,icon:g,type:b,key:v,className:y,style:$,onClose:C,classNames:x={},styles:w={},...S}=o;let E=v;xa(E)||(Xl+=1,E=`antd-message-${Xl}`);const k={...e,...o},N=$a(p,{props:k}),I=$a(x,{props:k}),M=$a(m,{props:k}),P=$a(w,{props:k}),R=ha(void 0,N,I,s),O=ba(M,P,c);return jl(e=>(i({...S,key:E,content:r.createElement(Dl,{prefixCls:a,type:b,icon:g,classNames:R,styles:O},h),placement:"top",className:re({[`${f}-${b}`]:b},y,u,R.root),style:{...O.root,...d,...$},onClose:()=>{C?.(),e()}}),()=>{n(E)}))},i={open:o,destroy:e=>{void 0!==e?n(e):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{i[e]=(t,n,r)=>{let i,a,l;i=t&&"object"===typeof t&&"content"in t?t:{content:t},"function"===typeof n?l=n:(a=n,l=r);const s={onClose:l,duration:a,...i,type:e};return o(s)}}),i},[]));return[n,r.createElement(Vl,{key:"message-holder",...e,ref:t})]}function ql(e){return Kl(e)}var Gl=n(65457);const Yl="__rc_react_root__";function Ul(e,t){const n=t[Yl]||(0,Gl.createRoot)(t);n.render(e),t[Yl]=n}async function Ql(e){return Promise.resolve().then(()=>{e[Yl]?.unmount(),delete e[Yl]})}const Zl=(0,r.createContext)(void 0),Jl={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"};function es(e){return es="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},es(e)}function ts(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 ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(n),!0).forEach(function(t){rs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rs(e,t,n){return t=function(e){var t=function(e,t){if("object"!=es(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=es(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==es(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const os={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},is={lang:{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"],...ns(ns({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",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"})},timePickerLocale:{...os}},as=is,ls="${label} is not a valid ${type}",ss={locale:"en",Pagination:Jl,DatePicker:is,TimePicker:os,Calendar:as,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},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:ls,method:ls,array:ls,object:ls,number:ls,date:ls,boolean:ls,integer:ls,float:ls,regexp:ls,email:ls,url:ls,hex:ls},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}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let cs={...ss.Modal},us=[];const ds=()=>us.reduce((e,t)=>({...e,...t}),ss.Modal);function ps(){return cs}const ms=(0,r.createContext)(void 0);const fs=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;r.useEffect(()=>{const e=function(e){if(e){const t={...e};return us.push(t),cs=ds(),()=>{us=us.filter(e=>e!==t),cs=ds()}}cs={...ss.Modal}}(t?.Modal);return e},[t]);const i=r.useMemo(()=>({...t,exist:!0}),[t]);return r.createElement(ms.Provider,{value:i},n)},hs=r.createContext(null);let gs=!1;const bs=[];let vs;function ys(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;let o,i;if(r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll",e){const n=getComputedStyle(e);r.scrollbarColor=n.scrollbarColor,r.scrollbarWidth=n.scrollbarWidth;const a=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(a.width,10),s=parseInt(a.height,10);try{const e=l?`width: ${a.width};`:"";Le(`\n#${t}::-webkit-scrollbar {\n${e}\n${s?`height: ${a.height};`:""}\n}`,t)}catch(Ha){console.error(Ha),o=l,i=s}}document.body.appendChild(n);const a=e&&o&&!Number.isNaN(o)?o:n.offsetWidth-n.clientWidth,l=e&&i&&!Number.isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),De(t),{width:a,height:l}}function $s(e){return"undefined"===typeof document?0:((e||void 0===vs)&&(vs=ys()),vs.width)}function Cs(e){return"undefined"!==typeof document&&e&&e instanceof Element?ys(e):{width:0,height:0}}const xs=`rc-util-locker-${Date.now()}`;let ws=0;function Ss(e){const t=!!e,[n]=r.useState(()=>(ws+=1,`${xs}_${ws}`));L(()=>{if(t){const e=Cs(document.body).width;Le(`\nhtml body {\n overflow-y: hidden;\n ${document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?`width: calc(100% - ${e}px);`:""}\n}`,n)}else De(n);return()=>{De(n)}},[t,n])}let Es=0;function ks(e,t){return`${e}-${String(t).replace(/[^a-zA-Z0-9_.:-]/g,"-")}`}const Ns={...o}.useId,Is=Ns?function(e){const t=Ns();return e||t}:function(e){const[t,n]=r.useState("ssr-id");return r.useEffect(()=>{const e=Es;Es+=1,n(`rc_unique_${e}`)},[]),e||t};let Ms=[];let Ps=0;const Rs=e=>{if("Escape"===e.key&&!e.isComposing){if(Date.now()-Ps<200)return;const t=Ms.length;for(let n=t-1;n>=0;n-=1)Ms[n].onEsc({top:n===t-1,event:e})}},Os=()=>{Ps=Date.now()};function zs(e,t){const n=Is(),o=A(t),i=()=>{Ms.find(e=>e.id===n)||Ms.push({id:n,onEsc:o})},a=()=>{Ms=Ms.filter(e=>e.id!==n)};(0,r.useMemo)(()=>{e?i():e||a()},[e]),(0,r.useEffect)(()=>{if(e)return i(),window.addEventListener("keydown",Rs),window.addEventListener("compositionend",Os),()=>{a(),0===Ms.length&&(window.removeEventListener("keydown",Rs),window.removeEventListener("compositionend",Os))}},[e])}const As=e=>!1!==e&&(T()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null),Ts=r.forwardRef((e,t)=>{const{open:n,autoLock:o,getContainer:i,debug:a,autoDestroy:l=!0,children:s,onEsc:c}=e,[u,d]=r.useState(n),p=u||n;r.useEffect(()=>{(l||n)&&d(n)},[n,l]);const[m,f]=r.useState(()=>As(i));r.useEffect(()=>{const e=As(i);f(()=>e??null)});const[h,g]=function(e){const[t]=r.useState(()=>T()?document.createElement("div"):null),n=r.useRef(!1),o=r.useContext(hs),[i,a]=r.useState(bs),l=o||(n.current?void 0:e=>{a(t=>[e,...t])});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function c(){t.parentElement?.removeChild(t),n.current=!1}return L(()=>(e?o?o(s):s():c(),c),[e]),L(()=>{i.length&&(i.forEach(e=>e()),a(bs))},[i]),[t,l]}(p&&!m),b=m??h;Ss(o&&n&&T()&&(b===h||b===document.body)),zs(n,c);let v=null;s&&E(s)&&t&&(v=I(s));const y=S(v,t);if(!p||!T()||void 0===m)return null;const $=!1===b||("boolean"===typeof C&&(gs=C),gs);var C;let x=s;return t&&(x=r.cloneElement(s,{ref:y})),r.createElement(hs.Provider,{value:g},$?x:(0,sl.createPortal)(x,b))});const Bs=Ts;function Hs(e){const{prefixCls:t,align:n,arrow:o,arrowPos:i}=e,{className:a,content:l,style:s}=o||{},{x:c=0,y:u=0}=i,d=r.useRef(null);if(!n||!n.points)return null;const p={position:"absolute"};if(!1!==n.autoArrow){const e=n.points[0],t=n.points[1],r=e[0],o=e[1],i=t[0],a=t[1];r!==i&&["t","b"].includes(r)?"t"===r?p.top=0:p.bottom=0:p.top=u,o!==a&&["l","r"].includes(o)?"l"===o?p.left=0:p.right=0:p.left=c}return r.createElement("div",{ref:d,className:re(`${t}-arrow`,a),style:{...p,...s}},l)}function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ds.apply(this,arguments)}function Ls(e){const{prefixCls:t,open:n,zIndex:o,mask:i,motion:a,mobile:l}=e;return i?r.createElement(da,Ds({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),e=>{let{className:n}=e;return r.createElement("div",{style:{zIndex:o},className:re(`${t}-mask`,l&&`${t}-mobile-mask`,n)})}):null}const js=r.memo(e=>{let{children:t}=e;return t},(e,t)=>t.cache);const Fs=js;function Ws(e,t,n,r,o,i,a,l){const s="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:s,bottom:s};if(!e&&(t||!n)){const{points:e}=r,t=r.dynamicInset||r._experimental?.dynamicInset,n=t&&"r"===e[0][1],u=t&&"b"===e[0][0];n?(c.right=o,c.left=s):(c.left=a,c.right=s),u?(c.bottom=i,c.top=s):(c.top=l,c.bottom=s)}return c}function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_s.apply(this,arguments)}const Vs=r.forwardRef((e,t)=>{const{onEsc:n,popup:o,className:i,prefixCls:a,style:l,target:s,onVisibleChanged:c,open:u,keepDom:d,fresh:p,onClick:m,mask:f,arrow:h,arrowPos:g,align:b,motion:v,maskMotion:y,mobile:$,forceRender:C,getPopupContainer:x,autoDestroy:S,portal:E,children:k,zIndex:N,onMouseEnter:I,onMouseLeave:M,onPointerEnter:P,onPointerDownCapture:R,ready:O,offsetX:z,offsetY:T,offsetR:B,offsetB:H,onAlign:D,onPrepare:j,onResize:F,stretch:W,targetWidth:_,targetHeight:V}=e,X="function"===typeof o?o():o,K=u||d,q=!!$,[G,Y,U]=r.useMemo(()=>$?[$.mask,$.maskMotion,$.motion]:[f,y,v],[$,f,y,v]),Q=x?.length>0,[Z,J]=r.useState(!x||!Q);L(()=>{!Z&&Q&&s&&J(!0)},[Z,Q,s]);const ee=A((e,t)=>{F?.(e,t),D()}),ne=Ws(q,O,u,b,B,H,z,T);if(!Z)return null;const oe={};return W&&(W.includes("height")&&V?oe.height=V:W.includes("minHeight")&&V&&(oe.minHeight=V),W.includes("width")&&_?oe.width=_:W.includes("minWidth")&&_&&(oe.minWidth=_)),u||(oe.pointerEvents="none"),r.createElement(E,{open:C||K,getContainer:x&&(()=>x(s)),autoDestroy:S,onEsc:n},r.createElement(Ls,{prefixCls:a,open:u,zIndex:N,mask:G,motion:Y,mobile:q}),r.createElement(te,{onResize:ee,disabled:!u},e=>r.createElement(da,_s({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:`${a}-hidden`},U,{onAppearPrepare:j,onEnterPrepare:j,visible:u,onVisibleChanged:e=>{v?.onVisibleChanged?.(e),c(e)}}),(n,o)=>{let{className:s,style:c}=n;const d=re(a,s,i,{[`${a}-mobile`]:q});return r.createElement("div",{ref:w(e,t,o),className:d,style:{"--arrow-x":`${g.x||0}px`,"--arrow-y":`${g.y||0}px`,...ne,...oe,...c,boxSizing:"border-box",zIndex:N,...l},onMouseEnter:I,onMouseLeave:M,onPointerEnter:P,onClick:m,onPointerDownCapture:R},h&&r.createElement(Hs,{prefixCls:a,arrow:h,arrowPos:g,align:b}),r.createElement(Fs,{cache:!u&&!p},X))})),k)});const Xs=Vs,Ks=r.createContext(null),qs=r.createContext(null);function Gs(e){return e?Array.isArray(e)?e:[e]:[]}const Ys=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1};function Us(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(e,t)=>e[t]||"";return(arguments.length>2?arguments[2]:void 0)?n(e,0)===n(t,0):n(e,0)===n(t,0)&&n(e,1)===n(t,1)}function Qs(e,t,n,r){const{points:o}=n,i=Object.keys(e);for(let a=0;a<i.length;a+=1){const n=i[a];if(Us(e[n]?.points,o,r))return`${t}-placement-${n}`}return""}function Zs(e){return e.ownerDocument.defaultView}function Js(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:e,overflowY:o,overflow:i}=Zs(n).getComputedStyle(n);[e,o,i].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function ec(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function tc(e){return ec(parseFloat(e),0)}function nc(e,t){const n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;const{overflow:t,overflowClipMargin:r,borderTopWidth:o,borderBottomWidth:i,borderLeftWidth:a,borderRightWidth:l}=Zs(e).getComputedStyle(e),s=e.getBoundingClientRect(),{offsetHeight:c,clientHeight:u,offsetWidth:d,clientWidth:p}=e,m=tc(o),f=tc(i),h=tc(a),g=tc(l),b=ec(Math.round(s.width/d*1e3)/1e3),v=ec(Math.round(s.height/c*1e3)/1e3),y=(d-p-h-g)*b,$=(c-u-m-f)*v,C=m*v,x=f*v,w=h*b,S=g*b;let E=0,k=0;if("clip"===t){const e=tc(r);E=e*b,k=e*v}const N=s.x+w-E,I=s.y+C-k,M=N+s.width+2*E-w-S-y,P=I+s.height+2*k-C-x-$;n.left=Math.max(n.left,N),n.top=Math.max(n.top,I),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,P)}),n}function rc(e){const t=`${arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}`,n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function oc(e,t){const[n,r]=t||[];return[rc(e.width,n),rc(e.height,r)]}function ic(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function ac(e,t){const n=t[0],r=t[1];let o,i;return i="t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2,o="l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,{x:o,y:i}}function lc(e,t){const n=[...e];return n[t]={t:"b",b:"t",l:"r",r:"l"}[e[t]]||"c",n}function sc(e){return e.join("")}function cc(e,t,n,o,i,a,l,s){const[c,u]=r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),d=r.useRef(0),p=r.useMemo(()=>!t||s?[]:Js(t),[t]),m=r.useRef({});e||(m.current={});const f=A(()=>{if(t&&n&&e&&!s){const r=t,c=r.ownerDocument,d=Zs(r),{position:f}=d.getComputedStyle(r),h=r.style.left,g=r.style.top,v=r.style.right,y=r.style.bottom,$=r.style.overflow,C={...i[o],...a},x=c.createElement("div");let w;if(r.parentElement?.appendChild(x),x.style.left=`${r.offsetLeft}px`,x.style.top=`${r.offsetTop}px`,x.style.position=f,x.style.height=`${r.offsetHeight}px`,x.style.width=`${r.offsetWidth}px`,r.style.left="0",r.style.top="0",r.style.right="auto",r.style.bottom="auto",r.style.overflow="hidden",Array.isArray(n))w={x:n[0],y:n[1],width:0,height:0};else{const Ge=n.getBoundingClientRect();Ge.x=Ge.x??Ge.left,Ge.y=Ge.y??Ge.top,w={x:Ge.x,y:Ge.y,width:Ge.width,height:Ge.height}}const S=r.getBoundingClientRect(),{height:E,width:k}=d.getComputedStyle(r);S.x=S.x??S.left,S.y=S.y??S.top;const{clientWidth:N,clientHeight:I,scrollWidth:M,scrollHeight:P,scrollTop:R,scrollLeft:O}=c.documentElement,z=S.height,A=S.width,T=w.height,B=w.width,H={left:0,top:0,right:N,bottom:I},D={left:-O,top:-R,right:M-O,bottom:P-R};let{htmlRegion:L}=C;const j="visible",F="visibleFirst";"scroll"!==L&&L!==F&&(L=j);const W=L===F,_=nc(D,p),V=nc(H,p),X=L===j?V:_,K=W?V:X;r.style.left="auto",r.style.top="auto",r.style.right="0",r.style.bottom="0";const q=r.getBoundingClientRect();r.style.left=h,r.style.top=g,r.style.right=v,r.style.bottom=y,r.style.overflow=$,r.parentElement?.removeChild(x);const G=ec(Math.round(A/parseFloat(k)*1e3)/1e3),Y=ec(Math.round(z/parseFloat(E)*1e3)/1e3);if(0===G||0===Y||b(n)&&!Ys(n))return;const{offset:U,targetOffset:Q}=C;let[Z,J]=oc(S,U);const[ee,te]=oc(w,Q);w.x-=ee,w.y-=te;const[ne,re]=C.points||[],oe=ic(re),ie=ic(ne),ae=ac(w,oe),le=ac(S,ie),se={...C};let ce=[ie,oe],ue=ae.x-le.x+Z,de=ae.y-le.y+J;function pe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:X;const r=S.x+e,o=S.y+t,i=r+A,a=o+z,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-l)*(u-s))}const me=pe(ue,de),fe=pe(ue,de,V),he=ac(w,["t","l"]),ge=ac(S,["t","l"]),be=ac(w,["b","r"]),ve=ac(S,["b","r"]),ye=C.overflow||{},{adjustX:$e,adjustY:Ce,shiftX:xe,shiftY:we}=ye,Se=e=>"boolean"===typeof e?e:e>=0;let Ee,ke,Ne,Ie;function Me(){Ee=S.y+de,ke=Ee+z,Ne=S.x+ue,Ie=Ne+A}Me();const Pe=Se(Ce),Re=ie[0]===oe[0];if(Pe&&"t"===ie[0]&&(ke>K.bottom||m.current.bt)){let Ye=de;Re?Ye-=z-T:Ye=he.y-ve.y-J;const Ue=pe(ue,Ye),Qe=pe(ue,Ye,V);Ue>me||Ue===me&&(!W||Qe>=fe)?(m.current.bt=!0,de=Ye,J=-J,ce=[lc(ce[0],0),lc(ce[1],0)]):m.current.bt=!1}if(Pe&&"b"===ie[0]&&(Ee<K.top||m.current.tb)){let Ze=de;Re?Ze+=z-T:Ze=be.y-ge.y-J;const Je=pe(ue,Ze),et=pe(ue,Ze,V);Je>me||Je===me&&(!W||et>=fe)?(m.current.tb=!0,de=Ze,J=-J,ce=[lc(ce[0],0),lc(ce[1],0)]):m.current.tb=!1}const Oe=Se($e),ze=ie[1]===oe[1];if(Oe&&"l"===ie[1]&&(Ie>K.right||m.current.rl)){let tt=ue;ze?tt-=A-B:tt=he.x-ve.x-Z;const nt=pe(tt,de),rt=pe(tt,de,V);nt>me||nt===me&&(!W||rt>=fe)?(m.current.rl=!0,ue=tt,Z=-Z,ce=[lc(ce[0],1),lc(ce[1],1)]):m.current.rl=!1}if(Oe&&"r"===ie[1]&&(Ne<K.left||m.current.lr)){let ot=ue;ze?ot+=A-B:ot=be.x-ge.x-Z;const it=pe(ot,de),at=pe(ot,de,V);it>me||it===me&&(!W||at>=fe)?(m.current.lr=!0,ue=ot,Z=-Z,ce=[lc(ce[0],1),lc(ce[1],1)]):m.current.lr=!1}se.points=[sc(ce[0]),sc(ce[1])],Me();const Ae=!0===xe?0:xe;"number"===typeof Ae&&(Ne<V.left&&(ue-=Ne-V.left-Z,w.x+B<V.left+Ae&&(ue+=w.x-V.left+B-Ae)),Ie>V.right&&(ue-=Ie-V.right-Z,w.x>V.right-Ae&&(ue+=w.x-V.right+Ae)));const Te=!0===we?0:we;"number"===typeof Te&&(Ee<V.top&&(de-=Ee-V.top-J,w.y+T<V.top+Te&&(de+=w.y-V.top+T-Te)),ke>V.bottom&&(de-=ke-V.bottom-J,w.y>V.bottom-Te&&(de+=w.y-V.bottom+Te)));const Be=S.x+ue,He=Be+A,De=S.y+de,Le=De+z,je=w.x,Fe=je+B,We=w.y,_e=We+T,Ve=(Math.max(Be,je)+Math.min(He,Fe))/2-Be,Xe=(Math.max(De,We)+Math.min(Le,_e))/2-De;l?.(t,se);let Ke=q.right-S.x-(ue+S.width),qe=q.bottom-S.y-(de+S.height);1===G&&(ue=Math.floor(ue),Ke=Math.floor(Ke)),1===Y&&(de=Math.floor(de),qe=Math.floor(qe));u({ready:!0,offsetX:ue/G,offsetY:de/Y,offsetR:Ke/G,offsetB:qe/Y,arrowX:Ve/G,arrowY:Xe/Y,scaleX:G,scaleY:Y,align:se})}}),h=()=>{u(e=>({...e,ready:!1}))};return L(h,[o]),L(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,()=>{d.current+=1;const e=d.current;Promise.resolve().then(()=>{d.current===e&&f()})}]}function uc(){const e=r.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return r.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),0===r?n():e.current=setTimeout(()=>{n()},1e3*r)}}function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dc.apply(this,arguments)}const pc=e=>{const{prefixCls:t,isMobile:n,ready:o,open:i,align:a,offsetR:l,offsetB:s,offsetX:c,offsetY:u,arrowPos:d,popupSize:p,motion:m,uniqueContainerClassName:f,uniqueContainerStyle:h}=e,g=`${t}-unique-container`,[b,v]=r.useState(!1),y=Ws(n,o,i,a,l,s,c,u),$=r.useRef(y);o&&($.current=y);const C={};return p&&(C.width=p.width,C.height=p.height),r.createElement(da,dc({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${g}-hidden`},m,{visible:i,onVisibleChanged:e=>{v(e)}}),e=>{let{className:t,style:n}=e;const o=re(g,t,f,{[`${g}-visible`]:b});return r.createElement("div",{className:o,style:{"--arrow-x":`${d?.x||0}px`,"--arrow-y":`${d?.y||0}px`,...$.current,...C,...n,...h}})})},mc=e=>{let{children:t,postTriggerProps:n}=e;const[o,i,a,l]=function(){const[e,t]=r.useState(null),[n,o]=r.useState(!1),[i,a]=r.useState(!1),l=r.useRef(null),s=A(e=>{!1===e?(l.current=null,o(!1)):i&&n?l.current=e:(o(!0),t(e),l.current=null,n||a(!0))}),c=A(e=>{e?(a(!1),l.current&&(t(l.current),l.current=null)):(a(!1),l.current=null)});return[s,n,e,c]}(),s=r.useMemo(()=>a&&n?n(a):a,[a,n]),[c,u]=r.useState(null),[d,p]=r.useState(null),m=r.useRef(null),f=A(e=>{m.current=e,b(e)&&c!==e&&u(e)}),h=r.useRef(null),g=uc(),v=A((e,t)=>{h.current=t,g(()=>{o(e)},e.delay)}),y=e=>{g(()=>{h.current?.()||o(!1)},e)},$=A(e=>{l(e)}),[C,x,w,S,E,k,N,,,I,M]=cc(i,c,s?.target,s?.popupPlacement,s?.builtinPlacements||{},s?.popupAlign,void 0,!1),P=r.useMemo(()=>{if(!s)return"";return re(Qs(s.builtinPlacements||{},s.prefixCls||"",I,!1),s.getPopupClassNameFromAlign?.(I))},[I,s?.getPopupClassNameFromAlign,s?.builtinPlacements,s?.prefixCls]),R=r.useMemo(()=>({show:v,hide:y}),[]);r.useEffect(()=>{M()},[s?.target]);const O=A(()=>(M(),Promise.resolve())),z=r.useRef({}),T=r.useContext(Ks),B=r.useMemo(()=>({registerSubPopup:(e,t)=>{z.current[e]=t,T?.registerSubPopup(e,t)}}),[T]),H=s?.prefixCls;return r.createElement(qs.Provider,{value:R},t,s&&r.createElement(Ks.Provider,{value:B},r.createElement(Xs,{ref:f,portal:Bs,onEsc:s.onEsc,prefixCls:H,popup:s.popup,className:re(s.popupClassName,P,`${H}-unique-controlled`),style:s.popupStyle,target:s.target,open:i,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:$,ready:C,offsetX:x,offsetY:w,offsetR:S,offsetB:E,onAlign:M,onPrepare:O,onResize:e=>p({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:k,y:N},align:I,zIndex:s.zIndex,mask:s.mask,arrow:s.arrow,motion:s.popupMotion,maskMotion:s.maskMotion,getPopupContainer:s.getPopupContainer},r.createElement(pc,{prefixCls:H,isMobile:!1,ready:C,open:i,align:I,offsetR:S,offsetB:E,offsetX:x,offsetY:w,arrowPos:{x:k,y:N},popupSize:d,motion:s.popupMotion,uniqueContainerClassName:re(s.uniqueContainerClassName,P),uniqueContainerStyle:s.uniqueContainerStyle}))))};const fc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bs;const t=r.forwardRef((t,n)=>{const{prefixCls:o="rc-trigger-popup",children:i,action:a="hover",showAction:l,hideAction:s,popupVisible:c,defaultPopupVisible:u,onOpenChange:d,afterOpenChange:p,onPopupVisibleChange:m,afterPopupVisibleChange:f,mouseEnterDelay:h,mouseLeaveDelay:g=.1,focusDelay:y,blurDelay:$,mask:C,maskClosable:x=!0,getPopupContainer:w,forceRender:E,autoDestroy:k,popup:N,popupClassName:M,uniqueContainerClassName:P,uniqueContainerStyle:R,popupStyle:O,popupPlacement:z,builtinPlacements:T={},popupAlign:B,zIndex:H,stretch:D,getPopupClassNameFromAlign:j,fresh:W,unique:_,alignPoint:V,onPopupClick:X,onPopupAlign:K,arrow:q,popupMotion:G,maskMotion:Y,mobile:Q,...Z}=t,J=k||!1,ee=void 0===c,te=!!Q,ne=r.useRef({}),oe=r.useContext(Ks),ie=r.useMemo(()=>({registerSubPopup:(e,t)=>{ne.current[e]=t,oe?.registerSubPopup(e,t)}}),[oe]),ae=r.useContext(qs),le=Is(),[se,ce]=r.useState(null),ue=r.useRef(null),de=A(e=>{ue.current=e,b(e)&&se!==e&&ce(e),oe?.registerSubPopup(le,e)}),[pe,me]=r.useState(null),fe=r.useRef(null),he=A(e=>{const t=v(e);b(t)&&pe!==t&&(me(t),fe.current=t)}),ge={},be=A(e=>{const t=pe;return t?.contains(e)||Uo(t)?.host===e||e===t||se?.contains(e)||Uo(se)?.host===e||e===se||Object.values(ne.current).some(t=>t?.contains(e)||e===t)}),ve=q?{...!0!==q?q:{}}:null,[ye,$e]=F(u||!1,c),Ce=ye||!1,xe=r.useMemo(()=>{const e="function"===typeof i?i({open:Ce}):i;return r.Children.only(e)},[i,Ce]),we=xe?.props||{},Se=A(()=>Ce),Ee=A(function(){return{popup:N,target:pe,delay:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,prefixCls:o,popupClassName:M,uniqueContainerClassName:P,uniqueContainerStyle:R,popupStyle:O,popupPlacement:z,builtinPlacements:T,popupAlign:B,zIndex:H,mask:C,maskClosable:x,popupMotion:G,maskMotion:Y,arrow:ve,getPopupContainer:w,getPopupClassNameFromAlign:j,id:le,onEsc:Pe}});L(()=>{ae&&_&&pe&&!ee&&!oe&&(Ce?ae.show(Ee(h),Se):ae.hide(g))},[Ce,pe]);const ke=r.useRef(Ce);ke.current=Ce;const Ne=A(e=>{(0,sl.flushSync)(()=>{Ce!==e&&($e(e),d?.(e),m?.(e))})}),Ie=uc(),Me=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;void 0===c&&ae&&_&&ee&&!oe?e?ae.show(Ee(t),Se):ae.hide(t):Ie(()=>{Ne(e)},t)};function Pe(e){let{top:t}=e;t&&Me(!1)}const[Re,Oe]=r.useState(!1);L(e=>{e&&!Ce||Oe(!0)},[Ce]);const[ze,Ae]=r.useState(null),[Te,Be]=r.useState(null),He=e=>{Be([e.clientX,e.clientY])},[De,Le,je,Fe,We,_e,Ve,Xe,Ke,qe,Ge]=cc(Ce,se,V&&null!==Te?Te:pe,z,T,B,K,te),[Ye,Ue]=function(e,t,n){return r.useMemo(()=>{const r=Gs(t??e),o=Gs(n??e),i=new Set(r),a=new Set(o);return i.has("hover")&&!i.has("click")&&i.add("touch"),a.has("hover")&&!a.has("click")&&a.add("touch"),[i,a]},[e,t,n])}(a,l,s),Qe=Ye.has("click"),Ze=Ue.has("click")||Ue.has("contextMenu"),Je=A(()=>{Re||Ge()});!function(e,t,n,r,o){L(()=>{if(e&&t&&n){const i=n,a=Js(t),l=Js(i),s=Zs(i),c=new Set([s,...a,...l]);function u(){r(),o()}return c.forEach(e=>{e.addEventListener("scroll",u,{passive:!0})}),s.addEventListener("resize",u,{passive:!0}),r(),()=>{c.forEach(e=>{e.removeEventListener("scroll",u),s.removeEventListener("resize",u)})}}},[e,t,n])}(Ce,pe,se,Je,()=>{ke.current&&V&&Ze&&Me(!1)}),L(()=>{Je()},[Te,z]),L(()=>{Ce&&!T?.[z]&&Je()},[JSON.stringify(B)]);const et=r.useMemo(()=>re(Qs(T,o,qe,V),j?.(qe)),[qe,j,T,o,V]);r.useImperativeHandle(n,()=>({nativeElement:fe.current,popupElement:ue.current,forceAlign:Je}));const[tt,nt]=r.useState(0),[rt,ot]=r.useState(0),it=()=>{if(D&&pe){const e=pe.getBoundingClientRect();nt(e.width),ot(e.height)}};function at(e,t,n,r,o){ge[e]=function(i){o&&o()||(r?.(i),Me(t,n));for(var a=arguments.length,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];we[e]?.(i,...l)}}L(()=>{ze&&(Ge(),ze(),Ae(null))},[ze]);const lt=Ye.has("touch"),st=Ue.has("touch"),ct=r.useRef(!1);(lt||st)&&(ge.onTouchStart=function(){ct.current=!0,ke.current&&st?Me(!1):!ke.current&<&&Me(!0);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];we.onTouchStart?.(...t)}),(Qe||Ze)&&(ge.onClick=function(e){ke.current&&Ze?Me(!1):!ke.current&&Qe&&(He(e),Me(!0));for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];we.onClick?.(e,...n),ct.current=!1});const ut=function(e,t,n,o,i,a,l,s){const c=r.useRef(e);c.current=e;const u=r.useRef(!1);return r.useEffect(()=>{if(t&&o&&(!i||a)){const e=()=>{u.current=!1},t=e=>{!c.current||l(e.composedPath?.()?.[0]||e.target)||u.current||s(!1)},r=Zs(o);r.addEventListener("pointerdown",e,!0),r.addEventListener("mousedown",t,!0),r.addEventListener("contextmenu",t,!0);const i=Uo(n);return i&&(i.addEventListener("mousedown",t,!0),i.addEventListener("contextmenu",t,!0)),()=>{r.removeEventListener("pointerdown",e,!0),r.removeEventListener("mousedown",t,!0),r.removeEventListener("contextmenu",t,!0),i&&(i.removeEventListener("mousedown",t,!0),i.removeEventListener("contextmenu",t,!0))}}},[t,n,o,i,a]),function(){u.current=!0}}(Ce,Ze||st,pe,se,C,x,be,Me),dt=Ye.has("hover"),pt=Ue.has("hover");let mt,ft;const ht=()=>ct.current;if(dt){const e=e=>{He(e)};at("onMouseEnter",!0,h,e,ht),at("onPointerEnter",!0,h,e,ht),mt=e=>{(Ce||Re)&&se?.contains(e.target)&&Me(!0,h)},V&&(ge.onMouseMove=e=>{we.onMouseMove?.(e)})}pt&&(at("onMouseLeave",!1,g,void 0,ht),at("onPointerLeave",!1,g,void 0,ht),ft=()=>{Me(!1,g)}),Ye.has("focus")&&at("onFocus",!0,y),Ue.has("focus")&&at("onBlur",!1,$),Ye.has("contextMenu")&&(ge.onContextMenu=function(e){ke.current&&Ue.has("contextMenu")?Me(!1):(He(e),Me(!0)),e.preventDefault();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];we.onContextMenu?.(e,...n)});const gt=r.useRef(!1);gt.current||=E||Ce||Re;const bt={...we,...ge},vt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(e=>{Z[e]&&(vt[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];bt[e]?.(...n),Z[e](...n)})});const yt={x:_e,y:Ve};U(Ce,pe,()=>{it(),Je()});const $t=S(he,I(xe)),Ct=r.cloneElement(xe,{...bt,...vt,ref:$t});return r.createElement(r.Fragment,null,Ct,gt.current&&(!ae||!_)&&r.createElement(Ks.Provider,{value:ie},r.createElement(Xs,{portal:e,ref:de,prefixCls:o,popup:N,className:re(M,!te&&et),style:O,target:pe,onMouseEnter:mt,onMouseLeave:ft,onPointerEnter:mt,zIndex:H,open:Ce,keepDom:Re,fresh:W,onClick:X,onPointerDownCapture:ut,mask:C,motion:G,maskMotion:Y,onVisibleChanged:e=>{Oe(!1),Ge(),p?.(e),f?.(e)},onPrepare:()=>new Promise(e=>{it(),Ae(()=>e)}),forceRender:E,autoDestroy:J,getPopupContainer:w,onEsc:Pe,align:qe,arrow:ve,arrowPos:yt,ready:De,offsetX:Le,offsetY:je,offsetR:Fe,offsetB:We,onAlign:Je,stretch:D,targetWidth:tt/Xe,targetHeight:rt/Ke,mobile:Q})))});return t}(Bs),hc=e=>{let{children:t}=e;const{getPrefixCls:n}=r.useContext(ye),o=n();return r.isValidElement(t)?r.createElement(da,{visible:!0,motionName:`${o}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},e=>{let{style:n,className:r}=e;return Ml(t,e=>({className:re(e.className,r),style:{...e.style,...n}}))}):t},gc=[null,null];const bc=e=>{let{children:t}=e;return r.createElement(mc,{postTriggerProps:e=>{const{id:t,builtinPlacements:n,popup:o}=e,i="function"===typeof o?o():o,a=function(e){if(gc[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),gc[0]=e,gc[1]=t}return gc[1]}(n);return{...e,getPopupContainer:null,arrow:!1,popup:r.createElement(hc,{key:t},i),builtinPlacements:a}}},t)},vc=r.createContext(!1),yc=e=>{let{children:t,disabled:n}=e;const o=r.useContext(vc);return r.createElement(vc.Provider,{value:n??o},t)},$c=vc,Cc=r.createContext(void 0),xc=e=>{let{children:t,size:n}=e;const o=r.useContext(Cc);return r.createElement(Cc.Provider,{value:n||o},t)},wc=Cc;const Sc=function(){return{componentDisabled:(0,r.useContext)($c),componentSize:(0,r.useContext)(wc)}};const Ec=r.createContext(!0);function kc(e){const t=r.useContext(Ec),{children:n}=e,[,o]=Ao(),{motion:i}=o,a=r.useRef(!1);return a.current||(a.current=t!==i),a.current?r.createElement(Ec.Provider,{value:i},r.createElement(Si,{motion:i},n)):n}r.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return ll("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});const Nc=()=>null,Ic=(e,t)=>{const[n,r]=Ao();return zn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>$r(e))},Mc=e=>{let{iconPrefixCls:t,csp:n}=e;return Ic(t,n),null};const Pc=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Rc,Oc,zc,Ac;function Tc(){return Rc||ge}function Bc(){return Oc||be}const Hc=()=>({getPrefixCls:(e,t)=>t||(e?`${Tc()}-${e}`:Tc()),getIconPrefixCls:Bc,getRootPrefixCls:()=>Rc||Tc(),getTheme:()=>zc,holderRender:Ac}),Dc=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:i,affix:a,anchor:l,app:s,form:c,locale:u,componentSize:d,direction:p,space:m,splitter:f,virtual:h,dropdownMatchSelectWidth:g,popupMatchSelectWidth:b,popupOverflow:v,legacyLocale:y,parentContext:C,iconPrefixCls:x,theme:w,componentDisabled:S,segmented:E,statistic:k,spin:N,calendar:I,carousel:M,cascader:P,collapse:R,typography:O,checkbox:z,descriptions:A,divider:T,drawer:B,skeleton:H,steps:D,image:L,layout:j,list:F,mentions:W,modal:_,progress:V,result:X,slider:K,breadcrumb:q,masonry:Y,menu:U,pagination:Q,input:Z,textArea:J,otp:ee,empty:te,badge:ne,radio:re,rate:oe,ribbon:ie,switch:ae,transfer:le,avatar:se,message:ce,tag:ue,table:de,card:pe,cardMeta:me,tabs:fe,timeline:he,timePicker:ge,upload:ve,notification:$e,tree:Ce,colorPicker:xe,datePicker:we,rangePicker:Se,flex:Ee,wave:ke,dropdown:Ne,warning:Ie,tour:Me,tooltip:Pe,popover:Re,popconfirm:Oe,qrcode:ze,floatButton:Ae,floatButtonGroup:Te,variant:Be,inputNumber:He,treeSelect:De,watermark:Le}=e,Fe=r.useCallback((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||C.getPrefixCls("");return t?`${o}-${t}`:o},[C.getPrefixCls,e.prefixCls]),We=x||C.iconPrefixCls||be,_e=n||C.csp,Ve=function(e,t,n){ll("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:{...Er,hashed:t?.hashed??Er.hashed,cssVar:t?.cssVar},a=(0,r.useId)();return $(()=>{if(!e)return t;const r={...i.components};Object.keys(e.components||{}).forEach(t=>{r[t]={...r[t],...e.components[t]}});const l=`css-var-${a.replace(/:/g,"")}`,s={prefix:n?.prefixCls,...i.cssVar,...o.cssVar,key:o.cssVar?.key||l};return{...i,...o,token:{...i.token,...o.token},components:r,cssVar:s}},[o,i],(e,t)=>e.some((e,n)=>{const r=t[n];return!je(e,r,!0)}))}(w,C.theme,{prefixCls:Fe("")});const Xe={csp:_e,autoInsertSpaceInButton:o,alert:i,affix:a,anchor:l,app:s,locale:u||y,direction:p,space:m,splitter:f,virtual:h,popupMatchSelectWidth:b??g,popupOverflow:v,getPrefixCls:Fe,iconPrefixCls:We,theme:Ve,segmented:E,statistic:k,spin:N,calendar:I,carousel:M,cascader:P,collapse:R,typography:O,checkbox:z,descriptions:A,divider:T,drawer:B,skeleton:H,steps:D,image:L,input:Z,textArea:J,otp:ee,layout:j,list:F,mentions:W,modal:_,progress:V,result:X,slider:K,breadcrumb:q,masonry:Y,menu:U,pagination:Q,empty:te,badge:ne,radio:re,rate:oe,ribbon:ie,switch:ae,transfer:le,avatar:se,message:ce,tag:ue,table:de,card:pe,cardMeta:me,tabs:fe,timeline:he,timePicker:ge,upload:ve,notification:$e,tree:Ce,colorPicker:xe,datePicker:we,rangePicker:Se,flex:Ee,wave:ke,dropdown:Ne,warning:Ie,tour:Me,tooltip:Pe,popover:Re,popconfirm:Oe,qrcode:ze,floatButton:Ae,floatButtonGroup:Te,variant:Be,inputNumber:He,treeSelect:De,watermark:Le};const Ke={...C};Object.keys(Xe).forEach(e=>{void 0!==Xe[e]&&(Ke[e]=Xe[e])}),Pc.forEach(t=>{const n=e[t];n&&(Ke[t]=n)}),"undefined"!==typeof o&&(Ke.button={autoInsertSpace:o,...Ke.button});const qe=$(()=>Ke,Ke,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:Ge}=r.useContext(Ye),Ue=r.useMemo(()=>({prefixCls:We,csp:_e,layer:Ge?"antd":void 0}),[We,_e,Ge]);let Qe=r.createElement(r.Fragment,null,r.createElement(Mc,{iconPrefixCls:We,csp:_e}),r.createElement(Nc,{dropdownMatchSelectWidth:g}),t);const Ze=r.useMemo(()=>G(ss.Form?.defaultValidateMessages||{},qe.locale?.Form?.defaultValidateMessages||{},qe.form?.validateMessages||{},c?.validateMessages||{}),[qe,c?.validateMessages]);Object.keys(Ze).length>0&&(Qe=r.createElement(Zl.Provider,{value:Ze},Qe)),u&&(Qe=r.createElement(fs,{locale:u,_ANT_MARK__:"internalMark"},Qe)),(We||_e)&&(Qe=r.createElement(Go.Provider,{value:Ue},Qe)),d&&(Qe=r.createElement(xc,{size:d},Qe)),Qe=r.createElement(kc,null,Qe),Pe?.unique&&(Qe=r.createElement(bc,null,Qe));const Je=r.useMemo(()=>{const{algorithm:e,token:t,components:n,cssVar:r,...o}=Ve||{},i=e&&(!Array.isArray(e)||e.length>0)?tt(e):ko,a={};Object.entries(n||{}).forEach(e=>{let[t,n]=e;const r={...n};"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"===typeof r.algorithm)&&(r.theme=tt(r.algorithm)),delete r.algorithm),a[t]=r});const l={...Sr,...t};return{...o,theme:i,token:l,components:a,override:{override:l,...a},cssVar:r}},[Ve]);return w&&(Qe=r.createElement(kr.Provider,{value:Je},Qe)),qe.warning&&(Qe=r.createElement(al.Provider,{value:qe.warning},Qe)),void 0!==S&&(Qe=r.createElement(yc,{disabled:S},Qe)),r.createElement(ye.Provider,{value:qe},Qe)},Lc=e=>{const t=r.useContext(ye),n=r.useContext(ms);return r.createElement(Dc,{parentContext:t,legacyLocale:n,...e})};Lc.ConfigContext=ye,Lc.SizeContext=wc,Lc.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Rc=t),void 0!==n&&(Oc=n),"holderRender"in e&&(Ac=o),r&&(zc=r)},Lc.useConfig=Sc,Object.defineProperty(Lc,"SizeContext",{get:()=>wc});const jc=Lc,Fc=(e,t)=>{let n={};return e&&"object"===typeof e&&(n=e),"boolean"===typeof e&&(n={enabled:e}),void 0===n.closable&&void 0!==t&&(n.closable=t),n},Wc=(e,t,n,o)=>(0,r.useMemo)(()=>{const r=Fc(e,o),i=Fc(t),a={blur:!1,...i,...r,closable:r.closable??o??i.closable??!0},l=a.blur?`${n}-mask-blur`:void 0;return[!1!==a.enabled,{mask:l},!!a.closable]},[e,t,n,o]),_c=()=>({height:0,opacity:0}),Vc=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Xc=e=>({height:e?e.offsetHeight:0}),Kc=(e,t)=>!0===t?.deadline||"height"===t.propertyName,qc=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Gc=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge}-motion-collapse`,onAppearStart:_c,onEnterStart:_c,onAppearActive:Vc,onEnterActive:Vc,onLeaveStart:Xc,onLeaveActive:_c,onAppearEnd:Kc,onEnterEnd:Kc,onLeaveEnd:Kc,motionDeadline:500}},Yc=(e,t)=>{const n=r.useContext(ms),o=r.useMemo(()=>{const r=t||ss[e],o=n?.[e]??{};return{..."function"===typeof r?r():r,...o||{}}},[e,t,n]);return[o,r.useMemo(()=>{const e=n?.locale;return n?.exist&&!e?ss.locale:e},[n])]},Uc=Bo("Wave",e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:o,motionEaseOutCirc:i,antCls:a}=e,[,l]=Do(a,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:l("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(e=>`${e} ${i}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(e=>`${e} ${r} ${o}`).join(",")}}}}}),Qc=`${ge}-wave-target`;function Zc(e){return e&&"string"===typeof e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function Jc(e){return Number.isNaN(e)?0:e}const eu=e=>{const{className:t,target:n,component:o,colorSource:i}=e,a=r.useRef(null),{getPrefixCls:l}=r.useContext(ye),s=l(),[c]=Do(s,"wave"),[u,d]=r.useState(null),[p,m]=r.useState([]),[f,h]=r.useState(0),[g,b]=r.useState(0),[v,y]=r.useState(0),[$,C]=r.useState(0),[x,S]=r.useState(!1),E={left:f,top:g,width:v,height:$,borderRadius:p.map(e=>`${e}px`).join(" ")};function k(){const e=getComputedStyle(n);d(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:i}=n;return t&&Zc(n[t])?n[t]:[r,o,i].find(Zc)??null}(n,i));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;h(t?n.offsetLeft:Jc(-Number.parseFloat(r))),b(t?n.offsetTop:Jc(-Number.parseFloat(o))),y(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;m([a,l,c,s].map(e=>Jc(Number.parseFloat(e))))}if(u&&(E[c("color")]=u),r.useEffect(()=>{if(n){const e=fe(()=>{k(),S(!0)});let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(k),t.observe(n)),()=>{fe.cancel(e),t?.disconnect()}}},[n]),!x)return null;const N=("Checkbox"===o||"Radio"===o)&&n?.classList.contains(Qc);return r.createElement(da,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||"opacity"===t.propertyName){const e=a.current?.parentElement;Ql(e).then(()=>{e?.remove()})}return!1}},(e,n)=>{let{className:o}=e;return r.createElement("div",{ref:w(a,n),className:re(t,o,{"wave-quick":N}),style:E})})},tu=(e,t)=>{const{component:n}=t;if("Checkbox"===n&&!e.querySelector("input")?.checked)return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild),Ul(r.createElement(eu,{...t,target:e}),o)},nu=(e,t,n,o)=>{const{wave:i}=r.useContext(ye),[,a,l]=Ao(),s=A(r=>{const s=e.current;if(i?.disabled||!s)return;const c=s.querySelector(`.${Qc}`)||s,{showEffect:u}=i||{};(u||tu)(c,{className:t,token:a,component:n,event:r,hashId:l,colorSource:o})}),c=r.useRef(null);r.useEffect(()=>()=>{fe.cancel(c.current)},[]);return e=>{fe.cancel(c.current),c.current=fe(()=>{s(e)})}};const ru=e=>{const{children:t,disabled:n,component:o,colorSource:i}=e,{getPrefixCls:a}=(0,r.useContext)(ye),l=(0,r.useRef)(null),s=a("wave"),c=Uc(s),u=nu(l,re(s,c),o,i);if(r.useEffect(()=>{const e=l.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;const t=t=>{!Ys(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return t??null;return Ml(t,{ref:E(t)?w(I(t),l):l})},ou=e=>{const t=r.useContext(wc);return r.useMemo(()=>e?"string"===typeof e?e??t:"function"===typeof e?e(t):t:t,[e,t])},iu=e=>"horizontal"===e||"vertical"===e,au=(e,t,n)=>(0,r.useMemo)(()=>{let r;if(iu(e))r=e;else if("boolean"===typeof t)r=t?"vertical":"horizontal";else{r=iu(n)?n:"horizontal"}return[r,"vertical"===r]},[n,e,t]),lu=To(["Space","Compact"],e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},()=>({}),{resetStyle:!1}),su=r.createContext(null),cu=(e,t)=>{const n=r.useContext(su),o=r.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return re(`${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:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:o}},uu=e=>{const{children:t}=e;return r.createElement(su.Provider,{value:null},t)},du=e=>{const{children:t,...n}=e;return r.createElement(su.Provider,{value:r.useMemo(()=>n,[n])},t)},pu=e=>{const{getPrefixCls:t,direction:n}=r.useContext(ye),{size:o,direction:i,orientation:a,block:l,prefixCls:s,className:u,rootClassName:d,children:p,vertical:m,...f}=e;const[h,g]=au(a,m,i),b=ou(e=>o??e),v=t("space-compact",s),[y]=lu(v),$=re(v,y,{[`${v}-rtl`]:"rtl"===n,[`${v}-block`]:l,[`${v}-vertical`]:g},u,d),C=r.useContext(su),x=c(p),w=r.useMemo(()=>x.map((e,t)=>{const n=e?.key||`${v}-item-${t}`;return r.createElement(du,{key:n,compactSize:b,compactDirection:h,isFirstItem:0===t&&(!C||C?.isFirstItem),isLastItem:t===x.length-1&&(!C||C?.isLastItem)},e)}),[x,C,h,b,v]);return 0===x.length?null:r.createElement("div",{className:$,...f},w)},mu=r.createContext(void 0),fu=e=>{const{getPrefixCls:t,direction:n}=r.useContext(ye),{prefixCls:o,size:i,className:a,...l}=e,s=t("btn-group",o),[,,c]=Ao(),u=r.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]);const d=re(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:"rtl"===n},a,c);return r.createElement(mu.Provider,{value:i},r.createElement("div",{...l,className:d}))},hu=/^[\u4E00-\u9FA5]{2}$/,gu=hu.test.bind(hu);function bu(e){return"danger"===e?{danger:!0}:{type:e}}function vu(e){return"string"===typeof e}function yu(e){return"text"===e||"link"===e}function $u(e,t,n,o){let i=!1;const a=[];return r.Children.forEach(e,e=>{const t=typeof e,n="string"===t||"number"===t;if(i&&n){const t=a.length-1,n=a[t];a[t]=`${n}${e}`}else a.push(e);i=n}),r.Children.map(a,e=>function(e,t,n,o){if(!xa(e)||""===e)return;const i=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&vu(e.type)&&gu(e.props.children)?Ml(e,e=>{const t=re(e.className,o)||void 0,r={...n,...e.style};return{...e,children:e.children.split("").join(i),className:t,style:r}}):vu(e)?r.createElement("span",{className:o,style:n},gu(e)?e.split("").join(i):e):Nl(e)?r.createElement("span",{className:o,style:n},e):Ml(e,e=>({...e,className:re(e.className,o)||void 0,style:{...e.style,...n}}))}(e,t,n,o))}["default","primary","danger"].concat(le(mo));const Cu=(0,r.forwardRef)((e,t)=>{const{className:n,style:o,children:i,prefixCls:a}=e,l=re(`${a}-icon`,n);return r.createElement("span",{ref:t,className:l,style:o},i)}),xu=Cu,wu=(0,r.forwardRef)((e,t)=>{const{prefixCls:n,className:o,style:i,iconClassName:a}=e,l=re(`${n}-loading-icon`,o);return r.createElement(xu,{prefixCls:n,className:l,style:i,ref:t},r.createElement(kl,{className:a}))}),Su=()=>({width:0,opacity:0,transform:"scale(0)"}),Eu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ku=e=>{const{prefixCls:t,loading:n,existIcon:o,className:i,style:a,mount:l}=e,s=!!n;return o?r.createElement(wu,{prefixCls:t,className:i,style:a}):r.createElement(da,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:Su,onAppearActive:Eu,onEnterStart:Su,onEnterActive:Eu,onLeaveStart:Eu,onLeaveActive:Su},(e,n)=>{let{className:o,style:l}=e;const s={...a,...l};return r.createElement(wu,{prefixCls:t,className:re(i,o),style:s,ref:n})})},Nu=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Iu=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}},Nu(`${t}-primary`,o),Nu(`${t}-danger`,i)]}},Mu=e=>Math.round(Number(e||0));class Pu extends Or{constructor(e){super((e=>{if(e instanceof Or)return e;if(e&&"object"===typeof e&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return"string"===typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e})(e))}toHsbString(){const e=this.toHsb(),t=Mu(100*e.s),n=Mu(100*e.b),r=Mu(e.h),o=e.a,i=`hsb(${r}, ${t}%, ${n}%)`,a=`hsba(${r}, ${t}%, ${n}%, ${o.toFixed(0===o?0:2)})`;return 1===o?i:a}toHsb(){const{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}}const Ru="rc-color-picker",Ou=e=>e instanceof Pu?e:new Pu(e),zu=Ou("#1677ff"),Au=e=>{const{offset:t,targetRef:n,containerRef:r,color:o,type:i}=e,{width:a,height:l}=r.current.getBoundingClientRect(),{width:s,height:c}=n.current.getBoundingClientRect(),u=s/2,d=c/2,p=(t.x+u)/a,m=1-(t.y+d)/l,f=o.toHsb(),h=p,g=(t.x+u)/a*360;if(i)switch(i){case"hue":return Ou({...f,h:g<=0?0:g});case"alpha":return Ou({...f,a:h<=0?0:h})}return Ou({h:f.h,s:p<=0?0:p,b:m>=1?1:m,a:f.a})},Tu=(e,t)=>{const n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},Bu=e=>{let{color:t,prefixCls:n,className:o,style:i,innerClassName:a,innerStyle:l,onClick:s}=e;const c=`${n}-color-block`;return r.createElement("div",{className:re(c,o),style:i,onClick:s},r.createElement("div",{className:re(`${c}-inner`,a),style:{background:t,...l}}))};const Hu=function(e){const{targetRef:t,containerRef:n,direction:o,onDragChange:i,onDragChangeComplete:a,calculate:l,color:s,disabledDrag:c}=e,[u,d]=(0,r.useState)({x:0,y:0}),p=(0,r.useRef)(null),m=(0,r.useRef)(null);(0,r.useEffect)(()=>{d(l())},[s]),(0,r.useEffect)(()=>()=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null},[]);const f=e=>{const{pageX:r,pageY:a}=function(e){const t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),{x:l,y:s,width:c,height:d}=n.current.getBoundingClientRect(),{width:p,height:m}=t.current.getBoundingClientRect(),f=p/2,h=m/2,g=Math.max(0,Math.min(r-l,c))-f,b=Math.max(0,Math.min(a-s,d))-h,v={x:g,y:"x"===o?u.y:b};if(0===p&&0===m||p!==m)return!1;i?.(v)},h=e=>{e.preventDefault(),f(e)},g=e=>{e.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,a?.()};return[u,e=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),c||(f(e),document.addEventListener("mousemove",h),document.addEventListener("mouseup",g),document.addEventListener("touchmove",h),document.addEventListener("touchend",g),p.current=h,m.current=g)}]},Du=e=>{let{size:t="default",color:n,prefixCls:o}=e;return r.createElement("div",{className:re(`${o}-handler`,{[`${o}-handler-sm`]:"small"===t}),style:{backgroundColor:n}})},Lu=e=>{let{children:t,style:n,prefixCls:o}=e;return r.createElement("div",{className:`${o}-palette`,style:{position:"relative",...n}},t)},ju=(0,r.forwardRef)((e,t)=>{const{children:n,x:o,y:i}=e;return r.createElement("div",{ref:t,style:{position:"absolute",left:`${o}%`,top:`${i}%`,zIndex:1,transform:"translate(-50%, -50%)"}},n)}),Fu=e=>{let{color:t,onChange:n,prefixCls:o,onChangeComplete:i,disabled:a}=e;const l=(0,r.useRef)(),s=(0,r.useRef)(),c=(0,r.useRef)(t),u=A(e=>{const r=Au({offset:e,targetRef:s,containerRef:l,color:t});c.current=r,n(r)}),[d,p]=Hu({color:t,containerRef:l,targetRef:s,calculate:()=>Tu(t),onDragChange:u,onDragChangeComplete:()=>i?.(c.current),disabledDrag:a});return r.createElement("div",{ref:l,className:`${o}-select`,onMouseDown:p,onTouchStart:p},r.createElement(Lu,{prefixCls:o},r.createElement(ju,{x:d.x,y:d.y,ref:s},r.createElement(Du,{color:t.toRgbString(),prefixCls:o})),r.createElement("div",{className:`${o}-saturation`,style:{backgroundColor:`hsl(${t.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Wu=(e,t)=>{const[n,o]=F(e,t);return[(0,r.useMemo)(()=>Ou(n),[n]),o]},_u=e=>{let{colors:t,children:n,direction:o="to right",type:i,prefixCls:a}=e;const l=(0,r.useMemo)(()=>t.map((e,n)=>{let r=Ou(e);return"alpha"===i&&n===t.length-1&&(r=new Pu(r.setA(1))),r.toRgbString()}).join(","),[t,i]);return r.createElement("div",{className:`${a}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${o}, ${l})`}},n)},Vu=e=>{const{prefixCls:t,colors:n,disabled:o,onChange:i,onChangeComplete:a,color:l,type:s}=e,c=(0,r.useRef)(null),u=(0,r.useRef)(null),d=(0,r.useRef)(l),p=e=>"hue"===s?e.getHue():100*e.a,m=A(e=>{const t=Au({offset:e,targetRef:u,containerRef:c,color:l,type:s});d.current=t,i(p(t))}),[f,h]=Hu({color:l,targetRef:u,containerRef:c,calculate:()=>Tu(l,s),onDragChange:m,onDragChangeComplete(){a(p(d.current))},direction:"x",disabledDrag:o}),g=r.useMemo(()=>{if("hue"===s){const e=l.toHsb();e.s=1,e.b=1,e.a=1;return new Pu(e)}return l},[l,s]),b=r.useMemo(()=>n.map(e=>`${e.color} ${e.percent}%`),[n]);return r.createElement("div",{ref:c,className:re(`${t}-slider`,`${t}-slider-${s}`),onMouseDown:h,onTouchStart:h},r.createElement(Lu,{prefixCls:t},r.createElement(ju,{x:f.x,y:f.y,ref:u},r.createElement(Du,{size:"small",color:g.toHexString(),prefixCls:t})),r.createElement(_u,{colors:b,type:s,prefixCls:t})))};function Xu(){return Xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xu.apply(this,arguments)}const Ku=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],qu=(0,r.forwardRef)((e,t)=>{const{value:n,defaultValue:o,prefixCls:i=Ru,onChange:a,onChangeComplete:l,className:s,style:c,panelRender:u,disabledAlpha:d=!1,disabled:p=!1,components:m}=e,[f]=function(e){return r.useMemo(()=>{const{slider:t}=e||{};return[t||Vu]},[e])}(m),[h,g]=Wu(o||zu,n),b=(0,r.useMemo)(()=>h.setA(1).toRgbString(),[h]),v=(e,t)=>{n||g(e),a?.(e,t)},y=e=>new Pu(h.setHue(e)),$=e=>new Pu(h.setA(e/100)),C=re(`${i}-panel`,s,{[`${i}-panel-disabled`]:p}),x={prefixCls:i,disabled:p,color:h},w=r.createElement(r.Fragment,null,r.createElement(Fu,Xu({onChange:v},x,{onChangeComplete:l})),r.createElement("div",{className:`${i}-slider-container`},r.createElement("div",{className:re(`${i}-slider-group`,{[`${i}-slider-group-disabled-alpha`]:d})},r.createElement(f,Xu({},x,{type:"hue",colors:Ku,min:0,max:359,value:h.getHue(),onChange:e=>{v(y(e),{type:"hue",value:e})},onChangeComplete:e=>{l&&l(y(e))}})),!d&&r.createElement(f,Xu({},x,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:b}],min:0,max:100,value:100*h.a,onChange:e=>{v($(e),{type:"alpha",value:e})},onChangeComplete:e=>{l&&l($(e))}}))),r.createElement(Bu,{color:h.toRgbString(),prefixCls:i})));return r.createElement("div",{className:C,style:c,ref:t},"function"===typeof u?u(w):w)});const Gu=qu,Yu=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"";let Uu=(0,Ln.A)(function e(t){if((0,Dn.A)(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const n=Array.isArray(t);n&&t.length?(this.colors=t.map(t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}}),this.metaColor=new Pu(this.colors[0].color.metaColor)):this.metaColor=new Pu(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?Yu(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}]);const Qu={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"};function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zu.apply(this,arguments)}const Ju=r.forwardRef((e,t)=>r.createElement(si,Zu({},e,{ref:t,icon:Qu})));function ed(){return ed=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},ed.apply(null,arguments)}const td=r.forwardRef((e,t)=>{const{prefixCls:n,forceRender:o,className:i,style:a,children:l,isActive:s,role:c,classNames:u,styles:d}=e,[p,m]=r.useState(s||o);return r.useEffect(()=>{(o||s)&&m(!0)},[o,s]),p?r.createElement("div",{ref:t,className:re(`${n}-panel`,{[`${n}-panel-active`]:s,[`${n}-panel-inactive`]:!s},i),style:a,role:c},r.createElement("div",{className:re(`${n}-body`,u?.body),style:d?.body},l)):null});const nd=td,rd=r.forwardRef((e,t)=>{const{showArrow:n=!0,headerClass:o,isActive:i,onItemClick:a,forceRender:l,className:s,classNames:c={},styles:u={},prefixCls:d,collapsible:p,accordion:m,panelKey:f,extra:h,header:g,expandIcon:b,openMotion:v,destroyOnHidden:y,children:$,...C}=e,x="disabled"===p,w=null!==h&&void 0!==h&&"boolean"!==typeof h,S={onClick:()=>{a?.(f)},onKeyDown:e=>{"Enter"!==e.key&&e.keyCode!==ul.ENTER&&e.which!==ul.ENTER||a?.(f)},role:m?"tab":"button","aria-expanded":i,"aria-disabled":x,tabIndex:x?-1:0},E="function"===typeof b?b(e):r.createElement("i",{className:"arrow"}),k=E&&r.createElement("div",ed({className:re(`${d}-expand-icon`,c?.icon),style:u?.icon},["header","icon"].includes(p)?S:{}),E),N=re(`${d}-item`,{[`${d}-item-active`]:i,[`${d}-item-disabled`]:x},s),I={className:re(o,`${d}-header`,{[`${d}-collapsible-${p}`]:!!p},c?.header),style:u?.header,...["header","icon"].includes(p)?{}:S};return r.createElement("div",ed({},C,{ref:t,className:N}),r.createElement("div",I,n&&k,r.createElement("span",ed({className:re(`${d}-title`,c?.title),style:u?.title},"header"===p?S:{}),g),w&&r.createElement("div",{className:`${d}-extra`},h)),r.createElement(da,ed({visible:i,leavedClassName:`${d}-panel-hidden`},v,{forceRender:l,removeOnLeave:y}),(e,t)=>{let{className:n,style:o}=e;return r.createElement(nd,{ref:t,prefixCls:d,className:n,classNames:c,style:o,styles:u,isActive:i,forceRender:l,role:m?"tabpanel":void 0},$)}))}),od=rd;function id(e,t,n){if(!e||!t)return e||t;const r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),o={};return r.forEach(r=>{o[r]=n(e[r],t[r])}),o}function ad(e,t){return id(e,t,(e,t)=>({...e,...t}))}const ld=function(e,t,n){return Array.isArray(e)?((e,t)=>{const{prefixCls:n,accordion:o,collapsible:i,destroyOnHidden:a,onItemClick:l,activeKey:s,openMotion:c,expandIcon:u,classNames:d,styles:p}=t;return e.map((e,t)=>{const{children:m,label:f,key:h,collapsible:g,onItemClick:b,destroyOnHidden:v,classNames:y,styles:$,...C}=e,x=String(h??t),w=g??i,S=v??a;let E=!1;return E=o?s[0]===x:s.indexOf(x)>-1,r.createElement(od,ed({},C,{classNames:(k=d,N=y,id(k,N,(e,t)=>oe(e,t))),styles:ad(p,$),prefixCls:n,key:x,panelKey:x,isActive:E,accordion:o,openMotion:c,expandIcon:u,header:f,collapsible:w,onItemClick:e=>{"disabled"!==w&&(l(e),b?.(e))},destroyOnHidden:S}),m);var k,N})})(e,n):c(t).map((e,t)=>((e,t,n)=>{if(!e)return null;const{prefixCls:o,accordion:i,collapsible:a,destroyOnHidden:l,onItemClick:s,activeKey:c,openMotion:u,expandIcon:d,classNames:p,styles:m}=n,f=e.key||String(t),{header:h,headerClass:g,destroyOnHidden:b,collapsible:v,onItemClick:y}=e.props;let $=!1;$=i?c[0]===f:c.indexOf(f)>-1;const C=v??a,x={key:f,panelKey:f,header:h,headerClass:g,classNames:p,styles:m,isActive:$,prefixCls:o,destroyOnHidden:b??l,openMotion:u,accordion:i,children:e.props.children,onItemClick:e=>{"disabled"!==C&&(s(e),y?.(e))},expandIcon:d,collapsible:C};return"string"===typeof e.type?e:(Object.keys(x).forEach(e=>{"undefined"===typeof x[e]&&delete x[e]}),r.cloneElement(e,x))})(e,t,n))};function sd(e){let t=e;if(!Array.isArray(t)){const e=typeof t;t="number"===e||"string"===e?[t]:[]}return t.map(e=>String(e))}const cd=r.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:o=!1,style:i,accordion:a,className:l,children:s,collapsible:c,openMotion:u,expandIcon:d,activeKey:p,defaultActiveKey:m,onChange:f,items:h,classNames:b,styles:v}=e,y=re(n,l),[$,C]=F(m,p),x=sd($),w=A(e=>{const t=sd(e);C(t),f?.(t)});g(!s,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const S=ld(h,s,{prefixCls:n,accordion:a,openMotion:u,expandIcon:d,collapsible:c,destroyOnHidden:o,onItemClick:e=>{w(a?x[0]===e?[]:[e]:x.includes(e)?x.filter(t=>t!==e):[...x,e])},activeKey:x,classNames:b,styles:v});return r.createElement("div",ed({ref:t,className:y,style:i,role:a?"tablist":void 0},fa(e,{aria:!0,data:!0})),S)}),ud=Object.assign(cd,{Panel:od}),dd=ud,{Panel:pd}=ud,md=r.forwardRef((e,t)=>{const{getPrefixCls:n}=r.useContext(ye),{prefixCls:o,className:i,showArrow:a=!0}=e,l=n("collapse",o),s=re({[`${l}-no-arrow`]:!a},i);return r.createElement(dd.Panel,{ref:t,...e,prefixCls:l,className:s})}),fd=e=>{const{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:o}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(e=>`${e} ${r} ${o}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(e=>`${e} ${r} ${o}`).join(", ")} !important`}}}},hd=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:m,colorTextDisabled:f,fontSizeLG:h,lineHeight:g,lineHeightLG:b,marginSM:v,paddingSM:y,paddingLG:$,paddingXS:C,motionDurationSlow:x,fontSizeIcon:w,contentPadding:S,fontHeight:E,fontHeightLG:k}=e,N=`${lt(c)} ${u} ${d}`;return{[t]:{...br(e),backgroundColor:o,border:N,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,"&:first-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`${lt(s)} ${lt(s)} 0 0`}},"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${lt(s)} ${lt(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:m,lineHeight:g,cursor:"pointer",transition:`all ${x}, visibility 0s`,...yr(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",marginInlineEnd:v},[`${t}-arrow`]:{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"},fontSize:w,transition:`transform ${x}`,svg:{transition:`transform ${x}`}},[`${t}-title`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:p,backgroundColor:n,borderTop:N,[`& > ${t}-body`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(C).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc($).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:$}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${lt(s)} ${lt(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:f,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:v}}}}}}},gd=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},bd=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},vd=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:"transparent",border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},yd=To("Collapse",e=>{const t=ir(e,{collapseHeaderPaddingSM:`${lt(e.paddingXS)} ${lt(e.paddingSM)}`,collapseHeaderPaddingLG:`${lt(e.padding)} ${lt(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[hd(t),bd(t),vd(t),gd(t),fd(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"})),$d=r.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,expandIcon:i,className:a,style:l,classNames:s,styles:u}=xe("collapse"),{prefixCls:d,className:p,rootClassName:m,style:f,bordered:h=!0,ghost:g,size:b,expandIconPlacement:v,expandIconPosition:y,children:$,destroyInactivePanel:C,destroyOnHidden:x,expandIcon:w,classNames:S,styles:E}=e,k=ou(e=>b??e??"middle"),N=n("collapse",d),I=n(),[M,P]=yd(N),R=v??y??"start",O={...e,size:k,bordered:h,expandIconPlacement:R},[z,A]=Ca([s,S],[u,E],{props:O}),T=w??i;const B=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ml("function"===typeof T?T(e):r.createElement(Ju,{rotate:e.isActive?"rtl"===o?-90:90:void 0,"aria-label":e.isActive?"expanded":"collapsed"}),e=>({className:re(e.className,`${N}-arrow`)}))},[T,N,o]),H=re(`${N}-icon-placement-${R}`,{[`${N}-borderless`]:!h,[`${N}-rtl`]:"rtl"===o,[`${N}-ghost`]:!!g,[`${N}-large`]:"large"===k,[`${N}-small`]:"small"===k},a,p,m,M,P,z.root),D=r.useMemo(()=>({...Gc(I),motionAppear:!1,leavedClassName:`${N}-panel-hidden`}),[I,N]),L=r.useMemo(()=>$?c($).map(e=>e):null,[$]);return r.createElement(dd,{ref:t,openMotion:D,...Y(e,["rootClassName"]),expandIcon:B,prefixCls:N,className:H,style:{...A.root,...l,...f},classNames:z,styles:A,destroyOnHidden:x??C},L)});const Cd=Object.assign($d,{Panel:md}),xd=e=>e instanceof Uu?e:new Uu(e),wd=e=>Math.round(Number(e||0)),Sd=e=>wd(100*e.toHsb().a),Ed=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const n=e.toHsb();return n.a=t||1,xd(n)}return n.a=t||1,xd(n)},kd=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(le(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;r<n.length-1;r+=1){const e=n[r].percent,o=n[r+1].percent,i=n[r].color,a=n[r+1].color;if(e<=t&&t<=o){const n=o-e;if(0===n)return i;const r=(t-e)/n*100,l=new Pu(i),s=new Pu(a);return l.mix(s,r).toRgbString()}}return""},Nd=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Pu(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192},Id=(e,t)=>`panel-${e.key??t}`,Md=e=>{let{prefixCls:t,presets:n,value:o,onChange:i}=e;const[a]=Yc("ColorPicker"),[,l]=Ao(),s=(0,r.useMemo)(()=>(e=>e.map(e=>(e.colors=e.colors.map(xd),e)))(n),[n]),c=`${t}-presets`,u=(0,r.useMemo)(()=>s.reduce((e,t,n)=>{const{defaultOpen:r=!0}=t;return r&&e.push(Id(t,n)),e},[]),[s]),d=s.map((e,n)=>({key:Id(e,n),label:r.createElement("div",{className:`${c}-label`},e?.label),children:r.createElement("div",{className:`${c}-items`},Array.isArray(e?.colors)&&e.colors?.length>0?e.colors.map((e,n)=>{const a=xd(e);return r.createElement(Bu,{key:`preset-${n}-${e.toHexString()}`,color:a.toCssString(),prefixCls:t,className:re(`${c}-color`,{[`${c}-color-checked`]:e.toCssString()===o?.toCssString(),[`${c}-color-bright`]:Nd(e,l.colorBgElevated)}),onClick:()=>{return t=e,void i?.(t);var t}})}):r.createElement("span",{className:`${c}-empty`},a.presetEmpty))}));return r.createElement("div",{className:c},r.createElement(Cd,{defaultActiveKey:u,ghost:!0,items:d}))},Pd=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return ir(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Rd=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??vo(t),i=e.contentLineHeightSM??vo(n),a=e.contentLineHeightLG??vo(r),l=Nd(new Uu(e.colorBgSolid),"#fff")?"#000":"#fff",s=mo.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${lt(e.controlOutlineWidth)} 0 ${Io(e[`${n}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...s,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:o,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:u}},Od=e=>{const{componentCls:t,antCls:n,lineWidth:r}=e,[o,i]=Do(n,"btn");return{[t]:[{[o("border-width")]:r,[o("border-color")]:"#000",[o("border-color-hover")]:i("border-color"),[o("border-color-active")]:i("border-color"),[o("border-color-disabled")]:i("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color"),[o("text-color-disabled")]:i("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:i("bg-color"),[o("bg-color-active")]:i("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[i("border-width"),i("border-style"),i("border-color")].join(" "),color:i("text-color"),backgroundColor:i("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[i("border-width"),i("border-style"),i("border-color-hover")].join(" "),color:i("text-color-hover"),backgroundColor:i("bg-color-hover")},"&:active":{border:[i("border-width"),i("border-style"),i("border-color-active")].join(" "),color:i("text-color-active"),backgroundColor:i("bg-color-active")}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:i("color-base"),[o("solid-bg-color-hover")]:i("color-hover"),[o("solid-bg-color-active")]:i("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:i("solid-bg-color"),[o("bg-color-hover")]:i("solid-bg-color-hover"),[o("bg-color-active")]:i("solid-bg-color-active"),boxShadow:i("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:i("color-base"),[o("border-color-hover")]:i("color-hover"),[o("border-color-active")]:i("color-active"),[o("bg-color")]:i("bg-color-container"),[o("text-color")]:i("color-base"),[o("text-color-hover")]:i("color-hover"),[o("text-color-active")]:i("color-active"),boxShadow:i("shadow")},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:i("color-base"),[o("bg-color")]:i("color-light"),[o("bg-color-hover")]:i("color-light-hover"),[o("bg-color-active")]:i("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:i("color-base"),[o("text-color-hover")]:i("color-hover"),[o("text-color-active")]:i("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[o("bg-color-hover")]:i("color-light"),[o("bg-color-active")]:i("color-light-active")}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive,[o("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")}},[`&${t}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")}},[`&${t}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[o("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},mo.map(n=>{const r=e[`${n}6`],i=e[`${n}1`],a=e[`${n}Hover`],l=e[`${n}2`],s=e[`${n}3`],c=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[o("color-base")]:r,[o("color-hover")]:a,[o("color-active")]:c,[o("color-light")]:i,[o("color-light-hover")]:l,[o("color-light-active")]:s,[o("shadow")]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:i("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:e.ghostBg,[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg,[o("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg}}}]}},zd=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":yr(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},Ad=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Td=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${lt(s)} ${lt(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:Ad(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Bd=e=>{const t=ir(e,{fontSize:e.contentFontSize});return Td(t,e.componentCls)},Hd=e=>{const t=ir(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Td(t,`${e.componentCls}-sm`)},Dd=e=>{const t=ir(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Td(t,`${e.componentCls}-lg`)},Ld=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},jd=To("Button",e=>{const t=Pd(e);return[zd(t),Bd(t),Hd(t),Dd(t),Ld(t),Od(t),Iu(t)]},Rd,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Fd(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:a}=n,l=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[s]:{zIndex:3},...o?{[`&${o}`]:{zIndex:3}}:{},[`&[disabled] ${l}`]:{zIndex:0}}}}function Wd(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 _d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return{[i]:{...Fd(e,i,t,o),...Wd(o,i,t)}}}function Vd(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Xd(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...Vd(e,t,e.componentCls),...(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}})}};var n,r}const Kd=e=>{const{antCls:t,componentCls:n,lineWidth:r,calc:o,colorBgContainer:i}=e,a=`${n}-variant-solid:not([disabled])`,l=o(r).mul(-1).equal(),[s,c]=Do(t,"btn"),u=e=>{const t=`${n}-compact${e?"-vertical":""}-item`;return{[t]:{[s("compact-connect-border-color")]:c("bg-color-hover"),[`&${a}`]:{transition:"none",[`& + ${a}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},e?{top:l,insetInline:l,height:r}:{insetBlock:l,insetInlineStart:l,width:r}],"&:hover:before":{display:"none"}}}}};return[u(),u(!0),{[`${a}${n}-color-default`]:{[s("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${i})`}}]},qd=Ho(["Button","compact"],e=>{const t=Pd(e);return[_d(t),Xd(t),Kd(t)]},Rd);const Gd={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Yd=r.forwardRef((e,t)=>{const{_skipSemantic:n,loading:o=!1,prefixCls:i,color:a,variant:l,type:s,danger:u=!1,shape:d,size:p,disabled:m,className:f,rootClassName:h,children:g,icon:b,iconPosition:v,iconPlacement:y,ghost:$=!1,block:C=!1,htmlType:x="button",classNames:w,styles:E,style:k,autoInsertSpace:N,autoFocus:I,...M}=e,P=c(g),R=s||"default",{getPrefixCls:O,direction:z,autoInsertSpace:A,className:T,style:B,classNames:H,styles:D,loadingIcon:j,shape:F,color:W,variant:_}=xe("button"),V=d||F||"default",[X,K]=(0,r.useMemo)(()=>{if(a&&l)return[a,l];if(s||u){const e=Gd[R]||[];return u?["danger",e[1]]:e}return W&&_?[W,_]:["default","outlined"]},[a,l,s,u,W,_,R]),[q,G]=(0,r.useMemo)(()=>$&&"solid"===K?[X,"outlined"]:[X,K],[X,K,$]),U="danger"===q,Q=U?"dangerous":q,Z=N??A??!0,J=O("btn",i),[ee,te]=jd(J),ne=(0,r.useContext)($c),oe=m??ne,ie=(0,r.useContext)(mu),ae=(0,r.useMemo)(()=>function(e){if("object"===typeof e&&e){let t=e?.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o),[o]),[le,se]=(0,r.useState)(ae.loading),[ce,ue]=(0,r.useState)(!1),de=(0,r.useRef)(null),pe=S(t,de),me=1===P.length&&!b&&!yu(G),fe=(0,r.useRef)(!0);r.useEffect(()=>(fe.current=!1,()=>{fe.current=!0}),[]),L(()=>{let e=null;return ae.delay>0?e=setTimeout(()=>{e=null,se(!0)},ae.delay):se(ae.loading),function(){e&&(clearTimeout(e),e=null)}},[ae.delay,ae.loading]),(0,r.useEffect)(()=>{if(!de.current||!Z)return;const e=de.current.textContent||"";me&&gu(e)?ce||ue(!0):ce&&ue(!1)}),(0,r.useEffect)(()=>{I&&de.current&&de.current.focus()},[]);const he=r.useCallback(t=>{le||oe?t.preventDefault():e.onClick?.(t)},[e.onClick,le,oe]);const{compactSize:ge,compactItemClassnames:be}=cu(J,z),ve=ou(e=>p??ge??ie??e),ye=le?"loading":b,$e=y??v??"start",Ce=Y(M,["navigate"]),we={...e,type:R,color:q,variant:G,danger:U,shape:V,size:ve,disabled:oe,loading:le,iconPlacement:$e},[Se,Ee]=Ca([n?void 0:H,w],[n?void 0:D,E],{props:we}),ke=re(J,ee,te,{[`${J}-${V}`]:"default"!==V&&"square"!==V&&V,[`${J}-${R}`]:R,[`${J}-dangerous`]:u,[`${J}-color-${Q}`]:Q,[`${J}-variant-${G}`]:G,[`${J}-lg`]:"large"===ve,[`${J}-sm`]:"small"===ve,[`${J}-icon-only`]:!g&&0!==g&&!!ye,[`${J}-background-ghost`]:$&&!yu(G),[`${J}-loading`]:le,[`${J}-two-chinese-chars`]:ce&&Z&&!le,[`${J}-block`]:C,[`${J}-rtl`]:"rtl"===z,[`${J}-icon-end`]:"end"===$e},be,f,h,T,Se.root),Ne={...Ee.root,...B,...k},Ie={className:Se.icon,style:Ee.icon},Me=e=>r.createElement(xu,{prefixCls:J,...Ie},e),Pe=r.createElement(ku,{existIcon:!!b,prefixCls:J,loading:le,mount:fe.current,...Ie}),Re=o&&"object"===typeof o&&o.icon||j;let Oe;Oe=b&&!le?Me(b):o&&Re?Me(Re):Pe;const ze=xa(g)?$u(g,me&&Z,Ee.content,Se.content):null;if(void 0!==Ce.href)return r.createElement("a",{...Ce,className:re(ke,{[`${J}-disabled`]:oe}),href:oe?void 0:Ce.href,style:Ne,onClick:he,ref:pe,tabIndex:oe?-1:0,"aria-disabled":oe},Oe,ze);let Ae=r.createElement("button",{...M,type:x,className:ke,style:Ne,onClick:he,disabled:oe,ref:pe},Oe,ze,be&&r.createElement(qd,{prefixCls:J}));return yu(G)||(Ae=r.createElement(ru,{component:"Button",disabled:le},Ae)),Ae}),Ud=Yd;Ud.Group=fu,Ud.__ANT_BUTTON=!0;const Qd=Ud,Zd=e=>"function"===typeof e?.then,Jd=e=>{const{type:t,children:n,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,p=r.useRef(!1),m=r.useRef(null),[f,h]=j(!1),g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a?.(...t)};r.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{m.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[l]);return r.createElement(Qd,{...bu(t),onClick:e=>{if(p.current)return;if(p.current=!0,!d)return void g();let t;if(s){if(t=d(e),u&&!Zd(t))return p.current=!1,void g(e)}else if(d.length)t=d(a),p.current=!1;else if(t=d(),!Zd(t))return void g();(e=>{Zd(e)&&(h(!0),e.then(function(){h(!1,!0);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];g.apply(void 0,t),p.current=!1},e=>{if(h(!1,!0),p.current=!1,!c?.())return Promise.reject(e)}))})(t)},loading:f,prefixCls:o,...i,ref:m},n)},ep=r.createContext({}),{Provider:tp}=ep,np=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:s,onConfirm:c,onClose:u}=(0,r.useContext)(ep);return i?r.createElement(Jd,{isSilent:o,actionFn:s,close:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l?.(...t),c?.(!1),u?.()},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},rp=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:s,onOk:c,onClose:u}=(0,r.useContext)(ep);return r.createElement(Jd,{isSilent:n,type:l||"primary",actionFn:c,close:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t?.(...n),s?.(!0),u?.()},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${i}-btn`},a)},op=r.createContext({});function ip(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function ap(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r="scroll"+(t?"Top":"Left");if("number"!==typeof n){const t=e.document;n=t.documentElement[r],"number"!==typeof n&&(n=t.body[r])}return n}function lp(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ys(e)){const 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);let 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}function sp(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=[...e.querySelectorAll("*")].filter(e=>lp(e,t));return lp(e,t)&&n.unshift(e),n}function cp(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){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)}}}let up=null,dp=[];const pp=new Map,mp=new Map;function fp(){return dp[dp.length-1]}function hp(){const e=fp(),{activeElement:t}=document;if(!function(e){const t=fp();if(e&&t){let n;for(const[e,o]of pp.entries())if(o===t){n=e;break}const r=mp.get(n);return!!r&&(r===e||r.contains(e))}return!1}(t))if(e&&!function(e){const{activeElement:t}=document;return e===t||e.contains(t)}(e)){const t=sp(e),n=t.includes(up)?up:t[0];n?.focus({preventScroll:!0})}else up=t}function gp(e){if("Tab"===e.key){const{activeElement:t}=document,n=sp(fp()),r=n[n.length-1];e.shiftKey&&t===n[0]?up=r:e.shiftKey||t!==r||(up=n[0])}}function bp(e,t){const n=Is();(0,r.useEffect)(()=>{if(e){const e=t();if(e)return function(e,t){return e&&(pp.set(t,e),dp=dp.filter(t=>t!==e),dp.push(e),window.addEventListener("focusin",hp),window.addEventListener("keydown",gp,!0),hp()),()=>{up=null,dp=dp.filter(t=>t!==e),pp.delete(t),mp.delete(t),0===dp.length&&(window.removeEventListener("focusin",hp),window.removeEventListener("keydown",gp,!0))}}(e,n)}},[e,n]);return[e=>{e&&mp.set(n,e)}]}const vp=r.memo(e=>{let{children:t}=e;return t},(e,t)=>{let{shouldUpdate:n}=t;return!n});function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yp.apply(this,arguments)}const $p=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:i,title:a,ariaId:l,footer:s,closable:c,closeIcon:u,onClose:d,children:p,bodyStyle:m,bodyProps:f,modalRender:h,onMouseDown:g,onMouseUp:b,holderRef:v,visible:y,forceRender:$,width:C,height:x,classNames:w,styles:E,isFixedPos:k,focusTrap:N}=e,{panel:I}=r.useContext(op),M=(0,r.useRef)(null),P=S(v,I,M),[R]=bp(y&&k&&!1!==N,()=>M.current);r.useImperativeHandle(t,()=>({focus:()=>{M.current?.focus({preventScroll:!0})}}));const O={};void 0!==C&&(O.width=C),void 0!==x&&(O.height=x);const z=s?r.createElement("div",{className:re(`${n}-footer`,w?.footer),style:{...E?.footer}},s):null,A=a?r.createElement("div",{className:re(`${n}-header`,w?.header),style:{...E?.header}},r.createElement("div",{className:re(`${n}-title`,w?.title),id:l,style:{...E?.title}},a)):null,T=(0,r.useMemo)(()=>"object"===typeof c&&null!==c?c:c?{closeIcon:u??r.createElement("span",{className:`${n}-close-x`})}:{},[c,u,n]),B=fa(T,!0),H="object"===typeof c&&c.disabled,D=c?r.createElement("button",yp({type:"button",onClick:d,"aria-label":"Close"},B,{className:`${n}-close`,disabled:H}),T.closeIcon):null,L=r.createElement("div",{className:re(`${n}-container`,w?.container),style:E?.container},D,A,r.createElement("div",yp({className:re(`${n}-body`,w?.body),style:{...m,...E?.body}},f),p),z);return r.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:P,style:{...i,...O},className:re(n,o),onMouseDown:g,onMouseUp:b,tabIndex:-1,onFocus:e=>{R(e.target)}},r.createElement(vp,{shouldUpdate:y||$},h?h(L):L))});const Cp=$p;function xp(){return xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xp.apply(this,arguments)}const wp=r.forwardRef((e,t)=>{const{prefixCls:n,title:o,style:i,className:a,visible:l,forceRender:s,destroyOnHidden:c,motionName:u,ariaId:d,onVisibleChanged:p,mousePosition:m}=e,f=(0,r.useRef)(null),h=(0,r.useRef)(null);r.useImperativeHandle(t,()=>({...h.current,inMotion:f.current.inMotion,enableMotion:f.current.enableMotion}));const[g,b]=r.useState(),v={};function y(){if(!f.current?.nativeElement)return;const e=function(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=ap(o),n.top+=ap(o,!0),n}(f.current.nativeElement);b(m&&(m.x||m.y)?`${m.x-e.left}px ${m.y-e.top}px`:"")}return g&&(v.transformOrigin=g),r.createElement(da,{visible:l,onVisibleChanged:p,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:u,removeOnLeave:c,ref:f},(t,l)=>{let{className:s,style:c}=t;return r.createElement(Cp,xp({},e,{ref:h,title:o,ariaId:d,prefixCls:n,holderRef:l,style:{...c,...i,...v},className:re(a,s)}))})});const Sp=wp;function Ep(){return Ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ep.apply(this,arguments)}const kp=e=>{const{prefixCls:t,style:n,visible:o,maskProps:i,motionName:a,className:l}=e;return r.createElement(da,{key:"mask",visible:o,motionName:a,leavedClassName:`${t}-mask-hidden`},(e,o)=>{let{className:a,style:s}=e;return r.createElement("div",Ep({ref:o,style:{...s,...n},className:re(`${t}-mask`,a,l)},i))})};function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Np.apply(this,arguments)}const Ip=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:o=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:l,wrapProps:s,onClose:c,afterOpenChange:u,afterClose:d,transitionName:p,animation:m,closable:f=!0,mask:h=!0,maskTransitionName:g,maskAnimation:b,maskClosable:v=!0,maskStyle:y,maskProps:$,rootClassName:C,rootStyle:x,classNames:w,styles:S}=e;const E=(0,r.useRef)(null),k=(0,r.useRef)(null),N=(0,r.useRef)(null),[I,M]=r.useState(o),[P,R]=r.useState(!1),O=Is();function z(){if(M(!1),h&&E.current&&i){try{E.current.focus({preventScroll:!0})}catch(Ha){}E.current=null}I&&d?.()}function A(e){c?.(e)}const T=(0,r.useRef)(!1);let B=null;v&&(B=e=>{k.current===e.target&&T.current&&A(e)}),(0,r.useEffect)(()=>{if(o){if(T.current=!1,M(!0),Me(k.current,document.activeElement)||(E.current=document.activeElement),k.current){const e=getComputedStyle(k.current);R("fixed"===e.position)}}else I&&N.current.enableMotion()&&!N.current.inMotion()&&z()},[o]);const H={zIndex:n,...a,...S?.wrapper,display:I?null:"none"};return r.createElement("div",Np({className:re(`${t}-root`,C),style:x},fa(e,{data:!0})),r.createElement(kp,{prefixCls:t,visible:h&&o,motionName:ip(t,g,b),style:{zIndex:n,...y,...S?.mask},maskProps:$,className:w?.mask}),r.createElement("div",Np({className:re(`${t}-wrap`,l,w?.wrapper),ref:k,onClick:B,onMouseDown:function(e){T.current=e.target===k.current},style:H},s),r.createElement(Sp,Np({},e,{isFixedPos:P,ref:N,closable:f,ariaId:O,prefixCls:t,visible:o&&I,onClose:A,onVisibleChanged:function(e){e?Me(k.current,document.activeElement)||N.current?.focus():z(),u?.(e)},motionName:ip(t,p,m)}))))};function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mp.apply(this,arguments)}const Pp=e=>{const{visible:t,getContainer:n,forceRender:o,destroyOnHidden:i=!1,afterClose:a,closable:l,panelRef:s,keyboard:c=!0,onClose:u}=e,[d,p]=r.useState(t),m=r.useMemo(()=>({panel:s}),[s]);return r.useEffect(()=>{t&&p(!0)},[t]),o||!i||d?r.createElement(op.Provider,{value:m},r.createElement(Bs,{open:t||o||d,onEsc:e=>{let{top:t,event:n}=e;if(t&&c)return n.stopPropagation(),void u?.(n)},autoDestroy:!1,getContainer:n,autoLock:t||d},r.createElement(Ip,Mp({},e,{destroyOnHidden:i,afterClose:()=>{const e=l&&"object"===typeof l?l:{},{afterClose:t}=e||{};t?.(),a?.(),p(!1)}})))):null},Rp=Pp,Op="RC_FORM_INTERNAL_HOOKS",zp=()=>{g(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ap=r.createContext({getFieldValue:zp,getFieldsValue:zp,getFieldError:zp,getFieldWarning:zp,getFieldsError:zp,isFieldsTouched:zp,isFieldTouched:zp,isFieldValidating:zp,isFieldsValidating:zp,resetFields:zp,setFields:zp,setFieldValue:zp,setFieldsValue:zp,validateFields:zp,submit:zp,getInternalHooks:()=>(zp(),{dispatch:zp,initEntityValue:zp,registerField:zp,useSubscribe:zp,setInitialValues:zp,destroyForm:zp,setCallbacks:zp,registerWatch:zp,getFields:zp,setValidateMessages:zp,setPreserve:zp,getInitialValue:zp})}),Tp=r.createContext(null);function Bp(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function Hp(){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",tel:"%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 Dp=Hp(),Lp=n(63662);function jp(e){var t="function"==typeof Map?new Map:void 0;return jp=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(Da){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(_n())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&(0,Lp.A)(o,n.prototype),o}(e,arguments,(0,Wn.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,Lp.A)(n,e)},jp(e)}var Fp=/%[sdj%]/g;function Wp(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 _p(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(Fp,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(t){return"[Circular]"}default:return e}}):e}function Vp(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}(t)||"string"!==typeof e||e))}function Xp(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([])}}([])}var Kp=function(e){(0,Fn.A)(n,e);var t=Xn(n);function n(e,r){var o;return(0,Dn.A)(this,n),o=t.call(this,"Async Validation Error"),(0,Ee.A)((0,jn.A)(o),"errors",void 0),(0,Ee.A)((0,jn.A)(o),"fields",void 0),o.errors=e,o.fields=r,o}return(0,Ln.A)(n)}(jp(Error));function qp(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,le(e[n]||[]))}),t}(e);Xp(a,n,function(e){return r(e),e.length?i(new Kp(e,Wp(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),s=l.length,c=0,u=[],d=new Promise(function(t,i){var d=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new Kp(u,Wp(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?Xp(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,le(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}function Gp(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(void 0==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 Yp(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===(0,we.A)(r)&&"object"===(0,we.A)(e[n])?e[n]=Ne(Ne({},e[n]),r):e[n]=r}return e}var Up="enum";const Qp=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Vp(t,i||e.type)||r.push(_p(o.messages.required,e.fullField))};var Zp;var Jp=/^(([^<>()\[\]\\.,;:\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,}))$/,em=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,tm=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,nm={integer:function(e){return nm.number(e)&&parseInt(e,10)===e},float:function(e){return nm.number(e)&&!nm.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Ha){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"===(0,we.A)(e)&&!nm.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(Jp)},tel:function(e){return"string"===typeof e&&e.length<=32&&!!e.match(em)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(Zp)return Zp;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,"$")),s=new RegExp("^".concat(i,"$")),c=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")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,p="(?:".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 Zp=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(tm)}};const rm=function(e,t,n,r,o){if(e.required&&void 0===t)Qp(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(i)>-1?nm[i](t)||r.push(_p(o.messages.types[i],e.fullField,e.type)):i&&(0,we.A)(t)!==e.type&&r.push(_p(o.messages.types[i],e.fullField,e.type))}};const om={required:Qp,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(_p(o.messages.whitespace,e.fullField))},type:rm,range:function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,l="number"===typeof e.max,s=t,c=null,u="number"===typeof t,d="string"===typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(_p(o.messages[c].len,e.fullField,e.len)):a&&!l&&s<e.min?r.push(_p(o.messages[c].min,e.fullField,e.min)):l&&!a&&s>e.max?r.push(_p(o.messages[c].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&r.push(_p(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[Up]=Array.isArray(e[Up])?e[Up]:[],-1===e[Up].indexOf(t)&&r.push(_p(o.messages[Up],e.fullField,e[Up].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(_p(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(_p(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};const im=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":(0,we.A)(t);om.required(e,t,r,i,o,a),n(i)};const am=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Vp(t,i)&&!e.required)return n();om.required(e,t,r,a,o,i),Vp(t,i)||om.type(e,t,r,a,o)}n(a)},lm={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Vp(t,"string")&&!e.required)return n();om.required(e,t,r,i,o,"string"),Vp(t,"string")||(om.type(e,t,r,i,o),om.range(e,t,r,i,o),om.pattern(e,t,r,i,o),!0===e.whitespace&&om.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(Vp(t)&&!e.required)return n();om.required(e,t,r,i,o),void 0!==t&&om.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),Vp(t)&&!e.required)return n();om.required(e,t,r,i,o),void 0!==t&&(om.type(e,t,r,i,o),om.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(Vp(t)&&!e.required)return n();om.required(e,t,r,i,o),void 0!==t&&om.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(Vp(t)&&!e.required)return n();om.required(e,t,r,i,o),Vp(t)||om.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(Vp(t)&&!e.required)return n();om.required(e,t,r,i,o),void 0!==t&&(om.type(e,t,r,i,o),om.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(Vp(t)&&!e.required)return n();om.required(e,t,r,i,o),void 0!==t&&(om.type(e,t,r,i,o),om.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((void 0===t||null===t)&&!e.required)return n();om.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(om.type(e,t,r,i,o),om.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(Vp(t)&&!e.required)return n();om.required(e,t,r,i,o),void 0!==t&&om.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(Vp(t)&&!e.required)return n();om.required(e,t,r,i,o),void 0!==t&&om.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(Vp(t,"string")&&!e.required)return n();om.required(e,t,r,i,o),Vp(t,"string")||om.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(Vp(t,"date")&&!e.required)return n();var a;if(om.required(e,t,r,i,o),!Vp(t,"date"))a=t instanceof Date?t:new Date(t),om.type(e,a,r,i,o),a&&om.range(e,a.getTime(),r,i,o)}n(i)},url:am,hex:am,email:am,tel:am,required:im,any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Vp(t)&&!e.required)return n();om.required(e,t,r,i,o)}n(i)}};var sm=function(){function e(t){(0,Dn.A)(this,e),(0,Ee.A)(this,"rules",null),(0,Ee.A)(this,"_messages",Dp),this.define(t)}return(0,Ln.A)(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,we.A)(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=Yp(Hp(),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===Dp&&(a=Hp()),Yp(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=Ne({},r)),void 0!==(i=r[e]=a.transform(i))&&null!==i&&(a.type=a.type||(Array.isArray(i)?"array":(0,we.A)(i)))),(a="function"===typeof a?{validator:a}:Ne({},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 s={};return qp(l,o,function(t,n){var i,a=t.rule,l=("object"===a.type||"array"===a.type)&&("object"===(0,we.A)(a.fields)||"object"===(0,we.A)(a.defaultField));function c(e,t){return Ne(Ne({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(le(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&&null!==a.message&&(u=[].concat(a.message));var d=u.map(Gp(a,r));if(o.first&&d.length)return s[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Gp(a,r)):o.error&&(d=[o.error(a,_p(o.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map(function(e){p[e]=a.defaultField}),p=Ne(Ne({},p),t.rule.fields);var m={};Object.keys(p).forEach(function(e){var t=p[e],n=Array.isArray(t)?t:[t];m[e]=n.map(c.bind(null,e))});var f=new e(m);f.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),f.validate(t.value,t.rule.options||o,function(e){var t=[];d&&d.length&&t.push.apply(t,le(d)),e&&e.length&&t.push.apply(t,le(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(m){var d,p;null===(d=(p=console).error)||void 0===d||d.call(p,m),o.suppressValidatorError||setTimeout(function(){throw m},0),u(m.message)}!0===i?u():!1===i?u("function"===typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,le(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=Wp(t),i(t,n)):i(null,r)}(e)},r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!lm.hasOwnProperty(e.type))throw new Error(_p("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]?lm.required:lm[this.getType(e)]||void 0}}]),e}();(0,Ee.A)(sm,"register",function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");lm[e]=t}),(0,Ee.A)(sm,"warning",function(){}),(0,Ee.A)(sm,"messages",Dp),(0,Ee.A)(sm,"validators",lm);const cm="'${name}' is not a valid ${type}",um={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:cm,method:cm,array:cm,object:cm,number:cm,date:cm,boolean:cm,integer:cm,float:cm,regexp:cm,email:cm,tel:cm,url:cm,hex:cm},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}"}},dm=sm;const pm="CODE_LOGIC_ERROR";async function mm(e,t,n,o,i){const a={...n};if(delete a.ruleIndex,dm.warning=()=>{},a.validator){const e=a.validator;a.validator=function(){try{return e(...arguments)}catch(t){return console.error(t),Promise.reject(pm)}}}let l=null;a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField);const s=new dm({[e]:[a]}),c=G(um,o.validateMessages);s.messages(c);let u=[];try{await Promise.resolve(s.validate({[e]:t},{...o}))}catch(m){m.errors&&(u=m.errors.map((e,t)=>{let{message:n}=e;const o=n===pm?c.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:`error_${t}`}):o}))}if(!u.length&&l&&Array.isArray(t)&&t.length>0){return(await Promise.all(t.map((t,n)=>mm(`${e}.${n}`,t,l,o,i)))).reduce((e,t)=>[...e,...t],[])}const d={...n,name:e,enum:(n.enum||[]).join(", "),...i},p=u.map(e=>"string"===typeof e?function(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>{if(e.startsWith("\\"))return e.slice(1);const n=e.slice(2,-1);return t[n]})}(e,d):e);return p}function fm(e,t,n,r,o,i){const a=e.join("."),l=n.map((e,t)=>{const n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let o=!1;const 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(()=>{g(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r(...t)})});o=i&&"function"===typeof i.then&&"function"===typeof i.catch,g(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then(()=>{r()}).catch(e=>{r(e||" ")})}),r}).sort((e,t)=>{let{warningOnly:n,ruleIndex:r}=e,{warningOnly:o,ruleIndex:i}=t;return!!n===!!o?r-i:n?1:-1});let s;if(!0===o)s=new Promise(async(e,n)=>{for(let o=0;o<l.length;o+=1){const e=l[o],s=await mm(a,t,e,r,i);if(s.length)return void n([{errors:s,rule:e}])}e([])});else{const e=l.map(e=>mm(a,t,e,r,i).then(t=>({errors:t,rule:e})));s=(o?async function(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}(e):async function(e){return Promise.all(e).then(e=>[].concat(...e))}(e)).then(e=>Promise.reject(e))}return s.catch(e=>e),s}function hm(e){return Bp(e)}function gm(e,t){let n={};return t.forEach(t=>{const r=W(e,t);n=V(n,t,r)}),n}function bm(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(e=>vm(t,e,n))}function vm(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((t,n)=>e[n]===t))}function ym(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const o=e[t],i=t-n;return i>0?[...e.slice(0,n),o,...e.slice(n,t),...e.slice(t+1,r)]:i<0?[...e.slice(0,t),...e.slice(t+1,n+1),o,...e.slice(n+1,r)]:e}const $m=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class Cm{namePathList=[];taskId=0;watcherList=(()=>new Set)();form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!vm(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;const e=this.taskId;$m(()=>{if(e===this.taskId&&this.watcherList.size){const e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}}function xm(){return xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xm.apply(this,arguments)}const wm=[],Sm=[];function Em(e,t,n,r,o,i){return"function"===typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}class km extends r.Component{static contextType=(()=>Ap)();state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=(()=>wm)();warnings=(()=>Sm)();constructor(e){if(super(e),e.fieldContext){const{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(Op);n(this)}}componentDidMount(){const{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){const{getInternalHooks:e}=t,{registerField:n}=e(Op);this.cancelRegisterFunc=n(this)}!0===e&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,hm(n)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return void 0!==e?[...n,...e]:[]};getRules=()=>{const{rules:e=[],fieldContext:t}=this.props;return e.map(e=>"function"===typeof e?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(e=>{let{resetCount:t}=e;return{resetCount:t+1}})};metaCache=null;triggerMetaEvent=e=>{const{onMetaChange:t}=this.props;if(t){const n={...this.getMeta(),destroy:e};je(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{const{shouldUpdate:r,dependencies:o=[],onReset:i}=this.props,{store:a}=n,l=this.getNamePath(),s=this.getValue(e),c=this.getValue(a),u=t&&bm(t,l);switch("valueUpdate"!==n.type||"external"!==n.source||je(s,c)||(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=wm,this.warnings=Sm,this.triggerMetaEvent()),n.type){case"reset":if(!t||u)return this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=wm,this.warnings=Sm,this.triggerMetaEvent(),i?.(),void this.refresh();break;case"remove":if(r&&Em(r,e,a,s,c,n))return void this.reRender();break;case"setField":{const{data:o}=n;if(u)return"touched"in o&&(this.touched=o.touched),"validating"in o&&!("originRCField"in o)&&(this.validatePromise=o.validating?Promise.resolve([]):null),"errors"in o&&(this.errors=o.errors||wm),"warnings"in o&&(this.warnings=o.warnings||Sm),this.dirty=!0,this.triggerMetaEvent(),void this.reRender();if("value"in o&&bm(t,l,!0))return void this.reRender();if(r&&!l.length&&Em(r,e,a,s,c,n))return void this.reRender();break}case"dependenciesUpdate":if(o.map(hm).some(e=>bm(n.relatedFields,e)))return void this.reRender();break;default:if(u||(!o.length||l.length||r)&&Em(r,e,a,s,c,n))return void this.reRender()}!0===r&&this.reRender()};validateRules=e=>{const t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:o=!1,delayFrame:i}=e||{},a=Promise.resolve().then(async()=>{var o=this;if(!this.mounted)return[];const{validateFirst:l=!1,messageVariables:s,validateDebounce:c}=this.props;i&&await async function(){return new Promise(e=>{$m(()=>{fe(()=>{e()})})})}();let u=this.getRules();if(r&&(u=u.filter(e=>e).filter(e=>{const{validateTrigger:t}=e;if(!t)return!0;return Bp(t).includes(r)})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==a))return[];const d=fm(t,n,u,e,l,s);return d.catch(e=>e).then(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wm;if(o.validatePromise===a){o.validatePromise=null;const t=[],n=[];e.forEach?.(e=>{let{rule:{warningOnly:r},errors:o=wm}=e;r?n.push(...o):t.push(...o)}),o.errors=t,o.warnings=n,o.triggerMetaEvent(),o.reRender()}}),d});return o||(this.validatePromise=a,this.dirty=!0,this.errors=wm,this.warnings=Sm,this.triggerMetaEvent(),this.reRender()),a};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||void 0!==this.props.initialValue)return!0;const{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(Op);return void 0!==t(this.getNamePath())};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>{this.prevValidating=this.isFieldValidating();return{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:null===this.validatePromise}};getOnlyChild=e=>{if("function"===typeof e){const t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}const t=c(e);return 1===t.length&&r.isValidElement(t[0])?{child:t[0],isFunction:!1}:{child:t,isFunction:!1}};getValue=e=>{const{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return W(e||t(!0),n)};getControlled=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{name:n,trigger:r="onChange",validateTrigger:o,getValueFromEvent:i,normalize:a,valuePropName:l="value",getValueProps:s,fieldContext:c}=e.props,u=void 0!==o?o:c.validateTrigger,d=e.getNamePath(),{getInternalHooks:p,getFieldsValue:m}=c,{dispatch:f}=p(Op),h=e.getValue(),g=s||(e=>({[l]:e})),b=t[r],v=void 0!==n?g(h):{};const y={...t,...v};y[r]=function(){let t;e.touched=!0,e.dirty=!0,e.triggerMetaEvent();for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t=i?i(...r):function(e){const t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===typeof t.target&&e in t.target?t.target[e]:t}(l,...r),a&&(t=a(t,h,m(!0))),t!==h&&f({type:"updateValue",namePath:d,value:t}),b&&b(...r)};return Bp(u||[]).forEach(t=>{const n=y[t];y[t]=function(){n&&n(...arguments);const{rules:r}=e.props;r&&r.length&&f({type:"validateField",namePath:d,triggerName:t})}}),y}})();render(){const{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:o}=this.getOnlyChild(t);let i;return o?i=n:r.isValidElement(n)?i=r.cloneElement(n,this.getControlled(n.props)):(g(!n,"`children` of Field is not validate ReactElement."),i=n),r.createElement(r.Fragment,{key:e},i)}}const Nm=function(e){let{name:t,...n}=e;const o=r.useContext(Ap),i=r.useContext(Tp),a=void 0!==t?hm(t):void 0,l=n.isListField??!!i;let s="keep";return l||(s=`_${(a||[]).join("_")}`),r.createElement(km,xm({key:s,name:a,isListField:l},n,{fieldContext:o}))};const Im=function(e){let{name:t,initialValue:n,children:o,rules:i,validateTrigger:a,isListField:l}=e;const s=r.useContext(Ap),c=r.useContext(Tp),u=r.useRef({keys:[],id:0}).current,d=r.useMemo(()=>[...hm(s.prefixName)||[],...hm(t)],[s.prefixName,t]),p=r.useMemo(()=>({...s,prefixName:d}),[s,d]),m=r.useMemo(()=>({getKey:e=>{const t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}),[u,d]);return"function"!==typeof o?(g(!1,"Form.List only accepts function as children."),null):r.createElement(Tp.Provider,{value:m},r.createElement(Ap.Provider,{value:p},r.createElement(Nm,{name:[],shouldUpdate:(e,t,n)=>{let{source:r}=n;return"internal"!==r&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:l??!!c},(e,t)=>{let{value:n=[],onChange:r}=e;const{getFieldValue:i}=s,a=()=>i(d||[])||[],l={add:(e,t)=>{const n=a();t>=0&&t<=n.length?(u.keys=[...u.keys.slice(0,t),u.id,...u.keys.slice(t)],r([...n.slice(0,t),e,...n.slice(t)])):(u.keys=[...u.keys,u.id],r([...n,e])),u.id+=1},remove:e=>{const t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((e,t)=>!n.has(t)),r(t.filter((e,t)=>!n.has(t))))},move(e,t){if(e===t)return;const n=a();e<0||e>=n.length||t<0||t>=n.length||(u.keys=ym(u.keys,e,t),r(ym(n,e,t)))}};let c=n||[];return Array.isArray(c)||(c=[]),o(c.map((e,t)=>{let 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}}),l,t)})))};const Mm="__@field_split__";function Pm(e){return e.map(e=>`${typeof e}:${e}`).join(Mm)}const Rm=class{kvs=(()=>new Map)();set(e,t){this.kvs.set(Pm(e),t)}get(e){return this.kvs.get(Pm(e))}getAsPrefix(e){const t=Pm(e),n=t+Mm,r=[],o=this.kvs.get(t);return void 0!==o&&r.push(o),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){const n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(Pm(e))}map(e){return[...this.kvs.entries()].map(t=>{let[n,r]=t;const o=n.split(Mm);return e({key:o.map(e=>{const[,t,n]=e.match(/^([^:]*):(.*)$/);return"number"===t?Number(n):n}),value:r})})}toJSON(){const e={};return this.map(t=>{let{key:n,value:r}=t;return e[n.join(".")]=r,null}),e}};class Om{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=(()=>new Cm(this))();constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===Op?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(g(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=G(e,this.store);this.prevWithoutPreserves?.map(n=>{let{key:r}=n;t=V(t,r,W(e,r))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{const e=new Rm;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{const t=W(this.initialValues,e);return e.length?G(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.watcherCenter.notify(t)}})();timeoutId=null;warningUnhooked=()=>{0};updateStore=e=>{this.store=e};getFieldEntities=(()=>{var e=this;return function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?e.fieldEntities.filter(e=>e.getNamePath().length):e.fieldEntities}})();getFieldsMap=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=new Rm;return e.getFieldEntities(t).forEach(e=>{const t=e.getNamePath();n.set(t,e)}),n}})();getFieldEntitiesForNamePathList=(()=>{var e=this;return function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return e.getFieldEntities(!0);const r=e.getFieldsMap(!0);return n?t.flatMap(e=>{const t=hm(e),n=r.getAsPrefix(t);return n.length?n:[{INVALIDATE_NAME_PATH:t}]}):t.map(e=>{const t=hm(e);return r.get(t)||{INVALIDATE_NAME_PATH:hm(e)}})}})();getFieldsValue=(e,t)=>{let n,r;if(this.warningUnhooked(),!0===e||Array.isArray(e)?(n=e,r=t):e&&"object"===typeof e&&(r=e.filter),!0===n&&!r)return this.store;const o=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),i=[],a=[];o.forEach(e=>{const t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.())a.push(t);else if(r){const n="getMeta"in e?e.getMeta():null;r(n)&&i.push(t)}else i.push(t)});let l=gm(this.store,i.map(hm));return a.forEach(e=>{W(l,e)||(l=V(l,e,[]))}),l};getFieldValue=e=>{this.warningUnhooked();const t=hm(e);return W(this.store,t)};getFieldsError=e=>{this.warningUnhooked();return this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:hm(e[n]),errors:[],warnings:[]})};getFieldError=e=>{this.warningUnhooked();const t=hm(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();const t=hm(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(()=>{var e=this;return function(){e.warningUnhooked();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const[o,i]=n;let a,l=!1;0===n.length?a=null:1===n.length?Array.isArray(o)?(a=o.map(hm),l=!1):(a=null,l=o):(a=o.map(hm),l=i);const s=e.getFieldEntities(!0),c=e=>e.isFieldTouched();if(!a)return l?s.every(e=>c(e)||e.isList()):s.some(c);const u=new Rm;a.forEach(e=>{u.set(e,[])}),s.forEach(e=>{const t=e.getNamePath();a.forEach(n=>{n.every((e,n)=>t[n]===e)&&u.update(n,t=>[...t,e])})});const d=e=>e.some(c),p=u.map(e=>{let{value:t}=e;return t});return l?p.every(d):p.some(d)}})();isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();const t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());const n=e.map(hm);return t.some(e=>{const t=e.getNamePath();return bm(n,t)&&e.isFieldValidating()})};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new Rm,r=e.getFieldEntities(!0);r.forEach(e=>{const{initialValue:t}=e.props,r=e.getNamePath();if(void 0!==t){const o=n.get(r)||new Set;o.add({entity:e,value:t}),n.set(r,o)}});let o;t.entities?o=t.entities:t.namePathList?(o=[],t.namePathList.forEach(e=>{const t=n.get(e);t&&o.push(...[...t].map(e=>e.entity))})):o=r,o.forEach(r=>{const{initialValue:o}=r.props;if(void 0!==o){const o=r.getNamePath();if(void 0!==e.getInitialValue(o))g(!1,`Form already set 'initialValues' with path '${o.join(".")}'. Field can not overwrite it.`);else{const i=n.get(o);if(i&&i.size>1)g(!1,`Multiple Field with path '${o.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(i){const n=e.getFieldValue(o);r.isListField()||t.skipExist&&void 0!==n||e.updateStore(V(e.store,o,[...i][0].value))}}}})}})();resetFields=e=>{this.warningUnhooked();const t=this.store;if(!e)return this.updateStore(G(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:"reset"}),void this.notifyWatch();const n=e.map(hm);n.forEach(e=>{const t=this.getInitialValue(e);this.updateStore(V(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:"reset"}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();const t=this.store,n=[];e.forEach(e=>{const{name:r,...o}=e,i=hm(r);n.push(i),"value"in o&&this.updateStore(V(this.store,i,o.value)),this.notifyObservers(t,[i],{type:"setField",data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{const t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,"originRCField",{value:!0}),n});initEntityValue=e=>{const{initialValue:t}=e.props;if(void 0!==t){const n=e.getNamePath();void 0===W(this.store,n)&&this.updateStore(V(this.store,n,t))}};isMergedPreserve=e=>(void 0!==e?e:this.preserve)??!0;registerField=e=>{var t=this;this.fieldEntities.push(e);const n=e.getNamePath();if(this.notifyWatch([n]),void 0!==e.props.initialValue){const t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(t=>t!==e),!t.isMergedPreserve(o)&&(!r||i.length>1)){const e=r?void 0:t.getInitialValue(n);if(n.length&&t.getFieldValue(n)!==e&&t.fieldEntities.every(e=>!vm(e.getNamePath(),n))){const r=t.store;t.updateStore(V(r,n,e,!0)),t.notifyObservers(r,[n],{type:"remove"}),t.triggerDependenciesUpdate(r,n)}}t.notifyWatch([n])}};dispatch=e=>{switch(e.type){case"updateValue":{const{namePath:t,value:n}=e;this.updateValue(t,n);break}case"validateField":{const{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}}};notifyObservers=(e,t,n)=>{if(this.subscribable){const r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(n=>{let{onStoreChange:o}=n;o(e,t,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{const n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t,...n]}),n};updateValue=(e,t)=>{const n=hm(e),r=this.store;this.updateStore(V(this.store,n,t)),this.notifyObservers(r,[n],{type:"valueUpdate",source:"internal"}),this.notifyWatch([n]);const o=this.triggerDependenciesUpdate(r,n),{onValuesChange:i}=this.callbacks;if(i){const e=gm(this.store,[n]);i(e,V(this.getFieldsValue(),n,W(e,n)))}this.triggerOnFieldsChange([n,...o])};setFieldsValue=e=>{this.warningUnhooked();const t=this.store;if(e){const t=G(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{const t=new Set,n=[],r=new Rm;this.getFieldEntities().forEach(e=>{const{dependencies:t}=e.props;(t||[]).forEach(t=>{const n=hm(t);r.update(n,function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})});const o=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);const r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),o(r))}})};return o(e),n};triggerOnFieldsChange=(e,t)=>{const{onFieldsChange:n}=this.callbacks;if(n){const r=this.getFields();if(t){const e=new Rm;t.forEach(t=>{let{name:n,errors:r}=t;e.set(n,r)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}const o=r.filter(t=>{let{name:n}=t;return bm(e,n)});o.length&&n(o,r)}};validateFields=(e,t)=>{let n,r;this.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(n=e,r=t):r=e;const o=!!n,i=o?n.map(hm):[],a=[...i],l=[],s=String(Date.now()),c=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{const t=e.getNamePath();if(o||(e.isList()&&i.some(e=>vm(e,t,!0))||a.push(t),i.push(t)),e.props.rules&&e.props.rules.length&&(!d||e.isFieldDirty())&&(c.add(t.join(s)),!o||bm(i,t,u))){const n=e.validateRules({validateMessages:{...um,...this.validateMessages},...r});l.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{const n=[],r=[];return e.forEach?.(e=>{let{rule:{warningOnly:t},errors:o}=e;t?r.push(...o):n.push(...o)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});const p=function(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((o,i)=>{e.forEach((e,a)=>{e.catch(e=>(t=!0,e)).then(e=>{n-=1,r[a]=e,n>0||(t&&i(r),o(r))})})}):Promise.resolve([])}(l);this.lastValidatePromise=p,p.catch(e=>e).then(e=>{const t=e.map(e=>{let{name:t}=e;return t});this.notifyObservers(this.store,t,{type:"validateFinish"}),this.triggerOnFieldsChange(t,e)});const m=p.then(()=>this.lastValidatePromise===p?Promise.resolve(this.getFieldsValue(a)):Promise.reject([])).catch(e=>{const t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(i),errorFields:t,outOfDate:this.lastValidatePromise!==p})});m.catch(e=>e);const f=i.filter(e=>c.has(e.join(s)));return this.triggerOnFieldsChange(f),m};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{const{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(n){console.error(n)}}).catch(e=>{const{onFinishFailed:t}=this.callbacks;t&&t(e)})}}const zm=function(e){const t=r.useRef(null),[,n]=r.useState({});if(!t.current)if(e)t.current=e;else{const e=new Om(()=>{n({})});t.current=e.getForm()}return[t.current]},Am=r.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Tm=e=>{let{validateMessages:t,onFormChange:n,onFormFinish:o,children:i}=e;const a=r.useContext(Am),l=r.useRef({});return r.createElement(Am.Provider,{value:{...a,validateMessages:{...a.validateMessages,...t},triggerFormChange:(e,t)=>{n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:(e,t)=>{o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(l.current={...l.current,[e]:t}),a.registerForm(e,t)},unregisterForm:e=>{const t={...l.current};delete t[e],l.current=t,a.unregisterForm(e)}}},i)},Bm=Am;function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(this,arguments)}const Dm=(e,t)=>{let{name:n,initialValues:o,fields:i,form:a,preserve:l,children:s,component:c="form",validateMessages:u,validateTrigger:d="onChange",onValuesChange:p,onFieldsChange:m,onFinish:f,onFinishFailed:h,clearOnDestroy:g,...b}=e;const v=r.useRef(null),y=r.useContext(Bm),[$]=zm(a),{useSubscribe:C,setInitialValues:x,setCallbacks:w,setValidateMessages:S,setPreserve:E,destroyForm:k}=$.getInternalHooks(Op);r.useImperativeHandle(t,()=>({...$,nativeElement:v.current})),r.useEffect(()=>(y.registerForm(n,$),()=>{y.unregisterForm(n)}),[y,$,n]),S({...y.validateMessages,...u}),w({onValuesChange:p,onFieldsChange:function(e){if(y.triggerFormChange(n,e),m){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];m(e,...r)}},onFinish:e=>{y.triggerFormFinish(n,e),f&&f(e)},onFinishFailed:h}),E(l);const N=r.useRef(null);let I;x(o,!N.current),N.current||(N.current=!0),r.useEffect(()=>()=>k(g),[]);const M="function"===typeof s;if(M){I=s($.getFieldsValue(!0),$)}else I=s;C(!M);const P=r.useRef(null);r.useEffect(()=>{(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==typeof e||"object"!==typeof t)return!1;const n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{const r=e[n],o=t[n];return"function"===typeof r&&"function"===typeof o||r===o})})(P.current||[],i||[])||$.setFields(i||[]),P.current=i},[i,$]);const R=r.useMemo(()=>({...$,validateTrigger:d}),[$,d]),O=r.createElement(Tp.Provider,{value:null},r.createElement(Ap.Provider,{value:R},I));return!1===c?O:r.createElement(c,Hm({},b,{ref:v,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),$.submit()},onReset:e=>{e.preventDefault(),$.resetFields(),b.onReset?.(e)}}),O)};function Lm(e){try{return JSON.stringify(e)}catch{return Math.random()}}const jm=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[o,i={}]=t,a=function(e){return e&&!!e._init}(i)?{form:i}:i,l=a.form,[s,c]=(0,r.useState)(()=>"function"===typeof o?o({}):void 0),u=(0,r.useMemo)(()=>Lm(s),[s]);(0,r.useRef)(u).current=u;const d=(0,r.useContext)(Ap),p=l||d,m=p&&p._init,{getFieldsValue:f,getInternalHooks:h}=p,{registerWatch:g}=h(Op),b=A((e,t)=>{const n=a.preserve?t??f(!0):e??f(),r="function"===typeof o?o(n):W(n,hm(o));Lm(s)!==Lm(r)&&c(r)}),v="function"===typeof o?o:JSON.stringify(o);return(0,r.useEffect)(()=>{m&&b()},[m,v]),(0,r.useEffect)(()=>{if(!m)return;return g((e,t)=>{b(e,t)})},[m]),s},Fm=r.forwardRef(Dm);Fm.FormProvider=Tm,Fm.Field=Nm,Fm.List=Im,Fm.useForm=zm,Fm.useWatch=jm;const Wm=Fm,_m=r.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),Vm=r.createContext(null),Xm=e=>{const t=Y(e,["prefixCls"]);return r.createElement(Tm,{...t})},Km=r.createContext({prefixCls:""}),qm=r.createContext({});const Gm=e=>{let{children:t,status:n,override:o}=e;const i=r.useContext(qm),a=r.useMemo(()=>{const e={...i};return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,o,i]);return r.createElement(qm.Provider,{value:a},t)},Ym=r.createContext(void 0),Um=e=>{const{space:t,form:n,children:o}=e;if(!xa(o))return null;let i=o;return n&&(i=r.createElement(Gm,{override:!0,status:!0},i)),t&&(i=r.createElement(uu,null,i)),i};const Qm=function(){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},Zm=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},Jm={},ef=(e,t)=>{if(!e&&(!1===e||!1===t||null===t))return!1;if(void 0===e&&void 0===t)return null;let n={closeIcon:"boolean"!==typeof t&&null!==t?t:void 0};return e&&"object"===typeof e&&(n={...n,...e}),n},tf=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jm,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Close";const i=ef(e?.closable,e?.closeIcon),a=ef(t?.closable,t?.closeIcon),l={closeIcon:r.createElement(gi,null),...n},s=((e,t,n)=>!1!==e&&(e?Qm(n,t,e):!1!==t&&(t?Qm(n,t):!!n.closable&&n)))(i,a,l),c="boolean"!==typeof s&&!!s?.disabled;if(!1===s)return[!1,null,c,{}];const[u,d]=((e,t,n)=>{const{closeIconRender:o}=t,{closeIcon:i,...a}=e;let l=i;const s=fa(a,!0);return xa(l)&&(o&&(l=o(l)),l=r.isValidElement(l)?r.cloneElement(l,{"aria-label":n,...l.props,...s}):r.createElement("span",{"aria-label":n,...s},l)),[l,s]})(s,l,o);return[!0,u,c,d]},nf=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jm;const[o]=Yc("global",ss.global);return r.useMemo(()=>tf(e,t,{closeIcon:r.createElement(gi,null),...n},o.close),[e,t,n,o.close])};function rf(e,t,n){return(0,r.useMemo)(()=>({...{trap:t??!0,focusTriggerAfterClose:n??!0},...e}),[e,t,n])}const of=e=>{const{prefixCls:t,className:n,style:o,size:i,shape:a}=e;const l=re({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),s=re({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),c=r.useMemo(()=>"number"===typeof i?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return r.createElement("span",{className:re(t,l,s,n),style:{...c,...o}})},af=new Bn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),lf=e=>({height:e,lineHeight:lt(e)}),sf=e=>({width:e,...lf(e)}),cf=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:af,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),uf=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...lf(e)}),df=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...sf(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...sf(o)},[`${t}${t}-sm`]:{...sf(i)}}},pf=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:n,...uf(t,l)},[`${r}-lg`]:{...uf(o,l)},[`${r}-sm`]:{...uf(i,l)}}},mf=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:o}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...sf(o(r).mul(2).equal())}},ff=e=>({[e.skeletonNodeCls]:{...mf(e)}}),hf=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...mf(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...sf(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},gf=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},bf=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...lf(e)}),vf=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal(),...bf(r,l)},...gf(e,r,n),[`${n}-lg`]:{...bf(o,l)},...gf(e,o,`${n}-lg`),[`${n}-sm`]:{...bf(i,l)},...gf(e,i,`${n}-sm`)}},yf=To("Skeleton",e=>{const{componentCls:t,calc:n}=e;return(e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonNodeCls:l,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:p,padding:m,marginSM:f,borderRadius:h,titleHeight:g,blockRadius:b,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:$}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:p,...sf(c)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...sf(u)},[`${n}-sm`]:{...sf(d)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:p,borderRadius:b,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:p,borderRadius:b,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:f,[`+ ${o}`]:{marginBlockStart:$}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...vf(e),...df(e),...pf(e),...ff(e),...hf(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 ${s}\n `]:{...cf(e)}}}})(ir(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),$f=e=>{const{prefixCls:t,className:n,classNames:o,rootClassName:i,active:a,style:l,styles:s,shape:c="circle",size:u,...d}=e,{getPrefixCls:p}=r.useContext(ye),m=p("skeleton",t),[f,h]=yf(m),g=ou(e=>u??e),b=re(m,`${m}-element`,{[`${m}-active`]:a},o?.root,n,i,f,h);return r.createElement("div",{className:b,style:s?.root},r.createElement(of,{prefixCls:`${m}-avatar`,className:o?.content,style:{...s?.content,...l},shape:c,size:g,...d}))},Cf=e=>{const{prefixCls:t,className:n,rootClassName:o,classNames:i,active:a,style:l,styles:s,block:c=!1,size:u,...d}=e,{getPrefixCls:p}=r.useContext(ye),m=p("skeleton",t),[f,h]=yf(m),g=ou(e=>u??e),b=re(m,`${m}-element`,{[`${m}-active`]:a,[`${m}-block`]:c},i?.root,n,o,f,h);return r.createElement("div",{className:b,style:s?.root},r.createElement(of,{prefixCls:`${m}-button`,className:i?.content,style:{...s?.content,...l},size:g,...d}))},xf=e=>{const{prefixCls:t,className:n,classNames:o,rootClassName:i,internalClassName:a,style:l,styles:s,active:c,children:u}=e,{getPrefixCls:d}=r.useContext(ye),p=d("skeleton",t),[m,f]=yf(p),h=re(p,`${p}-element`,{[`${p}-active`]:c},m,o?.root,n,i,f);return r.createElement("div",{className:h,style:s?.root},r.createElement("div",{className:re(o?.content,a||`${p}-node`),style:{...s?.content,...l}},u))},wf=e=>{const{getPrefixCls:t}=r.useContext(ye),n=t("skeleton",e.prefixCls);return r.createElement(xf,{...e,internalClassName:`${n}-image`},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},r.createElement("title",null,"Image placeholder"),r.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},Sf=e=>{const{prefixCls:t,className:n,classNames:o,rootClassName:i,active:a,block:l,style:s,styles:c,size:u,...d}=e,{getPrefixCls:p}=r.useContext(ye),m=p("skeleton",t),[f,h]=yf(m),g=ou(e=>u??e),b=re(m,`${m}-element`,{[`${m}-active`]:a,[`${m}-block`]:l},o?.root,n,i,f,h);return r.createElement("div",{className:b,style:c?.root},r.createElement(of,{prefixCls:`${m}-input`,className:o?.content,style:{...c?.content,...s},size:g,...d}))},Ef=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},kf=e=>{const{prefixCls:t,className:n,style:o,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>r.createElement("li",{key:n,style:{width:Ef(n,e)}}));return r.createElement("ul",{className:re(t,n),style:o},a)},Nf=e=>{let{prefixCls:t,className:n,width:o,style:i}=e;return r.createElement("h3",{className:re(t,n),style:{width:o,...i}})};function If(e){return e&&"object"===typeof e?e:{}}function Mf(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Pf(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Rf(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}const Of=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:i,classNames:a,style:l,styles:s,children:c,avatar:u=!1,title:d=!0,paragraph:p=!0,active:m,round:f}=e,{getPrefixCls:h,direction:g,className:b,style:v,classNames:y,styles:$}=xe("skeleton"),C=h("skeleton",t),[x,w]=yf(C),S={...e,avatar:u,title:d,paragraph:p},[E,k]=Ca([y,a],[$,s],{props:S});if(n||!("loading"in e)){const e=!!u,t=!!d,n=!!p;let a,s;if(e){const e={className:E.avatar,prefixCls:`${C}-avatar`,...Mf(t,n),...If(u),style:k.avatar};a=r.createElement("div",{className:re(E.header,`${C}-header`),style:k.header},r.createElement(of,{...e}))}if(t||n){let o,i;if(t){const t={className:E.title,prefixCls:`${C}-title`,...Pf(e,n),...If(d),style:k.title};o=r.createElement(Nf,{...t})}if(n){const n={className:E.paragraph,prefixCls:`${C}-paragraph`,...Rf(e,t),...If(p),style:k.paragraph};i=r.createElement(kf,{...n})}s=r.createElement("div",{className:re(E.section,`${C}-section`),style:k.section},o,i)}const c=re(C,{[`${C}-with-avatar`]:e,[`${C}-active`]:m,[`${C}-rtl`]:"rtl"===g,[`${C}-round`]:f},E.root,b,o,i,x,w);return r.createElement("div",{className:c,style:{...k.root,...v,...l}},a,s)}return c??null};Of.Button=Cf,Of.Avatar=$f,Of.Input=Sf,Of.Image=wf,Of.Node=xf;const zf=Of;function Af(){}const Tf=r.createContext({add:Af,remove:Af});function Bf(e){const t=r.useContext(Tf),n=r.useRef(null);return A(r=>{if(r){const o=e?r.querySelector(e):r;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}const Hf=Tf,Df=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,r.useContext)(ep);return r.createElement(Qd,{onClick:n,...e},t)},Lf=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:i}=(0,r.useContext)(ep);return r.createElement(Qd,{...bu(n),loading:e,onClick:i,...t},o)};function jf(e,t){return r.createElement("span",{className:`${e}-close-x`},t||r.createElement(gi,{className:`${e}-close-icon`}))}const Ff=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=Yc("Modal",ps()),p=t||d?.okText,m=o||d?.cancelText,f=r.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:p,cancelTextLocale:m,okType:n,onOk:a,onCancel:l}),[i,s,c,p,m,n,a,l]);let h;return"function"===typeof u||"undefined"===typeof u?(h=r.createElement(r.Fragment,null,r.createElement(Df,null),r.createElement(Lf,null)),"function"===typeof u&&(h=u(h,{OkBtn:Lf,CancelBtn:Df})),h=r.createElement(tp,{value:f},h)):h=u,r.createElement(yc,{disabled:!1},h)},Wf=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},_f=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r,antCls:o}=e,[i,a]=Do(o,"grid"),[,l]=Do(o,"col"),s={};for(let c=r;c>=0;c--)0===c?(s[`${n}${t}-${c}`]={display:"none"},s[`${n}-push-${c}`]={insetInlineStart:"auto"},s[`${n}-pull-${c}`]={insetInlineEnd:"auto"},s[`${n}${t}-push-${c}`]={insetInlineStart:"auto"},s[`${n}${t}-pull-${c}`]={insetInlineEnd:"auto"},s[`${n}${t}-offset-${c}`]={marginInlineStart:0},s[`${n}${t}-order-${c}`]={order:0}):(s[`${n}${t}-${c}`]=[{[i("display")]:"block",display:"block"},{display:a("display"),flex:`0 0 ${c/r*100}%`,maxWidth:c/r*100+"%"}],s[`${n}${t}-push-${c}`]={insetInlineStart:c/r*100+"%"},s[`${n}${t}-pull-${c}`]={insetInlineEnd:c/r*100+"%"},s[`${n}${t}-offset-${c}`]={marginInlineStart:c/r*100+"%"},s[`${n}${t}-order-${c}`]={order:c});return s[`${n}${t}-flex`]={flex:l(`${t.replace(/-/,"")}-flex`)},s})(e,t),Vf=To("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),Xf=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Kf=To("Grid",e=>{const t=ir(e,{gridColumns:24}),n=Xf(t);return delete n.xs,[Wf(t),_f(t,""),_f(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${lt(t)})`]:{..._f(e,n)}}))(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},()=>({})),qf=e=>({animationDuration:e,animationFillMode:"both"}),Gf=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 `]:{...qf(r),animationPlayState:"paused"},[`${o}${e}-leave`]:{...qf(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"}}},Yf=new Bn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Uf=new Bn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Qf=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Gf(r,Yf,Uf,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Zf=new Bn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Jf=new Bn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),eh=new Bn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),th=new Bn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nh=new Bn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),rh=new Bn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),oh=new Bn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ih=new Bn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ah=new Bn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),lh=new Bn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),sh=new Bn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ch=new Bn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),uh={zoom:{inKeyframes:Zf,outKeyframes:Jf},"zoom-big":{inKeyframes:eh,outKeyframes:th},"zoom-big-fast":{inKeyframes:eh,outKeyframes:th},"zoom-left":{inKeyframes:oh,outKeyframes:ih},"zoom-right":{inKeyframes:ah,outKeyframes:lh},"zoom-up":{inKeyframes:nh,outKeyframes:rh},"zoom-down":{inKeyframes:sh,outKeyframes:ch}},dh=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=uh[t];return[Gf(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 ph(e){return{position:e,inset:0}}const mh=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}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...ph("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...ph("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:Qf(e)}]},fh=e=>{const{componentCls:t,motionDurationMid:n}=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:`${lt(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...br(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${lt(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...vr(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{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","background-color"].map(e=>`${e} ${n}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:lt(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...yr(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${lt(e.borderRadiusLG)} ${lt(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:`${lt(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}-container,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},hh=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},gh=e=>{const{componentCls:t}=e,n=Xf(e),r={...n};delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(e=>({[`@media (min-width: ${lt(r[e])})`]:{width:`var(${o}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(le(Object.keys(n).map((e,t)=>{const r=Object.keys(n)[t-1];return r?{[`${o}${e}-width`]:`var(${o}${r}-width)`}:null})),[{width:`var(${o}xs-width)`}],le(i))}}},bh=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return ir(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()})},vh=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${lt(e.paddingMD)} ${lt(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${lt(e.padding)} ${lt(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${lt(e.paddingXS)} ${lt(e.padding)}`:0,footerBorderTop:e.wireframe?`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${lt(2*e.padding)} ${lt(2*e.padding)} ${lt(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),yh=To("Modal",e=>{const t=bh(e);return[fh(t),hh(t),mh(t),dh(t,"zoom"),gh(t)]},vh,{unitless:{titleLineHeight:!0}});let $h;const Ch=e=>{$h={x:e.pageX,y:e.pageY},setTimeout(()=>{$h=null},100)};T()&&window.document.documentElement&&document.documentElement.addEventListener("click",Ch,!0);const xh=e=>{const{prefixCls:t,className:n,rootClassName:o,open:i,wrapClassName:a,centered:l,getContainer:s,style:c,width:u=520,footer:d,classNames:p,styles:m,children:f,loading:h,confirmLoading:g,zIndex:b,mousePosition:v,onOk:y,onCancel:$,okButtonProps:C,cancelButtonProps:x,destroyOnHidden:S,destroyOnClose:E,panelRef:k=null,closable:N,mask:I,modalRender:M,maskClosable:P,focusTriggerAfterClose:R,focusable:O,...z}=e,{getPopupContainer:A,getPrefixCls:T,direction:B,className:H,style:D,classNames:L,styles:j,centered:F,cancelButtonProps:W,okButtonProps:_,mask:V}=xe("modal"),{modal:X}=r.useContext(ye),[K,q]=r.useMemo(()=>"boolean"===typeof N?[void 0,void 0]:[N?.afterClose,N?.onClose],[N]),G=T("modal",t),Y=T(),[U,Q,Z]=Wc(I,V,G,P),J=rf(O,U,R),ee=e=>{g||($?.(e),q?.())};const te=Ka(G),[ne,oe]=yh(G,te),ie=re(a,{[`${G}-centered`]:l??F,[`${G}-wrap-rtl`]:"rtl"===B}),ae=null===d||h?null:r.createElement(Ff,{...e,okButtonProps:{..._,...C},onOk:e=>{y?.(e),q?.()},cancelButtonProps:{...W,...x},onCancel:ee}),[le,se,ce,ue]=nf(Zm(e),Zm(X),{closable:!0,closeIcon:r.createElement(gi,{className:`${G}-close-icon`}),closeIconRender:e=>jf(G,e)}),de=!!le&&{disabled:ce,closeIcon:se,afterClose:K,...ue},pe=M?e=>r.createElement("div",{className:`${G}-render`},M(e)):void 0,me=Bf(`.${G}-${M?"render":"container"}`),fe=w(k,me),[he,ge]=Tl("Modal",b),be={...e,width:u,panelRef:k,focusTriggerAfterClose:J.focusTriggerAfterClose,focusable:J,mask:U,maskClosable:Z,zIndex:he},[ve,$e]=Ca([L,p,Q],[j,m],{props:be}),[Ce,we]=r.useMemo(()=>u&&"object"===typeof u?[void 0,u]:[u,void 0],[u]),Se=r.useMemo(()=>{const e={};return we&&Object.keys(we).forEach(t=>{const n=we[t];void 0!==n&&(e[`--${G}-${t}-width`]="number"===typeof n?`${n}px`:n)}),e},[G,we]);return r.createElement(Um,{form:!0,space:!0},r.createElement(Pl.Provider,{value:ge},r.createElement(Rp,{width:Ce,...z,zIndex:he,getContainer:void 0===s?A:s,prefixCls:G,rootClassName:re(ne,o,oe,te,ve.root),rootStyle:$e.root,footer:ae,visible:i,mousePosition:v??$h,onClose:ee,closable:de,closeIcon:se,transitionName:qc(Y,"zoom",e.transitionName),maskTransitionName:qc(Y,"fade",e.maskTransitionName),mask:U,maskClosable:Z,className:re(ne,n,H),style:{...D,...c,...Se},classNames:{...ve,wrapper:re(ve.wrapper,ie)},styles:$e,panelRef:fe,destroyOnHidden:S??E,modalRender:pe,focusTriggerAfterClose:J.focusTriggerAfterClose,focusTrap:J.trap},h?r.createElement(zf,{active:!0,title:!1,paragraph:{rows:4},className:`${G}-body-skeleton`}):f)))},wh=Ho(["Modal","confirm"],e=>(e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}},[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${lt(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${lt(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{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}}})(bh(e)),vh,{order:-1e3}),Sh=e=>{const{prefixCls:t,icon:n,okText:o,cancelText:i,confirmPrefixCls:a,type:l,okCancel:s,footer:c,locale:u,autoFocusButton:d,focusable:p,...m}=e;let f=n;if(!n&&null!==n)switch(l){case"info":f=r.createElement(xi,null);break;case"success":f=r.createElement(ui,null);break;case"error":f=r.createElement(mi,null);break;default:f=r.createElement(yi,null)}const h=s??"confirm"===l,g=r.useMemo(()=>{const e=p?.autoFocusButton||d;return e||null===e?e:"ok"},[d,p?.autoFocusButton]),[b]=Yc("Modal"),v=u||b,y=o||(h?v?.okText:v?.justOkText),$=i||v?.cancelText,{closable:C}=m,{onClose:x}=C&&"object"===typeof C?C:{},w=r.useMemo(()=>({autoFocusButton:g,cancelTextLocale:$,okTextLocale:y,mergedOkCancel:h,onClose:x,...m}),[g,$,y,h,x,m]),S=r.createElement(r.Fragment,null,r.createElement(np,null),r.createElement(rp,null)),E=xa(e.title)&&""!==e.title,k=xa(f),N=`${a}-body`;return r.createElement("div",{className:`${a}-body-wrapper`},r.createElement("div",{className:re(N,{[`${N}-has-title`]:E,[`${N}-no-icon`]:!k})},f,r.createElement("div",{className:`${a}-paragraph`},E&&r.createElement("span",{className:`${a}-title`},e.title),r.createElement("div",{className:`${a}-content`},e.content))),void 0===c||"function"===typeof c?r.createElement(tp,{value:w},r.createElement("div",{className:`${a}-btns`},"function"===typeof c?c(S,{OkBtn:rp,CancelBtn:np}):S)):c,r.createElement(wh,{prefixCls:t}))},Eh=e=>{const{close:t,zIndex:n,maskStyle:o,direction:i,prefixCls:a,wrapClassName:l,rootPrefixCls:s,bodyStyle:c,closable:u=!1,onConfirm:d,styles:p,title:m,mask:f,maskClosable:h,okButtonProps:g,cancelButtonProps:b}=e,{cancelButtonProps:v,okButtonProps:y}=xe("modal");const $=`${a}-confirm`,C=e.width||416,x=e.style||{},w=re($,`${$}-${e.type}`,{[`${$}-rtl`]:"rtl"===i},e.className),S=r.useMemo(()=>{const e=Fc(f,h);return e.closable??(e.closable=!1),e},[f,h]),[,E]=Ao(),k=r.useMemo(()=>void 0!==n?n:E.zIndexPopupBase+Ol,[n,E]);return r.createElement(xh,{...e,className:w,wrapClassName:re({[`${$}-centered`]:!!e.centered},l),onCancel:()=>{t?.({triggerCancel:!0}),d?.(!1)},title:m,footer:null,transitionName:qc(s||"","zoom",e.transitionName),maskTransitionName:qc(s||"","fade",e.maskTransitionName),mask:S,style:x,styles:{body:c,mask:o,...p},width:C,zIndex:k,closable:u},r.createElement(Sh,{...e,confirmPrefixCls:$,okButtonProps:{...y,...g},cancelButtonProps:{...v,...b}}))};const kh=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:i}=e;return r.createElement(jc,{prefixCls:t,iconPrefixCls:n,direction:o,theme:i},r.createElement(Eh,{...e}))},Nh=[];let Ih="";function Mh(){return Ih}const Ph=e=>{const{prefixCls:t,getContainer:n,direction:o}=e,i=ps(),a=(0,r.useContext)(ye),l=Mh()||a.getPrefixCls(),s=t||`${l}-modal`;let c=n;return!1===c&&(c=void 0),r.createElement(kh,{...e,rootPrefixCls:l,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:o??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function Rh(e){const t=Hc();const n=document.createDocumentFragment();let o,i={...e,close:s,open:!0};function a(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];r.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...r.slice(1));for(let e=0;e<Nh.length;e++){if(Nh[e]===s){Nh.splice(e,1);break}}Ql(n).then(()=>{})}const l=e=>{clearTimeout(o),o=setTimeout(()=>{const o=t.getPrefixCls(void 0,Mh()),i=t.getIconPrefixCls(),a=t.getTheme(),l=r.createElement(Ph,{...e});Ul(r.createElement(jc,{prefixCls:o,iconPrefixCls:i,theme:a},"function"===typeof t.holderRender?t.holderRender(l):l),n)})};function s(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i={...i,open:!1,afterClose:()=>{"function"===typeof e.afterClose&&e.afterClose(),a.apply(this,n)}},l(i)}return l(i),Nh.push(s),{destroy:s,update:function(e){i="function"===typeof e?e(i):{...i,...e},l(i)}}}function Oh(e){return{...e,type:"warning"}}function zh(e){return{...e,type:"info"}}function Ah(e){return{...e,type:"success"}}function Th(e){return{...e,type:"error"}}function Bh(e){return{...e,type:"confirm"}}const Hh=r.forwardRef((e,t)=>{const{afterClose:n,config:o,...i}=e,[a,l]=r.useState(!0),[s,c]=r.useState(o),{direction:u,getPrefixCls:d}=r.useContext(ye),p=d("modal"),m=d(),f=function(){l(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.some(e=>e?.triggerCancel)&&s.onCancel?.(()=>{},...t.slice(1))};r.useImperativeHandle(t,()=>({destroy:f,update:e=>{c(t=>{const n="function"===typeof e?e(t):e;return{...t,...n}})}}));const h=s.okCancel??"confirm"===s.type,[g]=Yc("Modal",ss.Modal);return r.createElement(kh,{prefixCls:p,rootPrefixCls:m,...s,close:f,open:a,afterClose:()=>{n(),s.afterClose?.()},okText:s.okText||(h?g?.okText:g?.justOkText),direction:s.direction||u,cancelText:s.cancelText||g?.cancelText,...i})}),Dh=Hh;let Lh=0;const jh=r.memo(r.forwardRef((e,t)=>{const[n,o]=(()=>{const[e,t]=r.useState([]);return[e,r.useCallback(e=>(t(t=>[].concat(le(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return r.useImperativeHandle(t,()=>({patchElement:o}),[o]),r.createElement(r.Fragment,null,n)}));const Fh=function(){const e=r.useRef(null),[t,n]=r.useState([]);r.useEffect(()=>{if(t.length){le(t).forEach(e=>{e()}),n([])}},[t]);const o=r.useCallback(t=>function(o){Lh+=1;const i=r.createRef();let a;const l=new Promise(e=>{a=e});let s,c=!1;const u=r.createElement(Dh,{key:`modal-${Lh}`,config:t(o),ref:i,afterClose:()=>{s?.()},isSilent:()=>c,onConfirm:e=>{a(e)}});s=e.current?.patchElement(u),s&&Nh.push(s);const d={destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(le(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(le(e),[t]))},then:e=>(c=!0,l.then(e))};return d},[]);return[r.useMemo(()=>({info:o(zh),success:o(Ah),error:o(Th),warning:o(Oh),confirm:o(Bh)}),[o]),r.createElement(jh,{key:"modal-holder",ref:e})]},Wh=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Bn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Bn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Bn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new Bn("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},_h=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Vh={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Xh=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return{[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...t}},Kh=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return t},qh=e=>{const{componentCls:t}=e;return{[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute",...Xh(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...Kh(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},..._h.map(t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Vh[t]]:{value:0,_skip_check_:!0}}}}})(e,t)).reduce((e,t)=>({...e,...t}),{})}},Gh=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:m,notificationMarginEdge:f,progressBg:h,notificationProgressHeight:g,fontSize:b,lineHeight:v,width:y,notificationIconSize:$,colorText:C,colorSuccessBg:x,colorErrorBg:w,colorInfoBg:S,colorWarningBg:E,motionDurationMid:k}=e,N=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:p,borderRadius:a,boxShadow:r,[N]:{padding:m,width:y,maxWidth:`calc(100vw - ${lt(e.calc(f).mul(2).equal())})`,lineHeight:v,wordWrap:"break-word",borderRadius:a,overflow:"hidden","&-success":x?{background:x}:{},"&-error":w?{background:w}:{},"&-info":S?{background:S}:{},"&-warning":E?{background:E}:{}},[`${N}-title`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${N}-description`]:{fontSize:b,color:C,marginTop:e.marginXS},[`${N}-closable ${N}-title`]:{paddingInlineEnd:e.paddingLG},[`${N}-with-icon ${N}-title`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add($).equal(),fontSize:o},[`${N}-with-icon ${N}-description`]:{marginInlineStart:e.calc(e.marginSM).add($).equal(),fontSize:b},[`${N}-icon`]:{position:"absolute",fontSize:$,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${N}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:["color","background-color"].map(e=>`${e} ${k}`).join(", "),display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...yr(e)},[`${N}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${lt(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:h},"&::-webkit-progress-value":{borderRadius:a,background:h}},[`${N}-actions`]:{float:"right",marginTop:e.marginSM}}},Yh=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Bn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:{...br(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}}},{[t]:{[`${a}-wrapper`]:Gh(e)}}]},Uh=e=>({zIndexPopup:e.zIndexPopupBase+Ol+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),Qh=e=>{const t=e.paddingMD,n=e.paddingLG;return ir(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${lt(e.paddingMD)} ${lt(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2})},Zh=To("Notification",e=>{const t=Qh(e);return[Yh(t),Wh(t),qh(t)]},Uh),Jh=Ho(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=Qh(e);return{[`${t}-pure-panel`]:{...Gh(n),width:n.width,maxWidth:`calc(100vw - ${lt(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0}}},Uh);r.createElement(xi,null),r.createElement(ui,null),r.createElement(mi,null),r.createElement(yi,null),r.createElement(kl,null);function eg(e,t){return null===t||!1===t?null:t||r.createElement(gi,{className:`${e}-close-icon`})}const tg={success:ui,info:xi,error:mi,warning:yi},ng=e=>{const{prefixCls:t,icon:n,type:o,title:i,description:a,actions:l,role:s="alert",styles:c,classNames:u}=e;let d=null;return n?d=r.createElement("span",{className:re(`${t}-icon`,u.icon),style:c.icon},n):o&&(d=r.createElement(tg[o]||null,{className:re(`${t}-icon`,u.icon,`${t}-icon-${o}`),style:c.icon})),r.createElement("div",{className:re({[`${t}-with-icon`]:d}),role:s},d,r.createElement("div",{className:re(`${t}-title`,u.title),style:c.title},i),a&&r.createElement("div",{className:re(`${t}-description`,u.description),style:c.description},a),l&&r.createElement("div",{className:re(`${t}-actions`,u.actions),style:c.actions},l))},rg=e=>{const{prefixCls:t,icon:n,type:o,message:i,title:a,description:l,btn:s,actions:c,closeIcon:u,className:d,style:p,styles:m,classNames:f,closable:h,...g}=e,{getPrefixCls:b,className:v,style:y,classNames:$,styles:C}=xe("notification"),[x,w]=Ca([$,f],[C,m],{props:e}),{notification:S}=r.useContext(ye),E=c??s;const k=a??i,N=t||b("notification"),I=`${N}-notice`,M=Ka(N),[P,R]=Zh(N,M),[O,z,,A]=nf(Zm(e),Zm(S),{closable:!0,closeIcon:r.createElement(gi,{className:`${N}-close-icon`}),closeIconRender:e=>eg(N,e)}),T=!!O&&{onClose:h&&"object"===typeof h?h?.onClose:void 0,closeIcon:z,...A};return r.createElement("div",{className:re(`${I}-pure-panel`,P,d,R,M,x.root),style:w.root},r.createElement(Jh,{prefixCls:N}),r.createElement(ml,{style:{...y,...p},...g,prefixCls:N,eventKey:"pure",duration:null,closable:T,className:re(d,v),content:r.createElement(ng,{classNames:x,styles:w,prefixCls:I,icon:n,type:o,title:k,description:l,actions:E})}))};const og=4.5,ig=e=>{let{children:t,prefixCls:n}=e;const o=Ka(n),[i,a]=Zh(n,o);return r.createElement(hl,{classNames:{list:re(i,a,o)}},t)},ag=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(ig,{prefixCls:n,key:o},e)},lg=r.forwardRef((e,t)=>{const{top:n,bottom:o,prefixCls:i,getContainer:a,maxCount:l,rtl:s,onAllRemoved:c,stack:u,duration:d=og,pauseOnHover:p=!0,showProgress:m}=e,{getPrefixCls:f,getPopupContainer:h,direction:g}=xe("notification"),{notification:b}=(0,r.useContext)(ye),[,v]=Ao(),y=i||f("notification"),$=(0,r.useMemo)(()=>"number"===typeof d&&d>0&&d,[d]),[C,x]=wl({prefixCls:y,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,n??24,o??24),className:()=>re({[`${y}-rtl`]:s??"rtl"===g}),motion:()=>function(e){return{motionName:`${e}-fade`}}(y),closable:{closeIcon:eg(y)},duration:$,getContainer:()=>a?.()||h?.()||document.body,maxCount:l,pauseOnHover:p,showProgress:m,onAllRemoved:c,renderNotifications:ag,stack:!1!==u&&{threshold:"object"===typeof u?u?.threshold:void 0,offset:8,gap:v.margin}}),[w,S]=Ca([b?.classNames,e?.classNames],[b?.styles,e?.styles],{props:e});return r.useImperativeHandle(t,()=>({...C,prefixCls:y,notification:b,classNames:w,styles:S})),x});function sg(e){const t=r.useRef(null),{notification:n}=(ll("Notification"),r.useContext(ye)),o=r.useMemo(()=>{const o=o=>{if(!t.current)return;const{open:i,prefixCls:a,notification:l,classNames:s,styles:c}=t.current,u=l?.className||{},d=l?.style||{},p=`${a}-notice`,{title:m,message:f,description:h,icon:g,type:b,btn:v,actions:y,className:$,style:C,role:x="alert",closeIcon:w,closable:S,classNames:E={},styles:k={},...N}=o;const I=m??f,M=y??v,P=eg(p,function(e,t,n){return"undefined"!==typeof e?e:"undefined"!==typeof t?.closeIcon?t.closeIcon:n?.closeIcon}(w,e,l)),[R,O,,z]=tf(Zm({...e||{},...o}),Zm(n),{closable:!0,closeIcon:P}),A=!!R&&{onClose:S&&"object"===typeof S?S.onClose:void 0,closeIcon:O,...z},T=$a(E,{props:o}),B=$a(k,{props:o}),H=ha(void 0,s,T),D=ba(c,B);return i({placement:e?.placement??"topRight",...N,content:r.createElement(ng,{prefixCls:p,icon:g,type:b,title:I,description:h,actions:M,role:x,classNames:H,styles:D}),className:re({[`${p}-${b}`]:b},$,u,H.root),style:{...d,...D.root,...C},closable:A})},i={open:o,destroy:e=>{void 0!==e?t.current?.close(e):t.current?.destroy()}};return["success","info","warning","error"].forEach(e=>{i[e]=t=>o({...t,type:e})}),i},[e,n]);return[o,r.createElement(lg,{key:"notification-holder",...e,ref:t})]}function cg(e){return sg(e)}const ug=r.createContext({}),dg=r.createContext({message:{},notification:{},modal:{}}),pg=To("App",e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({}));const mg=e=>{const{prefixCls:t,children:n,className:o,rootClassName:i,message:a,notification:l,style:s,component:c="div"}=e,{direction:u,getPrefixCls:d,className:p,style:m}=xe("app"),f=d("app",t),[h,g]=pg(f),b=re(h,f,o,i,g,{[`${f}-rtl`]:"rtl"===u}),v=(0,r.useContext)(ug),y=r.useMemo(()=>({message:{...v.message,...a},notification:{...v.notification,...l}}),[a,l,v.message,v.notification]),[$,C]=ql(y.message),[x,w]=cg(y.notification),[S,E]=Fh(),k=r.useMemo(()=>({message:$,notification:x,modal:S}),[$,x,S]);ll("App")(!(g&&!1===c),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const N=!1===c?r.Fragment:c,I={className:re(p,b),style:{...m,...s}};return r.createElement(dg.Provider,{value:k},r.createElement(ug.Provider,{value:y},r.createElement(N,{...!1===c?void 0:I},E,C,w,n)))},fg=()=>r.useContext(dg),hg=mg;hg.useApp=fg;const gg=hg;function bg(e){return t=>r.createElement(jc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,{...t}))}const vg=(e,t,n,o,i)=>bg(a=>{const{prefixCls:l,style:s}=a,c=r.useRef(null),[u,d]=r.useState(0),[p,m]=r.useState(0),[f,h]=F(!1,a.open),{getPrefixCls:g}=r.useContext(ye),b=g(o||"select",l);r.useEffect(()=>{if(h(!0),"undefined"!==typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;d(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{const n=i?`.${i(b)}`:`.${b}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[b]);let v={...a,style:{...s,margin:0},open:f,getPopupContainer:()=>c.current};n&&(v=n(v)),t&&Object.assign(v,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:u,position:"relative",minWidth:p};return r.createElement("div",{ref:c,style:y},r.createElement(e,{...v}))}),yg=r.createContext(null);function $g(){return r.useContext(yg)}function Cg(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xg.apply(this,arguments)}const wg=r.forwardRef((e,t)=>{const{prefixCls:n,disabled:o,visible:i,children:a,popupElement:l,animation:s,transitionName:c,popupStyle:u,popupClassName:d,direction:p="ltr",placement:m,builtinPlacements:f,popupMatchSelectWidth:h,popupRender:g,popupAlign:b,getPopupContainer:v,empty:y,onPopupVisibleChange:$,onPopupMouseEnter:C,onPopupMouseDown:x,onPopupBlur:w,...S}=e,E=`${n}-dropdown`;let k=l;g&&(k=g(l));const N=r.useMemo(()=>f||(e=>{const 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),[f,h]),I=s?`${E}-${s}`:c,M="number"===typeof h,P=r.useMemo(()=>M?null:!1===h?"minWidth":"width",[h,M]);let R=u;M&&(R={...u,width:h});const O=r.useRef(null);return r.useImperativeHandle(t,()=>({getPopupElement:()=>O.current?.popupElement})),r.createElement(fc,xg({},S,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:m||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:E,popupMotion:{motionName:I},popup:r.createElement("div",{onMouseEnter:C,onMouseDown:x,onBlur:w},k),ref:O,stretch:P,popupAlign:b,popupVisible:i,getPopupContainer:v,popupClassName:re(d,{[`${E}-empty`]:y}),popupStyle:R,onPopupVisibleChange:$}),a)});const Sg=wg;function Eg(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),null!==n&&void 0!==n?n:void 0!==r?r:`rc-index-key-${t}`}function kg(e){return"undefined"!==typeof e&&!Number.isNaN(e)}function Ng(e,t){const{label:n,value:r,options:o,groupLabel:i}=e||{},a=n||(t?"children":"label");return{label:a,value:r||"value",options:o||"options",groupLabel:i||a}}function Ig(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get:()=>(g(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t)}),t}function Mg(e){const{visible:t,values:n}=e;if(!t)return null;return r.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,50).map(e=>{let{label:t,value:n}=e;return["number","string"].includes(typeof t)?t:n}).join(", ")}`,n.length>50?", ...":null)}const Pg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;t<=0?e():(e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)})(()=>{Pg(e,t-1)})};function Rg(e){const{children:t,...n}=e;return t?r.createElement("div",n,t):null}const Og=r.createContext(null);function zg(){return r.useContext(Og)}const Ag=Og,Tg=r.forwardRef((e,t)=>{const{onChange:n,onKeyDown:o,onBlur:i,style:a,syncWidth:l,value:s,className:c,autoComplete:u,...d}=e,{prefixCls:p,mode:m,onSearch:f,onSearchSubmit:h,onInputBlur:g,autoFocus:b,tokenWithEnter:v,placeholder:y,components:{input:$="input"}}=zg(),{id:C,classNames:x,styles:S,open:E,activeDescendantId:k,role:N,disabled:I}=$g()||{},M=re(`${p}-input`,x?.input,c),P=r.useRef(!1),R=r.useRef(null),O=r.useRef(null);r.useImperativeHandle(t,()=>O.current);const[z,A]=r.useState(void 0);L(()=>{const e=O.current;if(l&&e){e.style.width="0px";const t=e.scrollWidth;A(t),e.style.width=""}},[l,s]);const T={id:C,type:"combobox"===m?"text":"search",...d,ref:O,style:{...S?.input,...a,"--select-input-width":z},autoFocus:b,autoComplete:u||"off",className:M,disabled:I,value:s||"",onChange:e=>{let{value:t}=e.target;if(v&&R.current&&/[\r\n]/.test(R.current)){const e=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(e,R.current)}R.current=null,f&&f(t,!0,P.current),n?.(e)},onKeyDown:e=>{const{key:t}=e,{value:n}=e.currentTarget;"Enter"!==t||"tags"!==m||E||P.current||!h||h(n),o?.(e)},onBlur:e=>{g?.(),i?.(e)},onPaste:e=>{const{clipboardData:t}=e,n=t?.getData("text");R.current=n||""},onCompositionStart:()=>{P.current=!0},onCompositionEnd:e=>{if(P.current=!1,"combobox"!==m){const{value:t}=e.currentTarget;f?.(t,!0,!1)}},role:N||"combobox","aria-expanded":E||!1,"aria-haspopup":"listbox","aria-owns":E?`${C}_list`:void 0,"aria-autocomplete":"list","aria-controls":E?`${C}_list`:void 0,"aria-activedescendant":E?k:void 0};if(r.isValidElement($)){const t=$.props||{},n={placeholder:e.placeholder||y,...T,...t};return Object.keys(t).forEach(e=>{const r=t[e];"function"===typeof r&&(n[e]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];r(...n),T[e]?.(...n)})}),n.ref=w($.ref,T.ref),r.cloneElement($,n)}const B=$;return r.createElement(B,T)}),Bg=Tg;function Hg(e){const{prefixCls:t,placeholder:n,displayValues:o}=zg(),{classNames:i,styles:a}=$g(),{show:l=!0}=e;return o.length?null:r.createElement("div",{className:re(`${t}-placeholder`,i?.placeholder),style:{visibility:l?"visible":"hidden",...a?.placeholder}},n)}const Dg=r.createContext(null);function Lg(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"undefined"!==typeof window&&window.document&&window.document.documentElement;function jg(e){return["string","number"].includes(typeof e)}function Fg(e){let t;return e&&(jg(e.title)?t=e.title.toString():jg(e.label)&&(t=e.label.toString())),t}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wg.apply(this,arguments)}const _g=r.forwardRef((e,t)=>{let{inputProps:n}=e;const{prefixCls:o,searchValue:i,activeValue:a,displayValues:l,maxLength:s,mode:c,components:u}=zg(),{triggerOpen:d,title:p,showSearch:m,classNames:f,styles:h}=$g(),g=r.useContext(Dg),[b,v]=r.useState(!1),y="combobox"===c,$=l[0],C=r.useMemo(()=>y&&a&&!b&&d?a:m?i:"",[y,a,b,d,i,m]),[x,w,S,E]=r.useMemo(()=>{let e,t,n;if($&&g?.flattenOptions){const r=g.flattenOptions.find(e=>e.value===$.value);r?.data&&(e=r.data.className,t=r.data.style,n=Fg(r.data))}$&&!n&&(n=Fg($)),void 0!==p&&(n=p);return[e,t,n,!!e||!!t]},[$,g?.flattenOptions,p]);r.useEffect(()=>{y&&v(!1)},[y,a]);const k=$&&null!==$.label&&void 0!==$.label&&""!==String($.label).trim(),N=!(y&&u?.input)?$?E?r.createElement("div",{className:re(`${o}-content-value`,x),style:{...C?{visibility:"hidden"}:{},...w},title:S},$.label):$.label:r.createElement(Hg,{show:!C}):null;return r.createElement("div",{className:re(`${o}-content`,k&&`${o}-content-has-value`,C&&`${o}-content-has-search-value`,E&&`${o}-content-has-option-style`,f?.content),style:h?.content,title:E?void 0:S},N,r.createElement(Bg,Wg({ref:t},n,{value:C,maxLength:"combobox"===c?s:void 0,onChange:e=>{v(!0),n.onChange?.(e)}})))}),Vg=_g,Xg=void 0;const Kg=r.forwardRef(function(e,t){const{prefixCls:n,invalidate:o,item:i,renderItem:a,responsive:l,responsiveDisabled:s,registerSize:c,itemKey:u,className:d,style:p,children:m,display:f,order:h,component:g="div",...b}=e,v=l&&!f;function y(e){c(u,e)}r.useEffect(()=>()=>{y(null)},[]);const $=a&&i!==Xg?a(i,{index:h}):m;let C;o||(C={opacity:v?0:1,height:v?0:Xg,overflowY:v?"hidden":Xg,order:l?h:Xg,pointerEvents:v?"none":Xg,position:v?"absolute":Xg});const x={};v&&(x["aria-hidden"]=!0);let w=r.createElement(g,ed({className:re(!o&&n,d),style:{...C,...p}},x,b,{ref:t}),$);return l&&(w=r.createElement(te,{onResize:e=>{let{offsetWidth:t}=e;y(t)},disabled:s},w)),w});const qg=Kg;function Gg(){const e=r.useRef(null);return t=>{e.current||(e.current=[],function(e){if("undefined"===typeof MessageChannel)fe(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}(()=>{(0,sl.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Yg(e,t){const[n,o]=r.useState(t);return[n,A(t=>{e(()=>{o(t)})})]}const Ug=r.createContext(null),Qg=r.forwardRef((e,t)=>{const n=r.useContext(Ug);if(!n){const{component:n="div",...o}=e;return r.createElement(n,ed({},o,{ref:t}))}const{className:o,...i}=n,{className:a,...l}=e;return r.createElement(Ug.Provider,{value:null},r.createElement(qg,ed({ref:t,className:re(o,a)},i,l)))});const Zg=Qg,Jg="responsive",eb="invalidate";function tb(e){return`+ ${e.length} ...`}const nb=r.forwardRef(function(e,t){const{prefixCls:n="rc-overflow",data:o=[],renderItem:i,renderRawItem:a,itemKey:l,itemWidth:s=10,ssr:c,style:u,className:d,maxCount:p,renderRest:m,renderRawRest:f,prefix:h,suffix:g,component:b="div",itemComponent:v,onVisibleChange:y,...$}=e,C="full"===c,x=Gg(),[w,S]=Yg(x,null),E=w||0,[k,N]=Yg(x,new Map),[I,M]=Yg(x,0),[P,R]=Yg(x,0),[O,z]=Yg(x,0),[A,T]=Yg(x,0),[B,H]=(0,r.useState)(null),[D,j]=(0,r.useState)(null),F=r.useMemo(()=>null===D&&C?Number.MAX_SAFE_INTEGER:D||0,[D,w]),[W,_]=(0,r.useState)(!1),V=`${n}-item`,X=Math.max(I,P),K=p===Jg,q=o.length&&K,G=p===eb,Y=q||"number"===typeof p&&o.length>p,U=(0,r.useMemo)(()=>{let e=o;return q?e=null===w&&C?o:o.slice(0,Math.min(o.length,E/s)):"number"===typeof p&&(e=o.slice(0,p)),e},[o,s,w,p,q]),Q=(0,r.useMemo)(()=>q?o.slice(F+1):o.slice(U.length),[o,U,q,F]),Z=(0,r.useCallback)((e,t)=>"function"===typeof l?l(e):(l&&e?.[l])??t,[l]),J=(0,r.useCallback)(i||(e=>e),[i]);function ee(e,t,n){(D!==e||void 0!==t&&t!==B)&&(j(e),n||(_(e<o.length-1),y?.(e)),void 0!==t&&H(t))}function ne(e,t){N(n=>{const r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function oe(e){return k.get(Z(U[e],e))}L(()=>{if(E&&"number"===typeof X&&U){let e=O+A;const t=U.length,n=t-1;if(!t)return void ee(0,null);for(let r=0;r<t;r+=1){let t=oe(r);if(C&&(t=t||0),void 0===t){ee(r-1,void 0,!0);break}if(e+=t,0===n&&e<=E||r===n-1&&e+oe(n)<=E){ee(n,null);break}if(e+X>E){ee(r-1,e-t-A+P);break}}g&&oe(0)+A>E&&H(null)}},[E,k,P,O,A,Z,U]);const ie=W&&!!Q.length;let ae={};null!==B&&q&&(ae={position:"absolute",left:B,top:0});const le={prefixCls:V,responsive:q,component:v,invalidate:G},se=a?(e,t)=>{const n=Z(e,t);return r.createElement(Ug.Provider,{key:n,value:{...le,order:t,item:e,itemKey:n,registerSize:ne,display:t<=F}},a(e,t))}:(e,t)=>{const n=Z(e,t);return r.createElement(qg,ed({},le,{order:t,key:n,item:e,renderItem:J,itemKey:n,registerSize:ne,display:t<=F}))},ce={order:ie?F:Number.MAX_SAFE_INTEGER,className:`${V}-rest`,registerSize:function(e,t){R(t),M(P)},display:ie},ue=m||tb,de=f?r.createElement(Ug.Provider,{value:{...le,...ce}},f(Q)):r.createElement(qg,ed({},le,ce),"function"===typeof ue?ue(Q):ue),pe=r.createElement(b,ed({className:re(!G&&n,d),style:u,ref:t},$),h&&r.createElement(qg,ed({},le,{responsive:K,responsiveDisabled:!q,order:-1,className:`${V}-prefix`,registerSize:function(e,t){z(t)},display:!0}),h),U.map(se),Y?de:null,g&&r.createElement(qg,ed({},le,{responsive:K,responsiveDisabled:!q,order:F,className:`${V}-suffix`,registerSize:function(e,t){T(t)},display:!0,style:ae}),g));return K?r.createElement(te,{onResize:function(e,t){S(t.clientWidth)},disabled:!q},pe):pe});nb.Item=Zg,nb.RESPONSIVE=Jg,nb.INVALIDATE=eb;const rb=nb,ob=e=>{const{className:t,style:n,customizeIcon:o,customizeIconProps:i,children:a,onMouseDown:l,onClick:s}=e,c="function"===typeof o?o(i):o;return r.createElement("span",{className:t,onMouseDown:e=>{e.preventDefault(),l?.(e)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==c?c:r.createElement("span",{className:re(t.split(/\s+/).map(e=>`${e}-icon`))},a))};function ib(){return ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ib.apply(this,arguments)}function ab(e){return e.key??e.value}const lb=e=>{e.preventDefault(),e.stopPropagation()},sb=r.forwardRef(function(e,t){let{inputProps:n}=e;const{prefixCls:o,displayValues:i,searchValue:a,mode:l,onSelectorRemove:s,removeIcon:c}=zg(),{disabled:u,showSearch:d,triggerOpen:p,rawOpen:m,toggleOpen:f,autoClearSearchValue:h,tagRender:g,maxTagPlaceholder:b,maxTagTextLength:v,maxTagCount:y,classNames:$,styles:C}=$g(),x=`${o}-selection-item`;let w=a;m||"multiple"!==l||!1===h||(w="");const S=d&&w||"",E=d&&!u,k=c??"\xd7",N=b??(e=>`+ ${e.length} ...`),I=g,M=(e,t,n,o,i)=>r.createElement("span",{title:Fg(e),className:re(x,{[`${x}-disabled`]:n},$?.item),style:C?.item},r.createElement("span",{className:re(`${x}-content`,$?.itemContent),style:C?.itemContent},t),o&&r.createElement(ob,{className:re(`${x}-remove`,$?.itemRemove),style:C?.itemRemove,onMouseDown:lb,onClick:i,customizeIcon:k},"\xd7")),P=(e,t,n,o,i,a,l)=>r.createElement("span",{onMouseDown:e=>{lb(e),f(!p)}},I({label:t,value:e,index:l?.index,disabled:n,closable:o,onClose:i,isMaxTag:!!a}));return r.createElement(rb,{prefixCls:`${o}-content`,className:$?.content,style:C?.content,prefix:!i.length&&!S&&r.createElement(Hg,null),data:i,renderItem:(e,t)=>{const{disabled:n,label:r,value:o}=e,i=!u&&!n;let a=r;if("number"===typeof v&&("string"===typeof r||"number"===typeof r)){const e=String(a);e.length>v&&(a=`${e.slice(0,v)}...`)}const l=t=>{t&&t.stopPropagation(),(e=>{s?.(e)})(e)};return"function"===typeof I?P(o,a,n,i,l,void 0,t):M(e,a,n,i,l)},renderRest:e=>{if(!i.length)return null;const t="function"===typeof N?N(e):N;return"function"===typeof I?P(void 0,t,!1,!1,void 0,!0):M({title:t},t,!1)},suffix:r.createElement(Bg,ib({ref:t,disabled:u,readOnly:!E},n,{value:S||"",syncWidth:!0})),itemKey:ab,maxCount:y})}),cb=r.forwardRef(function(e,t){const{multiple:n,onInputKeyDown:o,tabIndex:i}=zg(),a=$g(),{showSearch:l}=a,s={...fa(a,{aria:!0}),onKeyDown:o,readOnly:!l,tabIndex:i};return n?r.createElement(sb,{ref:t,inputProps:s}):r.createElement(Vg,{ref:t,inputProps:s})}),ub=cb;function db(){return db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},db.apply(this,arguments)}const pb=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],mb=r.forwardRef(function(e,t){const{prefixCls:n,className:o,style:i,prefix:a,suffix:l,clearIcon:s,children:c,multiple:u,displayValues:d,placeholder:p,mode:m,searchValue:f,onSearch:h,onSearchSubmit:g,onInputBlur:b,maxLength:y,autoFocus:$,onMouseDown:C,onClearMouseDown:x,onInputKeyDown:S,onSelectorRemove:E,tokenWithEnter:k,components:N,...I}=e,{triggerOpen:M,toggleOpen:P,showSearch:R,disabled:O,loading:z,classNames:T,styles:B}=$g(),H=r.useRef(null),D=r.useRef(null),L=A(e=>{const{which:t}=e,n=D.current instanceof HTMLTextAreaElement;if(n||!M||t!==ul.UP&&t!==ul.DOWN||e.preventDefault(),S&&S(e),n&&!M&&~[ul.UP,ul.DOWN,ul.LEFT,ul.RIGHT].indexOf(t))return;var r;e.ctrlKey||e.altKey||e.metaKey||(!(r=t)||[ul.ESC,ul.SHIFT,ul.BACKSPACE,ul.TAB,ul.WIN_KEY,ul.ALT,ul.META,ul.WIN_KEY_RIGHT,ul.CTRL,ul.SEMICOLON,ul.EQUALS,ul.CAPS_LOCK,ul.CONTEXT_MENU,ul.UP,ul.LEFT,ul.RIGHT,ul.F1,ul.F2,ul.F3,ul.F4,ul.F5,ul.F6,ul.F7,ul.F8,ul.F9,ul.F10,ul.F11,ul.F12].includes(r))||P(!0)});r.useImperativeHandle(t,()=>({focus:e=>{(D.current||H.current).focus?.(e)},blur:()=>{(D.current||H.current).blur?.()},nativeElement:v(H.current)}));const j=A(e=>{if(!O){const t=v(D.current);e.nativeEvent._ori_target=t;const n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();const r=M&&!u&&("combobox"===m||R)||M&&u&&n;e.nativeEvent._select_lazy?M&&P(!1):(D.current?.focus(),r||P())}C?.(e)}),{root:F}=N,W=Y(I,pb),_=fa(W,{aria:!0}),V=Object.keys(_),X={...e,onInputKeyDown:L};if(F){const e=F.props||{},t={...e,...W};return Object.keys(e).forEach(n=>{const r=e[n],o=W[n];"function"===typeof r&&"function"===typeof o&&(t[n]=function(){o(...arguments),r(...arguments)})}),r.isValidElement(F)?r.cloneElement(F,{...t,ref:w(F.ref,H)}):r.createElement(F,db({},t,{ref:H}))}return r.createElement(Ag.Provider,{value:X},r.createElement("div",db({},Y(W,V),{ref:H,className:o,style:i,onMouseDown:j}),r.createElement(Rg,{className:re(`${n}-prefix`,T?.prefix),style:B?.prefix},a),r.createElement(ub,{ref:D}),r.createElement(Rg,{className:re(`${n}-suffix`,{[`${n}-suffix-loading`]:z},T?.suffix),style:B?.suffix},l),s&&r.createElement(Rg,{className:re(`${n}-clear`,T?.clear),style:B?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,x?.(e)}},s),c))});function fb(){return fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fb.apply(this,arguments)}const hb=e=>"tags"===e||"multiple"===e,gb=r.forwardRef((e,t)=>{const{id:n,prefixCls:o,className:i,styles:a,classNames:l,showSearch:s,tagRender:c,showScrollBar:u="optional",direction:d,omitDomProps:p,displayValues:m,onDisplayValuesChange:f,emptyOptions:h,notFoundContent:g="Not Found",onClear:b,maxCount:y,placeholder:$,mode:C,disabled:x,loading:w,getInputElement:S,getRawInputElement:E,open:k,defaultOpen:N,onPopupVisibleChange:I,activeValue:M,onActiveValueChange:P,activeDescendantId:R,searchValue:O,autoClearSearchValue:z,onSearch:T,onSearchSplit:B,tokenSeparators:H,allowClear:D,prefix:L,suffix:j,suffixIcon:W,clearIcon:_,OptionList:V,animation:X,transitionName:K,popupStyle:q,popupClassName:G,popupMatchSelectWidth:Y,popupRender:U,popupAlign:Q,placement:Z,builtinPlacements:J,getPopupContainer:ee,showAction:te=[],onFocus:ne,onBlur:oe,onKeyUp:ie,onKeyDown:ae,onMouseDown:le,components:se,...ce}=e,ue=hb(C),de=r.useRef(null),pe=r.useRef(null),me=r.useRef(null),[fe,he]=r.useState(!1);r.useImperativeHandle(t,()=>({focus:de.current?.focus,blur:de.current?.blur,scrollTo:e=>me.current?.scrollTo(e),nativeElement:v(de.current)}));const ge=function(e,t,n){return r.useMemo(()=>{let{root:r,input:o}=e||{};return n&&(r=n()),t&&(o=t()),{root:r,input:o}},[e,t,n])}(se,S,E),be=r.useMemo(()=>{if("combobox"!==C)return O;const e=m[0]?.value;return"string"===typeof e||"number"===typeof e?String(e):""},[O,C,m]),ve="combobox"===C&&"function"===typeof S&&S()||null,ye=!g&&h,[$e,Ce,xe,we]=function(e,t,n,o){const[i,a]=(0,r.useState)(!1);(0,r.useEffect)(()=>{a(!0)},[]);const[l,s]=F(e,t),[c,u]=(0,r.useState)(!1),d=!!i&&l,p=o(d),m=(0,r.useRef)(0),f=A(e=>{n&&p!==e&&n(e),s(e)}),h=A(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{cancelFun:n}=t;m.current+=1;const r=m.current,o="boolean"===typeof e?e:!p;function i(){r!==m.current||n?.()||(f(o),u(!1))}u(!o),o?i():Pg(()=>{i()})});return[d,p,h,c]}(N||!1,k,I,e=>!x&&!ye&&e),Se=r.useMemo(()=>(H||[]).some(e=>["\n","\r\n"].includes(e)),[H]),Ee=(e,t,n)=>{if(ue&&kg(y)&&m.length>=y)return;let r=!0,o=e;P?.(null);const i=((e,t,n)=>{if(!t||!t.length)return null;let r=!1;const o=(e,t)=>{let[n,...i]=t;if(!n)return[e];const a=e.split(n);return r=r||a.length>1,a.reduce((e,t)=>[...e,...o(t,i)],[]).filter(Boolean)},i=o(e,t);return r?"undefined"!==typeof n?i.slice(0,n):i:null})(e,H,kg(y)?y-m.length:void 0),a=n?null:i;return"combobox"!==C&&a&&(o="",B?.(a),xe(!1),r=!1),T&&be!==o&&T(o,{source:t?"typing":"effect"}),e&&t&&r&&xe(!0),r};r.useEffect(()=>{$e||ue||"combobox"===C||Ee("",!1,!1)},[$e]),r.useEffect(()=>{x&&(xe(!1),he(!1))},[x,Ce]);const[ke,Ne]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;const t=r.useRef(null),n=r.useRef(null);return r.useEffect(()=>()=>{window.clearTimeout(n.current)},[]),[()=>t.current,function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}]}(),Ie=r.useRef(!1),Me=A(e=>{const t=m.filter(t=>t!==e);f(t,{type:"remove",values:[e]})}),Pe=()=>[v(de.current),pe.current?.getPopupElement()];!function(e,t,n,o){const i=A(r=>{if(o)return;let i=r.target;i.shadowRoot&&r.composed&&(i=r.composedPath()[0]||i),r._ori_target&&(i=r._ori_target),t&&!Cg(e(),i)&&n(!1)});r.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}(Pe,Ce,xe,!!ge.root);const Re=r.useRef(!1),Oe=()=>{Ce&&!Re.current&&xe(!1,{cancelFun:()=>Cg(Pe(),document.activeElement)})},ze=function(e){const{target:t}=e,n=pe.current?.getPopupElement();n?.contains(t)&&xe&&xe(!0);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];le?.(e,...o),Re.current=!0,Pg(()=>{Re.current=!1})},[,Ae]=r.useState({});let Te;ge.root&&(Te=e=>{xe(e)});const Be=r.useMemo(()=>({...e,notFoundContent:g,open:Ce,triggerOpen:Ce,rawOpen:$e,id:n,showSearch:s,multiple:ue,toggleOpen:xe,showScrollBar:u,styles:a,classNames:l,lockOptions:we}),[e,g,xe,n,s,ue,Ce,$e,u,a,l,we]),He=r.useMemo(()=>{const e=j??W;return"function"===typeof e?e({searchValue:be,open:Ce,focused:fe,showSearch:s,loading:w}):e},[j,W,be,Ce,fe,s,w]),{allowClear:De,clearIcon:Le}=function(e,t,n,o){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0;const s=(0,r.useMemo)(()=>"boolean"===typeof n?{allowClear:n}:n&&"object"===typeof n?n:{allowClear:!1},[n]);return(0,r.useMemo)(()=>{const e=!i&&!1!==s.allowClear&&(t.length||a)&&!("combobox"===l&&""===a);return{allowClear:e,clearIcon:e?s.clearIcon||o||"\xd7":null}},[s,o,i,t.length,a,l])}(o,m,D,_,x,be,C),je=r.createElement(V,{ref:me}),Fe=re(o,i,{[`${o}-focused`]:fe,[`${o}-multiple`]:ue,[`${o}-single`]:!ue,[`${o}-allow-clear`]:De,[`${o}-show-arrow`]:void 0!==He&&null!==He,[`${o}-disabled`]:x,[`${o}-loading`]:w,[`${o}-open`]:Ce,[`${o}-customize-input`]:ve,[`${o}-show-search`]:s});let We=r.createElement(mb,fb({},ce,{ref:de,prefixCls:o,className:Fe,focused:fe,prefix:L,suffix:He,clearIcon:Le,multiple:ue,mode:C,displayValues:m,placeholder:$,searchValue:be,activeValue:M,onSearch:Ee,onSearchSubmit:e=>{e&&e.trim()&&T(e,{source:"submit"})},onInputBlur:()=>{Ie.current=!1},onFocus:e=>{he(!0),x||(te.includes("focus")&&xe(!0),ne?.(e))},onBlur:e=>{he(!1),be&&("tags"===C?T(be,{source:"submit"}):"multiple"===C&&T("",{source:"blur"})),Oe(),x||oe?.(e)},onClearMouseDown:()=>{b?.(),de.current?.focus(),f([],{type:"clear",values:m}),Ee("",!1,!1)},onKeyDown:e=>{const t=ke(),{key:n}=e,r="Enter"===n,o=" "===n;if(r||o){const t="combobox"===C;(o&&!(t||s)||r&&!t)&&e.preventDefault(),Ce||xe(!0)}if(Ne(!!be),"Backspace"===n&&!t&&ue&&!be&&m.length){const e=[...m];let t=null;for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&f(e,{type:"remove",values:[t]})}!Ce||r&&Ie.current||o||(r&&(Ie.current=!0),me.current?.onKeyDown(e)),ae?.(e)},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];Ce&&me.current?.onKeyUp(e,...n),"Enter"===e.key&&(Ie.current=!1),ie?.(e,...n)},onSelectorRemove:Me,tokenWithEnter:Se,onMouseDown:ze,components:ge}));return We=r.createElement(Sg,{ref:pe,disabled:x,prefixCls:o,visible:Ce,popupElement:je,animation:X,transitionName:K,popupStyle:q,popupClassName:G,direction:d,popupMatchSelectWidth:Y,popupRender:U,popupAlign:Q,placement:Z,builtinPlacements:J,getPopupContainer:ee,empty:h,onPopupVisibleChange:Te,onPopupMouseEnter:function(){Ae({})},onPopupMouseDown:ze,onPopupBlur:Oe},We),r.createElement(yg.Provider,{value:Be},r.createElement(Mg,{visible:fe&&!Ce,values:m}),We)});const bb=gb,vb=()=>null;vb.isSelectOptGroup=!0;const yb=vb,$b=()=>null;$b.isSelectOption=!0;const Cb=$b,xb=r.forwardRef((e,t)=>{let{height:n,offsetY:o,offsetX:i,children:a,prefixCls:l,onInnerResize:s,innerProps:c,rtl:u,extra:d}=e,p={},m={display:"flex",flexDirection:"column"};return void 0!==o&&(p={height:n,position:"relative",overflow:"hidden"},m={...m,transform:`translateY(${o}px)`,[u?"marginRight":"marginLeft"]:-i,position:"absolute",left:0,right:0,top:0}),r.createElement("div",{style:p},r.createElement(te,{onResize:e=>{let{offsetHeight:t}=e;t&&s&&s()}},r.createElement("div",ed({style:m,className:re({[`${l}-holder-inner`]:l}),ref:t},c),a,d)))});xb.displayName="Filler";const wb=xb;function Sb(e){let{children:t,setRef:n}=e;const o=r.useCallback(e=>{n(e)},[]);return r.cloneElement(t,{ref:o})}function Eb(e,t,n){const[o,i]=r.useState(e),[a,l]=r.useState(null);return r.useEffect(()=>{const r=function(e,t,n){const r=e.length,o=t.length;let i,a;if(0===r&&0===o)return null;r<o?(i=e,a=t):(i=t,a=e);const l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}let c=null,u=1!==Math.abs(r-o);for(let d=0;d<a.length;d+=1){const e=s(i[d]);if(e!==s(a[d])){c=d,u=u||e!==s(a[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==r?.index&&(n?.(r.index),l(e[r.index])),i(e)},[e]),[a]}const kb="object"===typeof navigator&&/Firefox/i.test(navigator.userAgent),Nb=(e,t,n,o)=>{const i=(0,r.useRef)(!1),a=(0,r.useRef)(null);const l=(0,r.useRef)({top:e,bottom:t,left:n,right:o});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=o,function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const 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(()=>{i.current=!1},50)),!i.current&&r}};function Ib(e,t,n,o,i,a,l){const s=(0,r.useRef)(0),c=(0,r.useRef)(null),u=(0,r.useRef)(null),d=(0,r.useRef)(!1),p=Nb(t,n,o,i);const m=(0,r.useRef)(null),f=(0,r.useRef)(null);return[function(t){if(!e)return;fe.cancel(f.current),f.current=fe(()=>{m.current=null},2);const{deltaX:n,deltaY:r,shiftKey:o}=t;let i=n,h=r;("sx"===m.current||!m.current&&o&&r&&!n)&&(i=r,h=0,m.current="sx");const g=Math.abs(i),b=Math.abs(h);null===m.current&&(m.current=a&&g>b?"x":"y"),"y"===m.current?function(e,t){if(fe.cancel(c.current),p(!1,t))return;const n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,u.current=t,kb||n.preventDefault(),c.current=fe(()=>{const e=d.current?10:1;l(s.current*e,!1),s.current=0}))}(t,h):function(e,t){l(t,!0),kb||e.preventDefault()}(t,i)},function(t){e&&(d.current=t.detail===u.current)}]}const Mb=class{maps;id=0;diffRecords=(()=>new Map)();constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}};function Pb(e){const t=parseFloat(e);return isNaN(t)?0:t}const Rb=14/15;function Ob(e){return Math.floor(e**.5)}function zb(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}const Ab=r.forwardRef((e,t)=>{const{prefixCls:n,rtl:o,scrollOffset:i,scrollRange:a,onStartMove:l,onStopMove:s,onScroll:c,horizontal:u,spinSize:d,containerSize:p,style:m,thumbStyle:f,showScrollBar:h}=e,[g,b]=r.useState(!1),[v,y]=r.useState(null),[$,C]=r.useState(null),x=!o,w=r.useRef(),S=r.useRef(),[E,k]=r.useState(h),N=r.useRef(),I=()=>{!0!==h&&!1!==h&&(clearTimeout(N.current),k(!0),N.current=setTimeout(()=>{k(!1)},3e3))},M=a-p||0,P=p-d||0,R=r.useMemo(()=>{if(0===i||0===M)return 0;return i/M*P},[i,M,P]),O=r.useRef({top:R,dragging:g,pageY:v,startTop:$});O.current={top:R,dragging:g,pageY:v,startTop:$};const z=e=>{b(!0),y(zb(e,u)),C(O.current.top),l(),e.stopPropagation(),e.preventDefault()};r.useEffect(()=>{const e=e=>{e.preventDefault()},t=w.current,n=S.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",z,{passive:!1}),()=>{t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",z)}},[]);const A=r.useRef();A.current=M;const T=r.useRef();T.current=P,r.useEffect(()=>{if(g){let e;const t=t=>{const{dragging:n,pageY:r,startTop:o}=O.current;fe.cancel(e);const i=w.current.getBoundingClientRect(),a=p/(u?i.width:i.height);if(n){const n=(zb(t,u)-r)*a;let i=o;!x&&u?i-=n:i+=n;const l=A.current,s=T.current,d=s?i/s:0;let p=Math.ceil(d*l);p=Math.max(p,0),p=Math.min(p,l),e=fe(()=>{c(p,u)})}},n=()=>{b(!1),s()};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}),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),fe.cancel(e)}}},[g]),r.useEffect(()=>(I(),()=>{clearTimeout(N.current)}),[i]),r.useImperativeHandle(t,()=>({delayHidden:I}));const B=`${n}-scrollbar`,H={position:"absolute",visibility:E?null:"hidden"},D={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(H,{height:8,left:0,right:0,bottom:0}),Object.assign(D,{height:"100%",width:d,[x?"left":"right"]:R})):(Object.assign(H,{width:8,top:0,bottom:0,[x?"right":"left"]:0}),Object.assign(D,{width:"100%",height:d,top:R})),r.createElement("div",{ref:w,className:re(B,{[`${B}-horizontal`]:u,[`${B}-vertical`]:!u,[`${B}-visible`]:E}),style:{...H,...m},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseMove:I},r.createElement("div",{ref:S,className:re(`${B}-thumb`,{[`${B}-thumb-moving`]:g}),style:{...D,...f},onMouseDown:z}))});const Tb=Ab;function Bb(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}const Hb=[],Db={overflowY:"auto",overflowAnchor:"none"};const Lb=r.forwardRef(function(e,t){const{prefixCls:n="rc-virtual-list",className:o,height:i,itemHeight:a,fullHeight:l=!0,style:s,data:c,children:u,itemKey:d,virtual:p,direction:m,scrollWidth:f,component:h="div",onScroll:g,onVirtualScroll:b,onVisibleChange:v,innerProps:y,extraRender:$,styles:C,showScrollBar:x="optional",...w}=e,S=r.useCallback(e=>"function"===typeof d?d(e):e?.[d],[d]),[E,k,N,I]=function(e,t,n){const[o,i]=r.useState(0),a=(0,r.useRef)(new Map),l=(0,r.useRef)(new Mb),s=(0,r.useRef)(0);function c(){s.current+=1}function u(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();const t=()=>{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){const{offsetHeight:r}=t,{marginTop:o,marginBottom:i}=getComputedStyle(t),a=r+Pb(o)+Pb(i);l.current.get(n)!==a&&(l.current.set(n,a),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;const e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}return(0,r.useEffect)(()=>c,[]),[function(r,o){const i=e(r),l=a.current.get(i);o?(a.current.set(i,o),u()):a.current.delete(i),!l!==!o&&(o?t?.(r):n?.(r))},u,l.current,o]}(S,null,null),M=!(!1===p||!i||!a),P=r.useMemo(()=>Object.values(N.maps).reduce((e,t)=>e+t,0),[N.id,N.maps]),R=M&&c&&(Math.max(a*c.length,P)>i||!!f),O="rtl"===m,z=re(n,{[`${n}-rtl`]:O},o),T=c||Hb,B=(0,r.useRef)(),H=(0,r.useRef)(),D=(0,r.useRef)(),[j,F]=(0,r.useState)(0),[W,_]=(0,r.useState)(0),[V,X]=(0,r.useState)(!1),K=()=>{X(!0)},q=()=>{X(!1)},G={getKey:S};function Y(e){F(t=>{let n;n="function"===typeof e?e(t):e;const r=function(e){let t=e;Number.isNaN(pe.current)||(t=Math.min(t,pe.current));return t=Math.max(t,0),t}(n);return B.current.scrollTop=r,r})}const U=(0,r.useRef)({start:0,end:T.length}),Q=(0,r.useRef)(),[Z]=Eb(T,S);Q.current=Z;const{scrollHeight:J,start:ee,end:ne,offset:oe}=r.useMemo(()=>{if(!M)return{scrollHeight:void 0,start:0,end:T.length-1,offset:void 0};if(!R)return{scrollHeight:H.current?.offsetHeight||0,start:0,end:T.length-1,offset:void 0};let e,t,n,r=0;const o=T.length;for(let l=0;l<o;l+=1){const o=T[l],s=S(o),c=N.get(s),u=r+(void 0===c?a:c);u>=j&&void 0===e&&(e=l,t=r),u>j+i&&void 0===n&&(n=l),r=u}return void 0===e&&(e=0,t=0,n=Math.ceil(i/a)),void 0===n&&(n=T.length-1),n=Math.min(n+1,T.length-1),{scrollHeight:r,start:e,end:n,offset:t}},[R,M,j,T,I,i]);U.current.start=ee,U.current.end=ne,r.useLayoutEffect(()=>{const e=N.getRecord();if(1===e.size){const t=Array.from(e.keys())[0],n=e.get(t),r=T[ee];if(r&&void 0===n){if(S(r)===t){const e=N.get(t)-a;Y(t=>t+e)}}}N.resetRecord()},[J]);const[ie,ae]=r.useState({width:0,height:i}),le=(0,r.useRef)(),se=(0,r.useRef)(),ce=r.useMemo(()=>Bb(ie.width,f),[ie.width,f]),ue=r.useMemo(()=>Bb(ie.height,J),[ie.height,J]),de=J-i,pe=(0,r.useRef)(de);pe.current=de;const me=j<=0,he=j>=de,ge=W<=0,be=W>=f,ve=Nb(me,he,ge,be),ye=()=>({x:O?-W:W,y:j}),$e=(0,r.useRef)(ye()),Ce=A(e=>{if(b){const t={...ye(),...e};$e.current.x===t.x&&$e.current.y===t.y||(b(t),$e.current=t)}});function xe(e,t){const n=e;t?((0,sl.flushSync)(()=>{_(n)}),Ce()):Y(n)}const we=e=>{let t=e;const n=f?f-ie.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Se=A((e,t)=>{t?((0,sl.flushSync)(()=>{_(t=>we(t+(O?-e:e)))}),Ce()):Y(t=>t+e)}),[Ee,ke]=Ib(M,me,he,ge,be,!!f,Se);!function(e,t,n){const o=(0,r.useRef)(!1),i=(0,r.useRef)(0),a=(0,r.useRef)(0),l=(0,r.useRef)(null),s=(0,r.useRef)(null);let c;const u=e=>{if(o.current){const t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY);let o=i.current-t,l=a.current-r;const c=Math.abs(o)>Math.abs(l);c?i.current=t:a.current=r;const u=n(c,c?o:l,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{c?o*=Rb:l*=Rb;const e=Math.floor(c?o:l);(!n(c,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},d=()=>{o.current=!1,c()},p=e=>{c(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};c=()=>{l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",d))},L(()=>(e&&t.current.addEventListener("touchstart",p,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",p),c(),clearInterval(s.current)}),[e])}(M,B,(e,t,n,r)=>{const o=r;return!ve(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),Ee({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,n){r.useEffect(()=>{const r=t.current;if(e&&r){let e,t,o=!1;const i=()=>{fe.cancel(e)},a=()=>{i(),e=fe(()=>{n(t),a()})},l=()=>{o=!1,i()},s=e=>{if(e.target.draggable||0!==e.button)return;const t=e;t._virtualHandled||(t._virtualHandled=!0,o=!0)},c=e=>{if(o){const n=zb(e,!1),{top:o,bottom:l}=r.getBoundingClientRect();n<=o?(t=-Ob(o-n),a()):n>=l?(t=Ob(n-l),a()):i()}};return r.addEventListener("mousedown",s),r.ownerDocument.addEventListener("mouseup",l),r.ownerDocument.addEventListener("mousemove",c),r.ownerDocument.addEventListener("dragend",l),()=>{r.removeEventListener("mousedown",s),r.ownerDocument.removeEventListener("mouseup",l),r.ownerDocument.removeEventListener("mousemove",c),r.ownerDocument.removeEventListener("dragend",l),i()}}},[e])}(R,B,e=>{Y(t=>t+e)}),L(()=>{function e(e){const t=me&&e.detail<0,n=he&&e.detail>0;!M||t||n||e.preventDefault()}const t=B.current;return t.addEventListener("wheel",Ee,{passive:!1}),t.addEventListener("DOMMouseScroll",ke,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),()=>{t.removeEventListener("wheel",Ee),t.removeEventListener("DOMMouseScroll",ke),t.removeEventListener("MozMousePixelScroll",e)}},[M,me,he]),L(()=>{if(f){const e=we(W);_(e),Ce({x:e})}},[ie.width,f]);const Ne=()=>{le.current?.delayHidden(),se.current?.delayHidden()},Ie=function(e,t,n,o,i,a,l,s){const c=r.useRef(),[u,d]=r.useState(null);return L(()=>{if(u&&u.times<10){if(!e.current)return void d(e=>({...e}));a();const{targetAlign:r,originAlign:s,index:c,offset:p}=u,m=e.current.clientHeight;let f=!1,h=r,g=null;if(m){const a=r||s;let d=0,b=0,v=0;const y=Math.min(t.length-1,c);for(let e=0;e<=y;e+=1){const r=i(t[e]);b=d;const a=n.get(r);v=b+(void 0===a?o:a),d=v}let $="top"===a?p:m-p;for(let e=y;e>=0;e-=1){const r=i(t[e]),o=n.get(r);if(void 0===o){f=!0;break}if($-=o,$<=0)break}switch(a){case"top":g=b-p;break;case"bottom":g=v-m+p;break;default:{const{scrollTop:t}=e.current;b<t?h="top":v>t+m&&(h="bottom")}}null!==g&&l(g),g!==u.lastTop&&(f=!0)}f&&d({...u,times:u.times+1,targetAlign:h,lastTop:g})}},[u,e.current]),e=>{if(null!==e&&void 0!==e){if(fe.cancel(c.current),"number"===typeof e)l(e);else if(e&&"object"===typeof e){let n;const{align:r}=e;"index"in e?({index:n}=e):n=t.findIndex(t=>i(t)===e.key);const{offset:o=0}=e;d({times:0,index:n,offset:o,originAlign:r})}}else s()}}(B,T,N,a,S,()=>k(!0),Y,Ne);r.useImperativeHandle(t,()=>({nativeElement:D.current,getScrollInfo:ye,scrollTo:e=>{var t;(t=e)&&"object"===typeof t&&("left"in t||"top"in t)?(void 0!==e.left&&_(we(e.left)),Ie(e.top)):Ie(e)}})),L(()=>{if(v){const e=T.slice(ee,ne+1);v(e,T)}},[ee,ne,T]);const Me=function(e,t,n,o){const[i,a]=r.useMemo(()=>[new Map,[]],[e,n.id,o]);return function(r){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,s=i.get(r),c=i.get(l);if(void 0===s||void 0===c){const u=e.length;for(let d=a.length;d<u;d+=1){const u=e[d],p=t(u);i.set(p,d);const m=n.get(p)??o;if(a[d]=(a[d-1]||0)+m,p===r&&(s=d),p===l&&(c=d),void 0!==s&&void 0!==c)break}}return{top:a[s-1]||0,bottom:a[c]}}}(T,S,N,a),Pe=$?.({start:ee,end:ne,virtual:R,offsetX:W,offsetY:oe,rtl:O,getSize:Me}),Re=function(e,t,n,o,i,a,l,s){let{getKey:c}=s;return e.slice(t,n+1).map((e,n)=>{const s=l(e,t+n,{style:{width:o},offsetX:i}),u=c(e);return r.createElement(Sb,{key:u,setRef:t=>a(e,t)},s)})}(T,ee,ne,f,W,E,u,G);let Oe=null;i&&(Oe={[l?"height":"maxHeight"]:i,...Db},M&&(Oe.overflowY="hidden",f&&(Oe.overflowX="hidden"),V&&(Oe.pointerEvents="none")));const ze={};return O&&(ze.dir="rtl"),r.createElement("div",ed({ref:D,style:{...s,position:"relative"},className:z},ze,w),r.createElement(te,{onResize:e=>{ae({width:e.offsetWidth,height:e.offsetHeight})}},r.createElement(h,{className:`${n}-holder`,style:Oe,ref:B,onScroll:function(e){const{scrollTop:t}=e.currentTarget;t!==j&&Y(t),g?.(e),Ce()},onMouseEnter:Ne},r.createElement(wb,{prefixCls:n,height:J,offsetX:W,offsetY:oe,scrollWidth:f,onInnerResize:k,ref:H,innerProps:y,rtl:O,extra:Pe},Re))),R&&J>i&&r.createElement(Tb,{ref:le,prefixCls:n,scrollOffset:j,scrollRange:J,rtl:O,onScroll:xe,onStartMove:K,onStopMove:q,spinSize:ue,containerSize:ie.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:x}),R&&f>ie.width&&r.createElement(Tb,{ref:se,prefixCls:n,scrollOffset:W,scrollRange:f,rtl:O,onScroll:xe,onStartMove:K,onStopMove:q,spinSize:ce,containerSize:ie.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:x}))});Lb.displayName="List";const jb=Lb;function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fb.apply(this,arguments)}function Wb(e){return"string"===typeof e||"number"===typeof e}const _b=r.forwardRef((e,t)=>{const{prefixCls:n,id:o,open:i,multiple:a,mode:l,searchValue:s,toggleOpen:c,notFoundContent:u,onPopupScroll:d,showScrollBar:p,lockOptions:m}=$g(),{maxCount:f,flattenOptions:h,onActiveValue:g,defaultActiveFirstOption:b,onSelect:v,menuItemSelectedIcon:y,rawValues:C,fieldNames:x,virtual:w,direction:S,listHeight:E,listItemHeight:k,optionRender:N,classNames:I,styles:M}=r.useContext(Dg),P=`${n}-item`,R=$(()=>h,[i,m],(e,t)=>t[0]&&!t[1]),O=r.useRef(null),z=r.useMemo(()=>a&&kg(f)&&C?.size>=f,[a,f,C?.size]),A=e=>{e.preventDefault()},T=e=>{O.current?.scrollTo("number"===typeof e?{index:e}:e)},B=r.useCallback(e=>"combobox"!==l&&C.has(e),[l,[...C].toString(),C.size]),H=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=R.length;for(let r=0;r<n;r+=1){const o=(e+r*t+n)%n,{group:i,data:a}=R[o]||{};if(!i&&!a?.disabled&&(B(a.value)||!z))return o}return-1},[D,L]=r.useState(()=>H(0)),j=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(e);const n={source:t?"keyboard":"mouse"},r=R[e];r?g(r.value,e,n):g(null,-1,n)};(0,r.useEffect)(()=>{j(!1!==b?H(0):-1)},[R.length,s]);const F=r.useCallback(e=>"combobox"===l?String(e).toLowerCase()===s.toLowerCase():C.has(e),[l,s,[...C].toString(),C.size]);(0,r.useEffect)(()=>{let e;if(!a&&i&&1===C.size){const t=Array.from(C)[0],n=R.findIndex(e=>{let{data:n}=e;return s?String(n.value).startsWith(s):n.value===t});-1!==n&&(j(n),e=setTimeout(()=>{T(n)}))}return i&&O.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);const W=e=>{void 0!==e&&v(e,{selected:!C.has(e)}),a||c(!1)};if(r.useImperativeHandle(t,()=>({onKeyDown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case ul.N:case ul.P:case ul.UP:case ul.DOWN:{let e=0;if(t===ul.UP?e=-1:t===ul.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===ul.N?e=1:t===ul.P&&(e=-1)),0!==e){const t=H(D+e,e);T(t),j(t,!0)}break}case ul.TAB:case ul.ENTER:{const t=R[D];if(!t||t.data.disabled)return W(void 0);!z||C.has(t.value)?W(t.value):W(void 0),i&&e.preventDefault();break}case ul.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{T(e)}})),0===R.length)return r.createElement("div",{role:"listbox",id:`${o}_list`,className:`${P}-empty`,onMouseDown:A},u);const _=Object.keys(x).map(e=>x[e]),V=e=>e.label;function X(e,t){const{group:n}=e;return{role:n?"presentation":"option",id:`${o}_list_${t}`}}const K=e=>{const t=R[e];if(!t)return null;const n=t.data||{},{value:o,disabled:i}=n,{group:a}=t,l=fa(n,!0),s=V(t);return t?r.createElement("div",Fb({"aria-label":"string"!==typeof s||a?null:s},l,{key:e},X(t,e),{"aria-selected":F(o),"aria-disabled":i}),o):null},q={role:"listbox",id:`${o}_list`};return r.createElement(r.Fragment,null,w&&r.createElement("div",Fb({},q,{style:{height:0,width:0,overflow:"hidden"}}),K(D-1),K(D),K(D+1)),r.createElement(jb,{itemKey:"key",ref:O,data:R,height:E,itemHeight:k,fullHeight:!1,onMouseDown:A,onScroll:d,virtual:w,direction:S,innerProps:w?null:q,showScrollBar:p,className:I?.popup?.list,style:M?.popup?.list},(e,t)=>{const{group:n,groupOption:o,data:i,label:a,value:l}=e,{key:s}=i;if(n){const e=i.title??(Wb(a)?a.toString():void 0);return r.createElement("div",{className:re(P,`${P}-group`,i.className),title:e},void 0!==a?a:s)}const{disabled:c,title:u,children:d,style:p,className:m,...f}=i,h=Y(f,_),g=B(l),b=c||!g&&z,v=`${P}-option`,$=re(P,v,m,I?.popup?.listItem,{[`${v}-grouped`]:o,[`${v}-active`]:D===t&&!b,[`${v}-disabled`]:b,[`${v}-selected`]:g}),C=V(e),x=!y||"function"===typeof y||g,S="number"===typeof C?C:C||l;let E=Wb(S)?S.toString():void 0;return void 0!==u&&(E=u),r.createElement("div",Fb({},fa(h),w?{}:X(e,t),{"aria-selected":w?void 0:F(l),"aria-disabled":b,className:$,title:E,onMouseMove:()=>{D===t||b||j(t)},onClick:()=>{b||W(l)},style:{...M?.popup?.listItem,...p}}),r.createElement("div",{className:`${v}-content`},"function"===typeof N?N(e,{index:t}):S),r.isValidElement(y)||g,x&&r.createElement(ob,{className:`${P}-option-state`,customizeIcon:y,customizeIconProps:{value:l,disabled:b,isSelected:g}},g?"\u2713":null))}))});const Vb=_b;function Xb(e,t){return Lg(e).join("").toUpperCase().includes(t)}function Kb(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return c(e).map((e,n)=>{if(!r.isValidElement(e)||!e.type)return null;const{type:{isSelectOptGroup:o},key:i,props:{children:a,...l}}=e;return t||!o?function(e){const{key:t,props:{children:n,value:r,...o}}=e;return{key:t,value:void 0!==r?r:t,children:n,...o}}(e):{key:`__RC_SELECT_GRP__${null===i?n:i}__`,label:i,...l,options:Kb(a)}}).filter(e=>e)}const qb=(e,t,n,o,i)=>r.useMemo(()=>{let r=e;!e&&(r=Kb(t));const a=new Map,l=new Map,s=(e,t,n)=>{n&&"string"===typeof n&&e.set(t[n],t)},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=0;r<e.length;r+=1){const u=e[r];!u[n.options]||t?(a.set(u[n.value],u),s(l,u,n.label),o.forEach(e=>{s(l,u,e)}),s(l,u,i)):c(u[n.options],!0)}};return c(r),{options:r,valueOptions:a,labelOptions:l}},[e,t,n,o,i]);function Gb(e){const t=r.useRef();t.current=e;const n=r.useCallback(function(){return t.current(...arguments)},[]);return n}function Yb(){return Yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yb.apply(this,arguments)}const Ub=["inputValue"];const Qb=r.forwardRef((e,t)=>{const{id:n,mode:o,prefixCls:i="rc-select",backfill:a,fieldNames:l,showSearch:s,searchValue:c,onSearch:u,autoClearSearchValue:d,filterOption:p,optionFilterProp:m,filterSort:f,onSelect:h,onDeselect:g,onActive:b,popupMatchSelectWidth:v=!0,optionLabelProp:y,options:$,optionRender:C,children:x,defaultActiveFirstOption:w,menuItemSelectedIcon:S,virtual:E,direction:k,listHeight:N=200,listItemHeight:I=20,labelRender:M,value:P,defaultValue:R,labelInValue:O,onChange:z,maxCount:A,classNames:T,styles:B,...H}=e,D={searchValue:c,onSearch:u,autoClearSearchValue:d,filterOption:p,optionFilterProp:m,filterSort:f},[L,j]=function(e,t,n){const{filterOption:o,searchValue:i,optionFilterProp:a,filterSort:l,onSearch:s,autoClearSearchValue:c}=t;return r.useMemo(()=>{const t="object"===typeof e,r={filterOption:o,searchValue:i,optionFilterProp:a,filterSort:l,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[!!(t||"combobox"===n||"tags"===n||"multiple"===n&&void 0===e)||e,r]},[n,e,o,i,a,l,s,c])}(s,D,o),{filterOption:W,searchValue:_,optionFilterProp:V,filterSort:X,onSearch:K,autoClearSearchValue:q=!0}=j,G=r.useMemo(()=>V?Array.isArray(V)?V:[V]:[],[V]),Y=Is(n),U=hb(o),Q=!($||!x),Z=r.useMemo(()=>(void 0!==W||"combobox"!==o)&&W,[W,o]),J=r.useMemo(()=>Ng(l,Q),[JSON.stringify(l),Q]),[ee,te]=F("",_),ne=ee||"",re=qb($,x,J,G,y),{valueOptions:oe,labelOptions:ie,options:ae}=re,le=r.useCallback(e=>Lg(e).map(e=>{let t,n,r,o;!function(e){return!e||"object"!==typeof e}(e)?(n=e.label,t=e.value):t=e;const i=oe.get(t);return i&&(void 0===n&&(n=i?.[y||J.label]),r=i?.disabled,o=i?.title),{label:n,value:t,key:t,disabled:r,title:o}}),[J,y,oe]),[se,ce]=F(R,P),ue=r.useMemo(()=>{const e=le(U&&null===se?[]:se);return"combobox"===o&&function(e){return!e&&0!==e}(e[0]?.value)?[]:e},[se,le,o,U]),[de,pe]=((e,t)=>{const n=r.useRef({values:new Map,options:new Map});return[r.useMemo(()=>{const{values:r,options:o}=n.current,i=e.map(e=>void 0===e.label?{...e,label:r.get(e.value)?.label}:e),a=new Map,l=new Map;return i.forEach(e=>{a.set(e.value,e),l.set(e.value,t.get(e.value)||o.get(e.value))}),n.current.values=a,n.current.options=l,i},[e,t]),r.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]})(ue,oe),me=r.useMemo(()=>{if(!o&&1===de.length){const e=de[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return de.map(e=>({...e,label:("function"===typeof M?M(e):e.label)??e.value}))},[o,de,M]),fe=r.useMemo(()=>new Set(de.map(e=>e.value)),[de]);r.useEffect(()=>{if("combobox"===o){const e=de[0]?.value;te(function(e){return void 0!==e&&null!==e}(e)?String(e):"")}},[de]);const he=Gb((e,t)=>{const n=t??e;return{[J.value]:e,[J.label]:n}}),ge=((e,t,n,o,i)=>r.useMemo(()=>{if(!n||!1===o)return e;const{options:r,label:a,value:l}=t,s=[],c="function"===typeof o,u=n.toUpperCase(),d=c?o:(e,t)=>i&&i.length?i.some(e=>Xb(t[e],u)):t[r]?Xb(t["children"!==a?a:"label"],u):Xb(t[l],u),p=c?e=>Ig(e):e=>e;return e.forEach(e=>{if(e[r])if(d(n,p(e)))s.push(e);else{const t=e[r].filter(e=>d(n,p(e)));t.length&&s.push({...e,[r]:t})}else d(n,p(e))&&s.push(e)}),s},[e,o,i,n,t]))(r.useMemo(()=>{if("tags"!==o)return ae;const e=[...ae];return[...de].sort((e,t)=>e.value<t.value?-1:1).forEach(t=>{const n=t.value;(e=>oe.has(e))(n)||e.push(he(n,t.label))}),e},[he,ae,oe,de,o]),J,ne,Z,G),be=r.useMemo(()=>"tags"!==o||!ne||ge.some(e=>(e=>G.length?G.some(t=>e?.[t]===ne):e?.value===ne)(e))||ge.some(e=>e[J.value]===ne)?ge:[he(ne),...ge],[he,G,o,ge,ne,J]),ve=e=>[...e].sort((e,t)=>X(e,t,{searchValue:ne})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?ve(e.options):e.options}:e),ye=r.useMemo(()=>X?ve(be):be,[be,X,ne]),$e=r.useMemo(()=>function(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[],{label:o,value:i,options:a,groupLabel:l}=Ng(t,!1);return function e(t,s){Array.isArray(t)&&t.forEach(t=>{if(s||!(a in t)){const e=t[i];r.push({key:Eg(t,r.length),groupOption:s,data:t,label:t[o],value:e})}else{let o=t[l];void 0===o&&n&&(o=t.label),r.push({key:Eg(t,r.length),group:!0,data:t,label:o}),e(t[a],!0)}})}(e,!1),r}(ye,{fieldNames:J,childrenAsData:Q}),[ye,J,Q]),Ce=e=>{const t=le(e);if(ce(t),z&&(t.length!==de.length||t.some((e,t)=>de[t]?.value!==e?.value))){const e=O?t.map(e=>{let{label:t,value:n}=e;return{label:t,value:n}}):t.map(e=>e.value),n=t.map(e=>Ig(pe(e.value)));z(U?e:e[0],U?n:n[0])}},[xe,we]=r.useState(null),[Se,Ee]=r.useState(0),ke=void 0!==w?w:"combobox"!==o,Ne=r.useRef(),Ie=r.useCallback(function(e,t){let{source:n="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ee(t),a&&"combobox"===o&&null!==e&&"keyboard"===n&&we(String(e));const r=Promise.resolve().then(()=>{Ne.current===r&&b?.(e)});Ne.current=r},[a,o,b]),Me=(e,t,n)=>{const r=()=>{const t=pe(e);return[O?{label:t?.[J.label],value:e}:e,Ig(t)]};if(t&&h){const[e,t]=r();h(e,t)}else if(!t&&g&&"clear"!==n){const[e,t]=r();g(e,t)}},Pe=Gb((e,t)=>{let n;const r=!U||t.selected;n=r?U?[...de,e]:[e]:de.filter(t=>t.value!==e),Ce(n),Me(e,r),"combobox"===o?we(""):hb&&!q||(te(""),we(""))}),Re=r.useMemo(()=>{const e=!1!==E&&!1!==v;return{...re,flattenOptions:$e,onActiveValue:Ie,defaultActiveFirstOption:ke,onSelect:Pe,menuItemSelectedIcon:S,rawValues:fe,fieldNames:J,virtual:e,direction:k,listHeight:N,listItemHeight:I,childrenAsData:Q,maxCount:A,optionRender:C,classNames:T,styles:B}},[A,re,$e,Ie,ke,Pe,S,fe,J,E,v,k,N,I,Q,C,T,B]);return r.createElement(Dg.Provider,{value:Re},r.createElement(bb,Yb({},H,{id:Y,prefixCls:i,ref:t,omitDomProps:Ub,mode:o,classNames:T,styles:B,displayValues:me,onDisplayValuesChange:(e,t)=>{Ce(e);const{type:n,values:r}=t;"remove"!==n&&"clear"!==n||r.forEach(e=>{Me(e.value,!1,n)})},maxCount:A,direction:k,showSearch:L,searchValue:ne,onSearch:(e,t)=>{if(te(e),we(null),"submit"===t.source){const t=(e||"").trim();if(t){const e=Array.from(new Set([...fe,t]));Ce(e),Me(t,!0),te("")}return}"blur"!==t.source&&("combobox"===o&&Ce(e),K?.(e))},autoClearSearchValue:q,onSearchSplit:e=>{let t=e;"tags"!==o&&(t=e.map(e=>{const t=ie.get(e);return t?.value}).filter(e=>void 0!==e));const n=Array.from(new Set([...fe,...t]));Ce(n),n.forEach(e=>{Me(e,!0)})},popupMatchSelectWidth:v,OptionList:Vb,emptyOptions:!$e.length,activeValue:xe,activeDescendantId:`${Y}_list_${Se}`})))});const Zb=Qb;Zb.Option=Cb,Zb.OptGroup=yb;const Jb=Zb,ev=(e,t,n)=>re({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n}),tv=(e,t)=>t||e;const nv=()=>{const[,e]=Ao(),[t]=Yc("Empty"),n=new Or(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,t?.description||"Empty"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.7)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),r.createElement("path",{fill:"#aeb8c2",d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),r.createElement("path",{fill:"#f5f5f7",d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),r.createElement("path",{fill:"#dce0e6",d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),r.createElement("path",{fill:"#dce0e6",d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),r.createElement("g",{fill:"#fff",transform:"translate(149.7 15.4)"},r.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),r.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))};const rv=()=>{const[,e]=Ao(),[t]=Yc("Empty"),{colorFill:n,colorFillTertiary:o,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:l,shadowColor:s,contentColor:c}=(0,r.useMemo)(()=>({borderColor:new Or(n).onBackground(a).toHexString(),shadowColor:new Or(o).onBackground(a).toHexString(),contentColor:new Or(i).onBackground(a).toHexString()}),[n,o,i,a]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,t?.description||"Empty"),r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:l},r.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),r.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:c}))))},ov=To("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e;return(e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})(ir(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),iv=r.createElement(nv,null),av=r.createElement(rv,null),lv=e=>{const{className:t,rootClassName:n,prefixCls:o,image:i,description:a,children:l,imageStyle:s,style:c,classNames:u,styles:d,...p}=e,{getPrefixCls:m,direction:f,className:h,style:g,classNames:b,styles:v,image:y}=xe("empty"),$=m("empty",o),[C,x]=ov($),[w,S]=Ca([b,u],[v,d],{props:e}),[E]=Yc("Empty"),k="undefined"!==typeof a?a:E?.description,N="string"===typeof k?k:"empty",I=i??y??iv;let M=null;return M="string"===typeof I?r.createElement("img",{draggable:!1,alt:N,src:I}):I,r.createElement("div",{className:re(C,x,$,h,{[`${$}-normal`]:I===av,[`${$}-rtl`]:"rtl"===f},t,n,w.root),style:{...S.root,...g,...c},...p},r.createElement("div",{className:re(`${$}-image`,w.image),style:{...s,...S.image}},M),k&&r.createElement("div",{className:re(`${$}-description`,w.description),style:S.description},k),l&&r.createElement("div",{className:re(`${$}-footer`,w.footer),style:S.footer},l))};lv.PRESENTED_IMAGE_DEFAULT=iv,lv.PRESENTED_IMAGE_SIMPLE=av;const sv=lv,cv=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(ye),o=n("empty");switch(t){case"Table":case"List":return r.createElement(sv,{image:sv.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(sv,{image:sv.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return r.createElement(sv,null)}},uv=(e,t,n)=>{const{variant:o,[e]:i}=r.useContext(ye),a=r.useContext(Ym),l=i?.variant;let s;s="undefined"!==typeof t?t:!1===n?"borderless":a??l??o??"outlined";return[s,ve.includes(s)]};const dv=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...t,points:["tl","bl"],offset:[0,4]},bottomRight:{...t,points:["tr","br"],offset:[0,4]},topLeft:{...t,points:["bl","tl"],offset:[0,-4]},topRight:{...t,points:["br","tr"],offset:[0,-4]}}})(t)},pv=new Bn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),mv=new Bn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),fv=new Bn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),hv=new Bn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),gv=new Bn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),bv=new Bn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),vv=new Bn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),yv=new Bn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$v={"slide-up":{inKeyframes:pv,outKeyframes:mv},"slide-down":{inKeyframes:fv,outKeyframes:hv},"slide-left":{inKeyframes:gv,outKeyframes:bv},"slide-right":{inKeyframes:vv,outKeyframes:yv}},Cv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=$v[t];return[Gf(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}}]},xv=new Bn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wv=new Bn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Sv=new Bn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ev=new Bn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),kv=new Bn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Nv=new Bn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Iv={"move-up":{inKeyframes:new Bn("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 Bn("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:xv,outKeyframes:wv},"move-left":{inKeyframes:Sv,outKeyframes:Ev},"move-right":{inKeyframes:kv,outKeyframes:Nv}},Mv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Iv[t];return[Gf(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Pv=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"}},Rv=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-`,s=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...br(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:pv},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:fv},[`${a}${l}bottomLeft`]:{animationName:mv},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:hv},"&-hidden":{display:"none"},[r]:{...Pv(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...gr},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...Pv(e),color:e.colorTextDisabled}},[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Cv(e,"slide-up"),Cv(e,"slide-down"),Mv(e,"move-up"),Mv(e,"move-down")]},Ov=e=>{const{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}},zv=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:o,paddingXXS:i,INTERNAL_FIXED_ITEM_MARGIN:a,lineWidth:l,colorIcon:s,colorIconHover:c,inputPaddingHorizontalBase:u,antCls:d}=e,[p,m]=Do(d,"select");return{"&-multiple":{[p("multi-item-background")]:e.multipleItemBg,[p("multi-item-border-color")]:"transparent",[p("multi-item-border-radius")]:e.borderRadiusSM,[p("multi-item-height")]:e.multipleItemHeight,[p("multi-padding-base")]:`calc((${m("height")} - ${m("multi-item-height")}) / 2)`,[p("multi-padding-vertical")]:`calc(${m("multi-padding-base")} - ${a} - ${l})`,[p("multi-item-padding-horizontal")]:`calc(${u} - ${m("multi-padding-vertical")} - ${l} * 2)`,paddingBlock:m("multi-padding-vertical"),paddingInlineStart:`calc(${m("multi-padding-base")} - ${l})`,[`${t}-prefix`]:{marginInlineStart:m("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:m("line-height"),insetInlineStart:m("multi-item-padding-horizontal"),width:`calc(100% - ${m("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:m("font-size")},"&-item":{lineHeight:1,maxWidth:"calc(100% - 4px)"},[`${t}-content-item-prefix + ${t}-content-item-suffix,\n ${t}-content-item-suffix:first-child`]:{marginInlineStart:m("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${m("multi-item-height")} - ${l} * 2)`,border:`${l} solid ${m("multi-item-border-color")}`,display:"flex",marginBlock:a,marginInlineEnd:n(a).mul(2).equal(),background:m("multi-item-background"),borderRadius:m("multi-item-border-radius"),paddingInlineStart:o,paddingInlineEnd:i,transition:["height","line-height","padding"].map(t=>`${t} ${e.motionDurationSlow}`).join(","),"&-content":{...gr,marginInlineEnd:i},"&-remove":{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:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}},[`${t}-input`]:{lineHeight:n(a).mul(2).add(m("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:4,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[p("multi-item-height")]:e.multipleItemHeightSM,[p("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[p("multi-item-height")]:e.multipleItemHeightLG,[p("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[p("multi-item-border-color")]:e.colorSplit,[p("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[p("multi-item-border-color")]:"transparent"}}}}},Av=(e,t)=>{const{componentCls:n,antCls:r}=e,[o]=Do(r,"select"),{border:i,borderHover:a,borderActive:l,borderOutline:s}=t,c=t.background||e.selectorBg||e.colorBgContainer;return{[o("border-color")]:i,[o("background-color")]:c,[o("color")]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[o("border-color")]:a,[o("background-color")]:t.backgroundHover||c},[`&${n}-focused`]:{[o("border-color")]:l,[o("background-color")]:t.backgroundActive||c,boxShadow:`0 0 0 ${lt(e.controlOutlineWidth)} ${s}`}},[`&${n}-disabled`]:{[o("border-color")]:t.borderDisabled||t.border,[o("background-color")]:t.backgroundDisabled||t.background}}},Tv=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5?arguments[5]:void 0;const{componentCls:a}=e;return{[`&${a}-${t}`]:[Av(e,n),{[`&${a}-status-error`]:Av(e,{...n,color:r.color||e.colorError,...r}),[`&${a}-status-warning`]:Av(e,{...n,color:o.color||e.colorWarning,...o})},i]}},Bv=e=>{const{componentCls:t,fontHeight:n,controlHeight:r,iconCls:o,antCls:i,calc:a}=e,[l,s]=Do(i,"select");return{[t]:[{[l("border-radius")]:e.borderRadius,[l("border-color")]:"#000",[l("border-size")]:e.lineWidth,[l("background-color")]:e.colorBgContainer,[l("font-size")]:e.fontSize,[l("line-height")]:e.lineHeight,[l("font-height")]:n,[l("color")]:e.colorText,[l("height")]:r,[l("padding-horizontal")]:a(e.paddingSM).sub(e.lineWidth).equal(),[l("padding-vertical")]:`calc((${s("height")} - ${s("font-height")}) / 2 - ${s("border-size")})`,...br(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:s("border-radius"),borderWidth:s("border-size"),borderStyle:e.lineType,borderColor:s("border-color"),background:s("background-color"),fontSize:s("font-size"),lineHeight:s("line-height"),color:s("color"),paddingInline:s("padding-horizontal"),paddingBlock:s("padding-vertical"),[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...gr,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:a(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[o]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[l("height")]:e.controlHeightSM,[l("padding-horizontal")]:a(e.paddingXS).sub(e.lineWidth).equal(),[l("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:s("padding-horizontal")}},"&-lg":{[l("height")]:e.controlHeightLG,[l("font-size")]:e.fontSizeLG,[l("line-height")]:e.lineHeightLG,[l("font-height")]:e.fontHeightLG,[l("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:s("color"),"&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:`calc(${s("font-height")} + ${s("padding-vertical")} * 2)`},[`${t}-content`]:{...gr,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent"},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:"transparent"}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},zv(e),Tv(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),Tv(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Tv(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),Tv(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),Ov(e)]}},Hv=e=>{const{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...br(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...gr,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,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","opacity"].map(e=>`${e} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Dv=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Hv(e),Rv(e),{[`${t}-rtl`]:{direction:"rtl"}},_d(e,{focusElCls:`${t}-focused`})]},Lv=To("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=ir(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Dv(r),Bv(r)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:m,colorBgContainer:f,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:v,colorPrimary:y,controlOutline:$}=e,C=2*l,x=2*r,w=Math.min(o-C,o-x),S=Math.min(i-C,i-x),E=Math.min(a-C,a-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:m,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:f,clearBg:f,singleItemHeightLG:a,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:S,multipleItemHeightLG:E,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:$,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});const jv={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"};function Fv(){return Fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fv.apply(this,arguments)}const Wv=r.forwardRef((e,t)=>r.createElement(si,Fv({},e,{ref:t,icon:jv})));const _v={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"};function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vv.apply(this,arguments)}const Xv=r.forwardRef((e,t)=>r.createElement(si,Vv({},e,{ref:t,icon:_v})));const Kv={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"};function qv(){return qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qv.apply(this,arguments)}const Gv=r.forwardRef((e,t)=>r.createElement(si,qv({},e,{ref:t,icon:Kv})));function Yv(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:i,loading:a,loadingIcon:l,multiple:s,hasFeedback:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:m}=e;const f=n??r.createElement(mi,null),h=e=>null!==t||c||p?r.createElement(r.Fragment,null,!1!==u&&e,c&&d):null;let g=null;g=void 0!==t?h(t):a?h(l??r.createElement(kl,{spin:!0})):e=>{let{open:t,showSearch:n}=e;return h(t&&n?r.createElement(Gv,null):r.createElement(Xv,null))};let b=null;b=void 0!==o?o:s?r.createElement(Wv,null):null;let v=null;return v=void 0!==i?i:r.createElement(gi,null),{clearIcon:f,suffixIcon:g,itemIcon:b,removeIcon:v}}const Uv=function(e){return r.useMemo(()=>{if(e)return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return r.createElement(Um,{space:!0},e.apply(void 0,n))}},[e])};function Qv(e,t){return void 0!==t?t:null!==e}const Zv="SECRET_COMBOBOX_MODE_DO_NOT_USE";const Jv=r.forwardRef((e,t)=>{const{prefixCls:n,bordered:o,className:i,rootClassName:a,getPopupContainer:l,popupClassName:s,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:p,size:m,disabled:f,notFoundContent:h,status:g,builtinPlacements:b,dropdownMatchSelectWidth:v,popupMatchSelectWidth:y,direction:$,style:C,allowClear:x,variant:w,popupStyle:S,dropdownStyle:E,transitionName:k,tagRender:N,maxCount:I,prefix:M,dropdownRender:P,popupRender:R,onDropdownVisibleChange:O,onOpenChange:z,styles:A,classNames:T,...B}=e,{getPopupContainer:H,getPrefixCls:D,renderEmpty:L,direction:j,virtual:F,popupMatchSelectWidth:W,popupOverflow:_}=r.useContext(ye),{showSearch:V,style:X,styles:K,className:q,classNames:G}=xe("select"),[,U]=Ao(),Q=p??U?.controlHeight,Z=D("select",n),J=D(),ee=$??j,{compactSize:te,compactItemClassnames:ne}=cu(Z,ee),[oe,ie]=uv("select",w,o),ae=Ka(Z),[le,se]=Lv(Z,ae),ce=r.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===Zv?"combobox":t},[e.mode]),ue="multiple"===ce||"tags"===ce,de=Qv(e.suffixIcon,e.showArrow),pe=y??v??W,me=Uv(R||P),fe=z||O,{status:he,hasFeedback:ge,isFormItemInput:be,feedbackIcon:ve}=r.useContext(qm),$e=tv(he,g);let Ce;Ce=void 0!==h?h:"combobox"===ce?null:L?.("Select")||r.createElement(cv,{componentName:"Select"});const{suffixIcon:we,itemIcon:Se,removeIcon:Ee,clearIcon:ke}=Yv({...B,multiple:ue,hasFeedback:ge,feedbackIcon:ve,showSuffixIcon:de,prefixCls:Z,componentName:"Select"}),Ne=!0===x?{clearIcon:ke}:x,Ie=Y(B,["suffixIcon","itemIcon"]),Me=ou(e=>m??te??e),Pe=r.useContext($c),Re=f??Pe,Oe={...e,variant:oe,status:$e,disabled:Re,size:Me},[ze,Ae]=Ca([G,T],[K,A],{props:Oe},{popup:{_default:"root"}}),Te=re(ze.popup?.root,s,c,{[`${Z}-dropdown-${ee}`]:"rtl"===ee},a,se,ae,le),Be={...Ae.popup?.root,...S??E},He=re({[`${Z}-lg`]:"large"===Me,[`${Z}-sm`]:"small"===Me,[`${Z}-rtl`]:"rtl"===ee,[`${Z}-${oe}`]:ie,[`${Z}-in-form-item`]:be},ev(Z,$e,ge),ne,q,i,ze.root,a,se,ae,le),De=r.useMemo(()=>void 0!==d?d:"rtl"===ee?"bottomRight":"bottomLeft",[d,ee]);const[Le]=Tl("SelectLike",Ae.popup?.root?.zIndex??Be?.zIndex);return r.createElement(Jb,{ref:t,virtual:F,classNames:ze,styles:Ae,showSearch:V,...Ie,style:{...Ae.root,...X,...C},popupMatchSelectWidth:pe,transitionName:qc(J,"slide-up",k),builtinPlacements:dv(b,_),listHeight:u,listItemHeight:Q,mode:ce,prefixCls:Z,placement:De,direction:ee,prefix:M,suffixIcon:we,menuItemSelectedIcon:Se,removeIcon:Ee,allowClear:Ne,notFoundContent:Ce,className:He,getPopupContainer:l||H,popupClassName:Te,disabled:Re,popupStyle:{...Ae.popup?.root,...Be,zIndex:Le},maxCount:ue?I:void 0,tagRender:ue?N:void 0,popupRender:me,onPopupVisibleChange:fe})}),ey=vg(Jv,"popupAlign");Jv.SECRET_COMBOBOX_MODE_DO_NOT_USE=Zv,Jv.Option=Cb,Jv.OptGroup=yb,Jv._InternalPanelDoNotUseOrYouWillBeFired=ey;const ty=Jv,{Option:ny}=ty;function ry(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const oy=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:i,popupClassName:a,dropdownClassName:l,children:s,dataSource:u,rootClassName:d,dropdownStyle:p,dropdownRender:m,popupRender:f,onDropdownVisibleChange:h,onOpenChange:g,styles:b,classNames:v,popupMatchSelectWidth:y,dropdownMatchSelectWidth:$}=e,C=c(s),x=f||m,w=g||h,S=y||$;let E;1===C.length&&r.isValidElement(C[0])&&!ry(C[0])&&([E]=C);const k=E?()=>E:void 0;let N;N=C.length&&ry(C[0])?s:u?u.map(e=>{if(r.isValidElement(e))return e;switch(typeof e){case"string":return r.createElement(ny,{key:e,value:e},e);case"object":{const{value:t}=e;return r.createElement(ny,{key:t,value:t},e.text)}default:return}}):[];const{getPrefixCls:I}=r.useContext(ye),M=I("select",n),P={...e,popupRender:x,onOpenChange:w,popupMatchSelectWidth:S},[R,O]=Ca([v],[b],{props:P},{popup:{_default:"root"}}),z=r.useMemo(()=>({root:re(`${M}-auto-complete`,o,d,R.root,{[`${M}-customize`]:E}),prefix:R.prefix,input:R.input,placeholder:R.placeholder,content:R.content,popup:{root:re(a,l,R.popup?.root),list:R.popup?.list,listItem:R.popup?.listItem}}),[M,o,d,R,a,l]),A=r.useMemo(()=>({root:{...O.root,...i},input:O.input,prefix:O.prefix,placeholder:O.placeholder,content:O.content,popup:{root:{...p,...O.popup?.root},list:O.popup?.list,listItem:O.popup?.listItem}}),[O,i,p]);return r.createElement(ty,{ref:t,suffixIcon:null,...Y(e,["dataSource","dropdownClassName","popupClassName"]),prefixCls:M,classNames:z,styles:A,mode:ty.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:x,onPopupVisibleChange:w,popupMatchSelectWidth:S,getInputElement:k},N)});const iy=oy,{Option:ay}=ty,ly=vg(iy,"popupAlign",e=>Y(e,["visible"])),sy=iy;sy.Option=ay,sy._InternalPanelDoNotUseOrYouWillBeFired=ly;const cy=sy,uy=["xxxl","xxl","xl","lg","md","sm","xs"],dy=[].concat(uy).reverse(),py=(e,t)=>{if(t)for(const n of uy)if(e[n]&&void 0!==t?.[n])return t[n]},my=()=>{const[,e]=Ao(),t=(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)`,xxxl:`(min-width: ${e.screenXXXL}px)`}))((e=>{const t=e,n=[].concat(uy).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})(e));return r.useMemo(()=>{const e=new Map;let n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(e=>{let[t,n]=e;const o=e=>{let{matches:n}=e;this.dispatch({...r,[t]:n})},i=window.matchMedia(n);"function"===typeof i?.addEventListener&&i.addEventListener("change",o),this.matchHandlers[n]={mql:i,listener:o},o(i)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];"function"===typeof t?.mql?.removeEventListener&&t.mql.removeEventListener("change",t?.listener)}),e.clear()}}},[t])},fy=()=>r.useReducer(e=>e+1,0);const hy=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,r.useRef)(t),[,o]=fy(),i=my();return L(()=>{const t=i.subscribe(t=>{n.current=t,e&&o()});return()=>i.unsubscribe(t)},[]),n.current},gy=r.createContext({}),by=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,iconFontSize:p,iconFontSizeLG:m,iconFontSizeSM:f,borderRadius:h,borderRadiusLG:g,borderRadiusSM:b,lineWidth:v,lineType:y}=e,$=(e,t,o,i)=>({width:e,height:e,borderRadius:"50%",fontSize:t,[`&${n}-square`]:{borderRadius:i},[`&${n}-icon`]:{fontSize:o,[`> ${r}`]:{margin:0}}});return{[n]:{...br(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${lt(v)} ${y} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...$(a,c,p,h),"&-lg":{...$(l,u,m,g)},"&-sm":{...$(s,d,f,b)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},vy=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},yy=To("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=ir(e,{avatarBg:n,avatarColor:t});return[by(r),vy(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:o,textFontSizeLG:o,textFontSizeSM:o,iconFontSize:Math.round((i+a)/2),iconFontSizeLG:l,iconFontSizeSM:o,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}}),$y=r.forwardRef((e,t)=>{const{prefixCls:n,shape:o,size:i,src:a,srcSet:l,icon:s,className:c,rootClassName:u,style:d,alt:p,draggable:m,children:f,crossOrigin:h,gap:g=4,onError:b,...v}=e,[y,$]=r.useState(1),[C,x]=r.useState(!1),[S,E]=r.useState(!0),k=r.useRef(null),N=r.useRef(null),I=w(t,k),{getPrefixCls:M,className:P,style:R}=xe("avatar"),O=r.useContext(gy),z=()=>{if(!N.current||!k.current)return;const e=N.current.offsetWidth,t=k.current.offsetWidth;0!==e&&0!==t&&2*g<t&&$(t-2*g<e?(t-2*g)/e:1)};r.useEffect(()=>{x(!0)},[]),r.useEffect(()=>{E(!0),$(1)},[a]),r.useEffect(z,[g]);const A=()=>{const e=b?.();!1!==e&&E(!1)},T=ou(e=>i??O?.size??e??"medium"),B=Object.keys("object"===typeof T&&T||{}).some(e=>uy.includes(e)),H=hy(B),D=r.useMemo(()=>{if("object"!==typeof T)return{};const e=uy.find(e=>H[e]),t=T[e];return t?{width:t,height:t,fontSize:t&&(s||f)?t/2:18}:{}},[H,T,s,f]);const L=M("avatar",n),j=Ka(L),[F,W]=yy(L,j),_=re({[`${L}-lg`]:"large"===T,[`${L}-sm`]:"small"===T}),V=r.isValidElement(a),X=re(L,_,P,`${L}-${o||O?.shape||"circle"}`,{[`${L}-image`]:V||a&&S,[`${L}-icon`]:!!s},W,j,c,u,F),K="number"===typeof T?{width:T,height:T,fontSize:s?T/2:18}:{};let q;if("string"===typeof a&&S)q=r.createElement("img",{src:a,draggable:m,srcSet:l,onError:A,alt:p,crossOrigin:h});else if(V)q=a;else if(s)q=s;else if(C||1!==y){const e=`scale(${y})`,t={msTransform:e,WebkitTransform:e,transform:e};q=r.createElement(te,{onResize:z},r.createElement("span",{className:`${L}-string`,ref:N,style:t},f))}else q=r.createElement("span",{className:`${L}-string`,style:{opacity:0},ref:N},f);return r.createElement("span",{...v,style:{...K,...D,...R,...d},className:X,ref:I},q)});const Cy=$y,xy=e=>e?"function"===typeof e?e():e:null,wy=e=>{const{children:t,prefixCls:n,id:o,classNames:i,styles:a,className:l,style:s}=e;return r.createElement("div",{id:o,className:re(`${n}-container`,i?.container,l),style:{...a?.container,...s},role:"tooltip"},"function"===typeof t?t():t)},Sy={shiftX:64,adjustY:1},Ey={adjustX:1,shiftY:!0},ky=[0,0],Ny={left:{points:["cr","cl"],overflow:Ey,offset:[-4,0],targetOffset:ky},right:{points:["cl","cr"],overflow:Ey,offset:[4,0],targetOffset:ky},top:{points:["bc","tc"],overflow:Sy,offset:[0,-4],targetOffset:ky},bottom:{points:["tc","bc"],overflow:Sy,offset:[0,4],targetOffset:ky},topLeft:{points:["bl","tl"],overflow:Sy,offset:[0,-4],targetOffset:ky},leftTop:{points:["tr","tl"],overflow:Ey,offset:[-4,0],targetOffset:ky},topRight:{points:["br","tr"],overflow:Sy,offset:[0,-4],targetOffset:ky},rightTop:{points:["tl","tr"],overflow:Ey,offset:[4,0],targetOffset:ky},bottomRight:{points:["tr","br"],overflow:Sy,offset:[0,4],targetOffset:ky},rightBottom:{points:["bl","br"],overflow:Ey,offset:[4,0],targetOffset:ky},bottomLeft:{points:["tl","bl"],overflow:Sy,offset:[0,4],targetOffset:ky},leftBottom:{points:["br","bl"],overflow:Ey,offset:[-4,0],targetOffset:ky}};function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iy.apply(this,arguments)}const My=r.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:o=0,mouseLeaveDelay:i=.1,prefixCls:a="rc-tooltip",children:l,onVisibleChange:s,afterVisibleChange:c,motion:u,placement:d="right",align:p={},destroyOnHidden:m=!1,defaultVisible:f,getTooltipContainer:h,arrowContent:g,overlay:b,id:v,showArrow:y=!0,classNames:$,styles:C,...x}=e,w=Is(v),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,()=>S.current);const E={...x};"visible"in e&&(E.popupVisible=e.visible);const k=r.useMemo(()=>{if(!y)return!1;const e=!0===y?{}:y;return{...e,className:re(e.className,$?.arrow),style:{...e.style,...C?.arrow},content:e.content??g}},[y,$?.arrow,C?.arrow,g]);return r.createElement(fc,Iy({popupClassName:$?.root,prefixCls:a,popup:r.createElement(wy,{key:"content",prefixCls:a,id:w,classNames:$,styles:C},b),action:n,builtinPlacements:Ny,popupPlacement:d,ref:S,popupAlign:p,getPopupContainer:h,onOpenChange:s,afterOpenChange:c,popupMotion:u,defaultPopupVisible:f,autoDestroy:m,mouseLeaveDelay:i,popupStyle:C?.root,mouseEnterDelay:o,arrow:k,uniqueContainerClassName:$?.uniqueContainer,uniqueContainerStyle:C?.uniqueContainer},E),e=>{let{open:t}=e;const n=r.Children.only(l),o={"aria-describedby":b&&t?w:void 0};return r.cloneElement(n,o)})}),Py=My;function Ry(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)),s=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-s,d=c,p=2*o-a,m=l,f=2*o-0,h=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${p} ${m} A ${r} ${r} 0 0 0 ${f} ${h} Z')`,arrowPolygon:`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`}}const Oy=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${lt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function zy(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Ay(e,t){return e?t:{}}const Ty=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a,antCls:l}=e,[s]=Do(l,"tooltip"),{arrowDistance:c=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...Oy(e,t,o),"&:before":{background:t}}],...Ay(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[s("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{[s("arrow-offset-x")]:`calc(100% - ${lt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}}),...Ay(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[s("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{[s("arrow-offset-x")]:`calc(100% - ${lt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}}),...Ay(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},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}}),...Ay(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},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 By={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"]}},Hy={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"]}},Dy=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ly(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={},c=zy({contentRadius:i,limitVerticalRadius:!0});return Object.keys(By).forEach(e=>{const i={...r&&Hy[e]||By[e],offset:[0,0],dynamicInset:!0};switch(s[e]=i,Dy.has(e)&&(i.autoArrow=!1),e){case"top":case"topLeft":case"topRight":i.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":i.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":i.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":i.offset[0]=l+o}if(r)switch(e){case"topLeft":case"bottomLeft":i.offset[0]=-c.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":i.offset[0]=c.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":i.offset[1]=2*-c.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":i.offset[1]=2*c.arrowOffsetHorizontal-l}i.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={...i,...o};return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,c,t,n),a&&(i.htmlRegion="visibleFirst")}),s}const jy=r.createContext(!1),Fy=(e,t)=>{const n=e=>"boolean"===typeof e?{show:e}:e||{};return r.useMemo(()=>{const r=n(e),o=n(t);return{...o,...r,show:r.show??o.show??!0}},[e,t])};function Wy(e,t){return mo.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return{...n,...t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l})}},{})}const _y=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:p,sizePopupArrow:m,antCls:f}=e,[h,g]=Do(f,"tooltip"),b=t(a).add(m).add(p).equal(),v={minWidth:t(a).mul(2).add(m).equal(),minHeight:s,padding:`${lt(e.calc(u).div(2).equal())} ${lt(d)}`,color:g("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},y={[h("valid-offset-x")]:g("arrow-offset-x","var(--arrow-x)"),transformOrigin:[g("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" ")};return[{[n]:{...br(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...y,"&-hidden":{display:"none"},[h("arrow-background-color")]:i,[`${n}-container`]:[v,Qf(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"},...Wy(e,(e,t)=>{let{darkColor:r}=t;return{[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:r},[`${n}-arrow`]:{[h("arrow-background-color")]:r}}}}),"&-rtl":{direction:"rtl"}}},Ty(e,g("arrow-background-color")),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:"absolute",zIndex:t(l).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},Vy=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...zy({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Ry(ir(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Xy=function(e,t){const n=To("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:o}=e,i=ir(e,{tooltipMaxWidth:o,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[_y(i),dh(e,"zoom-big-fast")]},Vy,{resetStyle:!1,injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2]});return n(e,t)},Ky=mo.map(e=>`${e}-inverse`),qy=["success","processing","error","default","warning"];function Gy(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(le(Ky),le(mo)).includes(e):mo.includes(e)}const Yy=(e,t,n)=>{const r=Gy(n),[o]=Do(e,"tooltip"),i=re({[`${t}-${n}`]:n&&r}),a={},l={},s=xd(n).toRgb(),c=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return n&&!r&&(a.background=n,a[o("overlay-color")]=c,l[o("arrow-background-color")]=n),{className:i,overlayStyle:a,arrowStyle:l}},Uy=e=>{const{prefixCls:t,className:n,placement:o="top",title:i,color:a,overlayInnerStyle:l,classNames:s,styles:c}=e,{getPrefixCls:u}=r.useContext(ye),d=u("tooltip",t),p=u(),m=Ka(d),[f,h]=Xy(d,m),g=Yy(p,d,a),b=g.arrowStyle,v=r.useMemo(()=>({container:{...l,...g.overlayStyle}}),[l,g.overlayStyle]),y={...e,placement:o},[$,C]=Ca([s],[v,c],{props:y}),x=re(m,f,h,d,`${d}-pure`,`${d}-placement-${o}`,n,g.className);return r.createElement("div",{className:x,style:b},r.createElement("div",{className:`${d}-arrow`}),r.createElement(wy,{...e,className:f,prefixCls:d,classNames:$,styles:C},i))},Qy=r.forwardRef((e,t)=>{const{prefixCls:n,openClassName:o,getTooltipContainer:i,color:a,children:l,afterOpenChange:s,arrow:c,destroyTooltipOnHide:u,destroyOnHidden:d,title:p,overlay:m,trigger:f,builtinPlacements:h,autoAdjustOverflow:g=!0,motion:b,getPopupContainer:v,placement:y="top",mouseEnterDelay:$=.1,mouseLeaveDelay:C=.1,rootClassName:x,styles:w,classNames:S,onOpenChange:E,overlayInnerStyle:k,overlayStyle:N,overlayClassName:I,...M}=e,[,P]=Ao(),{getPopupContainer:R,getPrefixCls:O,direction:z,className:A,style:T,classNames:B,styles:H,arrow:D,trigger:L}=xe("tooltip"),j=Fy(c,D),W=j.show,_=f||L||"hover",V=v||R,X=d??!!u,K=r.useContext(jy),q=(ll("Tooltip"),r.useRef(null)),G=()=>{q.current?.forceAlign()};r.useImperativeHandle(t,()=>({forceAlign:G,nativeElement:q.current?.nativeElement,popupElement:q.current?.popupElement}));const[Y,U]=F(e.defaultOpen??!1,e.open),Q=!p&&!m&&0!==p,Z=r.useMemo(()=>h||Ly({arrowPointAtCenter:j?.pointAtCenter??!1,autoAdjustOverflow:g,arrowWidth:W?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS,visibleFirst:!0}),[j,h,P,W,g]),J=r.useMemo(()=>0===p?p:m||p||"",[m,p]),ee=r.createElement(Um,{space:!0,form:!0},"function"===typeof J?J():J),te={...e,trigger:_,builtinPlacements:Z,getPopupContainer:V,destroyOnHidden:X},[ne,oe]=Ca([B,S],[H,w],{props:te}),ie=O("tooltip",n),ae=O(),le=e["data-popover-inject"];let se=Y;(!("open"in e)&&Q||K)&&(se=!1);const ce=r.isValidElement(l)&&!Nl(l)?l:r.createElement("span",null,l),ue=ce.props,de=ue.className&&"string"!==typeof ue.className?ue.className:re(ue.className,o||`${ie}-open`),pe=Ka(ie),[me,fe]=Xy(ie,pe,!le),he=Yy(ae,ie,a),ge=he.arrowStyle,be=re(pe,me,fe),ve=re(I,{[`${ie}-rtl`]:"rtl"===z},he.className,x,be,A,ne.root),[ye,$e]=Tl("Tooltip",M.zIndex),Ce={...oe.container,...k,...he.overlayStyle},we=r.createElement(Py,{unique:!0,...M,zIndex:ye,showArrow:W,placement:y,mouseEnterDelay:$,mouseLeaveDelay:C,prefixCls:ie,classNames:{root:ve,container:ne.container,arrow:ne.arrow,uniqueContainer:re(be,ne.container)},styles:{root:{...ge,...oe.root,...T,...N},container:Ce,uniqueContainer:Ce,arrow:oe.arrow},ref:q,overlay:ee,visible:se,onVisibleChange:e=>{U(!Q&&e),!Q&&E&&E(e)},afterVisibleChange:s,arrowContent:r.createElement("span",{className:`${ie}-arrow-content`}),motion:{motionName:qc(ae,"zoom-big-fast","string"===typeof b?.motionName?b?.motionName:void 0),motionDeadline:1e3},trigger:_,builtinPlacements:Z,getTooltipContainer:V,destroyOnHidden:X},se?Ml(ce,{className:de}):ce);return r.createElement(Pl.Provider,{value:$e},we)}),Zy=Qy;Zy._InternalPanelDoNotUseOrYouWillBeFired=Uy,Zy.UniqueProvider=bc;const Jy=Zy,e$=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:p,titleBorderBottom:m,innerContentPadding:f,titlePadding:h,antCls:g}=e,[b,v]=Do(g,"tooltip");return[{[t]:{...br(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[b("valid-offset-x")]:v("arrow-offset-x","var(--arrow-x)"),transformOrigin:[v("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" "),[b("arrow-background-color")]:d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:m,padding:h},[`${t}-content`]:{color:n,padding:f}}},Ty(e,v("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},t$=e=>{const{componentCls:t,antCls:n}=e,[r]=Do(n,"tooltip");return{[t]:mo.map(n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{[r("arrow-background-color")]:o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},n$=To("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=ir(e,{popoverBg:t,popoverColor:n});return[e$(r),t$(r),dh(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,p=n-r,m=p/2,f=p/2-t,h=o;return{titleMinWidth:177,zIndexPopup:a+30,...Ry(e),...zy({contentRadius:l,limitVerticalRadius:!0}),innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${m}px ${h}px ${f}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),r$=e=>{const{title:t,content:n,prefixCls:o,classNames:i,styles:a}=e;return t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:re(`${o}-title`,i?.title),style:a?.title},t),n&&r.createElement("div",{className:re(`${o}-content`,i?.content),style:a?.content},n)):null},o$=e=>{const{hashId:t,prefixCls:n,className:o,style:i,placement:a="top",title:l,content:s,children:c,classNames:u,styles:d}=e,p=xy(l),m=xy(s),f={...e,placement:a},[h,g]=Ca([u],[d],{props:f}),b=re(t,n,`${n}-pure`,`${n}-placement-${a}`,o);return r.createElement("div",{className:b,style:i},r.createElement("div",{className:`${n}-arrow`}),r.createElement(wy,{...e,className:t,prefixCls:n,classNames:h,styles:g},c||r.createElement(r$,{prefixCls:n,title:p,content:m,classNames:h,styles:g})))},i$=e=>{const{prefixCls:t,className:n,...o}=e,{getPrefixCls:i}=r.useContext(ye),a=i("popover",t),[l,s]=n$(a);return r.createElement(o$,{...o,prefixCls:a,hashId:l,className:re(n,s)})},a$=r.forwardRef((e,t)=>{const{prefixCls:n,title:o,content:i,overlayClassName:a,placement:l="top",trigger:s,children:c,mouseEnterDelay:u=.1,mouseLeaveDelay:d=.1,onOpenChange:p,overlayStyle:m={},styles:f,classNames:h,motion:g,arrow:b,...v}=e,{getPrefixCls:y,className:$,style:C,classNames:x,styles:w,arrow:S,trigger:E}=xe("popover"),k=y("popover",n),[N,I]=n$(k),M=y(),P=Fy(b,S),R=s||E||"hover";const O={...e,placement:l,trigger:R,mouseEnterDelay:u,mouseLeaveDelay:d,overlayStyle:m,styles:f,classNames:h},[z,A]=Ca([x,h],[w,f],{props:O}),T=re(a,N,I,$,z.root),[B,H]=F(e.defaultOpen??!1,e.open),D=xy(o),L=xy(i);return r.createElement(Jy,{unique:!1,arrow:P,placement:l,trigger:R,mouseEnterDelay:u,mouseLeaveDelay:d,...v,prefixCls:k,classNames:{root:T,container:z.container,arrow:z.arrow},styles:{root:{...A.root,...C,...m},container:A.container,arrow:A.arrow},ref:t,open:B,onOpenChange:e=>{H(e),p?.(e)},overlay:D||L?r.createElement(r$,{prefixCls:k,title:D,content:L,classNames:z,styles:A}):null,motion:{motionName:qc(M,"zoom-big","string"===typeof g?.motionName?g?.motionName:void 0)},"data-popover-inject":!0},c)}),l$=a$;l$._InternalPanelDoNotUseOrYouWillBeFired=i$;const s$=l$,c$=e=>{const{size:t,shape:n}=r.useContext(gy),o=r.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return r.createElement(gy.Provider,{value:o},e.children)},u$=e=>{const{getPrefixCls:t,direction:n}=r.useContext(ye),{prefixCls:o,className:i,rootClassName:a,style:l,maxCount:s,maxStyle:u,size:d,shape:p,maxPopoverPlacement:m,maxPopoverTrigger:f,children:h,max:g}=e;const b=t("avatar",o),v=`${b}-group`,y=Ka(b),[$,C]=yy(b,y),x=re(v,{[`${v}-rtl`]:"rtl"===n},C,y,i,a,$),w=c(h).map((e,t)=>Ml(e,{key:`avatar-key-${t}`})),S=g?.count||s,E=w.length;if(S&&S<E){const e=w.slice(0,S),t=w.slice(S,E),n=g?.style||u,o=g?.popover?.trigger||f||"hover",i=g?.popover?.placement||m||"top",a={content:t,...g?.popover,placement:i,trigger:o,rootClassName:re(`${v}-popover`,g?.popover?.rootClassName)};return e.push(r.createElement(s$,{key:"avatar-popover-key",destroyOnHidden:!0,...a},r.createElement(Cy,{style:n},"+"+(E-S)))),r.createElement(c$,{shape:p,size:d},r.createElement("div",{className:x,style:l},e))}return r.createElement(c$,{shape:p,size:d},r.createElement("div",{className:x,style:l},w))},d$=Cy;d$.Group=u$;const p$=d$;const m$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};function f$(){return f$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f$.apply(this,arguments)}const h$=r.forwardRef((e,t)=>r.createElement(si,f$({},e,{ref:t,icon:m$}))),g$=e=>{const{componentCls:t,backTopFontSize:n,backTopSize:r,zIndexPopup:o}=e;return{[t]:{...br(e),position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:o,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${t}-content`]:{width:r,height:r,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:r,transition:`all ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:`all ${e.motionDurationMid}`}},[`${t}-icon`]:{fontSize:n,lineHeight:lt(r)}}}},b$=e=>{const{componentCls:t,screenMD:n,screenXS:r,backTopInlineEndMD:o,backTopInlineEndXS:i}=e;return{[`@media (max-width: ${lt(n)})`]:{[t]:{insetInlineEnd:o}},[`@media (max-width: ${lt(r)})`]:{[t]:{insetInlineEnd:i}}}},v$=To("BackTop",e=>{const{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:r,colorText:o,controlHeightLG:i,calc:a}=e,l=ir(e,{backTopBackground:n,backTopColor:r,backTopHoverBackground:o,backTopFontSize:t,backTopSize:i,backTopBlockEnd:a(i).mul(1.25).equal(),backTopInlineEnd:a(i).mul(2.5).equal(),backTopInlineEndMD:a(i).mul(1.5).equal(),backTopInlineEndXS:a(i).mul(.5).equal()});return[g$(l),b$(l)]},e=>({zIndexPopup:e.zIndexBase+10}));const y$=e=>{const{prefixCls:t,className:n,rootClassName:o,visibilityHeight:i=400,target:a,onClick:l,duration:s=450,children:c}=e,[u,d]=r.useState(0===i),p=r.useRef(null),m=()=>p.current?.ownerDocument||window,f=he(e=>{const t=Va(e.target);d(t>=i)});r.useEffect(()=>{const e=(a||m)();return f({target:e}),e?.addEventListener("scroll",f),()=>{f.cancel(),e?.removeEventListener("scroll",f)}},[a]);const{getPrefixCls:h,direction:g}=r.useContext(ye),b=h("back-top",t),v=h(),y=Ka(b),[$,C]=v$(b,y),x=re($,C,b,{[`${b}-rtl`]:"rtl"===g},n,o),w=Y(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),S=r.createElement("div",{className:`${b}-content`},r.createElement("div",{className:`${b}-icon`},r.createElement(h$,null)));return r.createElement("div",{...w,className:x,onClick:e=>{Xa(0,{getContainer:a||m,duration:s}),l?.(e)},ref:p},r.createElement(da,{visible:u,motionName:`${v}-fade`},e=>{let{className:t}=e;return Ml(c||S,e=>{let{className:n}=e;return{className:re(t,n)}})}))},$$=e=>{const{prefixCls:t,value:n,current:o,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),r.createElement("span",{style:a,className:re(`${t}-only-unit`,{current:o})},n)};function C$(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const x$=e=>{const{prefixCls:t,count:n,value:o}=e,i=Number(o),a=Math.abs(n),[l,s]=r.useState(i),[c,u]=r.useState(a),d=()=>{s(i),u(a)};let p,m;if(r.useEffect(()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)},[i]),l===i||Number.isNaN(i)||Number.isNaN(l))p=[r.createElement($$,{...e,key:i,current:!0})],m={transition:"none"};else{p=[];const t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);const o=c<a?1:-1,s=n.findIndex(e=>e%10===l);p=(o<0?n.slice(0,s+1):n.slice(s)).map((t,n)=>{const i=t%10;return r.createElement($$,{...e,key:t,value:i,offset:o<0?n-s:n,current:n===s})}),m={transform:`translateY(${-C$(l,i,o)}00%)`}}return r.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:d},p)},w$=r.forwardRef((e,t)=>{const{prefixCls:n,count:o,className:i,motionClassName:a,style:l,title:s,show:c,component:u="sup",children:d,...p}=e,{getPrefixCls:m}=r.useContext(ye),f=m("scroll-number",n),h={...p,"data-show":c,style:l,className:re(f,i,a),title:s};let g=o;if(o&&Number(o)%1===0){const e=String(o).split("");g=r.createElement("bdi",null,e.map((t,n)=>r.createElement(x$,{prefixCls:f,count:Number(o),value:t,key:e.length-n})))}return l?.borderColor&&(h.style={...l,boxShadow:`0 0 0 1px ${l.borderColor} inset`}),d?Ml(d,e=>({className:re(`${f}-custom-component`,e?.className,a)})):r.createElement(u,{...h,ref:t},g)}),S$=w$,E$=new Bn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),k$=new Bn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),N$=new Bn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),I$=new Bn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),M$=new Bn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),P$=new Bn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),R$=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return ir(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorTextLightSolid,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},O$=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},z$=To("Badge",e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:s,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:d,marginXS:p,calc:m}=e,f=`${r}-scroll-number`,h=Wy(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t} ${t}-color-${e}`]:{background:r,[`&:not(${t}-count)`]:{color:r},"a:hover &":{background:r}}}});return{[t]:{...br(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:lt(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:m(u).div(2).equal(),boxShadow:`0 0 0 ${lt(o)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:lt(d),borderRadius:m(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${lt(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${lt(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${f}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:P$,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:E$,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}},...h,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:k$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:N$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:I$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:M$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${f}-custom-component, ${t}-count`]:{transform:"none"},[`${f}-custom-component, ${f}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[f]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${f}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${f}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${f}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${f}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}})(R$(e)),O$),A$=r.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:o,children:i,status:a,text:l,color:s,count:c=null,overflowCount:u=99,dot:d=!1,size:p="medium",title:m,offset:f,style:h,className:g,rootClassName:b,classNames:v,styles:y,showZero:$=!1,...C}=e,{getPrefixCls:x,direction:w,className:S,style:E,classNames:k,styles:N}=xe("badge"),I=x("badge",n),[M,P]=z$(I);const R={...e,overflowCount:u,size:p,dot:d,showZero:$},[O,z]=Ca([k,v],[N,y],{props:R}),A=c>u?`${u}+`:c,T="0"===A||0===A||"0"===l||0===l,B=null===c||T&&!$,H=(xa(a)||xa(s))&&B,D=xa(a)||!T,L=d&&!T,j=L?"":A,F=(0,r.useMemo)(()=>((!xa(j)||""===j)&&(!xa(l)||""===l)||T&&!$)&&!L,[j,T,$,L,l]),W=(0,r.useRef)(c);F||(W.current=c);const _=W.current,V=(0,r.useRef)(j);F||(V.current=j);const X=V.current,K=(0,r.useRef)(L);F||(K.current=L);const q=(0,r.useMemo)(()=>{if(!f)return{...E,...h};const e=Number.parseInt(f[0],10);return{...{marginTop:f[1],insetInlineEnd:-e},...E,...h}},[f,h,E]),G=m??("string"===typeof _||"number"===typeof _?_:void 0),Y=!F&&(0===l?$:!!l&&!0!==l),U=Y?r.createElement("span",{className:`${I}-status-text`},l):null,Q=_&&"object"===typeof _?Ml(_,e=>({style:{...q,...e.style}})):void 0,Z=Gy(s,!1),J=re(O.indicator,{[`${I}-status-dot`]:H,[`${I}-status-${a}`]:!!a,[`${I}-color-${s}`]:Z}),ee={};s&&!Z&&(ee.color=s,ee.background=s);const te=re(I,{[`${I}-status`]:H,[`${I}-not-a-wrapper`]:!i,[`${I}-rtl`]:"rtl"===w},g,b,S,O.root,M,P);if(!i&&H&&(l||D||!B)){const e=q.color;return r.createElement("span",{ref:t,...C,className:te,style:{...z.root,...q}},r.createElement("span",{className:J,style:{...z.indicator,...ee}}),Y&&r.createElement("span",{style:{color:e},className:`${I}-status-text`},l))}return r.createElement("span",{ref:t,...C,className:te,style:z.root},i,r.createElement(da,{visible:!F,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},e=>{let{className:t}=e;const n=x("scroll-number",o),i=K.current,l=re(O.indicator,{[`${I}-dot`]:i,[`${I}-count`]:!i,[`${I}-count-sm`]:"small"===p,[`${I}-multiple-words`]:!i&&X&&X.toString().length>1,[`${I}-status-${a}`]:!!a,[`${I}-color-${s}`]:Z});let c={...z.indicator,...q};return s&&!Z&&(c=c||{},c.background=s),r.createElement(S$,{prefixCls:n,show:!F,motionClassName:t,className:l,count:X,title:G,style:c,key:"scrollNumber"},Q)}),U)});const T$=A$,B$=To(["Badge","Ribbon"],e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=Wy(e,(e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}});return{[l]:{position:"relative"},[a]:{...br(e),position:"absolute",top:r,padding:`0 ${lt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:lt(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-content`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${lt(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...s,[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}})(R$(e)),O$);const H$=e=>{const{className:t,prefixCls:n,style:o,color:i,children:a,text:l,placement:s="end",rootClassName:c,styles:u,classNames:d}=e,{getPrefixCls:p,direction:m,className:f,style:h,classNames:g,styles:b}=xe("ribbon"),v=p("ribbon",n),y=`${v}-wrapper`,[$,C]=B$(v,y),x={...e,placement:s},[w,S]=Ca([g,d],[b,u],{props:x}),E=Gy(i,!1),k=re(v,`${v}-placement-${s}`,{[`${v}-rtl`]:"rtl"===m,[`${v}-color-${i}`]:E},t,f,w.indicator),N={},I={};return i&&!E&&(N.background=i,I.color=i),r.createElement("div",{className:re(y,c,$,C,w.root),style:S.root},a,r.createElement("div",{className:re(k,$),style:{...N,...S.indicator,...h,...o}},r.createElement("span",{className:re(`${v}-content`,w.content),style:S.content},l),r.createElement("div",{className:`${v}-corner`,style:I})))},D$=T$;D$.Ribbon=H$;const L$=D$,j$=r.createContext({});const F$={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"};function W$(){return W$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W$.apply(this,arguments)}const _$=r.forwardRef((e,t)=>r.createElement(si,W$({},e,{ref:t,icon:F$}))),{ESC:V$,TAB:X$}=ul;const K$=(0,r.forwardRef)((e,t)=>{const{overlay:n,arrow:o,prefixCls:i}=e,a=(0,r.useMemo)(()=>{let e;return e="function"===typeof n?n():n,e},[n]),l=w(t,I(a));return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:`${i}-arrow`}),r.cloneElement(a,{ref:E(a)?l:void 0}))}),q$={adjustX:1,adjustY:1},G$=[0,0],Y$={topLeft:{points:["bl","tl"],overflow:q$,offset:[0,-4],targetOffset:G$},top:{points:["bc","tc"],overflow:q$,offset:[0,-4],targetOffset:G$},topRight:{points:["br","tr"],overflow:q$,offset:[0,-4],targetOffset:G$},bottomLeft:{points:["tl","bl"],overflow:q$,offset:[0,4],targetOffset:G$},bottom:{points:["tc","bc"],overflow:q$,offset:[0,4],targetOffset:G$},bottomRight:{points:["tr","br"],overflow:q$,offset:[0,4],targetOffset:G$}};function U$(){return U$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U$.apply(this,arguments)}const Q$=r.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:o="rc-dropdown",transitionName:i,animation:a,align:l,placement:s="bottomLeft",placements:c=Y$,getPopupContainer:u,showAction:d,hideAction:p,overlayClassName:m,overlayStyle:f,visible:h,trigger:g=["hover"],autoFocus:b,overlay:v,children:y,onVisibleChange:$,...C}=e,[x,S]=r.useState(),k="visible"in e?h:x,N=a?`${o}-${a}`:i,M=r.useRef(null),P=r.useRef(null),R=r.useRef(null);r.useImperativeHandle(t,()=>M.current);const O=e=>{S(e),$?.(e)};!function(e){let{visible:t,triggerRef:n,onVisibleChange:o,autoFocus:i,overlayRef:a}=e;const l=r.useRef(!1),s=()=>{t&&(n.current?.focus?.(),o?.(!1))},c=()=>!!a.current?.focus&&(a.current.focus(),l.current=!0,!0),u=e=>{switch(e.keyCode){case V$:s();break;case X$:{let t=!1;l.current||(t=c()),t?e.preventDefault():s();break}}};r.useEffect(()=>t?(window.addEventListener("keydown",u),i&&fe(c,3),()=>{window.removeEventListener("keydown",u),l.current=!1}):()=>{l.current=!1},[t])}({visible:k,triggerRef:R,onVisibleChange:O,autoFocus:b,overlayRef:P});const z=()=>r.createElement(K$,{ref:P,overlay:v,prefixCls:o,arrow:n}),A=r.cloneElement(y,{className:re(y.props?.className,k&&(()=>{const{openClassName:t}=e;return void 0!==t?t:`${o}-open`})()),ref:E(y)?w(R,I(y)):void 0});let T=p;return T||-1===g.indexOf("contextMenu")||(T=["click"]),r.createElement(fc,U$({builtinPlacements:c},C,{prefixCls:o,ref:M,popupClassName:re(m,{[`${o}-show-arrow`]:n}),popupStyle:f,action:g,showAction:d,hideAction:T,popupPlacement:s,popupAlign:l,popupMotion:{motionName:N},popupVisible:k,stretch:(()=>{const{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return"minOverlayWidthMatchTrigger"in e?t:!n})()?"minWidth":"",popup:"function"===typeof v?z:z(),onOpenChange:O,onPopupClick:t=>{const{onOverlayClick:n}=e;S(!1),n&&n(t)},getPopupContainer:u}),A)}),Z$=Q$,J$=e=>"object"!==typeof e&&"function"!==typeof e||null===e,eC=r.createContext(null);function tC(e,t){return`${e}-${t}`}function nC(e){return tC(r.useContext(eC),e)}const rC=r.createContext(null);function oC(e){let{children:t,locked:n,...o}=e;const i=r.useContext(rC),a=$(()=>function(e,t){const n={...e};return Object.keys(t).forEach(e=>{const r=t[e];void 0!==r&&(n[e]=r)}),n}(i,o),[i,o],(e,t)=>!n&&(e[0]!==t[0]||!je(e[1],t[1],!0)));return r.createElement(rC.Provider,{value:a},t)}const iC=r.createContext(null);function aC(){return r.useContext(iC)}const lC=r.createContext([]);function sC(e){const t=r.useContext(lC);return r.useMemo(()=>void 0!==e?[...t,e]:t,[t,e])}const cC=r.createContext(null),uC=r.createContext({}),{LEFT:dC,RIGHT:pC,UP:mC,DOWN:fC,ENTER:hC,ESC:gC,HOME:bC,END:vC}=ul,yC=[mC,fC,dC,pC];function $C(e,t){return sp(e,!0).filter(e=>t.has(e))}function CC(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;const o=$C(e,t),i=o.length;let a=o.findIndex(e=>n===e);return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}const xC=(e,t)=>{const n=new Set,r=new Map,o=new Map;return e.forEach(e=>{const i=document.querySelector(`[data-menu-id='${tC(t,e)}']`);i&&(n.add(i),o.set(i,e),r.set(e,i))}),{elements:n,key2element:r,element2key:o}};function wC(e,t,n,o,i,a,l,s,c,u){const d=r.useRef(),p=r.useRef();p.current=t;const m=()=>{fe.cancel(d.current)};return r.useEffect(()=>()=>{m()},[]),r=>{const{which:f}=r;if([...yC,hC,gC,bC,vC].includes(f)){const u=a();let h=xC(u,o);const{elements:g,key2element:b,element2key:v}=h,y=function(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}(b.get(t),g),$=v.get(y),C=function(e,t,n,r){const o="prev",i="next",a="children",l="parent";if("inline"===e&&r===hC)return{inlineTrigger:!0};const s={[mC]:o,[fC]:i},c={[dC]:n?i:o,[pC]:n?o:i,[fC]:a,[hC]:a},u={[mC]:o,[fC]:i,[hC]:a,[gC]:l,[dC]:n?a:l,[pC]:n?l:a},d={inline:s,horizontal:c,vertical:u,inlineSub:s,horizontalSub:u,verticalSub:u},p=d[`${e}${t?"":"Sub"}`]?.[r];switch(p){case o:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case a:return{offset:1,sibling:!1};default:return null}}(e,1===l($,!0).length,n,f);if(!C&&f!==bC&&f!==vC)return;(yC.includes(f)||[bC,vC].includes(f))&&r.preventDefault();const x=e=>{if(e){let t=e;const n=e.querySelector("a");n?.getAttribute("href")&&(t=n);const r=v.get(e);s(r),m(),d.current=fe(()=>{p.current===r&&t.focus()})}};if([bC,vC].includes(f)||C.sibling||!y){let t,n;t=y&&"inline"!==e?function(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):i.current;const r=$C(t,g);n=f===bC?r[0]:f===vC?r[r.length-1]:CC(t,g,y,C.offset),x(n)}else if(C.inlineTrigger)c($);else if(C.offset>0)c($,!0),m(),d.current=fe(()=>{h=xC(u,o);const e=y.getAttribute("aria-controls"),t=CC(document.getElementById(e),h.elements);x(t)},5);else if(C.offset<0){const e=l($,!0),t=e[e.length-2],n=b.get(t);c(t,!1),x(n)}}u?.(r)}}const SC="__RC_UTIL_PATH_SPLIT__",EC=e=>e.join(SC),kC="rc-menu-more";function NC(){const[,e]=r.useState({}),t=(0,r.useRef)(new Map),n=(0,r.useRef)(new Map),[o,i]=r.useState([]),a=(0,r.useRef)(0),l=(0,r.useRef)(!1),s=(0,r.useCallback)((r,o)=>{const i=EC(o);n.current.set(i,r),t.current.set(r,i),a.current+=1;const s=a.current;var c;c=()=>{s===a.current&&(l.current||e({}))},Promise.resolve().then(c)},[]),c=(0,r.useCallback)((e,r)=>{const o=EC(r);n.current.delete(o),t.current.delete(e)},[]),u=(0,r.useCallback)(e=>{i(e)},[]),d=(0,r.useCallback)((e,n)=>{const r=t.current.get(e)||"",i=r.split(SC);return n&&o.includes(i[0])&&i.unshift(kC),i},[o]),p=(0,r.useCallback)((e,t)=>e.filter(e=>void 0!==e).some(e=>d(e,!0).includes(t)),[d]),m=(0,r.useCallback)(e=>{const r=`${t.current.get(e)}${SC}`,o=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&o.add(n.current.get(e))}),o},[]);return r.useEffect(()=>()=>{l.current=!0},[]),{registerPath:s,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:p,getKeyPath:d,getKeys:()=>{const e=[...t.current.keys()];return o.length&&e.push(kC),e},getSubPathKeys:m}}function IC(e){const t=r.useRef(e);t.current=e;const n=r.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current?.(...n)},[]);return e?n:void 0}function MC(e,t,n,o){const{activeKey:i,onActive:a,onInactive:l}=r.useContext(rC),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{o?.({key:e,domEvent:t}),l(e)}),s}function PC(e){const{mode:t,rtl:n,inlineIndent:o}=r.useContext(rC);if("inline"!==t)return null;return n?{paddingRight:e*o}:{paddingLeft:e*o}}function RC(e){let t,{icon:n,props:o,children:i}=e;return null===n||!1===n?null:("function"===typeof n?t=r.createElement(n,{...o}):"boolean"!==typeof n&&(t=n),t||i||null)}function OC(e){let{item:t,...n}=e;return Object.defineProperty(n,"item",{get:()=>(g(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t)}),n}function zC(){return zC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zC.apply(this,arguments)}class AC extends r.Component{render(){const{title:e,attribute:t,elementRef:n,...o}=this.props,i=Y(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return g(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(rb.Item,zC({},t,{title:"string"===typeof e?e:void 0},i,{ref:n}))}}const TC=r.forwardRef((e,t)=>{const{style:n,className:o,eventKey:i,warnKey:a,disabled:l,itemIcon:s,children:c,role:u,onMouseEnter:d,onMouseLeave:p,onClick:m,onKeyDown:f,onFocus:h,...g}=e,b=nC(i),{prefixCls:v,onItemClick:y,disabled:$,overflowDisabled:C,itemIcon:x,selectedKeys:w,onActive:E}=r.useContext(rC),{_internalRenderMenuItem:k}=r.useContext(uC),N=`${v}-item`,I=r.useRef(),M=r.useRef(),P=$||l,R=S(t,M),O=sC(i);const z=e=>({key:i,keyPath:[...O].reverse(),item:I.current,domEvent:e}),A=s||x,{active:T,...B}=MC(i,P,d,p),H=w.includes(i),D=PC(O.length),L={};"option"===e.role&&(L["aria-selected"]=H);let j=r.createElement(AC,zC({ref:I,elementRef:R,role:null===u?"none":u||"menuitem",tabIndex:l?null:-1,"data-menu-id":C&&b?null:b},Y(g,["extra"]),B,L,{component:"li","aria-disabled":l,style:{...D,...n},className:re(N,{[`${N}-active`]:T,[`${N}-selected`]:H,[`${N}-disabled`]:P},o),onClick:e=>{if(P)return;const t=z(e);m?.(OC(t)),y(t)},onKeyDown:e=>{if(f?.(e),e.which===ul.ENTER){const t=z(e);m?.(OC(t)),y(t)}},onFocus:e=>{E(i),h?.(e)}}),c,r.createElement(RC,{props:{...e,isSelected:H},icon:A}));return k&&(j=k(j,e,{selected:H})),j});const BC=r.forwardRef(function(e,t){const{eventKey:n}=e,o=aC(),i=sC(n);return r.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]),o?null:r.createElement(TC,zC({},e,{ref:t}))});function HC(){return HC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HC.apply(this,arguments)}const DC=r.forwardRef((e,t)=>{let{className:n,children:o,...i}=e;const{prefixCls:a,mode:l,rtl:s}=r.useContext(rC);return r.createElement("ul",HC({className:re(a,s&&`${a}-rtl`,`${a}-sub`,`${a}-${"inline"===l?"inline":"vertical"}`,n),role:"menu"},i,{"data-menu-list":!0,ref:t}),o)});const LC=DC;function jC(e,t){return c(e).map((e,n)=>{if(r.isValidElement(e)){const{key:o}=e;let i=e.props?.eventKey??o;(null===i||void 0===i)&&(i=`tmp_key-${[...t,n].join("-")}`);const a={key:i,eventKey:i};return r.cloneElement(e,a)}return e})}const FC={adjustX:1,adjustY:1},WC={topLeft:{points:["bl","tl"],overflow:FC},topRight:{points:["br","tr"],overflow:FC},bottomLeft:{points:["tl","bl"],overflow:FC},bottomRight:{points:["tr","br"],overflow:FC},leftTop:{points:["tr","tl"],overflow:FC},leftBottom:{points:["br","bl"],overflow:FC},rightTop:{points:["tl","tr"],overflow:FC},rightBottom:{points:["bl","br"],overflow:FC}},_C={topLeft:{points:["bl","tl"],overflow:FC},topRight:{points:["br","tr"],overflow:FC},bottomLeft:{points:["tl","bl"],overflow:FC},bottomRight:{points:["tr","br"],overflow:FC},rightTop:{points:["tr","tl"],overflow:FC},rightBottom:{points:["br","bl"],overflow:FC},leftTop:{points:["tl","tr"],overflow:FC},leftBottom:{points:["bl","br"],overflow:FC}};function VC(e,t,n){return t||(n?n[e]||n.other:void 0)}const XC={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function KC(e){let{prefixCls:t,visible:n,children:o,popup:i,popupStyle:a,popupClassName:l,popupOffset:s,disabled:c,mode:u,onVisibleChange:d}=e;const{getPopupContainer:p,rtl:m,subMenuOpenDelay:f,subMenuCloseDelay:h,builtinPlacements:g,triggerSubMenuAction:b,forceSubMenuRender:v,rootClassName:y,motion:$,defaultMotions:C}=r.useContext(rC),[x,w]=r.useState(!1),S=m?{..._C,...g}:{...WC,...g},E=XC[u],k=VC(u,$,C),N=r.useRef(k);"inline"!==u&&(N.current=k);const I={...N.current,leavedClassName:`${t}-hidden`,removeOnLeave:!1,motionAppear:!0},M=r.useRef();return r.useEffect(()=>(M.current=fe(()=>{w(n)}),()=>{fe.cancel(M.current)}),[n]),r.createElement(fc,{prefixCls:t,popupClassName:re(`${t}-popup`,{[`${t}-rtl`]:m},l,y),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:S,popupPlacement:E,popupVisible:x,popup:i,popupStyle:a,popupAlign:s&&{offset:s},action:c?[]:[b],mouseEnterDelay:f,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:v,popupMotion:I,fresh:!0},o)}function qC(){return qC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qC.apply(this,arguments)}function GC(e){let{id:t,open:n,keyPath:o,children:i}=e;const a="inline",{prefixCls:l,forceSubMenuRender:s,motion:c,defaultMotions:u,mode:d}=r.useContext(rC),p=r.useRef(!1);p.current=d===a;const[m,f]=r.useState(!p.current),h=!!p.current&&n;r.useEffect(()=>{p.current&&f(!1)},[d]);const g={...VC(a,c,u)};o.length>1&&(g.motionAppear=!1);const b=g.onVisibleChanged;return g.onVisibleChanged=e=>(p.current||e||f(!0),b?.(e)),m?null:r.createElement(oC,{mode:a,locked:!p.current},r.createElement(da,qC({visible:h},g,{forceRender:s,removeOnLeave:!1,leavedClassName:`${l}-hidden`}),e=>{let{className:n,style:o}=e;return r.createElement(LC,{id:t,className:n,style:o},i)}))}function YC(){return YC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YC.apply(this,arguments)}const UC=r.forwardRef((e,t)=>{const{style:n,className:o,styles:i,classNames:a,title:l,eventKey:s,warnKey:c,disabled:u,internalPopupClose:d,children:p,itemIcon:m,expandIcon:f,popupClassName:h,popupOffset:g,popupStyle:b,onClick:v,onMouseEnter:y,onMouseLeave:$,onTitleClick:C,onTitleMouseEnter:x,onTitleMouseLeave:w,popupRender:S,...E}=e,k=nC(s),{prefixCls:N,mode:I,openKeys:M,disabled:P,overflowDisabled:R,activeKey:O,selectedKeys:z,itemIcon:A,expandIcon:T,onItemClick:B,onOpenChange:H,onActive:D,popupRender:L}=r.useContext(rC),{_internalRenderSubMenuItem:j}=r.useContext(uC),{isSubPathKey:F}=r.useContext(cC),W=sC(),_=`${N}-submenu`,V=P||u,X=r.useRef(),K=r.useRef();const q=m??A,G=f??T,Y=M.includes(s),U=!R&&Y,Q=F(z,s),{active:Z,...J}=MC(s,V,x,w),[ee,te]=r.useState(!1),ne=e=>{V||te(e)},oe=r.useMemo(()=>Z||"inline"!==I&&(ee||F([O],s)),[I,Z,O,ee,s,F]),ie=PC(W.length),ae=IC(e=>{v?.(OC(e)),B(e)}),le=e=>{"inline"!==I&&H(s,e)},se=k&&`${k}-popup`,ce=r.useMemo(()=>r.createElement(RC,{icon:"horizontal"!==I?G:void 0,props:{...e,isOpen:U,isSubMenu:!0}},r.createElement("i",{className:`${_}-arrow`})),[I,G,e,U,_]);let ue=r.createElement("div",YC({role:"menuitem",style:ie,className:`${_}-title`,tabIndex:V?null:-1,ref:X,title:"string"===typeof l?l:null,"data-menu-id":R&&k?null:k,"aria-expanded":U,"aria-haspopup":!0,"aria-controls":se,"aria-disabled":V,onClick:e=>{V||(C?.({key:s,domEvent:e}),"inline"===I&&H(s,!Y))},onFocus:()=>{D(s)}},J),l,ce);const de=r.useRef(I);"inline"!==I&&W.length>1?de.current="vertical":de.current=I;const pe=de.current,me=r.useMemo(()=>{const t=r.createElement(oC,{classNames:a,styles:i,mode:"horizontal"===pe?"vertical":pe},r.createElement(LC,{id:se,ref:K},p)),n=S||L;if(n){return n(t,{item:e,keys:W})}return t},[S,L,W,se,p,e,pe]);if(!R){const e=de.current;ue=r.createElement(KC,{mode:e,prefixCls:_,visible:!d&&U&&"inline"!==I,popupClassName:h,popupOffset:g,popupStyle:b,popup:me,disabled:V,onVisibleChange:le},ue)}let fe=r.createElement(rb.Item,YC({ref:t,role:"none"},E,{component:"li",style:n,className:re(_,`${_}-${I}`,o,{[`${_}-open`]:U,[`${_}-active`]:oe,[`${_}-selected`]:Q,[`${_}-disabled`]:V}),onMouseEnter:e=>{ne(!0),y?.({key:s,domEvent:e})},onMouseLeave:e=>{ne(!1),$?.({key:s,domEvent:e})}}),ue,!R&&r.createElement(GC,{id:se,open:U,keyPath:W},p));return j&&(fe=j(fe,e,{selected:Q,active:oe,open:U,disabled:V})),r.createElement(oC,{classNames:a,styles:i,onItemClick:ae,mode:"horizontal"===I?"vertical":I,itemIcon:q,expandIcon:G},fe)});const QC=r.forwardRef((e,t)=>{const{eventKey:n,children:o}=e,i=sC(n),a=jC(o,i),l=aC();let s;return r.useEffect(()=>{if(l)return l.registerPath(n,i),()=>{l.unregisterPath(n,i)}},[i]),s=l?a:r.createElement(UC,YC({ref:t},e),a),r.createElement(lC.Provider,{value:i},s)});function ZC(e){let{className:t,style:n}=e;const{prefixCls:o}=r.useContext(rC);return aC()?null:r.createElement("li",{role:"separator",className:re(`${o}-item-divider`,t),style:n})}function JC(){return JC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JC.apply(this,arguments)}const ex=r.forwardRef((e,t)=>{const{className:n,title:o,eventKey:i,children:a,...l}=e,{prefixCls:s,classNames:c,styles:u}=r.useContext(rC),d=`${s}-item-group`;return r.createElement("li",JC({ref:t,role:"presentation"},l,{onClick:e=>e.stopPropagation(),className:re(d,n)}),r.createElement("div",{role:"presentation",className:re(`${d}-title`,c?.listTitle),style:u?.listTitle,title:"string"===typeof o?o:void 0},o),r.createElement("ul",{role:"group",className:re(`${d}-list`,c?.list),style:u?.list},a))});const tx=r.forwardRef((e,t)=>{const{eventKey:n,children:o}=e,i=jC(o,sC(n));return aC()?i:r.createElement(ex,JC({ref:t},Y(e,["warnKey"])),i)});function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nx.apply(this,arguments)}function rx(e,t,n){const{item:o,group:i,submenu:a,divider:l}=t;return(e||[]).map((e,s)=>{if(e&&"object"===typeof e){const{label:c,children:u,key:d,type:p,extra:m,...f}=e,h=d??`tmp-${s}`;return u||"group"===p?"group"===p?r.createElement(i,nx({key:h},f,{title:c}),rx(u,t,n)):r.createElement(a,nx({key:h},f,{title:c}),rx(u,t,n)):"divider"===p?r.createElement(l,nx({key:h},f)):r.createElement(o,nx({key:h},f,{extra:m}),c,(!!m||0===m)&&r.createElement("span",{className:`${n}-item-extra`},m))}return null}).filter(e=>e)}function ox(e,t,n,r,o){let i=e;const a={divider:ZC,item:BC,group:tx,submenu:QC,...r};return t&&(i=rx(t,a,o)),jC(i,n)}function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ix.apply(this,arguments)}const ax=[],lx=r.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:o,style:i,className:a,styles:l,classNames:s,tabIndex:c=0,items:u,children:d,direction:p,id:m,mode:f="vertical",inlineCollapsed:h,disabled:g,disabledOverflow:b,subMenuOpenDelay:v=.1,subMenuCloseDelay:y=.1,forceSubMenuRender:$,defaultOpenKeys:C,openKeys:x,activeKey:w,defaultActiveFirst:S,selectable:E=!0,multiple:k=!1,defaultSelectedKeys:N,selectedKeys:I,onSelect:M,onDeselect:P,inlineIndent:R=24,motion:O,defaultMotions:z,triggerSubMenuAction:A="hover",builtinPlacements:T,itemIcon:B,expandIcon:H,overflowedIndicator:D="...",overflowedIndicatorPopupClassName:L,getPopupContainer:j,onClick:W,onOpenChange:_,onKeyDown:V,openAnimation:X,openTransitionName:K,_internalRenderMenuItem:q,_internalRenderSubMenuItem:G,_internalComponents:Y,popupRender:U,...Q}=e,[Z,J]=r.useMemo(()=>[ox(d,u,ax,Y,n),ox(d,u,ax,{},n)],[d,u,Y]),[ee,te]=r.useState(!1),ne=r.useRef(),oe=Is(m?`rc-menu-uuid-${m}`:"rc-menu-uuid"),ie="rtl"===p;const[ae,le]=F(C,x),se=ae||ax,ce=function(e){function t(){le(e),_?.(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,sl.flushSync)(t):t()},[ue,de]=r.useState(se),pe=r.useRef(!1),[me,fe]=r.useMemo(()=>"inline"!==f&&"vertical"!==f||!h?[f,!1]:["vertical",h],[f,h]),he="inline"===me,[ge,be]=r.useState(me),[ve,ye]=r.useState(fe);r.useEffect(()=>{be(me),ye(fe),pe.current&&(he?le(ue):ce(ax))},[me,fe]);const[$e,Ce]=r.useState(0),xe=$e>=Z.length-1||"horizontal"!==ge||b;r.useEffect(()=>{he&&de(se)},[se]),r.useEffect(()=>(pe.current=!0,()=>{pe.current=!1}),[]);const{registerPath:we,unregisterPath:Se,refreshOverflowKeys:Ee,isSubPathKey:ke,getKeyPath:Ne,getKeys:Ie,getSubPathKeys:Me}=NC(),Pe=r.useMemo(()=>({registerPath:we,unregisterPath:Se}),[we,Se]),Re=r.useMemo(()=>({isSubPathKey:ke}),[ke]);r.useEffect(()=>{Ee(xe?ax:Z.slice($e+1).map(e=>e.key))},[$e,xe]);const[Oe,ze]=F(w||S&&Z[0]?.key,w),Ae=IC(e=>{ze(e)}),Te=IC(()=>{ze(void 0)});(0,r.useImperativeHandle)(t,()=>({list:ne.current,focus:e=>{const t=Ie(),{elements:n,key2element:r,element2key:o}=xC(t,oe),i=$C(ne.current,n);let a;a=Oe&&t.includes(Oe)?Oe:i[0]?o.get(i[0]):Z.find(e=>!e.props.disabled)?.key;const l=r.get(a);a&&l&&l?.focus?.(e)},findItem:e=>{let{key:t}=e;const n=Ie(),{key2element:r}=xC(n,oe);return r.get(t)||null}}));const[Be,He]=F(N||[],I),De=r.useMemo(()=>Array.isArray(Be)?Be:null===Be||void 0===Be?ax:[Be],[Be]),Le=IC(e=>{W?.(OC(e)),(e=>{if(E){const{key:t}=e,n=De.includes(t);let r;r=k?n?De.filter(e=>e!==t):[...De,t]:[t],He(r);const o={...e,selectedKeys:r};n?P?.(o):M?.(o)}!k&&se.length&&"inline"!==ge&&ce(ax)})(e)}),Fe=IC((e,t)=>{let n=se.filter(t=>t!==e);if(t)n.push(e);else if("inline"!==ge){const t=Me(e);n=n.filter(e=>!t.has(e))}je(se,n,!0)||ce(n,!0)}),We=wC(ge,Oe,ie,oe,ne,Ie,Ne,ze,(e,t)=>{const n=t??!se.includes(e);Fe(e,n)},V);r.useEffect(()=>{te(!0)},[]);const _e=r.useMemo(()=>({_internalRenderMenuItem:q,_internalRenderSubMenuItem:G}),[q,G]),Ve="horizontal"!==ge||b?Z:Z.map((e,t)=>r.createElement(oC,{key:e.key,overflowDisabled:t>$e,classNames:s,styles:l},e)),Xe=r.createElement(rb,ix({id:m,ref:ne,prefixCls:`${n}-overflow`,component:"ul",itemComponent:BC,className:re(n,`${n}-root`,`${n}-${ge}`,a,{[`${n}-inline-collapsed`]:ve,[`${n}-rtl`]:ie},o),dir:p,style:i,role:"menu",tabIndex:c,data:Ve,renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?Z.slice(-t):null;return r.createElement(QC,{eventKey:kC,title:D,disabled:xe,internalPopupClose:0===t,popupClassName:L},n)},maxCount:"horizontal"!==ge||b?rb.INVALIDATE:rb.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{Ce(e)},onKeyDown:We},Q));return r.createElement(uC.Provider,{value:_e},r.createElement(eC.Provider,{value:oe},r.createElement(oC,{prefixCls:n,rootClassName:o,classNames:s,styles:l,mode:ge,openKeys:se,rtl:ie,disabled:g,motion:ee?O:null,defaultMotions:ee?z:null,activeKey:Oe,onActive:Ae,onInactive:Te,selectedKeys:De,inlineIndent:R,subMenuOpenDelay:v,subMenuCloseDelay:y,forceSubMenuRender:$,builtinPlacements:T,triggerSubMenuAction:A,getPopupContainer:j,itemIcon:B,expandIcon:H,onItemClick:Le,onOpenChange:Fe,popupRender:U},r.createElement(cC.Provider,{value:Re},Xe),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(iC.Provider,{value:Pe},J)))))}),sx=lx;sx.Item=BC,sx.SubMenu=QC,sx.ItemGroup=tx,sx.Divider=ZC;const cx=sx;const ux={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"};function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dx.apply(this,arguments)}const px=r.forwardRef((e,t)=>r.createElement(si,dx({},e,{ref:t,icon:ux}))),mx=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),fx=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=e,c=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:o}},hx=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],gx=To("Layout",e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:s,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:l,lineHeight:lt(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:s,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},fx,{deprecatedTokens:hx}),bx=To(["Layout","Sider"],e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:s,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:p,lightSiderBg:m,lightTriggerColor:f,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:lt(a),textAlign:"center",background:s,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${lt(p)} ${lt(p)} 0`,cursor:"pointer",transition:`background-color ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${lt(p)} 0 0 ${lt(p)}`}},"&-light":{background:m,[`${t}-trigger`]:{color:f,background:h},[`${t}-zero-width-trigger`]:{color:f,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},fx,{deprecatedTokens:hx}),vx={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},yx=r.createContext({}),$x=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Cx=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,trigger:i,children:a,defaultCollapsed:l=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:p=200,collapsedWidth:m=80,zeroWidthTriggerStyle:f,breakpoint:h,onCollapse:g,onBreakpoint:b,...v}=e,{siderHook:y}=(0,r.useContext)(mx),[$,C]=(0,r.useState)("collapsed"in e?e.collapsed:l),[x,w]=(0,r.useState)(!1);(0,r.useEffect)(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const S=(t,n)=>{"collapsed"in e||C(t),g?.(t,n)},{getPrefixCls:E,direction:k}=(0,r.useContext)(ye),N=E("layout-sider",n),[I,M]=bx(N),P=(0,r.useRef)(null);P.current=e=>{w(e.matches),b?.(e.matches),$!==e.matches&&S(e.matches,"responsive")},(0,r.useEffect)(()=>{function e(e){return P.current?.(e)}let t;return"undefined"!==typeof window?.matchMedia&&h&&h in vx&&(t=window.matchMedia(`screen and (max-width: ${vx[h]})`),"function"===typeof t?.addEventListener&&t.addEventListener("change",e),e(t)),()=>{"function"===typeof t?.removeEventListener&&t.removeEventListener("change",e)}},[h]),(0,r.useEffect)(()=>{const e=$x("ant-sider-");return y.addSider(e),()=>y.removeSider(e)},[]);const R=()=>{S(!$,"clickTrigger")},O=Y(v,["collapsed"]),z=$?m:p,A=(T=z,!Number.isNaN(Number.parseFloat(T))&&Number.isFinite(Number(T))?`${z}px`:String(z));var T;const B=0===Number.parseFloat(String(m||0))?r.createElement("span",{onClick:R,className:re(`${N}-zero-width-trigger`,`${N}-zero-width-trigger-${d?"right":"left"}`),style:f},i||r.createElement(px,null)):null,H="rtl"===k===!d,D={expanded:H?r.createElement(Ju,null):r.createElement(_$,null),collapsed:H?r.createElement(_$,null):r.createElement(Ju,null)}[$?"collapsed":"expanded"],L=null!==i?B||r.createElement("div",{className:`${N}-trigger`,onClick:R,style:{width:A}},i||D):null,j={...c,flex:`0 0 ${A}`,maxWidth:A,minWidth:A,width:A},F=re(N,`${N}-${s}`,{[`${N}-collapsed`]:!!$,[`${N}-has-trigger`]:u&&null!==i&&!B,[`${N}-below`]:!!x,[`${N}-zero-width`]:0===Number.parseFloat(A)},o,I,M),W=r.useMemo(()=>({siderCollapsed:$}),[$]);return r.createElement(yx.Provider,{value:W},r.createElement("aside",{className:F,...O,style:j,ref:t},r.createElement("div",{className:`${N}-children`},a),u||x&&B?L:null))});const xx=Cx;const wx={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"};function Sx(){return Sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sx.apply(this,arguments)}const Ex=r.forwardRef((e,t)=>r.createElement(si,Sx({},e,{ref:t,icon:wx}))),kx=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),Nx=e=>{const{prefixCls:t,className:n,dashed:o,...i}=e,{getPrefixCls:a}=r.useContext(ye),l=a("menu",t),s=re({[`${l}-item-divider-dashed`]:!!o},n);return r.createElement(ZC,{className:s,...i})},Ix=e=>{const{className:t,children:n,icon:o,title:i,danger:a,extra:l}=e,{prefixCls:s,firstLevel:u,direction:d,disableMenuItemTitleTooltip:p,tooltip:m,inlineCollapsed:f,styles:h,classNames:g}=r.useContext(kx),{siderCollapsed:b}=r.useContext(yx);let v=i;"undefined"===typeof i?v=u?n:"":!1===i&&(v="");const y=!1===m?void 0:m,$=y&&void 0!==y.title?y.title:v,C={...y??null,title:$};b||f||(C.title=null,C.open=!1);const x=c(n).length;let w=r.createElement(BC,{...Y(e,["title","icon","danger"]),className:re(u?g?.item:g?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?x+1:x)},t),style:{...u?h?.item:h?.subMenu?.item,...e.style},title:"string"===typeof i?i:void 0},Ml(o,e=>({className:re(`${s}-item-icon`,u?g?.itemIcon:g?.subMenu?.itemIcon,e.className),style:{...u?h?.itemIcon:h?.subMenu?.itemIcon,...e.style}})),(e=>{const t=n?.[0],i=r.createElement("span",{className:re(`${s}-title-content`,u?g?.itemContent:g?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!l||0===l}),style:u?h?.itemContent:h?.subMenu?.itemContent},n);return(!o||r.isValidElement(n)&&"span"===n.type)&&n&&e&&u&&"string"===typeof t?r.createElement("div",{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i})(f));if(!p&&!1!==m){const e=y&&y.placement?y.placement:"rtl"===d?"left":"right",t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:re(t,e?.root)}),o=y&&"function"===typeof y.classNames?e=>{const t=y.classNames(e);return n(t)}:n(y?.classNames);w=r.createElement(Jy,{...C,placement:e,classNames:o},w)}return w},Mx=r.createContext(null),Px=r.forwardRef((e,t)=>{const{children:n,...o}=e,i=r.useContext(Mx),a=r.useMemo(()=>({...i,...o}),[i,o.prefixCls,o.mode,o.selectable,o.rootClassName]),l=N(n),s=S(t,l?I(n):null);return r.createElement(Mx.Provider,{value:a},r.createElement(Um,{space:!0},l?r.cloneElement(n,{ref:s}):n))}),Rx=Mx,Ox=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:`${lt(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","background-color"].map(e=>`${e} ${n}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},zx=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(${lt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${lt(n)})`}}}}},Ax=e=>vr(e),Tx=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:p,motionDurationSlow:m,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:b,itemHoverColor:v,lineType:y,colorSplit:$,itemDisabledColor:C,dangerItemColor:x,dangerItemHoverColor:w,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:k,popupBg:N,itemHoverBg:I,itemActiveBg:M,menuSubMenuBg:P,horizontalItemSelectedColor:R,horizontalItemSelectedBg:O,horizontalItemBorderRadius:z,horizontalItemHoverBg:A}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:{...Ax(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...Ax(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:{..."dark"===t?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:z,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${lt(u)} solid transparent`,transition:`border-color ${m} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:u,borderBottomColor:R}},"&-selected":{color:R,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:u,borderBottomColor:R}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${lt(p)} ${y} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${lt(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(e=>`${e} ${b} ${h}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(e=>`${e} ${b} ${f}`).join(",")}}}}}},Bx=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:lt(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:lt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Hx=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:f,collapsedWidth:h,collapsedIconSize:g}=e,b={height:r,lineHeight:lt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...Bx(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...Bx(e),boxShadow:f}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${lt(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 ${p}`,`background-color ${p}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"center",insetInlineStart:0,paddingInline:`calc(50% - ${lt(e.calc(g).div(2).equal())} - ${lt(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:lt(r),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart: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`]:{...gr,paddingInline:m}}}]},Dx=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Lx=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","opacity"].map(e=>`${e} ${n}`).join(",")},"&-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-color","transform","top","color"].map(e=>`${e} ${n} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${lt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${lt(a)})`}}}}},jx=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:m,menuArrowSize:f,menuArrowOffset:h,lineType:g,groupTitleLineHeight:b,groupTitleFontSize:v}=e;return[{"":{[n]:{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...br(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:`${lt(l)} ${lt(s)}`,fontSize:v,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:["border-color","background-color"].map(e=>`${e} ${o} ${a}`).join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o}`,`background-color ${o}`,`padding ${i}`].map(e=>`${e} ${a}`).join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(e=>`${e} ${o} ${a}`).join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}},...Dx(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${lt(e.calc(r).mul(2).equal())} ${lt(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:p,...Dx(e),...Lx(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${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}},...Lx(e),[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${lt(h)})`},"&::after":{transform:`rotate(45deg) translateX(${lt(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${lt(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${lt(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${lt(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Fx=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:m,controlHeightLG:f,lineHeight:h,colorBgElevated:g,marginXXS:b,padding:v,fontSize:y,controlHeightSM:$,fontSizeLG:C,colorTextLightSolid:x,colorErrorHover:w}=e,S=e.activeBarWidth??0,E=e.activeBarBorderWidth??u,k=e.itemMarginInline??e.marginXXS,N=new Or(x).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:c,itemActiveBg:p,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:S,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:E,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:f,groupTitleLineHeight:h,collapsedWidth:2*f,popupBg:g,itemMarginBlock:b,itemPaddingInline:v,horizontalLineHeight:1.15*f+"px",iconSize:y,iconMarginInlineEnd:$-y,collapsedIconSize:C,groupTitleFontSize:y,darkItemDisabledColor:new Or(x).setA(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:x,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:n,itemWidth:S?`calc(100% + ${E}px)`:`calc(100% - ${2*k}px)`}},Wx=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=To("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:p,darkItemHoverColor:m,darkItemDisabledColor:f,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:b,popupBg:v,darkPopupBg:y}=e,$=e.calc(r).div(7).mul(5).equal(),C=ir(e,{menuArrowSize:$,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc($).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),x=ir(C,{itemColor:o,itemHoverColor:m,groupTitleColor:p,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:f,dangerItemColor:i,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:b,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[jx(C),Ox(C),Hx(C),Tx(C,"light"),Tx(x,"dark"),zx(C),fd(C),Cv(C,"slide-up"),Cv(C,"slide-down"),dh(C,"zoom-big")]},Fx,{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)},_x=e=>{const{popupClassName:t,icon:n,title:o,theme:i}=e,a=r.useContext(kx),{prefixCls:l,inlineCollapsed:s,theme:c,classNames:u,styles:d}=a,p=sC();let m;if(n){const e=r.isValidElement(o)&&"span"===o.type;m=r.createElement(r.Fragment,null,Ml(n,e=>({className:re(e.className,`${l}-item-icon`,u?.itemIcon),style:{...e.style,...d?.itemIcon}})),e?o:r.createElement("span",{className:`${l}-title-content`},o))}else m=s&&!p.length&&o&&"string"===typeof o?r.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):r.createElement("span",{className:`${l}-title-content`},o);const f=r.useMemo(()=>({...a,firstLevel:!1}),[a]),[h]=Tl("Menu");return r.createElement(kx.Provider,{value:f},r.createElement(QC,{...Y(e,["icon"]),title:m,classNames:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},styles:{list:d?.subMenu?.list,listTitle:d?.subMenu?.itemTitle},popupClassName:re(l,t,u?.popup?.root,`${l}-${i||c}`),popupStyle:{zIndex:h,...e.popupStyle,...d?.popup?.root}}))};function Vx(e){return null===e||!1===e}const Xx={item:Ix,submenu:_x,divider:Nx},Kx=(0,r.forwardRef)((e,t)=>{const n=r.useContext(Rx),o=n||{},{prefixCls:i,className:a,style:l,theme:s="light",expandIcon:c,_internalDisableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:p,siderCollapsed:m,rootClassName:f,mode:h,selectable:g,onClick:b,overflowedIndicatorPopupClassName:v,classNames:y,styles:$,...C}=e,{menu:x}=r.useContext(ye),{getPrefixCls:w,getPopupContainer:S,direction:E,className:k,style:N,classNames:I,styles:M}=xe("menu"),P=w(),R=Y(C,["collapsedWidth"]);o.validator?.({mode:h});const O=A(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];b?.(...t),o.onClick?.()}),z=o.mode||h,T=g??o.selectable,B=p??m,H={...e,mode:z,inlineCollapsed:B,selectable:T,theme:s},[D,L]=Ca([I,y],[M,$],{props:H},{popup:{_default:"root"},subMenu:{_default:"item"}}),j={horizontal:{motionName:`${P}-slide-up`},inline:Gc(P),other:{motionName:`${P}-zoom-big`}},F=w("menu",i||o.prefixCls),W=Ka(F),[_,V]=Wx(F,W,!n),X=re(`${F}-${s}`,k,a),K=r.useMemo(()=>{if("function"===typeof c||Vx(c))return c||null;if("function"===typeof o.expandIcon||Vx(o.expandIcon))return o.expandIcon||null;if("function"===typeof x?.expandIcon||Vx(x?.expandIcon))return x?.expandIcon||null;const e=c??o?.expandIcon??x?.expandIcon;return Ml(e,{className:re(`${F}-submenu-expand-icon`,r.isValidElement(e)?e.props?.className:void 0)})},[c,o?.expandIcon,x?.expandIcon,F]),q=r.useMemo(()=>({prefixCls:F,inlineCollapsed:B||!1,direction:E,firstLevel:!0,theme:s,mode:z,disableMenuItemTitleTooltip:u,tooltip:d,classNames:D,styles:L}),[F,B,E,u,s,z,D,L,d]);return r.createElement(Rx.Provider,{value:null},r.createElement(kx.Provider,{value:q},r.createElement(cx,{getPopupContainer:S,overflowedIndicator:r.createElement(Ex,null),overflowedIndicatorPopupClassName:re(F,`${F}-${s}`,v),classNames:{list:D.list,listTitle:D.itemTitle},styles:{list:L.list,listTitle:L.itemTitle},mode:z,selectable:T,onClick:O,...R,inlineCollapsed:B,style:{...L.root,...N,...l},className:X,prefixCls:F,direction:E,defaultMotions:j,expandIcon:K,ref:t,rootClassName:re(f,_,o.rootClassName,V,W,D.root),_internalComponents:Xx})))}),qx=Kx,Gx=(0,r.forwardRef)((e,t)=>{const n=(0,r.useRef)(null),o=r.useContext(yx);return(0,r.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),r.createElement(qx,{ref:n,...e,...o})});Gx.Item=Ix,Gx.SubMenu=_x,Gx.Divider=Nx,Gx.ItemGroup=tx;const Yx=Gx,Ux=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}}}}}},Qx=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:m,controlPaddingHorizontal:f,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:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:m},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${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:pv},[`&${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:fv},[`&${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:mv},[`&${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:hv}}},Ty(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`]:{...br(e),[n]:{padding:d,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...yr(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${lt(c)} ${lt(f)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:"flex",margin:0,padding:`${lt(c)} ${lt(f)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...yr(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${lt(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:m,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${lt(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(f).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Cv(e,"slide-up"),Cv(e,"slide-down"),Mv(e,"move-up"),Mv(e,"move-down"),dh(e,"zoom-big")]]},Zx=To("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=ir(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Qx(i),Ux(i)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...zy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Ry(e)}),{resetStyle:!1}),Jx=e=>{const{menu:t,arrow:n,prefixCls:o,children:i,trigger:a,disabled:l,dropdownRender:s,popupRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:p,overlayStyle:m,open:f,onOpenChange:h,mouseEnterDelay:g=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:v=!0,placement:y="",transitionName:$,classNames:C,styles:x,destroyPopupOnHide:w,destroyOnHidden:S}=e,{getPrefixCls:E,direction:k,getPopupContainer:N,className:I,style:M,classNames:P,styles:R}=xe("dropdown"),O={...e,mouseEnterDelay:g,mouseLeaveDelay:b,autoAdjustOverflow:v},[z,T]=Ca([P,C],[R,x],{props:O}),B={...M,...m,...T.root},H=c||s;ll("Dropdown");const D=r.useMemo(()=>{const e=E();return void 0!==$?$:y.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[E,y,$]),L=r.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:"rtl"===k?"bottomRight":"bottomLeft",[y,k]),j=E("dropdown",o),W=Ka(j),[_,V]=Zx(j,W),[,X]=Ao(),K=r.Children.only(J$(i)?r.createElement("span",null,i):i),q=Ml(K,{className:re(`${j}-trigger`,{[`${j}-rtl`]:"rtl"===k},K.props.className),disabled:K.props.disabled??l}),G=l?[]:a,U=!!G?.includes("contextMenu"),[Q,Z]=F(!1,f),J=A(e=>{h?.(e,{source:"trigger"}),Z(e)}),ee=re(d,p,_,V,W,I,z.root,{[`${j}-rtl`]:"rtl"===k}),te=Ly({arrowPointAtCenter:"object"===typeof n&&n.pointAtCenter,autoAdjustOverflow:v,offset:X.marginXXS,arrowWidth:n?X.sizePopupArrow:0,borderRadius:X.borderRadius}),ne=A(()=>{t?.selectable&&t?.multiple||(h?.(!1,{source:"menu"}),Z(!1))}),[oe,ie]=Tl("Dropdown",B.zIndex);let ae=r.createElement(Z$,{alignPoint:U,...Y(e,["rootClassName","onOpenChange"]),mouseEnterDelay:g,mouseLeaveDelay:b,visible:Q,builtinPlacements:te,arrow:!!n,overlayClassName:ee,prefixCls:j,getPopupContainer:u||N,transitionName:D,trigger:G,overlay:()=>{const e=Y(z,["root"]),n=Y(T,["root"]);let o;return t?.items&&(o=r.createElement(Yx,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),H&&(o=H(o)),o=r.Children.only("string"===typeof o?r.createElement("span",null,o):o),r.createElement(Px,{prefixCls:`${j}-menu`,rootClassName:re(V,W),expandIcon:r.createElement("span",{className:`${j}-menu-submenu-arrow`},"rtl"===k?r.createElement(_$,{className:`${j}-menu-submenu-arrow-icon`}):r.createElement(Ju,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ne,validator:e=>{let{mode:t}=e}},o)},placement:L,onVisibleChange:J,overlayStyle:{...B,zIndex:oe},autoDestroy:S??w},q);return oe&&(ae=r.createElement(Pl.Provider,{value:ie},ae)),ae},ew=vg(Jx,"align",void 0,"dropdown",e=>e);Jx._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(ew,{...e},r.createElement("span",null));const tw=Jx,nw=e=>{let{children:t}=e;const{getPrefixCls:n}=r.useContext(ye),o=n("breadcrumb"),i=r.useContext(j$),{classNames:a,styles:l}=i;return r.createElement("li",{className:re(`${o}-separator`,a?.separator),style:l?.separator,"aria-hidden":"true"},""===t?t:t||"/")};nw.__ANT_BREADCRUMB_SEPARATOR=!0;const rw=nw;function ow(e,t,n,o){if(!xa(n))return null;const{className:i,onClick:a,...l}=t,s={...fa(l,{data:!0,aria:!0}),onClick:a};return void 0!==o?r.createElement("a",{...s,className:re(`${e}-link`,i),href:o},n):r.createElement("span",{...s,className:re(`${e}-link`,i)},n)}function iw(e,t){return(n,r,o,i,a)=>{if(t)return t(n,r,o,i);const l=function(e,t){if(!xa(e.title))return null;const n=Object.keys(t).join("|");return"object"===typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(e,n)=>t[n]||e)}(n,r);return ow(e,n,l,a)}}const aw=e=>{const{prefixCls:t,separator:n="/",children:o,menu:i,dropdownProps:a,href:l,dropdownIcon:s}=e,c=r.useContext(j$),{classNames:u,styles:d}=c,p=(e=>{if(i){const n={...a};if(i){const{items:e,...t}=i||{};n.menu={...t,items:e?.map((e,t)=>{let{key:n,title:o,label:i,path:a,...s}=e,c=i??o;return a&&(c=r.createElement("a",{href:`${l}${a}`},c)),{...s,key:n??t,label:c}})}}return r.createElement(tw,{placement:"bottom",...n},r.createElement("span",{className:`${t}-overlay-link`},e,s))}return e})(o);return xa(p)?r.createElement(r.Fragment,null,r.createElement("li",{className:re(`${t}-item`,u?.item),style:d?.item},p),n&&r.createElement(rw,null,n)):null},lw=e=>{const{prefixCls:t,children:n,href:o,...i}=e,{getPrefixCls:a}=r.useContext(ye),l=a("breadcrumb",t);return r.createElement(aw,{...i,prefixCls:l},ow(l,i,n,o))};lw.__ANT_BREADCRUMB_ITEM=!0;const sw=lw,cw=To("Breadcrumb",e=>(e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:{...br(e),color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[`${t}-item a`]:{color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${lt(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover},...yr(e)},[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${lt(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}}})(ir(e,{})),e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));function uw(e){const{breadcrumbName:t,children:n,...r}=e,o={title:t,...r};return n&&(o.menu={items:n.map(e=>{let{breadcrumbName:t,...n}=e;return{...n,title:t}})}),o}const dw=e=>{const{prefixCls:t,separator:n,style:o,className:i,rootClassName:a,routes:l,items:s,children:u,itemRender:d,params:p={},classNames:m,styles:f,dropdownIcon:h,...g}=e,{getPrefixCls:b,direction:v,className:y,style:$,classNames:C,styles:x,separator:w,dropdownIcon:S}=xe("breadcrumb"),E=n??w??"/",k=h??S??r.createElement(Xv,null);let N;const I=b("breadcrumb",t),[M,P]=cw(I),R=function(e,t){return(0,r.useMemo)(()=>e||(t?t.map(uw):null),[e,t])}(s,l),O=r.useMemo(()=>({...e,separator:E}),[e,E]),[z,A]=Ca([C,m],[x,f],{props:O});const T=iw(I,d);if(R&&R.length>0){const e=[],t=s||l;N=R.map((n,o)=>{const{path:i,key:a,type:l,menu:s,onClick:c,className:u,style:d,separator:m,dropdownProps:f}=n,h=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(t=>{n=n.replace(`:${t}`,e[t])}),n})(p,i);void 0!==h&&e.push(h);const g=a??o;if("separator"===l)return r.createElement(rw,{key:g},m);const b={},v=o===R.length-1;s&&(b.menu=s);let{href:y}=n;return e.length&&void 0!==h&&(y=`#/${e.join("/")}`),r.createElement(aw,{key:g,...b,...fa(n,{data:!0,aria:!0}),className:u,style:d,dropdownProps:f,dropdownIcon:k,href:y,separator:v?"":E,onClick:c,prefixCls:I},T(n,p,t,e,y))})}else if(u){const e=c(u).length;N=c(u).map((t,n)=>{if(!t)return t;return Ml(t,{separator:n===e-1?"":E,key:n})})}const B=re(I,y,{[`${I}-rtl`]:"rtl"===v},i,a,z.root,M,P),H={...A.root,...$,...o},D=r.useMemo(()=>({classNames:z,styles:A}),[z,A]);return r.createElement(j$.Provider,{value:D},r.createElement("nav",{className:B,style:H,...g},r.createElement("ol",null,N)))},pw=dw;pw.Item=sw,pw.Separator=rw;const mw=pw,fw=Qd;var hw=n(57469),gw=n.n(hw),bw=n(19223),vw=n.n(bw),yw=n(20199),$w=n.n(yw),Cw=n(66865),xw=n.n(Cw),ww=n(66556),Sw=n.n(ww),Ew=n(97076),kw=n.n(Ew),Nw=n(68988),Iw=n.n(Nw);gw().extend(Iw()),gw().extend(kw()),gw().extend(vw()),gw().extend($w()),gw().extend(xw()),gw().extend(Sw()),gw().extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}});var Mw={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Pw=function(e){return Mw[e]||e.split("_")[0]},Rw=function(){},Ow=function(e){return!gw().isDayjs(e)||e instanceof gw()?e:gw()(e.valueOf())},zw={getNow:function(){var e=gw()();return"function"===typeof e.tz?e.tz():e},getFixedDate:function(e){return gw()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return Ow(e).endOf("month")},getWeekDay:function(e){var t=Ow(e).locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return Ow(e).year()},getMonth:function(e){return Ow(e).month()},getDate:function(e){return Ow(e).date()},getHour:function(e){return Ow(e).hour()},getMinute:function(e){return Ow(e).minute()},getSecond:function(e){return Ow(e).second()},getMillisecond:function(e){return Ow(e).millisecond()},addYear:function(e,t){return Ow(e).add(t,"year")},addMonth:function(e,t){return Ow(e).add(t,"month")},addDate:function(e,t){return Ow(e).add(t,"day")},setYear:function(e,t){return Ow(e).year(t)},setMonth:function(e,t){return Ow(e).month(t)},setDate:function(e,t){return Ow(e).date(t)},setHour:function(e,t){return Ow(e).hour(t)},setMinute:function(e,t){return Ow(e).minute(t)},setSecond:function(e,t){return Ow(e).second(t)},setMillisecond:function(e,t){return Ow(e).millisecond(t)},isAfter:function(e,t){return Ow(e).isAfter(Ow(t))},isValidate:function(e){return Ow(e).isValid()},locale:{getWeekFirstDay:function(e){return gw()().locale(Pw(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return Ow(t).locale(Pw(e)).weekday(0)},getWeek:function(e,t){return Ow(t).locale(Pw(e)).week()},getShortWeekDays:function(e){return gw()().locale(Pw(e)).localeData().weekdaysMin()},getShortMonths:function(e){return gw()().locale(Pw(e)).localeData().monthsShort()},format:function(e,t,n){return Ow(t).locale(Pw(e)).format(n)},parse:function(e,t,n){for(var r=Pw(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],s=a.split("-")[1],c=gw()(l,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=c.add(u,"week");if(d.format("Wo")===s)return d}return Rw(),null}var p=gw()(a,i,!0).locale(r);if(p.isValid())return p}return null}}};const Aw=zw;const Tw=r.createContext(null);function Bw(e){return Bw="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},Bw(e)}function Hw(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Bw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Bw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dw={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};const Lw=function(e){var t=e.popupElement,n=e.popupStyle,o=e.popupClassName,i=e.popupAlign,a=e.transitionName,l=e.getPopupContainer,s=e.children,c=e.range,u=e.placement,d=e.builtinPlacements,p=void 0===d?Dw:d,m=e.direction,f=e.visible,h=e.onClose,g=r.useContext(Tw).prefixCls,b="".concat(g,"-dropdown"),v=function(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}(u,"rtl"===m);return r.createElement(fc,{showAction:[],hideAction:["click"],popupPlacement:v,builtinPlacements:p,prefixCls:b,popupMotion:{motionName:a},popup:t,popupAlign:i,popupVisible:f,popupClassName:re(o,Hw(Hw({},"".concat(b,"-range"),c),"".concat(b,"-rtl"),"rtl"===m)),popupStyle:n,stretch:"minWidth",getPopupContainer:l,onPopupVisibleChange:function(e){e||h()}},s)};function jw(e){return function(e){if(Array.isArray(e))return Fw(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Fw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fw(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ww(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function _w(e){return null===e||void 0===e?[]:Array.isArray(e)?e:[e]}function Vw(e,t,n){var r=jw(e);return r[t]=n,r}function Xw(e,t){var n={};return(t||Object.keys(e)).forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n}function Kw(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function qw(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find(function(t){return e[t]});return r!==o?e[o]:void 0}function Gw(e){return Xw(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Yw(e){return Yw="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},Yw(e)}function Uw(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 Qw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uw(Object(n),!0).forEach(function(t){Zw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zw(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Yw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jw(e,t,n,o){var i=r.useMemo(function(){return e||function(e,r){var o=e;return t&&"date"===r.type?t(o,r.today):n&&"month"===r.type?n(o,r.locale):r.originNode}},[e,n,t]),a=r.useCallback(function(e,t){return i(e,Qw(Qw({},t),{},{range:o}))},[i,o]);return a}function eS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return tS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=eS(r.useState([!1,!1]),2),i=o[0],a=o[1],l=r.useMemo(function(){return i.map(function(r,o){if(r)return!0;var i=e[o];return!!i&&(!n[o]&&!i||!(!i||!t(i,{activeIndex:o})))})},[e,i,t,n]);return[l,function(e,t){a(function(n){return Vw(n,t,e)})}]}function rS(e){return rS="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},rS(e)}function oS(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 iS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oS(Object(n),!0).forEach(function(t){aS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aS(e,t,n){return t=function(e){var t=function(e,t){if("object"!=rS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rS(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lS(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function sS(e,t){var n=t.showHour,o=t.showMinute,i=t.showSecond,a=t.showMillisecond,l=t.use12Hours;return r.useMemo(function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,p=e.fieldQuarterFormat,m=e.yearFormat,f=e.cellYearFormat,h=e.cellQuarterFormat,g=e.dayFormat,b=e.cellDateFormat,v=lS(t,n,r,o,i);return iS(iS({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(v),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||v,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:f||"YYYY",cellQuarterFormat:h||"[Q]Q",cellDateFormat:b||g||"D"})}(e,n,o,i,a,l)},[e,n,o,i,a,l])}function cS(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 uS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cS(Object(n),!0).forEach(function(t){dS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dS(e,t,n){return t=function(e){var t=function(e,t){if("object"!=fS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fS(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return mS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fS(e){return fS="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},fS(e)}function hS(e,t,n){return null!==n&&void 0!==n?n:t.some(function(t){return e.includes(t)})}var gS=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function bS(e){return e&&"string"===typeof e}function vS(e,t,n,r){return[e,t,n,r].some(function(e){return void 0!==e})}function yS(e,t,n,r,o){var i=t,a=n,l=r;if(e||i||a||l||o){if(e){var s,c,u,d=[i,a,l].some(function(e){return!1===e}),p=[i,a,l].some(function(e){return!0===e}),m=!!d||!p;i=null!==(s=i)&&void 0!==s?s:m,a=null!==(c=a)&&void 0!==c?c:m,l=null!==(u=l)&&void 0!==u?u:m}}else i=!0,a=!0,l=!0;return[i,a,l,o]}function $S(e){var t=e.showTime,n=function(e){var t=Xw(e,gS),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===fS(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=pS(n,2),o=r[0],i=r[1],a=t&&"object"===fS(t)?t:{},l=uS(uS({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),s=l.showMillisecond,c=l.showHour,u=l.showMinute,d=l.showSecond,p=pS(yS(vS(c,u,d,s),c,u,d,s),3);return c=p[0],u=p[1],d=p[2],[l,uS(uS({},l),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:s}),l.format,i]}function CS(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=Kw(e,o,null),l=[t,n],s=0;s<l.length;s+=1){var c=_w(l[s])[0];if(bS(c)){a=c;break}}var u=i.showHour,d=i.showMinute,p=i.showSecond,m=i.showMillisecond,f=hS(a,["a","A","LT","LLL","LTS"],i.use12Hours),h=vS(u,d,p,m);h||(u=hS(a,["H","h","k","LT","LLL"]),d=hS(a,["m","LT","LLL"]),p=hS(a,["s","LTS"]),m=hS(a,["SSS"]));var g=pS(yS(h,u,d,p,m),3);u=g[0],d=g[1],p=g[2];var b=t||lS(u,d,p,m,f);return uS(uS({},i),{},{format:b,showHour:u,showMinute:d,showSecond:p,showMillisecond:m,use12Hours:f})}return null}function xS(e){return xS="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},xS(e)}function wS(e,t,n){return!1===t?null:(t&&"object"===xS(t)?t:{}).clearIcon||n||r.createElement("span",{className:"".concat(e,"-clear-btn")})}function SS(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function ES(e,t,n){return SS(t,n,function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)})}function kS(e,t,n){return SS(t,n,function(){return e.getYear(t)===e.getYear(n)})}function NS(e,t){return Math.floor(e.getMonth(t)/3)+1}function IS(e,t,n){return SS(t,n,function(){return kS(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function MS(e,t,n){return SS(t,n,function(){return kS(e,t,n)&&IS(e,t,n)&&e.getDate(t)===e.getDate(n)})}function PS(e,t,n){return SS(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function RS(e,t,n){return SS(t,n,function(){return MS(e,t,n)&&PS(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function OS(e,t,n,r){return SS(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return kS(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function zS(e,t,n,r,o){switch(o){case"date":return MS(e,n,r);case"week":return OS(e,t.locale,n,r);case"month":return IS(e,n,r);case"quarter":return function(e,t,n){return SS(t,n,function(){return kS(e,t,n)&&NS(e,t)===NS(e,n)})}(e,n,r);case"year":return kS(e,n,r);case"decade":return ES(e,n,r);case"time":return PS(e,n,r);default:return RS(e,n,r)}}function AS(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function TS(e,t,n,r,o){return!!zS(e,t,n,r,o)||e.isAfter(n,r)}function BS(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"===typeof o?o(e):n.locale.format(r.locale,e,o):""}function HS(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach(function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)}),r}function DS(e){return DS="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},DS(e)}function LS(e){return LS="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},LS(e)}function jS(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 FS(e,t,n){return t=function(e){var t=function(e,t){if("object"!=LS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=LS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==LS(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WS(e,t,n,r){var o=A(function(o,i){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jS(Object(n),!0).forEach(function(t){FS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,s=i&&1===i.activeIndex?"end":"start",c=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,s,{from:a.from}))||{},u=c.disabledHours,d=c.disabledMinutes,p=c.disabledSeconds,m=c.disabledMilliseconds,f=r.disabledHours,h=r.disabledMinutes,g=r.disabledSeconds,b=u||f,v=d||h,y=p||g,$=e.getHour(o),C=e.getMinute(o),x=e.getSecond(o),w=e.getMillisecond(o);if(b&&b().includes($))return!0;if(v&&v($).includes(C))return!0;if(y&&y($,C).includes(x))return!0;if(m&&m($,C,x).includes(w))return!0}return!1});return o}function _S(e){return _S="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},_S(e)}function VS(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 XS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VS(Object(n),!0).forEach(function(t){KS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KS(e,t,n){return t=function(e){var t=function(e,t){if("object"!=_S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_S(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return GS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YS(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r.useMemo(function(){var n=e?_w(e):e;return t&&n&&(n[1]=n[1]||n[0]),n},[e,t]);return n}function US(e,t){var n=e.generateConfig,o=e.locale,i=e.picker,a=void 0===i?"date":i,l=e.prefixCls,s=void 0===l?"rc-picker":l,c=e.previewValue,u=void 0===c?"hover":c,d=e.styles,p=void 0===d?{}:d,m=e.classNames,f=void 0===m?{}:m,h=e.order,g=void 0===h||h,b=e.components,v=void 0===b?{}:b,y=e.inputRender,$=e.allowClear,C=e.clearIcon,x=e.needConfirm,w=e.multiple,S=e.format,E=e.inputReadOnly,k=e.disabledDate,N=e.minDate,I=e.maxDate,M=e.showTime,P=e.value,R=e.defaultValue,O=e.pickerValue,z=e.defaultPickerValue,T=YS(P),B=YS(R),H=YS(O),D=YS(z),L="date"===a&&M?"datetime":a,j="time"===L||"datetime"===L,F=j||w,W=null!==x&&void 0!==x?x:j,_=qS($S(e),4),V=_[0],X=_[1],K=_[2],q=_[3],G=sS(o,X),Y=r.useMemo(function(){return CS(L,K,q,V,G)},[L,K,q,V,G]);var U=r.useMemo(function(){return XS(XS({},e),{},{previewValue:u,prefixCls:s,locale:G,picker:a,styles:p,classNames:f,order:g,components:XS({input:y},v),clearIcon:wS(s,$,C),showTime:Y,value:T,defaultValue:B,pickerValue:H,defaultPickerValue:D},null===t||void 0===t?void 0:t())},[e]),Q=function(e,t,n){return r.useMemo(function(){var r=_w(Kw(e,t,n)),o=r[0],i="object"===DS(o)&&"mask"===o.type?o.format:null;return[r.map(function(e){return"string"===typeof e||"function"===typeof e?e:e.format}),i]},[e,t,n])}(L,G,S),Z=qS(Q,2),J=Z[0],ee=Z[1],te=function(e,t,n){return!("function"!==typeof e[0]&&!n)||t}(J,E,w),ne=function(e,t,n,r,o){var i=A(function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||zS(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||zS(e,t,o,i,a.type))});return i}(n,o,k,N,I),re=WS(n,a,ne,Y);return[r.useMemo(function(){return XS(XS({},U),{},{needConfirm:W,inputReadOnly:te,disabledDate:ne})},[U,W,te,ne]),L,F,J,ee,re]}function QS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return ZS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return eE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tE(e,t){var n=arguments.length>3?arguments[3]:void 0,o=function(e,t,n){var o=QS(F(t,e),2),i=o[0],a=o[1],l=QS(r.useState({}),2)[1],s=A(function(e){a(e),l({})}),c=r.useRef(e),u=r.useRef(),d=function(){fe.cancel(u.current)},p=A(function(){s(c.current),n&&i!==c.current&&n(c.current)}),m=A(function(e,t){d(),c.current=e,e||t?p():u.current=fe(p)});return r.useEffect(function(){return d},[]),[i,m]}(!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every(function(e){return e})&&e,t||!1,n),i=JS(o,2),a=i[0],l=i[1];return[a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!a||l(e,t.force)}]}function nE(e){var t=r.useRef();return r.useImperativeHandle(e,function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}}),t}function rE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return oE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iE(e,t){return r.useMemo(function(){return e||(t?(g(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=rE(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function aE(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=r.useRef(t);o.current=t,D(function(){if(!e){var t=fe(function(){o.current(e)},n);return function(){fe.cancel(t)}}o.current(e)},[e])}function lE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return sE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cE(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=lE(r.useState(0),2),i=o[0],a=o[1],l=lE(r.useState(!1),2),s=l[0],c=l[1],u=r.useRef([]),d=r.useRef(null),p=r.useRef(null),m=function(e){d.current=e};return aE(s||n,function(){s||(u.current=[],m(null))}),r.useEffect(function(){s&&u.current.push(i)},[s,i]),[s,function(e){c(e)},function(e){return e&&(p.current=e),p.current},i,a,function(n){var r=u.current,o=new Set(r.filter(function(e){return n[e]||t[e]})),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},u.current,m,function(e){return d.current===e}]}function uE(e){return uE="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},uE(e)}function dE(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 pE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dE(Object(n),!0).forEach(function(t){mE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mE(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uE(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uE(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return hE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return bE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vE(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var yE=[];function $E(e,t,n,o,i,a,l,s){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:yE,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:yE,d=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,f="time"===l,h=a||0,g=function(t){var r=e.getNow();return f&&(r=HS(e,r)),c[t]||n[t]||r},b=gE(arguments.length>9&&void 0!==arguments[9]?arguments[9]:yE,2),v=b[0],y=b[1],$=gE(F(function(){return g(0)},v),2),C=$[0],x=$[1],w=gE(F(function(){return g(1)},y),2),S=w[0],E=w[1],k=r.useMemo(function(){var t=[C,S][h];return f?t:HS(e,t,u[h])},[f,C,S,h,e,u]),N=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[x,E][h])(n);var i=[C,S];i[h]=n,!d||zS(e,t,C,i[0],l)&&zS(e,t,S,i[1],l)||d(i,{source:r,range:1===h?"end":"start",mode:o})},I=r.useRef(null);return L(function(){if(i&&!c[h]){var r=f?null:e.getNow();if(null!==I.current&&I.current!==h?r=[C,S][1^h]:n[h]?r=0===h?n[0]:function(n,r){if(s){var o={date:"month",week:"month",month:"year",quarter:"year"}[l];if(o&&!zS(e,t,n,r,o))return vE(e,l,r,-1);if("year"===l&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return vE(e,l,r,-1)}return r}(n[0],n[1]):n[1^h]&&(r=n[1^h]),r){p&&e.isAfter(p,r)&&(r=p);var o=s?vE(e,l,r,1):r;m&&e.isAfter(o,m)&&(r=s?vE(e,l,m,-1):m),N(r,"reset")}}},[i,h,n[h]]),r.useEffect(function(){I.current=i?h:null},[i,h]),L(function(){i&&c&&c[h]&&N(c[h],"reset")},[i,h]),[k,N]}function CE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return xE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wE(e,t){var n=r.useRef(e),o=CE(r.useState({}),2)[1],i=function(e){return e&&void 0!==t?t:n.current};return[i,function(e){n.current=e,o({})},i(!0)]}function SE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||kE(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EE(e){return function(e){if(Array.isArray(e))return NE(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kE(e,t){if(e){if("string"===typeof e)return NE(e,t);var n=Object.prototype.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)?NE(e,t):void 0}}function NE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var IE=[];function ME(e,t,n){return[function(r){return r.map(function(r){return BS(r,{generateConfig:e,locale:t,format:n[0]})})},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!RS(e,a,l)){o=i;break}}return[o<0,0!==o]}]}function PE(e,t){return EE(e).sort(function(e,n){return t.isAfter(e,n)?1:-1})}function RE(e,t,n,o,i,a,l,s,c){var u=SE(F(a,l),2),d=u[0],p=u[1],m=d||IE,f=function(e){var t=SE(wE(e),2),n=t[0],o=t[1],i=A(function(){o(e)});return r.useEffect(function(){i()},[e]),[n,o]}(m),h=SE(f,2),g=h[0],b=h[1],v=SE(ME(e,t,n),2),y=v[0],$=v[1],C=A(function(t){var n=EE(t);if(o)for(var r=0;r<2;r+=1)n[r]=n[r]||null;else i&&(n=PE(n.filter(function(e){return e}),e));var a=SE($(g(),n),2),l=a[0],c=a[1];if(!l&&(b(n),s)){var u=y(n);s(n,u,{range:c?"end":"start"})}});return[m,p,g,C,function(){c&&c(g())}]}function OE(e,t,n,o,i,a,l,s,c,u){var d=e.generateConfig,p=e.locale,m=e.picker,f=e.onChange,h=e.allowEmpty,g=e.order,b=!a.some(function(e){return e})&&g,v=SE(ME(d,p,l),2),y=v[0],$=v[1],C=SE(wE(t),2),x=C[0],w=C[1],S=A(function(){w(t)});r.useEffect(function(){S()},[t]);var E=A(function(e){var r=null===e,o=EE(e||x());if(r)for(var l=Math.max(a.length,o.length),s=0;s<l;s+=1)a[s]||(o[s]=null);b&&o[0]&&o[1]&&(o=PE(o,d)),i(o);var c=SE(o,2),v=c[0],C=c[1],w=!v,S=!C,E=!h||(!w||h[0])&&(!S||h[1]),k=!g||w||S||zS(d,p,v,C,m)||d.isAfter(C,v),N=(a[0]||!v||!u(v,{activeIndex:0}))&&(a[1]||!C||!u(C,{from:v,activeIndex:1})),I=r||E&&k&&N;if(I){n(o);var M=SE($(o,t),1)[0];if(f&&!M){var P=o.every(function(e){return!e});f(r&&P?null:o,P?null:y(o))}}return I}),k=A(function(e,t){var n=Vw(x(),e,o()[e]);w(n),t&&E()}),N=!s&&!c;return aE(!N,function(){N&&(E(),i(t),S())},2),[k,E]}function zE(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function AE(e){return function(e){if(Array.isArray(e))return TE(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return TE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TE(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BE(e){return BE="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},BE(e)}function HE(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 DE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HE(Object(n),!0).forEach(function(t){LE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LE(e,t,n){return t=function(e){var t=function(e,t){if("object"!=BE(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BE(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return FE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WE(){return[]}function _E(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,s=e;s<=t;s+=l){var c=o.includes(s);c&&r||a.push({label:Ww(s,i),value:s,disabled:c})}return a}function VE(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=n.use12Hours,i=n.hourStep,a=void 0===i?1:i,l=n.minuteStep,s=void 0===l?1:l,c=n.secondStep,u=void 0===c?1:c,d=n.millisecondStep,p=void 0===d?100:d,m=n.hideDisabledOptions,f=n.disabledTime,h=n.disabledHours,g=n.disabledMinutes,b=n.disabledSeconds,v=r.useMemo(function(){return t||e.getNow()},[t,e]),y=r.useCallback(function(e){var t=(null===f||void 0===f?void 0:f(e))||{};return[t.disabledHours||h||WE,t.disabledMinutes||g||WE,t.disabledSeconds||b||WE,t.disabledMilliseconds||WE]},[f,h,g,b]),$=jE(r.useMemo(function(){return y(v)},[v,y]),4),C=$[0],x=$[1],w=$[2],S=$[3],E=r.useCallback(function(e,t,n,r){var i=_E(0,23,a,m,e()),l=o?i.map(function(e){return DE(DE({},e),{},{label:Ww(e.value%12||12,2)})}):i;return[l,function(e){return _E(0,59,s,m,t(e))},function(e,t){return _E(0,59,u,m,n(e,t))},function(e,t,n){return _E(0,999,p,m,r(e,t,n),3)}]},[m,a,o,p,s,u]),k=jE(r.useMemo(function(){return E(C,x,w,S)},[E,C,x,w,S]),4),N=k[0],I=k[1],M=k[2],P=k[3];return[function(t,n){var r=function(){return N},o=I,i=M,a=P;if(n){var l=jE(y(n),4),s=l[0],c=l[1],u=l[2],d=l[3],p=jE(E(s,c,u,d),4),m=p[0];r=function(){return m},o=p[1],i=p[2],a=p[3]}var f=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find(function(e){return e.value===r});if(!o||o.disabled){var l=n.filter(function(e){return!e.disabled}),s=AE(l).reverse().find(function(e){return e.value<=r})||l[0];s&&(r=s.value,a=i[t](a,r))}return r}var s=l("getHour","setHour",t()),c=l("getMinute","setMinute",n(s)),u=l("getSecond","setSecond",r(s,c));return l("getMillisecond","setMillisecond",o(s,c,u)),a}(t,r,o,i,a,e);return f},N,I,M,P]}function XE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return KE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qE(e){var t=e.mode,n=e.internalMode,o=e.renderExtraFooter,i=e.showNow,a=e.showTime,l=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,p=e.disabledDate,m=r.useContext(Tw),f=m.prefixCls,h=m.locale,g=m.button,b=void 0===g?"button":g,v=m.classNames,y=m.styles,$=d.getNow(),C=XE(VE(d,a,$),1)[0],x=null===o||void 0===o?void 0:o(t),w=p($,{type:t}),S="".concat(f,"-now"),E="".concat(S,"-btn"),k=i&&r.createElement("li",{className:S},r.createElement("a",{className:re(E,w&&"".concat(E,"-disabled")),"aria-disabled":w,onClick:function(){if(!w){var e=C($);s(e)}}},"date"===n?h.today:h.now)),N=u&&r.createElement("li",{className:"".concat(f,"-ok")},r.createElement(b,{disabled:c,onClick:l},h.ok)),I=(k||N)&&r.createElement("ul",{className:"".concat(f,"-ranges")},k,N);return x||I?r.createElement("div",{className:re("".concat(f,"-footer"),v.popup.footer),style:y.popup.footer},x&&r.createElement("div",{className:"".concat(f,"-footer-extra")},x),I):null}function GE(e){return function(e){if(Array.isArray(e))return YE(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return YE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YE(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UE(e,t,n){return function(r,o){var i=r.findIndex(function(r){return zS(e,t,r,o,n)});if(-1===i)return[].concat(GE(r),[o]);var a=GE(r);return a.splice(i,1),a}}var QE=r.createContext(null),ZE=r.createContext(null);function JE(){return r.useContext(ZE)}function ek(e,t){var n=e.prefixCls,o=e.generateConfig,i=e.locale,a=e.disabledDate,l=e.minDate,s=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,p=e.onHover,m=e.values,f=e.pickerValue,h=e.onSelect,g=e.prevIcon,b=e.nextIcon,v=e.superPrevIcon,y=e.superNextIcon,$=r.useContext(QE),C=$.classNames,x=$.styles,w=o.getNow();return[{now:w,values:m,pickerValue:f,prefixCls:n,classNames:C,styles:x,disabledDate:a,minDate:l,maxDate:s,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:p,locale:i,generateConfig:o,onSelect:h,panelType:t,prevIcon:g,nextIcon:b,superPrevIcon:v,superNextIcon:y},w]}var tk=r.createContext({});function nk(e){return nk="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},nk(e)}function rk(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 ok(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rk(Object(n),!0).forEach(function(t){ik(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ik(e,t,n){return t=function(e){var t=function(e,t){if("object"!=nk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ak(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return lk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lk(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sk(e){for(var t=e.rowNum,n=e.colNum,o=e.baseDate,i=e.getCellDate,a=e.prefixColumn,l=e.rowClassName,s=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,p=e.cellSelection,m=void 0===p||p,f=e.disabledDate,h=JE(),g=h.prefixCls,b=h.classNames,v=h.styles,y=h.panelType,$=h.now,C=h.disabledDate,x=h.cellRender,w=h.onHover,S=h.hoverValue,E=h.hoverRangeValue,k=h.generateConfig,N=h.values,I=h.locale,M=h.onSelect,P=f||C,R="".concat(g,"-cell"),O=r.useContext(tk).onCellDblClick,z=function(e){return N.some(function(t){return t&&zS(k,I,e,t,y)})},A=[],T=0;T<t;T+=1){for(var B=[],H=void 0,D=function(){var e=i(o,T*n+L),t=null===P||void 0===P?void 0:P(e,{type:y});0===L&&(H=e,a&&B.push(a(H)));var l=!1,d=!1,p=!1;if(m&&E){var f=ak(E,2),h=f[0],C=f[1];l=AS(k,h,C,e),d=zS(k,I,e,h,y),p=zS(k,I,e,C,y)}var N=s?BS(e,{locale:I,format:s,generateConfig:k}):void 0,A=r.createElement("div",{className:"".concat(R,"-inner")},c(e));B.push(r.createElement("td",{key:L,title:N,className:re(R,b.item,ok(ik(ik(ik(ik(ik(ik({},"".concat(R,"-disabled"),t),"".concat(R,"-hover"),(S||[]).some(function(t){return zS(k,I,e,t,y)})),"".concat(R,"-in-range"),l&&!d&&!p),"".concat(R,"-range-start"),d),"".concat(R,"-range-end"),p),"".concat(g,"-cell-selected"),!E&&"week"!==y&&z(e)),u(e))),style:v.item,onClick:function(){t||M(e)},onDoubleClick:function(){!t&&O&&O()},onMouseEnter:function(){t||null===w||void 0===w||w(e)},onMouseLeave:function(){t||null===w||void 0===w||w(null)}},x?x(e,{prefixCls:g,originNode:A,today:$,type:y,locale:I}):A))},L=0;L<n;L+=1)D();A.push(r.createElement("tr",{key:T,className:null===l||void 0===l?void 0:l(H)},B))}return r.createElement("div",{className:re("".concat(g,"-body"),b.body),style:v.body},r.createElement("table",{className:re("".concat(g,"-content"),b.content),style:v.content},d&&r.createElement("thead",null,r.createElement("tr",null,d)),r.createElement("tbody",null,A)))}var ck={visibility:"hidden"};const uk=function(e){var t=e.offset,n=e.superOffset,o=e.onChange,i=e.getStart,a=e.getEnd,l=e.children,s=JE(),c=s.prefixCls,u=s.classNames,d=s.styles,p=s.prevIcon,m=void 0===p?"\u2039":p,f=s.nextIcon,h=void 0===f?"\u203a":f,g=s.superPrevIcon,b=void 0===g?"\xab":g,v=s.superNextIcon,y=void 0===v?"\xbb":v,$=s.minDate,C=s.maxDate,x=s.generateConfig,w=s.locale,S=s.pickerValue,E=s.panelType,k="".concat(c,"-header"),N=r.useContext(tk),I=N.hidePrev,M=N.hideNext,P=N.hideHeader,R=r.useMemo(function(){if(!$||!t||!a)return!1;var e=a(t(-1,S));return!TS(x,w,e,$,E)},[$,t,S,a,x,w,E]),O=r.useMemo(function(){if(!$||!n||!a)return!1;var e=a(n(-1,S));return!TS(x,w,e,$,E)},[$,n,S,a,x,w,E]),z=r.useMemo(function(){if(!C||!t||!i)return!1;var e=i(t(1,S));return!TS(x,w,C,e,E)},[C,t,S,i,x,w,E]),A=r.useMemo(function(){if(!C||!n||!i)return!1;var e=i(n(1,S));return!TS(x,w,C,e,E)},[C,n,S,i,x,w,E]),T=function(e){t&&o(t(e,S))},B=function(e){n&&o(n(e,S))};if(P)return null;var H="".concat(k,"-prev-btn"),D="".concat(k,"-next-btn"),L="".concat(k,"-super-prev-btn"),j="".concat(k,"-super-next-btn");return r.createElement("div",{className:re(k,u.header),style:d.header},n&&r.createElement("button",{type:"button","aria-label":w.previousYear,onClick:function(){return B(-1)},tabIndex:-1,className:re(L,O&&"".concat(L,"-disabled")),disabled:O,style:I?ck:{}},b),t&&r.createElement("button",{type:"button","aria-label":w.previousMonth,onClick:function(){return T(-1)},tabIndex:-1,className:re(H,R&&"".concat(H,"-disabled")),disabled:R,style:I?ck:{}},m),r.createElement("div",{className:"".concat(k,"-view")},l),t&&r.createElement("button",{type:"button","aria-label":w.nextMonth,onClick:function(){return T(1)},tabIndex:-1,className:re(D,z&&"".concat(D,"-disabled")),disabled:z,style:M?ck:{}},h),n&&r.createElement("button",{type:"button","aria-label":w.nextYear,onClick:function(){return B(1)},tabIndex:-1,className:re(j,A&&"".concat(j,"-disabled")),disabled:A,style:M?ck:{}},y))};function dk(e){return dk="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},dk(e)}function pk(){return pk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pk.apply(this,arguments)}function mk(e,t,n){return t=function(e){var t=function(e,t){if("object"!=dk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return hk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hk(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gk(e){var t=e.prefixCls,n=e.panelName,o=void 0===n?"date":n,i=e.locale,a=e.generateConfig,l=e.pickerValue,s=e.onPickerValueChange,c=e.onModeChange,u=e.mode,d=void 0===u?"date":u,p=e.disabledDate,m=e.onSelect,f=e.onHover,h=e.showWeek,g="".concat(t,"-").concat(o,"-panel"),b="".concat(t,"-cell"),v="week"===d,y=fk(ek(e,d),2),$=y[0],C=y[1],x=a.locale.getWeekFirstDay(i.locale),w=a.setDate(l,1),S=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,a,w),E=a.getMonth(l),k=(void 0===h?v:h)?function(e){var t=null===p||void 0===p?void 0:p(e,{type:"week"});return r.createElement("td",{key:"week",className:re(b,"".concat(b,"-week"),mk({},"".concat(b,"-disabled"),t)),onClick:function(){t||m(e)},onMouseEnter:function(){t||null===f||void 0===f||f(e)},onMouseLeave:function(){t||null===f||void 0===f||f(null)}},r.createElement("div",{className:"".concat(b,"-inner")},a.locale.getWeek(i.locale,e)))}:null,N=[],I=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);k&&N.push(r.createElement("th",{key:"empty"},r.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},i.week)));for(var M=0;M<7;M+=1)N.push(r.createElement("th",{key:M},I[(M+x)%7]));var P=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),R=r.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){c("year",l)},tabIndex:-1,className:"".concat(t,"-year-btn")},BS(l,{locale:i,format:i.yearFormat,generateConfig:a})),O=r.createElement("button",{type:"button","aria-label":i.monthSelect,key:"month",onClick:function(){c("month",l)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?BS(l,{locale:i,format:i.monthFormat,generateConfig:a}):P[E]),z=i.monthBeforeYear?[O,R]:[R,O];return r.createElement(ZE.Provider,{value:$},r.createElement("div",{className:re(g,h&&"".concat(g,"-show-week"))},r.createElement(uk,{offset:function(e){return a.addMonth(l,e)},superOffset:function(e){return a.addYear(l,e)},onChange:s,getStart:function(e){return a.setDate(e,1)},getEnd:function(e){var t=a.setDate(e,1);return t=a.addMonth(t,1),a.addDate(t,-1)}},z),r.createElement(sk,pk({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:S,headerCells:N,getCellDate:function(e,t){return a.addDate(e,t)},getCellText:function(e){return BS(e,{locale:i,format:i.cellDateFormat,generateConfig:a})},getCellClassName:function(e){return mk(mk({},"".concat(t,"-cell-in-view"),IS(a,e,l)),"".concat(t,"-cell-today"),MS(a,e,C))},prefixColumn:k,cellSelection:!v}))))}var bk=1/3;function vk(e){return vk="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},vk(e)}function yk(e,t,n){return t=function(e){var t=function(e,t){if("object"!=vk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $k(e){return function(e){if(Array.isArray(e))return wk(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xk(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ck(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||xk(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xk(e,t){if(e){if("string"===typeof e)return wk(e,t);var n=Object.prototype.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)?wk(e,t):void 0}}function wk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sk(e){return e.map(function(e){return[e.value,e.label,e.disabled].join(",")}).join(";")}function Ek(e){var t=e.units,n=e.value,o=e.optionalValue,i=e.type,a=e.onChange,l=e.onHover,s=e.onDblClick,c=e.changeOnScroll,u=JE(),d=u.prefixCls,p=u.cellRender,m=u.now,f=u.locale,h=u.classNames,g=u.styles,b="".concat(d,"-time-panel"),v="".concat(d,"-time-panel-cell"),y=r.useRef(null),$=r.useRef(),C=function(){clearTimeout($.current)},x=function(e,t){var n=r.useRef(!1),o=r.useRef(null),i=r.useRef(null),a=function(){fe.cancel(o.current),n.current=!1},l=r.useRef();return[A(function(){var r=e.current;if(i.current=null,l.current=0,r){var s=r.querySelector('[data-value="'.concat(t,'"]')),c=r.querySelector("li");s&&c&&function e(){a(),n.current=!0,l.current+=1;var t=r.scrollTop,u=c.offsetTop,d=s.offsetTop,p=d-u;if(0===d&&s!==c||!Ys(r))l.current<=5&&(o.current=fe(e));else{var m=t+(p-t)*bk,f=Math.abs(p-m);if(null!==i.current&&i.current<f)a();else{if(i.current=f,f<=1)return r.scrollTop=p,void a();r.scrollTop=m,o.current=fe(e)}}}()}}),a,function(){return n.current}]}(y,null!==n&&void 0!==n?n:o),w=Ck(x,3),S=w[0],E=w[1],k=w[2];L(function(){return S(),C(),function(){E(),C()}},[n,o,Sk(t)]);var N="".concat(b,"-column");return r.createElement("ul",{className:N,ref:y,"data-type":i,onScroll:function(e){C();var n=e.target;!k()&&c&&($.current=setTimeout(function(){var e=y.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map(function(e){return e.offsetTop-r}).map(function(e,r){return t[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)}),i=Math.min.apply(Math,$k(o)),l=o.findIndex(function(e){return e===i}),s=t[l];s&&!s.disabled&&a(s.value)},300))}},t.map(function(e){var t=e.label,o=e.value,c=e.disabled,u=r.createElement("div",{className:"".concat(v,"-inner")},t);return r.createElement("li",{key:o,style:g.item,className:re(v,h.item,yk(yk({},"".concat(v,"-selected"),n===o),"".concat(v,"-disabled"),c)),onClick:function(){c||a(o)},onDoubleClick:function(){!c&&s&&s()},onMouseEnter:function(){l(o)},onMouseLeave:function(){l(null)},"data-value":o},p?p(o,{prefixCls:d,originNode:u,today:m,type:"time",subType:i,locale:f}):u)}))}function kk(){return kk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kk.apply(this,arguments)}function Nk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Ik(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ik(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ik(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mk(e){return e<12}function Pk(e){var t=e.showHour,n=e.showMinute,o=e.showSecond,i=e.showMillisecond,a=e.use12Hours,l=e.changeOnScroll,s=JE(),c=s.prefixCls,u=s.classNames,d=s.styles,p=s.values,m=s.generateConfig,f=s.locale,h=s.onSelect,g=s.onHover,b=void 0===g?function(){}:g,v=s.pickerValue,y=(null===p||void 0===p?void 0:p[0])||null,$=r.useContext(tk).onCellDblClick,C=Nk(VE(m,e,y),5),x=C[0],w=C[1],S=C[2],E=C[3],k=C[4],N=function(e){return[y&&m[e](y),v&&m[e](v)]},I=Nk(N("getHour"),2),M=I[0],P=I[1],R=Nk(N("getMinute"),2),O=R[0],z=R[1],A=Nk(N("getSecond"),2),T=A[0],B=A[1],H=Nk(N("getMillisecond"),2),D=H[0],L=H[1],j=null===M?null:Mk(M)?"am":"pm",F=r.useMemo(function(){return a?Mk(M)?w.filter(function(e){return Mk(e.value)}):w.filter(function(e){return!Mk(e.value)}):w},[M,w,a]),W=function(e,t){var n,r=e.filter(function(e){return!e.disabled});return null!==t&&void 0!==t?t:null===r||void 0===r||null===(n=r[0])||void 0===n?void 0:n.value},_=W(w,M),V=r.useMemo(function(){return S(_)},[S,_]),X=W(V,O),K=r.useMemo(function(){return E(_,X)},[E,_,X]),q=W(K,T),G=r.useMemo(function(){return k(_,X,q)},[k,_,X,q]),Y=W(G,D),U=r.useMemo(function(){if(!a)return[];var e=m.getNow(),t=m.setHour(e,6),n=m.setHour(e,18),r=function(e,t){var n=f.cellMeridiemFormat;return n?BS(e,{generateConfig:m,locale:f,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:w.every(function(e){return e.disabled||!Mk(e.value)})},{label:r(n,"PM"),value:"pm",disabled:w.every(function(e){return e.disabled||Mk(e.value)})}]},[w,a,m,f]),Q=function(e){var t=x(e);h(t)},Z=r.useMemo(function(){var e=y||v||m.getNow(),t=function(e){return null!==e&&void 0!==e};return t(M)?(e=m.setHour(e,M),e=m.setMinute(e,O),e=m.setSecond(e,T),e=m.setMillisecond(e,D)):t(P)?(e=m.setHour(e,P),e=m.setMinute(e,z),e=m.setSecond(e,B),e=m.setMillisecond(e,L)):t(_)&&(e=m.setHour(e,_),e=m.setMinute(e,X),e=m.setSecond(e,q),e=m.setMillisecond(e,Y)),e},[y,v,M,O,T,D,_,X,q,Y,P,z,B,L,m]),J=function(e,t){return null===e?null:m[t](Z,e)},ee=function(e){return J(e,"setHour")},te=function(e){return J(e,"setMinute")},ne=function(e){return J(e,"setSecond")},oe=function(e){return J(e,"setMillisecond")},ie=function(e){return null===e?null:"am"!==e||Mk(M)?"pm"===e&&Mk(M)?m.setHour(Z,M+12):Z:m.setHour(Z,M-12)},ae={onDblClick:$,changeOnScroll:l};return r.createElement("div",{className:re("".concat(c,"-content"),u.content),style:d.content},t&&r.createElement(Ek,kk({units:F,value:M,optionalValue:P,type:"hour",onChange:function(e){Q(ee(e))},onHover:function(e){b(ee(e))}},ae)),n&&r.createElement(Ek,kk({units:V,value:O,optionalValue:z,type:"minute",onChange:function(e){Q(te(e))},onHover:function(e){b(te(e))}},ae)),o&&r.createElement(Ek,kk({units:K,value:T,optionalValue:B,type:"second",onChange:function(e){Q(ne(e))},onHover:function(e){b(ne(e))}},ae)),i&&r.createElement(Ek,kk({units:G,value:D,optionalValue:L,type:"millisecond",onChange:function(e){Q(oe(e))},onHover:function(e){b(oe(e))}},ae)),a&&r.createElement(Ek,kk({units:U,value:j,type:"meridiem",onChange:function(e){Q(ie(e))},onHover:function(e){b(ie(e))}},ae)))}function Rk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Ok(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ok(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ok(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zk(e){var t=e.prefixCls,n=e.value,o=e.locale,i=e.generateConfig,a=e.showTime,l=(a||{}).format,s="".concat(t,"-time-panel"),c=Rk(ek(e,"time"),1)[0];return r.createElement(ZE.Provider,{value:c},r.createElement("div",{className:re(s)},r.createElement(uk,null,n?BS(n,{locale:o,format:l,generateConfig:i}):"\xa0"),r.createElement(Pk,a)))}function Ak(){return Ak=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ak.apply(this,arguments)}function Tk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Bk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bk(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hk(e){return Hk="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},Hk(e)}function Dk(){return Dk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dk.apply(this,arguments)}function Lk(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Hk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Hk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Fk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fk(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wk(e){return Wk="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},Wk(e)}function _k(){return _k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_k.apply(this,arguments)}function Vk(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Wk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Wk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Kk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kk(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qk(e){return qk="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},qk(e)}function Gk(){return Gk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gk.apply(this,arguments)}function Yk(e,t,n){return t=function(e){var t=function(e,t){if("object"!=qk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Qk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qk(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zk(e){return Zk="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},Zk(e)}function Jk(){return Jk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jk.apply(this,arguments)}function eN(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Zk(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Zk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zk(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return nN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nN(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rN(e){return rN="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},rN(e)}function oN(){return oN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oN.apply(this,arguments)}function iN(e,t,n){return t=function(e){var t=function(e,t){if("object"!=rN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return lN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lN(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sN(e){return sN="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},sN(e)}function cN(){return cN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cN.apply(this,arguments)}function uN(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 dN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uN(Object(n),!0).forEach(function(t){pN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pN(e,t,n){return t=function(e){var t=function(e,t){if("object"!=sN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mN(e){return function(e){if(Array.isArray(e))return gN(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hN(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||hN(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hN(e,t){if(e){if("string"===typeof e)return gN(e,t);var n=Object.prototype.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)?gN(e,t):void 0}}function gN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bN={date:gk,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,o=e.showTime,i=e.onSelect,a=e.value,l=e.pickerValue,s=e.onHover,c="".concat(t,"-datetime-panel"),u=Tk(VE(n,o),1)[0],d=function(e){return HS(n,e,a||l)};return r.createElement("div",{className:c},r.createElement(gk,Ak({},e,{onSelect:function(e){var t=d(e);i(u(t,t))},onHover:function(e){null===s||void 0===s||s(e?d(e):e)}})),r.createElement(zk,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,i=e.value,a=e.hoverValue,l=e.hoverRangeValue,s=o.locale,c="".concat(t,"-week-panel-row");return r.createElement(gk,Jk({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(l){var r=tN(l,2),o=r[0],u=r[1],d=OS(n,s,o,e),p=OS(n,s,u,e);t["".concat(c,"-range-start")]=d,t["".concat(c,"-range-end")]=p,t["".concat(c,"-range-hover")]=!d&&!p&&AS(n,o,u,e)}return a&&(t["".concat(c,"-hover")]=a.some(function(t){return OS(n,s,e,t)})),re(c,eN({},"".concat(c,"-selected"),!l&&OS(n,s,i,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,s=e.onModeChange,c="".concat(t,"-month-panel"),u=Xk(ek(e,"month"),1)[0],d=o.setMonth(i,0),p=n.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(n.locale):[]),m=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,o.getMonth(n)+1),i=o.addDate(r,-1);return a(n,t)&&a(i,t)}:null,f=r.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},BS(i,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(ZE.Provider,{value:u},r.createElement("div",{className:c},r.createElement(uk,{superOffset:function(e){return o.addYear(i,e)},onChange:l,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},f),r.createElement(sk,_k({},e,{disabledDate:m,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:function(e,t){return o.addMonth(e,t)},getCellText:function(e){var t=o.getMonth(e);return n.monthFormat?BS(e,{locale:n,format:n.monthFormat,generateConfig:o}):p[t]},getCellClassName:function(){return Vk({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-quarter-panel"),c=Uk(ek(e,"quarter"),1)[0],u=o.setMonth(i,0),d=r.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},BS(i,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(ZE.Provider,{value:c},r.createElement("div",{className:s},r.createElement(uk,{superOffset:function(e){return o.addYear(i,e)},onChange:a,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},d),r.createElement(sk,Gk({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(e,t){return o.addMonth(e,3*t)},getCellText:function(e){return BS(e,{locale:n,format:n.cellQuarterFormat,generateConfig:o})},getCellClassName:function(){return Yk({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,s=e.onModeChange,c="".concat(t,"-year-panel"),u=aN(ek(e,"year"),1)[0],d=function(e){var t=10*Math.floor(o.getYear(e)/10);return o.setYear(e,t)},p=function(e){var t=d(e);return o.addYear(t,9)},m=d(i),f=p(i),h=o.addYear(m,-1),g=a?function(e,t){var n=o.setMonth(e,0),r=o.setDate(n,1),i=o.addYear(r,1),l=o.addDate(i,-1);return a(r,t)&&a(l,t)}:null,b=r.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},BS(m,{locale:n,format:n.yearFormat,generateConfig:o}),"-",BS(f,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(ZE.Provider,{value:u},r.createElement("div",{className:c},r.createElement(uk,{superOffset:function(e){return o.addYear(i,10*e)},onChange:l,getStart:d,getEnd:p},b),r.createElement(sk,oN({},e,{disabledDate:g,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:function(e,t){return o.addYear(e,t)},getCellText:function(e){return BS(e,{locale:n,format:n.cellYearFormat,generateConfig:o})},getCellClassName:function(e){return iN({},"".concat(t,"-cell-in-view"),kS(o,e,m)||kS(o,e,f)||AS(o,m,f,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,s="".concat(t,"-decade-panel"),c=jk(ek(e,"decade"),1)[0],u=function(e){var t=100*Math.floor(o.getYear(e)/100);return o.setYear(e,t)},d=function(e){var t=u(e);return o.addYear(t,99)},p=u(i),m=d(i),f=o.addYear(p,-10),h=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,0),i=o.setYear(r,10*Math.floor(o.getYear(r)/10)),l=o.addYear(i,10),s=o.addDate(l,-1);return a(i,t)&&a(s,t)}:null,g="".concat(BS(p,{locale:n,format:n.yearFormat,generateConfig:o}),"-").concat(BS(m,{locale:n,format:n.yearFormat,generateConfig:o}));return r.createElement(ZE.Provider,{value:c},r.createElement("div",{className:s},r.createElement(uk,{superOffset:function(e){return o.addYear(i,100*e)},onChange:l,getStart:u,getEnd:d},g),r.createElement(sk,Dk({},e,{disabledDate:h,colNum:3,rowNum:4,baseDate:f,getCellDate:function(e,t){return o.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,r=BS(e,{locale:n,format:t,generateConfig:o}),i=BS(o.addYear(e,9),{locale:n,format:t,generateConfig:o});return"".concat(r,"-").concat(i)},getCellClassName:function(e){return Lk({},"".concat(t,"-cell-in-view"),ES(o,e,p)||ES(o,e,m)||AS(o,p,m,e))}}))))},time:zk};var vN=r.memo(r.forwardRef(function(e,t){var n=e.classNames,o=e.styles,i=e.locale,a=e.generateConfig,l=e.direction,s=e.prefixCls,c=e.tabIndex,u=void 0===c?0:c,d=e.multiple,p=e.defaultValue,m=e.value,f=e.onChange,h=e.onSelect,g=e.defaultPickerValue,b=e.pickerValue,v=e.onPickerValueChange,y=e.mode,$=e.onPanelChange,C=e.picker,x=void 0===C?"date":C,w=e.showTime,S=e.hoverValue,E=e.hoverRangeValue,k=e.cellRender,N=e.dateRender,I=e.monthCellRender,M=e.components,P=void 0===M?{}:M,R=e.hideHeader,O=r.useContext(Tw)||{},z=O.prefixCls,T=O.classNames,B=O.styles,H=z||s||"rc-picker",D=r.useRef();r.useImperativeHandle(t,function(){return{nativeElement:D.current}});var L=fN($S(e),4),j=L[0],W=L[1],_=L[2],V=L[3],X=sS(i,W),K="date"===x&&w?"datetime":x,q=r.useMemo(function(){return CS(K,_,V,j,X)},[K,_,V,j,X]),G=a.getNow(),Y=fN(F(x||"date",y),2),U=Y[0],Q=Y[1],Z="date"===U&&q?"datetime":U,J=UE(a,i,K),ee=fN(F(p,m),2),te=ee[0],ne=ee[1],oe=r.useMemo(function(){var e=_w(te).filter(function(e){return e});return d?e:e.slice(0,1)},[te,d]),ie=A(function(e){ne(e),f&&(null===e||oe.length!==e.length||oe.some(function(t,n){return!zS(a,i,t,e[n],K)}))&&(null===f||void 0===f||f(d?e:e[0]))}),ae=A(function(e){if(null===h||void 0===h||h(e),U===x){var t=d?J(oe,e):[e];ie(t)}}),le=fN(F(g||oe[0]||G,b),2),se=le[0],ce=le[1];r.useEffect(function(){oe[0]&&!b&&ce(oe[0])},[oe[0]]);var ue=function(e,t){null===$||void 0===$||$(e||b,t||U)},de=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce(e),null===v||void 0===v||v(e),t&&ue(e)},pe=function(e,t){Q(e),t&&de(t),ue(t,e)},me=r.useMemo(function(){var e,t;if(Array.isArray(E)){var n=fN(E,2);e=n[0],t=n[1]}else e=E;return e||t?(e=e||t,t=t||e,a.isAfter(e,t)?[t,e]:[e,t]):null},[E,a]),fe=Jw(k,N,I),he=P[Z]||bN[Z]||gk,ge=r.useMemo(function(){var e,t,r,i;return{classNames:null!==(e=null!==(t=null===T||void 0===T?void 0:T.popup)&&void 0!==t?t:n)&&void 0!==e?e:{},styles:null!==(r=null!==(i=null===B||void 0===B?void 0:B.popup)&&void 0!==i?i:o)&&void 0!==r?r:{}}},[T,n,B,o]),be=r.useContext(tk),ve=r.useMemo(function(){return dN(dN({},be),{},{hideHeader:R})},[be,R]),ye="".concat(H,"-panel"),$e=Xw(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return r.createElement(QE.Provider,{value:ge},r.createElement(tk.Provider,{value:ve},r.createElement("div",{ref:D,tabIndex:u,className:re(ye,pN({},"".concat(ye,"-rtl"),"rtl"===l))},r.createElement(he,cN({},$e,{showTime:q,prefixCls:H,locale:X,generateConfig:a,onModeChange:pe,pickerValue:se,onPickerValueChange:function(e){de(e,!0)},value:oe[0],onSelect:function(e){if(ae(e),de(e),U!==x){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(mN(n),["week"]),date:[].concat(mN(n),["date"])}[x]||n,o=r.indexOf(U),i=r[o+1];i&&pe(i,e)}},values:oe,cellRender:fe,hoverRangeValue:me,hoverValue:S})))))}));const yN=vN;function $N(e){return $N="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},$N(e)}function CN(){return CN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CN.apply(this,arguments)}function xN(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 wN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xN(Object(n),!0).forEach(function(t){SN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SN(e,t,n){return t=function(e){var t=function(e,t){if("object"!=$N(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$N(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EN(e){var t=e.picker,n=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,l=e.onSubmit,s=e.range,c=e.hoverValue,u=r.useContext(Tw),d=u.prefixCls,p=u.generateConfig,m=r.useCallback(function(e,n){return vE(p,t,e,n)},[p,t]),f=r.useMemo(function(){return m(o,1)},[o,m]),h={onCellDblClick:function(){a&&l()}},g="time"===t,b=wN(wN({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?b.hoverRangeValue=c:b.hoverValue=c,n?r.createElement("div",{className:"".concat(d,"-panels")},r.createElement(tk.Provider,{value:wN(wN({},h),{},{hideNext:!0})},r.createElement(yN,b)),r.createElement(tk.Provider,{value:wN(wN({},h),{},{hidePrev:!0})},r.createElement(yN,CN({},b,{pickerValue:f,onPickerValueChange:function(e){i(m(e,-1))}})))):r.createElement(tk.Provider,{value:wN({},h)},r.createElement(yN,b))}function kN(e){return"function"===typeof e?e():e}function NN(e){var t=e.prefixCls,n=e.presets,o=e.onClick,i=e.onHover;return n.length?r.createElement("div",{className:"".concat(t,"-presets")},r.createElement("ul",null,n.map(function(e,t){var n=e.label,a=e.value;return r.createElement("li",{key:t,onClick:function(){o(kN(a))},onMouseEnter:function(){i(kN(a))},onMouseLeave:function(){i(null)}},n)}))):null}function IN(e){return IN="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},IN(e)}function MN(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 PN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MN(Object(n),!0).forEach(function(t){RN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RN(e,t,n){return t=function(e){var t=function(e,t){if("object"!=IN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=IN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==IN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(){return ON=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ON.apply(this,arguments)}function zN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return AN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AN(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TN(e){var t,n,o=e.panelRender,i=e.internalMode,a=e.picker,l=e.showNow,s=e.range,c=e.multiple,u=e.activeInfo,d=void 0===u?[0,0,0]:u,p=e.presets,m=e.onPresetHover,f=e.onPresetSubmit,h=e.onFocus,g=e.onBlur,b=e.onPanelMouseDown,v=e.direction,y=e.value,$=e.onSelect,C=e.isInvalid,x=e.defaultOpenValue,w=e.onOk,S=e.onSubmit,E=e.classNames,k=e.styles,N=r.useContext(Tw).prefixCls,I="".concat(N,"-panel"),M="rtl"===v,P=r.useRef(null),R=r.useRef(null),O=zN(r.useState(0),2),z=O[0],A=O[1],T=zN(r.useState(0),2),B=T[0],H=T[1],D=zN(r.useState(0),2),L=D[0],j=D[1],F=zN(d,3),W=F[0],_=F[1],V=F[2],X=zN(r.useState(0),2),K=X[0],q=X[1];function G(e){return e.filter(function(e){return e})}r.useEffect(function(){q(10)},[W]),r.useEffect(function(){if(s&&R.current){var e,t=(null===(e=P.current)||void 0===e?void 0:e.offsetWidth)||0,n=R.current.getBoundingClientRect();if(!n.height||n.right<0)return void q(function(e){return Math.max(0,e-1)});var r=(M?_-t:W)-n.left;if(j(r),z&&z<V){var o=M?n.right-(_-t+z):W+t-n.left-z,i=Math.max(0,o);H(i)}else H(0)}},[K,M,z,W,_,V,s]);var Y=r.useMemo(function(){return G(_w(y))},[y]),U="time"===a&&!Y.length,Q=r.useMemo(function(){return U?G([x]):Y},[U,Y,x]),Z=U?x:Y,J=r.useMemo(function(){return!Q.length||Q.some(function(e){return C(e)})},[Q,C]),ee=r.createElement("div",{className:"".concat(N,"-panel-layout")},r.createElement(NN,{prefixCls:N,presets:p,onClick:f,onHover:m}),r.createElement("div",null,r.createElement(EN,ON({},e,{value:Z})),r.createElement(qE,ON({},e,{showNow:!c&&l,invalid:J,onSubmit:function(){U&&$(x),w(),S()}}))));o&&(ee=o(ee));var ne="".concat(I,"-container"),oe="marginLeft",ie="marginRight",ae=r.createElement("div",{onMouseDown:b,tabIndex:-1,className:re(ne,"".concat(N,"-").concat(i,"-panel-container"),null===E||void 0===E||null===(t=E.popup)||void 0===t?void 0:t.container),style:PN(RN(RN({},M?ie:oe,B),M?oe:ie,"auto"),null===k||void 0===k||null===(n=k.popup)||void 0===n?void 0:n.container),onFocus:h,onBlur:g},ee);return s&&(ae=r.createElement("div",{onMouseDown:b,ref:R,className:re("".concat(N,"-range-wrapper"),"".concat(N,"-").concat(a,"-range-wrapper"))},r.createElement("div",{ref:P,className:"".concat(N,"-range-arrow"),style:{left:L}}),r.createElement(te,{onResize:function(e){e.width&&A(e.width)}},ae))),ae}function BN(e){return BN="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},BN(e)}function HN(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 DN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HN(Object(n),!0).forEach(function(t){LN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LN(e,t,n){return t=function(e){var t=function(e,t){if("object"!=BN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jN(e,t){var n=e.format,o=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,p=e.onFocus,m=e.onBlur,f=e.onInputChange,h=e.onInvalid,g=e.open,b=e.onOpenChange,v=e.onKeyDown,y=e.onChange,$=e.activeHelp,C=e.name,x=e.autoComplete,w=e.id,S=e.value,E=e.invalid,k=e.placeholder,N=e.disabled,I=e.activeIndex,M=e.allHelp,P=e.picker,R=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},O=n[0],z=r.useCallback(function(e){return BS(e,{locale:a,format:O,generateConfig:i})},[a,i,O]),A=r.useMemo(function(){return S.map(z)},[S,z]),T=r.useMemo(function(){var e="time"===P?8:10,t="function"===typeof O?O(i.getNow()).length:O.length;return Math.max(e,t)+2},[O,P,i]),B=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if("string"===typeof r){var o=R(e,r);if(o)return o}}return!1};return[function(n){function r(e){return void 0!==n?e[n]:e}var i=DN(DN({},fa(e,{aria:!0,data:!0})),{},{format:o,validateFormat:function(e){return!!B(e)},preserveInvalidOnBlur:l,readOnly:s,required:c,"aria-required":u,name:C,autoComplete:x,size:T,id:r(w),value:r(A)||"",invalid:r(E),placeholder:r(k),active:I===n,helped:M||$&&I===n,disabled:r(N),onFocus:function(e){p(e,n)},onBlur:function(e){m(e,n)},onSubmit:d,onChange:function(e){f();var t=B(e);if(t)return h(!1,n),void y(t,n);h(!!e,n)},onHelp:function(){b(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null===v||void 0===v||v(e,function(){t=!0}),!e.defaultPrevented&&!t)switch(e.key){case"Escape":b(!1,{index:n});break;case"Enter":g||b(!0)}}},null===t||void 0===t?void 0:t({valueTexts:A}));return Object.keys(i).forEach(function(e){void 0===i[e]&&delete i[e]}),i},z]}var FN=["onMouseEnter","onMouseLeave"];function WN(e){return r.useMemo(function(){return Xw(e,FN)},[e])}var _N=["icon","type"],VN=["onClear"];function XN(){return XN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XN.apply(this,arguments)}function KN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qN(e){var t=e.icon,n=e.type,o=KN(e,_N),i=r.useContext(Tw),a=i.prefixCls,l=i.classNames,s=i.styles;return t?r.createElement("span",XN({className:re("".concat(a,"-").concat(n),l.suffix),style:s.suffix},o),t):null}function GN(e){var t=e.onClear,n=KN(e,VN);return r.createElement(qN,XN({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}function YN(e){return YN="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},YN(e)}function UN(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,ZN(r.key),r)}}function QN(e,t,n){return(t=ZN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZN(e){var t=function(e,t){if("object"!=YN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YN(t)?t:String(t)}var JN=["YYYY","MM","DD","HH","mm","ss","SSS"],eI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),QN(this,"format",void 0),QN(this,"maskFormat",void 0),QN(this,"cells",void 0),QN(this,"maskCells",void 0),this.format=t;var n=JN.map(function(e){return"(".concat(e,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(e){return"\u9867".repeat(e.length)});var o=new RegExp("(".concat(JN.join("|"),")")),i=(t.split(o)||[]).filter(function(e){return e}),a=0;this.cells=i.map(function(e){var t=JN.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(function(e){return e.mask})}var t,n,r;return t=e,(n=[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"\u9867"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=r)}return n}}])&&UN(t.prototype,n),r&&UN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tI(e){return tI="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},tI(e)}var nI=["className","active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"];function rI(){return rI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rI.apply(this,arguments)}function oI(e,t,n){return t=function(e){var t=function(e,t){if("object"!=tI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tI(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return aI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aI(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sI=r.forwardRef(function(e,t){var n=e.className,o=e.active,i=e.showActiveCls,a=void 0===i||i,l=e.suffixIcon,s=e.format,c=e.validateFormat,u=e.onChange,d=(e.onInput,e.helped),p=e.onHelp,m=e.onSubmit,f=e.onKeyDown,h=e.preserveInvalidOnBlur,g=void 0!==h&&h,b=e.invalid,v=e.clearIcon,y=lI(e,nI),$=e.value,C=e.onFocus,x=e.onBlur,w=e.onMouseUp,S=r.useContext(Tw),E=S.prefixCls,k=S.input,N=void 0===k?"input":k,I=S.classNames,M=S.styles,P="".concat(E,"-input"),R=iI(r.useState(!1),2),O=R[0],z=R[1],T=iI(r.useState($),2),B=T[0],H=T[1],D=iI(r.useState(""),2),j=D[0],F=D[1],W=iI(r.useState(null),2),_=W[0],V=W[1],X=iI(r.useState(null),2),K=X[0],q=X[1],G=B||"";r.useEffect(function(){H($)},[$]);var Y=r.useRef(null),U=r.useRef(null),Q=r.useRef(!1);r.useImperativeHandle(t,function(){return{nativeElement:Y.current,inputElement:U.current,focus:function(e){U.current.focus(e)},blur:function(){U.current.blur()}}});var Z=r.useMemo(function(){return new eI(s||"")},[s]),J=iI(r.useMemo(function(){return d?[0,0]:Z.getSelection(_)},[Z,_,d]),2),ee=J[0],te=J[1],ne=function(e){e&&e!==s&&e!==$&&p()},oe=A(function(e){c(e)&&u(e),H(e),ne(e)}),ie=function(e){x(e)};aE(o,function(){o||g||H($)});var ae=function(e){"Enter"===e.key&&c(G)&&m(),null===f||void 0===f||f(e)},le=r.useRef();L(function(){if(O&&s&&!Q.current){if(Z.match(G))return U.current.setSelectionRange(ee,te),le.current=fe(function(){U.current.setSelectionRange(ee,te)}),function(){fe.cancel(le.current)};oe(s)}},[Z,s,O,G,_,ee,te,K,oe]);var se=s?{onFocus:function(e){z(!0),V(0),F(""),C(e)},onBlur:function(e){z(!1),ie(e)},onKeyDown:function(e){if(Q.current)e.preventDefault();else{ae(e);var t=e.key,n=null,r=null,o=te-ee,i=s.slice(ee,te),a=function(e){V(function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,Z.size()-1)})},l=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=iI(t,3),r=n[0],o=n[1],a=n[2],l=G.slice(ee,te),s=Number(l);if(isNaN(s))return String(a||(e>0?r:o));var c=o-r+1;return String(r+(c+(s+e)-r)%c)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=l(1);break;case"ArrowDown":n="",r=l(-1);break;default:isNaN(Number(t))||(r=n=j+t)}if(null!==n&&(F(n),n.length>=o&&(a(1),F(""))),null!==r){var c=G.slice(0,ee)+Ww(r,o)+G.slice(te);oe(c.slice(0,s.length))}q({})}},onMouseDown:function(){Q.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=Z.getMaskCellIndex(t);V(n),q({}),null===w||void 0===w||w(e),Q.current=!1},onPaste:function(e){if(Q.current)e.preventDefault();else{var t=e.clipboardData.getData("text");c(t)&&oe(t)}}}:{};return r.createElement("div",{ref:Y,className:re(P,oI(oI({},"".concat(P,"-active"),o&&a),"".concat(P,"-placeholder"),d),n)},r.createElement(N,rI({ref:U,"aria-invalid":b,autoComplete:"off"},y,{onKeyDown:ae,onBlur:ie},se,{value:G,onChange:function(e){if(!s){var t=e.target.value;ne(t),H(t),u(t)}},className:I.input,style:M.input})),r.createElement(qN,{type:"suffix",icon:l}),v)});const cI=sI;var uI=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],dI=["index"];function pI(){return pI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pI.apply(this,arguments)}function mI(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 fI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mI(Object(n),!0).forEach(function(t){hI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hI(e,t,n){return t=function(e){var t=function(e,t){if("object"!=vI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vI(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return bI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bI(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vI(e){return vI="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},vI(e)}function yI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $I=r.forwardRef(function(e,t){var n=e.id,o=e.prefix,i=e.clearIcon,a=e.suffixIcon,l=e.separator,s=void 0===l?"~":l,c=e.activeIndex,u=(e.activeHelp,e.allHelp,e.focused),d=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),p=e.className,m=e.style,f=e.onClick,h=e.onClear,g=e.value,b=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),v=e.invalid,y=(e.inputReadOnly,e.direction),$=(e.onOpenChange,e.onActiveInfo),C=(e.placement,e.onMouseDown),x=(e.required,e["aria-required"],e.autoFocus),w=e.tabIndex,S=yI(e,uI),E="rtl"===y,k=r.useContext(Tw),N=k.prefixCls,I=k.classNames,M=k.styles,P=r.useMemo(function(){if("string"===typeof n)return[n];var e=n||{};return[e.start,e.end]},[n]),R=r.useRef(),O=r.useRef(),z=r.useRef(),T=function(e){var t;return null===(t=[O,z][e])||void 0===t?void 0:t.current};r.useImperativeHandle(t,function(){return{nativeElement:R.current,focus:function(e){if("object"===vI(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=yI(n,dI);null===(t=T(o))||void 0===t||t.focus(i)}else{var a;null===(a=T(null!==e&&void 0!==e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=T(0))||void 0===e||e.blur(),null===(t=T(1))||void 0===t||t.blur()}}});var B=WN(S),H=r.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),D=gI(jN(fI(fI({},e),{},{id:P,placeholder:H})),1)[0],L=gI(r.useState({position:"absolute",width:0}),2),j=L[0],F=L[1],W=A(function(){var e=T(c);if(e){var t=e.nativeElement.getBoundingClientRect(),n=R.current.getBoundingClientRect(),r=t.left-n.left;F(function(e){return fI(fI({},e),{},{width:t.width,left:r})}),$([t.left,t.right,n.width])}});r.useEffect(function(){W()},[c]);var _=i&&(g[0]&&!b[0]||g[1]&&!b[1]),V=x&&!b[0],X=x&&!V&&!b[1];return r.createElement(te,{onResize:W},r.createElement("div",pI({},B,{className:re(N,"".concat(N,"-range"),hI(hI(hI(hI({},"".concat(N,"-focused"),u),"".concat(N,"-disabled"),b.every(function(e){return e})),"".concat(N,"-invalid"),v.some(function(e){return e})),"".concat(N,"-rtl"),E),p),style:m,ref:R,onClick:f,onMouseDown:function(e){var t=e.target;t!==O.current.inputElement&&t!==z.current.inputElement&&e.preventDefault(),null===C||void 0===C||C(e)}}),o&&r.createElement("div",{className:re("".concat(N,"-prefix"),I.prefix),style:M.prefix},o),r.createElement(cI,pI({ref:O},D(0),{className:"".concat(N,"-input-start"),autoFocus:V,tabIndex:w,"date-range":"start"})),r.createElement("div",{className:"".concat(N,"-range-separator")},s),r.createElement(cI,pI({ref:z},D(1),{className:"".concat(N,"-input-end"),autoFocus:X,tabIndex:w,"date-range":"end"})),r.createElement("div",{className:"".concat(N,"-active-bar"),style:j}),r.createElement(qN,{type:"suffix",icon:a}),_&&r.createElement(GN,{icon:i,onClear:h})))});const CI=$I;function xI(e){return xI="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},xI(e)}function wI(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 SI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wI(Object(n),!0).forEach(function(t){EI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EI(e,t,n){return t=function(e){var t=function(e,t){if("object"!=xI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xI(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kI(e,t){return(0,r.useMemo)(function(){return[SI(SI({},e),{},{popup:(null===e||void 0===e?void 0:e.popup)||{}}),SI(SI({},t),{},{popup:(null===t||void 0===t?void 0:t.popup)||{}})]},[e,t])}function NI(e){return NI="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},NI(e)}function II(){return II=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},II.apply(this,arguments)}function MI(e){return function(e){if(Array.isArray(e))return TI(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AI(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PI(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 RI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PI(Object(n),!0).forEach(function(t){OI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function OI(e,t,n){return t=function(e){var t=function(e,t){if("object"!=NI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=NI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==NI(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||AI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AI(e,t){if(e){if("string"===typeof e)return TI(e,t);var n=Object.prototype.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)?TI(e,t):void 0}}function TI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BI(e,t){var n=null!==e&&void 0!==e?e:t;return Array.isArray(n)?n:[n,n]}function HI(e){return 1===e?"end":"start"}var DI=r.forwardRef(function(e,t){var n=zI(US(e,function(){var t=e.disabled,n=e.allowEmpty;return{disabled:BI(t,!1),allowEmpty:BI(n,!1)}}),6),o=n[0],i=n[1],a=n[2],l=n[3],s=n[4],c=n[5],u=o.prefixCls,d=o.rootClassName,p=o.styles,m=o.classNames,f=o.previewValue,h=o.defaultValue,g=o.value,b=o.needConfirm,v=o.onKeyDown,y=o.disabled,$=o.allowEmpty,C=o.disabledDate,x=o.minDate,w=o.maxDate,S=o.defaultOpen,E=o.open,k=o.onOpenChange,N=o.locale,I=o.generateConfig,M=o.picker,P=o.showNow,R=o.showToday,O=o.showTime,z=o.mode,T=o.onPanelChange,B=o.onCalendarChange,H=o.onOk,D=o.defaultPickerValue,j=o.pickerValue,W=o.onPickerValueChange,_=o.inputReadOnly,V=o.suffixIcon,X=o.onFocus,K=o.onBlur,q=o.presets,G=o.ranges,U=o.components,Q=o.cellRender,Z=o.dateRender,J=o.monthCellRender,ee=o.onClick,te=nE(t),ne=zI(kI(m,p),2),oe=ne[0],ie=ne[1],ae=zI(tE(E,S,y,k),2),le=ae[0],se=ae[1],ce=function(e,t){!y.some(function(e){return!e})&&e||se(e,t)},ue=zI(RE(I,N,l,!0,!1,h,g,B,H),5),de=ue[0],pe=ue[1],me=ue[2],fe=ue[3],he=ue[4],ge=me(),be=zI(cE(y,$,le),9),ve=be[0],ye=be[1],$e=be[2],Ce=be[3],xe=be[4],we=be[5],Se=be[6],Ee=be[7],ke=be[8],Ne=function(e,t){ye(!0),null===X||void 0===X||X(e,{range:HI(null!==t&&void 0!==t?t:Ce)})},Ie=function(e,t){ye(!1),null===K||void 0===K||K(e,{range:HI(null!==t&&void 0!==t?t:Ce)})},Me=r.useMemo(function(){if(!O)return null;var e=O.disabledTime,t=e?function(t){var n=HI(Ce),r=qw(ge,Se,Ce);return e(t,n,{from:r})}:void 0;return RI(RI({},O),{},{disabledTime:t})},[O,Ce,ge,Se]),Pe=zI(F([M,M],z),2),Re=Pe[0],Oe=Pe[1],ze=Re[Ce]||M,Ae="date"===ze&&Me?"datetime":ze,Te=Ae===M&&"time"!==Ae,Be=zE(M,ze,P,R,!0),He=zI(OE(o,de,pe,me,fe,y,l,ve,le,c),2),De=He[0],Le=He[1],je=function(e,t,n,r,o,i){var a=n[n.length-1];return function(l,s){var c=fE(e,2),u=c[0],d=c[1],p=pE(pE({},s),{},{from:qw(e,n)});return!(1!==a||!t[0]||!u||zS(r,o,u,l,p.type)||!r.isAfter(u,l))||!(0!==a||!t[1]||!d||zS(r,o,d,l,p.type)||!r.isAfter(l,d))||(null===i||void 0===i?void 0:i(l,p))}}(ge,y,Se,I,N,C),Fe=zI(nS(ge,c,$),2),We=Fe[0],_e=Fe[1],Ve=zI($E(I,N,ge,Re,le,Ce,i,Te,D,j,null===Me||void 0===Me?void 0:Me.defaultOpenValue,W,x,w),2),Xe=Ve[0],Ke=Ve[1],qe=A(function(e,t,n){var r=Vw(Re,Ce,t);if(r[0]===Re[0]&&r[1]===Re[1]||Oe(r),T&&!1!==n){var o=MI(ge);e&&(o[Ce]=e),T(o,r)}}),Ge=function(e,t){return Vw(ge,t,e)},Ye=function(e,t){var n=ge;e&&(n=Ge(e,Ce)),Ee(Ce);var r=we(n);fe(n),De(Ce,null===r),null===r?ce(!1,{force:!0}):t||te.current.focus({index:r})},Ue=zI(r.useState(null),2),Qe=Ue[0],Ze=Ue[1],Je=zI(r.useState(null),2),et=Je[0],tt=Je[1],nt=r.useMemo(function(){return et||ge},[ge,et]);r.useEffect(function(){le||tt(null)},[le]);var rt=zI(r.useState([0,0,0]),2),ot=rt[0],it=rt[1],at=function(e,t){"hover"===f&&(tt(e),Ze(t))},lt=iE(q,G),st=Jw(Q,Z,J,HI(Ce)),ct=ge[Ce]||null,ut=A(function(e){return c(e,{activeIndex:Ce})}),dt=r.useMemo(function(){var e=fa(o,!1);return Y(o,[].concat(MI(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime","classNames","styles"]))},[o]),pt=r.createElement(TN,II({},dt,{showNow:Be,showTime:Me,range:!0,multiplePanel:Te,activeInfo:ot,disabledDate:je,onFocus:function(e){ce(!0),Ne(e)},onBlur:Ie,onPanelMouseDown:function(){$e("panel")},picker:M,mode:ze,internalMode:Ae,onPanelChange:qe,format:s,value:ct,isInvalid:ut,onChange:null,onSelect:function(e){var t=Vw(ge,Ce,e);fe(t),b||a||i!==Ae||Ye(e)},pickerValue:Xe,defaultOpenValue:_w(null===O||void 0===O?void 0:O.defaultOpenValue)[Ce],onPickerValueChange:Ke,hoverValue:nt,onHover:function(e){at(e?Ge(e,Ce):null,"cell")},needConfirm:b,onSubmit:Ye,onOk:he,presets:lt,onPresetHover:function(e){at(e,"preset")},onPresetSubmit:function(e){Le(e)&&($e("preset-click"),ce(!1,{force:!0}))},onNow:function(e){Ye(e)},cellRender:st,classNames:oe,styles:ie})),mt=r.useMemo(function(){return{prefixCls:u,locale:N,generateConfig:I,button:U.button,input:U.input,classNames:oe,styles:ie}},[u,N,I,U.button,U.input,oe,ie]);return L(function(){le&&void 0!==Ce&&qe(null,M,!1)},[le,Ce,M]),L(function(){var e=$e();le||"input"!==e||(ce(!1),Ye(null,!0)),le||!a||b||"panel"!==e||(ce(!0),Ye())},[le]),r.createElement(Tw.Provider,{value:mt},r.createElement(Lw,II({},Gw(o),{popupElement:pt,popupStyle:ie.popup.root,popupClassName:re(d,oe.popup.root),visible:le,onClose:function(){ce(!1)},range:!0}),r.createElement(CI,II({},o,{ref:te,className:re(o.className,d,oe.root),style:RI(RI({},ie.root),o.style),suffixIcon:V,activeIndex:ve||le?Ce:null,activeHelp:!!et,allHelp:!!et&&"preset"===Qe,focused:ve,onFocus:function(e,t){var n=Se.length,r=Se[n-1];n&&r!==t&&b&&!$[r]&&!ke(r)&&ge[r]?te.current.focus({index:r}):($e("input"),ce(!0,{inherit:!0}),Ce!==t&&le&&!b&&a&&Ye(null,!0),xe(t),Ne(e,t))},onBlur:function(e,t){if(ce(!1),!b&&"input"===$e()){var n=we(ge);De(Ce,null===n)}Ie(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Ye(null,!0),null===v||void 0===v||v(e,t)},onSubmit:Ye,value:nt,maskFormat:s,onChange:function(e,t){var n=Ge(e,t);fe(n)},onInputChange:function(){$e("input")},format:l,inputReadOnly:_,disabled:y,open:le,onOpenChange:ce,onClick:function(e){var t,n=e.target.getRootNode();if(!te.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=y.findIndex(function(e){return!e});r>=0&&te.current.focus({index:r})}ce(!0),null===ee||void 0===ee||ee(e)},onClear:function(){Le(null),ce(!1,{force:!0})},invalid:We,onInvalid:_e,onActiveInfo:it}))))});const LI=DI;function jI(e){var t=e.prefixCls,n=e.value,o=e.onRemove,i=e.removeIcon,a=void 0===i?"\xd7":i,l=e.formatDate,s=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),p="".concat(t,"-selection"),m="".concat(p,"-overflow");function f(e,t){return r.createElement("span",{className:re("".concat(p,"-item")),title:"string"===typeof e?e:null},r.createElement("span",{className:"".concat(p,"-item-content")},e),!s&&t&&r.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(p,"-item-remove")},a))}return r.createElement("div",{className:d},r.createElement(rb,{prefixCls:m,data:n,renderItem:function(e){return f(l(e),function(t){t&&t.stopPropagation(),o(e)})},renderRest:function(e){return f("+ ".concat(e.length," ..."))},itemKey:function(e){return l(e)},maxCount:c}),!n.length&&r.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}function FI(e){return FI="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},FI(e)}var WI=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function _I(){return _I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_I.apply(this,arguments)}function VI(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 XI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VI(Object(n),!0).forEach(function(t){KI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KI(e,t,n){return t=function(e){var t=function(e,t){if("object"!=FI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=FI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==FI(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return GI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GI(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var UI=r.forwardRef(function(e,t){e.id;var n=e.open,o=e.prefix,i=e.clearIcon,a=e.suffixIcon,l=(e.activeHelp,e.allHelp,e.focused),s=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),c=e.generateConfig,u=e.placeholder,d=e.className,p=e.style,m=e.onClick,f=e.onClear,h=e.internalPicker,g=e.value,b=e.onChange,v=e.onSubmit,y=(e.onInputChange,e.multiple),$=e.maxTagCount,C=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),x=e.invalid,w=(e.inputReadOnly,e.direction),S=(e.onOpenChange,e.onMouseDown),E=(e.required,e["aria-required"],e.autoFocus),k=e.tabIndex,N=e.removeIcon,I=YI(e,WI),M="rtl"===w,P=r.useContext(Tw),R=P.prefixCls,O=P.classNames,z=P.styles,A=r.useRef(),T=r.useRef();r.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(e){var t;null===(t=T.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=T.current)||void 0===e||e.blur()}}});var B=WN(I),H=jN(XI(XI({},e),{},{onChange:function(e){b([e])}}),function(e){return{value:e.valueTexts[0]||"",active:l}}),D=qI(H,2),L=D[0],j=D[1],F=!(!i||!g.length||C),W=y?r.createElement(r.Fragment,null,r.createElement(jI,{prefixCls:R,value:g,onRemove:function(e){var t=g.filter(function(t){return t&&!zS(c,s,t,e,h)});b(t),n||v()},formatDate:j,maxTagCount:$,disabled:C,removeIcon:N,placeholder:u}),r.createElement("input",{className:"".concat(R,"-multiple-input"),value:g.map(j).join(","),ref:T,readOnly:!0,autoFocus:E,tabIndex:k}),r.createElement(qN,{type:"suffix",icon:a}),F&&r.createElement(GN,{icon:i,onClear:f})):r.createElement(cI,_I({ref:T},L(),{autoFocus:E,tabIndex:k,suffixIcon:a,clearIcon:F&&r.createElement(GN,{icon:i,onClear:f}),showActiveCls:!1}));return r.createElement("div",_I({},B,{className:re(R,KI(KI(KI(KI(KI({},"".concat(R,"-multiple"),y),"".concat(R,"-focused"),l),"".concat(R,"-disabled"),C),"".concat(R,"-invalid"),x),"".concat(R,"-rtl"),M),d),style:p,ref:A,onClick:m,onMouseDown:function(e){var t;e.target!==(null===(t=T.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null===S||void 0===S||S(e)}}),o&&r.createElement("div",{className:re("".concat(R,"-prefix"),O.prefix),style:z.prefix},o),W)});const QI=UI;function ZI(e){return ZI="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},ZI(e)}function JI(){return JI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JI.apply(this,arguments)}function eM(e){return function(e){if(Array.isArray(e))return aM(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iM(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tM(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 nM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tM(Object(n),!0).forEach(function(t){rM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rM(e,t,n){return t=function(e){var t=function(e,t){if("object"!=ZI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZI(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||iM(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iM(e,t){if(e){if("string"===typeof e)return aM(e,t);var n=Object.prototype.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)?aM(e,t):void 0}}function aM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lM=r.forwardRef(function(e,t){var n=oM(US(e),6),o=n[0],i=n[1],a=n[2],l=n[3],s=n[4],c=n[5],u=o,d=u.prefixCls,p=u.rootClassName,m=u.styles,f=u.classNames,h=u.previewValue,g=u.order,b=u.defaultValue,v=u.value,y=u.needConfirm,$=u.onChange,C=u.onKeyDown,x=u.disabled,w=u.disabledDate,S=u.minDate,E=u.maxDate,k=u.defaultOpen,N=u.open,I=u.onOpenChange,M=u.locale,P=u.generateConfig,R=u.picker,O=u.showNow,z=u.showToday,T=u.showTime,B=u.mode,H=u.onPanelChange,D=u.onCalendarChange,j=u.onOk,W=u.multiple,_=u.defaultPickerValue,V=u.pickerValue,X=u.onPickerValueChange,K=u.inputReadOnly,q=u.suffixIcon,G=u.removeIcon,U=u.onFocus,Q=u.onBlur,Z=u.presets,J=u.components,ee=u.cellRender,te=u.dateRender,ne=u.monthCellRender,oe=u.onClick,ie=nE(t);function ae(e){return null===e?null:W?e:e[0]}var le=UE(P,M,i),se=oM(kI(f,m),2),ce=se[0],ue=se[1],de=oM(tE(N,k,[x],I),2),pe=de[0],me=de[1],fe=oM(RE(P,M,l,!1,g,b,v,function(e,t,n){if(D){var r=nM({},n);delete r.range,D(ae(e),ae(t),r)}},function(e){null===j||void 0===j||j(ae(e))}),5),he=fe[0],ge=fe[1],be=fe[2],ve=fe[3],ye=fe[4],$e=be(),Ce=oM(cE([x]),4),xe=Ce[0],we=Ce[1],Se=Ce[2],Ee=Ce[3],ke=function(e){we(!0),null===U||void 0===U||U(e,{})},Ne=function(e){we(!1),null===Q||void 0===Q||Q(e,{})},Ie=oM(F(R,B),2),Me=Ie[0],Pe=Ie[1],Re="date"===Me&&T?"datetime":Me,Oe=zE(R,Me,O,z),ze=$&&function(e,t){$(ae(e),ae(t))},Ae=oM(OE(nM(nM({},o),{},{onChange:ze}),he,ge,be,ve,[],l,xe,pe,c),2)[1],Te=oM(nS($e,c),2),Be=Te[0],He=Te[1],De=r.useMemo(function(){return Be.some(function(e){return e})},[Be]),Le=oM($E(P,M,$e,[Me],pe,Ee,i,!1,_,V,_w(null===T||void 0===T?void 0:T.defaultOpenValue),function(e,t){if(X){var n=nM(nM({},t),{},{mode:t.mode[0]});delete n.range,X(e[0],n)}},S,E),2),je=Le[0],Fe=Le[1],We=A(function(e,t,n){if(Pe(t),H&&!1!==n){var r=e||$e[$e.length-1];H(r,t)}}),_e=function(){Ae(be()),me(!1,{force:!0})},Ve=oM(r.useState(null),2),Xe=Ve[0],Ke=Ve[1],qe=oM(r.useState(null),2),Ge=qe[0],Ye=qe[1],Ue=r.useMemo(function(){var e=[Ge].concat(eM($e)).filter(function(e){return e});return W?e:e.slice(0,1)},[$e,Ge,W]),Qe=r.useMemo(function(){return!W&&Ge?[Ge]:$e.filter(function(e){return e})},[$e,Ge,W]);r.useEffect(function(){pe||Ye(null)},[pe]);var Ze=function(e,t){"hover"===h&&(Ye(e),Ke(t))},Je=iE(Z),et=function(e){var t=W?le(be(),e):[e];Ae(t)&&!W&&me(!1,{force:!0})},tt=Jw(ee,te,ne),nt=r.useMemo(function(){var e=fa(o,!1);return nM(nM({},Y(o,[].concat(eM(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","classNames","styles"]))),{},{multiple:o.multiple})},[o]),rt=r.createElement(TN,JI({},nt,{showNow:Oe,showTime:T,disabledDate:w,onFocus:function(e){me(!0),ke(e)},onBlur:Ne,picker:R,mode:Me,internalMode:Re,onPanelChange:We,format:s,value:$e,isInvalid:c,onChange:null,onSelect:function(e){if(Se("panel"),!W||Re===R){var t=W?le(be(),e):[e];ve(t),y||a||i!==Re||_e()}},pickerValue:je,defaultOpenValue:null===T||void 0===T?void 0:T.defaultOpenValue,onPickerValueChange:Fe,hoverValue:Ue,onHover:function(e){Ze(e,"cell")},needConfirm:y,onSubmit:_e,onOk:ye,presets:Je,onPresetHover:function(e){Ze(e,"preset")},onPresetSubmit:et,onNow:function(e){et(e)},cellRender:tt,classNames:ce,styles:ue})),ot=r.useMemo(function(){return{prefixCls:d,locale:M,generateConfig:P,button:J.button,input:J.input,classNames:ce,styles:ue}},[d,M,P,J.button,J.input,ce,ue]);return L(function(){pe&&void 0!==Ee&&We(null,R,!1)},[pe,Ee,R]),L(function(){var e=Se();pe||"input"!==e||(me(!1),_e()),pe||!a||y||"panel"!==e||_e()},[pe]),r.createElement(Tw.Provider,{value:ot},r.createElement(Lw,JI({},Gw(o),{popupElement:rt,popupStyle:ue.popup.root,popupClassName:re(p,ce.popup.root),visible:pe,onClose:function(){me(!1)}}),r.createElement(QI,JI({},o,{ref:ie,className:re(o.className,p,ce.root),style:nM(nM({},ue.root),o.style),suffixIcon:q,removeIcon:G,activeHelp:!!Ge,allHelp:!!Ge&&"preset"===Xe,focused:xe,onFocus:function(e){Se("input"),me(!0,{inherit:!0}),ke(e)},onBlur:function(e){me(!1),Ne(e)},onKeyDown:function(e,t){"Tab"===e.key&&_e(),null===C||void 0===C||C(e,t)},onSubmit:_e,value:Qe,maskFormat:s,onChange:function(e){ve(e)},onInputChange:function(){Se("input")},internalPicker:i,format:l,inputReadOnly:K,disabled:x,open:pe,onOpenChange:me,onClick:function(e){x||ie.current.nativeElement.contains(document.activeElement)||ie.current.focus(),me(!0),null===oe||void 0===oe||oe(e)},onClear:function(){Ae(null),me(!1,{force:!0})},invalid:De,onInvalid:function(e){He(e,0)}}))))});const sM=lM,cM=["parentNode"];function uM(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function dM(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return cM.includes(n)?`form_item_${n}`:n}function pM(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function mM(e){return uM(e).join("_")}function fM(e,t){const n=v(t.getFieldInstance(e));if(n)return n;const r=dM(uM(e),t.__INTERNAL__.name);return r?document.getElementById(r):void 0}function hM(e){const[t]=zm(),n=r.useRef({}),o=r.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{const r=mM(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{focus:n,...r}=t,i=fM(e,o);i&&(Wa(i,{scrollMode:"if-needed",block:"nearest",...r}),n&&o.focusField(e))},focusField:e=>{const t=o.getFieldInstance(e);"function"===typeof t?.focus?t.focus():fM(e,o)?.focus?.()},getFieldInstance:e=>{const t=mM(e);return n.current[t]}},[e,t]);return[o]}const gM=r.createContext(void 0),bM=gM.Provider,vM=gM,yM=r.createContext(void 0),$M=yM.Provider;function CM(){return CM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CM.apply(this,arguments)}const xM=(0,r.forwardRef)((e,t)=>{const{prefixCls:n="rc-checkbox",className:o,style:i,checked:a,disabled:l,defaultChecked:s=!1,type:c="checkbox",title:u,onChange:d,...p}=e,m=(0,r.useRef)(null),f=(0,r.useRef)(null),[h,g]=F(s,a);(0,r.useImperativeHandle)(t,()=>({focus:e=>{m.current?.focus(e)},blur:()=>{m.current?.blur()},input:m.current,nativeElement:f.current}));const b=re(n,o,{[`${n}-checked`]:h,[`${n}-disabled`]:l});return r.createElement("span",{className:b,title:u,style:i,ref:f},r.createElement("input",CM({},p,{className:`${n}-input`,ref:m,onChange:t=>{l||("checked"in e||g(t.target.checked),d?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:l,checked:!!h,type:c})))}),wM=xM;function SM(e){const t=r.useRef(null),n=()=>{fe.cancel(t.current),t.current=null};return[()=>{n(),t.current=fe(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}const EM=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...br(e),display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS,[`${t}-wrapper`]:{marginInlineEnd:0}}}}},kM=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:o,radioSize:i,motionDurationSlow:a,motionDurationMid:l,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:p,colorTextDisabled:m,paddingXS:f,dotColorDisabled:h,dotSize:g,lineType:b,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...br(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[t]:{...br(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${i} * 1px)`,height:`calc(${i} * 1px)`,backgroundColor:c,border:`${lt(d)} ${b} ${u}`,borderRadius:"50%",transition:`all ${l}`,flex:"none","&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:v,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${a} ${s}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:vr(e)},[`&:hover ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:o,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:p,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}}}},NM=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationMid:l,buttonPaddingInline:s,fontSize:c,buttonBg:u,fontSizeLG:d,controlHeightLG:p,controlHeightSM:m,paddingXS:f,borderRadius:h,borderRadiusSM:g,borderRadiusLG:b,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:$,colorBgContainerDisabled:C,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:w,colorPrimary:S,colorPrimaryHover:E,colorPrimaryActive:k,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:I,buttonSolidCheckedActiveBg:M,calc:P}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:c,lineHeight:lt(P(n).sub(P(o).mul(2)).equal()),background:u,border:`${lt(o)} ${i} ${a}`,borderBlockStartWidth:P(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:["color","background-color","box-shadow"].map(e=>`${e} ${l}`).join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:P(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${lt(o)} ${i} ${a}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:p,fontSize:d,lineHeight:lt(P(p).sub(P(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:P(f).sub(o).equal(),paddingBlock:0,lineHeight:lt(P(m).sub(P(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:S},"&:has(:focus-visible)":vr(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:S,background:v,borderColor:S,"&::before":{backgroundColor:S},"&:first-child":{borderColor:S},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:N,borderColor:N,"&:hover":{color:y,background:I,borderColor:I},"&:active":{color:y,background:M,borderColor:M}},"&-disabled":{color:$,backgroundColor:C,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:C,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:w,backgroundColor:x,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},IM=To("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${lt(n)} ${t}`,o=ir(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[EM(o),kM(o),NM(o)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:p,colorPrimaryActive:m,colorWhite:f}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:s,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:m,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:f,radioBgColor:t?l:d}},{unitless:{radioSize:!0,dotSize:!0}}),MM=r.forwardRef((e,t)=>{const n=r.useContext(vM),o=r.useContext(yM),{getPrefixCls:i,direction:a,className:l,style:s,classNames:c,styles:u}=xe("radio"),d=r.useRef(null),p=w(t,d),{isFormItemInput:m}=r.useContext(qm);const f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:h,className:g,rootClassName:b,children:v,style:y,title:$,classNames:C,styles:x,...S}=e,E=i("radio",h),k="button"===(n?.optionType||o),N=k?`${E}-button`:E,I=Ka(E),[M,P]=IM(E,I),R={...S},O=r.useContext($c);let z=R.checked;n&&(R.name=n.name,R.onChange=f,z=e.value===n.value,R.disabled=R.disabled??n.disabled),R.disabled=R.disabled??O;const A={...e,...R,checked:z},[T,B]=Ca([c,C],[u,x],{props:A}),H=re(`${N}-wrapper`,{[`${N}-wrapper-checked`]:z,[`${N}-wrapper-disabled`]:R.disabled,[`${N}-wrapper-rtl`]:"rtl"===a,[`${N}-wrapper-in-form-item`]:m,[`${N}-wrapper-block`]:!!n?.block},l,g,b,T.root,M,P,I),[D,L]=SM(R.onClick);return r.createElement(ru,{component:"Radio",disabled:R.disabled},r.createElement("label",{className:H,style:{...B.root,...s,...y},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:$,onClick:D},r.createElement(wM,{...R,checked:z,className:re(T.icon,{[Qc]:!k}),style:B.icon,type:"radio",prefixCls:N,ref:p,onClick:L}),void 0!==v?r.createElement("span",{className:re(`${N}-label`,T.label),style:B.label},v):null))});const PM=MM,RM=r.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o}=r.useContext(ye),{name:i}=r.useContext(qm),a=Is(mM(i)),{prefixCls:l,className:s,rootClassName:c,options:u,buttonStyle:d="outline",disabled:p,children:m,size:f,style:h,id:g,optionType:b,name:v=a,defaultValue:y,value:$,block:C=!1,onChange:x,onMouseEnter:w,onMouseLeave:S,onFocus:E,onBlur:k,orientation:N,vertical:I,role:M="radiogroup"}=e,[P,R]=F(y,$),O=r.useCallback(t=>{const n=P,r=t.target.value;"value"in e||R(r),r!==n&&x?.(t)},[P,R,x]),z=n("radio",l),A=`${z}-group`,T=Ka(z),[B,H]=IM(z,T);let D=m;u&&u.length>0&&(D=u.map(e=>"string"===typeof e||"number"===typeof e?r.createElement(PM,{key:e.toString(),prefixCls:z,disabled:p,value:e,checked:P===e},e):r.createElement(PM,{key:`radio-group-value-options-${e.value}`,prefixCls:z,disabled:e.disabled||p,value:e.value,checked:P===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const L=ou(f),[,j]=au(N,I),W=re(A,`${A}-${d}`,{[`${A}-large`]:"large"===L,[`${A}-small`]:"small"===L,[`${A}-rtl`]:"rtl"===o,[`${A}-block`]:C},s,c,B,H,T),_=r.useMemo(()=>({onChange:O,value:P,disabled:p,name:v,optionType:b,block:C}),[O,P,p,v,b,C]);return r.createElement("div",{...fa(e,{aria:!0,data:!0}),role:M,className:re(W,{[`${z}-group-vertical`]:j}),style:h,onMouseEnter:w,onMouseLeave:S,onFocus:E,onBlur:k,id:g,ref:t},r.createElement(bM,{value:_},D))}),OM=r.memo(RM),zM=r.forwardRef((e,t)=>{const{getPrefixCls:n}=r.useContext(ye),{prefixCls:o,...i}=e,a=n("radio",o);return r.createElement($M,{value:"button"},r.createElement(PM,{prefixCls:a,...i,type:"radio",ref:t}))});function AM(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:i,prefixCls:a,value:l,onChange:s,divRef:c}=e,u=o.getYear(l||o.getNow());let d=u-10,p=d+20;n&&(d=o.getYear(n[0]),p=o.getYear(n[1])+1);const m=i&&"\u5e74"===i.year?"\u5e74":"",f=[];for(let r=d;r<p;r++)f.push({label:`${r}${m}`,value:r});return r.createElement(ty,{size:t?void 0:"small",options:f,value:u,className:`${a}-year-select`,onChange:e=>{let t=o.setYear(l,e);if(n){const[e,r]=n,i=o.getYear(t),a=o.getMonth(t);i===o.getYear(r)&&a>o.getMonth(r)&&(t=o.setMonth(t,o.getMonth(r))),i===o.getYear(e)&&a<o.getMonth(e)&&(t=o.setMonth(t,o.getMonth(e)))}s(t)},getPopupContainer:()=>c.current})}function TM(e){const{prefixCls:t,fullscreen:n,validRange:o,value:i,generateConfig:a,locale:l,onChange:s,divRef:c}=e,u=a.getMonth(i||a.getNow());let d=0,p=11;if(o){const[e,t]=o,n=a.getYear(i);a.getYear(t)===n&&(p=a.getMonth(t)),a.getYear(e)===n&&(d=a.getMonth(e))}const m=l.shortMonths||a.locale.getShortMonths(l.locale),f=[];for(let r=d;r<=p;r+=1)f.push({label:m[r],value:r});return r.createElement(ty,{size:n?void 0:"small",className:`${t}-month-select`,value:u,options:f,onChange:e=>{s(a.setMonth(i,e))},getPopupContainer:()=>c.current})}function BM(e){const{prefixCls:t,locale:n,mode:o,fullscreen:i,onModeChange:a}=e;return r.createElement(OM,{onChange:e=>{let{target:{value:t}}=e;a(t)},value:o,size:i?void 0:"small",className:`${t}-mode-switch`},r.createElement(zM,{value:"month"},n.month),r.createElement(zM,{value:"year"},n.year))}const HM=function(e){const{prefixCls:t,fullscreen:n,mode:o,onChange:i,onModeChange:a,className:l,style:s}=e,c=r.useRef(null),u=(0,r.useContext)(qm),d=(0,r.useMemo)(()=>({...u,isFormItemInput:!1}),[u]),p={...e,fullscreen:n,divRef:c};return r.createElement("div",{className:re(`${t}-header`,l),style:s,ref:c},r.createElement(qm.Provider,{value:d},r.createElement(AM,{...p,onChange:e=>{i(e,"year")}}),"month"===o&&r.createElement(TM,{...p,onChange:e=>{i(e,"month")}})),r.createElement(BM,{...p,onModeChange:a}))},DM=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:s,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:p,cellBgDisabled:m,colorFillSecondary:f}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:lt(r),borderRadius:o,transition:`background-color ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${lt(l)} ${s} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${t}-disabled ${n}`]:{background:f}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:m}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},LM=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:s,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:p,borderRadiusLG:m,colorPrimary:f,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:b,colorIcon:v,textHeight:y,motionDurationMid:$,colorIconHover:C,fontWeightStrong:x,cellHeight:w,pickerCellPaddingVertical:S,colorTextDisabled:E,colorText:k,fontSize:N,motionDurationSlow:I,withoutTimeCellHeight:M,pickerQuarterPanelContentHeight:P,borderRadiusSM:R,colorTextLightSolid:O,cellHoverBg:z,timeColumnHeight:A,timeColumnWidth:T,timeCellHeight:B,controlItemBgActive:H,marginXXS:D,pickerDatePanelPaddingHorizontal:L,pickerControlIconMargin:j}=e,F=e.calc(a).mul(7).add(e.calc(L).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:m,outline:"none","&-focused":{borderColor:f},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:F},"&-header":{display:"flex",padding:`0 ${lt(s)}`,color:h,borderBottom:`${lt(d)} ${p} ${g}`,"> *":{flex:"none"},button:{padding:0,color:v,lineHeight:lt(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${$}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:lt(y),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:f}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:j,insetInlineStart:j,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(S).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":{padding:`${lt(S)} 0`,color:E,cursor:"pointer","&-in-view":{color:k},...DM(e)},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(M).mul(4).equal()},[r]:{padding:`0 ${lt(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:P}},"&-decade-panel":{[r]:{padding:`0 ${lt(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${lt(s)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${lt(s)} ${lt(L)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${$}`},"&:first-child:before":{borderStartStartRadius:R,borderEndStartRadius:R},"&:last-child:before":{borderStartEndRadius:R,borderEndEndRadius:R}},"&:hover td:before":{background:z},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:f},[`&${t}-cell-week`]:{color:new Or(O).setA(.5).toHexString()},[r]:{color:O}}},"&-range-hover td:before":{background:H}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${lt(s)} ${lt(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${lt(d)} ${p} ${g}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${I}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:A},"&-column":{flex:"1 0 auto",width:T,margin:`${lt(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background-color ${$}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${lt(B)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${lt(d)} ${p} ${g}`},"&-active":{background:new Or(H).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:D,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(T).sub(e.calc(D).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(T).sub(B).div(2).equal(),color:k,lineHeight:lt(B),borderRadius:R,cursor:"pointer",transition:`background-color ${$}`,"&:hover":{background:z}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:H}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}},jM=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${lt(r)} ${c} ${u}`,"&-extra":{padding:`0 ${lt(o)}`,lineHeight:lt(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${lt(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:lt(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:lt(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};function FM(e){return ir(e,{inputAffixPadding:e.paddingXXS})}const WM=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:f,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y,inputFontSize:$,inputFontSizeLG:C,inputFontSizeSM:x}=e,w=$||n,S=x||w,E=C||l,k=Math.round((t-w*r)/2*10)/10-o,N=Math.round((i-S*r)/2*10)/10-o,I=Math.ceil((a-E*s)/2*10)/10-o;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(I,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:f,hoverBorderColor:m,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${b}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:w,inputFontSizeLG:E,inputFontSizeSM:S}},_M=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},VM=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,l=2*i,s=2*a,c=Math.min(n-l,n-s),u=Math.min(r-l,r-s),d=Math.min(o-l,o-s);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Or(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Or(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},XM=To("Calendar",e=>{const t=`${e.componentCls}-calendar`;return(e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:o,itemActiveBg:i}=e;return{[t]:{...LM(e),...br(e),background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${lt(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}},[`${t} ${n}-panel`]:{background:o,border:0,borderTop:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${lt(e.paddingXS)} 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:lt(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:lt(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${lt(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,width:"100%",height:e.calc(e.dateValueHeight).add(e.dateContentHeight).add(e.calc(e.paddingXS).div(2)).add(e.lineWidthBold).equal()},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${lt(e.calc(e.marginXS).div(2).equal())}`,padding:`${lt(e.calc(e.paddingXS).div(2).equal())} ${lt(e.paddingXS)} 0`,border:0,borderTop:`${lt(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background-color ${e.motionDurationSlow}`,"&-value":{lineHeight:lt(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${lt(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${lt(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}})(ir(e,_M(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()}))},e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...VM(e)})),KM=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},qM=(e,t,n)=>{const{getMonth:r}=n;return KM(e,t,n)&&r(e)===r(t)},GM=(e,t,n)=>{const{getDate:r}=n;return qM(e,t,n)&&r(e)===r(t)},YM=e=>t=>{const{prefixCls:n,className:o,rootClassName:i,style:a,dateFullCellRender:l,dateCellRender:s,monthFullCellRender:c,monthCellRender:u,cellRender:d,fullCellRender:p,headerRender:m,value:f,defaultValue:h,disabledDate:g,mode:b,validRange:v,fullscreen:y=!0,showWeek:$,onChange:C,onPanelChange:x,onSelect:w,styles:S,classNames:E}=t,{getPrefixCls:k,direction:N,className:I,style:M,classNames:P,styles:R}=xe("calendar"),O={...t,mode:b,fullscreen:y,showWeek:$},[z,A]=Ca([P,E],[R,S],{props:O}),[T,B,H,D,L,j]=r.useMemo(()=>{const{root:e,header:t,...n}=z,{root:r,header:o,...i}=A;return[e,t,n,r,o,i]},[z,A]),W=k("picker",n),_=`${W}-calendar`,[V,X]=XM(W,_),K=e.getNow();const[q,Y]=F(()=>h||e.getNow(),f),[U,Q]=F("month",b),Z=r.useMemo(()=>"year"===U?"month":"date",[U]),J=r.useCallback(t=>!!v&&(e.isAfter(v[0],t)||e.isAfter(t,v[1]))||!!g?.(t),[g,v]),ee=(e,t)=>{x?.(e,t)},te=e=>{Q(e),ee(q,e)},ne=(t,n)=>{(t=>{Y(t),GM(t,q,e)||(("date"===Z&&!qM(t,q,e)||"month"===Z&&!KM(t,q,e))&&ee(t,U),C?.(t))})(t),w?.(t,{source:n})},oe=r.useCallback((t,n)=>p?p(t,n):l?l(t):r.createElement("div",{className:re(`${W}-cell-inner`,`${_}-date`,{[`${_}-date-today`]:GM(K,t,e)})},r.createElement("div",{className:`${_}-date-value`},String(e.getDate(t)).padStart(2,"0")),r.createElement("div",{className:`${_}-date-content`},"function"===typeof d?d(t,n):s?.(t))),[K,W,_,p,l,d,s]),ie=r.useCallback((t,n)=>{if(p)return p(t,n);if(c)return c(t);const o=n.locale.shortMonths||e.locale.getShortMonths(n.locale.locale);return r.createElement("div",{className:re(`${W}-cell-inner`,`${_}-date`,{[`${_}-date-today`]:qM(K,t,e)})},r.createElement("div",{className:`${_}-date-value`},o[e.getMonth(t)]),r.createElement("div",{className:`${_}-date-content`},"function"===typeof d?d(t,n):u?.(t)))},[K,W,_,p,c,d,u]),[ae]=Yc("Calendar",as),le=G(ae,t.locale||{});return r.createElement("div",{className:re(_,{[`${_}-full`]:y,[`${_}-mini`]:!y,[`${_}-rtl`]:"rtl"===N},I,o,i,T,V,X),style:{...D,...M,...a}},m?m({value:q,type:U,onChange:e=>{ne(e,"customize")},onTypeChange:te}):r.createElement(HM,{className:B,style:L,prefixCls:_,value:q,generateConfig:e,mode:U,fullscreen:y,locale:le?.lang,validRange:v,onChange:ne,onModeChange:te}),r.createElement(yN,{classNames:H,styles:j,value:q,prefixCls:W,locale:le?.lang,generateConfig:e,cellRender:(e,t)=>"date"===t.type?oe(e,t):"month"===t.type?ie(e,{...t,locale:le?.lang}):void 0,onSelect:e=>{ne(e,Z)},mode:Z,picker:Z,disabledDate:J,hideHeader:!0,showWeek:$}))},UM=YM(Aw);UM.generateCalendar=YM;const QM=UM;const ZM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function JM(){return JM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JM.apply(this,arguments)}const eP=r.forwardRef((e,t)=>r.createElement(si,JM({},e,{ref:t,icon:ZM})));var tP=n(94561),nP=n.n(tP);let rP;const oP=()=>("undefined"===typeof rP&&(rP=nP()()),rP),iP=(0,r.createContext)(null),aP=e=>{const{activeTabOffset:t,horizontal:n,rtl:o,indicator:i={}}=e,{size:a,align:l="center"}=i,[s,c]=(0,r.useState)(),u=(0,r.useRef)(),d=r.useCallback(e=>"function"===typeof a?a(e):"number"===typeof a?a:e,[a]);function p(){fe.cancel(u.current)}return(0,r.useEffect)(()=>{const e={};if(t)if(n){e.width=d(t.width);const n=o?"right":"left";"start"===l&&(e[n]=t[n]),"center"===l&&(e[n]=t[n]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===l&&(e[n]=t[n]+t.width,e.transform="translateX(-100%)")}else e.height=d(t.height),"start"===l&&(e.top=t.top),"center"===l&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===l&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return p(),u.current=fe(()=>{s&&e&&Object.keys(e).every(t=>{const n=e[t],r=s[t];return"number"===typeof n&&"number"===typeof r?Math.round(n)===Math.round(r):n===r})||c(e)}),p},[JSON.stringify(t),n,o,l,d]),{style:s}},lP={width:0,height:0,left:0,top:0};function sP(e,t){const n=r.useRef(e),[,o]=r.useState({});return[n.current,function(e){const r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}const cP=.995**20;function uP(e){const[t,n]=(0,r.useState)(0),o=(0,r.useRef)(0),i=(0,r.useRef)();return i.current=e,D(()=>{i.current?.()},[t]),()=>{o.current===t&&(o.current+=1,n(o.current))}}const dP={width:0,height:0,left:0,top:0,right:0};function pP(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}function mP(e){return String(e).replace(/"/g,"TABS_DQ")}function fP(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}const hP=r.forwardRef((e,t)=>{const{prefixCls:n,editable:o,locale:i,style:a}=e;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||"Add tab",onClick:e=>{o.onEdit("add",{event:e})}},o.addIcon||"+"):null}),gP=hP,bP=r.forwardRef((e,t)=>{const{position:n,prefixCls:o,extra:i}=e;if(!i)return null;let a,l={};return"object"!==typeof i||r.isValidElement(i)?l.right=i:l=i,"right"===n&&(a=l.right),"left"===n&&(a=l.left),a?r.createElement("div",{className:`${o}-extra-content`,ref:t},a):null});const vP=bP;function yP(){return yP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yP.apply(this,arguments)}const $P=r.forwardRef((e,t)=>{const{prefixCls:n,id:o,tabs:i,locale:a,mobile:l,more:s={},style:c,className:u,editable:d,tabBarGutter:p,rtl:m,removeAriaLabel:f,onTabClick:h,getPopupContainer:g,popupClassName:b,popupStyle:v}=e,[y,$]=(0,r.useState)(!1),[C,x]=(0,r.useState)(null),{icon:w="More"}=s,S=`${o}-more-popup`,E=`${n}-dropdown`,k=null!==C?`${S}-${C}`:null,N=a?.dropdownAriaLabel;const I=r.createElement(cx,{onClick:e=>{let{key:t,domEvent:n}=e;h(t,n),$(!1)},prefixCls:`${E}-menu`,id:S,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[C],"aria-label":void 0!==N?N:"expanded dropdown"},i.map(e=>{const{closable:t,disabled:n,closeIcon:i,key:a,label:l}=e,s=fP(t,i,d,n);return r.createElement(BC,{key:a,id:`${S}-${a}`,role:"option","aria-controls":o&&`${o}-panel-${a}`,disabled:n},r.createElement("span",null,l),s&&r.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:`${E}-menu-item-remove`,onClick:e=>{e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),d.onEdit("remove",{key:t,event:e})}(e,a)}},i||d.removeIcon||"\xd7"))}));function M(e){const t=i.filter(e=>!e.disabled);let n=t.findIndex(e=>e.key===C)||0;const r=t.length;for(let o=0;o<r;o+=1){n=(n+e+r)%r;const o=t[n];if(!o.disabled)return void x(o.key)}}(0,r.useEffect)(()=>{const e=document.getElementById(k);e?.scrollIntoView&&e.scrollIntoView(!1)},[k,C]),(0,r.useEffect)(()=>{y||x(null)},[y]);const P={marginInlineStart:p};i.length||(P.visibility="hidden",P.order=1);const R=re(b,{[`${E}-rtl`]:m}),O=l?null:r.createElement(Z$,yP({prefixCls:E,overlay:I,visible:!!i.length&&y,onVisibleChange:$,overlayClassName:R,overlayStyle:v,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},s),r.createElement("button",{type:"button",className:`${n}-nav-more`,style:P,"aria-haspopup":"listbox","aria-controls":S,id:`${o}-more`,"aria-expanded":y,onKeyDown:function(e){const{which:t}=e;if(y)switch(t){case ul.UP:M(-1),e.preventDefault();break;case ul.DOWN:M(1),e.preventDefault();break;case ul.ESC:$(!1);break;case ul.SPACE:case ul.ENTER:null!==C&&h(C,e)}else[ul.DOWN,ul.SPACE,ul.ENTER].includes(t)&&($(!0),e.preventDefault())}},w));return r.createElement("div",{className:re(`${n}-nav-operations`,u),style:c,ref:t},O,r.createElement(gP,{prefixCls:n,locale:a,editable:d}))}),CP=r.memo($P,(e,t)=>t.tabMoving),xP=e=>{const{prefixCls:t,id:n,active:o,focus:i,tab:{key:a,label:l,disabled:s,closeIcon:c,icon:u},closable:d,renderWrapper:p,removeAriaLabel:m,editable:f,onClick:h,onFocus:g,onBlur:b,onKeyDown:v,onMouseDown:y,onMouseUp:$,style:C,className:x,tabCount:w,currentPosition:S}=e,E=`${t}-tab`,k=fP(d,c,f,s);function N(e){s||h(e)}const I=r.useMemo(()=>u&&"string"===typeof l?r.createElement("span",null,l):l,[l,u]),M=r.useRef(null);r.useEffect(()=>{i&&M.current&&M.current.focus()},[i]);const P=r.createElement("div",{key:a,"data-node-key":mP(a),className:re(E,x,{[`${E}-with-remove`]:k,[`${E}-active`]:o,[`${E}-disabled`]:s,[`${E}-focus`]:i}),style:C,onClick:N},r.createElement("div",{ref:M,role:"tab","aria-selected":o,id:n&&`${n}-tab-${a}`,className:`${E}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:o?0:-1,onClick:e=>{e.stopPropagation(),N(e)},onKeyDown:v,onMouseDown:y,onMouseUp:$,onFocus:g,onBlur:b},i&&r.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${S} of ${w}`),u&&r.createElement("span",{className:`${E}-icon`},u),l&&I),k&&r.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:o?0:-1,className:`${E}-remove`,onClick:e=>{var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),f.onEdit("remove",{key:a,event:t})}},c||f.removeIcon||"\xd7"));return p?p(P):P};function wP(){return wP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wP.apply(this,arguments)}const SP=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},EP=(e,t)=>e[t?0:1],kP=r.forwardRef((e,t)=>{const{className:n,style:o,id:i,animated:a,activeKey:l,rtl:s,extra:c,editable:u,locale:d,tabPosition:p,tabBarGutter:m,children:f,onTabClick:h,onTabScroll:g,indicator:b,classNames:v,styles:y}=e,{prefixCls:$,tabs:C}=r.useContext(iP),x=(0,r.useRef)(null),w=(0,r.useRef)(null),E=(0,r.useRef)(null),k=(0,r.useRef)(null),N=(0,r.useRef)(null),I=(0,r.useRef)(null),M=(0,r.useRef)(null),P="top"===p||"bottom"===p,[R,O]=sP(0,(e,t)=>{P&&g&&g({direction:e>t?"left":"right"})}),[z,T]=sP(0,(e,t)=>{!P&&g&&g({direction:e>t?"top":"bottom"})}),[B,H]=(0,r.useState)([0,0]),[D,L]=(0,r.useState)([0,0]),[j,F]=(0,r.useState)([0,0]),[W,_]=(0,r.useState)([0,0]),[V,X]=function(e){const t=(0,r.useRef)([]),[,n]=(0,r.useState)({}),o=(0,r.useRef)("function"===typeof e?e():e),i=uP(()=>{let e=o.current;t.current.forEach(t=>{e=t(e)}),t.current=[],o.current=e,n({})});return[o.current,function(e){t.current.push(e),i()}]}(new Map),K=function(e,t,n){return(0,r.useMemo)(()=>{const n=new Map,r=t.get(e[0]?.key)||lP,o=r.left+r.width;for(let i=0;i<e.length;i+=1){const{key:r}=e[i];let a=t.get(r);a||(a=t.get(e[i-1]?.key)||lP);const l=n.get(r)||{...a};l.right=o-l.left-l.width,n.set(r,l)}return n},[e.map(e=>e.key).join("_"),t,n])}(C,V,D[0]),q=EP(B,P),G=EP(D,P),Y=EP(j,P),U=EP(W,P),Q=Math.floor(q)<Math.floor(G+Y),Z=Q?q-U:q-Y,J=`${$}-nav-operations-hidden`;let ee=0,ne=0;function oe(e){return e<ee?ee:e>ne?ne:e}P&&s?(ee=0,ne=Math.max(0,G-Z)):(ee=Math.min(0,Z-G),ne=0);const ie=(0,r.useRef)(null),[ae,le]=(0,r.useState)();function se(){le(Date.now())}function ce(){ie.current&&clearTimeout(ie.current)}!function(e,t){const[n,o]=(0,r.useState)(),[i,a]=(0,r.useState)(0),[l,s]=(0,r.useState)(0),[c,u]=(0,r.useState)(),d=(0,r.useRef)(),p=(0,r.useRef)(),m=(0,r.useRef)(null);m.current={onTouchStart:function(e){const{screenX:t,screenY:n}=e.touches[0];o({x:t,y:n}),window.clearInterval(d.current)},onTouchMove:function(e){if(!n)return;const{screenX:r,screenY:l}=e.touches[0];o({x:r,y:l});const c=r-n.x,d=l-n.y;t(c,d);const p=Date.now();a(p),s(p-i),u({x:c,y:d})},onTouchEnd:function(){if(n&&(o(null),u(null),c)){const e=c.x/l,n=c.y/l,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;let i=e,a=n;d.current=window.setInterval(()=>{Math.abs(i)<.01&&Math.abs(a)<.01?window.clearInterval(d.current):(i*=cP,a*=cP,t(20*i,20*a))},20)}},onWheel:function(e){const{deltaX:n,deltaY:r}=e;let o=0;const i=Math.abs(n),a=Math.abs(r);i===a?o="x"===p.current?n:r:i>a?(o=n,p.current="x"):(o=r,p.current="y"),t(-o,-o)&&e.preventDefault()}},r.useEffect(()=>{function t(e){m.current.onTouchMove(e)}function n(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){m.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){m.current.onWheel(e)},{passive:!1}),()=>{document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(k,(e,t)=>{function n(e,t){e(e=>oe(e+t))}return!!Q&&(P?n(O,e):n(T,t),ce(),se(),!0)}),(0,r.useEffect)(()=>(ce(),ae&&(ie.current=setTimeout(()=>{le(0)},100)),ce),[ae]);const[ue,de]=function(e,t,n,o,i,a,l){let s,c,u,{tabs:d,tabPosition:p,rtl:m}=l;return["top","bottom"].includes(p)?(s="width",c=m?"right":"left",u=Math.abs(n)):(s="height",c="top",u=-n),(0,r.useMemo)(()=>{if(!d.length)return[0,0];const n=d.length;let r=n;for(let i=0;i<n;i+=1){const n=e.get(d[i].key)||dP;if(Math.floor(n[c]+n[s])>Math.floor(u+t)){r=i-1;break}}let o=0;for(let t=n-1;t>=0;t-=1)if((e.get(d[t].key)||dP)[c]<u){o=t+1;break}return o>r?[0,-1]:[o,r]},[e,t,o,i,a,u,p,d.map(e=>e.key).join("_"),m])}(K,Z,P?R:z,G,Y,U,{...e,tabs:C}),pe=A(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;const t=K.get(e)||{width:0,height:0,left:0,right:0,top:0};if(P){let e=R;s?t.right<R?e=t.right:t.right+t.width>R+Z&&(e=t.right+t.width-Z):t.left<-R?e=-t.left:t.left+t.width>-R+Z&&(e=-(t.left+t.width-Z)),T(0),O(oe(e))}else{let e=z;t.top<-z?e=-t.top:t.top+t.height>-z+Z&&(e=-(t.top+t.height-Z)),O(0),T(oe(e))}}),[me,fe]=(0,r.useState)(),[he,ge]=(0,r.useState)(!1),be=C.filter(e=>!e.disabled).map(e=>e.key),ve=e=>{const t=be.indexOf(me||l),n=be.length,r=be[(t+e+n)%n];fe(r)},ye=(e,t)=>{const n=be.indexOf(e),r=C.find(t=>t.key===e);fP(r?.closable,r?.closeIcon,u,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),u.onEdit("remove",{key:e,event:t}),n===be.length-1?ve(-1):ve(1))},$e=e=>{const{code:t}=e,n=s&&P,r=be[0],o=be[be.length-1];switch(t){case"ArrowLeft":P&&ve(n?1:-1);break;case"ArrowRight":P&&ve(n?-1:1);break;case"ArrowUp":e.preventDefault(),P||ve(-1);break;case"ArrowDown":e.preventDefault(),P||ve(1);break;case"Home":e.preventDefault(),fe(r);break;case"End":e.preventDefault(),fe(o);break;case"Enter":case"Space":e.preventDefault(),h(me??l,e);break;case"Backspace":case"Delete":ye(me,e)}},Ce={};P?Ce.marginInlineStart=m:Ce.marginTop=m;const xe=C.map((e,t)=>{const{key:n}=e;return r.createElement(xP,{id:i,prefixCls:$,key:n,tab:e,className:v?.item,style:0===t?y?.item:{...Ce,...y?.item},closable:e.closable,editable:u,active:n===l,focus:n===me,renderWrapper:f,removeAriaLabel:d?.removeAriaLabel,tabCount:be.length,currentPosition:t+1,onClick:e=>{h(n,e)},onKeyDown:$e,onFocus:()=>{he||fe(n),pe(n),se(),k.current&&(s||(k.current.scrollLeft=0),k.current.scrollTop=0)},onBlur:()=>{fe(void 0)},onMouseDown:e=>((e,t)=>{ge(!0),1===t.button&&ye(e,t)})(n,e),onMouseUp:()=>{ge(!1)}})}),we=()=>X(()=>{const e=new Map,t=N.current?.getBoundingClientRect();return C.forEach(n=>{let{key:r}=n;const o=N.current?.querySelector(`[data-node-key="${mP(r)}"]`);if(o){const[n,i,a,l]=((e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:o,offsetLeft:i}=e,{width:a,height:l,left:s,top:c}=e.getBoundingClientRect();return Math.abs(a-n)<1?[a,l,s-t.left,c-t.top]:[n,r,i,o]})(o,t);e.set(r,{width:n,height:i,left:a,top:l})}}),e});(0,r.useEffect)(()=>{we()},[C.map(e=>e.key).join("_")]);const Se=uP(()=>{const e=SP(x),t=SP(w),n=SP(E);H([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);const r=SP(M);F(r);const o=SP(I);_(o);const i=SP(N);L([i[0]-r[0],i[1]-r[1]]),we()}),Ee=[...C.slice(0,ue),...C.slice(de+1)],ke=K.get(l),{style:Ne}=aP({activeTabOffset:ke,horizontal:P,indicator:b,rtl:s});(0,r.useEffect)(()=>{pe()},[l,ee,ne,pP(ke),pP(K),P]),(0,r.useEffect)(()=>{Se()},[s]);const Ie=!!Ee.length,Me=`${$}-nav-wrap`;let Pe,Re,Oe,ze;return P?s?(Re=R>0,Pe=R!==ne):(Pe=R<0,Re=R!==ee):(Oe=z<0,ze=z!==ee),r.createElement(te,{onResize:Se},r.createElement("div",{ref:S(t,x),role:"tablist","aria-orientation":P?"horizontal":"vertical",className:re(`${$}-nav`,n,v?.header),style:{...y?.header,...o},onKeyDown:()=>{se()}},r.createElement(vP,{ref:w,position:"left",extra:c,prefixCls:$}),r.createElement(te,{onResize:Se},r.createElement("div",{className:re(Me,{[`${Me}-ping-left`]:Pe,[`${Me}-ping-right`]:Re,[`${Me}-ping-top`]:Oe,[`${Me}-ping-bottom`]:ze}),ref:k},r.createElement(te,{onResize:Se},r.createElement("div",{ref:N,className:`${$}-nav-list`,style:{transform:`translate(${R}px, ${z}px)`,transition:ae?"none":void 0}},xe,r.createElement(gP,{ref:M,prefixCls:$,locale:d,editable:u,style:{...0===xe.length?void 0:Ce,visibility:Ie?"hidden":null}}),r.createElement("div",{className:re(`${$}-ink-bar`,v?.indicator,{[`${$}-ink-bar-animated`]:a.inkBar}),style:{...Ne,...y?.indicator}}))))),r.createElement(CP,wP({},e,{removeAriaLabel:d?.removeAriaLabel,ref:I,prefixCls:$,tabs:Ee,className:!Ie&&J,popupStyle:y?.popup,tabMoving:!!ae})),r.createElement(vP,{ref:E,position:"right",extra:c,prefixCls:$})))}),NP=kP;const IP=e=>{let{renderTabBar:t,...n}=e;return t?t(n,NP):r.createElement(NP,n)},MP=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:i,id:a,active:l,tabKey:s,children:c}=e,u=r.Children.count(c)>0;return r.createElement("div",{id:a&&`${a}-panel-${s}`,role:"tabpanel",tabIndex:l&&u?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!l,style:i,className:re(n,l&&`${n}-active`,o),ref:t},c)});const PP=MP;function RP(){return RP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RP.apply(this,arguments)}const OP=e=>{const{id:t,activeKey:n,animated:o,tabPosition:i,destroyOnHidden:a,contentStyle:l,contentClassName:s}=e,{prefixCls:c,tabs:u}=r.useContext(iP),d=o.tabPane,p=`${c}-tabpane`;return r.createElement("div",{className:re(`${c}-content-holder`)},r.createElement("div",{className:re(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:d})},u.map(e=>{const{key:i,forceRender:c,style:u,className:m,destroyOnHidden:f,...h}=e,g=i===n;return r.createElement(da,RP({key:i,visible:g,forceRender:c,removeOnLeave:!!(a??f),leavedClassName:`${p}-hidden`},o.tabPaneMotion),(e,n)=>{let{style:o,className:a}=e;return r.createElement(PP,RP({},h,{prefixCls:p,id:t,tabKey:i,animated:d,active:g,style:{...l,...u,...o},className:re(s,m,a),ref:n}))})})))};function zP(){return zP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zP.apply(this,arguments)}let AP=0;const TP=r.forwardRef((e,t)=>{const{id:n,prefixCls:o="rc-tabs",className:i,items:a,direction:l,activeKey:s,defaultActiveKey:c,editable:u,animated:d,tabPosition:p="top",tabBarGutter:m,tabBarStyle:f,tabBarExtraContent:h,locale:g,more:b,destroyOnHidden:v,renderTabBar:y,onChange:$,onTabClick:C,onTabScroll:x,getPopupContainer:w,popupClassName:S,indicator:E,classNames:k,styles:N,...I}=e,M=r.useMemo(()=>(a||[]).filter(e=>e&&"object"===typeof e&&"key"in e),[a]),P="rtl"===l,R=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:{inkBar:!0,..."object"===typeof t?t:{}},e.tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(d),[O,z]=(0,r.useState)(!1);(0,r.useEffect)(()=>{z(oP())},[]);const[A,T]=F(c??M[0]?.key,s),[B,H]=(0,r.useState)(()=>M.findIndex(e=>e.key===A));(0,r.useEffect)(()=>{let e=M.findIndex(e=>e.key===A);-1===e&&(e=Math.max(0,Math.min(B,M.length-1)),T(M[e]?.key)),H(e)},[M.map(e=>e.key).join("_"),A,B]);const[D,L]=F(null,n);(0,r.useEffect)(()=>{n||(L(`rc-tabs-${AP}`),AP+=1)},[]);const j={id:D,activeKey:A,animated:R,tabPosition:p,rtl:P,mobile:O},W={...j,editable:u,locale:g,more:b,tabBarGutter:m,onTabClick:function(e,t){C?.(e,t);const n=e!==A;T(e),n&&$?.(e)},onTabScroll:x,extra:h,style:f,getPopupContainer:w,popupClassName:re(S,k?.popup),indicator:E,styles:N,classNames:k},_=r.useMemo(()=>({tabs:M,prefixCls:o}),[M,o]);return r.createElement(iP.Provider,{value:_},r.createElement("div",zP({ref:t,id:n,className:re(o,`${o}-${p}`,{[`${o}-mobile`]:O,[`${o}-editable`]:u,[`${o}-rtl`]:P},i)},I),r.createElement(IP,zP({},W,{renderTabBar:y})),r.createElement(OP,zP({destroyOnHidden:v},j,{contentStyle:N?.content,contentClassName:k?.content,animated:R}))))});const BP=TP,HP={motionAppear:!1,motionEnter:!0,motionLeave:!0};const DP=function(e,t){if(e)return e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane}));const n=c(t).map(e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,{tab:r,...o}=n||{};return{key:String(t),...o,label:r}}return null});return function(e){return e.filter(e=>e)}(n)},LP=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Cv(e,"slide-up"),Cv(e,"slide-down")]]},jP=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${lt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:vr(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:lt(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:lt(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${lt(e.borderRadiusLG)} 0 0 ${lt(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},FP=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...br(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${lt(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...gr,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${lt(e.paddingXXS)} ${lt(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},WP=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,motionDurationSlow:l,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${lt(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(e=>`${e} ${l}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(e=>`${e} ${l}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:lt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},_P=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${lt(e.borderRadius)} ${lt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${lt(e.borderRadius)} ${lt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${lt(e.borderRadius)} ${lt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${lt(e.borderRadius)} 0 0 ${lt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},VP=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...yr(e)},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l},[`&${c}-focus ${c}-btn:focus-visible`]:vr(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},XP=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:i(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},KP=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:{...br(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${lt(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a},...yr(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...VP(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...yr(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},qP=To("Tabs",e=>{const t=ir(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${lt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${lt(e.horizontalItemGutter)}`});return[_P(t),XP(t),WP(t),FP(t),jP(t),KP(t),LP(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,l=n||o,s=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:s,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(s-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});const GP=()=>null,YP=r.forwardRef((e,t)=>{const{type:n,className:o,rootClassName:i,size:a,onEdit:l,hideAdd:s,centered:c,addIcon:u,removeIcon:d,moreIcon:p,more:m,popupClassName:f,children:h,items:g,animated:b,style:v,indicatorSize:y,indicator:$,classNames:C,styles:x,destroyInactiveTabPane:w,destroyOnHidden:S,tabPlacement:E,tabPosition:k,...N}=e,{prefixCls:I}=N,{getPrefixCls:M,direction:P,getPopupContainer:R,className:O,style:z,classNames:A,styles:T}=xe("tabs"),{tabs:B}=r.useContext(ye),H=M("tabs",I),D=Ka(H),[L,j]=qP(H,D),F=r.useRef(null);let W;r.useImperativeHandle(t,()=>({nativeElement:F.current})),"editable-card"===n&&(W={onEdit:(e,t)=>{let{key:n,event:r}=t;l?.("add"===e?r:n,e)},removeIcon:d??B?.removeIcon??r.createElement(gi,null),addIcon:(u??B?.addIcon)||r.createElement(eP,null),showAdd:!0!==s});const _=M();const V=ou(a),X=DP(g,h),K=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:{inkBar:!0,..."object"===typeof n?n:{}},t.tabPane&&(t.tabPaneMotion={...HP,motionName:qc(e,"switch")}),t}(H,b),q={align:$?.align??B?.indicator?.align,size:$?.size??y??B?.indicator?.size??B?.indicatorSize},G=r.useMemo(()=>{const e=E??k??void 0,t="rtl"===P;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[E,k,P]),Y={...e,size:V,tabPlacement:G,items:X},[U,Q]=Ca([A,C],[T,x],{props:Y},{popup:{_default:"root"}});return r.createElement(BP,{ref:F,direction:P,getPopupContainer:R,...N,items:X,className:re({[`${H}-large`]:"large"===V,[`${H}-small`]:"small"===V,[`${H}-card`]:["card","editable-card"].includes(n),[`${H}-editable-card`]:"editable-card"===n,[`${H}-centered`]:c},O,o,i,U.root,L,j,D),classNames:{...U,popup:re(f,L,j,D,U.popup?.root)},styles:Q,style:{...Q.root,...z,...v},editable:W,more:{icon:B?.more?.icon??B?.moreIcon??p??r.createElement(Ex,null),transitionName:`${_}-slide-up`,...m},prefixCls:H,animated:K,indicator:q,destroyOnHidden:S??w,tabPosition:G})}),UP=YP;UP.TabPane=GP;const QP=UP;const ZP=e=>{let{prefixCls:t,className:n,hoverable:o=!0,...i}=e;const{getPrefixCls:a}=r.useContext(ye),l=a("card",t),s=re(`${l}-grid`,n,{[`${l}-grid-hoverable`]:o});return r.createElement("div",{...i,className:s})},JP=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${lt(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)} 0 0`,"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...gr,[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},eR=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${lt(o)} 0 0 0 ${n},\n 0 ${lt(o)} 0 0 ${n},\n ${lt(o)} ${lt(o)} 0 0 ${n},\n ${lt(o)} 0 0 0 ${n} inset,\n 0 ${lt(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},tR=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return{margin:0,padding:0,listStyle:"none",background:a,borderTop:`${lt(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)}`,"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:lt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:lt(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${lt(e.lineWidth)} ${e.lineType} ${i}`}}}},nR=e=>({margin:`${lt(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex","&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...gr},"&-description":{color:e.colorTextDescription}}),rR=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${lt(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${lt(e.padding)} ${lt(o)}`}}},oR=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},iR=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:l,motionDurationMid:s}=e;return{[t]:{...br(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:JP(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:eR(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:tR(e),[`${t}-meta`]:nR(e)},[`${t}-bordered`]:{border:`${lt(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(e=>`${e} ${s}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${lt(e.borderRadiusLG)} ${lt(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:rR(e),[`${t}-loading`]:oR(e),[`${t}-rtl`]:{direction:"rtl"}}},aR=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${lt(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},lR=To("Card",e=>{const t=ir(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[iR(t),aR(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),sR=e=>{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return r.createElement("ul",{className:t,style:o},n.map((e,t)=>{const o=`action-${t}`;return r.createElement("li",{style:{width:100/n.length+"%"},key:o},r.createElement("span",null,e))}))},cR=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:a,extra:l,headStyle:s={},bodyStyle:u={},title:d,loading:p,bordered:m,variant:f,size:h,type:g,cover:b,actions:v,tabList:y,children:$,activeTabKey:C,defaultActiveTabKey:x,tabBarExtraContent:w,hoverable:S,tabProps:E={},classNames:k,styles:N,...I}=e,{getPrefixCls:M,direction:P,className:R,style:O,classNames:z,styles:A}=xe("card"),[T]=uv("card",f,m);const B=ou(h),H={...e,size:B,variant:T},[D,L]=Ca([z,k],[A,N],{props:H});const j=r.useMemo(()=>c($).some(e=>r.isValidElement(e)&&e.type===ZP),[$]),F=M("card",n),[W,_]=lR(F),V=r.createElement(zf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},$),X=void 0!==C,K={...E,[X?"activeKey":"defaultActiveKey"]:X?C:x,tabBarExtraContent:w};let q;const G="small"!==B?"large":B,U=y?r.createElement(QP,{size:G,...K,className:`${F}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:y.map(e=>{let{tab:t,...n}=e;return{label:t,...n}})}):null;if(d||l||U){const e=re(`${F}-head`,D.header),t=re(`${F}-head-title`,D.title),n=re(`${F}-extra`,D.extra),o={...s,...L.header};q=r.createElement("div",{className:e,style:o},r.createElement("div",{className:`${F}-head-wrapper`},d&&r.createElement("div",{className:t,style:L.title},d),l&&r.createElement("div",{className:n,style:L.extra},l)),U)}const Q=re(`${F}-cover`,D.cover),Z=b?r.createElement("div",{className:Q,style:L.cover},b):null,J=re(`${F}-body`,D.body),ee={...u,...L.body},te=r.createElement("div",{className:J,style:ee},p?V:$),ne=re(`${F}-actions`,D.actions),oe=v?.length?r.createElement(sR,{actionClasses:ne,actionStyle:L.actions,actions:v}):null,ie=Y(I,["onTabChange"]),ae=re(F,R,{[`${F}-loading`]:p,[`${F}-bordered`]:"borderless"!==T,[`${F}-hoverable`]:S,[`${F}-contain-grid`]:j,[`${F}-contain-tabs`]:y?.length,[`${F}-small`]:"small"===B,[`${F}-type-${g}`]:!!g,[`${F}-rtl`]:"rtl"===P},o,i,W,_,D.root),le={...L.root,...O,...a};return r.createElement("div",{ref:t,...ie,className:ae,style:le},q,Z,te,oe)});const uR=e=>{const{prefixCls:t,className:n,avatar:o,title:i,description:a,style:l,classNames:s,styles:c,...u}=e,{getPrefixCls:d,className:p,style:m,classNames:f,styles:h}=xe("cardMeta"),g=`${d("card",t)}-meta`,[b,v]=Ca([f,s],[h,c],{props:e}),y=re(g,n,p,b.root),$={...m,...v.root,...l},C=re(`${g}-avatar`,b.avatar),x=re(`${g}-title`,b.title),w=re(`${g}-description`,b.description),S=re(`${g}-section`,b.section),E=o?r.createElement("div",{className:C,style:v.avatar},o):null,k=i?r.createElement("div",{className:x,style:v.title},i):null,N=a?r.createElement("div",{className:w,style:v.description},a):null,I=k||N?r.createElement("div",{className:S,style:v.section},k,N):null;return r.createElement("div",{...u,className:y,style:$},E,I)},dR=cR;dR.Grid=ZP,dR.Meta=uR;const pR=dR;function mR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const fR={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function hR(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function m(){r&&clearTimeout(r)}function f(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,c=Date.now()-p;function f(){p=Date.now(),t.apply(l,o)}function h(){r=void 0}d||(s||!u||r||f(),m(),void 0===u&&c>e?s?(p=Date.now(),a||(r=setTimeout(u?h:f,e))):f():!0!==a&&(r=setTimeout(u?h:f,void 0===u?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;m(),d=!n},f}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const gR={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};function bR(e,t,n){return Math.max(t,Math.min(e,n))}var vR=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},yR=function(e){for(var t=[],n=$R(e),r=CR(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},$R=function(e){return e.currentSlide-xR(e)},CR=function(e){return e.currentSlide+wR(e)},xR=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},wR=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},SR=function(e){return e&&e.offsetWidth||0},ER=function(e){return e&&e.offsetHeight||0},kR=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},NR=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},IR=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},MR=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o}(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t},PR=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every(function(r){if(e.vertical){if(r.offsetTop+ER(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+SR(r)/2>-1*e.swipeLeft)return n=r,!1;return!0}),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},RR=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",e)},OR=function(e){var t,n;(RR(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=HR(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=Ne(Ne({},r),{},{WebkitTransform:o,transform:i,msTransform:a})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},zR=function(e){RR(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=OR(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},AR=function(e){if(e.unslick)return 0;RR(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,l=e.slideCount,s=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,p=e.variableWidth,m=e.slideHeight,f=e.fade,h=e.vertical;if(f||1===e.slideCount)return 0;var g=0;if(i?(g=-TR(e),l%c!==0&&r+c>l&&(g=-(r>l?s-(r-l):l%c)),a&&(g+=parseInt(s/2))):(l%c!==0&&r+c>l&&(g=s-l%c),a&&(g=parseInt(s/2))),t=h?r*m*-1+g*m:r*u*-1+g*u,!0===p){var b,v=o&&o.node;if(b=r+TR(e),t=(n=v&&v.childNodes[b])?-1*n.offsetLeft:0,!0===a){b=i?r+TR(e):r,n=v&&v.children[b],t=0;for(var y=0;y<b;y++)t-=v&&v.children[y]&&v.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},TR=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},BR=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},HR=function(e){return 1===e.slideCount?1:TR(e)+e.slideCount+BR(e)},DR=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+LR(e)?"left":"right":e.targetSlide<e.currentSlide-jR(e)?"right":"left"},LR=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2===0&&(i+=1),i}return r?0:t-1},jR=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!==0||(i+=1),i}return r?t-1:0},FR=function(){return!("undefined"===typeof window||!window.document||!window.document.createElement)},WR=Object.keys(gR);var _R=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},VR=function(e,t){return e.key+"-"+t},XR=function(e){var t,n=[],o=[],i=[],a=r.Children.count(e.children),l=$R(e),s=CR(e);return r.Children.forEach(e.children,function(c,u){var d,p={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};d=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?c:r.createElement("div",null);var m=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(Ne(Ne({},e),{},{index:u})),f=d.props.className||"",h=_R(Ne(Ne({},e),{},{index:u}));if(n.push(r.cloneElement(d,{key:"original"+VR(d,u),"data-index":u,className:re(h,f),tabIndex:"-1","aria-hidden":!h["slick-active"],style:Ne(Ne({outline:"none"},d.props.style||{}),m),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&a>1&&!1===e.fade&&!e.unslick){var g=a-u;g<=TR(e)&&((t=-g)>=l&&(d=c),h=_R(Ne(Ne({},e),{},{index:t})),o.push(r.cloneElement(d,{key:"precloned"+VR(d,t),"data-index":t,tabIndex:"-1",className:re(h,f),"aria-hidden":!h["slick-active"],style:Ne(Ne({},d.props.style||{}),m),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),u<BR(e)&&((t=a+u)<s&&(d=c),h=_R(Ne(Ne({},e),{},{index:t})),i.push(r.cloneElement(d,{key:"postcloned"+VR(d,t),"data-index":t,tabIndex:"-1",className:re(h,f),"aria-hidden":!h["slick-active"],style:Ne(Ne({},d.props.style||{}),m),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})))}}),e.rtl?o.concat(n,i).reverse():o.concat(n,i)},KR=function(e){function t(){var e;(0,Dn.A)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=function(e,t,n){return t=(0,Wn.A)(t),(0,Vn.A)(e,_n()?Reflect.construct(t,n||[],(0,Wn.A)(e).constructor):t.apply(e,n))}(this,t,[].concat(r)),(0,Ee.A)(e,"node",null),(0,Ee.A)(e,"handleRef",function(t){e.node=t}),e}return(0,Fn.A)(t,e),(0,Ln.A)(t,[{key:"render",value:function(){var e=XR(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return r.createElement("div",ed({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])}(r.PureComponent);var qR=function(e){function t(){return(0,Dn.A)(this,t),function(e,t,n){return t=(0,Wn.A)(t),(0,Vn.A)(e,_n()?Reflect.construct(t,n||[],(0,Wn.A)(e).constructor):t.apply(e,n))}(this,t,arguments)}return(0,Fn.A)(t,e),(0,Ln.A)(t,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,o=t.onMouseOver,i=t.onMouseLeave,a=t.infinite,l=t.slidesToScroll,s=t.slidesToShow,c=t.slideCount,u=t.currentSlide,d=(e={slideCount:c,slidesToScroll:l,slidesToShow:s,infinite:a}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,p={onMouseEnter:n,onMouseOver:o,onMouseLeave:i},m=[],f=0;f<d;f++){var h=(f+1)*l-1,g=a?h:bR(h,0,c-1),b=g-(l-1),v=a?b:bR(b,0,c-1),y=re({"slick-active":a?u>=v&&u<=g:u===v}),$={message:"dots",index:f,slidesToScroll:l,currentSlide:u},C=this.clickHandler.bind(this,$);m=m.concat(r.createElement("li",{key:f,className:y},r.cloneElement(this.props.customPaging(f),{onClick:C})))}return r.cloneElement(this.props.appendDots(m),Ne({className:this.props.dotsClass},p))}}])}(r.PureComponent);function GR(e,t,n){return t=(0,Wn.A)(t),(0,Vn.A)(e,_n()?Reflect.construct(t,n||[],(0,Wn.A)(e).constructor):t.apply(e,n))}var YR=function(e){function t(){return(0,Dn.A)(this,t),GR(this,t,arguments)}return(0,Fn.A)(t,e),(0,Ln.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:re(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?r.cloneElement(this.props.prevArrow,Ne(Ne({},n),o)):r.createElement("button",ed({key:"0",type:"button"},n)," ","Previous")}}])}(r.PureComponent),UR=function(e){function t(){return(0,Dn.A)(this,t),GR(this,t,arguments)}return(0,Fn.A)(t,e),(0,Ln.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});NR(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:re(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?r.cloneElement(this.props.nextArrow,Ne(Ne({},n),o)):r.createElement("button",ed({key:"1",type:"button"},n)," ","Next")}}])}(r.PureComponent),QR=["animating"];var ZR=function(e){function t(e){var n;(0,Dn.A)(this,t),n=function(e,t,n){return t=(0,Wn.A)(t),(0,Vn.A)(e,_n()?Reflect.construct(t,n||[],(0,Wn.A)(e).constructor):t.apply(e,n))}(this,t,[e]),(0,Ee.A)(n,"listRefHandler",function(e){return n.list=e}),(0,Ee.A)(n,"trackRefHandler",function(e){return n.track=e}),(0,Ee.A)(n,"adaptHeight",function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=ER(e)+"px"}}),(0,Ee.A)(n,"componentDidMount",function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=yR(Ne(Ne({},n.props),n.state));e.length>0&&(n.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=Ne({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")}),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),"undefined"!==typeof ResizeObserver&&(n.ro=new ResizeObserver(function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout(function(){return n.onWindowResized()},n.props.speed))):n.onWindowResized()}),n.ro.observe(n.list)),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)}),(0,Ee.A)(n,"componentWillUnmount",function(){var e;n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach(function(e){return clearTimeout(e)}),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),null===(e=n.ro)||void 0===e||e.disconnect()}),(0,Ee.A)(n,"componentDidUpdate",function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=yR(Ne(Ne({},n.props),n.state));t.length>0&&(n.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var o=Ne(Ne({listRef:n.list,trackRef:n.track},n.props),n.state),i=n.didPropsChange(e);i&&n.updateState(o,i,function(){n.state.currentSlide>=r.Children.count(n.props.children)&&n.changeSlide({message:"index",index:r.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))})}),(0,Ee.A)(n,"onWindowResized",function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=hR(50,function(){return n.resizeWindow(e)}),n.debouncedResize()}),(0,Ee.A)(n,"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(n.track&&n.track.node)){var t=Ne(Ne({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(t,e,function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")}),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}}),(0,Ee.A)(n,"updateState",function(e,t,o){var i=function(e){var t,n=r.Children.count(e.children),o=e.listRef,i=Math.ceil(SR(o)),a=e.trackRef&&e.trackRef.node,l=Math.ceil(SR(a));if(e.vertical)t=i;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"===typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=i/100),t=Math.ceil((i-s)/e.slidesToShow)}var c=o&&ER(o.querySelector('[data-index="0"]')),u=c*e.slidesToShow,d=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(d=n-1-e.initialSlide);var p=e.lazyLoadedList||[],m=yR(Ne(Ne({},e),{},{currentSlide:d,lazyLoadedList:p})),f={slideCount:n,slideWidth:t,listWidth:i,trackWidth:l,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:p=p.concat(m)};return null===e.autoplaying&&e.autoplay&&(f.autoplaying="playing"),f}(e);e=Ne(Ne(Ne({},e),i),{},{slideIndex:i.currentSlide});var a=AR(e);e=Ne(Ne({},e),{},{left:a});var l=OR(e);(t||r.Children.count(n.props.children)!==r.Children.count(e.children))&&(i.trackStyle=l),n.setState(i,o)}),(0,Ee.A)(n,"ssrInit",function(){if(n.props.variableWidth){var e=0,t=0,o=[],i=TR(Ne(Ne(Ne({},n.props),n.state),{},{slideCount:n.props.children.length})),a=BR(Ne(Ne(Ne({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach(function(t){o.push(t.props.style.width),e+=t.props.style.width});for(var l=0;l<i;l++)t+=o[o.length-1-l],e+=o[o.length-1-l];for(var s=0;s<a;s++)e+=o[s];for(var c=0;c<n.state.currentSlide;c++)t+=o[c];var u={width:e+"px",left:-t+"px"};if(n.props.centerMode){var d="".concat(o[n.state.currentSlide],"px");u.left="calc(".concat(u.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:u}}var p=r.Children.count(n.props.children),m=Ne(Ne(Ne({},n.props),n.state),{},{slideCount:p}),f=TR(m)+BR(m)+p,h=100/n.props.slidesToShow*f,g=100/f,b=-g*(TR(m)+n.state.currentSlide)*h/100;return n.props.centerMode&&(b+=(100-g*h/100)/2),{slideWidth:g+"%",trackStyle:{width:h+"%",left:b+"%"}}}),(0,Ee.A)(n,"checkImagesLoad",function(){var e=n.list&&n.list.querySelectorAll&&n.list.querySelectorAll(".slick-slide img")||[],t=e.length,r=0;Array.prototype.forEach.call(e,function(e){var o=function(){return++r&&r>=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=o,e.onerror=function(){o(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))})}),(0,Ee.A)(n,"progressiveLazyLoad",function(){for(var e=[],t=Ne(Ne({},n.props),n.state),r=n.state.currentSlide;r<n.state.slideCount+BR(t);r++)if(n.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var o=n.state.currentSlide-1;o>=-TR(t);o--)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(n.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)}),(0,Ee.A)(n,"slideHandler",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.props,o=r.asNavFor,i=r.beforeChange,a=r.onLazyLoad,l=r.speed,s=r.afterChange,c=n.state.currentSlide,u=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,a=e.slideCount,l=e.lazyLoad,s=e.currentSlide,c=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,p=e.useCSS,m=e.lazyLoadedList;if(t&&n)return{};var f,h,g,b=i,v={},y={},$=o?i:bR(i,0,a-1);if(r){if(!o&&(i<0||i>=a))return{};i<0?b=i+a:i>=a&&(b=i-a),l&&m.indexOf(b)<0&&(m=m.concat(b)),v={animating:!0,currentSlide:b,lazyLoadedList:m,targetSlide:b},y={animating:!1,targetSlide:b}}else f=b,b<0?(f=b+a,o?a%u!==0&&(f=a-a%u):f=0):!NR(e)&&b>s?b=f=s:c&&b>=a?(b=o?a:a-1,f=o?0:a-1):b>=a&&(f=b-a,o?a%u!==0&&(f=0):f=a-d),!o&&b+d>=a&&(f=a-d),h=AR(Ne(Ne({},e),{},{slideIndex:b})),g=AR(Ne(Ne({},e),{},{slideIndex:f})),o||(h===g&&(b=f),h=g),l&&(m=m.concat(yR(Ne(Ne({},e),{},{currentSlide:b})))),p?(v={animating:!0,currentSlide:f,trackStyle:zR(Ne(Ne({},e),{},{left:h})),lazyLoadedList:m,targetSlide:$},y={animating:!1,currentSlide:f,trackStyle:OR(Ne(Ne({},e),{},{left:g})),swipeLeft:null,targetSlide:$}):v={currentSlide:f,trackStyle:OR(Ne(Ne({},e),{},{left:g})),lazyLoadedList:m,targetSlide:$};return{state:v,nextState:y}}(Ne(Ne(Ne({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),d=u.state,p=u.nextState;if(d){i&&i(c,d.currentSlide);var m=d.lazyLoadedList.filter(function(e){return n.state.lazyLoadedList.indexOf(e)<0});a&&m.length>0&&a(m),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),s&&s(c),delete n.animationEndCallback),n.setState(d,function(){o&&n.asNavForIndex!==e&&(n.asNavForIndex=e,o.innerSlider.slideHandler(e)),p&&(n.animationEndCallback=setTimeout(function(){var e=p.animating,t=mR(p,QR);n.setState(t,function(){n.callbackTimers.push(setTimeout(function(){return n.setState({animating:e})},10)),s&&s(d.currentSlide),delete n.animationEndCallback})},l))})}}),(0,Ee.A)(n,"changeSlide",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=function(e,t){var n,r,o,i,a=e.slidesToScroll,l=e.slidesToShow,s=e.slideCount,c=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,p=e.infinite;if(n=s%a!==0?0:(s-c)%a,"previous"===t.message)i=c-(o=0===n?a:l-n),d&&!p&&(i=-1===(r=c-o)?s-1:r),p||(i=u-a);else if("next"===t.message)i=c+(o=0===n?a:n),d&&!p&&(i=(c+a)%s+n),p||(i=u+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,p){var m=DR(Ne(Ne({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===m?i-=s:i<t.currentSlide&&"right"===m&&(i+=s)}}else"index"===t.message&&(i=Number(t.index));return i}(Ne(Ne({},n.props),n.state),e);if((0===r||r)&&(!0===t?n.slideHandler(r,t):n.slideHandler(r),n.props.autoplay&&n.autoPlay("update"),n.props.focusOnSelect)){var o=n.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}}),(0,Ee.A)(n,"clickHandler",function(e){!1===n.clickable&&(e.stopPropagation(),e.preventDefault()),n.clickable=!0}),(0,Ee.A)(n,"keyHandler",function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,n.props.accessibility,n.props.rtl);""!==t&&n.changeSlide({message:t})}),(0,Ee.A)(n,"selectHandler",function(e){n.changeSlide(e)}),(0,Ee.A)(n,"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),(0,Ee.A)(n,"enableBodyScroll",function(){window.ontouchmove=null}),(0,Ee.A)(n,"swipeStart",function(e){n.props.verticalSwiping&&n.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&vR(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,n.props.swipe,n.props.draggable);""!==t&&n.setState(t)}),(0,Ee.A)(n,"swipeMove",function(e){var t=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,i=t.swipeToSlide,a=t.verticalSwiping,l=t.rtl,s=t.currentSlide,c=t.edgeFriction,u=t.edgeDragged,d=t.onEdge,p=t.swiped,m=t.swiping,f=t.slideCount,h=t.slidesToScroll,g=t.infinite,b=t.touchObject,v=t.swipeEvent,y=t.listHeight,$=t.listWidth;if(!n){if(r)return vR(e);o&&i&&a&&vR(e);var C,x={},w=AR(t);b.curX=e.touches?e.touches[0].pageX:e.clientX,b.curY=e.touches?e.touches[0].pageY:e.clientY,b.swipeLength=Math.round(Math.sqrt(Math.pow(b.curX-b.startX,2)));var S=Math.round(Math.sqrt(Math.pow(b.curY-b.startY,2)));if(!a&&!m&&S>10)return{scrolling:!0};a&&(b.swipeLength=S);var E=(l?-1:1)*(b.curX>b.startX?1:-1);a&&(E=b.curY>b.startY?1:-1);var k=Math.ceil(f/h),N=kR(t.touchObject,a),I=b.swipeLength;return g||(0===s&&("right"===N||"down"===N)||s+1>=k&&("left"===N||"up"===N)||!NR(t)&&("left"===N||"up"===N))&&(I=b.swipeLength*c,!1===u&&d&&(d(N),x.edgeDragged=!0)),!p&&v&&(v(N),x.swiped=!0),C=o?w+I*(y/$)*E:l?w-I*E:w+I*E,a&&(C=w+I*E),x=Ne(Ne({},x),{},{touchObject:b,swipeLeft:C,trackStyle:OR(Ne(Ne({},t),{},{left:C}))}),Math.abs(b.curX-b.startX)<.8*Math.abs(b.curY-b.startY)||b.swipeLength>10&&(x.swiping=!0,vR(e)),x}}(e,Ne(Ne(Ne({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))}),(0,Ee.A)(n,"swipeEnd",function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,a=t.touchThreshold,l=t.verticalSwiping,s=t.listHeight,c=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,p=t.targetSlide,m=t.currentSlide,f=t.infinite;if(!n)return r&&vR(e),{};var h=l?s/a:i/a,g=kR(o,l),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return b;if(!o.swipeLength)return b;if(o.swipeLength>h){var v,y;vR(e),d&&d(g);var $=f?m:p;switch(g){case"left":case"up":y=$+PR(t),v=c?MR(t,y):y,b.currentDirection=0;break;case"right":case"down":y=$-PR(t),v=c?MR(t,y):y,b.currentDirection=1;break;default:v=$}b.triggerSlideHandler=v}else{var C=AR(t);b.trackStyle=zR(Ne(Ne({},t),{},{left:C}))}return b}(e,Ne(Ne(Ne({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var r=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==r&&(n.slideHandler(r),n.props.verticalSwiping&&n.enableBodyScroll())}}),(0,Ee.A)(n,"touchEnd",function(e){n.swipeEnd(e),n.clickable=!0}),(0,Ee.A)(n,"slickPrev",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"previous"})},0))}),(0,Ee.A)(n,"slickNext",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"next"})},0))}),(0,Ee.A)(n,"slickGoTo",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)},0))}),(0,Ee.A)(n,"play",function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!NR(Ne(Ne({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)}),(0,Ee.A)(n,"autoPlay",function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})}),(0,Ee.A)(n,"pause",function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})}),(0,Ee.A)(n,"onDotsOver",function(){return n.props.autoplay&&n.pause("hovered")}),(0,Ee.A)(n,"onDotsLeave",function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")}),(0,Ee.A)(n,"onTrackOver",function(){return n.props.autoplay&&n.pause("hovered")}),(0,Ee.A)(n,"onTrackLeave",function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")}),(0,Ee.A)(n,"onSlideFocus",function(){return n.props.autoplay&&n.pause("focused")}),(0,Ee.A)(n,"onSlideBlur",function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")}),(0,Ee.A)(n,"render",function(){var e,t,o,i=re("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),a=Ne(Ne({},n.props),n.state),l=IR(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),s=n.props.pauseOnHover;if(l=Ne(Ne({},l),{},{onMouseEnter:s?n.onTrackOver:null,onMouseLeave:s?n.onTrackLeave:null,onMouseOver:s?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var c=IR(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),u=n.props.pauseOnDotsHover;c=Ne(Ne({},c),{},{clickHandler:n.changeSlide,onMouseEnter:u?n.onDotsLeave:null,onMouseOver:u?n.onDotsOver:null,onMouseLeave:u?n.onDotsLeave:null}),e=r.createElement(qR,c)}var d=IR(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);d.clickHandler=n.changeSlide,n.props.arrows&&(t=r.createElement(YR,d),o=r.createElement(UR,d));var p=null;n.props.vertical&&(p={height:n.state.listHeight});var m=null;!1===n.props.vertical?!0===n.props.centerMode&&(m={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(m={padding:n.props.centerPadding+" 0px"});var f=Ne(Ne({},p),m),h=n.props.touchMove,g={className:"slick-list",style:f,onClick:n.clickHandler,onMouseDown:h?n.swipeStart:null,onMouseMove:n.state.dragging&&h?n.swipeMove:null,onMouseUp:h?n.swipeEnd:null,onMouseLeave:n.state.dragging&&h?n.swipeEnd:null,onTouchStart:h?n.swipeStart:null,onTouchMove:n.state.dragging&&h?n.swipeMove:null,onTouchEnd:h?n.touchEnd:null,onTouchCancel:n.state.dragging&&h?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},b={className:i,dir:"ltr",style:n.props.style};return n.props.unslick&&(g={className:"slick-list"},b={className:i,style:n.props.style}),r.createElement("div",b,n.props.unslick?"":t,r.createElement("div",ed({ref:n.listRefHandler},g),r.createElement(KR,ed({ref:n.trackRefHandler},l),n.props.children)),n.props.unslick?"":o,n.props.unslick?"":e)}),n.list=null,n.track=null,n.state=Ne(Ne({},fR),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:r.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var o=n.ssrInit();return n.state=Ne(Ne({},n.state),o),n}return(0,Fn.A)(t,e),(0,Ln.A)(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n<o.length;n++){var i=o[n];if(!e.hasOwnProperty(i)){t=!0;break}if("object"!==(0,we.A)(e[i])&&"function"!==typeof e[i]&&!isNaN(e[i])&&e[i]!==this.props[i]){t=!0;break}}return t||r.Children.count(this.props.children)!==r.Children.count(e.children)}}])}(r.Component),JR=n(41270),eO=n.n(JR);var tO=function(e){function t(e){var n;return(0,Dn.A)(this,t),n=function(e,t,n){return t=(0,Wn.A)(t),(0,Vn.A)(e,_n()?Reflect.construct(t,n||[],(0,Wn.A)(e).constructor):t.apply(e,n))}(this,t,[e]),(0,Ee.A)(n,"innerSliderRefHandler",function(e){return n.innerSlider=e}),(0,Ee.A)(n,"slickPrev",function(){return n.innerSlider.slickPrev()}),(0,Ee.A)(n,"slickNext",function(){return n.innerSlider.slickNext()}),(0,Ee.A)(n,"slickGoTo",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)}),(0,Ee.A)(n,"slickPause",function(){return n.innerSlider.pause("paused")}),(0,Ee.A)(n,"slickPlay",function(){return n.innerSlider.autoPlay("play")}),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return(0,Fn.A)(t,e),(0,Ln.A)(t,[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var o;o=0===r?eO()({minWidth:0,maxWidth:n}):eO()({minWidth:t[r-1]+1,maxWidth:n}),FR()&&e.media(o,function(){e.setState({breakpoint:n})})});var n=eO()({minWidth:t.slice(-1)[0]});FR()&&this.media(n,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}))[0].settings?"unslick":Ne(Ne(Ne({},gR),this.props),t[0].settings):Ne(Ne({},gR),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var o=r.Children.toArray(this.props.children);o=o.filter(function(e){return"string"===typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],a=null,l=0;l<o.length;l+=e.rows*e.slidesPerRow){for(var s=[],c=l;c<l+e.rows*e.slidesPerRow;c+=e.slidesPerRow){for(var u=[],d=c;d<c+e.slidesPerRow&&(e.variableWidth&&o[d].props.style&&(a=o[d].props.style.width),!(d>=o.length));d+=1)u.push(r.cloneElement(o[d],{key:100*l+10*c+d,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));s.push(r.createElement("div",{key:10*l+c},u))}e.variableWidth?i.push(r.createElement("div",{key:l,style:{width:a}},s)):i.push(r.createElement("div",{key:l},s))}if("unslick"===e){var p="regular slider "+(this.props.className||"");return r.createElement("div",{className:p},o)}return i.length<=e.slidesToShow&&(e.unslick=!0),r.createElement(ZR,ed({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return WR.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}(e)),i)}}])}(r.Component);const nO=tO,rO="--dot-duration",oO=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{...br(e),".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}}}},iO=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:r,arrowOffset:o}=e,i=e.calc(r).div(Math.SQRT2).equal();return{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:r,height:r,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${n}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(r).sub(i).div(2).equal(),insetInlineStart:e.calc(r).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:o,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:o,"&::after":{transform:"rotate(135deg)"}}}}},aO=e=>{const{componentCls:t,dotOffset:n,dotWidth:r,dotHeight:o,dotGap:i,colorBgContainer:a,motionDurationSlow:l}=e,s=new Bn(`${e.prefixCls}-dot-animation`,{from:{width:0},to:{width:e.dotActiveWidth}});return{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:r,height:o,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${l}`,borderRadius:o,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:0,height:o,content:'""',background:"transparent",borderRadius:o,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden"},button:{position:"relative",display:"block",width:"100%",height:o,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:o,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${l}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{background:a,animationName:s,animationDuration:`var(${rO})`,animationTimingFunction:"ease-out",animationFillMode:"forwards"}}}}}}},lO=e=>{const{componentCls:t,dotOffset:n,arrowOffset:r,marginXXS:o}=e,i=new Bn(`${e.prefixCls}-dot-vertical-animation`,{from:{height:0},to:{height:e.dotActiveWidth}}),a={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:r,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:r,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-start":{insetInlineEnd:"auto",insetInlineStart:n},"&-end":{insetInlineEnd:n,insetInlineStart:"auto"},li:{...a,margin:`${lt(o)} 0`,verticalAlign:"baseline",button:a,"&::after":{...a,height:0},"&.slick-active":{...a,height:e.dotActiveWidth,button:{...a,height:e.dotActiveWidth},"&::after":{...a,animationName:i,animationDuration:`var(${rO})`,animationTimingFunction:"ease-out",animationFillMode:"forwards"}}}}}}},sO=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl"}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},cO=To("Carousel",e=>[oO(e),iO(e),aO(e),lO(e),sO(e)],e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),uO="slick-dots",dO=e=>{let{currentSlide:t,slideCount:n,...o}=e;return r.createElement("button",{type:"button",...o})},pO=r.forwardRef((e,t)=>{const{dots:n=!0,arrows:o=!1,prevArrow:i,nextArrow:a,draggable:l=!1,waitForAnimate:s=!1,dotPosition:u,dotPlacement:d,vertical:p,rootClassName:m,className:f,style:h,id:g,autoplay:b=!1,autoplaySpeed:v=3e3,rtl:y,...$}=e,C=r.useMemo(()=>{const e=d??u??"bottom";switch(e){case"left":return"start";case"right":return"end";default:return e}},[u,d]),x=p??("start"===C||"end"===C),{getPrefixCls:w,direction:S,className:E,style:k}=xe("carousel"),N=r.useRef(null),I=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];N.current.slickGoTo(e,t)};r.useImperativeHandle(t,()=>({goTo:I,autoPlay:N.current.innerSlider.autoPlay,innerSlider:N.current.innerSlider,prev:N.current.slickPrev,next:N.current.slickNext}),[N.current]);const{children:M,initialSlide:P=0}=e,R=c(M).length,O=(y??"rtl"===S)&&!p;r.useEffect(()=>{if(R>0){I(O?R-P-1:P,!1)}},[R,P,O]);const z={vertical:x,className:re(f,E),style:{...k,...h},autoplay:!!b,...$};"fade"===z.effect&&(z.fade=!0);const A=w("carousel",z.prefixCls),T=!!n,B=re(uO,`${uO}-${C}`,"boolean"!==typeof n&&n?.className),[H,D]=cO(A),L=re(A,{[`${A}-rtl`]:O,[`${A}-vertical`]:z.vertical},H,D,m),j=b&&"object"===typeof b&&b.dotDuration?{[rO]:`${v}ms`}:{};return r.createElement("div",{className:L,id:g,style:j},r.createElement(nO,{ref:N,...z,dots:T,dotsClass:B,arrows:o,prevArrow:i??r.createElement(dO,{"aria-label":O?"next":"prev"}),nextArrow:a??r.createElement(dO,{"aria-label":O?"prev":"next"}),draggable:l,verticalSwiping:x,autoplaySpeed:v,waitForAnimate:s,rtl:O}))});const mO=pO,fO=r.createContext({}),hO="__rc_cascader_search_mark__",gO=(e,t,n)=>{let{label:r=""}=n;return t.some(t=>String(t[r]).toLowerCase().includes(e.toLowerCase()))},bO=(e,t,n,r)=>t.map(e=>e[r.label]).join(" / "),vO=(e,t,n,o,i,a)=>{const{filter:l=gO,render:s=bO,limit:c=50,sort:u}=i;return r.useMemo(()=>{const r=[];if(!e)return[];return function t(i,d){let p=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.forEach(i=>{if(!u&&!1!==c&&c>0&&r.length>=c)return;const m=[...d,i],f=i[n.children],h=p||i.disabled;f&&0!==f.length&&!a||l(e,m,{label:n.label})&&r.push({...i,disabled:h,[n.label]:s(e,m,o,n),[hO]:m,[n.children]:void 0}),f&&t(i[n.children],m,h)})}(t,[]),u&&r.sort((t,r)=>u(t[hO],r[hO],e,n)),!1!==c&&c>0?r.slice(0,c):r},[e,t,n,o,s,a,l,u,c])},yO="__RC_CASCADER_SPLIT__",$O="SHOW_PARENT",CO="SHOW_CHILD";function xO(e){return e.join(yO)}function wO(e){return e.map(xO)}function SO(e){const{label:t,value:n,children:r}=e||{},o=n||"value";return{label:t||"label",value:o,key:o,children:r||"children"}}function EO(e,t){return e.isLeaf??!e[t.children]?.length}function kO(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}function NO(e,t){return e.map(e=>e[hO]?.map(e=>e[t.value]))}function IO(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map(e=>Array.isArray(e)?e:[e]):[]}function MO(e,t,n){const r=new Set(e),o=t();return e.filter(e=>{const t=o[e],i=t?t.parent:null,a=t?t.children:null;return!(!t||!t.node.disabled)||(n===CO?!(a&&a.some(e=>e.key&&r.has(e.key))):!(i&&!i.node.disabled&&r.has(i.key)))})}function PO(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t;const i=[];for(let a=0;a<e.length;a+=1){const t=e[a],l=o?.findIndex(e=>{const o=e[n.value];return r?String(o)===String(t):o===t}),s=-1!==l?o?.[l]:null;i.push({value:s?.[n.value]??t,index:l,option:s}),o=s?.[n.children]}return i}function RO(e,t){return r.useCallback(n=>{const r=[],o=[];return n.forEach(n=>{PO(n,e,t).every(e=>e.option)?o.push(n):r.push(n)}),[o,r]},[e,t])}function OO(e,t){return e[t]}function zO(e,t){return`${e}-${t}`}function AO(e,t){return null!==e&&void 0!==e?e:t}function TO(e){const{title:t,_title:n,key:r,children:o}=e||{},i=t||"title";return{title:i,_title:n||[i],key:r||"key",children:o||"children"}}function BO(e){return function e(t){return c(t).map(t=>{if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return g(!t,"Tree/TreeNode can only accept TreeNode as children."),null;const{key:n}=t,{children:r,...o}=t.props,i={key:n,...o},a=e(r);return a.length&&(i.children=a),i}).filter(e=>e)}(e)}function HO(e,t,n){const{_title:r,key:o,children:i}=TO(n),a=new Set(!0===t?[]:t),l=[];return function e(n){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((c,u)=>{const d=zO(s?s.pos:"0",u),p=AO(c[o],d);let m;for(let e=0;e<r.length;e+=1){const t=r[e];if(void 0!==c[t]){m=c[t];break}}const f=Object.assign(Y(c,[...r,o,i]),{title:m,key:p,parent:s,pos:d,children:null,data:c,isStart:[...s?s.isStart:[],0===u],isEnd:[...s?s.isEnd:[],u===n.length-1]});return l.push(f),!0===t||a.has(p)?f.children=e(c[i]||[],f):f.children=[],f})}(e),l}function DO(e){let{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:o,childrenPropName:i,fieldNames:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=o||(arguments.length>2?arguments[2]:void 0),s={},c={};let u={posEntities:s,keyEntities:c};return t&&(u=t(u)||u),function(e,t,n){let r={};r="object"===typeof n?n:{externalGetKey:n},r=r||{};const{childrenPropName:o,externalGetKey:i,fieldNames:a}=r,{key:l,children:s}=TO(a),c=o||s;let u;i?"string"===typeof i?u=e=>e[i]:"function"===typeof i&&(u=e=>i(e)):u=(e,t)=>AO(e[l],t),function n(r,o,i,a){const l=r?r[c]:e,s=r?zO(i.pos,o):"0",d=r?[...a,r]:[];if(r){const e=u(r,s),n={node:r,index:o,pos:s,key:e,parentPos:i.node?i.pos:null,level:i.level+1,nodes:d};t(n)}l&&l.forEach((e,t)=>{n(e,t,{node:r,pos:s,level:i?i.level+1:-1},d)})}(null)}(e,e=>{const{node:t,index:r,pos:o,key:i,parentPos:a,level:l,nodes:d}=e,p={node:t,nodes:d,index:r,key:i,pos:o,level:l},m=AO(i,o);s[o]=p,c[m]=p,p.parent=s[a],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,u)},{externalGetKey:l,childrenPropName:i,fieldNames:a}),r&&r(u),u}function LO(e,t,n,r){return!1!==e&&(e||!t&&!n||t&&r&&!n)}function jO(e,t){let{expandedKeys:n,selectedKeys:r,loadedKeys:o,loadingKeys:i,checkedKeys:a,halfCheckedKeys:l,dragOverNodeKey:s,dropPosition:c,keyEntities:u}=t;const d=OO(u,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(d?d.pos:""),dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function FO(e){const{data:t,expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,eventKey:m}=e,f={...t,expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,key:m};return"props"in f||Object.defineProperty(f,"props",{get:()=>(g(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e)}),f}function WO(e,t){const n=r.useMemo(()=>t||[],[t]),o=((e,t)=>{const n=r.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),o=r.useCallback(()=>(n.current.options!==e&&(n.current.options=e,n.current.info=DO(e,{fieldNames:t,initWrapper:e=>({...e,pathKeyEntities:{}}),processEntity:(e,n)=>{const r=e.nodes.map(e=>e[t.value]).join(yO);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities),[t,e]);return o})(n,e),i=r.useCallback(t=>{const n=o();return t.map(t=>{const{nodes:r}=n[t];return r.map(t=>t[e.value])})},[o,e]);return[n,o,i]}function _O(e,t){const n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function VO(e){const{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!(!t&&!n)||!1===r}function XO(e,t,n,r){const o=[];let i;i=r||VO;const a=new Set(e.filter(e=>{const t=!!OO(n,e);return t||o.push(e),t})),l=new Map;let s,c=0;return Object.keys(n).forEach(e=>{const t=n[e],{level:r}=t;let o=l.get(r);o||(o=new Set,l.set(r,o)),o.add(t),c=Math.max(c,r)}),g(!o.length,`Tree missing follow keys: ${o.slice(0,100).map(e=>`'${e}'`).join(", ")}`),s=!0===t?function(e,t,n,r){const o=new Set(e),i=new Set;for(let l=0;l<=n;l+=1)(t.get(l)||new Set).forEach(e=>{const{key:t,node:n,children:i=[]}=e;o.has(t)&&!r(n)&&i.filter(e=>!r(e.node)).forEach(e=>{o.add(e.key)})});const a=new Set;for(let l=n;l>=0;l-=1)(t.get(l)||new Set).forEach(e=>{const{parent:t,node:n}=e;if(r(n)||!e.parent||a.has(e.parent.key))return;if(r(e.parent.node))return void a.add(t.key);let l=!0,s=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(e=>{let{key:t}=e;const n=o.has(t);l&&!n&&(l=!1),s||!n&&!i.has(t)||(s=!0)}),l&&o.add(t.key),s&&i.add(t.key),a.add(t.key)});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(_O(i,o))}}(a,l,c,i):function(e,t,n,r,o){const i=new Set(e);let a=new Set(t);for(let s=0;s<=r;s+=1)(n.get(s)||new Set).forEach(e=>{const{key:t,node:n,children:r=[]}=e;i.has(t)||a.has(t)||o(n)||r.filter(e=>!o(e.node)).forEach(e=>{i.delete(e.key)})});a=new Set;const l=new Set;for(let s=r;s>=0;s-=1)(n.get(s)||new Set).forEach(e=>{const{parent:t,node:n}=e;if(o(n)||!e.parent||l.has(e.parent.key))return;if(o(e.parent.node))return void l.add(t.key);let r=!0,s=!1;(t.children||[]).filter(e=>!o(e.node)).forEach(e=>{let{key:t}=e;const n=i.has(t);r&&!n&&(r=!1),s||!n&&!a.has(t)||(s=!0)}),r||i.delete(t.key),s&&a.add(t.key),l.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(_O(a,i))}}(a,t.halfCheckedKeys,l,c,i),s}function KO(e,t,n,r,o,i,a,l){return s=>{if(e){const e=xO(s),c=wO(n),u=wO(r),d=c.includes(e),p=o.some(t=>xO(t)===e);let m=n,f=o;if(p&&!d)f=o.filter(t=>xO(t)!==e);else{const t=d?c.filter(t=>t!==e):[...c,e],n=i();let r;({checkedKeys:r}=XO(t,!d||{checked:!1,halfCheckedKeys:u},n));const o=MO(r,i,l);m=a(o)}t([...f,...m])}else t(s)}}function qO(e,t,n,o,i){return r.useMemo(()=>{const[r,a]=i(t);if(!e||!t.length)return[r,[],a];const l=wO(r),s=n(),{checkedKeys:c,halfCheckedKeys:u}=XO(l,!0,s);return[o(c),o(u),a]},[e,t,n,o,i])}function GO(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:i,onClick:a,disableCheckbox:l}=e;const{checkable:s}=r.useContext(fO),c="boolean"!==typeof s?s:null;return r.createElement("span",{className:re(`${t}`,{[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:i||l}),onClick:a},c)}function YO(){return YO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YO.apply(this,arguments)}const UO="__cascader_fix_label__";function QO(e){let{prefixCls:t,multiple:n,options:o,activeValue:i,prevValuePath:a,onToggleOpen:l,onSelect:s,onActive:c,checkedSet:u,halfCheckedSet:d,loadingKeys:p,isSelectable:m,disabled:f}=e;const h=`${t}-menu`,g=`${t}-menu-item`,b=r.useRef(null),{fieldNames:v,changeOnSelect:y,expandTrigger:$,expandIcon:C,loadingIcon:x,popupMenuColumnStyle:w,optionRender:S,classNames:E,styles:k}=r.useContext(fO),N="hover"===$,I=e=>f||e,M=r.useMemo(()=>o.map(e=>{const{disabled:t,disableCheckbox:n}=e,r=e[hO],o=e[UO]??e[v.label],i=e[v.value],l=EO(e,v),s=r?r.map(e=>e[v.value]):[...a,i],c=xO(s);return{disabled:t,label:o,value:i,isLeaf:l,isLoading:p.includes(c),checked:u.has(c),halfChecked:d.has(c),option:e,disableCheckbox:n,fullPath:s,fullPathKey:c}}),[o,u,v,d,p,a]);return r.useEffect(()=>{if(b.current){const e=`.${g}-active`,t=b.current.querySelector(e);t&&kO(t)}},[i,g]),r.createElement("ul",{className:re(h,E?.popup?.list),style:k?.popup?.list,ref:b,role:"menu"},M.map(e=>{let{disabled:o,label:a,value:u,isLeaf:d,isLoading:p,checked:f,halfChecked:h,option:b,fullPath:v,fullPathKey:$,disableCheckbox:M}=e;const P=fa(b,{aria:!0,data:!0}),R=()=>{if(I(o))return;const e=[...v];N&&d&&e.pop(),c(e)},O=()=>{m(b)&&!I(o)&&s(v,d)};let z;return"string"===typeof b.title?z=b.title:"string"===typeof a&&(z=a),r.createElement("li",YO({key:$},P,{className:re(g,E?.popup?.listItem,{[`${g}-expand`]:!d,[`${g}-active`]:i===u||i===$,[`${g}-disabled`]:I(o),[`${g}-loading`]:p}),style:{...w,...k?.popup?.listItem},role:"menuitemcheckbox",title:z,"aria-checked":f,"data-path-key":$,onClick:()=>{R(),M||n&&!d||O()},onDoubleClick:()=>{y&&l(!1)},onMouseEnter:()=>{N&&R()},onMouseDown:e=>{e.preventDefault()}}),n&&r.createElement(GO,{prefixCls:`${t}-checkbox`,checked:f,halfChecked:h,disabled:I(o)||M,disableCheckbox:M,onClick:e=>{M||(e.stopPropagation(),O())}}),r.createElement("div",{className:`${g}-content`},S&&"__EMPTY__"!==u?S(b):a),!p&&C&&!d&&r.createElement("div",{className:`${g}-expand-icon`},C),p&&x&&r.createElement("div",{className:`${g}-loading-icon`},x))}))}const ZO=(e,t)=>{const{values:n}=r.useContext(fO),o=n[0],[i,a]=r.useState([]);return r.useEffect(()=>{e||a(o||[])},[t,o]),[i,a]},JO=(e,t,n,o,i,a,l)=>{const{direction:s,searchValue:c,toggleOpen:u,open:d}=l,p="rtl"===s,[m,f,h,g]=r.useMemo(()=>{let e=-1,r=t;const i=[],a=[],l=o.length,s=NO(t,n);for(let t=0;t<l&&r;t+=1){const l=r.findIndex((e,r)=>(s[r]?xO(s[r]):e[n.value])===o[t]);if(-1===l)break;e=l,i.push(e),a.push(o[t]),r=r[e][n.children]}let c=t;for(let t=0;t<i.length-1;t+=1)c=c[i[t]][n.children];return[a,e,c,s]},[o,n,t]),b=e=>{i(e)},v=()=>{if(m.length>1){const e=m.slice(0,-1);b(e)}else u(!1)},y=()=>{const e=(h[f]?.[n.children]||[]).find(e=>!e.disabled);if(e){const t=[...m,e[n.value]];b(t)}};r.useImperativeHandle(e,()=>({onKeyDown:e=>{const{which:t}=e;switch(t){case ul.UP:case ul.DOWN:{let e=0;t===ul.UP?e=-1:t===ul.DOWN&&(e=1),0!==e&&(e=>{const t=h.length;let r=f;-1===r&&e<0&&(r=t);for(let o=0;o<t;o+=1){r=(r+e+t)%t;const o=h[r];if(o&&!o.disabled){const e=m.slice(0,-1).concat(g[r]?xO(g[r]):o[n.value]);return void b(e)}}})(e);break}case ul.LEFT:if(c)break;p?y():v();break;case ul.RIGHT:if(c)break;p?v():y();break;case ul.BACKSPACE:c||v();break;case ul.ENTER:if(m.length){const e=h[f],t=e?.[hO]||[];t.length?a(t.map(e=>e[n.value]),t[t.length-1]):a(m,h[f])}break;case ul.ESC:u(!1),d&&e.stopPropagation()}},onKeyUp:()=>{}}))};function ez(){return ez=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ez.apply(this,arguments)}const tz=r.forwardRef((e,t)=>{const{prefixCls:n,multiple:o,searchValue:i,toggleOpen:a,notFoundContent:l,direction:s,open:c,disabled:u,lockOptions:d=!1}=e,p=r.useRef(null),m="rtl"===s,{options:f,values:h,halfValues:g,fieldNames:b,changeOnSelect:v,onSelect:y,searchOptions:C,popupPrefixCls:x,loadData:w,expandTrigger:S}=r.useContext(fO),E=x||n,[k,N]=r.useState([]);r.useEffect(()=>{k.length&&k.forEach(e=>{const t=function(e){return e.split(yO)}(e),n=PO(t,f,b,!0).map(e=>{let{option:t}=e;return t}),r=n[n.length-1];(!r||r[b.children]||EO(r,b))&&N(t=>t.filter(t=>t!==e))})},[f,k,b]);const I=r.useMemo(()=>new Set(wO(h)),[h]),M=r.useMemo(()=>new Set(wO(g)),[g]),[P,R]=ZO(o,c),O=e=>{R(e),(e=>{if(!w||i)return;const t=PO(e,f,b).map(e=>{let{option:t}=e;return t}),n=t[t.length-1];if(n&&!EO(n,b)){const n=xO(e);N(e=>[...e,n]),w(t)}})(e)},z=e=>{if(u)return!1;const{disabled:t}=e,n=EO(e,b);return!t&&(n||v||o)},A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];y(e),!o&&(t||v&&("hover"===S||n))&&a(!1)},T=r.useMemo(()=>i?C:f,[i,C,f]),B=$(()=>T,[c,d],(e,t)=>!!t[0]&&!t[1]),H=r.useMemo(()=>{const e=[{options:B}];let t=B;const n=NO(t,b);for(let r=0;r<P.length;r+=1){const o=P[r],i=t.find((e,t)=>(n[t]?xO(n[t]):e[b.value])===o),a=i?.[b.children];if(!a?.length)break;t=a,e.push({options:a})}return e},[B,P,b]);JO(t,B,b,P,O,(e,t)=>{z(t)&&A(e,EO(t,b),!0)},{direction:s,searchValue:i,toggleOpen:a,open:c}),r.useEffect(()=>{if(!i)for(let e=0;e<P.length;e+=1){const t=xO(P.slice(0,e+1)),n=p.current?.querySelector(`li[data-path-key="${t.replace(/\\{0,2}"/g,'\\"')}"]`);n&&kO(n)}},[P,i]);const D=!H[0]?.options?.length,L=[{[b.value]:"__EMPTY__",[UO]:l,disabled:!0}],j={...e,multiple:!D&&o,onSelect:A,onActive:O,onToggleOpen:a,checkedSet:I,halfCheckedSet:M,loadingKeys:k,isSelectable:z},F=(D?[{options:L}]:H).map((e,t)=>{const n=P.slice(0,t),o=P[t];return r.createElement(QO,ez({key:t},j,{prefixCls:E,options:e.options,prevValuePath:n,activeValue:o}))});return r.createElement("div",{className:re(`${E}-menus`,{[`${E}-menu-empty`]:D,[`${E}-rtl`]:m}),ref:p},F)});const nz=tz;function rz(){return rz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rz.apply(this,arguments)}const oz=r.forwardRef((e,t)=>{const{lockOptions:n,...o}=$g();return r.createElement(nz,rz({},e,o,{lockOptions:n,ref:t}))});function iz(){}function az(e){const{prefixCls:t="rc-cascader",style:n,className:o,options:i,checkable:a,defaultValue:l,value:s,fieldNames:c,changeOnSelect:u,onChange:d,showCheckedStrategy:p,loadData:m,expandTrigger:f,expandIcon:h=">",loadingIcon:g,direction:b,notFoundContent:v="Not Found",disabled:y,optionRender:$}=e,C=!!a,[x,w]=F(l,s),S=IO(x),E=r.useMemo(()=>SO(c),[JSON.stringify(c)]),[k,N,I]=WO(E,i),M=RO(k,E),[P,R,O]=qO(C,S,N,I,M),z=A(e=>{if(w(e),d){const t=IO(e),n=t.map(e=>PO(e,k,E).map(e=>e.option)),r=C?t:t[0],o=C?n:n[0];d(r,o)}}),T=KO(C,z,P,R,O,N,I,p),B=A(e=>{T(e)}),H=r.useMemo(()=>({options:k,fieldNames:E,values:P,halfValues:R,changeOnSelect:u,onSelect:B,checkable:a,searchOptions:[],popupPrefixCls:void 0,loadData:m,expandTrigger:f,expandIcon:h,loadingIcon:g,popupMenuColumnStyle:void 0,optionRender:$}),[k,E,P,R,u,B,a,m,f,h,g,$]),D=`${t}-panel`,L=!k.length;return r.createElement(fO.Provider,{value:H},r.createElement("div",{className:re(D,{[`${D}-rtl`]:"rtl"===b,[`${D}-empty`]:L},o),style:n},L?v:r.createElement(nz,{prefixCls:t,searchValue:"",multiple:C,toggleOpen:iz,open:!0,direction:b,disabled:y})))}function lz(){return lz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lz.apply(this,arguments)}const sz=r.forwardRef((e,t)=>{const{id:n,prefixCls:o="rc-cascader",fieldNames:i,defaultValue:a,value:l,changeOnSelect:s,onChange:c,displayRender:u,checkable:d,showSearch:p,expandTrigger:m,options:f,popupPrefixCls:h,loadData:g,open:b,popupClassName:v,popupMenuColumnStyle:y,popupStyle:$,classNames:C,styles:x,placement:w,onPopupVisibleChange:S,expandIcon:E=">",loadingIcon:k,children:N,popupMatchSelectWidth:I=!1,showCheckedStrategy:M=$O,optionRender:P,...R}=e,O=Is(n),z=!!d,[T,B]=F(a,l),H=IO(T),D=r.useMemo(()=>SO(i),[JSON.stringify(i)]),[L,j,W]=WO(D,f),[_,V]=function(e,t){const{autoClearSearchValue:n,searchValue:o,onSearch:i}=t;return r.useMemo(()=>{if(!e)return[!1,{}];let t={matchInputWidth:!0,limit:50,autoClearSearchValue:n,searchValue:o,onSearch:i};return e&&"object"===typeof e&&(t={...t,...e}),t.limit<=0&&(t.limit=!1),[!0,t]},[e,n,o,i])}(p,e),{autoClearSearchValue:X=!0,searchValue:K,onSearch:q}=V,[G,Y]=F("",K),U=G||"",Q=vO(U,L,D,h||o,V,s||z),Z=RO(L,D),[J,ee,te]=qO(z,H,j,W,Z),ne=((e,t,n,o,i)=>r.useMemo(()=>{const a=i||(e=>{const t=o?e.slice(-1):e;return t.every(e=>["string","number"].includes(typeof e))?t.join(" / "):t.reduce((e,t,n)=>{const o=r.isValidElement(t)?r.cloneElement(t,{key:n}):t;return 0===n?[o]:[...e," / ",o]},[])});return e.map(e=>{const r=PO(e,t,n),o=a(r.map(e=>{let{option:t,value:r}=e;return t?.[n.label]??r}),r.map(e=>{let{option:t}=e;return t})),i=xO(e);return{label:o,value:i,key:i,valueCells:e,disabled:r[r.length-1]?.option?.disabled}})},[e,t,n,i,o]))(r.useMemo(()=>{const e=MO(wO(J),j,M);return[...te,...W(e)]},[J,j,W,te,M]),L,D,z,u),re=A(e=>{if(B(e),c){const t=IO(e),n=t.map(e=>PO(e,L,D).map(e=>e.option)),r=z?t:t[0],o=z?n:n[0];c(r,o)}}),oe=KO(z,re,J,ee,te,j,W,M),ie=A(e=>{z&&!X||Y(""),oe(e)});const ae=r.useMemo(()=>({classNames:C,styles:x,options:L,fieldNames:D,values:J,halfValues:ee,changeOnSelect:s,onSelect:ie,checkable:d,searchOptions:Q,popupPrefixCls:h,loadData:g,expandTrigger:m,expandIcon:E,loadingIcon:k,popupMenuColumnStyle:y,optionRender:P}),[C,x,L,D,J,ee,s,ie,d,Q,h,g,m,E,k,y,P]),le=!(U?Q:L).length,se=U&&V.matchInputWidth||le?{}:{minWidth:"auto"};return r.createElement(fO.Provider,{value:ae},r.createElement(bb,lz({},R,{ref:t,id:O,prefixCls:o,autoClearSearchValue:X,popupMatchSelectWidth:I,classNames:C,styles:x,popupStyle:{...se,...$},displayValues:ne,onDisplayValuesChange:(e,t)=>{if("clear"===t.type)return void re([]);const{valueCells:n}=t.values[0];ie(n)},mode:z?"multiple":void 0,searchValue:U,onSearch:(e,t)=>{Y(e),"blur"!==t.source&&q&&q(e)},showSearch:_,OptionList:oz,emptyOptions:le,open:b,popupClassName:v,placement:w,onPopupVisibleChange:e=>{S?.(e)},getRawInputElement:()=>N})))});sz.SHOW_PARENT=$O,sz.SHOW_CHILD=CO,sz.Panel=az;const cz=sz;const uz=function(e,t){const{getPrefixCls:n,direction:o,renderEmpty:i}=r.useContext(ye),a=t||o;return[n("select",e),n("cascader",e),a,i]};function dz(e,t){return r.useMemo(()=>!!t&&r.createElement("span",{className:`${e}-checkbox-inner`}),[e,t])}function pz(e,t){return(e=>{const{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,o=`${t}-wrapper`;return[{[`${t}-group`]:{...br(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...br(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...br(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:n,height:n,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${lt(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none","@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:"table",width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${lt(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}`,"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${r}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:vr(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`\n ${o}:not(${o}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[`${t}-checked`]:{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}`,"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'},"&:hover":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]})(ir(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}const mz=To("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[pz(n,e)]}),fz=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n`;return[pz(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":{...gr,display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},hz=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},gz=To("Cascader",e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},fz(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},_d(e)]},hz,{resetFont:!1,unitless:{optionSelectedFontWeight:!0}}),bz=Bo(["Cascader","Panel"],e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[fz(e),{display:"inline-flex",border:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},hz,{resetFont:!1}),vz=r.createElement(kl,{spin:!0}),yz=r.createElement(Ju,null),$z=r.createElement(_$,null);function Cz(e){let{contextExpandIcon:t,contextLoadingIcon:n,expandIcon:o,loadingIcon:i,isRtl:a}=e;return r.useMemo(()=>({expandIcon:o??t??(a?$z:yz),loadingIcon:i??n??vz}),[t,n,o,a,i])}const xz=function(e){const{prefixCls:t,className:n,multiple:o,rootClassName:i,notFoundContent:a,direction:l,expandIcon:s,loadingIcon:c,disabled:u}=e,{expandIcon:d,loadingIcon:p}=xe("cascader"),m=r.useContext($c),f=u??m,[h,g,b,v]=uz(t,l),y=Ka(g),[$,C]=gz(g,y);bz(g);const x="rtl"===b,{expandIcon:w,loadingIcon:S}=Cz({contextExpandIcon:d,contextLoadingIcon:p,expandIcon:s,loadingIcon:c,isRtl:x}),E=a||v?.("Cascader")||r.createElement(cv,{componentName:"Cascader"}),k=dz(g,o);return r.createElement(az,{...e,checkable:k,prefixCls:g,className:re(n,$,i,C,y),notFoundContent:E,direction:b,expandIcon:w,loadingIcon:S,disabled:f})},{SHOW_CHILD:wz,SHOW_PARENT:Sz}=cz,Ez=(e,t,n,o)=>{const i=[],a=e.toLowerCase();return t.forEach((e,t)=>{0!==t&&i.push(" / ");let l=e[o.label];const s=typeof l;"string"!==s&&"number"!==s||(l=((e,t,n)=>{const o=e.toLowerCase().split(t).reduce((e,n,r)=>0===r?[n]:[].concat(le(e),[t,n]),[]),i=[];let a=0;return o.forEach((t,o)=>{const l=a+t.length;let s=e.slice(a,l);a=l,o%2===1&&(s=r.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${o}`},s)),i.push(s)}),i})(String(l),a,n)),i.push(l)}),i},kz=r.forwardRef((e,t)=>{const{prefixCls:n,size:o,disabled:i,className:a,rootClassName:l,multiple:s,bordered:c=!0,transitionName:u,choiceTransitionName:d="",popupClassName:p,expandIcon:m,placement:f,showSearch:h,allowClear:g=!0,notFoundContent:b,direction:v,getPopupContainer:y,status:$,showArrow:C,builtinPlacements:x,style:w,variant:S,dropdownClassName:E,dropdownRender:k,onDropdownVisibleChange:N,onPopupVisibleChange:I,dropdownMenuColumnStyle:M,popupRender:P,dropdownStyle:R,popupMenuColumnStyle:O,onOpenChange:z,styles:A,classNames:T,loadingIcon:B,...H}=e,D=Y(H,["suffixIcon"]),{getPrefixCls:L,getPopupContainer:j,className:F,style:W,classNames:_,styles:V,expandIcon:X,loadingIcon:K}=xe("cascader"),{popupOverflow:q}=r.useContext(ye),{status:G,hasFeedback:U,isFormItemInput:Q,feedbackIcon:Z}=r.useContext(qm),J=tv(G,$);const[ee,te,ne,oe]=uz(n,v),ie="rtl"===ne,ae=L(),le=Ka(ee),[se,ce]=Lv(ee,le),ue=Ka(te);gz(te,ue);const{compactSize:de,compactItemClassnames:pe}=cu(ee,v),[me,fe]=uv("cascader",S,c),he=b||oe?.("Cascader")||r.createElement(cv,{componentName:"Cascader"}),ge=Uv(P||k),be=O||M,ve=z||I||N,$e=r.useMemo(()=>{if(!h)return h;let e={render:Ez};return"object"===typeof h&&(e={...e,...h}),e},[h]),Ce=ou(e=>o??de??e),we=r.useContext($c),Se=i??we,{expandIcon:Ee,loadingIcon:ke}=Cz({contextExpandIcon:X,contextLoadingIcon:K,expandIcon:m,loadingIcon:B,isRtl:ie}),Ne=dz(te,s),Ie=Qv(e.suffixIcon,C),{suffixIcon:Me,removeIcon:Pe,clearIcon:Re}=Yv({...e,loadingIcon:ke,hasFeedback:U,feedbackIcon:Z,showSuffixIcon:Ie,multiple:s,prefixCls:ee,componentName:"Cascader"}),Oe=r.useMemo(()=>void 0!==f?f:ie?"bottomRight":"bottomLeft",[f,ie]),ze=!0===g?{clearIcon:Re}:g,Ae={...e,variant:me,size:Ce,status:J,disabled:Se},[Te,Be]=Ca([_,T],[V,A],{props:Ae},{popup:{_default:"root"}}),He={...Be.popup?.root,...R},[De]=Tl("SelectLike",He?.zIndex),Le=re(p||E,`${te}-dropdown`,{[`${te}-dropdown-rtl`]:"rtl"===ne},l,le,Te.popup?.root,ue,se,ce);return r.createElement(cz,{prefixCls:ee,className:re(!n&&te,{[`${ee}-lg`]:"large"===Ce,[`${ee}-sm`]:"small"===Ce,[`${ee}-rtl`]:ie,[`${ee}-${me}`]:fe,[`${ee}-in-form-item`]:Q},ev(ee,J,U),pe,F,a,l,Te.root,le,ue,se,ce),disabled:Se,style:{...Be.root,...W,...w},classNames:Te,styles:Be,...D,builtinPlacements:dv(x,q),direction:ne,placement:Oe,notFoundContent:he,allowClear:ze,showSearch:$e,expandIcon:Ee,suffixIcon:Me,removeIcon:Pe,loadingIcon:ke,checkable:Ne,popupClassName:Le,popupPrefixCls:n||te,popupStyle:{...He,zIndex:De},popupRender:ge,popupMenuColumnStyle:be,onPopupVisibleChange:ve,choiceTransitionName:qc(ae,"",d),transitionName:qc(ae,"slide-up",u),getPopupContainer:y||j,ref:t})});const Nz=vg(kz,"popupAlign",e=>Y(e,["visible"]));kz.SHOW_PARENT=Sz,kz.SHOW_CHILD=wz,kz.Panel=xz,kz._InternalPanelDoNotUseOrYouWillBeFired=Nz;const Iz=kz,Mz=r.createContext(null),Pz=r.forwardRef((e,t)=>{const{prefixCls:n,children:o,indeterminate:i=!1,onMouseEnter:a,onMouseLeave:l,skipGroup:s=!1,disabled:c,rootClassName:u,className:d,style:p,classNames:m,styles:f,name:h,value:g,checked:b,defaultChecked:v,onChange:y,...$}=e,{getPrefixCls:C,direction:x,className:w,style:E,classNames:k,styles:N}=xe("checkbox"),I=r.useContext(Mz),{isFormItemInput:M}=r.useContext(qm),P=r.useContext($c),R=(I?.disabled||c)??P;const[O,z]=F(v,b);let T=O;const B=A(e=>{z(e.target.checked),y?.(e),!s&&I?.toggleOption&&I.toggleOption({label:o,value:g})});I&&!s&&(T=I.value.includes(g));const H=r.useRef(null),D=S(t,H);r.useEffect(()=>{if(!s&&I)return I.registerValue(g),()=>{I.cancelValue(g)}},[g,s]),r.useEffect(()=>{H.current?.input&&(H.current.input.indeterminate=i)},[i]);const L=C("checkbox",n),j=Ka(L),[W,_]=mz(L,j),V={...$},X={...e,indeterminate:i,disabled:R,checked:T},[K,q]=Ca([k,m],[N,f],{props:X}),G=re(`${L}-wrapper`,{[`${L}-rtl`]:"rtl"===x,[`${L}-wrapper-checked`]:T,[`${L}-wrapper-disabled`]:R,[`${L}-wrapper-in-form-item`]:M},w,d,K.root,u,_,j,W),Y=re(K.icon,{[`${L}-indeterminate`]:i},Qc,W),[U,Q]=SM(V.onClick);return r.createElement(ru,{component:"Checkbox",disabled:R},r.createElement("label",{className:G,style:{...q.root,...E,...p},onMouseEnter:a,onMouseLeave:l,onClick:U},r.createElement(wM,{...V,name:!s&&I?I.name:h,checked:T,onClick:Q,onChange:B,prefixCls:L,className:Y,style:q.icon,disabled:R,ref:D,value:g}),xa(o)&&r.createElement("span",{className:re(`${L}-label`,K.label),style:q.label},o)))});const Rz=Pz,Oz=r.forwardRef((e,t)=>{const{defaultValue:n,children:o,options:i=[],prefixCls:a,className:l,rootClassName:s,style:c,onChange:u,role:d="group",...p}=e,{getPrefixCls:m,direction:f}=r.useContext(ye),[h,g]=r.useState(p.value||n||[]),[b,v]=r.useState([]);r.useEffect(()=>{"value"in p&&g(p.value||[])},[p.value]);const y=r.useMemo(()=>i.map(e=>"string"===typeof e||"number"===typeof e?{label:e,value:e}:e),[i]),$=e=>{v(t=>t.filter(t=>t!==e))},C=e=>{v(t=>[].concat(le(t),[e]))},x=e=>{const t=h.indexOf(e.value),n=le(h);-1===t?n.push(e.value):n.splice(t,1),"value"in p||g(n),u?.(n.filter(e=>b.includes(e)).sort((e,t)=>y.findIndex(t=>t.value===e)-y.findIndex(e=>e.value===t)))},w=m("checkbox",a),S=`${w}-group`,E=Ka(w),[k,N]=mz(w,E),I=Y(p,["value","disabled"]),M=i.length?y.map(e=>r.createElement(Rz,{prefixCls:w,key:e.value.toString(),disabled:"disabled"in e?e.disabled:p.disabled,value:e.value,checked:h.includes(e.value),onChange:e.onChange,className:re(`${S}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):o,P=r.useMemo(()=>({toggleOption:x,value:h,disabled:p.disabled,name:p.name,registerValue:C,cancelValue:$}),[x,h,p.disabled,p.name,C,$]),R=re(S,{[`${S}-rtl`]:"rtl"===f},l,s,N,E,k);return r.createElement("div",{className:R,style:c,role:d,...I,ref:t},r.createElement(Mz.Provider,{value:P},M))}),zz=Oz,Az=Rz;Az.Group=zz,Az.__ANT_CHECKBOX=!0;const Tz=Az,Bz=(0,r.createContext)({});function Hz(e){return"auto"===e?"1 1 auto":"number"!==typeof(t=e)||Number.isNaN(t)?/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e:`${e} ${e} auto`;var t}const Dz=r.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o}=r.useContext(ye),{gutter:i,wrap:a}=r.useContext(Bz),{prefixCls:l,span:s,order:c,offset:u,push:d,pull:p,className:m,children:f,flex:h,style:g,...b}=e,v=n("col",l),y=n(),[$,C]=Kf(v),[x]=Do(y,"col"),w={};let S={};dy.forEach(t=>{let n={};const r=e[t];"number"===typeof r?n.span=r:"object"===typeof r&&(n=r||{}),delete b[t],S={...S,[`${v}-${t}-${n.span}`]:void 0!==n.span,[`${v}-${t}-order-${n.order}`]:n.order||0===n.order,[`${v}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${v}-${t}-push-${n.push}`]:n.push||0===n.push,[`${v}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${v}-rtl`]:"rtl"===o},n.flex&&(S[`${v}-${t}-flex`]=!0,w[x(`${t}-flex`)]=Hz(n.flex))});const E=re(v,{[`${v}-${s}`]:void 0!==s,[`${v}-order-${c}`]:c,[`${v}-offset-${u}`]:u,[`${v}-push-${d}`]:d,[`${v}-pull-${p}`]:p},m,S,$,C),k={};if(i?.[0]){const e="number"===typeof i[0]?i[0]/2+"px":`calc(${i[0]} / 2)`;k.paddingInline=e}return h&&(k.flex=Hz(h),!1!==a||k.minWidth||(k.minWidth=0)),r.createElement("div",{...b,style:{...k,...g,...w},className:E,ref:t},f)});const Lz=Dz,jz=Lz,Fz=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Wz=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e,s=`${t}-rail`;return{[t]:{...br(e),borderBlockStart:`${lt(o)} solid ${r}`,[s]:{borderBlockStart:`${lt(o)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${lt(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${lt(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${lt(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${s}-start, ${s}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${s}-start`]:{width:`calc(${a} * 100%)`},[`${s}-end`]:{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${s}-start`]:{width:`calc(100% - ${a} * 100%)`},[`${s}-end`]:{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${lt(o)} 0 0`,[s]:{borderBlockStart:`${lt(o)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${s}-start, ${s}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${lt(o)} 0 0`,[s]:{borderBlockStart:`${lt(o)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${s}-start`]:{width:0},[`${s}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${s}-start`]:{width:"100%"},[`${s}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},_z=To("Divider",e=>{const t=ir(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Wz(t),Fz(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}}),Vz=["left","right","center","start","end"];const Xz=e=>{const{getPrefixCls:t,direction:n,className:o,style:i,classNames:a,styles:l}=xe("divider"),{prefixCls:s,type:c,orientation:u,vertical:d,titlePlacement:p,orientationMargin:m,className:f,rootClassName:h,children:g,dashed:b,variant:v="solid",plain:y,style:$,size:C,classNames:x,styles:w,...S}=e,E=t("divider",s),k=`${E}-rail`,[N,I]=_z(E),M=ou(C),P=!!g,R=Vz.includes(u||""),O=r.useMemo(()=>{const e=p??(R?u:"center");return"left"===e?"rtl"===n?"end":"start":"right"===e?"rtl"===n?"start":"end":e},[n,u,p,R]),z="start"===O&&null!=m,A="end"===O&&null!=m,[T,B]=au(u,d,c),H={...e,orientation:T,titlePlacement:O,size:M},[D,L]=Ca([a,x],[l,w],{props:H}),j=re(E,o,N,I,`${E}-${T}`,{[`${E}-with-text`]:P,[`${E}-with-text-${O}`]:P,[`${E}-dashed`]:!!b,[`${E}-${v}`]:"solid"!==v,[`${E}-plain`]:!!y,[`${E}-rtl`]:"rtl"===n,[`${E}-no-default-orientation-margin-start`]:z,[`${E}-no-default-orientation-margin-end`]:A,[`${E}-md`]:"medium"===M||"middle"===M,[`${E}-sm`]:"small"===M,[k]:!g,[D.rail]:D.rail&&!g},f,h,D.root),F=r.useMemo(()=>"number"===typeof m?m:/^\d+$/.test(m)?Number(m):m,[m]),W={marginInlineStart:z?F:void 0,marginInlineEnd:A?F:void 0};return r.createElement("div",{className:j,style:{...i,...L.root,...g?{}:L.rail,...$},...S,role:"separator"},g&&!B&&r.createElement(r.Fragment,null,r.createElement("div",{className:re(k,`${k}-start`,D.rail),style:L.rail}),r.createElement("span",{className:re(`${E}-inner-text`,D.content),style:{...W,...L.content}},g),r.createElement("div",{className:re(k,`${k}-end`,D.rail),style:L.rail})))},Kz=(e,t)=>{if(!e)return null;const n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},qz=e=>void 0!==e?`${e}px`:void 0;function Gz(e){const{prefixCls:t,containerRef:n,value:o,getValueIndex:i,motionName:a,onMotionStart:l,onMotionEnd:s,direction:c,vertical:u=!1}=e,d=r.useRef(null),[p,m]=r.useState(o),f=e=>{const r=i(e),o=n.current?.querySelectorAll(`.${t}-item`)[r];return o?.offsetParent&&o},[h,g]=r.useState(null),[b,v]=r.useState(null);L(()=>{if(p!==o){const e=f(p),t=f(o),n=Kz(e,u),r=Kz(t,u);m(o),g(n),v(r),e&&t?l():s()}},[o]);const y=r.useMemo(()=>qz(u?h?.top??0:"rtl"===c?-h?.right:h?.left),[u,c,h]),$=r.useMemo(()=>qz(u?b?.top??0:"rtl"===c?-b?.right:b?.left),[u,c,b]);return h&&b?r.createElement(da,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},onAppearActive:()=>u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},onVisibleChanged:()=>{g(null),v(null),s()}},(e,n)=>{let{className:o,style:i}=e;const a={...i,"--thumb-start-left":y,"--thumb-start-width":qz(h?.width),"--thumb-active-left":$,"--thumb-active-width":qz(b?.width),"--thumb-start-top":y,"--thumb-start-height":qz(h?.height),"--thumb-active-top":$,"--thumb-active-height":qz(b?.height)},l={ref:w(d,n),style:a,className:re(`${t}-thumb`,o)};return r.createElement("div",l)}):null}const Yz=e=>{let{prefixCls:t,className:n,style:o,styles:i,classNames:a,data:l,disabled:s,checked:c,label:u,title:d,value:p,name:m,onChange:f,onFocus:h,onBlur:g,onKeyDown:b,onKeyUp:v,onMouseDown:y,itemRender:$=e=>e}=e;return $(r.createElement("label",{className:re(n,{[`${t}-item-disabled`]:s}),style:o,onMouseDown:y},r.createElement("input",{name:m,className:`${t}-item-input`,type:"radio",disabled:s,checked:c,onChange:e=>{s||f(e,p)},onFocus:h,onBlur:g,onKeyDown:b,onKeyUp:v}),r.createElement("div",{className:re(`${t}-item-label`,a?.label),title:d,style:i?.label},u)),{item:l})},Uz=r.forwardRef((e,t)=>{const{prefixCls:n="rc-segmented",direction:o,vertical:i,options:a=[],disabled:l,defaultValue:s,value:c,name:u,onChange:d,className:p="",style:m,styles:f,classNames:h,motionName:g="thumb-motion",itemRender:b,...v}=e,y=r.useRef(null),$=r.useMemo(()=>w(y,t),[y,t]),C=r.useMemo(()=>function(e){return e.map(e=>{if("object"===typeof e&&null!==e){const t=function(e){return"undefined"!==typeof e.title?e.title:"object"!==typeof e.label?e.label?.toString():void 0}(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}(a),[a]),[x,S]=F(s??C[0]?.value,c),[E,k]=r.useState(!1),N=(e,t)=>{S(t),d?.(t)},I=Y(v,["children"]),[M,P]=r.useState(!1),[R,O]=r.useState(!1),z=()=>{O(!0)},A=()=>{O(!1)},T=()=>{P(!1)},B=e=>{"Tab"===e.key&&P(!0)},H=e=>{const t=C.findIndex(e=>e.value===x),n=C.length,r=C[(t+e+n)%n];r&&(S(r.value),d?.(r.value))},D=e=>{switch(e.key){case"ArrowLeft":case"ArrowUp":H(-1);break;case"ArrowRight":case"ArrowDown":H(1)}};return r.createElement("div",ed({role:"radiogroup","aria-label":"segmented control",tabIndex:l?void 0:0,"aria-orientation":i?"vertical":"horizontal",style:m},I,{className:re(n,{[`${n}-rtl`]:"rtl"===o,[`${n}-disabled`]:l,[`${n}-vertical`]:i},p),ref:$}),r.createElement("div",{className:`${n}-group`},r.createElement(Gz,{vertical:i,prefixCls:n,value:x,containerRef:y,motionName:`${n}-${g}`,direction:o,getValueIndex:e=>C.findIndex(t=>t.value===e),onMotionStart:()=>{k(!0)},onMotionEnd:()=>{k(!1)}}),C.map(e=>{const{value:t,disabled:o}=e;return r.createElement(Yz,ed({},e,{name:u,data:e,itemRender:b,key:t,prefixCls:n,className:re(e.className,`${n}-item`,h?.item,{[`${n}-item-selected`]:t===x&&!E,[`${n}-item-focused`]:R&&M&&t===x}),style:f?.item,classNames:h,styles:f,checked:t===x,onChange:N,onFocus:z,onBlur:A,onKeyDown:D,onKeyUp:B,onMouseDown:T,disabled:!!l||!!o}))})))});const Qz=Uz;function Zz(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}const Jz=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),eA={overflow:"hidden",...gr},tA=To("Segmented",e=>{const{lineWidth:t,calc:n}=e;return(e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...br(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${o}`,...yr(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${lt(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${o}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...Jz(e),color:e.itemSelectedColor},"&-focused":vr(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(e=>`${e} ${o}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:i,lineHeight:lt(i),padding:`0 ${lt(e.segmentedPaddingHorizontal)}`,...eA},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...Jz(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${lt(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:a,lineHeight:lt(a),padding:`0 ${lt(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:lt(l),padding:`0 ${lt(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...Zz(`&-disabled ${t}-item`,e),...Zz(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(e=>`${e} ${n} ${r}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}})(ir(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}});const nA=r.forwardRef((e,t)=>{const n=Is(),{prefixCls:o,className:i,rootClassName:a,block:l,options:s=[],size:c,style:u,vertical:d,orientation:p,shape:m="default",name:f=n,styles:h,classNames:g,...b}=e,{getPrefixCls:v,direction:y,className:$,style:C,classNames:x,styles:w}=xe("segmented"),S={...e,options:s,size:c,shape:m},[E,k]=Ca([x,g],[w,h],{props:S}),N=v("segmented",o),[I,M]=tA(N),P=ou(c),R=r.useMemo(()=>s.map(e=>{if(function(e){return"object"===typeof e&&!!e?.icon}(e)){const{icon:t,label:n,...o}=e;return{...o,label:r.createElement(r.Fragment,null,r.createElement("span",{className:re(`${N}-item-icon`,E.icon),style:k.icon},t),n&&r.createElement("span",null,n))}}return e}),[s,N,E.icon,k.icon]),[,O]=au(p,d),z=re(i,a,$,E.root,{[`${N}-block`]:l,[`${N}-sm`]:"small"===P,[`${N}-lg`]:"large"===P,[`${N}-vertical`]:O,[`${N}-shape-${m}`]:"round"===m},I,M),A={...k.root,...C,...u};return r.createElement(Qz,{...b,name:f,className:z,style:A,classNames:E,styles:k,itemRender:(e,t)=>{let{item:n}=t;if(!n.tooltip)return e;const o="object"===typeof n.tooltip?n.tooltip:{title:n.tooltip};return r.createElement(Jy,{...o},e)},options:R,ref:t,prefixCls:N,direction:y,vertical:O})});const rA=nA,oA=r.createContext({}),iA=r.createContext({}),aA=e=>{let{prefixCls:t,value:n,onChange:o,className:i,style:a}=e;return r.createElement("div",{className:oe(`${t}-clear`,i),style:a,onClick:()=>{if(o&&n&&!n.cleared){const e=n.toHsb();e.a=0;const t=xd(e);t.cleared=!0,o(t)}}})},lA="hex",sA="rgb",cA="hsb";const uA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};function dA(){return dA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dA.apply(this,arguments)}const pA=r.forwardRef((e,t)=>r.createElement(si,dA({},e,{ref:t,icon:uA})));const mA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function fA(){return fA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fA.apply(this,arguments)}const hA=r.forwardRef((e,t)=>r.createElement(si,fA({},e,{ref:t,icon:mA})));function gA(){return"function"===typeof BigInt}function bA(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function vA(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function yA(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function $A(e){var t=Se(e.toLowerCase().split("e"),2),n=t[0],r=t[1],o=void 0===r?"0":r,i=n.startsWith("-"),a=Se((i?n.slice(1):n).split("."),2),l=a[0],s=void 0===l?"0":l,c=a[1],u=void 0===c?"":c;return{decimal:u,digits:"".concat(s).concat(u).replace(/^0+/,"")||"0",exponent:Number(o),integer:s,negative:i}}function CA(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function xA(e){var t=String(e);return yA(e)?CA($A(t)):t.includes(".")&&SA(t)?t.length-t.indexOf(".")-1:0}function wA(e){var t=String(e);if(yA(e)){if(e>Number.MAX_SAFE_INTEGER)return String(gA()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(gA()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=$A(t),r=CA(n);t=r>100?function(e){var t=e.decimal,n=e.digits,r=e.exponent,o=e.integer,i=e.negative;if("0"===n)return"0";var a=o.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,s=(a||-l)+r,c="";return c=s<=0?"0.".concat("0".repeat(-s)).concat(n):s>=n.length?"".concat(n).concat("0".repeat(s-n.length)):"".concat(n.slice(0,s),".").concat(n.slice(s)),"".concat(i?"-":"").concat(c)}(n):e.toFixed(r)}return vA(t).fullStr}function SA(e){return"number"===typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var EA=function(){function e(t){if((0,Dn.A)(this,e),(0,Ee.A)(this,"origin",""),(0,Ee.A)(this,"negative",void 0),(0,Ee.A)(this,"integer",void 0),(0,Ee.A)(this,"decimal",void 0),(0,Ee.A)(this,"decimalLen",void 0),(0,Ee.A)(this,"empty",void 0),(0,Ee.A)(this,"nan",void 0),bA(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(yA(n)&&(n=Number(n)),SA(n="string"===typeof n?n:wA(n))){var r=vA(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return(0,Ln.A)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),l=vA(i),s=l.negativeStr,c=l.trimStr,u="".concat(s).concat(c.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":vA("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),kA=function(){function e(t){(0,Dn.A)(this,e),(0,Ee.A)(this,"origin",""),(0,Ee.A)(this,"number",void 0),(0,Ee.A)(this,"empty",void 0),bA(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return(0,Ln.A)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(xA(this.number),xA(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(xA(this.number),xA(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null===e||void 0===e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":yA(this.number)&&xA(this.number)>100?String(this.number):wA(this.number):this.origin}}]),e}();function NA(e){return gA()?new EA(e):new kA(e)}function IA(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=vA(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?IA(NA(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}const MA=NA;function PA(e){let{prefixCls:t,action:n,children:o,disabled:i,className:a,style:l,onStep:s}=e;const c="up"===n,u=r.useRef(),d=r.useRef([]),p=()=>{clearTimeout(u.current)};r.useEffect(()=>()=>{p(),d.current.forEach(e=>{fe.cancel(e)})},[]);const m=`${t}-action`,f=re(m,`${m}-${n}`,{[`${m}-${n}-disabled`]:i},a),h=()=>d.current.push(fe(p));return r.createElement("span",{unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h,onMouseDown:e=>{(e=>{e.preventDefault(),p(),s(c,"handler"),u.current=setTimeout(function e(){s(c,"handler"),u.current=setTimeout(e,200)},600)})(e)},"aria-label":c?"Increase Value":"Decrease Value","aria-disabled":i,className:f,style:l},o||r.createElement("span",{unselectable:"on",className:`${t}-action-${n}-inner`}))}function RA(e){const t="number"===typeof e?wA(e):vA(e).fullStr;return t.includes(".")?vA(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function OA(){return OA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OA.apply(this,arguments)}const zA=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),AA=e=>{const t=MA(e);return t.isInvalidate()?null:t},TA=r.forwardRef((e,t)=>{const{mode:n="input",prefixCls:o="rc-input-number",className:i,style:a,classNames:l,styles:s,min:c,max:u,step:d=1,defaultValue:p,value:m,disabled:f,readOnly:h,upHandler:b,downHandler:v,keyboard:y,changeOnWheel:$=!1,controls:C=!0,prefix:x,suffix:w,stringMode:S,parser:E,formatter:k,precision:N,decimalSeparator:I,onChange:M,onInput:P,onPressEnter:R,onStep:O,onMouseDown:z,onClick:T,onMouseUp:B,onMouseLeave:H,onMouseMove:L,onMouseEnter:j,onMouseOut:F,changeOnBlur:W=!0,..._}=e,[V,X]=r.useState(!1),K=r.useRef(!1),q=r.useRef(!1),G=r.useRef(!1),Y=r.useRef(null),U=r.useRef(null);r.useImperativeHandle(t,()=>{return e=U.current,t={focus:e=>{cp(U.current,e)},blur:()=>{U.current?.blur()},nativeElement:Y.current},"undefined"!==typeof Proxy&&e?new Proxy(e,{get(e,n){if(t[n])return t[n];const r=e[n];return"function"===typeof r?r.bind(e):r}}):e;var e,t});const[Q,Z]=r.useState(()=>MA(m??p));const J=r.useCallback((e,t)=>{if(!t)return N>=0?N:Math.max(xA(e),xA(d))},[N,d]),ee=r.useCallback(e=>{const t=String(e);if(E)return E(t);let n=t;return I&&(n=n.replace(I,".")),n.replace(/[^\w.-]+/g,"")},[E,I]),te=r.useRef(""),ne=r.useCallback((e,t)=>{if(k)return k(e,{userTyping:t,input:String(te.current)});let n="number"===typeof e?wA(e):e;if(!t){const e=J(n,t);if(SA(n)&&(I||e>=0)){n=IA(n,I||".",e)}}return n},[k,J,I]),[oe,ie]=r.useState(()=>{const e=p??m;return Q.isInvalidate()&&["string","number"].includes(typeof e)?Number.isNaN(e)?"":e:ne(Q.toString(),!1)});function ae(e,t){ie(ne(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}te.current=oe;const le=r.useMemo(()=>AA(u),[u,N]),se=r.useMemo(()=>AA(c),[c,N]),ce=r.useMemo(()=>!(!le||!Q||Q.isInvalidate())&&le.lessEquals(Q),[le,Q]),ue=r.useMemo(()=>!(!se||!Q||Q.isInvalidate())&&Q.lessEquals(se),[se,Q]),[de,pe]=function(e,t){const n=(0,r.useRef)(null);return[function(){try{const{selectionStart:t,selectionEnd:r,value:o}=e,i=o.substring(0,t),a=o.substring(r);n.current={start:t,end:r,value:o,beforeTxt:i,afterTxt:a}}catch(Ha){}},function(){if(e&&n.current&&t)try{const{value:t}=e,{beforeTxt:r,afterTxt:o,start:i}=n.current;let a=t.length;if(t.startsWith(r))a=r.length;else if(t.endsWith(o))a=t.length-n.current.afterTxt.length;else{const e=r[i-1],n=t.indexOf(e,i-1);-1!==n&&(a=n+1)}e.setSelectionRange(a,a)}catch(Ha){g(!1,`Something warning of cursor restore. Please fire issue about this: ${Ha.message}`)}}]}(U.current,V),me=e=>le&&!e.lessEquals(le)?le:se&&!se.lessEquals(e)?se:null,he=e=>!me(e),ge=(e,t)=>{let n=e,r=he(n)||n.isEmpty();if(n.isEmpty()||t||(n=me(n)||n,r=!0),!h&&!f&&r){const e=n.toString(),r=J(e,t);return r>=0&&(n=MA(IA(e,".",r)),he(n)||(n=MA(IA(e,".",r,!0)))),n.equals(Q)||(o=n,void 0===m&&Z(o),M?.(n.isEmpty()?null:zA(S,n)),void 0===m&&ae(n,t)),n}var o;return Q},be=(()=>{const e=(0,r.useRef)(0),t=()=>{fe.cancel(e.current)};return(0,r.useEffect)(()=>t,[]),n=>{t(),e.current=fe(()=>{n()})}})(),ve=e=>{if(de(),te.current=e,ie(e),!q.current){const t=ee(e),n=MA(t);n.isNaN()||ge(n,!0)}P?.(e),be(()=>{let t=e;E||(t=e.replace(/\u3002/g,".")),t!==e&&ve(t)})},ye=A((e,t)=>{if(e&&ce||!e&&ue)return;K.current=!1;let n=MA(G.current?RA(d):d);e||(n=n.negate());const r=(Q||MA(0)).add(n.toString()),o=ge(r,!1);O?.(zA(S,o),{offset:G.current?RA(d):d,type:e?"up":"down",emitter:t}),U.current?.focus()}),$e=e=>{const t=MA(ee(oe));let n;n=t.isNaN()?ge(Q,e):ge(t,e),void 0!==m?ae(Q,!1):n.isNaN()||ae(n,!1)};r.useEffect(()=>{if($&&V){const e=e=>{ye(e.deltaY<0,"wheel"),e.preventDefault()},t=U.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),()=>t.removeEventListener("wheel",e)}});D(()=>{Q.isInvalidate()||ae(Q,!1)},[N,k]),D(()=>{const e=MA(m);Z(e);const t=MA(ee(oe));e.equals(t)&&K.current&&!k||ae(e,K.current)},[m]),D(()=>{k&&pe()},[oe]);const Ce={prefixCls:o,onStep:ye,className:l?.action,style:s?.action},xe=r.createElement(PA,OA({},Ce,{action:"up",disabled:ce}),b),we=r.createElement(PA,OA({},Ce,{action:"down",disabled:ue}),v);return r.createElement("div",{ref:Y,className:re(o,`${o}-mode-${n}`,i,l?.root,{[`${o}-focused`]:V,[`${o}-disabled`]:f,[`${o}-readonly`]:h,[`${o}-not-a-number`]:Q.isNaN(),[`${o}-out-of-range`]:!Q.isInvalidate()&&!he(Q)}),style:{...s?.root,...a},onMouseDown:e=>{U.current&&e.target!==U.current&&(U.current.focus(),e.preventDefault()),z?.(e)},onMouseUp:B,onMouseLeave:H,onMouseMove:L,onMouseEnter:j,onMouseOut:F,onClick:T,onFocus:()=>{X(!0)},onBlur:()=>{W&&$e(!1),X(!1),K.current=!1},onKeyDown:e=>{const{key:t,shiftKey:n}=e;K.current=!0,G.current=n,"Enter"===t&&(q.current||(K.current=!1),$e(!1),R?.(e)),!1!==y&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(ye("Up"===t||"ArrowUp"===t,"keyboard"),e.preventDefault())},onKeyUp:()=>{K.current=!1,G.current=!1},onCompositionStart:()=>{q.current=!0},onCompositionEnd:()=>{q.current=!1,ve(U.current.value)},onBeforeInput:()=>{K.current=!0}},"spinner"===n&&C&&we,void 0!==x&&r.createElement("div",{className:re(`${o}-prefix`,l?.prefix),style:s?.prefix},x),r.createElement("input",OA({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":u,"aria-valuenow":Q.isInvalidate()?null:Q.toString(),step:d,ref:U,className:re(`${o}-input`,l?.input),style:s?.input,value:oe,onChange:e=>{ve(e.target.value)},disabled:f,readOnly:h},_)),void 0!==w&&r.createElement("div",{className:re(`${o}-suffix`,l?.suffix),style:s?.suffix},w),"spinner"===n&&C&&xe,"input"===n&&C&&r.createElement("div",{className:re(`${o}-actions`,l?.actions),style:s?.actions},xe,we))});const BA=TA,HA=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:i,fontSizeLG:a,fontSizeSM:l,borderRadiusLG:s,borderRadiusSM:c,colorBgContainerDisabled:u,lineWidth:d,antCls:p}=e,[m,f]=Do(p,"space");return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,borderWidth:d,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:a,borderRadius:s},"&-small":{paddingInline:i,borderRadius:c,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[m("addon-border-color")]:o,[m("addon-background")]:u,[m("addon-border-color-outlined")]:o,[m("addon-background-filled")]:u,borderColor:f("addon-border-color"),background:f("addon-background"),"&-variant-outlined":{[m("addon-border-color")]:f("addon-border-color-outlined")},"&-variant-filled":{[m("addon-border-color")]:"transparent",[m("addon-background")]:f("addon-background-filled"),[`&${t}-disabled`]:{[m("addon-border-color")]:o,[m("addon-background")]:u}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[m("addon-border-color-outlined")]:e.colorError,[m("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[m("addon-border-color-outlined")]:e.colorWarning,[m("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},DA=To(["Space","Addon"],e=>[HA(e),_d(e,{focus:!1})]),LA=r.forwardRef((e,t)=>{const{className:n,children:o,style:i,prefixCls:a,variant:l="outlined",disabled:s,status:c,...u}=e,{getPrefixCls:d,direction:p}=r.useContext(ye),m=d("space-addon",a),[f,h]=DA(m),{compactItemClassnames:g,compactSize:b}=cu(m,p),v=re(m,f,g,h,`${m}-variant-${l}`,ev(m,c),{[`${m}-${b}`]:b,[`${m}-disabled`]:s},n);return r.createElement("div",{ref:t,className:v,style:i,...u},o)}),jA=LA,FA=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),WA=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])":{...FA(ir(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),_A=(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}}),VA=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{..._A(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),XA=(e,t)=>({"&-outlined":{..._A(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...WA(e)},...VA(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...VA(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),KA=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),qA=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...KA(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...KA(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...WA(e)}}}}),GA=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},YA=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),UA=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...YA(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),QA=(e,t)=>({"&-filled":{...YA(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...WA(e)},...UA(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...UA(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),ZA=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),JA=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...ZA(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...ZA(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:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),eT=(e,t)=>({background:e.colorBgContainer,borderWidth:`${lt(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),tT=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...eT(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),nT=(e,t)=>({"&-underlined":{...eT(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...tT(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...tT(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),rT=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),oT=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${lt(t)} ${lt(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},iT=e=>({padding:`${lt(e.paddingBlockSM)} ${lt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),aT=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${lt(e.paddingBlock)} ${lt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...rT(e.colorTextPlaceholder),"&-lg":{...oT(e),...t.largeStyle},"&-sm":{...iT(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}},lT=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`]:{...oT(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...iT(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{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 ${lt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${lt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${lt(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${lt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${lt(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}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{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`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{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 & > ${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 & > ${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 & > ${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`]:{}}}}},sT=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]:{...br(e),...aT(e),...XA(e),...QA(e),...GA(e),...nT(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},cT=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${lt(e.inputAffixPadding)}`}}}},uT=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:{...aT(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...cT(e),[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},dT=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...br(e),...lT(e),"&-rtl":{direction:"rtl"},"&-wrapper":{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}},...qA(e),...JA(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},pT=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},mT=To(["Input","Shared"],e=>{const t=ir(e,FM(e));return[sT(t),uT(t)]},WM,{resetFont:!1}),fT=To(["Input","Component"],e=>{const t=ir(e,FM(e));return[dT(t),pT(t),_d(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},WM,{resetFont:!1}),hT=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,colorError:l,paddingInlineSM:s,paddingBlockSM:c,paddingBlockLG:u,paddingInlineLG:d,colorIcon:p,motionDurationMid:m,handleHoverColor:f,handleOpacity:h,paddingInline:g,paddingBlock:b,handleBg:v,handleActiveBg:y,inputAffixPadding:$,borderRadiusSM:C,controlWidth:x,handleBorderColor:w,filledHandleBg:S,lineHeightLG:E,antCls:k}=e,N=`${lt(n)} ${r} ${w}`,[I,M]=Do(k,"input-number");return[{[t]:{...br(e),...aT(e),[I("input-padding-block")]:lt(b),[I("input-padding-inline")]:lt(g),display:"inline-flex",width:x,margin:0,paddingBlock:0,borderRadius:o,...XA(e,{[`${t}-actions`]:{background:v,[`${t}-action-down`]:{borderBlockStart:N}}}),...QA(e,{[`${t}-actions`]:{background:S,[`${t}-action-down`]:{borderBlockStart:N}},"&:focus-within":{[`${t}-actions`]:{background:v}}}),...nT(e,{[`${t}-actions`]:{background:v,[`${t}-action-down`]:{borderBlockStart:N}}}),...GA(e),[`&${t}-borderless`]:{paddingBlock:0,[I("input-padding-block")]:lt(e.calc(b).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[I("input-padding-block")]:lt(e.calc(c).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[I("input-padding-block")]:lt(e.calc(u).add(n).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:l}},[`${t}-input`]:{...br(e),width:"100%",paddingBlock:M("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...rT(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`\n ${t}-action-up-disabled,\n ${t}-action-down-disabled\n `]:{cursor:"not-allowed"},[`${t}-action`]:{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"},userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${m} linear`,"&:active":{background:y},"&:hover":{color:f}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:h,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:p,height:"50%",borderInlineStart:N,"&:hover":{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:M("input-padding-inline"),"&-up":{borderInlineStart:N},"&-down":{borderInlineEnd:N}},[`${t}-input`]:{textAlign:"center",paddingInline:M("input-padding-inline")}}}},{[t]:{"&-lg":{[I("input-padding-block")]:lt(u),[I("input-padding-inline")]:lt(d),paddingBlock:0,fontSize:a,lineHeight:E},"&-sm":{[I("input-padding-block")]:lt(c),[I("input-padding-inline")]:lt(s),paddingBlock:0,fontSize:i,borderRadius:C}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:$},[`${t}-suffix`]:{height:"100%",marginInlineStart:$,transition:`margin ${m}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},gT=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},bT=To("InputNumber",e=>{const t=ir(e,FM(e));return[hT(t),gT(t),_d(t)]},e=>{const t=e.handleVisible??"auto",n=e.controlHeightSM-2*e.lineWidth;return{...WM(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Or(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===t?1:0,handleVisibleWidth:!0===t?n:0}},{unitless:{handleOpacity:!0},resetFont:!1}),vT=r.forwardRef((e,t)=>{const n=r.useRef(null);r.useImperativeHandle(t,()=>n.current);const{rootClassName:o,size:i,disabled:a,prefixCls:l,addonBefore:s,addonAfter:c,prefix:u,suffix:d,bordered:p,readOnly:m,status:f,controls:h=!0,variant:g,className:b,style:v,classNames:y,styles:$,mode:C,...x}=e,{direction:w,className:S,style:E,styles:k,classNames:N}=xe("inputNumber"),I=r.useContext($c),M=a??I,P=r.useMemo(()=>!(!h||M||m)&&h,[h,M,m]),{compactSize:R,compactItemClassnames:O}=cu(l,w);let z="spinner"===C?r.createElement(eP,null):r.createElement(hA,null),A="spinner"===C?r.createElement(pA,null):r.createElement(Xv,null);const T="boolean"===typeof P?P:void 0;"object"===typeof P&&(z=P.upIcon||z,A=P.downIcon||A);const{hasFeedback:B,isFormItemInput:H,feedbackIcon:D}=r.useContext(qm),L=ou(e=>i??R??e),[j,F]=uv("inputNumber",g,p),W=B&&r.createElement(r.Fragment,null,D),_={...e,size:L,disabled:M,controls:P},[V,X]=Ca([N,y],[k,$],{props:_});return r.createElement(BA,{ref:n,mode:C,disabled:M,className:re(b,o,V.root,S,O,ev(l,f,B),{[`${l}-${j}`]:F,[`${l}-lg`]:"large"===L,[`${l}-sm`]:"small"===L,[`${l}-rtl`]:"rtl"===w,[`${l}-in-form-item`]:H,[`${l}-without-controls`]:!P}),style:{...X.root,...E,...v},upHandler:z,downHandler:A,prefixCls:l,readOnly:m,controls:T,prefix:u,suffix:W||d,classNames:V,styles:X,...x})}),yT=r.forwardRef((e,t)=>{const{addonBefore:n,addonAfter:o,prefixCls:i,className:a,status:l,rootClassName:s,...c}=e,{getPrefixCls:u}=xe("inputNumber"),d=u("input-number",i),{status:p}=r.useContext(qm),m=tv(p,l),f=Ka(d),[h,g]=bT(d,f),b=n||o;const v=r.createElement(vT,{ref:t,...c,prefixCls:d,status:m,className:re(g,f,h,a),rootClassName:b?void 0:s});if(b){const t=t=>t?r.createElement(jA,{className:re(`${d}-addon`,g,h),variant:e.variant,disabled:e.disabled,status:m},r.createElement(Um,{form:!0},t)):null,i=t(n),a=t(o);return r.createElement(pu,{rootClassName:s},i,v,a)}return v}),$T=yT;$T._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(jc,{theme:{components:{InputNumber:{handleVisible:!0}}}},r.createElement(yT,{...e}));const CT=$T,xT=e=>{let{prefixCls:t,min:n=0,max:o=100,value:i,onChange:a,className:l,formatter:s}=e;const c=`${t}-steppers`,[u,d]=(0,r.useState)(0),p=Number.isNaN(i)?u:i;return r.createElement(CT,{className:re(c,l),min:n,max:o,value:p,formatter:s,size:"small",onChange:e=>{d(e||0),a?.(e)}})},wT=e=>{let{prefixCls:t,value:n,onChange:o}=e;const i=`${t}-alpha-input`,[a,l]=(0,r.useState)(()=>xd(n||"#000")),s=n||a;return r.createElement(xT,{value:Sd(s),prefixCls:t,formatter:e=>`${e}%`,className:i,onChange:e=>{const t=s.toHsb();t.a=(e||0)/100;const n=xd(t);l(n),o?.(n)}})};function ST(e,t,n){const 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(...arguments)},o}function ET(e,t,n,r){if(!n)return;let o=t;return"click"===t.type?(o=ST(t,e,""),void n(o)):"file"!==e.type&&void 0!==r?(o=ST(t,e,r),void n(o)):void n(o)}function kT(){return kT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kT.apply(this,arguments)}const NT=r.forwardRef((e,t)=>{const{inputElement:n,children:o,prefixCls:i,prefix:a,suffix:l,addonBefore:s,addonAfter:c,className:u,style:d,disabled:p,readOnly:m,focused:f,triggerFocus:h,allowClear:g,value:b,handleReset:v,hidden:y,classes:$,classNames:C,dataAttrs:x,styles:w,components:S,onClear:E}=e,k=o??n,N=S?.affixWrapper||"span",I=S?.groupWrapper||"span",M=S?.wrapper||"span",P=S?.groupAddon||"span",R=(0,r.useRef)(null),O=e=>{R.current?.contains(e.target)&&h?.()},z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e);let A=(0,r.cloneElement)(k,{value:b,className:re(k.props?.className,!z&&C?.variant)||null});const T=(0,r.useRef)(null);if(r.useImperativeHandle(t,()=>({nativeElement:T.current||R.current})),z){let e=null;if(g){const t=!p&&!m&&b,n=`${i}-clear-icon`,o="object"===typeof g&&g?.clearIcon?g.clearIcon:"\u2716";e=r.createElement("button",{type:"button",tabIndex:-1,onClick:e=>{v?.(e),E?.()},onMouseDown:e=>e.preventDefault(),className:re(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!l})},o)}const t=`${i}-affix-wrapper`,n=re(t,{[`${i}-disabled`]:p,[`${t}-disabled`]:p,[`${t}-focused`]:f,[`${t}-readonly`]:m,[`${t}-input-with-clear-btn`]:l&&g&&b},$?.affixWrapper,C?.affixWrapper,C?.variant),o=(l||g)&&r.createElement("span",{className:re(`${i}-suffix`,C?.suffix),style:w?.suffix},e,l);A=r.createElement(N,kT({className:n,style:w?.affixWrapper,onClick:O},x?.affixWrapper,{ref:R}),a&&r.createElement("span",{className:re(`${i}-prefix`,C?.prefix),style:w?.prefix},a),A,o)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){const e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,o=re(`${i}-wrapper`,e,$?.wrapper,C?.wrapper),a=re(n,{[`${n}-disabled`]:p},$?.group,C?.groupWrapper);A=r.createElement(I,{className:a,ref:T},r.createElement(M,{className:o},s&&r.createElement(P,{className:t},s),A,c&&r.createElement(P,{className:t},c)))}return r.cloneElement(A,{className:re(A.props?.className,u)||null,style:{...A.props?.style,...d},hidden:y})}),IT=NT;function MT(e,t){return r.useMemo(()=>{let n={};t&&(n.show="object"===typeof t&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...o}=n;return{...o,show:!!r,showFormatter:"function"===typeof r?r:void 0,strategy:o.strategy||(e=>e.length)}},[e,t])}function PT(){return PT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PT.apply(this,arguments)}const RT=(0,r.forwardRef)((e,t)=>{const{autoComplete:n,onChange:o,onFocus:i,onBlur:a,onPressEnter:l,onKeyDown:s,onKeyUp:c,prefixCls:u="rc-input",disabled:d,htmlSize:p,className:m,maxLength:f,suffix:h,showCount:g,count:b,type:v="text",classes:y,classNames:$,styles:C,onCompositionStart:x,onCompositionEnd:w,...S}=e,[E,k]=(0,r.useState)(!1),N=(0,r.useRef)(!1),I=(0,r.useRef)(!1),M=(0,r.useRef)(null),P=(0,r.useRef)(null),R=e=>{M.current&&cp(M.current,e)},[O,z]=F(e.defaultValue,e.value),A=void 0===O||null===O?"":String(O),[T,B]=(0,r.useState)(null),H=MT(b,g),D=H.max||f,L=H.strategy(A),j=!!D&&L>D;(0,r.useImperativeHandle)(t,()=>({focus:R,blur:()=>{M.current?.blur()},setSelectionRange:(e,t,n)=>{M.current?.setSelectionRange(e,t,n)},select:()=>{M.current?.select()},input:M.current,nativeElement:P.current?.nativeElement||M.current})),(0,r.useEffect)(()=>{I.current&&(I.current=!1),k(e=>(!e||!d)&&e)},[d]);const W=(e,t,n)=>{let r=t;if(!N.current&&H.exceedFormatter&&H.max&&H.strategy(t)>H.max)r=H.exceedFormatter(t,{max:H.max}),t!==r&&B([M.current?.selectionStart||0,M.current?.selectionEnd||0]);else if("compositionEnd"===n.source)return;z(r),M.current&&ET(M.current,e,o,r)};(0,r.useEffect)(()=>{T&&M.current?.setSelectionRange(...T)},[T]);const _=e=>{W(e,e.target.value,{source:"change"})},V=e=>{N.current=!1,W(e,e.currentTarget.value,{source:"compositionEnd"}),w?.(e)},X=e=>{!l||"Enter"!==e.key||I.current||e.nativeEvent.isComposing||(I.current=!0,l(e)),s?.(e)},K=e=>{"Enter"===e.key&&(I.current=!1),c?.(e)},q=e=>{k(!0),i?.(e)},G=e=>{I.current&&(I.current=!1),k(!1),a?.(e)},U=j&&`${u}-out-of-range`;return r.createElement(IT,PT({},S,{prefixCls:u,className:re(m,U),handleReset:e=>{z(""),R(),M.current&&ET(M.current,e,o)},value:A,focused:E,triggerFocus:R,suffix:(()=>{const e=Number(D)>0;if(h||H.show){const t=H.showFormatter?H.showFormatter({value:A,count:L,maxLength:D}):`${L}${e?` / ${D}`:""}`;return r.createElement(r.Fragment,null,H.show&&r.createElement("span",{className:re(`${u}-show-count-suffix`,{[`${u}-show-count-has-suffix`]:!!h},$?.count),style:{...C?.count}},t),h)}return null})(),disabled:d,classes:y,classNames:$,styles:C,ref:P}),(()=>{const t=Y(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return r.createElement("input",PT({autoComplete:n},t,{onChange:_,onFocus:q,onBlur:G,onKeyDown:X,onKeyUp:K,className:re(u,{[`${u}-disabled`]:d},$?.input),style:C?.input,ref:M,size:p,type:v,onCompositionStart:e=>{N.current=!0,x?.(e)},onCompositionEnd:V}))})())}),OT=RT,zT=e=>{let t;return"object"===typeof e&&e?.clearIcon?t=e:e&&(t={clearIcon:r.createElement(mi,null)}),t};function AT(e,t){const n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout(()=>{e.current?.input&&"password"===e.current?.input.getAttribute("type")&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return(0,r.useEffect)(()=>(t&&o(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}const TT=(0,r.forwardRef)((e,t)=>{const{prefixCls:n,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:p,addonBefore:m,className:f,style:h,styles:g,rootClassName:b,onChange:v,classNames:y,variant:$,...C}=e;const{getPrefixCls:x,direction:S,allowClear:E,autoComplete:k,className:N,style:I,classNames:M,styles:P}=xe("input"),R=x("input",n),O=(0,r.useRef)(null),z=Ka(R),[A,T]=mT(R,b);fT(R,z);const{compactSize:B,compactItemClassnames:H}=cu(R,S),D=ou(e=>a??B??e),L=r.useContext($c),j=l??L,F={...e,size:D,disabled:j},[W,_]=Ca([M,y],[P,g],{props:F}),{status:V,hasFeedback:X,feedbackIcon:K}=(0,r.useContext)(qm),q=tv(V,i),G=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!X;(0,r.useRef)(G);const Y=AT(O,!0),U=(X||u)&&r.createElement(r.Fragment,null,u,X&&K),Q=zT(d??E),[Z,J]=uv("input",$,o);return r.createElement(OT,{ref:w(t,O),prefixCls:R,autoComplete:k,...C,disabled:j,onBlur:e=>{Y(),s?.(e)},onFocus:e=>{Y(),c?.(e)},style:{..._.root,...I,...h},styles:_,suffix:U,allowClear:Q,className:re(f,b,T,z,H,N,W.root),onChange:e=>{Y(),v?.(e)},addonBefore:m&&r.createElement(Um,{form:!0,space:!0},m),addonAfter:p&&r.createElement(Um,{form:!0,space:!0},p),classNames:{...W,input:re({[`${R}-sm`]:"small"===D,[`${R}-lg`]:"large"===D,[`${R}-rtl`]:"rtl"===S},W.input,A),variant:re({[`${R}-${Z}`]:J},ev(R,q)),affixWrapper:re({[`${R}-affix-wrapper-sm`]:"small"===D,[`${R}-affix-wrapper-lg`]:"large"===D,[`${R}-affix-wrapper-rtl`]:"rtl"===S},A),wrapper:re({[`${R}-group-rtl`]:"rtl"===S},A),groupWrapper:re({[`${R}-group-wrapper-sm`]:"small"===D,[`${R}-group-wrapper-lg`]:"large"===D,[`${R}-group-wrapper-rtl`]:"rtl"===S,[`${R}-group-wrapper-${Z}`]:J},ev(`${R}-group-wrapper`,q,X),A)}})});const BT=TT,HT=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,DT=e=>{let{prefixCls:t,value:n,onChange:o}=e;const i=`${t}-hex-input`,[a,l]=(0,r.useState)(()=>n?Yu(n.toHexString()):void 0);(0,r.useEffect)(()=>{n&&l(Yu(n.toHexString()))},[n]);return r.createElement(BT,{className:i,value:a,prefix:"#",onChange:e=>{const t=e.target.value;var n;l(Yu(t)),n=Yu(t,!0),HT.test(`#${n}`)&&o?.(xd(t))},size:"small"})},LT=e=>{let{prefixCls:t,value:n,onChange:o}=e;const i=`${t}-hsb-input`,[a,l]=(0,r.useState)(()=>xd(n||"#000")),s=n||a,c=(e,t)=>{const n=s.toHsb();n[t]="h"===t?e:(e||0)/100;const r=xd(n);l(r),o?.(r)};return r.createElement("div",{className:i},r.createElement(xT,{max:360,min:0,value:Number(s.toHsb().h),prefixCls:t,className:i,formatter:e=>wd(e||0).toString(),onChange:e=>c(Number(e),"h")}),r.createElement(xT,{max:100,min:0,value:100*Number(s.toHsb().s),prefixCls:t,className:i,formatter:e=>`${wd(e||0)}%`,onChange:e=>c(Number(e),"s")}),r.createElement(xT,{max:100,min:0,value:100*Number(s.toHsb().b),prefixCls:t,className:i,formatter:e=>`${wd(e||0)}%`,onChange:e=>c(Number(e),"b")}))},jT=e=>{let{prefixCls:t,value:n,onChange:o}=e;const i=`${t}-rgb-input`,[a,l]=(0,r.useState)(()=>xd(n||"#000")),s=n||a,c=(e,t)=>{const n=s.toRgb();n[t]=e||0;const r=xd(n);l(r),o?.(r)};return r.createElement("div",{className:i},r.createElement(xT,{max:255,min:0,value:Number(s.toRgb().r),prefixCls:t,className:i,onChange:e=>c(Number(e),"r")}),r.createElement(xT,{max:255,min:0,value:Number(s.toRgb().g),prefixCls:t,className:i,onChange:e=>c(Number(e),"g")}),r.createElement(xT,{max:255,min:0,value:Number(s.toRgb().b),prefixCls:t,className:i,onChange:e=>c(Number(e),"b")}))},FT=[lA,cA,sA].map(e=>({value:e,label:e.toUpperCase()})),WT=e=>{const{prefixCls:t,format:n,value:o,disabledAlpha:i,onFormatChange:a,onChange:l,disabledFormat:s}=e,[c,u]=F(lA,n),d=`${t}-input`,p=(0,r.useMemo)(()=>{const e={value:o,prefixCls:t,onChange:l};switch(c){case cA:return r.createElement(LT,{...e});case sA:return r.createElement(jT,{...e});default:return r.createElement(DT,{...e})}},[c,t,o,l]);return r.createElement("div",{className:`${d}-container`},!s&&r.createElement(ty,{value:c,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{u(e),a?.(e)},className:`${t}-format-select`,size:"small",options:FT}),r.createElement("div",{className:d},p),!i&&r.createElement(wT,{prefixCls:t,value:o,onChange:l}))};function _T(e,t,n){return(e-t)/(n-t)}function VT(e,t,n,r){const o=_T(t,n,r),i={};switch(e){case"rtl":i.right=100*o+"%",i.transform="translateX(50%)";break;case"btt":i.bottom=100*o+"%",i.transform="translateY(50%)";break;case"ttb":i.top=100*o+"%",i.transform="translateY(-50%)";break;default:i.left=100*o+"%",i.transform="translateX(-50%)"}return i}function XT(e,t){return Array.isArray(e)?e[t]:e}const KT=r.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),qT=r.createContext({});function GT(){return GT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GT.apply(this,arguments)}const YT=r.forwardRef((e,t)=>{const{prefixCls:n,value:o,valueIndex:i,onStartMove:a,onDelete:l,style:s,render:c,dragging:u,draggingDelete:d,onOffsetChange:p,onChangeComplete:m,onFocus:f,onMouseEnter:h,...g}=e,{min:b,max:v,direction:y,disabled:$,keyboard:C,range:x,tabIndex:w,ariaLabelForHandle:S,ariaLabelledByForHandle:E,ariaRequired:k,ariaValueTextFormatterForHandle:N,styles:I,classNames:M}=r.useContext(KT),P=`${n}-handle`,R=e=>{$||a(e,i)},O=e=>{f?.(e,i)},z=e=>{h(e,i)},A=e=>{if(!$&&C){let t=null;switch(e.which||e.keyCode){case ul.LEFT:t="ltr"===y||"btt"===y?-1:1;break;case ul.RIGHT:t="ltr"===y||"btt"===y?1:-1;break;case ul.UP:t="ttb"!==y?1:-1;break;case ul.DOWN:t="ttb"!==y?-1:1;break;case ul.HOME:t="min";break;case ul.END:t="max";break;case ul.PAGE_UP:t=2;break;case ul.PAGE_DOWN:t=-2;break;case ul.BACKSPACE:case ul.DELETE:l?.(i)}null!==t&&(e.preventDefault(),p(t,i))}},T=e=>{switch(e.which||e.keyCode){case ul.LEFT:case ul.RIGHT:case ul.UP:case ul.DOWN:case ul.HOME:case ul.END:case ul.PAGE_UP:case ul.PAGE_DOWN:m?.()}},B=VT(y,o,b,v);let H={};null!==i&&(H={tabIndex:$?null:XT(w,i),role:"slider","aria-valuemin":b,"aria-valuemax":v,"aria-valuenow":o,"aria-disabled":$,"aria-label":XT(S,i),"aria-labelledby":XT(E,i),"aria-required":XT(k,i),"aria-valuetext":XT(N,i)?.(o),"aria-orientation":"ltr"===y||"rtl"===y?"horizontal":"vertical",onMouseDown:R,onTouchStart:R,onFocus:O,onMouseEnter:z,onKeyDown:A,onKeyUp:T});let D=r.createElement("div",GT({ref:t,className:re(P,{[`${P}-${i+1}`]:null!==i&&x,[`${P}-dragging`]:u,[`${P}-dragging-delete`]:d},M.handle),style:{...B,...s,...I.handle}},H,g));return c&&(D=c(D,{index:i,prefixCls:n,value:o,dragging:u,draggingDelete:d})),D});const UT=YT;function QT(){return QT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QT.apply(this,arguments)}const ZT=r.forwardRef((e,t)=>{const{prefixCls:n,style:o,onStartMove:i,onOffsetChange:a,values:l,handleRender:s,activeHandleRender:c,draggingIndex:u,draggingDelete:d,onFocus:p,...m}=e,f=r.useRef({}),[h,g]=r.useState(!1),[b,v]=r.useState(-1),y=e=>{v(e),g(!0)};r.useImperativeHandle(t,()=>({focus:e=>{f.current[e]?.focus()},hideHelp:()=>{(0,sl.flushSync)(()=>{g(!1)})}}));const $={prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:(e,t)=>{y(t),p?.(e)},onMouseEnter:(e,t)=>{y(t)},...m};return r.createElement(r.Fragment,null,l.map((e,t)=>{const n=u===t;return r.createElement(UT,QT({ref:e=>{e?f.current[t]=e:delete f.current[t]},dragging:n,draggingDelete:n&&d,style:XT(o,t),key:t,value:e,valueIndex:t},$))}),c&&h&&r.createElement(UT,QT({key:"a11y"},$,{value:l[b],valueIndex:null,dragging:-1!==u,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const JT=ZT,eB=e=>{const{prefixCls:t,style:n,children:o,value:i,onClick:a}=e,{min:l,max:s,direction:c,includedStart:u,includedEnd:d,included:p}=r.useContext(KT),m=`${t}-text`,f=VT(c,i,l,s);return r.createElement("span",{className:re(m,{[`${m}-active`]:p&&u<=i&&i<=d}),style:{...f,...n},onMouseDown:e=>{e.stopPropagation()},onClick:()=>{a(i)}},o)},tB=e=>{const{prefixCls:t,marks:n,onClick:o}=e,i=`${t}-mark`;return n.length?r.createElement("div",{className:i},n.map(e=>{let{value:t,style:n,label:a}=e;return r.createElement(eB,{key:t,prefixCls:i,style:n,value:t,onClick:o},a)})):null},nB=e=>{const{prefixCls:t,value:n,style:o,activeStyle:i}=e,{min:a,max:l,direction:s,included:c,includedStart:u,includedEnd:d}=r.useContext(KT),p=`${t}-dot`,m=c&&u<=n&&n<=d;let f={...VT(s,n,a,l),..."function"===typeof o?o(n):o};return m&&(f={...f,..."function"===typeof i?i(n):i}),r.createElement("span",{className:re(p,{[`${p}-active`]:m}),style:f})},rB=e=>{const{prefixCls:t,marks:n,dots:o,style:i,activeStyle:a}=e,{min:l,max:s,step:c}=r.useContext(KT),u=r.useMemo(()=>{const e=new Set;if(n.forEach(t=>{e.add(t.value)}),o&&null!==c){let t=l;for(;t<=s;)e.add(t),t+=c}return Array.from(e)},[l,s,c,o,n]);return r.createElement("div",{className:`${t}-step`},u.map(e=>r.createElement(nB,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})))},oB=e=>{const{prefixCls:t,style:n,start:o,end:i,index:a,onStartMove:l,replaceCls:s}=e,{direction:c,min:u,max:d,disabled:p,range:m,classNames:f}=r.useContext(KT),h=`${t}-track`,g=_T(o,u,d),b=_T(i,u,d),v=e=>{!p&&l&&l(e,-1)},y={};switch(c){case"rtl":y.right=100*g+"%",y.width=100*b-100*g+"%";break;case"btt":y.bottom=100*g+"%",y.height=100*b-100*g+"%";break;case"ttb":y.top=100*g+"%",y.height=100*b-100*g+"%";break;default:y.left=100*g+"%",y.width=100*b-100*g+"%"}const $=s||re(h,{[`${h}-${a+1}`]:null!==a&&m,[`${t}-track-draggable`]:l},f.track);return r.createElement("div",{className:$,style:{...y,...n},onMouseDown:v,onTouchStart:v})},iB=e=>{const{prefixCls:t,style:n,values:o,startPoint:i,onStartMove:a}=e,{included:l,range:s,min:c,styles:u,classNames:d}=r.useContext(KT),p=r.useMemo(()=>{if(!s){if(0===o.length)return[];const e=i??c,t=o[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}const e=[];for(let t=0;t<o.length-1;t+=1)e.push({start:o[t],end:o[t+1]});return e},[o,s,i,c]);if(!l)return null;const m=p?.length&&(d.tracks||u.tracks)?r.createElement(oB,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:re(d.tracks,`${t}-tracks`),style:u.tracks}):null;return r.createElement(r.Fragment,null,m,p.map((e,o)=>{let{start:i,end:l}=e;return r.createElement(oB,{index:o,prefixCls:t,style:{...XT(n,o),...u.track},start:i,end:l,key:o,onStartMove:a})}))};function aB(e){const t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}const lB=function(e,t,n,o,i,a,l,s,c,u,d){const[p,m]=r.useState(null),[f,h]=r.useState(-1),[g,b]=r.useState(!1),[v,y]=r.useState(n),[$,C]=r.useState(n),x=r.useRef(null),w=r.useRef(null),S=r.useRef(null),{onDragStart:E,onDragChange:k}=r.useContext(qT);L(()=>{-1===f&&y(n)},[n,f]),r.useEffect(()=>()=>{document.removeEventListener("mousemove",x.current),document.removeEventListener("mouseup",w.current),S.current&&(S.current.removeEventListener("touchmove",x.current),S.current.removeEventListener("touchend",w.current))},[]);const N=(e,t,n)=>{void 0!==t&&m(t),y(e);let r=e;n&&(r=e.filter((e,t)=>t!==f)),l(r),k&&k({rawValues:e,deleteIndex:n?f:-1,draggingIndex:f,draggingValue:t})},I=A((e,t,n)=>{if(-1===e){const e=$[0],n=$[$.length-1],r=o-e,l=i-n;let s=t*(i-o);s=Math.max(s,r),s=Math.min(s,l);const c=a(e+s);s=c-e;const u=$.map(e=>e+s);N(u)}else{const r=(i-o)*t,a=[...v];a[e]=$[e];const l=c(a,r,e,"dist");N(l.values,l.value,n)}}),M=r.useMemo(()=>{const e=[...n].sort((e,t)=>e-t),t=[...v].sort((e,t)=>e-t),r={};t.forEach(e=>{r[e]=(r[e]||0)+1}),e.forEach(e=>{r[e]=(r[e]||0)-1});const o=u?1:0,i=Object.values(r).reduce((e,t)=>e+Math.abs(t),0);return i<=o?v:n},[n,v,u]);return[f,p,g,M,(r,o,i)=>{r.stopPropagation();const a=i||n,l=a[o];h(o),m(l),C(a),y(a),b(!1);const{pageX:c,pageY:p}=aB(r);let f=!1;E&&E({rawValues:a,draggingIndex:o,draggingValue:l});const g=n=>{n.preventDefault();const{pageX:r,pageY:i}=aB(n),a=r-c,l=i-p,{width:s,height:m}=e.current.getBoundingClientRect();let h,g;switch(t){case"btt":h=-l/m,g=a;break;case"ttb":h=l/m,g=a;break;case"rtl":h=-a/s,g=l;break;default:h=a/s,g=l}f=!!u&&(Math.abs(g)>130&&d<v.length),b(f),I(o,h,f)},$=e=>{e.preventDefault(),document.removeEventListener("mouseup",$),document.removeEventListener("mousemove",g),S.current&&(S.current.removeEventListener("touchmove",x.current),S.current.removeEventListener("touchend",w.current)),x.current=null,w.current=null,S.current=null,s(f),h(-1),b(!1)};document.addEventListener("mouseup",$),document.addEventListener("mousemove",g),r.currentTarget.addEventListener("touchend",$),r.currentTarget.addEventListener("touchmove",g),x.current=g,w.current=$,S.current=r.currentTarget}]};const sB=r.forwardRef((e,t)=>{const{prefixCls:n="rc-slider",className:o,style:i,classNames:a,styles:l,id:s,disabled:c=!1,keyboard:u=!0,autoFocus:d,onFocus:p,onBlur:m,min:f=0,max:h=100,step:b=1,value:v,defaultValue:y,range:$,count:C,onChange:x,onBeforeChange:w,onAfterChange:S,onChangeComplete:E,allowCross:k=!0,pushable:N=!1,reverse:I,vertical:M,included:P=!0,startPoint:R,trackStyle:O,handleStyle:z,railStyle:T,dotStyle:B,activeDotStyle:H,marks:D,dots:L,handleRender:j,activeHandleRender:W,track:_,tabIndex:V=0,ariaLabelForHandle:X,ariaLabelledByForHandle:K,ariaRequired:q,ariaValueTextFormatterForHandle:G}=e,Y=r.useRef(null),U=r.useRef(null),Q=r.useMemo(()=>M?I?"ttb":"btt":I?"rtl":"ltr",[I,M]),[Z,J,ee,te,ne]=function(e){return(0,r.useMemo)(()=>{if(!0===e||!e)return[!!e,!1,!1,0];const{editable:t,draggableTrack:n,minCount:r,maxCount:o}=e;return[!0,t,!t&&n,r||0,o]},[e])}($),oe=r.useMemo(()=>isFinite(f)?f:0,[f]),ie=r.useMemo(()=>isFinite(h)?h:100,[h]),ae=r.useMemo(()=>null!==b&&b<=0?1:b,[b]),le=r.useMemo(()=>"boolean"===typeof N?!!N&&ae:N>=0&&N,[N,ae]),se=r.useMemo(()=>Object.keys(D||{}).map(e=>{const t=D[e],n={value:Number(e)};return t&&"object"===typeof t&&!r.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n}).filter(e=>{let{label:t}=e;return t||"number"===typeof t}).sort((e,t)=>e.value-t.value),[D]),[ce,ue]=function(e,t,n,o,i,a){const l=r.useCallback(n=>Math.max(e,Math.min(t,n)),[e,t]),s=r.useCallback(r=>{if(null!==n){const o=e+Math.round((l(r)-e)/n)*n,i=e=>(String(e).split(".")[1]||"").length,a=Math.max(i(n),i(t),i(e)),s=Number(o.toFixed(a));return e<=s&&s<=t?s:null}return null},[n,e,t,l]),c=r.useCallback(r=>{const i=l(r),a=o.map(e=>e.value);null!==n&&a.push(s(r)),a.push(e,t);let c=a[0],u=t-e;return a.forEach(e=>{const t=Math.abs(i-e);t<=u&&(c=e,u=t)}),c},[e,t,o,n,l,s]),u=function(r,i,a){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"===typeof i){let c;const d=r[a],p=d+i;let m=[];o.forEach(e=>{m.push(e.value)}),m.push(e,t),m.push(s(d));const f=i>0?1:-1;"unit"===l?m.push(s(d+f*n)):m.push(s(p)),m=m.filter(e=>null!==e).filter(e=>i<0?e<=d:e>=d),"unit"===l&&(m=m.filter(e=>e!==d));const h="unit"===l?d:p;c=m[0];let g=Math.abs(c-h);if(m.forEach(e=>{const t=Math.abs(e-h);t<g&&(c=e,g=t)}),void 0===c)return i<0?e:t;if("dist"===l)return c;if(Math.abs(i)>1){const e=[...r];return e[a]=c,u(e,i-f,a,l)}return c}return"min"===i?e:"max"===i?t:void 0},d=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";const o=e[n],i=u(e,t,n,r);return{value:i,changed:i!==o}},p=e=>null===a&&0===e||"number"===typeof a&&e<a;return[c,function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";const o=e.map(c),l=o[n],s=u(o,t,n,r);if(o[n]=s,!1===i){const e=a||0;n>0&&o[n-1]!==l&&(o[n]=Math.max(o[n],o[n-1]+e)),n<o.length-1&&o[n+1]!==l&&(o[n]=Math.min(o[n],o[n+1]-e))}else if("number"===typeof a||null===a){for(let e=n+1;e<o.length;e+=1){let t=!0;for(;p(o[e]-o[e-1])&&t;)({value:o[e],changed:t}=d(o,1,e))}for(let e=n;e>0;e-=1){let t=!0;for(;p(o[e]-o[e-1])&&t;)({value:o[e-1],changed:t}=d(o,-1,e-1))}for(let e=o.length-1;e>0;e-=1){let t=!0;for(;p(o[e]-o[e-1])&&t;)({value:o[e-1],changed:t}=d(o,-1,e-1))}for(let e=0;e<o.length-1;e+=1){let t=!0;for(;p(o[e+1]-o[e])&&t;)({value:o[e+1],changed:t}=d(o,1,e+1))}}return{value:o[n],values:o}}]}(oe,ie,ae,se,k,le),[de,pe]=F(y,v),me=r.useMemo(()=>{const e=null===de||void 0===de?[]:Array.isArray(de)?de:[de],[t=oe]=e;let n=null===de?[]:[t];if(Z){if(n=[...e],C||void 0===de){const e=C>=0?C+1:2;for(n=n.slice(0,e);n.length<e;)n.push(n[n.length-1]??oe)}n.sort((e,t)=>e-t)}return n.forEach((e,t)=>{n[t]=ce(e)}),n},[de,Z,oe,C,ce]),fe=e=>Z?e:e[0],he=A(e=>{const t=[...e].sort((e,t)=>e-t);x&&!je(t,me,!0)&&x(fe(t)),pe(t)}),ge=A(e=>{e&&Y.current.hideHelp();const t=fe(me);S?.(t),g(!S,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),E?.(t)}),[be,ve,ye,$e,Ce]=lB(U,Q,me,oe,ie,ce,he,ge,ue,J,te),xe=(e,t)=>{if(!c){const n=[...me];let r=0,o=0,i=ie-oe;me.forEach((t,n)=>{const a=Math.abs(e-t);a<=i&&(i=a,r=n),t<e&&(o=n)});let a=r;J&&0!==i&&(!ne||me.length<ne)?(n.splice(o+1,0,e),a=o+1):n[r]=e,Z&&!me.length&&void 0===C&&n.push(e);const l=fe(n);w?.(l),he(n),t?(document.activeElement?.blur?.(),Y.current.focus(a),Ce(t,a,n)):(S?.(l),g(!S,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),E?.(l))}},[we,Se]=r.useState(null);r.useEffect(()=>{if(null!==we){const e=me.indexOf(we);e>=0&&Y.current.focus(e)}Se(null)},[we]);const Ee=r.useMemo(()=>(!ee||null!==ae)&&ee,[ee,ae]),ke=A((e,t)=>{Ce(e,t),w?.(fe(me))}),Ne=-1!==be;r.useEffect(()=>{if(!Ne){const e=me.lastIndexOf(ve);Y.current.focus(e)}},[Ne]);const Ie=r.useMemo(()=>[...$e].sort((e,t)=>e-t),[$e]),[Me,Pe]=r.useMemo(()=>Z?[Ie[0],Ie[Ie.length-1]]:[oe,Ie[0]],[Ie,Z,oe]);r.useImperativeHandle(t,()=>({focus:()=>{Y.current.focus(0)},blur:()=>{const{activeElement:e}=document;U.current?.contains(e)&&e?.blur()}})),r.useEffect(()=>{d&&Y.current.focus(0)},[]);const Re=r.useMemo(()=>({min:oe,max:ie,direction:Q,disabled:c,keyboard:u,step:ae,included:P,includedStart:Me,includedEnd:Pe,range:Z,tabIndex:V,ariaLabelForHandle:X,ariaLabelledByForHandle:K,ariaRequired:q,ariaValueTextFormatterForHandle:G,styles:l||{},classNames:a||{}}),[oe,ie,Q,c,u,ae,P,Me,Pe,Z,V,X,K,q,G,l,a]);return r.createElement(KT.Provider,{value:Re},r.createElement("div",{ref:U,className:re(n,o,{[`${n}-disabled`]:c,[`${n}-vertical`]:M,[`${n}-horizontal`]:!M,[`${n}-with-marks`]:se.length}),style:i,onMouseDown:e=>{e.preventDefault();const{width:t,height:n,left:r,top:o,bottom:i,right:a}=U.current.getBoundingClientRect(),{clientX:l,clientY:s}=e;let c;switch(Q){case"btt":c=(i-s)/n;break;case"ttb":c=(s-o)/n;break;case"rtl":c=(a-l)/t;break;default:c=(l-r)/t}xe(ce(oe+c*(ie-oe)),e)},id:s},r.createElement("div",{className:re(`${n}-rail`,a?.rail),style:{...T,...l?.rail}}),!1!==_&&r.createElement(iB,{prefixCls:n,style:O,values:me,startPoint:R,onStartMove:Ee?ke:void 0}),r.createElement(rB,{prefixCls:n,marks:se,dots:L,style:B,activeStyle:H}),r.createElement(JT,{ref:Y,prefixCls:n,style:z,values:$e,draggingIndex:be,draggingDelete:ye,onStartMove:ke,onOffsetChange:(e,t)=>{if(!c){const n=ue(me,e,t);w?.(fe(me)),he(n.values),Se(n.value)}},onFocus:p,onBlur:m,handleRender:j,activeHandleRender:W,onChangeComplete:ge,onDelete:J?e=>{if(c||!J||me.length<=te)return;const t=[...me];t.splice(e,1),w?.(fe(t)),he(t);const n=Math.max(0,e-1);Y.current.hideHelp(),Y.current.focus(n)}:void 0}),r.createElement(tB,{prefixCls:n,marks:se,onClick:xe})))});const cB=sB,uB=(0,r.createContext)({});const dB=r.forwardRef((e,t)=>{const{open:n,draggingDelete:o,value:i}=e,a=(0,r.useRef)(null),l=n&&!o,s=(0,r.useRef)(null);function c(){fe.cancel(s.current),s.current=null}return r.useEffect(()=>(l?s.current=fe(()=>{a.current?.forceAlign(),s.current=null}):c(),c),[l,e.title,i]),r.createElement(Jy,{ref:w(a,t),...e,open:l})}),pB=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:s,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:p,handleActiveOutlineColor:m,handleLineWidth:f,handleLineWidthHover:h,motionDurationMid:g}=e;return{[t]:{...br(e),position:"relative",height:r,margin:`${lt(a)} ${lt(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${lt(i)} ${lt(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${lt(f)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(f).mul(-1).equal(),insetBlockStart:c(f).mul(-1).equal(),width:c(u).add(c(f).mul(2)).equal(),height:c(u).add(c(f).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${lt(f)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:["inset-inline-start","inset-block-start","width","height","box-shadow","outline"].map(e=>`${e} ${g}`).join(", ")},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(h).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(h).mul(-1).equal(),width:c(d).add(c(h).mul(2)).equal(),height:c(d).add(c(h).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${lt(h)} ${p}`,outline:`6px solid ${m}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${lt(f)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${lt(f)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-container`]:{minWidth:"unset"}}}},mB=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:l}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",m=l(r).mul(3).sub(o).div(2).equal(),f=l(o).sub(r).div(2).equal(),h=t?{borderWidth:`${lt(f)} 0`,transform:`translateY(${lt(l(f).mul(-1).equal())})`}:{borderWidth:`0 ${lt(f)}`,transform:`translateX(${lt(e.calc(f).mul(-1).equal())})`};return{[s]:r,[u]:l(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:{...h},[`${n}-handle`]:{[d]:m},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:l(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:l(r).sub(i).div(2).equal()}}},fB=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:{...mB(e,!0),[`&${t}-with-marks`]:{marginBottom:n}}}},hB=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:{...mB(e,!1),height:"100%"}}},gB=To("Slider",e=>{const t=ir(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[pB(t),fB(t),hB(t)]},e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1.5,i=e.colorPrimary,a=new Or(i).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new Or(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function bB(){const[e,t]=r.useState(!1),n=r.useRef(null),o=()=>{fe.cancel(n.current)};return r.useEffect(()=>o,[]),[e,e=>{o(),e?t(e):n.current=fe(()=>{t(e)})}]}const vB=r.forwardRef((e,t)=>{const{prefixCls:n,range:o,className:i,rootClassName:a,style:l,disabled:s,tooltip:c={},onChangeComplete:u,classNames:d,styles:p,vertical:m,orientation:f,...h}=e,[,g]=au(f,m),{getPrefixCls:b,direction:v,className:y,style:$,classNames:C,styles:x,getPopupContainer:w}=xe("slider"),S=r.useContext($c),E=s??S,k={...e,disabled:E,vertical:g},[N,I]=Ca([C,d],[x,p],{props:k}),{handleRender:M,direction:P}=r.useContext(uB),R="rtl"===(P||v),[O,z]=bB(),[A,T]=bB(),B={...c},{open:H,placement:D,getPopupContainer:L,prefixCls:j,formatter:F}=B,W=H,_=(O||A)&&!1!==W,V=function(e){return e||null===e?e:e=>"number"===typeof e?e.toString():""}(F),[X,K]=bB(),q=(e,t)=>e||(t?R?"left":"right":"top"),G=b("slider",n),[Y,U]=gB(G),Q=re(i,y,N.root,a,{[`${G}-rtl`]:R,[`${G}-lock`]:X},Y,U);R&&!g&&(h.reverse=!h.reverse),r.useEffect(()=>{const e=()=>{fe(()=>{T(!1)},1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[]);const Z=o&&!W,J=M||((e,t)=>{const{index:n}=t,o=e.props;function i(e,t,n){n&&h[e]?.(t),o[e]?.(t)}const a={...o,onMouseEnter:e=>{z(!0),i("onMouseEnter",e)},onMouseLeave:e=>{z(!1),i("onMouseLeave",e)},onMouseDown:e=>{T(!0),K(!0),i("onMouseDown",e)},onFocus:e=>{T(!0),h.onFocus?.(e),i("onFocus",e,!0)},onBlur:e=>{T(!1),h.onBlur?.(e),i("onBlur",e,!0)}},l=r.cloneElement(e,a),s=(!!W||_)&&null!==V;return Z?l:r.createElement(dB,{...B,prefixCls:b("tooltip",j),title:V?V(t.value):"",value:t.value,open:s,placement:q(D,g),key:n,classNames:{root:`${G}-tooltip`},getPopupContainer:L||w},l)}),ee=Z?(e,t)=>{const n=r.cloneElement(e,{style:{...e.props.style,visibility:"hidden"}});return r.createElement(dB,{...B,prefixCls:b("tooltip",j),title:V?V(t.value):"",open:null!==V&&_,placement:q(D,g),key:"tooltip",classNames:{root:`${G}-tooltip`},getPopupContainer:L||w,draggingDelete:t.draggingDelete},n)}:void 0,te={...I.root,...$,...l};return r.createElement(cB,{...h,classNames:N,styles:I,step:h.step,range:o,className:Q,style:te,disabled:E,vertical:g,ref:t,prefixCls:G,handleRender:J,activeHandleRender:ee,onChangeComplete:e=>{u?.(e),K(!1)}})});const yB=vB,$B=e=>{const{prefixCls:t,colors:n,type:o,color:i,range:a=!1,className:l,activeIndex:s,onActive:c,onDragStart:u,onDragChange:d,onKeyDelete:p,...m}=e,f={...m,track:!1},h=r.useMemo(()=>`linear-gradient(90deg, ${n.map(e=>`${e.color} ${e.percent}%`).join(", ")})`,[n]),g=r.useMemo(()=>i&&o?"alpha"===o?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`:null,[i,o]),b=A(u),v=A(d),y=r.useMemo(()=>({onDragStart:b,onDragChange:v}),[]),$=A((e,i)=>{const{onFocus:a,style:l,className:u,onKeyDown:d}=e.props,m={...l};return"gradient"===o&&(m.background=kd(n,i.value)),r.cloneElement(e,{onFocus:e=>{c?.(i.index),a?.(e)},style:m,className:re(u,{[`${t}-slider-handle-active`]:s===i.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!p||p(i.index),d?.(e)}})}),C=r.useMemo(()=>({direction:"ltr",handleRender:$}),[]);return r.createElement(uB.Provider,{value:C},r.createElement(qT.Provider,{value:y},r.createElement(yB,{...f,className:re(l,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:h},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}})))},CB=e=>{const{value:t,onChange:n,onChangeComplete:o}=e;return r.createElement($B,{...e,value:[t],onChange:e=>n(e[0]),onChangeComplete:e=>o(e[0])})};function xB(e){return le(e).sort((e,t)=>e.percent-t.percent)}const wB=r.memo(e=>{const{prefixCls:t,mode:n,onChange:o,onChangeComplete:i,onActive:a,activeIndex:l,onGradientDragging:s,colors:c}=e,u="gradient"===n,d=r.useMemo(()=>c.map(e=>({percent:e.percent,color:e.color.toRgbString()})),[c]),p=r.useMemo(()=>d.map(e=>e.percent),[d]),m=r.useRef(d);return u?r.createElement($B,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:p,range:!0,onChangeComplete:e=>{i(new Uu(d)),l>=e.length&&a(e.length-1),s(!1)},disabled:!1,type:"gradient",activeIndex:l,onActive:a,onDragStart:e=>{let{rawValues:t,draggingIndex:n,draggingValue:r}=e;if(t.length>d.length){const e=kd(d,r),t=le(d);t.splice(n,0,{percent:r,color:e}),m.current=t}else m.current=d;s(!0),o(new Uu(xB(m.current)),!0)},onDragChange:e=>{let{deleteIndex:t,draggingIndex:n,draggingValue:r}=e,i=le(m.current);-1!==t?i.splice(t,1):(i[n]={...i[n],percent:r},i=xB(i)),o(new Uu(i),!0)},onKeyDelete:e=>{const t=le(d);t.splice(e,1);const n=new Uu(t);o(n),i(n)}}):null}),SB={slider:CB},EB=()=>{const e=(0,r.useContext)(oA),{mode:t,onModeChange:n,modeOptions:o,prefixCls:i,allowClear:a,value:l,disabledAlpha:s,onChange:c,onClear:u,onChangeComplete:d,activeIndex:p,gradientDragging:m,...f}=e,h=r.useMemo(()=>l.cleared?[{percent:0,color:new Uu("")},{percent:100,color:new Uu("")}]:l.getColors(),[l]),g=!l.isGradient(),[b,v]=r.useState(l);L(()=>{g||v(h[p]?.color)},[g,h,m,p]);const y=r.useMemo(()=>g?l:m?b:h[p]?.color,[h,l,p,g,b,m]),[$,C]=r.useState(y),[x,w]=fy(),S=$?.equals(y)?y:$;L(()=>{C(y)},[x,y?.toHexString()]);const E=(e,n)=>{let r=xd(e);if(l.cleared){const e=r.toRgb();if(e.r||e.g||e.b||!n)r=Ed(r);else{const{type:e,value:t=0}=n;r=new Uu({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}if("single"===t)return r;const o=le(h);return o[p]={...o[p],color:r},new Uu(o)};let k=null;const N=o.length>1;return(a||N)&&(k=r.createElement("div",{className:`${i}-operation`},N&&r.createElement(rA,{size:"small",options:o,value:t,onChange:n}),r.createElement(aA,{prefixCls:i,value:l,onChange:e=>{c(e),u?.()},...f}))),r.createElement(r.Fragment,null,k,r.createElement(wB,{...e,colors:h}),r.createElement(Gu,{prefixCls:i,value:S?.toHsb(),disabledAlpha:s,onChange:(e,t)=>{((e,t,n)=>{const r=E(e,n);C(r.isGradient()?r.getColors()[p].color:r),c(r,t)})(e,!0,t)},onChangeComplete:(e,t)=>{((e,t)=>{d(E(e,t)),w()})(e,t)},components:SB}),r.createElement(WT,{value:y,onChange:e=>{c(E(e))},prefixCls:i,disabledAlpha:s,...f}))},kB=()=>{const{prefixCls:e,value:t,presets:n,onChange:o}=(0,r.useContext)(iA);return Array.isArray(n)?r.createElement(Md,{value:t,presets:n,prefixCls:e,onChange:o}):null};const NB=e=>{const{prefixCls:t,presets:n,panelRender:o,value:i,onChange:a,onClear:l,allowClear:s,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:p,onChangeComplete:m,activeIndex:f,onActive:h,format:g,onFormatChange:b,gradientDragging:v,onGradientDragging:y,disabledFormat:$}=e,C=`${t}-inner`,x=r.useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:l,allowClear:s,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:p,onChangeComplete:m,activeIndex:f,onActive:h,format:g,onFormatChange:b,gradientDragging:v,onGradientDragging:y,disabledFormat:$}),[t,i,a,l,s,c,u,d,p,m,f,h,g,b,v,y,$]),w=r.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:a}),[t,i,n,a]),S=r.createElement("div",{className:`${C}-content`},r.createElement(EB,null),Array.isArray(n)&&r.createElement(Xz,null),r.createElement(kB,null));return r.createElement(oA.Provider,{value:x},r.createElement(iA.Provider,{value:w},r.createElement("div",{className:C},"function"===typeof o?o(S,{components:{Picker:EB,Presets:kB}}):S)))},IB=(0,r.forwardRef)((e,t)=>{const{color:n,prefixCls:o,open:i,disabled:a,format:l,className:s,style:c,classNames:u,styles:d,showText:p,activeIndex:m,...f}=e,h=`${o}-trigger`,g=`${h}-text`,b=`${g}-cell`,[v]=Yc("ColorPicker"),y=r.useMemo(()=>{if(!p)return"";if("function"===typeof p)return p(n);if(n.cleared)return v.transparent;if(n.isGradient())return n.getColors().map((e,t)=>{const n=-1!==m&&m!==t;return r.createElement("span",{key:t,className:re(b,n&&`${b}-inactive`)},e.color.toRgbString()," ",e.percent,"%")});const e=n.toHexString().toUpperCase(),t=Sd(n);switch(l){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}},[n,l,p,m,v.transparent,b]),$=(0,r.useMemo)(()=>n.cleared?r.createElement(aA,{prefixCls:o,className:u.body,style:d.body}):r.createElement(Bu,{prefixCls:o,color:n.toCssString(),className:u.body,innerClassName:u.content,style:d.body,innerStyle:d.content}),[n,o,u.body,u.content,d.body,d.content]);return r.createElement("div",{ref:t,className:re(h,s,u.root,{[`${h}-active`]:i,[`${h}-disabled`]:a}),style:{...d.root,...c},...fa(f)},$,p&&r.createElement("div",{className:re(g,u.description),style:d.description},y))}),MB=IB;const PB=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),RB=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:{position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none",...PB("50%",e.colorFillSecondary),[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${lt(i)} ${a}`,borderRadius:"inherit"}}}},OB=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:s,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:m,lineWidth:f}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,padding:0,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:m}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${lt(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:lt(s)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{height:s,display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${lt(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:lt(e.calc(s).sub(e.calc(f).mul(2)).equal())},[`${n}-input-prefix`]:{color:p}}}}}},zB=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:s,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${lt(s)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}},AB=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:s,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:p,marginXXS:m,paddingXS:f,fontHeightSM:h}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:h,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:m},[`${n}-collapse-item > ${n}-collapse-panel > ${n}-collapse-body`]:{padding:`${lt(f)} 0`},"&-label":{fontSize:a,color:l,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(m).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${lt(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${lt(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}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},TB=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:s,marginXS:c}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),p={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[PB(lt(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${lt(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":p}}],[`${t}-slider-container`]:{display:"flex",gap:s,marginBottom:s,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":p}}}},BB=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${lt(e.controlOutlineWidth)} ${n}`,outline:0}),HB=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},DB=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:l,red6:s}=e;return{[`${r}-clear`]:{width:t,height:t,borderRadius:o,border:`${lt(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`,...n,"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:s},"&:hover":{borderColor:l}}}},LB=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:{...BB(e,n,a)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...BB(e,r,l)}}}},jB=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:s,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:s},[`${t}-trigger-text`]:{lineHeight:lt(i)}}}},FB=To("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e;return(e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:s,colorBgContainerDisabled:c,borderRadius:u,marginXS:d,marginSM:p,controlHeight:m,controlHeightSM:f,colorBgTextActive:h,colorPickerPresetColorSize:g,colorPickerPreviewSize:b,lineWidth:v,colorBorder:y,paddingXXS:$,fontSize:C,colorPrimaryHover:x,controlOutline:w}=e;return[{[n]:{[`${n}-inner`]:{"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${lt(p)} 0 ${lt(d)}`}},[`${n}-panel`]:{...zB(e)},...TB(e),...RB(e,b),...OB(e),...AB(e),...DB(e,g,{marginInlineStart:"auto"}),[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}},"&-trigger":{minWidth:m,minHeight:m,borderRadius:u,border:`${lt(v)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc($).sub(v).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc($).sub(v)).equal(),fontSize:C,color:s,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:x},[`&${n}-trigger-active`]:{...BB(e,o,w)},"&-disabled":{color:l,background:c,cursor:"not-allowed","&:hover":{borderColor:h},[`${n}-trigger-text`]:{color:l}},...DB(e,f),...RB(e,f),...LB(e),...jB(e)},...HB(e)}},_d(e,{focusElCls:`${n}-trigger-active`})]})(ir(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(n).equal()}))}),WB=e=>{const{mode:t,value:n,defaultValue:o,format:i,defaultFormat:a,allowClear:l=!1,presets:s,children:c,trigger:u="click",open:d,disabled:p,placement:m="bottomLeft",arrow:f,panelRender:h,showText:g,style:b,className:v,size:y,rootClassName:$,prefixCls:C,styles:x,classNames:w,disabledAlpha:S=!1,onFormatChange:E,onChange:k,onClear:N,onOpenChange:I,onChangeComplete:M,getPopupContainer:P,autoAdjustOverflow:R=!0,destroyTooltipOnHide:O,destroyOnHidden:z,disabledFormat:T,...B}=e,{getPrefixCls:H,direction:D,className:L,style:j,classNames:W,styles:_,arrow:V}=xe("colorPicker"),X=(0,r.useContext)($c),K=p??X,q=H("color-picker",C),G=Fy(f,V),{compactSize:Y,compactItemClassnames:U}=cu(q,D),Q=ou(e=>y??Y??e),Z={...e,trigger:u,allowClear:l,autoAdjustOverflow:R,disabledAlpha:S,arrow:G,placement:m,disabled:K,size:Q},[J,ee]=Ca([W,w],[_,x],{props:Z},{popup:{_default:"root"}}),[te,ne]=F(!1,d),oe=!K&&te,[ie,ae]=F(a,i),[le,se,ce,ue,de]=function(e,t,n){const[o]=Yc("ColorPicker"),[i,a]=F(e,t),[l,s]=r.useState("single"),[c,u]=r.useMemo(()=>{const e=(Array.isArray(n)?n:[n]).filter(e=>e);e.length||e.push("single");const t=new Set(e),r=[],i=(e,n)=>{t.has(e)&&r.push({label:n,value:e})};return i("single",o.singleColor),i("gradient",o.gradientColor),[r,t]},[n,o.singleColor,o.gradientColor]),[d,p]=r.useState(null),m=A(e=>{p(e),a(e)}),f=r.useMemo(()=>{const e=xd(i||"");return e.equals(d)?d:e},[i,d]),h=r.useMemo(()=>u.has(l)?l:c[0]?.value,[u,l,c]);return r.useEffect(()=>{s(f.isGradient()?"gradient":"single")},[f]),[f,m,h,s,c]}(o,n,t),pe=(0,r.useMemo)(()=>Sd(le)<100,[le]),[me,fe]=r.useState(null),he=e=>{if(M){let t=xd(e);S&&pe&&(t=Ed(e)),M(t)}},ge=(e,t)=>{let n=xd(e);S&&pe&&(n=Ed(n)),se(n),fe(null),k&&k(n,n.toCssString()),t||he(n)},[be,ve]=r.useState(0),[ye,$e]=r.useState(!1),{status:Ce}=r.useContext(qm),we=Ka(q),[Se,Ee]=FB(q,we),ke=re($,Ee,we,{[`${q}-rtl`]:D}),Ne=re(ev(q,Ce),{[`${q}-sm`]:"small"===Q,[`${q}-lg`]:"large"===Q},U,L,ke,v,Se),Ie=re(q,ke,J.popup?.root);const Me={open:oe,trigger:u,placement:m,arrow:G,rootClassName:$,getPopupContainer:P,autoAdjustOverflow:R,destroyOnHidden:z??!!O},Pe={...j,...b};return r.createElement(s$,{classNames:{root:Ie},styles:{root:ee.popup?.root,container:x?.popupOverlayInner},onOpenChange:e=>{e&&K||(ne(e),I?.(e))},content:r.createElement(Um,{form:!0},r.createElement(NB,{mode:ce,onModeChange:e=>{if(ue(e),"single"===e&&le.isGradient())ve(0),ge(new Uu(le.getColors()[0].color)),fe(le);else if("gradient"===e&&!le.isGradient()){const e=pe?Ed(le):le;ge(new Uu(me||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:de,prefixCls:q,value:le,allowClear:l,disabled:K,disabledAlpha:S,presets:s,panelRender:h,format:ie,onFormatChange:e=>{ae(e),ie!==e&&E?.(e)},onChange:ge,onChangeComplete:he,onClear:N,activeIndex:be,onActive:ve,gradientDragging:ye,onGradientDragging:$e,disabledFormat:T})),...Me},c||r.createElement(MB,{activeIndex:oe?be:-1,open:oe,className:Ne,style:Pe,classNames:J,styles:ee,prefixCls:q,disabled:K,showText:g,format:ie,...B,color:le}))};const _B=vg(WB,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);WB._InternalPanelDoNotUseOrYouWillBeFired=_B;const VB=WB;const XB={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};function KB(){return KB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KB.apply(this,arguments)}const qB=r.forwardRef((e,t)=>r.createElement(si,KB({},e,{ref:t,icon:XB}))),GB=(e,t,n,o,i,a)=>{const{classNames:l,styles:s}=xe(e),[c,u]=Ca([l,t],[s,n],{props:a},{popup:{_default:"root"}});return r.useMemo(()=>[{...c,popup:{...c.popup,root:re(c.popup?.root,o)}},{...u,popup:{...u.popup,root:{...u.popup?.root,...i}}}],[c,u,o,i])},YB=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:["font-size","line-height","height"].map(e=>`${e} ${o}`).join(", "),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":{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:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}}}}},UB=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=(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:lt(t),itemLineHeight:lt(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:lt(i.itemLineHeight)}}}]},QB=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=ir(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=ir(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[UB(o,"small"),UB(e),UB(i,"large"),{[`${t}${t}-multiple`]:{width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}},...YB(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},ZB=e=>{const{componentCls:t}=e;return{[t]:[{...XA(e),...nT(e),...QA(e),...GA(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${lt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${lt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${lt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},JB=(e,t)=>({padding:`${lt(e)} ${lt(t)}`}),eH=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},tH=e=>{const{componentCls:t,antCls:n,paddingInline:r,lineWidth:o,lineType:i,colorBorder:a,borderRadius:l,motionDurationMid:s,colorTextDisabled:c,colorTextPlaceholder:u,colorTextQuaternary:d,fontSizeLG:p,inputFontSizeLG:m,fontSizeSM:f,inputFontSizeSM:h,controlHeightSM:g,paddingInlineSM:b,paddingXS:v,marginXS:y,colorIcon:$,lineWidthBold:C,colorPrimary:x,motionDurationSlow:w,zIndexPopup:S,paddingXXS:E,sizePopupArrow:k,colorBgElevated:N,borderRadiusLG:I,boxShadowSecondary:M,borderRadiusSM:P,colorSplit:R,cellHoverBg:O,presetsWidth:z,presetsMaxWidth:A,boxShadowPopoverArrow:T,fontHeight:B,lineHeightLG:H}=e;return[{[t]:{...br(e),...JB(e.paddingBlock,e.paddingInline),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:["border","box-shadow","background-color"].map(e=>`${e} ${s}`).join(", "),[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":{position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`,...rT(u),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:c,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:u}}},"&-large":{...JB(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:m??p,lineHeight:H}},"&-small":{...JB(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:h??f}},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:["opacity","color"].map(e=>`${e} ${s}`).join(", "),"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:["opacity","color"].map(e=>`${e} ${s}`).join(", "),"> *":{verticalAlign:"top"},"&:hover":{color:$}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:d,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:$},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:C,background:x,opacity:0,transition:`all ${w} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${lt(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:b}}},"&-dropdown":{...br(e),...LM(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:fv},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:pv},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:hv},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:mv},[`${t}-panel > ${t}-time-panel`]:{paddingTop:E},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:{position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${w} ease-out`,...Oy(e,N,T),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:N,borderRadius:I,boxShadow:M,transition:`margin ${w}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:z,maxWidth:A,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${lt(o)} ${i} ${R}`,li:{...gr,borderRadius:P,paddingInline:v,paddingBlock:e.calc(g).sub(B).div(2).equal(),cursor:"pointer",transition:`all ${w}`,"+ li":{marginTop:y},"&:hover":{background:O}}}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:a}}}},"&-dropdown-range":{padding:`${lt(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},Cv(e,"slide-up"),Cv(e,"slide-down"),Mv(e,"move-up"),Mv(e,"move-down")]},nH=To("DatePicker",e=>{const t=ir(FM(e),_M(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[jM(t),tH(t),ZB(t),eH(t),QB(t),_d(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({...WM(e),...VM(e),...Ry(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}));function rH(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function oH(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function iH(e,t){const{allowClear:n=!0}=e,{clearIcon:o,removeIcon:i}=Yv({...e,prefixCls:t,componentName:"DatePicker"});return[r.useMemo(()=>{if(!1===n)return!1;return{clearIcon:o,...!0===n?{}:n}},[n,o]),i]}const[aH,lH]=["week","WeekPicker"],[sH,cH]=["month","MonthPicker"],[uH,dH]=["year","YearPicker"],[pH,mH]=["quarter","QuarterPicker"],[fH,hH]=["time","TimePicker"];const gH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};function bH(){return bH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bH.apply(this,arguments)}const vH=r.forwardRef((e,t)=>r.createElement(si,bH({},e,{ref:t,icon:gH})));const yH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};function $H(){return $H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$H.apply(this,arguments)}const CH=r.forwardRef((e,t)=>r.createElement(si,$H({},e,{ref:t,icon:yH}))),xH=e=>{let{picker:t,hasFeedback:n,feedbackIcon:o,suffixIcon:i}=e;return null===i||!1===i?null:!0===i||void 0===i?r.createElement(r.Fragment,null,t===fH?r.createElement(CH,null):r.createElement(vH,null),n&&o):i},wH=e=>r.createElement(Qd,{size:"small",type:"primary",...e});function SH(e){return(0,r.useMemo)(()=>({button:wH,...e}),[e])}const EH=e=>{const t=(0,r.forwardRef)((t,n)=>{const{prefixCls:o,getPopupContainer:i,components:a,className:l,style:s,classNames:c,styles:u,placement:d,size:p,disabled:m,bordered:f=!0,placeholder:h,status:g,variant:b,picker:v,dropdownClassName:y,popupClassName:$,popupStyle:C,rootClassName:x,suffixIcon:w,separator:S,...E}=t,k=v===fH?"timePicker":"datePicker";const[N,I]=GB(k,c,u,$||y,C),M=r.useRef(null),{getPrefixCls:P,direction:R,getPopupContainer:O,rangePicker:z}=(0,r.useContext)(ye),A=P("picker",o),{compactSize:T,compactItemClassnames:B}=cu(A,R),H=P(),D=S??z?.separator,[L,j]=uv("rangePicker",b,f),F=Ka(A),[W,_]=nH(A,F),V=re(W,_,F,x),[X]=iH(t,A),K=SH(a),q=ou(e=>p??T??e),Y=r.useContext($c),U=m??Y,Q=(0,r.useContext)(qm),{hasFeedback:Z,status:J,feedbackIcon:ee}=Q,te=xH({picker:v,hasFeedback:Z,feedbackIcon:ee,suffixIcon:w});(0,r.useImperativeHandle)(n,()=>M.current);const[ne]=Yc("Calendar",is),oe=G(ne,t.locale||{}),[ie]=Tl("DatePicker",I?.popup?.root?.zIndex);return r.createElement(Um,{space:!0},r.createElement(LI,{separator:r.createElement("span",{"aria-label":"to",className:`${A}-separator`},D??r.createElement(qB,null)),disabled:U,ref:M,placement:d,placeholder:oH(oe,v,h),suffixIcon:te,prevIcon:r.createElement("span",{className:`${A}-prev-icon`}),nextIcon:r.createElement("span",{className:`${A}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${A}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${A}-super-next-icon`}),transitionName:`${H}-slide-up`,picker:v,...E,locale:oe.lang,getPopupContainer:i||O,generateConfig:e,components:K,direction:R,prefixCls:A,rootClassName:V,className:re({[`${A}-large`]:"large"===q,[`${A}-small`]:"small"===q,[`${A}-${L}`]:j},ev(A,tv(J,g),Z),B,l,z?.className),style:{...z?.style,...s},classNames:N,styles:{...I,popup:{...I.popup,root:{...I.popup.root,zIndex:ie}}},allowClear:X}))});return t},kH=e=>{const t=(t,n)=>{const o=n===hH?"timePicker":"datePicker",i=(0,r.forwardRef)((i,a)=>{const{prefixCls:l,getPopupContainer:s,components:c,style:u,className:d,size:p,bordered:m,placement:f,placeholder:h,disabled:g,status:b,variant:v,onCalendarChange:y,classNames:$,styles:C,dropdownClassName:x,popupClassName:w,popupStyle:S,rootClassName:E,suffixIcon:k,...N}=i,{suffixIcon:I}=xe(n===hH?"timePicker":"datePicker");const{getPrefixCls:M,direction:P,getPopupContainer:R,[o]:O}=(0,r.useContext)(ye),z=M("picker",l),{compactSize:A,compactItemClassnames:T}=cu(z,P),B=ou(e=>p??A??e),H=r.useContext($c),D=g??H,L={...i,size:B,disabled:D,status:b,variant:v},[j,F]=GB(o,$,C,w||x,S,L),W=r.useRef(null),[_,V]=uv("datePicker",v,m),X=Ka(z),[K,q]=nH(z,X),Y=re(K,q,X,E);(0,r.useImperativeHandle)(a,()=>W.current);const U=t||i.picker,Q=M(),{onSelect:Z,multiple:J}=N,ee=Z&&"time"===t&&!J,[te,ne]=iH(i,z),oe=SH(c),ie=(0,r.useContext)(qm),{hasFeedback:ae,status:le,feedbackIcon:se}=ie,ce=xH({picker:U,hasFeedback:ae,feedbackIcon:se,suffixIcon:void 0===k?I:k}),[ue]=Yc("DatePicker",is),de=G(ue,i.locale||{}),[pe]=Tl("DatePicker",F?.popup?.root?.zIndex);return r.createElement(Um,{space:!0},r.createElement(sM,{ref:W,placeholder:rH(de,U,h),suffixIcon:ce,placement:f,prevIcon:r.createElement("span",{className:`${z}-prev-icon`}),nextIcon:r.createElement("span",{className:`${z}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${z}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${z}-super-next-icon`}),transitionName:`${Q}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{y?.(e,t,n),ee&&Z(e)},showToday:!0,...N,locale:de.lang,getPopupContainer:s||R,generateConfig:e,components:oe,direction:P,disabled:D,prefixCls:z,rootClassName:Y,className:re({[`${z}-large`]:"large"===B,[`${z}-small`]:"small"===B,[`${z}-${_}`]:V},ev(z,tv(le,b),ae),T,O?.className,d),style:{...O?.style,...u},classNames:j,styles:{...F,popup:{...F.popup,root:{...F.popup.root,zIndex:pe}}},allowClear:te,removeIcon:ne}))});return i},n=t(),o=t(aH,lH),i=t(sH,cH),a=t(uH,dH),l=t(pH,mH);return{DatePicker:n,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:t(fH,hH),QuarterPicker:l}},NH=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=kH(e),l=EH(e),s=t;return s.WeekPicker=n,s.MonthPicker=r,s.YearPicker=o,s.RangePicker=l,s.TimePicker=i,s.QuarterPicker=a,s},IH=NH(Aw),MH=vg(IH,"popupAlign",void 0,"picker");IH._InternalPanelDoNotUseOrYouWillBeFired=MH;const PH=vg(IH.RangePicker,"popupAlign",void 0,"picker");IH._InternalRangePanelDoNotUseOrYouWillBeFired=PH,IH.generatePicker=NH;const RH=IH,OH={xxxl:4,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},zH=r.createContext(null);function AH(e,t,n){const o=r.useMemo(()=>t||c(n).map(e=>({...e?.props,key:e.key})),[t,n]);return r.useMemo(()=>o.map(t=>{let{span:n,...r}=t;return"filled"===n?{...r,filled:!0}:{...r,span:"number"===typeof n?n:py(e,n)}}),[o,e])}const TH=(e,t)=>{const[n,o]=(0,r.useMemo)(()=>function(e,t){let n=[],r=[],o=!1,i=0;return e.filter(e=>e).forEach(e=>{const{filled:a,...l}=e;if(a)return r.push(l),n.push(r),r=[],void(i=0);const s=t-i;i+=e.span||1,i>=t?(i>t?(o=!0,r.push({...l,span:s})):r.push(l),n.push(r),r=[],i=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(e=>{const n=e.reduce((e,t)=>e+(t.span||1),0);if(n<t){const r=e[e.length-1];return r.span=t-(n-(r.span||1)),e}return e}),[n,o]}(t,e),[t,e]);return n},BH=e=>e.children,HH=e=>{const{itemPrefixCls:t,component:n,span:o,className:i,style:a,labelStyle:l,contentStyle:s,bordered:c,label:u,content:d,colon:p,type:m,styles:f,classNames:h}=e,g=n,{classNames:b,styles:v}=r.useContext(zH),[y,$]=Ca([b,h],[v,f],{props:e}),C={...l,...$.label},x={...s,...$.content};return c?r.createElement(g,{colSpan:o,style:a,className:re(i,{[`${t}-item-${m}`]:"label"===m||"content"===m,[y.label]:y.label&&"label"===m,[y.content]:y.content&&"content"===m})},xa(u)&&r.createElement("span",{style:C},u),xa(d)&&r.createElement("span",{style:x},d)):r.createElement(g,{className:re(`${t}-item`,i),style:a,colSpan:o},r.createElement("div",{className:`${t}-item-container`},xa(u)&&r.createElement("span",{style:C,className:re(`${t}-item-label`,y.label,{[`${t}-item-no-colon`]:!p})},u),xa(d)&&r.createElement("span",{style:x,className:re(`${t}-item-content`,y.content)},d)))};function DH(e,t,n){let{colon:o,prefixCls:i,bordered:a}=t,{component:l,type:s,showLabel:c,showContent:u,labelStyle:d,contentStyle:p,styles:m}=n;return e.map((e,t)=>{let{label:n,children:f,prefixCls:h=i,className:g,style:b,labelStyle:v,contentStyle:y,span:$=1,key:C,styles:x,classNames:w}=e;return"string"===typeof l?r.createElement(HH,{key:`${s}-${C||t}`,className:g,style:b,classNames:w,styles:{label:{...d,...m?.label,...v,...x?.label},content:{...p,...m?.content,...y,...x?.content}},span:$,colon:o,component:l,itemPrefixCls:h,bordered:a,label:c?n:null,content:u?f:null,type:s}):[r.createElement(HH,{key:`label-${C||t}`,className:g,style:{...d,...m?.label,...b,...v,...x?.label},span:1,colon:o,component:l[0],itemPrefixCls:h,bordered:a,label:n,type:"label"}),r.createElement(HH,{key:`content-${C||t}`,className:g,style:{...p,...m?.content,...b,...y,...x?.content},span:2*$-1,component:l[1],itemPrefixCls:h,bordered:a,content:f,type:"content"})]})}const LH=e=>{const t=r.useContext(zH),{prefixCls:n,vertical:o,row:i,index:a,bordered:l}=e;return o?r.createElement(r.Fragment,null,r.createElement("tr",{key:`label-${a}`,className:`${n}-row`},DH(i,e,{component:"th",type:"label",showLabel:!0,...t})),r.createElement("tr",{key:`content-${a}`,className:`${n}-row`},DH(i,e,{component:"td",type:"content",showContent:!0,...t}))):r.createElement("tr",{key:a,className:`${n}-row`},DH(i,e,{component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,...t}))},jH=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${lt(e.padding)} ${lt(e.paddingLG)}`,borderInlineEnd:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-medium`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${lt(e.paddingSM)} ${lt(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${lt(e.paddingXS)} ${lt(e.padding)}`}}}}}},FH=To("Descriptions",e=>(e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:l}=e;return{[t]:{...br(e),...jH(e),"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:{...gr,flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG},[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${lt(a)} ${lt(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-medium":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}})(ir(e,{})),e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText})),WH=e=>{const{prefixCls:t,title:n,extra:o,column:i,colon:a=!0,bordered:l,layout:s,children:c,className:u,rootClassName:d,style:p,size:m,labelStyle:f,contentStyle:h,styles:g,items:b,classNames:v,...y}=e,{getPrefixCls:$,direction:C,className:x,style:w,classNames:S,styles:E}=xe("descriptions"),k=$("descriptions",t),N=hy();const I=r.useMemo(()=>"number"===typeof i?i:py(N,{...OH,...i})??3,[N,i]),M=AH(N,b,c),P=ou(m),R=TH(I,M),[O,z]=FH(k),A={...e,column:I,items:M,size:P},[T,B]=Ca([S,v],[E,g],{props:A}),H=r.useMemo(()=>({labelStyle:f,contentStyle:h,styles:{label:B.label,content:B.content},classNames:{label:T.label,content:T.content}}),[f,h,B.label,B.content,T.label,T.content]);return r.createElement(zH.Provider,{value:H},r.createElement("div",{className:re(k,x,T.root,{[`${k}-medium`]:"medium"===P||"middle"===P,[`${k}-small`]:"small"===P,[`${k}-bordered`]:!!l,[`${k}-rtl`]:"rtl"===C},u,d,O,z),style:{...w,...B.root,...p},...y},(n||o)&&r.createElement("div",{className:re(`${k}-header`,T.header),style:B.header},n&&r.createElement("div",{className:re(`${k}-title`,T.title),style:B.title},n),o&&r.createElement("div",{className:re(`${k}-extra`,T.extra),style:B.extra},o)),r.createElement("div",{className:`${k}-view`},r.createElement("table",null,r.createElement("tbody",null,R.map((e,t)=>r.createElement(LH,{key:t,index:t,colon:a,prefixCls:k,vertical:"vertical"===s,bordered:l,row:e})))))))};WH.Item=BH;const _H=WH,VH=r.createContext(null),XH=r.createContext({}),KH=VH;function qH(){return qH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qH.apply(this,arguments)}const GH=e=>{const{prefixCls:t,className:n,containerRef:o,...i}=e,{panel:a}=r.useContext(XH),l=S(a,o);return r.createElement("div",qH({className:re(`${t}-section`,n),role:"dialog",ref:l},fa(e,{aria:!0}),{"aria-modal":"true"},i))};function YH(e){if("string"===typeof e){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&g(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function UH(){return UH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UH.apply(this,arguments)}const QH=r.forwardRef((e,t)=>{const{prefixCls:n,open:o,placement:i,inline:a,push:l,forceRender:s,autoFocus:c,focusTrap:u,classNames:d,rootClassName:p,rootStyle:m,zIndex:f,className:h,id:g,style:b,motion:v,width:y,height:$,size:C,maxSize:x,children:w,mask:S,maskClosable:E,maskMotion:k,maskClassName:N,maskStyle:I,afterOpenChange:M,onClose:P,onMouseEnter:R,onMouseOver:O,onMouseLeave:z,onClick:T,onKeyDown:B,onKeyUp:H,styles:D,drawerRender:L,resizable:j,defaultSize:F}=e,W=r.useRef(null);r.useImperativeHandle(t,()=>W.current);const _=function(e,t,n,o,i){const a=o??!1!==i,[l]=bp(t&&a,e);return r.useEffect(()=>{t&&!0===n&&e()?.focus({preventScroll:!0})},[t]),l}(()=>W.current,o,c,u,S),[V,X]=r.useState(!1),K=r.useContext(KH);let q;q="boolean"===typeof l?l?{}:{distance:0}:l||{};const G=q?.distance??K?.pushDistance??180,Y=r.useMemo(()=>({pushDistance:G,push:()=>{X(!0)},pull:()=>{X(!1)}}),[G]);r.useEffect(()=>{o?K?.push?.():K?.pull?.()},[o]),r.useEffect(()=>()=>{K?.pull?.()},[]);const U=r.createElement(da,UH({key:"mask"},k,{visible:S&&o}),(e,t)=>{let{className:i,style:a}=e;return r.createElement("div",{className:re(`${n}-mask`,i,d?.mask,N),style:{...a,...I,...D?.mask},onClick:E&&o?P:void 0,ref:t})}),Q="function"===typeof v?v(i):v,[Z,J]=r.useState(),ee="left"===i||"right"===i,te=r.useMemo(()=>YH(C??(ee?y:$)??Z??F??(ee?378:void 0)),[C,y,$,F,ee,Z]),ne=r.useMemo(()=>{const e={};if(V&&G)switch(i){case"top":e.transform=`translateY(${G}px)`;break;case"bottom":e.transform=`translateY(${-G}px)`;break;case"left":e.transform=`translateX(${G}px)`;break;default:e.transform=`translateX(${-G}px)`}return ee?e.width=YH(te):e.height=YH(te),e},[V,G,i,ee,te]),oe=r.useRef(null),ie=!!j,ae="object"===typeof j&&j||{},le=A(e=>{J(e),ae.onResize?.(e)}),{dragElementProps:se,isDragging:ce}=function(e){const{prefixCls:t,direction:n,className:o,style:i,maxSize:a,containerRef:l,currentSize:s,onResize:c,onResizeEnd:u,onResizeStart:d}=e,[p,m]=r.useState(!1),[f,h]=r.useState(0),[g,b]=r.useState(0),v="left"===n||"right"===n,y=A(e=>{let t;if(e.preventDefault(),e.stopPropagation(),m(!0),h(v?e.clientX:e.clientY),"number"===typeof s)t=s;else if(l?.current){const e=l.current.getBoundingClientRect();t=v?e.width:e.height}b(t),d?.(t)}),$=A(e=>{if(!p)return;let t=(v?e.clientX:e.clientY)-f;"right"!==n&&"bottom"!==n||(t=-t);let r=g+t;r<0&&(r=0),a&&r>a&&(r=a),c?.(r)}),C=r.useCallback(()=>{if(p&&(m(!1),l?.current)){const e=l.current.getBoundingClientRect(),t=v?e.width:e.height;u?.(t)}},[p,l,u,v]);return r.useEffect(()=>{if(p)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",C),()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",C)}},[p,$,C]),{dragElementProps:{className:re(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:p,[`${t}-dragger-horizontal`]:v,[`${t}-dragger-vertical`]:!v},o),style:i,onMouseDown:y},isDragging:p}}({prefixCls:`${n}-resizable`,direction:i,className:d?.dragger,style:D?.dragger,maxSize:x,containerRef:oe,currentSize:te,onResize:le,onResizeStart:ae.onResizeStart,onResizeEnd:ae.onResizeEnd}),ue={onMouseEnter:R,onMouseOver:O,onMouseLeave:z,onClick:T,onKeyDown:B,onKeyUp:H,onFocus:e=>{_(e.target)}},de=r.createElement(da,UH({key:"panel"},Q,{visible:o,forceRender:s,onVisibleChanged:M,removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),(t,o)=>{let{className:i,style:a}=t;const l=r.createElement(GH,UH({id:g,containerRef:o,prefixCls:n,className:re(h,d?.section),style:{...b,...D?.section}},fa(e,{aria:!0}),ue),w);return r.createElement("div",UH({ref:oe,className:re(`${n}-content-wrapper`,ce&&`${n}-content-wrapper-dragging`,d?.wrapper,!ce&&i),style:{...a,...ne,...D?.wrapper}},fa(e,{data:!0})),ie&&r.createElement("div",se),L?L(l):l)}),pe={...m};return f&&(pe.zIndex=f),r.createElement(KH.Provider,{value:Y},r.createElement("div",{className:re(n,`${n}-${i}`,p,{[`${n}-open`]:o,[`${n}-inline`]:a}),style:pe,tabIndex:-1,ref:W},U,de))});const ZH=QH;const JH=e=>{const{open:t=!1,prefixCls:n="rc-drawer",placement:o="right",autoFocus:i=!0,keyboard:a=!0,width:l,height:s,size:c,maxSize:u,mask:d=!0,maskClosable:p=!0,getContainer:m,forceRender:f,afterOpenChange:h,destroyOnHidden:g,onMouseEnter:b,onMouseOver:v,onMouseLeave:y,onClick:$,onKeyDown:C,onKeyUp:x,onClose:w,resizable:S,defaultSize:E,focusTriggerAfterClose:k,panelRef:N}=e,[I,M]=r.useState(!1);const[P,R]=r.useState(!1);L(()=>{R(!0)},[]);const O=!!P&&t,z=r.useRef(null),A=r.useRef(null);L(()=>{O&&(A.current=document.activeElement)},[O]);const T=r.useMemo(()=>({panel:N}),[N]);if(!f&&!I&&!O&&g)return null;const B={onMouseEnter:b,onMouseOver:v,onMouseLeave:y,onClick:$,onKeyDown:C,onKeyUp:x},H={...e,open:O,prefixCls:n,placement:o,autoFocus:i,keyboard:a,width:l,height:s,size:c,maxSize:u,defaultSize:E,mask:d,maskClosable:p,inline:!1===m,afterOpenChange:e=>{M(e),h?.(e),e||!1===k||!A.current||z.current?.contains(A.current)||A.current?.focus({preventScroll:!0})},ref:z,resizable:S,...B};return r.createElement(XH.Provider,{value:T},r.createElement(Bs,{open:O||f||I,autoDestroy:!1,getContainer:m,autoLock:d&&(O||I),onEsc:e=>{let{top:t,event:n}=e;t&&a&&(n.stopPropagation(),w?.(n))}},r.createElement(ZH,H)))},eD=JH,tD=e=>{const{prefixCls:t,ariaId:n,title:o,footer:i,extra:a,closable:l,loading:s,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:p,children:m,classNames:f,styles:h}=e,g=xe("drawer"),{classNames:b,styles:v,closable:y}=g,[$,C]=Ca([b,f],[v,h],{props:{...e,closable:l??y}}),x=r.useMemo(()=>{const e=l??y;if(!1!==e)return"object"===typeof e&&"end"===e?.placement?"end":"start"},[l,y]),w=r.useCallback(e=>r.createElement("button",{type:"button",onClick:c,className:re(`${t}-close`,{[`${t}-close-${x}`]:"end"===x},$.close),style:C.close},e),[c,t,x,$.close,C.close]),[S,E]=nf(Zm(e),Zm(g),{closable:!0,closeIconRender:w});return r.createElement(r.Fragment,null,o||S?r.createElement("div",{style:{...C.header,...u},className:re(`${t}-header`,$.header,{[`${t}-header-close-only`]:S&&!o&&!a})},r.createElement("div",{className:`${t}-header-title`},"start"===x&&E,o&&r.createElement("div",{className:re(`${t}-title`,$.title),style:C.title,id:n},o)),a&&r.createElement("div",{className:re(`${t}-extra`,$.extra),style:C.extra},a),"end"===x&&E):null,r.createElement("div",{className:re(`${t}-body`,$.body),style:{...C.body,...d}},s?r.createElement(zf,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):m),i?r.createElement("div",{className:re(`${t}-footer`,$.footer),style:{...C.footer,...p}},i):null)},nD=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},rD=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),oD=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...rD({opacity:e},{opacity:1})}),iD=(e,t)=>[oD(.7,t),rD({transform:nD(e)},{transform:"none"})],aD=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:oD(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((e,t)=>({...e,[`&-${t}`]:iD(t,n)}),{})}}},lD=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:s,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:p,lineWidth:m,lineType:f,colorSplit:h,marginXS:g,colorIcon:b,colorIconHover:v,colorBgTextHover:y,colorBgTextActive:$,colorText:C,fontWeightStrong:x,footerPaddingBlock:w,footerPaddingInline:S,draggerSize:E,calc:k}=e,N=`${n}-content-wrapper`,I=`${n}-resizable-dragger`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:C,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto",[`&${n}-mask-blur`]:{backdropFilter:"blur(4px)"}},[N]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${N}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${N}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${N}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${N}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${lt(c)} ${lt(u)}`,fontSize:d,lineHeight:p,borderBottom:`${lt(m)} ${f} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:{display:"inline-flex",width:k(d).add(s).equal(),height:k(d).add(s).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:b,fontWeight:x,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:g},[`&:not(${n}-close-end)`]:{marginInlineEnd:g},"&:hover":{color:v,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:$},...yr(e)},[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${lt(w)} ${lt(S)}`,borderTop:`${lt(m)} ${f} ${h}`},[I]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${I}-left`]:{top:0,bottom:0,right:{_skip_check_:!0,value:0},width:E,cursor:"col-resize"},[`${I}-right`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},width:E,cursor:"col-resize"},[`${I}-top`]:{insetInline:0,bottom:0,height:E,cursor:"row-resize"},[`${I}-bottom`]:{insetInline:0,top:0,height:E,cursor:"row-resize"},[`${N}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${n}-content`]:{pointerEvents:"none"},[`${n}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},sD=To("Drawer",e=>{const t=ir(e,{});return[lD(t),aD(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4})),cD={distance:180},uD=378,dD={motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},pD=e=>{const{rootClassName:t,size:n,defaultSize:o=uD,height:i,width:a,mask:l,push:s=cD,open:c,afterOpenChange:u,onClose:d,prefixCls:p,getContainer:m,panelRef:f=null,style:h,className:g,resizable:b,"aria-labelledby":v,focusable:y,maskClosable:$,maskStyle:C,drawerStyle:x,contentWrapperStyle:S,destroyOnClose:E,destroyOnHidden:k,...N}=e,{placement:I}=N,M=Is(),P=N.title?M:void 0,{getPopupContainer:R,getPrefixCls:O,direction:z,className:A,style:T,classNames:B,styles:H,mask:D}=xe("drawer"),L=O("drawer",p),[j,F]=sD(L),W=void 0===m&&R?()=>R(document.body):m,_=r.useMemo(()=>"number"===typeof n?n:"large"===n?736:"default"===n?uD:"string"===typeof n?/^\d+(\.\d+)?$/.test(n)?Number(n):n:I&&"left"!==I&&"right"!==I?i:a,[n,I,a,i]),V={motionName:qc(L,"mask-motion"),...dD},X=Bf(),K=w(f,X),[q,G]=Tl("Drawer",N.zIndex),[Y,U,Q]=Wc(l,D,L,$),Z=rf(y,!1!==W&&Y),{classNames:J,styles:ee,rootStyle:te}=N,ne={...e,zIndex:q,panelRef:f,mask:Y,maskClosable:Q,defaultSize:o,push:s,focusable:Z},[oe,ie]=Ca([B,J],[H,ee],{props:ne}),ae=re({"no-mask":!Y,[`${L}-rtl`]:"rtl"===z},t,j,F,oe.root);return r.createElement(Um,{form:!0,space:!0},r.createElement(Pl.Provider,{value:G},r.createElement(eD,{prefixCls:L,onClose:d,maskMotion:V,motion:e=>({motionName:qc(L,`panel-motion-${e}`),...dD}),...N,classNames:{mask:re(oe.mask,U.mask),section:oe.section,wrapper:oe.wrapper,dragger:oe.dragger},styles:{mask:{...ie.mask,...C},section:{...ie.section,...x},wrapper:{...ie.wrapper,...S},dragger:ie.dragger},open:c,mask:Y,maskClosable:Q,push:s,size:_,defaultSize:o,style:{...T,...h},rootStyle:{...te,...ie.root},className:re(A,g),rootClassName:ae,getContainer:W,afterOpenChange:u,panelRef:K,zIndex:q,...b?{resizable:b}:{},"aria-labelledby":v??P,destroyOnHidden:k??E,focusTriggerAfterClose:Z.focusTriggerAfterClose,focusTrap:Z.trap},r.createElement(tD,{prefixCls:L,size:n,...N,ariaId:P,onClose:d}))))};pD._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:o,placement:i="right",...a}=e,{getPrefixCls:l}=r.useContext(ye),s=l("drawer",t),[c,u]=sD(s),d=re(s,`${s}-pure`,`${s}-${i}`,c,u,o);return r.createElement("div",{className:d,style:n},r.createElement(tD,{prefixCls:s,...a}))};const mD=pD;function fD(e){return["small","middle","medium","large"].includes(e)}function hD(e){return!!e&&("number"===typeof e&&!Number.isNaN(e))}const gD=r.createContext({latestIndex:0}),bD=gD.Provider,vD=e=>{const{className:t,prefix:n,index:o,children:i,separator:a,style:l,classNames:s,styles:c}=e,{latestIndex:u}=r.useContext(gD);return xa(i)?r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:l},i),o<u&&a&&r.createElement("span",{className:re(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},yD=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"}}}},$D=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},CD=To("Space",e=>{const t=ir(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[yD(t),$D(t)]},()=>({}),{resetStyle:!1}),xD=r.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,size:i,className:a,style:l,classNames:s,styles:u}=xe("space"),{size:d=i??"small",align:p,className:m,rootClassName:f,children:h,direction:g,orientation:b,prefixCls:v,split:y,separator:$,style:C,vertical:x,wrap:w=!1,classNames:S,styles:E,...k}=e,[N,I]=Array.isArray(d)?d:[d,d],M=fD(I),P=fD(N),R=hD(I),O=hD(N),z=c(h,{keepEmpty:!0}),[A,T]=au(b,x,g),B=void 0!==p||T?p:"center",H=$??y,D=n("space",v),[L,j]=CD(D),F={...e,size:d,orientation:A,align:B},[W,_]=Ca([s,S],[u,E],{props:F}),V=re(D,a,L,`${D}-${A}`,{[`${D}-rtl`]:"rtl"===o,[`${D}-align-${B}`]:B,[`${D}-gap-row-${I}`]:M,[`${D}-gap-col-${N}`]:P},m,f,j,W.root),X=re(`${D}-item`,W.item),K=z.map((e,t)=>{const n=e?.key||`${X}-${t}`;return r.createElement(vD,{prefix:D,classNames:W,styles:_,className:X,key:n,index:t,separator:H,style:_.item},e)});const q=r.useMemo(()=>({latestIndex:z.reduce((e,t,n)=>xa(t)?n:e,0)}),[z]);if(0===z.length)return null;const G={};return w&&(G.flexWrap="wrap"),!P&&O&&(G.columnGap=N),!M&&R&&(G.rowGap=I),r.createElement("div",{ref:t,className:V,style:{...G,..._.root,...l,...C},...k},r.createElement(bD,{value:q},K))}),wD=xD;wD.Compact=pu,wD.Addon=jA;const SD=wD,ED=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:o}=r.useContext(ye),{prefixCls:i,type:a="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:p,className:m,menu:f,arrow:h,autoFocus:g,trigger:b,align:v,open:y,onOpenChange:$,placement:C,getPopupContainer:x,href:w,icon:S=r.createElement(Ex,null),title:E,buttonsRender:k=e=>e,mouseEnterDelay:N,mouseLeaveDelay:I,overlayClassName:M,overlayStyle:P,destroyOnHidden:R,destroyPopupOnHide:O,dropdownRender:z,popupRender:A,...T}=e,B=n("dropdown",i),H=`${B}-button`,D={menu:f,arrow:h,autoFocus:g,align:v,disabled:s,trigger:s?[]:b,onOpenChange:$,getPopupContainer:x||t,mouseEnterDelay:N,mouseLeaveDelay:I,classNames:{root:M},styles:{root:P},destroyOnHidden:R,popupRender:A||z},{compactSize:L,compactItemClassnames:j}=cu(B,o),F=re(H,j,m);"destroyPopupOnHide"in e&&(D.destroyPopupOnHide=O),"open"in e&&(D.open=y),D.placement="placement"in e?C:"rtl"===o?"bottomLeft":"bottomRight";const W=r.createElement(fw,{type:a,danger:l,disabled:s,loading:c,onClick:u,htmlType:d,href:w,title:E},p),_=r.createElement(fw,{type:a,danger:l,icon:S}),[V,X]=k([W,_]);return r.createElement(SD.Compact,{className:F,size:L,block:!0,...T},V,r.createElement(tw,{...D},X))};ED.__ANT_BUTTON=!0;const kD=ED,ND=tw;ND.Button=kD;const ID=ND,MD=["wrap","nowrap","wrap-reverse"],PD=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],RD=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],OD=(e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&MD.includes(n)}},zD=(e,t)=>{const n={};return RD.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},AD=(e,t)=>{const n={};return PD.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},TD=(e,t)=>re({...OD(e,t),...zD(e,t),...AD(e,t)}),BD=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},HD=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},DD=e=>{const{componentCls:t}=e,n={};return MD.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},LD=e=>{const{componentCls:t}=e,n={};return RD.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},jD=e=>{const{componentCls:t}=e,n={};return PD.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},FD=To("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=ir(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[BD(o),HD(o),DD(o),LD(o),jD(o)]},()=>({}),{resetStyle:!1}),WD=r.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:o,className:i,style:a,flex:l,gap:s,vertical:c,orientation:u,component:d="div",children:p,...m}=e,{flex:f,direction:h,getPrefixCls:g}=r.useContext(ye),b=g("flex",n),[v,y]=FD(b),[,$]=au(u,c??f?.vertical),C=re(i,o,f?.className,b,v,y,TD(b,{...e,vertical:$}),{[`${b}-rtl`]:"rtl"===h,[`${b}-gap-${s}`]:fD(s),[`${b}-vertical`]:$}),x={...f?.style,...a};return xa(l)&&(x.flex=l),xa(s)&&!fD(s)&&(x.gap=s),r.createElement(d,{ref:t,className:C,style:x,...Y(m,["justify","wrap","align"])},p)});const _D=WD,VD=r.createContext(null);const XD={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function KD(){return KD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KD.apply(this,arguments)}const qD=r.forwardRef((e,t)=>r.createElement(si,KD({},e,{ref:t,icon:XD}))),GD=(e,t)=>xa(e)?"object"!==typeof e||(0,r.isValidElement)(e)?{...t,title:e}:{...t,...e}:null,YD=e=>{const{componentCls:t,floatButtonSize:n,iconCls:r,antCls:o,floatButtonIconSize:i}=e,[a,l]=Do(o,"float-btn"),s=`${t}-badge`,c=Math.SQRT2,u=(c-1)/c,d=e.calc(e.borderRadius).mul(u).equal(),p=e.calc(e.controlHeight).div(2).mul(u).equal();return{[t]:[{[a("size")]:lt(n)},{flexDirection:"column",margin:0,padding:`${lt(e.paddingXXS)} 0`,width:l("size"),minHeight:l("size"),height:"auto",wordBreak:"break-word",whiteSpace:"normal",gap:e.calc(e.paddingXXS).div(2).equal(),"&-rtl":{direction:"rtl"},[`&${t}-individual`]:{position:"fixed",zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary},[`&${t}-pure`]:{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-icon`]:{lineHeight:1},[`&${t}-icon-only`]:{[r]:{fontSize:i}},[`${t}-content`]:{fontSize:e.fontSizeSM},[s]:{position:"absolute",top:0,insetInlineEnd:0,[`&:not(${s}-dot)`]:{transform:"translate(50%, -50%)"}},[`&-rtl ${s}:not(${s}-dot)`]:{transform:"translate(-50%, -50%)"},"&-square":{[`${s}-dot`]:{marginTop:d,marginInlineEnd:d}},"&-circle":{[s]:{marginTop:p,marginInlineEnd:p}}}]}},UD=e=>{const{componentCls:t,antCls:n,floatButtonSize:r,padding:o}=e,i=`${t}-group`,a=`${i}-list`,[l,s]=Do(n,"float-btn");return{[i]:[{[l("list-transform-start")]:`translate(0,${lt(r)})`,[l("list-trigger-offset")]:`calc(${lt(r)} + ${lt(o)})`},{...br(e),position:"fixed",zIndex:e.zIndexPopupBase,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,gap:o,"&-rtl":{direction:"rtl"},[`&${t}-pure`]:{position:"relative",inset:"auto"},[t]:{position:"relative",inset:"auto"}},{[`&:not(${i}-individual) ${a}`]:{boxShadow:e.boxShadowSecondary},[`&${i}-individual ${a}`]:{gap:o},[`&-menu-mode ${a}`]:{position:"absolute"},[a]:{borderRadius:e.borderRadiusLG,"&-motion":{transition:`all ${e.motionDurationSlow}`,"&-enter, &-appear":{opacity:0,transform:s("list-transform-start"),"&-active":{opacity:1,transform:"translate(0, 0)"}},"&-leave":{"&-active":{opacity:0,transform:s("list-transform-start")}}}},"&-top":{[a]:{bottom:s("list-trigger-offset")}},"&-bottom":{[a]:{[l("list-transform-start")]:`translate(0, calc(${lt(r)} * -1))`,top:s("list-trigger-offset")}},"&-left":{[a]:{[l("list-transform-start")]:`translate(${lt(r)}, 0)`,right:s("list-trigger-offset")}},"&-right":{[a]:{[l("list-transform-start")]:`translate(calc(${lt(r)} * -1), 0)`,left:s("list-trigger-offset")}}}]}},QD=To("FloatButton",e=>{const{controlHeightLG:t,marginXXL:n,marginLG:r,fontSizeIcon:o,calc:i}=e,a=ir(e,{floatButtonIconSize:i(o).mul(1.5).equal(),floatButtonSize:t,floatButtonInsetBlockEnd:n,floatButtonInsetInlineEnd:r});return[YD(a),UD(a),Qf(e)]},()=>({}),{order:-998}),ZD="float-btn",JD=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:a,type:l="default",shape:s="circle",icon:c,description:u,content:d,tooltip:p,badge:m={},classNames:f,styles:h,...g}=e,{getPrefixCls:b,direction:v}=r.useContext(ye),y=r.useContext(VD),$=b(ZD,n),C=Ka($),{shape:x,individual:w,classNames:S,styles:E}=y||{},k=x||s,N=w??!0,I=d??u,M={...e,type:l,shape:k},[P,R]=QD($,C),O=r.useMemo(()=>({icon:`${$}-icon`,content:`${$}-content`}),[$]),[z,A]=Ca([O,S,f],[E,h],{props:M}),T=I||c?c:r.createElement(qD,null),[B]=Tl("FloatButton",a?.zIndex),H={...a,zIndex:B},D=Y(m,["title","children","status","text"]),L="badge"in e&&r.createElement(L$,{...D,className:re(D.className,`${$}-badge`,{[`${$}-badge-dot`]:D.dot})}),j=GD(p);let F=r.createElement(Qd,{...g,ref:t,className:re(P,R,C,$,o,i,`${$}-${l}`,`${$}-${k}`,{[`${$}-rtl`]:"rtl"===v,[`${$}-individual`]:N,[`${$}-icon-only`]:!I}),classNames:z,styles:A,style:H,shape:k,type:l,size:"large",icon:T,_skipSemantic:!0},I,L);return j&&(F=r.createElement(Jy,{...j},F)),F});const eL=JD,tL=r.createElement(h$,null),nL=r.forwardRef((e,t)=>{const{backTopIcon:n}=xe("floatButton"),{prefixCls:o,className:i,type:a="default",shape:l="circle",visibilityHeight:s=400,icon:c,target:u,onClick:d,duration:p=450,...m}=e,f=c??n??tL,[h,g]=(0,r.useState)(0===s),b=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:b.current}));const v=()=>b.current?.ownerDocument||window,y=he(e=>{const t=Va(e.target);g(t>=s)});(0,r.useEffect)(()=>{const e=(u||v)();return y({target:e}),e?.addEventListener("scroll",y),()=>{y.cancel(),e?.removeEventListener("scroll",y)}},[u]);const $=e=>{Xa(0,{getContainer:u||v,duration:p}),d?.(e)},{getPrefixCls:C}=(0,r.useContext)(ye),x=C(ZD,o),S=C(),E=(0,r.useContext)(VD)?.shape,k={prefixCls:x,icon:f,type:a,shape:E||l,...m};return r.createElement(da,{visible:h,motionName:`${S}-fade`},(e,t)=>{let{className:n}=e;return r.createElement(eL,{ref:w(b,t),...k,onClick:$,className:re(i,n)})})});const rL=nL,oL=e=>{const{prefixCls:t,className:n,style:o,classNames:i,styles:a,rootClassName:l,shape:s="circle",type:c="default",placement:u,icon:d=r.createElement(qD,null),closeIcon:p,trigger:m,children:f,onOpenChange:h,open:g,onClick:b,...v}=e,{direction:y,getPrefixCls:$,closeIcon:C,classNames:x,styles:w,className:S,style:E}=xe("floatButtonGroup"),k=p??C??r.createElement(gi,null),N=$(ZD,t),I=Ka(N),[M,P]=QD(N,I),R=`${N}-group`,O=m&&["click","hover"].includes(m),[z]=Tl("FloatButton",o?.zIndex),T=r.useRef(null),B=["top","left","right","bottom"].includes(u)?u:"top",[H,D]=F(!1,g),L="hover"===m,j="click"===m,W=A(e=>{H!==e&&(D(e),h?.(e))});r.useEffect(()=>{if(j){const e=e=>{T.current?.contains(e.target)||W(!1)};return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}},[j]);const _="circle"===s,V={...e,shape:s,type:c,placement:B},[X,K]=Ca([x,i],[w,a],{props:V}),q=r.useMemo(()=>({shape:s,individual:_,classNames:{root:X.item,icon:X.itemIcon,content:X.itemContent},styles:{root:K.item,icon:K.itemIcon,content:K.itemContent}}),[s,_,X,K]),G=r.useMemo(()=>({...q,individual:!0,classNames:{root:X.trigger,icon:X.triggerIcon,content:X.triggerContent},styles:{root:K.trigger,icon:K.triggerIcon,content:K.triggerContent}}),[q,X,K]);let Y;const U=`${R}-list`,Q=e=>{const t="top"===B||"bottom"===B,n={className:re(U,X.list,e),style:K.list};return Y=_?r.createElement(_D,{vertical:t,...n},f):r.createElement(SD.Compact,{vertical:t,...n},f),Y};return r.createElement(VD.Provider,{value:q},r.createElement("div",{className:re(R,M,P,I,S,X.root,n,l,{[`${R}-rtl`]:"rtl"===y,[`${R}-individual`]:_,[`${R}-${B}`]:O,[`${R}-menu-mode`]:O}),style:{...E,zIndex:z,...K.root,...o},ref:T,onMouseEnter:()=>{L&&W(!0)},onMouseLeave:()=>{L&&W(!1)}},O?r.createElement(da,{visible:H,motionName:`${U}-motion`},e=>{let{className:t}=e;return Q(t)}):Q(),O&&r.createElement(VD.Provider,{value:G},r.createElement(eL,{type:c,icon:H?k:d,"aria-label":e["aria-label"],className:`${R}-trigger`,onClick:e=>{j&&W(!H),b?.(e)},...v}))))},iL=e=>{let{backTop:t,...n}=e;return t?r.createElement(rL,{...n,visibilityHeight:0}):r.createElement(eL,{...n})},aL=e=>{let{className:t,items:n,classNames:o,styles:i,prefixCls:a,...l}=e;const{getPrefixCls:s}=r.useContext(ye),c=`${s(ZD,a)}-pure`;return n?r.createElement(oL,{className:re(t,c),classNames:o,styles:i,...l},n.map((e,t)=>r.createElement(iL,{key:t,...e}))):r.createElement(iL,{className:re(t,c),classNames:o,styles:i,...l})};eL.BackTop=rL,eL.Group=oL,eL._InternalPanelDoNotUseOrYouWillBeFired=aL;const lL=eL;function sL(e){const[t,n]=r.useState(e);return r.useEffect(()=>{const t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}const cL=e=>{const{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,o=`${t}-show-help`,i=`${t}-show-help-item`;return{[o]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[i]:{overflow:"hidden",transition:`${["height","opacity","transform"].map(e=>`${e} ${n} ${r}`).join(", ")} !important`,[`&${i}-appear, &${i}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${i}-leave-active`]:{transform:"translateY(-5px)"}}}}},uL=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${lt(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),dL=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},pL=e=>{const{componentCls:t}=e;return{[t]:{...br(e),...uL(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...dL(e,e.controlHeightSM)},"&-large":{...dL(e,e.controlHeightLG)}}}},mL=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[p]=Do(o,"grid");return{[t]:{...br(e),marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{[p("display")]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Zf,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},fL=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),hL=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,\n ${t}-col-xl-24${n}-label`]:fL(e)}}},gL=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},bL=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:fL(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},vL=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${r}-col-24${n}-label,\n ${r}-col-xl-24${n}-label`]:fL(e)},[`@media (max-width: ${lt(e.screenXSMax)})`]:[bL(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:fL(e)}}}],[`@media (max-width: ${lt(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:fL(e)}}},[`@media (max-width: ${lt(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:fL(e)}}},[`@media (max-width: ${lt(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:fL(e)}}}}},yL=(e,t)=>ir(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),$L=To("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=yL(e,n);return[pL(r),mL(r),cL(r),hL(r),gL(r),vL(r),fd(r),Zf]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),{order:-1e3}),CL=[];function xL(e,t,n){return{key:"string"===typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const wL=e=>{let{help:t,helpStatus:n,errors:o=CL,warnings:i=CL,className:a,fieldId:l,onVisibleChanged:s}=e;const{prefixCls:c}=r.useContext(Km),u=`${c}-item-explain`,d=Ka(c),[p,m]=$L(c,d),f=r.useMemo(()=>Gc(c),[c]),h=sL(o),g=sL(i),b=r.useMemo(()=>xa(t)?[xL(t,"help",n)]:[].concat(le(h.map((e,t)=>xL(e,"error","error",t))),le(g.map((e,t)=>xL(e,"warning","warning",t)))),[t,n,h,g]),v=r.useMemo(()=>{const e={};return b.forEach(t=>{let{key:n}=t;e[n]=(e[n]||0)+1}),b.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[b]),y={};return l&&(y.id=`${l}_help`),r.createElement(da,{motionDeadline:f.motionDeadline,motionName:`${c}-show-help`,visible:!!v.length,onVisibleChanged:s},e=>{const{className:t,style:n}=e;return r.createElement("div",{...y,className:re(u,t,m,d,a,p),style:n},r.createElement(ua,{keys:v,...Gc(c),motionName:`${c}-show-help-item`,component:!1},e=>{const{key:t,error:n,errorStatus:o,className:i,style:a}=e;return r.createElement("div",{key:t,className:re(i,{[`${u}-${o}`]:o}),style:a},n)}))})},SL=r.forwardRef((e,t)=>{const n=r.useContext($c),{getPrefixCls:o,direction:i,requiredMark:a,colon:l,scrollToFirstError:s,className:c,style:u,styles:d,classNames:p,tooltip:m}=xe("form"),{prefixCls:f,className:h,rootClassName:g,size:b,disabled:v=n,form:y,colon:$,labelAlign:C,labelWrap:x,labelCol:w,wrapperCol:S,layout:E="horizontal",scrollToFirstError:k,requiredMark:N,onFinishFailed:I,name:M,style:P,feedbackIcons:R,variant:O,classNames:z,styles:A,tooltip:T,...B}=e,H=ou(b),D=r.useContext(Zl);const L=r.useMemo(()=>void 0!==N?N:void 0===a||a,[N,a]),j=$??l,F={...m,...T},W=o("form",f),_=Ka(W),[V,X]=$L(W,_),K={...e,size:H,disabled:v,layout:E,colon:j,requiredMark:L},[q,G]=Ca([p,z],[d,A],{props:K}),Y=re(W,`${W}-${E}`,{[`${W}-hide-required-mark`]:!1===L,[`${W}-rtl`]:"rtl"===i,[`${W}-large`]:"large"===H,[`${W}-small`]:"small"===H},X,_,V,c,h,g,q.root),[U]=hM(y),{__INTERNAL__:Q}=U;Q.name=M;const Z=r.useMemo(()=>({name:M,labelAlign:C,labelCol:w,labelWrap:x,wrapperCol:S,layout:E,colon:j,requiredMark:L,itemRef:Q.itemRef,form:U,feedbackIcons:R,tooltip:F,classNames:q,styles:G}),[M,C,w,S,E,j,L,U,R,q,G,F]),J=r.useRef(null);r.useImperativeHandle(t,()=>({...U,nativeElement:J.current?.nativeElement}));const ee=(e,t)=>{if(e){let n={block:"nearest"};"object"===typeof e&&(n={...n,...e}),U.scrollToField(t,n)}};return r.createElement(Ym.Provider,{value:O},r.createElement(yc,{disabled:v},r.createElement(wc.Provider,{value:H},r.createElement(Xm,{validateMessages:D},r.createElement(_m.Provider,{value:Z},r.createElement(Gm,{status:!0},r.createElement(Wm,{id:M,...B,name:M,onFinishFailed:e=>{if(I?.(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==k)return void ee(k,t);void 0!==s&&ee(s,t)}},form:U,ref:J,style:{...G?.root,...u,...P},className:Y})))))))});const EL=SL;const kL=()=>{const{status:e,errors:t=[],warnings:n=[]}=r.useContext(qm);return{status:e,errors:t,warnings:n}};kL.Context=qm;const NL=kL;function IL(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if("object"===typeof e&&null!==e)for(let r=0;r<uy.length;r++){const i=uy[r];if(o[i]&&void 0!==e[i]){n[t]=e[i];break}}else n[t]=e}),n}function ML(e,t){const[n,o]=r.useState("string"===typeof e?e:"");return r.useEffect(()=>{(()=>{if("string"===typeof e&&o(e),"object"===typeof e)for(let n=0;n<uy.length;n++){const r=uy[n];if(!t||!t[r])continue;const i=e[r];if(void 0!==i)return void o(i)}})()},[JSON.stringify(e),t]),n}const PL=r.forwardRef((e,t)=>{const{prefixCls:n,justify:o,align:i,className:a,style:l,children:s,gutter:c=0,wrap:u,...d}=e,{getPrefixCls:p,direction:m}=r.useContext(ye),f=hy(!0,null),h=ML(i,f),g=ML(o,f),b=p("row",n),[v,y]=Vf(b),$=IL(c,f),C=re(b,{[`${b}-no-wrap`]:!1===u,[`${b}-${g}`]:g,[`${b}-${h}`]:h,[`${b}-rtl`]:"rtl"===m},a,v,y),x={};if($?.[0]){const e="number"===typeof $[0]?$[0]/-2+"px":`calc(${$[0]} / -2)`;x.marginInline=e}const[w,S]=$;x.rowGap=S;const E=r.useMemo(()=>({gutter:[w,S],wrap:u}),[w,S,u]);return r.createElement(Bz.Provider,{value:E},r.createElement("div",{...d,className:C,style:{...x,...l},ref:t},s))});const RL=PL,OL=Ho(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;return(e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}})(yL(e,n))}),zL=e=>{const{prefixCls:t,status:n,labelCol:o,wrapperCol:i,children:a,errors:l,warnings:s,_internalItemRender:c,extra:u,help:d,fieldId:p,marginBottom:m,onErrorVisibleChanged:f,label:h}=e,g=`${t}-item`,b=r.useContext(_m),{classNames:v,styles:y}=b,$=r.useMemo(()=>{let e={...i||b.wrapperCol||{}};if(null===h&&!o&&!i&&b.labelCol){[void 0].concat(le(dy)).forEach(t=>{const n=t?[t]:[],r=W(b.labelCol,n),o="object"===typeof r?r:{},i=W(e,n);"span"in o&&!("offset"in("object"===typeof i?i:{}))&&o.span<24&&(e=V(e,[].concat(n,["offset"]),o.span))})}return e},[i,b.wrapperCol,b.labelCol,h,o]),C=re(`${g}-control`,$.className),x=r.useMemo(()=>{const{labelCol:e,wrapperCol:t,...n}=b;return n},[b]),w=r.useRef(null),[S,E]=r.useState(0);L(()=>{u&&w.current?E(w.current.clientHeight):E(0)},[u]);const k=r.createElement("div",{className:`${g}-control-input`},r.createElement("div",{className:re(`${g}-control-input-content`,v?.content),style:y?.content},a)),N=r.useMemo(()=>({prefixCls:t,status:n}),[t,n]),I=null!==m||l.length||s.length?r.createElement(Km.Provider,{value:N},r.createElement(wL,{fieldId:p,errors:l,warnings:s,help:d,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:f})):null,M={};p&&(M.id=`${p}_extra`);const P=u?r.createElement("div",{...M,className:`${g}-extra`,ref:w},u):null,R=I||P?r.createElement("div",{className:`${g}-additional`,style:m?{minHeight:m+S}:{}},I,P):null,O=c&&"pro_table_render"===c.mark&&c.render?c.render(e,{input:k,errorList:I,extra:P}):r.createElement(r.Fragment,null,k,R);return r.createElement(_m.Provider,{value:x},r.createElement(Lz,{...$,className:C},O),r.createElement(OL,{prefixCls:t}))};const AL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function TL(){return TL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TL.apply(this,arguments)}const BL=r.forwardRef((e,t)=>r.createElement(si,TL({},e,{ref:t,icon:AL}))),HL=e=>{let{prefixCls:t,label:n,htmlFor:o,labelCol:i,labelAlign:a,colon:l,required:s,requiredMark:c,tooltip:u,vertical:d}=e;const[p]=Yc("Form"),{labelAlign:m,labelCol:f,labelWrap:h,colon:g,classNames:b,styles:v,tooltip:y}=r.useContext(_m);if(!n)return null;const $=i||f||{},C=`${t}-item-label`,x=re(C,"left"===(a||m)&&`${C}-left`,$.className,{[`${C}-wrap`]:!!h});let w=n;const S=!0===l||!1!==g&&!1!==l;S&&!d&&"string"===typeof n&&n.trim()&&(w=n.replace(/[:|\uff1a]\s*$/,""));const E=GD(u,y);if(E){const e=r.createElement(Jy,{...E},r.createElement("span",{className:`${t}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},E.icon||E.children||r.createElement(BL,null)));w=r.createElement(r.Fragment,null,w,e)}const k="optional"===c,N="function"===typeof c,I=!1===c;let M;N?w=c(w,{required:!!s}):k&&!s&&(w=r.createElement(r.Fragment,null,w,r.createElement("span",{className:`${t}-item-optional`,title:""},p?.optional||ss.Form?.optional))),I?M="hidden":(k||N)&&(M="optional");const P=re(b?.label,{[`${t}-item-required`]:s,[`${t}-item-required-mark-${M}`]:M,[`${t}-item-no-colon`]:!S});return r.createElement(Lz,{...$,className:x},r.createElement("label",{htmlFor:o,className:P,style:v?.label,title:"string"===typeof n?n:""},w))},DL={success:ui,warning:yi,error:mi,validating:kl};const LL=function(e){let{children:t,errors:n,warnings:o,hasFeedback:i,validateStatus:a,prefixCls:l,meta:s,noStyle:c,name:u}=e;const d=`${l}-item`,{feedbackIcons:p}=r.useContext(_m),m=pM(n,o,s,null,!!i,a),{isFormItemInput:f,status:h,hasFeedback:g,feedbackIcon:b,name:v}=r.useContext(qm),y=r.useMemo(()=>{let e;if(i){const t=!0!==i&&i.icons||p,a=m&&t?.({status:m,errors:n,warnings:o})?.[m],l=m?DL[m]:null;e=!1!==a&&l?r.createElement("span",{className:re(`${d}-feedback-icon`,`${d}-feedback-icon-${m}`)},a||r.createElement(l,null)):null}const t={status:m||"",errors:n,warnings:o,hasFeedback:!!i,feedbackIcon:e,isFormItemInput:!0,name:u};return c&&(t.status=(m??h)||"",t.isFormItemInput=f,t.hasFeedback=!!(i??g),t.feedbackIcon=void 0!==i?t.feedbackIcon:b,t.name=u??v),t},[m,i,c,f,h]);return r.createElement(qm.Provider,{value:y},t)};function jL(e){const{prefixCls:t,className:n,rootClassName:o,style:i,help:a,errors:l,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:p,children:m,fieldId:f,required:h,isRequired:g,onSubItemMetaChange:b,layout:v,name:y,...$}=e,C=`${t}-item`,{requiredMark:x,layout:w}=r.useContext(_m),S=v||w,E="vertical"===S,k=r.useRef(null),N=sL(l),I=sL(s),M=xa(a),P=!!(M||l.length||s.length),R=!!k.current&&Ys(k.current),[O,z]=r.useState(null);L(()=>{if(P&&k.current){const e=getComputedStyle(k.current);z(Number.parseInt(e.marginBottom,10))}},[P,R]);const A=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return pM(e?N:u.errors,e?I:u.warnings,u,"",!!d,c)}(),T=re(C,n,o,{[`${C}-with-help`]:M||N.length||I.length,[`${C}-has-feedback`]:A&&d,[`${C}-has-success`]:"success"===A,[`${C}-has-warning`]:"warning"===A,[`${C}-has-error`]:"error"===A,[`${C}-is-validating`]:"validating"===A,[`${C}-hidden`]:p,[`${C}-${S}`]:S});return r.createElement("div",{className:T,style:i,ref:k},r.createElement(RL,{className:`${C}-row`,...Y($,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])},r.createElement(HL,{htmlFor:f,...e,requiredMark:x,required:h??g,prefixCls:t,vertical:E}),r.createElement(zL,{...e,...u,errors:N,warnings:I,prefixCls:t,status:A,help:a,marginBottom:O,onErrorVisibleChanged:e=>{e||z(null)}},r.createElement(Vm.Provider,{value:b},r.createElement(LL,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:A,name:y},m)))),!!O&&r.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-O}}))}const FL=r.memo(e=>e.children,(e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{const r=e[n],o=t[n];return r===o||"function"===typeof r||"function"===typeof o})}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));const WL=function(e){const{name:t,noStyle:n,className:o,dependencies:i,prefixCls:a,shouldUpdate:l,rules:s,children:u,required:d,label:p,messageVariables:m,trigger:f="onChange",validateTrigger:h,hidden:g,help:b,layout:v}=e,{getPrefixCls:y}=r.useContext(ye),{name:$}=r.useContext(_m),C=function(e){if("function"===typeof e)return e;const t=c(e);return t.length<=1?t[0]:t}(u),x="function"===typeof C,S=r.useContext(Vm),{validateTrigger:k}=r.useContext(Ap),N=xa(h)?h:k,M=xa(t),P=y("form",a),R=Ka(P),[O,z]=$L(P,R);ll("Form.Item");const A=r.useContext(Tp),T=r.useRef(null),[B,H]=function(e){const[t,n]=r.useState(e),o=r.useRef(null),i=r.useRef([]),a=r.useRef(!1);return r.useEffect(()=>(a.current=!1,()=>{a.current=!0,fe.cancel(o.current),o.current=null}),[]),[t,function(e){a.current||(null===o.current&&(i.current=[],o.current=fe(()=>{o.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}]}({}),[D,L]=j(()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1})),F=(e,t)=>{H(n=>{const r={...n},o=[].concat(le(e.name.slice(0,-1)),le(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r})},[W,_]=r.useMemo(()=>{const e=le(D.errors),t=le(D.warnings);return Object.values(B).forEach(n=>{e.push.apply(e,le(n.errors||[])),t.push.apply(t,le(n.warnings||[]))}),[e,t]},[B,D.errors,D.warnings]),V=function(){const{itemRef:e}=r.useContext(_m),t=r.useRef({});return function(n,r){const o=r&&"object"===typeof r&&I(r),i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=w(e(n),o)),t.current.ref}}();function X(i,a,l){return n&&!g?r.createElement(LL,{prefixCls:P,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:W,warnings:_,noStyle:!0,name:t},i):r.createElement(jL,{key:"row",...e,className:re(o,z,R,O),prefixCls:P,fieldId:a,isRequired:l,errors:W,warnings:_,meta:D,onSubItemMetaChange:F,layout:v,name:t},i)}if(!M&&!x&&!i)return X(C);let K={};return"string"===typeof p?K.label=p:t&&(K.label=String(t)),m&&(K={...K,...m}),r.createElement(Nm,{...e,messageVariables:K,trigger:f,validateTrigger:N,onMetaChange:e=>{const t=A?.getKey(e.name);if(L(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==b&&S){let n=e.name;if(e.destroy)n=T.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(le(r)),T.current=n}S(e,n)}}},(n,o,a)=>{const c=uM(t).length&&o?o.name:[],u=dM(c,$),p=void 0!==d?d:!!s?.some(e=>{if(e&&"object"===typeof e&&e.required&&!e.warningOnly)return!0;if("function"===typeof e){const t=e(a);return t?.required&&!t?.warningOnly}return!1}),m={...n};let h=null;if(Array.isArray(C)&&M)h=C;else if(x&&(!l&&!i||M));else if(!i||x||M)if(r.isValidElement(C)){const t={...C.props,...m};if(t.id||(t.id=u),b||W.length>0||_.length>0||e.extra){const n=[];(b||W.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}W.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),E(C)&&(t.ref=V(c,C));new Set([].concat(le(uM(f)),le(uM(N)))).forEach(e=>{t[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];m[e]?.(...n),C.props[e]?.(...n)}});const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];h=r.createElement(FL,{control:m,update:C,childProps:n},Ml(C,t))}else h=x&&(l||i)&&!M?C(a):C;else;return X(h,u,p)})};WL.useStatus=NL;const _L=WL,VL=e=>{let{prefixCls:t,children:n,...o}=e;const{getPrefixCls:i}=r.useContext(ye),a=i("form",t),l=r.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return r.createElement(Im,{...o},(e,t,o)=>r.createElement(Km.Provider,{value:l},n(e.map(e=>({...e,fieldKey:e.key})),t,{errors:o.errors,warnings:o.warnings})))};const XL=EL;XL.Item=_L,XL.List=VL,XL.ErrorList=wL,XL.useForm=hM,XL.useFormInstance=function(){const{form:e}=r.useContext(_m);return e},XL.useWatch=jm,XL.Provider=Xm;const KL=XL;const qL={useBreakpoint:function(){return hy()}},GL=r.createContext(null);function YL(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}const UL={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function QL(e,t,n,r){const o=t+n,i=(n-r)/2;if(n>r){if(t>0)return{[e]:i};if(t<0&&o<r)return{[e]:-i}}else if(t<0||o>r)return{[e]:t<0?i:-i};return{}}function ZL(e,t,n,r){const{width:o,height:i}=YL();let a=null;return e<=o&&t<=i?a={x:0,y:0}:(e>o||t>i)&&(a={...QL("x",n,e,o),...QL("y",r,t,i)}),a}function JL(e){let{src:t,isCustomPlaceholder:n,fallback:o}=e;const[i,a]=(0,r.useState)(n?"loading":"normal"),l=(0,r.useRef)(!1),s="error"===i;(0,r.useEffect)(()=>{let e=!0;return function(e){return new Promise(t=>{if(!e)return void t(!1);const n=document.createElement("img");n.onerror=()=>t(!1),n.onload=()=>t(!0),n.src=e})}(t).then(t=>{!t&&e&&a("error")}),()=>{e=!1}},[t]),(0,r.useEffect)(()=>{n&&!l.current?a("loading"):s&&a("normal")},[t]);const c=()=>{a("normal")};return[e=>{l.current=!1,"loading"===i&&e?.complete&&(e.naturalWidth||e.naturalHeight)&&(l.current=!0,c())},s&&o?{src:o}:{onLoad:c,src:t},i]}function ej(e,t){const n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function tj(e,t,n,o,i,a,l){const{rotate:s,scale:c,x:u,y:d}=i,[p,m]=(0,r.useState)(!1),f=(0,r.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),h=e=>{f.current={...f.current,...e}};return(0,r.useEffect)(()=>{const e=e=>{e.preventDefault()};return n&&t&&window.addEventListener("touchmove",e,{passive:!1}),()=>{window.removeEventListener("touchmove",e)}},[n,t]),{isTouching:p,onTouchStart:e=>{if(!t)return;e.stopPropagation(),m(!0);const{touches:n=[]}=e;n.length>1?h({point1:{x:n[0].clientX,y:n[0].clientY},point2:{x:n[1].clientX,y:n[1].clientY},eventType:"touchZoom"}):h({point1:{x:n[0].clientX-u,y:n[0].clientY-d},eventType:"move"})},onTouchMove:e=>{const{touches:t=[]}=e,{point1:n,point2:r,eventType:o}=f.current;if(t.length>1&&"touchZoom"===o){const e={x:t[0].clientX,y:t[0].clientY},o={x:t[1].clientX,y:t[1].clientY},[i,a]=function(e,t,n,r){const o=ej(e,n),i=ej(t,r);if(0===o&&0===i)return[e.x,e.y];const a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(n,r,e,o),s=ej(e,o)/ej(n,r);l(s,"touchZoom",i,a,!0),h({point1:e,point2:o,eventType:"touchZoom"})}else"move"===o&&(a({x:t[0].clientX-n.x,y:t[0].clientY-n.y},"move"),h({eventType:"move"}))},onTouchEnd:()=>{if(!n)return;if(p&&m(!1),h({eventType:"none"}),o>c)return a({x:0,y:0,scale:o},"touchZoom");const t=e.current.offsetWidth*c,r=e.current.offsetHeight*c,{left:i,top:l}=e.current.getBoundingClientRect(),u=s%180!==0,d=ZL(u?r:t,u?t:r,i,l);d&&a({...d},"dragRebound")}}}function nj(e){const{prefixCls:t,icon:n,onClick:o,className:i,style:a}=e;return r.createElement("button",{className:re(`${t}-close`,i),style:a,onClick:o},n)}function rj(e){const{prefixCls:t,showProgress:n,current:o,count:i,showSwitch:a,classNames:l,styles:s,icons:c,image:u,transform:d,countRender:p,actionsRender:m,scale:f,minScale:h,maxScale:g,onActive:b,onFlipY:v,onFlipX:y,onRotateLeft:$,onRotateRight:C,onZoomOut:x,onZoomIn:w,onClose:S,onReset:E}=e,{left:k,right:N,prev:I,next:M,flipY:P,flipX:R,rotateLeft:O,rotateRight:z,zoomOut:A,zoomIn:T}=c,B=n&&r.createElement("div",{className:`${t}-progress`},p?p(o+1,i):r.createElement("bdi",null,`${o+1} / ${i}`)),H=`${t}-actions-action`,D=e=>{let{type:t,disabled:n,onClick:o,icon:i}=e;return r.createElement("button",{type:"button",key:t,className:re(H,`${H}-${t}`,{[`${H}-disabled`]:!!n}),onClick:o,disabled:!!n,"aria-label":t},i)},L=a?D({icon:I??k,onClick:()=>b(-1),type:"prev",disabled:0===o}):void 0,j=a?D({icon:M??N,onClick:()=>b(1),type:"next",disabled:o===i-1}):void 0,F=D({icon:P,onClick:v,type:"flipY"}),W=D({icon:R,onClick:y,type:"flipX"}),_=D({icon:O,onClick:$,type:"rotateLeft"}),V=D({icon:z,onClick:C,type:"rotateRight"}),X=D({icon:A,onClick:x,type:"zoomOut",disabled:f<=h}),K=D({icon:T,onClick:w,type:"zoomIn",disabled:f===g}),q=r.createElement("div",{className:re(`${t}-actions`,l.actions),style:s.actions},F,W,_,V,X,K);return r.createElement("div",{className:re(`${t}-footer`,l.footer),style:s.footer},B,m?m(q,{icons:{prevIcon:L,nextIcon:j,flipYIcon:F,flipXIcon:W,rotateLeftIcon:_,rotateRightIcon:V,zoomOutIcon:X,zoomInIcon:K},actions:{onActive:b,onFlipY:v,onFlipX:y,onRotateLeft:$,onRotateRight:C,onZoomOut:x,onZoomIn:w,onReset:E,onClose:S},transform:d,current:o,total:i,image:u}):q)}function oj(e){const{prefixCls:t,onActive:n,current:o,count:i,icons:{left:a,right:l,prev:s,next:c}}=e,u=`${t}-switch`,d=0===o,p=o===i-1;return r.createElement(r.Fragment,null,r.createElement("button",{className:re(u,`${u}-prev`,{[`${u}-disabled`]:d}),onClick:()=>n(-1),disabled:d},s??a),r.createElement("button",{type:"button",className:re(u,`${u}-next`,{[`${u}-disabled`]:p}),onClick:()=>n(1),disabled:p},c??l))}function ij(){return ij=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ij.apply(this,arguments)}const aj=e=>{let{fallback:t,src:n,imgRef:o,...i}=e;const[a,l]=JL({src:n,fallback:t});return r.createElement("img",ij({ref:e=>{o.current=e,a(e)}},i,l))},lj=e=>{const{prefixCls:t,rootClassName:n,src:o,alt:i,imageInfo:a,fallback:l,movable:s=!0,onClose:c,open:u,afterOpenChange:d,icons:m={},closeIcon:f,getContainer:h,current:g=0,count:b=1,countRender:v,scaleStep:y=.5,minScale:$=1,maxScale:C=50,motionName:x="fade",imageRender:w,imgCommonProps:S,actionsRender:E,onTransform:k,onChange:N,classNames:I={},styles:M={},mousePosition:P,zIndex:R}=e,O=(0,r.useRef)(),z=(0,r.useRef)(null),T=(0,r.useContext)(GL),B=T&&b>1,H=T&&b>=1,[D,j]=(0,r.useState)(!0),{transform:F,resetTransform:W,updateTransform:_,dispatchZoomChange:V}=function(e,t,n,o){const i=(0,r.useRef)(null),a=(0,r.useRef)([]),[l,s]=(0,r.useState)(UL),c=(e,t)=>{null===i.current&&(a.current=[],i.current=fe(()=>{s(e=>{let n=e;return a.current.forEach(e=>{n={...n,...e}}),i.current=null,o?.({transform:n,action:t}),n})})),a.current.push({...l,...e})};return{transform:l,resetTransform:e=>{s(UL),je(UL,l)||o?.({transform:UL,action:e})},updateTransform:c,dispatchZoomChange:(r,o,i,a,s)=>{const{width:u,height:d,offsetWidth:p,offsetHeight:m,offsetLeft:f,offsetTop:h}=e.current;let g=r,b=l.scale*r;b>n?(b=n,g=n/l.scale):b<t&&(b=s?b:t,g=b/l.scale);const v=i??innerWidth/2,y=a??innerHeight/2,$=g-1,C=$*u*.5,x=$*d*.5,w=$*(v-l.x-f),S=$*(y-l.y-h);let E=l.x-(w-C),k=l.y-(S-x);if(r<1&&1===b){const e=p*b,t=m*b,{width:n,height:r}=YL();e<=n&&t<=r&&(E=0,k=0)}c({x:E,y:k,scale:b},o)}}}(O,$,C,k),{isMoving:X,onMouseDown:K,onWheel:q}=function(e,t,n,o,i,a,l){const{rotate:s,scale:c,x:u,y:d}=i,[m,f]=(0,r.useState)(!1),h=(0,r.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),g=e=>{n&&m&&a({x:e.pageX-h.current.diffX,y:e.pageY-h.current.diffY},"move")},b=()=>{if(n&&m){f(!1);const{transformX:t,transformY:n}=h.current;if(u===t||d===n)return;const r=e.current.offsetWidth*c,o=e.current.offsetHeight*c,{left:i,top:l}=e.current.getBoundingClientRect(),p=s%180!==0,m=ZL(p?o:r,p?r:o,i,l);m&&a({...m},"dragRebound")}};return(0,r.useEffect)(()=>{if(t){window.addEventListener("mouseup",b,!1),window.addEventListener("mousemove",g,!1);try{window.top!==window.self&&(window.top.addEventListener("mouseup",b,!1),window.top.addEventListener("mousemove",g,!1))}catch(e){p()}}return()=>{window.removeEventListener("mouseup",b),window.removeEventListener("mousemove",g);try{window.top?.removeEventListener("mouseup",b),window.top?.removeEventListener("mousemove",g)}catch(e){}}},[n,m,u,d,s,t]),{isMoving:m,onMouseDown:e=>{t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),h.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},f(!0))},onMouseMove:g,onMouseUp:b,onWheel:e=>{if(!n||0==e.deltaY)return;const t=Math.abs(e.deltaY/100);let r=1+Math.min(t,1)*o;e.deltaY>0&&(r=1/r),l(r,"wheel",e.clientX,e.clientY)}}}(O,s,u,y,F,_,V),{isTouching:G,onTouchStart:Y,onTouchMove:U,onTouchEnd:Q}=tj(O,s,u,$,F,_,V),{rotate:Z,scale:J}=F;(0,r.useEffect)(()=>{D||j(!0)},[D]),(0,r.useEffect)(()=>{u||W("close")},[u]);const ee=r.createElement(aj,ij({},S,{width:e.width,height:e.height,imgRef:O,className:`${t}-img`,alt:i,style:{transform:`translate3d(${F.x}px, ${F.y}px, 0) scale3d(${F.flipX?"-":""}${J}, ${F.flipY?"-":""}${J}, 1) rotate(${Z}deg)`,transitionDuration:(!D||G)&&"0s"},fallback:l,src:o,onWheel:q,onMouseDown:K,onDoubleClick:e=>{u&&(1!==J?_({x:0,y:0,scale:1},"doubleClick"):V(1+y,"doubleClick",e.clientX,e.clientY))},onTouchStart:Y,onTouchMove:U,onTouchEnd:Q,onTouchCancel:Q})),te={url:o,alt:i,...a},ne=()=>{V(1+y,"zoomIn")},oe=()=>{V(1/(1+y),"zoomOut")},ie=()=>{_({rotate:Z+90},"rotateRight")},ae=()=>{_({rotate:Z-90},"rotateLeft")},le=()=>{_({flipX:!F.flipX},"flipX")},se=()=>{_({flipY:!F.flipY},"flipY")},ce=()=>{W("reset")},ue=e=>{const t=g+e;t>=0&&t<=b-1&&(j(!1),W(e<0?"prev":"next"),N?.(t,g))},de=A(e=>{if(u){const{keyCode:t}=e;B&&(t===ul.LEFT?ue(-1):t===ul.RIGHT&&ue(1))}});(0,r.useEffect)(()=>{if(u)return window.addEventListener("keydown",de),()=>{window.removeEventListener("keydown",de)}},[u]);const[pe,me]=(0,r.useState)(!1);r.useEffect(()=>{u&&me(!0)},[u]);const[he,ge]=(0,r.useState)(!1);L(()=>{u&&ge(!0)},[u]);bp(u&&he,()=>z.current);const be={...M.body};return P&&(be.transformOrigin=`${P.x}px ${P.y}px`),r.createElement(Bs,{open:he&&u,autoDestroy:!1,getContainer:h,autoLock:pe,onEsc:e=>{let{top:t}=e;t&&c?.()}},r.createElement(da,{motionName:x,visible:he&&u,motionAppear:!0,motionEnter:!0,motionLeave:!0,onVisibleChanged:e=>{e||me(!1),d?.(e)}},e=>{let{className:o,style:a}=e;const l={...M.root,...a};return R&&(l.zIndex=R),r.createElement("div",{ref:z,className:re(t,n,I.root,o,{[`${t}-movable`]:s,[`${t}-moving`]:X}),style:l,role:"dialog","aria-modal":"true","aria-label":i,tabIndex:-1},r.createElement("div",{className:re(`${t}-mask`,I.mask),style:M.mask,onClick:c}),r.createElement("div",{className:re(`${t}-body`,I.body),style:be},w?w(ee,{transform:F,image:te,...T?{current:g}:{}}):ee),!1!==f&&null!==f&&r.createElement(nj,{prefixCls:t,icon:!0===f?m.close:f||m.close,onClick:c,className:I.close,style:M.close}),B&&r.createElement(oj,{prefixCls:t,current:g,count:b,icons:m,onActive:ue}),r.createElement(rj,{prefixCls:t,showProgress:H,current:g,count:b,showSwitch:B,classNames:I,styles:M,image:te,transform:F,icons:m,countRender:v,actionsRender:E,scale:J,minScale:$,maxScale:C,onActive:ue,onFlipY:se,onFlipX:le,onRotateLeft:ae,onRotateRight:ie,onZoomOut:oe,onZoomIn:ne,onClose:c,onReset:ce}))}))},sj=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt","fetchPriority"];function cj(){return cj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cj.apply(this,arguments)}const uj=e=>{let{previewPrefixCls:t="rc-image-preview",classNames:n,styles:o,children:i,icons:a={},items:l,preview:s,fallback:c}=e;const{open:u,onOpenChange:d,current:p,onChange:m,...f}=s&&"object"===typeof s?s:{},[h,g,b]=function(e){const[t,n]=r.useState({}),o=r.useCallback((e,t)=>(n(n=>({...n,[e]:t})),()=>{n(t=>{const n={...t};return delete n[e],n})}),[]);return[r.useMemo(()=>e?e.map(e=>{if("string"===typeof e)return{data:{src:e}};const t={};return Object.keys(e).forEach(n=>{["src",...sj].includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(t).reduce((e,n)=>{const{canPreview:r,data:o}=t[n];return r&&e.push({data:o,id:n}),e},[]),[e,t]),o,!!e]}(l),[v,y]=F(0,p),[$,C]=(0,r.useState)(!1),{src:x,...w}=h[v]?.data||{},[S,E]=F(!!u,u),k=A(e=>{E(e),e!==S&&d?.(e,{current:v})}),[N,I]=(0,r.useState)(null),M=r.useCallback((e,t,n,r)=>{const o=b?h.findIndex(e=>e.data.src===t):h.findIndex(t=>t.id===e);y(o<0?0:o),k(!0),I({x:n,y:r}),C(!0)},[h,b]);r.useEffect(()=>{S?$||y(0):C(!1)},[S]);const P=r.useMemo(()=>({register:g,onPreview:M}),[g,M]);return r.createElement(GL.Provider,{value:P},i,r.createElement(lj,cj({"aria-hidden":!S,open:S,prefixCls:t,onClose:()=>{k(!1),I(null)},mousePosition:N,imgCommonProps:w,src:x,fallback:c,icons:a,current:v,count:h.length,onChange:(e,t)=>{y(e),m?.(e,t)}},f,{classNames:n?.popup,styles:o?.popup})))};let dj=0;function pj(){return pj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pj.apply(this,arguments)}const mj=e=>{const{prefixCls:t="rc-image",previewPrefixCls:n=`${t}-preview`,rootClassName:o,className:i,style:a,classNames:l={},styles:s={},width:c,height:u,src:d,alt:p,placeholder:m,fallback:f,preview:h=!0,onClick:g,onError:b,onKeyDown:v,...y}=e,$=(0,r.useContext)(GL),C=!!h,{src:x,open:w,onOpenChange:S,cover:E,rootClassName:k,...N}=h&&"object"===typeof h?h:{},I="object"===typeof E&&E.placement&&E.placement||"center",M="object"===typeof E&&E.coverNode?E.coverNode:E,[P,R]=F(!!w,w),[O,z]=(0,r.useState)(null),A=e=>{R(e),S?.(e)},T=m&&!0!==m,B=x??d,[H,D,L]=JL({src:d,isCustomPlaceholder:T,fallback:f}),j=(0,r.useMemo)(()=>{const t={};return sj.forEach(n=>{void 0!==e[n]&&(t[n]=e[n])}),t},sj.map(t=>e[t])),W=(0,r.useMemo)(()=>({...j,src:B}),[B,j]),_=function(e,t){const[n]=r.useState(()=>(dj+=1,String(dj))),o=r.useContext(GL),i={data:t,canPreview:e};return r.useEffect(()=>{if(o)return o.register(n,i)},[]),r.useEffect(()=>{o&&o.register(n,i)},[e,t]),n}(C,W);return r.createElement(r.Fragment,null,r.createElement("div",pj({},y,{className:re(t,o,l.root,{[`${t}-error`]:"error"===L}),onClick:C?e=>{const t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;$?$.onPreview(_,B,n,r):(z({x:n,y:r}),A(!0)),g?.(e)}:g,role:C?"button":y.role,tabIndex:C&&null==y.tabIndex?0:y.tabIndex,"aria-label":C?y["aria-label"]??p:y["aria-label"],onKeyDown:e=>{if(v?.(e),C&&("Enter"===e.key||" "===e.key)){e.preventDefault();const t=e.target.getBoundingClientRect(),n=t.x+t.width/2,r=t.y+t.height/2;$?$.onPreview(_,B,n,r):(z({x:n,y:r}),A(!0))}},style:{width:c,height:u,...s.root}}),r.createElement("img",pj({},j,{className:re(`${t}-img`,{[`${t}-img-placeholder`]:!0===m},l.image,i),style:{height:u,...s.image,...a},ref:H},D,{width:c,height:u,onError:b})),"loading"===L&&r.createElement("div",{"aria-hidden":"true",className:`${t}-placeholder`},m),!1!==E&&C&&r.createElement("div",{className:re(`${t}-cover`,l.cover,`${t}-cover-${I}`),style:{display:"none"===a?.display?"none":void 0,...s.cover}},M)),!$&&C&&r.createElement(lj,pj({"aria-hidden":!P,open:P,prefixCls:n,onClose:()=>{A(!1)},mousePosition:O,src:B,alt:p,imageInfo:{width:c,height:u},fallback:f,imgCommonProps:j},N,{classNames:l?.popup,styles:s?.popup,rootClassName:re(k,o)})))};mj.PreviewGroup=uj;const fj=mj,hj=(e,t,n,o,i,a,l)=>{const[s]=Tl("ImagePreview",e?.zIndex),[c,u]=Wc(e?.mask,t?.mask,`${n}-preview`);return r.useMemo(()=>{if(!e)return e;const{cover:r,getContainer:d,closeIcon:p,rootClassName:m}=e,{closeIcon:f}=t??{};return{motionName:qc(`${n}-preview`,"fade"),...e,...l?{cover:r??l}:{},icons:a,getContainer:d??i,zIndex:s,closeIcon:p??f,rootClassName:re(o,m),mask:c,blurClassName:u.mask}},[e,t,n,o,i,l,a,s,c,u])};function gj(e){const t=(0,r.useMemo)(()=>"boolean"===typeof e?e?{}:null:e&&"object"===typeof e?e:{},[e]);return(0,r.useMemo)(()=>{if(!t)return[t,"",""];const{open:e,onOpenChange:n,cover:o,actionsRender:i,visible:a,onVisibleChange:l,rootClassName:s,maskClassName:c,mask:u,forceRender:d,destroyOnClose:p,toolbarRender:m,...f}=t;let h;n?h=n:l&&(h=(e,t)=>{const{current:n}=t||{};void 0!==n?l(e,!e,n):l(e,!e)});const[g,b]=function(e){return(0,r.isValidElement)(e)?[e,void 0]:"boolean"===typeof e||e&&"object"===typeof e?[void 0,e]:[void 0,void 0]}(u);return[{...f,open:e??a,onOpenChange:h,cover:o??g,mask:b,actionsRender:i??m},s,c]},[t])}const bj={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"};function vj(){return vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vj.apply(this,arguments)}const yj=r.forwardRef((e,t)=>r.createElement(si,vj({},e,{ref:t,icon:bj})));const $j={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"};function Cj(){return Cj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cj.apply(this,arguments)}const xj=r.forwardRef((e,t)=>r.createElement(si,Cj({},e,{ref:t,icon:$j})));const wj={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"};function Sj(){return Sj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sj.apply(this,arguments)}const Ej=r.forwardRef((e,t)=>r.createElement(si,Sj({},e,{ref:t,icon:wj})));const kj={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"};function Nj(){return Nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nj.apply(this,arguments)}const Ij=r.forwardRef((e,t)=>r.createElement(si,Nj({},e,{ref:t,icon:kj})));const Mj={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"};function Pj(){return Pj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pj.apply(this,arguments)}const Rj=r.forwardRef((e,t)=>r.createElement(si,Pj({},e,{ref:t,icon:Mj}))),Oj=e=>({position:e||"absolute",inset:0}),zj=e=>{const{componentCls:t,motionDurationSlow:n,colorTextLightSolid:r}=e;return{[t]:{[`${t}-cover`]:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:r,background:new Or("#000").setA(.3).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`},"&:hover":{[`${t}-cover`]:{opacity:1}},[`${t}-cover-top`]:{inset:"0 0 auto 0",justifyContent:"center"},[`${t}-cover-bottom`]:{inset:"auto 0 0 0",justifyContent:"center"}}}},Aj=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o,colorBgMask:i,marginXL:a,marginSM:l,margin:s,colorTextLightSolid:c,paddingSM:u,paddingLG:d,previewOperationHoverColor:p,previewOperationColorDisabled:m,previewOperationSize:f,zIndexPopup:h}=e,g=new Or(i).setA(.1),b=g.clone().setA(.2),v={position:"absolute",color:c,backgroundColor:g.toRgbString(),borderRadius:"50%",padding:u,outline:0,border:0,cursor:"pointer",transition:`all ${r}`,display:"flex",fontSize:f,"&:hover":{backgroundColor:b.toRgbString()},"&:active":{backgroundColor:g.toRgbString()}};return{[`${o}-preview`]:{textAlign:"center",inset:0,position:"fixed",userSelect:"none",zIndex:h,[`${n}-mask`]:{inset:0,position:"absolute",background:i,backdropFilter:"blur(0px)",transition:`backdrop-filter ${r}`,[`&${o}-preview-mask-blur`]:{backdropFilter:"blur(4px)"},[`&${o}-preview-mask-hidden`]:{display:"none"}},[`${n}-body`]:{...Oj(),"pointer-events":"none",display:"flex",alignItems:"center",justifyContent:"center","> *":{pointerEvents:"auto"}},[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",transition:`transform ${r} ${t} 0s`},[`&-movable ${n}-img`]:{cursor:"grab"},[`&-moving ${n}-img`]:{cursor:"grabbing"},[`${n}-close`]:{...v,top:l,insetInlineEnd:l},[`${n}-switch`]:{...v,top:"50%",transform:"translateY(-50%)","&-disabled":{"&, &:hover, &:active":{color:m,background:"transparent",cursor:"not-allowed"}},"&-prev":{insetInlineStart:l},"&-next":{insetInlineEnd:l}},[`${n}-footer`]:{position:"absolute",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)",gap:s},[`${n}-actions`]:{display:"flex",gap:u,padding:`0 ${lt(d)}`,backgroundColor:g.toRgbString(),borderRadius:100,fontSize:f,"&-action":{padding:u,cursor:"pointer",transition:`all ${r}`,display:"flex",[`&:not(${n}-actions-action-disabled):hover`]:{color:p},"&-disabled":{color:m,cursor:"not-allowed"}}}}}},Tj=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}-placeholder`]:{...Oj()}}}},Bj=e=>{const{previewCls:t,motionDurationSlow:n}=e;return{[t]:{"&-fade":{transition:`opacity ${n}`,"&-enter, &-appear":{opacity:0,[`${t}-body`]:{transform:"scale(0)"},"&-active":{opacity:1,[`${t}-body`]:{transform:"scale(1)",transition:`transform ${n}`}}},"&-leave":{opacity:1,"&-active":{opacity:0,[`${t}-body`]:{transform:"scale(0)",transition:`transform ${n}`}}}}}}},Hj=To("Image",e=>{const t=ir(e,{previewCls:`${e.componentCls}-preview`,imagePreviewSwitchSize:e.controlHeightLG});return[Tj(t),zj(t),Aj(t),Bj(t)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Or(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Or(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Or(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})),Dj={rotateLeft:r.createElement(yj,null),rotateRight:r.createElement(xj,null),zoomIn:r.createElement(Ij,null),zoomOut:r.createElement(Rj,null),close:r.createElement(gi,null),left:r.createElement(_$,null),right:r.createElement(Ju,null),flipX:r.createElement(Ej,null),flipY:r.createElement(Ej,{rotate:90})},Lj=e=>{const{prefixCls:t,preview:n,className:o,rootClassName:i,style:a,styles:l,classNames:s,wrapperStyle:c,fallback:u,...d}=e,{getPrefixCls:p,getPopupContainer:m,className:f,style:h,preview:g,styles:b,classNames:v,fallback:y}=xe("image"),$=p("image",t);const C=Ka($),[x,w]=Hj($,C),S=re(i,x,w,C),E=re(o,x,f),[k,N,I]=gj(n),[M,P,R]=gj(g),O=hj(k,M,$,S,m,Dj,!0),z={...e,preview:O},A=r.useMemo(()=>({cover:re(R,I),popup:{root:re(P,N)}}),[N,I,P,R]),{mask:T,blurClassName:B}=O??{},H=r.useMemo(()=>({mask:re({[`${$}-preview-mask-hidden`]:!T},B)}),[T,$,B]),D=r.useMemo(()=>[v,s,A,{popup:H}],[v,s,A,H]),[L,j]=Ca(D,[b,{root:c},l],{props:z},{popup:{_default:"root"}}),F={...h,...a},W=u??y;return r.createElement(fj,{prefixCls:$,preview:O||!1,rootClassName:S,className:E,style:F,fallback:W,...d,classNames:L,styles:j})};Lj.PreviewGroup=e=>{let{previewPrefixCls:t,preview:n,classNames:o,styles:i,...a}=e;const{getPrefixCls:l,getPopupContainer:s,direction:c,preview:u,classNames:d,styles:p}=xe("image"),m=l("image",t),f=`${m}-preview`,h=Ka(m),[g,b]=Hj(m,h),v=re(g,b,h),[y,$,C]=gj(n),[x,w,S]=gj(u),E=r.useMemo(()=>({...Dj,left:"rtl"===c?r.createElement(Ju,null):r.createElement(_$,null),right:"rtl"===c?r.createElement(_$,null):r.createElement(Ju,null)}),[c]),k=hj(y,x,m,v,s,Dj),{mask:N,blurClassName:I}=k??{},M={...a,classNames:o,styles:i},[P,R]=Ca([d,o,{cover:re(S,C),popup:{root:re(w,$),mask:re({[`${m}-preview-mask-hidden`]:!N},I)}}],[p,i],{props:M},{popup:{_default:"root"}});return r.createElement(fj.PreviewGroup,{preview:k,previewPrefixCls:f,icons:E,...a,classNames:P,styles:R})};const jj=Lj,Fj=e=>{const{getPrefixCls:t,direction:n}=(0,r.useContext)(ye),{prefixCls:o,className:i}=e,a=t("input-group",o),l=t("input"),[s,c]=fT(l),u=re(a,c,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===n},s,i),d=(0,r.useContext)(qm),p=(0,r.useMemo)(()=>({...d,isFormItemInput:!1}),[d]);return r.createElement(qm.Provider,{value:p},r.createElement(SD.Compact,{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},Wj=To(["Input","OTP"],e=>(e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}})(ir(e,FM(e))),WM),_j=r.forwardRef((e,t)=>{const{className:n,value:o,onChange:i,onActiveChange:a,index:l,mask:s,onFocus:c,...u}=e,{getPrefixCls:d}=r.useContext(ye),p=d("otp"),m="string"===typeof s?s:o,f=r.useRef(null);r.useImperativeHandle(t,()=>f.current);const h=()=>{fe(()=>{const e=f.current?.input;document.activeElement===e&&e&&e.select()})};return r.createElement("span",{className:`${p}-input-wrapper`,role:"presentation"},s&&""!==o&&void 0!==o&&r.createElement("span",{className:`${p}-mask-icon`,"aria-hidden":"true"},m),r.createElement(BT,{"aria-label":`OTP Input ${l+1}`,type:!0===s?"password":"text",...u,ref:f,value:o,onInput:e=>{i(l,e.target.value)},onFocus:e=>{c?.(e),h()},onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:r}=e;"ArrowLeft"===t?a(l-1):"ArrowRight"===t?a(l+1):"z"===t&&(n||r)?e.preventDefault():"Backspace"!==t||o||a(l-1),h()},onMouseDown:h,onMouseUp:h,className:re(n,{[`${p}-mask-input`]:s})}))}),Vj=_j;function Xj(e){return(e||"").split("")}const Kj=e=>{const{index:t,prefixCls:n,separator:o,className:i,style:a}=e,l="function"===typeof o?o(t):o;return l?r.createElement("span",{className:re(`${n}-separator`,i),style:a},l):null},qj=r.forwardRef((e,t)=>{const{prefixCls:n,length:o=6,size:i,defaultValue:a,value:l,onChange:s,formatter:c,separator:u,variant:d,disabled:p,status:m,autoFocus:f,mask:h,type:g,autoComplete:b,onInput:v,onFocus:y,inputMode:$,classNames:C,styles:x,className:w,style:S,...E}=e;const{classNames:k,styles:N,getPrefixCls:I,direction:M,style:P,className:R}=xe("otp"),O=I("otp",n),z={...e,length:o},[T,B]=Ca([k,C],[N,x],{props:z}),H=fa(E,{aria:!0,data:!0,attr:!0}),[D,L]=Wj(O),j=ou(e=>i??e),F=r.useContext(qm),W=tv(F.status,m),_=r.useMemo(()=>({...F,status:W,hasFeedback:!1,feedbackIcon:null}),[F,W]),V=r.useRef(null),X=r.useRef({});r.useImperativeHandle(t,()=>({focus:()=>{X.current[0]?.focus()},blur:()=>{for(let e=0;e<o;e+=1)X.current[e]?.blur()},nativeElement:V.current}));const K=e=>c?c(e):e,[q,G]=r.useState(()=>Xj(K(a||"")));r.useEffect(()=>{void 0!==l&&G(Xj(l))},[l]);const Y=A(e=>{G(e),v&&v(e),s&&e.length===o&&e.every(e=>e)&&e.some((e,t)=>q[t]!==e)&&s(e.join(""))}),U=A((e,t)=>{let n=le(q);for(let o=0;o<e;o+=1)n[o]||(n[o]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Xj(t)),n=n.slice(0,o);for(let o=n.length-1;o>=0&&!n[o];o-=1)n.pop();const r=K(n.map(e=>e||" ").join(""));return n=Xj(r).map((e,t)=>" "!==e||n[t]?e:n[t]),n}),Q=(e,t)=>{const n=U(e,t),r=Math.min(e+t.length,o-1);r!==e&&void 0!==n[e]&&X.current[r]?.focus(),Y(n)},Z=e=>{X.current[e]?.focus()},J={variant:d,disabled:p,status:W,mask:h,type:g,inputMode:$,autoComplete:b};return r.createElement("div",{...H,ref:V,className:re(w,O,{[`${O}-sm`]:"small"===j,[`${O}-lg`]:"large"===j,[`${O}-rtl`]:"rtl"===M},L,D,R,T.root),style:{...B.root,...P,...S},role:"group"},r.createElement(qm.Provider,{value:_},Array.from({length:o}).map((e,t)=>{const n=`otp-${t}`,i=q[t]||"";return r.createElement(r.Fragment,{key:n},r.createElement(Vj,{ref:e=>{X.current[t]=e},index:t,size:j,htmlSize:1,className:re(T.input,`${O}-input`),style:B.input,onChange:Q,value:i,onActiveChange:Z,autoFocus:0===t&&f,onFocus:e=>((e,t)=>{for(let n=0;n<t;n+=1)if(!X.current[n]?.input?.value){X.current[n]?.focus();break}y?.(e)})(e,t),...J}),t<o-1&&r.createElement(Kj,{separator:u,index:t,prefixCls:O,className:re(T.separator),style:B.separator}))})))}),Gj=qj;const Yj={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"};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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uj.apply(this,arguments)}const Qj=r.forwardRef((e,t)=>r.createElement(si,Uj({},e,{ref:t,icon:Yj})));const Zj={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"};function Jj(){return Jj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jj.apply(this,arguments)}const eF=r.forwardRef((e,t)=>r.createElement(si,Jj({},e,{ref:t,icon:Zj}))),tF=e=>e?r.createElement(eF,null):r.createElement(Qj,null),nF={click:"onClick",hover:"onMouseOver"},rF=r.forwardRef((e,t)=>{const{disabled:n,action:o="click",visibilityToggle:i=!0,iconRender:a=tF,suffix:l}=e,s=r.useContext($c),c=n??s,u="object"===typeof i&&void 0!==i.visible,[d,p]=(0,r.useState)(()=>!!u&&i.visible),m=(0,r.useRef)(null);r.useEffect(()=>{u&&p(i.visible)},[u,i]);const f=AT(m),h=()=>{if(c)return;d&&f();const e=!d;p(e),"object"===typeof i&&i.onVisibleChange?.(e)},{className:g,prefixCls:b,inputPrefixCls:v,size:y,...$}=e,{getPrefixCls:C}=r.useContext(ye),x=C("input",v),S=C("input-password",b),E=i&&(e=>{const t=nF[o]||"",n=a(d),i={[t]:h,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return r.cloneElement(r.isValidElement(n)?n:r.createElement("span",null,n),i)})(S),k=re(S,g,{[`${S}-${y}`]:!!y}),N={...Y($,["suffix","iconRender","visibilityToggle"]),type:d?"text":"password",className:k,prefixCls:x,suffix:r.createElement(r.Fragment,null,E,l)};return y&&(N.size=y),r.createElement(BT,{ref:w(t,m),...N})});const oF=rF,iF=To(["Input","Search"],e=>{const{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:"100%",[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),aF=r.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:i,size:a,style:l,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:p,onChange:m,onCompositionStart:f,onCompositionEnd:h,variant:g,onPressEnter:b,classNames:v,styles:y,hidden:$,...C}=e,{direction:x,getPrefixCls:S,classNames:E,styles:k}=xe("inputSearch"),N={...e,enterButton:s},[I,M]=Ca([E,v],[k,y],{props:N},{button:{_default:"root"}}),P=r.useRef(!1),R=S("input-search",n),O=S("input",o),[z,A]=iF(R),{compactSize:T}=cu(R,x),B=ou(e=>a??T??e),H=r.useRef(null),D=e=>{document.activeElement===H.current?.input&&e.preventDefault()},L=e=>{p&&p(H.current?.input?.value,e,{source:"input"})},j="boolean"===typeof s?r.createElement(Gv,null):null,F=`${R}-btn`,W=re(F,{[`${F}-${g}`]:g});let _;const V=s||{},X=V.type&&!0===V.type.__ANT_BUTTON;_=X||"button"===V.type?Ml(V,{onMouseDown:D,onClick:e=>{V?.props?.onClick?.(e),L(e)},key:"enterButton",...X?{className:W,size:B}:{}}):r.createElement(Qd,{classNames:I.button,styles:M.button,className:W,color:s?"primary":"default",size:B,disabled:d,key:"enterButton",onMouseDown:D,onClick:L,loading:u,icon:j,variant:"borderless"===g||"filled"===g||"underlined"===g?"text":s?"solid":void 0},s),c&&(_=[_,Ml(c,{key:"addonAfter"})]);const K=re(R,A,{[`${R}-rtl`]:"rtl"===x,[`${R}-${B}`]:!!B,[`${R}-with-button`]:!!s},i,z,I.root),q=fa(C,{data:!0}),G=Y({...C,classNames:Y(I,["button","root"]),styles:Y(M,["button","root"]),prefixCls:O,type:"search",size:B,variant:g,onPressEnter:e=>{P.current||u||(b?.(e),L(e))},onCompositionStart:e=>{P.current=!0,f?.(e)},onCompositionEnd:e=>{P.current=!1,h?.(e)},onChange:e=>{e?.target&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),m?.(e)},disabled:d},Object.keys(q));return r.createElement(pu,{className:K,style:{...l,...M.root},...q,hidden:$},r.createElement(BT,{ref:w(H,t),...G}),_)});const lF=aF,sF=["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"],cF={};let uF;function dF(e){let 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;uF||(uF=document.createElement("textarea"),uF.setAttribute("tab-index","-1"),uF.setAttribute("aria-hidden","true"),uF.setAttribute("name","hiddenTextarea"),document.body.appendChild(uF)),e.getAttribute("wrap")?uF.setAttribute("wrap",e.getAttribute("wrap")):uF.removeAttribute("wrap");const{paddingSize:o,borderSize:i,boxSizing:a,sizingStyle:l}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&cF[n])return cF[n];const 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:sF.map(e=>`${e}:${r.getPropertyValue(e)}`).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(cF[n]=l),l}(e,t);let s,c,u;uF.setAttribute("style",`${l};\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`),uF.value=e.value||e.placeholder||"";let d=uF.scrollHeight;if("border-box"===a?d+=i:"content-box"===a&&(d-=o),null!==n||null!==r){uF.value=" ";const e=uF.scrollHeight-o;null!==n&&(s=e*n,"border-box"===a&&(s=s+o+i),d=Math.max(s,d)),null!==r&&(c=e*r,"border-box"===a&&(c=c+o+i),u=d>c?"":"hidden",d=Math.min(c,d))}const p={height:d,overflowY:u,resize:"none"};return s&&(p.minHeight=s),c&&(p.maxHeight=c),p}function pF(){return pF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pF.apply(this,arguments)}const mF=r.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:o,value:i,autoSize:a,onResize:l,className:s,style:c,disabled:u,onChange:d,onInternalAutoSize:p,...m}=e,[f,h]=F(o,i),g=f??"",b=r.useRef();r.useImperativeHandle(t,()=>({textArea:b.current}));const[v,y]=r.useMemo(()=>a&&"object"===typeof a?[a.minRows,a.maxRows]:[],[a]),$=!!a,[C,x]=r.useState(2),[w,S]=r.useState(),E=()=>{x(0)};L(()=>{$&&E()},[i,v,y,$]),L(()=>{if(0===C)x(1);else if(1===C){const e=dF(b.current,!1,v,y);x(2),S(e)}},[C]);const k=r.useRef(),N=()=>{fe.cancel(k.current)};r.useEffect(()=>N,[]);const I={...c,...$?w:null};return 0!==C&&1!==C||(I.overflowY="hidden",I.overflowX="hidden"),r.createElement(te,{onResize:e=>{2===C&&(l?.(e),a&&(N(),k.current=fe(()=>{E()})))},disabled:!(a||l)},r.createElement("textarea",pF({},m,{ref:b,style:I,className:re(n,s,{[`${n}-disabled`]:u}),disabled:u,value:g,onChange:e=>{h(e.target.value),d?.(e)}})))}),fF=mF;function hF(){return hF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hF.apply(this,arguments)}const gF=r.forwardRef((e,t)=>{let{defaultValue:n,value:o,onFocus:i,onBlur:a,onChange:l,allowClear:s,maxLength:c,onCompositionStart:u,onCompositionEnd:d,suffix:p,prefixCls:m="rc-textarea",showCount:f,count:h,className:g,style:b,disabled:v,hidden:y,classNames:$,styles:C,onResize:x,onClear:w,onPressEnter:S,readOnly:E,autoSize:k,onKeyDown:N,...I}=e;const[M,P]=F(n,o),R=void 0===M||null===M?"":String(M),[O,z]=r.useState(!1),A=r.useRef(!1),[T,B]=r.useState(null),H=(0,r.useRef)(null),D=(0,r.useRef)(null),L=()=>D.current?.textArea,j=()=>{L().focus()};(0,r.useImperativeHandle)(t,()=>({resizableTextArea:D.current,focus:j,blur:()=>{L().blur()},nativeElement:H.current?.nativeElement||L()})),(0,r.useEffect)(()=>{z(e=>!v&&e)},[v]);const[W,_]=r.useState(null);r.useEffect(()=>{W&&L().setSelectionRange(...W)},[W]);const V=MT(h,f),X=V.max??c,K=Number(X)>0,q=V.strategy(R),G=!!X&&q>X,Y=(e,t)=>{let n=t;!A.current&&V.exceedFormatter&&V.max&&V.strategy(t)>V.max&&(n=V.exceedFormatter(t,{max:V.max}),t!==n&&_([L().selectionStart||0,L().selectionEnd||0])),P(n),ET(e.currentTarget,e,l,n)};let U,Q=p;V.show&&(U=V.showFormatter?V.showFormatter({value:R,count:q,maxLength:X}):`${q}${K?` / ${X}`:""}`,Q=r.createElement(r.Fragment,null,Q,r.createElement("span",{className:re(`${m}-data-count`,$?.count),style:C?.count},U)));const Z=!k&&!f&&!s;return r.createElement(IT,{ref:H,value:R,allowClear:s,handleReset:e=>{P(""),j(),ET(L(),e,l)},suffix:Q,prefixCls:m,classNames:{...$,affixWrapper:re($?.affixWrapper,{[`${m}-show-count`]:f,[`${m}-textarea-allow-clear`]:s})},disabled:v,focused:O,className:re(g,G&&`${m}-out-of-range`),style:{...b,...T&&!Z?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":"string"===typeof U?U:void 0}},hidden:y,readOnly:E,onClear:w},r.createElement(fF,hF({},I,{autoSize:k,maxLength:c,onKeyDown:e=>{"Enter"===e.key&&S&&!e.nativeEvent.isComposing&&S(e),N?.(e)},onChange:e=>{Y(e,e.target.value)},onFocus:e=>{z(!0),i?.(e)},onBlur:e=>{z(!1),a?.(e)},onCompositionStart:e=>{A.current=!0,u?.(e)},onCompositionEnd:e=>{A.current=!1,Y(e,e.currentTarget.value),d?.(e)},className:re($?.textarea),style:{resize:b?.resize,...C?.textarea},disabled:v,prefixCls:m,onResize:e=>{x?.(e),L()?.style.height&&B(!0)},ref:D,readOnly:E})))}),bF=gF,vF=To(["Input","TextArea"],e=>(e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}})(ir(e,FM(e))),WM,{resetFont:!1}),yF=(0,r.forwardRef)((e,t)=>{const{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:l,allowClear:s,classNames:c,rootClassName:u,className:d,style:p,styles:m,variant:f,showCount:h,onMouseDown:g,onResize:b,...v}=e;const{getPrefixCls:y,direction:$,allowClear:C,autoComplete:x,className:w,style:S,classNames:E,styles:k}=xe("textArea"),N=r.useContext($c),I=a??N,{status:M,hasFeedback:P,feedbackIcon:R}=r.useContext(qm),O=tv(M,l),[z,A]=Ca([E,c],[k,m],{props:e}),T=r.useRef(null);r.useImperativeHandle(t,()=>({resizableTextArea:T.current?.resizableTextArea,focus:e=>{cp(T.current?.resizableTextArea?.textArea,e)},blur:()=>T.current?.blur(),nativeElement:T.current?.nativeElement||null}));const B=y("input",n),H=Ka(B),[D,L]=mT(B,u);vF(B,H);const{compactSize:j,compactItemClassnames:F}=cu(B,$),W=ou(e=>i??j??e),[_,V]=uv("textArea",f,o),X=zT(s??C),[K,q]=r.useState(!1),[G,Y]=r.useState(!1);return r.createElement(bF,{autoComplete:x,...v,style:{...A.root,...S,...p},styles:A,disabled:I,allowClear:X,className:re(L,H,d,u,F,w,z.root,{[`${B}-textarea-affix-wrapper-resize-dirty`]:G}),classNames:{...z,textarea:re({[`${B}-sm`]:"small"===W,[`${B}-lg`]:"large"===W},D,z.textarea,K&&`${B}-mouse-active`),variant:re({[`${B}-${_}`]:V},ev(B,O)),affixWrapper:re(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:"rtl"===$,[`${B}-affix-wrapper-sm`]:"small"===W,[`${B}-affix-wrapper-lg`]:"large"===W,[`${B}-textarea-show-count`]:h||e.count?.show},D)},prefixCls:B,suffix:P&&r.createElement("span",{className:`${B}-textarea-suffix`},R),showCount:h,ref:T,onResize:e=>{if(b?.(e),K&&"function"===typeof getComputedStyle){const e=T.current?.nativeElement?.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&Y(!0)}},onMouseDown:e=>{q(!0),g?.(e);const t=()=>{q(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}})}),$F=yF,CF=BT;CF.Group=Fj,CF.Search=lF,CF.TextArea=$F,CF.Password=oF,CF.OTP=Gj;const xF=CF;const wF=e=>{let{suffixCls:t,tagName:n,displayName:o}=e;return e=>r.forwardRef((o,i)=>r.createElement(e,{ref:i,suffixCls:t,tagName:n,...o}))},SF=r.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:o,className:i,tagName:a,...l}=e,{getPrefixCls:s}=r.useContext(ye),c=s("layout",n),[u]=gx(c),d=o?`${c}-${o}`:c;return r.createElement(a,{className:re(n||d,i,u),ref:t,...l})}),EF=r.forwardRef((e,t)=>{const{direction:n}=r.useContext(ye),[o,i]=r.useState([]),{prefixCls:a,className:l,rootClassName:s,children:u,hasSider:d,tagName:p,style:m,...f}=e,h=Y(f,["suffixCls"]),{getPrefixCls:g,className:b,style:v}=xe("layout"),y=g("layout",a),$=function(e,t,n){return"boolean"===typeof n?n:!!e.length||c(t).some(e=>e.type===xx)}(o,u,d),[C,x]=gx(y),w=re(y,{[`${y}-has-sider`]:$,[`${y}-rtl`]:"rtl"===n},b,l,s,C,x),S=r.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(le(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return r.createElement(mx.Provider,{value:S},r.createElement(p,{ref:t,className:w,style:{...v,...m},...h},u))}),kF=wF({tagName:"div",displayName:"Layout"})(EF),NF=wF({suffixCls:"header",tagName:"header",displayName:"Header"})(SF),IF=wF({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(SF),MF=wF({suffixCls:"content",tagName:"main",displayName:"Content"})(SF),PF=kF;PF.Header=NF,PF.Footer=IF,PF.Content=MF,PF.Sider=xx,PF._InternalSiderContext=yx;const RF=PF;const OF={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"};function zF(){return zF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zF.apply(this,arguments)}const AF=r.forwardRef((e,t)=>r.createElement(si,zF({},e,{ref:t,icon:OF})));const TF={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"};function BF(){return BF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BF.apply(this,arguments)}const HF=r.forwardRef((e,t)=>r.createElement(si,BF({},e,{ref:t,icon:TF}))),DF={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},LF=[10,20,50,100];const jF=e=>{const{pageSizeOptions:t=LF,locale:n,changeSize:o,pageSize:i,goButton:a,quickGo:l,rootPrefixCls:s,disabled:c,buildOptionText:u,showSizeChanger:d,sizeChangerRender:p}=e,[m,f]=r.useState(""),h=r.useMemo(()=>!m||Number.isNaN(m)?void 0:Number(m),[m]),g="function"===typeof u?u:e=>`${e} ${n.items_per_page}`,b=e=>{const t=e.target.value;/^\d*$/.test(t)&&f(t)},v=e=>{a||""===m||(f(""),e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`))||l?.(h))},y=e=>{""!==m&&(e.keyCode!==ul.ENTER&&"click"!==e.type||(f(""),l?.(h)))},$=`${s}-options`;if(!d&&!l)return null;let C=null,x=null,w=null;return d&&p&&(C=p({disabled:c,size:i,onSizeChange:e=>{o?.(Number(e))},"aria-label":n.page_size,className:`${$}-size-changer`,options:(t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t)))).map(e=>({label:g(e),value:e}))})),l&&(a&&(w="boolean"===typeof a?r.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:c,className:`${$}-quick-jumper-button`},n.jump_to_confirm):r.createElement("span",{onClick:y,onKeyUp:y},a)),x=r.createElement("div",{className:`${$}-quick-jumper`},n.jump_to,r.createElement("input",{disabled:c,type:"text",value:m,onChange:b,onKeyUp:y,onBlur:v,"aria-label":n.page}),n.page,w)),r.createElement("li",{className:$},C,x)};const FF=e=>{const{rootPrefixCls:t,page:n,active:o,className:i,style:a,showTitle:l,onClick:s,onKeyPress:c,itemRender:u}=e,d=`${t}-item`,p=re(d,`${d}-${n}`,{[`${d}-active`]:o,[`${d}-disabled`]:!n},i),m=u(n,"page",r.createElement("a",{rel:"nofollow"},n));return m?r.createElement("li",{title:l?String(n):null,className:p,style:a,onClick:()=>{s(n)},onKeyDown:e=>{c(e,s,n)},tabIndex:0},m):null};function WF(){return WF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WF.apply(this,arguments)}const _F=(e,t,n)=>n;function VF(){}function XF(e){const t=Number(e);return"number"===typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function KF(e,t,n){const r="undefined"===typeof e?t:e;return Math.floor((n-1)/r)+1}const qF=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:o,classNames:i,styles:a,current:l,defaultCurrent:s=1,total:c=0,pageSize:u,defaultPageSize:d=10,onChange:p=VF,hideOnSinglePage:m,align:f,showPrevNextJumpers:h=!0,showQuickJumper:g,showLessItems:b,showTitle:v=!0,onShowSizeChange:y=VF,locale:$=DF,style:C,totalBoundaryShowSizeChanger:x=50,disabled:w,simple:S,showTotal:E,showSizeChanger:k=c>x,sizeChangerRender:N,pageSizeOptions:I,itemRender:M=_F,jumpPrevIcon:P,jumpNextIcon:R,prevIcon:O,nextIcon:z}=e,A=r.useRef(null),[T,B]=F(d,u),[H,D]=F(s,l),L=Math.max(1,Math.min(H,KF(void 0,T,c))),[j,W]=r.useState(L);(0,r.useEffect)(()=>{W(L)},[L]);const _=Math.max(1,L-(b?3:5)),V=Math.min(KF(void 0,T,c),L+(b?3:5));function X(n,o){let i=n||r.createElement("button",{type:"button","aria-label":o,className:`${t}-item-link`});return"function"===typeof n&&(i=r.createElement(n,e)),i}function K(e){const t=e.target.value,n=KF(void 0,T,c);let r;return r=""===t?t:Number.isNaN(Number(t))?j:t>=n?n:Number(t),r}const q=c>T&&g;function G(e){const t=K(e);switch(t!==j&&W(t),e.keyCode){case ul.ENTER:Y(t);break;case ul.UP:Y(t-1);break;case ul.DOWN:Y(t+1)}}function Y(e){if(function(e){return XF(e)&&e!==L&&XF(c)&&c>0}(e)&&!w){const t=KF(void 0,T,c);let n=e;return e>t?n=t:e<1&&(n=1),n!==j&&W(n),D(n),p?.(n,T),n}return L}const U=L>1,Q=L<KF(void 0,T,c);function Z(){U&&Y(L-1)}function J(){Q&&Y(L+1)}function ee(){Y(_)}function te(){Y(V)}function ne(e,t){if("Enter"===e.key||e.charCode===ul.ENTER||e.keyCode===ul.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(...r)}}function oe(e){"click"!==e.type&&e.keyCode!==ul.ENTER||Y(j)}let ie=null;const ae=fa(e,{aria:!0,data:!0}),le=E&&r.createElement("li",{className:`${t}-total-text`},E(c,[0===c?0:(L-1)*T+1,L*T>c?c:L*T]));let se=null;const ce=KF(void 0,T,c);if(m&&c<=T)return null;const ue=[],de={rootPrefixCls:t,onClick:Y,onKeyPress:ne,showTitle:v,itemRender:M,page:-1,className:i?.item,style:a?.item},pe=L-1>0?L-1:0,me=L+1<ce?L+1:ce,fe=g&&g.goButton,he="object"===typeof S?S.readOnly:!S;let ge=fe,be=null;S&&(fe&&(ge="boolean"===typeof fe?r.createElement("button",{type:"button",onClick:oe,onKeyUp:oe},$.jump_to_confirm):r.createElement("span",{onClick:oe,onKeyUp:oe},fe),ge=r.createElement("li",{title:v?`${$.jump_to}${L}/${ce}`:null,className:`${t}-simple-pager`},ge)),be=r.createElement("li",{title:v?`${L}/${ce}`:null,className:re(`${t}-simple-pager`,i?.item),style:a?.item},he?j:r.createElement("input",{type:"text","aria-label":$.jump_to,value:j,disabled:w,onKeyDown:function(e){e.keyCode!==ul.UP&&e.keyCode!==ul.DOWN||e.preventDefault()},onKeyUp:G,onChange:G,onBlur:function(e){Y(K(e))},size:3}),r.createElement("span",{className:`${t}-slash`},"/"),ce));const ve=b?1:2;if(ce<=3+2*ve){ce||ue.push(r.createElement(FF,WF({},de,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let e=1;e<=ce;e+=1)ue.push(r.createElement(FF,WF({},de,{key:e,page:e,active:L===e})))}else{const e=b?$.prev_3:$.prev_5,n=b?$.next_3:$.next_5,o=M(_,"jump-prev",X(P,"prev page")),i=M(V,"jump-next",X(R,"next page"));h&&(ie=o?r.createElement("li",{title:v?e:null,key:"prev",onClick:ee,tabIndex:0,onKeyDown:function(e){ne(e,ee)},className:re(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!P})},o):null,se=i?r.createElement("li",{title:v?n:null,key:"next",onClick:te,tabIndex:0,onKeyDown:function(e){ne(e,te)},className:re(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!R})},i):null);let a=Math.max(1,L-ve),l=Math.min(L+ve,ce);L-1<=ve&&(l=1+2*ve),ce-L<=ve&&(a=ce-2*ve);for(let t=a;t<=l;t+=1)ue.push(r.createElement(FF,WF({},de,{key:t,page:t,active:L===t})));if(L-1>=2*ve&&3!==L&&(ue[0]=r.cloneElement(ue[0],{className:re(`${t}-item-after-jump-prev`,ue[0].props.className)}),ue.unshift(ie)),ce-L>=2*ve&&L!==ce-2){const e=ue[ue.length-1];ue[ue.length-1]=r.cloneElement(e,{className:re(`${t}-item-before-jump-next`,e.props.className)}),ue.push(se)}1!==a&&ue.unshift(r.createElement(FF,WF({},de,{key:1,page:1}))),l!==ce&&ue.push(r.createElement(FF,WF({},de,{key:ce,page:ce})))}let ye=function(e){const t=M(e,"prev",X(O,"prev page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!U}):t}(pe);if(ye){const e=!U||!ce;ye=r.createElement("li",{title:v?$.prev_page:null,onClick:Z,tabIndex:e?null:0,onKeyDown:function(e){ne(e,Z)},className:re(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},ye)}let $e=function(e){const t=M(e,"next",X(z,"next page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!Q}):t}(me);if($e){let e,n;S?(e=!Q,n=U?0:null):(e=!Q||!ce,n=e?null:0),$e=r.createElement("li",{title:v?$.next_page:null,onClick:J,tabIndex:n,onKeyDown:function(e){ne(e,J)},className:re(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},$e)}const Ce=re(t,o,{[`${t}-start`]:"start"===f,[`${t}-center`]:"center"===f,[`${t}-end`]:"end"===f,[`${t}-simple`]:S,[`${t}-disabled`]:w});return r.createElement("ul",WF({className:Ce,style:C,ref:A},ae),le,ye,S?be:ue,$e,r.createElement(jF,{locale:$,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:function(e){const t=KF(e,T,c),n=L>t&&0!==t?t:L;B(e),W(n),y?.(L,e),D(n),p?.(n,e)},pageSize:T,pageSizeOptions:I,quickGo:q?Y:null,goButton:ge,showSizeChanger:k,sizeChangerRender:N}))},GF=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},YF=e=>{const{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...iT(e),width:e.paginationMiniQuickJumperInputWidth}}}}},UF=e=>{const{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...oT(e)}}}}},QF=e=>{const{componentCls:t,antCls:n}=e,[,r]=Do(n,"pagination");return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r("item-size-actual"),lineHeight:r("item-size-actual"),verticalAlign:"top",[`${t}-item-link`]:{height:r("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r("item-size-actual"),lineHeight:r("item-size-actual")}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${lt(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${lt(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:`${lt(e.inputOutlineOffset)} 0 ${lt(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},ZF=e=>{const{componentCls:t,antCls:n}=e,[,r]=Do(n,"pagination");return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:r("item-spacing-actual")},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r("item-size-actual"),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${lt(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":{width:"auto"},"&-quick-jumper":{display:"inline-block",height:r("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:r("item-size-actual"),verticalAlign:"baseline",input:{...aT(e),..._A(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...WA(e)},width:e.quickJumperInputWidth,height:r("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:r("item-spacing-actual"),marginInlineEnd:r("item-spacing-actual")}}}}},JF=e=>{const{componentCls:t,antCls:n}=e,[,r]=Do(n,"pagination");return{[`${t}-item`]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:lt(e.calc(r("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${lt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${lt(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},eW=e=>{const{componentCls:t,antCls:n}=e,[r,o]=Do(n,"pagination");return{[t]:{[r("item-size-actual")]:lt(e.itemSize),[r("item-spacing-actual")]:lt(e.marginXS),"&-small":{[r("item-size-actual")]:lt(e.itemSizeSM),[r("item-spacing-actual")]:lt(e.marginXXS)},"&-large":{[r("item-size-actual")]:lt(e.itemSizeLG),[r("item-spacing-actual")]:lt(e.marginSM)},...br(e),display:"flex",alignItems:"center","&-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:o("item-size-actual"),marginInlineEnd:o("item-spacing-actual"),lineHeight:lt(e.calc(o("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...JF(e),...ZF(e),...QF(e),...YF(e),...UF(e),...GF(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"}}},tW=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...yr(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...vr(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:vr(e)}}}},nW=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...WM(e)}),rW=e=>ir(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},FM(e)),oW=To("Pagination",e=>{const t=rW(e);return[eW(t),tW(t)]},nW),iW=Ho(["Pagination","bordered"],e=>(e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &: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`]:{[`${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:`${lt(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}}}}})(rW(e)),nW);function aW(e){return(0,r.useMemo)(()=>"boolean"===typeof e?[e,{}]:e&&"object"===typeof e?[!0,e]:[void 0,void 0],[e])}const lW=e=>{const{align:t,prefixCls:n,selectPrefixCls:o,className:i,rootClassName:a,style:l,size:s,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:p,pageSizeOptions:m,styles:f,classNames:h,...g}=e,{xs:b}=hy(u),[,v]=Ao(),{getPrefixCls:y,direction:$,showSizeChanger:C,className:x,style:w,classNames:S,styles:E,totalBoundaryShowSizeChanger:k}=xe("pagination"),N=y("pagination",n),[I,M]=oW(N),P=ou(s),R="small"===P||!(!b||P||!u),O={...e,size:P},[z,A]=Ca([S,h],[E,f],{props:O}),[T]=Yc("Pagination",Jl),B={...T,...c},[H,D]=aW(d),[L,j]=aW(C),F=H??L,W=D??j,_=p||ty,V=r.useMemo(()=>m?m.map(Number):void 0,[m]);const X=r.useMemo(()=>{const e=r.createElement("span",{className:`${N}-item-ellipsis`},"\u2022\u2022\u2022");return{prevIcon:r.createElement("button",{className:`${N}-item-link`,type:"button",tabIndex:-1},"rtl"===$?r.createElement(Ju,null):r.createElement(_$,null)),nextIcon:r.createElement("button",{className:`${N}-item-link`,type:"button",tabIndex:-1},"rtl"===$?r.createElement(_$,null):r.createElement(Ju,null)),jumpPrevIcon:r.createElement("a",{className:`${N}-item-link`},r.createElement("div",{className:`${N}-item-container`},"rtl"===$?r.createElement(HF,{className:`${N}-item-link-icon`}):r.createElement(AF,{className:`${N}-item-link-icon`}),e)),jumpNextIcon:r.createElement("a",{className:`${N}-item-link`},r.createElement("div",{className:`${N}-item-container`},"rtl"===$?r.createElement(AF,{className:`${N}-item-link-icon`}):r.createElement(HF,{className:`${N}-item-link-icon`}),e))}},[$,N]),K=y("select",o),q=re({[`${N}-${t}`]:!!t,[`${N}-${P}`]:P,[`${N}-mini`]:R,[`${N}-rtl`]:"rtl"===$,[`${N}-bordered`]:v.wireframe},x,i,a,z.root,I,M),G={...A.root,...w,...l};return r.createElement(r.Fragment,null,v.wireframe&&r.createElement(iW,{prefixCls:N}),r.createElement(qF,{...X,...g,styles:A,classNames:z,style:G,prefixCls:N,selectPrefixCls:K,className:q,locale:B,pageSizeOptions:V,showSizeChanger:F,totalBoundaryShowSizeChanger:g.totalBoundaryShowSizeChanger??k,sizeChangerRender:e=>{const{disabled:t,size:n,onSizeChange:o,"aria-label":i,className:a,options:l}=e,{className:s,onChange:c}=W||{},u=l.find(e=>String(e.value)===String(n))?.value;return r.createElement(_,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:l,...W,value:u,onChange:(e,t)=>{o?.(e),c?.(e,t)},size:P,className:re(a,s)})}}))},sW=lW,cW=80*Math.PI,uW=e=>{const{dotClassName:t,style:n,hasCircleCls:o}=e;return r.createElement("circle",{className:re(`${t}-circle`,{[`${t}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},dW=e=>{let{percent:t,prefixCls:n}=e;const o=`${n}-dot`,i=`${o}-holder`,a=`${i}-hidden`,[l,s]=r.useState(!1);L(()=>{0!==t&&s(!0)},[0!==t]);const c=Math.max(Math.min(t,100),0);if(!l)return null;const u={strokeDashoffset:""+cW/4,strokeDasharray:`${cW*c/100} ${cW*(100-c)/100}`};return r.createElement("span",{className:re(i,`${o}-progress`,c<=0&&a)},r.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},r.createElement(uW,{dotClassName:o,hasCircleCls:!0}),r.createElement(uW,{dotClassName:o,style:u})))};function pW(e){const{prefixCls:t,percent:n=0,className:o,style:i}=e,a=`${t}-dot`,l=`${a}-holder`,s=`${l}-hidden`;return r.createElement(r.Fragment,null,r.createElement("span",{className:re(l,o,n>0&&s),style:i},r.createElement("span",{className:re(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>r.createElement("i",{className:`${t}-dot-item`,key:e})))),r.createElement(dW,{prefixCls:t,percent:n}))}function mW(e){const{prefixCls:t,indicator:n,percent:o,className:i,style:a}=e,l=`${t}-dot`;return n&&r.isValidElement(n)?Ml(n,e=>({className:re(e.className,l,i),style:{...e.style,...a},percent:o})):r.createElement(pW,{prefixCls:t,percent:o,className:i,style:a})}const fW=new Bn("antSpinMove",{to:{opacity:1}}),hW=new Bn("antRotate",{to:{transform:"rotate(405deg)"}}),gW=e=>{const{componentCls:t}=e,n=`${t}-section`;return{[t]:{...br(e),position:"relative","&-rtl":{direction:"rtl"},[`&${n}, ${n}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:"inline-flex"},[n]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${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"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},bW=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r}=e,[o,i]=Do(n,"spin");return{[t]:{[o("dot-holder-size")]:e.dotSize,[o("dot-item-size")]:`calc((${i("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:i("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(e=>`${e} ${r} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:i("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:hW,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:i("dot-item-size"),height:i("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:fW,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"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(e=>`${e} ${r} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},vW=e=>{const{componentCls:t}=e,[n]=Do(e.antCls,"spin");return{[t]:{"&-sm":{[n("dot-holder-size")]:e.dotSizeSM},"&-lg":{[n("dot-holder-size")]:e.dotSizeLG}}}},yW=To("Spin",e=>{const t=ir(e,{spinDotDefault:e.colorTextDescription});return[gW(t),bW(t),vW(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),$W=[[30,.05],[70,.03],[96,.01]];let CW;const xW=e=>{const{prefixCls:t,spinning:n=!0,delay:o=0,className:i,rootClassName:a,size:l,tip:s,description:c,wrapperClassName:u,style:d,children:p,fullscreen:m=!1,indicator:f,percent:h,classNames:g,styles:b,...v}=e,{getPrefixCls:y,direction:$,indicator:C,className:x,style:w,classNames:S,styles:E}=xe("spin"),k=y("spin",t),[N,I]=yW(k),[M,P]=r.useState(()=>n&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(n,o)),R=function(e,t){const[n,o]=r.useState(0),i=r.useRef(null),a="auto"===t;return r.useEffect(()=>(a&&e&&(o(0),i.current=setInterval(()=>{o(e=>{const t=100-e;for(let n=0;n<$W.length;n+=1){const[r,o]=$W[n];if(e<=r)return e+t*o}return e})},200)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[a,e]),a?n:t}(M,h);r.useEffect(()=>{if(n){const e=hR(o,()=>{P(!0)});return e(),()=>{e?.cancel?.()}}P(!1)},[o,n]);const O=ou(e=>l??e);const z=c??s,A={...e,size:O,spinning:M,tip:z,description:z,fullscreen:m,children:p,percent:R},[T,B]=Ca([S,g],[E,b],{props:A});const H=f??C??CW,D="undefined"!==typeof p,L=D||m,j=r.createElement(r.Fragment,null,r.createElement(mW,{className:re(T.indicator),style:B.indicator,prefixCls:k,indicator:H,percent:R}),z&&r.createElement("div",{className:re(`${k}-description`,T.tip,T.description),style:{...B.tip,...B.description}},z));return r.createElement("div",{className:re(k,{[`${k}-sm`]:"small"===O,[`${k}-lg`]:"large"===O,[`${k}-spinning`]:M,[`${k}-rtl`]:"rtl"===$,[`${k}-fullscreen`]:m},a,T.root,m&&T.mask,L?u:[`${k}-section`,T.section],x,i,N,I),style:{...B.root,...L?{}:B.section,...m?B.mask:{},...w,...d},"aria-live":"polite","aria-busy":M,...v},M&&(L?r.createElement("div",{className:re(`${k}-section`,T.section),style:B.section},j):j),D&&r.createElement("div",{className:re(`${k}-container`,T.container),style:B.container},p))};xW.setDefaultIndicator=e=>{CW=e};const wW=xW,SW=r.createContext({}),EW=(SW.Consumer,r.forwardRef((e,t)=>{const{prefixCls:n,children:o,actions:i,extra:a,styles:l,className:s,classNames:u,colStyle:d,...p}=e,{grid:m,itemLayout:f}=(0,r.useContext)(SW),{getPrefixCls:h,list:g}=(0,r.useContext)(ye),b=e=>re(g?.item?.classNames?.[e],u?.[e]),v=e=>({...g?.item?.styles?.[e],...l?.[e]}),y=h("list",n),$=i&&i.length>0&&r.createElement("ul",{className:re(`${y}-item-action`,b("actions")),key:"actions",style:v("actions")},i.map((e,t)=>r.createElement("li",{key:`${y}-item-action-${t}`},e,t!==i.length-1&&r.createElement("em",{className:`${y}-item-action-split`})))),C=m?"div":"li",x=r.createElement(C,{...p,...m?{}:{ref:t},className:re(`${y}-item`,{[`${y}-item-no-flex`]:!("vertical"===f?a:!(()=>{const e=c(o),t=e.some(e=>"string"===typeof e);return t&&e.length>1})())},s)},"vertical"===f&&a?[r.createElement("div",{className:`${y}-item-main`,key:"content"},o,$),r.createElement("div",{className:re(`${y}-item-extra`,b("extra")),key:"extra",style:v("extra")},a)]:[o,$,Ml(a,{key:"extra"})]);return m?r.createElement(Lz,{ref:t,flex:1,style:d},x):x})),kW=EW;kW.Meta=e=>{let{prefixCls:t,className:n,avatar:o,title:i,description:a,...l}=e;const{getPrefixCls:s}=(0,r.useContext)(ye),c=s("list",t),u=re(`${c}-item-meta`,n),d=r.createElement("div",{className:`${c}-item-meta-content`},i&&r.createElement("h4",{className:`${c}-item-meta-title`},i),a&&r.createElement("div",{className:`${c}-item-meta-description`},a));return r.createElement("div",{...l,className:u},o&&r.createElement("div",{className:`${c}-item-meta-avatar`},o),(i||a)&&d)};const NW=kW,IW=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:s}=e,c=lt(e.calc(s).sub(e.lineWidth).equal());return{[t]:{border:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header`]:{borderRadius:`${c} ${c} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${c} ${c}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${lt(o)} ${lt(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},MW=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${lt(a)}`}}}}}},PW=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:i,marginLG:a,padding:l,itemPadding:s,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:d,paddingXS:p,margin:m,colorText:f,colorTextDescription:h,motionDurationSlow:g,lineWidth:b,headerBg:v,footerBg:y,emptyTextPadding:$,metaMarginBottom:C,avatarMarginRight:x,titleMarginBottom:w,descriptionFontSize:S}=e;return{[t]:{...br(e),position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:f,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:f},[`${t}-item-meta-title`]:{margin:`0 0 ${lt(e.marginXXS)} 0`,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:f,transition:`all ${g}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:h,fontSize:S,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${lt(p)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:b,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${lt(l)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:$,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}},[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:m,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:C,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:w,color:f,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${lt(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},RW=To("List",e=>{const t=ir(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[PW(t),IW(t),MW(t)]},e=>({contentWidth:220,itemPadding:`${lt(e.paddingContentVertical)} 0`,itemPaddingSM:`${lt(e.paddingContentVerticalSM)} ${lt(e.paddingContentHorizontal)}`,itemPaddingLG:`${lt(e.paddingContentVerticalLG)} ${lt(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:e=>{let{prefixCls:t}=e;return[`${t}-container`]}}),OW=r.forwardRef((e,t)=>{const{pagination:n=!1,prefixCls:o,bordered:i=!1,split:a=!0,className:l,rootClassName:s,style:c,children:u,itemLayout:d,loadMore:p,grid:m,dataSource:f=[],size:h,header:g,footer:b,loading:v=!1,rowKey:y,renderItem:$,locale:C,...x}=e,w=n&&"object"===typeof n?n:{},[S,E]=r.useState(w.defaultCurrent||1),[k,N]=r.useState(w.defaultPageSize||10),{getPrefixCls:I,direction:M,className:P,style:R}=xe("list"),{renderEmpty:O}=r.useContext(ye),z=e=>(t,r)=>{E(t),N(r),n&&n?.[e]?.(t,r)},A=z("onChange"),T=z("onShowSizeChange"),B=(e,t)=>{if(!$)return null;let n;return n="function"===typeof y?y(e):y?e[y]:e.key,n||(n=`list-item-${t}`),r.createElement(r.Fragment,{key:n},$(e,t))},H=!!(p||n||b),D=I("list",o),[L,j]=RW(D);let F=v;"boolean"===typeof F&&(F={spinning:F});const W=!!F?.spinning;let _="";switch(ou(h)){case"large":_="lg";break;case"small":_="sm"}const V=re(D,{[`${D}-vertical`]:"vertical"===d,[`${D}-${_}`]:_,[`${D}-split`]:a,[`${D}-bordered`]:i,[`${D}-loading`]:W,[`${D}-grid`]:!!m,[`${D}-something-after-last-item`]:H,[`${D}-rtl`]:"rtl"===M},P,l,s,L,j),X=`${D}-container`,K=Qm({current:1,total:0,position:"bottom"},{total:f.length,current:S,pageSize:k},n||{}),q=Math.ceil(K.total/K.pageSize);K.current=Math.min(K.current,q);const G=n&&r.createElement("div",{className:re(`${D}-pagination`)},r.createElement(sW,{align:"end",...K,onChange:A,onShowSizeChange:T}));let Y=le(f);n&&f.length>(K.current-1)*K.pageSize&&(Y=le(f).splice((K.current-1)*K.pageSize,K.pageSize));const U=Object.keys(m||{}).some(e=>uy.includes(e)),Q=hy(U),Z=r.useMemo(()=>{for(let e=0;e<uy.length;e+=1){const t=uy[e];if(Q[t])return t}},[Q]),J=r.useMemo(()=>{if(!m)return;const e=Z&&m[Z]?m[Z]:m.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0},[JSON.stringify(m),Z]);let ee=W&&r.createElement("div",{style:{minHeight:53}});if(Y.length>0){const e=Y.map(B);ee=m?r.createElement(RL,{className:re(X,j),gutter:m.gutter},r.Children.map(e,e=>r.createElement("div",{key:e?.key,style:J},e))):r.createElement("ul",{className:re(`${D}-items`,X,j)},e)}else u||W||(ee=r.createElement("div",{className:`${D}-empty-text`},C?.emptyText||O?.("List")||r.createElement(cv,{componentName:"List"})));const te=K.position,ne=r.useMemo(()=>({grid:m,itemLayout:d}),[JSON.stringify(m),d]);return r.createElement(SW.Provider,{value:ne},r.createElement("div",{ref:t,style:{...R,...c},className:V,...x},("top"===te||"both"===te)&&G,g&&r.createElement("div",{className:`${D}-header`},g),r.createElement(wW,{...F},ee,u),b&&r.createElement("div",{className:`${D}-footer`},b),p||("bottom"===te||"both"===te)&&G))});const zW=OW;zW.Item=NW;const AW=zW;const TW=r.forwardRef((e,t)=>{const{item:n,style:o,prefixCls:i,itemRender:a,className:l,index:s,column:c,onResize:u}=e,d=`${i}-item`,p=(0,r.useMemo)(()=>n.children??a?.({...n,index:s,column:c}),[n,a,c,s]);let m=r.createElement("div",{ref:t,style:o,className:re(d,l)},p);return u&&(m=r.createElement(te,{onResize:u},m)),m});const BW=TW,HW=To("Masonry",e=>{const{componentCls:t}=e,n=`${t}-item`;return{[t]:{position:"relative",boxSizing:"border-box",display:"flex",flexDirection:"column",flexWrap:"wrap","&-rtl":{direction:"rtl"},[`& > ${n}`]:{boxSizing:"border-box","&-fade":{"&-appear":{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseOut}`,opacity:0,"&-active":{opacity:1}},"&-leave":{transition:`opacity ${e.motionDurationFast} ${e.motionEaseOut}`,opacity:1,"&-active":{opacity:0}}},[`&:not(${n}-fade)`]:{transition:["left","right","top"].map(t=>`${t} ${e.motionDurationSlow} ${e.motionEaseOut}`).join(",")}}}}}),DW=r.forwardRef((e,t)=>{const{rootClassName:n,className:o,style:i,classNames:a,styles:l,columns:s,prefixCls:c,gutter:u=0,items:d,itemRender:p,onLayoutChange:m,fresh:f}=e,{getPrefixCls:h,direction:g,className:b,style:v,classNames:y,styles:$}=xe("masonry"),C=h("masonry",c),x=h(),S=Ka(C),[E,k]=HW(C,S),[N,I]=Do(x,"masonry"),M=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:M.current}));const[P,R]=function(){const e=r.useRef(null);return null===e.current&&(e.current=new Map),[(t,n)=>{e.current.set(t,n)},t=>e.current.get(t)]}(),[O,z]=r.useState([]);r.useEffect(()=>{z(d||[])},[d]);const T=hy(),B=IL(u,T),[H=0,D=H]=B,j=r.useMemo(()=>{if(!s)return 3;if("number"===typeof s)return s;const e=uy.find(e=>T[e]&&void 0!==s[e]);return e?s[e]:s.xs??1},[s,T]),F={...e,columns:j},[W,_]=Ca([y,a],[$,l],{props:F}),[V,X]=r.useState([]),K=function(e){const t=r.useRef(0),n=()=>{fe.cancel(t.current)};return r.useEffect(()=>n,[]),A(()=>{n(),t.current=fe(e)})}(()=>{const e=O.map((e,t)=>{const n=e.key??t,r=R(n),o=r?.getBoundingClientRect();return[n,o?o.height:0,e.column]});X(t=>je(t,e)?t:e)}),[q,G]=function(e,t,n){const[o,i]=r.useMemo(()=>{const r=new Array(t).fill(0),o=new Map;for(let i=0;i<e.length;i+=1){const[a,l,s]=e[i];let c=s??r.indexOf(Math.min.apply(Math,le(r)));c=Math.min(c,t-1);const u=r[c];o.set(a,{column:c,top:u}),r[c]+=l+n}return[o,Math.max(0,Math.max.apply(Math,le(r))-n)]},[t,e,n]);return[o,i]}(V,j,D),Y=r.useMemo(()=>O.map((e,t)=>{const n=e.key??t;return{item:e,itemIndex:t,itemKey:n,key:n,position:q.get(n)}}),[O,q]);r.useEffect(()=>{K()},[O,j]);const[U,Q]=r.useState([]);return L(()=>{m&&Y.every(e=>{let{position:t}=e;return t})&&Q(e=>{const t=Y.map(e=>{let{item:t,position:n}=e;return[t,n.column]});return je(e,t)?e:t})},[Y]),L(()=>{m&&d&&d.length===U.length&&m(U.map(e=>{let[t,n]=e;return{...t,column:n}}))},[U]),r.createElement(te,{onResize:K},r.createElement("div",{ref:M,className:re(C,b,W.root,n,o,E,k,{[`${C}-rtl`]:"rtl"===g}),style:{height:G,..._.root,...v,...i},onLoad:K,onError:K},r.createElement(ua,{keys:Y,component:!1,motionAppear:!0,motionLeave:!0,motionName:`${C}-item-fade`},(e,t)=>{const{item:n,itemKey:o,position:i={},itemIndex:a,key:l,className:s,style:c}=e,{column:u=0}=i,d={[N("item-width")]:`calc((100% + ${H}px) / ${j})`,insetInlineStart:`calc(${I("item-width")} * ${u})`,width:`calc(${I("item-width")} - ${H}px)`,top:i.top,position:"absolute"};return r.createElement(BW,{prefixCls:C,key:l,item:n,style:{...c,..._.item,...d},className:re(W.item,s),ref:w(t,e=>P(o,e)),index:a,itemRender:p,column:u,onResize:f?K:null})})))});const LW=DW;const jW=r.createContext(null);const FW=function(e){const{notFoundContent:t,activeIndex:n,setActiveIndex:o,selectOption:i,onFocus:a,onBlur:l,onScroll:s}=r.useContext(jW),{prefixCls:c,options:u,opened:d}=e,p=u[n]||{},m=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(-1===n||!m.current||!d)return;const e=m.current?.findItem?.({key:p.key});e&&e.scrollIntoView({block:"nearest",inline:"nearest"})},[n,p.key,d]),r.createElement(cx,{ref:m,prefixCls:`${c}-menu`,activeKey:p.key,onSelect:e=>{let{key:t}=e;const n=u.find(e=>{let{key:n}=e;return n===t});i(n)},onFocus:a,onBlur:l,onScroll:s},u.map((e,t)=>{const{key:n,disabled:i,className:a,style:l,label:s}=e;return r.createElement(BC,{key:n,disabled:i,className:a,style:l,onMouseEnter:()=>{o(t)}},s)}),!u.length&&r.createElement(BC,{disabled:!0},t))},WW={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},_W=e=>{const{prefixCls:t,options:n,children:o,visible:i,transitionName:a,getPopupContainer:l,popupClassName:s,popupStyle:c,direction:u,placement:d}=e,p=`${t}-dropdown`,[m,f]=r.useState(!1),h=r.createElement(FW,{prefixCls:p,options:n,opened:m}),g=(0,r.useMemo)(()=>{let e;return e="rtl"===u?"top"===d?"topLeft":"bottomLeft":"top"===d?"topRight":"bottomRight",e},[u,d]);return r.createElement(fc,{prefixCls:p,popupVisible:i,popup:h,popupPlacement:g,popupMotion:{motionName:a},builtinPlacements:WW,getPopupContainer:l,popupClassName:s,popupStyle:c,afterOpenChange:f},o)},VW=()=>null;function XW(e){return(e||"").toLowerCase()}function KW(e,t){const{measureLocation:n,prefix:r,targetText:o,selectionStart:i,split:a}=t;let l=e.slice(0,n);l[l.length-a.length]===a&&(l=l.slice(0,l.length-a.length)),l&&(l=`${l}${a}`);let s=function(e,t,n){const r=e[0];if(!r||r===n)return e;let o=e;const i=t.length;for(let a=0;a<i;a+=1){if(XW(o[a])!==XW(t[a])){o=o.slice(a);break}a===i-1&&(o=o.slice(i))}return o}(e.slice(i),o.slice(i-n-r.length),a);s.slice(0,a.length)===a&&(s=s.slice(a.length));const c=`${l}${r}${o}${a}`;return{text:`${c}${s}`,selectionLocation:c.length}}function qW(e,t){return!t||-1===e.indexOf(t)}function GW(e,t){let{value:n=""}=t;const r=e.toLowerCase();return-1!==n.toLowerCase().indexOf(r)}const YW=r.createContext({});function UW(){return UW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UW.apply(this,arguments)}const QW=(0,r.forwardRef)((e,t)=>{const{prefixCls:n,className:o,style:i,classNames:a,styles:l,prefix:s="@",split:u=" ",notFoundContent:d="Not Found",value:p,defaultValue:m,children:f,options:h,allowClear:g,hasWrapper:b,silent:v,validateSearch:y=qW,filterOption:$=GW,onChange:C,onKeyDown:x,onKeyUp:w,onPressEnter:S,onSearch:E,onSelect:k,onFocus:N,onBlur:I,transitionName:M,placement:P,direction:R,getPopupContainer:O,popupClassName:z,rows:A=1,visible:T,onPopupScroll:B,...H}=e,D=(0,r.useMemo)(()=>Array.isArray(s)?s:[s],[s]),L=(0,r.useRef)(null),j=(0,r.useRef)(null),W=(0,r.useRef)(null),_=()=>j.current?.resizableTextArea?.textArea;r.useImperativeHandle(t,()=>({focus:()=>j.current?.focus(),blur:()=>j.current?.blur(),textarea:j.current?.resizableTextArea?.textArea,nativeElement:L.current}));const[V,X]=(0,r.useState)(!1),[K,q]=(0,r.useState)(""),[G,Y]=(0,r.useState)(""),[U,Q]=(0,r.useState)(0),[Z,J]=(0,r.useState)(0),[ee,te]=(0,r.useState)(!1),ne=Is(e.id),[oe,ie]=F(m||"",p),{open:ae}=(0,r.useContext)(YW);(0,r.useEffect)(()=>{V&&W.current&&(W.current.scrollTop=_().scrollTop)},[V]);const[le,se,ce,ue]=r.useMemo(()=>{if(ae)for(let e=0;e<D.length;e+=1){const t=D[e],n=oe.lastIndexOf(t);if(n>=0)return[!0,"",t,n]}return[V,K,G,U]},[ae,V,D,oe,K,G,U]),de=r.useCallback(e=>{let t;return t=h&&h.length>0?h.map(e=>({...e,key:`${e?.key??e.value}-${ne}`})):c(f).map(e=>{let{props:t,key:n}=e;return{...t,label:t.children,key:`${n||t.value}-${ne}`}}),t.filter(t=>!1===$||$(e,t))},[h,ne,f,$]),pe=r.useMemo(()=>de(se),[de,se]),me=function(){const[e,t]=(0,r.useState)({id:0,callback:null}),n=(0,r.useCallback)(e=>{t(t=>{let{id:n}=t;return{id:n+1,callback:e}})},[]);return(0,r.useEffect)(()=>{e.callback?.()},[e]),n}(),fe=e=>{X(!1),Q(0),q(""),me(e)},he=e=>{ie(e),C?.(e)},ge=e=>{const{value:t=""}=e,{text:n,selectionLocation:r}=KW(oe,{measureLocation:ue,targetText:t,prefix:ce,selectionStart:_()?.selectionStart,split:u});he(n),fe(()=>{!function(e,t){e.setSelectionRange(t,t),e.blur(),e.focus()}(_(),r)}),k?.(e,ce)},be=(0,r.useRef)(),ve=e=>{window.clearTimeout(be.current),!ee&&e&&N&&N(e),te(!0)},ye=e=>{be.current=window.setTimeout(()=>{te(!1),fe(),I?.(e)},0)},$e=r.useMemo(()=>{const e=l?.textarea?.resize??i?.resize,t={...l?.textarea};return void 0!==e&&(t.resize=e),{...l,textarea:t}},[i,l]),Ce=r.createElement(r.Fragment,null,r.createElement(bF,UW({classNames:{textarea:a?.textarea},styles:$e,ref:j,value:oe},H,{rows:A,onChange:e=>{let{target:{value:t}}=e;he(t)},onKeyDown:e=>{const{which:t}=e;if(x?.(e),le)if(t===ul.UP||t===ul.DOWN){const n=pe.length,r=t===ul.UP?-1:1;J((Z+r+n)%n),e.preventDefault()}else if(t===ul.ESC)fe();else if(t===ul.ENTER){if(e.preventDefault(),v)return;if(!pe.length)return void fe();const t=pe[Z];ge(t)}},onKeyUp:e=>{const{key:t,which:n}=e,r=function(e){const{selectionStart:t}=e;return e.value.slice(0,t)}(e.target),{location:o,prefix:i}=function(e,t){return t.reduce((t,n)=>{const r=e.lastIndexOf(n);return r>t.location?{location:r,prefix:n}:t},{location:-1,prefix:""})}(r,D);if(w?.(e),-1===[ul.ESC,ul.UP,ul.DOWN,ul.ENTER].indexOf(n))if(-1!==o){const e=r.slice(o+i.length),a=y(e,u),l=!!de(e).length;a?(t===i||"Shift"===t||n===ul.ALT||"AltGraph"===t||le||e!==se&&l)&&((e,t,n)=>{X(!0),q(e),Y(t),Q(n),J(0)})(e,i,o):le&&fe(),E&&a&&E(e,i)}else le&&fe()},onPressEnter:e=>{!le&&S&&S(e)},onFocus:ve,onBlur:ye})),le&&r.createElement("div",{ref:W,className:`${n}-measure`},oe.slice(0,ue),r.createElement(jW.Provider,{value:{notFoundContent:d,activeIndex:Z,setActiveIndex:J,selectOption:ge,onFocus:()=>{ve()},onBlur:()=>{ye()},onScroll:e=>{B?.(e)}}},r.createElement(_W,{prefixCls:n,transitionName:M,placement:P,direction:R,options:pe,visible:!0,getPopupContainer:O,popupClassName:re(z,a?.popup),popupStyle:l?.popup},r.createElement("span",null,ce))),oe.slice(ue+ce.length)));return b?Ce:r.createElement("div",{className:re(n,o),style:i,ref:L},Ce)}),ZW=(0,r.forwardRef)((e,t)=>{let{suffix:n,prefixCls:o="rc-mentions",defaultValue:i,value:a,id:l,allowClear:s,onChange:c,classNames:u,styles:d,className:p,disabled:m,onClear:f,...h}=e;const g=!(!n&&!s),b=(0,r.useRef)(null),v=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,()=>({...v.current,nativeElement:b.current?.nativeElement||v.current?.nativeElement}));const[y,$]=F(i||"",a),C=e=>{$(e),c?.(e)};return r.createElement(IT,{suffix:n,prefixCls:o,value:y,allowClear:s,handleReset:()=>{C("")},className:re(o,p,{[`${o}-has-suffix`]:g}),classNames:u,disabled:m,ref:b,onClear:f},r.createElement(QW,UW({className:u?.mentions,styles:d,classNames:u,prefixCls:o,id:l,ref:v,onChange:C,disabled:m,hasWrapper:g},h)))});ZW.Option=VW;const JW=ZW,e_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!xa(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e]},t_=e=>{const{componentCls:t,fontSize:n,paddingXXS:r,colorBgElevated:o,borderRadiusLG:i,boxShadowSecondary:a,itemPaddingVertical:l,controlPaddingHorizontal:s,colorText:c,borderRadius:u,lineHeight:d,colorTextDisabled:p,controlItemBgHover:m,motionDurationSlow:f}=e;return{[t]:{"&-dropdown":{...br(e),position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:n,fontVariant:"initial",padding:r,backgroundColor:o,borderRadius:i,outline:"none",boxShadow:a,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":{...gr,position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${lt(l)} ${lt(s)}`,color:c,borderRadius:u,fontWeight:"normal",lineHeight:d,cursor:"pointer",transition:`background-color ${f} ease`,"&:hover":{backgroundColor:m},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:m,cursor:"not-allowed"}},"&-selected":{color:c,fontWeight:e.fontWeightStrong,backgroundColor:m},"&-active":{backgroundColor:m}}}}}}},n_=e=>{const{componentCls:t,colorText:n,antCls:r,colorTextDisabled:o,calc:i}=e,[a,l]=Do(r,"cmp-mentions");return{[t]:[br(e),aT(e,{largeStyle:{padding:0},smallStyle:{padding:0}}),XA(e),QA(e),GA(e),nT(e),{[a("padding-inline")]:e.paddingInline,[a("padding-block")]:e.paddingBlock,[a("control-height")]:e.controlHeight,display:"flex",padding:0,whiteSpace:"pre-wrap","> textarea":[br(e),rT(e.colorTextPlaceholder),{background:"transparent",border:"none",borderRadius:"inherit",outline:"none",flex:"auto",minWidth:0,resize:"none","&:disabled":{color:o}}],[`> textarea, ${t}-measure`]:{color:n,boxSizing:"border-box",margin:0,minHeight:i(l("control-height")).sub(i(e.lineWidth).mul(2).equal()).equal(),paddingInline:l("padding-inline"),paddingBlock:l("padding-block"),overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},[`${t}-measure`]:{position:"absolute",inset:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},[`${t}-suffix`]:{display:"inline-flex",alignItems:"center",flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,position:"absolute",top:"50%",transform:"translateY(-50%)",insetInlineEnd:l("padding-inline"),columnGap:e.marginXS,[`${t}-clear-icon`]:{cursor:"pointer",border:0,background:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"}},[`${r}-form-item-feedback-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center"}}},{"&-has-suffix":{"> textarea":{paddingInlineEnd:i(e.paddingXXS).mul(1.5).add(e.fontSizeIcon).add(l("padding-inline")).equal()}}},{"&-disabled":{"> textarea":{...WA(e)}}},{"&-lg":{[a("padding-inline")]:e.paddingInlineLG,[a("padding-block")]:e.paddingBlockLG,[a("control-height")]:e.controlHeightLG},"&-sm":{[a("padding-inline")]:e.paddingInlineSM,[a("padding-block")]:e.paddingBlockSM,[a("control-height")]:e.controlHeightSM}}]}},r_=To("Mentions",e=>{const t=ir(e,FM(e));return[n_(t),t_(t)]},e=>({...WM(e),dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2})),{Option:o_}=JW;function i_(){return!0}const a_=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,disabled:a,loading:l,filterOption:s,children:c,notFoundContent:u,options:d,status:p,allowClear:m=!1,popupClassName:f,style:h,variant:g,classNames:b,styles:v,size:y,...$}=e,[C,x]=r.useState(!1),S=r.useRef(null),E=w(t,S),k=ou(e=>y??e);const{getPrefixCls:N,direction:I,className:M,style:P,classNames:R,styles:O}=xe("mentions"),{renderEmpty:z}=r.useContext(ye),{status:A,hasFeedback:T,feedbackIcon:B}=r.useContext(qm),H=tv(A,p),D=r.useContext($c),L=a??D,j=N("mentions",n),F={...e,disabled:L,status:H,variant:g},[W,_]=Ca([R,b],[O,v],{props:F}),V=r.useMemo(()=>void 0!==u?u:z?.("Select")||r.createElement(cv,{componentName:"Select"}),[u,z]),X=r.useMemo(()=>l?r.createElement(o_,{value:"ANTD_SEARCHING",disabled:!0},r.createElement(wW,{size:"small"})):c,[l,c]),K=l?[{value:"ANTD_SEARCHING",disabled:!0,label:r.createElement(wW,{size:"small"})}]:d,q=l?i_:s,G=zT(m),Y=Ka(j),[U,Q]=r_(j,Y),[Z,J]=uv("mentions",g),ee=T&&r.createElement(r.Fragment,null,B),te=re(M,o,i,Q,Y,W.root,{[`${j}-sm`]:"small"===k,[`${j}-lg`]:"large"===k});return r.createElement(JW,{silent:l,prefixCls:j,notFoundContent:V,className:te,disabled:L,allowClear:G,direction:I,style:{..._.root,...P,...h},...$,filterOption:q,onFocus:function(){if($.onFocus){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.onFocus.apply($,t)}x(!0)},onBlur:function(){if($.onBlur){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.onBlur.apply($,t)}x(!1)},ref:E,options:K,suffix:ee,styles:{textarea:_.textarea,popup:_.popup,suffix:_.suffix},classNames:{textarea:re(W.textarea),popup:re(W.popup,f,i,U,Q,Y),suffix:W.suffix,mentions:re({[`${j}-disabled`]:L,[`${j}-focused`]:C,[`${j}-rtl`]:"rtl"===I},U),variant:re({[`${j}-${Z}`]:J},ev(j,H)),affixWrapper:U}},X)}),l_=a_;l_.Option=o_;const s_=vg(l_,void 0,void 0,"mentions");l_._InternalPanelDoNotUseOrYouWillBeFired=s_,l_.getMentions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,o=e_(n);return e.split(r).map(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return o.some(n=>e.slice(0,n.length)===n&&(t=n,!0)),null!==t?{prefix:t,value:e.slice(t.length)}:null}).filter(e=>!!e&&!!e.value)};const c_=l_;let u_=null,d_=e=>e(),p_=[],m_={};function f_(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=m_,i=e?.()||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const h_=r.forwardRef((e,t)=>{const{messageConfig:n,sync:o}=e,{getPrefixCls:i}=(0,r.useContext)(ye),a=m_.prefixCls||i("message"),l=(0,r.useContext)(ug),[s,c]=Kl({...n,prefixCls:a,...l.message});return r.useImperativeHandle(t,()=>{const e={...s};return Object.keys(e).forEach(t=>{e[t]=function(){o();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return s[t].apply(s,n)}}),{instance:e,sync:o}}),c}),g_=r.forwardRef((e,t)=>{const[n,o]=r.useState(f_),i=()=>{o(f_)};r.useEffect(i,[]);const a=Hc(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=r.createElement(h_,{ref:t,sync:i,messageConfig:n});return r.createElement(jc,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}),b_=()=>{if(!u_){const e=document.createDocumentFragment(),t={fragment:e};return u_=t,void d_(()=>{Ul(r.createElement(g_,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,b_())})}}),e)})}u_.instance&&(p_.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":d_(()=>{const t=u_.instance.open({...m_,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case"destroy":d_(()=>{u_?.instance.destroy(e.key)});break;default:d_(()=>{var n;const r=(n=u_.instance)[t].apply(n,le(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),p_=[])};const v_={open:function(e){const t=jl(t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return p_.push(r),()=>{n?d_(()=>{n()}):r.skipped=!0}});return b_(),t},destroy:e=>{p_.push({type:"destroy",key:e}),b_()},config:function(e){m_={...m_,...e},d_(()=>{u_?.sync?.()})},useMessage:ql,_InternalPanelDoNotUseOrYouWillBeFired:Ll},y_=v_;["success","info","warning","error","loading"].forEach(e=>{y_[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){Hc();const n=jl(n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return p_.push(o),()=>{r?d_(()=>{r()}):o.skipped=!0}});return b_(),n}(e,n)}});const $_=y_,C_=bg(e=>{const{prefixCls:t,className:n,closeIcon:o,closable:i,type:a,title:l,children:s,footer:c,classNames:u,styles:d,...p}=e,{getPrefixCls:m}=r.useContext(ye),{className:f,style:h,classNames:g,styles:b}=xe("modal"),v=m(),y=t||m("modal"),$=Ka(v),[C,x]=yh(y,$),[w,S]=Ca([g,u],[b,d],{props:e}),E=`${y}-confirm`;let k={};return k=a?{closable:i??!1,title:"",footer:"",children:r.createElement(Sh,{...e,prefixCls:y,confirmPrefixCls:E,rootPrefixCls:v,content:s})}:{closable:i??!0,title:l,footer:null!==c&&r.createElement(Ff,{...e}),children:s},r.createElement(Cp,{prefixCls:y,className:re(C,`${y}-pure-panel`,a&&E,a&&`${E}-${a}`,n,f,x,$,w.root),style:{...h,...S.root},...p,closeIcon:jf(y,o),closable:i,classNames:w,styles:S,...k})});function x_(e){return Rh(Oh(e))}const w_=xh;w_.useModal=Fh,w_.info=function(e){return Rh(zh(e))},w_.success=function(e){return Rh(Ah(e))},w_.error=function(e){return Rh(Th(e))},w_.warning=x_,w_.warn=x_,w_.confirm=function(e){return Rh(Bh(e))},w_.destroyAll=function(){for(;Nh.length;){const e=Nh.pop();e&&e()}},w_.config=function(e){let{rootPrefixCls:t}=e;Ih=t},w_._InternalPanelDoNotUseOrYouWillBeFired=C_;const S_=w_;let E_=null,k_=e=>e(),N_=[],I_={};function M_(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=I_,l=e?.()||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const P_=r.forwardRef((e,t)=>{const{notificationConfig:n,sync:o}=e,{getPrefixCls:i}=(0,r.useContext)(ye),a=I_.prefixCls||i("notification"),l=(0,r.useContext)(ug),[s,c]=sg({...n,prefixCls:a,...l.notification});return r.useEffect(o,[]),r.useImperativeHandle(t,()=>{const e={...s};return Object.keys(e).forEach(t=>{e[t]=function(){o();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return s[t].apply(s,n)}}),{instance:e,sync:o}}),c}),R_=r.forwardRef((e,t)=>{const[n,o]=r.useState(M_),i=()=>{o(M_)};r.useEffect(i,[]);const a=Hc(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=r.createElement(P_,{ref:t,sync:i,notificationConfig:n});return r.createElement(jc,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}),O_=()=>{if(!E_){const e=document.createDocumentFragment(),t={fragment:e};return E_=t,void k_(()=>{Ul(r.createElement(R_,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,O_())})}}),e)})}E_.instance&&(N_.forEach(e=>{switch(e.type){case"open":k_(()=>{E_.instance.open({...I_,...e.config})});break;case"destroy":k_(()=>{E_?.instance?.destroy(e.key)})}}),N_=[])};function z_(e){Hc();N_.push({type:"open",config:e}),O_()}const A_={open:z_,destroy:e=>{N_.push({type:"destroy",key:e}),O_()},config:function(e){I_={...I_,...e},k_(()=>{E_?.sync?.()})},useNotification:cg,_InternalPanelDoNotUseOrYouWillBeFired:rg};["success","info","warning","error"].forEach(e=>{A_[e]=t=>z_({...t,type:e})});const T_=A_,B_=To("Popconfirm",e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}},e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),H_=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:o,title:i,description:a,cancelText:l,okText:s,okType:c="primary",icon:u=r.createElement(yi,null),showCancel:d=!0,close:p,onConfirm:m,onCancel:f,onPopupClick:h,classNames:g,styles:b}=e,{getPrefixCls:v}=r.useContext(ye),[y]=Yc("Popconfirm",ss.Popconfirm),$=xy(i),C=xy(a);return r.createElement("div",{className:`${t}-inner-content`,onClick:h},r.createElement("div",{className:`${t}-message`},u&&r.createElement("span",{className:`${t}-message-icon`},u),r.createElement("div",{className:`${t}-message-text`},$&&r.createElement("div",{className:re(`${t}-title`,g?.title),style:b?.title},$),C&&r.createElement("div",{className:re(`${t}-description`,g?.content),style:b?.content},C))),r.createElement("div",{className:`${t}-buttons`},d&&r.createElement(Qd,{onClick:f,size:"small",...o},l||y?.cancelText),r.createElement(Jd,{buttonProps:{size:"small",...bu(c),...n},actionFn:m,close:p,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||y?.okText)))},D_=e=>{const{prefixCls:t,placement:n,className:o,style:i,...a}=e,{getPrefixCls:l}=r.useContext(ye),s=l("popconfirm",t);return B_(s),r.createElement(i$,{placement:n,className:re(s,o),style:i,content:r.createElement(H_,{prefixCls:s,...a})})},L_=r.forwardRef((e,t)=>{const{prefixCls:n,placement:o="top",trigger:i,okType:a="primary",icon:l=r.createElement(yi,null),children:s,overlayClassName:c,onOpenChange:u,overlayStyle:d,styles:p,arrow:m,classNames:f,...h}=e,{getPrefixCls:g,className:b,style:v,classNames:y,styles:$,arrow:C,trigger:x}=xe("popconfirm"),[w,S]=F(e.defaultOpen??!1,e.open),E=Fy(m,C),k=i||x||"click";const N=e=>{S(e),u?.(e)},I=g("popconfirm",n),M={...e,placement:o,trigger:k,okType:a,overlayStyle:d,styles:p,classNames:f},[P,R]=Ca([y,f],[$,p],{props:M}),O=re(I,b,c,P.root);return B_(I),r.createElement(s$,{arrow:E,...Y(h,["title"]),trigger:k,placement:o,onOpenChange:t=>{const{disabled:n=!1}=e;n||N(t)},open:w,ref:t,classNames:{root:O,container:P.container,arrow:P.arrow},styles:{root:{...v,...R.root,...d},container:R.container,arrow:R.arrow},content:r.createElement(H_,{okType:a,icon:l,...e,prefixCls:I,close:()=>{N(!1)},onConfirm:t=>e.onConfirm?.call(void 0,t),onCancel:t=>{N(!1),e.onCancel?.call(void 0,t)},classNames:P,styles:R}),"data-popover-inject":!0},s)}),j_=L_;j_._InternalPanelDoNotUseOrYouWillBeFired=D_;const F_=j_,W_={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1};const __=e=>{let{bg:t,children:n}=e;return r.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function V_(e,t){return Object.keys(e).map(n=>{const r=parseFloat(n),o=`${Math.floor(r*t)}%`;return`${e[n]} ${o}`})}const X_=r.forwardRef((e,t)=>{const{prefixCls:n,color:o,gradientId:i,radius:a,className:l,style:s,ptg:c,strokeLinecap:u,strokeWidth:d,size:p,gapDegree:m}=e,f=o&&"object"===typeof o,h=f?"#FFF":void 0,g=p/2,b=r.createElement("circle",{className:re(`${n}-circle-path`,l),r:a,cx:g,cy:g,stroke:h,strokeLinecap:u,strokeWidth:d,opacity:0===c?0:1,style:s,ref:t});if(!f)return b;const v=`${i}-conic`,y=m?180+m/2+"deg":"0deg",$=V_(o,(360-m)/360),C=V_(o,1),x=`conic-gradient(from ${y}, ${$.join(", ")})`,w=`linear-gradient(to ${m?"bottom":"top"}, ${C.join(", ")})`;return r.createElement(r.Fragment,null,r.createElement("mask",{id:v},b),r.createElement("foreignObject",{x:0,y:0,width:p,height:p,mask:`url(#${v})`},r.createElement(__,{bg:w},r.createElement(__,{bg:x}))))});const K_=X_,q_=100,G_=function(e,t,n,r,o,i,a,l,s,c){let u=(100-r)/100*t;"round"===s&&100!==r&&(u+=c/2,u>=t&&(u=t-.01));return{stroke:"string"===typeof l?l:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:u+(arguments.length>10&&void 0!==arguments[10]?arguments[10]:0),transform:`rotate(${o+n/100*360*((360-i)/360)+(0===i?0:{bottom:0,top:180,left:90,right:-90}[a])}deg)`,transformOrigin:"50px 50px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};function Y_(){return Y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y_.apply(this,arguments)}function U_(e){const t=e??[];return Array.isArray(t)?t:[t]}const Q_=e=>{const{id:t,prefixCls:n,classNames:o={},styles:i={},steps:a,strokeWidth:l,railWidth:s,gapDegree:c=0,gapPosition:u,railColor:d,strokeLinecap:p,style:m,className:f,strokeColor:h,percent:g,loading:b,...v}={...W_,...e},y=Is(t),$=`${y}-gradient`,C=50-l/2,x=2*Math.PI*C,w=c>0?90+c/2:-90,S=x*((360-c)/360),{count:E,gap:k}="object"===typeof a?a:{count:a,gap:2},N=U_(g),I=U_(h),M=I.find(e=>e&&"object"===typeof e),P=M&&"object"===typeof M?"butt":p,{indeterminateStyleProps:R,indeterminateStyleAnimation:O}=(e=>{let{id:t,loading:n}=e;if(!n)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const o=`${t}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${o} 1s linear infinite`},indeterminateStyleAnimation:r.createElement("style",null,`@keyframes ${o} {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }`)}})({id:y,loading:b}),z=G_(x,S,0,100,w,c,u,d,P,l),A=(()=>{const e=(0,r.useRef)([]),t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{const n=Date.now();let r=!1;e.current.forEach(e=>{if(!e)return;r=!0;const o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current})();return r.createElement("svg",Y_({className:re(`${n}-circle`,o.root,f),viewBox:"0 0 100 100",style:{...i.root,...m},id:t,role:"presentation"},v),!E&&r.createElement("circle",{className:re(`${n}-circle-rail`,o.rail),r:C,cx:50,cy:50,stroke:d,strokeLinecap:P,strokeWidth:s||l,style:{...z,...i.rail}}),E?(()=>{const e=Math.round(E*(N[0]/100)),t=100/E;let a=0;return new Array(E).fill(null).map((s,p)=>{const m=p<=e-1?I[0]:d,f=m&&"object"===typeof m?`url(#${$})`:void 0,h=G_(x,S,a,t,w,c,u,m,"butt",l,k);return a+=100*(S-h.strokeDashoffset+k)/S,r.createElement("circle",{key:p,className:re(`${n}-circle-path`,o.track),r:C,cx:50,cy:50,stroke:f,strokeWidth:l,opacity:1,style:{...h,...i.track},ref:e=>{A[p]=e}})})})():(()=>{let e=0;return N.map((t,a)=>{const s=I[a]||I[I.length-1],d=G_(x,S,e,t,w,c,u,s,P,l);return e+=t,r.createElement(K_,{key:a,color:s,ptg:t,radius:C,prefixCls:n,gradientId:$,className:o.track,style:{...d,...R,...i.track},strokeLinecap:P,strokeWidth:l,gapDegree:c,ref:e=>{A[a]=e},size:q_})}).reverse()})(),O)};function Z_(e){return!e||e<0?0:e>100?100:e}function J_(e){let t,{success:n}=e;return n&&"percent"in n&&(t=n.percent),t}const eV=(e,t,n)=>{let r=-1,o=-1;if("step"===t){const t=n.steps,i=n.strokeWidth;"string"===typeof e||"undefined"===typeof e?(r="small"===e?2:14,o=i??8):"number"===typeof e?[r,o]=[e,e]:[r=14,o=8]=Array.isArray(e)?e:[e.width,e.height],r*=t}else if("line"===t){const t=n?.strokeWidth;"string"===typeof e||"undefined"===typeof e?o=t||("small"===e?6:8):"number"===typeof e?[r,o]=[e,e]:[r=-1,o=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"===typeof e||"undefined"===typeof e?[r,o]="small"===e?[60,60]:[120,120]:"number"===typeof e?[r,o]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,o=e[0]??e[1]??120));return[r,o]},tV=["root","body","indicator"],nV=e=>{const{prefixCls:t,classNames:n,styles:o,railColor:i,trailColor:a,strokeLinecap:l="round",gapPosition:s,gapPlacement:c,gapDegree:u,width:d=120,type:p,children:m,success:f,size:h=d,steps:g}=e,{direction:b}=xe("progress"),v=i??a,[y,$]=eV(h,"circle");let{strokeWidth:C}=e;void 0===C&&(C=Math.max((e=>3/e*100)(y),6));const x={width:y,height:$,fontSize:.15*y+6},w=r.useMemo(()=>u||0===u?u:"dashboard"===p?75:void 0,[u,p]),S=(e=>{let{percent:t,success:n}=e;const r=Z_(J_({success:n}));return[r,Z_(Z_(t)-r)]})(e),E=r.useMemo(()=>{const e=(c??s)||"dashboard"===p&&"bottom"||void 0,t="rtl"===b;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[b,c,s,p]),k="[object Object]"===Object.prototype.toString.call(e.strokeColor),N=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Dr.green,n||null]})({success:f,strokeColor:e.strokeColor}),I=re(`${t}-body`,{[`${t}-circle-gradient`]:k},n.body),M=r.createElement(Q_,{steps:g,percent:g?S[1]:S,strokeWidth:C,railWidth:C,strokeColor:g?N[1]:N,strokeLinecap:l,railColor:v,prefixCls:t,gapDegree:w,gapPosition:E,classNames:Y(n,tV),styles:Y(o,tV)}),P=y<=20,R=r.createElement("div",{className:I,style:{...x,...o.body}},M,!P&&m);return P?r.createElement(Jy,{title:m},R):R},rV="--progress-line-stroke-color",oV=e=>{const t=e?"100%":"-100%";return new Bn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},iV=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{...br(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},aV=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:oV(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},lV=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},sV=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},cV=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},uV=To("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=ir(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[iV(n),aV(n),lV(n),sV(n),cV(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})),dV=(e,t)=>{const{from:n=Dr.blue,to:r=Dr.blue,direction:o=("rtl"===t?"to left":"to right"),...i}=e;if(0!==Object.keys(i).length){const e=`linear-gradient(${o}, ${(e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(e=>{let{key:t,value:n}=e;return`${n} ${t}%`}).join(", ")})(i)})`;return{background:e,[rV]:e}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[rV]:a}},pV=e=>{const{prefixCls:t,classNames:n,styles:o,direction:i,percent:a,size:l,strokeWidth:s,strokeColor:c,strokeLinecap:u="round",children:d,railColor:p,trailColor:m,percentPosition:f,success:h}=e,{align:g,type:b}=f,v=p??m,y="square"===u||"butt"===u?0:void 0;const $=l??[-1,s||("small"===l?6:8)],[C,x]=eV($,"line",{strokeWidth:s}),w={backgroundColor:v||void 0,borderRadius:y,height:x},S=`${t}-track`,E=c&&"string"!==typeof c?dV(c,i):{[rV]:c,background:c},k={width:`${Z_(a)}%`,height:x,borderRadius:y,...E},N=J_(e),I={width:`${Z_(N)}%`,height:x,borderRadius:y,backgroundColor:h?.strokeColor};return r.createElement("div",{className:re(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:"center"===g&&"outer"===b}),style:{width:C>0?C:"100%",...o.body}},r.createElement("div",{className:re(`${t}-rail`,n.rail),style:{...w,...o.rail}},r.createElement("div",{className:re(S,n.track),style:{...k,...o.track}},"inner"===b&&d),void 0!==N&&r.createElement("div",{className:re(S,`${S}-success`,n.track),style:{...I,...o.track}})),"outer"===b&&d)},mV=e=>{const{classNames:t,styles:n,size:o,steps:i,rounding:a=Math.round,percent:l=0,strokeWidth:s=8,strokeColor:c,railColor:u,trailColor:d,prefixCls:p,children:m}=e,f=a(i*(l/100)),h=o??["small"===o?2:14,s],[g,b]=eV(h,"step",{steps:i,strokeWidth:s}),v=g/i,y=Array.from({length:i}),$=u??d;for(let C=0;C<i;C++){const e=Array.isArray(c)?c[C]:c;y[C]=r.createElement("div",{key:C,className:re(`${p}-steps-item`,{[`${p}-steps-item-active`]:C<=f-1},t.track),style:{backgroundColor:C<=f-1?e:$,width:v,height:b,...n.track}})}return r.createElement("div",{className:re(`${p}-steps-body`,t.body),style:n.body},y,m)},fV=["normal","exception","active","success"],hV=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,classNames:a,styles:l,steps:s,strokeColor:c,percent:u=0,size:d="medium",showInfo:p=!0,type:m="line",status:f,format:h,style:g,percentPosition:b={},...v}=e,{align:y="end",type:$="outer"}=b,C=Array.isArray(c)?c[0]:c,x="string"===typeof c||Array.isArray(c)?c:void 0,w=r.useMemo(()=>{if(C){const e="string"===typeof C?C:Object.values(C)[0];return new Or(e).isLight()}return!1},[c]),S=r.useMemo(()=>{const t=J_(e);return Number.parseInt(void 0!==t?(t??0)?.toString():(u??0)?.toString(),10)},[u,e.success]),E=r.useMemo(()=>!fV.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:k,direction:N,className:I,style:M,classNames:P,styles:R}=xe("progress"),O=k("progress",n),[z,A]=uV(O),T={...e,percent:u,type:m,size:d,showInfo:p,percentPosition:b},[B,H]=Ca([P,a],[R,l],{props:T}),D="line"===m,L=D&&!s,j=r.useMemo(()=>{if(!p)return null;const t=J_(e);let n;const o=h||(e=>`${e}%`),i=D&&w&&"inner"===$;return"inner"===$||h||"exception"!==E&&"success"!==E?n=o(Z_(u),Z_(t)):"exception"===E?n=D?r.createElement(mi,null):r.createElement(gi,null):"success"===E&&(n=D?r.createElement(ui,null):r.createElement(Wv,null)),r.createElement("span",{className:re(`${O}-indicator`,{[`${O}-indicator-bright`]:i,[`${O}-indicator-${y}`]:L,[`${O}-indicator-${$}`]:L},B.indicator),style:H.indicator,title:"string"===typeof n?n:void 0},n)},[p,u,S,E,m,O,h,D,w,$,y,L,B.indicator,H.indicator]);const F={...e,classNames:B,styles:H};let W;"line"===m?W=s?r.createElement(mV,{...F,strokeColor:x,prefixCls:O,steps:"object"===typeof s?s.count:s},j):r.createElement(pV,{...F,strokeColor:C,prefixCls:O,direction:N,percentPosition:{align:y,type:$}},j):"circle"!==m&&"dashboard"!==m||(W=r.createElement(nV,{...F,strokeColor:C,prefixCls:O,progressStatus:E},j));const _=re(O,`${O}-status-${E}`,{[`${O}-${"dashboard"===m?"circle":m}`]:"line"!==m,[`${O}-inline-circle`]:"circle"===m&&eV(d,"circle")[0]<=20,[`${O}-line`]:L,[`${O}-line-align-${y}`]:L,[`${O}-line-position-${$}`]:L,[`${O}-steps`]:s,[`${O}-show-info`]:p,[`${O}-small`]:"small"===d,[`${O}-rtl`]:"rtl"===N},I,o,i,B.root,z,A);return r.createElement("div",{ref:t,style:{...M,...H.root,...g},className:_,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100,...Y(v,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},W)});const gV=hV;function bV(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ae(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var vV,yV;function $V(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function CV(e,t){return 0!=(e>>>t&1)}function xV(e){if(!e)throw new Error("Assertion error")}var wV=function(){function e(t,n){(0,Dn.A)(this,e),(0,Ee.A)(this,"modeBits",void 0),(0,Ee.A)(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return(0,Ln.A)(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}();vV=wV,(0,Ee.A)(wV,"NUMERIC",new vV(1,[10,12,14])),(0,Ee.A)(wV,"ALPHANUMERIC",new vV(2,[9,11,13])),(0,Ee.A)(wV,"BYTE",new vV(4,[8,16,16])),(0,Ee.A)(wV,"KANJI",new vV(8,[8,10,12])),(0,Ee.A)(wV,"ECI",new vV(7,[0,0,0]));var SV=(0,Ln.A)(function e(t,n){(0,Dn.A)(this,e),(0,Ee.A)(this,"ordinal",void 0),(0,Ee.A)(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});yV=SV,(0,Ee.A)(SV,"LOW",new yV(0,1)),(0,Ee.A)(SV,"MEDIUM",new yV(1,0)),(0,Ee.A)(SV,"QUARTILE",new yV(2,3)),(0,Ee.A)(SV,"HIGH",new yV(3,2));var EV=function(){function e(t,n,r){if((0,Dn.A)(this,e),(0,Ee.A)(this,"mode",void 0),(0,Ee.A)(this,"numChars",void 0),(0,Ee.A)(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return(0,Ln.A)(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var n,r=[],o=bV(t);try{for(o.s();!(n=o.n()).done;){$V(n.value,8,r)}}catch(i){o.e(i)}finally{o.f()}return new e(wV.BYTE,t.length,r)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var n=[],r=0;r<t.length;){var o=Math.min(t.length-r,3);$V(parseInt(t.substring(r,r+o),10),3*o+1,n),r+=o}return new e(wV.NUMERIC,t.length,n)}},{key:"makeAlphanumeric",value:function(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var n,r=[];for(n=0;n+2<=t.length;n+=2){var o=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));$V(o+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),11,r)}return n<t.length&&$V(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,r),new e(wV.ALPHANUMERIC,t.length,r)}},{key:"makeSegments",value:function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)$V(t,8,n);else if(t<16384)$V(2,2,n),$V(t,14,n);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");$V(6,3,n),$V(t,21,n)}return new e(wV.ECI,0,n)}},{key:"isNumeric",value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(e,t){var n,r=0,o=bV(e);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i.mode.numCharCountBits(t);if(i.numChars>=1<<a)return 1/0;r+=4+a+i.bitData.length}}catch(l){o.e(l)}finally{o.f()}return r}},{key:"toUtf8ByteArray",value:function(e){for(var t=encodeURI(e),n=[],r=0;r<t.length;r++)"%"!=t.charAt(r)?n.push(t.charCodeAt(r)):(n.push(parseInt(t.substring(r+1,r+3),16)),r+=2);return n}}]),e}();(0,Ee.A)(EV,"NUMERIC_REGEX",/^[0-9]*$/),(0,Ee.A)(EV,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/),(0,Ee.A)(EV,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var kV=function(){function e(t,n,r,o){(0,Dn.A)(this,e),(0,Ee.A)(this,"size",void 0),(0,Ee.A)(this,"mask",void 0),(0,Ee.A)(this,"modules",[]),(0,Ee.A)(this,"isFunction",[]),(0,Ee.A)(this,"version",void 0),(0,Ee.A)(this,"errorCorrectionLevel",void 0);var i=o;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*t+17;for(var a=[],l=0;l<this.size;l++)a.push(!1);for(var s=0;s<this.size;s++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();var c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==i)for(var u=1e9,d=0;d<8;d++){this.applyMask(d),this.drawFormatBits(d);var p=this.getPenaltyScore();p<u&&(i=d,u=p),this.applyMask(d)}xV(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}return(0,Ln.A)(e,[{key:"getModule",value:function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,r=0;r<n;r++)for(var o=0;o<n;o++)0==r&&0==o||0==r&&o==n-1||r==n-1&&0==o||this.drawAlignmentPattern(t[r],t[o]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,r=0;r<10;r++)n=n<<1^1335*(n>>>9);var o=21522^(t<<10|n);xV(o>>>15==0);for(var i=0;i<=5;i++)this.setFunctionModule(8,i,CV(o,i));this.setFunctionModule(8,7,CV(o,6)),this.setFunctionModule(8,8,CV(o,7)),this.setFunctionModule(7,8,CV(o,8));for(var a=9;a<15;a++)this.setFunctionModule(14-a,8,CV(o,a));for(var l=0;l<8;l++)this.setFunctionModule(this.size-1-l,8,CV(o,l));for(var s=8;s<15;s++)this.setFunctionModule(8,this.size-15+s,CV(o,s));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;xV(n>>>18==0);for(var r=0;r<18;r++){var o=CV(n,r),i=this.size-11+r%3,a=Math.floor(r/3);this.setFunctionModule(i,a,o),this.setFunctionModule(a,i,o)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}},{key:"drawAlignmentPattern",value:function(e,t){for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}},{key:"setFunctionModule",value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:"addEccAndInterleave",value:function(t){var n=this.version,r=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");for(var o=e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],a=Math.floor(e.getNumRawDataModules(n)/8),l=o-a%o,s=Math.floor(a/o),c=[],u=e.reedSolomonComputeDivisor(i),d=0,p=0;d<o;d++){var m=t.slice(p,p+s-i+(d<l?0:1));p+=m.length;var f=e.reedSolomonComputeRemainder(m,u);d<l&&m.push(0),c.push(m.concat(f))}for(var h=[],g=function(e){c.forEach(function(t,n){(e!=s-i||n>=l)&&h.push(t[e])})},b=0;b<c[0].length;b++)g(b);return xV(h.length==a),h}},{key:"drawCodewords",value:function(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var n=0,r=this.size-1;r>=1;r-=2){6==r&&(r=5);for(var o=0;o<this.size;o++)for(var i=0;i<2;i++){var a=r-i,l=0==(r+1&2)?this.size-1-o:o;!this.isFunction[l][a]&&n<8*t.length&&(this.modules[l][a]=CV(t[n>>>3],7-(7&n)),n++)}}xV(n==8*t.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var r=void 0;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}},{key:"getPenaltyScore",value:function(){for(var t=0,n=0;n<this.size;n++){for(var r=!1,o=0,i=[0,0,0,0,0,0,0],a=0;a<this.size;a++)this.modules[n][a]==r?5==++o?t+=e.PENALTY_N1:o>5&&t++:(this.finderPenaltyAddHistory(o,i),r||(t+=this.finderPenaltyCountPatterns(i)*e.PENALTY_N3),r=this.modules[n][a],o=1);t+=this.finderPenaltyTerminateAndCount(r,o,i)*e.PENALTY_N3}for(var l=0;l<this.size;l++){for(var s=!1,c=0,u=[0,0,0,0,0,0,0],d=0;d<this.size;d++)this.modules[d][l]==s?5==++c?t+=e.PENALTY_N1:c>5&&t++:(this.finderPenaltyAddHistory(c,u),s||(t+=this.finderPenaltyCountPatterns(u)*e.PENALTY_N3),s=this.modules[d][l],c=1);t+=this.finderPenaltyTerminateAndCount(s,c,u)*e.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var m=0;m<this.size-1;m++){var f=this.modules[p][m];f==this.modules[p][m+1]&&f==this.modules[p+1][m]&&f==this.modules[p+1][m+1]&&(t+=e.PENALTY_N2)}var h,g=0,b=bV(this.modules);try{for(b.s();!(h=b.n()).done;){g=h.value.reduce(function(e,t){return e+(t?1:0)},g)}}catch($){b.e($)}finally{b.f()}var v=this.size*this.size,y=Math.ceil(Math.abs(20*g-10*v)/v)-1;return xV(0<=y&&y<=9),xV(0<=(t+=y*e.PENALTY_N4)&&t<=2568888),t}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6],r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}},{key:"finderPenaltyCountPatterns",value:function(e){var t=e[1];xV(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){var r=t;return e&&(this.finderPenaltyAddHistory(r,n),r=0),r+=this.size,this.finderPenaltyAddHistory(r,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){var n=e;0==t[0]&&(n+=this.size),t.pop(),t.unshift(n)}}],[{key:"encodeText",value:function(t,n){var r=EV.makeSegments(t);return e.encodeSegments(r,n)}},{key:"encodeBinary",value:function(t,n){var r=EV.makeBytes(t);return e.encodeSegments([r],n)}},{key:"encodeSegments",value:function(t,n){var r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");for(r=i;;r++){var c=8*e.getNumDataCodewords(r,n),u=EV.getTotalBits(t,r);if(u<=c){o=u;break}if(r>=a)throw new RangeError("Data too long")}for(var d=n,p=0,m=[SV.MEDIUM,SV.QUARTILE,SV.HIGH];p<m.length;p++){var f=m[p];s&&o<=8*e.getNumDataCodewords(r,f)&&(d=f)}var h,g=[],b=bV(t);try{for(b.s();!(h=b.n()).done;){var v=h.value;$V(v.mode.modeBits,4,g),$V(v.numChars,v.mode.numCharCountBits(r),g);var y,$=bV(v.getData());try{for($.s();!(y=$.n()).done;){var C=y.value;g.push(C)}}catch(E){$.e(E)}finally{$.f()}}}catch(E){b.e(E)}finally{b.f()}xV(g.length==o);var x=8*e.getNumDataCodewords(r,d);xV(g.length<=x),$V(0,Math.min(4,x-g.length),g),$V(0,(8-g.length%8)%8,g),xV(g.length%8==0);for(var w=236;g.length<x;w^=253)$V(w,8,g);for(var S=[];8*S.length<g.length;)S.push(0);return g.forEach(function(e,t){S[t>>>3]|=e<<7-(7&t)}),new e(r,d,S,l)}},{key:"getNumRawDataModules",value:function(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*t+128)*t+64;if(t>=2){var r=Math.floor(t/7)+2;n-=(25*r-10)*r-55,t>=7&&(n-=36)}return xV(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}},{key:"reedSolomonComputeDivisor",value:function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r<t-1;r++)n.push(0);n.push(1);for(var o=1,i=0;i<t;i++){for(var a=0;a<n.length;a++)n[a]=e.reedSolomonMultiply(n[a],o),a+1<n.length&&(n[a]^=n[a+1]);o=e.reedSolomonMultiply(o,2)}return n}},{key:"reedSolomonComputeRemainder",value:function(t,n){var r,o=n.map(function(){return 0}),i=bV(t);try{var a=function(){var t=r.value^o.shift();o.push(0),n.forEach(function(n,r){o[r]^=e.reedSolomonMultiply(n,t)})};for(i.s();!(r=i.n()).done;)a()}catch(l){i.e(l)}finally{i.f()}return o}},{key:"reedSolomonMultiply",value:function(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return xV(n>>>8==0),n}}]),e}();(0,Ee.A)(kV,"MIN_VERSION",1),(0,Ee.A)(kV,"MAX_VERSION",40),(0,Ee.A)(kV,"PENALTY_N1",3),(0,Ee.A)(kV,"PENALTY_N2",3),(0,Ee.A)(kV,"PENALTY_N3",40),(0,Ee.A)(kV,"PENALTY_N4",10),(0,Ee.A)(kV,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]),(0,Ee.A)(kV,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var NV={L:SV.LOW,M:SV.MEDIUM,Q:SV.QUARTILE,H:SV.HIGH},IV="#FFFFFF",MV="#000000",PV=!1,RV=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach(function(e,r){var o=null;e.forEach(function(i,a){if(!i&&null!==o)return n.push("M".concat(o+t," ").concat(r+t,"h").concat(a-o,"v1H").concat(o+t,"z")),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(o+t,",").concat(r+t," h").concat(a+1-o,"v1H").concat(o+t,"z"))}})}),n.join("")},OV=function(e,t){return e.slice().map(function(e,n){return n<t.y||n>=t.y+t.h?e:e.map(function(e,n){return(n<t.x||n>=t.x+t.w)&&e})})},zV=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),AV=function(e){var t=e.value,n=e.level,o=e.minVersion,i=e.includeMargin,a=e.marginSize,l=e.imageSettings,s=e.size,c=e.boostLevel,u=r.useMemo(function(){var e=(Array.isArray(t)?t:[t]).reduce(function(e,t){return e.push.apply(e,le(EV.makeSegments(t))),e},[]);return kV.encodeSegments(e,NV[n],o,void 0,void 0,c)},[t,n,o,c]);return r.useMemo(function(){var e=u.getModules(),t=function(e,t){return null!=t?Math.max(Math.floor(t),0):e?4:0}(i,a),n=e.length+2*t,r=function(e,t,n,r){if(null==r)return null;var o=e.length+2*n,i=Math.floor(.1*t),a=o/t,l=(r.width||i)*a,s=(r.height||i)*a,c=null==r.x?e.length/2-l/2:r.x*a,u=null==r.y?e.length/2-s/2:r.y*a,d=null==r.opacity?1:r.opacity,p=null;if(r.excavate){var m=Math.floor(c),f=Math.floor(u);p={x:m,y:f,w:Math.ceil(l+c-m),h:Math.ceil(s+u-f)}}return{x:c,y:u,h:s,w:l,excavation:p,opacity:d,crossOrigin:r.crossOrigin}}(e,s,t,l);return{cells:e,margin:t,numCells:n,calculatedImageSettings:r,qrcode:u}},[u,s,l,i,a])},TV=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings","boostLevel"],BV=r.forwardRef(function(e,t){var n=e.value,o=e.size,i=void 0===o?128:o,a=e.level,l=void 0===a?"L":a,s=e.bgColor,c=void 0===s?IV:s,u=e.fgColor,d=void 0===u?MV:u,p=e.includeMargin,m=void 0===p?PV:p,f=e.minVersion,h=void 0===f?1:f,g=e.marginSize,b=e.style,v=e.imageSettings,y=e.boostLevel,$=mR(e,TV),C=null===v||void 0===v?void 0:v.src,x=r.useRef(null),w=r.useRef(null),S=r.useCallback(function(e){x.current=e,"function"===typeof t?t(e):t&&(t.current=e)},[t]),E=Se(r.useState(!1),2)[1],k=AV({value:n,level:l,minVersion:h,includeMargin:m,marginSize:g,imageSettings:v,size:i,boostLevel:y}),N=k.margin,I=k.cells,M=k.numCells,P=k.calculatedImageSettings;r.useEffect(function(){if(x.current){var e=x.current,t=e.getContext("2d");if(!t)return;var n=I,r=w.current,o=null!=P&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;o&&null!=P.excavation&&(n=OV(I,P.excavation));var a=window.devicePixelRatio||1;e.height=e.width=i*a;var l=i/M*a;t.scale(l,l),t.fillStyle=c,t.fillRect(0,0,M,M),t.fillStyle=d,zV?t.fill(new Path2D(RV(n,N))):I.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+N,n+N,1,1)})}),P&&(t.globalAlpha=P.opacity),o&&t.drawImage(r,P.x+N,P.y+N,P.w,P.h)}}),r.useEffect(function(){E(!1)},[C]);var R=Ne({height:i,width:i},b),O=null;return null!=C&&(O=r.createElement("img",{alt:"QR-Code",src:C,key:C,style:{display:"none"},onLoad:function(){E(!0)},ref:w,crossOrigin:null===P||void 0===P?void 0:P.crossOrigin})),r.createElement(r.Fragment,null,r.createElement("canvas",ed({style:R,height:i,width:i,ref:S,role:"img"},$)),O)});var HV=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings","boostLevel"],DV=r.forwardRef(function(e,t){var n=e.value,o=e.size,i=void 0===o?128:o,a=e.level,l=void 0===a?"L":a,s=e.bgColor,c=void 0===s?IV:s,u=e.fgColor,d=void 0===u?MV:u,p=e.includeMargin,m=void 0===p?PV:p,f=e.minVersion,h=void 0===f?1:f,g=e.title,b=e.marginSize,v=e.imageSettings,y=e.boostLevel,$=mR(e,HV),C=AV({value:n,level:l,minVersion:h,includeMargin:m,marginSize:b,imageSettings:v,size:i,boostLevel:y}),x=C.margin,w=C.cells,S=C.numCells,E=C.calculatedImageSettings,k=w,N=null;null!=v&&null!=E&&(null!=E.excavation&&(k=OV(w,E.excavation)),N=r.createElement("image",{href:v.src,height:E.h,width:E.w,x:E.x+x,y:E.y+x,preserveAspectRatio:"none",opacity:E.opacity,crossOrigin:E.crossOrigin}));var I=RV(k,x);return r.createElement("svg",ed({height:i,width:i,viewBox:"0 0 ".concat(S," ").concat(S),ref:t,role:"img"},$),!!g&&r.createElement("title",null,g),r.createElement("path",{fill:c,d:"M0,0 h".concat(S,"v").concat(S,"H0z"),shapeRendering:"crispEdges"}),r.createElement("path",{fill:d,d:I,shapeRendering:"crispEdges"}),N)});const LV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function jV(){return jV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jV.apply(this,arguments)}const FV=r.forwardRef((e,t)=>r.createElement(si,jV({},e,{ref:t,icon:LV}))),WV=r.createElement(wW,null);function _V(e){let{prefixCls:t,locale:n,onRefresh:o,statusRender:i,status:a}=e;const l=r.createElement(r.Fragment,null,r.createElement("p",{className:`${t}-expired`},n?.expired),o&&r.createElement(Qd,{type:"link",icon:r.createElement(FV,null),onClick:o},n?.refresh)),s=r.createElement("p",{className:`${t}-scanned`},n?.scanned),c={expired:l,loading:WV,scanned:s};return(i??(e=>c[e.status]))({status:a,locale:n,onRefresh:o})}const VV=To("QRCode",e=>(e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return{[t]:{...br(e),display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${lt(n)} ${r} ${o}`,position:"relative",overflow:"hidden",[`& > ${t}-cover`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeCoverBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}},[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}})(ir(e,{QRCodeTextColor:e.colorText})),e=>({QRCodeCoverBackgroundColor:new Or(e.colorBgContainer).setA(.96).toRgbString()}));const XV=e=>{const[,t]=Ao(),{value:n,type:o="canvas",icon:i="",size:a=160,iconSize:l,color:s=t.colorText,errorLevel:c="M",status:u="active",bordered:d=!0,onRefresh:p,style:m,className:f,rootClassName:h,prefixCls:g,bgColor:b="transparent",marginSize:v,statusRender:y,classNames:$,styles:C,boostLevel:x,...w}=e,{getPrefixCls:S,className:E,style:k,classNames:N,styles:I}=xe("qrcode"),M={...e,bgColor:b,type:o,size:a,status:u,bordered:d,errorLevel:c},[P,R]=Ca([N,$],[I,C],{props:M}),O=S("qrcode",g),[z,A]=VV(O),T={src:i,x:void 0,y:void 0,height:"number"===typeof l?l:l?.height??40,width:"number"===typeof l?l:l?.width??40,excavate:!0,crossOrigin:"anonymous"},B=fa(w,!0),H=Y(w,Object.keys(B)),D={value:n,size:a,level:c,bgColor:b,fgColor:s,style:{width:m?.width,height:m?.height},imageSettings:i?T:void 0,marginSize:v,boostLevel:x,...B},[L]=Yc("QRCode");if(!n)return null;const j=re(O,f,h,z,A,E,P.root,{[`${O}-borderless`]:!d}),F={backgroundColor:b,...R.root,...k,...m,width:m?.width??a,height:m?.height??a};return r.createElement("div",{...H,className:j,style:F},"active"!==u&&r.createElement("div",{className:re(`${O}-cover`,P.cover),style:R.cover},r.createElement(_V,{prefixCls:O,locale:L,status:u,onRefresh:p,statusRender:y})),"canvas"===o?r.createElement(BV,{...D}):r.createElement(DV,{...D}))},KV=PM;KV.Button=zM,KV.Group=OM,KV.__ANT_RADIO=!0;const qV=KV;const GV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};function YV(){return YV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YV.apply(this,arguments)}const UV=r.forwardRef((e,t)=>r.createElement(si,YV({},e,{ref:t,icon:GV})));const QV=r.forwardRef(function(e,t){const{disabled:n,prefixCls:o,character:i,characterRender:a,index:l,count:s,value:c,allowHalf:u,focused:d,onHover:p,onClick:m}=e,f=l+1,h=new Set([o]);0===c&&0===l&&d?h.add(`${o}-focused`):u&&c+.5>=f&&c<f?(h.add(`${o}-half`),h.add(`${o}-active`),d&&h.add(`${o}-focused`)):(f<=c?h.add(`${o}-full`):h.add(`${o}-zero`),f===c&&d&&h.add(`${o}-focused`));const g="function"===typeof i?i(e):i;let b=r.createElement("li",{className:re(Array.from(h)),ref:t},r.createElement("div",{onClick:n?null:e=>{m(e,l)},onKeyDown:n?null:e=>{e.keyCode===ul.ENTER&&m(e,l)},onMouseMove:n?null:e=>{p(e,l)},role:"radio","aria-checked":c>l?"true":"false","aria-posinset":l+1,"aria-setsize":s,tabIndex:n?-1:0},r.createElement("div",{className:`${o}-first`},g),r.createElement("div",{className:`${o}-second`},g)));return a&&(b=a(b,e)),b});function ZV(){return ZV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZV.apply(this,arguments)}const JV=r.forwardRef(function(e,t){const{prefixCls:n="rc-rate",className:o,defaultValue:i,value:a,count:l=5,allowHalf:s=!1,allowClear:c=!0,keyboard:u=!0,character:d="\u2605",characterRender:p,disabled:m,direction:f="ltr",tabIndex:h=0,autoFocus:g,onHoverChange:b,onChange:v,onFocus:y,onBlur:$,onKeyDown:C,onMouseLeave:x,...w}=e,[S,E]=function(){const e=r.useRef({});return[function(t){return e.current[t]},function(t){return n=>{e.current[t]=n}}]}(),k=r.useRef(null),N=()=>{m||k.current?.focus()};r.useImperativeHandle(t,()=>({focus:N,blur:()=>{m||k.current?.blur()}}));const[I,M]=F(i||0,a),[P,R]=F(null),O=(e,t)=>{const n="rtl"===f;let r=e+1;if(s){const o=S(e),i=function(e){const t=function(e){let t,n;const r=e.ownerDocument,{body:o}=r,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=i.clientLeft||o.clientLeft||0,n-=i.clientTop||o.clientTop||0,{left:t,top:n}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=function(e){let t=e.pageXOffset;const n="scrollLeft";if("number"!==typeof t){const r=e.document;t=r.documentElement[n],"number"!==typeof t&&(t=r.body[n])}return t}(r),t.left}(o),a=o.clientWidth;(n&&t-i>a/2||!n&&t-i<a/2)&&(r-=.5)}return r},z=e=>{M(e),v?.(e)},[A,T]=r.useState(!1),[B,H]=r.useState(null),D=(e,t)=>{const n=O(t,e.pageX);n!==P&&(H(n),R(null)),b?.(n)},L=e=>{m||(H(null),R(null),b?.(void 0)),e&&x?.(e)},j=(e,t)=>{const n=O(t,e.pageX);let r=!1;c&&(r=n===I),L(),z(r?0:n),R(r?n:null)};r.useEffect(()=>{g&&!m&&N()},[]);const W=new Array(l).fill(0).map((e,t)=>r.createElement(QV,{ref:E(t),index:t,count:l,disabled:m,prefixCls:`${n}-star`,allowHalf:s,value:null===B?I:B,onClick:j,onHover:D,key:e||t,character:d,characterRender:p,focused:A})),_=re(n,o,{[`${n}-disabled`]:m,[`${n}-rtl`]:"rtl"===f});return r.createElement("ul",ZV({className:_,onMouseLeave:L,tabIndex:m?-1:h,onFocus:m?null:()=>{T(!0),y?.()},onBlur:m?null:()=>{T(!1),$?.()},onKeyDown:m?null:e=>{const{keyCode:t}=e,n="rtl"===f,r=s?.5:1;u&&(t===ul.RIGHT&&I<l&&!n?(z(I+r),e.preventDefault()):t===ul.LEFT&&I>0&&!n||t===ul.RIGHT&&I>0&&n?(z(I-r),e.preventDefault()):t===ul.LEFT&&I<l&&n&&(z(I+r),e.preventDefault())),C?.(e)},ref:k},fa(w,{aria:!0,data:!0,attr:!0})),W)}),eX=JV,tX=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${lt(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},nX=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),rX=To("Rate",e=>(e=>{const{componentCls:t}=e;return{[t]:{...br(e),display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none","&-small":{fontSize:e.starSizeSM},"&-large":{fontSize:e.starSizeLG},[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}},...tX(e),...nX(e)}}})(ir(e,{})),e=>({starColor:e.yellow6,starSize:.625*e.controlHeight,starSizeSM:.625*e.controlHeightSM,starSizeLG:.625*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent})),oX=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:a,tooltips:l,character:s=r.createElement(UV,null),disabled:c,size:u,...d}=e,{getPrefixCls:p,direction:m,className:f,style:h}=xe("rate"),g=p("rate",n),[b,v]=rX(g),y={...h,...a},$=r.useContext($c),C=c??$,x=ou(e=>u??e);return r.createElement(eX,{ref:t,character:s,characterRender:(e,t)=>{let{index:n}=t;if(!l)return e;const o=l[n];return"object"===typeof(i=o)&&null!==i?r.createElement(Jy,{...o},e):r.createElement(Jy,{title:o},e);var i},disabled:C,...d,className:re({[`${g}-large`]:"large"===x,[`${g}-small`]:"small"===x},o,i,b,v,f),style:y,prefixCls:g,direction:m})});const iX=oX;const aX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};function lX(){return lX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lX.apply(this,arguments)}const sX=r.forwardRef((e,t)=>r.createElement(si,lX({},e,{ref:t,icon:aX}))),cX=()=>r.createElement("svg",{width:"252",height:"294"},r.createElement("title",null,"No Found"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),r.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),r.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),r.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),r.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),r.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),r.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),r.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),r.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),r.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),r.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),r.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),r.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),r.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),r.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),r.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),r.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),r.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),r.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),r.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),r.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),r.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),r.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),r.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),r.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),r.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),r.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),r.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),r.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),r.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),r.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),r.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),r.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),r.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),r.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),r.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),r.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),uX=()=>r.createElement("svg",{width:"254",height:"294"},r.createElement("title",null,"Server Error"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),r.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),r.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),r.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),r.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),r.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),r.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),r.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),r.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),r.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),r.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),r.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),r.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),r.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),r.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),r.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),r.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),r.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),r.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),r.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),r.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),r.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),r.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),r.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),r.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),r.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),r.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),r.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),r.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),r.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),r.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),r.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),r.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),r.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),r.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),r.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),r.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),r.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),r.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),r.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),r.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),dX=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:i,paddingXS:a,paddingLG:l,marginXS:s,lineHeight:c}=e;return{[t]:{padding:`${lt(e.calc(l).mul(2).equal())} ${lt(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-body`]:{marginTop:l,padding:`${lt(l)} ${lt(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},pX=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},mX=To("Result",e=>(e=>[dX(e),pX(e)])(ir(e,{resultInfoIconColor:e.colorInfo,resultErrorIconColor:e.colorError,resultSuccessIconColor:e.colorSuccess,resultWarningIconColor:e.colorWarning,imageWidth:250,imageHeight:295})),e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:3*e.fontSizeHeading3,extraMargin:`${e.paddingLG}px 0 0 0`})),fX={success:ui,error:mi,info:yi,warning:sX},hX={404:cX,500:uX,403:()=>r.createElement("svg",{width:"251",height:"294"},r.createElement("title",null,"Unauthorized"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),r.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),r.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),r.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),r.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),r.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),r.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),r.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),r.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),r.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),r.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),r.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),r.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),r.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),r.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),r.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),r.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),r.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),r.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),r.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),r.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),r.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),r.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),r.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),r.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),r.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),r.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),r.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),r.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),r.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),r.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),r.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),r.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),r.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),r.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),r.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),r.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),r.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"})))},gX=Object.keys(hX),bX=e=>{let{icon:t,status:n,className:o,style:i}=e;if(gX.includes(`${n}`)){const e=hX[n];return r.createElement("div",{className:o,style:i},r.createElement(e,null))}const a=r.createElement(fX[n]);return null===t||!1===t?null:r.createElement("div",{className:o,style:i},t||a)},vX=e=>{let{className:t,extra:n,style:o}=e;return n?r.createElement("div",{className:t,style:o},n):null},yX=e=>{const{prefixCls:t,className:n,rootClassName:o,subTitle:i,title:a,style:l,children:s,status:c="info",icon:u,extra:d,styles:p,classNames:m,...f}=e,{getPrefixCls:h,direction:g,className:b,style:v,classNames:y,styles:$}=xe("result"),C={...e,status:c},[x,w]=Ca([y,m],[$,p],{props:C}),S=h("result",t),[E,k]=mX(S),N=re(S,`${S}-${c}`,n,b,o,{[`${S}-rtl`]:"rtl"===g},E,k,x.root),I=re(`${S}-title`,x.title),M=re(`${S}-subtitle`,x.subTitle),P=re(`${S}-extra`,x.extra),R=re(`${S}-body`,x.body),O=re(`${S}-icon`,{[`${S}-image`]:gX.includes(`${c}`)},x.icon),z={...w.root,...v,...l},A=fa(f,{aria:!0,data:!0});return r.createElement("div",{...A,className:N,style:z},r.createElement(bX,{className:O,style:w.icon,status:c,icon:u}),r.createElement("div",{className:I,style:w.title},a),i&&r.createElement("div",{className:M,style:w.subTitle},i),r.createElement(vX,{className:P,extra:d,style:w.extra}),s&&r.createElement("div",{className:R,style:w.body},s))};yX.PRESENTED_IMAGE_403=hX[403],yX.PRESENTED_IMAGE_404=hX[404],yX.PRESENTED_IMAGE_500=hX[500];const $X=yX,CX=RL,xX=(0,r.forwardRef)((e,t)=>{const{prefixCls:n,className:o,children:i,size:a,style:l={}}=e,s=re(`${n}-panel`,{[`${n}-panel-hidden`]:0===a},o),c=void 0!==a;return r.createElement("div",{ref:t,className:s,style:{...l,flexBasis:c?a:"auto",flexGrow:c?0:1}},i)});const wX=()=>null;function SX(e){if(e&&"object"===typeof e)return{...e,showCollapsibleIcon:void 0===e.showCollapsibleIcon?"auto":e.showCollapsibleIcon};const t=!!e;return{start:t,end:t,showCollapsibleIcon:"auto"}}const EX=function(e){const t=r.useMemo(()=>c(e).filter(e=>r.isValidElement(e)).map(e=>{const{props:t}=e,{collapsible:n,...r}=t;return{...r,collapsible:SX(n)}}),[e]);return t};function kX(e,t){return e.collapsible&&t.collapsible?!0===e.showCollapsibleIcon||!0===t.showCollapsibleIcon||("auto"===e.showCollapsibleIcon||"auto"===t.showCollapsibleIcon)&&"auto":e.collapsible?e.showCollapsibleIcon:!!t.collapsible&&t.showCollapsibleIcon}function NX(e){return Number(e.slice(0,-1))/100}function IX(e){return"string"===typeof e&&e.endsWith("%")}function MX(e,t){const n=e.map(e=>e.size),o=e.length,i=t||0,a=e=>e*i,[l,s]=r.useState(()=>e.map(e=>e.defaultSize)),c=r.useMemo(()=>n.some(e=>null!==e&&void 0!==e)?n:l,[o,l,n]),u=r.useMemo(()=>e.map(e=>IX(e.min)?NX(e.min):(e.min||0)/i),[e,i]),d=r.useMemo(()=>e.map(e=>IX(e.max)?NX(e.max):(e.max||i)/i),[e,i]),p=r.useMemo(()=>{const e=[];for(let t=0;t<o;t+=1){const n=c[t];if(IX(n))e[t]=NX(n);else if(n||0===n){const r=Number(n);Number.isNaN(r)||(e[t]=r/i)}else e[t]=void 0}return function(e,t,n){let r=0;const o=[];e.forEach((e,t)=>{void 0===e?o.push(t):r+=e});const i=1-r,a=o.length;if(e.length&&!o.length&&1!==r){if(0===r){const t=1/e.length;return e.map(()=>t)}const t=1/r;return e.map(e=>e*t)}if(i<0){const t=1/r;return e.map(e=>void 0===e?0:e*t)}let l=0,s=0,c=0,u=1;for(const f of o){const e=t[f]||0,r=n[f]||1;l+=e,s+=r,c=Math.max(c,e),u=Math.min(u,r)}if(l>1&&s<1){const t=1/a;return e.map(e=>void 0===e?t:e)}const d=i/a;if(c<=d&&d<=u)return e.map(e=>void 0===e?d:e);const p=le(e);let m=i-l;for(let f=0;f<a;f+=1){const e=o[f],r=t[e]||0,i=n[e]||1;p[e]=r;const a=i-r,l=Math.min(a,m);p[e]+=l,m-=l}return p}(e,u,d)},[o,c,i,u,d]),m=r.useMemo(()=>p.map(a),[p,i]);return[r.useMemo(()=>t?m:c,[m,c,t]),m,p,u,d,s]}function PX(e){return"number"===typeof e&&!Number.isNaN(e)&&Number.isFinite(e)?Math.round(e):0}const RX=e=>{const{prefixCls:t,rootPrefixCls:n,vertical:o,index:i,active:a,ariaNow:l,ariaMin:s,ariaMax:c,resizable:u,draggerIcon:d,draggerStyle:p,draggerClassName:m,collapsibleIcon:f,startCollapsible:h,endCollapsible:g,onDraggerDoubleClick:b,onOffsetStart:v,onOffsetUpdate:y,onOffsetEnd:$,onCollapse:C,lazy:x,containerSize:w,showStartCollapsibleIcon:S,showEndCollapsibleIcon:E}=e,k=`${t}-bar`,N=(0,r.useRef)(0),[I]=Do(n,"splitter"),[M,P]=(0,r.useState)(null),[R,O]=(0,r.useState)(0),z=o?0:R,T=o?R:0,B=A((e,t)=>{const n=(e=>{const t=w*l/100,n=t+e,r=Math.max(0,w*s/100),o=Math.min(w,w*c/100);return Math.max(r,Math.min(o,n))-t})(o?t:e);O(n)}),H=A(()=>{y(i,z,T,!0),O(0),$(!0)}),D=e=>{switch(e){case!0:return`${k}-collapse-bar-always-visible`;case!1:return`${k}-collapse-bar-always-hidden`;case"auto":return`${k}-collapse-bar-hover-only`}};L(()=>{if(!M)return;const e={mousemove:e=>{const{pageX:t,pageY:n}=e,r=t-M[0],o=n-M[1];x?B(r,o):y(i,r,o)},mouseup:()=>{x?H():$(),P(null)},touchmove:e=>{if(1===e.touches.length){const t=e.touches[0],n=t.pageX-M[0],r=t.pageY-M[1];x?B(n,r):y(i,n,r)}},touchend:()=>{x?H():$(),P(null)}};for(const[t,n]of Object.entries(e))window.addEventListener(t,n);return()=>{for(const[t,n]of Object.entries(e))window.removeEventListener(t,n)}},[M,i,x]);const j={[I("bar-preview-offset")]:`${R}px`},[F,W,_,V]=r.useMemo(()=>{let e=null,t=null;const n=void 0!==f?.start,i=void 0!==f?.end;return o?(e=n?f.start:r.createElement(hA,null),t=i?f.end:r.createElement(Xv,null)):(e=n?f.start:r.createElement(_$,null),t=i?f.end:r.createElement(Ju,null)),[e,t,n,i]},[f,o]);return r.createElement("div",{className:k,role:"separator","aria-valuenow":PX(l),"aria-valuemin":PX(s),"aria-valuemax":PX(c)},x&&r.createElement("div",{className:re(`${k}-preview`,{[`${k}-preview-active`]:!!R}),style:j}),r.createElement("div",{style:p,className:re(`${k}-dragger`,{[`${k}-dragger-disabled`]:!u,[`${k}-dragger-active`]:a,[`${k}-dragger-customize`]:void 0!==d},m?.default,a&&m?.active),onMouseDown:e=>{e.stopPropagation();const t=Date.now(),n=t-N.current;n>0&&n<300||(N.current=t,u&&e.currentTarget&&(P([e.pageX,e.pageY]),v(i)))},onTouchStart:e=>{if(u&&1===e.touches.length){const t=e.touches[0];P([t.pageX,t.pageY]),v(i)}},onDoubleClick:()=>b?.(i)},void 0!==d?r.createElement("div",{className:re(`${k}-dragger-icon`)},d):null),h&&r.createElement("div",{className:re(`${k}-collapse-bar`,`${k}-collapse-bar-start`,{[`${k}-collapse-bar-customize`]:_},D(S)),onClick:()=>C(i,"start")},r.createElement("span",{className:re(`${k}-collapse-icon`,`${k}-collapse-start`)},F)),g&&r.createElement("div",{className:re(`${k}-collapse-bar`,`${k}-collapse-bar-end`,{[`${k}-collapse-bar-customize`]:V},D(E)),onClick:()=>C(i,"end")},r.createElement("span",{className:re(`${k}-collapse-icon`,`${k}-collapse-end`)},W)))},OX={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},zX=To("Splitter",e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:o,splitTriggerSize:i,controlItemBgHover:a,controlItemBgActive:l,controlItemBgActiveHover:s,colorPrimary:c,antCls:u,calc:d}=e,[,p]=Do(u,"splitter"),m=`${t}-bar`,f=`${t}-mask`,h=`${t}-panel`,g=d(i).div(2).equal(),b={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:{...br(e),display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${m}`]:{flex:"none",position:"relative",userSelect:"none",[`${m}-dragger`]:{...OX,zIndex:1,"&::before":{content:'""',background:a,...OX},"&::after":{content:'""',background:n,...OX},[`&:hover:not(${m}-dragger-active)`]:{"&::before":{background:l}},"&-active":{zIndex:2,"&::before":{background:s}},[`&-active${m}-dragger-customize`]:{[`${m}-dragger-icon`]:{color:c}},[`&-disabled${m}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:a}},"&::after":{display:"none"},[`${m}-dragger-icon`]:{display:"none"}},"&-customize":{[`${m}-dragger-icon`]:{...OX,display:"flex",alignItems:"center",color:n},"&::after":{display:"none"}}},[`${m}-collapse-bar`]:{...OX,zIndex:e.zIndexPopupBase,background:a,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center",[`&:hover:not(${m}-collapse-bar-customize)`]:{background:l},[`&:active:not(${m}-collapse-bar-customize)`]:{background:s},[`${m}-collapse-icon`]:{display:"flex",alignItems:"center"}},[`${m}-collapse-bar-customize`]:{background:"transparent"},"&:hover, &:active":{[`${m}-collapse-bar-hover-only`]:{opacity:1}},[`${m}-collapse-bar-hover-only`]:{"@media(hover:none)":{opacity:1}},[`${m}-collapse-bar-always-hidden`]:{display:"none"},[`${m}-collapse-bar-always-visible`]:{opacity:1}},[f]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${m}`]:{width:0,[`${m}-preview`]:{height:"100%",width:o,...b,[`&${m}-preview-active`]:{display:"block",transform:`translate3d(${p("bar-preview-offset")}, 0, 0)`}},[`${m}-dragger`]:{cursor:"col-resize",height:"100%",width:i,"&::before":{height:"100%",width:o},"&::after":{height:r,width:o}},[`${m}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:g},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:g},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${m}`]:{height:0,[`${m}-preview`]:{height:o,width:"100%",...b,[`&${m}-preview-active`]:{display:"block",transform:`translate3d(0, ${p("bar-preview-offset")}, 0)`}},[`${m}-dragger`]:{cursor:"row-resize",width:"100%",height:i,"&::before":{width:"100%",height:o},"&::after":{width:r,height:o}},[`${m}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:g,transform:"translateX(-50%)"},"&-end":{top:g,bottom:"auto",transform:"translateX(-50%)"}}}},[h]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}}},e=>{const t=e.splitBarSize||2,n=e.splitTriggerSize||6,r=e.resizeSpinnerSize||20;return{splitBarSize:t,splitTriggerSize:n,splitBarDraggableSize:e.splitBarDraggableSize??r,resizeSpinnerSize:r}});const AX=e=>{const{prefixCls:t,className:n,classNames:o,style:i,styles:a,layout:l,orientation:s,vertical:c,children:u,draggerIcon:d,collapsibleIcon:p,rootClassName:m,onDraggerDoubleClick:f,onResizeStart:h,onResize:g,onResizeEnd:b,lazy:v}=e,{getPrefixCls:y,direction:$,className:C,style:x,classNames:w,styles:S}=xe("splitter"),E=y("splitter",t),k=y(),N=Ka(E),[I,M]=zX(E,N),[P,R]=au(s,c,l),O="rtl"===$,z=!R&&O,T=EX(u);const[B,H]=(0,r.useState)(),[D,L,j,F,W,_]=MX(T,B),V=function(e,t,n){return r.useMemo(()=>{const r=[];for(let o=0;o<e.length-1;o+=1){const i=e[o],a=e[o+1],l=t[o],s=t[o+1],{resizable:c=!0,min:u,collapsible:d}=i,{resizable:p=!0,min:m,collapsible:f}=a,h=c&&p&&(0!==l||!u)&&(0!==s||!m),g=!!d.end&&l>0,b=!!f.start&&0===s&&l>0,v=g||b,y=!!f.start&&s>0,$=!!d.end&&0===l&&s>0,C=y||$,x=kX({collapsible:g,showCollapsibleIcon:d.showCollapsibleIcon},{collapsible:b,showCollapsibleIcon:f.showCollapsibleIcon}),w=kX({collapsible:y,showCollapsibleIcon:f.showCollapsibleIcon},{collapsible:$,showCollapsibleIcon:d.showCollapsibleIcon});r[o]={resizable:h,startCollapsible:!!(n?C:v),endCollapsible:!!(n?v:C),showStartCollapsibleIcon:n?w:x,showEndCollapsibleIcon:n?x:w}}return r},[t,e,n])}(T,L,z),[X,K,q,G,Y]=function(e,t,n,o,i,a){const l=e.map(e=>[e.min,e.max]),s=o||0,c=e=>e*s;function u(e,t){return"string"===typeof e?c(NX(e)):e??t}const[d,p]=r.useState([]),m=r.useRef([]),[f,h]=r.useState(null),g=()=>n.map(c);return[e=>{p(g()),h({index:e,confirmed:!1})},(e,n)=>{let r=null;if((!f||!f.confirmed)&&0!==n)if(n>0)r=e,h({index:e,confirmed:!0});else for(let i=e;i>=0;i-=1)if(d[i]>0&&t[i].resizable){r=i,h({index:i,confirmed:!0});break}const o=r??f?.index??e,a=le(d),c=o+1,p=u(l[o][0],0),m=u(l[c][0],0),g=u(l[o][1],s),b=u(l[c][1],s);let v=n;return a[o]+v<p&&(v=p-a[o]),a[c]-v<m&&(v=a[c]-m),a[o]+v>g&&(v=g-a[o]),a[c]-v>b&&(v=a[c]-b),a[o]+=v,a[c]-=v,i(a),a},()=>{h(null)},(e,t)=>{const n=g(),r=a?"start"===t?"end":"start":t,o="start"===r?e:e+1,c="start"===r?e+1:e,d=n[o],p=n[c];if(0!==d&&0!==p)n[o]=0,n[c]+=d,m.current[e]=d;else{const t=d+p,r=u(l[o][0],0),i=u(l[o][1],s),a=u(l[c][0],0),f=u(l[c][1],s),h=Math.max(r,t-f),g=Math.min(i,t-a),b=a||(g-h)/2,v=m.current[e],y=t-v;v&&v<=f&&v>=a&&y<=i&&y>=r?(n[c]=v,n[o]=y):(n[o]-=b,n[c]+=b)}return i(n),n},f?.index]}(T,V,j,B,_,z),U=A(e=>{X(e),h?.(L)}),Q=A((e,t,n)=>{const r=K(e,t);n?b?.(r):g?.(r)}),Z=A(e=>{q(),e||b?.(L)}),J=A((t,n)=>{const r=G(t,n);g?.(r),b?.(r);const o=r.map(e=>Math.abs(e)<Number.EPSILON);e.onCollapse?.(o,r)}),ee={...e,vertical:R,orientation:P},[ne,oe]=Ca([w,o],[S,a],{props:ee},{dragger:{_default:"default"}}),ie=re(E,n,`${E}-${P}`,{[`${E}-rtl`]:O},m,ne.root,C,M,N,I),ae=`${E}-mask`,se=r.useMemo(()=>{const e=[];let t=0;const n=T.length;for(let r=0;r<n;r+=1)t+=j[r],e.push(t);return e},[j,T.length]),ce={...oe.root,...x,...i};return r.createElement(te,{onResize:e=>{const{offsetWidth:t,offsetHeight:n}=e,r=R?n:t;0!==r&&H(r)}},r.createElement("div",{style:ce,className:ie},T.map((e,t)=>{const n={...e,className:re(ne.panel,e.className),style:{...oe.panel,...e.style}},o=r.createElement(xX,{...n,prefixCls:E,size:D[t]});let i=null;const a=V[t];if(a){const e=(se[t-1]||0)+F[t],n=(se[t+1]||100)-W[t+1],o=(se[t-1]||0)+W[t],l=(se[t+1]||100)-F[t+1];i=r.createElement(RX,{lazy:v,index:t,active:Y===t,prefixCls:E,rootPrefixCls:k,vertical:R,resizable:a.resizable,draggerStyle:oe.dragger,draggerClassName:ne.dragger,draggerIcon:d,collapsibleIcon:p,ariaNow:100*se[t],ariaMin:100*Math.max(e,n),ariaMax:100*Math.min(o,l),startCollapsible:a.startCollapsible,endCollapsible:a.endCollapsible,showStartCollapsibleIcon:a.showStartCollapsibleIcon,showEndCollapsibleIcon:a.showEndCollapsibleIcon,onDraggerDoubleClick:f,onOffsetStart:U,onOffsetUpdate:(e,t,n,r)=>{let o=R?n:t;z&&(o=-o),Q(e,o,r)},onOffsetEnd:Z,onCollapse:J,containerSize:B||0})}return r.createElement(r.Fragment,{key:`split-panel-${t}`},o,i)}),"number"===typeof Y&&r.createElement("div",{"aria-hidden":!0,className:re(ae,`${ae}-${P}`)})))},TX=AX;TX.Panel=wX;const BX=TX,HX=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:i,groupSeparator:a="",prefixCls:l}=e;let s;if("function"===typeof n)s=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",c=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),"number"===typeof o&&(c=c.padEnd(o,"0").slice(0,o>0?o:0)),c&&(c=`${i}${c}`),s=[r.createElement("span",{key:"int",className:`${l}-content-value-int`},e,t),c&&r.createElement("span",{key:"decimal",className:`${l}-content-value-decimal`},c)]}else s=e}return r.createElement("span",{className:`${l}-content-value`},s)},DX=To("Statistic",e=>(e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:i,colorTextHeading:a,contentFontSize:l,fontFamily:s}=e;return{[t]:{...br(e),[`${t}-header`]:{paddingBottom:n,[`${t}-title`]:{color:o,fontSize:i}},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:l,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}}}})(ir(e,{})),e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}),LX=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:a,valueStyle:l,value:s=0,title:c,valueRender:u,prefix:d,suffix:p,loading:m=!1,formatter:f,precision:h,decimalSeparator:g=".",groupSeparator:b=",",onMouseEnter:v,onMouseLeave:y,styles:$,classNames:C,...x}=e,{getPrefixCls:w,direction:S,className:E,style:k,classNames:N,styles:I}=xe("statistic"),M=w("statistic",n),[P,R]=DX(M),O={...e,decimalSeparator:g,groupSeparator:b,loading:m,value:s},[z,A]=Ca([N,C],[I,$],{props:O});const T=r.createElement(HX,{decimalSeparator:g,groupSeparator:b,prefixCls:M,formatter:f,precision:h,value:s}),B=re(M,{[`${M}-rtl`]:"rtl"===S},E,o,i,z.root,P,R),H=re(`${M}-header`,z.header),D=re(`${M}-title`,z.title),L=re(`${M}-content`,z.content),j=re(`${M}-content-prefix`,z.prefix),F=re(`${M}-content-suffix`,z.suffix),W=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:W.current}));const _=fa(x,{aria:!0,data:!0});return r.createElement("div",{..._,className:B,style:{...A.root,...k,...a},ref:W,onMouseEnter:v,onMouseLeave:y},c&&r.createElement("div",{className:H,style:A.header},r.createElement("div",{className:D,style:A.title},c)),r.createElement(zf,{paragraph:!1,loading:m,className:`${M}-skeleton`,active:!0},r.createElement("div",{className:L,style:{...l,...A.content}},d&&r.createElement("span",{className:j,style:A.prefix},d),u?u(T):T,p&&r.createElement("span",{className:F,style:A.suffix},p))))});const jX=LX,FX=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function WX(e,t,n){const{format:r=""}=t,o=new Date(e).getTime(),i=Date.now();return function(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map(e=>e.slice(1,-1)),i=t.replace(r,"[]"),a=FX.reduce((e,t)=>{let[r,o]=t;if(e.includes(r)){const t=Math.floor(n/o);return n-=t*o,e.replace(new RegExp(`${r}+`,"g"),e=>{const n=e.length;return t.toString().padStart(n,"0")})}return e},i);let l=0;return a.replace(r,()=>{const e=o[l];return l+=1,e})}(n?Math.max(o-i,0):Math.max(i-o,0),r)}const _X=1e3/60;const VX=e=>{const{value:t,format:n="HH:mm:ss",onChange:o,onFinish:i,type:a,...l}=e,s="countdown"===a,[c,u]=r.useState(null),d=A(()=>{const e=Date.now(),n=function(e){return new Date(e).getTime()}(t);u({});const r=s?n-e:e-n;return o?.(r),!(s&&n<e)||(i?.(),!1)});r.useEffect(()=>{let e;const t=()=>{d()||window.clearInterval(e)};return e=window.setInterval(t,_X),()=>{window.clearInterval(e)}},[t,s]),r.useEffect(()=>{u({})},[]);return r.createElement(jX,{...l,value:t,valueRender:e=>Ml(e,{title:void 0}),formatter:(e,t)=>c?WX(e,{...t,format:n},s):"-"})},XX=r.memo(e=>r.createElement(VX,{...e,type:"countdown"}));jX.Timer=VX,jX.Countdown=XX;const KX=jX;function qX(e){const{prefixCls:t,className:n,style:o,status:i}=e,a=`${t}-rail`;return r.createElement("div",{className:re(a,`${a}-${i}`,n),style:o})}const GX=r.createContext({}),YX=r.createContext(null);function UX(){return UX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UX.apply(this,arguments)}const QX=r.createContext({}),ZX=r.forwardRef((e,t)=>{const{className:n,style:o,children:i,...a}=e,{prefixCls:l,classNames:s,styles:c}=r.useContext(YX),{className:u,style:d}=r.useContext(QX),p=`${l}-item`;return r.createElement("div",UX({},fa(a,!1),{ref:t,className:re(`${p}-icon`,s.itemIcon,u,n),style:{...c.itemIcon,...d,...o}}),i)}),JX=ZX;function eK(){return eK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eK.apply(this,arguments)}function tK(e){return void 0!==e&&null!==e}function nK(e){const{prefixCls:t,classNames:n,styles:o,data:i,last:a,nextStatus:l,active:s,index:c,itemRender:u,iconRender:d,itemWrapperRender:p,onClick:m}=e,f=`${t}-item`,{railFollowPrevStatus:h}=r.useContext(GX),{ItemComponent:g}=r.useContext(YX),{onClick:b,title:v,subTitle:y,content:$,description:C,disabled:x,icon:w,status:S,className:E,style:k,classNames:N={},styles:I={},...M}=i,P=$??C,R={item:{...i,content:P},index:c,active:s},O={};!(!m&&!b)&&!x&&(O.role="button",O.tabIndex=0,O.onClick=e=>{b?.(e),m(c)},O.onKeyDown=e=>{const{which:t}=e;t!==ul.ENTER&&t!==ul.SPACE||m(c)});const z=S||"wait",A=tK(v),T=tK(y),B=re(f,`${f}-${z}`,{[`${f}-custom`]:w,[`${f}-active`]:s,[`${f}-disabled`]:!0===x,[`${f}-empty-header`]:!A&&!T},E,n.item,N.root);let H=r.createElement(JX,null);d&&(H=d(H,{...R,components:{Icon:JX}}));const D=r.createElement("div",{className:re(`${f}-wrapper`,n.itemWrapper,N.wrapper),style:{...o.itemWrapper,...I.wrapper}},r.createElement(QX.Provider,{value:{className:N.icon,style:I.icon}},H),r.createElement("div",{className:re(`${f}-section`,n.itemSection,N.section),style:{...o.itemSection,...I.section}},r.createElement("div",{className:re(`${f}-header`,n.itemHeader,N.header),style:{...o.itemHeader,...I.header}},A&&r.createElement("div",{className:re(`${f}-title`,n.itemTitle,N.title),style:{...o.itemTitle,...I.title}},v),T&&r.createElement("div",{title:"string"===typeof y?y:void 0,className:re(`${f}-subtitle`,n.itemSubtitle,N.subtitle),style:{...o.itemSubtitle,...I.subtitle}},y),!a&&r.createElement(qX,{prefixCls:f,className:re(n.itemRail,N.rail),style:{...o.itemRail,...I.rail},status:h?S:l})),tK(P)&&r.createElement("div",{className:re(`${f}-content`,n.itemContent,N.content),style:{...o.itemContent,...I.content}},P)));let L=r.createElement(g,eK({},M,O,{className:B,style:{...o.item,...I.root,...k}}),p?p(D):D);return u&&(L=u(L,R)||null),L}function rK(){return rK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rK.apply(this,arguments)}const oK={};const iK=function(e){const{prefixCls:t="rc-steps",style:n,className:o,classNames:i=oK,styles:a=oK,rootClassName:l,orientation:s,titlePlacement:c,components:u,status:d="process",current:p=0,initial:m=0,onChange:f,items:h,iconRender:g,itemRender:b,itemWrapperRender:v,...y}=e,$="vertical"===s,C=re(t,`${t}-${$?"vertical":"horizontal"}`,`${t}-title-${$||"vertical"!==c?"horizontal":"vertical"}`,l,o,i.root),x=r.useMemo(()=>(h||[]).filter(Boolean),[h]),w=r.useMemo(()=>x.map((e,t)=>{let{status:n}=e;const r=m+t;return n||(r===p?d:r<p?"finish":"wait")}),[x,d,p,m]),S=e=>{f&&p!==e&&f(e)},{root:E="div",item:k="div"}=u||{},N=r.useMemo(()=>({prefixCls:t,classNames:i,styles:a,ItemComponent:k}),[t,i,a,k]);return r.createElement(E,rK({className:C,style:{...n,...a?.root}},y),r.createElement(YX.Provider,{value:N},x.map((e,n)=>{const o=m+n,l=w[n],s=w[n+1],c={...e,status:l};return r.createElement(nK,{key:o,prefixCls:t,classNames:i,styles:a,data:c,nextStatus:s,active:o===p,index:o,last:x.length-1===n,iconRender:g,itemRender:b,itemWrapperRender:v,onClick:f&&S})})))},aK=r.createContext(null),lK=e=>{const{prefixCls:t}=e;return r.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},r.createElement("title",null,"Arrow"),r.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},sK=e=>{const{prefixCls:t,rootPrefixCls:n,children:o,percent:i}=e,a=`${t}-item-progress-icon`,l=`${a}-circle`,[,s]=Do(n,"cmp-steps"),c=`calc(${s("progress-radius")} * 2 * ${Math.PI*i/100}) 9999`;return r.createElement(r.Fragment,null,r.createElement("svg",{className:`${a}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":i},r.createElement("title",null,"Progress"),r.createElement("circle",{className:re(l,`${l}-rail`)}),r.createElement("circle",{className:re(l,`${l}-ptg`),strokeDasharray:c,transform:"rotate(-90 50 50)"})),o)},cK=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-item`,[o,i]=Do(n,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${r}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${r}-rail`]:{[o("horizontal-rail-margin")]:`calc(${i("icon-size-max")} / 2 + ${i("item-wrapper-padding-top")})`,position:"static",marginTop:i("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:i("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start",transform:"translateY(-50%)"}}}}},uK=e=>{const{componentCls:t,customIconFontSize:n,motionDurationSlow:r,iconSize:o,lineWidth:i,lineType:a,antCls:l}=e,s=`${t}-item`,[c,u]=Do(l,"cmp-steps");return{[t]:{[c("icon-size")]:o,[c("icon-border-width")]:i,[`${s}-icon`]:{width:u("icon-size"),height:u("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:u("icon-size"),textAlign:"center",borderRadius:u("icon-size"),border:`${u("icon-border-width")} ${a} transparent`,transition:["background-color","border","color","inset","transform"].map(e=>`${e} ${r}`).join(", "),zIndex:1},[`${s}-custom ${s}-icon`]:{background:"none",border:0,fontSize:n}}}},dK=e=>{const{componentCls:t,inlineDotSize:n,paddingXS:r,lineWidth:o,antCls:i,calc:a}=e,l=a(r).add(o).equal(),s=`${t}-item`,[c,u]=Do(i,"cmp-steps");return{[`${t}-inline`]:{[c("items-offset")]:"0",[c("item-wrapper-padding-top")]:l,display:"inline-flex","&:before":{content:'""',flex:u("items-offset")},[s]:{[c("title-vertical-row-gap")]:r,[c("icon-size")]:n,[c("icon-size-active")]:n,[c("title-font-size")]:e.fontSizeSM,[c("title-line-height")]:e.lineHeightSM,[c("item-title-color")]:e.colorTextSecondary,[c("subtitle-font-size")]:e.fontSizeSM,[c("subtitle-line-height")]:e.lineHeightSM,[c("item-subtitle-color")]:e.colorTextQuaternary,[c("rail-size")]:e.lineWidth,[c("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${s}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};const pK=(e,t,n)=>{const{calc:r,componentCls:o,descriptionMaxWidth:i,antCls:a}=e,l=`${o}-item`,[,s]=Do(a,"cmp-steps");return{[`@container style(${c=i,(c||"--ant-not-exist").replace(/var\((.*)\)/,"$1")})`]:[{[`${l}-icon`]:{marginInlineStart:r(i).sub(s("icon-size")).div(2).equal()},[`${l}-rail`]:{width:"auto",insetInlineStart:r(i).add(s("icon-size")).div(2).add(t).equal(),insetInlineEnd:r(i).sub(s("icon-size")).div(2).sub(t).mul(-1).equal()}},n]};var c},mK=e=>{const{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:o,margin:i,paddingSM:a,marginXXS:l,antCls:s,calc:c}=e,u=`${t}-item`,[d,p]=Do(s,"cmp-steps");return{[t]:{[d("icon-size-max")]:`max(${p("icon-size")}, ${p("icon-size-active",p("icon-size"))})`,[`${u}-icon`]:{marginBlockStart:`calc((${p("heading-height")} - ${p("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[d("title-horizontal-item-margin")]:i,[d("title-horizontal-rail-margin")]:i,[d("title-horizontal-title-height")]:o,[d("heading-height")]:`max(${p("icon-size")}, ${p("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${u}:not(:first-child)`]:{marginInlineStart:p("title-horizontal-item-margin")},[`${u}:last-child`]:{flex:"0 1 auto"},[`${u}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${u}-wrapper`]:{columnGap:e.margin},[`${u}-empty-header`]:{[`${u}-header`]:{minHeight:"auto"},[`${u}-content`]:{marginTop:c(p("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${u}-section`]:{flex:1,minWidth:0},[`${u}-header`]:{minHeight:p("heading-height")},[`${u}-title`]:{flex:"0 1 auto"},[`${u}-content`]:{maxWidth:n},[`${u}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${u}-rail`]:{[d("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:p("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[d("title-vertical-row-gap")]:a,[d("title-horizontal-rail-gap")]:l,[d("heading-height")]:p("icon-size-max"),[`> ${u}`]:{flex:"1 1 0%",[`${u}-wrapper`]:{flexDirection:"column",rowGap:p("title-vertical-row-gap"),alignItems:"center"},[`${u}-section`]:{alignSelf:"stretch"},[`${u}-header`]:{flexDirection:"column",alignItems:"center"},[`${u}-title, ${u}-subtitle, ${u}-content`]:{textAlign:"center",maxWidth:"100%"},[`${u}-subtitle`]:{margin:0},[`${u}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${p("icon-size")} - ${p("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${p("icon-size")} / 2 + ${p("title-horizontal-rail-gap")})`}},...pK(e,r,{[`${u}:last-child`]:{flex:"none"},[`${u}-icon`]:{alignSelf:"flex-start"},[`${u}-section`]:{width:n}})}}},fK=e=>{const{componentCls:t,fontSizeIcon:n,navContentMaxWidth:r,navArrowColor:o,colorPrimary:i,motionDurationSlow:a,antCls:l,calc:s}=e,c=`${t}-item`,u=i,[d,p]=Do(l,"cmp-steps");return{[`${t}${t}-navigation`]:{[c.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${c}-wrapper`]:{paddingBlock:e.paddingSM},[`${c}-section`]:{maxWidth:r},[`${c}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:u,transition:`all ${a}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${lt(e.lineWidth)} ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${lt(e.lineWidth)} ${e.lineType} ${o}`,content:'""'},[`&${c}-active`]:{[d("item-content-active-color")]:p("item-content-color"),[d("item-icon-active-bg-color")]:p("item-icon-bg-color"),[d("item-icon-active-border-color")]:p("item-icon-border-color"),[d("item-icon-active-text-color")]:p("item-icon-text-color")}},[`&${t}-horizontal`]:{[c]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${c}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:s(n).div(2).mul(-1).add("100%").equal(),width:n,height:n,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[c.repeat(4)]:{[`${c}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${c}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:s(n).div(3).mul(2).equal(),height:s(n).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},hK=e=>{const{componentCls:t,lineWidthBold:n,borderRadius:r,borderRadiusSM:o,motionDurationMid:i,paddingXS:a,lineType:l,paddingSM:s,antCls:c,calc:u}=e,d=`${t}-item`,[p,m]=Do(c,"cmp-steps"),f=`${lt(n)} ${l} ${m("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{[p("panel-padding")]:s,[p("item-border-radius")]:r,[d]:{[p("panel-bg-color")]:m("item-icon-bg-color"),[p("panel-border-color")]:m("item-icon-border-color"),[p("panel-active-bg-color")]:m("item-icon-active-bg-color"),[p("panel-active-border-color")]:m("item-icon-active-border-color"),[p("panel-title-height")]:`calc(${m("title-font-size")} * ${m("title-line-height")})`,[p("item-base-height")]:u(m("panel-padding")).mul(2).add(m("icon-size")).add(m("panel-title-height")).equal(),[p("item-base-width")]:`calc(${m("item-base-height")} * 0.7071)`,transition:`background-color ${i}`}},[`${d}-icon`]:{display:"none"},[`${d}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:u(n).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:u(n).mul(2).add("100%").equal(),width:m("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:m("panel-bg-color"),stroke:m("panel-border-color"),strokeWidth:n,vectorEffect:"non-scaling-stroke",transition:`fill ${i}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:"none"},[d]:{padding:m("panel-padding"),background:m("panel-bg-color"),position:"relative",borderBlock:f,"&:not(:first-child)":{paddingInlineStart:`calc(${m("panel-padding")} + ${m("item-base-width")})`},"&:first-child":{borderInlineStart:f,borderStartStartRadius:m("item-border-radius"),borderEndStartRadius:m("item-border-radius")},"&:last-child":{borderInlineEnd:f,borderStartEndRadius:m("item-border-radius"),borderEndEndRadius:m("item-border-radius")},"&-active":{background:m("panel-active-bg-color"),borderColor:m("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:m("panel-active-bg-color"),stroke:m("panel-active-border-color")}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:m("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[p("panel-padding")]:a,[p("item-border-radius")]:o}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${[`${lt(n)} 0`,`calc(100% + ${m("item-base-width")}) 0`,`calc(100% + ${m("item-base-width")}) 100%`,`${lt(n)} 100%`,`calc(${m("item-base-width")} + ${lt(n)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:u(n).div(2).mul(-1).equal(),height:u(n).add("100%").equal()}}}]}},gK=e=>{const{calc:t,antCls:n,componentCls:r,lineWidthBold:o,motionDurationSlow:i}=e,a=`${r}-item`,[l,s]=Do(n,"cmp-steps"),c=t(o).add(o).equal();return{[`${r}${r}-with-progress`]:{[l("item-wrapper-padding-top")]:c,[`${a}${a}-process`]:{[`${a}-icon`]:{position:"relative"}},[`${a}-progress-icon`]:{"&-svg":{[l("svg-size")]:t(c).mul(2).add(s("icon-size")).equal(),[l("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${s("svg-size")}, 1px)))`,fontSize:s("svg-size"),lineHeight:s("icon-size-ptg-unitless"),position:"absolute",inset:t(c).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:s("icon-size-ptg-unitless"),strokeWidth:t(s("icon-size-ptg-unitless")).mul(o).equal(),[l("progress-radius")]:t(s("svg-size")).sub(o).mul(s("icon-size-ptg-unitless")).div(2).equal(),r:s("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${i} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},bK=e=>{const{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:o,marginXXS:i,lineWidthBold:a,fontSizeSM:l,antCls:s}=e,c=`${t}-item`,[u,d]=Do(s,"cmp-steps");return{[`${t}${t}-dot`]:{[u("icon-size-active")]:o,[u("icon-size")]:r,[u("dot-icon-size")]:r,[u("dot-icon-border-width")]:a,[u("rail-size")]:a,[u("icon-border-width")]:a,[`${c}-custom ${c}-icon`]:{fontSize:l},[`${c}-icon`]:{position:"relative","&:after":{content:'""',width:n,height:n,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${c}-active ${c}-icon`]:{[u("icon-size")]:d("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:pK(e,i)}}}},vK=e=>{const{componentCls:t,lineWidthBold:n,antCls:r}=e,o=`${t}-item`,[,i]=Do(r,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${o}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[o]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${i("item-base-width")}) 0px`,`calc(100% - ${lt(n)}) 0px`,`calc(100% - ${i("item-base-width")} - ${lt(n)}) 50%`,`calc(100% - ${lt(n)}) 100%`,`calc(0px - ${i("item-base-width")}) 100%`].join(",")})`}}}}}}},yK=e=>{const{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:o,marginXS:i,fontHeight:a,marginSM:l,paddingXS:s,antCls:c}=e,[u]=Do(c,"cmp-steps");return{[`${t}${t}-small`]:{[u("icon-size")]:n,[u("title-horizontal-item-margin")]:l,[u("title-vertical-row-gap")]:s,[u("title-font-size")]:r,[u("title-line-height")]:o,[u("title-horizontal-rail-margin")]:i,[u("title-horizontal-title-height")]:a,[`&${t}-horizontal${t}-title-vertical`]:pK(e,i)}}},$K="wait",CK="process",xK="finish",wK="error",SK=e=>{const{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:o,colorTextLabel:i,colorError:a,colorErrorHover:l,colorErrorBgFilledHover:s,colorFillTertiary:c,colorErrorBg:u,colorPrimaryBgHover:d,colorPrimaryBg:p,colorText:m,colorTextDescription:f,colorBgContainer:h,colorPrimaryHover:g,lineType:b,antCls:v}=e,y=`${t}-item`,[$,C]=Do(v,"cmp-steps");return{[t]:[{[y]:{[$("item-solid-line-color")]:"#000",[$("item-title-color")]:"#000",[$("item-content-color")]:"#000",[$("item-subtitle-color")]:C("item-content-color"),[$("item-icon-custom-color")]:"#000",[$("item-icon-bg-color")]:"#000",[$("item-icon-border-color")]:"#000",[$("item-icon-text-color")]:"#fff",[$("item-icon-dot-color")]:"#000",[$("item-icon-dot-bg-color")]:C("item-icon-dot-color"),[$("item-icon-dot-border-color")]:C("item-icon-dot-color"),[$("item-text-hover-color")]:"#000",[$("item-icon-bg-hover-color")]:C("item-icon-bg-color"),[$("item-icon-border-hover-color")]:C("item-icon-border-color"),[$("item-icon-text-hover-color")]:C("item-icon-text-color"),[$("item-content-active-color")]:C("item-content-color"),[$("item-icon-active-bg-color")]:C("item-icon-bg-color"),[$("item-icon-active-border-color")]:C("item-icon-border-color"),[$("item-icon-active-text-color")]:C("item-icon-text-color"),[$("item-process-rail-line-style")]:b},[`${y}-rail`]:{borderColor:C("item-solid-line-color")},[`${y}-custom ${y}-icon`]:{color:C("item-icon-custom-color")},[`${y}-title`]:{color:C("item-title-color")},[`${y}-subtitle`]:{color:C("item-subtitle-color")},[`${y}-content`]:{color:C("item-content-color")},[`${y}-active ${y}-icon`]:{},[`${y}-active ${y}-content`]:{color:C("item-content-active-color")},[`${y}[role='button']:not(${y}-active):hover`]:{[`${y}-title, ${y}-content`]:{color:C("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${y}:not(${y}-custom)`]:{[`${y}-icon`]:{background:C("item-icon-bg-color"),borderColor:C("item-icon-border-color"),color:C("item-icon-text-color")},[`&[role='button']:not(${y}-active):hover`]:{[`${y}-icon`]:{background:C("item-icon-bg-hover-color"),borderColor:C("item-icon-border-hover-color"),color:C("item-icon-text-hover-color")}},[`&${y}-active`]:{[`${y}-icon`]:{background:C("item-icon-active-bg-color"),borderColor:C("item-icon-active-border-color"),color:C("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${y}-icon`]:{background:C("item-icon-dot-bg-color"),borderColor:C("item-icon-dot-border-color"),color:C("item-icon-dot-color"),[`&${y}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${y}-${$K}`]:{[$("item-icon-custom-color")]:n,[$("item-title-color")]:f,[$("item-content-color")]:f,[$("item-content-active-color")]:m,[$("item-text-hover-color")]:g},[`${y}-rail-${$K}`]:{[$("item-solid-line-color")]:n},[`${y}-${CK}`]:{[$("item-icon-custom-color")]:o,[$("item-title-color")]:m,[$("item-content-color")]:f,[$("item-content-active-color")]:m,[$("item-text-hover-color")]:g},[`${y}-rail-${CK}`]:{[$("item-solid-line-color")]:o,[$("rail-line-style")]:C("item-process-rail-line-style")},[`${y}-${xK}`]:{[$("item-icon-custom-color")]:o,[$("item-title-color")]:m,[$("item-content-color")]:f,[$("item-content-active-color")]:m,[$("item-text-hover-color")]:g},[`${y}-rail-${xK}`]:{[$("item-solid-line-color")]:o},[`${y}-${wK}`]:{[$("item-icon-custom-color")]:a,[$("item-title-color")]:a,[$("item-content-color")]:a,[$("item-content-active-color")]:a,[$("item-text-hover-color")]:l},[`${y}-rail-${wK}`]:{[$("item-solid-line-color")]:a}},{[`&${t}-filled`]:{[y]:{[$("item-icon-dot-border-color")]:"transparent"},[`${y}-${$K}`]:{[$("item-icon-bg-color")]:c,[$("item-icon-border-color")]:"transparent",[$("item-icon-text-color")]:i,[$("item-icon-dot-bg-color")]:n,[$("item-icon-bg-hover-color")]:d,[$("item-icon-border-hover-color")]:"transparent",[$("item-icon-text-hover-color")]:o,[$("item-icon-active-bg-color")]:o,[$("item-icon-active-border-color")]:"transparent",[$("item-icon-active-text-color")]:r},[`${y}-${CK}, ${y}-${xK}`]:{[$("item-icon-bg-color")]:p,[$("item-icon-border-color")]:"transparent",[$("item-icon-text-color")]:o,[$("item-icon-dot-bg-color")]:o,[$("item-icon-bg-hover-color")]:d,[$("item-icon-border-hover-color")]:"transparent",[$("item-icon-text-hover-color")]:o,[$("item-icon-active-bg-color")]:o,[$("item-icon-active-border-color")]:"transparent",[$("item-icon-active-text-color")]:r},[`${y}-${wK}`]:{[$("item-icon-bg-color")]:u,[$("item-icon-border-color")]:"transparent",[$("item-icon-text-color")]:a,[$("item-icon-dot-bg-color")]:a,[$("item-icon-bg-hover-color")]:s,[$("item-icon-border-hover-color")]:"transparent",[$("item-icon-text-hover-color")]:a,[$("item-icon-active-bg-color")]:a,[$("item-icon-active-border-color")]:"transparent",[$("item-icon-active-text-color")]:r}}},{[`&${t}-outlined`]:{[y]:{[$("item-icon-dot-bg-color")]:"transparent"},[`${y}-${$K}`]:{[$("item-icon-bg-color")]:h,[$("item-icon-border-color")]:n,[$("item-icon-text-color")]:n,[$("item-icon-dot-color")]:n,[$("item-icon-bg-hover-color")]:"transparent",[$("item-icon-border-hover-color")]:g,[$("item-icon-text-hover-color")]:g,[$("item-icon-active-bg-color")]:c},[`${y}-${CK}, ${y}-${xK}`]:{[$("item-icon-bg-color")]:h,[$("item-icon-border-color")]:o,[$("item-icon-text-color")]:o,[$("item-icon-dot-color")]:o,[$("item-icon-bg-hover-color")]:"transparent",[$("item-icon-border-hover-color")]:g,[$("item-icon-text-hover-color")]:g,[$("item-icon-active-bg-color")]:p},[`${y}-${wK}`]:{[$("item-icon-bg-color")]:h,[$("item-icon-border-color")]:a,[$("item-icon-text-color")]:a,[$("item-icon-dot-color")]:a,[$("item-icon-bg-hover-color")]:"transparent",[$("item-icon-border-hover-color")]:l,[$("item-icon-text-hover-color")]:l,[$("item-icon-active-bg-color")]:u}}}]}},EK=e=>{const{componentCls:t,marginXXS:n,paddingSM:r,controlHeight:o,antCls:i,calc:a}=e,l=`${t}-item`,[s,c]=Do(i,"cmp-steps");return{[`${t}-vertical`]:{[s("vertical-rail-margin")]:a(n).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${l}`]:{minHeight:a(o).mul(1.5).equal(),paddingBottom:r,"&:last-child":{paddingBottom:0},[`${l}-icon`]:{marginInlineStart:`calc((${c("icon-size-max")} - ${c("icon-size")}) / 2)`},[`${l}-rail`]:{[s("rail-offset")]:a(c("heading-height")).sub(c("icon-size")).div(2).equal(),borderInlineStartWidth:c("rail-size"),position:"absolute",top:a(c("icon-size")).add(c("item-wrapper-padding-top")).add(c("rail-offset")).add(c("vertical-rail-margin")).equal(),insetInlineStart:a(c("icon-size-max")).div(2).equal(),bottom:a(c("vertical-rail-margin")).sub(c("rail-offset")).equal(),marginInlineStart:`calc(${c("rail-size")} / -2)`}}}}},kK=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-item`,[o,i]=Do(n,"cmp-steps");return{[t]:{[o("title-font-size")]:e.fontSizeLG,[o("title-line-height")]:e.lineHeightLG,[o("subtitle-font-size")]:e.fontSize,[o("subtitle-line-height")]:e.lineHeight,[o("item-wrapper-padding-top")]:"0px",[o("rail-size")]:e.lineWidth,[o("rail-line-style")]:e.lineType,...br(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[r]:{flex:"none",position:"relative"},[`${r}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:i("item-wrapper-padding-top")},[`${r}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${r}-title`]:{color:e.colorText,fontSize:i("title-font-size"),lineHeight:i("title-line-height"),wordBreak:"break-word"},[`${r}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:i("subtitle-font-size"),lineHeight:i("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${r}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${r}-rail`]:{borderStyle:i("rail-line-style"),borderWidth:0},[`${r}-title, ${r}-subtitle, ${r}-content, ${r}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${r}-title, ${r}-subtitle, ${r}-content`]:gr},[`${r}[role='button']:not(${r}-active):hover`]:{cursor:"pointer"}}}},NK=To("Steps",e=>{const t=ir(e,{inlineDotSize:6});return[kK(t),uK(t),EK(t),cK(t),mK(t),yK(t),bK(t),SK(t),fK(t),hK(t),dK(t),gK(t),vK(t)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive})),IK={itemIcon:Qc};const MK=e=>{const{size:t,className:n,rootClassName:o,style:i,variant:a="filled",type:l,classNames:s,styles:c,direction:u,orientation:d,responsive:p=!0,progressDot:m,labelPlacement:f,titlePlacement:h,ellipsis:g,offset:b=0,items:v,percent:y,current:$=0,onChange:C,iconRender:x,...w}=e,S=r.useContext(aK),E=xe("steps"),{getPrefixCls:k,direction:N,className:I,style:M}=E;let P,R,O={};S?O={root:S.rootComponent,item:S.itemComponent}:({classNames:P,styles:R}=E);const z=k(),A=k("steps",e.prefixCls),T=`${A}-item-icon`,[B,H]=NK(A),[D]=Do(z,"cmp-steps");const L=ou(t),j=r.useMemo(()=>(v||[]).filter(Boolean),[v]),{xs:F}=hy(p),W=r.useMemo(()=>l&&"default"!==l?l:m?"dot":l,[m,l]),_="inline"===W,V="dot"===W||"inline"===W,X=r.useMemo(()=>"dot"===W&&"function"===typeof m?m:void 0,[W,m]),K=r.useMemo(()=>"panel"===W?"horizontal":p&&F||"vertical"===(d||u)?"vertical":"horizontal",[d,u,W,p,F]),q=r.useMemo(()=>V||"vertical"===K?"vertical"===K?"horizontal":"vertical":"navigation"===l?"horizontal":h||f||"horizontal",[V,f,K,h,l]),G=_?void 0:y,Y={...e,variant:a,size:L,type:W,orientation:K,titlePlacement:q,current:$,percent:G,responsive:p,offset:b},[U,Q]=Ca([IK,P,s],[R,c],{props:Y}),Z="panel"===W?e=>r.createElement(r.Fragment,null,e,r.createElement(lK,{prefixCls:A})):void 0,J={[D("items-offset")]:`${b}`,...M,...i},ee=re(I,`${A}-${a}`,{[`${A}-${W}`]:"dot"!==W&&W,[`${A}-rtl`]:"rtl"===N,[`${A}-dot`]:V,[`${A}-ellipsis`]:g,[`${A}-with-progress`]:void 0!==G,[`${A}-small`]:"small"===L},n,o,B,H);return r.createElement(iK,{...w,prefixCls:A,className:ee,style:J,classNames:U,styles:Q,orientation:K,titlePlacement:q,components:O,current:$,items:j,onChange:C,iconRender:(e,t)=>{const{item:n,index:o,active:i,components:{Icon:a}}=t,{status:l,icon:s}=n;let c=null;if(V||s)c=s;else switch(l){case"finish":c=r.createElement(Wv,{className:`${T}-finish`});break;case"error":c=r.createElement(gi,{className:`${T}-error`});break;default:{let e=r.createElement("span",{className:`${T}-number`},t.index+1);"process"===l&&void 0!==G&&(e=r.createElement(sK,{prefixCls:A,rootPrefixCls:z,percent:G},e)),c=e}}let u=r.createElement(a,null,c);return x?u=x(u,{index:o,active:i,item:n,components:{Icon:a}}):"function"===typeof X&&(u=X(u,{index:o,...n})),u},itemRender:(e,t)=>{let n=e;return _&&t.item.content&&(n=r.createElement(Jy,{destroyOnHidden:!0,title:t.item.content},e)),r.createElement(ru,{component:"Steps",disabled:t.item.disabled||!C,colorSource:"filled"===a?"color":null},n)},itemWrapperRender:Z})};function PK(){return PK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PK.apply(this,arguments)}const RK=r.forwardRef((e,t)=>{let{prefixCls:n="rc-switch",className:o,checked:i,defaultChecked:a,disabled:l,loadingIcon:s,checkedChildren:c,unCheckedChildren:u,onClick:d,onChange:p,onKeyDown:m,styles:f,classNames:h,...g}=e;const[b,v]=F(a??!1,i);function y(e,t){let n=b;return l||(n=e,v(n),p?.(n,t)),n}const $=re(n,o,{[`${n}-checked`]:b,[`${n}-disabled`]:l});return r.createElement("button",PK({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:$,ref:t,onKeyDown:function(e){e.which===ul.LEFT?y(!1,e):e.which===ul.RIGHT&&y(!0,e),m?.(e)},onClick:function(e){const t=y(!b,e);d?.(t,e)}}),s,r.createElement("span",{className:`${n}-inner`},r.createElement("span",{className:re(`${n}-inner-checked`,h?.content),style:f?.content},c),r.createElement("span",{className:re(`${n}-inner-unchecked`,h?.content),style:f?.content},u)))});RK.displayName="Switch";const OK=RK,zK=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,u=lt(s(l).add(s(r).mul(2)).equal()),d=lt(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:lt(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${lt(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},AK=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},TK=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""',"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${lt(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},BK=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,switchDuration:l,calc:s}=e,c=`${t}-inner`,u=lt(s(a).add(s(r).mul(2)).equal()),d=lt(s(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:["padding-inline-start","padding-inline-end"].map(e=>`${e} ${l} ease-in-out`).join(", "),"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:n,transition:["margin-inline-start","margin-inline-end"].map(e=>`${e} ${l} ease-in-out`).join(", "),"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},HK=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...br(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:lt(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none","@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...yr(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},DK=To("Switch",e=>{const t=ir(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[HK(t),BK(t),TK(t),AK(t),zK(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,s=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*s+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:s,handleShadow:`0 2px 4px 0 ${new Or("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:s/2,innerMaxMarginSM:s+2+4}}),LK=r.forwardRef((e,t)=>{const{prefixCls:n,size:o,disabled:i,loading:a,className:l,rootClassName:s,style:c,checked:u,value:d,defaultChecked:p,defaultValue:m,onChange:f,styles:h,classNames:g,...b}=e,[v,y]=F(p??m??!1,u??d),{getPrefixCls:$,direction:C,className:x,style:w,classNames:S,styles:E}=xe("switch"),k=r.useContext($c),N=(i??k)||a,I=$("switch",n),[M,P]=DK(I);const R=ou(o),O={...e,size:R,disabled:N},[z,A]=Ca([S,g],[E,h],{props:O}),T=r.createElement("div",{className:re(`${I}-handle`,z.indicator),style:A.indicator},a&&r.createElement(kl,{className:`${I}-loading-icon`})),B=re(x,{[`${I}-small`]:"small"===R,[`${I}-loading`]:a,[`${I}-rtl`]:"rtl"===C},l,s,z.root,M,P),H={...A.root,...w,...c};return r.createElement(ru,{component:"Switch",disabled:N},r.createElement(OK,{...b,classNames:z,styles:A,checked:v,onChange:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];y(t[0]),f?.(...t)},prefixCls:I,className:B,style:H,disabled:N,ref:t,loadingIcon:T}))}),jK=LK;jK.__ANT_SWITCH=!0;const FK=jK,WK={},_K="rc-table-internal-hook";function VK(e){const t=r.createContext(void 0);return{Context:t,Provider:e=>{let{value:n,children:o}=e;const i=r.useRef(n);i.current=n;const[a]=r.useState(()=>({getValue:()=>i.current,listeners:new Set}));return L(()=>{(0,sl.unstable_batchedUpdates)(()=>{a.listeners.forEach(e=>{e(n)})})},[n]),r.createElement(t.Provider,{value:a},o)},defaultValue:e}}function XK(e,t){const n=A("function"===typeof t?t:e=>{if(void 0===t)return e;if(!Array.isArray(t))return e[t];const n={};return t.forEach(t=>{n[t]=e[t]}),n}),o=r.useContext(e?.Context),{listeners:i,getValue:a}=o||{},l=r.useRef();l.current=n(o?a():e?.defaultValue);const[,s]=r.useState({});return L(()=>{if(o)return i.add(e),()=>{i.delete(e)};function e(e){const t=n(e);je(l.current,t,!0)||s({})}},[o]),l.current}function KK(){return KK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KK.apply(this,arguments)}function qK(){const e=r.createContext(null);function t(){return r.useContext(e)}return{makeImmutable:function(n,o){const i=E(n),a=(a,l)=>{const s=i?{ref:l}:{},c=r.useRef(0),u=r.useRef(a);return null!==t()?r.createElement(n,KK({},a,s)):(o&&!o(u.current,a)||(c.current+=1),u.current=a,r.createElement(e.Provider,{value:c.current},r.createElement(n,KK({},a,s))))};return i?r.forwardRef(a):a},responseImmutable:function(e,n){const o=E(e),i=(n,i)=>{const a=o?{ref:i}:{};return t(),r.createElement(e,KK({},n,a))};return r.memo(o?r.forwardRef(i):i,n)},useImmutableMark:t}}const{makeImmutable:GK,responseImmutable:YK,useImmutableMark:UK}=qK(),{makeImmutable:QK,responseImmutable:ZK,useImmutableMark:JK}=qK(),eq=VK();r.memo(()=>{const e=function(e,t){const n=r.useRef(0);n.current+=1;const o=r.useRef(e),i=[];Object.keys(e||{}).map(t=>{e?.[t]!==o.current?.[t]&&i.push(t)}),o.current=e;const a=r.useRef([]);return i.length&&(a.current=i),r.useDebugValue(n.current),r.useDebugValue(a.current.join(", ")),t&&console.log(`${t}:`,n.current,a.current),n.current}();return r.createElement("h1",null,"Render Times: ",e)});const tq=r.createContext({renderWithProps:!1});function nq(e){const t=[],n={};return e.forEach(e=>{const{key:r,dataIndex:o}=e||{};let i=r||(a=o,void 0===a||null===a?[]:Array.isArray(a)?a:[a]).join("-")||"RC_TABLE_KEY";for(var a;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)}),t}function rq(e){return null!==e&&void 0!==e}function oq(e,t,n,o,i,a){const l=r.useContext(tq),s=$(()=>{if(rq(o))return[o];const a=null===t||void 0===t||""===t?[]:Array.isArray(t)?t:[t],s=W(e,a);let c,u=s;if(i){const t=i(s,e,n);!(d=t)||"object"!==typeof d||Array.isArray(d)||r.isValidElement(d)?u=t:(u=t.children,c=t.props,l.renderWithProps=!0)}var d;return[u,c]},[JK(),e,o,t,i,n],(e,t)=>{if(a){const[,n]=e,[,r]=t;return a(r,n)}return!!l.renderWithProps||!je(e,t,!0)});return s}function iq(){return iq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iq.apply(this,arguments)}const aq=r.memo(e=>{const{component:t,children:n,ellipsis:o,scope:i,prefixCls:a,className:l,style:s,align:c,record:u,render:d,dataIndex:p,renderIndex:m,shouldCellUpdate:f,index:h,rowType:g,colSpan:b,rowSpan:v,fixStart:y,fixEnd:$,fixedStartShadow:C,fixedEndShadow:x,offsetFixedStartShadow:w,offsetFixedEndShadow:S,zIndex:E,zIndexReverse:k,appendNode:N,additionalProps:I={},isSticky:M}=e,P=`${a}-cell`,{allColumnsFixedLeft:R,rowHoverable:O}=XK(eq,["allColumnsFixedLeft","rowHoverable"]),[z,T]=oq(u,p,m,n,d,f),B={},H="number"===typeof y&&!R,D="number"===typeof $&&!R,[L,j]=XK(eq,e=>{let{scrollInfo:t}=e;if(!H&&!D)return[!1,!1];const[n,r]=t;return[(H&&C&&n)-w>=1,(D&&x&&r-n)-S>1]});H&&(B.insetInlineStart=y,B["--z-offset"]=E,B["--z-offset-reverse"]=k),D&&(B.insetInlineEnd=$,B["--z-offset"]=E,B["--z-offset-reverse"]=k);const F=T?.colSpan??I.colSpan??b??1,W=T?.rowSpan??I.rowSpan??v??1,[_,V]=function(e,t){return XK(eq,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]})}(h,W),X=A(e=>{u&&V(h,h+W-1),I?.onMouseEnter?.(e)}),K=A(e=>{u&&V(-1,-1),I?.onMouseLeave?.(e)});if(0===F||0===W)return null;const q=I.title??(e=>{let t,{ellipsis:n,rowType:o,children:i}=e;const a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===o)&&("string"===typeof i||"number"===typeof i?t=i.toString():r.isValidElement(i)&&"string"===typeof i.props?.children&&(t=i.props?.children)),t})({rowType:g,ellipsis:o,children:z}),G=re(P,l,{[`${P}-fix`]:H||D,[`${P}-fix-start`]:H,[`${P}-fix-end`]:D,[`${P}-fix-start-shadow`]:C,[`${P}-fix-start-shadow-show`]:C&&L,[`${P}-fix-end-shadow`]:x,[`${P}-fix-end-shadow-show`]:x&&j,[`${P}-ellipsis`]:o,[`${P}-with-append`]:N,[`${P}-fix-sticky`]:(H||D)&&M,[`${P}-row-hover`]:!T&&_},I.className,T?.className),Y={};c&&(Y.textAlign=c);const U={...T?.style,...B,...Y,...I.style,...s};let Q=z;return"object"!==typeof Q||Array.isArray(Q)||r.isValidElement(Q)||(Q=null),o&&(C||x)&&(Q=r.createElement("span",{className:`${P}-content`},Q)),r.createElement(t,iq({},T,I,{className:G,style:U,title:q,scope:i,onMouseEnter:O?X:void 0,onMouseLeave:O?K:void 0,colSpan:1!==F?F:null,rowSpan:1!==W?W:null}),N,Q)});function lq(e){return"start"===e.fixed}function sq(e){return"end"===e.fixed}function cq(e,t,n,r){const o=n[e]||{},i=n[t]||{};let a=null,l=null;lq(o)&&lq(i)?a=r.start[e]:sq(i)&&sq(o)&&(l=r.end[t]);let s=!1,c=!1,u=0,d=0;null!==a&&(s=!n[t+1]||!lq(n[t+1]),u=2*n.length-e,d=n.length+e),null!==l&&(c=!n[e-1]||!sq(n[e-1]),u=t,d=n.length-t);let p=0,m=0;if(s)for(let f=0;f<e;f+=1)lq(n[f])||(p+=r.widths[f]||0);if(c)for(let f=n.length-1;f>t;f-=1)sq(n[f])||(m+=r.widths[f]||0);return{fixStart:a,fixEnd:l,fixedStartShadow:s,fixedEndShadow:c,offsetFixedStartShadow:p,offsetFixedEndShadow:m,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}const uq=r.createContext({});function dq(){return dq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dq.apply(this,arguments)}const pq=e=>{const{className:t,index:n,children:o,colSpan:i=1,rowSpan:a,align:l}=e,{prefixCls:s}=XK(eq,["prefixCls"]),{scrollColumnIndex:c,stickyOffsets:u,flattenColumns:d}=r.useContext(uq),p=n+i-1+1===c?i+1:i,m=r.useMemo(()=>cq(n,n+p-1,d,u),[n,p,d,u]);return r.createElement(aq,dq({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:l,colSpan:p,rowSpan:a,render:()=>o},m))},mq=e=>{const{children:t}=e;return t};mq.Row=e=>{const{children:t,...n}=e;return r.createElement("tr",n,t)},mq.Cell=pq;const fq=mq,hq=ZK(e=>{const{children:t,stickyOffsets:n,flattenColumns:o}=e,i=XK(eq,"prefixCls"),a=o.length-1,l=o[a],s=r.useMemo(()=>({stickyOffsets:n,flattenColumns:o,scrollColumnIndex:l?.scrollbar?a:null}),[l,o,a,n]);return r.createElement(uq.Provider,{value:s},r.createElement("tfoot",{className:`${i}-summary`},t))}),gq=fq;function bq(e,t,n,r,o,i,a){const l=i(t,a);e.push({record:t,indent:n,index:a,rowKey:l});const s=o?.has(l);if(t&&Array.isArray(t[r])&&s)for(let c=0;c<t[r].length;c+=1)bq(e,t[r][c],n+1,r,o,i,c)}function vq(e,t,n,o){const i=r.useMemo(()=>{if(n?.size){const r=[];for(let i=0;i<e?.length;i+=1){bq(r,e[i],0,t,n,o,i)}return r}return e?.map((e,t)=>({record:e,indent:0,index:t,rowKey:o(e,t)}))},[e,t,n,o]);return i}function yq(e,t,n,r){const o=XK(eq,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),{flattenColumns:i,expandableType:a,expandedKeys:l,childrenColumnName:s,onTriggerExpand:c,rowExpandable:u,onRow:d,expandRowByClick:p,rowClassName:m}=o,f="nest"===a,h="row"===a&&(!u||u(e)),g=h||f,b=l&&l.has(t),v=s&&e&&e[s],y=A(c),$=d?.(e,n),C=$?.onClick;let x;"string"===typeof m?x=m:"function"===typeof m&&(x=m(e,n,r));const w=nq(i);return{...o,columnsKey:w,nestExpandable:f,expanded:b,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...$,className:re(x,$?.className),onClick:function(t){p&&g&&c(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];C?.(t,...r)}}}}const $q=e=>{const{prefixCls:t,children:n,component:o,cellComponent:i,className:a,expanded:l,colSpan:s,isEmpty:c,stickyOffset:u=0}=e,{scrollbarSize:d,fixHeader:p,fixColumn:m,componentWidth:f,horizonScroll:h}=XK(eq,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]);let g=n;return(c?h&&f:m)&&(g=r.createElement("div",{style:{width:f-u-(p&&!c?d:0),position:"sticky",left:u,overflow:"hidden"},className:`${t}-expanded-row-fixed`},g)),r.createElement(o,{className:a,style:{display:l?null:"none"}},r.createElement(aq,{component:i,prefixCls:t,colSpan:s},g))};function Cq(e){let{prefixCls:t,record:n,onExpand:o,expanded:i,expandable:a}=e;const l=`${t}-row-expand-icon`;if(!a)return r.createElement("span",{className:re(l,`${t}-row-spaced`)});return r.createElement("span",{className:re(l,{[`${t}-row-expanded`]:i,[`${t}-row-collapsed`]:!i}),onClick:e=>{o(n,e),e.stopPropagation()}})}function xq(e,t,n,r){return"string"===typeof e?e:"function"===typeof e?e(t,n,r):""}function wq(){return wq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wq.apply(this,arguments)}function Sq(e,t,n,o,i){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const{record:s,prefixCls:c,columnsKey:u,fixedInfoList:d,expandIconColumnIndex:p,nestExpandable:m,indentSize:f,expandIcon:h,expanded:g,hasNestChildren:b,onTriggerExpand:v,expandable:y,expandedKeys:$}=e,C=u[n],x=d[n];let w;n===(p||0)&&m&&(w=r.createElement(r.Fragment,null,r.createElement("span",{style:{paddingLeft:f*o+"px"},className:`${c}-row-indent indent-level-${o}`}),h({prefixCls:c,expanded:g,expandable:b,record:s,onExpand:v})));const S=t.onCell?.(s,i)||{};if(l){const{rowSpan:e=1}=S;if(y&&e&&n<l){let t=e;for(let n=i;n<i+e;n+=1){const e=a[n];$.has(e)&&(t+=1)}S.rowSpan=t}}return{key:C,fixedInfo:x,appendCellNode:w,additionalCellProps:S}}const Eq=ZK(e=>{const{className:t,style:n,classNames:o,styles:i,record:a,index:l,renderIndex:s,rowKey:c,rowKeys:u,indent:d=0,rowComponent:p,cellComponent:m,scopeCellComponent:f,expandedRowInfo:h}=e,g=yq(a,c,l,d),{prefixCls:b,flattenColumns:v,expandedRowClassName:y,expandedRowRender:$,rowProps:C,expanded:x,rowSupportExpand:w}=g,S=r.useRef(!1);S.current||=x;const E=xq(y,a,l,d),k=r.createElement(p,wq({},C,{"data-row-key":c,className:re(t,`${b}-row`,`${b}-row-level-${d}`,C?.className,o.row,{[E]:d>=1}),style:{...n,...C?.style,...i.row}}),v.map((e,t)=>{const{render:n,dataIndex:c,className:p}=e,{key:v,fixedInfo:y,appendCellNode:$,additionalCellProps:C}=Sq(g,e,t,d,l,u,h?.offset);return r.createElement(aq,wq({className:re(p,o.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:m,prefixCls:b,key:v,record:a,index:l,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},y,{appendNode:$,additionalProps:C}))}));let N;if(w&&(S.current||x)){const e=$(a,l,d+1,x);N=r.createElement($q,{expanded:x,className:re(`${b}-expanded-row`,`${b}-expanded-row-level-${d+1}`,E),prefixCls:b,component:p,cellComponent:m,colSpan:h?h.colSpan:v.length,isEmpty:!1,stickyOffset:h?.sticky},e)}return r.createElement(r.Fragment,null,k,N)}),kq=e=>{const{columnKey:t,onColumnResize:n,title:o}=e,i=r.useRef(null);return L(()=>{i.current&&n(t,i.current.offsetWidth)},[]),r.createElement(te,{data:t},r.createElement("td",{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},r.createElement("div",{style:{height:0,overflow:"hidden",fontWeight:"bold"}},o||"\xa0")))},Nq=e=>{let{prefixCls:t,columnsKey:n,onColumnResize:o,columns:i}=e;const a=r.useRef(null),{measureRowRender:l}=XK(eq,["measureRowRender"]),s=r.createElement("tr",{"aria-hidden":"true",className:`${t}-measure-row`,style:{height:0},ref:a},r.createElement(te.Collection,{onBatchResize:e=>{Ys(a.current)&&e.forEach(e=>{let{data:t,size:n}=e;o(t,n.offsetWidth)})}},n.map(e=>{const t=i.find(t=>t.key===e),n=t?.title,a=r.isValidElement(n)?r.cloneElement(n,{ref:null}):n;return r.createElement(kq,{key:e,columnKey:e,onColumnResize:o,title:a})})));return"function"===typeof l?l(s):s};const Iq=ZK(e=>{const{data:t,measureColumnWidth:n}=e,{prefixCls:o,getComponent:i,onColumnResize:a,flattenColumns:l,getRowKey:s,expandedKeys:c,childrenColumnName:u,emptyNode:d,classNames:p,styles:m,expandedRowOffset:f=0,colWidths:h}=XK(eq,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","classNames","styles","expandedRowOffset","fixedInfoList","colWidths"]),{body:g={}}=p||{},{body:b={}}=m||{},v=vq(t,u,c,s),y=r.useMemo(()=>v.map(e=>e.rowKey),[v]),$=r.useRef({renderWithProps:!1}),C=r.useMemo(()=>{const e=l.length-f;let t=0;for(let n=0;n<f;n+=1)t+=h[n]||0;return{offset:f,colSpan:e,sticky:t}},[l.length,f,h]),x=i(["body","wrapper"],"tbody"),w=i(["body","row"],"tr"),S=i(["body","cell"],"td"),E=i(["body","cell"],"th");let k;k=t.length?v.map((e,t)=>{const{record:n,indent:o,index:i,rowKey:a}=e;return r.createElement(Eq,{classNames:g,styles:b,key:a,rowKey:a,rowKeys:y,record:n,index:t,renderIndex:i,rowComponent:w,cellComponent:S,scopeCellComponent:E,indent:o,expandedRowInfo:C})}):r.createElement($q,{expanded:!0,className:`${o}-placeholder`,prefixCls:o,component:w,cellComponent:S,colSpan:l.length,isEmpty:!0},d);const N=nq(l);return r.createElement(tq.Provider,{value:$.current},r.createElement(x,{style:b.wrapper,className:re(`${o}-tbody`,g.wrapper)},n&&r.createElement(Nq,{prefixCls:o,columnsKey:N,onColumnResize:a,columns:l}),k))}),Mq="RC_TABLE_INTERNAL_COL_DEFINE";function Pq(){return Pq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pq.apply(this,arguments)}const Rq=e=>{const{colWidths:t,columns:n,columCount:o}=e,{tableLayout:i}=XK(eq,["tableLayout"]),a=[];let l=!1;for(let s=(o||n.length)-1;s>=0;s-=1){const e=t[s],o=n&&n[s];let c,u;if(o&&(c=o[Mq],"auto"===i&&(u=o.minWidth)),e||u||c||l){const{columnType:t,...n}=c||{};a.unshift(r.createElement("col",Pq({key:s,style:{width:e,minWidth:u}},n))),l=!0}}return a.length>0?r.createElement("colgroup",null,a):null};const Oq=r.forwardRef((e,t)=>{const{className:n,style:o,noData:i,columns:a,flattenColumns:l,colWidths:s,colGroup:c,columCount:u,stickyOffsets:d,direction:p,fixHeader:m,stickyTopOffset:f,stickyBottomOffset:h,stickyClassName:g,scrollX:b,tableLayout:v="fixed",onScroll:y,maxContentScroll:$,children:C,...w}=e,{prefixCls:S,scrollbarSize:E,isSticky:k,getComponent:N}=XK(eq,["prefixCls","scrollbarSize","isSticky","getComponent"]),I=N(["header","table"],"table"),M=k&&!m?0:E,P=r.useRef(null),R=r.useCallback(e=>{x(t,e),x(P,e)},[]);r.useEffect(()=>{function e(e){const{currentTarget:t,deltaX:n}=e;if(n){const{scrollLeft:r,scrollWidth:o,clientWidth:i}=t,a=o-i;let l=r+n;"rtl"===p?(l=Math.max(-a,l),l=Math.min(0,l)):(l=Math.min(a,l),l=Math.max(0,l)),y({currentTarget:t,scrollLeft:l}),e.preventDefault()}}const t=P.current;return t?.addEventListener("wheel",e,{passive:!1}),()=>{t?.removeEventListener("wheel",e)}},[]);const O=l[l.length-1],z={fixed:O?O.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${S}-cell-scrollbar`})},A=(0,r.useMemo)(()=>M?[...a,z]:a,[M,a]),T=(0,r.useMemo)(()=>M?[...l,z]:l,[M,l]),B=(0,r.useMemo)(()=>{const{start:e,end:t}=d;return{...d,start:e,end:[...t.map(e=>e+M),0],isSticky:k}},[M,d,k]),H=function(e,t){return(0,r.useMemo)(()=>{const n=[];for(let r=0;r<t;r+=1){const t=e[r];if(void 0===t)return null;n[r]=t}return n},[e.join("_"),t])}(s,u),D=(0,r.useMemo)(()=>{const e=!H||!H.length||H.every(e=>!e);return i||e},[i,H]);return r.createElement("div",{style:{overflow:"hidden",...k?{top:f,bottom:h}:{},...o},ref:R,className:re(n,{[g]:!!g})},r.createElement(I,{style:{tableLayout:v,minWidth:"100%",width:b}},D?c:r.createElement(Rq,{colWidths:[...H,M],columCount:u+1,columns:T}),C({...w,stickyOffsets:B,columns:A,flattenColumns:T})))});const zq=r.memo(Oq);function Aq(){return Aq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aq.apply(this,arguments)}const Tq=e=>{const{cells:t,stickyOffsets:n,flattenColumns:o,rowComponent:i,cellComponent:a,onHeaderRow:l,index:s,classNames:c,styles:u}=e,{prefixCls:d}=XK(eq,["prefixCls"]);let p;l&&(p=l(t.map(e=>e.column),s));const m=nq(t.map(e=>e.column));return r.createElement(i,Aq({},p,{className:c.row,style:u.row}),t.map((e,t)=>{const{column:i,colStart:l,colEnd:s,colSpan:c}=e,u=cq(l,s,o,n),p=i?.onHeaderCell?.(i)||{};return r.createElement(aq,Aq({},e,{scope:i.title?c>1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:d,key:m[t]},u,{additionalProps:p,rowType:"header"}))}))};const Bq=ZK(e=>{const{stickyOffsets:t,columns:n,flattenColumns:o,onHeaderRow:i}=e,{prefixCls:a,getComponent:l,classNames:s,styles:c}=XK(eq,["prefixCls","getComponent","classNames","styles"]),{header:u={}}=s||{},{header:d={}}=c||{},p=r.useMemo(()=>function(e,t,n){const r=[];!function e(o,i){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r[a]=r[a]||[];let l=i;const s=o.filter(Boolean).map(o=>{const i={key:o.key,className:re(o.className,t.cell)||"",style:n.cell,children:o.title,column:o,colStart:l};let s=1;const c=o.children;return c&&c.length>0&&(s=e(c,l,a+1).reduce((e,t)=>e+t,0),i.hasSubColumns=!0),"colSpan"in o&&({colSpan:s}=o),"rowSpan"in o&&(i.rowSpan=o.rowSpan),i.colSpan=s,i.colEnd=i.colStart+s-1,r[a].push(i),l+=s,s});return s}(e,0);const o=r.length;for(let i=0;i<o;i+=1)r[i].forEach(e=>{"rowSpan"in e||e.hasSubColumns||(e.rowSpan=o-i)});return r}(n,u,d),[n,u,d]),m=l(["header","wrapper"],"thead"),f=l(["header","row"],"tr"),h=l(["header","cell"],"th");return r.createElement(m,{className:re(`${a}-thead`,u.wrapper),style:d.wrapper},p.map((e,n)=>r.createElement(Tq,{classNames:u,styles:d,key:n,flattenColumns:o,cells:e,stickyOffsets:t,rowComponent:f,cellComponent:h,onHeaderRow:i,index:n})))});function Hq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"===typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Dq(e){return c(e).filter(e=>r.isValidElement(e)).map(e=>{const{key:t,props:n}=e,{children:r,...o}=n,i={key:t,...o};return r&&(i.children=Dq(r)),i})}function Lq(e){return e.filter(e=>e&&"object"===typeof e&&!e.hidden).map(e=>{const t=e.children;return t&&t.length>0?{...e,children:Lq(t)}:e})}function jq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter(e=>e&&"object"===typeof e).reduce((e,n,r)=>{const{fixed:o}=n,i=!0===o||"left"===o?"start":"right"===o?"end":o,a=`${t}-${r}`,l=n.children;return l&&l.length>0?[...e,...jq(l,a).map(e=>({...e,fixed:e.fixed??i}))]:[...e,{key:a,...n,fixed:i}]},[])}const Fq=function(e,t){let{prefixCls:n,columns:o,children:i,expandable:a,expandedKeys:l,columnTitle:s,getRowKey:c,onTriggerExpand:u,expandIcon:d,rowExpandable:p,expandIconColumnIndex:m,expandedRowOffset:f=0,direction:h,expandRowByClick:g,columnWidth:b,fixed:v,scrollWidth:y,clientWidth:$}=e;const C=r.useMemo(()=>Lq((o||Dq(i)||[]).slice()),[o,i]),x=r.useMemo(()=>{if(a){let e=C.slice();if(!e.includes(WK)){const t=m||0,n=0!==t||"right"!==v&&"end"!==v?t:C.length;n>=0&&e.splice(n,0,WK)}0;const t=e.indexOf(WK);e=e.filter((e,n)=>e!==WK||n===t);const o=C[t];let i;i=v||(o?o.fixed:null);const a={[Mq]:{className:`${n}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:s,fixed:i,className:`${n}-row-expand-icon-cell`,width:b,render:(e,t,o)=>{const i=c(t,o),a=l.has(i),s=!p||p(t),m=d({prefixCls:n,expanded:a,expandable:s,record:t,onExpand:u});return g?r.createElement("span",{onClick:e=>e.stopPropagation()},m):m}};return e.map((e,t)=>{const n=e===WK?a:e;return t<f?{...n,fixed:n.fixed||"start"}:n})}return C.filter(e=>e!==WK)},[a,C,c,l,d,h,f]),w=r.useMemo(()=>{let e=x;return t&&(e=t(e)),e.length||(e=[{render:()=>null}]),e},[t,x,h]),S=r.useMemo(()=>jq(w),[w,h,y]),[E,k]=function(e,t,n){return r.useMemo(()=>{if(t&&t>0){let r=0,o=0;e.forEach(e=>{const n=Hq(t,e.width);n?r+=n:o+=1});const i=Math.max(t,n);let a=Math.max(i-r,o),l=o;const s=a/o;let c=0;const u=e.map(e=>{const n={...e},r=Hq(t,n.width);if(r)n.width=r;else{const e=Math.floor(s);n.width=1===l?a:e,a-=e,l-=1}return c+=n.width,n});if(c<i){const e=i/c;a=i,u.forEach((t,n)=>{const r=Math.floor(t.width*e);t.width=n===u.length-1?a:r,a-=r})}return[u,Math.max(c,i)]}return[e,t]},[e,t,n])}(S,y,$);return[w,E,k]};const Wq=T()?window:null;const _q=function(e,t){const n=(0,r.useMemo)(()=>{const n=t.length,r=(n,r,o)=>{const i=[];let a=0;for(let l=n;l!==r;l+=o)i.push(a),t[l].fixed&&(a+=e[l]||0);return i};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t]);return n},Vq=e=>{const{children:t,className:n,style:o}=e;return r.createElement("div",{className:n,style:o},t)};function Xq(e){const t=v(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)}}const Kq="mouseup",qq="mousemove",Gq="scroll",Yq="resize",Uq=r.forwardRef((e,t)=>{const{scrollBodyRef:n,onScroll:o,offsetScroll:i,container:a,direction:l}=e,s=XK(eq,"prefixCls"),c=n.current?.scrollWidth||0,u=n.current?.clientWidth||0,d=c&&u*(u/c),p=r.useRef(null),[m,f]=function(e){const t=(0,r.useRef)(e),[,n]=(0,r.useState)({}),o=(0,r.useRef)(null),i=(0,r.useRef)([]);return(0,r.useEffect)(()=>()=>{o.current=null},[]),[t.current,function(e){i.current.push(e);const r=Promise.resolve();o.current=r,r.then(()=>{if(o.current===r){const e=i.current,r=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),o.current=null,r!==t.current&&n({})}})}]}({scrollLeft:0,isHiddenScrollBar:!0}),h=r.useRef({delta:0,x:0}),[g,b]=r.useState(!1),y=r.useRef(null);r.useEffect(()=>()=>{fe.cancel(y.current)},[]);const $=()=>{b(!1)},C=e=>{const{buttons:t}=e||window?.event;if(!g||0===t)return void(g&&b(!1));let n=h.current.x+e.pageX-h.current.x-h.current.delta;const r="rtl"===l;n=Math.max(r?d-u:0,Math.min(r?0:u-d,n));(!r||Math.abs(n)+Math.abs(d)<u)&&(o({scrollLeft:n/u*(c+2)}),h.current.x=e.pageX)},x=()=>{fe.cancel(y.current),y.current=fe(()=>{if(!n.current)return;const e=Xq(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:Xq(a).top+a.clientHeight;t-$s()<=r||e>=r-i?f(e=>({...e,isHiddenScrollBar:!0})):f(e=>({...e,isHiddenScrollBar:!1}))})},w=e=>{f(t=>({...t,scrollLeft:e/c*u||0}))};return r.useImperativeHandle(t,()=>({setScrollLeft:w,checkScrollBarVisible:x})),r.useEffect(()=>(document.body.addEventListener(Kq,$,!1),document.body.addEventListener(qq,C,!1),x(),()=>{document.body.removeEventListener(Kq,$),document.body.removeEventListener(qq,C)}),[d,g]),r.useEffect(()=>{if(n.current){const e=[];let t=v(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(Gq,x,!1)}),window.addEventListener(Yq,x,!1),window.addEventListener(Gq,x,!1),a.addEventListener(Gq,x,!1),()=>{e.forEach(e=>{e.removeEventListener(Gq,x)}),window.removeEventListener(Yq,x),window.removeEventListener(Gq,x),a.removeEventListener(Gq,x)}}},[a]),r.useEffect(()=>{m.isHiddenScrollBar||f(e=>{const t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[m.isHiddenScrollBar]),c<=u||!d||m.isHiddenScrollBar?null:r.createElement("div",{style:{height:$s(),width:u,bottom:i},className:`${s}-sticky-scroll`},r.createElement("div",{onMouseDown:e=>{e.persist(),h.current.delta=e.pageX-m.scrollLeft,h.current.x=0,b(!0),e.preventDefault()},ref:p,className:re(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:g}),style:{width:`${d}px`,transform:`translate3d(${m.scrollLeft}px, 0, 0)`}}))});const Qq=function(e){return null};const Zq=function(e){return null};function Jq(){return Jq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jq.apply(this,arguments)}const eG="rc-table",tG=[],nG={};function rG(){return"No Data"}const oG=r.forwardRef((e,t)=>{const n={rowKey:"key",prefixCls:eG,emptyText:rG,...e},{prefixCls:o,className:i,rowClassName:a,style:l,classNames:s,styles:c,data:u,rowKey:d,scroll:p,tableLayout:m,direction:f,title:h,footer:g,summary:b,caption:y,id:C,showHeader:x,components:w,emptyText:S,onRow:E,onHeaderRow:k,measureRowRender:N,onScroll:I,internalHooks:M,transformColumns:P,internalRefs:R,tailor:O,getContainerWidth:z,sticky:T,rowHoverable:B=!0}=n,H=u||tG,D=!!H.length,j=M===_K;const F=r.useCallback((e,t)=>W(w,e)||t,[w]),_=r.useMemo(()=>"function"===typeof d?d:e=>e&&e[d],[d]),V=F(["body"]),[X,K,q]=function(){const[e,t]=r.useState(-1),[n,o]=r.useState(-1);return[e,n,r.useCallback((e,n)=>{t(e),o(n)},[])]}(),[G,Y,U,Q,Z,J]=function(e,t,n){const o=function(e){const{expandable:t,...n}=e;let r;return r="expandable"in e?{...n,...t}:n,!1===r.showExpandColumn&&(r.expandIconColumnIndex=-1),r}(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:l,defaultExpandAllRows:s,expandedRowRender:c,onExpand:u,onExpandedRowsChange:d,childrenColumnName:p}=o,m=i||Cq,f=p||"children",h=r.useMemo(()=>c?"row":!!(e.expandable&&e.internalHooks===_K&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&"object"===typeof e&&e[f]))&&"nest",[!!c,t]),[g,b]=r.useState(()=>l||(s?function(e,t,n){const r=[];return function e(o){(o||[]).forEach((o,i)=>{r.push(t(o,i)),e(o[n])})}(e),r}(t,n,f):[])),v=r.useMemo(()=>new Set(a||g||[]),[a,g]),y=r.useCallback(e=>{const r=n(e,t.indexOf(e));let o;const i=v.has(r);i?(v.delete(r),o=[...v]):o=[...v,r],b(o),u&&u(!i,e),d&&d(o)},[n,v,t,u,d]);return[o,h,v,m,f,y]}(n,H,_),ee=p?.x,[ne,oe]=r.useState(0),[ie,ae,le]=Fq({...n,...G,expandable:!!G.expandedRowRender,columnTitle:G.columnTitle,expandedKeys:U,getRowKey:_,onTriggerExpand:J,expandIcon:Q,expandIconColumnIndex:G.expandIconColumnIndex,direction:f,scrollWidth:j&&O&&"number"===typeof ee?ee:null,clientWidth:ne},j?P:null),se=le??ee,ce=r.useMemo(()=>({columns:ie,flattenColumns:ae}),[ie,ae]),ue=r.useRef(null),de=r.useRef(null),pe=r.useRef(null),me=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:ue.current,scrollTo:e=>{if(pe.current instanceof HTMLElement){const{index:n,top:r,key:o,offset:i}=e;if("number"!==typeof(t=r)||Number.isNaN(t)){const e=o??_(H[n]),t=pe.current.querySelector(`[data-row-key="${e}"]`);if(t)if(i){const e=t.offsetTop;pe.current.scrollTo({top:e+i})}else t.scrollIntoView()}else pe.current?.scrollTo({top:r})}else pe.current?.scrollTo&&pe.current.scrollTo(e);var t}}));const fe=r.useRef(null),[he,ge]=r.useState(!1),[be,ve]=r.useState(!1),[ye,$e]=r.useState(new Map),Ce=nq(ae).map(e=>ye.get(e)),xe=r.useMemo(()=>Ce,[Ce.join("_")]),we=_q(xe,ae),Se=p&&rq(p.y),Ee=p&&rq(se)||Boolean(G.fixed),ke=Ee&&ae.some(e=>{let{fixed:t}=e;return t}),Ne=r.useRef(null),{isSticky:Ie,offsetHeader:Me,offsetSummary:Pe,offsetScroll:Re,stickyClassName:Oe,container:ze}=function(e,t){const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:i=0,getContainer:a=()=>Wq}="object"===typeof e?e:{},l=a()||Wq,s=!!e;return r.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:i,container:l}),[s,i,n,o,t,l])}(T,o),Ae=r.useMemo(()=>b?.(H),[b,H]),Te=(Se||Ie)&&r.isValidElement(Ae)&&Ae.type===fq&&Ae.props.fixed;let Be,He,De;Se&&(He={overflowY:D?"scroll":"auto",maxHeight:p.y}),Ee&&(Be={overflowX:"auto"},Se||(He={overflowY:"hidden"}),De={width:!0===se?"auto":se,minWidth:"100%"});const Le=r.useCallback((e,t)=>{$e(n=>{if(n.get(e)!==t){const r=new Map(n);return r.set(e,t),r}return n})},[]),[Fe,We]=function(e){const t=(0,r.useRef)(e||null),n=(0,r.useRef)(null);function o(){clearTimeout(n.current)}return(0,r.useEffect)(()=>o,[]),[function(e){t.current=e,o(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)},function(){return t.current}]}(null);function _e(e,t){t&&("function"===typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}const[Ve,Xe]=r.useState([0,0]),Ke=A(e=>{let{currentTarget:t,scrollLeft:n}=e;const r="number"===typeof n?n:t.scrollLeft,o=t||nG;We()&&We()!==o||(Fe(o),_e(r,de.current),_e(r,pe.current),_e(r,fe.current),_e(r,Ne.current?.setScrollLeft));const i=t||de.current;if(i){const e=j&&O&&"number"===typeof se?se:i.scrollWidth,t=i.clientWidth,n=Math.abs(r);if(Xe(r=>{const o=[n,e-t];return je(r,o)?r:o}),e===t)return ge(!1),void ve(!1);ge(n>0),ve(n<e-t-1)}}),qe=A(e=>{Ke(e),I?.(e)}),Ge=()=>{Ee&&pe.current?Ke({currentTarget:v(pe.current),scrollLeft:pe.current?.scrollLeft}):(ge(!1),ve(!1))},Ye=e=>{Ne.current?.checkScrollBarVisible();let t=e??ue.current?.offsetWidth??0;j&&z&&ue.current&&(t=z(ue.current,t)||t),t!==ne&&(Ge(),oe(t))};L(()=>{Ee&&Ye()},[Ee]);const Ue=r.useRef(!1);r.useEffect(()=>{Ue.current&&Ge()},[Ee,u,ie.length]),r.useEffect(()=>{Ue.current=!0},[]);const[Qe,Ze]=r.useState(0);L(()=>{O&&j||(pe.current instanceof Element?Ze(Cs(pe.current).width):Ze(Cs(me.current).width))},[]),r.useEffect(()=>{j&&R&&(R.body.current=pe.current)});const Je=r.useCallback(e=>r.createElement(r.Fragment,null,r.createElement(Bq,e),"top"===Te&&r.createElement(hq,e,Ae)),[Te,Ae]),et=r.useCallback(e=>r.createElement(hq,e,Ae),[Ae]),tt=F(["table"],"table"),nt=r.useMemo(()=>m||(ke?"max-content"===se?"auto":"fixed":Se||Ie||ae.some(e=>{let{ellipsis:t}=e;return t})?"fixed":"auto"),[Se,ke,ae,m,Ie]);let rt;const ot={colWidths:xe,columCount:ae.length,stickyOffsets:we,onHeaderRow:k,fixHeader:Se,scroll:p},it=r.useMemo(()=>D?null:"function"===typeof S?S():S,[D,S]),at=r.createElement(Iq,{data:H,measureColumnWidth:Se||Ee||Ie}),lt=r.createElement(Rq,{colWidths:ae.map(e=>{let{width:t}=e;return t}),columns:ae}),st=null!==y&&void 0!==y?r.createElement("caption",{className:`${o}-caption`},y):void 0,ct=fa(n,{data:!0}),ut=fa(n,{aria:!0});if(Se||Ie){let e;"function"===typeof V?(e=V(H,{scrollbarSize:Qe,ref:pe,onScroll:Ke}),ot.colWidths=ae.map((e,t)=>{let{width:n}=e;const r=t===ae.length-1?n-Qe:n;return"number"!==typeof r||Number.isNaN(r)?0:r})):e=r.createElement("div",{style:{...Be,...He},onScroll:qe,ref:pe,className:`${o}-body`},r.createElement(tt,Jq({style:{...De,tableLayout:nt}},ut),st,lt,at,!Te&&Ae&&r.createElement(hq,{stickyOffsets:we,flattenColumns:ae},Ae)));const t={noData:!H.length,maxContentScroll:Ee&&"max-content"===se,...ot,...ce,direction:f,stickyClassName:Oe,scrollX:se,tableLayout:nt,onScroll:Ke};rt=r.createElement(r.Fragment,null,!1!==x&&r.createElement(zq,Jq({},t,{stickyTopOffset:Me,className:`${o}-header`,ref:de,colGroup:lt}),Je),e,Te&&"top"!==Te&&r.createElement(zq,Jq({},t,{stickyBottomOffset:Pe,className:`${o}-summary`,ref:fe,colGroup:lt}),et),Ie&&pe.current&&pe.current instanceof Element&&r.createElement(Uq,{ref:Ne,offsetScroll:Re,scrollBodyRef:pe,onScroll:Ke,container:ze,direction:f}))}else rt=r.createElement("div",{style:{...Be,...He,...c?.content},className:re(`${o}-content`,s?.content),onScroll:Ke,ref:pe},r.createElement(tt,Jq({style:{...De,tableLayout:nt}},ut),st,lt,!1!==x&&r.createElement(Bq,Jq({},ot,ce)),at,Ae&&r.createElement(hq,{stickyOffsets:we,flattenColumns:ae},Ae)));const dt={...l};Ie&&(dt["--columns-count"]=ae.length);let pt=r.createElement("div",Jq({className:re(o,i,{[`${o}-rtl`]:"rtl"===f,[`${o}-fix-start-shadow`]:Ee,[`${o}-fix-end-shadow`]:Ee,[`${o}-fix-start-shadow-show`]:Ee&&he,[`${o}-fix-end-shadow-show`]:Ee&&be,[`${o}-layout-fixed`]:"fixed"===m,[`${o}-fixed-header`]:Se,[`${o}-fixed-column`]:ke,[`${o}-scroll-horizontal`]:Ee,[`${o}-has-fix-start`]:ae[0]?.fixed,[`${o}-has-fix-end`]:"end"===ae[ae.length-1]?.fixed}),style:dt,id:C,ref:ue},ct),h&&r.createElement(Vq,{className:re(`${o}-title`,s?.title),style:c?.title},h(H)),r.createElement("div",{ref:me,className:re(`${o}-container`,s?.section),style:c?.section},rt),g&&r.createElement(Vq,{className:re(`${o}-footer`,s?.footer),style:c?.footer},g(H)));Ee&&(pt=r.createElement(te,{onResize:e=>{let{offsetWidth:t}=e;return Ye(t)}},pt));const mt=function(e,t){const n=r.useMemo(()=>e.map((n,r)=>cq(r,r,e,t)),[e,t]);return $(()=>n,[n],(e,t)=>!je(e,t))}(ae,we),ft=r.useMemo(()=>({scrollX:se,scrollInfo:Ve,classNames:s,styles:c,prefixCls:o,getComponent:F,scrollbarSize:Qe,direction:f,fixedInfoList:mt,isSticky:Ie,componentWidth:ne,fixHeader:Se,fixColumn:ke,horizonScroll:Ee,tableLayout:nt,rowClassName:a,expandedRowClassName:G.expandedRowClassName,expandIcon:Q,expandableType:Y,expandRowByClick:G.expandRowByClick,expandedRowRender:G.expandedRowRender,expandedRowOffset:G.expandedRowOffset,onTriggerExpand:J,expandIconColumnIndex:G.expandIconColumnIndex,indentSize:G.indentSize,allColumnsFixedLeft:ae.every(e=>"start"===e.fixed),emptyNode:it,columns:ie,flattenColumns:ae,onColumnResize:Le,colWidths:xe,hoverStartRow:X,hoverEndRow:K,onHover:q,rowExpandable:G.rowExpandable,onRow:E,getRowKey:_,expandedKeys:U,childrenColumnName:Z,rowHoverable:B,measureRowRender:N}),[se,Ve,s,c,o,F,Qe,f,mt,Ie,ne,Se,ke,Ee,nt,a,G.expandedRowClassName,Q,Y,G.expandRowByClick,G.expandedRowRender,G.expandedRowOffset,J,G.expandIconColumnIndex,G.indentSize,it,ie,ae,Le,xe,X,K,q,G.rowExpandable,E,_,U,Z,B,N]);return r.createElement(eq.Provider,{value:ft},pt)});const iG=e=>QK(oG,e),aG=iG();aG.EXPAND_COLUMN=WK,aG.INTERNAL_HOOKS=_K,aG.Column=Qq,aG.ColumnGroup=Zq,aG.Summary=gq;const lG=aG,sG=VK(null),cG=VK(null);function uG(){return uG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uG.apply(this,arguments)}const dG=e=>{const{rowInfo:t,column:n,colIndex:o,indent:i,index:a,component:l,renderIndex:s,record:c,style:u,className:d,inverse:p,getHeight:m}=e,{render:f,dataIndex:h,className:g,width:b}=n,{columnsOffset:v}=XK(cG,["columnsOffset"]),{key:y,fixedInfo:$,appendCellNode:C,additionalCellProps:x}=Sq(t,n,o,i,a),{style:w,colSpan:S=1,rowSpan:E=1}=x,k=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(o-1,S,v),N={...w,...u,flex:`0 0 ${k}px`,width:`${k}px`,marginRight:S>1?b-k:0,pointerEvents:"auto"},I=r.useMemo(()=>p?E<=1:0===S||0===E||E>1,[E,S,p]);I?N.visibility="hidden":p&&(N.height=m?.(E));const M=I?()=>null:f,P={};return 0!==E&&0!==S||(P.rowSpan=1,P.colSpan=1),r.createElement(aq,uG({className:re(g,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:y,record:c,index:a,renderIndex:s,dataIndex:h,render:M,shouldCellUpdate:n.shouldCellUpdate},$,{appendNode:C,additionalProps:{...x,style:N,...P}}))};function pG(){return pG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pG.apply(this,arguments)}const mG=r.forwardRef((e,t)=>{const{data:n,index:o,className:i,rowKey:a,style:l,extra:s,getHeight:c,...u}=e,{record:d,indent:p,index:m}=n,{scrollX:f,flattenColumns:h,prefixCls:g,fixColumn:b,componentWidth:v}=XK(eq,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),{getComponent:y}=XK(sG,["getComponent"]),$=yq(d,a,o,p),C=y(["body","row"],"div"),x=y(["body","cell"],"div"),{rowSupportExpand:w,expanded:S,rowProps:E,expandedRowRender:k,expandedRowClassName:N}=$;let I;if(w&&S){const e=k(d,o,p+1,S),t=xq(N,d,o,p);let n={};b&&(n={style:{"--virtual-width":`${v}px`}});const i=`${g}-expanded-row-cell`;I=r.createElement(C,{className:re(`${g}-expanded-row`,`${g}-expanded-row-level-${p+1}`,t)},r.createElement(aq,{component:x,prefixCls:g,className:re(i,{[`${i}-fixed`]:b}),additionalProps:n},e))}const M={...l,width:f};s&&(M.position="absolute",M.pointerEvents="none");const P=r.createElement(C,pG({},E,u,{"data-row-key":a,ref:w?null:t,className:re(i,`${g}-row`,E?.className,{[`${g}-row-extra`]:s}),style:{...M,...E?.style}}),h.map((e,t)=>r.createElement(dG,{key:t,component:x,rowInfo:$,column:e,colIndex:t,indent:p,index:o,renderIndex:m,record:d,inverse:s,getHeight:c})));return w?r.createElement("div",{ref:t},P,I):P});const fG=ZK(mG),hG=r.forwardRef((e,t)=>{const{data:n,onScroll:o}=e,{flattenColumns:i,onColumnResize:a,getRowKey:l,expandedKeys:s,prefixCls:c,childrenColumnName:u,scrollX:d,direction:p}=XK(eq,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),{sticky:m,scrollY:f,listItemHeight:h,getComponent:g,onScroll:b}=XK(sG),v=r.useRef(null),y=vq(n,u,s,l),$=r.useMemo(()=>{let e=0;return i.map(t=>{let{width:n,minWidth:r,key:o}=t;const i=Math.max(n||0,r||0);return e+=i,[o,i,e]})},[i]),C=r.useMemo(()=>$.map(e=>e[2]),[$]);r.useEffect(()=>{$.forEach(e=>{let[t,n]=e;a(t,n)})},[$]),r.useImperativeHandle(t,()=>{const e={scrollTo:e=>{const{offset:t,...n}=e;t?v.current?.scrollTo({...n,offset:t,align:"top"}):v.current?.scrollTo(e)},nativeElement:v.current?.nativeElement};return Object.defineProperty(e,"scrollLeft",{get:()=>v.current?.getScrollInfo().x||0,set:e=>{v.current?.scrollTo({left:e})}}),Object.defineProperty(e,"scrollTop",{get:()=>v.current?.getScrollInfo().y||0,set:e=>{v.current?.scrollTo({top:e})}}),e});const x=(e,t)=>{const n=y[t]?.record,{onCell:r}=e;if(r){const e=r(n,t);return e?.rowSpan??1}return 1},w=r.useMemo(()=>({columnsOffset:C}),[C]),S=`${c}-tbody`,E=g(["body","wrapper"]),k={};return m&&(k.position="sticky",k.bottom=0,"object"===typeof m&&m.offsetScroll&&(k.bottom=m.offsetScroll)),r.createElement(cG.Provider,{value:w},r.createElement(jb,{fullHeight:!1,ref:v,prefixCls:`${S}-virtual`,styles:{horizontalScrollBar:k},className:S,height:f,itemHeight:h||24,data:y,itemKey:e=>l(e.record),component:E,scrollWidth:d,direction:p,onVirtualScroll:e=>{let{x:t}=e;o({currentTarget:v.current?.nativeElement,scrollLeft:t})},onScroll:b,extraRender:e=>{const{start:t,end:n,getSize:o,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>0===x(e,t)),c=t;for(let r=t;r>=0;r-=1)if(s=s.filter(e=>0===x(e,r)),!s.length){c=r;break}let u=i.filter(e=>1!==x(e,n)),d=n;for(let r=n;r<y.length;r+=1)if(u=u.filter(e=>1!==x(e,r)),!u.length){d=Math.max(r-1,n);break}const p=[];for(let r=c;r<=d;r+=1){y[r]&&(i.some(e=>x(e,r)>1)&&p.push(r))}const m=p.map(e=>{const t=y[e],n=l(t.record,e),i=o(n);return r.createElement(fG,{key:e,data:t,rowKey:n,index:e,style:{top:-a+i.top},extra:!0,getHeight:t=>{const r=e+t-1,i=y[r];if(!i||!i.record){const e=Math.min(r,y.length-1),t=y[e],i=l(t.record,e),a=o(n,i);return a.bottom-a.top}const a=l(i.record,r),s=o(n,a);return s.bottom-s.top}})});return m}},(e,t,n)=>{const o=l(e.record,t);return r.createElement(fG,{data:e,rowKey:o,index:t,style:n.style})}))});const gG=ZK(hG);function bG(){return bG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bG.apply(this,arguments)}const vG=(e,t)=>{const{ref:n,onScroll:o}=t;return r.createElement(gG,{ref:n,data:e,onScroll:o})},yG=r.forwardRef((e,t)=>{const{data:n,columns:o,scroll:i,sticky:a,prefixCls:l=eG,className:s,listItemHeight:c,components:u,onScroll:d}=e;let{x:p,y:m}=i||{};"number"!==typeof p&&(p=1),"number"!==typeof m&&(m=500);const f=A((e,t)=>W(u,e)||t),h=A(d),g=r.useMemo(()=>({sticky:a,scrollY:m,listItemHeight:c,getComponent:f,onScroll:h}),[a,m,c,f,h]);return r.createElement(sG.Provider,{value:g},r.createElement(lG,bG({},e,{className:re(s,`${l}-virtual`),scroll:{...i,x:p},components:{...u,body:n?.length?vG:void 0},columns:o,internalHooks:_K,tailor:!0,ref:t})))});const $G=e=>QK(yG,e);$G();const CG=e=>null,xG=e=>null,wG=r.createContext(null),SG=r.createContext({}),EG=r.memo(e=>{let{prefixCls:t,level:n,isStart:o,isEnd:i}=e;const a=`${t}-indent-unit`,l=[];for(let s=0;s<n;s+=1)l.push(r.createElement("span",{key:s,className:re(a,{[`${a}-start`]:o[s],[`${a}-end`]:i[s]})}));return r.createElement("span",{"aria-hidden":"true",className:`${t}-indent`},l)});function kG(){return kG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kG.apply(this,arguments)}const NG="open",IG="close",MG="---",PG=e=>{const{eventKey:t,className:n,style:o,dragOver:i,dragOverGapTop:a,dragOverGapBottom:l,isLeaf:s,isStart:c,isEnd:u,expanded:d,selected:p,checked:m,halfChecked:f,loading:h,domRef:g,active:b,data:v,onMouseMove:y,selectable:$,treeId:C,...x}=e,w=ks(C,t),S=r.useContext(wG),{classNames:E,styles:k}=S||{},N=r.useContext(SG),I=r.useRef(null),[M,P]=r.useState(!1),R=!!(S.disabled||e.disabled||N.nodeDisabled?.(v)),O=r.useMemo(()=>!(!S.checkable||!1===e.checkable)&&S.checkable,[S.checkable,e.checkable]),z=t=>{R||O&&!e.disableCheckbox&&S.onNodeCheck(t,FO(e),!m)},A=r.useMemo(()=>"boolean"===typeof $?$:S.selectable,[$,S.selectable]),T=t=>{S.onNodeClick(t,FO(e)),A?(t=>{R||S.onNodeSelect(t,FO(e))})(t):z(t)},B=t=>{S.onNodeDoubleClick(t,FO(e))},H=t=>{S.onNodeMouseEnter(t,FO(e))},D=t=>{S.onNodeMouseLeave(t,FO(e))},L=t=>{S.onNodeContextMenu(t,FO(e))},j=r.useMemo(()=>!(!S.draggable||S.draggable.nodeDraggable&&!S.draggable.nodeDraggable(v)),[S.draggable,v]),F=t=>{h||S.onNodeExpand(t,FO(e))},W=r.useMemo(()=>{const{children:e}=OO(S.keyEntities,t)||{};return Boolean((e||[]).length)},[S.keyEntities,t]),_=r.useMemo(()=>LO(s,S.loadData,W,e.loaded),[s,S.loadData,W,e.loaded]);r.useEffect(()=>{h||"function"!==typeof S.loadData||!d||_||e.loaded||S.onNodeLoad(FO(e))},[h,S.loadData,S.onNodeLoad,d,_,e]);const V=r.useMemo(()=>S.draggable?.icon?r.createElement("span",{className:`${S.prefixCls}-draggable-icon`},S.draggable.icon):null,[S.draggable]),X=t=>{const n=e.switcherIcon||S.switcherIcon;return"function"===typeof n?n({...e,isLeaf:t}):n},K=r.useMemo(()=>{if(!O)return null;const t="boolean"!==typeof O?O:null;return r.createElement("span",{className:re(`${S.prefixCls}-checkbox`,{[`${S.prefixCls}-checkbox-checked`]:m,[`${S.prefixCls}-checkbox-indeterminate`]:!m&&f,[`${S.prefixCls}-checkbox-disabled`]:R||e.disableCheckbox}),onClick:z,role:"checkbox","aria-checked":f?"mixed":m,"aria-disabled":R||e.disableCheckbox,"aria-labelledby":w},t)},[O,m,f,R,e.disableCheckbox,w]),q=r.useMemo(()=>_?null:d?NG:IG,[_,d]),G=r.useMemo(()=>r.createElement("span",{className:re(E?.itemIcon,`${S.prefixCls}-iconEle`,`${S.prefixCls}-icon__${q||"docu"}`,{[`${S.prefixCls}-icon_loading`]:h}),style:k?.itemIcon}),[S.prefixCls,q,h]),Y=r.useMemo(()=>{const n=Boolean(S.draggable);return!e.disabled&&n&&S.dragOverNodeKey===t?S.dropIndicatorRender({dropPosition:S.dropPosition,dropLevelOffset:S.dropLevelOffset,indent:S.indent,prefixCls:S.prefixCls,direction:S.direction}):null},[S.dropPosition,S.dropLevelOffset,S.indent,S.prefixCls,S.direction,S.draggable,S.dragOverNodeKey,S.dropIndicatorRender]),U=r.useMemo(()=>{const{title:t=MG}=e,n=`${S.prefixCls}-node-content-wrapper`;let o,i;if(S.showIcon){const t=e.icon||S.icon;o=t?r.createElement("span",{className:re(E?.itemIcon,`${S.prefixCls}-iconEle`,`${S.prefixCls}-icon__customize`),style:k?.itemIcon},"function"===typeof t?t(e):t):G}else S.loadData&&h&&(o=G);return i="function"===typeof t?t(v):S.titleRender?S.titleRender(v):t,r.createElement("span",{ref:I,title:"string"===typeof t?t:"",className:re(n,`${n}-${q||"normal"}`,{[`${S.prefixCls}-node-selected`]:!R&&(p||M)}),onMouseEnter:H,onMouseLeave:D,onContextMenu:L,onClick:T,onDoubleClick:B},o,r.createElement("span",{className:re(`${S.prefixCls}-title`,E?.itemTitle),style:k?.itemTitle},i),Y)},[S.prefixCls,S.showIcon,e,S.icon,G,S.titleRender,v,q,H,D,L,T,B]),Q=fa(x,{aria:!0,data:!0}),{level:Z}=OO(S.keyEntities,t)||{},J=u[u.length-1],ee=!R&&j,te=S.draggingNodeKey===t;return r.createElement("div",kG({ref:g,role:"treeitem",id:w,"aria-expanded":_?void 0:d,"aria-selected":A&&!R?p:void 0,"aria-checked":O&&!R?f?"mixed":m:void 0,"aria-disabled":R,className:re(n,`${S.prefixCls}-treenode`,E?.item,{[`${S.prefixCls}-treenode-disabled`]:R,[`${S.prefixCls}-treenode-switcher-${d?"open":"close"}`]:!s,[`${S.prefixCls}-treenode-checkbox-checked`]:m,[`${S.prefixCls}-treenode-checkbox-indeterminate`]:f,[`${S.prefixCls}-treenode-selected`]:p,[`${S.prefixCls}-treenode-loading`]:h,[`${S.prefixCls}-treenode-active`]:b,[`${S.prefixCls}-treenode-leaf-last`]:J,[`${S.prefixCls}-treenode-draggable`]:j,dragging:te,"drop-target":S.dropTargetKey===t,"drop-container":S.dropContainerKey===t,"drag-over":!R&&i,"drag-over-gap-top":!R&&a,"drag-over-gap-bottom":!R&&l,"filter-node":S.filterTreeNode?.(FO(e)),[`${S.prefixCls}-treenode-leaf`]:_}),style:{...o,...k?.item},draggable:ee,onDragStart:ee?t=>{t.stopPropagation(),P(!0),S.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch{}}:void 0,onDragEnter:j?t=>{t.preventDefault(),t.stopPropagation(),S.onNodeDragEnter(t,e)}:void 0,onDragOver:j?t=>{t.preventDefault(),t.stopPropagation(),S.onNodeDragOver(t,e)}:void 0,onDragLeave:j?t=>{t.stopPropagation(),S.onNodeDragLeave(t,e)}:void 0,onDrop:j?t=>{t.preventDefault(),t.stopPropagation(),P(!1),S.onNodeDrop(t,e)}:void 0,onDragEnd:j?t=>{t.stopPropagation(),P(!1),S.onNodeDragEnd(t,e)}:void 0,onMouseMove:y},Q),r.createElement(EG,{prefixCls:S.prefixCls,level:Z,isStart:c,isEnd:u}),V,(()=>{if(_){const e=X(!0);return!1!==e?r.createElement("span",{className:re(`${S.prefixCls}-switcher`,`${S.prefixCls}-switcher-noop`)},e):null}const e=X(!1);return!1!==e?r.createElement("span",{onClick:F,className:re(`${S.prefixCls}-switcher`,`${S.prefixCls}-switcher_${d?NG:IG}`)},e):null})(),K,U)};PG.isTreeNode=1;const RG=PG;function OG(e,t){if(!e)return[];const n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function zG(e,t){const n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function AG(e){return e.split("-")}function TG(e,t){const n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(t=>{let{key:r,children:o}=t;n.push(r),e(o)})}(OO(t,e).children),n}function BG(e){if(e.parent){const t=AG(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function HG(e,t,n,r,o,i,a,l,s,c){const{clientX:u,clientY:d}=e,{top:p,height:m}=e.target.getBoundingClientRect(),f=(("rtl"===c?-1:1)*((o?.x||0)-u)-12)/r,h=s.filter(e=>l[e]?.children?.length);let g=OO(l,n.eventKey);if(d<p+m/2){const e=a.findIndex(e=>e.key===g.key),t=a[e<=0?0:e-1].key;g=OO(l,t)}const b=g.key,v=g,y=g.key;let $=0,C=0;if(!h.includes(b))for(let E=0;E<f&&BG(g);E+=1)g=g.parent,C+=1;const x=t.data,w=g.node;let S=!0;return function(e){const t=AG(e.pos);return 0===Number(t[t.length-1])}(g)&&0===g.level&&d<p+m/2&&i({dragNode:x,dropNode:w,dropPosition:-1})&&g.key===n.eventKey?$=-1:(v.children||[]).length&&h.includes(y)?i({dragNode:x,dropNode:w,dropPosition:0})?$=0:S=!1:0===C?f>-1.5?i({dragNode:x,dropNode:w,dropPosition:1})?$=1:S=!1:i({dragNode:x,dropNode:w,dropPosition:0})?$=0:i({dragNode:x,dropNode:w,dropPosition:1})?$=1:S=!1:i({dragNode:x,dropNode:w,dropPosition:1})?$=1:S=!1,{dropPosition:$,dropLevelOffset:C,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:0===$?null:g.parent?.key||null,dropAllowed:S}}function DG(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function LG(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==typeof e)return g(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function jG(e,t){const n=new Set;function r(e){if(n.has(e))return;const o=OO(t,e);if(!o)return;n.add(e);const{parent:i,node:a}=o;a.disabled||i&&r(i.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}const FG=e=>{const[t,n]=(0,r.useState)(null);return[(0,r.useCallback)((r,o,i)=>{const a=t??r,l=Math.min(a||0,r),s=Math.max(a||0,r),c=o.slice(l,s+1).map(e),u=c.some(e=>!i.has(e)),d=[];return c.forEach(e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))}),n(u?s:null),d},[t]),n]},WG={},_G="SELECT_ALL",VG="SELECT_INVERT",XG="SELECT_NONE",KG=[],qG=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(t||[]).forEach(t=>{n.push(t),t&&"object"===typeof t&&e in t&&qG(e,t[e],n)}),n},GG=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:o,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:l,onChange:s,onSelect:c,onSelectAll:u,onSelectInvert:d,onSelectNone:p,onSelectMultiple:m,columnWidth:f,type:h,selections:g,fixed:b,renderCell:v,hideSelectAll:y,checkStrictly:$=!0}=t||{},{prefixCls:C,data:x,pageData:w,getRecordByKey:S,getRowKey:E,expandType:k,childrenColumnName:N,locale:I,getPopupContainer:M}=e,P=ll("Table"),[R,O]=FG(e=>e),[z,A]=F(i||KG,o),T=r.useRef(new Map),B=(0,r.useCallback)(e=>{if(n){const t=new Map;e.forEach(e=>{let n=S(e);!n&&T.current.has(e)&&(n=T.current.get(e)),t.set(e,n)}),T.current=t}},[S,n]);r.useEffect(()=>{B(z)},[z]);const H=(0,r.useMemo)(()=>qG(N,w),[N,w]),{keyEntities:D}=(0,r.useMemo)(()=>{if($)return{keyEntities:null};let e=x;if(n){const t=new Set(H.map(E)),n=Array.from(T.current).reduce((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)},[]);e=[].concat(le(e),le(n))}return DO(e,{externalGetKey:E,childrenPropName:N})},[x,E,$,N,n,H]),L=(0,r.useMemo)(()=>{const e=new Map;return H.forEach((t,n)=>{const r=E(t,n),o=(a?a(t):null)||{};e.set(r,o)}),e},[H,E,a]),j=(0,r.useCallback)(e=>{const t=E(e);let n;return n=L.has(t)?L.get(E(e)):a?a(e):void 0,!!n?.disabled},[L,E]),[W,_]=(0,r.useMemo)(()=>{if($)return[z||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=XO(z,!0,D,j);return[e||[],t]},[z,$,D,j]),V=(0,r.useMemo)(()=>{const e="radio"===h?W.slice(0,1):W;return new Set(e)},[W,h]),X=(0,r.useMemo)(()=>"radio"===h?new Set:new Set(_),[_,h]);r.useEffect(()=>{t||A(KG)},[!!t]);const K=(0,r.useCallback)((e,t)=>{let r,o;B(e),n?(r=e,o=e.map(e=>T.current.get(e))):(r=[],o=[],e.forEach(e=>{const t=S(e);void 0!==t&&(r.push(e),o.push(t))})),A(r),s?.(r,o,{type:t})},[A,S,s,n]),q=(0,r.useCallback)((e,t,n,r)=>{if(c){const o=n.map(S);c(S(e),t,o,r)}K(n,"single")},[c,S,K]),G=(0,r.useMemo)(()=>{if(!g||y)return null;return(!0===g?[_G,VG,XG]:g).map(e=>e===_G?{key:"all",text:I.selectionAll,onSelect(){K(x.map((e,t)=>E(e,t)).filter(e=>{const t=L.get(e);return!t?.disabled||V.has(e)}),"all")}}:e===VG?{key:"invert",text:I.selectInvert,onSelect(){const e=new Set(V);w.forEach((t,n)=>{const r=E(t,n),o=L.get(r);o?.disabled||(e.has(r)?e.delete(r):e.add(r))});const t=Array.from(e);d&&(P.deprecated(!1,"onSelectInvert","onChange"),d(t)),K(t,"invert")}}:e===XG?{key:"none",text:I.selectNone,onSelect(){p?.(),K(Array.from(V).filter(e=>{const t=L.get(e);return t?.disabled}),"none")}}:e).map(e=>({...e,onSelect:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.onSelect?.(...n),O(null)}}))},[g,y,I.selectionAll,I.selectInvert,I.selectNone,L,V,x,w,E,d,K]),Y=(0,r.useCallback)(e=>{if(!t)return e.filter(e=>e!==WG);let n=le(e);const o=new Set(V),i=H.map(E).filter(e=>!L.get(e).disabled),a=i.every(e=>o.has(e)),s=i.some(e=>o.has(e));let c,d,p;if("radio"!==h){let e;if(G){const t={getPopupContainer:M,items:G.map((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:n??t,onClick:()=>{o?.(i)},label:r}})};e=r.createElement("div",{className:`${C}-selection-extra`},r.createElement(ID,{menu:t,getPopupContainer:M},r.createElement("span",null,r.createElement(Xv,null))))}const t=H.map((e,t)=>{const n=E(e,t),r=L.get(n)||{};return{checked:o.has(n),...r}}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===H.length,p=n&&t.every(e=>{let{checked:t}=e;return t}),m=n&&t.some(e=>{let{checked:t}=e;return t}),f=l?.()||{},{onChange:h,disabled:g}=f;d=r.createElement(Tz,{"aria-label":e?"Custom selection":"Select all",...f,checked:n?p:!!H.length&&a,indeterminate:n?!p&&m:!a&&s,onChange:e=>{(()=>{const e=[];a?i.forEach(t=>{o.delete(t),e.push(t)}):i.forEach(t=>{o.has(t)||(o.add(t),e.push(t))});const t=Array.from(o);u?.(!a,t.map(S),e.map(S)),K(t,"all"),O(null)})(),h?.(e)},disabled:g??(0===H.length||n),skipGroup:!0}),c=!y&&r.createElement("div",{className:`${C}-selection`},d,e)}p="radio"===h?(e,t,n)=>{const i=E(t,n),a=o.has(i),l=L.get(i);return{node:r.createElement(qV,{...l,checked:a,onClick:e=>{e.stopPropagation(),l?.onClick?.(e)},onChange:e=>{o.has(i)||q(i,!0,[i],e.nativeEvent),l?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{const a=E(t,n),l=o.has(a),s=X.has(a),c=L.get(a);let u;return u="nest"===k?s:c?.indeterminate??s,{node:r.createElement(Tz,{...c,indeterminate:u,checked:l,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{const{nativeEvent:t}=e,{shiftKey:n}=t,r=i.indexOf(a),s=W.some(e=>i.includes(e));if(n&&$&&s){const e=R(r,i,o),t=Array.from(o);m?.(!l,t.map(S),e.map(S)),K(t,"multiple")}else{const e=W;if($){const n=l?OG(e,a):zG(e,a);q(a,!l,n,t)}else{const n=XO([].concat(le(e),[a]),!0,D,j),{checkedKeys:r,halfCheckedKeys:o}=n;let i=r;if(l){const e=new Set(r);e.delete(a),i=XO(Array.from(e),{checked:!1,halfCheckedKeys:o},D,j).checkedKeys}q(a,!l,i,t)}}O(l?null:r),c?.onChange?.(e)}}),checked:l}};if(!n.includes(WG))if(0===n.findIndex(e=>"EXPAND_COLUMN"===e[Mq]?.columnType)){const[e,...t]=n;n=[e,WG].concat(le(t))}else n=[WG].concat(le(n));const x=n.indexOf(WG);n=n.filter((e,t)=>e!==WG||t===x);const w=n[x-1],N=n[x+1];let I=b;void 0===I&&(void 0!==N?.fixed?I=N.fixed:void 0!==w?.fixed&&(I=w.fixed)),I&&w&&"EXPAND_COLUMN"===w[Mq]?.columnType&&void 0===w.fixed&&(w.fixed=I);const P=re(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:g&&"checkbox"===h}),z={fixed:I,width:f,className:`${C}-selection-column`,title:t?.columnTitle?"function"===typeof t.columnTitle?t.columnTitle(d):t.columnTitle:c,render:(e,t,n)=>{const{node:r,checked:o}=p(e,t,n);return v?v(o,t,n,r):r},onCell:t.onCell,align:t.align,[Mq]:{className:P}};return n.map(e=>e===WG?z:e)},[E,H,t,W,V,X,f,G,k,L,m,q,j]);return[Y,V]},YG=(e,t)=>(0,r.useImperativeHandle)(e,()=>{const e=t(),{nativeElement:n}=e;return"undefined"!==typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=n)._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 UG=function(e){return t=>{const{prefixCls:n,onExpand:o,record:i,expanded:a,expandable:l}=t,s=`${n}-row-expand-icon`;return r.createElement("button",{type:"button",onClick:e=>{o(i,e),e.stopPropagation()},className:re(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&a,[`${s}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}};const QG=(e,t)=>"key"in e&&xa(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function ZG(e,t){return t?`${t}-${e}`:`${e}`}const JG=(e,t)=>"function"===typeof e?e(t):e;const eY={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"};function tY(){return tY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tY.apply(this,arguments)}const nY=r.forwardRef((e,t)=>r.createElement(si,tY({},e,{ref:t,icon:eY})));const rY=e=>{const{dropPosition:t,dropLevelOffset:n,indent:o}=e,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*o;break;case 1:i.bottom=0,i.left=-n*o;break;case 0:i.bottom=0,i.left=o}return r.createElement("div",{style:i})};const oY=function(e,t){const[n,o]=r.useState(!1);L(()=>{if(n)return e(),()=>{t()}},[n]),L(()=>(o(!0),()=>{o(!1)}),[])};function iY(){return iY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iY.apply(this,arguments)}const aY=r.forwardRef((e,t)=>{const{className:n,style:o,motion:i,motionNodes:a,motionType:l,onMotionStart:s,onMotionEnd:c,active:u,treeNodeRequiredProps:d,...p}=e,[m,f]=r.useState(!0),{prefixCls:h}=r.useContext(wG),g=a&&"hide"!==l;L(()=>{a&&g!==m&&f(g)},[a]);const b=r.useRef(!1),v=()=>{a&&!b.current&&(b.current=!0,c())};oY(()=>{a&&s()},v);const y=e=>{g===e&&v()};return a?r.createElement(da,iY({ref:t,visible:m},i,{motionAppear:"show"===l,onVisibleChanged:y}),(e,t)=>{let{className:n,style:o}=e;return r.createElement("div",{ref:t,className:re(`${h}-treenode-motion`,n),style:o},a.map(e=>{const{data:{...t},title:n,key:o,isStart:i,isEnd:a}=e;delete t.children;const l=jO(o,d);return r.createElement(RG,iY({},t,l,{title:n,active:u,data:e.data,key:o,isStart:i,isEnd:a}))}))}):r.createElement(RG,iY({domRef:t,className:n,style:o},p,{active:u}))});const lY=aY;function sY(e,t,n){const r=e.findIndex(e=>e.key===n),o=e[r+1],i=t.findIndex(e=>e.key===n);if(o){const e=t.findIndex(e=>e.key===o.key);return t.slice(i+1,e)}return t.slice(i+1)}function cY(){return cY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cY.apply(this,arguments)}const uY=`RC_TREE_MOTION_${Math.random()}`,dY={key:uY},pY={key:uY,level:0,index:0,pos:"0",node:dY,nodes:[dY]},mY={parent:null,children:[],pos:pY.pos,data:dY,title:null,key:uY,isStart:[],isEnd:[]};function fY(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function hY(e){const{key:t,pos:n}=e;return AO(t,n)}const gY=r.forwardRef((e,t)=>{const{prefixCls:n,data:o,selectable:i,checkable:a,expandedKeys:l,selectedKeys:s,checkedKeys:c,loadedKeys:u,loadingKeys:d,halfCheckedKeys:p,keyEntities:m,disabled:f,dragging:h,dragOverNodeKey:g,dropPosition:b,motion:v,height:y,itemHeight:$,virtual:C,scrollWidth:x,focusable:w,activeItem:S,tabIndex:E,onKeyDown:k,onFocus:N,onBlur:I,onMouseDown:M,onMouseUp:P,onActiveChange:R,onListChangeStart:O,onListChangeEnd:z,...A}=e,T=Is(),B=r.useRef(null),H=r.useRef(null);r.useImperativeHandle(t,()=>({scrollTo:e=>{B.current.scrollTo(e)},getIndentWidth:()=>H.current.offsetWidth}));const[D,j]=r.useState(l),[F,W]=r.useState(o),[_,V]=r.useState(o),[X,K]=r.useState([]),[q,G]=r.useState(null),Y=r.useRef(o);function U(){const e=Y.current;W(e),V(e),K([]),G(null),z()}Y.current=o,L(()=>{j(l);const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){const n=new Map;e.forEach(e=>{n.set(e,!0)});const r=t.filter(e=>!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)}}(D,l);if(null!==e.key)if(e.add){const t=F.findIndex(t=>{let{key:n}=t;return n===e.key}),n=fY(sY(F,o,e.key),C,y,$),r=F.slice();r.splice(t+1,0,mY),V(r),K(n),G("show")}else{const t=o.findIndex(t=>{let{key:n}=t;return n===e.key}),n=fY(sY(o,F,e.key),C,y,$),r=o.slice();r.splice(t+1,0,mY),V(r),K(n),G("hide")}else F!==o&&(W(o),V(o))},[l,o]),r.useEffect(()=>{h||U()},[h]);const Q=v?_:o,Z={expandedKeys:l,selectedKeys:s,loadedKeys:u,loadingKeys:d,checkedKeys:c,halfCheckedKeys:p,dragOverNodeKey:g,dropPosition:b,keyEntities:m};return r.createElement(r.Fragment,null,r.createElement("div",{className:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},r.createElement("div",{className:`${n}-indent`},r.createElement("div",{ref:H,className:`${n}-indent-unit`}))),r.createElement(jb,cY({},A,{data:Q,itemKey:hY,height:y,fullHeight:!1,virtual:C,itemHeight:$,scrollWidth:x,prefixCls:`${n}-list`,ref:B,role:"tree",tabIndex:!1===w||f?void 0:E,"aria-activedescendant":S?ks(T,S.key):void 0,onKeyDown:k,onFocus:N,onBlur:I,onMouseDown:M,onMouseUp:P,onVisibleChange:e=>{e.every(e=>hY(e)!==uY)&&U()}}),e=>{const{pos:t,data:{...n},title:o,key:i,isStart:a,isEnd:l}=e,s=AO(i,t);delete n.key,delete n.children;const c=jO(s,Z);return r.createElement(lY,cY({},n,c,{title:o,active:!!S&&i===S.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:v,motionNodes:i===uY?X:null,motionType:q,onMotionStart:O,onMotionEnd:U,treeNodeRequiredProps:Z,treeId:T,onMouseMove:()=>{R(null)}}))}))});const bY=gY;function vY(){return vY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vY.apply(this,arguments)}class yY extends r.Component{static 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:rY,allowDrop:()=>!0,expandAction:!1}))();static TreeNode=(()=>RG)();destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};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:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:TO()}))();dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=(()=>r.createRef())();componentDidMount(){this.destroyed=!1,this.onUpdated()}componentDidUpdate(){this.onUpdated()}onUpdated(){const{activeKey:e,itemScrollOffset:t=0}=this.props;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}static getDerivedStateFromProps(e,t){const{prevProps:n}=t,r={prevProps:e};function o(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let i,{fieldNames:a}=t;if(o("fieldNames")&&(a=TO(e.fieldNames),r.fieldNames=a),o("treeData")?({treeData:i}=e):o("children")&&(g(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),i=BO(e.children)),i){r.treeData=i;const e=DO(i,{fieldNames:a});r.keyEntities={[uY]:pY,...e.keyEntities}}const l=r.keyEntities||t.keyEntities;if(o("expandedKeys")||n&&o("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?jG(e.expandedKeys,l):e.expandedKeys;else if(!n&&e.defaultExpandAll){const e={...l};delete e[uY];const t=[];Object.keys(e).forEach(n=>{const r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else!n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?jG(e.defaultExpandedKeys,l):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,i||r.expandedKeys){const e=HO(i||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=e}if(e.selectable&&(o("selectedKeys")?r.selectedKeys=DG(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=DG(e.defaultSelectedKeys,e))),e.checkable){let a;if(o("checkedKeys")?a=LG(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?a=LG(e.defaultCheckedKeys)||{}:i&&(a=LG(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),a){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=a;if(!e.checkStrictly){const e=XO(t,!0,l);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return o("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{const{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:o}=this.props,{eventKey:i}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};const a=OG(n,i);this.setState({draggingNodeKey:i,dragChildrenKeys:TG(i,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(a),window.addEventListener("dragend",this.onWindowDragEnd),o?.({event:e,node:FO(t)})};onNodeDragEnter=(e,t)=>{const{expandedKeys:n,keyEntities:r,dragChildrenKeys:o,flattenNodes:i,indent:a}=this.state,{onDragEnter:l,onExpand:s,allowDrop:c,direction:u}=this.props,{pos:d,eventKey:p}=t;if(this.currentMouseOverDroppableNodeKey!==p&&(this.currentMouseOverDroppableNodeKey=p),!this.dragNodeProps)return void this.resetDragState();const{dropPosition:m,dropLevelOffset:f,dropTargetKey:h,dropContainerKey:g,dropTargetPos:b,dropAllowed:v,dragOverNodeKey:y}=HG(e,this.dragNodeProps,t,a,this.dragStartMousePosition,c,i,r,n,u);!o.includes(h)&&v?(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(null===this.state.draggingNodeKey)return;let o=[...n];const i=OO(r,t.eventKey);i&&(i.children||[]).length&&(o=zG(n,t.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(o),s?.(o,{node:FO(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey!==h||0!==f?(this.setState({dragOverNodeKey:y,dropPosition:m,dropLevelOffset:f,dropTargetKey:h,dropContainerKey:g,dropTargetPos:b,dropAllowed:v}),l?.({event:e,node:FO(t),expandedKeys:n})):this.resetDragState()):this.resetDragState()};onNodeDragOver=(e,t)=>{const{dragChildrenKeys:n,flattenNodes:r,keyEntities:o,expandedKeys:i,indent:a}=this.state,{onDragOver:l,allowDrop:s,direction:c}=this.props;if(!this.dragNodeProps)return;const{dropPosition:u,dropLevelOffset:d,dropTargetKey:p,dropContainerKey:m,dropTargetPos:f,dropAllowed:h,dragOverNodeKey:g}=HG(e,this.dragNodeProps,t,a,this.dragStartMousePosition,s,r,o,i,c);!n.includes(p)&&h&&(this.dragNodeProps.eventKey===p&&0===d?null===this.state.dropPosition&&null===this.state.dropLevelOffset&&null===this.state.dropTargetKey&&null===this.state.dropContainerKey&&null===this.state.dropTargetPos&&!1===this.state.dropAllowed&&null===this.state.dragOverNodeKey||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&p===this.state.dropTargetKey&&m===this.state.dropContainerKey&&f===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:p,dropContainerKey:m,dropTargetPos:f,dropAllowed:h,dragOverNodeKey:g}),l?.({event:e,node:FO(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey!==t.eventKey||e.currentTarget.contains(e.relatedTarget)||(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);const{onDragLeave:n}=this.props;n?.({event:e,node:FO(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{const{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:FO(t)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDrop=(()=>{var e=this;return function(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{dragChildrenKeys:o,dropPosition:i,dropTargetKey:a,dropTargetPos:l,dropAllowed:s}=e.state;if(!s)return;const{onDrop:c}=e.props;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null===a)return;const u={...jO(a,e.getTreeNodeRequiredProps()),active:e.getActiveItem()?.key===a,data:OO(e.state.keyEntities,a).node},d=o.includes(a);g(!d,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");const p=AG(l),m={event:t,node:FO(u),dragNode:e.dragNodeProps?FO(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(o),dropToGap:0!==i,dropPosition:i+Number(p[p.length-1])};r||c?.(m),e.dragNodeProps=null}})();resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{const{draggingNodeKey:e}=this.state;null!==e&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{const{expandedKeys:n,flattenNodes:r}=this.state,{expanded:o,key:i,isLeaf:a}=t;if(a||e.shiftKey||e.metaKey||e.ctrlKey)return;const l=r.filter(e=>e.key===i)[0],s=FO({...jO(i,this.getTreeNodeRequiredProps()),data:l.data});this.setExpandedKeys(o?OG(n,i):zG(n,i)),this.onNodeExpand(e,s)};onNodeClick=(e,t)=>{const{onClick:n,expandAction:r}=this.props;"click"===r&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{const{onDoubleClick:n,expandAction:r}=this.props;"doubleClick"===r&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state;const{keyEntities:r,fieldNames:o}=this.state,{onSelect:i,multiple:a}=this.props,{selected:l}=t,s=t[o.key],c=!l;n=c?a?zG(n,s):[s]:OG(n,s);const u=n.map(e=>{const t=OO(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),i?.(n,{event:"select",selected:c,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{const{keyEntities:r,checkedKeys:o,halfCheckedKeys:i}=this.state,{checkStrictly:a,onCheck:l}=this.props,{key:s}=t;let c;const u={event:"check",node:t,checked:n,nativeEvent:e.nativeEvent};if(a){const e=n?zG(o,s):OG(o,s);c={checked:e,halfChecked:OG(i,s)},u.checkedNodes=e.map(e=>OO(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=XO([...o,s],!0,r);if(!n){const n=new Set(e);n.delete(s),({checkedKeys:e,halfCheckedKeys:t}=XO(Array.from(n),{checked:!1,halfCheckedKeys:t},r))}c=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{const t=OO(r,e);if(!t)return;const{node:n,pos:o}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:o})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}l?.(c,u)};onNodeLoad=e=>{const{key:t}=e,{keyEntities:n}=this.state,r=OO(n,t);if(r?.children?.length)return;const o=new Promise((n,r)=>{this.setState(o=>{let{loadedKeys:i=[],loadingKeys:a=[]}=o;const{loadData:l,onLoad:s}=this.props;if(!l||i.includes(t)||a.includes(t))return null;return l(e).then(()=>{const{loadedKeys:r}=this.state,o=zG(r,t);s?.(o,{event:"load",node:e}),this.setUncontrolledState({loadedKeys:o}),this.setState(e=>({loadingKeys:OG(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:OG(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=10){const{loadedKeys:e}=this.state;g(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:zG(e,t)}),n()}r(e)}),{loadingKeys:zG(a,t)}})});return o.catch(()=>{}),o};onNodeMouseEnter=(e,t)=>{const{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{const{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{const{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;const{onMouseDown:t}=this.props;t?.(e)};onMouseUp=e=>{this.focusedByMouse=!1;const{onMouseUp:t}=this.props;t?.(e)};onFocus=(()=>{var e=this;return function(){const{onFocus:t,disabled:n}=e.props,{activeKey:r,selectedKeys:o,flattenNodes:i}=e.state;if(!e.focusedByMouse&&!n&&null===r){const t=o.find(e=>i.some(t=>t.key===e));void 0!==t?e.onActiveChange(t):e.onActiveChange(i?.[0]?.key||null)}for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];t?.(...l)}})();onBlur=(()=>{var e=this;return function(){e.focusedByMouse=!1;const{onBlur:t}=e.props;e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t?.(...r)}})();getTreeNodeRequiredProps=()=>{const{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:o,halfCheckedKeys:i,dragOverNodeKey:a,dropPosition:l,keyEntities:s}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:o||[],halfCheckedKeys:i||[],dragOverNodeKey:a,dropPosition:l,keyEntities:s}};setExpandedKeys=e=>{const{treeData:t,fieldNames:n}=this.state,r=HO(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state;const{listChanging:r,fieldNames:o}=this.state,{onExpand:i,loadData:a}=this.props,{expanded:l}=t,s=t[o.key];if(r)return;const c=n.includes(s),u=!l;if(g(l&&c||!l&&!c,"Expand state not sync with index check"),n=u?zG(n,s):OG(n,s),this.setExpandedKeys(n),i?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&a){const e=this.onNodeLoad(t);e&&e.then(()=>{const e=HO(this.state.treeData,n,o);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{const{expandedKeys:e}=this.state,t=OG(e,s);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{const{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{const{activeKey:e,flattenNodes:t}=this.state;return null===e?null:t.find(t=>{let{key:n}=t;return n===e})||null};offsetActiveKey=e=>{const{flattenNodes:t,activeKey:n}=this.state;let r=t.findIndex(e=>{let{key:t}=e;return t===n});-1===r&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;const o=t[r];if(o){const{key:e}=o;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{const{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:o,keyEntities:i}=this.state,{onKeyDown:a,checkable:l,selectable:s,disabled:c,loadData:u}=this.props;if(c)return;switch(e.key){case"ArrowUp":this.offsetActiveKey(-1),e.preventDefault();break;case"ArrowDown":this.offsetActiveKey(1),e.preventDefault();break;case"Home":this.onActiveChange(o?.[0]?.key),e.preventDefault();break;case"End":this.onActiveChange(o?.[o.length-1]?.key),e.preventDefault()}const d=this.getActiveItem();if(d&&d.data){const o=FO({...jO(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),a=OO(i,t),c=!!a?.children?.length,p=!LO(d.data.isLeaf,u,c,o.loaded),m=l&&!o.disabled&&!1!==o.checkable&&!o.disableCheckbox,f=!l&&s&&!o.disabled&&!1!==o.selectable;switch(e.key){case"ArrowLeft":p&&n.includes(t)?this.onNodeExpand({},o):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case"ArrowRight":p&&!n.includes(t)?this.onNodeExpand({},o):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case"Enter":p?(e.preventDefault(),this.onNodeExpand({},o)):m?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},o,!0)):f&&!o.selected&&(e.preventDefault(),this.onNodeSelect({},o));break;case" ":m?(e.preventDefault(),this.onNodeCheck({},o,!r.includes(t))):f&&(e.preventDefault(),this.onNodeSelect({},o))}}a?.(e)};setUncontrolledState=(()=>{var e=this;return function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){let o=!1,i=!0;const a={};Object.keys(t).forEach(n=>{e.props.hasOwnProperty(n)?i=!1:(o=!0,a[n]=t[n])}),!o||n&&!i||e.setState({...a,...r})}}})();scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){const{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:o,dropContainerKey:i,dropTargetKey:a,dropPosition:l,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:u,className:d,style:p,styles:m,classNames:f,showLine:h,focusable:g,tabIndex:b=0,selectable:v,showIcon:y,icon:$,switcherIcon:C,draggable:x,checkable:w,checkStrictly:S,disabled:E,motion:k,loadData:N,filterTreeNode:I,height:M,itemHeight:P,scrollWidth:R,virtual:O,titleRender:z,dropIndicatorRender:A,onContextMenu:T,onScroll:B,direction:H,rootClassName:D,rootStyle:L}=this.props,j=fa(this.props,{aria:!0,data:!0});let F;x&&(F="object"===typeof x?x:"function"===typeof x?{nodeDraggable:x}:{});const W={styles:m,classNames:f,prefixCls:u,selectable:v,showIcon:y,icon:$,switcherIcon:C,draggable:F,draggingNodeKey:n,checkable:w,checkStrictly:S,disabled:E,keyEntities:t,dropLevelOffset:o,dropContainerKey:i,dropTargetKey:a,dropPosition:l,dragOverNodeKey:s,indent:c,direction:H,dropIndicatorRender:A,loadData:N,filterTreeNode:I,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return r.createElement(wG.Provider,{value:W},r.createElement("div",{className:re(u,d,D,{[`${u}-show-line`]:h}),style:L},r.createElement(bY,vY({ref:this.listRef,prefixCls:u,style:p,data:e,disabled:E,selectable:v,checkable:!!w,motion:k,dragging:null!==n,height:M,itemHeight:P,virtual:O,focusable:g,tabIndex:b,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:T,onScroll:B,scrollWidth:R},this.getTreeNodeRequiredProps(),j))))}}const $Y=yY;const CY={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"};function xY(){return xY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xY.apply(this,arguments)}const wY=r.forwardRef((e,t)=>r.createElement(si,xY({},e,{ref:t,icon:CY})));const SY={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"};function EY(){return EY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EY.apply(this,arguments)}const kY=r.forwardRef((e,t)=>r.createElement(si,EY({},e,{ref:t,icon:SY})));const NY={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"};function IY(){return IY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IY.apply(this,arguments)}const MY=r.forwardRef((e,t)=>r.createElement(si,IY({},e,{ref:t,icon:NY})));const PY={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"};function RY(){return RY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RY.apply(this,arguments)}const OY=r.forwardRef((e,t)=>r.createElement(si,RY({},e,{ref:t,icon:PY}))),zY=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:o,motionDurationMid:i,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`&:has(${t}-drop-indicator)`]:{position:"relative"},[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{background:r,borderRadius:a,[`${t}-switcher, ${t}-draggable-icon`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent","&, &:hover":{color:o},"&:before, &:hover:before":{background:r}}}}}},AY=new Bn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),TY=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),BY=(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:`${lt(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),HY=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,switcherSize:l,motionDurationMid:s,nodeSelectedBg:c,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:p}=t;return{[n]:{...br(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`${n}-list`]:{"&:focus-visible":{outline:"none",[`${r}-active ${n}-node-content-wrapper`]:{...vr(t)}}},[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:AY,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:lt(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:p},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:l,textAlign:"center",visibility:"visible",color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(l).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0},[`${n}-switcher`]:{...TY(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:l,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:l,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(l).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(l).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${n}-node-content-wrapper`]:{position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:[`all ${s}`,"border 0s","line-height 0s","box-shadow 0s"].join(", "),...BY(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:c},[`${n}-iconEle`]:{display:"inline-block",width:l,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(l).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:`${lt(t.calc(i).div(2).equal())} !important`}}}},DY=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=ir(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[HY(e,a),n&&zY(a)].filter(Boolean)},LY=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e;return{titleHeight:t,switcherSize:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},jY=To("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:pz(`${n}-checkbox`,e)},DY(n,e),fd(e)]},e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return{...LY(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),FY=e=>{const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",s="ltr"===a?"right":"left",c={[l]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=i+4}return r.createElement("div",{style:c,className:`${o}-drop-indicator`})};const WY={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"};function _Y(){return _Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_Y.apply(this,arguments)}const VY=r.forwardRef((e,t)=>r.createElement(si,_Y({},e,{ref:t,icon:WY})));const XY={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"};function KY(){return KY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KY.apply(this,arguments)}const qY=r.forwardRef((e,t)=>r.createElement(si,KY({},e,{ref:t,icon:XY})));const GY={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"};function YY(){return YY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YY.apply(this,arguments)}const UY=r.forwardRef((e,t)=>r.createElement(si,YY({},e,{ref:t,icon:GY}))),QY=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:o,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:l,expanded:s,loading:c}=o;if(c)return r.isValidElement(a)?a:r.createElement(kl,{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(o):u,n=`${t}-switcher-line-custom-icon`;return r.isValidElement(e)?Ml(e,{className:re(e.props?.className,n)}):e}return u?r.createElement(wY,{className:`${t}-switcher-line-icon`}):r.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,p="function"===typeof n?n(o):n;return r.isValidElement(p)?Ml(p,{className:re(p.props?.className,i?`${t}-switcher-line-icon`:d)}):void 0!==p?p:i?s?r.createElement(qY,{className:`${t}-switcher-line-icon`}):r.createElement(UY,{className:`${t}-switcher-line-icon`}):r.createElement(VY,{className:d})},ZY=r.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,className:i,style:a,classNames:l,styles:s}=xe("tree"),{virtual:c}=r.useContext(ye),{prefixCls:u,className:d,showIcon:p=!1,showLine:m,switcherIcon:f,switcherLoadingIcon:h,blockNode:g=!1,children:b,checkable:v=!1,selectable:y=!0,draggable:$,disabled:C,motion:x,style:w,rootClassName:S,classNames:E,styles:k,icon:N}=e,I=r.useContext($c),M=C??I,P=n("tree",u),R=n(),O=x??{...Gc(R),motionAppear:!1},z={...e,showIcon:p,blockNode:g,checkable:v,selectable:y,disabled:M,motion:O},[A,T]=Ca([l,E],[s,k],{props:z}),B={...z,showLine:Boolean(m),icon:N,dropIndicatorRender:FY},[H,D]=jY(P),[,L]=Ao(),j=L.paddingXS/2+(L.Tree?.titleHeight||L.controlHeightSM),F=r.useMemo(()=>{if(!$)return!1;let e={};switch(typeof $){case"function":e.nodeDraggable=$;break;case"object":e={...$}}return!1!==e.icon&&(e.icon=e.icon||r.createElement(OY,null)),e},[$]);return r.createElement($Y,{itemHeight:j,ref:t,virtual:c,...B,prefixCls:P,className:re({[`${P}-icon-hide`]:!p,[`${P}-block-node`]:g,[`${P}-unselectable`]:!y,[`${P}-rtl`]:"rtl"===o,[`${P}-disabled`]:M},i,d,H,D),style:{...a,...w},rootClassName:re(A.root,S),rootStyle:T.root,classNames:A,styles:T,direction:o,checkable:v?r.createElement("span",{className:`${P}-checkbox-inner`}):v,selectable:y,switcherIcon:e=>r.createElement(QY,{prefixCls:P,switcherIcon:f,switcherLoadingIcon:h,treeNodeProps:e,showLine:m}),draggable:F},b)});const JY=ZY;function eU(e,t,n){const{key:r,children:o}=n;e.forEach(function(e){const i=e[r],a=e[o];!1!==t(i,e)&&eU(a||[],t,n)})}function tU(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 eU(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)},TO(i)),a}function nU(e,t,n){const r=le(t),o=[];return eU(e,(e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length},TO(n)),o}function rU(e){const{isLeaf:t,expanded:n}=e;return t?r.createElement(wY,null):n?r.createElement(kY,null):r.createElement(MY,null)}function oU(e){let{treeData:t,children:n}=e;return t||BO(n)}const iU=r.forwardRef((e,t)=>{const{defaultExpandAll:n,defaultExpandParent:o,defaultExpandedKeys:i,...a}=e,l=r.useRef(null),s=r.useRef(null),[c,u]=r.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,p]=r.useState(()=>(()=>{const{keyEntities:e}=DO(oU(a),{fieldNames:a.fieldNames});let t;const r=a.expandedKeys||i||[];return t=n?Object.keys(e):o?jG(r,e):r,t})());r.useEffect(()=>{"selectedKeys"in a&&u(a.selectedKeys)},[a.selectedKeys]),r.useEffect(()=>{"expandedKeys"in a&&p(a.expandedKeys)},[a.expandedKeys]);const{getPrefixCls:m,direction:f}=r.useContext(ye),{prefixCls:h,className:g,showIcon:b=!0,expandAction:v="click",...y}=a,$=m("tree",h),C=re(`${$}-directory`,{[`${$}-directory-rtl`]:"rtl"===f},g);return r.createElement(JY,{icon:rU,ref:t,blockNode:!0,...y,showIcon:b,expandAction:v,prefixCls:$,className:C,expandedKeys:d,selectedKeys:c,onSelect:(e,t)=>{const{multiple:n,fieldNames:r}=a,{node:o,nativeEvent:i}=t,{key:c=""}=o,p=oU(a),m={...t,selected:!0},f=i?.ctrlKey||i?.metaKey,h=i?.shiftKey;let g;n&&f?(g=e,l.current=c,s.current=g,m.selectedNodes=nU(p,g,r)):n&&h?(g=Array.from(new Set([].concat(le(s.current||[]),le(tU({treeData:p,expandedKeys:d,startKey:c,endKey:l.current,fieldNames:r}))))),m.selectedNodes=nU(p,g,r)):(g=[c],l.current=c,s.current=g,m.selectedNodes=nU(p,g,r)),a.onSelect?.(g,m),"selectedKeys"in a||u(g)},onExpand:(e,t)=>("expandedKeys"in a||p(e),a.onExpand?.(e,t))})});const aU=iU,lU=JY;lU.DirectoryTree=aU,lU.TreeNode=RG;const sU=lU,cU=e=>{const{value:t,filterSearch:n,tablePrefixCls:o,locale:i,onChange:a}=e;return n?r.createElement("div",{className:`${o}-filter-dropdown-search`},r.createElement(BT,{prefix:r.createElement(Gv,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null},uU=e=>{const{keyCode:t}=e;t===ul.ENTER&&e.stopPropagation()},dU=r.forwardRef((e,t)=>r.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:uU,ref:t},e.children));const pU=dU;function mU(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat(le(t),le(mU(r))))}),t}function fU(e,t){return("string"===typeof t||"number"===typeof t)&&t?.toString().toLowerCase().includes(e.trim().toLowerCase())}function hU(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map((e,t)=>{const s=String(e.value);if(e.children)return{key:s||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:hU({filters:e.children,prefixCls:n,filteredKeys:o,filterMultiple:i,searchValue:a,filterSearch:l})};const c=i?Tz:qV,u={key:void 0!==e.value?s:t,label:r.createElement(r.Fragment,null,r.createElement(c,{checked:o.includes(s)}),r.createElement("span",null,e.text))};return a.trim()?"function"===typeof l?l(a,e)?u:null:fU(a,e.text)?u:null:u})}function gU(e){return e||[]}const bU=e=>{const{tablePrefixCls:t,prefixCls:n,column:o,dropdownPrefixCls:i,columnKey:a,filterOnClose:l,filterMultiple:s,filterMode:c="menu",filterSearch:u=!1,filterState:d,triggerFilter:p,locale:m,children:f,getPopupContainer:h,rootClassName:g}=e,{filterResetToDefaultFilteredValue:b,defaultFilteredValue:v,filterDropdownProps:y={},filterDropdownOpen:$,onFilterDropdownOpenChange:C}=o,[x,w]=r.useState(!1),S=r.useContext(jy),E=!(!d||!d.filteredKeys?.length&&!d.forceFiltered),k=e=>{w(e),y.onOpenChange?.(e),C?.(e)};const N=y.open??$??x,I=d?.filteredKeys,[M,P]=(e=>{const t=r.useRef(e),[,n]=fy();return[()=>t.current,e=>{t.current=e,n()}]})(gU(I)),R=e=>{let{selectedKeys:t}=e;P(t)},O=(e,t)=>{let{node:n,checked:r}=t;R(s?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};r.useEffect(()=>{x&&R({selectedKeys:gU(I)})},[I]);const[z,A]=r.useState([]),T=e=>{A(e)},[B,H]=r.useState(""),D=e=>{const{value:t}=e.target;H(t)};r.useEffect(()=>{x||H("")},[x]);const L=e=>{const t=e?.length?e:null;return null!==t||d&&d.filteredKeys?je(t,d?.filteredKeys,!0)?null:void p({column:o,key:a,filteredKeys:t}):null},j=()=>{k(!1),L(M())},F=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&L([]),t&&k(!1),H(""),P(b?(v||[]).map(String):[])},W=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&k(!1),L(M())},_=re({[`${i}-menu-without-submenu`]:(V=o.filters||[],!V.some(e=>{let{children:t}=e;return t}))});var V;const X=e=>{if(e.target.checked){const e=mU(o?.filters).map(String);P(e)}else P([])},K=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=K({filters:e.children})),r})},q=e=>({...e,text:e.title,value:e.key,children:e.children?.map(q)||[]});let G;const{direction:Y,renderEmpty:U}=r.useContext(ye);if("function"===typeof o.filterDropdown)G=o.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>R({selectedKeys:e}),selectedKeys:M(),confirm:W,clearFilters:F,filters:o.filters,visible:N,close:()=>{k(!1)}});else if(o.filterDropdown)G=o.filterDropdown;else{const e=M()||[],a=()=>{const a=U?.("Table.filter")??r.createElement(sv,{image:sv.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(o.filters||[]).length)return a;if("tree"===c)return r.createElement(r.Fragment,null,r.createElement(cU,{filterSearch:u,value:B,onChange:D,tablePrefixCls:t,locale:m}),r.createElement("div",{className:`${t}-filter-dropdown-tree`},s?r.createElement(Tz,{checked:e.length===mU(o.filters).length,indeterminate:e.length>0&&e.length<mU(o.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:X},m?.filterCheckall??m?.filterCheckAll):null,r.createElement(sU,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${i}-menu`,onCheck:O,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:K({filters:o.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:B.trim()?e=>"function"===typeof u?u(B,q(e)):fU(B,e.title):void 0})));const l=hU({filters:o.filters||[],filterSearch:u,prefixCls:n,filteredKeys:M(),filterMultiple:s,searchValue:B}),d=l.every(e=>null===e);return r.createElement(r.Fragment,null,r.createElement(cU,{filterSearch:u,value:B,onChange:D,tablePrefixCls:t,locale:m}),d?a:r.createElement(Yx,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:_,onSelect:R,onDeselect:R,selectedKeys:e,getPopupContainer:h,openKeys:z,onOpenChange:T,items:l}))},l=()=>b?je((v||[]).map(String),e,!0):0===e.length;G=r.createElement(r.Fragment,null,a(),r.createElement("div",{className:`${n}-dropdown-btns`},r.createElement(Qd,{type:"link",size:"small",disabled:l(),onClick:()=>F()},m.filterReset),r.createElement(Qd,{type:"primary",size:"small",onClick:j},m.filterConfirm)))}o.filterDropdown&&(G=r.createElement(Px,{selectable:void 0},G)),G=r.createElement(pU,{className:`${n}-dropdown`},G);const Q=(()=>{let e;return e="function"===typeof o.filterIcon?o.filterIcon(E):o.filterIcon?o.filterIcon:r.createElement(nY,null),r.createElement("span",{role:"button",tabIndex:-1,className:re(`${n}-trigger`,{active:E}),onClick:e=>{e.stopPropagation()}},e)})();if(S)return r.createElement("div",{className:`${n}-column`},r.createElement("span",{className:`${t}-column-title`},f),Q);const Z=Qm({trigger:["click"],placement:"rtl"===Y?"bottomLeft":"bottomRight",children:Q,getPopupContainer:h},{...y,rootClassName:re(g,y.rootClassName),open:N,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==I&&P(gU(I)),k(e),e||o.filterDropdown||!l||j())},popupRender:()=>"function"===typeof y?.dropdownRender?y.dropdownRender(G):G});return r.createElement("div",{className:`${n}-column`},r.createElement("span",{className:`${t}-column-title`},f),r.createElement(ID,{...Z}))},vU=(e,t,n)=>{let r=[];return(e||[]).forEach((e,o)=>{const i=ZG(o,n),a=void 0!==e.filterDropdown;if(e.filters||a||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;a||(t=t?.map(String)??t),r.push({column:e,key:QG(e,i),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:QG(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(le(r),le(vU(e.children,t,i))))}),r};function yU(e,t,n,o,i,a,l,s,c){return n.map((n,u)=>{const d=ZG(u,s),{filterOnClose:p=!0,filterMultiple:m=!0,filterMode:f,filterSearch:h}=n;let g=n;if(g.filters||g.filterDropdown){const s=QG(g,d),u=o.find(e=>{let{key:t}=e;return s===t});g={...g,title:o=>r.createElement(bU,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:s,filterState:u,filterOnClose:p,filterMultiple:m,filterMode:f,filterSearch:h,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:c},JG(n.title,o))}}return"children"in g&&(g={...g,children:yU(e,t,g.children,o,i,a,l,d,c)}),g})}const $U=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=mU(a);t[i]=e.filter(e=>r.includes(String(e)))}else t[i]=null}),t},CU=(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=>({...e})).filter(e=>a.some(r=>{const a=mU(i),l=a.findIndex(e=>String(e)===String(r)),s=-1!==l?a[l]:r;return e[n]&&(e[n]=CU(e[n],t,n)),o(s,e)})):e},e);return r},xU=e=>e.flatMap(e=>"children"in e?[e].concat(le(xU(e.children||[]))):[e]),wU=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:s}=e,c=(ll("Table"),r.useMemo(()=>xU(o||[]),[o])),[u,d]=r.useState(()=>vU(c,!0)),p=r.useMemo(()=>{const e=vU(c,!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=(c||[]).map((e,t)=>QG(e,ZG(t)));return u.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{const n=c[e.indexOf(t.key)];return{...t,column:{...t.column,...n},forceFiltered:n.filtered}})}return e},[c,u]),m=r.useMemo(()=>$U(p),[p]),f=e=>{const t=p.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),d(t),i($U(t),t)};return[e=>yU(t,n,e,p,l,f,a,void 0,s),p,m]},SU=(e,t,n)=>{const o=r.useRef({});return[function(r){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==t||o.current.getRowKey!==n){const i=new Map;function a(e){e.forEach((e,r)=>{const o=n(e,r);i.set(o,e),e&&"object"===typeof e&&t in e&&a(e[t]||[])})}a(e),o.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return o.current.kvMap?.get(r)}]},EU=10;const kU=function(e,t,n){const{total:o=0,...i}=n&&"object"===typeof n?n:{},[a,l]=(0,r.useState)(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:EU})),s=Qm(a,i,{total:o>0?o:e}),c=Math.ceil((o||e)/s.pageSize);s.current>c&&(s.current=c||1);const u=(e,t)=>{l({current:e??1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[{...s,onChange:(e,r)=>{n&&n.onChange?.(e,r),u(e,r),t(e,r||s?.pageSize)}},u]};const NU={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"};function IU(){return IU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IU.apply(this,arguments)}const MU=r.forwardRef((e,t)=>r.createElement(si,IU({},e,{ref:t,icon:NU})));const PU={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"};function RU(){return RU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RU.apply(this,arguments)}const OU=r.forwardRef((e,t)=>r.createElement(si,RU({},e,{ref:t,icon:PU}))),zU="ascend",AU="descend",TU=e=>"object"===typeof e.sorter&&"number"===typeof e.sorter.multiple&&e.sorter.multiple,BU=e=>"function"===typeof e?e:!(!e||"object"!==typeof e||!e.compare)&&e.compare,HU=(e,t,n)=>{let r=[];const o=(e,t)=>{r.push({column:e,key:QG(e,t),multiplePriority:TU(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,i)=>{const a=ZG(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(le(r),le(HU(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:QG(e,a),multiplePriority:TU(e),sortOrder:e.defaultSortOrder}))}),r},DU=(e,t,n,o,i,a,l,s,c)=>{const u=(t||[]).map((t,u)=>{const d=ZG(u,s);let p=t;if(p.sorter){const s=p.sortDirections||i,u=void 0===p.showSorterTooltip?l:p.showSorterTooltip,m=QG(p,d),f=n.find(e=>{let{key:t}=e;return t===m}),h=f?f.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(s,h);let b;if(t.sortIcon)b=t.sortIcon({sortOrder:h});else{const t=s.includes(zU)&&r.createElement(OU,{className:re(`${e}-column-sorter-up`,{active:h===zU})}),n=s.includes(AU)&&r.createElement(MU,{className:re(`${e}-column-sorter-down`,{active:h===AU})});b=r.createElement("span",{className:re(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},r.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:y,triggerDesc:$}=a||{};let C=v;g===AU?C=$:g===zU&&(C=y);const x="object"===typeof u?{title:C,...u}:{title:C};p={...p,className:re(p.className,{[`${e}-column-sort`]:h}),title:n=>{const o=`${e}-column-sorters`,i=r.createElement("span",{className:`${e}-column-title`},JG(t.title,n)),a=r.createElement("div",{className:o},i,b);return u?"boolean"!==typeof u&&"sorter-icon"===u?.target?r.createElement("div",{className:re(o,`${o}-tooltip-target-sorter`)},i,r.createElement(Jy,{...x},b)):r.createElement(Jy,{...x},a):a},onHeaderCell:n=>{const r=t.onHeaderCell?.(n)||{},i=r.onClick,a=r.onKeyDown;r.onClick=e=>{o({column:t,key:m,sortOrder:g,multiplePriority:TU(t)}),i?.(e)},r.onKeyDown=e=>{e.keyCode===ul.ENTER&&(o({column:t,key:m,sortOrder:g,multiplePriority:TU(t)}),a?.(e))};const l=((e,t)=>{const n=JG(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),s=l?.toString();return h&&(r["aria-sort"]="ascend"===h?"ascending":"descending"),r["aria-description"]=c?.sortable,r["aria-label"]=s||"",r.className=re(r.className,`${e}-column-has-sorters`),r.tabIndex=0,t.ellipsis&&(r.title=(l??"").toString()),r}}}return"children"in p&&(p={...p,children:DU(e,p.children,n,o,i,a,l,d,c)}),p});return u},LU=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},jU=e=>{const t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(LU);if(0===t.length&&e.length){const t=e.length-1;return{...LU(e[t]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},FU=(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 BU(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=BU(o);if(l&&a){const n=l(e,t,a);if(0!==n)return a===zU?n:-n}}return 0}).map(e=>{const r=e[n];return r?{...e,[n]:FU(r,t,n)}:e}):o},WU=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:o,tableLocale:i,showSorterTooltip:a,onSorterChange:l,globalLocale:s}=e,[c,u]=r.useState(()=>HU(n,!0)),d=(e,t)=>{const n=[];return e.forEach((e,r)=>{const o=ZG(r,t);if(n.push(QG(e,o)),Array.isArray(e.children)){const t=d(e.children,o);n.push.apply(n,le(t))}}),n},p=r.useMemo(()=>{let e=!0;const t=HU(n,!1);if(!t.length){const e=d(n);return c.filter(t=>{let{key:n}=t;return e.includes(n)})}const r=[];function o(t){e?r.push(t):r.push({...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]),m=r.useMemo(()=>{const e=p.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[p]),f=e=>{let t;t=!1!==e.multiplePriority&&p.length&&!1!==p[0].multiplePriority?[].concat(le(p.filter(t=>{let{key:n}=t;return n!==e.key})),[e]):[e],u(t),l(jU(t),t)};return[e=>DU(t,e,p,f,o,i,a,void 0,s),p,m,()=>jU(p)]},_U=(e,t)=>{const n=e.map(e=>{const n={...e};return n.title=JG(e.title,t),"children"in n&&(n.children=_U(n.children,t)),n});return n},VU=e=>{const t=r.useCallback(t=>_U(t,e),[e]);return[t]},XU=iG((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),KU=XU,qU=$G((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),GU=qU,YU=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,c=`${lt(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:`${lt(s(r).mul(-1).equal())}\n ${lt(s(s(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\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:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${lt(s(a).mul(-1).equal())} ${lt(s(s(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,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("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:c,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${lt(n)} 0 ${lt(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},UU=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...gr,wordBreak:"keep-all",[`\n &${t}-cell-fix-start-shadow,\n &${t}-cell-fix-end-shadow\n `]:{overflow:"visible",[`${t}-cell-content`]:{...gr,display:"block"}},[`${t}-column-title`]:{...gr,wordBreak:"keep-all"}}}}},QU=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}}}}},ZU=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:p,tableExpandedRowBg:m,paddingXXS:f,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:b,expandIconScale:v,calc:y}=e,$=`${lt(o)} ${a} ${l}`,C=y(f).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${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`]:{...Cr(e),position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:lt(g),background:s,border:$,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:b,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:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${lt(y(d).mul(-1).equal())} ${lt(y(p).mul(-1).equal())}`,padding:`${lt(d)} ${lt(p)}`}}}},JU=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:p,fontSizeSM:m,tablePaddingHorizontal:f,borderRadius:h,motionDurationSlow:g,colorIcon:b,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:$,tableFilterDropdownBg:C,tableFilterDropdownHeight:x,controlItemBgHover:w,controlItemBgActive:S,boxShadowSecondary:E,filterDropdownMenuBg:k,calc:N}=e,I=`${n}-dropdown`,M=`${t}-filter-dropdown`,P=`${n}-tree`,R=`${lt(c)} ${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:`${lt(a)} ${lt(N(f).div(2).mul(-1).equal())}`,padding:`0 ${lt(a)}`,color:p,fontSize:m,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:b,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[M]:{...br(e),minWidth:o,backgroundColor:C,borderRadius:h,boxShadow:E,overflow:"hidden",[`${I}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${lt(l)} 0`,color:$,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${lt(l)} 0`,paddingInline:l,[P]:{padding:0},[`${P}-treenode ${P}-node-content-wrapper:hover`]:{backgroundColor:w},[`${P}-treenode-checkbox-checked ${P}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${M}-search`]:{padding:l,borderBottom:R,"&-input":{input:{minWidth:i},[r]:{color:$}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${lt(N(l).sub(c).equal())} ${lt(l)}`,overflow:"hidden",borderTop:R}}}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};function eQ(e){let{colorSplit:t}=e;return[{boxShadow:`inset 10px 0 8px -8px ${t}`},{boxShadow:`inset -10px 0 8px -8px ${t}`}]}const tQ=e=>{const{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:o,tableBg:i,calc:a}=e,l=`${t}-cell`,s=`${l}-fix`,c={position:"absolute",top:0,bottom:a(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[u,d]=eQ(e);return{[`${t}-wrapper`]:{[`${l}${s}`]:{position:"sticky"},[s]:{zIndex:`calc(var(--z-offset-reverse) + ${o})`,background:i,"&:after":c,"&-start:after":{insetInlineStart:"100%"},"&-end:after":{insetInlineEnd:"100%"},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:"relative","&:before, &:after":{...c,zIndex:`calc(var(--columns-count) * 2 + ${o} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:"none"},[`${t}-has-fix-end ${t}-container:after`]:{display:"none"},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},nQ=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${lt(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"}}}}},rQ=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${lt(n)} ${lt(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,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${lt(n)} ${lt(n)}`}}}}},oQ=e=>{const{componentCls:t}=e,[n,r]=eQ(e);return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:"right"}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},iQ=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:p,tablePaddingHorizontal:m,calc:f}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(o).add(f(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:f(c).add(f(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(o).add(f(i).div(4)).add(f(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:f(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:lt(f(m).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},aQ=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:`${lt(o)} ${lt(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:lt(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${lt(r(o).mul(-1).equal())} ${lt(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:lt(r(o).mul(-1).equal()),marginInline:`${lt(r(n).sub(i).equal())} ${lt(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:lt(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:{...o("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},lQ=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},sQ=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,stickyScrollBarBorderRadius:l,lineWidth:s,lineType:c,tableBorderColor:u,zIndexTableFixed:d}=e,p=`${lt(s)} ${c} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${lt(i)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:"flex",alignItems:"center",background:a,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},cQ=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${lt(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 ${lt(o(n).mul(-1).equal())} 0 ${r}`}}}},uQ=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${lt(r)} ${o} ${i}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row,\n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${lt(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}}}}}},dQ=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:s,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:p,motionDurationMid:m,tableHeaderBg:f,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:b,calc:v}=e,y=`${lt(a)} ${l} ${s}`;return{[`${t}-wrapper`]:{clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg,"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},[t]:{...br(e),fontSize:c,background:u,borderRadius:`${lt(d)} ${lt(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${lt(d)} ${lt(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:`${lt(r)} ${lt(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${lt(r)} ${lt(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:f,borderBottom:y,transition:`background-color ${m} 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 ${m}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:y,transition:["background-color","border-color"].map(e=>`${e} ${m}`).join(", "),[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:lt(v(r).mul(-1).equal()),marginInline:`${lt(v(i).sub(o).equal())}\n ${lt(v(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:f,borderBottom:y,transition:`background-color ${m} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${lt(r)} ${lt(o)}`,color:g,background:b}}}},pQ=To("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:p,rowExpandedBg:m,cellPaddingBlock:f,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:b,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:$,footerBg:C,footerColor:x,headerBorderRadius:w,cellFontSize:S,cellFontSizeMD:E,cellFontSizeSM:k,headerSplitColor:N,fixedHeaderSortActiveBg:I,headerFilterHoverBg:M,filterDropdownBg:P,expandIconBg:R,selectionColumnWidth:O,stickyScrollBarBg:z,calc:A}=e,T=ir(e,{tableFontSize:S,tableBg:r,tableRadius:w,tablePaddingVertical:f,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:$,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:x,tableFooterBg:C,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:P,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:p,zIndexTableFixed:2,tableFontSizeMiddle:E,tableFontSizeSmall:k,tableSelectionColumnWidth:O,tableExpandIconBg:R,tableExpandColumnWidth:A(o).add(A(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:z,tableScrollThumbBgHover:t,tableScrollBg:n});return[dQ(T),nQ(T),cQ(T),lQ(T),JU(T),YU(T),rQ(T),ZU(T),cQ(T),QU(T),iQ(T),tQ(T),sQ(T),UU(T),aQ(T),oQ(T),uQ(T)]},e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:p,controlHeight:m,colorTextPlaceholder:f,fontSize:h,fontSizeSM:g,lineHeight:b,lineWidth:v,colorIcon:y,colorIconHover:$,opacityLoading:C,controlInteractiveSize:x}=e,w=new Or(o).onBackground(n).toHexString(),S=new Or(i).onBackground(n).toHexString(),E=new Or(t).onBackground(n).toHexString(),k=new Or(y),N=new Or($),I=x/2-v,M=2*I+3*v;return{headerBg:E,headerColor:r,headerSortActiveBg:w,headerSortHoverBg:S,bodySortBg:E,rowHoverBg:E,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:p,footerBg:E,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:w,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:f,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*b-3*v)/2-Math.ceil((1.4*g-3*v)/2),headerIconColor:k.clone().setA(k.a*C).toRgbString(),headerIconHoverColor:N.clone().setA(N.a*C).toRgbString(),expandIconHalfInner:I,expandIconSize:M,expandIconScale:x/M}},{resetFont:!1,unitless:{expandIconScale:!0}}),mQ=[],fQ=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:a,classNames:l,styles:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:p,pagination:m,rowSelection:f,rowKey:h,rowClassName:g,columns:b,children:v,childrenColumnName:y,onChange:$,getPopupContainer:C,loading:x,expandIcon:w,expandable:S,expandedRowRender:E,expandIconColumnIndex:k,indentSize:N,scroll:I,sortDirections:M,locale:P,showSorterTooltip:R={target:"full-header"},virtual:O}=e,z=(ll("Table"),r.useMemo(()=>b||Dq(v),[b,v])),A=r.useMemo(()=>z.some(e=>e.responsive),[z]),T=hy(A),B=r.useMemo(()=>{const e=new Set(Object.keys(T).filter(e=>T[e]));return z.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[z,T]),H=Y(e,["className","style","columns"]),{locale:D=ss,table:L}=r.useContext(ye),{getPrefixCls:j,direction:F,renderEmpty:W,getPopupContainer:_,className:V,style:X,classNames:K,styles:q}=xe("table"),G=ou(e=>"middle"===c?"medium":c??e),U={...e,size:G,bordered:u},[Q,Z]=Ca([K,l],[q,s],{props:U},{pagination:{_default:"root"},header:{_default:"wrapper"},body:{_default:"wrapper"}}),J={...D.Table,...P},[ee]=Yc("global",ss.global),te=p||mQ,ne=j("table",n),oe=j("dropdown",d),[,ie]=Ao(),ae=Ka(ne),[le,se]=pQ(ne,ae),ce={childrenColumnName:y,expandIconColumnIndex:k,...S,expandIcon:S?.expandIcon??L?.expandable?.expandIcon},{childrenColumnName:ue="children"}=ce,de=r.useMemo(()=>te.some(e=>e?.[ue])?"nest":E||S?.expandedRowRender?"row":null,[ue,te]),pe={body:r.useRef(null)},me=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-Number.parseInt(e.borderLeftWidth,10)-Number.parseInt(e.borderRightWidth,10)}return o}}(ne),fe=r.useRef(null),he=r.useRef(null);YG(t,()=>({...he.current,nativeElement:fe.current}));const ge=h||L?.rowKey||"key",be=I??L?.scroll;const ve=r.useMemo(()=>"function"===typeof ge?ge:e=>e?.[ge],[ge]),[$e]=SU(te,ue,ve),Ce={},we=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r={...Ce,...e};n&&(Ce.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),m&&m.onChange?.(1,r.pagination?.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&pe.body.current&&Xa(0,{getContainer:()=>pe.body.current}),$?.(r.pagination,r.filters,r.sorter,{currentDataSource:CU(FU(te,r.sorterStates,ue),r.filterStates,ue),action:t})},[Se,Ee,ke,Ne]=WU({prefixCls:ne,mergedColumns:B,onSorterChange:(e,t)=>{we({sorter:e,sorterStates:t},"sort",!1)},sortDirections:M||["ascend","descend"],tableLocale:J,showSorterTooltip:R,globalLocale:ee}),Ie=r.useMemo(()=>FU(te,Ee,ue),[ue,te,Ee]);Ce.sorter=Ne(),Ce.sorterStates=Ee;const[Me,Pe,Re]=wU({prefixCls:ne,locale:J,dropdownPrefixCls:oe,mergedColumns:B,onFilterChange:(e,t)=>{we({filters:e,filterStates:t},"filter",!0)},getPopupContainer:C||_,rootClassName:re(i,ae)}),Oe=CU(Ie,Pe,ue);Ce.filters=Re,Ce.filterStates=Pe;const ze=r.useMemo(()=>{const e={};return Object.keys(Re).forEach(t=>{null!==Re[t]&&(e[t]=Re[t])}),{...ke,filters:e}},[ke,Re]),[Ae]=VU(ze),[Te,Be]=kU(Oe.length,(e,t)=>{we({pagination:{...Ce.pagination,current:e,pageSize:t}},"paginate")},m);Ce.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"===typeof t?t:{};return Object.keys(r).forEach(t=>{const r=e[t];"function"!==typeof r&&(n[t]=r)}),n}(Te,m),Ce.resetPagination=Be;const He=r.useMemo(()=>{if(!1===m||!Te.pageSize)return Oe;const{current:e=1,total:t,pageSize:n=EU}=Te;return Oe.length<t?Oe.length>n?Oe.slice((e-1)*n,e*n):Oe:Oe.slice((e-1)*n,e*n)},[!!m,Oe,Te?.current,Te?.pageSize,Te?.total]),[De,Le]=GG({prefixCls:ne,data:Oe,pageData:He,getRowKey:ve,getRecordByKey:$e,expandType:de,childrenColumnName:ue,locale:J,getPopupContainer:C||_},f);ce.__PARENT_RENDER_ICON__=ce.expandIcon,ce.expandIcon=ce.expandIcon||w||UG(J),"nest"===de&&void 0===ce.expandIconColumnIndex?ce.expandIconColumnIndex=f?1:0:ce.expandIconColumnIndex>0&&f&&(ce.expandIconColumnIndex-=1),"number"!==typeof ce.indentSize&&(ce.indentSize="number"===typeof N?N:15);const je=r.useCallback(e=>Ae(De(Me(Se(e)))),[Se,Me,De]);let Fe,We;if(!1!==m&&Te?.total){let e;e=Te.size?Te.size:"small"===G||"medium"===G?"small":void 0;const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"end";return r.createElement(sW,{...Te,classNames:Q.pagination,styles:Z.pagination,className:re(`${ne}-pagination ${ne}-pagination-${t}`,Te.className),size:e})},{placement:n,position:o}=Te,i=n??o,a=e=>{const t=e.toLowerCase();return t.includes("center")?"center":t.includes("left")||t.includes("start")?"start":"end"};if(Array.isArray(i)){const[e,n]=["top","bottom"].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>"none"===`${e}`);e||n||r||(We=t()),e&&(Fe=t(a(e))),n&&(We=t(a(n)))}else We=t();0}const _e=r.useMemo(()=>"boolean"===typeof x?{spinning:x}:"object"===typeof x&&null!==x?{spinning:!0,...x}:void 0,[x]),Ve=re(se,ae,`${ne}-wrapper`,V,{[`${ne}-wrapper-rtl`]:"rtl"===F},o,i,Q.root,le),Xe={...Z.root,...X,...a},Ke=r.useMemo(()=>_e?.spinning&&te===mQ?null:"undefined"!==typeof P?.emptyText?P.emptyText:W?.("Table")||r.createElement(cv,{componentName:"Table"}),[_e?.spinning,te,P?.emptyText,W]),qe=O?GU:KU,Ge={},Ye=r.useMemo(()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:o,paddingSM:i}=ie,a=Math.floor(e*t);switch(G){case"medium":return 2*i+a+n;case"small":return 2*o+a+n;default:return 2*r+a+n}},[ie,G]);return O&&(Ge.listItemHeight=Ye),r.createElement("div",{ref:fe,className:Ve,style:Xe},r.createElement(wW,{spinning:!1,..._e},Fe,r.createElement(qe,{...Ge,...H,scroll:be,classNames:Q,styles:Z,ref:he,columns:B,direction:F,expandable:ce,prefixCls:ne,className:re({[`${ne}-medium`]:"medium"===G,[`${ne}-small`]:"small"===G,[`${ne}-bordered`]:u,[`${ne}-empty`]:0===te.length},se,ae,le),data:He,rowKey:ve,rowClassName:(e,t,n)=>{const r="function"===typeof g?g(e,t,n):g;return re({[`${ne}-row-selected`]:Le.has(ve(e,t))},r)},emptyText:Ke,internalHooks:_K,internalRefs:pe,transformColumns:je,getContainerWidth:me,measureRowRender:e=>r.createElement(jy.Provider,{value:!0},r.createElement(jc,{getPopupContainer:e=>e},e))}),We))}),hQ=r.forwardRef((e,t)=>{const n=r.useRef(0);return n.current+=1,r.createElement(fQ,{...e,ref:t,_renderTimes:n.current})});hQ.SELECTION_COLUMN=WG,hQ.EXPAND_COLUMN=WK,hQ.SELECTION_ALL=_G,hQ.SELECTION_INVERT=VG,hQ.SELECTION_NONE=XG,hQ.Column=CG,hQ.ColumnGroup=xG,hQ.Summary=gq;const gQ=hQ,bQ=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return ir(e,{tagFontSize:o,tagLineHeight:lt(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},vQ=e=>{const t=Nd(new Uu(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new Or(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},yQ=To("Tag",e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:{...br(e),display:"inline-block",height:"auto",paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[`${o}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[`${o}-close-icon`]:{color:e.colorTextDisabled}},[`${o}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}})(bQ(e)),vQ),$Q=r.forwardRef((e,t)=>{const{prefixCls:n,style:o,className:i,checked:a,children:l,icon:s,onChange:c,onClick:u,disabled:d,...p}=e,{getPrefixCls:m,tag:f}=r.useContext(ye),h=r.useContext($c),g=d??h,b=m("tag",n),[v,y]=yQ(b),$=re(b,`${b}-checkable`,{[`${b}-checkable-checked`]:a,[`${b}-checkable-disabled`]:g},f?.className,i,v,y);return r.createElement("span",{...p,ref:t,style:{...o,...f?.style},className:$,onClick:e=>{g||(c?.(!a),u?.(e))}},s,r.createElement("span",null,l))}),CQ=$Q,xQ=r.forwardRef((e,t)=>{const{id:n,prefixCls:o,rootClassName:i,className:a,style:l,classNames:s,styles:c,disabled:u,options:d,value:p,defaultValue:m,onChange:f,multiple:h,...g}=e,{getPrefixCls:b,direction:v,className:y,style:$,classNames:C,styles:x}=xe("tag"),w=b("tag",o),S=`${w}-checkable-group`,E=Ka(w),[k,N]=yQ(w,E),[I,M]=Ca([C,s],[x,c],{props:e}),P=(0,r.useMemo)(()=>Array.isArray(d)?d.map(e=>e&&"object"===typeof e?e:{value:e,label:e}):[],[d]),[R,O]=F(m,p),z=r.useRef(null);(0,r.useImperativeHandle)(t,()=>({nativeElement:z.current}));const A=fa(g,{aria:!0,data:!0});return r.createElement("div",{...A,className:re(S,y,i,{[`${S}-disabled`]:u,[`${S}-rtl`]:"rtl"===v},k,N,a,I.root),style:{...$,...M.root,...l},id:n,ref:z},P.map(e=>r.createElement(CQ,{key:e.value,className:re(`${S}-item`,I.item),style:M.item,checked:h?(R||[]).includes(e.value):R===e.value,onChange:t=>((e,t)=>{let n=null;if(h){const r=R||[];n=e?[].concat(le(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;O(n),f?.(n)})(t,e),disabled:u},e.label)))});const wQ=xQ;function SQ(e,t){const{color:n,variant:o,bordered:i}=e;return r.useMemo(()=>{const e=n?.endsWith("-inverse");let r;r=o||(e?"solid":!1===i?"filled":t||"filled");const a=e?n?.replace("-inverse",""):n,l=Gy(n),s=function(e){return qy.includes(e)}(n),c={};if(!l&&!s&&a)if("solid"===r)c.backgroundColor=n;else{const e=new Or(a).toHsl();e.l=.95,c.backgroundColor=new Or(e).toHexString(),c.color=n,"outlined"===r&&(c.borderColor=n)}return[r,a,l,s,c]},[n,o,i,t])}const EQ=Ho(["Tag","preset"],e=>(e=>Wy(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:o,color:r},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:r}}}}))(bQ(e)),vQ);const kQ=(e,t,n)=>{const r="string"!==typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},NQ=Ho(["Tag","status"],e=>{const t=bQ(e);return[kQ(t,"success","Success"),kQ(t,"processing","Info"),kQ(t,"error","Error"),kQ(t,"warning","Warning")]},vQ),IQ=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:a,children:l,icon:s,color:c,variant:u,onClose:d,bordered:p,disabled:m,href:f,target:h,styles:g,classNames:b,...v}=e,{getPrefixCls:y,direction:$,className:C,variant:x,style:w,classNames:S,styles:E}=xe("tag");const[k,N,I,M,P]=SQ(e,x),R=I||M,O=r.useContext($c),z=m??O,{tag:A}=r.useContext(ye),[T,B]=r.useState(!0),H=Y(v,["closeIcon","closable"]),D={...e,color:N,variant:k,disabled:z},[L,j]=Ca([S,b],[E,g],{props:D}),F=r.useMemo(()=>{let e={...j.root,...w,...a};return z||(e={...P,...e}),e},[j.root,w,a,P,z]),W=y("tag",n),[_,V]=yQ(W),X=re(W,C,L.root,`${W}-${k}`,{[`${W}-${N}`]:R,[`${W}-hidden`]:!T,[`${W}-rtl`]:"rtl"===$,[`${W}-disabled`]:z},o,i,_,V),K=e=>{z||(e.stopPropagation(),d?.(e),e.defaultPrevented||B(!1))},[,q]=nf(Zm(e),Zm(A),{closable:!1,closeIconRender:e=>{const t=r.createElement("span",{className:`${W}-close-icon`,onClick:K},e);return Il(e,t,e=>({onClick:t=>{e?.onClick?.(t),K(t)},className:re(e?.className,`${W}-close-icon`)}))}}),G="function"===typeof v.onClick||l&&"a"===l.type,U=Ml(s,{className:re(r.isValidElement(s)?s.props?.className:void 0,L.icon),style:j.icon}),Q=U?r.createElement(r.Fragment,null,U,l&&r.createElement("span",{className:L.content,style:j.content},l)):l,Z=f?"a":"span",J=r.createElement(Z,{...H,ref:t,className:X,style:F,href:z?void 0:f,target:h,onClick:z?void 0:H.onClick,...f&&z?{"aria-disabled":!0}:{}},Q,q,I&&r.createElement(EQ,{key:"preset",prefixCls:W}),M&&r.createElement(NQ,{key:"status",prefixCls:W}));return G?r.createElement(ru,{component:"Tag"},J):J}),MQ=IQ;MQ.CheckableTag=CQ,MQ.CheckableTagGroup=wQ;const PQ=MQ,RQ=e=>{const t=e?.algorithm?tt(e.algorithm):ko,n={...Sr,...e?.token};return yt(n,{override:e?.token},t,Mo)};function OQ(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const zQ=(e,t)=>{const n=t??Eo(e),r=n.fontSizeSM,o=n.controlHeight-4;return{...n,...OQ(t??e),...yo(r),controlHeight:o,...bo({...n,controlHeight:o})}},AQ=(e,t)=>new Or(e).setA(t).toRgbString(),TQ=(e,t)=>new Or(e).lighten(t).toHexString(),BQ=e=>{const t=Hr(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},HQ=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:AQ(r,.85),colorTextSecondary:AQ(r,.65),colorTextTertiary:AQ(r,.45),colorTextQuaternary:AQ(r,.25),colorFill:AQ(r,.18),colorFillSecondary:AQ(r,.12),colorFillTertiary:AQ(r,.08),colorFillQuaternary:AQ(r,.04),colorBgSolid:AQ(r,.95),colorBgSolidHover:AQ(r,1),colorBgSolidActive:AQ(r,.9),colorBgElevated:TQ(n,12),colorBgContainer:TQ(n,8),colorBgLayout:TQ(n,0),colorBgSpotlight:TQ(n,26),colorBgBlur:AQ(r,.04),colorBorder:TQ(n,26),colorBorderDisabled:TQ(n,26),colorBorderSecondary:TQ(n,19)}},DQ=(e,t)=>{const n=Object.keys(wr).map(t=>{const n=Hr(e[t],{theme:"dark"});return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e={...e,...t},{}),r=t??Eo(e),o=fo(e,{generateColorPalettes:BQ,generateNeutralColorPalettes:HQ}),i=mo.reduce((t,n)=>{const r=e[n];if(r){const e=BQ(r);t[`${n}Hover`]=e[7],t[`${n}Active`]=e[5]}return t},{});return{...r,...n,...o,...i,colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover}};const LQ={defaultSeed:Er.token,useToken:function(){const[e,t,n,r]=Ao();return{theme:e,token:t,hashId:n,cssVar:r}},defaultAlgorithm:Eo,darkAlgorithm:DQ,compactAlgorithm:zQ,getDesignToken:RQ,defaultConfig:Er,_internalContext:kr},{TimePicker:jQ,RangePicker:FQ}=RH,WQ=r.forwardRef((e,t)=>r.createElement(FQ,{...e,picker:"time",mode:void 0,ref:t})),_Q=r.forwardRef((e,t)=>{const{addon:n,renderExtraFooter:o,variant:i,bordered:a,classNames:l,styles:s,popupClassName:c,popupStyle:u,...d}=e;const[p]=uv("timePicker",i,a),m=r.useMemo(()=>o||(n||void 0),[n,o]),f={...e,variant:p},[h,g]=GB("timePicker",l,s,c,u,f);return r.createElement(jQ,{...d,mode:void 0,ref:t,renderExtraFooter:m,variant:p,classNames:h,styles:g})});const VQ=vg(_Q,"popupAlign",void 0,"picker");_Q._InternalPanelDoNotUseOrYouWillBeFired=VQ,_Q.RangePicker=WQ,_Q._InternalPanelDoNotUseOrYouWillBeFired=VQ;const XQ=_Q,KQ=e=>{const{componentCls:t,fontHeight:n,antCls:r,paddingXS:o}=e,[i,a]=Do(r,"cmp-steps"),[l,s]=Do(r,"timeline"),c=`${t}-item`;return{[`${t}-horizontal`]:{[i("title-vertical-row-gap")]:o,[l("content-height")]:lt(n),alignItems:"stretch",[`&${t}-layout-alternate`]:{[c]:{[`${c}-wrapper`]:{[l("alternate-content-offset")]:`calc(${s("content-height")} + ${a("title-vertical-row-gap")} * 2 + ${a("icon-size-max")})`,height:`calc(${s("content-height")} * 2 + ${a("title-vertical-row-gap")} * 2 + ${a("icon-size-max")})`},[`${c}-icon`]:{position:"absolute"},[`${c}-icon, ${c}-rail`]:{position:"absolute",top:"50%",transform:"translateY(-50%)",margin:0},[`${c}-title, ${c}-subtitle, ${c}-content`]:{whiteSpace:"nowrap",maxWidth:"unset"},[`${c}-title`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},[`${c}-content`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-placement-start":{[`${c}-title`]:{bottom:s("alternate-content-offset")},[`${c}-content`]:{top:s("alternate-content-offset")}},"&-placement-end":{[`${c}-title`]:{top:s("alternate-content-offset")},[`${c}-content`]:{bottom:s("alternate-content-offset")}}}},[`&:not(${t}-layout-alternate)`]:{[`${c}-placement-end`]:{display:"flex",alignItems:"flex-end",[`${c}-wrapper`]:{flex:"auto",flexDirection:"column-reverse"},[`${c}-rail`]:{top:"auto",bottom:a("horizontal-rail-margin"),transform:"translateY(50%)"}}}}}},qQ=e=>{const{componentCls:t,tailColor:n,fontHeight:r,dotSize:o,dotBg:i,dotBorderWidth:a,fontSize:l,lineHeight:s,colorText:c,tailWidth:u,colorPrimary:d,colorError:p,colorSuccess:m,colorTextDisabled:f,antCls:h}=e,g=`${t}-item`,[b,v]=Do(h,"cmp-steps");return{[t]:[{...br(e),[g]:{[b("title-horizontal-title-height")]:r,[b("vertical-rail-margin")]:"0px",[b("title-horizontal-rail-gap")]:"0px",[b("icon-dot-size-origin")]:v("icon-size-active"),[b("icon-dot-size-custom")]:o,[b("item-icon-dot-bg-color-origin")]:v("item-icon-dot-bg-color"),[b("item-icon-dot-bg-color-custom")]:i,[b("icon-size")]:v("icon-dot-size-custom",v("icon-dot-size-origin")),[`${g}-icon`]:{[b("dot-icon-border-width")]:a,[b("dot-icon-size")]:v("icon-size"),[b("item-icon-dot-bg-color")]:v("item-icon-dot-bg-color-custom",v("item-icon-dot-bg-color-origin"))},[`${g}-title`]:{fontSize:l,lineHeight:s},[`${g}-content`]:{color:c},[`${g}-rail`]:{[b("item-solid-line-color")]:n,[b("rail-size")]:u}}},{[g]:{[b("item-process-rail-line-style")]:"dotted"},[`${g}${g}${g}-color`]:{"&-blue":{[b("item-icon-dot-color")]:d},"&-red":{[b("item-icon-dot-color")]:p},"&-green":{[b("item-icon-dot-color")]:m},"&-gray":{[b("item-icon-dot-color")]:f}}}]}},GQ=e=>{const{calc:t,componentCls:n,itemPaddingBottom:r,margin:o,antCls:i}=e,a=`${n}-item`,[,l]=Do(i,"cmp-steps"),[s,c]=Do(i,"timeline");return{[`${n}:not(${n}-horizontal)`]:{[s("head-span")]:"12",[s("head-span-ptg")]:`calc(${c("head-span")} / 24 * 100%)`,[`&${n}-layout-alternate`]:{[a]:{[s("alternate-gap")]:t(o).mul(2).add(l("dot-icon-size")).equal(),minHeight:"auto",paddingBottom:r,[`${a}-icon, ${a}-rail`]:{position:"absolute",insetInlineStart:c("head-span-ptg")},[`${a}-icon`]:{marginInlineStart:`calc(${l("icon-size")} / -2)`},[`${a}-section`]:{display:"flex",flexWrap:"nowrap",gap:c("alternate-gap")},[`${a}-header`]:{textAlign:"end",flexDirection:"column",alignItems:"stretch",flex:`1 1 calc(${c("head-span-ptg")} - ${c("alternate-gap")} / 2)`},[`${a}-content`]:{textAlign:"start",flex:`1 1 calc(100% - ${c("head-span-ptg")} - ${c("alternate-gap")} / 2)`},"&-placement-end":{[`${a}-header`]:{textAlign:"start",order:1},[`${a}-content`]:{textAlign:"end"},[`${a}-icon, ${a}-rail`]:{insetInlineStart:`calc(100% - ${c("head-span-ptg")})`}}}},[`&:not(${n}-layout-alternate)`]:{[`${a}-placement-end`]:{textAlign:"end",[`${a}-icon`]:{order:1},[`${a}-rail`]:{insetInlineStart:"auto",insetInlineEnd:`calc(${l("icon-size")} / 2)`,marginInlineEnd:`calc(${l("rail-size")} / -2)`}}}}}},YQ=To("Timeline",e=>{const t=ir(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[qQ(t),GQ(t),KQ(t)]},e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.lineWidthBold,dotBg:void 0,dotSize:void 0,itemPaddingBottom:1.25*e.padding})),UQ=(e,t,n,o,i,a,l)=>{const s=`${t}-item`,[u]=Do(e,"cmp-steps"),d=r.useMemo(()=>Array.isArray(o)?o:c(i).map(e=>({...e.props})),[o,i]);return r.useMemo(()=>{const e=d.map((e,t)=>{const{label:o,children:i,title:a,content:l,color:c,className:d,style:p,icon:m,dot:f,placement:h,position:g,loading:b,...v}=e;let y=p,$=d;c&&(["blue","red","green","gray"].includes(c)?$=re(d,`${s}-color-${c}`):y={[u("item-icon-dot-color")]:c,...p});$=re($,`${s}-placement-${h??g??("alternate"===n?t%2===0?"start":"end":n)}`);let C=m??f;return!C&&b&&(C=r.createElement(kl,null)),{...v,title:a??o,content:l??i,style:y,className:$,icon:C,status:b?"process":"finish"}});return a&&e.push({icon:l??r.createElement(kl,null),content:a,status:"process"}),e},[d,a,n,s,u,l])},QQ={rootComponent:"ol",itemComponent:"li"},ZQ=e=>{const{getPrefixCls:t,direction:n,className:o,style:i,classNames:a,styles:l}=xe("timeline"),{prefixCls:s,className:c,style:u,classNames:d,styles:p,variant:m="outlined",mode:f,orientation:h="vertical",titleSpan:g,items:b,children:v,reverse:y,pending:$,pendingDot:C,...x}=e,w=t(),S=t("timeline",s),[E,k]=YQ(S),[N]=Do(w,"timeline"),I=r.useMemo(()=>({item:`${S}-item`,itemTitle:`${S}-item-title`,itemIcon:`${S}-item-icon`,itemContent:`${S}-item-content`,itemRail:`${S}-item-rail`,itemWrapper:`${S}-item-wrapper`,itemSection:`${S}-item-section`,itemHeader:`${S}-item-header`}),[S]),M=r.useMemo(()=>{if("left"===f)return"start";if("right"===f)return"end";return["alternate","start","end"].includes(f)?f:"start"},[f]),P=UQ(w,S,M,b,v,$,C),R=r.useMemo(()=>y?le(P).reverse():P,[y,P]),O={...e,variant:m,mode:M,orientation:h,items:R},[z,A]=Ca([I,a,d],[l,p],{props:O}),T=r.useMemo(()=>({railFollowPrevStatus:y}),[y]),B=r.useMemo(()=>"alternate"===M||"vertical"===h&&R.some(e=>e.title),[R,M,h]);const H={...i,...u};return xa(g)&&"alternate"!==M&&("number"!==typeof g||Number.isNaN(g)?H[N("head-span-ptg")]=g:H[N("head-span")]=g),r.createElement(aK.Provider,{value:QQ},r.createElement(GX.Provider,{value:T},r.createElement(MK,{...x,className:re(S,o,c,E,k,{[`${S}-${h}`]:"horizontal"===h,[`${S}-layout-alternate`]:B,[`${S}-rtl`]:"rtl"===n}),style:H,classNames:z,styles:A,variant:m,orientation:h,type:"dot",items:R,current:R.length-1})))};ZQ.Item=()=>{};const JQ=ZQ;function eZ(e){return null!==e&&"object"===typeof e}function tZ(e,t,n){if(!1===e||!1===t&&(!eZ(e)||!e.closeIcon))return null;const r="boolean"!==typeof t?t:void 0;return eZ(e)?{...e,closeIcon:e.closeIcon??r}:n||e||t?{closeIcon:r}:"empty"}function nZ(e,t,n,o,i,a){const[l,s]=(0,r.useState)(void 0);L(()=>{const t="function"===typeof e?e():e;s(t||null)});const[c,u]=(0,r.useState)(null),d=A(()=>{if(l){i||function(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:o,bottom:i,left:a}=e.getBoundingClientRect();return r>=0&&a>=0&&o<=t&&i<=n}(l)||!t||l.scrollIntoView(o);const{left:e,top:n,width:r,height:s}=l.getBoundingClientRect(),c={left:e,top:n,width:r,height:s,radius:0};if(i){const e=a.current?.parentElement?.getBoundingClientRect();e&&(c.left-=e.left,c.top-=e.top)}u(e=>JSON.stringify(e)!==JSON.stringify(c)?c:e)}else u(null)}),p=e=>(Array.isArray(n?.offset)?n?.offset[e]:n?.offset)??6;L(()=>(d(),window.addEventListener("resize",d),window.addEventListener("scroll",d),()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d)}),[l,t,d]);return[(0,r.useMemo)(()=>{if(!c)return c;const e=p(0),t=p(1),r=(o=n?.radius,"number"!==typeof o||Number.isNaN(o)?2:n?.radius);var o;return{left:c.left-e,top:c.top-t,width:c.width+2*e,height:c.height+2*t,radius:r}},[c,n]),l]}function rZ(){return rZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rZ.apply(this,arguments)}const oZ={fill:"transparent",pointerEvents:"auto"},iZ=e=>{const{prefixCls:t,rootClassName:n,pos:o,showMask:i,style:a={},fill:l="rgba(0,0,0,0.5)",open:s,animated:c,zIndex:u,disabledInteraction:d,styles:p,classNames:m,getPopupContainer:f,onEsc:h}=e,g=`${t}-mask-${Is()}`,b="object"===typeof c?c?.placeholder:c,v="undefined"!==typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"},y=!1===f;return r.createElement(Bs,{open:s,autoLock:!y,getContainer:f,onEsc:h},r.createElement("div",{className:re(`${t}-mask`,n,m?.mask),style:{position:y?"absolute":"fixed",left:0,right:0,top:0,bottom:0,zIndex:u,pointerEvents:o&&!d?"none":"auto",...a,...p?.mask}},i?r.createElement("svg",{style:{width:"100%",height:"100%"}},r.createElement("defs",null,r.createElement("mask",{id:g},r.createElement("rect",rZ({x:"0",y:"0"},v,{fill:"white"})),o&&r.createElement("rect",{x:o.left,y:o.top,rx:o.radius,width:o.width,height:o.height,fill:"black",className:b?`${t}-placeholder-animated`:""}))),r.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:l,mask:`url(#${g})`}),o&&r.createElement(r.Fragment,null,r.createElement("rect",rZ({},oZ,{x:"0",y:"0",width:"100%",height:Math.max(o.top,0)})),r.createElement("rect",rZ({},oZ,{x:"0",y:"0",width:Math.max(o.left,0),height:"100%"})),r.createElement("rect",rZ({},oZ,{x:"0",y:o.top+o.height,width:"100%",height:`calc(100% - ${o.top+o.height}px)`})),r.createElement("rect",rZ({},oZ,{x:o.left+o.width,y:"0",width:`calc(100% - ${o.left+o.width}px)`,height:"100%"})))):null))},aZ=[0,0],lZ={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function sZ(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t={};return Object.keys(lZ).forEach(n=>{t[n]={...lZ[n],autoArrow:e,targetOffset:aZ}}),t}sZ();function cZ(){return cZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cZ.apply(this,arguments)}function uZ(e){const{prefixCls:t,current:n,total:o,title:i,description:a,onClose:l,onPrev:s,onNext:c,onFinish:u,className:d,closable:p,classNames:m,styles:f}=e,h=fa(p||{},!0),g=p?.closeIcon??r.createElement("span",{className:`${t}-close-x`},"\xd7"),b=!!p;return r.createElement("div",{className:re(`${t}-panel`,d)},r.createElement("div",{className:re(`${t}-section`,m?.section),style:f?.section},b&&r.createElement("button",cZ({type:"button",onClick:l,"aria-label":"Close"},h,{className:`${t}-close`}),g),r.createElement("div",{className:re(`${t}-header`,m?.header),style:f?.header},r.createElement("div",{className:re(`${t}-title`,m?.title),style:f?.title},i)),r.createElement("div",{className:re(`${t}-description`,m?.description),style:f?.description},a),r.createElement("div",{className:re(`${t}-footer`,m?.footer),style:f?.footer},r.createElement("div",{className:`${t}-sliders`},o>1?[...Array.from({length:o}).keys()].map((e,t)=>r.createElement("span",{key:e,className:t===n?"active":""})):null),r.createElement("div",{className:re(`${t}-actions`,m?.actions),style:f?.actions},0!==n?r.createElement("button",{className:`${t}-prev-btn`,onClick:s},"Prev"):null,n===o-1?r.createElement("button",{className:`${t}-finish-btn`,onClick:u},"Finish"):r.createElement("button",{className:`${t}-next-btn`,onClick:c},"Next")))))}const dZ=e=>{const{current:t,renderPanel:n}=e;return r.createElement(r.Fragment,null,"function"===typeof n?n(e,t):r.createElement(uZ,e))},pZ=r.forwardRef((e,t)=>{const{open:n,autoLock:o,getContainer:i,domRef:a,className:l,style:s,fallbackDOM:c}=e;return r.useImperativeHandle(t,()=>a.current||c()),r.createElement(Bs,{open:n,autoLock:o,getContainer:i},r.createElement("div",{ref:a,className:l,style:s}))});const mZ=pZ;function fZ(){return fZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fZ.apply(this,arguments)}const hZ={left:"50%",top:"50%",width:1,height:1},gZ={block:"center",inline:"center"},bZ=e=>{const{prefixCls:t="rc-tour",steps:n=[],defaultCurrent:o,current:i,keyboard:a=!0,onChange:l,onClose:s,onFinish:c,open:u,defaultOpen:d,mask:p=!0,arrow:m=!0,rootClassName:f,placement:h,renderPanel:g,gap:b,animated:v,scrollIntoViewOptions:y=gZ,zIndex:$=1001,closeIcon:C,closable:x,builtinPlacements:w,disabledInteraction:S,styles:E,classNames:k,className:N,style:I,getPopupContainer:M,...P}=e,R=r.useRef(),[O,z]=F(o||0,i),[T,B]=F(d,u),H=!(O<0||O>=n.length)&&(T??!0),[D,j]=r.useState(H),W=r.useRef(H);L(()=>{H&&(W.current||z(0),j(!0)),W.current=H},[H,z]);const{target:_,placement:V,style:X,arrow:K,className:q,mask:G,scrollIntoViewOptions:Y=gZ,closeIcon:U,closable:Q}=n[O]||{},Z=function(e,t,n,o){return r.useMemo(()=>{const r=tZ(e,t,!1),i=tZ(n,o,!0);return"empty"!==r?r:i},[n,o,e,t])}(Q,U,x,C),J=H&&(G??p),ee=Y??y,te=r.useRef(null),ne=!1===M,[oe,ie]=nZ(_,u,b,ee,ne,te),ae=function(e,t,n){return n??t??(null===e?"center":"bottom")}(ie,h,V),le=!!ie&&("undefined"===typeof K?m:K),se="object"===typeof le&&le.pointAtCenter;L(()=>{R.current?.forceAlign()},[se,O]);const ce=e=>{z(e),l?.(e)},ue=(0,r.useMemo)(()=>w?"function"===typeof w?w({arrowPointAtCenter:se}):w:sZ(se),[w,se]),de=()=>{B(!1),s?.(O)},pe=A(e=>{let{event:t}=e;a&&null!==Z&&(t.preventDefault(),de())}),me=A(e=>{ul.isEditableTarget(e)||(a&&"ArrowLeft"===e.key?O>0&&(e.preventDefault(),ce(O-1)):a&&"ArrowRight"===e.key&&O<n.length-1&&(e.preventDefault(),ce(O+1)))});if(L(()=>{if(H)return window.addEventListener("keydown",me),()=>{window.removeEventListener("keydown",me)}},[H,me]),void 0===ie||!D)return null;const fe="boolean"===typeof J?J:!!J,he="boolean"===typeof J?void 0:J;return r.createElement(r.Fragment,null,r.createElement(iZ,{getPopupContainer:M,styles:E,classNames:k,zIndex:$,prefixCls:t,pos:oe,showMask:fe,style:he?.style,fill:he?.color,open:H,animated:v,rootClassName:f,disabledInteraction:S,onEsc:pe}),r.createElement(fc,fZ({},P,{getPopupContainer:M,builtinPlacements:ue,ref:R,popupStyle:X,popupPlacement:ae,popupVisible:H,popupClassName:re(f,q),prefixCls:t,popup:()=>r.createElement(dZ,fZ({styles:E,classNames:k,arrow:le,key:"content",prefixCls:t,total:n.length,renderPanel:g,onPrev:()=>{ce(O-1)},onNext:()=>{ce(O+1)},onClose:de,current:O,onFinish:()=>{de(),c?.()}},n[O],{closable:Z})),forceRender:!1,autoDestroy:!0,zIndex:$,arrow:!!le}),r.createElement(mZ,{open:H,autoLock:!ne,getContainer:M,domRef:te,fallbackDOM:()=>ie||document.body,className:re(N,f,`${t}-target-placeholder`),style:{...oe||hZ,position:ne?"absolute":"fixed",pointerEvents:"none",...I}})))},vZ=bZ,yZ=e=>{const{stepProps:t,current:n,type:o,indicatorsRender:i,actionsRender:a}=e,{prefixCls:l,total:s=1,title:c,onClose:u,onPrev:d,onNext:p,onFinish:m,cover:f,description:h,nextButtonProps:g,prevButtonProps:b,type:v,closable:y,classNames:$={},styles:C={}}=t,x=v??o,w=fa(y??{},!0),[S]=Yc("global",ss.global),[E]=Yc("Tour",ss.Tour),k=r.createElement("button",{type:"button",onClick:u,className:`${l}-close`,"aria-label":S?.close,...w},y?.closeIcon||r.createElement(gi,{className:`${l}-close-icon`})),N=n===s-1,I=xa(c)?r.createElement("div",{className:re(`${l}-header`,$.header),style:C.header},r.createElement("div",{className:re(`${l}-title`,$.title),style:C.title},c)):null,M=xa(h)?r.createElement("div",{className:re(`${l}-description`,$.description),style:C.description},h):null,P=xa(f)?r.createElement("div",{className:re(`${l}-cover`,$.cover),style:C.cover},f):null;let R;R=i?i(n,s):le(Array.from({length:s}).keys()).map((e,t)=>r.createElement("span",{key:e,className:re(t===n&&`${l}-indicator-active`,`${l}-indicator`,$.indicator),style:C.indicator}));const O="primary"===x?"default":"primary",z={type:"default",ghost:"primary"===x},A=r.createElement(r.Fragment,null,0!==n?r.createElement(Qd,{size:"small",...z,...b,onClick:()=>{d?.(),b?.onClick?.()},className:re(`${l}-prev-btn`,b?.className)},b?.children??E?.Previous):null,r.createElement(Qd,{size:"small",type:O,...g,onClick:()=>{N?m?.():p?.(),g?.onClick?.()},className:re(`${l}-next-btn`,g?.className)},g?.children??(N?E?.Finish:E?.Next)));return r.createElement("div",{className:`${l}-panel`},r.createElement("div",{className:re(`${l}-section`,$.section),style:C.section},y&&k,P,I,M,r.createElement("div",{className:re(`${l}-footer`,$.footer),style:C.footer},s>1&&r.createElement("div",{className:re(`${l}-indicators`,$.indicators),style:C.indicators},R),r.createElement("div",{className:re(`${l}-actions`,$.actions),style:C.actions},a?a(A,{current:n,total:s}):A))))},$Z=To("Tour",e=>{const{borderRadiusLG:t}=e;return(e=>{const{componentCls:t,padding:n,paddingXS:r,borderRadius:o,borderRadiusXS:i,colorPrimary:a,colorFill:l,indicatorHeight:s,indicatorWidth:c,boxShadowTertiary:u,zIndexPopup:d,colorBgElevated:p,fontWeightStrong:m,marginXS:f,colorTextLightSolid:h,tourBorderRadius:g,colorWhite:b,primaryNextBtnHoverBg:v,closeBtnSize:y,motionDurationSlow:$,antCls:C,primaryPrevBtnBg:x,motionDurationMid:w}=e,[S,E]=Do(C,"tooltip");return[{[t]:{...br(e),position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,[S("arrow-background-color")]:p,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-panel`]:{position:"relative"},[`${t}-section`]:{textAlign:"start",textDecoration:"none",borderRadius:g,boxShadow:u,position:"relative",backgroundColor:p,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:n,insetInlineEnd:n,color:e.colorIcon,background:"none",border:"none",width:y,height:y,borderRadius:e.borderRadiusSM,transition:["color","background-color"].map(e=>`${e} ${w}`).join(", "),display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...yr(e)},[`${t}-cover`]:{textAlign:"center",padding:`${lt(e.calc(n).add(y).add(r).equal())} ${lt(n)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${lt(n)} ${lt(n)} ${lt(r)}`,width:`calc(100% - ${lt(y)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:m}},[`${t}-description`]:{padding:`0 ${lt(n)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${lt(r)} ${lt(n)} ${lt(n)}`,textAlign:"end",borderRadius:`0 0 ${lt(i)} ${lt(i)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:c,height:s,display:"inline-block",borderRadius:"50%",background:l,"&:not(:last-child)":{marginInlineEnd:s},"&-active":{background:a}}},[`${t}-actions`]:{marginInlineStart:"auto",[`${C}-btn`]:{marginInlineStart:f}}}},[`${t}-primary, &${t}-primary`]:{[S("arrow-background-color")]:a,[`${t}-section`]:{color:h,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:o,boxShadow:u,[`${t}-close`]:{color:h},[`${t}-indicators`]:{[`${t}-indicator`]:{background:x,"&-active":{background:h}}},[`${t}-prev-btn`]:{color:h,borderColor:x,backgroundColor:a,"&:hover":{backgroundColor:x,borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:b,"&:hover":{background:v}}}}},[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${$}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-section`]:{borderRadius:e.min(g,8)}}},Ty(e,E("arrow-background-color"))]})(ir(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t}))},e=>({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new Or(e.colorTextLightSolid).setA(.15).toRgbString(),primaryNextBtnHoverBg:new Or(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString(),...zy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Ry(e)})),CZ=bg(e=>{const{prefixCls:t,current:n=0,total:o=6,className:i,style:a,type:l,closable:s,closeIcon:c,...u}=e,{getPrefixCls:d}=r.useContext(ye),p=d("tour",t),[m,f]=$Z(p),[h,g]=nf({closable:s,closeIcon:c},null,{closable:!0,closeIconRender:e=>r.isValidElement(e)?Ml(e,{className:re(e.props?.className,`${p}-close-icon`)}):e});return r.createElement(o$,{prefixCls:p,hashId:m,className:re(i,`${p}-pure`,l&&`${p}-${l}`,f),style:a},r.createElement(yZ,{stepProps:{...u,prefixCls:p,total:o,closable:h?{closeIcon:g}:void 0},current:n,type:l}))}),xZ=e=>{const{prefixCls:t,type:n,rootClassName:o,indicatorsRender:i,actionsRender:a,steps:l,closeIcon:s,keyboard:c=!0,classNames:u,styles:d,className:p,style:m,...f}=e,{getPrefixCls:h,direction:g,closeIcon:b,className:v,style:y,classNames:$,styles:C}=xe("tour"),x=h("tour",t),[w,S]=$Z(x),[,E]=Ao(),k=r.useMemo(()=>l?.map(e=>({...e,className:re(e.className,{[`${x}-primary`]:"primary"===(e.type??n)})})),[x,l,n]),N={...e,steps:k},[I,M]=Ca([$,u],[C,d],{props:N}),P=re({[`${x}-rtl`]:"rtl"===g},w,S,o,v,I.root,p),R={...M,mask:{...M.root,...M.mask,...y,...m}},[O,z]=Tl("Tour",f.zIndex);return r.createElement(Pl.Provider,{value:z},r.createElement(vZ,{...f,styles:R,classNames:I,closeIcon:s??b,keyboard:c,zIndex:O,rootClassName:P,prefixCls:x,animated:!0,renderPanel:(e,t)=>r.createElement(yZ,{styles:R,classNames:I,type:n,stepProps:e,current:t,indicatorsRender:i,actionsRender:a}),builtinPlacements:e=>Ly({arrowPointAtCenter:e?.arrowPointAtCenter??!0,autoAdjustOverflow:!0,offset:E.marginXXS,arrowWidth:E.sizePopupArrow,borderRadius:E.borderRadius}),steps:k}))};xZ._InternalPanelDoNotUseOrYouWillBeFired=CZ;const wZ=xZ,SZ=e=>{const t=new Map;return e.forEach((e,n)=>{t.set(e,n)}),t};const EZ=e=>{let{type:t,actions:n,moveToLeft:o,moveToRight:i,leftActive:a,rightActive:l,direction:s,disabled:c}=e;const u="right"===t,d=u?n[0]:n[1],p=u?i:o,m=u?l:a,f=function(e,t){const n="right"===e;return"rtl"!==t?n?r.createElement(Ju,null):r.createElement(_$,null):n?r.createElement(_$,null):r.createElement(Ju,null)}(t,s);if(r.isValidElement(d)){const e=d,t=t=>{e?.props?.onClick?.(t),p?.(t)};return r.cloneElement(e,{disabled:c||!m,onClick:t})}return r.createElement(Qd,{type:"primary",size:"small",disabled:c||!m,onClick:e=>p?.(e),icon:f},d)};const kZ=e=>{const{className:t,style:n,oneWay:o,actions:i,...a}=e;return r.createElement("div",{className:t,style:n},r.createElement(EZ,{type:"right",actions:i,...a}),!o&&r.createElement(EZ,{type:"left",actions:i,...a}),i.slice(o?1:2))},NZ=(e,t,n)=>{const o=r.useMemo(()=>(e||[]).map(e=>t?{...e,key:t(e)}:e),[e,t]),[i,a]=r.useMemo(()=>{const e=[],t=Array.from({length:n?.length??0}),r=SZ(n||[]);return o.forEach(n=>{if(r.has(n.key)){const e=r.get(n.key);t[e]=n}else e.push(n)}),[e,t]},[o,n]);return[o,i.filter(Boolean),a.filter(Boolean)]},IZ=[];function MZ(e,t){const n=e.filter(e=>t.has(e));return e.length===n.length?e:n}function PZ(e){return Array.from(e).join(";")}const RZ=function(e,t,n){const[o,i]=r.useMemo(()=>[new Set(e.map(e=>e?.key)),new Set(t.map(e=>e?.key))],[e,t]),[a,l]=F(IZ,n),s=r.useMemo(()=>MZ(a,o),[a,o]),c=r.useMemo(()=>MZ(a,i),[a,i]);r.useEffect(()=>{l([].concat(le(MZ(a,o)),le(MZ(a,i))))},[PZ(o),PZ(i)]);const u=A(e=>{l([].concat(le(e),le(c)))}),d=A(e=>{l([].concat(le(s),le(e)))});return[s,c,u,d]};const OZ=e=>{const{placeholder:t="",value:n,prefixCls:o,disabled:i,onChange:a,handleClear:l}=e,s=r.useCallback(e=>{a?.(e),""===e.target.value&&l?.()},[a]);return r.createElement(BT,{placeholder:t,className:o,value:n,onChange:s,disabled:i,allowClear:!0,prefix:r.createElement(Gv,null)})};const zZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function AZ(){return AZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AZ.apply(this,arguments)}const TZ=r.forwardRef((e,t)=>r.createElement(si,AZ({},e,{ref:t,icon:zZ}))),BZ=r.memo(e=>{const{prefixCls:t,classNames:n,styles:o,renderedText:i,renderedEl:a,item:l,checked:s,disabled:c,onClick:u,onRemove:d,showRemove:p}=e,m=c||l?.disabled,f=re(`${t}-content-item`,n.item,{[`${t}-content-item-disabled`]:m,[`${t}-content-item-checked`]:s&&!m});let h;"string"!==typeof i&&"number"!==typeof i||(h=String(i));const[g]=Yc("Transfer",ss.Transfer),b={className:f,style:o.item,title:h},v=r.createElement("span",{className:re(`${t}-content-item-text`,n.itemContent),style:o.itemContent},a);return p?r.createElement("li",{...b},v,r.createElement("button",{type:"button",disabled:m,className:`${t}-content-item-remove`,"aria-label":g?.remove,onClick:()=>d?.(l)},r.createElement(TZ,null))):(b.onClick=m?void 0:e=>u(l,e),r.createElement("li",{...b},r.createElement(Tz,{className:re(`${t}-checkbox`,n.itemIcon),style:o.itemIcon,checked:s,disabled:m}),v))}),HZ=["handleFilter","handleClear","checkedKeys"];const DZ=r.forwardRef((e,t)=>{const{prefixCls:n,classNames:o,styles:i,filteredRenderItems:a,selectedKeys:l,disabled:s,showRemove:c,pagination:u,onScroll:d,onItemSelect:p,onItemRemove:m}=e,[f,h]=r.useState(1),g=r.useMemo(()=>{if(!u)return null;return(e=>({simple:!0,showSizeChanger:!1,showLessItems:!1,...e}))("object"===typeof u?u:{})},[u]),[b,v]=F(10,g?.pageSize);r.useEffect(()=>{if(g){const e=Math.ceil(a.length/b);h(Math.min(f,e))}},[a,g,b]);const y=(e,t)=>{p(e.key,!l.includes(e.key),t)},$=e=>{m?.([e.key])},C=r.useMemo(()=>g?a.slice((f-1)*b,f*b):a,[f,a,g,b]);r.useImperativeHandle(t,()=>({items:C}));const x=g?r.createElement(sW,{size:"small",disabled:s,simple:g.simple,pageSize:b,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:a.length,current:f,onChange:e=>{h(e)},onShowSizeChange:(e,t)=>{h(e),v(t)}}):null;return r.createElement(r.Fragment,null,r.createElement("ul",{className:re(`${n}-content`,o.list,{[`${n}-content-show-remove`]:c}),style:i.list,onScroll:d},(C||[]).map(e=>{let{renderedEl:t,renderedText:a,item:u}=e;return r.createElement(BZ,{key:u.key,prefixCls:n,classNames:o,styles:i,item:u,renderedText:a,renderedEl:t,showRemove:c,onClick:y,onRemove:$,checked:l.includes(u.key),disabled:s})})),x)}),LZ=()=>null;function jZ(e){return e.filter(e=>!e.disabled).map(e=>e.key)}const FZ=e=>{const{prefixCls:t,style:n,classNames:o,styles:i,dataSource:a=[],titleText:l="",checkedKeys:s,disabled:c,showSearch:u=!1,searchPlaceholder:d,notFoundContent:p,selectAll:m,deselectAll:f,selectCurrent:h,selectInvert:g,removeAll:b,removeCurrent:v,showSelectAll:y=!0,showRemove:$,pagination:C,direction:x,itemsUnit:w,itemUnit:S,selectAllLabel:E,selectionsIcon:k,footer:N,renderList:I,onItemSelectAll:M,onItemRemove:P,handleFilter:R,handleClear:O,filterOption:z,render:A=LZ}=e,T=`${t}-section`,B=`${t}-list`,H=(e=>e&&"object"===typeof e?{...e,defaultValue:e.defaultValue||""}:{defaultValue:"",placeholder:""})(u),[D,L]=(0,r.useState)(H.defaultValue),j=(0,r.useRef)({}),F=e=>{L(e.target.value),R(e)},W=()=>{L(""),O()},_=e=>{const t=A(e),n=function(e){return!(!e||r.isValidElement(e)||"[object Object]"!==Object.prototype.toString.call(e))}(t),o=n?t.label:t,i=n?t.value:function(e,t){for(const n of[e,t.title,t.key])if("string"===typeof n||"number"===typeof n)return String(n);return""}(t,e);return{item:e,renderedEl:o,renderedText:i}},V=(0,r.useMemo)(()=>Array.isArray(p)?p["left"===x?0:1]:p,[p,x]),[X,K]=(0,r.useMemo)(()=>{const e=[],t=[];return a.forEach(n=>{const r=_(n);D&&!((e,t)=>"function"===typeof z?z(D,t,x):e.includes(D))(r.renderedText,n)||(e.push(n),t.push(r))}),[e,t]},[a,D]),q=(0,r.useMemo)(()=>X.filter(e=>s.includes(e.key)&&!e.disabled),[s,X]),G=(0,r.useMemo)(()=>{if(0===q.length)return"none";const e=SZ(s);return X.every(t=>e.has(t.key)||!!t.disabled)?"all":"part"},[q.length,s,X]),U=r.createElement(Tz,{disabled:0===a.filter(e=>!e.disabled).length||c,checked:"all"===G,indeterminate:"part"===G,className:`${B}-checkbox`,onChange:()=>{M?.(X.filter(e=>!e.disabled).map(e=>{let{key:t}=e;return t}),"all"!==G)}}),Q=N&&(N.length<2?N(e):N(e,{direction:x})),Z=Q?r.createElement("div",{className:re(`${B}-footer`,o.footer),style:i.footer},Q):null,J=!$&&!C&&U;let ee;ee=$?[C?{key:"removeCurrent",label:v,onClick(){const e=jZ((j.current?.items||[]).map(e=>e.item));P?.(e)}}:null,{key:"removeAll",label:b,onClick(){P?.(jZ(X))}}].filter(Boolean):[{key:"selectAll",label:"all"===G?f:m,onClick(){const e=jZ(X);M?.(e,e.length!==s.length)}},C?{key:"selectCurrent",label:h,onClick(){const e=j.current?.items||[];M?.(jZ(e.map(e=>e.item)),!0)}}:null,{key:"selectInvert",label:g,onClick(){const e=jZ((j.current?.items||[]).map(e=>e.item)),t=new Set(s),n=new Set(t);e.forEach(e=>{t.has(e)?n.delete(e):n.add(e)}),M?.(le(n),"replace")}}];const te=r.createElement(ID,{className:`${B}-header-dropdown`,menu:{items:ee},disabled:c},(e=>void 0!==e)(k)?k:r.createElement(Xv,null));return r.createElement("div",{className:re(T,o.section,{[`${T}-with-pagination`]:!!C,[`${T}-with-footer`]:!!Q}),style:{...n,...i.section}},r.createElement("div",{className:re(`${B}-header`,o.header),style:i.header},y?r.createElement(r.Fragment,null,J,te):null,r.createElement("span",{className:`${B}-header-selected`},((e,t)=>{if(E)return"function"===typeof E?E({selectedCount:e,totalCount:t}):E;const n=t>1?w:S;return r.createElement(r.Fragment,null,(e>0?`${e}/`:"")+t," ",n)})(q.length,X.length)),r.createElement("span",{className:re(`${B}-header-title`,o.title),style:i.title},l)),(()=>{const t=u?r.createElement("div",{className:`${B}-body-search-wrapper`},r.createElement(OZ,{prefixCls:`${B}-search`,onChange:F,handleClear:W,placeholder:H.placeholder||d,value:D,disabled:c})):null,{customize:n,bodyContent:a}=(e=>{let t=I?I({...e,onItemSelect:(t,n)=>e.onItemSelect(t,n)}):null;const n=!!t;return n||(t=r.createElement(DZ,{ref:j,...e,prefixCls:B})),{customize:n,bodyContent:t}})({...Y(e,HZ),filteredItems:X,filteredRenderItems:K,selectedKeys:s,classNames:o,styles:i});let l;return l=n?r.createElement("div",{className:`${B}-body-customize-wrapper`},a):X.length?a:r.createElement("div",{className:`${B}-body-not-found`},V),r.createElement("div",{className:re(`${B}-body`,{[`${B}-body-with-search`]:u},o.body),style:i.body},t,l)})(),Z)},WZ=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o}=e,i=`${t}-table`,a=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-section`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:o,minWidth:o}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},_Z=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-section`]:{borderColor:t,[`${n}-list-search:not([disabled])`]:{borderColor:r}}}},VZ=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:{..._Z(e,e.colorError)},[`${t}-status-warning`]:{..._Z(e,e.colorWarning)}}},XZ=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:s,controlItemBgActive:c,colorTextDisabled:u,colorTextSecondary:d,listHeight:p,listWidth:m,listWidthLG:f,fontSizeIcon:h,marginXS:g,paddingSM:b,lineType:v,antCls:y,iconCls:$,motionDurationSlow:C,controlItemBgHover:x,borderRadiusLG:w,colorBgContainer:S,colorText:E,controlItemBgActiveHover:k}=e,N=lt(e.calc(w).sub(o).equal());return{display:"flex",flexDirection:"column",width:m,height:p,border:`${lt(o)} ${v} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:f,height:"auto"},[`${t}-list`]:{"&-search":{[`${$}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${lt(e.calc(l).sub(o).equal())} ${lt(b)} ${lt(l)}`,color:E,background:S,borderBottom:`${lt(o)} ${v} ${r}`,borderRadius:`${lt(w)} ${lt(w)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":{...gr,flex:"0 1 auto",textAlign:"end",marginInlineStart:"auto"},"&-dropdown":{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"},fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}}},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:b}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${N} ${N}`,"&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${lt(s)} ${lt(b)}`,transition:`all ${C}`,"> *:not(:last-child)":{marginInlineEnd:g},"> *":{flex:"none"},"&-text":{...gr,flex:"auto"},"&-remove":{...Cr(e),color:n,"&:hover, &:focus":{color:d}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:k}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${lt(o)} ${v} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${lt(o)} ${v} ${r}`},"&-checkbox":{lineHeight:1}}}},KZ=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:o,marginXXS:i,fontSizeIcon:a,colorBgContainerDisabled:l}=e;return{[r]:{...br(e),position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-section`]:{background:l}},[`${r}-section`]:XZ(e),[`${r}-actions`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${lt(o)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${n}`]:{fontSize:a}}}}},qZ=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},GZ=To("Transfer",e=>{const t=ir(e);return[KZ(t),WZ(t),VZ(t),qZ(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o,lineWidth:i}=e,a=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-a)/2,transferHeaderVerticalPadding:Math.ceil((o-i-a)/2)}}),YZ=e=>{const{prefixCls:t,className:n,rootClassName:o,classNames:i,styles:a,style:l,listStyle:s,operationStyle:c,operations:u,actions:d,dataSource:p,targetKeys:m=[],selectedKeys:f,selectAllLabels:h=[],locale:g={},titles:b,disabled:v,showSearch:y=!1,showSelectAll:$,oneWay:C,pagination:x,status:w,selectionsIcon:S,filterOption:E,render:k,footer:N,children:I,rowKey:M,onScroll:P,onChange:R,onSearch:O,onSelectChange:z}=e,{getPrefixCls:A,renderEmpty:T,direction:B,className:H,style:D,classNames:L,styles:j,selectionsIcon:F}=xe("transfer"),W=(0,r.useContext)($c),_=v??W,V={...e,disabled:_},X=A("transfer",t),[K,q]=GZ(X),G=d||u||[],Y="rtl"===B,[U,Q,Z]=NZ(p,M,m),[J,ee,te,ne]=RZ(Q,Z,f),[oe,ie]=FG(e=>e.key),[ae,se]=FG(e=>e.key),ce=(0,r.useCallback)((e,t)=>{if("left"===e){const e="function"===typeof t?t(J||[]):t;te(e)}else{const e="function"===typeof t?t(ee||[]):t;ne(e)}},[J,ee]),ue=(e,t)=>{("left"===e?ie:se)(t)},de=(0,r.useCallback)((e,t)=>{"left"===e?z?.(t,ee):z?.(J,t)},[J,ee]),pe=e=>{const t="right"===e?J:ee,n=(e=>{const t=new Map;return e.forEach((e,n)=>{let{disabled:r,key:o}=e;r&&t.set(o,n)}),t})(U),r=t.filter(e=>!n.has(e)),o=SZ(r),i="right"===e?r.concat(m):m.filter(e=>!o.has(e)),a="right"===e?"left":"right";ce(a,[]),de(a,[]),R?.(i,e,r)},me=(e,t,n)=>{ce(e,r=>{let o=[];if("replace"===n)o=t;else if(n)o=Array.from(new Set([].concat(le(r),le(t))));else{const e=SZ(t);o=r.filter(t=>!e.has(t))}return de(e,o),o}),ue(e,null)},fe=(t,n,r,o)=>{const i="left"===t,a=i?J:ee,l=new Set(a),s=(i?Q:Z).filter(e=>!e.disabled),c=s.findIndex(e=>e.key===n);o&&a.length>0?((e,t,n,r)=>{("left"===e?oe:ae)(r,t,n)})(t,s,l,c):((e,t,n,r,o)=>{t.has(n)&&(t.delete(n),ue(e,null)),r&&(t.add(n),ue(e,o))})(t,l,n,r,c);const u=Array.from(l);de(t,u),e.selectedKeys||ce(t,u)},he=e=>"function"===typeof s?s({direction:e}):s||{},ge=(0,r.useContext)(qm),{hasFeedback:be,status:ve}=ge,ye=tv(ve,w),$e=!I&&x,Ce=Z.filter(e=>ee.includes(e.key)&&!e.disabled).length>0,we=Q.filter(e=>J.includes(e.key)&&!e.disabled).length>0,[Se,Ee]=Ca([L,i],[j,a],{props:V}),ke=re(X,{[`${X}-disabled`]:_,[`${X}-customize-list`]:!!I,[`${X}-rtl`]:Y},ev(X,ye,be),H,n,o,K,q,Se.root),[Ne]=Yc("Transfer",ss.Transfer),Ie=(Me=Ne,{...Me,notFoundContent:T?.("Transfer")||r.createElement(cv,{componentName:"Transfer"}),...g});var Me;const[Pe,Re]=(e=>b??e.titles??[])(Ie),Oe=S??F;return r.createElement("div",{className:ke,style:{...D,...Ee.root,...l}},r.createElement(FZ,{prefixCls:X,style:he("left"),classNames:Se,styles:Ee,titleText:Pe,dataSource:Q,filterOption:E,checkedKeys:J,handleFilter:e=>O?.("left",e.target.value),handleClear:()=>O?.("left",""),onItemSelect:(e,t,n)=>{fe("left",e,t,n?.shiftKey)},onItemSelectAll:(e,t)=>me("left",e,t),render:k,showSearch:y,renderList:I,footer:N,onScroll:e=>{P?.("left",e)},disabled:_,direction:Y?"right":"left",showSelectAll:$,selectAllLabel:h[0],pagination:$e,selectionsIcon:Oe,...Ie}),r.createElement(kZ,{className:re(`${X}-actions`,Se.actions),rightActive:we,moveToRight:()=>{pe("right"),ue("right",null)},leftActive:Ce,actions:G,moveToLeft:()=>{pe("left"),ue("left",null)},style:{...c,...Ee.actions},disabled:_,direction:B,oneWay:C}),r.createElement(FZ,{prefixCls:X,style:he("right"),classNames:Se,styles:Ee,titleText:Re,dataSource:Z,filterOption:E,checkedKeys:ee,handleFilter:e=>O?.("right",e.target.value),handleClear:()=>O?.("right",""),onItemSelect:(e,t,n)=>fe("right",e,t,n?.shiftKey),onItemSelectAll:(e,t)=>me("right",e,t),onItemRemove:e=>{ce("right",[]),R?.(m.filter(t=>!e.includes(t)),"left",le(e))},render:k,showSearch:y,renderList:I,footer:N,onScroll:e=>{P?.("right",e)},disabled:_,direction:Y?"left":"right",showSelectAll:$,selectAllLabel:h[1],showRemove:C,pagination:$e,selectionsIcon:Oe,...Ie}))};YZ.List=FZ,YZ.Search=OZ,YZ.Operation=kZ;const UZ=YZ,QZ=(e,t,n,o)=>r.useMemo(()=>{const r=e=>e.map(e=>{let{value:t}=e;return t}),i=r(e),a=r(t),l=i.filter(e=>!o[e]);let s=i,c=a;if(n){const e=XO(i,!0,o);s=e.checkedKeys,c=e.halfCheckedKeys}return[Array.from(new Set([...l,...s])),c]},[e,t,n,o]),ZZ=()=>null;function JZ(e){return c(e).map(e=>{if(!r.isValidElement(e)||!e.type)return null;const{key:t,props:{children:n,value:o,...i}}=e,a={key:t,value:o,...i},l=JZ(n);return l.length&&(a.children=l),a}).filter(e=>e)}function eJ(e){if(!e)return e;const t={...e};return"props"in t||Object.defineProperty(t,"props",{get:()=>(g(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t)}),t}const tJ=(e,t,n)=>{const{fieldNames:o,treeNodeFilterProp:i,filterTreeNode:a}=n,{children:l}=o;return r.useMemo(()=>{if(!t||!1===a)return e;const n="function"===typeof a?a:(e,n)=>String(n[i]).toUpperCase().includes(t.toUpperCase()),r=function(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.reduce((e,i)=>{const a=i[l],s=o||n(t,eJ(i)),c=r(a||[],s);return(s||c.length)&&e.push({...i,isLeaf:void 0,[l]:c}),e},[])};return r(e)},[e,t,l,i,a])};function nJ(e){const t=r.useRef();t.current=e;const n=r.useCallback(function(){return t.current(...arguments)},[]);return n}function rJ(e,t,n){return r.useMemo(()=>{if(e){if(n){const t={id:"id",pId:"pId",rootPId:null,..."object"===typeof n?n:{}};return function(e,t){const{id:n,pId:r,rootPId:o}=t,i=new Map,a=[];return e.forEach(e=>{const t=e[n],r={...e,key:e.key||t};i.set(t,r)}),i.forEach(e=>{const t=e[r],n=i.get(t);n?(n.children=n.children||[],n.children.push(e)):t!==o&&null!==o||a.push(e)}),a}(e,t)}return e}return JZ(t)},[t,n,e])}const oJ=r.createContext(null),iJ=r.createContext(null),aJ=e=>!e||e.disabled||e.disableCheckbox||!1===e.checkable,lJ=e=>null===e||void 0===e;function sJ(){return sJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sJ.apply(this,arguments)}const cJ={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},uJ=r.forwardRef((e,t)=>{const{prefixCls:n,multiple:o,searchValue:i,toggleOpen:a,open:l,notFoundContent:s}=$g(),{virtual:c,listHeight:u,listItemHeight:d,listItemScrollOffset:p,treeData:m,fieldNames:f,onSelect:h,popupMatchSelectWidth:g,treeExpandAction:b,treeTitleRender:v,onPopupScroll:y,leftMaxCount:C,leafCountOnly:x,valueEntities:w,classNames:S,styles:E}=r.useContext(iJ),{checkable:k,checkedKeys:N,halfCheckedKeys:I,treeExpandedKeys:M,treeDefaultExpandAll:P,treeDefaultExpandedKeys:R,onTreeExpand:O,treeIcon:z,showTreeIcon:T,switcherIcon:B,treeLine:H,treeNodeFilterProp:D,loadData:L,treeLoadedKeys:j,treeMotion:F,onTreeLoad:W,keyEntities:_}=r.useContext(oJ),V=r.useRef(),X=$(()=>m,[l,m],(e,t)=>t[0]&&e[1]!==t[1]),K=r.useMemo(()=>k?{checked:N,halfChecked:I}:null,[k,N,I]);r.useEffect(()=>{l&&!o&&N.length&&V.current?.scrollTo({key:N[0]})},[l]);const q=e=>{e.preventDefault()},G=(e,t)=>{const{node:n}=t;k&&aJ(n)||(h(n.key,{selected:!N.includes(n.key)}),o||a(!1))},[Y,U]=r.useState(R),[Q,Z]=r.useState(null),J=r.useMemo(()=>M?[...M]:i?Q:Y,[Y,Q,M,i]),ee=String(i).toLowerCase(),te=e=>!!ee&&String(e[D]).toLowerCase().includes(ee);r.useEffect(()=>{i&&Z(((e,t)=>{const n=[],r=e=>{e.forEach(e=>{const o=e[t.children];o&&(n.push(e[t.value]),r(o))})};return r(e),n})(m,f))},[i]);const[ne,re]=r.useState(()=>new Map);r.useEffect(()=>{C&&re(new Map)},[C]);const oe=A(e=>{const t=e[f.value];return!N.includes(t)&&(null!==C&&(C<=0||!(!x||!C)&&function(e){const t=e[f.value];if(!ne.has(t)){const e=w.get(t);if(0===(e.children||[]).length)ne.set(t,!1);else{const n=e.children.filter(e=>!e.node.disabled&&!e.node.disableCheckbox&&!N.includes(e.node[f.value])).length;ne.set(t,n>C)}}return ne.get(t)}(e)))}),ie=e=>{for(const t of e)if(!t.disabled&&!1!==t.selectable){if(!i)return t;if(te(t))return t;if(t[f.children]){const e=ie(t[f.children]);if(e)return e}}return null},[ae,le]=r.useState(null),se=_[ae];r.useEffect(()=>{if(!l)return;let e=null;e=o||!N.length||i?(()=>{const e=ie(X);return e?e[f.value]:null})():N[0],le(e)},[l,i]),r.useImperativeHandle(t,()=>({scrollTo:V.current?.scrollTo,onKeyDown:e=>{const{which:t}=e;switch(t){case ul.UP:case ul.DOWN:case ul.LEFT:case ul.RIGHT:V.current?.onKeyDown(e);break;case ul.ENTER:if(se){const e=oe(se.node),{selectable:t,value:n,disabled:r}=se?.node||{};!1===t||r||e||G(0,{node:{key:ae},selected:!N.includes(n)})}break;case ul.ESC:a(!1)}},onKeyUp:()=>{}}));const ce=$(()=>!i,[i,M||Y],(e,t)=>{let[n]=e,[r,o]=t;return n!==r&&!(!r&&!o)})?L:null;if(0===X.length)return r.createElement("div",{role:"listbox",className:`${n}-empty`,onMouseDown:q},s);const ue={fieldNames:f};return j&&(ue.loadedKeys=j),J&&(ue.expandedKeys=J),r.createElement("div",{onMouseDown:q},se&&l&&r.createElement("span",{style:cJ,"aria-live":"assertive"},se.node.value),r.createElement(SG.Provider,{value:{nodeDisabled:oe}},r.createElement($Y,sJ({classNames:S?.popup,styles:E?.popup,ref:V,focusable:!1,prefixCls:`${n}-tree`,treeData:X,height:u,itemHeight:d,itemScrollOffset:p,virtual:!1!==c&&!1!==g,multiple:o,icon:z,showIcon:T,switcherIcon:B,showLine:H,loadData:ce,motion:F,activeKey:ae,checkable:k,checkStrictly:!0,checkedKeys:K,selectedKeys:k?[]:N,defaultExpandAll:P,titleRender:v},ue,{onActiveChange:le,onSelect:G,onCheck:G,onExpand:e=>{U(e),Z(e),O&&O(e)},onLoad:W,filterTreeNode:te,expandAction:b,onScroll:y}))))});const dJ=uJ,pJ="SHOW_ALL",mJ="SHOW_PARENT",fJ="SHOW_CHILD";function hJ(e,t,n,r){const o=new Set(e);return t===fJ?e.filter(e=>{const t=n[e];return!t||!t.children||!t.children.some(e=>{let{node:t}=e;return o.has(t[r.value])})||!t.children.every(e=>{let{node:t}=e;return aJ(t)||o.has(t[r.value])})}):t===mJ?e.filter(e=>{const t=n[e],r=t?t.parent:null;return!r||aJ(r.node)||!o.has(r.key)}):e}function gJ(){return gJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gJ.apply(this,arguments)}const bJ=r.forwardRef((e,t)=>{const{id:n,prefixCls:o="rc-tree-select",value:i,defaultValue:a,onChange:l,onSelect:s,onDeselect:c,showSearch:u,searchValue:d,inputValue:p,onSearch:m,autoClearSearchValue:f,filterTreeNode:h,treeNodeFilterProp:b,showCheckedStrategy:v,treeNodeLabelProp:y,multiple:$,treeCheckable:C,treeCheckStrictly:x,labelInValue:w,maxCount:S,fieldNames:E,treeDataSimpleMode:k,treeData:N,children:I,loadData:M,treeLoadedKeys:P,onTreeLoad:R,treeDefaultExpandAll:O,treeExpandedKeys:z,treeDefaultExpandedKeys:A,onTreeExpand:T,treeExpandAction:B,virtual:H,listHeight:D=200,listItemHeight:L=20,listItemScrollOffset:j=0,onPopupVisibleChange:W,popupMatchSelectWidth:_=!0,treeLine:V,treeIcon:X,showTreeIcon:K,switcherIcon:q,treeMotion:G,treeTitleRender:Y,onPopupScroll:U,classNames:Q,styles:Z,...J}=e,ee=Is(n),te=C&&!x,ne=C||x,re=x||w,oe=ne||$,ie={searchValue:d,inputValue:p,onSearch:m,autoClearSearchValue:f,filterTreeNode:h,treeNodeFilterProp:b},[ae,le]=function(e,t){const{searchValue:n,inputValue:o,onSearch:i,autoClearSearchValue:a,filterTreeNode:l,treeNodeFilterProp:s}=t;return r.useMemo(()=>{const t="object"===typeof e,r={searchValue:n??o,onSearch:i,autoClearSearchValue:a,filterTreeNode:l,treeNodeFilterProp:s,...t?e:{}};return[!!t||e,r]},[e,n,o,i,a,l,s])}(u,ie),{searchValue:se,onSearch:ce,autoClearSearchValue:ue=!0,filterTreeNode:de,treeNodeFilterProp:pe="value"}=le,[me,fe]=F(a,i),he=r.useMemo(()=>C?v||fJ:pJ,[v,C]);const ge=r.useMemo(()=>(e=>{const{label:t,value:n,children:r}=e||{};return{_title:t?[t]:["title","label"],value:n||"value",key:n||"value",children:r||"children"}})(E),[JSON.stringify(E)]),[be,ve]=F("",se),ye=be||"",$e=rJ(N,I,k),{keyEntities:Ce,valueEntities:xe}=((e,t)=>r.useMemo(()=>DO(e,{fieldNames:t,initWrapper:e=>({...e,valueEntities:new Map}),processEntity:(e,n)=>{const r=e.node[t.value];n.valueEntities.set(r,e)}}),[e,t]))($e,ge),we=r.useCallback(e=>{const t=[],n=[];return e.forEach(e=>{xe.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},[xe]),Se=tJ($e,ye,{fieldNames:ge,treeNodeFilterProp:pe,filterTreeNode:de}),Ee=r.useCallback(e=>{if(e){if(y)return e[y];const{_title:t}=ge;for(let n=0;n<t.length;n+=1){const r=e[t[n]];if(void 0!==r)return r}}},[ge,y]),ke=r.useCallback(e=>{const t=(e=>Array.isArray(e)?e:void 0!==e?[e]:[])(e);return t.map(e=>function(e){return!e||"object"!==typeof e}(e)?{value:e}:e)},[]),Ne=r.useCallback(e=>ke(e).map(e=>{let{label:t}=e;const{value:n,halfChecked:r}=e;let o;const i=xe.get(n);if(i)t=Y?Y(i.node):t??Ee(i.node),o=i.node.disabled;else if(void 0===t){t=ke(me).find(e=>e.value===n).label}return{label:t,value:n,halfChecked:r,disabled:o}}),[xe,Ee,ke,me]),Ie=r.useMemo(()=>ke(null===me?[]:me),[ke,me]),[Me,Pe]=r.useMemo(()=>{const e=[],t=[];return Ie.forEach(n=>{n.halfChecked?t.push(n):e.push(n)}),[e,t]},[Ie]),Re=r.useMemo(()=>Me.map(e=>e.value),[Me]),[Oe,ze]=QZ(Me,Pe,te,Ce),Ae=r.useMemo(()=>{const e=hJ(Oe,he,Ce,ge).map(e=>Ce[e]?.node?.[ge.value]??e).map(e=>{const t=Me.find(t=>t.value===e),n=w?t?.label:Y?.(t);return{value:e,label:n}}),t=Ne(e),n=t[0];return!oe&&n&&lJ(n.value)&&lJ(n.label)?[]:t.map(e=>({...e,label:e.label??e.value}))},[ge,oe,Oe,Me,Ne,he,Ce]),[Te]=(e=>{const t=r.useRef({valueLabels:new Map});return r.useMemo(()=>{const{valueLabels:n}=t.current,r=new Map,o=e.map(e=>{const{value:t,label:o}=e,i=o??n.get(t);return r.set(t,i),{...e,label:i}});return t.current.valueLabels=r,[o]},[e])})(Ae),Be=r.useMemo(()=>!oe||"SHOW_CHILD"!==he&&!x&&C?null:S,[S,oe,x,he,C]),He=nJ((e,t,n)=>{const o=hJ(e,he,Ce,ge);if(Be&&o.length>Be)return;const i=Ne(e);if(fe(i),ue&&ve(""),l){let i=e;te&&(i=o.map(e=>{const t=xe.get(e);return t?t.node[ge.value]:e}));const{triggerValue:a,selected:s}=t||{triggerValue:void 0,selected:void 0};let c=i;if(x){const e=Pe.filter(e=>!i.includes(e.value));c=[...c,...e]}const u=Ne(c),d={preValue:Me,triggerValue:a};let p=!0;(x||"selection"===n&&!s)&&(p=!1),function(e,t,n,o,i,a){let l=null,s=null;function c(){s||(s=[],function e(o){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",c=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.map((o,u)=>{const d=`${i}-${u}`,p=o[a.value],m=n.includes(p),f=e(o[a.children]||[],d,m),h=r.createElement(ZZ,o,f.map(e=>e.node));if(t===p&&(l=h),m){const e={pos:d,node:h,children:f};return c||s.push(e),e}return null}).filter(e=>e)}(o),s.sort((e,t)=>{let{node:{props:{value:r}}}=e,{node:{props:{value:o}}}=t;return n.indexOf(r)-n.indexOf(o)}))}Object.defineProperty(e,"triggerNode",{get:()=>(g(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),l)}),Object.defineProperty(e,"allCheckedNodes",{get:()=>(g(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),i?s:s.map(e=>{let{node:t}=e;return t}))})}(d,a,e,$e,p,ge),ne?d.checked=s:d.selected=s;const m=re?u:u.map(e=>e.value);l(oe?m:m[0],re?null:u.map(e=>e.label),d)}}),De=r.useCallback((e,t)=>{let{selected:n,source:r}=t;const o=Ce[e],i=o?.node,a=i?.[ge.value]??e;if(oe){let e=n?[...Re,a]:Oe.filter(e=>e!==a);if(te){const{missingRawValues:t,existRawValues:r}=we(e),o=r.map(e=>xe.get(e).key);let i;({checkedKeys:i}=XO(o,!!n||{checked:!1,halfCheckedKeys:ze},Ce)),e=[...t,...i.map(e=>Ce[e].node[ge.value])]}He(e,{selected:n,triggerValue:a},r||"option")}else He([a],{selected:!0,triggerValue:a},"option");n||!oe?s?.(a,eJ(i)):c?.(a,eJ(i))},[we,xe,Ce,ge,oe,Re,He,te,s,c,Oe,ze,S]),Le=r.useCallback(e=>{W&&W(e)},[W]),je=nJ((e,t)=>{const n=e.map(e=>e.value);"clear"!==t.type?t.values.length&&De(t.values[0].value,{selected:!1,source:"selection"}):He(n,{},"selection")}),Fe=r.useMemo(()=>({virtual:H,popupMatchSelectWidth:_,listHeight:D,listItemHeight:L,listItemScrollOffset:j,treeData:Se,fieldNames:ge,onSelect:De,treeExpandAction:B,treeTitleRender:Y,onPopupScroll:U,leftMaxCount:void 0===S?null:S-Te.length,leafCountOnly:"SHOW_CHILD"===he&&!x&&!!C,valueEntities:xe,classNames:Q,styles:Z}),[H,_,D,L,j,Se,ge,De,B,Y,U,S,Te.length,he,x,C,xe,Q,Z]),We=r.useMemo(()=>({checkable:ne,loadData:M,treeLoadedKeys:P,onTreeLoad:R,checkedKeys:Oe,halfCheckedKeys:ze,treeDefaultExpandAll:O,treeExpandedKeys:z,treeDefaultExpandedKeys:A,onTreeExpand:T,treeIcon:X,treeMotion:G,showTreeIcon:K,switcherIcon:q,treeLine:V,treeNodeFilterProp:pe,keyEntities:Ce}),[ne,M,P,R,Oe,ze,O,z,A,T,X,G,K,q,V,pe,Ce]);return r.createElement(iJ.Provider,{value:Fe},r.createElement(oJ.Provider,{value:We},r.createElement(bb,gJ({ref:t},J,{classNames:Q,styles:Z,id:ee,prefixCls:o,mode:oe?"multiple":void 0,displayValues:Te,onDisplayValuesChange:je,autoClearSearchValue:ue,showSearch:ae,searchValue:ye,onSearch:e=>{ve(e),ce?.(e)},OptionList:dJ,emptyOptions:!$e.length,onPopupVisibleChange:Le,popupMatchSelectWidth:_}))))});const vJ=bJ;vJ.TreeNode=ZZ,vJ.SHOW_ALL=pJ,vJ.SHOW_PARENT=mJ,vJ.SHOW_CHILD=fJ;const yJ=vJ;function $J(e,t,n){return To("TreeSelect",e=>(e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${lt(e.paddingXS)} ${lt(e.calc(e.paddingXS).div(2).equal())}`},DY(n,ir(e,{colorBgContainer:r}),!1),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},pz(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]})(ir(e,{treePrefixCls:t})),LY,{resetFont:!1})(e,n)}const CJ=r.forwardRef((e,t)=>{const{prefixCls:n,size:o,disabled:i,bordered:a=!0,style:l,className:s,rootClassName:c,treeCheckable:u,multiple:d,listHeight:p=256,listItemHeight:m,placement:f,notFoundContent:h,switcherIcon:g,treeLine:b,getPopupContainer:v,popupClassName:y,dropdownClassName:$,treeIcon:C=!1,transitionName:x,choiceTransitionName:w="",status:S,treeExpandAction:E,builtinPlacements:k,dropdownMatchSelectWidth:N,popupMatchSelectWidth:I,allowClear:M,variant:P,dropdownStyle:R,dropdownRender:O,popupRender:z,onDropdownVisibleChange:A,onOpenChange:T,tagRender:B,maxCount:H,showCheckedStrategy:D,treeCheckStrictly:L,styles:j,classNames:F,...W}=e,{getPrefixCls:_,getPopupContainer:V,direction:X,styles:K,classNames:q,switcherIcon:G}=xe("treeSelect"),{renderEmpty:U,virtual:Q,popupMatchSelectWidth:Z,popupOverflow:J}=r.useContext(ye),[,ee]=Ao(),te=m??ee?.controlHeightSM+ee?.paddingXXS;const ne=_(),oe=_("select",n),ie=_("select-tree",n),ae=_("tree-select",n),{compactSize:le,compactItemClassnames:se}=cu(oe,X),ce=Ka(oe),ue=Ka(ae),[de,pe]=Lv(oe,ce);$J(ae,ie,ue);const[me,fe]=uv("treeSelect",P,a),he=ou(e=>o??le??e),ge=r.useContext($c),be=i??ge,{status:ve,hasFeedback:$e,isFormItemInput:Ce,feedbackIcon:we}=r.useContext(qm),Se=tv(ve,S),Ee={...e,size:he,disabled:be,status:Se,variant:me},[ke,Ne]=Ca([q,F],[K,j],{props:Ee},{popup:{_default:"root"}}),Ie=re(y||$,`${ae}-dropdown`,{[`${ae}-dropdown-rtl`]:"rtl"===X},c,ke.root,ke.popup?.root,pe,ce,ue,de),Me=Uv(z||O),Pe=T||A,Re=!(!u&&!d),Oe=r.useMemo(()=>{if(!H||("SHOW_ALL"!==D||L)&&"SHOW_PARENT"!==D)return H},[H,D,L]),ze=Qv(e.suffixIcon,e.showArrow),Ae=I??N??Z,{suffixIcon:Te,removeIcon:Be,clearIcon:He}=Yv({...W,multiple:Re,showSuffixIcon:ze,hasFeedback:$e,feedbackIcon:we,prefixCls:oe,componentName:"TreeSelect"}),De=!0===M?{clearIcon:He}:M;let Le;Le=void 0!==h?h:U?.("Select")||r.createElement(cv,{componentName:"Select"});const je=Y(W,["suffixIcon","removeIcon","clearIcon"]),Fe=r.useMemo(()=>void 0!==f?f:"rtl"===X?"bottomRight":"bottomLeft",[f,X]),We=re(!n&&ae,{[`${oe}-lg`]:"large"===he,[`${oe}-sm`]:"small"===he,[`${oe}-rtl`]:"rtl"===X,[`${oe}-${me}`]:fe,[`${oe}-in-form-item`]:Ce},ev(oe,Se,$e),se,s,c,ke?.root,pe,ce,ue,de),_e=g??G,[Ve]=Tl("SelectLike",Ne.popup?.root?.zIndex);return r.createElement(yJ,{classNames:ke,styles:Ne,virtual:Q,disabled:be,...je,popupMatchSelectWidth:Ae,builtinPlacements:dv(k,J),ref:t,prefixCls:oe,className:We,style:{...Ne?.root,...l},listHeight:p,listItemHeight:te,treeCheckable:u?r.createElement("span",{className:`${oe}-tree-checkbox-inner`}):u,treeLine:!!b,suffixIcon:Te,multiple:Re,placement:Fe,removeIcon:Be,allowClear:De,switcherIcon:e=>r.createElement(QY,{prefixCls:ie,switcherIcon:_e,treeNodeProps:e,showLine:b}),showTreeIcon:C,notFoundContent:Le,getPopupContainer:v||V,treeMotion:null,popupClassName:Ie,popupStyle:{...Ne.root,...Ne.popup?.root,zIndex:Ve},popupRender:Me,onPopupVisibleChange:Pe,choiceTransitionName:qc(ne,"",w),transitionName:qc(ne,"slide-up",x),treeExpandAction:E,tagRender:Re?B:void 0,maxCount:Oe,showCheckedStrategy:D,treeCheckStrictly:L})}),xJ=CJ,wJ=vg(xJ,"popupAlign",e=>Y(e,["visible"]));xJ.TreeNode=ZZ,xJ.SHOW_ALL=pJ,xJ.SHOW_PARENT=mJ,xJ.SHOW_CHILD=fJ,xJ._InternalPanelDoNotUseOrYouWillBeFired=wJ;const SJ=xJ;const EJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function kJ(){return kJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kJ.apply(this,arguments)}const NJ=r.forwardRef((e,t)=>r.createElement(si,kJ({},e,{ref:t,icon:EJ}))),IJ=e=>{if(T()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1};function MJ(e,t){return Array.isArray(e)||void 0===t?IJ(e):((e,t)=>{if(!IJ(e))return!1;const n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r})(e,t)}const PJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function RJ(){return RJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RJ.apply(this,arguments)}const OJ=r.forwardRef((e,t)=>r.createElement(si,RJ({},e,{ref:t,icon:PJ}))),zJ=e=>{const t={};return[1,2,3,4,5].forEach(n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},AJ=e=>{const{componentCls:t}=e,n=`${t}-link`;return{[`&${n}`]:{...Cr(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},TJ=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Wr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),BJ=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},HJ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),DJ=To("Typography",e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"},...zJ(e),[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}},...TJ(e),...AJ(e),[`${t}-actions`]:{display:"inline"},[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:{...Cr(e),marginInlineStart:e.marginXXS},...BJ(e),...HJ(e),"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"},"&-rtl":{direction:"rtl"}}}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),LJ=e=>{const{prefixCls:t,"aria-label":n,className:o,style:i,direction:a,maxLength:l,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:p,component:m,enterIcon:f=r.createElement(OJ,null)}=e,h=r.useRef(null),g=r.useRef(!1),b=r.useRef(null),[v,y]=r.useState(c);r.useEffect(()=>{y(c)},[c]),r.useEffect(()=>{if(h.current?.resizableTextArea){const{textArea:e}=h.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}},[]);const $=()=>{u(v.trim())},[C,x]=DJ(t),w=re(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===a,[`${t}-${m}`]:!!m},o,C,x);return r.createElement("div",{className:w,style:i},r.createElement($F,{ref:h,maxLength:l,value:v,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;g.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;b.current!==t||g.current||n||r||o||i||(t===ul.ENTER?($(),p?.()):t===ul.ESC&&d())},onCompositionStart:()=>{g.current=!0},onCompositionEnd:()=>{g.current=!1},onBlur:()=>{$()},"aria-label":n,rows:1,autoSize:s}),null!==f?Ml(f,{className:`${t}-edit-content-confirm`}):null)};const jJ=async function(e,t){if("string"!==typeof e)return!1;const n="text/html"===t?.format;return!!await(async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}})(e,n)||!!((e,t)=>{let n=!1;const r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData("text/plain",e),t&&r.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}})(e,n)},FJ=e=>{let{copyConfig:t,children:n}=e;const[o,i]=r.useState(!1),[a,l]=r.useState(!1),s=r.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),r.useEffect(()=>c,[]);const d=A(async e=>{e?.preventDefault(),e?.stopPropagation(),l(!0);try{const r="function"===typeof t.text?await t.text():t.text;await jJ(r||e_(n,{skipEmpty:!0}).join("")||"",u),l(!1),i(!0),c(),s.current=setTimeout(()=>{i(!1)},3e3),t.onCopy?.(e)}catch(r){throw l(!1),r}});return{copied:o,copyLoading:a,onClick:d}};function WJ(e,t){return r.useMemo(()=>{const n=!!e;return[n,{...t,...n&&"object"===typeof e?e:null}]},[e])}const _J=e=>{const t=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{t.current=e}),t.current},VJ=(e,t,n)=>(0,r.useMemo)(()=>!0===e?{title:t??n}:(0,r.isValidElement)(e)?{title:e}:"object"===typeof e?{title:t??n,...e}:{title:e},[e,t,n]),XJ=r.forwardRef((e,t)=>{const{prefixCls:n,component:o="article",className:i,rootClassName:a,children:l,direction:s,style:c,...u}=e,{getPrefixCls:d,direction:p,className:m,style:f}=xe("typography"),h=s??p,g=d("typography",n),[b,v]=DJ(g),y=re(g,m,{[`${g}-rtl`]:"rtl"===h},i,a,b,v),$={...f,...c};return r.createElement(o,{className:y,style:$,ref:t,...u},l)});const KJ=XJ;const qJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function GJ(){return GJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GJ.apply(this,arguments)}const YJ=r.forwardRef((e,t)=>r.createElement(si,GJ({},e,{ref:t,icon:qJ}))),UJ=e=>!1===e?[!1,!1]:e_(e);function QJ(e,t,n){return!0===e||void 0===e?t:e||n&&t}const ZJ=e=>["string","number"].includes(typeof e),JJ=e=>{const{prefixCls:t,copied:n,locale:o,iconOnly:i,tooltips:a,icon:l,tabIndex:s,onCopy:c,loading:u}=e,d=UJ(a),p=UJ(l),{copied:m,copy:f}=o??{},h=n?m:f,g=QJ(d[n?1:0],h),b="string"===typeof g?g:h;return r.createElement(Jy,{title:g},r.createElement("button",{type:"button",className:re(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":b,tabIndex:s},n?QJ(p[1],r.createElement(Wv,null),!0):QJ(p[0],u?r.createElement(kl,null):r.createElement(YJ,null),!0)))},e0=r.forwardRef((e,t)=>{let{style:n,children:o}=e;const i=r.useRef(null);return r.useImperativeHandle(t,()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight})),r.createElement("span",{"aria-hidden":!0,ref:i,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...n}},o)});function t0(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],a=n+(ZJ(i)?String(i).length:1);if(a>t){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const n0=0,r0=4,o0={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function i0(e){const{enableMeasure:t,width:n,text:o,children:i,rows:a,expanded:l,miscDeps:s,onEllipsis:u}=e,d=r.useMemo(()=>c(o),[o]),p=r.useMemo(()=>(e=>e.reduce((e,t)=>e+(ZJ(t)?String(t).length:1),0))(d),[o]),m=r.useMemo(()=>i(d,!1),[o]),[f,h]=r.useState(null),g=r.useRef(null),b=r.useRef(null),v=r.useRef(null),y=r.useRef(null),$=r.useRef(null),[C,x]=r.useState(!1),[w,S]=r.useState(n0),[E,k]=r.useState(0),[N,I]=r.useState(null);L(()=>{S(t&&n&&p?1:n0)},[n,o,a,t,d]),L(()=>{if(1===w){S(2);const e=b.current&&getComputedStyle(b.current).whiteSpace;I(e)}else if(2===w){const e=!!v.current?.isExceed();S(e?3:r0),h(e?[0,p]:null),x(e);const t=v.current?.getHeight()||0,n=1===a?0:y.current?.getHeight()||0,r=$.current?.getHeight()||0,o=Math.max(t,n+r);k(o+1),u(e)}},[w]);const M=f?Math.ceil((f[0]+f[1])/2):0;L(()=>{const[e,t]=f||[0,0];if(e!==t){const n=(g.current?.getHeight()||0)>E;let r=M;t-e===1&&(r=n?e:t),h(n?[e,r]:[r,t])}},[f,M]);const P=r.useMemo(()=>{if(!t)return i(d,!1);if(3!==w||!f||f[0]!==f[1]){const e=i(d,!1);return[r0,n0].includes(w)?e:r.createElement("span",{style:{...o0,WebkitLineClamp:a}},e)}return i(l?d:t0(d,f[0]),C)},[l,w,f,d].concat(le(s))),R={width:n,margin:0,padding:0,whiteSpace:"nowrap"===N?"normal":"inherit"};return r.createElement(r.Fragment,null,P,2===w&&r.createElement(r.Fragment,null,r.createElement(e0,{style:{...R,...o0,WebkitLineClamp:a},ref:v},m),r.createElement(e0,{style:{...R,...o0,WebkitLineClamp:a-1},ref:y},m),r.createElement(e0,{style:{...R,...o0,WebkitLineClamp:1},ref:$},i([],!0))),3===w&&f&&f[0]!==f[1]&&r.createElement(e0,{style:{...R,top:400},ref:g},i(t0(d,M),!0)),1===w&&r.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const a0=e=>{let{enableEllipsis:t,isEllipsis:n,open:o,children:i,tooltipProps:a}=e;if(!a?.title||!t)return i;const l=o&&n;return r.createElement(Jy,{open:l,...a},i)};const l0=["delete","mark","code","underline","strong","keyboard","italic"],s0=r.forwardRef((e,t)=>{const{prefixCls:n,className:o,style:i,type:a,disabled:l,children:s,ellipsis:u,editable:d,copyable:p,component:m,title:f,onMouseEnter:h,onMouseLeave:g,...b}=e,{getPrefixCls:v,direction:y}=r.useContext(ye),[$]=Yc("Text"),C=r.useRef(null),x=r.useRef(null),S=v("typography",n),E=Y(b,l0),[k,N]=WJ(d),[I,M]=F(!1,N.editing),{triggerType:P=["icon"]}=N,R=e=>{e&&N.onStart?.(),M(e)},O=_J(I);L(()=>{!I&&O&&x.current?.focus()},[I]);const z=e=>{e?.preventDefault(),R(!0)},A=e=>{N.onChange?.(e),R(!1)},T=()=>{N.onCancel?.(),R(!1)},[B,H]=WJ(p),{copied:D,copyLoading:j,onClick:W}=FJ({copyConfig:H,children:s}),[_,V]=r.useState(!1),[X,K]=r.useState(!1),[q,G]=r.useState(!1),[U,Q]=r.useState(!1),[Z,J]=r.useState(!0),[ee,ne]=WJ(u,{expandable:!1,symbol:e=>e?$?.collapse:$?.expand}),[oe,ie]=F(ne.defaultExpanded||!1,ne.expanded),ae=ee&&(!oe||"collapsible"===ne.expandable),{rows:se=1}=ne,ce=r.useMemo(()=>ae&&(void 0!==ne.suffix||ne.onEllipsis||ne.expandable||k||B),[ae,ne,k,B]);L(()=>{ee&&!ce&&(V(MJ("webkitLineClamp")),K(MJ("textOverflow")))},[ce,ee]);const[ue,de]=r.useState(ae),pe=r.useMemo(()=>!ce&&(1===se?X:_),[ce,X,_]);L(()=>{de(pe&&ae)},[pe,ae]);const me=ae&&(ue?U:q),fe=ae&&1===se&&ue,he=ae&&se>1&&ue,[ge,be]=r.useState(0),[ve,$e]=r.useState(!1),[Ce,xe]=r.useState(!1),we=e=>{G(e),q!==e&&ne.onEllipsis?.(e)};r.useEffect(()=>{const e=C.current;if(ee&&ue&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}(e);U!==t&&Q(t)}},[ee,ue,s,he,Z,ge]),r.useEffect(()=>{const e=C.current;if("undefined"===typeof IntersectionObserver||!e||!ue||!ae)return;const t=new IntersectionObserver(()=>{J(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ue,ae]);const Se=VJ(ne.tooltip,N.text,s),Ee=r.useMemo(()=>{if(ee&&!ue)return[N.text,s,f,Se.title].find(ZJ)},[ee,ue,f,Se.title,me]);if(I)return r.createElement(LJ,{value:N.text??("string"===typeof s?s:""),onSave:A,onCancel:T,onEnd:N.onEnd,prefixCls:S,className:o,style:i,direction:y,component:m,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const ke=()=>{const{expandable:e,symbol:t}=ne;return e?r.createElement("button",{type:"button",key:"expand",className:`${S}-${oe?"collapse":"expand"}`,onClick:e=>((e,t)=>{ie(t.expanded),ne.onExpand?.(e,t)})(e,{expanded:!oe}),"aria-label":oe?$.collapse:$?.expand},"function"===typeof t?t(oe):t):null},Ne=e=>{const t=e&&ke(),n=(()=>{if(!k)return;const{icon:e,tooltip:t,tabIndex:n}=N,o=c(t)[0]||$?.edit,i="string"===typeof o?o:"";return P.includes("icon")?r.createElement(Jy,{key:"edit",title:!1===t?"":o},r.createElement("button",{type:"button",ref:x,className:`${S}-edit`,onClick:z,"aria-label":i,tabIndex:n},e||r.createElement(NJ,{role:"button"}))):null})(),o=B?r.createElement(JJ,{key:"copy",...H,prefixCls:S,copied:D,locale:$,onCopy:W,loading:j,iconOnly:!xa(s)}):null;return t||n||o?r.createElement("span",{key:"operations",className:`${S}-actions`,onMouseEnter:()=>$e(!0),onMouseLeave:()=>$e(!1)},t,n,o):null};return r.createElement(te,{onResize:e=>{let{offsetWidth:t}=e;be(t)},disabled:!ae},c=>r.createElement(a0,{tooltipProps:Se,enableEllipsis:ae,isEllipsis:me,open:Ce&&!ve},r.createElement(KJ,{onMouseEnter:e=>{xe(!0),h?.(e)},onMouseLeave:e=>{xe(!1),g?.(e)},className:re({[`${S}-${a}`]:a,[`${S}-disabled`]:l,[`${S}-ellipsis`]:ee,[`${S}-ellipsis-single-line`]:fe,[`${S}-ellipsis-multiple-line`]:he,[`${S}-link`]:"a"===m},o),prefixCls:n,style:{...i,WebkitLineClamp:he?se:void 0},component:m,ref:w(c,C,t),direction:y,onClick:P.includes("text")?z:void 0,"aria-label":Ee?.toString(),title:f,...E},r.createElement(i0,{enableMeasure:ae&&!ue,text:s,rows:se,width:ge,onEllipsis:we,expanded:oe,miscDeps:[D,oe,j,k,B,$].concat(le(l0.map(t=>e[t])))},(t,n)=>function(e,t){let{mark:n,code:o,underline:i,delete:a,strong:l,keyboard:s,italic:c}=e,u=t;function d(e,t){t&&(u=r.createElement(e,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",o),d("mark",n),d("kbd",s),d("i",c),u}(e,r.createElement(r.Fragment,null,t.length>0&&n&&!oe&&Ee?r.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!oe&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ne.suffix,Ne(e)])(n)))))))}),c0=s0,u0=r.forwardRef((e,t)=>{const{ellipsis:n,rel:o,children:i,navigate:a,...l}=e;const s={...l,rel:void 0===o&&"_blank"===l.target?"noopener noreferrer":o};return r.createElement(c0,{...s,ref:t,ellipsis:!!n,component:"a"},i)}),d0=u0,p0=r.forwardRef((e,t)=>{const{children:n,...o}=e;return r.createElement(c0,{ref:t,...o,component:"div"},n)}),m0=r.forwardRef((e,t)=>{const{ellipsis:n,children:o,...i}=e,a=r.useMemo(()=>n&&"object"===typeof n?Y(n,["expandable","rows"]):n,[n]);return r.createElement(c0,{ref:t,...i,ellipsis:a,component:"span"},o)}),f0=m0,h0=[1,2,3,4,5],g0=r.forwardRef((e,t)=>{const{level:n=1,children:o,...i}=e;const a=h0.includes(n)?`h${n}`:"h1";return r.createElement(c0,{ref:t,...i,component:a},o)}),b0=KJ;b0.Text=f0,b0.Link=d0,b0.Title=g0,b0.Paragraph=p0;const v0=b0;function y0(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(Ha){return t}}function $0(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});const n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{const r=e.data[t];Array.isArray(r)?r.forEach(e=>{n.append(`${t}[]`,e)}):n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),y0(t)):e.onSuccess(y0(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(e=>{null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}const C0=async(e,t)=>{const n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));const o=async(e,o)=>{if(e)if(e.path=o||"",e.isFile){const r=await async function(e){return new Promise(n=>{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}(e);r&&n.push(r)}else if(e.isDirectory){const t=await async function(e){const t=e.createReader(),n=[];for(;;){const e=await new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t<r;t++)n.push(e[t])}return n}(e);r.push(...t)}};let i=0;for(;i<r.length;)await o(r[i]),i++;return n},x0=+new Date;let w0=0;function S0(){return`rc-upload-${x0}-${++w0}`}function E0(){return E0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E0.apply(this,arguments)}class k0 extends r.Component{state=(()=>({uid:S0()}))();reqs={};fileInput;_isMounted;filterFile=(()=>{var e=this;return function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{accept:r,directory:o}=e.props;let i,a;if("string"===typeof r)a=r;else{const{filter:e,format:t}=r||{};a=t,i="native"===e?()=>!0:e}const l=i||(o||n?e=>((e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(e=>{const t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){const e=r.toLowerCase(),n=t.toLowerCase();let o=[n];return".jpg"!==n&&".jpeg"!==n||(o=[".jpg",".jpeg"]),o.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&(g(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0)})}return!0})(e,a):()=>!0);return l(t)}})();onChange=e=>{const{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()};onClick=e=>{const t=this.fileInput;if(!t)return;const n=e.target,{onClick:r}=this.props;if(n&&"BUTTON"===n.tagName){t.parentNode.focus(),n.blur()}t.click(),r&&r(e)};onKeyDown=e=>{"Enter"===e.key&&this.onClick(e)};onDataTransferFiles=async(e,t)=>{const{multiple:n,directory:r}=this.props,o=[...e.items||[]];let i=[...e.files||[]];if((i.length>0||o.some(e=>"file"===e.kind))&&t?.(),r)i=await C0(Array.prototype.slice.call(o),this.filterFile),this.uploadFiles(i);else{let e=[...i].filter(e=>this.filterFile(e,!0));!1===n&&(e=i.slice(0,1)),this.uploadFiles(e)}};onFilePaste=async e=>{const{pastable:t}=this.props;if(t&&"paste"===e.type){const t=e.clipboardData;return this.onDataTransferFiles(t,()=>{e.preventDefault()})}};onFileDragOver=e=>{e.preventDefault()};onFileDrop=async e=>{if(e.preventDefault(),"drop"===e.type){const t=e.dataTransfer;return this.onDataTransferFiles(t)}};componentDidMount(){this._isMounted=!0;const{pastable:e}=this.props;e&&document.addEventListener("paste",this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}componentDidUpdate(e){const{pastable:t}=this.props;t&&!e.pastable?document.addEventListener("paste",this.onFilePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onFilePaste)}uploadFiles=e=>{const t=[...e],n=t.map(e=>(e.uid=S0(),this.processFile(e,t)));Promise.all(n).then(e=>{const{onBatchStart:t}=this.props;t?.(e.map(e=>{let{origin:t,parsedFile:n}=e;return{file:t,parsedFile:n}})),e.filter(e=>null!==e.parsedFile).forEach(e=>{this.post(e)})})};processFile=async(e,t)=>{const{beforeUpload:n}=this.props;let r=e;if(n){try{r=await n(e,t)}catch(Ha){r=!1}if(!1===r)return{origin:e,parsedFile:null,action:null,data:null}}const{action:o}=this.props;let i;i="function"===typeof o?await o(e):o;const{data:a}=this.props;let l;l="function"===typeof a?await a(e):a;const s="object"!==typeof r&&"string"!==typeof r||!r?e:r;let c;c=s instanceof File?s:new File([s],e.name,{type:e.type});const u=c;return u.uid=e.uid,{origin:e,data:l,parsedFile:u,action:i}};post(e){let{data:t,origin:n,action:r,parsedFile:o}=e;if(!this._isMounted)return;const{onStart:i,customRequest:a,name:l,headers:s,withCredentials:c,method:u}=this.props,{uid:d}=n,p=a||$0,m={action:r,filename:l,data:t,file:o,headers:s,withCredentials:c,method:u||"post",onProgress:e=>{const{onProgress:t}=this.props;t?.(e,o)},onSuccess:(e,t)=>{const{onSuccess:n}=this.props;n?.(e,o,t),delete this.reqs[d]},onError:(e,t)=>{const{onError:n}=this.props;n?.(e,t,o),delete this.reqs[d]}};i(n),this.reqs[d]=p(m,{defaultRequest:$0})}reset(){this.setState({uid:S0()})}abort(e){const{reqs:t}=this;if(e){const n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}saveFileInput=e=>{this.fileInput=e};render(){const{component:e,prefixCls:t,className:n,classNames:o={},disabled:i,id:a,name:l,style:s,styles:c={},multiple:u,accept:d,capture:p,children:m,directory:f,openFileDialogOnClick:h,onMouseEnter:g,onMouseLeave:b,hasControlInside:v,...y}=this.props,$="string"===typeof d?d:d?.format,C=re(t,{[`${t}-disabled`]:i,[n]:n}),x=f?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},w=i?{}:{onClick:h?this.onClick:()=>{},onKeyDown:h?this.onKeyDown:()=>{},onMouseEnter:g,onMouseLeave:b,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:v?void 0:"0"};return r.createElement(e,E0({},w,{className:C,role:v?void 0:"button",style:s}),r.createElement("input",E0({},fa(y,{aria:!0,data:!0}),{id:a,name:l,disabled:i,type:"file",ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:"none",...c.input},className:o.input,accept:$},x,{multiple:u,onChange:this.onChange},null!=p?{capture:p}:{})),m)}}const N0=k0;function I0(){return I0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I0.apply(this,arguments)}function M0(){}class P0 extends r.Component{static defaultProps=(()=>({component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:M0,onError:M0,onSuccess:M0,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1}))();uploader;abort(e){this.uploader.abort(e)}saveUploader=e=>{this.uploader=e};render(){return r.createElement(N0,I0({},this.props,{ref:this.saveUploader}))}}const R0=P0,O0=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${lt(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${lt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${lt(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},z0=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,motionDurationSlow:i,calc:a}=e,l=`${t}-list-item`,s=`${l}-actions`,c=`${l}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},lineHeight:e.lineHeight,[l]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${i}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:{...gr,padding:`0 ${lt(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${i}`},[s]:{whiteSpace:"nowrap",[c]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[c]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${i}`},[`\n ${c}:focus-visible,\n &.picture ${c}\n `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${c}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:["opacity","height"].map(e=>`${e} ${i}`).join(", "),"&::before":{display:"table",width:0,height:0,content:'""'}}}}}},A0=e=>{const{componentCls:t}=e,n=new Bn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Bn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:Qf(e)},n,r]},T0=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${lt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:{...gr,width:r,height:r,lineHeight:lt(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}},[`${l}-progress`]:{bottom:i(e.fontSize).mul(e.lineHeight).div(2).add(o).equal(),width:`calc(100% - ${lt(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${qr[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${qr.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},B0=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},display:"block",[`${t}${t}-select`]:{width:s,height:s,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${lt(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","&:not(:empty)":{minHeight:s},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:s,height:s,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${lt(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${lt(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:r,margin:`0 ${lt(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${lt(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${lt(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},H0=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},D0=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...br(e),[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}}}},L0=To("Upload",e=>{const{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:o,calc:i}=e,a=ir(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:o});return[D0(a),O0(a),T0(a),B0(a),z0(a),A0(a),H0(a),fd(a)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG}));const j0={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};function F0(){return F0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F0.apply(this,arguments)}const W0=r.forwardRef((e,t)=>r.createElement(si,F0({},e,{ref:t,icon:j0})));const _0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function V0(){return V0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V0.apply(this,arguments)}const X0=r.forwardRef((e,t)=>r.createElement(si,V0({},e,{ref:t,icon:_0})));const K0={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q0.apply(this,arguments)}const G0=r.forwardRef((e,t)=>r.createElement(si,q0({},e,{ref:t,icon:K0})));function Y0(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function U0(e,t){const n=le(t),r=n.findIndex(t=>{let{uid:n}=t;return n===e.uid});return-1===r?n.push(e):n[r]=e,n}function Q0(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}const Z0=e=>0===e.indexOf("image/"),J0=e=>{if(e.type&&!e.thumbUrl)return Z0(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},e1=200;function t1(e){return new Promise(t=>{if(!e.type||!Z0(e.type))return void t("");const n=document.createElement("canvas");n.width=e1,n.height=e1,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=e1,l=e1,s=0,c=0;e>i?(l=i*(e1/e),c=-(l-a)/2):(a=e*(e1/i),s=-(a-l)/2),r.drawImage(o,s,c,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"===typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const n1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function r1(){return r1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r1.apply(this,arguments)}const o1=r.forwardRef((e,t)=>r.createElement(si,r1({},e,{ref:t,icon:n1}))),i1=r.forwardRef((e,t)=>{let{prefixCls:n,className:o,style:i,classNames:a,styles:l,locale:s,listType:c,file:u,items:d,progress:p,iconRender:m,actionIconRender:f,itemRender:h,isImgUrl:g,showPreviewIcon:b,showRemoveIcon:v,showDownloadIcon:y,previewIcon:$,removeIcon:C,downloadIcon:x,extra:w,onPreview:S,onDownload:E,onClose:k}=e;const{status:N}=u,[I,M]=r.useState(N);r.useEffect(()=>{"removed"!==N&&M(N)},[N]);const[P,R]=r.useState(!1);r.useEffect(()=>{const e=setTimeout(()=>{R(!0)},300);return()=>{clearTimeout(e)}},[]);const O=m(u);let z=r.createElement("div",{className:`${n}-icon`},O);if("picture"===c||"picture-card"===c||"picture-circle"===c)if("uploading"===I||!u.thumbUrl&&!u.url){const e=re(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==I});z=r.createElement("div",{className:e},O)}else{const e=g?.(u)?r.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:`${n}-list-item-image`,crossOrigin:u.crossOrigin}):O,t=re(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(u)});z=r.createElement("a",{className:t,onClick:e=>S(u,e),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const A=re(`${n}-list-item`,`${n}-list-item-${I}`,a?.item),T="string"===typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,B=("function"===typeof v?v(u):v)?f(("function"===typeof C?C(u):C)||r.createElement(TZ,null),()=>k(u),n,s.removeFile,!0):null,H=("function"===typeof y?y(u):y)&&"done"===I?f(("function"===typeof x?x(u):x)||r.createElement(o1,null),()=>E(u),n,s.downloadFile):null,D="picture-card"!==c&&"picture-circle"!==c&&r.createElement("span",{key:"download-delete",className:re(`${n}-list-item-actions`,{picture:"picture"===c})},H,B),L="function"===typeof w?w(u):w,j=L&&r.createElement("span",{className:`${n}-list-item-extra`},L),F=re(`${n}-list-item-name`),W=u.url?r.createElement("a",{key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:u.name,...T,href:u.url,onClick:e=>S(u,e)},u.name,j):r.createElement("span",{key:"view",className:F,onClick:e=>S(u,e),title:u.name},u.name,j),_=("function"===typeof b?b(u):b)&&(u.url||u.thumbUrl)?r.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>S(u,e),title:s.previewFile},"function"===typeof $?$(u):$||r.createElement(eF,null)):null,V=("picture-card"===c||"picture-circle"===c)&&"uploading"!==I&&r.createElement("span",{className:`${n}-list-item-actions`},_,"done"===I&&H,B),{getPrefixCls:X}=r.useContext(ye),K=X(),q=r.createElement("div",{className:A,style:l?.item},z,W,D,V,P&&r.createElement(da,{motionName:`${K}-fade`,visible:"uploading"===I,motionDeadline:2e3},e=>{let{className:t}=e;const o="percent"in u?r.createElement(gV,{type:"line",percent:u.percent,"aria-label":u["aria-label"],"aria-labelledby":u["aria-labelledby"],...p}):null;return r.createElement("div",{className:re(`${n}-list-item-progress`,t)},o)})),G=u.response&&"string"===typeof u.response?u.response:u.error?.statusText||u.error?.message||s.uploadError,Y="error"===I?r.createElement(Jy,{title:G,getPopupContainer:e=>e.parentNode},q):q;return r.createElement("div",{className:re(`${n}-list-item-container`,o),style:i,ref:t},h?h(Y,u,d,{download:E.bind(null,u),preview:S.bind(null,u),remove:k.bind(null,u)}):Y)}),a1=i1,l1=r.forwardRef((e,t)=>{const{listType:n="text",previewFile:o=t1,onPreview:i,onDownload:a,onRemove:l,locale:s,iconRender:c,isImageUrl:u=J0,prefixCls:d,items:p=[],showPreviewIcon:m=!0,showRemoveIcon:f=!0,showDownloadIcon:h=!1,removeIcon:g,previewIcon:b,downloadIcon:v,extra:y,progress:$={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:x=!0,itemRender:w,disabled:S,classNames:E,styles:k}=e,[,N]=fy(),[I,M]=r.useState(!1),P=["picture-card","picture-circle"].includes(n);r.useEffect(()=>{n.startsWith("picture")&&(p||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",o?.(e.originFileObj).then(t=>{e.thumbUrl=t||"",N()}))})},[n,p,o]),r.useEffect(()=>{M(!0)},[]);const R=(e,t)=>{if(i)return t?.preventDefault(),i(e)},O=e=>{"function"===typeof a?a(e):e.url&&window.open(e.url)},z=e=>{l?.(e)},A=e=>{if(c)return c(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const o="picture"===n?r.createElement(kl,null):s.uploading,i=u?.(e)?r.createElement(G0,null):r.createElement(W0,null);return t?o:i}return t?r.createElement(kl,null):r.createElement(X0,null)},T=(e,t,n,o,i)=>{const a={type:"text",size:"small",title:o,onClick:n=>{t(),r.isValidElement(e)&&e.props.onClick?.(n)},className:`${n}-list-item-action`,disabled:!!i&&S};return r.isValidElement(e)?r.createElement(Qd,{...a,icon:Ml(e,{...e.props,onClick:()=>{}})}):r.createElement(Qd,{...a},r.createElement("span",null,e))};r.useImperativeHandle(t,()=>({handlePreview:R,handleDownload:O}));const{getPrefixCls:B}=r.useContext(ye),H=B("upload",d),D=B(),L=re(`${H}-list`,`${H}-list-${n}`,E?.list),j=r.useMemo(()=>Y(Gc(D),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[D]),F={...P?{}:j,motionDeadline:2e3,motionName:`${H}-${P?"animate-inline":"animate"}`,keys:le(p.map(e=>({key:e.uid,file:e}))),motionAppear:I};return r.createElement("div",{className:L,style:k?.list},r.createElement(ua,{...F,component:!1},e=>{let{key:t,file:o,className:i,style:a}=e;return r.createElement(a1,{key:t,locale:s,prefixCls:H,className:i,style:a,classNames:E,styles:k,file:o,items:p,progress:$,listType:n,isImgUrl:u,showPreviewIcon:m,showRemoveIcon:f,showDownloadIcon:h,removeIcon:g,previewIcon:b,downloadIcon:v,extra:y,iconRender:A,actionIconRender:T,itemRender:w,onPreview:R,onDownload:O,onClose:z})}),C&&r.createElement(da,{...F,visible:x,forceRender:!0},e=>{let{className:t,style:n}=e;return Ml(C,e=>({className:re(e.className,t),style:{...n,pointerEvents:t?"none":void 0,...e.style}}))}))});const s1=l1,c1=`__LIST_IGNORE_${Date.now()}__`,u1=r.forwardRef((e,t)=>{const n=xe("upload"),{fileList:o,defaultFileList:i,onRemove:a,showUploadList:l=!0,listType:s="text",onPreview:c,onDownload:u,onChange:d,onDrop:p,previewFile:m,disabled:f,locale:h,iconRender:g,isImageUrl:b,progress:v,prefixCls:y,className:$,type:C="select",children:x,style:w,itemRender:S,maxCount:E,data:k={},multiple:N=!1,hasControlInside:I=!0,action:M="",accept:P="",supportServerRender:R=!0,rootClassName:O,styles:z,classNames:A}=e,T=r.useContext($c),B=f??T,H=e.customRequest||n.customRequest,[D,L]=F(i,o),j=D||[],[W,_]=r.useState("drop"),V=r.useRef(null),X=r.useRef(null);r.useMemo(()=>{const e=Date.now();(o||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[o]);const K=(e,t,n)=>{let r=le(t),o=!1;1===E?r=r.slice(-1):E&&(o=r.length>E,r=r.slice(0,E)),(0,sl.flushSync)(()=>{L(r)});const i={file:e,fileList:r};n&&(i.event=n),o&&"removed"!==e.status&&!r.some(t=>t.uid===e.uid)||(0,sl.flushSync)(()=>{d?.(i)})},q=e=>{const t=e.filter(e=>!e.file[c1]);if(!t.length)return;const n=t.map(e=>Y0(e.file));let r=le(j);n.forEach(e=>{r=U0(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}K(o,r)})},G=(e,t,n)=>{try{"string"===typeof e&&(e=JSON.parse(e))}catch{}if(!Q0(t,j))return;const r=Y0(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=U0(r,j);K(r,o)},Y=(e,t)=>{if(!Q0(t,j))return;const n=Y0(t);n.status="uploading",n.percent=e.percent;const r=U0(n,j);K(n,r,e)},U=(e,t,n)=>{if(!Q0(n,j))return;const r=Y0(n);r.error=e,r.response=t,r.status="error";const o=U0(r,j);K(r,o)},Q=e=>{let t;Promise.resolve("function"===typeof a?a(e):a).then(n=>{if(!1===n)return;const r=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}(e,j);r&&(t={...e,status:"removed"},j?.forEach(e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),V.current?.abort(t),K(t,r))})},Z=e=>{_(e.type),"drop"===e.type&&p?.(e)};r.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:G,onProgress:Y,onError:U,fileList:j,upload:V.current,nativeElement:X.current}));const{getPrefixCls:J,direction:ee,className:te,style:ne,classNames:oe,styles:ie}=xe("upload"),ae=J("upload",y),se={...e,listType:s,showUploadList:l,type:C,multiple:N,hasControlInside:I,supportServerRender:R,disabled:B},[ce,ue]=Ca([oe,A],[ie,z],{props:se}),de={onBatchStart:q,onError:U,onProgress:Y,onSuccess:G,...e,customRequest:H,data:k,multiple:N,action:M,accept:P,supportServerRender:R,prefixCls:ae,disabled:B,beforeUpload:async(t,n)=>{const{beforeUpload:r}=e;let o=t;if(r){const e=await r(t,n);if(!1===e)return!1;if(delete t[c1],e===c1)return Object.defineProperty(t,c1,{value:!0,configurable:!0}),!1;"object"===typeof e&&e&&(o=e)}return o},onChange:void 0,hasControlInside:I};delete de.className,delete de.style,x&&!B||delete de.id;const pe=`${ae}-wrapper`,[me,fe]=L0(ae,pe),[he]=Yc("Upload",ss.Upload),{showRemoveIcon:ge,showPreviewIcon:be,showDownloadIcon:ve,removeIcon:ye,previewIcon:$e,downloadIcon:Ce,extra:we}="boolean"===typeof l?{}:l,Se="undefined"===typeof ge?!B:ge,Ee=(e,t)=>l?r.createElement(s1,{classNames:ce,styles:ue,prefixCls:ae,listType:s,items:j,previewFile:m,onPreview:c,onDownload:u,onRemove:Q,showRemoveIcon:Se,showPreviewIcon:be,showDownloadIcon:ve,removeIcon:ye,previewIcon:$e,downloadIcon:Ce,iconRender:g,extra:we,locale:{...he,...h},isImageUrl:b,progress:v,appendAction:e,appendActionVisible:t,itemRender:S,disabled:B}):e,ke=re(pe,$,O,me,fe,te,ce.root,{[`${ae}-rtl`]:"rtl"===ee,[`${ae}-picture-card-wrapper`]:"picture-card"===s,[`${ae}-picture-circle-wrapper`]:"picture-circle"===s}),Ne={...ue.root},Ie={...ne,...w};if("drag"===C){const e=re(me,ae,`${ae}-drag`,{[`${ae}-drag-uploading`]:j.some(e=>"uploading"===e.status),[`${ae}-drag-hover`]:"dragover"===W,[`${ae}-disabled`]:B,[`${ae}-rtl`]:"rtl"===ee},ce.trigger);return r.createElement("span",{className:ke,ref:X,style:Ne},r.createElement("div",{className:e,style:{...Ie,...ue.trigger},onDrop:Z,onDragOver:Z,onDragLeave:Z},r.createElement(R0,{...de,ref:V,className:`${ae}-btn`},r.createElement("div",{className:`${ae}-drag-container`},x))),Ee())}const Me=re(ae,`${ae}-select`,{[`${ae}-disabled`]:B,[`${ae}-hidden`]:!x},ce.trigger),Pe=r.createElement("div",{className:Me,style:{...Ie,...ue.trigger}},r.createElement(R0,{...de,ref:V}));return"picture-card"===s||"picture-circle"===s?r.createElement("span",{className:ke,ref:X,style:Ne},Ee(Pe,!!x)):r.createElement("span",{className:ke,ref:X,style:Ne},Pe,Ee())});const d1=u1,p1=r.forwardRef((e,t)=>{const{style:n,height:o,hasControlInside:i=!1,children:a,...l}=e,s={...n,height:o};return r.createElement(d1,{ref:t,hasControlInside:i,...l,style:s,type:"drag"},a)});const m1=p1,f1=d1;f1.Dragger=m1,f1.LIST_IGNORE=c1;const h1=f1,g1={subtree:!0,childList:!0,attributeFilter:["style","class"]},b1=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g1;r.useEffect(()=>{if(!T()||!e)return;let r;const o=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),o.forEach(e=>{r.observe(e,n)})),()=>{r?.takeRecords(),r?.disconnect()}},[n,e])};const v1=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=document.createElement("canvas"),o=r.getContext("2d"),i=e*n,a=t*n;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${a}px`),o.save(),[o,r,i,a]},y1=()=>r.useCallback((e,t,n,r,o,i,a,l)=>{const[s,c,u,d]=v1(r,o,n);if(e instanceof HTMLImageElement)s.drawImage(e,0,0,u,d);else{const{color:t,fontSize:r,fontStyle:a,fontWeight:l,fontFamily:c,textAlign:d}=i,p=Number(r)*n;s.font=`${a} normal ${l} ${p}px/${o}px ${c}`,s.fillStyle=t,s.textAlign=d,s.textBaseline="top";const m=e_(e);m?.forEach((e,t)=>{s.fillText(e??"",u/2,t*(p+3*n))})}const p=Math.PI/180*Number(t),m=Math.max(r,o),[f,h,g]=v1(m,m,n);f.translate(g/2,g/2),f.rotate(p),u>0&&d>0&&f.drawImage(c,-u/2,-d/2);let b=0,v=0,y=0,$=0;const C=u/2,x=d/2;[[0-C,0-x],[0+C,0-x],[0+C,0+x],[0-C,0+x]].forEach(e=>{let[t,n]=e;const[r,o]=((e,t,n)=>[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)])(t,n,p);b=Math.min(b,r),v=Math.max(v,r),y=Math.min(y,o),$=Math.max($,o)});const w=b+g/2,S=y+g/2,E=v-b,k=$-y,N=a*n,I=l*n,M=2*(E+N),P=k+I,[R,O]=v1(M,P),z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;R.drawImage(h,w,S,E,k,e,t,E,k)};return z(),z(E+N,-k/2-I/2),z(E+N,+k/2+I/2),[O.toDataURL(),M/n,P/n]},[]);const $1={visibility:"visible !important"},C1=()=>{};const x1=function(e,t){const n=r.useRef(new Map),o=A(t??C1);return[(r,i,a)=>{if(a){const l=n.current.get(a);if(!l){const e=document.createElement("div");n.current.set(a,e)}const s=n.current.get(a);s.setAttribute("style",function(e){return Object.keys(e).map(t=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(t)}: ${e[t]};`).join(" ")}({...e,backgroundImage:`url('${r}')`,backgroundSize:`${Math.floor(i)}px`,...$1})),s.removeAttribute("class"),s.removeAttribute("hidden"),s.parentElement!==a&&(l&&t&&o(),a.append(s))}return n.current.get(a)},e=>{const t=n.current.get(e);t&&e&&e.removeChild(t),n.current.delete(e)},e=>Array.from(n.current.values()).includes(e)]};function w1(e,t){return e.size===t.size?e:t}const S1=100,E1=100,k1={position:"relative",overflow:"hidden"};const N1=e=>{const{zIndex:t=9,rotate:n=-22,width:o,height:i,image:a,content:l,font:s={},style:c,className:u,rootClassName:d,gap:p=[S1,E1],offset:m,children:f,inherit:h=!0,onRemove:g}=e,{className:b,style:v}=xe("watermark"),y={...k1,...v,...c},[,$]=Ao(),{color:C=$.colorFill,fontSize:x=$.fontSizeLG,fontWeight:w="normal",fontStyle:S="normal",fontFamily:E="sans-serif",textAlign:k="center"}=s,[N=S1,I=E1]=p,M=N/2,P=I/2,R=m?.[0]??M,O=m?.[1]??P,z=r.useMemo(()=>{const e={zIndex:t,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let n=R-M,r=O-P;return n>0&&(e.left=`${n}px`,e.width=`calc(100% - ${n}px)`,n=0),r>0&&(e.top=`${r}px`,e.height=`calc(100% - ${r}px)`,r=0),e.backgroundPosition=`${n}px ${r}px`,e},[t,R,M,O,P]),[T,B]=r.useState(),[H,D]=r.useState(()=>new Set),L=r.useMemo(()=>[].concat(T?[T]:[],le(Array.from(H))),[T,H]),j=y1(),F=function(){const e=r.useRef([null,null]);return(t,n)=>{const r=t.map(e=>e instanceof HTMLElement||Number.isNaN(e)?"":e);return je(e.current[0],r)||(e.current=[r,n()]),e.current[1]}}(),[W,_]=r.useState(null),V=function(e){const t=r.useRef(!1),n=r.useRef(null),o=A(e);return()=>{t.current||(t.current=!0,o(),n.current=fe(()=>{t.current=!1}))}}(()=>{const e=document.createElement("canvas").getContext("2d");if(e){const t=window.devicePixelRatio||1,[r,s]=(e=>{let t=120,n=64;if(!a&&e.measureText){e.font=`${Number(x)}px ${E}`;const r=e_(l),o=r.map(t=>{const n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]});t=Math.ceil(Math.max.apply(Math,le(o.map(e=>e[0])))),n=Math.ceil(Math.max.apply(Math,le(o.map(e=>e[1]))))*r.length+3*(r.length-1)}return[o??t,i??n]})(e),c=e=>{const o=[e||"",n,t,r,s,{color:C,fontSize:x,fontStyle:S,fontWeight:w,fontFamily:E,textAlign:k},N,I],[i,a]=F(o,()=>j.apply(void 0,o));_([i,a])};if(a){const e=new Image;e.onload=()=>{c(e)},e.onerror=()=>{c(l)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=a}else c(l)}}),[X,K,q]=x1(z,g);(0,r.useEffect)(()=>{W&&L.forEach(e=>{X(W[0],W[1],e)})},[W,L]);const G=A(e=>{e.forEach(e=>{if(((e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(t)),"attributes"===e.type&&t(e.target)&&(n=!0),n})(e,q))V();else if(e.target===T&&"style"===e.attributeName){const e=Object.keys(k1);for(let t=0;t<e.length;t+=1){const n=e[t],r=y[n],o=T.style[n];r&&r!==o&&(T.style[n]=r)}}})});b1(L,G),(0,r.useEffect)(V,[n,t,o,i,a,l,C,x,w,S,E,k,N,I,R,O]);const Y=r.useMemo(()=>({add:e=>{D(t=>{const n=new Set(t);return n.add(e),w1(t,n)})},remove:e=>{K(e),D(t=>{const n=new Set(t);return n.delete(e),w1(t,n)})}}),[]),U=h?r.createElement(Hf.Provider,{value:Y},f):f;return r.createElement("div",{ref:B,className:re(u,b,d),style:y},U)},I1=()=>{}},97076(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(i)}}}()},68988(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},l=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,s("seconds")],ss:[o,s("seconds")],m:[o,s("minutes")],mm:[o,s("minutes")],H:[o,s("hours")],h:[o,s("hours")],HH:[o,s("hours")],hh:[o,s("hours")],D:[o,s("day")],DD:[r,s("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,s("week")],ww:[r,s("week")],M:[o,s("month")],MM:[r,s("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function m(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=i.length,s=0;s<l;s+=1){var c=i[s],u=p[c],d=u&&u[0],m=u&&u[1];i[s]=m?{regex:d,parser:m}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,s=o.parser,c=e.slice(r),u=a.exec(c)[0];s.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var l=i[1];if("string"==typeof l){var s=!0===i[2],c=!0===i[3],u=s||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!s&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=m(t)(e),i=o.year,a=o.month,l=o.day,s=o.hours,c=o.minutes,u=o.seconds,d=o.milliseconds,p=o.zone,f=o.week,h=new Date,g=l||(i||a?1:h.getDate()),b=i||h.getFullYear(),v=0;i&&!a||(v=a>0?a-1:h.getMonth());var y,$=s||0,C=c||0,x=u||0,w=d||0;return p?new Date(Date.UTC(b,v,g,$,C,x,w+60*p.offset*1e3)):n?new Date(Date.UTC(b,v,g,$,C,x,w)):(y=new Date(b,v,g,$,C,x,w),f&&(y=r(y).week(f).toDate()),y)}catch(e){return new Date("")}}(t,l,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var p=l.length,f=1;f<=p;f+=1){i[1]=l[f-1];var h=n.apply(this,i);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}f===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},20199(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),s=o(a[n]),c=l||s.map(function(e){return e.slice(0,r)});if(!i)return c;var u=a.weekStart;return c.map(function(e,t){return c[(t+(u||0))%7]})},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},s=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},66865(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),s=this.diff(l,e,!0);return s<0?o(this).startOf("week").week():Math.ceil(s)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},66556(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},19223(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}()},94561(e){"use strict";e.exports=o,e.exports.isMobile=o,e.exports.default=o;const t=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,r=/android|ipad|playbook|silk/i;function o(e){e||(e={});let o=e.ua;if(o||"undefined"===typeof navigator||(o=navigator.userAgent),o&&o.headers&&"string"===typeof o.headers["user-agent"]&&(o=o.headers["user-agent"]),"string"!==typeof o)return!1;let i=t.test(o)&&!n.test(o)||!!e.tablet&&r.test(o);return!i&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari")&&(i=!0),i}},41270(e,t,n){var r=n(37475),o=function(e){var t="",n=Object.keys(e);return n.forEach(function(o,i){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"===typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",i<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"===typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=o(n),r<e.length-1&&(t+=", ")}),t):o(e)}},95082(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function b(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case p:case m:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case h:case f:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return b(e)===f}},2086(e,t,n){"use strict";e.exports=n(95082)},37475(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},9417(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},23029(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(20816);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},64467(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(20816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},53954(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(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&&(0,r.A)(e,t)}},56822(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(9417);function i(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},20816(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})}}]);
|
|
3
|
+
//# sourceMappingURL=151.b276c881.chunk.js.map
|