react-frontend-common-components 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import*as e from"react";import t,{version as n,isValidElement as r,useContext as o,createContext as i,useRef as a,useLayoutEffect as l,useEffect as c,forwardRef as s,useMemo as u,useState as d,Children as f,createRef as p,useCallback as m,useImperativeHandle as v,cloneElement as g}from"react";import*as h from"react-dom";import b,{createPortal as y,unstable_batchedUpdates as w,flushSync as x}from"react-dom";function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C,S={exports:{}},$={};var k,O={};
1
+ import*as e from"react";import t,{version as n,isValidElement as r,useContext as o,createContext as i,useRef as a,useLayoutEffect as l,useEffect as c,forwardRef as s,useMemo as u,useState as d,Children as f,createRef as p,useCallback as m,useImperativeHandle as g,cloneElement as v}from"react";import*as h from"react-dom";import b,{createPortal as y,unstable_batchedUpdates as x,flushSync as w}from"react-dom";function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E,S={exports:{}},$={};var O,k={};
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
@@ -7,13 +7,13 @@ import*as e from"react";import t,{version as n,isValidElement as r,useContext as
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */"production"===process.env.NODE_ENV?S.exports=function(){if(C)return $;C=1;var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var l,c={},s=null,u=null;for(l in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,l)&&!a.hasOwnProperty(l)&&(c[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===c[l]&&(c[l]=t[l]);return{$$typeof:n,type:e,key:s,ref:u,props:c,_owner:i.current}}return $.Fragment=r,$.jsx=l,$.jsxs=l,$}():S.exports=(k||(k=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator,g="@@iterator",h=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=h.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var y,w=!1,x=!1,E=!1,C=!1,S=!1;function $(e){return e.displayName||"Context"}function k(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return $(e)+".Consumer";case l:return $(e._context)+".Provider";case s:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:k(e.type)||"Memo";case p:var n=e,m=n._payload,v=n._init;try{return k(v(m))}catch(e){return null}}return null}y=Symbol.for("react.module.reference");var N,P,I,M,j,R,_,A=Object.assign,T=0;function F(){}F.__reactDisabledLog=!0;var B,z=h.ReactCurrentDispatcher;function D(e,t,n){if(void 0===B)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);B=r&&r[1]||""}return"\n"+B+e}var L,H=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||H)return"";var n,r=L.get(e);if(void 0!==r)return r;H=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=z.current,z.current=null,function(){if(0===T){N=console.log,P=console.info,I=console.warn,M=console.error,j=console.group,R=console.groupCollapsed,_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}T++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),c=n.stack.split("\n"),s=l.length-1,u=c.length-1;s>=1&&u>=0&&l[s]!==c[u];)u--;for(;s>=1&&u>=0;s--,u--)if(l[s]!==c[u]){if(1!==s||1!==u)do{if(s--,--u<0||l[s]!==c[u]){var d="\n"+l[s].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&L.set(e,d),d}}while(s>=1&&u>=0);break}}}finally{H=!1,z.current=o,function(){if(0==--T){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:N}),info:A({},e,{value:P}),warn:A({},e,{value:I}),error:A({},e,{value:M}),group:A({},e,{value:j}),groupCollapsed:A({},e,{value:R}),groupEnd:A({},e,{value:_})})}T<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?D(f):"";return"function"==typeof e&&L.set(e,p),p}function q(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return D(e);switch(e){case u:return D("Suspense");case d:return D("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return W(e.render,!1);case f:return q(e.type,t,n);case p:var o=e,i=o._payload,a=o._init;try{return q(a(i),t,n)}catch(e){}}return""}L=new V;var X=Object.prototype.hasOwnProperty,G={},K=h.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);K.setExtraStackFrame(n)}else K.setExtraStackFrame(null)}var Y=Array.isArray;function Q(e){return Y(e)}function Z(e){return""+e}function J(e){if(function(e){try{return Z(e),!1}catch(e){return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Z(e)}var ee,te,ne,re=h.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,r,o,i,a,l){var c={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function ae(e,t,n,r,o){var i,a={},l=null,c=null;for(i in void 0!==n&&(J(n),l=""+n),function(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(J(t.key),l=""+t.key),function(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=k(re.current.type);ne[n]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)X.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var s=e.defaultProps;for(i in s)void 0===a[i]&&(a[i]=s[i])}if(l||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){ee||(ee=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,u),c&&function(e,t){var n=function(){te||(te=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,u)}return ie(e,l,c,o,r,re.current,a)}var le,ce=h.ReactCurrentOwner,se=h.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function fe(){if(ce.current){var e=k(ce.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}le=!1;var pe={};function me(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=fe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==ce.current&&(r=" It was passed a child from "+k(e._owner.type)+"."),ue(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ue(null)}}}function ve(e,t){if("object"==typeof e)if(Q(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&me(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)de(i.value)&&me(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=k(n);!function(e,t,n,r,o){var i=Function.call.bind(X);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(U(o),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof l),U(null)),l instanceof Error&&!(l.message in G)&&(G[l.message]=!0,U(o),b("Failed %s type: %s",n,l.message),U(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||le||(le=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var he={};function be(e,t,r,v,g,h){var $=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||S||e===i||e===u||e===d||C||e===m||w||x||E)||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===s||e.$$typeof===y||void 0!==e.getModuleId)}(e);if(!$){var O,N="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),N+=fe(),null===e?O="null":Q(e)?O="array":void 0!==e&&e.$$typeof===n?(O="<"+(k(e.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,N)}var P=ae(e,t,r,g,h);if(null==P)return P;if($){var I=t.children;if(void 0!==I)if(v)if(Q(I)){for(var M=0;M<I.length;M++)ve(I[M],e);Object.freeze&&Object.freeze(I)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ve(I,e)}if(X.call(t,"key")){var j=k(e),R=Object.keys(t).filter((function(e){return"key"!==e})),_=R.length>0?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}";he[j+_]||(b('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',_,j,R.length>0?"{"+R.join(": ..., ")+": ...}":"{}",j),he[j+_]=!0)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ue(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ue(null);break}}null!==e.ref&&(ue(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(P):ge(P),P}var ye=function(e,t,n){return be(e,t,n,!1)},we=function(e,t,n){return be(e,t,n,!0)};O.Fragment=o,O.jsx=ye,O.jsxs=we}()),O);var N=S.exports,P={exports:{}};
10
+ */"production"===process.env.NODE_ENV?S.exports=function(){if(E)return $;E=1;var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var l,c={},s=null,u=null;for(l in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,l)&&!a.hasOwnProperty(l)&&(c[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===c[l]&&(c[l]=t[l]);return{$$typeof:n,type:e,key:s,ref:u,props:c,_owner:i.current}}return $.Fragment=r,$.jsx=l,$.jsxs=l,$}():S.exports=(O||(O=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,v="@@iterator",h=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=h.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var y,x=!1,w=!1,C=!1,E=!1,S=!1;function $(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return $(e)+".Consumer";case l:return $(e._context)+".Provider";case s:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case p:var n=e,m=n._payload,g=n._init;try{return O(g(m))}catch(e){return null}}return null}y=Symbol.for("react.module.reference");var N,j,P,I,M,R,T,_=Object.assign,A=0;function B(){}B.__reactDisabledLog=!0;var L,F=h.ReactCurrentDispatcher;function z(e,t,n){if(void 0===L)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);L=r&&r[1]||""}return"\n"+L+e}var D,H=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||H)return"";var n,r=D.get(e);if(void 0!==r)return r;H=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=F.current,F.current=null,function(){if(0===A){N=console.log,j=console.info,P=console.warn,I=console.error,M=console.group,R=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:B,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),c=n.stack.split("\n"),s=l.length-1,u=c.length-1;s>=1&&u>=0&&l[s]!==c[u];)u--;for(;s>=1&&u>=0;s--,u--)if(l[s]!==c[u]){if(1!==s||1!==u)do{if(s--,--u<0||l[s]!==c[u]){var d="\n"+l[s].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,d),d}}while(s>=1&&u>=0);break}}}finally{H=!1,F.current=o,function(){if(0==--A){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},e,{value:N}),info:_({},e,{value:j}),warn:_({},e,{value:P}),error:_({},e,{value:I}),group:_({},e,{value:M}),groupCollapsed:_({},e,{value:R}),groupEnd:_({},e,{value:T})})}A<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?z(f):"";return"function"==typeof e&&D.set(e,p),p}function q(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return z(e);switch(e){case u:return z("Suspense");case d:return z("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return W(e.render,!1);case f:return q(e.type,t,n);case p:var o=e,i=o._payload,a=o._init;try{return q(a(i),t,n)}catch(e){}}return""}D=new V;var X=Object.prototype.hasOwnProperty,K={},G=h.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);G.setExtraStackFrame(n)}else G.setExtraStackFrame(null)}var Y=Array.isArray;function Z(e){return Y(e)}function Q(e){return""+e}function J(e){if(function(e){try{return Q(e),!1}catch(e){return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Q(e)}var ee,te,ne,re=h.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,r,o,i,a,l){var c={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function ae(e,t,n,r,o){var i,a={},l=null,c=null;for(i in void 0!==n&&(J(n),l=""+n),function(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(J(t.key),l=""+t.key),function(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=O(re.current.type);ne[n]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)X.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var s=e.defaultProps;for(i in s)void 0===a[i]&&(a[i]=s[i])}if(l||c){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){ee||(ee=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,u),c&&function(e,t){var n=function(){te||(te=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,u)}return ie(e,l,c,o,r,re.current,a)}var le,ce=h.ReactCurrentOwner,se=h.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function fe(){if(ce.current){var e=O(ce.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}le=!1;var pe={};function me(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=fe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==ce.current&&(r=" It was passed a child from "+O(e._owner.type)+"."),ue(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ue(null)}}}function ge(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&me(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[v];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)de(i.value)&&me(i.value,t)}}function ve(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=O(n);!function(e,t,n,r,o){var i=Function.call.bind(X);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(U(o),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof l),U(null)),l instanceof Error&&!(l.message in K)&&(K[l.message]=!0,U(o),b("Failed %s type: %s",n,l.message),U(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||le||(le=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var he={};function be(e,t,r,g,v,h){var $=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||S||e===i||e===u||e===d||E||e===m||x||w||C)||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===s||e.$$typeof===y||void 0!==e.getModuleId)}(e);if(!$){var k,N="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),N+=fe(),null===e?k="null":Z(e)?k="array":void 0!==e&&e.$$typeof===n?(k="<"+(O(e.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,N)}var j=ae(e,t,r,v,h);if(null==j)return j;if($){var P=t.children;if(void 0!==P)if(g)if(Z(P)){for(var I=0;I<P.length;I++)ge(P[I],e);Object.freeze&&Object.freeze(P)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ge(P,e)}if(X.call(t,"key")){var M=O(e),R=Object.keys(t).filter((function(e){return"key"!==e})),T=R.length>0?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}";he[M+T]||(b('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',T,M,R.length>0?"{"+R.join(": ..., ")+": ...}":"{}",M),he[M+T]=!0)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ue(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ue(null);break}}null!==e.ref&&(ue(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(j):ve(j),j}var ye=function(e,t,n){return be(e,t,n,!1)},xe=function(e,t,n){return be(e,t,n,!0)};k.Fragment=o,k.jsx=ye,k.jsxs=xe}()),k);var N=S.exports,j={exports:{}};
11
11
  /*!
12
12
  Copyright (c) 2018 Jed Watson.
13
13
  Licensed under the MIT License (MIT), see
14
14
  http://jedwatson.github.io/classnames
15
15
  */
16
- !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(P);var I=E(P.exports);function M(){return M=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},M.apply(null,arguments)}var j,R={exports:{}},_={};var A,T={};
16
+ !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(j);var P=C(j.exports);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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(null,arguments)}var M,R={exports:{}},T={};var _,A={};
17
17
  /**
18
18
  * @license React
19
19
  * react-is.development.js
@@ -22,5 +22,5 @@ import*as e from"react";import t,{version as n,isValidElement as r,useContext as
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */"production"===process.env.NODE_ENV?R.exports=function(){if(j)return _;j=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case s:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),_.ContextConsumer=l,_.ContextProvider=a,_.Element=t,_.ForwardRef=s,_.Fragment=r,_.Lazy=p,_.Memo=f,_.Portal=n,_.Profiler=i,_.StrictMode=o,_.Suspense=u,_.SuspenseList=d,_.isAsyncMode=function(){return!1},_.isConcurrentMode=function(){return!1},_.isContextConsumer=function(e){return v(e)===l},_.isContextProvider=function(e){return v(e)===a},_.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_.isForwardRef=function(e){return v(e)===s},_.isFragment=function(e){return v(e)===r},_.isLazy=function(e){return v(e)===p},_.isMemo=function(e){return v(e)===f},_.isPortal=function(e){return v(e)===n},_.isProfiler=function(e){return v(e)===i},_.isStrictMode=function(e){return v(e)===o},_.isSuspense=function(e){return v(e)===u},_.isSuspenseList=function(e){return v(e)===d},_.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},_.typeOf=v,_}():R.exports=(A||(A=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var v=e.type;switch(v){case r:case i:case o:case u:case d:return v;default:var g=v&&v.$$typeof;switch(g){case c:case l:case s:case p:case f:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=l,h=a,b=t,y=s,w=r,x=p,E=f,C=n,S=i,$=o,k=u,O=d,N=!1,P=!1;T.ContextConsumer=g,T.ContextProvider=h,T.Element=b,T.ForwardRef=y,T.Fragment=w,T.Lazy=x,T.Memo=E,T.Portal=C,T.Profiler=S,T.StrictMode=$,T.Suspense=k,T.SuspenseList=O,T.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},T.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},T.isContextConsumer=function(e){return v(e)===l},T.isContextProvider=function(e){return v(e)===a},T.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},T.isForwardRef=function(e){return v(e)===s},T.isFragment=function(e){return v(e)===r},T.isLazy=function(e){return v(e)===p},T.isMemo=function(e){return v(e)===f},T.isPortal=function(e){return v(e)===n},T.isProfiler=function(e){return v(e)===i},T.isStrictMode=function(e){return v(e)===o},T.isSuspense=function(e){return v(e)===u},T.isSuspenseList=function(e){return v(e)===d},T.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},T.typeOf=v}()),T);var F=R.exports;function B(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(B(e)):F.isFragment(e)&&e.props?r=r.concat(B(e.props.children,n)):r.push(e))})),r}var z={},D=[];function L(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=D.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function H(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=D.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function V(){z={}}function W(e,t,n){t||z[n]||(e(!1,n),z[n]=!0)}function q(e,t){W(L,e,t)}function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function G(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=X(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:t+""}function K(e,t,n){return(t=G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(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 Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e){return e instanceof HTMLElement||e instanceof SVGElement}function Z(e){var n,r=function(e){return e&&"object"===X(e)&&Q(e.nativeElement)?e.nativeElement:Q(e)?e:null}(e);return r||(e instanceof t.Component?null===(n=b.findDOMNode)||void 0===n?void 0:n.call(b,e):null)}function J(t,n,r){var o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}q.preMessage=function(e){D.push(e)},q.resetWarned=V,q.noteOnce=function(e,t){W(H,e,t)};var ee=function(e,t){"function"==typeof e?e(t):"object"===X(e)&&e&&"current"in e&&(e.current=t)},te=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){ee(t,e)}))}},ne=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return J((function(){return te.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},re=function(e){var t,n,r=F.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===F.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===F.ForwardRef)};Number(n.split(".")[0]);var oe=e.createContext(null);var ie=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),ae="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,le="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ce="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(le):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var se=["top","right","bottom","left","width","height","size","weight"],ue="undefined"!=typeof MutationObserver,de=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){ce(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){ae&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ue?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){ae&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;se.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),fe=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},pe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||le},me=we(0,0,0,0);function ve(e){return parseFloat(e)||0}function ge(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ve(e["border-"+n+"-width"])}),0)}function he(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return me;var r=pe(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=ve(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=ve(r.width),c=ve(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=ge(r,"left","right")+i),Math.round(c+a)!==n&&(c-=ge(r,"top","bottom")+a)),!function(e){return e===pe(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return we(o.left,o.top,l,c)}var be="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof pe(e).SVGGraphicsElement}:function(e){return e instanceof pe(e).SVGElement&&"function"==typeof e.getBBox};function ye(e){return ae?be(e)?function(e){var t=e.getBBox();return we(0,0,t.width,t.height)}(e):he(e):me}function we(e,t,n,r){return{x:e,y:t,width:n,height:r}}var xe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=we(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ye(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Ee=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),fe(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);fe(this,{target:e,contentRect:s})},Ce=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ie,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof pe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new xe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof pe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Ee(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Se="undefined"!=typeof WeakMap?new WeakMap:new ie,$e=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=de.getInstance(),r=new Ce(t,n,this);Se.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){$e.prototype[e]=function(){var t;return(t=Se.get(this))[e].apply(t,arguments)}}));var ke=void 0!==le.ResizeObserver?le.ResizeObserver:$e,Oe=new Map;function Ne(e){e.forEach((function(e){var t,n=e.target;null===(t=Oe.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var Pe=new ke(Ne);function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(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,G(r.key),r)}}function je(e,t,n){return t&&Me(e.prototype,t),n&&Me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Re(e,t){return Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Re(e,t)}function _e(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&&Re(e,t)}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}function Te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Te=function(){return!!e})()}function Fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e){var t=Te();return function(){var n,r=Ae(e);if(t){var o=Ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fe(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var ze=function(){_e(n,e.Component);var t=Be(n);function n(){return Ie(this,n),t.apply(this,arguments)}return je(n,[{key:"render",value:function(){return this.props.children}}]),n}();function De(t,n){var r=t.children,o=t.disabled,i=e.useRef(null),a=e.useRef(null),l=e.useContext(oe),c="function"==typeof r,s=c?r(i):r,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&e.isValidElement(s)&&re(s),f=d?s.ref:null,p=ne(f,i),m=function(){var e;return Z(i.current)||(i.current&&"object"===X(i.current)?Z(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Z(a.current)};e.useImperativeHandle(n,(function(){return m()}));var v=e.useRef(t);v.current=t;var g=e.useCallback((function(e){var t=v.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var m=c===Math.round(i)?i:c,g=s===Math.round(a)?a:s,h=Y(Y({},p),{},{offsetWidth:m,offsetHeight:g});null==l||l(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return e.useEffect((function(){var e,t,n=m();return n&&!o&&(e=n,t=g,Oe.has(e)||(Oe.set(e,new Set),Pe.observe(e)),Oe.get(e).add(t)),function(){return function(e,t){Oe.has(e)&&(Oe.get(e).delete(t),Oe.get(e).size||(Pe.unobserve(e),Oe.delete(e)))}(n,g)}}),[i.current,o]),e.createElement(ze,{ref:a},d?e.cloneElement(s,{ref:p}):s)}var Le=e.forwardRef(De);"production"!==process.env.NODE_ENV&&(Le.displayName="SingleObserver");function He(t,n){var r=t.children,o="function"==typeof r?[r]:B(r);return"production"!==process.env.NODE_ENV&&(o.length>1?L(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&L(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((function(r,o){var i=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return e.createElement(Le,M({},t,{key:i,ref:0===o?n:void 0}),r)}))}var Ve=e.forwardRef(He);function We(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function qe(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 Xe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ge(e,t){if(e){if("string"==typeof e)return qe(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)?qe(e,t):void 0}}function Ke(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||Xe(e)||Ge(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"!==process.env.NODE_ENV&&(Ve.displayName="ResizeObserver"),Ve.Collection=function(t){var n=t.children,r=t.onBatchResize,o=e.useRef(0),i=e.useRef([]),a=e.useContext(oe),l=e.useCallback((function(e,t,n){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){l===o.current&&(null==r||r(i.current),i.current=[])})),null==a||a(e,t,n)}),[r,a]);return e.createElement(oe.Provider,{value:l},n)};var Ue=function(e){return+setTimeout(e,16)},Ye=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ue=function(e){return window.requestAnimationFrame(e)},Ye=function(e){return window.cancelAnimationFrame(e)});var Qe=0,Ze=new Map;function Je(e){Ze.delete(e)}var et=function(e){var t=Qe+=1;return function n(r){if(0===r)Je(t),e();else{var o=Ue((function(){n(r-1)}));Ze.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function tt(e){if(Array.isArray(e))return e}function nt(){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 rt(e,t){return tt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||Ge(e,t)||nt()}function ot(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 it(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}et.cancel=function(e){var t=Ze.get(e);return Je(e),Ye(t)},"production"!==process.env.NODE_ENV&&(et.ids=function(){return Ze});var at="data-rc-order",lt="data-rc-priority",ct="rc-util-key",st=new Map;function ut(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):ct}function dt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ft(e){return Array.from((st.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!it())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(at,a),l&&i&&c.setAttribute(lt,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=dt(t),u=s.firstChild;if(r){if(l){var d=(t.styles||ft(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(at)))return!1;var t=Number(e.getAttribute(lt)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=dt(t);return(t.styles||ft(n)).find((function(n){return n.getAttribute(ut(t))===e}))}function vt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=mt(e,t);n&&dt(t).removeChild(n)}function gt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=dt(n),o=ft(r),i=Y(Y({},n),{},{styles:o});!function(e,t){var n=st.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=pt("",t),o=r.parentNode;st.set(e,o),e.removeChild(r)}}(r,i);var a=mt(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=pt(e,i);return u.setAttribute(ut(i),t),u}function ht(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(q(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===X(t)&&"object"===X(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)}var yt="%";function wt(e){return e.join(yt)}var xt=function(){function e(t){Ie(this,e),K(this,"instanceId",void 0),K(this,"cache",new Map),this.instanceId=t}return je(e,[{key:"get",value:function(e){return this.opGet(wt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(wt(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),Et="data-token-hash",Ct="data-css-hash",St="data-cache-path",$t="__cssinjs_instance__";var kt=e.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ct,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[$t]=t[$t]||e,t[$t]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Ct,"]"))).forEach((function(t){var n,o=t.getAttribute(Ct);r[o]?t[$t]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new xt(e)}(),defaultCache:!0});var Ot=function(){function e(){Ie(this,e),K(this,"cache",void 0),K(this,"keys",void 0),K(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return je(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=rt(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=rt(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();K(Ot,"MAX_CACHE_SIZE",20),K(Ot,"MAX_CACHE_OFFSET",5);var Nt=0,Pt=function(){function e(t){Ie(this,e),K(this,"derivatives",void 0),K(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Nt,0===t.length&&L(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Nt+=1}return je(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),It=new Ot;function Mt(e){var t=Array.isArray(e)?e:[e];return It.has(t)||It.set(t,new Pt(t)),It.get(t)}var jt=new WeakMap,Rt={};var _t=new WeakMap;function At(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_t.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof Pt?n+=o.id:o&&"object"===X(o)?n+=At(o,t):n+=o})),t&&(n=ot(n)),_t.set(e,n)),n}function Tt(e,t){return ot("".concat(t,"_").concat(At(e,!0)))}var Ft=it();function Bt(e){return"number"==typeof e?"".concat(e,"px"):e}function zt(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=Y(Y({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},K(K({},Et,t),Ct,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Lt=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=rt(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Ht=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=rt(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=Dt(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,Lt(r,t,{scope:null==n?void 0:n.scope})]},Vt="test"!==process.env.NODE_ENV&&it()?e.useLayoutEffect:e.useEffect,Wt=function(t,n){var r=e.useRef(!0);Vt((function(){return t(r.current)}),n),Vt((function(){return r.current=!1,function(){r.current=!0}}),[])},qt=function(e,t){Wt((function(t){if(!t)return e()}),t)},Xt=Y({},e).useInsertionEffect,Gt=Xt?function(e,t,n){return Xt((function(){return e(),t()}),n)}:function(t,n,r){e.useMemo(t,r),Wt((function(){return n(!0)}),r)},Kt=void 0!==Y({},e).useInsertionEffect?function(t){var n=[],r=!1;return e.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){r?"production"!==process.env.NODE_ENV&&L(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):n.push(e)}}:function(){return function(e){e()}};var Ut=!1;var Yt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Ut};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var Qt=window;if("function"==typeof Qt.webpackHotUpdate){var Zt=Qt.webpackHotUpdate;Qt.webpackHotUpdate=function(){return Ut=!0,setTimeout((function(){Ut=!1}),0),Zt.apply(void 0,arguments)}}}function Jt(t,n,r,o,i){var a=e.useContext(kt).cache,l=wt([t].concat(Ke(n))),c=Kt([l]),s=Yt(),u=function(e){a.opUpdate(l,(function(t){var n=rt(t||[void 0,void 0],2),i=n[0],a=void 0===i?0:i,l=n[1],c=l;"production"!==process.env.NODE_ENV&&l&&s&&(null==o||o(c,s),c=null);var u=[a,c||r()];return e?e(u):u}))};e.useMemo((function(){u()}),[l]);var d=a.opGet(l);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(l));var f=d[1];return Gt((function(){null==i||i(f)}),(function(e){return u((function(t){var n=rt(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(f)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=rt(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null==o||o(s,!1)})),null):[i-1,s]}))}}),[l]),f}var en={},tn="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",nn=new Map;var rn=0;function on(e,t){nn.set(e,(nn.get(e)||0)-1);var n=Array.from(nn.keys()),r=n.filter((function(e){return(nn.get(e)||0)<=0}));n.length-r.length>rn&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Et,'="').concat(e,'"]')).forEach((function(e){var n;e[$t]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),nn.delete(e)}))}var an=function(e,t,n,r){var o=Y(Y({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},ln="token";function cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(kt),i=r.cache.instanceId,a=r.container,l=n.salt,c=void 0===l?"":l,s=n.override,u=void 0===s?en:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,m=function(e,t){for(var n=jt,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Rt)||n.set(Rt,e()),n.get(Rt)}((function(){return Object.assign.apply(Object,[{}].concat(Ke(t)))}),t),v=At(m),g=At(u),h=p?At(p):"",b=Jt(ln,[c,e.id,v,g,h],(function(){var t,n=f?f(m,u,e):an(m,u,e,d),r=Y({},n),o="";if(p){var i=rt(Ht(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=Tt(n,c);n._tokenKey=a,r._tokenKey=Tt(r,c);var l=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){nn.set(e,(nn.get(e)||0)+1)}(l);var s="".concat(tn,"-").concat(ot(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){on(e[0]._themeKey,i)}),(function(e){var t=rt(e,4),n=t[0],r=t[3];if(p&&r){var o=gt(r,ot("css-variables-".concat(n._themeKey)),{mark:Ct,prepend:"queue",attachTo:a,priority:-999});o[$t]=i,o.setAttribute(Et,n._themeKey)}}));return b}var sn={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},un="comm",dn="rule",fn="decl",pn="@import",mn="@keyframes",vn="@layer",gn=Math.abs,hn=String.fromCharCode;function bn(e){return e.trim()}function yn(e,t,n){return e.replace(t,n)}function wn(e,t,n){return e.indexOf(t,n)}function xn(e,t){return 0|e.charCodeAt(t)}function En(e,t,n){return e.slice(t,n)}function Cn(e){return e.length}function Sn(e,t){return t.push(e),e}var $n=1,kn=1,On=0,Nn=0,Pn=0,In="";function Mn(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$n,column:kn,length:a,return:"",siblings:l}}function jn(){return Pn=Nn>0?xn(In,--Nn):0,kn--,10===Pn&&(kn=1,$n--),Pn}function Rn(){return Pn=Nn<On?xn(In,Nn++):0,kn++,10===Pn&&(kn=1,$n++),Pn}function _n(){return xn(In,Nn)}function An(){return Nn}function Tn(e,t){return En(In,e,t)}function Fn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bn(e){return bn(Tn(Nn-1,Ln(91===e?e+2:40===e?e+1:e)))}function zn(e){for(;(Pn=_n())&&Pn<33;)Rn();return Fn(e)>2||Fn(Pn)>3?"":" "}function Dn(e,t){for(;--t&&Rn()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return Tn(e,An()+(t<6&&32==_n()&&32==Rn()))}function Ln(e){for(;Rn();)switch(Pn){case e:return Nn;case 34:case 39:34!==e&&39!==e&&Ln(Pn);break;case 40:41===e&&Ln(e);break;case 92:Rn()}return Nn}function Hn(e,t){for(;Rn()&&e+Pn!==57&&(e+Pn!==84||47!==_n()););return"/*"+Tn(t,Nn-1)+"*"+hn(47===e?e:Rn())}function Vn(e){for(;!Fn(_n());)Rn();return Tn(e,Nn)}function Wn(e){return function(e){return In="",e}(qn("",null,null,null,[""],e=function(e){return $n=kn=1,On=Cn(In=e),Nn=0,[]}(e),0,[0],e))}function qn(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,v=1,g=1,h=1,b=0,y="",w=o,x=i,E=r,C=y;g;)switch(m=b,b=Rn()){case 40:if(108!=m&&58==xn(C,d-1)){-1!=wn(C+=yn(Bn(b),"&","&\f"),"&\f",gn(s?l[s-1]:0))&&(h=-1);break}case 34:case 39:case 91:C+=Bn(b);break;case 9:case 10:case 13:case 32:C+=zn(m);break;case 92:C+=Dn(An()-1,7);continue;case 47:switch(_n()){case 42:case 47:Sn(Gn(Hn(Rn(),An()),t,n,c),c),5!=Fn(m||1)&&5!=Fn(_n()||1)||!Cn(C)||" "===En(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*v:l[s++]=Cn(C)*h;case 125*v:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==h&&(C=yn(C,/\f/g,"")),p>0&&(Cn(C)-d||0===v&&47===m)&&Sn(p>32?Kn(C+";",r,n,d-1,c):Kn(yn(C," ","")+";",r,n,d-2,c),c);break;case 59:C+=";";default:if(Sn(E=Xn(C,t,n,s,u,o,l,y,w=[],x=[],d,i),i),123===b)if(0===u)qn(C,t,E,E,w,i,d,l,x);else switch(99===f&&110===xn(C,3)?100:f){case 100:case 108:case 109:case 115:qn(e,E,E,r&&Sn(Xn(e,E,E,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:qn(C,E,E,E,[""],x,0,l,x)}}s=u=p=0,v=h=1,y=C="",d=a;break;case 58:d=1+Cn(C),p=m;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==jn())continue;switch(C+=hn(b),b*v){case 38:h=u>0?1:(C+="\f",-1);break;case 44:l[s++]=(Cn(C)-1)*h,h=1;break;case 64:45===_n()&&(C+=Bn(Rn())),f=_n(),u=d=Cn(y=C+=Vn(An())),b++;break;case 45:45===m&&2==Cn(C)&&(v=0)}}return i}function Xn(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),v=0,g=0,h=0;v<r;++v)for(var b=0,y=En(e,f+1,f=gn(g=a[v])),w=e;b<m;++b)(w=bn(g>0?p[b]+" "+y:yn(y,/&\f/g,p[b])))&&(c[h++]=w);return Mn(e,t,n,0===o?dn:l,c,s,u,d)}function Gn(e,t,n,r){return Mn(e,t,n,un,hn(Pn),En(e,2,-2),0,r)}function Kn(e,t,n,r,o){return Mn(e,t,n,fn,En(e,0,r),En(e,r+1,-1),r,o)}function Un(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Yn(e,t,n,r){switch(e.type){case vn:if(e.children.length)break;case pn:case fn:return e.return=e.return||e.value;case un:return"";case mn:return e.return=e.value+"{"+Un(e.children,r)+"}";case dn:if(!Cn(e.value=e.props.join(",")))return""}return Cn(n=Un(e.children,r))?e.return=e.value+"{"+n+"}":""}function Qn(e,t){var n=t.path,r=t.parentSelectors;q(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var Zn,Jn=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&Qn("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},er=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&Qn("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},tr="data-ant-cssinjs-cache-path",nr="_FILE_STYLE__",rr=!0;function or(e){return function(){if(!Zn&&(Zn={},it())){var e=document.createElement("div");e.className=tr,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=rt(e.split(":"),2),n=t[0],r=t[1];Zn[n]=r}));var n,r=document.querySelector("style[".concat(tr,"]"));r&&(rr=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Zn[e]}var ir="_skip_check_",ar="_multi_value_";function lr(e){return Un(Wn(e),Yn).replace(/\{%%%\:[^;];}/g,";")}function cr(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Ke(n.slice(1))).join(" ")})).join(",")}var sr=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=n.path,u=n.hashPriority,d=n.transformers,f=void 0===d?[]:d,p=n.linters,m=void 0===p?[]:p,v="",g={};function h(t){var r=t.getName(l);if(!g[r]){var o=rt(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)v+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==X(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===X(e)&&e&&(ir in e||ar in e)}(r)){var d;function C(e,t){"production"===process.env.NODE_ENV||"object"===X(r)&&null!=r&&r[ir]||[Jn,er].concat(Ke(m)).forEach((function(n){return n(e,t,{path:s,hashId:l,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;sn[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),o=t.getName(l)),v+="".concat(n,":").concat(o,";")}var f=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===X(r)&&null!=r&&r[ar]&&Array.isArray(f)?f.forEach((function(e){C(t,e)})):C(t,f)}else{var p=!1,b=t.trim(),y=!1;(o||i)&&l?b.startsWith("@")?p=!0:b=cr("&"===b?"":t,l,u):!o||l||"&"!==b&&""!==b||(b="",y=!0);var w=rt(e(r,n,{root:y,injectHash:p,parentSelectors:[].concat(Ke(a),[b])}),2),x=w[0],E=w[1];g=Y(Y({},g),E),v+="".concat(b).concat(x)}}))}})),o?c&&(v="@layer ".concat(c.name," {").concat(v,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):v="{".concat(v,"}"),[v,g]};function ur(e,t){return ot("".concat(e.join("%")).concat(t))}function dr(){return null}var fr="style";function pr(t,n){var r=t.token,o=t.path,i=t.hashId,a=t.layer,l=t.nonce,c=t.clientOnly,s=t.order,u=void 0===s?0:s,d=e.useContext(kt),f=d.autoClear,p=d.mock,m=d.defaultCache,v=d.hashPriority,g=d.container,h=d.ssrInline,b=d.transformers,y=d.linters,w=d.cache,x=d.layer,E=r._tokenKey,C=[E];x&&C.push("layer"),C.push.apply(C,Ke(o));var S=Ft;"production"!==process.env.NODE_ENV&&void 0!==p&&(S="client"===p);var $=Jt(fr,C,(function(){var e=C.join("|");if(or(e)){var t=function(e){var t=Zn[e],n=null;if(t&&it())if(rr)n=nr;else{var r=document.querySelector("style[".concat(Ct,'="').concat(Zn[e],'"]'));r?n=r.innerHTML:delete Zn[e]}return[n,t]}(e),r=rt(t,2),l=r[0],s=r[1];if(l)return[l,E,s,{},c,u]}var d=n(),f=rt(sr(d,{hashId:i,hashPriority:v,layer:x?a:void 0,path:o.join("-"),transformers:b,linters:y}),2),p=f[0],m=f[1],g=lr(p),h=ur(C,g);return[g,E,h,m,c,u]}),(function(e,t){var n=rt(e,3)[2];(t||f)&&Ft&&vt(n,{mark:Ct})}),(function(e){var t=rt(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(S&&n!==nr){var i={mark:Ct,prepend:!x&&"queue",attachTo:g,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){gt(lr(o[e]),"_layer-".concat(e),Y(Y({},i),{},{prepend:!0}))}));var d=gt(n,r,i);d[$t]=w.instanceId,d.setAttribute(Et,E),"production"!==process.env.NODE_ENV&&d.setAttribute(St,C.join("|")),s.forEach((function(e){gt(lr(o[e]),"_effect-".concat(e),i)}))}})),k=rt($,3),O=k[0],N=k[1],P=k[2];return function(t){var n;return n=h&&!S&&m?e.createElement("style",M({},K(K({},Et,N),Ct,P),{dangerouslySetInnerHTML:{__html:O}})):e.createElement(dr,null),e.createElement(e.Fragment,null,n,t)}}var mr="cssVar";K(K(K({},fr,(function(e,t,n){var r=rt(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=zt(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=zt(lr(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),ln,(function(e,t,n){var r=rt(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,zt(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),mr,(function(e,t,n){var r=rt(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,zt(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var vr=function(){function e(t,n){Ie(this,e),K(this,"name",void 0),K(this,"style",void 0),K(this,"_keyframe",!0),this.name=t,this.style=n}return je(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function gr(e){return e.notSplit=!0,e}gr(["borderTop","borderBottom"]),gr(["borderTop"]),gr(["borderBottom"]),gr(["borderLeft","borderRight"]),gr(["borderLeft"]),gr(["borderRight"]);var hr=i({});function br(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function yr(e,t,n,r){if(!t.length)return n;var o,i,a=tt(o=t)||Xe(o)||Ge(o)||nt(),l=a[0],c=a.slice(1);return i=e||"number"!=typeof l?Array.isArray(e)?Ke(e):Y({},e):[],r&&void 0===n&&1===c.length?delete i[l][c[0]]:i[l]=yr(i[l],c,n,r),i}function wr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!br(e,t.slice(0,-1))?e:yr(e,t,n,r)}function xr(e){return Array.isArray(e)?[]:{}}var Er="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Cr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=xr(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=br(e,n),c=Array.isArray(l);if(c||"object"===X(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=br(r,n);c?r=wr(r,n,[]):s&&"object"===X(s)||(r=wr(r,n,xr(l))),Er(l).forEach((function(e){t([].concat(Ke(n),[e]),a)}))}}else r=wr(r,n,l)}([])})),r}function Sr(){}let $r=null;let kr=Sr;"production"!==process.env.NODE_ENV&&(kr=(e,t,n)=>{q(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&($r=null,V())});const Or=e.createContext({}),Nr="production"!==process.env.NODE_ENV?t=>{const{strict:n}=e.useContext(Or),r=(e,r,o)=>{if(!e)if(!1===n&&"deprecated"===r){const e=$r;$r||($r={}),$r[t]=$r[t]||[],$r[t].includes(o||"")||$r[t].push(o||""),e||console.warn("[antd] There exists deprecated usage in your code:",$r)}else"production"!==process.env.NODE_ENV&&kr(e,t,o)};return r.deprecated=(e,t,n,o)=>{r(e,"deprecated",`\`${t}\` is deprecated. Please use \`${n}\` instead.${o?` ${o}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=Sr,e};var Pr=kr,Ir=i(void 0),Mr=Y(Y({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const jr={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Rr={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Mr),timePickerLocale:Object.assign({},jr)},_r="${label} is not a valid ${type}",Ar={locale:"en",Pagination:{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"},DatePicker:Rr,TimePicker:jr,Calendar:Rr,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:_r,method:_r,array:_r,object:_r,number:_r,date:_r,boolean:_r,integer:_r,float:_r,regexp:_r,email:_r,url:_r,hex:_r},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Ar.Modal);let Tr=[];const Fr=()=>Tr.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Ar.Modal);const Br=i(void 0),zr="internalMark",Dr=t=>{const{locale:n={},children:r,_ANT_MARK__:o}=t;if("production"!==process.env.NODE_ENV){const e=Nr("LocaleProvider");"production"!==process.env.NODE_ENV&&e(o===zr,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}e.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Tr.push(t),Fr(),()=>{Tr=Tr.filter((e=>e!==t)),Fr()}}Object.assign({},Ar.Modal)}(null==n?void 0:n.Modal);return e}),[n]);const i=e.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return e.createElement(Br.Provider,{value:i},r)};function Lr(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Hr(e){return Math.min(1,Math.max(0,e))}function Vr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wr(e){return e<=1?"".concat(100*Number(e),"%"):e}function qr(e){return 1===e.length?"0"+e:String(e)}function Xr(e,t,n){e=Lr(e,255),t=Lr(t,255),n=Lr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function Gr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Kr(e,t,n){e=Lr(e,255),t=Lr(t,255),n=Lr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function Ur(e,t,n,r){var o=[qr(Math.round(e).toString(16)),qr(Math.round(t).toString(16)),qr(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Yr(e){return Qr(e)/255}function Qr(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(Dr.displayName="LocaleProvider");var Zr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Jr(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,l=null,c=null,s=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Zr[e])e=Zr[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ro.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ro.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ro.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=ro.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ro.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=ro.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ro.hex8.exec(e),n)return{r:Qr(n[1]),g:Qr(n[2]),b:Qr(n[3]),a:Yr(n[4]),format:t?"name":"hex8"};if(n=ro.hex6.exec(e),n)return{r:Qr(n[1]),g:Qr(n[2]),b:Qr(n[3]),format:t?"name":"hex"};if(n=ro.hex4.exec(e),n)return{r:Qr(n[1]+n[1]),g:Qr(n[2]+n[2]),b:Qr(n[3]+n[3]),a:Yr(n[4]+n[4]),format:t?"name":"hex8"};if(n=ro.hex3.exec(e),n)return{r:Qr(n[1]+n[1]),g:Qr(n[2]+n[2]),b:Qr(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(oo(e.r)&&oo(e.g)&&oo(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Lr(t,255),g:255*Lr(n,255),b:255*Lr(r,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):oo(e.h)&&oo(e.s)&&oo(e.v)?(a=Wr(e.s),l=Wr(e.v),o=function(e,t,n){e=6*Lr(e,360),t=Lr(t,100),n=Lr(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,a,l),s=!0,u="hsv"):oo(e.h)&&oo(e.s)&&oo(e.l)&&(a=Wr(e.s),c=Wr(e.l),o=function(e,t,n){var r,o,i;if(e=Lr(e,360),t=Lr(t,100),n=Lr(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Gr(l,a,e+1/3),o=Gr(l,a,e),i=Gr(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Vr(i),{ok:s,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var eo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),to="[\\s|\\(]+(".concat(eo,")[,|\\s]+(").concat(eo,")[,|\\s]+(").concat(eo,")\\s*\\)?"),no="[\\s|\\(]+(".concat(eo,")[,|\\s]+(").concat(eo,")[,|\\s]+(").concat(eo,")[,|\\s]+(").concat(eo,")\\s*\\)?"),ro={CSS_UNIT:new RegExp(eo),rgb:new RegExp("rgb"+to),rgba:new RegExp("rgba"+no),hsl:new RegExp("hsl"+to),hsla:new RegExp("hsla"+no),hsv:new RegExp("hsv"+to),hsva:new RegExp("hsva"+no),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function oo(e){return Boolean(ro.CSS_UNIT.exec(String(e)))}var io=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Jr(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Vr(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Kr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Kr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Xr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Xr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Ur(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[qr(Math.round(e).toString(16)),qr(Math.round(t).toString(16)),qr(Math.round(n).toString(16)),qr((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Lr(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Lr(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Ur(this.r,this.g,this.b,!1),t=0,n=Object.entries(Zr);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Hr(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Hr(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Hr(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Hr(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),ao=2,lo=.16,co=.05,so=.05,uo=.15,fo=5,po=4,mo=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function vo(e){var t=Kr(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function go(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Ur(t,n,r,!1))}function ho(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ao*t:Math.round(e.h)+ao*t:n?Math.round(e.h)+ao*t:Math.round(e.h)-ao*t)<0?r+=360:r>=360&&(r-=360),r}function bo(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-lo*t:t===po?e.s+lo:e.s+co*t)>1&&(r=1),n&&t===fo&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function yo(e,t,n){var r;return(r=n?e.v+so*t:e.v-uo*t)>1&&(r=1),Number(r.toFixed(2))}function wo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Jr(e),o=fo;o>0;o-=1){var i=vo(r),a=go(Jr({h:ho(i,o,!0),s:bo(i,o,!0),v:yo(i,o,!0)}));n.push(a)}n.push(go(r));for(var l=1;l<=po;l+=1){var c=vo(r),s=go(Jr({h:ho(c,l),s:bo(c,l),v:yo(c,l)}));n.push(s)}return"dark"===t.theme?mo.map((function(e){var r,o,i,a=e.index,l=e.opacity;return go((r=Jr(t.backgroundColor||"#141414"),o=Jr(n[a]),i=100*l/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var xo={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"},Eo=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Eo.primary=Eo[5];var Co=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Co.primary=Co[5];var So=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];So.primary=So[5];var $o=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];$o.primary=$o[5];var ko=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ko.primary=ko[5];var Oo=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Oo.primary=Oo[5];var No=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];No.primary=No[5];var Po=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Po.primary=Po[5];var Io=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Io.primary=Io[5];var Mo=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Mo.primary=Mo[5];var jo=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];jo.primary=jo[5];var Ro=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ro.primary=Ro[5];var _o=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];_o.primary=_o[5];var Ao={red:Eo,volcano:Co,orange:So,gold:$o,yellow:ko,lime:Oo,green:No,cyan:Po,blue:Io,geekblue:Mo,purple:jo,magenta:Ro,grey:_o};const To={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"},Fo=Object.assign(Object.assign({},To),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});const Bo=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 zo(e){return(e+8)/e}const Do=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:zo(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Lo=(e,t)=>new io(e).setAlpha(t).toRgbString(),Ho=(e,t)=>new io(e).darken(t).toHexString(),Vo=e=>{const t=wo(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]}},Wo=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Lo(r,.88),colorTextSecondary:Lo(r,.65),colorTextTertiary:Lo(r,.45),colorTextQuaternary:Lo(r,.25),colorFill:Lo(r,.15),colorFillSecondary:Lo(r,.06),colorFillTertiary:Lo(r,.04),colorFillQuaternary:Lo(r,.02),colorBgLayout:Ho(n,4),colorBgContainer:Ho(n,0),colorBgElevated:Ho(n,0),colorBgSpotlight:Lo(r,.85),colorBgBlur:"transparent",colorBorder:Ho(n,15),colorBorderSecondary:Ho(n,6)}};const qo=Mt((function(e){xo.pink=xo.magenta,Ao.pink=Ao.magenta;const t=Object.keys(To).map((t=>{const n=e[t]===xo[t]?Ao[t]:wo(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),m=n(a),v=n(l),g=r(s,u),h=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new io("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Vo,generateNeutralColorPalettes:Wo})),Do(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},Bo(r))}(e))})),Xo={token:Fo,override:{override:Fo},hashed:!0},Go=t.createContext(Xo),Ko="ant",Uo="anticon",Yo=["outlined","borderless","filled"],Qo=e.createContext({getPrefixCls:(e,t)=>t||(e?`${Ko}-${e}`:Ko),iconPrefixCls:Uo}),Zo=`-ant-${Date.now()}-${Math.random()}`;function Jo(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new io(e),i=wo(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new io(t.primaryColor),i=wo(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new io(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);it()?gt(n,`${Zo}-dynamic-theme`):"production"!==process.env.NODE_ENV&&Pr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ei=e.createContext(!1),ti=t=>{let{children:n,disabled:r}=t;const o=e.useContext(ei);return e.createElement(ei.Provider,{value:null!=r?r:o},n)},ni=e.createContext(void 0),ri=t=>{let{children:n,size:r}=t;const o=e.useContext(ni);return e.createElement(ni.Provider,{value:r||o},n)};var oi=je((function e(){Ie(this,e)})),ii="CALC_UNIT",ai=new RegExp(ii,"g");function li(e){return"number"==typeof e?"".concat(e).concat(ii):e}var ci=function(){_e(t,oi);var e=Be(t);function t(n,r){var o;Ie(this,t),K(Fe(o=e.call(this)),"result",""),K(Fe(o),"unitlessCssVar",void 0),K(Fe(o),"lowPriority",void 0);var i=X(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=li(n):"string"===i&&(o.result=n),o}return je(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(li(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(li(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(ai,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),si=function(){_e(t,oi);var e=Be(t);function t(n){var r;return Ie(this,t),K(Fe(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return je(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),ui=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function di(t){var n=e.useRef();n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}function fi(t){var n=e.useRef(!1),r=rt(e.useState(t),2),o=r[0],i=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||i(e)}]}function pi(e){return void 0!==e}function mi(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=rt(fi((function(){return pi(o)?o:pi(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=di(i),p=rt(fi([u]),2),m=p[0],v=p[1];return qt((function(){var e=m[0];c!==e&&f(c,e)}),[m]),qt((function(){pi(o)||s(o)}),[o]),[d,di((function(e,t){s(e,t),v([u],t)}))]}function vi(e,t,n,r){var o=Y({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=rt(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&q(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=Y(Y({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var gi="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,hi=!0;function bi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!gi)return Object.assign.apply(Object,[{}].concat(t));hi=!1;var r={};return t.forEach((function(e){"object"===X(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),hi=!0,r}var yi={};function wi(){}function xi(e,t,n){var r;return"function"==typeof n?n(bi(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Ei=function(){function e(){Ie(this,e),K(this,"map",new Map),K(this,"objectIDMap",new WeakMap),K(this,"nextID",0),K(this,"lastAccessBeat",new Map),K(this,"accessBeat",0)}return je(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===X(e)?"obj_".concat(t.getObjectID(e)):"".concat(X(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),Ci=new Ei;var Si=function(){return{}};const $i=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var ki="5.20.5";function Oi(e){return e>=0&&e<=255}function Ni(e,t){const{r:n,g:r,b:o,a:i}=new io(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new io(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(Oi(t)&&Oi(i)&&Oi(s))return new io({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new io({r:n,g:r,b:o,a:1}).toRgbString()}var Pi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ii(e){const{override:t}=e,n=Pi(e,["override"]),r=Object.assign({},t);Object.keys(Fo).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ni(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:Ni(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ni(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ni(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new io("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new io("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new io("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Mi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ji={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},Ri={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},_i={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},Ai=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Mi(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Ii(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Mi(n,["theme"]);let i=o;r&&(i=Ai(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Ti(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t.useContext(Go),a=`${ki}-${n||""}`,l=r||qo,[c,s,u]=cn(l,[Fo,e],{salt:a,override:o,getComputedToken:Ai,formatToken:Ii,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:ji,ignore:Ri,preserve:_i}});return[l,u,n?s:"",c,i]}const Fi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Bi=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}},zi=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Di=e=>({outline:`${Bt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Li=e=>({"&:focus-visible":Object.assign({},Di(e))}),Hi=(e,t)=>{const[n,r]=Ti();return pr({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},{genStyleHooks:Vi,genComponentStyleHook:Wi,genSubStyleComponent:qi}=function(e){var n=e.useCSP,r=void 0===n?Si:n,i=e.useToken,a=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,s=e.getCompUnitless;function u(e,n,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(e)?e:[e,e],d=rt(u,1)[0],f=u.join("-");return function(e){var u,p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,v=i(),g=v.theme,h=v.realToken,b=v.hashId,y=v.token,w=v.cssVar,x=a(),E=x.rootPrefixCls,C=x.iconPrefixCls,S=r(),$=w?"css":"js",k=(u=function(){var e=new Set;return w&&Object.keys(s.unitless||{}).forEach((function(t){e.add(Dt(t,w.prefix)),e.add(Dt(t,ui(d,w.prefix)))})),function(e,t){var n="css"===e?ci:si;return function(e){return new n(e,t)}}($,e)},p=[$,d,null==w?void 0:w.prefix],t.useMemo((function(){var e=Ci.get(p);if(e)return e;var t=u();return Ci.set(p,t),t}),p)),O=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 Bt(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 Bt(e)})).join(","),")")}}}($),N=O.max,P=O.min,I={theme:g,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:{name:"antd"},order:s.order||-999};pr(Y(Y({},I),{},{clientOnly:!1,path:["Shared",E]}),(function(){return"function"==typeof l?l(y):[]}));var M=pr(Y(Y({},I),{},{path:[f,e,C]}),(function(){if(!1===s.injectStyle)return[];var t=function(e){var t,n=e,r=wi;return gi&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return hi&&t.add(n),e[n]}}),r=function(e,n){var r;yi[e]={global:Array.from(t),component:Y(Y({},null===(r=yi[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(y),r=t.token,i=t.flush,a=xi(d,h,o),l=".".concat(e),u=vi(d,h,a,{deprecatedTokens:s.deprecatedTokens});w&&"object"===X(a)&&Object.keys(a).forEach((function(e){a[e]="var(".concat(Dt(e,ui(d,w.prefix)),")")}));var f=bi(r,{componentCls:l,prefixCls:e,iconCls:".".concat(C),antCls:".".concat(E),calc:k,max:N,min:P},w?a:u),p=n(f,{hashId:b,prefixCls:e,rootPrefixCls:E,iconPrefixCls:C});i(d,u);var v="function"==typeof c?c(f,e,m,s.resetFont):null;return[!1===s.resetStyle?null:v,p]}));return[M,b]}}return{genStyleHooks:function(e,n,r,a){var l=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(l)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==a?void 0:a.unitless)||{},f=Y(Y({},"function"==typeof s?s(e):{}),{},K({},c("zIndexPopup"),!0));Object.keys(d).forEach((function(e){f[c(e)]=d[e]}));var p=Y(Y({},a),{},{unitless:f,prefixToken:c}),m=u(e,n,r,p),v=function(e,n,r){var a=r.unitless,l=r.injectStyle,c=void 0===l||l,s=r.prefixToken,u=r.ignore,d=function(t){var l=t.rootCls,c=t.cssVar,d=void 0===c?{}:c,f=i().realToken;return function(e,t){var n=e.key,r=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=o(kt),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(Ke(e.path),[n,s,p]),v=Jt(mr,m,(function(){var e=t(),o=rt(Ht(e,n,{prefix:r,unitless:i,ignore:a,scope:s}),2),l=o[0],c=o[1];return[l,c,ur(m,c),n]}),(function(e){var t=rt(e,3)[2];Ft&&vt(t,{mark:Ct})}),(function(e){var t=rt(e,3),r=t[1],o=t[2];if(r){var i=gt(r,o,{mark:Ct,prepend:"queue",attachTo:f,priority:-999});i[$t]=d,i.setAttribute(Et,n)}}))}({path:[e],prefix:d.prefix,key:d.key,unitless:a,ignore:u,token:f,scope:l},(function(){var t=xi(e,f,n),o=vi(e,f,t,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(t).forEach((function(e){o[s(e)]=o[e],delete o[e]})),o})),null},f=function(n){var r=i().cssVar;return[function(o){return c&&r?t.createElement(t.Fragment,null,t.createElement(d,{rootCls:n,cssVar:r,component:e}),o):o},null==r?void 0:r.key]};return f}(l,r,p);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=rt(m(e,t),2)[1],r=rt(v(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=u(e,t,n,Y({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=o(Qo);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Ti();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=o(Qo);return Hi(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":zi(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>ji});function Xi(e,t){return $i.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Gi=Object.assign({},e),{useId:Ki}=Gi,Ui=void 0===Ki?()=>"":Ki;var Yi=["children"],Qi=e.createContext({});function Zi(t){var n=t.children,r=ht(t,Yi);return e.createElement(Qi.Provider,{value:r},n)}var Ji=function(){_e(n,e.Component);var t=Be(n);function n(){return Ie(this,n),t.apply(this,arguments)}return je(n,[{key:"render",value:function(){return this.props.children}}]),n}();var ea="none",ta="appear",na="enter",ra="leave",oa="none",ia="prepare",aa="start",la="active",ca="end",sa="prepared";function ua(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var da=function(e,t){var n={animationend:ua("Animation","AnimationEnd"),transitionend:ua("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(it(),"undefined"!=typeof window?window:{}),fa={};if(it()){var pa=document.createElement("div");fa=pa.style}var ma={};function va(e){if(ma[e])return ma[e];var t=da[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in fa)return ma[e]=t[i],ma[e]}return""}var ga=va("animationend"),ha=va("transitionend"),ba=!(!ga||!ha),ya=ga||"animationend",wa=ha||"transitionend";function xa(e,t){if(!e)return null;if("object"===X(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Ea=function(t){var n=a();function r(e){e&&(e.removeEventListener(wa,t),e.removeEventListener(ya,t))}return e.useEffect((function(){return function(){r(n.current)}}),[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(wa,t),e.addEventListener(ya,t),n.current=e)},r]},Ca=it()?l:c,Sa=[ia,aa,la,ca],$a=[ia,sa],ka=!1,Oa=!0;function Na(e){return e===la||e===ca}var Pa=function(t,n,r){var o=rt(fi(oa),2),i=o[0],a=o[1],l=function(){var t=e.useRef(null);function n(){et.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=et((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),c=rt(l,2),s=c[0],u=c[1];var d=n?$a:Sa;return Ca((function(){if(i!==oa&&i!==ca){var e=d.indexOf(i),t=d[e+1],n=r(i);n===ka?a(t,!0):t&&s((function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(ia,!0)},i]};function Ia(t,n,r,o){var i,l,s,u=o.motionEnter,d=void 0===u||u,f=o.motionAppear,p=void 0===f||f,m=o.motionLeave,v=void 0===m||m,g=o.motionDeadline,h=o.motionLeaveImmediately,b=o.onAppearPrepare,y=o.onEnterPrepare,w=o.onLeavePrepare,x=o.onAppearStart,E=o.onEnterStart,C=o.onLeaveStart,S=o.onAppearActive,$=o.onEnterActive,k=o.onLeaveActive,O=o.onAppearEnd,N=o.onEnterEnd,P=o.onLeaveEnd,I=o.onVisibleChanged,M=rt(fi(),2),j=M[0],R=M[1],_=(i=ea,l=rt(e.useReducer((function(e){return e+1}),0),2)[1],s=e.useRef(i),[di((function(){return s.current})),di((function(e){s.current="function"==typeof e?e(s.current):e,l()}))]),A=rt(_,2),T=A[0],F=A[1],B=rt(fi(null),2),z=B[0],D=B[1],L=T(),H=a(!1),V=a(null);function W(){return r()}var q=a(!1);function X(){F(ea),D(null,!0)}var G=di((function(e){var t=T();if(t!==ea){var n=W();if(!e||e.deadline||e.target===n){var r,o=q.current;t===ta&&o?r=null==O?void 0:O(n,e):t===na&&o?r=null==N?void 0:N(n,e):t===ra&&o&&(r=null==P?void 0:P(n,e)),o&&!1!==r&&X()}}})),U=rt(Ea(G),1)[0],Q=function(e){switch(e){case ta:return K(K(K({},ia,b),aa,x),la,S);case na:return K(K(K({},ia,y),aa,E),la,$);case ra:return K(K(K({},ia,w),aa,C),la,k);default:return{}}},Z=e.useMemo((function(){return Q(L)}),[L]),J=rt(Pa(L,!t,(function(e){if(e===ia){var t=Z[ia];return t?t(W()):ka}var n;te in Z&&D((null===(n=Z[te])||void 0===n?void 0:n.call(Z,W(),null))||null);return te===la&&L!==ea&&(U(W()),g>0&&(clearTimeout(V.current),V.current=setTimeout((function(){G({deadline:!0})}),g))),te===sa&&X(),Oa})),2),ee=J[0],te=J[1],ne=Na(te);q.current=ne,Ca((function(){R(n);var e,r=H.current;H.current=!0,!r&&n&&p&&(e=ta),r&&n&&d&&(e=na),(r&&!n&&v||!r&&h&&!n&&v)&&(e=ra);var o=Q(e);e&&(t||o[ia])?(F(e),ee()):F(ea)}),[n]),c((function(){(L===ta&&!p||L===na&&!d||L===ra&&!v)&&F(ea)}),[p,d,v]),c((function(){return function(){H.current=!1,clearTimeout(V.current)}}),[]);var re=e.useRef(!1);c((function(){j&&(re.current=!0),void 0!==j&&L===ea&&((re.current||j)&&(null==I||I(j)),re.current=!0)}),[j,L]);var oe=z;return Z[ia]&&te===aa&&(oe=Y({transition:"none"},oe)),[L,te,oe,null!=j?j:n]}var Ma=function(t){var n=t;"object"===X(t)&&(n=t.transitionSupport);var r=e.forwardRef((function(t,r){var o=t.visible,i=void 0===o||o,l=t.removeOnLeave,c=void 0===l||l,s=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,p=t.eventProps,m=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(Qi).motion),v=a(),g=a();var h=rt(Ia(m,i,(function(){try{return v.current instanceof HTMLElement?v.current:Z(g.current)}catch(e){return null}}),t),4),b=h[0],y=h[1],w=h[2],x=h[3],E=e.useRef(x);x&&(E.current=!0);var C,S=e.useCallback((function(e){v.current=e,ee(r,e)}),[r]),$=Y(Y({},p),{},{visible:i});if(u)if(b===ea)C=x?u(Y({},$),S):!c&&E.current&&f?u(Y(Y({},$),{},{className:f}),S):s||!c&&!f?u(Y(Y({},$),{},{style:{display:"none"}}),S):null;else{var k;y===ia?k="prepare":Na(y)?k="active":y===aa&&(k="start");var O=xa(d,"".concat(b,"-").concat(k));C=u(Y(Y({},$),{},{className:I(xa(d,b),K(K({},O,O&&k),d,"string"==typeof d)),style:w}),S)}else C=null;e.isValidElement(C)&&re(C)&&(C.ref||(C=e.cloneElement(C,{ref:S})));return e.createElement(Ji,{ref:g},C)}));return r.displayName="CSSMotion",r}(ba),ja="add",Ra="keep",_a="remove",Aa="removed";function Ta(e){var t;return Y(Y({},t=e&&"object"===X(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Fa(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Ta)}var Ba=["component","children","onVisibleChanged","onAllRemoved"],za=["status"],Da=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function La(t){const{children:n}=t,[,r]=Ti(),{motion:o}=r,i=e.useRef(!1);return i.current=i.current||!1===o,i.current?e.createElement(Zi,{motion:o},n):n}!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ma,r=function(){_e(r,e.Component);var t=Be(r);function r(){var e;Ie(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return K(Fe(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),K(Fe(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Y(Y({},e),{},{status:Aa})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Aa})).length})),e}return je(r,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=ht(o,Ba),u=i||e.Fragment,d={};return Da.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,e.createElement(u,s,r.map((function(r,o){var i=r.status,s=ht(r,za),u=i===ja||i===Ra;return e.createElement(n,M({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){(null==l||l(e,{key:s.key}),e)||0===t.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(Y(Y({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Fa(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Fa(e),a=Fa(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Y(Y({},e),{},{status:ja})}))),r=i),n.push(Y(Y({},l),{},{status:Ra})),r+=1,t=!0;break}}t||n.push(Y(Y({},e),{},{status:_a}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Y(Y({},e),{},{status:ja})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==_a}))).forEach((function(t){t.key===e&&(t.status=Ra)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Aa||e.status!==_a}))}}}]),r}();K(r,"defaultProps",{component:"div"})}(ba);const Ha=e.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return Nr("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(Ha.displayName="PropWarning");var Va="production"!==process.env.NODE_ENV?Ha:()=>null,Wa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let qa=!1;process.env.NODE_ENV;const Xa=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ga;const Ka=t=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:v,legacyLocale:g,parentContext:h,iconPrefixCls:b,theme:y,componentDisabled:w,segmented:x,statistic:E,spin:C,calendar:S,carousel:$,cascader:k,collapse:O,typography:N,checkbox:P,descriptions:I,divider:M,drawer:j,skeleton:R,steps:_,image:A,layout:T,list:F,mentions:B,modal:z,progress:D,result:L,slider:H,breadcrumb:V,menu:W,pagination:q,input:X,textArea:G,empty:K,badge:U,radio:Y,rate:Q,switch:Z,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ve,wave:ge,dropdown:he,warning:be,tour:ye,floatButtonGroup:we,variant:xe,inputNumber:Ee,treeSelect:Ce}=t,Se=e.useCallback(((e,n)=>{const{prefixCls:r}=t;if(n)return n;const o=r||h.getPrefixCls("");return e?`${o}-${e}`:o}),[h.getPrefixCls,t.prefixCls]),$e=b||h.iconPrefixCls||Uo,ke=r||h.csp;Hi($e,ke);const Oe=function(e,t,n){var r,o;const i=Nr("ConfigProvider"),a=e||{},l=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Xo),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Xo.hashed,cssVar:null==t?void 0:t.cssVar}),c=Ui();if("production"!==process.env.NODE_ENV){const e=a.cssVar||l.cssVar,t=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||c);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return J((()=>{var r,o;if(!e)return t;const i=Object.assign({},l.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const s=`css-var-${c.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof l.cssVar?l.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||s});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:i,cssVar:u})}),[a,l],((e,t)=>e.some(((e,n)=>!bt(e,t[n],!0)))))}(y,h.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(qa=qa||!!Oe);const Ne={csp:ke,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=m?m:p,popupOverflow:v,getPrefixCls:Se,iconPrefixCls:$e,theme:Oe,segmented:x,statistic:E,spin:C,calendar:S,carousel:$,cascader:k,collapse:O,typography:N,checkbox:P,descriptions:I,divider:M,drawer:j,skeleton:R,steps:_,image:A,input:X,textArea:G,layout:T,list:F,mentions:B,modal:z,progress:D,result:L,slider:H,breadcrumb:V,menu:W,pagination:q,empty:K,badge:U,radio:Y,rate:Q,switch:Z,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ve,wave:ge,dropdown:he,warning:be,tour:ye,floatButtonGroup:we,variant:xe,inputNumber:Ee,treeSelect:Ce};if("production"!==process.env.NODE_ENV){Nr("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Pe=Object.assign({},h);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(Pe[e]=Ne[e])})),Xa.forEach((e=>{const n=t[e];n&&(Pe[e]=n)})),void 0!==o&&(Pe.button=Object.assign({autoInsertSpace:o},Pe.button));const Ie=J((()=>Pe),Pe,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Me=e.useMemo((()=>({prefixCls:$e,csp:ke})),[$e,ke]);let je=e.createElement(e.Fragment,null,e.createElement(Va,{dropdownMatchSelectWidth:p}),n);const Re=e.useMemo((()=>{var e,t,n,r;return Cr((null===(e=Ar.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ie.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ie.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Ie,null==l?void 0:l.validateMessages]);Object.keys(Re).length>0&&(je=e.createElement(Ir.Provider,{value:Re},je)),c&&(je=e.createElement(Dr,{locale:c,_ANT_MARK__:zr},je)),($e||ke)&&(je=e.createElement(hr.Provider,{value:Me},je)),s&&(je=e.createElement(ri,{size:s},je)),je=e.createElement(La,null,je);const _e=e.useMemo((()=>{const e=Oe||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=Wa(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Mt(t):qo,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Mt(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},Fo),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[Oe]);return y&&(je=e.createElement(Go.Provider,{value:_e},je)),Ie.warning&&(je=e.createElement(Or.Provider,{value:Ie.warning},je)),void 0!==w&&(je=e.createElement(ti,{disabled:w},je)),e.createElement(Qo.Provider,{value:Ie},je)},Ua=t=>{const n=e.useContext(Qo),r=e.useContext(Br);return e.createElement(Ka,Object.assign({parentContext:n,legacyLocale:r},t))};function Ya(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Qa(e){return function(e){return Ya(e)instanceof ShadowRoot}(e)?Ya(e):null}function Za(e){return"object"===X(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===X(e.icon)||"function"==typeof e.icon)}function Ja(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function el(e,n,r){return r?t.createElement(e.tag,Y(Y({key:n},Ja(e.attrs)),r),(e.children||[]).map((function(t,r){return el(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,Y({key:n},Ja(e.attrs)),(e.children||[]).map((function(t,r){return el(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function tl(e){return wo(e)[0]}function nl(e){return e?Array.isArray(e)?e:[e]:[]}Ua.ConfigContext=Qo,Ua.SizeContext=ni,Ua.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Ga=t),r&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)&&("production"!==process.env.NODE_ENV&&Pr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Jo(Ga||Ko,r))},Ua.useConfig=function(){return{componentDisabled:o(ei),componentSize:o(ni)}},Object.defineProperty(Ua,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&Pr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ni)}),"production"!==process.env.NODE_ENV&&(Ua.displayName="ConfigProvider");var rl=["icon","className","onClick","style","primaryColor","secondaryColor"],ol={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var il=function(t){var n,r,i,a,l,s,u,d=t.icon,f=t.className,p=t.onClick,m=t.style,v=t.primaryColor,g=t.secondaryColor,h=ht(t,rl),b=e.useRef(),y=ol;if(v&&(y={primaryColor:v,secondaryColor:g||tl(v)}),n=b,r=o(hr),i=r.csp,a=r.prefixCls,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(l=l.replace(/anticon/g,a)),c((function(){var e=Qa(n.current);gt(l,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),s=Za(d),u="icon should be icon definiton, but got ".concat(d),q(s,"[@ant-design/icons] ".concat(u)),!Za(d))return null;var w=d;return w&&"function"==typeof w.icon&&(w=Y(Y({},w),{},{icon:w.icon(y.primaryColor,y.secondaryColor)})),el(w.icon,"svg-".concat(w.name),Y(Y({className:f,onClick:p,style:m,"data-icon":w.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:b}))};function al(e){var t=rt(nl(e),2),n=t[0],r=t[1];return il.setTwoToneColors({primaryColor:n,secondaryColor:r})}il.displayName="IconReact",il.getTwoToneColors=function(){return Y({},ol)},il.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ol.primaryColor=t,ol.secondaryColor=n||tl(t),ol.calculated=!!n};var ll=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];al(Io.primary);var cl=e.forwardRef((function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,l=t.tabIndex,c=t.onClick,s=t.twoToneColor,u=ht(t,ll),d=e.useContext(hr),f=d.prefixCls,p=void 0===f?"anticon":f,m=d.rootClassName,v=I(m,p,K(K({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),g=l;void 0===g&&c&&(g=-1);var h=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=rt(nl(s),2),y=b[0],w=b[1];return e.createElement("span",M({role:"img","aria-label":o.name},u,{ref:n,tabIndex:g,onClick:c,className:v}),e.createElement(il,{icon:o,primaryColor:y,secondaryColor:w,style:h}))}));cl.displayName="AntdIcon",cl.getTwoToneColor=function(){var e=il.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},cl.setTwoToneColor=al;var sl={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"},ul=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:sl}))},dl=e.forwardRef(ul);"production"!==process.env.NODE_ENV&&(dl.displayName="CloseCircleFilled");var fl={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"},pl=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:fl}))},ml=e.forwardRef(pl);"production"!==process.env.NODE_ENV&&(ml.displayName="CloseOutlined");var vl="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function gl(e,t){return 0===e.indexOf(t)}function hl(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const bl=(e,n,r)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof r?r(e.props||{}):r):n;function yl(e,t){return bl(e,e,t)}const wl=e=>{const[,,,,t]=Ti();return t?`${e}-css-var`:""};var xl={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=xl.F1&&t<=xl.F12)return!1;switch(t){case xl.ALT:case xl.CAPS_LOCK:case xl.CONTEXT_MENU:case xl.CTRL:case xl.DOWN:case xl.END:case xl.ESC:case xl.HOME:case xl.INSERT:case xl.LEFT:case xl.MAC_FF_META:case xl.META:case xl.NUMLOCK:case xl.NUM_CENTER:case xl.PAGE_DOWN:case xl.PAGE_UP:case xl.PAUSE:case xl.PRINT_SCREEN:case xl.RIGHT:case xl.SHIFT:case xl.UP:case xl.WIN_KEY:case xl.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=xl.ZERO&&e<=xl.NINE)return!0;if(e>=xl.NUM_ZERO&&e<=xl.NUM_MULTIPLY)return!0;if(e>=xl.A&&e<=xl.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case xl.SPACE:case xl.QUESTION_MARK:case xl.NUM_PLUS:case xl.NUM_MINUS:case xl.NUM_PERIOD:case xl.NUM_DIVISION:case xl.SEMICOLON:case xl.DASH:case xl.EQUALS:case xl.COMMA:case xl.PERIOD:case xl.SLASH:case xl.APOSTROPHE:case xl.SINGLE_QUOTE:case xl.OPEN_SQUARE_BRACKET:case xl.BACKSLASH:case xl.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},El={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"},Cl=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:El}))},Sl=e.forwardRef(Cl);"production"!==process.env.NODE_ENV&&(Sl.displayName="LoadingOutlined");const $l=t.createContext(void 0);"production"!==process.env.NODE_ENV&&($l.displayName="zIndexContext");const kl=100,Ol={Modal:kl,Drawer:kl,Popover:kl,Popconfirm:kl,Tooltip:kl,Tour:kl},Nl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Pl(e,n){const[,r]=Ti(),o=t.useContext($l),i=function(e){return e in Ol}(e);let a;if(void 0!==n)a=[n,n];else{let t=null!=o?o:0;t+=i?(o?0:r.zIndexPopupBase)+Ol[e]:Nl[e],a=[void 0===o?n:t,t]}if("production"!==process.env.NODE_ENV){const t=Nr(e),o=r.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&t(void 0!==n||i<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function Il(){Il=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new I(r||[]);return o(a,"_invoke",{value:k(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",v="completed",g={};function h(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(M([])));E&&E!==n&&r.call(E,a)&&(w=E);var C=y.prototype=h.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function $(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==X(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=O(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(X(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S($.prototype),s($.prototype,l,(function(){return this})),t.AsyncIterator=$,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new $(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function Ml(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function jl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ml(i,r,o,a,l,"next",e)}function l(e){Ml(i,r,o,a,l,"throw",e)}a(void 0)}))}}var Rl,_l=Y({},h),Al=_l.version,Tl=_l.render,Fl=_l.unmountComponentAtNode;try{Number((Al||"").split(".")[0])>=18&&(Rl=_l.createRoot)}catch(e){}function Bl(e){var t=_l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===X(t)&&(t.usingClientEntryPoint=e)}var zl="__rc_react_root__";function Dl(e,t){Rl?function(e,t){Bl(!0);var n=t[zl]||Rl(t);Bl(!1),n.render(e),t[zl]=n}(e,t):function(e,t){Tl(e,t)}(e,t)}function Ll(e){return Hl.apply(this,arguments)}function Hl(){return(Hl=jl(Il().mark((function e(t){return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[zl])||void 0===e||e.unmount(),delete t[zl]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vl(e){Fl(e)}function Wl(){return(Wl=jl(Il().mark((function e(t){return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Rl){e.next=2;break}return e.abrupt("return",Ll(t));case 2:Vl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const ql=()=>({height:0,opacity:0}),Xl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Gl=e=>({height:e?e.offsetHeight:0}),Kl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Ul=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ko}-motion-collapse`,onAppearStart:ql,onEnterStart:ql,onAppearActive:Xl,onEnterActive:Xl,onLeaveStart:Gl,onLeaveActive:ql,onAppearEnd:Kl,onEnterEnd:Kl,onLeaveEnd:Kl,motionDeadline:500}},Yl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var Ql=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};const Zl=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var Jl=Wi("Wave",(e=>[Zl(e)]));const ec=`${Ko}-wave-target`;function tc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function nc(e){return Number.isNaN(e)?0:e}const rc=t=>{const{className:n,target:r,component:o}=t,i=e.useRef(null),[a,l]=e.useState(null),[c,s]=e.useState([]),[u,d]=e.useState(0),[f,p]=e.useState(0),[m,v]=e.useState(0),[g,h]=e.useState(0),[b,y]=e.useState(!1),w={left:u,top:f,width:m,height:g,borderRadius:c.map((e=>`${e}px`)).join(" ")};function x(){const e=getComputedStyle(r);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return tc(t)?t:tc(n)?n:tc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:nc(-parseFloat(n))),p(t?r.offsetTop:nc(-parseFloat(o))),v(r.offsetWidth),h(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>nc(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),e.useEffect((()=>{if(r){const e=et((()=>{x(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(r)),()=>{et.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const E=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(ec));return e.createElement(Ma,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return Wl.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((t,r)=>{let{className:o}=t;return e.createElement("div",{ref:te(i,r),className:I(n,o,{"wave-quick":E}),style:w})}))},oc=(t,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=t.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==t||t.insertBefore(i,null==t?void 0:t.firstChild),Dl(e.createElement(rc,Object.assign({},n,{target:t})),i)},ic=(t,n,r)=>{const{wave:o}=e.useContext(Qo),[,i,a]=Ti(),l=di((e=>{const l=t.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${ec}`)||l,{showEffect:s}=o||{};(s||oc)(c,{className:n,token:i,component:r,event:e,hashId:a})})),c=e.useRef();return e=>{et.cancel(c.current),c.current=et((()=>{l(e)}))}},ac=e=>{const{children:n,disabled:r,component:i}=e,{getPrefixCls:l}=o(Qo),c=a(null),s=l("wave"),[,u]=Jl(s),d=ic(c,I(s,u),i);if(t.useEffect((()=>{const e=c.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!Ql(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!t.isValidElement(n))return null!=n?n:null;return yl(n,{ref:re(n)?te(n.ref,c):c})};"production"!==process.env.NODE_ENV&&(ac.displayName="Wave");const lc=e=>{const n=t.useContext(ni);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])},cc=e.createContext(null),sc=(t,n)=>{const r=e.useContext(cc),o=e.useMemo((()=>{if(!r)return"";const{compactDirection:e,isFirstItem:o,isLastItem:i}=r,a="vertical"===e?"-vertical-":"-";return I(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:o,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})}),[t,n,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}},uc=t=>{let{children:n}=t;return e.createElement(cc.Provider,{value:null},n)};var dc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fc=e.createContext(void 0),pc=/^[\u4e00-\u9fa5]{2}$/,mc=pc.test.bind(pc);function vc(e){return"string"==typeof e}function gc(e){return"text"===e||"link"===e}function hc(e,n){let r=!1;const o=[];return t.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),t.Children.map(o,(e=>function(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&vc(e.type)&&mc(e.props.children)?yl(e,{children:e.props.children.split("").join(r)}):vc(e)?mc(e)?t.createElement("span",null,e.split("").join(r)):t.createElement("span",null,e):hl(e)?t.createElement("span",null,e):e}(e,n)))}const bc=s(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=I(`${a}-icon`,r);return t.createElement("span",{ref:n,className:l,style:o},i)})),yc=s(((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,l=I(`${r}-loading-icon`,o);return t.createElement(bc,{prefixCls:r,className:l,style:i,ref:n},t.createElement(Sl,{className:a}))})),wc=()=>({width:0,opacity:0,transform:"scale(0)"}),xc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ec=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=e,l=!!r;return o?t.createElement(yc,{prefixCls:n,className:i,style:a}):t.createElement(Ma,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:wc,onAppearActive:xc,onEnterStart:wc,onEnterActive:xc,onLeaveStart:xc,onLeaveActive:wc},((e,r)=>{let{className:o,style:l}=e;return t.createElement(yc,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))},Cc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Sc=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}},Cc(`${t}-primary`,o),Cc(`${t}-danger`,i)]}},$c=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return bi(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},kc=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:zo(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:zo(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:zo(s);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},Oc=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Bt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Li(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Nc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Pc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Ic=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Mc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),jc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Nc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Rc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Mc(e))}),_c=e=>Object.assign({},Rc(e)),Ac=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Tc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_c(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Nc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),jc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Nc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),jc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Rc(e))}),Fc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_c(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Nc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),jc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Nc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),jc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rc(e))}),Bc=e=>Object.assign(Object.assign({},Tc(e)),{borderStyle:"dashed"}),zc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Nc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ac(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Nc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ac(e))}),Dc=e=>Object.assign(Object.assign(Object.assign({},Nc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ac(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ac(e)),Nc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Lc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Tc(e),[`${t}-primary`]:Fc(e),[`${t}-dashed`]:Bc(e),[`${t}-link`]:zc(e),[`${t}-text`]:Dc(e),[`${t}-ghost`]:jc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Hc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${Bt(s)} ${Bt(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Pc(e)},{[`${n}${n}-round${t}`]:Ic(e)}]},Vc=e=>{const t=bi(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Hc(t,e.componentCls)},Wc=e=>{const t=bi(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Hc(t,`${e.componentCls}-sm`)},qc=e=>{const t=bi(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Hc(t,`${e.componentCls}-lg`)},Xc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Gc=Vi("Button",(e=>{const t=$c(e);return[Oc(t),Vc(t),Wc(t),qc(t),Xc(t),Lc(t),Sc(t)]}),kc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Kc(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Uc(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 Yc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Kc(e,r,t)),Uc(n,r,t))}}function Qc(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Zc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Qc(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Jc=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Bt(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Bt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var es=qi(["Button","compact"],(e=>{const t=$c(e);return[Yc(t),Zc(t),Jc(t)]}),kc),ts=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ns=t.forwardRef(((e,n)=>{var r,i,a;const{loading:l=!1,prefixCls:s,type:m,danger:v=!1,shape:g="default",size:h,styles:b,disabled:y,className:w,rootClassName:x,children:E,icon:C,iconPosition:S="start",ghost:$=!1,block:k=!1,htmlType:O="button",classNames:N,style:P={},autoInsertSpace:M}=e,j=ts(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),R=m||"default",{getPrefixCls:_,direction:A,button:T}=o(Qo),F=null===(r=null!=M?M:null==T?void 0:T.autoInsertSpace)||void 0===r||r,B=_("btn",s),[z,D,L]=Gc(B),H=o(ei),V=null!=y?y:H,W=o(fc),q=u((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(l)),[l]),[X,G]=d(q.loading),[K,U]=d(!1),Y=te(n,p()),Q=1===f.count(E)&&!C&&!gc(R);c((()=>{let e=null;return q.delay>0?e=setTimeout((()=>{e=null,G(!0)}),q.delay):G(q.loading),function(){e&&(clearTimeout(e),e=null)}}),[q]),c((()=>{if(!Y||!Y.current||!F)return;const e=Y.current.textContent;Q&&mc(e)?K||U(!0):K&&U(!1)}),[Y]);const Z=t=>{const{onClick:n}=e;X||V?t.preventDefault():null==n||n(t)};if("production"!==process.env.NODE_ENV){const e=Nr("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof C&&C.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${C}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!($&&gc(R)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:J,compactItemClassnames:ee}=sc(B,A),ne={large:"lg",small:"sm",middle:void 0},re=lc((e=>{var t,n;return null!==(n=null!==(t=null!=h?h:J)&&void 0!==t?t:W)&&void 0!==n?n:e})),oe=re&&ne[re]||"",ie=X?"loading":C,ae=We(j,["navigate"]),le=I(B,D,L,{[`${B}-${g}`]:"default"!==g&&g,[`${B}-${R}`]:R,[`${B}-${oe}`]:oe,[`${B}-icon-only`]:!E&&0!==E&&!!ie,[`${B}-background-ghost`]:$&&!gc(R),[`${B}-loading`]:X,[`${B}-two-chinese-chars`]:K&&F&&!X,[`${B}-block`]:k,[`${B}-dangerous`]:v,[`${B}-rtl`]:"rtl"===A,[`${B}-icon-end`]:"end"===S},ee,w,x,null==T?void 0:T.className),ce=Object.assign(Object.assign({},null==T?void 0:T.style),P),se=I(null==N?void 0:N.icon,null===(i=null==T?void 0:T.classNames)||void 0===i?void 0:i.icon),ue=Object.assign(Object.assign({},(null==b?void 0:b.icon)||{}),(null===(a=null==T?void 0:T.styles)||void 0===a?void 0:a.icon)||{}),de=C&&!X?t.createElement(bc,{prefixCls:B,className:se,style:ue},C):t.createElement(Ec,{existIcon:!!C,prefixCls:B,loading:X}),fe=E||0===E?hc(E,Q&&F):null;if(void 0!==ae.href)return z(t.createElement("a",Object.assign({},ae,{className:I(le,{[`${B}-disabled`]:V}),href:V?void 0:ae.href,style:ce,onClick:Z,ref:Y,tabIndex:V?-1:0}),de,fe));let pe=t.createElement("button",Object.assign({},j,{type:O,className:le,style:ce,onClick:Z,disabled:V,ref:Y}),de,fe,!!ee&&t.createElement(es,{key:"compact",prefixCls:B}));return gc(R)||(pe=t.createElement(ac,{component:"Button",disabled:X},pe)),z(pe)})),rs=ns;rs.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(Qo),{prefixCls:o,size:i,className:a}=t,l=dc(t,["prefixCls","size","className"]),c=n("btn-group",o),[,,s]=Ti();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=Nr("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=I(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===r},a,s);return e.createElement(fc.Provider,{value:i},e.createElement("div",Object.assign({},l,{className:d})))},rs.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(rs.displayName="Button");var os=e.createContext(null),is=[];function as(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";gt("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),vt(t),{width:f,height:p}}(e):{width:0,height:0}}var ls="rc-util-locker-".concat(Date.now()),cs=0;function ss(t){var n=!!t,r=rt(e.useState((function(){return cs+=1,"".concat(ls,"_").concat(cs)})),1)[0];Wt((function(){if(n){var e=as(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;gt("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else vt(r);return function(){vt(r)}}),[n,r])}var us=function(e){return!1!==e&&(it()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},ds=e.forwardRef((function(t,n){var r=t.open,o=t.autoLock,i=t.getContainer,a=t.debug,l=t.autoDestroy,c=void 0===l||l,s=t.children,u=rt(e.useState(r),2),d=u[0],f=u[1],p=d||r;"production"!==process.env.NODE_ENV&&q(it()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),e.useEffect((function(){(c||r)&&f(r)}),[r,c]);var m=rt(e.useState((function(){return us(i)})),2),v=m[0],g=m[1];e.useEffect((function(){var e=us(i);g(null!=e?e:null)}));var h=function(t,n){var r=rt(e.useState((function(){if(!it())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&n&&e.setAttribute("data-debug",n),e})),1)[0],o=e.useRef(!1),i=e.useContext(os),a=rt(e.useState(is),2),l=a[0],c=a[1],s=i||(o.current?void 0:function(e){c((function(t){return[e].concat(Ke(t))}))});function u(){r.parentElement||document.body.appendChild(r),o.current=!0}function d(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}return Wt((function(){return t?i?i(u):u():d(),d}),[t]),Wt((function(){l.length&&(l.forEach((function(e){return e()})),c(is))}),[l]),[r,s]}(p&&!v,a),b=rt(h,2),w=b[0],x=b[1],E=null!=v?v:w;ss(o&&r&&it()&&(E===w||E===document.body));var C=null;s&&re(s)&&n&&(C=s.ref);var S=ne(C,n);if(!p||!it()||void 0===v)return null;var $=!1===E||!1,k=s;return n&&(k=e.cloneElement(s,{ref:S})),e.createElement(os.Provider,{value:x},$?k:y(k,E))}));"production"!==process.env.NODE_ENV&&(ds.displayName="Portal");var fs=0,ps=Y({},e).useId,ms=ps?function(e){var t=ps();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(t){var n=rt(e.useState("ssr-id"),2),r=n[0],o=n[1];return e.useEffect((function(){var e=fs;fs+=1,o("rc_unique_".concat(e))}),[]),t||("test"===process.env.NODE_ENV?"test-id":r)},vs="RC_FORM_INTERNAL_HOOKS",gs=function(){q(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},hs=e.createContext({getFieldValue:gs,getFieldsValue:gs,getFieldError:gs,getFieldWarning:gs,getFieldsError:gs,isFieldsTouched:gs,isFieldTouched:gs,isFieldValidating:gs,isFieldsValidating:gs,resetFields:gs,setFields:gs,setFieldValue:gs,setFieldsValue:gs,validateFields:gs,submit:gs,getInternalHooks:function(){return gs(),{dispatch:gs,initEntityValue:gs,registerField:gs,useSubscribe:gs,setInitialValues:gs,destroyForm:gs,setCallbacks:gs,registerWatch:gs,getFields:gs,setValidateMessages:gs,setPreserve:gs,getInitialValue:gs}}}),bs=e.createContext(null);function ys(e){return null==e?[]:Array.isArray(e)?e:[e]}function ws(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var xs=ws();function Es(e){var t="function"==typeof Map?new Map:void 0;return Es=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Te())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Re(o,n.prototype),o}(e,arguments,Ae(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Re(n,e)},Es(e)}var Cs=/%[sdj%]/g,Ss=function(){};function $s(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 ks(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(Cs,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function Os(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function Ns(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(Ss=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var Ps=function(){_e(t,Es(Error));var e=Be(t);function t(n,r){var o;return Ie(this,t),K(Fe(o=e.call(this,"Async Validation Error")),"errors",void 0),K(Fe(o),"fields",void 0),o.errors=n,o.fields=r,o}return je(t)}();function Is(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,Ke(e[n]||[]))})),t}(e);Ns(a,n,(function(e){return r(e),e.length?i(new Ps(e,$s(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new Ps(u,$s(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?Ns(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Ke(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function Ms(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function js(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===X(r)&&"object"===X(e[n])?e[n]=Y(Y({},e[n]),r):e[n]=r}return e}var Rs,_s="enum",As=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Os(t,i||e.type)||r.push(ks(o.messages.required,e.fullField))},Ts=/^(([^<>()\[\]\\.,;:\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,}))$/,Fs=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Bs={integer:function(e){return Bs.number(e)&&parseInt(e,10)===e},float:function(e){return Bs.number(e)&&!Bs.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===X(e)&&!Bs.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Ts)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Rs)return Rs;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Rs=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Fs)}},zs={required:As,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(ks(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)As(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Bs[i](t)||r.push(ks(o.messages.types[i],e.fullField,e.type)):i&&X(t)!==e.type&&r.push(ks(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(ks(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(ks(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(ks(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(ks(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[_s]=Array.isArray(e[_s])?e[_s]:[],-1===e[_s].indexOf(t)&&r.push(ks(o.messages[_s],e.fullField,e[_s].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(ks(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(ks(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Ds=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t,i)&&!e.required)return n();zs.required(e,t,r,a,o,i),Os(t,i)||zs.type(e,t,r,a,o)}n(a)},Ls={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t,"string")&&!e.required)return n();zs.required(e,t,r,i,o,"string"),Os(t,"string")||(zs.type(e,t,r,i,o),zs.range(e,t,r,i,o),zs.pattern(e,t,r,i,o),!0===e.whitespace&&zs.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(Os(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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),Os(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&(zs.type(e,t,r,i,o),zs.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(Os(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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(Os(t)&&!e.required)return n();zs.required(e,t,r,i,o),Os(t)||zs.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(Os(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&(zs.type(e,t,r,i,o),zs.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(Os(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&(zs.type(e,t,r,i,o),zs.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();zs.required(e,t,r,i,o,"array"),null!=t&&(zs.type(e,t,r,i,o),zs.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(Os(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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(Os(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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(Os(t,"string")&&!e.required)return n();zs.required(e,t,r,i,o),Os(t,"string")||zs.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(Os(t,"date")&&!e.required)return n();var a;if(zs.required(e,t,r,i,o),!Os(t,"date"))a=t instanceof Date?t:new Date(t),zs.type(e,a,r,i,o),a&&zs.range(e,a.getTime(),r,i,o)}n(i)},url:Ds,hex:Ds,email:Ds,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":X(t);zs.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Os(t)&&!e.required)return n();zs.required(e,t,r,i,o)}n(i)}},Hs=function(){function e(t){Ie(this,e),K(this,"rules",null),K(this,"_messages",xs),this.define(t)}return je(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==X(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=js(ws(),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===xs&&(a=ws()),js(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=Y({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":X(i)))),(a="function"==typeof a?{validator:a}:Y({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return Is(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==X(a.fields)&&"object"!==X(a.defaultField));function s(e,t){return Y(Y({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Ke(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Ms(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Ms(a,r)):o.error&&(d=[o.error(a,ks(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=Y(Y({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Ke(d)),e&&e.length&&t.push.apply(t,Ke(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,Ke(t)):o.push(t);o.length?(a=$s(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Ls.hasOwnProperty(e.type))throw new Error(ks("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]?Ls.required:Ls[this.getType(e)]||void 0}}]),e}();K(Hs,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ls[e]=t})),K(Hs,"warning",Ss),K(Hs,"messages",xs),K(Hs,"validators",Ls);var Vs="'${name}' is not a valid ${type}",Ws={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:Vs,method:Vs,array:Vs,object:Vs,number:Vs,date:Vs,boolean:Vs,integer:Vs,float:Vs,regexp:Vs,email:Vs,url:Vs,hex:Vs},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}"}},qs=Hs;function Xs(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Gs="CODE_LOGIC_ERROR";function Ks(e,t,n,r,o){return Us.apply(this,arguments)}function Us(){return Us=jl(Il().mark((function t(n,r,o,i,a){var l,c,s,u,d,f,p,m,v;return Il().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(l=Y({},o)).ruleIndex,qs.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Gs)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new qs(K({},n,[l])),d=Cr(Ws,i.validateMessages),u.messages(d),f=[],t.prev=10,t.next=13,Promise.resolve(u.validate(K({},n,r),Y({},i)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(f=t.t0.errors.map((function(t,n){var r=t.message,o=r===Gs?d.default:r;return e.isValidElement(o)?e.cloneElement(o,{key:"error_".concat(n)}):o})));case 18:if(f.length||!s){t.next=23;break}return t.next=21,Promise.all(r.map((function(e,t){return Ks("".concat(n,".").concat(t),e,s,i,a)})));case 21:return p=t.sent,t.abrupt("return",p.reduce((function(e,t){return[].concat(Ke(e),Ke(t))}),[]));case 23:return m=Y(Y({},o),{},{name:n,enum:(o.enum||[]).join(", ")},a),v=f.map((function(e){return"string"==typeof e?Xs(e,m):e})),t.abrupt("return",v);case 26:case"end":return t.stop()}}),t,null,[[10,15]])}))),Us.apply(this,arguments)}function Ys(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=Y(Y({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){q(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));q(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=jl(Il().mark((function e(n,o){var a,s,u;return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Ks(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map((function(e){return Ks(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return Zs.apply(this,arguments)}(s):function(e){return Qs.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Qs(){return(Qs=jl(Il().mark((function e(t){return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Ke(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zs(){return(Zs=jl(Il().mark((function e(t){var n;return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Js(e){return ys(e)}function eu(e,t){var n={};return t.forEach((function(t){var r=br(e,t);n=wr(n,t,r)})),n}function tu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return nu(t,e,n)}))}function nu(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function ru(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===X(t.target)&&e in t.target?t.target[e]:t}function ou(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ke(e.slice(0,n)),[o],Ke(e.slice(n,t)),Ke(e.slice(t+1,r))):i<0?[].concat(Ke(e.slice(0,t)),Ke(e.slice(t+1,n+1)),[o],Ke(e.slice(n+1,r))):e}var iu=["name"],au=[];function lu(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var cu=function(){_e(n,e.Component);var t=Be(n);function n(r){var o;(Ie(this,n),K(Fe(o=t.call(this,r)),"state",{resetCount:0}),K(Fe(o),"cancelRegisterFunc",null),K(Fe(o),"mounted",!1),K(Fe(o),"touched",!1),K(Fe(o),"dirty",!1),K(Fe(o),"validatePromise",void 0),K(Fe(o),"prevValidating",void 0),K(Fe(o),"errors",au),K(Fe(o),"warnings",au),K(Fe(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Js(r)),o.cancelRegisterFunc=null})),K(Fe(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ke(void 0===n?[]:n),Ke(t)):[]})),K(Fe(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),K(Fe(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),K(Fe(o),"metaCache",null),K(Fe(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=Y(Y({},o.getMeta()),{},{destroy:e});bt(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),K(Fe(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&tu(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||bt(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=au,o.warnings=au,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=au,o.warnings=au,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&lu(i,e,s,d,f,n))return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||au),"warnings"in m&&(o.warnings=m.warnings||au),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&tu(t,u,!0))return void o.reRender();if(i&&!u.length&&lu(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Js).some((function(e){return tu(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&lu(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),K(Fe(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(jl(Il().mark((function r(){var a,l,s,u,d,f,p;return Il().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||ys(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Ys(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:au;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?au:o;t?r.push.apply(r,Ke(i)):n.push.apply(n,Ke(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=au,o.warnings=au,o.triggerMetaEvent(),o.reRender()),c})),K(Fe(o),"isFieldValidating",(function(){return!!o.validatePromise})),K(Fe(o),"isFieldTouched",(function(){return o.touched})),K(Fe(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(vs).getInitialValue)(o.getNamePath())})),K(Fe(o),"getErrors",(function(){return o.errors})),K(Fe(o),"getWarnings",(function(){return o.warnings})),K(Fe(o),"isListField",(function(){return o.props.isListField})),K(Fe(o),"isList",(function(){return o.props.isList})),K(Fe(o),"isPreserve",(function(){return o.props.preserve})),K(Fe(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),K(Fe(o),"getOnlyChild",(function(t){if("function"==typeof t){var n=o.getMeta();return Y(Y({},o.getOnlyChild(t(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=B(t);return 1===r.length&&e.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),K(Fe(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return br(e||t(!0),n)})),K(Fe(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,v=p(vs).dispatch,g=o.getValue(),h=s||function(e){return K({},c,e)},b=e[r],y=void 0!==n?h(g):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){q("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var w=Y(Y({},e),y);return w[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):ru.apply(void 0,[c].concat(n)),l&&(e=l(e,g,m(!0))),v({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},ys(d||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&v({type:"validateField",namePath:f,triggerName:e})}})),w})),r.fieldContext)&&(0,(0,r.fieldContext.getInternalHooks)(vs).initEntityValue)(Fe(o));return o}return je(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(vs).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var t,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),i=o.child;return o.isFunction?t=i:e.isValidElement(i)?t=e.cloneElement(i,this.getControlled(i.props)):(q(!i,"`children` of Field is not validate ReactElement."),t=i),e.createElement(e.Fragment,{key:n},t)}}]),n}();function su(t){var n=t.name,r=ht(t,iu),o=e.useContext(hs),i=e.useContext(bs),a=void 0!==n?Js(n):void 0,l="keep";return r.isListField||(l="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===r.preserve&&r.isListField&&a.length<=1&&q(!1,"`preserve` should not apply on Form.List fields."),e.createElement(cu,M({key:l,name:a,isListField:!!i},r,{fieldContext:o}))}K(cu,"contextType",hs),K(cu,"defaultProps",{trigger:"onChange",valuePropName:"value"});var uu="__@field_split__";function du(e){return e.map((function(e){return"".concat(X(e),":").concat(e)})).join(uu)}var fu=function(){function e(){Ie(this,e),K(this,"kvs",new Map)}return je(e,[{key:"set",value:function(e,t){this.kvs.set(du(e),t)}},{key:"get",value:function(e){return this.kvs.get(du(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(du(e))}},{key:"map",value:function(e){return Ke(this.kvs.entries()).map((function(t){var n=rt(t,2),r=n[0],o=n[1],i=r.split(uu);return e({key:i.map((function(e){var t=rt(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),pu=["name"],mu=je((function e(t){var n=this;Ie(this,e),K(this,"formHooked",!1),K(this,"forceRootUpdate",void 0),K(this,"subscribable",!0),K(this,"store",{}),K(this,"fieldEntities",[]),K(this,"initialValues",{}),K(this,"callbacks",{}),K(this,"validateMessages",null),K(this,"preserve",null),K(this,"lastValidatePromise",null),K(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),K(this,"getInternalHooks",(function(e){return e===vs?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(q(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),K(this,"useSubscribe",(function(e){n.subscribable=e})),K(this,"prevWithoutPreserves",null),K(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Cr(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=wr(o,n,br(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),K(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new fu;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),K(this,"getInitialValue",(function(e){var t=br(n.initialValues,e);return e.length?Cr(t):t})),K(this,"setCallbacks",(function(e){n.callbacks=e})),K(this,"setValidateMessages",(function(e){n.validateMessages=e})),K(this,"setPreserve",(function(e){n.preserve=e})),K(this,"watchList",[]),K(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),K(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),K(this,"timeoutId",null),K(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||q(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),K(this,"updateStore",(function(e){n.store=e})),K(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),K(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new fu;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),K(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Js(e);return t.get(n)||{INVALIDATE_NAME_PATH:Js(e)}}))})),K(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===X(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),eu(n.store,l.map(Js))})),K(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Js(e);return br(n.store,t)})),K(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Js(e[n]),errors:[],warnings:[]}}))})),K(this,"getFieldError",(function(e){n.warningUnhooked();var t=Js(e);return n.getFieldsError([t])[0].errors})),K(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Js(e);return n.getFieldsError([t])[0].warnings})),K(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Js),l=!1):(o=null,l=i):(o=i.map(Js),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new fu;o.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Ke(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),K(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),K(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Js);return t.some((function(e){var t=e.getNamePath();return tu(r,t)&&e.isFieldValidating()}))})),K(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),K(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new fu,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Ke(Ke(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))q(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)q(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(wr(n.store,o,Ke(i)[0].value))}}}}))})),K(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Cr(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Js);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(wr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),K(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=ht(e,pu),a=Js(o);r.push(a),"value"in i&&n.updateStore(wr(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),K(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Y(Y({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),K(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===br(n.store,r)&&n.updateStore(wr(n.store,r,t))}})),K(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),K(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!nu(e.getNamePath(),t)}))){var l=n.store;n.updateStore(wr(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),K(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),K(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Y(Y({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),K(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Ke(r))}),r})),K(this,"updateValue",(function(e,t){var r=Js(e),o=n.store;n.updateStore(wr(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(eu(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Ke(i)))})),K(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Cr(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),K(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),K(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new fu;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Js(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),K(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new fu;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return tu(e,n)}));a.length&&r(a,o)}})),K(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Js):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||tu(a,t,d)){var r=e.validateRules(Y({validateMessages:Y(Y({},Ws),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Ke(n)):r.push.apply(r,Ke(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var v=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(v),m})),K(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function vu(t){var n=e.useRef(),r=rt(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var o=new mu((function(){r({})}));n.current=o.getForm()}return[n.current]}var gu=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),hu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],bu=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,c=t.children,s=t.component,u=void 0===s?"form":s,d=t.validateMessages,f=t.validateTrigger,p=void 0===f?"onChange":f,m=t.onValuesChange,v=t.onFieldsChange,g=t.onFinish,h=t.onFinishFailed,b=t.clearOnDestroy,y=ht(t,hu),w=e.useRef(null),x=e.useContext(gu),E=rt(vu(a),1)[0],C=E.getInternalHooks(vs),S=C.useSubscribe,$=C.setInitialValues,k=C.setCallbacks,O=C.setValidateMessages,N=C.setPreserve,P=C.destroyForm;e.useImperativeHandle(n,(function(){return Y(Y({},E),{},{nativeElement:w.current})})),e.useEffect((function(){return x.registerForm(r,E),function(){x.unregisterForm(r)}}),[x,E,r]),O(Y(Y({},x.validateMessages),d)),k({onValuesChange:m,onFieldsChange:function(e){if(x.triggerFormChange(r,e),v){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];v.apply(void 0,[e].concat(n))}},onFinish:function(e){x.triggerFormFinish(r,e),g&&g(e)},onFinishFailed:h}),N(l);var I,j=e.useRef(null);$(o,!j.current),j.current||(j.current=!0),e.useEffect((function(){return function(){return P(b)}}),[]);var R="function"==typeof c;R?I=c(E.getFieldsValue(!0),E):I=c;S(!R);var _=e.useRef();e.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==X(e)||"object"!==X(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Ke(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(_.current||[],i||[])||E.setFields(i||[]),_.current=i}),[i,E]);var A=e.useMemo((function(){return Y(Y({},E),{},{validateTrigger:p})}),[E,p]),T=e.createElement(bs.Provider,{value:null},e.createElement(hs.Provider,{value:A},I));return!1===u?T:e.createElement(u,M({},y,{ref:w,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),T)};function yu(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var wu="production"!==process.env.NODE_ENV?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__");q(a(t).current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var xu=e.forwardRef(bu);xu.FormProvider=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=e.useContext(gu),l=e.useRef({});return e.createElement(gu.Provider,{value:Y(Y({},a),{},{validateMessages:Y(Y({},a.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=Y(Y({},l.current),{},K({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Y({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},xu.Field=su,xu.List=function(t){var n=t.name,r=t.initialValue,o=t.children,i=t.rules,a=t.validateTrigger,l=t.isListField,c=e.useContext(hs),s=e.useContext(bs),u=e.useRef({keys:[],id:0}).current,d=e.useMemo((function(){var e=Js(c.prefixName)||[];return[].concat(Ke(e),Ke(Js(n)))}),[c.prefixName,n]),f=e.useMemo((function(){return Y(Y({},c),{},{prefixName:d})}),[c,d]),p=e.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(q(!1,"Form.List only accepts function as children."),null):e.createElement(bs.Provider,{value:p},e.createElement(hs.Provider,{value:f},e.createElement(su,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:null!=l?l:!!s},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Ke(u.keys.slice(0,t)),[u.id],Ke(u.keys.slice(t))),i([].concat(Ke(n.slice(0,t)),[e],Ke(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&q(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Ke(u.keys),[u.id]),i([].concat(Ke(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=ou(u.keys,e,t),i(ou(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&q(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),o(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))},xu.useForm=vu,xu.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],l=void 0===i?{}:i,s=function(e){return e&&!!e._init}(l)?{form:l}:l,f=s.form,p=rt(d(),2),m=p[0],v=p[1],g=u((function(){return yu(m)}),[m]),h=a(g);h.current=g;var b=o(hs),y=f||b,w=y&&y._init;"production"!==process.env.NODE_ENV&&q(2===t.length&&!f||w,"useWatch requires a form instance since it can not auto detect from context.");var x=Js(r),E=a(x);return E.current=x,wu(x),c((function(){if(w){var e=y.getFieldsValue,t=(0,y.getInternalHooks)(vs).registerWatch,n=function(e,t){var n=s.preserve?t:e;return"function"==typeof r?r(n):br(n,E.current)},o=t((function(e,t){var r=n(e,t),o=yu(r);h.current!==o&&(h.current=o,v(r))})),i=n(e(),e(!0));return m!==i&&v(i),o}}),[w]),m};const Eu=e.createContext({});"production"!==process.env.NODE_ENV&&(Eu.displayName="FormItemInputContext");const Cu=t=>{let{children:n,status:r,override:i}=t;const a=o(Eu),l=u((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,i,a]);return e.createElement(Eu.Provider,{value:l},n)},Su=i(void 0),$u=e=>{const{space:n,form:r,children:o}=e;if(null==o)return null;let i=o;return r&&(i=t.createElement(Cu,{override:!0,status:!0},i)),n&&(i=t.createElement(uc,null,i)),i},ku=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Ou=e=>({animationDuration:e,animationFillMode:"both"}),Nu=e=>({animationDuration:e,animationFillMode:"both"}),Pu=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},Ou(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Nu(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"}}},Iu={"slide-up":{inKeyframes:new vr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new vr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new vr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new vr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new vr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new vr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new vr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new vr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},Mu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Iu[t];return[Pu(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}}]},ju=new vr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ru=new vr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),_u=new vr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Au=new vr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Tu=new vr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Fu=new vr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Bu={zoom:{inKeyframes:ju,outKeyframes:Ru},"zoom-big":{inKeyframes:_u,outKeyframes:Au},"zoom-big-fast":{inKeyframes:_u,outKeyframes:Au},"zoom-left":{inKeyframes:new vr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new vr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new vr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new vr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Tu,outKeyframes:Fu},"zoom-down":{inKeyframes:new vr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new vr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},zu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Bu[t];return[Pu(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}}]};var Du=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},Lu=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Hu=void 0;function Vu(t,n){var r=t.prefixCls,o=t.invalidate,i=t.item,a=t.renderItem,l=t.responsive,c=t.responsiveDisabled,s=t.registerSize,u=t.itemKey,d=t.className,f=t.style,p=t.children,m=t.display,v=t.order,g=t.component,h=void 0===g?"div":g,b=ht(t,Lu),y=l&&!m;function w(e){s(u,e)}e.useEffect((function(){return function(){w(null)}}),[]);var x,E=a&&i!==Hu?a(i):p;o||(x={opacity:y?0:1,height:y?0:Hu,overflowY:y?"hidden":Hu,order:l?v:Hu,pointerEvents:y?"none":Hu,position:y?"absolute":Hu});var C={};y&&(C["aria-hidden"]=!0);var S=e.createElement(h,M({className:I(!o&&r,d),style:Y(Y({},x),f)},C,b,{ref:n}),E);return l&&(S=e.createElement(Ve,{onResize:function(e){w(e.offsetWidth)},disabled:c},S)),S}var Wu=e.forwardRef(Vu);function qu(){var t=e.useRef(null);return function(e){t.current||(t.current=[],function(e){if("undefined"==typeof MessageChannel)et(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){w((function(){t.current.forEach((function(e){e()})),t.current=null}))}))),t.current.push(e)}}function Xu(t,n){var r=rt(e.useState(n),2),o=r[0],i=r[1];return[o,di((function(e){t((function(){i(e)}))}))]}Wu.displayName="Item";var Gu=t.createContext(null),Ku=["component"],Uu=["className"],Yu=["className"],Qu=function(t,n){var r=e.useContext(Gu);if(!r){var o=t.component,i=void 0===o?"div":o,a=ht(t,Ku);return e.createElement(i,M({},a,{ref:n}))}var l=r.className,c=ht(r,Uu),s=t.className,u=ht(t,Yu);return e.createElement(Gu.Provider,{value:null},e.createElement(Wu,M({ref:n,className:I(l,s)},c,u)))},Zu=e.forwardRef(Qu);Zu.displayName="RawItem";var Ju=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ed="responsive",td="invalidate";function nd(e){return"+ ".concat(e.length," ...")}function rd(t,n){var r=t.prefixCls,o=void 0===r?"rc-overflow":r,i=t.data,a=void 0===i?[]:i,l=t.renderItem,c=t.renderRawItem,s=t.itemKey,f=t.itemWidth,p=void 0===f?10:f,v=t.ssr,g=t.style,h=t.className,b=t.maxCount,y=t.renderRest,w=t.renderRawRest,x=t.suffix,E=t.component,C=void 0===E?"div":E,S=t.itemComponent,$=t.onVisibleChange,k=ht(t,Ju),O="full"===v,N=qu(),P=rt(Xu(N,null),2),j=P[0],R=P[1],_=j||0,A=rt(Xu(N,new Map),2),T=A[0],F=A[1],B=rt(Xu(N,0),2),z=B[0],D=B[1],L=rt(Xu(N,0),2),H=L[0],V=L[1],W=rt(Xu(N,0),2),q=W[0],X=W[1],G=rt(d(null),2),K=G[0],U=G[1],Q=rt(d(null),2),Z=Q[0],J=Q[1],ee=e.useMemo((function(){return null===Z&&O?Number.MAX_SAFE_INTEGER:Z||0}),[Z,j]),te=rt(d(!1),2),ne=te[0],re=te[1],oe="".concat(o,"-item"),ie=Math.max(z,H),ae=b===ed,le=a.length&&ae,ce=b===td,se=le||"number"==typeof b&&a.length>b,ue=u((function(){var e=a;return le?e=null===j&&O?a:a.slice(0,Math.min(a.length,_/p)):"number"==typeof b&&(e=a.slice(0,b)),e}),[a,p,j,b,le]),de=u((function(){return le?a.slice(ee+1):a.slice(ue.length)}),[a,ue,le,ee]),fe=m((function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t}),[s]),pe=m(l||function(e){return e},[l]);function me(e,t,n){(Z!==e||void 0!==t&&t!==K)&&(J(e),n||(re(e<a.length-1),null==$||$(e)),void 0!==t&&U(t))}function ve(e,t){F((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function ge(e){return T.get(fe(ue[e],e))}Wt((function(){if(_&&"number"==typeof ie&&ue){var e=q,t=ue.length,n=t-1;if(!t)return void me(0,null);for(var r=0;r<t;r+=1){var o=ge(r);if(O&&(o=o||0),void 0===o){me(r-1,void 0,!0);break}if(e+=o,0===n&&e<=_||r===n-1&&e+ge(n)<=_){me(n,null);break}if(e+ie>_){me(r-1,e-o-q+H);break}}x&&ge(0)+q>_&&U(null)}}),[_,T,H,q,fe,ue]);var he=ne&&!!de.length,be={};null!==K&&le&&(be={position:"absolute",left:K,top:0});var ye,we={prefixCls:oe,responsive:le,component:S,invalidate:ce},xe=c?function(t,n){var r=fe(t,n);return e.createElement(Gu.Provider,{key:r,value:Y(Y({},we),{},{order:n,item:t,itemKey:r,registerSize:ve,display:n<=ee})},c(t,n))}:function(t,n){var r=fe(t,n);return e.createElement(Wu,M({},we,{order:n,key:r,item:t,renderItem:pe,itemKey:r,registerSize:ve,display:n<=ee}))},Ee={order:he?ee:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:function(e,t){V(t),D(H)},display:he};if(w)w&&(ye=e.createElement(Gu.Provider,{value:Y(Y({},we),Ee)},w(de)));else{var Ce=y||nd;ye=e.createElement(Wu,M({},we,Ee),"function"==typeof Ce?Ce(de):Ce)}var Se=e.createElement(C,M({className:I(!ce&&o,h),style:g,ref:n},k),ue.map(xe),se?ye:null,x&&e.createElement(Wu,M({},we,{responsive:ae,responsiveDisabled:!le,order:ee,className:"".concat(oe,"-suffix"),registerSize:function(e,t){X(t)},display:!0,style:be}),x));return ae&&(Se=e.createElement(Ve,{onResize:function(e,t){R(t.clientWidth)},disabled:!le},Se)),Se}var od=e.forwardRef(rd);function id(t){var n=t.prefixCls,r=t.align,o=t.arrow,i=t.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,p=e.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var v=r.points[0],g=r.points[1],h=v[0],b=v[1],y=g[0],w=g[1];h!==y&&["t","b"].includes(h)?"t"===h?m.top=0:m.bottom=0:m.top=f,b!==w&&["l","r"].includes(b)?"l"===b?m.left=0:m.right=0:m.left=u}return e.createElement("div",{ref:p,className:I("".concat(n,"-arrow"),l),style:m},c)}function ad(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Ma,M({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:I("".concat(n,"-mask"),r)})})):null}od.displayName="Overflow",od.Item=Zu,od.RESPONSIVE=ed,od.INVALIDATE=td;var ld=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(ld.displayName="PopupContent");var cd=e.forwardRef((function(t,n){var r=t.popup,o=t.className,i=t.prefixCls,a=t.style,l=t.target,c=t.onVisibleChanged,s=t.open,u=t.keepDom,d=t.fresh,f=t.onClick,p=t.mask,m=t.arrow,v=t.arrowPos,g=t.align,h=t.motion,b=t.maskMotion,y=t.forceRender,w=t.getPopupContainer,x=t.autoDestroy,E=t.portal,C=t.zIndex,S=t.onMouseEnter,$=t.onMouseLeave,k=t.onPointerEnter,O=t.ready,N=t.offsetX,P=t.offsetY,j=t.offsetR,R=t.offsetB,_=t.onAlign,A=t.onPrepare,T=t.stretch,F=t.targetWidth,B=t.targetHeight,z="function"==typeof r?r():r,D=s||u,L=(null==w?void 0:w.length)>0,H=rt(e.useState(!w||!L),2),V=H[0],W=H[1];if(Wt((function(){!V&&L&&l&&W(!0)}),[V,L,l]),!V)return null;var q="auto",X={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(O||!s){var G,K=g.points,U=g.dynamicInset||(null===(G=g._experimental)||void 0===G?void 0:G.dynamicInset),Q=U&&"r"===K[0][1],Z=U&&"b"===K[0][0];Q?(X.right=j,X.left=q):(X.left=N,X.right=q),Z?(X.bottom=R,X.top=q):(X.top=P,X.bottom=q)}var J={};return T&&(T.includes("height")&&B?J.height=B:T.includes("minHeight")&&B&&(J.minHeight=B),T.includes("width")&&F?J.width=F:T.includes("minWidth")&&F&&(J.minWidth=F)),s||(J.pointerEvents="none"),e.createElement(E,{open:y||D,getContainer:w&&function(){return w(l)},autoDestroy:x},e.createElement(ad,{prefixCls:i,open:s,zIndex:C,mask:p,motion:b}),e.createElement(Ve,{onResize:_,disabled:!s},(function(t){return e.createElement(Ma,M({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},h,{onAppearPrepare:A,onEnterPrepare:A,visible:s,onVisibleChanged:function(e){var t;null==h||null===(t=h.onVisibleChanged)||void 0===t||t.call(h,e),c(e)}}),(function(r,l){var c=r.className,u=r.style,p=I(i,c,o);return e.createElement("div",{ref:te(t,n,l),className:p,style:Y(Y(Y(Y({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},X),J),u),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:S,onMouseLeave:$,onPointerEnter:k,onClick:f},m&&e.createElement(id,{prefixCls:i,arrow:m,arrowPos:v,align:g}),e.createElement(ld,{cache:!s&&!d},z))}))})))}));"production"!==process.env.NODE_ENV&&(cd.displayName="Popup");var sd=e.forwardRef((function(t,n){var r=t.children,o=t.getTriggerDOMNode,i=re(r),a=e.useCallback((function(e){ee(n,o?o(e):e)}),[o]),l=ne(a,r.ref);return i?e.cloneElement(r,{ref:l}):r}));"production"!==process.env.NODE_ENV&&(sd.displayName="TriggerWrapper");var ud=e.createContext(null);function dd(e){return e?Array.isArray(e)?e:[e]:[]}function fd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function pd(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function md(e){return e.ownerDocument.defaultView}function vd(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=md(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function gd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function hd(e){return gd(parseFloat(e),0)}function bd(e,t){var n=Y({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=md(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=hd(i),v=hd(a),g=hd(l),h=hd(c),b=gd(Math.round(s.width/f*1e3)/1e3),y=gd(Math.round(s.height/u*1e3)/1e3),w=(f-p-g-h)*b,x=(u-d-m-v)*y,E=m*y,C=v*y,S=g*b,$=h*b,k=0,O=0;if("clip"===r){var N=hd(o);k=N*b,O=N*y}var P=s.x+S-k,I=s.y+E-O,M=P+s.width+2*k-S-$-w,j=I+s.height+2*O-E-C-x;n.left=Math.max(n.left,P),n.top=Math.max(n.top,I),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,j)}})),n}function yd(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function wd(e,t){var n=rt(t||[],2),r=n[0],o=n[1];return[yd(e.width,r),yd(e.height,o)]}function xd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Ed(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Cd(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var Sd=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var $d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ds,n=e.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,l=n.action,c=void 0===l?"hover":l,s=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,v=n.mouseEnterDelay,g=n.mouseLeaveDelay,h=void 0===g?.1:g,b=n.focusDelay,y=n.blurDelay,w=n.mask,x=n.maskClosable,E=void 0===x||x,C=n.getPopupContainer,S=n.forceRender,$=n.autoDestroy,k=n.destroyPopupOnHide,O=n.popup,N=n.popupClassName,P=n.popupStyle,M=n.popupPlacement,j=n.builtinPlacements,R=void 0===j?{}:j,_=n.popupAlign,A=n.zIndex,T=n.stretch,F=n.getPopupClassNameFromAlign,B=n.fresh,z=n.alignPoint,D=n.onPopupClick,H=n.onPopupAlign,V=n.arrow,W=n.popupMotion,q=n.maskMotion,X=n.popupTransitionName,G=n.popupAnimation,K=n.maskTransitionName,U=n.maskAnimation,Z=n.className,J=n.getTriggerDOMNode,ee=ht(n,Sd),te=$||k||!1,ne=rt(e.useState(!1),2),re=ne[0],oe=ne[1];Wt((function(){oe(Du())}),[]);var ie=e.useRef({}),ae=e.useContext(ud),le=e.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),ce=ms(),se=rt(e.useState(null),2),ue=se[0],de=se[1],fe=e.useRef(null),pe=di((function(e){fe.current=e,Q(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(ce,e)})),me=rt(e.useState(null),2),ve=me[0],ge=me[1],he=e.useRef(null),be=di((function(e){Q(e)&&ve!==e&&(ge(e),he.current=e)})),ye=e.Children.only(a),we=(null==ye?void 0:ye.props)||{},xe={},Ee=function(e,t){var n,r;return e===t||t.contains(e)||(null===(n=Qa(t))||void 0===n?void 0:n.host)===e||t.contains(null===(r=Qa(e))||void 0===r?void 0:r.host)},Ce=di((function(e){var t=ve,n=Ee.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=pd(i,W,G,X),$e=pd(i,q,U,K),ke=rt(e.useState(f||!1),2),Oe=ke[0],Ne=ke[1],Pe=null!=d?d:Oe,Ie=di((function(e){void 0===d&&Ne(e)}));Wt((function(){Ne(d||!1)}),[d]);var Me=e.useRef(Pe);Me.current=Pe;var je=e.useRef([]);je.current=[];var Re=di((function(e){var t;Ie(e),(null!==(t=je.current[je.current.length-1])&&void 0!==t?t:Pe)!==e&&(je.current.push(e),null==p||p(e))})),_e=e.useRef(),Ae=function(){clearTimeout(_e.current)},Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ae(),0===t?Re(e):_e.current=setTimeout((function(){Re(e)}),1e3*t)};e.useEffect((function(){return Ae}),[]);var Fe=rt(e.useState(!1),2),Be=Fe[0],ze=Fe[1];Wt((function(e){e&&!Pe||ze(!0)}),[Pe]);var De=rt(e.useState(null),2),Le=De[0],He=De[1],We=rt(e.useState(null),2),qe=We[0],Xe=We[1],Ge=function(e){Xe([e.clientX,e.clientY])},Ue=function(t,n,r,o,i,a,l){var c=rt(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=e.useRef(0),f=e.useMemo((function(){return n?vd(n):[]}),[n]),p=e.useRef({});t||(p.current={});var m=di((function(){if(n&&r&&t){var e,c,s,d,m,v=n,g=v.ownerDocument,h=md(v).getComputedStyle(v),b=h.width,y=h.height,w=h.position,x=v.style.left,E=v.style.top,C=v.style.right,S=v.style.bottom,$=v.style.overflow,k=Y(Y({},i[o]),a),O=g.createElement("div");if(null===(e=v.parentElement)||void 0===e||e.appendChild(O),O.style.left="".concat(v.offsetLeft,"px"),O.style.top="".concat(v.offsetTop,"px"),O.style.position=w,O.style.height="".concat(v.offsetHeight,"px"),O.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden",Array.isArray(r))m={x:r[0],y:r[1],width:0,height:0};else{var N,P,I=r.getBoundingClientRect();I.x=null!==(N=I.x)&&void 0!==N?N:I.left,I.y=null!==(P=I.y)&&void 0!==P?P:I.top,m={x:I.x,y:I.y,width:I.width,height:I.height}}var M=v.getBoundingClientRect();M.x=null!==(c=M.x)&&void 0!==c?c:M.left,M.y=null!==(s=M.y)&&void 0!==s?s:M.top;var j=g.documentElement,R=j.clientWidth,_=j.clientHeight,A=j.scrollWidth,T=j.scrollHeight,F=j.scrollTop,B=j.scrollLeft,z=M.height,D=M.width,L=m.height,H=m.width,V={left:0,top:0,right:R,bottom:_},W={left:-B,top:-F,right:A-B,bottom:T-F},q=k.htmlRegion,X="visible",G="visibleFirst";"scroll"!==q&&q!==G&&(q=X);var K=q===G,U=bd(W,f),Z=bd(V,f),J=q===X?Z:U,ee=K?Z:J;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var te=v.getBoundingClientRect();v.style.left=x,v.style.top=E,v.style.right=C,v.style.bottom=S,v.style.overflow=$,null===(d=v.parentElement)||void 0===d||d.removeChild(O);var ne=gd(Math.round(D/parseFloat(b)*1e3)/1e3),re=gd(Math.round(z/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||Q(r)&&!Ql(r))return;var oe=k.offset,ie=k.targetOffset,ae=rt(wd(M,oe),2),le=ae[0],ce=ae[1],se=rt(wd(m,ie),2),ue=se[0],de=se[1];m.x-=ue,m.y-=de;var fe=rt(k.points||[],2),pe=fe[0],me=xd(fe[1]),ve=xd(pe),ge=Ed(m,me),he=Ed(M,ve),be=Y({},k),ye=ge.x-he.x+le,we=ge.y-he.y+ce;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=M.x+e,o=M.y+t,i=r+D,a=o+z,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var xe,Ee,Ce,Se,$e=mt(ye,we),ke=mt(ye,we,Z),Oe=Ed(m,["t","l"]),Ne=Ed(M,["t","l"]),Pe=Ed(m,["b","r"]),Ie=Ed(M,["b","r"]),Me=k.overflow||{},je=Me.adjustX,Re=Me.adjustY,_e=Me.shiftX,Ae=Me.shiftY,Te=function(e){return"boolean"==typeof e?e:e>=0};function vt(){xe=M.y+we,Ee=xe+z,Ce=M.x+ye,Se=Ce+D}vt();var Fe=Te(Re),Be=ve[0]===me[0];if(Fe&&"t"===ve[0]&&(Ee>ee.bottom||p.current.bt)){var ze=we;Be?ze-=z-L:ze=Oe.y-Ie.y-ce;var De=mt(ye,ze),Le=mt(ye,ze,Z);De>$e||De===$e&&(!K||Le>=ke)?(p.current.bt=!0,we=ze,ce=-ce,be.points=[Cd(ve,0),Cd(me,0)]):p.current.bt=!1}if(Fe&&"b"===ve[0]&&(xe<ee.top||p.current.tb)){var He=we;Be?He+=z-L:He=Pe.y-Ne.y-ce;var Ve=mt(ye,He),We=mt(ye,He,Z);Ve>$e||Ve===$e&&(!K||We>=ke)?(p.current.tb=!0,we=He,ce=-ce,be.points=[Cd(ve,0),Cd(me,0)]):p.current.tb=!1}var qe=Te(je),Xe=ve[1]===me[1];if(qe&&"l"===ve[1]&&(Se>ee.right||p.current.rl)){var Ge=ye;Xe?Ge-=D-H:Ge=Oe.x-Ie.x-le;var Ke=mt(Ge,we),Ue=mt(Ge,we,Z);Ke>$e||Ke===$e&&(!K||Ue>=ke)?(p.current.rl=!0,ye=Ge,le=-le,be.points=[Cd(ve,1),Cd(me,1)]):p.current.rl=!1}if(qe&&"r"===ve[1]&&(Ce<ee.left||p.current.lr)){var Ye=ye;Xe?Ye+=D-H:Ye=Pe.x-Ne.x-le;var Qe=mt(Ye,we),Ze=mt(Ye,we,Z);Qe>$e||Qe===$e&&(!K||Ze>=ke)?(p.current.lr=!0,ye=Ye,le=-le,be.points=[Cd(ve,1),Cd(me,1)]):p.current.lr=!1}vt();var Je=!0===_e?0:_e;"number"==typeof Je&&(Ce<Z.left&&(ye-=Ce-Z.left-le,m.x+H<Z.left+Je&&(ye+=m.x-Z.left+H-Je)),Se>Z.right&&(ye-=Se-Z.right-le,m.x>Z.right-Je&&(ye+=m.x-Z.right+Je)));var et=!0===Ae?0:Ae;"number"==typeof et&&(xe<Z.top&&(we-=xe-Z.top-ce,m.y+L<Z.top+et&&(we+=m.y-Z.top+L-et)),Ee>Z.bottom&&(we-=Ee-Z.bottom-ce,m.y>Z.bottom-et&&(we+=m.y-Z.bottom+et)));var tt=M.x+ye,nt=tt+D,ot=M.y+we,it=ot+z,at=m.x,lt=at+H,ct=m.y,st=ct+L,ut=(Math.max(tt,at)+Math.min(nt,lt))/2-tt,dt=(Math.max(ot,ct)+Math.min(it,st))/2-ot;null==l||l(n,be);var ft=te.right-M.x-(ye+M.width),pt=te.bottom-M.y-(we+M.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===re&&(we=Math.round(we),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:we/re,offsetR:ft/ne,offsetB:pt/re,arrowX:ut/ne,arrowY:dt/re,scaleX:ne,scaleY:re,align:be})}})),v=function(){u((function(e){return Y(Y({},e),{},{ready:!1})}))};return Wt(v,[o]),Wt((function(){t||v()}),[t]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Pe,ue,z&&null!==qe?qe:ve,M,R,_,H),Ye=rt(Ue,11),Qe=Ye[0],Ze=Ye[1],Je=Ye[2],et=Ye[3],tt=Ye[4],nt=Ye[5],ot=Ye[6],it=Ye[7],at=Ye[8],lt=Ye[9],ct=Ye[10],st=function(t,n,r,o){return e.useMemo((function(){var e=dd(null!=r?r:n),i=dd(null!=o?o:n),a=new Set(e),l=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[t,n,r,o])}(re,c,s,u),ut=rt(st,2),dt=ut[0],ft=ut[1],pt=dt.has("click"),mt=ft.has("click")||ft.has("contextMenu"),vt=di((function(){Be||ct()}));!function(e,t,n,r,o){Wt((function(){if(e&&t&&n){var i=n,a=vd(t),l=vd(i),c=md(i),s=new Set([c].concat(Ke(a),Ke(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Pe,ve,ue,vt,(function(){Me.current&&z&&mt&&Te(!1)})),Wt((function(){vt()}),[qe,M]),Wt((function(){!Pe||null!=R&&R[M]||vt()}),[JSON.stringify(_)]);var gt=e.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(fd(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(R,i,lt,z);return I(e,null==F?void 0:F(lt))}),[lt,F,R,i,z]);e.useImperativeHandle(r,(function(){return{nativeElement:he.current,popupElement:fe.current,forceAlign:vt}}));var bt=rt(e.useState(0),2),yt=bt[0],wt=bt[1],xt=rt(e.useState(0),2),Et=xt[0],Ct=xt[1],St=function(){if(T&&ve){var e=ve.getBoundingClientRect();wt(e.width),Ct(e.height)}};function $t(e,t,n,r){xe[e]=function(o){var i;null==r||r(o),Te(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=we[e])||void 0===i||i.call.apply(i,[we,o].concat(l))}}Wt((function(){Le&&(ct(),Le(),He(null))}),[Le]),(pt||mt)&&(xe.onClick=function(e){var t;Me.current&&mt?Te(!1):!Me.current&&pt&&(Ge(e),Te(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=we.onClick)||void 0===t||t.call.apply(t,[we,e].concat(r))}),function(t,n,r,o,i,a,l,c){var s=e.useRef(t);s.current=t,e.useEffect((function(){if(n&&o&&(!i||a)){var e=function(e){var t;s.current&&!l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},t=md(o);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var u,d,f=Qa(r);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&L((null==r||null===(u=r.getRootNode)||void 0===u?void 0:u.call(r))===(null===(d=o.getRootNode)||void 0===d?void 0:d.call(o)),"trigger element and popup element should in same shadow root."),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[n,r,o,i,a])}(Pe,mt,ve,ue,w,E,Ce,Te);var kt,Ot,Nt=dt.has("hover"),Pt=ft.has("hover");Nt&&($t("onMouseEnter",!0,v,(function(e){Ge(e)})),$t("onPointerEnter",!0,v,(function(e){Ge(e)})),kt=function(e){(Pe||Be)&&null!=ue&&ue.contains(e.target)&&Te(!0,v)},z&&(xe.onMouseMove=function(e){var t;null===(t=we.onMouseMove)||void 0===t||t.call(we,e)})),Pt&&($t("onMouseLeave",!1,h),$t("onPointerLeave",!1,h),Ot=function(){Te(!1,h)}),dt.has("focus")&&$t("onFocus",!0,b),ft.has("focus")&&$t("onBlur",!1,y),dt.has("contextMenu")&&(xe.onContextMenu=function(e){var t;Me.current&&ft.has("contextMenu")?Te(!1):(Ge(e),Te(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=we.onContextMenu)||void 0===t||t.call.apply(t,[we,e].concat(r))}),Z&&(xe.className=I(we.className,Z));var It=Y(Y({},we),xe),Mt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(Mt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=It[e])||void 0===t||t.call.apply(t,[It].concat(r)),ee[e].apply(ee,r)})}));var jt=e.cloneElement(ye,Y(Y({},It),Mt)),Rt={x:nt,y:ot},_t=V?Y({},!0!==V?V:{}):null;return e.createElement(e.Fragment,null,e.createElement(Ve,{disabled:!Pe,ref:be,onResize:function(){St(),vt()}},e.createElement(sd,{getTriggerDOMNode:J},jt)),e.createElement(ud.Provider,{value:le},e.createElement(cd,{portal:t,ref:pe,prefixCls:i,popup:O,className:I(N,gt),style:P,target:ve,onMouseEnter:kt,onMouseLeave:Ot,onPointerEnter:kt,zIndex:A,open:Pe,keepDom:Be,fresh:B,onClick:D,mask:w,motion:Se,maskMotion:$e,onVisibleChanged:function(e){ze(!1),ct(),null==m||m(e)},onPrepare:function(){return new Promise((function(e){St(),He((function(){return e}))}))},forceRender:S,autoDestroy:te,getPopupContainer:C,align:lt,arrow:_t,arrowPos:Rt,ready:Qe,offsetX:Ze,offsetY:Je,offsetR:et,offsetB:tt,onAlign:vt,stretch:T,targetWidth:yt/it,targetHeight:Et/at})))}));return"production"!==process.env.NODE_ENV&&(n.displayName="Trigger"),n}(ds);function kd(e,t,n){return I({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Od=(e,t)=>t||e,Nd=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,i;const{variant:a,[e]:l}=o(Qo),c=o(Su),s=null==l?void 0:l.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(r=null!=c?c:s)&&void 0!==r?r:a)&&void 0!==i?i:"outlined";return[u,Yo.includes(u)]};var Pd={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"},Id=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:Pd}))},Md=e.forwardRef(Id);function jd(t){var n=t.children,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.className,l=t.style;return e.createElement("div",{className:I("".concat(r,"-content"),a),style:l},e.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}"production"!==process.env.NODE_ENV&&(Md.displayName="SearchOutlined");var Rd={shiftX:64,adjustY:1},_d={adjustX:1,shiftY:!0},Ad=[0,0],Td={left:{points:["cr","cl"],overflow:_d,offset:[-4,0],targetOffset:Ad},right:{points:["cl","cr"],overflow:_d,offset:[4,0],targetOffset:Ad},top:{points:["bc","tc"],overflow:Rd,offset:[0,-4],targetOffset:Ad},bottom:{points:["tc","bc"],overflow:Rd,offset:[0,4],targetOffset:Ad},topLeft:{points:["bl","tl"],overflow:Rd,offset:[0,-4],targetOffset:Ad},leftTop:{points:["tr","tl"],overflow:_d,offset:[-4,0],targetOffset:Ad},topRight:{points:["br","tr"],overflow:Rd,offset:[0,-4],targetOffset:Ad},rightTop:{points:["tl","tr"],overflow:_d,offset:[4,0],targetOffset:Ad},bottomRight:{points:["tr","br"],overflow:Rd,offset:[0,4],targetOffset:Ad},rightBottom:{points:["bl","br"],overflow:_d,offset:[4,0],targetOffset:Ad},bottomLeft:{points:["tl","bl"],overflow:Rd,offset:[0,4],targetOffset:Ad},leftBottom:{points:["br","bl"],overflow:_d,offset:[-4,0],targetOffset:Ad}},Fd=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Bd=function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,l=t.mouseEnterDelay,c=void 0===l?0:l,s=t.mouseLeaveDelay,u=void 0===s?.1:s,d=t.overlayStyle,f=t.prefixCls,p=void 0===f?"rc-tooltip":f,m=t.children,g=t.onVisibleChange,h=t.afterVisibleChange,b=t.transitionName,y=t.animation,w=t.motion,x=t.placement,E=void 0===x?"right":x,C=t.align,S=void 0===C?{}:C,$=t.destroyTooltipOnHide,k=void 0!==$&&$,O=t.defaultVisible,N=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,j=t.id,R=t.showArrow,_=void 0===R||R,A=ht(t,Fd),T=a(null);v(n,(function(){return T.current}));var F=Y({},A);"visible"in t&&(F.popupVisible=t.visible);return e.createElement($d,M({popupClassName:r,prefixCls:p,popup:function(){return e.createElement(jd,{key:"content",prefixCls:p,id:j,overlayInnerStyle:P},I)},action:i,builtinPlacements:Td,popupPlacement:E,ref:T,popupAlign:S,getPopupContainer:N,onPopupVisibleChange:g,afterPopupVisibleChange:h,popupTransitionName:b,popupAnimation:y,popupMotion:w,defaultPopupVisible:O,autoDestroy:k,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c,arrow:_},F),m)},zd=s(Bd);const Dd=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Bt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Ld=8;function Hd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Ld:r}}function Vd(e,t){return e?t:{}}function Wd(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Dd(e,t,o)),{"&:before":{background:t}})]},Vd(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Bt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vd(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Bt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vd(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Vd(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const qd={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"]}},Xd={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"]}},Gd=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Kd(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(qd).forEach((e=>{const s=r&&Xd[e]||qd[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Gd.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=Hd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const Ud=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Bi(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${Bt(e.calc(s).div(2).equal())} ${Bt(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Ld)}},[`${t}-content`]:{position:"relative"}}),Xi(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Wd(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Yd=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Hd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,m=2*o-0,v=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${v} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*o-h}px 100%, ${h}px 100%)`}}(bi(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var Qd=function(e){const t=Vi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=bi(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Ud(o),zu(e,"zoom-big-fast")]}),Yd,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Zd=$i.map((e=>`${e}-inverse`));function Jd(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?$i.includes(e):[].concat(Ke(Zd),Ke($i)).includes(e)}(t),r=I({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var ef=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tf=e.forwardRef(((t,n)=>{var r,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:v=!0,title:g,overlay:h,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=t,x=!!v,[,E]=Ti(),{getPopupContainer:C,getPrefixCls:S,direction:$}=e.useContext(Qo),k=Nr("Tooltip"),O=e.useRef(null),N=()=>{var e;null===(e=O.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,(()=>{var e;return{forceAlign:N,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:null===(e=O.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((e=>{let[n,r]=e;k.deprecated(!(n in t),n,r)})),"production"!==process.env.NODE_ENV&&k(!m||"boolean"==typeof m,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&k(!v||"boolean"==typeof v||!("arrowPointAtCenter"in v),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[P,M]=mi(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),j=!g&&!h&&0!==g,R=e.useMemo((()=>{var e,t;let n=y;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:y),b||Kd({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:x?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})}),[y,v,b,E]),_=e.useMemo((()=>0===g?g:h||g||""),[h,g]),A=e.createElement($u,{space:!0},"function"==typeof _?_():_),{getPopupContainer:T,placement:F="top",mouseEnterDelay:B=.1,mouseLeaveDelay:z=.1,overlayStyle:D,rootClassName:L}=t,H=ef(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=S("tooltip",i),W=S(),q=t["data-popover-inject"];let X=P;"open"in t||"visible"in t||!j||(X=!1);const G=e.isValidElement(d)&&!hl(d)?d:e.createElement("span",null,d),K=G.props,U=K.className&&"string"!=typeof K.className?K.className:I(K.className,a||`${V}-open`),[Y,Q,Z]=Qd(V,!q),J=Jd(V,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=I(c,{[`${V}-rtl`]:"rtl"===$},J.className,L,Q,Z),[re,oe]=Pl("Tooltip",H.zIndex),ie=e.createElement(zd,Object.assign({},H,{zIndex:re,showArrow:x,placement:F,mouseEnterDelay:B,mouseLeaveDelay:z,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),D),getTooltipContainer:T||l||C,ref:O,builtinPlacements:R,overlay:A,visible:X,onVisibleChange:e=>{var n,r;M(!j&&e),j||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(r=t.onVisibleChange)||void 0===r||r.call(t,e))},afterVisibleChange:null!=f?f:p,overlayInnerStyle:te,arrowContent:e.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:Yl(W,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),X?yl(G,{className:U}):G);return Y(e.createElement($l.Provider,{value:oe},ie))})),nf=tf;"production"!==process.env.NODE_ENV&&(nf.displayName="Tooltip"),nf._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:c}=e.useContext(Qo),s=c("tooltip",n),[u,d,f]=Qd(s),p=Jd(s,a),m=p.arrowStyle,v=Object.assign(Object.assign({},l),p.overlayStyle),g=I(d,f,s,`${s}-pure`,`${s}-placement-${o}`,r,p.className);return u(e.createElement("div",{className:g,style:m},e.createElement("div",{className:`${s}-arrow`}),e.createElement(jd,Object.assign({},t,{className:d,prefixCls:s,overlayInnerStyle:v}),i)))};var rf={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"},of=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:rf}))},af=e.forwardRef(of);"production"!==process.env.NODE_ENV&&(af.displayName="RightOutlined");var lf=xl.ESC,cf=xl.TAB;var sf=s((function(e,n){var r=e.overlay,o=e.arrow,i=e.prefixCls,a=u((function(){return"function"==typeof r?r():r}),[r]),l=te(n,null==a?void 0:a.ref);return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:re(a)?l:void 0}))})),uf={adjustX:1,adjustY:1},df=[0,0],ff={topLeft:{points:["bl","tl"],overflow:uf,offset:[0,-4],targetOffset:df},top:{points:["bc","tc"],overflow:uf,offset:[0,-4],targetOffset:df},topRight:{points:["br","tr"],overflow:uf,offset:[0,-4],targetOffset:df},bottomLeft:{points:["tl","bl"],overflow:uf,offset:[0,4],targetOffset:df},bottom:{points:["tc","bc"],overflow:uf,offset:[0,4],targetOffset:df},bottomRight:{points:["tr","br"],overflow:uf,offset:[0,4],targetOffset:df}},pf=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function mf(n,r){var o,i=n.arrow,a=void 0!==i&&i,l=n.prefixCls,c=void 0===l?"rc-dropdown":l,s=n.transitionName,u=n.animation,d=n.align,f=n.placement,p=void 0===f?"bottomLeft":f,m=n.placements,v=void 0===m?ff:m,g=n.getPopupContainer,h=n.showAction,b=n.hideAction,y=n.overlayClassName,w=n.overlayStyle,x=n.visible,E=n.trigger,C=void 0===E?["hover"]:E,S=n.autoFocus,$=n.overlay,k=n.children,O=n.onVisibleChange,N=ht(n,pf),P=rt(t.useState(),2),j=P[0],R=P[1],_="visible"in n?x:j,A=t.useRef(null),T=t.useRef(null),F=t.useRef(null);t.useImperativeHandle(r,(function(){return A.current}));var B=function(e){R(e),null==O||O(e)};!function(t){var n=t.visible,r=t.triggerRef,o=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,l=e.useRef(!1),c=function(){var e,t;n&&(null===(e=r.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case lf:c();break;case cf:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};e.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&et(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[n])}({visible:_,triggerRef:F,onVisibleChange:B,autoFocus:S,overlayRef:T});var z,D,L,H=function(){return t.createElement(sf,{ref:T,overlay:$,prefixCls:c,arrow:a})},V=t.cloneElement(k,{className:I(null===(o=k.props)||void 0===o?void 0:o.className,_&&(z=n.openClassName,void 0!==z?z:"".concat(c,"-open"))),ref:re(k)?te(F,k.ref):void 0}),W=b;return W||-1===C.indexOf("contextMenu")||(W=["click"]),t.createElement($d,M({builtinPlacements:v},N,{prefixCls:c,ref:A,popupClassName:I(y,K({},"".concat(c,"-show-arrow"),a)),popupStyle:w,action:C,showAction:h,hideAction:W,popupPlacement:p,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:_,stretch:(D=n.minOverlayWidthMatchTrigger,L=n.alignPoint,("minOverlayWidthMatchTrigger"in n?D:!L)?"minWidth":""),popup:"function"==typeof $?H:H(),onPopupVisibleChange:B,onPopupClick:function(e){var t=n.onOverlayClick;R(!1),t&&t(e)},getPopupContainer:g}),V)}var vf=t.forwardRef(mf),gf=e.createContext(null);function hf(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function bf(t){return hf(e.useContext(gf),t)}var yf=["children","locked"],wf=e.createContext(null);function xf(t){var n=t.children,r=t.locked,o=ht(t,yf),i=e.useContext(wf),a=J((function(){return e=o,t=Y({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(r||e[0]===t[0]&&bt(e[1],t[1],!0))}));return e.createElement(wf.Provider,{value:a},n)}var Ef=[],Cf=e.createContext(null);function Sf(){return e.useContext(Cf)}var $f=e.createContext(Ef);function kf(t){var n=e.useContext($f);return e.useMemo((function(){return void 0!==t?[].concat(Ke(n),[t]):n}),[n,t])}var Of=e.createContext(null),Nf=e.createContext({});function Pf(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ql(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var If=xl.LEFT,Mf=xl.RIGHT,jf=xl.UP,Rf=xl.DOWN,_f=xl.ENTER,Af=xl.ESC,Tf=xl.HOME,Ff=xl.END,Bf=[jf,Rf,If,Mf];function zf(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ke(e.querySelectorAll("*")).filter((function(e){return Pf(e,t)}));return Pf(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function Df(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=zf(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var Lf=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(hf(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function Hf(t,n,r,o,i,a,l,c,s,u){var d=e.useRef(),f=e.useRef();f.current=n;var p=function(){et.cancel(d.current)};return e.useEffect((function(){return function(){p()}}),[]),function(e){var m=e.which;if([].concat(Bf,[_f,Af,Tf,Ff]).includes(m)){var v=a(),g=Lf(v,o),h=g,b=h.elements,y=h.key2element,w=h.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),E=w.get(x),C=function(e,t,n,r){var o,i,a,l,c="prev",s="next",u="children",d="parent";if("inline"===e&&r===_f)return{inlineTrigger:!0};var f=(K(o={},jf,c),K(o,Rf,s),o),p=(K(i={},If,n?s:c),K(i,Mf,n?c:s),K(i,Rf,u),K(i,_f,u),i),m=(K(a={},jf,c),K(a,Rf,s),K(a,_f,u),K(a,Af,d),K(a,If,n?u:d),K(a,Mf,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(t,1===l(E,!0).length,r,m);if(!C&&m!==Tf&&m!==Ff)return;(Bf.includes(m)||[Tf,Ff].includes(m))&&e.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);c(r),p(),d.current=et((function(){f.current===r&&t.focus()}))}};if([Tf,Ff].includes(m)||C.sibling||!x){var $,k,O=zf($=x&&"inline"!==t?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):i.current,b);k=m===Tf?O[0]:m===Ff?O[O.length-1]:Df($,b,x,C.offset),S(k)}else if(C.inlineTrigger)s(E);else if(C.offset>0)s(E,!0),p(),d.current=et((function(){g=Lf(v,o);var e=x.getAttribute("aria-controls"),t=Df(document.getElementById(e),g.elements);S(t)}),5);else if(C.offset<0){var N=l(E,!0),P=N[N.length-2],I=y.get(P);s(P,!1),S(I)}}null==u||u(e)}}var Vf="__RC_UTIL_PATH_SPLIT__",Wf=function(e){return e.join(Vf)},qf="rc-menu-more";function Xf(){var t=rt(e.useState({}),2)[1],n=a(new Map),r=a(new Map),o=rt(e.useState([]),2),i=o[0],l=o[1],c=a(0),s=a(!1),u=m((function(e,o){"production"!==process.env.NODE_ENV&&q(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(o.join(" > "),"]"));var i=Wf(o);r.current.set(i,e),n.current.set(e,i),c.current+=1;var a,l=c.current;a=function(){l===c.current&&(s.current||t({}))},Promise.resolve().then(a)}),[]),d=m((function(e,t){var o=Wf(t);r.current.delete(o),n.current.delete(e)}),[]),f=m((function(e){l(e)}),[]),p=m((function(e,t){var r=n.current.get(e)||"",o=r.split(Vf);return t&&i.includes(o[0])&&o.unshift(qf),o}),[i]),v=m((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return p(e,!0).includes(t)}))}),[p]),g=m((function(e){var t="".concat(n.current.get(e)).concat(Vf),o=new Set;return Ke(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return e.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:v,getKeyPath:p,getKeys:function(){var e=Ke(n.current.keys());return i.length&&e.push(qf),e},getSubPathKeys:g}}function Gf(t){var n=e.useRef(t);n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return t?r:void 0}var Kf=Math.random().toFixed(5).toString().slice(2),Uf=0;function Yf(t,n,r,o){var i=e.useContext(wf),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===t};return n||(s.onMouseEnter=function(e){null==r||r({key:t,domEvent:e}),l(t)},s.onMouseLeave=function(e){null==o||o({key:t,domEvent:e}),c(t)}),s}function Qf(t){var n=e.useContext(wf),r=n.mode,o=n.rtl,i=n.inlineIndent;if("inline"!==r)return null;return o?{paddingRight:t*i}:{paddingLeft:t*i}}function Zf(t){var n,r=t.icon,o=t.props,i=t.children;return null===r||!1===r?null:("function"==typeof r?n=e.createElement(r,Y({},o)):"boolean"!=typeof r&&(n=r),n||i||null)}var Jf=["item"];function ep(e){var t=e.item,n=ht(e,Jf);return Object.defineProperty(n,"item",{get:function(){return q(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var tp=["title","attribute","elementRef"],np=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],rp=["active"],op=function(){_e(n,e.Component);var t=Be(n);function n(){return Ie(this,n),t.apply(this,arguments)}return je(n,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.attribute,o=t.elementRef,i=We(ht(t,tp),["eventKey","popupClassName","popupOffset","onTitleClick"]);return q(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(od.Item,M({},r,{title:"string"==typeof n?n:void 0},i,{ref:o}))}}]),n}(),ip=e.forwardRef((function(t,n){var r,o=t.style,i=t.className,a=t.eventKey,l=t.warnKey,c=t.disabled,s=t.itemIcon,u=t.children,d=t.role,f=t.onMouseEnter,p=t.onMouseLeave,m=t.onClick,v=t.onKeyDown,g=t.onFocus,h=ht(t,np),b=bf(a),y=e.useContext(wf),w=y.prefixCls,x=y.onItemClick,E=y.disabled,C=y.overflowDisabled,S=y.itemIcon,$=y.selectedKeys,k=y.onActive,O=e.useContext(Nf)._internalRenderMenuItem,N="".concat(w,"-item"),P=e.useRef(),j=e.useRef(),R=E||c,_=ne(n,j),A=kf(a);"production"!==process.env.NODE_ENV&&l&&q(!1,"MenuItem should not leave undefined `key`.");var T=function(e){return{key:a,keyPath:Ke(A).reverse(),item:P.current,domEvent:e}},F=s||S,B=Yf(a,R,f,p),z=B.active,D=ht(B,rp),L=$.includes(a),H=Qf(A.length),V={};"option"===t.role&&(V["aria-selected"]=L);var W=e.createElement(op,M({ref:P,elementRef:_,role:null===d?"none":d||"menuitem",tabIndex:c?null:-1,"data-menu-id":C&&b?null:b},h,D,V,{component:"li","aria-disabled":c,style:Y(Y({},H),o),className:I(N,(r={},K(r,"".concat(N,"-active"),z),K(r,"".concat(N,"-selected"),L),K(r,"".concat(N,"-disabled"),R),r),i),onClick:function(e){if(!R){var t=T(e);null==m||m(ep(t)),x(t)}},onKeyDown:function(e){if(null==v||v(e),e.which===xl.ENTER){var t=T(e);null==m||m(ep(t)),x(t)}},onFocus:function(e){k(a),null==g||g(e)}}),u,e.createElement(Zf,{props:Y(Y({},t),{},{isSelected:L}),icon:F}));return O&&(W=O(W,t,{selected:L})),W}));function ap(t,n){var r=t.eventKey,o=Sf(),i=kf(r);return e.useEffect((function(){if(o)return o.registerPath(r,i),function(){o.unregisterPath(r,i)}}),[i]),o?null:e.createElement(ip,M({},t,{ref:n}))}var lp=e.forwardRef(ap),cp=["className","children"],sp=function(t,n){var r=t.className,o=t.children,i=ht(t,cp),a=e.useContext(wf),l=a.prefixCls,c=a.mode,s=a.rtl;return e.createElement("ul",M({className:I(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},up=e.forwardRef(sp);function dp(t,n){return B(t).map((function(t,r){if(e.isValidElement(t)){var o,i,a=t.key,l=null!==(o=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a,c=null==l;c&&(l="tmp_key-".concat([].concat(Ke(n),[r]).join("-")));var s={key:l,eventKey:l};return"production"!==process.env.NODE_ENV&&c&&(s.warnKey=!0),e.cloneElement(t,s)}return t}))}up.displayName="SubMenuList";var fp={adjustX:1,adjustY:1},pp={topLeft:{points:["bl","tl"],overflow:fp},topRight:{points:["br","tr"],overflow:fp},bottomLeft:{points:["tl","bl"],overflow:fp},bottomRight:{points:["tr","br"],overflow:fp},leftTop:{points:["tr","tl"],overflow:fp},leftBottom:{points:["br","bl"],overflow:fp},rightTop:{points:["tl","tr"],overflow:fp},rightBottom:{points:["bl","br"],overflow:fp}},mp={topLeft:{points:["bl","tl"],overflow:fp},topRight:{points:["br","tr"],overflow:fp},bottomLeft:{points:["tl","bl"],overflow:fp},bottomRight:{points:["tr","br"],overflow:fp},rightTop:{points:["tr","tl"],overflow:fp},rightBottom:{points:["br","bl"],overflow:fp},leftTop:{points:["tl","tr"],overflow:fp},leftBottom:{points:["bl","br"],overflow:fp}};function vp(e,t,n){return t||(n?n[e]||n.other:void 0)}var gp={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function hp(t){var n=t.prefixCls,r=t.visible,o=t.children,i=t.popup,a=t.popupStyle,l=t.popupClassName,c=t.popupOffset,s=t.disabled,u=t.mode,d=t.onVisibleChange,f=e.useContext(wf),p=f.getPopupContainer,m=f.rtl,v=f.subMenuOpenDelay,g=f.subMenuCloseDelay,h=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,w=f.rootClassName,x=f.motion,E=f.defaultMotions,C=rt(e.useState(!1),2),S=C[0],$=C[1],k=Y(Y({},m?mp:pp),h),O=gp[u],N=vp(u,x,E),P=e.useRef(N);"inline"!==u&&(P.current=N);var M=Y(Y({},P.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),j=e.useRef();return e.useEffect((function(){return j.current=et((function(){$(r)})),function(){et.cancel(j.current)}}),[r]),e.createElement($d,{prefixCls:n,popupClassName:I("".concat(n,"-popup"),K({},"".concat(n,"-rtl"),m),l,w),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:k,popupPlacement:O,popupVisible:S,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[b],mouseEnterDelay:v,mouseLeaveDelay:g,onPopupVisibleChange:d,forceRender:y,popupMotion:M,fresh:!0},o)}function bp(t){var n=t.id,r=t.open,o=t.keyPath,i=t.children,a="inline",l=e.useContext(wf),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=e.useRef(!1);p.current=f===a;var m=rt(e.useState(!p.current),2),v=m[0],g=m[1],h=!!p.current&&r;e.useEffect((function(){p.current&&g(!1)}),[f]);var b=Y({},vp(a,u,d));o.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||g(!0),null==y?void 0:y(e)},v?null:e.createElement(xf,{mode:a,locked:!p.current},e.createElement(Ma,M({visible:h},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(t){var r=t.className,o=t.style;return e.createElement(up,{id:n,className:r,style:o},i)})))}var yp=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],wp=["active"],xp=e.forwardRef((function(t,n){var r,o=t.style,i=t.className,a=t.title,l=t.eventKey,c=t.warnKey,s=t.disabled,u=t.internalPopupClose,d=t.children,f=t.itemIcon,p=t.expandIcon,m=t.popupClassName,v=t.popupOffset,g=t.popupStyle,h=t.onClick,b=t.onMouseEnter,y=t.onMouseLeave,w=t.onTitleClick,x=t.onTitleMouseEnter,E=t.onTitleMouseLeave,C=ht(t,yp),S=bf(l),$=e.useContext(wf),k=$.prefixCls,O=$.mode,N=$.openKeys,P=$.disabled,j=$.overflowDisabled,R=$.activeKey,_=$.selectedKeys,A=$.itemIcon,T=$.expandIcon,F=$.onItemClick,B=$.onOpenChange,z=$.onActive,D=e.useContext(Nf)._internalRenderSubMenuItem,L=e.useContext(Of).isSubPathKey,H=kf(),V="".concat(k,"-submenu"),W=P||s,X=e.useRef(),G=e.useRef();"production"!==process.env.NODE_ENV&&c&&q(!1,"SubMenu should not leave undefined `key`.");var U=null!=f?f:A,Q=null!=p?p:T,Z=N.includes(l),J=!j&&Z,ee=L(_,l),te=Yf(l,W,x,E),ne=te.active,re=ht(te,wp),oe=rt(e.useState(!1),2),ie=oe[0],ae=oe[1],le=function(e){W||ae(e)},ce=e.useMemo((function(){return ne||"inline"!==O&&(ie||L([R],l))}),[O,ne,R,ie,l,L]),se=Qf(H.length),ue=Gf((function(e){null==h||h(ep(e)),F(e)})),de=S&&"".concat(S,"-popup"),fe=e.createElement("div",M({role:"menuitem",style:se,className:"".concat(V,"-title"),tabIndex:W?null:-1,ref:X,title:"string"==typeof a?a:null,"data-menu-id":j&&S?null:S,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":W,onClick:function(e){W||(null==w||w({key:l,domEvent:e}),"inline"===O&&B(l,!Z))},onFocus:function(){z(l)}},re),a,e.createElement(Zf,{icon:"horizontal"!==O?Q:void 0,props:Y(Y({},t),{},{isOpen:J,isSubMenu:!0})},e.createElement("i",{className:"".concat(V,"-arrow")}))),pe=e.useRef(O);if("inline"!==O&&H.length>1?pe.current="vertical":pe.current=O,!j){var me=pe.current;fe=e.createElement(hp,{mode:me,prefixCls:V,visible:!u&&J&&"inline"!==O,popupClassName:m,popupOffset:v,popupStyle:g,popup:e.createElement(xf,{mode:"horizontal"===me?"vertical":me},e.createElement(up,{id:de,ref:G},d)),disabled:W,onVisibleChange:function(e){"inline"!==O&&B(l,e)}},fe)}var ve=e.createElement(od.Item,M({ref:n,role:"none"},C,{component:"li",style:o,className:I(V,"".concat(V,"-").concat(O),i,(r={},K(r,"".concat(V,"-open"),J),K(r,"".concat(V,"-active"),ce),K(r,"".concat(V,"-selected"),ee),K(r,"".concat(V,"-disabled"),W),r)),onMouseEnter:function(e){le(!0),null==b||b({key:l,domEvent:e})},onMouseLeave:function(e){le(!1),null==y||y({key:l,domEvent:e})}}),fe,!j&&e.createElement(bp,{id:de,open:J,keyPath:H},d));return D&&(ve=D(ve,t,{selected:ee,active:ce,open:J,disabled:W})),e.createElement(xf,{onItemClick:ue,mode:"horizontal"===O?"vertical":O,itemIcon:U,expandIcon:Q},ve)})),Ep=e.forwardRef((function(t,n){var r,o=t.eventKey,i=t.children,a=kf(o),l=dp(i,a),c=Sf();return e.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),r=c?l:e.createElement(xp,M({ref:n},t),l),e.createElement($f.Provider,{value:a},r)}));function Cp(t){var n=t.className,r=t.style,o=e.useContext(wf).prefixCls;return Sf()?null:e.createElement("li",{role:"separator",className:I("".concat(o,"-item-divider"),n),style:r})}"production"!==process.env.NODE_ENV&&(Ep.displayName="SubMenu");var Sp=["className","title","eventKey","children"],$p=e.forwardRef((function(t,n){var r=t.className,o=t.title;t.eventKey;var i=t.children,a=ht(t,Sp),l=e.useContext(wf).prefixCls,c="".concat(l,"-item-group");return e.createElement("li",M({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:I(c,r)}),e.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),e.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))})),kp=e.forwardRef((function(t,n){var r=t.eventKey,o=dp(t.children,kf(r));return Sf()?o:e.createElement($p,M({ref:n},We(t,["warnKey"])),o)}));"production"!==process.env.NODE_ENV&&(kp.displayName="MenuItemGroup");var Op=["label","children","key","type"];function Np(t,n){var r=n.item,o=n.group,i=n.submenu,a=n.divider;return(t||[]).map((function(t,l){if(t&&"object"===X(t)){var c=t,s=c.label,u=c.children,d=c.key,f=c.type,p=ht(c,Op),m=null!=d?d:"tmp-".concat(l);return u||"group"===f?"group"===f?e.createElement(o,M({key:m},p,{title:s}),Np(u,n)):e.createElement(i,M({key:m},p,{title:s}),Np(u,n)):"divider"===f?e.createElement(a,M({key:m},p)):e.createElement(r,M({key:m},p),s)}return null})).filter((function(e){return e}))}function Pp(e,t,n,r){var o=e,i=Y({divider:Cp,item:lp,group:kp,submenu:Ep},r);return t&&(o=Np(t,i)),dp(o,n)}var Ip=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Mp=[],jp=e.forwardRef((function(t,n){var r,o,i=t,a=i.prefixCls,l=void 0===a?"rc-menu":a,c=i.rootClassName,s=i.style,u=i.className,d=i.tabIndex,f=void 0===d?0:d,p=i.items,m=i.children,g=i.direction,h=i.id,b=i.mode,y=void 0===b?"vertical":b,w=i.inlineCollapsed,E=i.disabled,C=i.disabledOverflow,S=i.subMenuOpenDelay,$=void 0===S?.1:S,k=i.subMenuCloseDelay,O=void 0===k?.1:k,N=i.forceSubMenuRender,P=i.defaultOpenKeys,j=i.openKeys,R=i.activeKey,_=i.defaultActiveFirst,A=i.selectable,T=void 0===A||A,F=i.multiple,B=void 0!==F&&F,z=i.defaultSelectedKeys,D=i.selectedKeys,L=i.onSelect,H=i.onDeselect,V=i.inlineIndent,W=void 0===V?24:V,X=i.motion,G=i.defaultMotions,U=i.triggerSubMenuAction,Q=void 0===U?"hover":U,Z=i.builtinPlacements,J=i.itemIcon,ee=i.expandIcon,te=i.overflowedIndicator,ne=void 0===te?"...":te,re=i.overflowedIndicatorPopupClassName,oe=i.getPopupContainer,ie=i.onClick,ae=i.onOpenChange,le=i.onKeyDown,ce=i.openAnimation,se=i.openTransitionName,ue=i._internalRenderMenuItem,de=i._internalRenderSubMenuItem,fe=i._internalComponents,pe=ht(i,Ip),me=rt(e.useMemo((function(){return[Pp(m,p,Mp,fe),Pp(m,p,Mp,{})]}),[m,p,fe]),2),ve=me[0],ge=me[1],he=rt(e.useState(!1),2),be=he[0],ye=he[1],we=e.useRef(),xe=function(t){var n=rt(mi(t,{value:t}),2),r=n[0],o=n[1];return e.useEffect((function(){Uf+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(Kf,"-").concat(Uf);o("rc-menu-uuid-".concat(e))}),[]),r}(h),Ee="rtl"===g;"production"!==process.env.NODE_ENV&&q(!ce&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ce=mi(P,{value:j,postState:function(e){return e||Mp}}),Se=rt(Ce,2),$e=Se[0],ke=Se[1],Oe=function(e){function t(){ke(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?x(t):t()},Ne=rt(e.useState($e),2),Pe=Ne[0],Ie=Ne[1],Me=e.useRef(!1),je=rt(e.useMemo((function(){return"inline"!==y&&"vertical"!==y||!w?[y,!1]:["vertical",w]}),[y,w]),2),Re=je[0],_e=je[1],Ae="inline"===Re,Te=rt(e.useState(Re),2),Fe=Te[0],Be=Te[1],ze=rt(e.useState(_e),2),De=ze[0],Le=ze[1];e.useEffect((function(){Be(Re),Le(_e),Me.current&&(Ae?ke(Pe):Oe(Mp))}),[Re,_e]);var He=rt(e.useState(0),2),Ve=He[0],We=He[1],qe=Ve>=ve.length-1||"horizontal"!==Fe||C;e.useEffect((function(){Ae&&Ie($e)}),[$e]),e.useEffect((function(){return Me.current=!0,function(){Me.current=!1}}),[]);var Xe=Xf(),Ge=Xe.registerPath,Ue=Xe.unregisterPath,Ye=Xe.refreshOverflowKeys,Qe=Xe.isSubPathKey,Ze=Xe.getKeyPath,Je=Xe.getKeys,et=Xe.getSubPathKeys,tt=e.useMemo((function(){return{registerPath:Ge,unregisterPath:Ue}}),[Ge,Ue]),nt=e.useMemo((function(){return{isSubPathKey:Qe}}),[Qe]);e.useEffect((function(){Ye(qe?Mp:ve.slice(Ve+1).map((function(e){return e.key})))}),[Ve,qe]);var ot=rt(mi(R||_&&(null===(r=ve[0])||void 0===r?void 0:r.key),{value:R}),2),it=ot[0],at=ot[1],lt=Gf((function(e){at(e)})),ct=Gf((function(){at(void 0)}));v(n,(function(){return{list:we.current,focus:function(e){var t,n,r=Je(),o=Lf(r,xe),i=o.elements,a=o.key2element,l=o.element2key,c=zf(we.current,i),s=null!=it?it:c[0]?l.get(c[0]):null===(t=ve.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var st=mi(z||[],{value:D,postState:function(e){return Array.isArray(e)?e:null==e?Mp:[e]}}),ut=rt(st,2),dt=ut[0],ft=ut[1],pt=Gf((function(e){null==ie||ie(ep(e)),function(e){if(T){var t,n=e.key,r=dt.includes(n);t=B?r?dt.filter((function(e){return e!==n})):[].concat(Ke(dt),[n]):[n],ft(t);var o=Y(Y({},e),{},{selectedKeys:t});r?null==H||H(o):null==L||L(o)}!B&&$e.length&&"inline"!==Fe&&Oe(Mp)}(e)})),mt=Gf((function(e,t){var n=$e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Fe){var r=et(e);n=n.filter((function(e){return!r.has(e)}))}bt($e,n,!0)||Oe(n,!0)})),vt=Hf(Fe,it,Ee,xe,we,Je,Ze,at,(function(e,t){var n=null!=t?t:!$e.includes(e);mt(e,n)}),le);e.useEffect((function(){ye(!0)}),[]);var gt=e.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),yt="horizontal"!==Fe||C?ve:ve.map((function(t,n){return e.createElement(xf,{key:t.key,overflowDisabled:n>Ve},t)})),wt=e.createElement(od,M({id:h,ref:we,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:lp,className:I(l,"".concat(l,"-root"),"".concat(l,"-").concat(Fe),u,(o={},K(o,"".concat(l,"-inline-collapsed"),De),K(o,"".concat(l,"-rtl"),Ee),o),c),dir:g,style:s,role:"menu",tabIndex:f,data:yt,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,r=n?ve.slice(-n):null;return e.createElement(Ep,{eventKey:qf,title:ne,disabled:qe,internalPopupClose:0===n,popupClassName:re},r)},maxCount:"horizontal"!==Fe||C?od.INVALIDATE:od.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){We(e)},onKeyDown:vt},pe));return e.createElement(Nf.Provider,{value:gt},e.createElement(gf.Provider,{value:xe},e.createElement(xf,{prefixCls:l,rootClassName:c,mode:Fe,openKeys:$e,rtl:Ee,disabled:E,motion:be?X:null,defaultMotions:be?G:null,activeKey:it,onActive:lt,onInactive:ct,selectedKeys:dt,inlineIndent:W,subMenuOpenDelay:$,subMenuCloseDelay:O,forceSubMenuRender:N,builtinPlacements:Z,triggerSubMenuAction:Q,getPopupContainer:oe,itemIcon:J,expandIcon:ee,onItemClick:pt,onOpenChange:mt},e.createElement(Of.Provider,{value:nt},wt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(Cf.Provider,{value:tt},ge)))))})),Rp=jp;Rp.Item=lp,Rp.SubMenu=Ep,Rp.ItemGroup=kp,Rp.Divider=Cp;var _p={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"},Ap=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:_p}))},Tp=e.forwardRef(Ap);"production"!==process.env.NODE_ENV&&(Tp.displayName="BarsOutlined");var Fp={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"},Bp=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:Fp}))},zp=e.forwardRef(Bp);"production"!==process.env.NODE_ENV&&(zp.displayName="LeftOutlined");const Dp=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Lp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hp={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Vp=e.createContext({}),Wp=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),qp=e.forwardRef(((t,n)=>{const{prefixCls:r,className:i,trigger:l,children:s,defaultCollapsed:u=!1,theme:f="dark",style:p={},collapsible:m=!1,reverseArrow:v=!1,width:g=200,collapsedWidth:h=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:w,onBreakpoint:x}=t,E=Lp(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=o(Dp),[S,$]=d("collapsed"in t?t.collapsed:u),[k,O]=d(!1);c((()=>{"collapsed"in t&&$(t.collapsed)}),[t.collapsed]);const N=(e,n)=>{"collapsed"in t||$(e),null==w||w(e,n)},P=a();P.current=e=>{O(e.matches),null==x||x(e.matches),S!==e.matches&&N(e.matches,"responsive")},c((()=>{function e(e){return P.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&y&&y in Hp){t=n(`screen and (max-width: ${Hp[y]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[y]),c((()=>{const e=Wp("ant-sider-");return C.addSider(e),()=>C.removeSider(e)}),[]);const M=()=>{N(!S,"clickTrigger")},{getPrefixCls:j}=o(Qo),R=e.useMemo((()=>({siderCollapsed:S})),[S]);return e.createElement(Vp.Provider,{value:R},(()=>{const t=j("layout-sider",r),o=We(E,["collapsed"]),a=S?h:g,c=(u=a,!isNaN(parseFloat(u))&&isFinite(u)?`${a}px`:String(a));var u;const d=0===parseFloat(String(h||0))?e.createElement("span",{onClick:M,className:I(`${t}-zero-width-trigger`,`${t}-zero-width-trigger-${v?"right":"left"}`),style:b},l||e.createElement(Tp,null)):null,y={expanded:v?e.createElement(af,null):e.createElement(zp,null),collapsed:v?e.createElement(zp,null):e.createElement(af,null)}[S?"collapsed":"expanded"],w=null!==l?d||e.createElement("div",{className:`${t}-trigger`,onClick:M,style:{width:c}},l||y):null,x=Object.assign(Object.assign({},p),{flex:`0 0 ${c}`,maxWidth:c,minWidth:c,width:c}),C=I(t,`${t}-${f}`,{[`${t}-collapsed`]:!!S,[`${t}-has-trigger`]:m&&null!==l&&!d,[`${t}-below`]:!!k,[`${t}-zero-width`]:0===parseFloat(c)},i);return e.createElement("aside",Object.assign({className:C},o,{style:x,ref:n}),e.createElement("div",{className:`${t}-children`},s),m||k&&d?w:null)})())}));"production"!==process.env.NODE_ENV&&(qp.displayName="Sider");var Xp={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"},Gp=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:Xp}))},Kp=e.forwardRef(Gp);"production"!==process.env.NODE_ENV&&(Kp.displayName="EllipsisOutlined");const Up=i({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Yp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Qp=t=>{const{prefixCls:n,className:r,dashed:o}=t,i=Yp(t,["prefixCls","className","dashed"]),{getPrefixCls:a}=e.useContext(Qo),l=a("menu",n),c=I({[`${l}-item-divider-dashed`]:!!o},r);return e.createElement(Cp,Object.assign({className:c},i))},Zp=t=>{var n;const{className:r,children:o,icon:i,title:a,danger:l}=t,{prefixCls:c,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=e.useContext(Up),{siderCollapsed:p}=e.useContext(Vp);let m=a;void 0===a?m=s?o:"":!1===a&&(m="");const v={title:m};p||f||(v.title=null,v.open=!1);const g=B(o).length;let h=e.createElement(lp,Object.assign({},We(t,["title","icon","danger"]),{className:I({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?g+1:g)},r),title:"string"==typeof a?a:void 0}),yl(i,{className:I(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:"",`${c}-item-icon`)}),(t=>{const n=e.createElement("span",{className:`${c}-title-content`},o);return(!i||e.isValidElement(o)&&"span"===o.type)&&o&&t&&s&&"string"==typeof o?e.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):n})(f));return d||(h=e.createElement(nf,Object.assign({},v,{placement:"rtl"===u?"left":"right",overlayClassName:`${c}-inline-collapsed-tooltip`}),h)),h},Jp=e.createContext(null),em=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:`${Bt(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},tm=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(${Bt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Bt(n)})`}}}}},nm=e=>Object.assign({},Di(e)),rm=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:v,motionDurationMid:g,itemHoverColor:h,lineType:b,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:S,dangerItemSelectedBg:$,popupBg:k,itemHoverBg:O,itemActiveBg:N,menuSubMenuBg:P,horizontalItemSelectedColor:I,horizontalItemSelectedBg:M,horizontalItemBorderRadius:j,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},nm(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},nm(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:h}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${Bt(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:s,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:s,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Bt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Bt(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${m}`,`opacity ${g} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(",")}}}}}},om=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Bt(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Bt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},im=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:v,collapsedIconSize:g}=e,h={height:r,lineHeight:Bt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},om(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},om(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Bt(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${l} ${c}`].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`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Bt(e.calc(d).div(2).equal())} - ${Bt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Bt(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Fi),{paddingInline:p})}}]},am=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},lm=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Bt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Bt(a)})`}}}}},cm=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:v,lineType:g,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bi(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:`${Bt(l)} ${Bt(c)}`,fontSize:b,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),am(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Bt(e.calc(r).mul(2).equal())} ${Bt(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},am(e)),lm(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),lm(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bt(v)})`},"&::after":{transform:`rotate(45deg) translateX(${Bt(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Bt(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Bt(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Bt(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},sm=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:v,colorBgTextHover:g,controlHeightLG:h,lineHeight:b,colorBgElevated:y,marginXXS:w,padding:x,fontSize:E,controlHeightSM:C,fontSizeLG:S,colorTextLightSolid:$,colorErrorHover:k}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,P=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,I=new io($).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:N,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:2*h,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*h+"px",iconSize:E,iconMarginInlineEnd:C-E,collapsedIconSize:S,groupTitleFontSize:E,darkItemDisabledColor:new io($).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:$,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${N}px)`:`calc(100% - ${2*P}px)`}};const um=t=>{var n;const{popupClassName:r,icon:o,title:i,theme:a}=t,l=e.useContext(Up),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=kf();let f;if(o){const t=e.isValidElement(i)&&"span"===i.type;f=e.createElement(e.Fragment,null,yl(o,{className:I(e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:"",`${c}-item-icon`)}),t?i:e.createElement("span",{className:`${c}-title-content`},i))}else f=s&&!d.length&&i&&"string"==typeof i?e.createElement("div",{className:`${c}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${c}-title-content`},i);const p=e.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[m]=Pl("Menu");return e.createElement(Up.Provider,{value:p},e.createElement(Ep,Object.assign({},We(t,["icon"]),{title:f,popupClassName:I(c,r,`${c}-${a||u}`),popupStyle:{zIndex:m}})))};var dm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function fm(e){return null===e||!1===e}const pm={item:Zp,submenu:um,divider:Qp},mm=s(((t,n)=>{var r;const o=e.useContext(Jp),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:s}=e.useContext(Qo),u=a(),{prefixCls:d,className:f,style:p,theme:m="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:h,siderCollapsed:b,rootClassName:y,mode:w,selectable:x,onClick:E,overflowedIndicatorPopupClassName:C}=t,S=We(dm(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const e=Nr("Menu");"production"!==process.env.NODE_ENV&&e(!("inlineCollapsed"in t&&"inline"!==w),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&e(!(void 0!==t.siderCollapsed&&"inlineCollapsed"in t),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),e.deprecated("items"in t&&!t.children,"children","items")}null===(r=i.validator)||void 0===r||r.call(i,{mode:w});const $=di((function(){var e;null==E||E.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),k=i.mode||w,O=null!=x?x:i.selectable,N=e.useMemo((()=>void 0!==b?b:h),[h,b]),P={horizontal:{motionName:`${u}-slide-up`},inline:Ul(u),other:{motionName:`${u}-zoom-big`}},M=a("menu",d||i.prefixCls),j=wl(M),[R,_,A]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Vi("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:h,popupBg:b,darkPopupBg:y}=e,w=e.calc(r).div(7).mul(5).equal(),x=bi(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),E=bi(x,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:v,dangerItemSelectedColor:g,dangerItemActiveBg:h,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[cm(x),em(x),im(x),rm(x,"light"),rm(E,"dark"),tm(x),ku(x),Mu(x,"slide-up"),Mu(x,"slide-down"),zu(x,"zoom-big")]}),sm,{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)}(M,j,!o),T=I(`${M}-${m}`,null==s?void 0:s.className,f),F=e.useMemo((()=>{var t,n;if("function"==typeof v||fm(v))return v||null;if("function"==typeof i.expandIcon||fm(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||fm(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const r=null!==(t=null!=v?v:null==i?void 0:i.expandIcon)&&void 0!==t?t:null==s?void 0:s.expandIcon;return yl(r,{className:I(`${M}-submenu-expand-icon`,e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:void 0)})}),[v,null==i?void 0:i.expandIcon,null==s?void 0:s.expandIcon,M]),B=e.useMemo((()=>({prefixCls:M,inlineCollapsed:N||!1,direction:c,firstLevel:!0,theme:m,mode:k,disableMenuItemTitleTooltip:g})),[M,N,c,g,m]);return R(e.createElement(Jp.Provider,{value:null},e.createElement(Up.Provider,{value:B},e.createElement(Rp,Object.assign({getPopupContainer:l,overflowedIndicator:e.createElement(Kp,null),overflowedIndicatorPopupClassName:I(M,`${M}-${m}`,C),mode:k,selectable:O,onClick:$},S,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==s?void 0:s.style),p),className:T,prefixCls:M,direction:c,defaultMotions:P,expandIcon:F,ref:n,rootClassName:I(y,_,i.rootClassName,A,j),_internalComponents:pm})))))})),vm=s(((t,n)=>{const r=a(null),o=e.useContext(Vp);return v(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),e.createElement(mm,Object.assign({ref:r},t,o))}));function gm(e){return bi(e,{inputAffixPadding:e.paddingXXS})}vm.Item=Zp,vm.SubMenu=um,vm.Divider=Qp,vm.ItemGroup=kp,"production"!==process.env.NODE_ENV&&(vm.displayName="Menu");const hm=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:v,controlOutline:g,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${g}`,errorActiveShadow:`0 0 0 ${v}px ${h}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},bm=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ym=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},bm(bi(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),wm=(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}}),xm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Em=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ym(e))}),xm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),xm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Cm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Sm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Cm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Cm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ym(e))}})}),$m=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},km=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Om=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},km(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Nm=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},km(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ym(e))}),Om(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Om(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Pm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Im=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Pm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Pm(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:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Mm=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Bt(t)} ${Bt(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},jm=e=>({padding:`${Bt(e.paddingBlockSM)} ${Bt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Rm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Bt(e.paddingBlock)} ${Bt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Mm(e)),"&-sm":Object.assign({},jm(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),_m=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Mm(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},jm(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Bt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Bt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Bt(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Bt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Bt(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Am=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bi(e)),Rm(e)),Em(e)),Nm(e)),$m(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Tm=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Bt(e.inputAffixPadding)}`}}}},Fm=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Rm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Tm(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},Bm=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Bi(e)),_m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Sm(e)),Im(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}}})})}},zm=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Dm=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Lm=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var Hm=Vi("Input",(e=>{const t=bi(e,gm(e));return[Am(t),Dm(t),Fm(t),Bm(t),zm(t),Lm(t),Yc(t)]}),hm,{resetFont:!1}),Vm={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"},Wm=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:Vm}))},qm=e.forwardRef(Wm);"production"!==process.env.NODE_ENV&&(qm.displayName="PlusOutlined");var Xm=i(null),Gm={width:0,height:0,left:0,top:0};function Km(t,n){var r=e.useRef(t),o=rt(e.useState({}),2)[1];return[r.current,function(e){var t="function"==typeof e?e(r.current):e;t!==r.current&&n(t,r.current),r.current=t,o({})}]}var Um=Math.pow(.995,20);function Ym(e){var t=rt(d(0),2),n=t[0],r=t[1],o=a(0),i=a();return i.current=e,qt((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var Qm={width:0,height:0,left:0,top:0,right:0};function Zm(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Jm(e){return String(e).replace(/"/g,"TABS_DQ")}function ev(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var tv=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.editable,i=t.locale,a=t.style;return o&&!1!==o.showAdd?e.createElement("button",{ref:n,type:"button",className:"".concat(r,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),nv=e.forwardRef((function(t,n){var r,o=t.position,i=t.prefixCls,a=t.extra;if(!a)return null;var l={};return"object"!==X(a)||e.isValidElement(a)?l.right=a:l=a,"right"===o&&(r=l.right),"left"===o&&(r=l.left),r?e.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},r):null}));"production"!==process.env.NODE_ENV&&(nv.displayName="ExtraContent");var rv=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.id,i=t.tabs,a=t.locale,l=t.mobile,s=t.more,u=void 0===s?{}:s,f=t.style,p=t.className,m=t.editable,v=t.tabBarGutter,g=t.rtl,h=t.removeAriaLabel,b=t.onTabClick,y=t.getPopupContainer,w=t.popupClassName,x=rt(d(!1),2),E=x[0],C=x[1],S=rt(d(null),2),$=S[0],k=S[1],O=u.icon,N=void 0===O?"More":O,P="".concat(o,"-more-popup"),j="".concat(r,"-dropdown"),R=null!==$?"".concat(P,"-").concat($):null,_=null==a?void 0:a.dropdownAriaLabel;var A=e.createElement(Rp,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),C(!1)},prefixCls:"".concat(j,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[$],"aria-label":void 0!==_?_:"expanded dropdown"},i.map((function(t){var n=t.closable,r=t.disabled,i=t.closeIcon,a=t.key,l=t.label,c=ev(n,i,m,r);return e.createElement(lp,{key:a,id:"".concat(P,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:r},e.createElement("span",null,l),c&&e.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},i||m.removeIcon||"×"))})));function T(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===$}))||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void k(a.key)}}c((function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[$]),c((function(){E||k(null)}),[E]);var F=K({},g?"marginRight":"marginLeft",v);i.length||(F.visibility="hidden",F.order=1);var B=I(K({},"".concat(j,"-rtl"),g)),z=l?null:e.createElement(vf,M({prefixCls:j,overlay:A,visible:!!i.length&&E,onVisibleChange:C,overlayClassName:I(B,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},u),e.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:F,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":P,id:"".concat(o,"-more"),"aria-expanded":E,onKeyDown:function(e){var t=e.which;if(E)switch(t){case xl.UP:T(-1),e.preventDefault();break;case xl.DOWN:T(1),e.preventDefault();break;case xl.ESC:C(!1);break;case xl.SPACE:case xl.ENTER:null!==$&&b($,e)}else[xl.DOWN,xl.SPACE,xl.ENTER].includes(t)&&(C(!0),e.preventDefault())}},N));return e.createElement("div",{className:I("".concat(r,"-nav-operations"),p),style:f,ref:n},z,e.createElement(tv,{prefixCls:r,locale:a,editable:m}))})),ov=e.memo(rv,(function(e,t){return t.tabMoving})),iv=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,d=t.closable,f=t.renderWrapper,p=t.removeAriaLabel,m=t.editable,v=t.onClick,g=t.onFocus,h=t.style,b="".concat(n,"-tab"),y=ev(d,s,m,c);function w(e){c||v(e)}var x=e.useMemo((function(){return u&&"string"==typeof l?e.createElement("span",null,l):l}),[l,u]),E=e.createElement("div",{key:a,"data-node-key":Jm(a),className:I(b,K(K(K({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),o),"".concat(b,"-disabled"),c)),style:h,onClick:w},e.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),w(e)},onKeyDown:function(e){[xl.SPACE,xl.ENTER].includes(e.which)&&(e.preventDefault(),w(e))},onFocus:g},u&&e.createElement("span",{className:"".concat(b,"-icon")},u),l&&x),y&&e.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:a,event:t})}},s||m.removeIcon||"×"));return f?f(E):E},av=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},lv=function(e,t){return e[t?0:1]},cv=e.forwardRef((function(n,r){var o,i,l,s,f,p=n.className,m=n.style,v=n.id,g=n.animated,h=n.activeKey,b=n.rtl,y=n.extra,w=n.editable,x=n.locale,E=n.tabPosition,C=n.tabBarGutter,S=n.children,$=n.onTabClick,k=n.onTabScroll,O=n.indicator,N=e.useContext(Xm),P=N.prefixCls,j=N.tabs,R=a(null),_=a(null),A=a(null),T=a(null),F=a(null),B=a(null),z=a(null),D="top"===E||"bottom"===E,L=Km(0,(function(e,t){D&&k&&k({direction:e>t?"left":"right"})})),H=rt(L,2),V=H[0],W=H[1],q=Km(0,(function(e,t){!D&&k&&k({direction:e>t?"top":"bottom"})})),X=rt(q,2),G=X[0],U=X[1],Q=rt(d([0,0]),2),Z=Q[0],J=Q[1],ee=rt(d([0,0]),2),te=ee[0],re=ee[1],oe=rt(d([0,0]),2),ie=oe[0],ae=oe[1],le=rt(d([0,0]),2),ce=le[0],se=le[1],ue=(o=new Map,i=a([]),l=rt(d({}),2)[1],s=a("function"==typeof o?o():o),f=Ym((function(){var e=s.current;i.current.forEach((function(t){e=t(e)})),i.current=[],s.current=e,l({})})),[s.current,function(e){i.current.push(e),f()}]),de=rt(ue,2),fe=de[0],pe=de[1],me=function(e,t,n){return u((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Gm,i=o.left+o.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=t.get(c);s||(s=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||Gm);var u=r.get(c)||Y({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(j,fe,te[0]),ve=lv(Z,D),ge=lv(te,D),he=lv(ie,D),be=lv(ce,D),ye=ve<ge+he,we=ye?ve-be:ve-he,xe="".concat(P,"-nav-operations-hidden"),Ee=0,Ce=0;function Se(e){return e<Ee?Ee:e>Ce?Ce:e}D&&b?(Ee=0,Ce=Math.max(0,ge-we)):(Ee=Math.min(0,we-ge),Ce=0);var $e=a(null),ke=rt(d(),2),Oe=ke[0],Ne=ke[1];function Pe(){Ne(Date.now())}function Ie(){$e.current&&clearTimeout($e.current)}!function(t,n){var r=rt(d(),2),o=r[0],i=r[1],l=rt(d(0),2),c=l[0],s=l[1],u=rt(d(0),2),f=u[0],p=u[1],m=rt(d(),2),v=m[0],g=m[1],h=a(),b=a(),y=a(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(o){e.preventDefault();var t=e.touches[0],r=t.screenX,a=t.screenY;i({x:r,y:a});var l=r-o.x,u=a-o.y;n(l,u);var d=Date.now();s(d),p(d-c),g({x:l,y:u})}},onTouchEnd:function(){if(o&&(i(null),g(null),v)){var e=v.x/f,t=v.y/f,r=Math.abs(e),a=Math.abs(t);if(Math.max(r,a)<.1)return;var l=e,c=t;h.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(h.current):n(20*(l*=Um),20*(c*=Um))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===b.current?t:r:i>a?(o=t,b.current="x"):(o=r,b.current="y"),n(-o,-o)&&e.preventDefault()}},e.useEffect((function(){function e(e){y.current.onTouchMove(e)}function n(e){y.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){y.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){y.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(T,(function(e,t){function n(e,t){e((function(e){return Se(e+t)}))}return!!ye&&(D?n(W,e):n(U,t),Ie(),Pe(),!0)})),c((function(){return Ie(),Oe&&($e.current=setTimeout((function(){Ne(0)}),100)),Ie}),[Oe]);var Me=function(e,t,n,r,o,i,a){var l,c,s,d=a.tabs,f=a.tabPosition,p=a.rtl;return["top","bottom"].includes(f)?(l="width",c=p?"right":"left",s=Math.abs(n)):(l="height",c="top",s=-n),u((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;o<n;o+=1){var i=e.get(d[o].key)||Qm;if(i[c]+i[l]>s+t){r=o-1;break}}for(var a=0,u=n-1;u>=0;u-=1)if((e.get(d[u].key)||Qm)[c]<s){a=u+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,o,i,s,f,d.map((function(e){return e.key})).join("_"),p])}(me,we,D?V:G,ge,he,be,Y(Y({},n),{},{tabs:j})),je=rt(Me,2),Re=je[0],_e=je[1],Ae=di((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=me.get(e)||{width:0,height:0,left:0,right:0,top:0};if(D){var n=V;b?t.right<V?n=t.right:t.right+t.width>V+we&&(n=t.right+t.width-we):t.left<-V?n=-t.left:t.left+t.width>-V+we&&(n=-(t.left+t.width-we)),U(0),W(Se(n))}else{var r=G;t.top<-G?r=-t.top:t.top+t.height>-G+we&&(r=-(t.top+t.height-we)),W(0),U(Se(r))}})),Te={};"top"===E||"bottom"===E?Te[b?"marginRight":"marginLeft"]=C:Te.marginTop=C;var Fe=j.map((function(t,n){var r=t.key;return e.createElement(iv,{id:v,prefixCls:P,key:r,tab:t,style:0===n?void 0:Te,closable:t.closable,editable:w,active:r===h,renderWrapper:S,removeAriaLabel:null==x?void 0:x.removeAriaLabel,onClick:function(e){$(r,e)},onFocus:function(){Ae(r),Pe(),T.current&&(b||(T.current.scrollLeft=0),T.current.scrollTop=0)}})})),Be=function(){return pe((function(){var e,t=new Map,n=null===(e=F.current)||void 0===e?void 0:e.getBoundingClientRect();return j.forEach((function(e){var r,o=e.key,i=null===(r=F.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Jm(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=rt(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};c((function(){Be()}),[j.map((function(e){return e.key})).join("_")]);var ze=Ym((function(){var e=av(R),t=av(_),n=av(A);J([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=av(z);ae(r);var o=av(B);se(o);var i=av(F);re([i[0]-r[0],i[1]-r[1]]),Be()})),De=j.slice(0,Re),Le=j.slice(_e+1),He=[].concat(Ke(De),Ke(Le)),We=me.get(h),qe=function(e){var n=e.activeTabOffset,r=e.horizontal,o=e.rtl,i=e.indicator,l=void 0===i?{}:i,s=l.size,u=l.align,f=void 0===u?"center":u,p=rt(d(),2),m=p[0],v=p[1],g=a(),h=t.useCallback((function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e}),[s]);function b(){et.cancel(g.current)}return c((function(){var e={};if(n)if(r){e.width=h(n.width);var t=o?"right":"left";"start"===f&&(e[t]=n[t]),"center"===f&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===f&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=h(n.height),"start"===f&&(e.top=n.top),"center"===f&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===f&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return b(),g.current=et((function(){v(e)})),b}),[n,r,o,f,h]),{style:m}}({activeTabOffset:We,horizontal:D,indicator:O,rtl:b}),Xe=qe.style;c((function(){Ae()}),[h,Ee,Ce,Zm(We),Zm(me),D]),c((function(){ze()}),[b]);var Ge,Ue,Ye,Qe,Ze=!!He.length,Je="".concat(P,"-nav-wrap");return D?b?(Ue=V>0,Ge=V!==Ce):(Ge=V<0,Ue=V!==Ee):(Ye=G<0,Qe=G!==Ee),e.createElement(Ve,{onResize:ze},e.createElement("div",{ref:ne(r,R),role:"tablist",className:I("".concat(P,"-nav"),p),style:m,onKeyDown:function(){Pe()}},e.createElement(nv,{ref:_,position:"left",extra:y,prefixCls:P}),e.createElement(Ve,{onResize:ze},e.createElement("div",{className:I(Je,K(K(K(K({},"".concat(Je,"-ping-left"),Ge),"".concat(Je,"-ping-right"),Ue),"".concat(Je,"-ping-top"),Ye),"".concat(Je,"-ping-bottom"),Qe)),ref:T},e.createElement(Ve,{onResize:ze},e.createElement("div",{ref:F,className:"".concat(P,"-nav-list"),style:{transform:"translate(".concat(V,"px, ").concat(G,"px)"),transition:Oe?"none":void 0}},Fe,e.createElement(tv,{ref:z,prefixCls:P,locale:x,editable:w,style:Y(Y({},0===Fe.length?void 0:Te),{},{visibility:Ze?"hidden":null})}),e.createElement("div",{className:I("".concat(P,"-ink-bar"),K({},"".concat(P,"-ink-bar-animated"),g.inkBar)),style:Xe}))))),e.createElement(ov,M({},n,{removeAriaLabel:null==x?void 0:x.removeAriaLabel,ref:B,prefixCls:P,tabs:He,className:!Ze&&xe,tabMoving:!!Oe})),e.createElement(nv,{ref:A,position:"right",extra:y,prefixCls:P})))})),sv=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.className,i=t.style,a=t.id,l=t.active,c=t.tabKey,s=t.children;return e.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:I(r,l&&"".concat(r,"-active"),o),ref:n},s)}));"production"!==process.env.NODE_ENV&&(sv.displayName="TabPane");var uv=["renderTabBar"],dv=["label","key"],fv=function(t){var n=t.renderTabBar,r=ht(t,uv),o=e.useContext(Xm).tabs;return n?n(Y(Y({},r),{},{panes:o.map((function(t){var n=t.label,r=t.key,o=ht(t,dv);return e.createElement(sv,M({tab:n,key:r,tabKey:r},o))}))}),cv):e.createElement(cv,r)};"production"!==process.env.NODE_ENV&&(fv.displayName="TabNavListWrapper");var pv=["key","forceRender","style","className","destroyInactiveTabPane"],mv=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=e.useContext(Xm),c=l.prefixCls,s=l.tabs,u=o.tabPane,d="".concat(c,"-tabpane");return e.createElement("div",{className:I("".concat(c,"-content-holder"))},e.createElement("div",{className:I("".concat(c,"-content"),"".concat(c,"-content-").concat(i),K({},"".concat(c,"-content-animated"),u))},s.map((function(t){var i=t.key,l=t.forceRender,c=t.style,s=t.className,f=t.destroyInactiveTabPane,p=ht(t,pv),m=i===r;return e.createElement(Ma,M({key:i,visible:m,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),(function(t,r){var o=t.style,a=t.className;return e.createElement(sv,M({},p,{prefixCls:d,id:n,tabKey:i,animated:u,active:m,style:Y(Y({},c),o),className:I(s,a),ref:r}))}))}))))};var vv=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],gv=0,hv=e.forwardRef((function(t,n){var r=t.id,o=t.prefixCls,i=void 0===o?"rc-tabs":o,a=t.className,l=t.items,s=t.direction,u=t.activeKey,f=t.defaultActiveKey,p=t.editable,m=t.animated,v=t.tabPosition,g=void 0===v?"top":v,h=t.tabBarGutter,b=t.tabBarStyle,y=t.tabBarExtraContent,w=t.locale,x=t.more,E=t.destroyInactiveTabPane,C=t.renderTabBar,S=t.onChange,$=t.onTabClick,k=t.onTabScroll,O=t.getPopupContainer,N=t.popupClassName,P=t.indicator,j=ht(t,vv),R=e.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===X(e)&&"key"in e}))}),[l]),_="rtl"===s,A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Y({inkBar:!0},"object"===X(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&q(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(m),T=rt(d(!1),2),F=T[0],B=T[1];c((function(){B(Du())}),[]);var z=rt(mi((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:f}),2),D=z[0],L=z[1],H=rt(d((function(){return R.findIndex((function(e){return e.key===D}))})),2),V=H[0],W=H[1];c((function(){var e,t=R.findIndex((function(e){return e.key===D}));-1===t&&(t=Math.max(0,Math.min(V,R.length-1)),L(null===(e=R[t])||void 0===e?void 0:e.key));W(t)}),[R.map((function(e){return e.key})).join("_"),D,V]);var G=rt(mi(null,{value:r}),2),U=G[0],Q=G[1];c((function(){r||(Q("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":gv)),gv+=1)}),[]);var Z={id:U,activeKey:D,animated:A,tabPosition:g,rtl:_,mobile:F},J=Y(Y({},Z),{},{editable:p,locale:w,more:x,tabBarGutter:h,onTabClick:function(e,t){null==$||$(e,t);var n=e!==D;L(e),n&&(null==S||S(e))},onTabScroll:k,extra:y,style:b,panes:null,getPopupContainer:O,popupClassName:N,indicator:P});return e.createElement(Xm.Provider,{value:{tabs:R,prefixCls:i}},e.createElement("div",M({ref:n,id:r,className:I(i,"".concat(i,"-").concat(g),K(K(K({},"".concat(i,"-mobile"),F),"".concat(i,"-editable"),p),"".concat(i,"-rtl"),_),a)},j),e.createElement(fv,M({},J,{renderTabBar:C})),e.createElement(mv,M({destroyInactiveTabPane:E},Z,{animated:A}))))}));"production"!==process.env.NODE_ENV&&(hv.displayName="Tabs");const bv={motionAppear:!1,motionEnter:!0,motionLeave:!0};var yv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wv=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}`}}}}},[Mu(e,"slide-up"),Mu(e,"slide-down")]]},xv=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:`${Bt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Bt(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Bt(e.borderRadiusLG)} ${Bt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Bt(e.borderRadiusLG)} ${Bt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Bt(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Bt(e.borderRadiusLG)} 0 0 ${Bt(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 ${Bt(e.borderRadiusLG)} ${Bt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ev=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Bi(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:`${Bt(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Fi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Bt(e.paddingXXS)} ${Bt(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.colorTextDescription,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"}}})}})}},Cv=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Bt(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Bt(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Bt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Sv=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Bt(e.borderRadius)} ${Bt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Bt(e.borderRadius)} ${Bt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Bt(e.borderRadius)} ${Bt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Bt(e.borderRadius)} 0 0 ${Bt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},$v=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Li(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},kv=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:Bt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Bt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Bt(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"}}}}},Ov=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Bi(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${Bt(e.paddingXS)}`,background:"transparent",border:`${Bt(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Bt(e.borderRadiusLG)} ${Bt(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}},Li(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),$v(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Nv=Vi("Tabs",(e=>{const t=bi(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Bt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Bt(e.horizontalItemGutter)}`});return[Sv(t),kv(t),Cv(t),Ev(t),xv(t),Ov(t),wv(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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 Pv=()=>null;"production"!==process.env.NODE_ENV&&(Pv.displayName="DeprecatedTabPane");var Iv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Mv=t=>{var n,r,o,i,a,l,c,s,u,d,f;const{type:p,className:m,rootClassName:v,size:g,onEdit:h,hideAdd:b,centered:y,addIcon:w,removeIcon:x,moreIcon:E,more:C,popupClassName:S,children:$,items:k,animated:O,style:N,indicatorSize:P,indicator:M}=t,j=Iv(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=j,{direction:_,tabs:A,getPrefixCls:T,getPopupContainer:F}=e.useContext(Qo),z=T("tabs",R),D=wl(z),[L,H,V]=Nv(z,D);let W;"editable-card"===p&&(W={onEdit:(e,t)=>{let{key:n,event:r}=t;null==h||h("add"===e?r:n,e)},removeIcon:null!==(n=null!=x?x:null==A?void 0:A.removeIcon)&&void 0!==n?n:e.createElement(ml,null),addIcon:(null!=w?w:null==A?void 0:A.addIcon)||e.createElement(qm,null),showAdd:!0!==b});const q=T();if("production"!==process.env.NODE_ENV){const e=Nr("Tabs");"production"!==process.env.NODE_ENV&&e(!("onPrevClick"in t)&&!("onNextClick"in t),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&e(!(P||(null==A?void 0:A.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const X=lc(g),G=function(t,n){"production"!==process.env.NODE_ENV&&Nr("Tabs").deprecated(!n,"Tabs.TabPane","items");if(t)return t;const r=B(n).map((t=>{if(e.isValidElement(t)){const{key:e,props:n}=t,r=n||{},{tab:o}=r,i=yv(r,["tab"]);return Object.assign(Object.assign({key:String(e)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(r)}(k,$),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}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},bv),{motionName:Yl(e,"switch")})),t}(z,O),U=Object.assign(Object.assign({},null==A?void 0:A.style),N),Y={align:null!==(r=null==M?void 0:M.align)&&void 0!==r?r:null===(o=null==A?void 0:A.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==M?void 0:M.size)&&void 0!==i?i:P)&&void 0!==a?a:null===(l=null==A?void 0:A.indicator)||void 0===l?void 0:l.size)&&void 0!==c?c:null==A?void 0:A.indicatorSize};return L(e.createElement(hv,Object.assign({direction:_,getPopupContainer:F},j,{items:G,className:I({[`${z}-${X}`]:X,[`${z}-card`]:["card","editable-card"].includes(p),[`${z}-editable-card`]:"editable-card"===p,[`${z}-centered`]:y},null==A?void 0:A.className,m,v,H,V,D),popupClassName:I(S,H,V,D),style:U,editable:W,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(s=null==A?void 0:A.more)||void 0===s?void 0:s.icon)&&void 0!==u?u:null==A?void 0:A.moreIcon)&&void 0!==d?d:E)&&void 0!==f?f:e.createElement(Kp,null),transitionName:`${q}-slide-up`},C),prefixCls:z,animated:K,indicator:Y})))};function jv(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Rv(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=jv(t,e,r)):n(o=jv(t,e,""))}}Mv.TabPane=Pv,"production"!==process.env.NODE_ENV&&(Mv.displayName="Tabs");var _v=t.forwardRef((function(e,n){var r,o,i=e.inputElement,l=e.children,c=e.prefixCls,s=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,m=e.style,v=e.disabled,h=e.readOnly,b=e.focused,y=e.triggerFocus,w=e.allowClear,x=e.value,E=e.handleReset,C=e.hidden,S=e.classes,$=e.classNames,k=e.dataAttrs,O=e.styles,N=e.components,P=e.onClear,j=null!=l?l:i,R=(null==N?void 0:N.affixWrapper)||"span",_=(null==N?void 0:N.groupWrapper)||"span",A=(null==N?void 0:N.wrapper)||"span",T=(null==N?void 0:N.groupAddon)||"span",F=a(null),B=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),z=g(j,{value:x,className:I(j.props.className,!B&&(null==$?void 0:$.variant))||null}),D=a(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:D.current||F.current}})),B){var L=null;if(w){var H=!v&&!h&&x,V="".concat(c,"-clear-icon"),W="object"===X(w)&&null!=w&&w.clearIcon?w.clearIcon:"✖";L=t.createElement("span",{onClick:function(e){null==E||E(e),null==P||P()},onMouseDown:function(e){return e.preventDefault()},className:I(V,K(K({},"".concat(V,"-hidden"),!H),"".concat(V,"-has-suffix"),!!u)),role:"button",tabIndex:-1},W)}var q="".concat(c,"-affix-wrapper"),G=I(q,K(K(K(K(K({},"".concat(c,"-disabled"),v),"".concat(q,"-disabled"),v),"".concat(q,"-focused"),b),"".concat(q,"-readonly"),h),"".concat(q,"-input-with-clear-btn"),u&&w&&x),null==S?void 0:S.affixWrapper,null==$?void 0:$.affixWrapper,null==$?void 0:$.variant),U=(u||w)&&t.createElement("span",{className:I("".concat(c,"-suffix"),null==$?void 0:$.suffix),style:null==O?void 0:O.suffix},L,u);z=t.createElement(R,M({className:G,style:null==O?void 0:O.affixWrapper,onClick:function(e){var t;null!==(t=F.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==k?void 0:k.affixWrapper,{ref:F}),s&&t.createElement("span",{className:I("".concat(c,"-prefix"),null==$?void 0:$.prefix),style:null==O?void 0:O.prefix},s),z,U)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var Q="".concat(c,"-group"),Z="".concat(Q,"-addon"),J="".concat(Q,"-wrapper"),ee=I("".concat(c,"-wrapper"),Q,null==S?void 0:S.wrapper,null==$?void 0:$.wrapper),te=I(J,K({},"".concat(J,"-disabled"),v),null==S?void 0:S.group,null==$?void 0:$.groupWrapper);z=t.createElement(_,{className:te,ref:D},t.createElement(A,{className:ee},d&&t.createElement(T,{className:Z},d),z,f&&t.createElement(T,{className:Z},f)))}return t.cloneElement(z,{className:I(null===(r=z.props)||void 0===r?void 0:r.className,p)||null,style:Y(Y({},null===(o=z.props)||void 0===o?void 0:o.style),m),hidden:C})})),Av=["show"];function Tv(t,n){return e.useMemo((function(){var e={};n&&(e.show="object"===X(n)&&n.formatter?n.formatter:!!n);var r=e=Y(Y({},e),t),o=r.show,i=ht(r,Av);return Y(Y({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var Fv=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Bv=s((function(e,n){var r=e.autoComplete,o=e.onChange,i=e.onFocus,l=e.onBlur,s=e.onPressEnter,u=e.onKeyDown,f=e.onKeyUp,p=e.prefixCls,m=void 0===p?"rc-input":p,g=e.disabled,h=e.htmlSize,b=e.className,y=e.maxLength,w=e.suffix,x=e.showCount,E=e.count,C=e.type,S=void 0===C?"text":C,$=e.classes,k=e.classNames,O=e.styles,N=e.onCompositionStart,P=e.onCompositionEnd,j=ht(e,Fv),R=rt(d(!1),2),_=R[0],A=R[1],T=a(!1),F=a(!1),B=a(null),z=a(null),D=function(e){B.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(B.current,e)},L=rt(mi(e.defaultValue,{value:e.value}),2),H=L[0],V=L[1],W=null==H?"":String(H),q=rt(d(null),2),X=q[0],G=q[1],U=Tv(E,x),Q=U.max||y,Z=U.strategy(W),J=!!Q&&Z>Q;v(n,(function(){var e;return{focus:D,blur:function(){var e;null===(e=B.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=B.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=B.current)||void 0===e||e.select()},input:B.current,nativeElement:(null===(e=z.current)||void 0===e?void 0:e.nativeElement)||B.current}})),c((function(){A((function(e){return(!e||!g)&&e}))}),[g]);var ee=function(e,t,n){var r,i,a=t;if(!T.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&G([(null===(r=B.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=B.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;V(a),B.current&&Rv(B.current,e,o,a)};c((function(){var e;X&&(null===(e=B.current)||void 0===e||e.setSelectionRange.apply(e,Ke(X)))}),[X]);var te,ne=function(e){ee(e,e.target.value,{source:"change"})},re=function(e){T.current=!1,ee(e,e.currentTarget.value,{source:"compositionEnd"}),null==P||P(e)},oe=function(e){s&&"Enter"===e.key&&!F.current&&(F.current=!0,s(e)),null==u||u(e)},ie=function(e){"Enter"===e.key&&(F.current=!1),null==f||f(e)},ae=function(e){A(!0),null==i||i(e)},le=function(e){A(!1),null==l||l(e)},ce=J&&"".concat(m,"-out-of-range");return t.createElement(_v,M({},j,{prefixCls:m,className:I(b,ce),handleReset:function(e){V(""),D(),B.current&&Rv(B.current,e,o)},value:W,focused:_,triggerFocus:D,suffix:function(){var e=Number(Q)>0;if(w||U.show){var n=U.showFormatter?U.showFormatter({value:W,count:Z,maxLength:Q}):"".concat(Z).concat(e?" / ".concat(Q):"");return t.createElement(t.Fragment,null,U.show&&t.createElement("span",{className:I("".concat(m,"-show-count-suffix"),K({},"".concat(m,"-show-count-has-suffix"),!!w),null==k?void 0:k.count),style:Y({},null==O?void 0:O.count)},n),w)}return null}(),disabled:g,classes:$,classNames:k,styles:O}),(te=We(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t.createElement("input",M({autoComplete:r},te,{onChange:ne,onFocus:ae,onBlur:le,onKeyDown:oe,onKeyUp:ie,className:I(m,K({},"".concat(m,"-disabled"),g),null==k?void 0:k.input),style:null==O?void 0:O.input,ref:B,size:h,type:S,onCompositionStart:function(e){T.current=!0,null==N||N(e)},onCompositionEnd:re}))))}));const zv=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement(dl,null)}),n};function Dv(e,t){const n=a([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return c((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var Lv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hv=s(((e,n)=>{var r;const{prefixCls:i,bordered:l=!0,status:s,size:u,disabled:d,onBlur:f,onFocus:p,suffix:m,allowClear:v,addonAfter:g,addonBefore:h,className:b,style:y,styles:w,rootClassName:x,onChange:E,classNames:C,variant:S}=e,$=Lv(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=Nr("Input");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:k,direction:O,input:N}=t.useContext(Qo),P=k("input",i),M=a(null),j=wl(P),[R,_,A]=Hm(P,j),{compactSize:T,compactItemClassnames:F}=sc(P,O),B=lc((e=>{var t;return null!==(t=null!=u?u:T)&&void 0!==t?t:e})),z=t.useContext(ei),D=null!=d?d:z,{status:L,hasFeedback:H,feedbackIcon:V}=o(Eu),W=Od(L,s),q=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!H,X=a(q);if("production"!==process.env.NODE_ENV){const e=Nr("Input");c((()=>{var t;q&&!X.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===(null===(t=M.current)||void 0===t?void 0:t.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),X.current=q}),[q])}const G=Dv(M,!0),K=(H||m)&&t.createElement(t.Fragment,null,m,H&&V),U=zv(null!=v?v:null==N?void 0:N.allowClear),[Y,Q]=Nd("input",S,l);return R(t.createElement(Bv,Object.assign({ref:te(n,M),prefixCls:P,autoComplete:null==N?void 0:N.autoComplete},$,{disabled:D,onBlur:e=>{G(),null==f||f(e)},onFocus:e=>{G(),null==p||p(e)},style:Object.assign(Object.assign({},null==N?void 0:N.style),y),styles:Object.assign(Object.assign({},null==N?void 0:N.styles),w),suffix:K,allowClear:U,className:I(b,x,A,j,F,null==N?void 0:N.className),onChange:e=>{G(),null==E||E(e)},addonBefore:h&&t.createElement($u,{form:!0,space:!0},h),addonAfter:g&&t.createElement($u,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},C),null==N?void 0:N.classNames),{input:I({[`${P}-sm`]:"small"===B,[`${P}-lg`]:"large"===B,[`${P}-rtl`]:"rtl"===O},null==C?void 0:C.input,null===(r=null==N?void 0:N.classNames)||void 0===r?void 0:r.input,_),variant:I({[`${P}-${Y}`]:Q},kd(P,W)),affixWrapper:I({[`${P}-affix-wrapper-sm`]:"small"===B,[`${P}-affix-wrapper-lg`]:"large"===B,[`${P}-affix-wrapper-rtl`]:"rtl"===O},_),wrapper:I({[`${P}-group-rtl`]:"rtl"===O},_),groupWrapper:I({[`${P}-group-wrapper-sm`]:"small"===B,[`${P}-group-wrapper-lg`]:"large"===B,[`${P}-group-wrapper-rtl`]:"rtl"===O,[`${P}-group-wrapper-${Y}`]:Q},kd(`${P}-group-wrapper`,W,H),_)})})))}));"production"!==process.env.NODE_ENV&&(Hv.displayName="Input");const Vv=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var Wv=Vi(["Input","OTP"],(e=>{const t=bi(e,gm(e));return[Vv(t)]}),hm),qv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xv=e.forwardRef(((t,n)=>{const{value:r,onChange:o,onActiveChange:i,index:a,mask:l}=t,c=qv(t,["value","onChange","onActiveChange","index","mask"]),s=r&&"string"==typeof l?l:r,u=e.useRef(null);e.useImperativeHandle(n,(()=>u.current));const d=()=>{et((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return e.createElement(Hv,Object.assign({},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||r||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===l?"password":"text"}))}));var Gv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Kv(e){return(e||"").split("")}const Uv=e.forwardRef(((t,n)=>{const{prefixCls:r,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:d,status:f,autoFocus:p,mask:m}=t,v=Gv(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=Nr("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof m&&m.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:g,direction:h}=e.useContext(Qo),b=g("otp",r),y=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Y({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||gl(n,"aria-"))||t.data&&gl(n,"data-")||t.attr&&vl.includes(n))&&(r[n]=e[n])})),r}(v,{aria:!0,data:!0,attr:!0}),w=wl(b),[x,E,C]=Wv(b,w),S=lc((e=>null!=i?i:e)),$=e.useContext(Eu),k=Od($.status,f),O=e.useMemo((()=>Object.assign(Object.assign({},$),{status:k,hasFeedback:!1,feedbackIcon:null})),[$,k]),N=e.useRef(null),P=e.useRef({});e.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=P.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=P.current[t])||void 0===e||e.blur()},nativeElement:N.current})));const M=e=>s?s(e):e,[j,R]=e.useState(Kv(M(a||"")));e.useEffect((()=>{void 0!==l&&R(Kv(l))}),[l]);const _=di((e=>{R(e),c&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>j[t]!==e))&&c(e.join(""))})),A=di(((e,t)=>{let n=Ke(j);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Kv(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=M(n.map((e=>e||" ")).join(""));return n=Kv(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),T=(e,t)=>{var n;const r=A(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=P.current[i])||void 0===n||n.focus()),_(r)},F=e=>{var t;null===(t=P.current[e])||void 0===t||t.focus()},B={variant:u,disabled:d,status:k,mask:m};return x(e.createElement("div",Object.assign({},y,{ref:N,className:I(b,{[`${b}-sm`]:"small"===S,[`${b}-lg`]:"large"===S,[`${b}-rtl`]:"rtl"===h},C,E)}),e.createElement(Eu.Provider,{value:O},Array.from({length:o}).map(((t,n)=>{const r=`otp-${n}`,o=j[n]||"";return e.createElement(Xv,Object.assign({ref:e=>{P.current[n]=e},key:r,index:n,size:S,htmlSize:1,className:`${b}-input`,onChange:T,value:o,onActiveChange:F,autoFocus:0===n&&p},B))})))))}));var Yv={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"},Qv=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:Yv}))},Zv=e.forwardRef(Qv);"production"!==process.env.NODE_ENV&&(Zv.displayName="EyeInvisibleOutlined");var Jv={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"},eg=function(t,n){return e.createElement(cl,M({},t,{ref:n,icon:Jv}))},tg=e.forwardRef(eg);"production"!==process.env.NODE_ENV&&(tg.displayName="EyeOutlined");var ng=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rg=t=>t?e.createElement(tg,null):e.createElement(Zv,null),og={click:"onClick",hover:"onMouseOver"},ig=e.forwardRef(((t,n)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:l=rg}=t,c="object"==typeof i&&void 0!==i.visible,[s,u]=d((()=>!!c&&i.visible)),f=a(null);e.useEffect((()=>{c&&u(i.visible)}),[c,i]);const p=Dv(f),m=()=>{r||(s&&p(),u((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:v,prefixCls:g,inputPrefixCls:h,size:b}=t,y=ng(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=e.useContext(Qo),x=w("input",h),E=w("input-password",g),C=i&&(t=>{const n=og[o]||"",r=l(s),i={[n]:m,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(r)?r:e.createElement("span",null,r),i)})(E),S=I(E,v,{[`${E}-${b}`]:!!b}),$=Object.assign(Object.assign({},We(y,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:S,prefixCls:x,suffix:C});return b&&($.size=b),e.createElement(Hv,Object.assign({ref:te(n,f)},$))}));"production"!==process.env.NODE_ENV&&(ig.displayName="Input.Password");var ag=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lg=e.forwardRef(((t,n)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:v}=t,g=ag(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:b}=e.useContext(Qo),y=e.useRef(!1),w=h("input-search",r),x=h("input",o),{compactSize:E}=sc(w,b),C=lc((e=>{var t;return null!==(t=null!=a?a:E)&&void 0!==t?t:e})),S=e.useRef(null),$=e=>{var t;document.activeElement===(null===(t=S.current)||void 0===t?void 0:t.input)&&e.preventDefault()},k=e=>{var t,n;f&&f(null===(n=null===(t=S.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof c?e.createElement(Md,null):null,N=`${w}-button`;let P;const M=c||{},j=M.type&&!0===M.type.__ANT_BUTTON;P=j||"button"===M.type?yl(M,Object.assign({onMouseDown:$,onClick:e=>{var t,n;null===(n=null===(t=null==M?void 0:M.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),k(e)},key:"enterButton"},j?{className:N,size:C}:{})):e.createElement(rs,{className:N,type:c?"primary":void 0,size:C,disabled:d,key:"enterButton",onMouseDown:$,onClick:k,loading:u,icon:O},c),s&&(P=[P,yl(s,{key:"addonAfter"})]);const R=I(w,{[`${w}-rtl`]:"rtl"===b,[`${w}-${C}`]:!!C,[`${w}-with-button`]:!!c},i);return e.createElement(Hv,Object.assign({ref:te(S,n),onPressEnter:e=>{y.current||u||k(e)}},g,{size:C,onCompositionStart:e=>{y.current=!0,null==m||m(e)},onCompositionEnd:e=>{y.current=!1,null==v||v(e)},prefixCls:x,addonAfter:P,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},className:R,disabled:d}))}));"production"!==process.env.NODE_ENV&&(lg.displayName="Search");var cg,sg=["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"],ug={};function dg(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;cg||((cg=document.createElement("textarea")).setAttribute("tab-index","-1"),cg.setAttribute("aria-hidden","true"),document.body.appendChild(cg)),e.getAttribute("wrap")?cg.setAttribute("wrap",e.getAttribute("wrap")):cg.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ug[n])return ug[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:sg.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(ug[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;cg.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),cg.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=cg.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){cg.value=" ";var p=cg.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var fg=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pg=e.forwardRef((function(t,n){var r=t,o=r.prefixCls,i=r.defaultValue,a=r.value,l=r.autoSize,c=r.onResize,s=r.className,u=r.style,d=r.disabled,f=r.onChange,p=r.onInternalAutoSize,m=ht(r,fg),v=rt(mi(i,{value:a,postState:function(e){return null!=e?e:""}}),2),g=v[0],h=v[1],b=e.useRef();e.useImperativeHandle(n,(function(){return{textArea:b.current}}));var y=rt(e.useMemo((function(){return l&&"object"===X(l)?[l.minRows,l.maxRows]:[]}),[l]),2),w=y[0],x=y[1],E=!!l,C=rt(e.useState(2),2),S=C[0],$=C[1],k=rt(e.useState(),2),O=k[0],N=k[1],P=function(){$(0),"test"===process.env.NODE_ENV&&(null==p||p())};Wt((function(){E&&P()}),[a,w,x,E]),Wt((function(){if(0===S)$(1);else if(1===S){var e=dg(b.current,!1,w,x);$(2),N(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=r}}catch(e){}}()}),[S]);var j=e.useRef(),R=function(){et.cancel(j.current)};e.useEffect((function(){return R}),[]);var _=E?O:null,A=Y(Y({},u),_);return 0!==S&&1!==S||(A.overflowY="hidden",A.overflowX="hidden"),e.createElement(Ve,{onResize:function(e){2===S&&(null==c||c(e),l&&(R(),j.current=et((function(){P()}))))},disabled:!(l||c)},e.createElement("textarea",M({},m,{ref:b,style:A,className:I(o,s,K({},"".concat(o,"-disabled"),d)),disabled:d,value:g,onChange:function(e){h(e.target.value),null==f||f(e)}})))})),mg=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],vg=t.forwardRef((function(e,n){var r,o=e.defaultValue,i=e.value,l=e.onFocus,s=e.onBlur,u=e.onChange,d=e.allowClear,f=e.maxLength,p=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,h=e.prefixCls,b=void 0===h?"rc-textarea":h,y=e.showCount,w=e.count,x=e.className,E=e.style,C=e.disabled,S=e.hidden,$=e.classNames,k=e.styles,O=e.onResize,N=e.onClear,P=e.onPressEnter,j=e.readOnly,R=e.autoSize,_=e.onKeyDown,A=ht(e,mg),T=rt(mi(o,{value:i,defaultValue:o}),2),F=T[0],B=T[1],z=null==F?"":String(F),D=rt(t.useState(!1),2),L=D[0],H=D[1],V=t.useRef(!1),W=rt(t.useState(null),2),q=W[0],X=W[1],G=a(null),U=a(null),Q=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},Z=function(){Q().focus()};v(n,(function(){var e;return{resizableTextArea:U.current,focus:Z,blur:function(){Q().blur()},nativeElement:(null===(e=G.current)||void 0===e?void 0:e.nativeElement)||Q()}})),c((function(){H((function(e){return!C&&e}))}),[C]);var J=rt(t.useState(null),2),ee=J[0],te=J[1];t.useEffect((function(){var e;ee&&(e=Q()).setSelectionRange.apply(e,Ke(ee))}),[ee]);var ne,re=Tv(w,y),oe=null!==(r=re.max)&&void 0!==r?r:f,ie=Number(oe)>0,ae=re.strategy(z),le=!!oe&&ae>oe,ce=function(e,t){var n=t;!V.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max&&t!==(n=re.exceedFormatter(t,{max:re.max}))&&te([Q().selectionStart||0,Q().selectionEnd||0]),B(n),Rv(e.currentTarget,e,u,n)},se=g;re.show&&(ne=re.showFormatter?re.showFormatter({value:z,count:ae,maxLength:oe}):"".concat(ae).concat(ie?" / ".concat(oe):""),se=t.createElement(t.Fragment,null,se,t.createElement("span",{className:I("".concat(b,"-data-count"),null==$?void 0:$.count),style:null==k?void 0:k.count},ne)));var ue=!R&&!y&&!d;return t.createElement(_v,{ref:G,value:z,allowClear:d,handleReset:function(e){B(""),Z(),Rv(Q(),e,u)},suffix:se,prefixCls:b,classNames:Y(Y({},$),{},{affixWrapper:I(null==$?void 0:$.affixWrapper,K(K({},"".concat(b,"-show-count"),y),"".concat(b,"-textarea-allow-clear"),d))}),disabled:C,focused:L,className:I(x,le&&"".concat(b,"-out-of-range")),style:Y(Y({},E),q&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ne?ne:void 0}},hidden:S,readOnly:j,onClear:N},t.createElement(pg,M({},A,{autoSize:R,maxLength:f,onKeyDown:function(e){"Enter"===e.key&&P&&P(e),null==_||_(e)},onChange:function(e){ce(e,e.target.value)},onFocus:function(e){H(!0),null==l||l(e)},onBlur:function(e){H(!1),null==s||s(e)},onCompositionStart:function(e){V.current=!0,null==p||p(e)},onCompositionEnd:function(e){V.current=!1,ce(e,e.currentTarget.value),null==m||m(e)},className:I(null==$?void 0:$.textarea),style:Y(Y({},null==k?void 0:k.textarea),{},{resize:null==E?void 0:E.resize}),disabled:C,prefixCls:b,onResize:function(e){var t;null==O||O(e),null!==(t=Q())&&void 0!==t&&t.style.height&&X(!0)},ref:U,readOnly:j})))})),gg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hg=s(((t,n)=>{var r,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:f,className:p,style:m,styles:v,variant:g}=t,h=gg(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=Nr("TextArea");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:w}=e.useContext(Qo),x=lc(l),E=e.useContext(ei),C=null!=c?c:E,{status:S,hasFeedback:$,feedbackIcon:k}=e.useContext(Eu),O=Od(S,s),N=e.useRef(null);e.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(e=N.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}}));const P=b("input",i),M=wl(P),[j,R,_]=Hm(P,M),[A,T]=Nd("textArea",g,a),F=zv(null!=u?u:null==w?void 0:w.allowClear);return j(e.createElement(vg,Object.assign({autoComplete:null==w?void 0:w.autoComplete},h,{style:Object.assign(Object.assign({},null==w?void 0:w.style),m),styles:Object.assign(Object.assign({},null==w?void 0:w.styles),v),disabled:C,allowClear:F,className:I(_,M,p,f,null==w?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==w?void 0:w.classNames),{textarea:I({[`${P}-sm`]:"small"===x,[`${P}-lg`]:"large"===x},R,null==d?void 0:d.textarea,null===(r=null==w?void 0:w.classNames)||void 0===r?void 0:r.textarea),variant:I({[`${P}-${A}`]:T},kd(P,O)),affixWrapper:I(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:"rtl"===y,[`${P}-affix-wrapper-sm`]:"small"===x,[`${P}-affix-wrapper-lg`]:"large"===x,[`${P}-textarea-show-count`]:t.showCount||(null===(o=t.count)||void 0===o?void 0:o.show)},R)}),prefixCls:P,suffix:$&&e.createElement("span",{className:`${P}-textarea-suffix`},k),ref:N})))})),bg=Hv;bg.Group=t=>{const{getPrefixCls:n,direction:r}=o(Qo),{prefixCls:i,className:a}=t,l=n("input-group",i),c=n("input"),[s,d]=Hm(c),f=I(l,{[`${l}-lg`]:"large"===t.size,[`${l}-sm`]:"small"===t.size,[`${l}-compact`]:t.compact,[`${l}-rtl`]:"rtl"===r},d,a),p=o(Eu),m=u((()=>Object.assign(Object.assign({},p),{isFormItemInput:!1})),[p]);if("production"!==process.env.NODE_ENV){Nr("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return s(e.createElement("span",{className:f,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(Eu.Provider,{value:m},t.children)))},bg.Search=lg,bg.TextArea=hg,bg.Password=ig,bg.OTP=Uv;const yg=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},wg=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:s,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:m,motionDurationSlow:v,fontSize:g,borderRadius:h,bodyBg:b,headerBg:y,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:Bt(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}}}},yg(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:s,lineHeight:Bt(l),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:g,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}};var xg=Vi("Layout",(e=>[wg(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Eg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Cg(t){let{suffixCls:n,tagName:r,displayName:o}=t;return t=>{const i=e.forwardRef(((o,i)=>e.createElement(t,Object.assign({ref:i,suffixCls:n,tagName:r},o))));return"production"!==process.env.NODE_ENV&&(i.displayName=o),i}}const Sg=e.forwardRef(((t,n)=>{const{prefixCls:r,suffixCls:o,className:i,tagName:a}=t,l=Eg(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=e.useContext(Qo),s=c("layout",r),[u,d,f]=xg(s),p=o?`${s}-${o}`:s;return u(e.createElement(a,Object.assign({className:I(r||p,i,d,f),ref:n},l)))})),$g=e.forwardRef(((t,n)=>{const{direction:r}=e.useContext(Qo),[o,i]=e.useState([]),{prefixCls:a,className:l,rootClassName:c,children:s,hasSider:u,tagName:d,style:f}=t,p=We(Eg(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:m,layout:v}=e.useContext(Qo),g=m("layout",a),h=function(e,t,n){return"boolean"==typeof n?n:!!e.length||B(t).some((e=>e.type===qp))}(o,s,u),[b,y,w]=xg(g),x=I(g,{[`${g}-has-sider`]:h,[`${g}-rtl`]:"rtl"===r},null==v?void 0:v.className,l,c,y,w),E=e.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Ke(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return b(e.createElement(Dp.Provider,{value:E},e.createElement(d,Object.assign({ref:n,className:x,style:Object.assign(Object.assign({},null==v?void 0:v.style),f)},p),s)))})),kg=Cg({tagName:"div",displayName:"Layout"})($g),Og=Cg({suffixCls:"header",tagName:"header",displayName:"Header"})(Sg),Ng=Cg({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Sg),Pg=Cg({suffixCls:"content",tagName:"main",displayName:"Content"})(Sg),Ig=kg;function Mg(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Ig.Header=Og,Ig.Footer=Ng,Ig.Content=Pg,Ig.Sider=qp,Ig._InternalSiderContext=Vp;Mg(".appInput {\n font-size: var(--font-14);\n font-weight: 500;\n color: #1e1f21;\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: 14px;\n text-align: left;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n &:hover {\n .ant-input {\n border-color: #d9d9d9;\n }\n }\n\n &:has(.ant-input-affix-wrapper) {\n .ant-input {\n border: none !important;\n height: unset !important;\n }\n }\n .ant-input-affix-wrapper {\n height: 40px;\n display: flex;\n align-items: center;\n .ant-input-outlined:focus-within {\n box-shadow: unset !important;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n }\n .ant-input-outlined {\n height: 40px;\n &:hover {\n border-color: #d9d9d9;\n }\n &:focus {\n box-shadow: unset;\n }\n &:focus-within {\n box-shadow: unset;\n border-color: #d9d9d9;\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var jg=function(e){var t=e.className,n=e.label,r=e.name,o=e.value,i=e.dataTestId,l=e.type,s=e.id,u=e.disabled,d=e.handleChange,f=e.onClick,p=e.defaultValue,m=e.onPressEnter,v=e.isAutoFocus,g=e.triggerFocus,h=e.isOptional,b=e.errorMessage,y=e.suffixIcon,w=e.prefixIcon,x=a(null);c((function(){v&&x.current&&x.current.focus()}),[g,v]);var E=h?"".concat(n," (optional)"):n;return N.jsxs("div",{className:"appInput ".concat(t),children:[N.jsx(bg,{type:l,"data-test-id":i,id:s,disabled:u,name:r,className:"input",value:o,onChange:d,onClick:f,defaultValue:p,onPressEnter:m,placeholder:E,ref:x,prefix:w&&w,suffix:y&&y}),b&&N.jsx("div",{className:"error",children:b})]})};Mg(".appButton {\n width: max-content;\n\n .ant-btn {\n background-color: red;\n padding: 12px;\n &:hover {\n border-color: transparent !important;\n outline: unset !important;\n box-shadow: unset !important;\n }\n }\n}\n");var Rg=function(e){var t=e.type,n=e.size,r=e.className,o=e.handleClick,i=e.icon,a=e.text,l=e.disabled,c=e.iconPosition,s=e.isLoading;return N.jsx("div",{className:"appButton ".concat(r),children:N.jsx(rs,{disabled:l,type:t,className:["customBtn",i?"btn-icon":"","right"===c?"iconRight":""].join(" "),size:n,onClick:o,icon:i,loading:s,children:a})})};Mg('.sideBar {\n height: 100vh;\n .sider {\n height: 100%;\n .ant-layout-sider-children {\n height: 100%;\n display: flex;\n flex-direction: column;\n row-gap: 2.875rem;\n .ant-menu {\n border: none;\n }\n }\n }\n}\n\n.logo {\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px;\n}\n\n.menu {\n border-right: 0;\n}\n\n.footer {\n position: relative;\n &::before {\n content: "";\n height: 1px;\n width: 80%;\n position: absolute;\n top: 0;\n right: 50%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #acacac;\n }\n}\n\n.tag {\n margin-left: 8px;\n}\n');var _g=Ig.Sider,Ag=function(e){var t=e.links,n=e.logo,r=e.footerLinks,o=e.className,i=function(e){window.location.href=e},a=t.map((function(e){return{key:e.path,icon:e.icon,label:N.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&N.jsx("span",{className:"tag",children:e.tag})]})}})),l=null==r?void 0:r.map((function(e){return{key:e.path,label:N.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return N.jsx("div",{className:"sideBar ".concat(o),children:N.jsxs(_g,{className:"sider",children:[N.jsx("div",{className:"logo",children:n}),N.jsx(vm,{mode:"inline",className:"menu",items:a}),r&&N.jsx("div",{className:"footer",children:N.jsx(vm,{mode:"inline",items:l})})]})})};Mg(".appTextArea {\n .ant-input-outlined {\n border-color: #bfbebe;\n &:hover {\n border-color: #bfbebe;\n }\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var Tg=function(e){var t=e.id,n=e.placeholder,r=e.name,o=e.value,i=e.dataTestId,a=e.defaultValue,l=e.onPressEnter,c=e.handleChange,s=e.rows,u=e.cols,d=e.className,f=e.error;return N.jsxs("div",{className:"appTextArea ".concat(d),children:[N.jsx(bg.TextArea,{"data-test-id":i,id:t,name:r,placeholder:n,value:o,className:"textArea",onChange:c,defaultValue:a,onPressEnter:l,rows:s,cols:u}),f&&N.jsx("div",{className:"error",children:f})]})};Mg(".appTab {\n .tab {\n .ant-tabs-nav {\n &::before {\n border: unset !important;\n }\n .ant-tabs-nav-wrap {\n .ant-tabs-nav-list {\n display: flex;\n gap: 3.5rem;\n align-items: center;\n .ant-tabs-tab {\n margin: 0;\n }\n .ant-tabs-ink-bar {\n display: none;\n }\n }\n }\n }\n }\n}\n");var Fg=function(e){var t=e.className,n=e.items,r=e.handleChange,o=e.defaultActiveKey;return N.jsx("div",{className:"appTab ".concat(t),children:N.jsx(Mv,{defaultActiveKey:o,items:n,onChange:r,className:"tab"})})};export{Rg as AppButton,jg as AppInput,Ag as AppSidebar,Fg as AppTab,Tg as AppTextarea};
25
+ */"production"===process.env.NODE_ENV?R.exports=function(){if(M)return T;M=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case s:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),T.ContextConsumer=l,T.ContextProvider=a,T.Element=t,T.ForwardRef=s,T.Fragment=r,T.Lazy=p,T.Memo=f,T.Portal=n,T.Profiler=i,T.StrictMode=o,T.Suspense=u,T.SuspenseList=d,T.isAsyncMode=function(){return!1},T.isConcurrentMode=function(){return!1},T.isContextConsumer=function(e){return g(e)===l},T.isContextProvider=function(e){return g(e)===a},T.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},T.isForwardRef=function(e){return g(e)===s},T.isFragment=function(e){return g(e)===r},T.isLazy=function(e){return g(e)===p},T.isMemo=function(e){return g(e)===f},T.isPortal=function(e){return g(e)===n},T.isProfiler=function(e){return g(e)===i},T.isStrictMode=function(e){return g(e)===o},T.isSuspense=function(e){return g(e)===u},T.isSuspenseList=function(e){return g(e)===d},T.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},T.typeOf=g,T}():R.exports=(_||(_=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var g=e.type;switch(g){case r:case i:case o:case u:case d:return g;default:var v=g&&g.$$typeof;switch(v){case c:case l:case s:case p:case f:case a:return v;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var v=l,h=a,b=t,y=s,x=r,w=p,C=f,E=n,S=i,$=o,O=u,k=d,N=!1,j=!1;A.ContextConsumer=v,A.ContextProvider=h,A.Element=b,A.ForwardRef=y,A.Fragment=x,A.Lazy=w,A.Memo=C,A.Portal=E,A.Profiler=S,A.StrictMode=$,A.Suspense=O,A.SuspenseList=k,A.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},A.isConcurrentMode=function(e){return j||(j=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},A.isContextConsumer=function(e){return g(e)===l},A.isContextProvider=function(e){return g(e)===a},A.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},A.isForwardRef=function(e){return g(e)===s},A.isFragment=function(e){return g(e)===r},A.isLazy=function(e){return g(e)===p},A.isMemo=function(e){return g(e)===f},A.isPortal=function(e){return g(e)===n},A.isProfiler=function(e){return g(e)===i},A.isStrictMode=function(e){return g(e)===o},A.isSuspense=function(e){return g(e)===u},A.isSuspenseList=function(e){return g(e)===d},A.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===s||t.$$typeof===e||void 0!==t.getModuleId)},A.typeOf=g}()),A);var B=R.exports;function L(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(L(e)):B.isFragment(e)&&e.props?r=r.concat(L(e.props.children,n)):r.push(e))})),r}var F={},z=[];function D(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=z.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function H(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=z.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function V(){F={}}function W(e,t,n){t||F[n]||(e(!1,n),F[n]=!0)}function q(e,t){W(D,e,t)}function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function K(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=X(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:t+""}function G(e,t,n){return(t=K(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(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 Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e){return e instanceof HTMLElement||e instanceof SVGElement}function Q(e){var n,r=function(e){return e&&"object"===X(e)&&Z(e.nativeElement)?e.nativeElement:Z(e)?e:null}(e);return r||(e instanceof t.Component?null===(n=b.findDOMNode)||void 0===n?void 0:n.call(b,e):null)}function J(t,n,r){var o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}q.preMessage=function(e){z.push(e)},q.resetWarned=V,q.noteOnce=function(e,t){W(H,e,t)};var ee=function(e,t){"function"==typeof e?e(t):"object"===X(e)&&e&&"current"in e&&(e.current=t)},te=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){ee(t,e)}))}},ne=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return J((function(){return te.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},re=function(e){var t,n,r=B.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===B.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===B.ForwardRef)};Number(n.split(".")[0]);var oe=e.createContext(null);var ie=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),ae="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,le="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ce="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(le):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var se=["top","right","bottom","left","width","height","size","weight"],ue="undefined"!=typeof MutationObserver,de=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){ce(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){ae&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ue?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){ae&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;se.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),fe=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},pe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||le},me=xe(0,0,0,0);function ge(e){return parseFloat(e)||0}function ve(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ge(e["border-"+n+"-width"])}),0)}function he(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return me;var r=pe(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=ge(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=ge(r.width),c=ge(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=ve(r,"left","right")+i),Math.round(c+a)!==n&&(c-=ve(r,"top","bottom")+a)),!function(e){return e===pe(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return xe(o.left,o.top,l,c)}var be="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof pe(e).SVGGraphicsElement}:function(e){return e instanceof pe(e).SVGElement&&"function"==typeof e.getBBox};function ye(e){return ae?be(e)?function(e){var t=e.getBBox();return xe(0,0,t.width,t.height)}(e):he(e):me}function xe(e,t,n,r){return{x:e,y:t,width:n,height:r}}var we=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xe(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ye(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Ce=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),fe(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);fe(this,{target:e,contentRect:s})},Ee=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ie,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof pe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new we(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof pe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Ce(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Se="undefined"!=typeof WeakMap?new WeakMap:new ie,$e=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=de.getInstance(),r=new Ee(t,n,this);Se.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){$e.prototype[e]=function(){var t;return(t=Se.get(this))[e].apply(t,arguments)}}));var Oe=void 0!==le.ResizeObserver?le.ResizeObserver:$e,ke=new Map;function Ne(e){e.forEach((function(e){var t,n=e.target;null===(t=ke.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var je=new Oe(Ne);function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(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,K(r.key),r)}}function Me(e,t,n){return t&&Ie(e.prototype,t),n&&Ie(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Re(e,t){return Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Re(e,t)}function Te(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&&Re(e,t)}function _e(e){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_e(e)}function Ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ae=function(){return!!e})()}function Be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Le(e){var t=Ae();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Be(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Fe=function(){Te(n,e.Component);var t=Le(n);function n(){return Pe(this,n),t.apply(this,arguments)}return Me(n,[{key:"render",value:function(){return this.props.children}}]),n}();function ze(t,n){var r=t.children,o=t.disabled,i=e.useRef(null),a=e.useRef(null),l=e.useContext(oe),c="function"==typeof r,s=c?r(i):r,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&e.isValidElement(s)&&re(s),f=d?s.ref:null,p=ne(f,i),m=function(){var e;return Q(i.current)||(i.current&&"object"===X(i.current)?Q(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Q(a.current)};e.useImperativeHandle(n,(function(){return m()}));var g=e.useRef(t);g.current=t;var v=e.useCallback((function(e){var t=g.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var m=c===Math.round(i)?i:c,v=s===Math.round(a)?a:s,h=Y(Y({},p),{},{offsetWidth:m,offsetHeight:v});null==l||l(h,e,r),n&&Promise.resolve().then((function(){n(h,e)}))}}),[]);return e.useEffect((function(){var e,t,n=m();return n&&!o&&(e=n,t=v,ke.has(e)||(ke.set(e,new Set),je.observe(e)),ke.get(e).add(t)),function(){return function(e,t){ke.has(e)&&(ke.get(e).delete(t),ke.get(e).size||(je.unobserve(e),ke.delete(e)))}(n,v)}}),[i.current,o]),e.createElement(Fe,{ref:a},d?e.cloneElement(s,{ref:p}):s)}var De=e.forwardRef(ze);"production"!==process.env.NODE_ENV&&(De.displayName="SingleObserver");function He(t,n){var r=t.children,o="function"==typeof r?[r]:L(r);return"production"!==process.env.NODE_ENV&&(o.length>1?D(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===o.length&&D(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((function(r,o){var i=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return e.createElement(De,I({},t,{key:i,ref:0===o?n:void 0}),r)}))}var Ve=e.forwardRef(He);function We(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function qe(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 Xe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ke(e,t){if(e){if("string"==typeof e)return qe(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)?qe(e,t):void 0}}function Ge(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||Xe(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.")}()}"production"!==process.env.NODE_ENV&&(Ve.displayName="ResizeObserver"),Ve.Collection=function(t){var n=t.children,r=t.onBatchResize,o=e.useRef(0),i=e.useRef([]),a=e.useContext(oe),l=e.useCallback((function(e,t,n){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){l===o.current&&(null==r||r(i.current),i.current=[])})),null==a||a(e,t,n)}),[r,a]);return e.createElement(oe.Provider,{value:l},n)};var Ue=function(e){return+setTimeout(e,16)},Ye=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ue=function(e){return window.requestAnimationFrame(e)},Ye=function(e){return window.cancelAnimationFrame(e)});var Ze=0,Qe=new Map;function Je(e){Qe.delete(e)}var et=function(e){var t=Ze+=1;return function n(r){if(0===r)Je(t),e();else{var o=Ue((function(){n(r-1)}));Qe.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function tt(e){if(Array.isArray(e))return e}function nt(){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 rt(e,t){return tt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||Ke(e,t)||nt()}function ot(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 it(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}et.cancel=function(e){var t=Qe.get(e);return Je(e),Ye(t)},"production"!==process.env.NODE_ENV&&(et.ids=function(){return Qe});var at="data-rc-order",lt="data-rc-priority",ct="rc-util-key",st=new Map;function ut(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):ct}function dt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ft(e){return Array.from((st.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!it())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(at,a),l&&i&&c.setAttribute(lt,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=dt(t),u=s.firstChild;if(r){if(l){var d=(t.styles||ft(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(at)))return!1;var t=Number(e.getAttribute(lt)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=dt(t);return(t.styles||ft(n)).find((function(n){return n.getAttribute(ut(t))===e}))}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=mt(e,t);n&&dt(t).removeChild(n)}function vt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=dt(n),o=ft(r),i=Y(Y({},n),{},{styles:o});!function(e,t){var n=st.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=pt("",t),o=r.parentNode;st.set(e,o),e.removeChild(r)}}(r,i);var a=mt(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=pt(e,i);return u.setAttribute(ut(i),t),u}function ht(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(q(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===X(t)&&"object"===X(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)}var yt="%";function xt(e){return e.join(yt)}var wt=function(){function e(t){Pe(this,e),G(this,"instanceId",void 0),G(this,"cache",new Map),this.instanceId=t}return Me(e,[{key:"get",value:function(e){return this.opGet(xt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(xt(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),Ct="data-token-hash",Et="data-css-hash",St="data-cache-path",$t="__cssinjs_instance__";var Ot=e.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Et,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[$t]=t[$t]||e,t[$t]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Et,"]"))).forEach((function(t){var n,o=t.getAttribute(Et);r[o]?t[$t]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new wt(e)}(),defaultCache:!0});var kt=function(){function e(){Pe(this,e),G(this,"cache",void 0),G(this,"keys",void 0),G(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Me(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=rt(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=rt(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();G(kt,"MAX_CACHE_SIZE",20),G(kt,"MAX_CACHE_OFFSET",5);var Nt=0,jt=function(){function e(t){Pe(this,e),G(this,"derivatives",void 0),G(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Nt,0===t.length&&D(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Nt+=1}return Me(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Pt=new kt;function It(e){var t=Array.isArray(e)?e:[e];return Pt.has(t)||Pt.set(t,new jt(t)),Pt.get(t)}var Mt=new WeakMap,Rt={};var Tt=new WeakMap;function _t(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Tt.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof jt?n+=o.id:o&&"object"===X(o)?n+=_t(o,t):n+=o})),t&&(n=ot(n)),Tt.set(e,n)),n}function At(e,t){return ot("".concat(t,"_").concat(_t(e,!0)))}var Bt=it();function Lt(e){return"number"==typeof e?"".concat(e,"px"):e}function Ft(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=Y(Y({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},G(G({},Ct,t),Et,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var zt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Dt=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=rt(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Ht=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=rt(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=zt(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,Dt(r,t,{scope:null==n?void 0:n.scope})]},Vt="test"!==process.env.NODE_ENV&&it()?e.useLayoutEffect:e.useEffect,Wt=function(t,n){var r=e.useRef(!0);Vt((function(){return t(r.current)}),n),Vt((function(){return r.current=!1,function(){r.current=!0}}),[])},qt=function(e,t){Wt((function(t){if(!t)return e()}),t)},Xt=Y({},e).useInsertionEffect,Kt=Xt?function(e,t,n){return Xt((function(){return e(),t()}),n)}:function(t,n,r){e.useMemo(t,r),Wt((function(){return n(!0)}),r)},Gt=void 0!==Y({},e).useInsertionEffect?function(t){var n=[],r=!1;return e.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){r?"production"!==process.env.NODE_ENV&&D(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):n.push(e)}}:function(){return function(e){e()}};var Ut=!1;var Yt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Ut};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var Zt=window;if("function"==typeof Zt.webpackHotUpdate){var Qt=Zt.webpackHotUpdate;Zt.webpackHotUpdate=function(){return Ut=!0,setTimeout((function(){Ut=!1}),0),Qt.apply(void 0,arguments)}}}function Jt(t,n,r,o,i){var a=e.useContext(Ot).cache,l=xt([t].concat(Ge(n))),c=Gt([l]),s=Yt(),u=function(e){a.opUpdate(l,(function(t){var n=rt(t||[void 0,void 0],2),i=n[0],a=void 0===i?0:i,l=n[1],c=l;"production"!==process.env.NODE_ENV&&l&&s&&(null==o||o(c,s),c=null);var u=[a,c||r()];return e?e(u):u}))};e.useMemo((function(){u()}),[l]);var d=a.opGet(l);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(l));var f=d[1];return Kt((function(){null==i||i(f)}),(function(e){return u((function(t){var n=rt(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(f)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=rt(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null==o||o(s,!1)})),null):[i-1,s]}))}}),[l]),f}var en={},tn="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",nn=new Map;var rn=0;function on(e,t){nn.set(e,(nn.get(e)||0)-1);var n=Array.from(nn.keys()),r=n.filter((function(e){return(nn.get(e)||0)<=0}));n.length-r.length>rn&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Ct,'="').concat(e,'"]')).forEach((function(e){var n;e[$t]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),nn.delete(e)}))}var an=function(e,t,n,r){var o=Y(Y({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},ln="token";function cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(Ot),i=r.cache.instanceId,a=r.container,l=n.salt,c=void 0===l?"":l,s=n.override,u=void 0===s?en:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,m=function(e,t){for(var n=Mt,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Rt)||n.set(Rt,e()),n.get(Rt)}((function(){return Object.assign.apply(Object,[{}].concat(Ge(t)))}),t),g=_t(m),v=_t(u),h=p?_t(p):"",b=Jt(ln,[c,e.id,g,v,h],(function(){var t,n=f?f(m,u,e):an(m,u,e,d),r=Y({},n),o="";if(p){var i=rt(Ht(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=At(n,c);n._tokenKey=a,r._tokenKey=At(r,c);var l=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){nn.set(e,(nn.get(e)||0)+1)}(l);var s="".concat(tn,"-").concat(ot(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){on(e[0]._themeKey,i)}),(function(e){var t=rt(e,4),n=t[0],r=t[3];if(p&&r){var o=vt(r,ot("css-variables-".concat(n._themeKey)),{mark:Et,prepend:"queue",attachTo:a,priority:-999});o[$t]=i,o.setAttribute(Ct,n._themeKey)}}));return b}var sn={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},un="comm",dn="rule",fn="decl",pn="@import",mn="@keyframes",gn="@layer",vn=Math.abs,hn=String.fromCharCode;function bn(e){return e.trim()}function yn(e,t,n){return e.replace(t,n)}function xn(e,t,n){return e.indexOf(t,n)}function wn(e,t){return 0|e.charCodeAt(t)}function Cn(e,t,n){return e.slice(t,n)}function En(e){return e.length}function Sn(e,t){return t.push(e),e}var $n=1,On=1,kn=0,Nn=0,jn=0,Pn="";function In(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$n,column:On,length:a,return:"",siblings:l}}function Mn(){return jn=Nn>0?wn(Pn,--Nn):0,On--,10===jn&&(On=1,$n--),jn}function Rn(){return jn=Nn<kn?wn(Pn,Nn++):0,On++,10===jn&&(On=1,$n++),jn}function Tn(){return wn(Pn,Nn)}function _n(){return Nn}function An(e,t){return Cn(Pn,e,t)}function Bn(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 bn(An(Nn-1,Dn(91===e?e+2:40===e?e+1:e)))}function Fn(e){for(;(jn=Tn())&&jn<33;)Rn();return Bn(e)>2||Bn(jn)>3?"":" "}function zn(e,t){for(;--t&&Rn()&&!(jn<48||jn>102||jn>57&&jn<65||jn>70&&jn<97););return An(e,_n()+(t<6&&32==Tn()&&32==Rn()))}function Dn(e){for(;Rn();)switch(jn){case e:return Nn;case 34:case 39:34!==e&&39!==e&&Dn(jn);break;case 40:41===e&&Dn(e);break;case 92:Rn()}return Nn}function Hn(e,t){for(;Rn()&&e+jn!==57&&(e+jn!==84||47!==Tn()););return"/*"+An(t,Nn-1)+"*"+hn(47===e?e:Rn())}function Vn(e){for(;!Bn(Tn());)Rn();return An(e,Nn)}function Wn(e){return function(e){return Pn="",e}(qn("",null,null,null,[""],e=function(e){return $n=On=1,kn=En(Pn=e),Nn=0,[]}(e),0,[0],e))}function qn(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,g=1,v=1,h=1,b=0,y="",x=o,w=i,C=r,E=y;v;)switch(m=b,b=Rn()){case 40:if(108!=m&&58==wn(E,d-1)){-1!=xn(E+=yn(Ln(b),"&","&\f"),"&\f",vn(s?l[s-1]:0))&&(h=-1);break}case 34:case 39:case 91:E+=Ln(b);break;case 9:case 10:case 13:case 32:E+=Fn(m);break;case 92:E+=zn(_n()-1,7);continue;case 47:switch(Tn()){case 42:case 47:Sn(Kn(Hn(Rn(),_n()),t,n,c),c),5!=Bn(m||1)&&5!=Bn(Tn()||1)||!En(E)||" "===Cn(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*g:l[s++]=En(E)*h;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==h&&(E=yn(E,/\f/g,"")),p>0&&(En(E)-d||0===g&&47===m)&&Sn(p>32?Gn(E+";",r,n,d-1,c):Gn(yn(E," ","")+";",r,n,d-2,c),c);break;case 59:E+=";";default:if(Sn(C=Xn(E,t,n,s,u,o,l,y,x=[],w=[],d,i),i),123===b)if(0===u)qn(E,t,C,C,x,i,d,l,w);else switch(99===f&&110===wn(E,3)?100:f){case 100:case 108:case 109:case 115:qn(e,C,C,r&&Sn(Xn(e,C,C,0,0,o,l,y,o,x=[],d,w),w),o,w,d,l,r?x:w);break;default:qn(E,C,C,C,[""],w,0,l,w)}}s=u=p=0,g=h=1,y=E="",d=a;break;case 58:d=1+En(E),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Mn())continue;switch(E+=hn(b),b*g){case 38:h=u>0?1:(E+="\f",-1);break;case 44:l[s++]=(En(E)-1)*h,h=1;break;case 64:45===Tn()&&(E+=Ln(Rn())),f=Tn(),u=d=En(y=E+=Vn(_n())),b++;break;case 45:45===m&&2==En(E)&&(g=0)}}return i}function Xn(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),g=0,v=0,h=0;g<r;++g)for(var b=0,y=Cn(e,f+1,f=vn(v=a[g])),x=e;b<m;++b)(x=bn(v>0?p[b]+" "+y:yn(y,/&\f/g,p[b])))&&(c[h++]=x);return In(e,t,n,0===o?dn:l,c,s,u,d)}function Kn(e,t,n,r){return In(e,t,n,un,hn(jn),Cn(e,2,-2),0,r)}function Gn(e,t,n,r,o){return In(e,t,n,fn,Cn(e,0,r),Cn(e,r+1,-1),r,o)}function Un(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Yn(e,t,n,r){switch(e.type){case gn:if(e.children.length)break;case pn:case fn:return e.return=e.return||e.value;case un:return"";case mn:return e.return=e.value+"{"+Un(e.children,r)+"}";case dn:if(!En(e.value=e.props.join(",")))return""}return En(n=Un(e.children,r))?e.return=e.value+"{"+n+"}":""}function Zn(e,t){var n=t.path,r=t.parentSelectors;q(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var Qn,Jn=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&Zn("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},er=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&Zn("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},tr="data-ant-cssinjs-cache-path",nr="_FILE_STYLE__",rr=!0;function or(e){return function(){if(!Qn&&(Qn={},it())){var e=document.createElement("div");e.className=tr,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=rt(e.split(":"),2),n=t[0],r=t[1];Qn[n]=r}));var n,r=document.querySelector("style[".concat(tr,"]"));r&&(rr=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Qn[e]}var ir="_skip_check_",ar="_multi_value_";function lr(e){return Un(Wn(e),Yn).replace(/\{%%%\:[^;];}/g,";")}function cr(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Ge(n.slice(1))).join(" ")})).join(",")}var sr=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=n.path,u=n.hashPriority,d=n.transformers,f=void 0===d?[]:d,p=n.linters,m=void 0===p?[]:p,g="",v={};function h(t){var r=t.getName(l);if(!v[r]){var o=rt(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];v[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)g+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==X(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===X(e)&&e&&(ir in e||ar in e)}(r)){var d;function E(e,t){"production"===process.env.NODE_ENV||"object"===X(r)&&null!=r&&r[ir]||[Jn,er].concat(Ge(m)).forEach((function(n){return n(e,t,{path:s,hashId:l,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;sn[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),o=t.getName(l)),g+="".concat(n,":").concat(o,";")}var f=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===X(r)&&null!=r&&r[ar]&&Array.isArray(f)?f.forEach((function(e){E(t,e)})):E(t,f)}else{var p=!1,b=t.trim(),y=!1;(o||i)&&l?b.startsWith("@")?p=!0:b=cr("&"===b?"":t,l,u):!o||l||"&"!==b&&""!==b||(b="",y=!0);var x=rt(e(r,n,{root:y,injectHash:p,parentSelectors:[].concat(Ge(a),[b])}),2),w=x[0],C=x[1];v=Y(Y({},v),C),g+="".concat(b).concat(w)}}))}})),o?c&&(g="@layer ".concat(c.name," {").concat(g,"}"),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,v]};function ur(e,t){return ot("".concat(e.join("%")).concat(t))}function dr(){return null}var fr="style";function pr(t,n){var r=t.token,o=t.path,i=t.hashId,a=t.layer,l=t.nonce,c=t.clientOnly,s=t.order,u=void 0===s?0:s,d=e.useContext(Ot),f=d.autoClear,p=d.mock,m=d.defaultCache,g=d.hashPriority,v=d.container,h=d.ssrInline,b=d.transformers,y=d.linters,x=d.cache,w=d.layer,C=r._tokenKey,E=[C];w&&E.push("layer"),E.push.apply(E,Ge(o));var S=Bt;"production"!==process.env.NODE_ENV&&void 0!==p&&(S="client"===p);var $=Jt(fr,E,(function(){var e=E.join("|");if(or(e)){var t=function(e){var t=Qn[e],n=null;if(t&&it())if(rr)n=nr;else{var r=document.querySelector("style[".concat(Et,'="').concat(Qn[e],'"]'));r?n=r.innerHTML:delete Qn[e]}return[n,t]}(e),r=rt(t,2),l=r[0],s=r[1];if(l)return[l,C,s,{},c,u]}var d=n(),f=rt(sr(d,{hashId:i,hashPriority:g,layer:w?a:void 0,path:o.join("-"),transformers:b,linters:y}),2),p=f[0],m=f[1],v=lr(p),h=ur(E,v);return[v,C,h,m,c,u]}),(function(e,t){var n=rt(e,3)[2];(t||f)&&Bt&&gt(n,{mark:Et})}),(function(e){var t=rt(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(S&&n!==nr){var i={mark:Et,prepend:!w&&"queue",attachTo:v,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){vt(lr(o[e]),"_layer-".concat(e),Y(Y({},i),{},{prepend:!0}))}));var d=vt(n,r,i);d[$t]=x.instanceId,d.setAttribute(Ct,C),"production"!==process.env.NODE_ENV&&d.setAttribute(St,E.join("|")),s.forEach((function(e){vt(lr(o[e]),"_effect-".concat(e),i)}))}})),O=rt($,3),k=O[0],N=O[1],j=O[2];return function(t){var n;return n=h&&!S&&m?e.createElement("style",I({},G(G({},Ct,N),Et,j),{dangerouslySetInnerHTML:{__html:k}})):e.createElement(dr,null),e.createElement(e.Fragment,null,n,t)}}var mr="cssVar";G(G(G({},fr,(function(e,t,n){var r=rt(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=Ft(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Ft(lr(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),ln,(function(e,t,n){var r=rt(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,Ft(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),mr,(function(e,t,n){var r=rt(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Ft(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var gr=function(){function e(t,n){Pe(this,e),G(this,"name",void 0),G(this,"style",void 0),G(this,"_keyframe",!0),this.name=t,this.style=n}return Me(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function vr(e){return e.notSplit=!0,e}vr(["borderTop","borderBottom"]),vr(["borderTop"]),vr(["borderBottom"]),vr(["borderLeft","borderRight"]),vr(["borderLeft"]),vr(["borderRight"]);var hr=i({});function br(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function yr(e,t,n,r){if(!t.length)return n;var o,i,a=tt(o=t)||Xe(o)||Ke(o)||nt(),l=a[0],c=a.slice(1);return i=e||"number"!=typeof l?Array.isArray(e)?Ge(e):Y({},e):[],r&&void 0===n&&1===c.length?delete i[l][c[0]]:i[l]=yr(i[l],c,n,r),i}function xr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!br(e,t.slice(0,-1))?e:yr(e,t,n,r)}function wr(e){return Array.isArray(e)?[]:{}}var Cr="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Er(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=wr(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=br(e,n),c=Array.isArray(l);if(c||"object"===X(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=br(r,n);c?r=xr(r,n,[]):s&&"object"===X(s)||(r=xr(r,n,wr(l))),Cr(l).forEach((function(e){t([].concat(Ge(n),[e]),a)}))}}else r=xr(r,n,l)}([])})),r}function Sr(){}let $r=null;let Or=Sr;"production"!==process.env.NODE_ENV&&(Or=(e,t,n)=>{q(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&($r=null,V())});const kr=e.createContext({}),Nr="production"!==process.env.NODE_ENV?t=>{const{strict:n}=e.useContext(kr),r=(e,r,o)=>{if(!e)if(!1===n&&"deprecated"===r){const e=$r;$r||($r={}),$r[t]=$r[t]||[],$r[t].includes(o||"")||$r[t].push(o||""),e||console.warn("[antd] There exists deprecated usage in your code:",$r)}else"production"!==process.env.NODE_ENV&&Or(e,t,o)};return r.deprecated=(e,t,n,o)=>{r(e,"deprecated",`\`${t}\` is deprecated. Please use \`${n}\` instead.${o?` ${o}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=Sr,e};var jr=Or,Pr=i(void 0),Ir=Y(Y({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Mr={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Rr={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Ir),timePickerLocale:Object.assign({},Mr)},Tr="${label} is not a valid ${type}",_r={locale:"en",Pagination:{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"},DatePicker:Rr,TimePicker:Mr,Calendar:Rr,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Tr,method:Tr,array:Tr,object:Tr,number:Tr,date:Tr,boolean:Tr,integer:Tr,float:Tr,regexp:Tr,email:Tr,url:Tr,hex:Tr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},_r.Modal);let Ar=[];const Br=()=>Ar.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),_r.Modal);const Lr=i(void 0),Fr="internalMark",zr=t=>{const{locale:n={},children:r,_ANT_MARK__:o}=t;if("production"!==process.env.NODE_ENV){const e=Nr("LocaleProvider");"production"!==process.env.NODE_ENV&&e(o===Fr,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}e.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Ar.push(t),Br(),()=>{Ar=Ar.filter((e=>e!==t)),Br()}}Object.assign({},_r.Modal)}(null==n?void 0:n.Modal);return e}),[n]);const i=e.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return e.createElement(Lr.Provider,{value:i},r)};function Dr(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Hr(e){return Math.min(1,Math.max(0,e))}function Vr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wr(e){return e<=1?"".concat(100*Number(e),"%"):e}function qr(e){return 1===e.length?"0"+e:String(e)}function Xr(e,t,n){e=Dr(e,255),t=Dr(t,255),n=Dr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function Kr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Gr(e,t,n){e=Dr(e,255),t=Dr(t,255),n=Dr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function Ur(e,t,n,r){var o=[qr(Math.round(e).toString(16)),qr(Math.round(t).toString(16)),qr(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Yr(e){return Zr(e)/255}function Zr(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(zr.displayName="LocaleProvider");var Qr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Jr(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,l=null,c=null,s=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Qr[e])e=Qr[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ro.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ro.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ro.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=ro.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ro.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=ro.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ro.hex8.exec(e),n)return{r:Zr(n[1]),g:Zr(n[2]),b:Zr(n[3]),a:Yr(n[4]),format:t?"name":"hex8"};if(n=ro.hex6.exec(e),n)return{r:Zr(n[1]),g:Zr(n[2]),b:Zr(n[3]),format:t?"name":"hex"};if(n=ro.hex4.exec(e),n)return{r:Zr(n[1]+n[1]),g:Zr(n[2]+n[2]),b:Zr(n[3]+n[3]),a:Yr(n[4]+n[4]),format:t?"name":"hex8"};if(n=ro.hex3.exec(e),n)return{r:Zr(n[1]+n[1]),g:Zr(n[2]+n[2]),b:Zr(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(oo(e.r)&&oo(e.g)&&oo(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Dr(t,255),g:255*Dr(n,255),b:255*Dr(r,255)},s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):oo(e.h)&&oo(e.s)&&oo(e.v)?(a=Wr(e.s),l=Wr(e.v),o=function(e,t,n){e=6*Dr(e,360),t=Dr(t,100),n=Dr(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,a,l),s=!0,u="hsv"):oo(e.h)&&oo(e.s)&&oo(e.l)&&(a=Wr(e.s),c=Wr(e.l),o=function(e,t,n){var r,o,i;if(e=Dr(e,360),t=Dr(t,100),n=Dr(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Kr(l,a,e+1/3),o=Kr(l,a,e),i=Kr(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Vr(i),{ok:s,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var eo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),to="[\\s|\\(]+(".concat(eo,")[,|\\s]+(").concat(eo,")[,|\\s]+(").concat(eo,")\\s*\\)?"),no="[\\s|\\(]+(".concat(eo,")[,|\\s]+(").concat(eo,")[,|\\s]+(").concat(eo,")[,|\\s]+(").concat(eo,")\\s*\\)?"),ro={CSS_UNIT:new RegExp(eo),rgb:new RegExp("rgb"+to),rgba:new RegExp("rgba"+no),hsl:new RegExp("hsl"+to),hsla:new RegExp("hsla"+no),hsv:new RegExp("hsv"+to),hsva:new RegExp("hsva"+no),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function oo(e){return Boolean(ro.CSS_UNIT.exec(String(e)))}var io=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Jr(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Vr(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Gr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Gr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Xr(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Xr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Ur(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[qr(Math.round(e).toString(16)),qr(Math.round(t).toString(16)),qr(Math.round(n).toString(16)),qr((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Dr(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Dr(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Ur(this.r,this.g,this.b,!1),t=0,n=Object.entries(Qr);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Hr(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Hr(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Hr(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Hr(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),ao=2,lo=.16,co=.05,so=.05,uo=.15,fo=5,po=4,mo=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function go(e){var t=Gr(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function vo(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Ur(t,n,r,!1))}function ho(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ao*t:Math.round(e.h)+ao*t:n?Math.round(e.h)+ao*t:Math.round(e.h)-ao*t)<0?r+=360:r>=360&&(r-=360),r}function bo(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-lo*t:t===po?e.s+lo:e.s+co*t)>1&&(r=1),n&&t===fo&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function yo(e,t,n){var r;return(r=n?e.v+so*t:e.v-uo*t)>1&&(r=1),Number(r.toFixed(2))}function xo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Jr(e),o=fo;o>0;o-=1){var i=go(r),a=vo(Jr({h:ho(i,o,!0),s:bo(i,o,!0),v:yo(i,o,!0)}));n.push(a)}n.push(vo(r));for(var l=1;l<=po;l+=1){var c=go(r),s=vo(Jr({h:ho(c,l),s:bo(c,l),v:yo(c,l)}));n.push(s)}return"dark"===t.theme?mo.map((function(e){var r,o,i,a=e.index,l=e.opacity;return vo((r=Jr(t.backgroundColor||"#141414"),o=Jr(n[a]),i=100*l/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var wo={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"},Co=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Co.primary=Co[5];var Eo=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Eo.primary=Eo[5];var So=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];So.primary=So[5];var $o=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];$o.primary=$o[5];var Oo=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Oo.primary=Oo[5];var ko=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ko.primary=ko[5];var No=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];No.primary=No[5];var jo=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];jo.primary=jo[5];var Po=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Po.primary=Po[5];var Io=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Io.primary=Io[5];var Mo=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Mo.primary=Mo[5];var Ro=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ro.primary=Ro[5];var To=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];To.primary=To[5];var _o={red:Co,volcano:Eo,orange:So,gold:$o,yellow:Oo,lime:ko,green:No,cyan:jo,blue:Po,geekblue:Io,purple:Mo,magenta:Ro,grey:To};const Ao={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"},Bo=Object.assign(Object.assign({},Ao),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});const Lo=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 Fo(e){return(e+8)/e}const zo=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Fo(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Do=(e,t)=>new io(e).setAlpha(t).toRgbString(),Ho=(e,t)=>new io(e).darken(t).toHexString(),Vo=e=>{const t=xo(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]}},Wo=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Do(r,.88),colorTextSecondary:Do(r,.65),colorTextTertiary:Do(r,.45),colorTextQuaternary:Do(r,.25),colorFill:Do(r,.15),colorFillSecondary:Do(r,.06),colorFillTertiary:Do(r,.04),colorFillQuaternary:Do(r,.02),colorBgLayout:Ho(n,4),colorBgContainer:Ho(n,0),colorBgElevated:Ho(n,0),colorBgSpotlight:Do(r,.85),colorBgBlur:"transparent",colorBorder:Ho(n,15),colorBorderSecondary:Ho(n,6)}};const qo=It((function(e){wo.pink=wo.magenta,_o.pink=_o.magenta;const t=Object.keys(Ao).map((t=>{const n=e[t]===wo[t]?_o[t]:xo(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),m=n(a),g=n(l),v=r(s,u),h=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new io("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Vo,generateNeutralColorPalettes:Wo})),zo(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},Lo(r))}(e))})),Xo={token:Bo,override:{override:Bo},hashed:!0},Ko=t.createContext(Xo),Go="ant",Uo="anticon",Yo=["outlined","borderless","filled"],Zo=e.createContext({getPrefixCls:(e,t)=>t||(e?`${Go}-${e}`:Go),iconPrefixCls:Uo}),Qo=`-ant-${Date.now()}-${Math.random()}`;function Jo(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new io(e),i=xo(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new io(t.primaryColor),i=xo(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new io(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);it()?vt(n,`${Qo}-dynamic-theme`):"production"!==process.env.NODE_ENV&&jr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ei=e.createContext(!1),ti=t=>{let{children:n,disabled:r}=t;const o=e.useContext(ei);return e.createElement(ei.Provider,{value:null!=r?r:o},n)},ni=e.createContext(void 0),ri=t=>{let{children:n,size:r}=t;const o=e.useContext(ni);return e.createElement(ni.Provider,{value:r||o},n)};var oi=Me((function e(){Pe(this,e)})),ii="CALC_UNIT",ai=new RegExp(ii,"g");function li(e){return"number"==typeof e?"".concat(e).concat(ii):e}var ci=function(){Te(t,oi);var e=Le(t);function t(n,r){var o;Pe(this,t),G(Be(o=e.call(this)),"result",""),G(Be(o),"unitlessCssVar",void 0),G(Be(o),"lowPriority",void 0);var i=X(n);return o.unitlessCssVar=r,n instanceof t?o.result="(".concat(n.result,")"):"number"===i?o.result=li(n):"string"===i&&(o.result=n),o}return Me(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(li(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(li(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(ai,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),si=function(){Te(t,oi);var e=Le(t);function t(n){var r;return Pe(this,t),G(Be(r=e.call(this)),"result",0),n instanceof t?r.result=n.result:"number"==typeof n&&(r.result=n),r}return Me(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),ui=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function di(t){var n=e.useRef();n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}function fi(t){var n=e.useRef(!1),r=rt(e.useState(t),2),o=r[0],i=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||i(e)}]}function pi(e){return void 0!==e}function mi(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=rt(fi((function(){return pi(o)?o:pi(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=di(i),p=rt(fi([u]),2),m=p[0],g=p[1];return qt((function(){var e=m[0];c!==e&&f(c,e)}),[m]),qt((function(){pi(o)||s(o)}),[o]),[d,di((function(e,t){s(e,t),g([u],t)}))]}function gi(e,t,n,r){var o=Y({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=rt(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&q(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=Y(Y({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var vi="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,hi=!0;function bi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!vi)return Object.assign.apply(Object,[{}].concat(t));hi=!1;var r={};return t.forEach((function(e){"object"===X(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),hi=!0,r}var yi={};function xi(){}function wi(e,t,n){var r;return"function"==typeof n?n(bi(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Ci=function(){function e(){Pe(this,e),G(this,"map",new Map),G(this,"objectIDMap",new WeakMap),G(this,"nextID",0),G(this,"lastAccessBeat",new Map),G(this,"accessBeat",0)}return Me(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===X(e)?"obj_".concat(t.getObjectID(e)):"".concat(X(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),Ei=new Ci;var Si=function(){return{}};const $i=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Oi="5.20.5";function ki(e){return e>=0&&e<=255}function Ni(e,t){const{r:n,g:r,b:o,a:i}=new io(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new io(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(ki(t)&&ki(i)&&ki(s))return new io({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new io({r:n,g:r,b:o,a:1}).toRgbString()}var ji=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Pi(e){const{override:t}=e,n=ji(e,["override"]),r=Object.assign({},t);Object.keys(Bo).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ni(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:Ni(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ni(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ni(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new io("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new io("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new io("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Ii=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Mi={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},Ri={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Ti={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},_i=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Ii(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Pi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Ii(n,["theme"]);let i=o;r&&(i=_i(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Ai(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t.useContext(Ko),a=`${Oi}-${n||""}`,l=r||qo,[c,s,u]=cn(l,[Bo,e],{salt:a,override:o,getComputedToken:_i,formatToken:Pi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Mi,ignore:Ri,preserve:Ti}});return[l,u,n?s:"",c,i]}const Bi=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Li={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Fi=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}},zi=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Di=e=>({outline:`${Lt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Hi=e=>({"&:focus-visible":Object.assign({},Di(e))}),Vi=(e,t)=>{const[n,r]=Ai();return pr({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},{genStyleHooks:Wi,genComponentStyleHook:qi,genSubStyleComponent:Xi}=function(e){var n=e.useCSP,r=void 0===n?Si:n,i=e.useToken,a=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,s=e.getCompUnitless;function u(e,n,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(e)?e:[e,e],d=rt(u,1)[0],f=u.join("-");return function(e){var u,p,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=i(),v=g.theme,h=g.realToken,b=g.hashId,y=g.token,x=g.cssVar,w=a(),C=w.rootPrefixCls,E=w.iconPrefixCls,S=r(),$=x?"css":"js",O=(u=function(){var e=new Set;return x&&Object.keys(s.unitless||{}).forEach((function(t){e.add(zt(t,x.prefix)),e.add(zt(t,ui(d,x.prefix)))})),function(e,t){var n="css"===e?ci:si;return function(e){return new n(e,t)}}($,e)},p=[$,d,null==x?void 0:x.prefix],t.useMemo((function(){var e=Ei.get(p);if(e)return e;var t=u();return Ei.set(p,t),t}),p)),k=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(","),")")}}}($),N=k.max,j=k.min,P={theme:v,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:{name:"antd"},order:s.order||-999};pr(Y(Y({},P),{},{clientOnly:!1,path:["Shared",C]}),(function(){return"function"==typeof l?l(y):[]}));var I=pr(Y(Y({},P),{},{path:[f,e,E]}),(function(){if(!1===s.injectStyle)return[];var t=function(e){var t,n=e,r=xi;return vi&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return hi&&t.add(n),e[n]}}),r=function(e,n){var r;yi[e]={global:Array.from(t),component:Y(Y({},null===(r=yi[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(y),r=t.token,i=t.flush,a=wi(d,h,o),l=".".concat(e),u=gi(d,h,a,{deprecatedTokens:s.deprecatedTokens});x&&"object"===X(a)&&Object.keys(a).forEach((function(e){a[e]="var(".concat(zt(e,ui(d,x.prefix)),")")}));var f=bi(r,{componentCls:l,prefixCls:e,iconCls:".".concat(E),antCls:".".concat(C),calc:O,max:N,min:j},x?a:u),p=n(f,{hashId:b,prefixCls:e,rootPrefixCls:C,iconPrefixCls:E});i(d,u);var g="function"==typeof c?c(f,e,m,s.resetFont):null;return[!1===s.resetStyle?null:g,p]}));return[I,b]}}return{genStyleHooks:function(e,n,r,a){var l=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(l)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==a?void 0:a.unitless)||{},f=Y(Y({},"function"==typeof s?s(e):{}),{},G({},c("zIndexPopup"),!0));Object.keys(d).forEach((function(e){f[c(e)]=d[e]}));var p=Y(Y({},a),{},{unitless:f,prefixToken:c}),m=u(e,n,r,p),g=function(e,n,r){var a=r.unitless,l=r.injectStyle,c=void 0===l||l,s=r.prefixToken,u=r.ignore,d=function(t){var l=t.rootCls,c=t.cssVar,d=void 0===c?{}:c,f=i().realToken;return function(e,t){var n=e.key,r=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=o(Ot),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(Ge(e.path),[n,s,p]),g=Jt(mr,m,(function(){var e=t(),o=rt(Ht(e,n,{prefix:r,unitless:i,ignore:a,scope:s}),2),l=o[0],c=o[1];return[l,c,ur(m,c),n]}),(function(e){var t=rt(e,3)[2];Bt&&gt(t,{mark:Et})}),(function(e){var t=rt(e,3),r=t[1],o=t[2];if(r){var i=vt(r,o,{mark:Et,prepend:"queue",attachTo:f,priority:-999});i[$t]=d,i.setAttribute(Ct,n)}}))}({path:[e],prefix:d.prefix,key:d.key,unitless:a,ignore:u,token:f,scope:l},(function(){var t=wi(e,f,n),o=gi(e,f,t,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(t).forEach((function(e){o[s(e)]=o[e],delete o[e]})),o})),null},f=function(n){var r=i().cssVar;return[function(o){return c&&r?t.createElement(t.Fragment,null,t.createElement(d,{rootCls:n,cssVar:r,component:e}),o):o},null==r?void 0:r.key]};return f}(l,r,p);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=rt(m(e,t),2)[1],r=rt(g(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=u(e,t,n,Y({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=o(Zo);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Ai();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=o(Zo);return Vi(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":zi(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>Mi});function Ki(e,t){return $i.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Gi=Object.assign({},e),{useId:Ui}=Gi,Yi=void 0===Ui?()=>"":Ui;var Zi=["children"],Qi=e.createContext({});function Ji(t){var n=t.children,r=ht(t,Zi);return e.createElement(Qi.Provider,{value:r},n)}var ea=function(){Te(n,e.Component);var t=Le(n);function n(){return Pe(this,n),t.apply(this,arguments)}return Me(n,[{key:"render",value:function(){return this.props.children}}]),n}();var ta="none",na="appear",ra="enter",oa="leave",ia="none",aa="prepare",la="start",ca="active",sa="end",ua="prepared";function da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var fa=function(e,t){var n={animationend:da("Animation","AnimationEnd"),transitionend:da("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(it(),"undefined"!=typeof window?window:{}),pa={};if(it()){var ma=document.createElement("div");pa=ma.style}var ga={};function va(e){if(ga[e])return ga[e];var t=fa[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in pa)return ga[e]=t[i],ga[e]}return""}var ha=va("animationend"),ba=va("transitionend"),ya=!(!ha||!ba),xa=ha||"animationend",wa=ba||"transitionend";function Ca(e,t){if(!e)return null;if("object"===X(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Ea=function(t){var n=a();function r(e){e&&(e.removeEventListener(wa,t),e.removeEventListener(xa,t))}return e.useEffect((function(){return function(){r(n.current)}}),[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(wa,t),e.addEventListener(xa,t),n.current=e)},r]},Sa=it()?l:c,$a=[aa,la,ca,sa],Oa=[aa,ua],ka=!1,Na=!0;function ja(e){return e===ca||e===sa}var Pa=function(t,n,r){var o=rt(fi(ia),2),i=o[0],a=o[1],l=function(){var t=e.useRef(null);function n(){et.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=et((function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)}));t.current=i},n]}(),c=rt(l,2),s=c[0],u=c[1];var d=n?Oa:$a;return Sa((function(){if(i!==ia&&i!==sa){var e=d.indexOf(i),t=d[e+1],n=r(i);n===ka?a(t,!0):t&&s((function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(aa,!0)},i]};function Ia(t,n,r,o){var i,l,s,u=o.motionEnter,d=void 0===u||u,f=o.motionAppear,p=void 0===f||f,m=o.motionLeave,g=void 0===m||m,v=o.motionDeadline,h=o.motionLeaveImmediately,b=o.onAppearPrepare,y=o.onEnterPrepare,x=o.onLeavePrepare,w=o.onAppearStart,C=o.onEnterStart,E=o.onLeaveStart,S=o.onAppearActive,$=o.onEnterActive,O=o.onLeaveActive,k=o.onAppearEnd,N=o.onEnterEnd,j=o.onLeaveEnd,P=o.onVisibleChanged,I=rt(fi(),2),M=I[0],R=I[1],T=(i=ta,l=rt(e.useReducer((function(e){return e+1}),0),2)[1],s=e.useRef(i),[di((function(){return s.current})),di((function(e){s.current="function"==typeof e?e(s.current):e,l()}))]),_=rt(T,2),A=_[0],B=_[1],L=rt(fi(null),2),F=L[0],z=L[1],D=A(),H=a(!1),V=a(null);function W(){return r()}var q=a(!1);function X(){B(ta),z(null,!0)}var K=di((function(e){var t=A();if(t!==ta){var n=W();if(!e||e.deadline||e.target===n){var r,o=q.current;t===na&&o?r=null==k?void 0:k(n,e):t===ra&&o?r=null==N?void 0:N(n,e):t===oa&&o&&(r=null==j?void 0:j(n,e)),o&&!1!==r&&X()}}})),U=rt(Ea(K),1)[0],Z=function(e){switch(e){case na:return G(G(G({},aa,b),la,w),ca,S);case ra:return G(G(G({},aa,y),la,C),ca,$);case oa:return G(G(G({},aa,x),la,E),ca,O);default:return{}}},Q=e.useMemo((function(){return Z(D)}),[D]),J=rt(Pa(D,!t,(function(e){if(e===aa){var t=Q[aa];return t?t(W()):ka}var n;te in Q&&z((null===(n=Q[te])||void 0===n?void 0:n.call(Q,W(),null))||null);return te===ca&&D!==ta&&(U(W()),v>0&&(clearTimeout(V.current),V.current=setTimeout((function(){K({deadline:!0})}),v))),te===ua&&X(),Na})),2),ee=J[0],te=J[1],ne=ja(te);q.current=ne,Sa((function(){R(n);var e,r=H.current;H.current=!0,!r&&n&&p&&(e=na),r&&n&&d&&(e=ra),(r&&!n&&g||!r&&h&&!n&&g)&&(e=oa);var o=Z(e);e&&(t||o[aa])?(B(e),ee()):B(ta)}),[n]),c((function(){(D===na&&!p||D===ra&&!d||D===oa&&!g)&&B(ta)}),[p,d,g]),c((function(){return function(){H.current=!1,clearTimeout(V.current)}}),[]);var re=e.useRef(!1);c((function(){M&&(re.current=!0),void 0!==M&&D===ta&&((re.current||M)&&(null==P||P(M)),re.current=!0)}),[M,D]);var oe=F;return Q[aa]&&te===la&&(oe=Y({transition:"none"},oe)),[D,te,oe,null!=M?M:n]}var Ma=function(t){var n=t;"object"===X(t)&&(n=t.transitionSupport);var r=e.forwardRef((function(t,r){var o=t.visible,i=void 0===o||o,l=t.removeOnLeave,c=void 0===l||l,s=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,p=t.eventProps,m=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(Qi).motion),g=a(),v=a();var h=rt(Ia(m,i,(function(){try{return g.current instanceof HTMLElement?g.current:Q(v.current)}catch(e){return null}}),t),4),b=h[0],y=h[1],x=h[2],w=h[3],C=e.useRef(w);w&&(C.current=!0);var E,S=e.useCallback((function(e){g.current=e,ee(r,e)}),[r]),$=Y(Y({},p),{},{visible:i});if(u)if(b===ta)E=w?u(Y({},$),S):!c&&C.current&&f?u(Y(Y({},$),{},{className:f}),S):s||!c&&!f?u(Y(Y({},$),{},{style:{display:"none"}}),S):null;else{var O;y===aa?O="prepare":ja(y)?O="active":y===la&&(O="start");var k=Ca(d,"".concat(b,"-").concat(O));E=u(Y(Y({},$),{},{className:P(Ca(d,b),G(G({},k,k&&O),d,"string"==typeof d)),style:x}),S)}else E=null;e.isValidElement(E)&&re(E)&&(E.ref||(E=e.cloneElement(E,{ref:S})));return e.createElement(ea,{ref:v},E)}));return r.displayName="CSSMotion",r}(ya),Ra="add",Ta="keep",_a="remove",Aa="removed";function Ba(e){var t;return Y(Y({},t=e&&"object"===X(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function La(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Ba)}var Fa=["component","children","onVisibleChanged","onAllRemoved"],za=["status"],Da=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ha(t){const{children:n}=t,[,r]=Ai(),{motion:o}=r,i=e.useRef(!1);return i.current=i.current||!1===o,i.current?e.createElement(Ji,{motion:o},n):n}!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ma,r=function(){Te(r,e.Component);var t=Le(r);function r(){var e;Pe(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return G(Be(e=t.call.apply(t,[this].concat(o))),"state",{keyEntities:[]}),G(Be(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Y(Y({},e),{},{status:Aa})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Aa})).length})),e}return Me(r,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=ht(o,Fa),u=i||e.Fragment,d={};return Da.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,e.createElement(u,s,r.map((function(r,o){var i=r.status,s=ht(r,za),u=i===Ra||i===Ta;return e.createElement(n,I({},d,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){(null==l||l(e,{key:s.key}),e)||0===t.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(Y(Y({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=La(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=La(e),a=La(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Y(Y({},e),{},{status:Ra})}))),r=i),n.push(Y(Y({},l),{},{status:Ta})),r+=1,t=!0;break}}t||n.push(Y(Y({},e),{},{status:_a}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Y(Y({},e),{},{status:Ra})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==_a}))).forEach((function(t){t.key===e&&(t.status=Ta)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Aa||e.status!==_a}))}}}]),r}();G(r,"defaultProps",{component:"div"})}(ya);const Va=e.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return Nr("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(Va.displayName="PropWarning");var Wa="production"!==process.env.NODE_ENV?Va:()=>null,qa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let Xa=!1;process.env.NODE_ENV;const Ka=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ga;const Ua=t=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:h,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:w,statistic:C,spin:E,calendar:S,carousel:$,cascader:O,collapse:k,typography:N,checkbox:j,descriptions:P,divider:I,drawer:M,skeleton:R,steps:T,image:_,layout:A,list:B,mentions:L,modal:F,progress:z,result:D,slider:H,breadcrumb:V,menu:W,pagination:q,input:X,textArea:K,empty:G,badge:U,radio:Y,rate:Z,switch:Q,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ge,wave:ve,dropdown:he,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:Ce,treeSelect:Ee}=t,Se=e.useCallback(((e,n)=>{const{prefixCls:r}=t;if(n)return n;const o=r||h.getPrefixCls("");return e?`${o}-${e}`:o}),[h.getPrefixCls,t.prefixCls]),$e=b||h.iconPrefixCls||Uo,Oe=r||h.csp;Vi($e,Oe);const ke=function(e,t,n){var r,o;const i=Nr("ConfigProvider"),a=e||{},l=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Xo),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Xo.hashed,cssVar:null==t?void 0:t.cssVar}),c=Yi();if("production"!==process.env.NODE_ENV){const e=a.cssVar||l.cssVar,t=!!("object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||c);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return J((()=>{var r,o;if(!e)return t;const i=Object.assign({},l.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const s=`css-var-${c.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof l.cssVar?l.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(o=a.cssVar)||void 0===o?void 0:o.key)||s});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:i,cssVar:u})}),[a,l],((e,t)=>e.some(((e,n)=>!bt(e,t[n],!0)))))}(y,h.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(Xa=Xa||!!ke);const Ne={csp:Oe,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||v,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=m?m:p,popupOverflow:g,getPrefixCls:Se,iconPrefixCls:$e,theme:ke,segmented:w,statistic:C,spin:E,calendar:S,carousel:$,cascader:O,collapse:k,typography:N,checkbox:j,descriptions:P,divider:I,drawer:M,skeleton:R,steps:T,image:_,input:X,textArea:K,layout:A,list:B,mentions:L,modal:F,progress:z,result:D,slider:H,breadcrumb:V,menu:W,pagination:q,empty:G,badge:U,radio:Y,rate:Z,switch:Q,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:fe,datePicker:pe,rangePicker:me,flex:ge,wave:ve,dropdown:he,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:Ce,treeSelect:Ee};if("production"!==process.env.NODE_ENV){Nr("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const je=Object.assign({},h);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(je[e]=Ne[e])})),Ka.forEach((e=>{const n=t[e];n&&(je[e]=n)})),void 0!==o&&(je.button=Object.assign({autoInsertSpace:o},je.button));const Pe=J((()=>je),je,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ie=e.useMemo((()=>({prefixCls:$e,csp:Oe})),[$e,Oe]);let Me=e.createElement(e.Fragment,null,e.createElement(Wa,{dropdownMatchSelectWidth:p}),n);const Re=e.useMemo((()=>{var e,t,n,r;return Er((null===(e=_r.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Pe.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Pe.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Pe,null==l?void 0:l.validateMessages]);Object.keys(Re).length>0&&(Me=e.createElement(Pr.Provider,{value:Re},Me)),c&&(Me=e.createElement(zr,{locale:c,_ANT_MARK__:Fr},Me)),($e||Oe)&&(Me=e.createElement(hr.Provider,{value:Ie},Me)),s&&(Me=e.createElement(ri,{size:s},Me)),Me=e.createElement(Ha,null,Me);const Te=e.useMemo((()=>{const e=ke||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=qa(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?It(t):qo,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=It(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},Bo),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[ke]);return y&&(Me=e.createElement(Ko.Provider,{value:Te},Me)),Pe.warning&&(Me=e.createElement(kr.Provider,{value:Pe.warning},Me)),void 0!==x&&(Me=e.createElement(ti,{disabled:x},Me)),e.createElement(Zo.Provider,{value:Pe},Me)},Ya=t=>{const n=e.useContext(Zo),r=e.useContext(Lr);return e.createElement(Ua,Object.assign({parentContext:n,legacyLocale:r},t))};function Za(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Qa(e){return function(e){return Za(e)instanceof ShadowRoot}(e)?Za(e):null}function Ja(e){return"object"===X(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===X(e.icon)||"function"==typeof e.icon)}function el(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function tl(e,n,r){return r?t.createElement(e.tag,Y(Y({key:n},el(e.attrs)),r),(e.children||[]).map((function(t,r){return tl(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,Y({key:n},el(e.attrs)),(e.children||[]).map((function(t,r){return tl(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function nl(e){return xo(e)[0]}function rl(e){return e?Array.isArray(e)?e:[e]:[]}Ya.ConfigContext=Zo,Ya.SizeContext=ni,Ya.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Ga=t),r&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)&&("production"!==process.env.NODE_ENV&&jr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Jo(Ga||Go,r))},Ya.useConfig=function(){return{componentDisabled:o(ei),componentSize:o(ni)}},Object.defineProperty(Ya,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&jr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ni)}),"production"!==process.env.NODE_ENV&&(Ya.displayName="ConfigProvider");var ol=["icon","className","onClick","style","primaryColor","secondaryColor"],il={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var al=function(t){var n,r,i,a,l,s,u,d=t.icon,f=t.className,p=t.onClick,m=t.style,g=t.primaryColor,v=t.secondaryColor,h=ht(t,ol),b=e.useRef(),y=il;if(g&&(y={primaryColor:g,secondaryColor:v||nl(g)}),n=b,r=o(hr),i=r.csp,a=r.prefixCls,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(l=l.replace(/anticon/g,a)),c((function(){var e=Qa(n.current);vt(l,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),s=Ja(d),u="icon should be icon definiton, but got ".concat(d),q(s,"[@ant-design/icons] ".concat(u)),!Ja(d))return null;var x=d;return x&&"function"==typeof x.icon&&(x=Y(Y({},x),{},{icon:x.icon(y.primaryColor,y.secondaryColor)})),tl(x.icon,"svg-".concat(x.name),Y(Y({className:f,onClick:p,style:m,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:b}))};function ll(e){var t=rt(rl(e),2),n=t[0],r=t[1];return al.setTwoToneColors({primaryColor:n,secondaryColor:r})}al.displayName="IconReact",al.getTwoToneColors=function(){return Y({},il)},al.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;il.primaryColor=t,il.secondaryColor=n||nl(t),il.calculated=!!n};var cl=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ll(Po.primary);var sl=e.forwardRef((function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,l=t.tabIndex,c=t.onClick,s=t.twoToneColor,u=ht(t,cl),d=e.useContext(hr),f=d.prefixCls,p=void 0===f?"anticon":f,m=d.rootClassName,g=P(m,p,G(G({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),v=l;void 0===v&&c&&(v=-1);var h=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=rt(rl(s),2),y=b[0],x=b[1];return e.createElement("span",I({role:"img","aria-label":o.name},u,{ref:n,tabIndex:v,onClick:c,className:g}),e.createElement(al,{icon:o,primaryColor:y,secondaryColor:x,style:h}))}));sl.displayName="AntdIcon",sl.getTwoToneColor=function(){var e=al.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},sl.setTwoToneColor=ll;var ul={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"},dl=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:ul}))},fl=e.forwardRef(dl);"production"!==process.env.NODE_ENV&&(fl.displayName="CloseCircleFilled");var pl={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"},ml=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:pl}))},gl=e.forwardRef(ml);"production"!==process.env.NODE_ENV&&(gl.displayName="CloseOutlined");var vl="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function hl(e,t){return 0===e.indexOf(t)}function bl(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const yl=(e,n,r)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof r?r(e.props||{}):r):n;function xl(e,t){return yl(e,e,t)}const wl=e=>{const[,,,,t]=Ai();return t?`${e}-css-var`:""};var 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){var t=e.keyCode;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}}},El={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"},Sl=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:El}))},$l=e.forwardRef(Sl);"production"!==process.env.NODE_ENV&&($l.displayName="LoadingOutlined");const Ol=t.createContext(void 0);"production"!==process.env.NODE_ENV&&(Ol.displayName="zIndexContext");const kl=100,Nl={Modal:kl,Drawer:kl,Popover:kl,Popconfirm:kl,Tooltip:kl,Tour:kl},jl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Pl(e,n){const[,r]=Ai(),o=t.useContext(Ol),i=function(e){return e in Nl}(e);let a;if(void 0!==n)a=[n,n];else{let t=null!=o?o:0;t+=i?(o?0:r.zIndexPopupBase)+Nl[e]:jl[e],a=[void 0===o?n:t,t]}if("production"!==process.env.NODE_ENV){const t=Nr(e),o=r.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&t(void 0!==n||i<=o,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function Il(){Il=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",v={};function h(){}function b(){}function y(){}var x={};s(x,a,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(I([])));C&&C!==n&&r.call(C,a)&&(x=C);var E=y.prototype=h.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function $(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==X(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=k(l,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?g:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=g,r.method="throw",r.arg=s.arg)}}}function k(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(X(t)+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},S($.prototype),s($.prototype,l,(function(){return this})),t.AsyncIterator=$,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new $(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),s(E,c,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Ml(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Rl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ml(i,r,o,a,l,"next",e)}function l(e){Ml(i,r,o,a,l,"throw",e)}a(void 0)}))}}var Tl,_l=Y({},h),Al=_l.version,Bl=_l.render,Ll=_l.unmountComponentAtNode;try{Number((Al||"").split(".")[0])>=18&&(Tl=_l.createRoot)}catch(e){}function Fl(e){var t=_l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===X(t)&&(t.usingClientEntryPoint=e)}var zl="__rc_react_root__";function Dl(e,t){Tl?function(e,t){Fl(!0);var n=t[zl]||Tl(t);Fl(!1),n.render(e),t[zl]=n}(e,t):function(e,t){Bl(e,t)}(e,t)}function Hl(e){return Vl.apply(this,arguments)}function Vl(){return(Vl=Rl(Il().mark((function e(t){return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[zl])||void 0===e||e.unmount(),delete t[zl]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wl(e){Ll(e)}function ql(){return(ql=Rl(Il().mark((function e(t){return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Tl){e.next=2;break}return e.abrupt("return",Hl(t));case 2:Wl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Xl=()=>({height:0,opacity:0}),Kl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Gl=e=>({height:e?e.offsetHeight:0}),Ul=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Yl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Go}-motion-collapse`,onAppearStart:Xl,onEnterStart:Xl,onAppearActive:Kl,onEnterActive:Kl,onLeaveStart:Gl,onLeaveActive:Xl,onAppearEnd:Ul,onEnterEnd:Ul,onLeaveEnd:Ul,motionDeadline:500}},Zl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var Ql=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};const Jl=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var ec=qi("Wave",(e=>[Jl(e)]));const tc=`${Go}-wave-target`;function nc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function rc(e){return Number.isNaN(e)?0:e}const oc=t=>{const{className:n,target:r,component:o}=t,i=e.useRef(null),[a,l]=e.useState(null),[c,s]=e.useState([]),[u,d]=e.useState(0),[f,p]=e.useState(0),[m,g]=e.useState(0),[v,h]=e.useState(0),[b,y]=e.useState(!1),x={left:u,top:f,width:m,height:v,borderRadius:c.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(r);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return nc(t)?t:nc(n)?n:nc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:rc(-parseFloat(n))),p(t?r.offsetTop:rc(-parseFloat(o))),g(r.offsetWidth),h(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>rc(parseFloat(e)))))}if(a&&(x["--wave-color"]=a),e.useEffect((()=>{if(r){const e=et((()=>{w(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(r)),()=>{et.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const C=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(tc));return e.createElement(Ma,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(function(e){return ql.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((t,r)=>{let{className:o}=t;return e.createElement("div",{ref:te(i,r),className:P(n,o,{"wave-quick":C}),style:x})}))},ic=(t,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=t.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==t||t.insertBefore(i,null==t?void 0:t.firstChild),Dl(e.createElement(oc,Object.assign({},n,{target:t})),i)},ac=(t,n,r)=>{const{wave:o}=e.useContext(Zo),[,i,a]=Ai(),l=di((e=>{const l=t.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${tc}`)||l,{showEffect:s}=o||{};(s||ic)(c,{className:n,token:i,component:r,event:e,hashId:a})})),c=e.useRef();return e=>{et.cancel(c.current),c.current=et((()=>{l(e)}))}},lc=e=>{const{children:n,disabled:r,component:i}=e,{getPrefixCls:l}=o(Zo),c=a(null),s=l("wave"),[,u]=ec(s),d=ac(c,P(s,u),i);if(t.useEffect((()=>{const e=c.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!Ql(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!t.isValidElement(n))return null!=n?n:null;return xl(n,{ref:re(n)?te(n.ref,c):c})};"production"!==process.env.NODE_ENV&&(lc.displayName="Wave");const cc=e=>{const n=t.useContext(ni);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])},sc=e.createContext(null),uc=(t,n)=>{const r=e.useContext(sc),o=e.useMemo((()=>{if(!r)return"";const{compactDirection:e,isFirstItem:o,isLastItem:i}=r,a="vertical"===e?"-vertical-":"-";return P(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:o,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})}),[t,n,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}},dc=t=>{let{children:n}=t;return e.createElement(sc.Provider,{value:null},n)};var fc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pc=e.createContext(void 0),mc=/^[\u4e00-\u9fa5]{2}$/,gc=mc.test.bind(mc);function vc(e){return"string"==typeof e}function hc(e){return"text"===e||"link"===e}function bc(e,n){let r=!1;const o=[];return t.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),t.Children.map(o,(e=>function(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&vc(e.type)&&gc(e.props.children)?xl(e,{children:e.props.children.split("").join(r)}):vc(e)?gc(e)?t.createElement("span",null,e.split("").join(r)):t.createElement("span",null,e):bl(e)?t.createElement("span",null,e):e}(e,n)))}const yc=s(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=P(`${a}-icon`,r);return t.createElement("span",{ref:n,className:l,style:o},i)})),xc=s(((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,l=P(`${r}-loading-icon`,o);return t.createElement(yc,{prefixCls:r,className:l,style:i,ref:n},t.createElement($l,{className:a}))})),wc=()=>({width:0,opacity:0,transform:"scale(0)"}),Cc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ec=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=e,l=!!r;return o?t.createElement(xc,{prefixCls:n,className:i,style:a}):t.createElement(Ma,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:wc,onAppearActive:Cc,onEnterStart:wc,onEnterActive:Cc,onLeaveStart:Cc,onLeaveActive:wc},((e,r)=>{let{className:o,style:l}=e;return t.createElement(xc,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))},Sc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),$c=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}},Sc(`${t}-primary`,o),Sc(`${t}-danger`,i)]}},Oc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return bi(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},kc=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Fo(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Fo(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Fo(s);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},Nc=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Lt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Hi(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},jc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Pc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Ic=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Mc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Rc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},jc(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Tc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Mc(e))}),_c=e=>Object.assign({},Tc(e)),Ac=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Bc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_c(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),jc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Rc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},jc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Tc(e))}),Lc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_c(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),jc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Rc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},jc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Rc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Tc(e))}),Fc=e=>Object.assign(Object.assign({},Bc(e)),{borderStyle:"dashed"}),zc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},jc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ac(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},jc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ac(e))}),Dc=e=>Object.assign(Object.assign(Object.assign({},jc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ac(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ac(e)),jc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Hc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Bc(e),[`${t}-primary`]:Lc(e),[`${t}-dashed`]:Fc(e),[`${t}-link`]:zc(e),[`${t}-text`]:Dc(e),[`${t}-ghost`]:Rc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Vc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${Lt(s)} ${Lt(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Pc(e)},{[`${n}${n}-round${t}`]:Ic(e)}]},Wc=e=>{const t=bi(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Vc(t,e.componentCls)},qc=e=>{const t=bi(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Vc(t,`${e.componentCls}-sm`)},Xc=e=>{const t=bi(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Vc(t,`${e.componentCls}-lg`)},Kc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Gc=Wi("Button",(e=>{const t=Oc(e);return[Nc(t),Wc(t),qc(t),Xc(t),Kc(t),Hc(t),$c(t)]}),kc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Uc(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Yc(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 Zc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Uc(e,r,t)),Yc(n,r,t))}}function Qc(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Jc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Qc(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const es=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Lt(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Lt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var ts=Xi(["Button","compact"],(e=>{const t=Oc(e);return[Zc(t),Jc(t),es(t)]}),kc),ns=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rs=t.forwardRef(((e,n)=>{var r,i,a;const{loading:l=!1,prefixCls:s,type:m,danger:g=!1,shape:v="default",size:h,styles:b,disabled:y,className:x,rootClassName:w,children:C,icon:E,iconPosition:S="start",ghost:$=!1,block:O=!1,htmlType:k="button",classNames:N,style:j={},autoInsertSpace:I}=e,M=ns(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),R=m||"default",{getPrefixCls:T,direction:_,button:A}=o(Zo),B=null===(r=null!=I?I:null==A?void 0:A.autoInsertSpace)||void 0===r||r,L=T("btn",s),[F,z,D]=Gc(L),H=o(ei),V=null!=y?y:H,W=o(pc),q=u((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(l)),[l]),[X,K]=d(q.loading),[G,U]=d(!1),Y=te(n,p()),Z=1===f.count(C)&&!E&&!hc(R);c((()=>{let e=null;return q.delay>0?e=setTimeout((()=>{e=null,K(!0)}),q.delay):K(q.loading),function(){e&&(clearTimeout(e),e=null)}}),[q]),c((()=>{if(!Y||!Y.current||!B)return;const e=Y.current.textContent;Z&&gc(e)?G||U(!0):G&&U(!1)}),[Y]);const Q=t=>{const{onClick:n}=e;X||V?t.preventDefault():null==n||n(t)};if("production"!==process.env.NODE_ENV){const e=Nr("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof E&&E.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${E}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!($&&hc(R)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:J,compactItemClassnames:ee}=uc(L,_),ne={large:"lg",small:"sm",middle:void 0},re=cc((e=>{var t,n;return null!==(n=null!==(t=null!=h?h:J)&&void 0!==t?t:W)&&void 0!==n?n:e})),oe=re&&ne[re]||"",ie=X?"loading":E,ae=We(M,["navigate"]),le=P(L,z,D,{[`${L}-${v}`]:"default"!==v&&v,[`${L}-${R}`]:R,[`${L}-${oe}`]:oe,[`${L}-icon-only`]:!C&&0!==C&&!!ie,[`${L}-background-ghost`]:$&&!hc(R),[`${L}-loading`]:X,[`${L}-two-chinese-chars`]:G&&B&&!X,[`${L}-block`]:O,[`${L}-dangerous`]:g,[`${L}-rtl`]:"rtl"===_,[`${L}-icon-end`]:"end"===S},ee,x,w,null==A?void 0:A.className),ce=Object.assign(Object.assign({},null==A?void 0:A.style),j),se=P(null==N?void 0:N.icon,null===(i=null==A?void 0:A.classNames)||void 0===i?void 0:i.icon),ue=Object.assign(Object.assign({},(null==b?void 0:b.icon)||{}),(null===(a=null==A?void 0:A.styles)||void 0===a?void 0:a.icon)||{}),de=E&&!X?t.createElement(yc,{prefixCls:L,className:se,style:ue},E):t.createElement(Ec,{existIcon:!!E,prefixCls:L,loading:X}),fe=C||0===C?bc(C,Z&&B):null;if(void 0!==ae.href)return F(t.createElement("a",Object.assign({},ae,{className:P(le,{[`${L}-disabled`]:V}),href:V?void 0:ae.href,style:ce,onClick:Q,ref:Y,tabIndex:V?-1:0}),de,fe));let pe=t.createElement("button",Object.assign({},M,{type:k,className:le,style:ce,onClick:Q,disabled:V,ref:Y}),de,fe,!!ee&&t.createElement(ts,{key:"compact",prefixCls:L}));return hc(R)||(pe=t.createElement(lc,{component:"Button",disabled:X},pe)),F(pe)})),os=rs;os.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(Zo),{prefixCls:o,size:i,className:a}=t,l=fc(t,["prefixCls","size","className"]),c=n("btn-group",o),[,,s]=Ai();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=Nr("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=P(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===r},a,s);return e.createElement(pc.Provider,{value:i},e.createElement("div",Object.assign({},l,{className:d})))},os.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(os.displayName="Button");var is=e.createContext(null),as=[];function ls(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";vt("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),gt(t),{width:f,height:p}}(e):{width:0,height:0}}var cs="rc-util-locker-".concat(Date.now()),ss=0;function us(t){var n=!!t,r=rt(e.useState((function(){return ss+=1,"".concat(cs,"_").concat(ss)})),1)[0];Wt((function(){if(n){var e=ls(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;vt("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else gt(r);return function(){gt(r)}}),[n,r])}var ds=function(e){return!1!==e&&(it()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},fs=e.forwardRef((function(t,n){var r=t.open,o=t.autoLock,i=t.getContainer,a=t.debug,l=t.autoDestroy,c=void 0===l||l,s=t.children,u=rt(e.useState(r),2),d=u[0],f=u[1],p=d||r;"production"!==process.env.NODE_ENV&&q(it()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),e.useEffect((function(){(c||r)&&f(r)}),[r,c]);var m=rt(e.useState((function(){return ds(i)})),2),g=m[0],v=m[1];e.useEffect((function(){var e=ds(i);v(null!=e?e:null)}));var h=function(t,n){var r=rt(e.useState((function(){if(!it())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&n&&e.setAttribute("data-debug",n),e})),1)[0],o=e.useRef(!1),i=e.useContext(is),a=rt(e.useState(as),2),l=a[0],c=a[1],s=i||(o.current?void 0:function(e){c((function(t){return[e].concat(Ge(t))}))});function u(){r.parentElement||document.body.appendChild(r),o.current=!0}function d(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}return Wt((function(){return t?i?i(u):u():d(),d}),[t]),Wt((function(){l.length&&(l.forEach((function(e){return e()})),c(as))}),[l]),[r,s]}(p&&!g,a),b=rt(h,2),x=b[0],w=b[1],C=null!=g?g:x;us(o&&r&&it()&&(C===x||C===document.body));var E=null;s&&re(s)&&n&&(E=s.ref);var S=ne(E,n);if(!p||!it()||void 0===g)return null;var $=!1===C||!1,O=s;return n&&(O=e.cloneElement(s,{ref:S})),e.createElement(is.Provider,{value:w},$?O:y(O,C))}));"production"!==process.env.NODE_ENV&&(fs.displayName="Portal");var ps=0,ms=Y({},e).useId,gs=ms?function(e){var t=ms();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(t){var n=rt(e.useState("ssr-id"),2),r=n[0],o=n[1];return e.useEffect((function(){var e=ps;ps+=1,o("rc_unique_".concat(e))}),[]),t||("test"===process.env.NODE_ENV?"test-id":r)},vs="RC_FORM_INTERNAL_HOOKS",hs=function(){q(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},bs=e.createContext({getFieldValue:hs,getFieldsValue:hs,getFieldError:hs,getFieldWarning:hs,getFieldsError:hs,isFieldsTouched:hs,isFieldTouched:hs,isFieldValidating:hs,isFieldsValidating:hs,resetFields:hs,setFields:hs,setFieldValue:hs,setFieldsValue:hs,validateFields:hs,submit:hs,getInternalHooks:function(){return hs(),{dispatch:hs,initEntityValue:hs,registerField:hs,useSubscribe:hs,setInitialValues:hs,destroyForm:hs,setCallbacks:hs,registerWatch:hs,getFields:hs,setValidateMessages:hs,setPreserve:hs,getInitialValue:hs}}}),ys=e.createContext(null);function xs(e){return null==e?[]:Array.isArray(e)?e:[e]}function ws(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Cs=ws();function Es(e){var t="function"==typeof Map?new Map:void 0;return Es=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Ae())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Re(o,n.prototype),o}(e,arguments,_e(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Re(n,e)},Es(e)}var Ss=/%[sdj%]/g,$s=function(){};function Os(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 ks(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(Ss,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function Ns(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function js(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&($s=function(e,t){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var Ps=function(){Te(t,Es(Error));var e=Le(t);function t(n,r){var o;return Pe(this,t),G(Be(o=e.call(this,"Async Validation Error")),"errors",void 0),G(Be(o),"fields",void 0),o.errors=n,o.fields=r,o}return Me(t)}();function Is(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,Ge(e[n]||[]))})),t}(e);js(a,n,(function(e){return r(e),e.length?i(new Ps(e,Os(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new Ps(u,Os(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?js(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Ge(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function Ms(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function Rs(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===X(r)&&"object"===X(e[n])?e[n]=Y(Y({},e[n]),r):e[n]=r}return e}var Ts,_s="enum",As=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Ns(t,i||e.type)||r.push(ks(o.messages.required,e.fullField))},Bs=/^(([^<>()\[\]\\.,;:\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,}))$/,Ls=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Fs={integer:function(e){return Fs.number(e)&&parseInt(e,10)===e},float:function(e){return Fs.number(e)&&!Fs.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===X(e)&&!Fs.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Bs)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Ts)return Ts;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Ts=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Ls)}},zs={required:As,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(ks(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)As(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Fs[i](t)||r.push(ks(o.messages.types[i],e.fullField,e.type)):i&&X(t)!==e.type&&r.push(ks(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(ks(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(ks(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(ks(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(ks(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[_s]=Array.isArray(e[_s])?e[_s]:[],-1===e[_s].indexOf(t)&&r.push(ks(o.messages[_s],e.fullField,e[_s].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(ks(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(ks(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Ds=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ns(t,i)&&!e.required)return n();zs.required(e,t,r,a,o,i),Ns(t,i)||zs.type(e,t,r,a,o)}n(a)},Hs={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ns(t,"string")&&!e.required)return n();zs.required(e,t,r,i,o,"string"),Ns(t,"string")||(zs.type(e,t,r,i,o),zs.range(e,t,r,i,o),zs.pattern(e,t,r,i,o),!0===e.whitespace&&zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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),Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&(zs.type(e,t,r,i,o),zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),Ns(t)||zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&(zs.type(e,t,r,i,o),zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&(zs.type(e,t,r,i,o),zs.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();zs.required(e,t,r,i,o,"array"),null!=t&&(zs.type(e,t,r,i,o),zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o),void 0!==t&&zs.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(Ns(t,"string")&&!e.required)return n();zs.required(e,t,r,i,o),Ns(t,"string")||zs.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(Ns(t,"date")&&!e.required)return n();var a;if(zs.required(e,t,r,i,o),!Ns(t,"date"))a=t instanceof Date?t:new Date(t),zs.type(e,a,r,i,o),a&&zs.range(e,a.getTime(),r,i,o)}n(i)},url:Ds,hex:Ds,email:Ds,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":X(t);zs.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Ns(t)&&!e.required)return n();zs.required(e,t,r,i,o)}n(i)}},Vs=function(){function e(t){Pe(this,e),G(this,"rules",null),G(this,"_messages",Cs),this.define(t)}return Me(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==X(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=Rs(ws(),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===Cs&&(a=ws()),Rs(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=Y({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":X(i)))),(a="function"==typeof a?{validator:a}:Y({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return Is(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==X(a.fields)&&"object"!==X(a.defaultField));function s(e,t){return Y(Y({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Ge(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Ms(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Ms(a,r)):o.error&&(d=[o.error(a,ks(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=Y(Y({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Ge(d)),e&&e.length&&t.push.apply(t,Ge(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,Ge(t)):o.push(t);o.length?(a=Os(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Hs.hasOwnProperty(e.type))throw new Error(ks("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]?Hs.required:Hs[this.getType(e)]||void 0}}]),e}();G(Vs,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Hs[e]=t})),G(Vs,"warning",$s),G(Vs,"messages",Cs),G(Vs,"validators",Hs);var Ws="'${name}' is not a valid ${type}",qs={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:Ws,method:Ws,array:Ws,object:Ws,number:Ws,date:Ws,boolean:Ws,integer:Ws,float:Ws,regexp:Ws,email:Ws,url:Ws,hex:Ws},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}"}},Xs=Vs;function Ks(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Gs="CODE_LOGIC_ERROR";function Us(e,t,n,r,o){return Ys.apply(this,arguments)}function Ys(){return Ys=Rl(Il().mark((function t(n,r,o,i,a){var l,c,s,u,d,f,p,m,g;return Il().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(l=Y({},o)).ruleIndex,Xs.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Gs)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new Xs(G({},n,[l])),d=Er(qs,i.validateMessages),u.messages(d),f=[],t.prev=10,t.next=13,Promise.resolve(u.validate(G({},n,r),Y({},i)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(f=t.t0.errors.map((function(t,n){var r=t.message,o=r===Gs?d.default:r;return e.isValidElement(o)?e.cloneElement(o,{key:"error_".concat(n)}):o})));case 18:if(f.length||!s){t.next=23;break}return t.next=21,Promise.all(r.map((function(e,t){return Us("".concat(n,".").concat(t),e,s,i,a)})));case 21:return p=t.sent,t.abrupt("return",p.reduce((function(e,t){return[].concat(Ge(e),Ge(t))}),[]));case 23:return m=Y(Y({},o),{},{name:n,enum:(o.enum||[]).join(", ")},a),g=f.map((function(e){return"string"==typeof e?Ks(e,m):e})),t.abrupt("return",g);case 26:case"end":return t.stop()}}),t,null,[[10,15]])}))),Ys.apply(this,arguments)}function Zs(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=Y(Y({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){q(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));q(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=Rl(Il().mark((function e(n,o){var a,s,u;return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Us(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map((function(e){return Us(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return Js.apply(this,arguments)}(s):function(e){return Qs.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Qs(){return(Qs=Rl(Il().mark((function e(t){return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Ge(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Js(){return(Js=Rl(Il().mark((function e(t){var n;return Il().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function eu(e){return xs(e)}function tu(e,t){var n={};return t.forEach((function(t){var r=br(e,t);n=xr(n,t,r)})),n}function nu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return ru(t,e,n)}))}function ru(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function ou(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===X(t.target)&&e in t.target?t.target[e]:t}function iu(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ge(e.slice(0,n)),[o],Ge(e.slice(n,t)),Ge(e.slice(t+1,r))):i<0?[].concat(Ge(e.slice(0,t)),Ge(e.slice(t+1,n+1)),[o],Ge(e.slice(n+1,r))):e}var au=["name"],lu=[];function cu(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var su=function(){Te(n,e.Component);var t=Le(n);function n(r){var o;(Pe(this,n),G(Be(o=t.call(this,r)),"state",{resetCount:0}),G(Be(o),"cancelRegisterFunc",null),G(Be(o),"mounted",!1),G(Be(o),"touched",!1),G(Be(o),"dirty",!1),G(Be(o),"validatePromise",void 0),G(Be(o),"prevValidating",void 0),G(Be(o),"errors",lu),G(Be(o),"warnings",lu),G(Be(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,eu(r)),o.cancelRegisterFunc=null})),G(Be(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ge(void 0===n?[]:n),Ge(t)):[]})),G(Be(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),G(Be(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),G(Be(o),"metaCache",null),G(Be(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=Y(Y({},o.getMeta()),{},{destroy:e});bt(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),G(Be(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&nu(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||bt(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=lu,o.warnings=lu,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=lu,o.warnings=lu,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&cu(i,e,s,d,f,n))return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||lu),"warnings"in m&&(o.warnings=m.warnings||lu),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&nu(t,u,!0))return void o.reRender();if(i&&!u.length&&cu(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(eu).some((function(e){return nu(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&cu(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),G(Be(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(Rl(Il().mark((function r(){var a,l,s,u,d,f,p;return Il().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||xs(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Zs(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lu;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?lu:o;t?r.push.apply(r,Ge(i)):n.push.apply(n,Ge(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=lu,o.warnings=lu,o.triggerMetaEvent(),o.reRender()),c})),G(Be(o),"isFieldValidating",(function(){return!!o.validatePromise})),G(Be(o),"isFieldTouched",(function(){return o.touched})),G(Be(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(vs).getInitialValue)(o.getNamePath())})),G(Be(o),"getErrors",(function(){return o.errors})),G(Be(o),"getWarnings",(function(){return o.warnings})),G(Be(o),"isListField",(function(){return o.props.isListField})),G(Be(o),"isList",(function(){return o.props.isList})),G(Be(o),"isPreserve",(function(){return o.props.preserve})),G(Be(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),G(Be(o),"getOnlyChild",(function(t){if("function"==typeof t){var n=o.getMeta();return Y(Y({},o.getOnlyChild(t(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=L(t);return 1===r.length&&e.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),G(Be(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return br(e||t(!0),n)})),G(Be(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,g=p(vs).dispatch,v=o.getValue(),h=s||function(e){return G({},c,e)},b=e[r],y=void 0!==n?h(v):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){q("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var x=Y(Y({},e),y);return x[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):ou.apply(void 0,[c].concat(n)),l&&(e=l(e,v,m(!0))),g({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},xs(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}})),x})),r.fieldContext)&&(0,(0,r.fieldContext.getInternalHooks)(vs).initEntityValue)(Be(o));return o}return Me(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(vs).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var t,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),i=o.child;return o.isFunction?t=i:e.isValidElement(i)?t=e.cloneElement(i,this.getControlled(i.props)):(q(!i,"`children` of Field is not validate ReactElement."),t=i),e.createElement(e.Fragment,{key:n},t)}}]),n}();function uu(t){var n=t.name,r=ht(t,au),o=e.useContext(bs),i=e.useContext(ys),a=void 0!==n?eu(n):void 0,l="keep";return r.isListField||(l="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===r.preserve&&r.isListField&&a.length<=1&&q(!1,"`preserve` should not apply on Form.List fields."),e.createElement(su,I({key:l,name:a,isListField:!!i},r,{fieldContext:o}))}G(su,"contextType",bs),G(su,"defaultProps",{trigger:"onChange",valuePropName:"value"});var du="__@field_split__";function fu(e){return e.map((function(e){return"".concat(X(e),":").concat(e)})).join(du)}var pu=function(){function e(){Pe(this,e),G(this,"kvs",new Map)}return Me(e,[{key:"set",value:function(e,t){this.kvs.set(fu(e),t)}},{key:"get",value:function(e){return this.kvs.get(fu(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(fu(e))}},{key:"map",value:function(e){return Ge(this.kvs.entries()).map((function(t){var n=rt(t,2),r=n[0],o=n[1],i=r.split(du);return e({key:i.map((function(e){var t=rt(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),mu=["name"],gu=Me((function e(t){var n=this;Pe(this,e),G(this,"formHooked",!1),G(this,"forceRootUpdate",void 0),G(this,"subscribable",!0),G(this,"store",{}),G(this,"fieldEntities",[]),G(this,"initialValues",{}),G(this,"callbacks",{}),G(this,"validateMessages",null),G(this,"preserve",null),G(this,"lastValidatePromise",null),G(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),G(this,"getInternalHooks",(function(e){return e===vs?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(q(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),G(this,"useSubscribe",(function(e){n.subscribable=e})),G(this,"prevWithoutPreserves",null),G(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Er(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=xr(o,n,br(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),G(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new pu;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),G(this,"getInitialValue",(function(e){var t=br(n.initialValues,e);return e.length?Er(t):t})),G(this,"setCallbacks",(function(e){n.callbacks=e})),G(this,"setValidateMessages",(function(e){n.validateMessages=e})),G(this,"setPreserve",(function(e){n.preserve=e})),G(this,"watchList",[]),G(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),G(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),G(this,"timeoutId",null),G(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||q(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),G(this,"updateStore",(function(e){n.store=e})),G(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),G(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new pu;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),G(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=eu(e);return t.get(n)||{INVALIDATE_NAME_PATH:eu(e)}}))})),G(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===X(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),tu(n.store,l.map(eu))})),G(this,"getFieldValue",(function(e){n.warningUnhooked();var t=eu(e);return br(n.store,t)})),G(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:eu(e[n]),errors:[],warnings:[]}}))})),G(this,"getFieldError",(function(e){n.warningUnhooked();var t=eu(e);return n.getFieldsError([t])[0].errors})),G(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=eu(e);return n.getFieldsError([t])[0].warnings})),G(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(eu),l=!1):(o=null,l=i):(o=i.map(eu),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new pu;o.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Ge(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),G(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),G(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(eu);return t.some((function(e){var t=e.getNamePath();return nu(r,t)&&e.isFieldValidating()}))})),G(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),G(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new pu,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Ge(Ge(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))q(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)q(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(xr(n.store,o,Ge(i)[0].value))}}}}))})),G(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Er(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(eu);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(xr(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),G(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=ht(e,mu),a=eu(o);r.push(a),"value"in i&&n.updateStore(xr(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),G(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Y(Y({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),G(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===br(n.store,r)&&n.updateStore(xr(n.store,r,t))}})),G(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),G(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!ru(e.getNamePath(),t)}))){var l=n.store;n.updateStore(xr(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),G(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),G(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Y(Y({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),G(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Ge(r))}),r})),G(this,"updateValue",(function(e,t){var r=eu(e),o=n.store;n.updateStore(xr(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(tu(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Ge(i)))})),G(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Er(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),G(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),G(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new pu;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=eu(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),G(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new pu;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return nu(e,n)}));a.length&&r(a,o)}})),G(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(eu):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||nu(a,t,d)){var r=e.validateRules(Y({validateMessages:Y(Y({},qs),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Ge(n)):r.push.apply(r,Ge(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var g=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(g),m})),G(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function vu(t){var n=e.useRef(),r=rt(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var o=new gu((function(){r({})}));n.current=o.getForm()}return[n.current]}var hu=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),bu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],yu=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,c=t.children,s=t.component,u=void 0===s?"form":s,d=t.validateMessages,f=t.validateTrigger,p=void 0===f?"onChange":f,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,h=t.onFinishFailed,b=t.clearOnDestroy,y=ht(t,bu),x=e.useRef(null),w=e.useContext(hu),C=rt(vu(a),1)[0],E=C.getInternalHooks(vs),S=E.useSubscribe,$=E.setInitialValues,O=E.setCallbacks,k=E.setValidateMessages,N=E.setPreserve,j=E.destroyForm;e.useImperativeHandle(n,(function(){return Y(Y({},C),{},{nativeElement:x.current})})),e.useEffect((function(){return w.registerForm(r,C),function(){w.unregisterForm(r)}}),[w,C,r]),k(Y(Y({},w.validateMessages),d)),O({onValuesChange:m,onFieldsChange:function(e){if(w.triggerFormChange(r,e),g){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];g.apply(void 0,[e].concat(n))}},onFinish:function(e){w.triggerFormFinish(r,e),v&&v(e)},onFinishFailed:h}),N(l);var P,M=e.useRef(null);$(o,!M.current),M.current||(M.current=!0),e.useEffect((function(){return function(){return j(b)}}),[]);var R="function"==typeof c;R?P=c(C.getFieldsValue(!0),C):P=c;S(!R);var T=e.useRef();e.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==X(e)||"object"!==X(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Ge(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(T.current||[],i||[])||C.setFields(i||[]),T.current=i}),[i,C]);var _=e.useMemo((function(){return Y(Y({},C),{},{validateTrigger:p})}),[C,p]),A=e.createElement(ys.Provider,{value:null},e.createElement(bs.Provider,{value:_},P));return!1===u?A:e.createElement(u,I({},y,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),C.submit()},onReset:function(e){var t;e.preventDefault(),C.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),A)};function xu(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var wu="production"!==process.env.NODE_ENV?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__");q(a(t).current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var Cu=e.forwardRef(yu);Cu.FormProvider=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=e.useContext(hu),l=e.useRef({});return e.createElement(hu.Provider,{value:Y(Y({},a),{},{validateMessages:Y(Y({},a.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=Y(Y({},l.current),{},G({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Y({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},Cu.Field=uu,Cu.List=function(t){var n=t.name,r=t.initialValue,o=t.children,i=t.rules,a=t.validateTrigger,l=t.isListField,c=e.useContext(bs),s=e.useContext(ys),u=e.useRef({keys:[],id:0}).current,d=e.useMemo((function(){var e=eu(c.prefixName)||[];return[].concat(Ge(e),Ge(eu(n)))}),[c.prefixName,n]),f=e.useMemo((function(){return Y(Y({},c),{},{prefixName:d})}),[c,d]),p=e.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof o?(q(!1,"Form.List only accepts function as children."),null):e.createElement(ys.Provider,{value:p},e.createElement(bs.Provider,{value:f},e.createElement(uu,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:null!=l?l:!!s},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(d||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(Ge(u.keys.slice(0,t)),[u.id],Ge(u.keys.slice(t))),i([].concat(Ge(n.slice(0,t)),[e],Ge(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&q(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Ge(u.keys),[u.id]),i([].concat(Ge(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=iu(u.keys,e,t),i(iu(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&q(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),o(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))},Cu.useForm=vu,Cu.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],l=void 0===i?{}:i,s=function(e){return e&&!!e._init}(l)?{form:l}:l,f=s.form,p=rt(d(),2),m=p[0],g=p[1],v=u((function(){return xu(m)}),[m]),h=a(v);h.current=v;var b=o(bs),y=f||b,x=y&&y._init;"production"!==process.env.NODE_ENV&&q(2===t.length&&!f||x,"useWatch requires a form instance since it can not auto detect from context.");var w=eu(r),C=a(w);return C.current=w,wu(w),c((function(){if(x){var e=y.getFieldsValue,t=(0,y.getInternalHooks)(vs).registerWatch,n=function(e,t){var n=s.preserve?t:e;return"function"==typeof r?r(n):br(n,C.current)},o=t((function(e,t){var r=n(e,t),o=xu(r);h.current!==o&&(h.current=o,g(r))})),i=n(e(),e(!0));return m!==i&&g(i),o}}),[x]),m};const Eu=e.createContext({});"production"!==process.env.NODE_ENV&&(Eu.displayName="FormItemInputContext");const Su=t=>{let{children:n,status:r,override:i}=t;const a=o(Eu),l=u((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,i,a]);return e.createElement(Eu.Provider,{value:l},n)},$u=i(void 0),Ou=e=>{const{space:n,form:r,children:o}=e;if(null==o)return null;let i=o;return r&&(i=t.createElement(Su,{override:!0,status:!0},i)),n&&(i=t.createElement(dc,null,i)),i};var ku=function(e){if(it()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function Nu(e,t){return Array.isArray(e)||void 0===t?ku(e):function(e,t){if(!ku(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}const ju=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Pu=e=>({animationDuration:e,animationFillMode:"both"}),Iu=e=>({animationDuration:e,animationFillMode:"both"}),Mu=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},Pu(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Iu(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"}}},Ru={"slide-up":{inKeyframes:new gr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new gr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new gr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new gr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new gr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new gr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new gr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new gr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},Tu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Ru[t];return[Mu(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}}]},_u=new gr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Au=new gr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Bu=new gr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Lu=new gr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Fu=new gr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zu=new gr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Du={zoom:{inKeyframes:_u,outKeyframes:Au},"zoom-big":{inKeyframes:Bu,outKeyframes:Lu},"zoom-big-fast":{inKeyframes:Bu,outKeyframes:Lu},"zoom-left":{inKeyframes:new gr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new gr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new gr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new gr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Fu,outKeyframes:zu},"zoom-down":{inKeyframes:new gr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new gr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Hu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Du[t];return[Mu(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}}]};var Vu=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},Wu=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],qu=void 0;function Xu(t,n){var r=t.prefixCls,o=t.invalidate,i=t.item,a=t.renderItem,l=t.responsive,c=t.responsiveDisabled,s=t.registerSize,u=t.itemKey,d=t.className,f=t.style,p=t.children,m=t.display,g=t.order,v=t.component,h=void 0===v?"div":v,b=ht(t,Wu),y=l&&!m;function x(e){s(u,e)}e.useEffect((function(){return function(){x(null)}}),[]);var w,C=a&&i!==qu?a(i):p;o||(w={opacity:y?0:1,height:y?0:qu,overflowY:y?"hidden":qu,order:l?g:qu,pointerEvents:y?"none":qu,position:y?"absolute":qu});var E={};y&&(E["aria-hidden"]=!0);var S=e.createElement(h,I({className:P(!o&&r,d),style:Y(Y({},w),f)},E,b,{ref:n}),C);return l&&(S=e.createElement(Ve,{onResize:function(e){x(e.offsetWidth)},disabled:c},S)),S}var Ku=e.forwardRef(Xu);function Gu(){var t=e.useRef(null);return function(e){t.current||(t.current=[],function(e){if("undefined"==typeof MessageChannel)et(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){x((function(){t.current.forEach((function(e){e()})),t.current=null}))}))),t.current.push(e)}}function Uu(t,n){var r=rt(e.useState(n),2),o=r[0],i=r[1];return[o,di((function(e){t((function(){i(e)}))}))]}Ku.displayName="Item";var Yu=t.createContext(null),Zu=["component"],Qu=["className"],Ju=["className"],ed=function(t,n){var r=e.useContext(Yu);if(!r){var o=t.component,i=void 0===o?"div":o,a=ht(t,Zu);return e.createElement(i,I({},a,{ref:n}))}var l=r.className,c=ht(r,Qu),s=t.className,u=ht(t,Ju);return e.createElement(Yu.Provider,{value:null},e.createElement(Ku,I({ref:n,className:P(l,s)},c,u)))},td=e.forwardRef(ed);td.displayName="RawItem";var nd=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],rd="responsive",od="invalidate";function id(e){return"+ ".concat(e.length," ...")}function ad(t,n){var r=t.prefixCls,o=void 0===r?"rc-overflow":r,i=t.data,a=void 0===i?[]:i,l=t.renderItem,c=t.renderRawItem,s=t.itemKey,f=t.itemWidth,p=void 0===f?10:f,g=t.ssr,v=t.style,h=t.className,b=t.maxCount,y=t.renderRest,x=t.renderRawRest,w=t.suffix,C=t.component,E=void 0===C?"div":C,S=t.itemComponent,$=t.onVisibleChange,O=ht(t,nd),k="full"===g,N=Gu(),j=rt(Uu(N,null),2),M=j[0],R=j[1],T=M||0,_=rt(Uu(N,new Map),2),A=_[0],B=_[1],L=rt(Uu(N,0),2),F=L[0],z=L[1],D=rt(Uu(N,0),2),H=D[0],V=D[1],W=rt(Uu(N,0),2),q=W[0],X=W[1],K=rt(d(null),2),G=K[0],U=K[1],Z=rt(d(null),2),Q=Z[0],J=Z[1],ee=e.useMemo((function(){return null===Q&&k?Number.MAX_SAFE_INTEGER:Q||0}),[Q,M]),te=rt(d(!1),2),ne=te[0],re=te[1],oe="".concat(o,"-item"),ie=Math.max(F,H),ae=b===rd,le=a.length&&ae,ce=b===od,se=le||"number"==typeof b&&a.length>b,ue=u((function(){var e=a;return le?e=null===M&&k?a:a.slice(0,Math.min(a.length,T/p)):"number"==typeof b&&(e=a.slice(0,b)),e}),[a,p,M,b,le]),de=u((function(){return le?a.slice(ee+1):a.slice(ue.length)}),[a,ue,le,ee]),fe=m((function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t}),[s]),pe=m(l||function(e){return e},[l]);function me(e,t,n){(Q!==e||void 0!==t&&t!==G)&&(J(e),n||(re(e<a.length-1),null==$||$(e)),void 0!==t&&U(t))}function ge(e,t){B((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function ve(e){return A.get(fe(ue[e],e))}Wt((function(){if(T&&"number"==typeof ie&&ue){var e=q,t=ue.length,n=t-1;if(!t)return void me(0,null);for(var r=0;r<t;r+=1){var o=ve(r);if(k&&(o=o||0),void 0===o){me(r-1,void 0,!0);break}if(e+=o,0===n&&e<=T||r===n-1&&e+ve(n)<=T){me(n,null);break}if(e+ie>T){me(r-1,e-o-q+H);break}}w&&ve(0)+q>T&&U(null)}}),[T,A,H,q,fe,ue]);var he=ne&&!!de.length,be={};null!==G&&le&&(be={position:"absolute",left:G,top:0});var ye,xe={prefixCls:oe,responsive:le,component:S,invalidate:ce},we=c?function(t,n){var r=fe(t,n);return e.createElement(Yu.Provider,{key:r,value:Y(Y({},xe),{},{order:n,item:t,itemKey:r,registerSize:ge,display:n<=ee})},c(t,n))}:function(t,n){var r=fe(t,n);return e.createElement(Ku,I({},xe,{order:n,key:r,item:t,renderItem:pe,itemKey:r,registerSize:ge,display:n<=ee}))},Ce={order:he?ee:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:function(e,t){V(t),z(H)},display:he};if(x)x&&(ye=e.createElement(Yu.Provider,{value:Y(Y({},xe),Ce)},x(de)));else{var Ee=y||id;ye=e.createElement(Ku,I({},xe,Ce),"function"==typeof Ee?Ee(de):Ee)}var Se=e.createElement(E,I({className:P(!ce&&o,h),style:v,ref:n},O),ue.map(we),se?ye:null,w&&e.createElement(Ku,I({},xe,{responsive:ae,responsiveDisabled:!le,order:ee,className:"".concat(oe,"-suffix"),registerSize:function(e,t){X(t)},display:!0,style:be}),w));return ae&&(Se=e.createElement(Ve,{onResize:function(e,t){R(t.clientWidth)},disabled:!le},Se)),Se}var ld=e.forwardRef(ad);function cd(t){var n=t.prefixCls,r=t.align,o=t.arrow,i=t.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,d=i.y,f=void 0===d?0:d,p=e.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var g=r.points[0],v=r.points[1],h=g[0],b=g[1],y=v[0],x=v[1];h!==y&&["t","b"].includes(h)?"t"===h?m.top=0:m.bottom=0:m.top=f,b!==x&&["l","r"].includes(b)?"l"===b?m.left=0:m.right=0:m.left=u}return e.createElement("div",{ref:p,className:P("".concat(n,"-arrow"),l),style:m},c)}function sd(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Ma,I({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:P("".concat(n,"-mask"),r)})})):null}ld.displayName="Overflow",ld.Item=td,ld.RESPONSIVE=rd,ld.INVALIDATE=od;var ud=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(ud.displayName="PopupContent");var dd=e.forwardRef((function(t,n){var r=t.popup,o=t.className,i=t.prefixCls,a=t.style,l=t.target,c=t.onVisibleChanged,s=t.open,u=t.keepDom,d=t.fresh,f=t.onClick,p=t.mask,m=t.arrow,g=t.arrowPos,v=t.align,h=t.motion,b=t.maskMotion,y=t.forceRender,x=t.getPopupContainer,w=t.autoDestroy,C=t.portal,E=t.zIndex,S=t.onMouseEnter,$=t.onMouseLeave,O=t.onPointerEnter,k=t.ready,N=t.offsetX,j=t.offsetY,M=t.offsetR,R=t.offsetB,T=t.onAlign,_=t.onPrepare,A=t.stretch,B=t.targetWidth,L=t.targetHeight,F="function"==typeof r?r():r,z=s||u,D=(null==x?void 0:x.length)>0,H=rt(e.useState(!x||!D),2),V=H[0],W=H[1];if(Wt((function(){!V&&D&&l&&W(!0)}),[V,D,l]),!V)return null;var q="auto",X={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(k||!s){var K,G=v.points,U=v.dynamicInset||(null===(K=v._experimental)||void 0===K?void 0:K.dynamicInset),Z=U&&"r"===G[0][1],Q=U&&"b"===G[0][0];Z?(X.right=M,X.left=q):(X.left=N,X.right=q),Q?(X.bottom=R,X.top=q):(X.top=j,X.bottom=q)}var J={};return A&&(A.includes("height")&&L?J.height=L:A.includes("minHeight")&&L&&(J.minHeight=L),A.includes("width")&&B?J.width=B:A.includes("minWidth")&&B&&(J.minWidth=B)),s||(J.pointerEvents="none"),e.createElement(C,{open:y||z,getContainer:x&&function(){return x(l)},autoDestroy:w},e.createElement(sd,{prefixCls:i,open:s,zIndex:E,mask:p,motion:b}),e.createElement(Ve,{onResize:T,disabled:!s},(function(t){return e.createElement(Ma,I({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},h,{onAppearPrepare:_,onEnterPrepare:_,visible:s,onVisibleChanged:function(e){var t;null==h||null===(t=h.onVisibleChanged)||void 0===t||t.call(h,e),c(e)}}),(function(r,l){var c=r.className,u=r.style,p=P(i,c,o);return e.createElement("div",{ref:te(t,n,l),className:p,style:Y(Y(Y(Y({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},X),J),u),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:S,onMouseLeave:$,onPointerEnter:O,onClick:f},m&&e.createElement(cd,{prefixCls:i,arrow:m,arrowPos:g,align:v}),e.createElement(ud,{cache:!s&&!d},F))}))})))}));"production"!==process.env.NODE_ENV&&(dd.displayName="Popup");var fd=e.forwardRef((function(t,n){var r=t.children,o=t.getTriggerDOMNode,i=re(r),a=e.useCallback((function(e){ee(n,o?o(e):e)}),[o]),l=ne(a,r.ref);return i?e.cloneElement(r,{ref:l}):r}));"production"!==process.env.NODE_ENV&&(fd.displayName="TriggerWrapper");var pd=e.createContext(null);function md(e){return e?Array.isArray(e)?e:[e]:[]}function gd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function vd(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function hd(e){return e.ownerDocument.defaultView}function bd(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=hd(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function yd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function xd(e){return yd(parseFloat(e),0)}function wd(e,t){var n=Y({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=hd(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=xd(i),g=xd(a),v=xd(l),h=xd(c),b=yd(Math.round(s.width/f*1e3)/1e3),y=yd(Math.round(s.height/u*1e3)/1e3),x=(f-p-v-h)*b,w=(u-d-m-g)*y,C=m*y,E=g*y,S=v*b,$=h*b,O=0,k=0;if("clip"===r){var N=xd(o);O=N*b,k=N*y}var j=s.x+S-O,P=s.y+C-k,I=j+s.width+2*O-S-$-x,M=P+s.height+2*k-C-E-w;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,M)}})),n}function Cd(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Ed(e,t){var n=rt(t||[],2),r=n[0],o=n[1];return[Cd(e.width,r),Cd(e.height,o)]}function Sd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function $d(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Od(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var kd=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var Nd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fs,n=e.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,l=n.action,c=void 0===l?"hover":l,s=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,h=void 0===v?.1:v,b=n.focusDelay,y=n.blurDelay,x=n.mask,w=n.maskClosable,C=void 0===w||w,E=n.getPopupContainer,S=n.forceRender,$=n.autoDestroy,O=n.destroyPopupOnHide,k=n.popup,N=n.popupClassName,j=n.popupStyle,I=n.popupPlacement,M=n.builtinPlacements,R=void 0===M?{}:M,T=n.popupAlign,_=n.zIndex,A=n.stretch,B=n.getPopupClassNameFromAlign,L=n.fresh,F=n.alignPoint,z=n.onPopupClick,H=n.onPopupAlign,V=n.arrow,W=n.popupMotion,q=n.maskMotion,X=n.popupTransitionName,K=n.popupAnimation,G=n.maskTransitionName,U=n.maskAnimation,Q=n.className,J=n.getTriggerDOMNode,ee=ht(n,kd),te=$||O||!1,ne=rt(e.useState(!1),2),re=ne[0],oe=ne[1];Wt((function(){oe(Vu())}),[]);var ie=e.useRef({}),ae=e.useContext(pd),le=e.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),ce=gs(),se=rt(e.useState(null),2),ue=se[0],de=se[1],fe=e.useRef(null),pe=di((function(e){fe.current=e,Z(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(ce,e)})),me=rt(e.useState(null),2),ge=me[0],ve=me[1],he=e.useRef(null),be=di((function(e){Z(e)&&ge!==e&&(ve(e),he.current=e)})),ye=e.Children.only(a),xe=(null==ye?void 0:ye.props)||{},we={},Ce=function(e,t){var n,r;return e===t||t.contains(e)||(null===(n=Qa(t))||void 0===n?void 0:n.host)===e||t.contains(null===(r=Qa(e))||void 0===r?void 0:r.host)},Ee=di((function(e){var t=ge,n=Ce.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=vd(i,W,K,X),$e=vd(i,q,U,G),Oe=rt(e.useState(f||!1),2),ke=Oe[0],Ne=Oe[1],je=null!=d?d:ke,Pe=di((function(e){void 0===d&&Ne(e)}));Wt((function(){Ne(d||!1)}),[d]);var Ie=e.useRef(je);Ie.current=je;var Me=e.useRef([]);Me.current=[];var Re=di((function(e){var t;Pe(e),(null!==(t=Me.current[Me.current.length-1])&&void 0!==t?t:je)!==e&&(Me.current.push(e),null==p||p(e))})),Te=e.useRef(),_e=function(){clearTimeout(Te.current)},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_e(),0===t?Re(e):Te.current=setTimeout((function(){Re(e)}),1e3*t)};e.useEffect((function(){return _e}),[]);var Be=rt(e.useState(!1),2),Le=Be[0],Fe=Be[1];Wt((function(e){e&&!je||Fe(!0)}),[je]);var ze=rt(e.useState(null),2),De=ze[0],He=ze[1],We=rt(e.useState(null),2),qe=We[0],Xe=We[1],Ke=function(e){Xe([e.clientX,e.clientY])},Ue=function(t,n,r,o,i,a,l){var c=rt(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=e.useRef(0),f=e.useMemo((function(){return n?bd(n):[]}),[n]),p=e.useRef({});t||(p.current={});var m=di((function(){if(n&&r&&t){var e,c,s,d,m,g=n,v=g.ownerDocument,h=hd(g).getComputedStyle(g),b=h.width,y=h.height,x=h.position,w=g.style.left,C=g.style.top,E=g.style.right,S=g.style.bottom,$=g.style.overflow,O=Y(Y({},i[o]),a),k=v.createElement("div");if(null===(e=g.parentElement)||void 0===e||e.appendChild(k),k.style.left="".concat(g.offsetLeft,"px"),k.style.top="".concat(g.offsetTop,"px"),k.style.position=x,k.style.height="".concat(g.offsetHeight,"px"),k.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(r))m={x:r[0],y:r[1],width:0,height:0};else{var N,j,P=r.getBoundingClientRect();P.x=null!==(N=P.x)&&void 0!==N?N:P.left,P.y=null!==(j=P.y)&&void 0!==j?j:P.top,m={x:P.x,y:P.y,width:P.width,height:P.height}}var I=g.getBoundingClientRect();I.x=null!==(c=I.x)&&void 0!==c?c:I.left,I.y=null!==(s=I.y)&&void 0!==s?s:I.top;var M=v.documentElement,R=M.clientWidth,T=M.clientHeight,_=M.scrollWidth,A=M.scrollHeight,B=M.scrollTop,L=M.scrollLeft,F=I.height,z=I.width,D=m.height,H=m.width,V={left:0,top:0,right:R,bottom:T},W={left:-L,top:-B,right:_-L,bottom:A-B},q=O.htmlRegion,X="visible",K="visibleFirst";"scroll"!==q&&q!==K&&(q=X);var G=q===K,U=wd(W,f),Q=wd(V,f),J=q===X?Q:U,ee=G?Q:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=w,g.style.top=C,g.style.right=E,g.style.bottom=S,g.style.overflow=$,null===(d=g.parentElement)||void 0===d||d.removeChild(k);var ne=yd(Math.round(z/parseFloat(b)*1e3)/1e3),re=yd(Math.round(F/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||Z(r)&&!Ql(r))return;var oe=O.offset,ie=O.targetOffset,ae=rt(Ed(I,oe),2),le=ae[0],ce=ae[1],se=rt(Ed(m,ie),2),ue=se[0],de=se[1];m.x-=ue,m.y-=de;var fe=rt(O.points||[],2),pe=fe[0],me=Sd(fe[1]),ge=Sd(pe),ve=$d(m,me),he=$d(I,ge),be=Y({},O),ye=ve.x-he.x+le,xe=ve.y-he.y+ce;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=I.x+e,o=I.y+t,i=r+z,a=o+F,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var we,Ce,Ee,Se,$e=mt(ye,xe),Oe=mt(ye,xe,Q),ke=$d(m,["t","l"]),Ne=$d(I,["t","l"]),je=$d(m,["b","r"]),Pe=$d(I,["b","r"]),Ie=O.overflow||{},Me=Ie.adjustX,Re=Ie.adjustY,Te=Ie.shiftX,_e=Ie.shiftY,Ae=function(e){return"boolean"==typeof e?e:e>=0};function gt(){we=I.y+xe,Ce=we+F,Ee=I.x+ye,Se=Ee+z}gt();var Be=Ae(Re),Le=ge[0]===me[0];if(Be&&"t"===ge[0]&&(Ce>ee.bottom||p.current.bt)){var Fe=xe;Le?Fe-=F-D:Fe=ke.y-Pe.y-ce;var ze=mt(ye,Fe),De=mt(ye,Fe,Q);ze>$e||ze===$e&&(!G||De>=Oe)?(p.current.bt=!0,xe=Fe,ce=-ce,be.points=[Od(ge,0),Od(me,0)]):p.current.bt=!1}if(Be&&"b"===ge[0]&&(we<ee.top||p.current.tb)){var He=xe;Le?He+=F-D:He=je.y-Ne.y-ce;var Ve=mt(ye,He),We=mt(ye,He,Q);Ve>$e||Ve===$e&&(!G||We>=Oe)?(p.current.tb=!0,xe=He,ce=-ce,be.points=[Od(ge,0),Od(me,0)]):p.current.tb=!1}var qe=Ae(Me),Xe=ge[1]===me[1];if(qe&&"l"===ge[1]&&(Se>ee.right||p.current.rl)){var Ke=ye;Xe?Ke-=z-H:Ke=ke.x-Pe.x-le;var Ge=mt(Ke,xe),Ue=mt(Ke,xe,Q);Ge>$e||Ge===$e&&(!G||Ue>=Oe)?(p.current.rl=!0,ye=Ke,le=-le,be.points=[Od(ge,1),Od(me,1)]):p.current.rl=!1}if(qe&&"r"===ge[1]&&(Ee<ee.left||p.current.lr)){var Ye=ye;Xe?Ye+=z-H:Ye=je.x-Ne.x-le;var Ze=mt(Ye,xe),Qe=mt(Ye,xe,Q);Ze>$e||Ze===$e&&(!G||Qe>=Oe)?(p.current.lr=!0,ye=Ye,le=-le,be.points=[Od(ge,1),Od(me,1)]):p.current.lr=!1}gt();var Je=!0===Te?0:Te;"number"==typeof Je&&(Ee<Q.left&&(ye-=Ee-Q.left-le,m.x+H<Q.left+Je&&(ye+=m.x-Q.left+H-Je)),Se>Q.right&&(ye-=Se-Q.right-le,m.x>Q.right-Je&&(ye+=m.x-Q.right+Je)));var et=!0===_e?0:_e;"number"==typeof et&&(we<Q.top&&(xe-=we-Q.top-ce,m.y+D<Q.top+et&&(xe+=m.y-Q.top+D-et)),Ce>Q.bottom&&(xe-=Ce-Q.bottom-ce,m.y>Q.bottom-et&&(xe+=m.y-Q.bottom+et)));var tt=I.x+ye,nt=tt+z,ot=I.y+xe,it=ot+F,at=m.x,lt=at+H,ct=m.y,st=ct+D,ut=(Math.max(tt,at)+Math.min(nt,lt))/2-tt,dt=(Math.max(ot,ct)+Math.min(it,st))/2-ot;null==l||l(n,be);var ft=te.right-I.x-(ye+I.width),pt=te.bottom-I.y-(xe+I.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===re&&(xe=Math.round(xe),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:xe/re,offsetR:ft/ne,offsetB:pt/re,arrowX:ut/ne,arrowY:dt/re,scaleX:ne,scaleY:re,align:be})}})),g=function(){u((function(e){return Y(Y({},e),{},{ready:!1})}))};return Wt(g,[o]),Wt((function(){t||g()}),[t]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(je,ue,F&&null!==qe?qe:ge,I,R,T,H),Ye=rt(Ue,11),Ze=Ye[0],Qe=Ye[1],Je=Ye[2],et=Ye[3],tt=Ye[4],nt=Ye[5],ot=Ye[6],it=Ye[7],at=Ye[8],lt=Ye[9],ct=Ye[10],st=function(t,n,r,o){return e.useMemo((function(){var e=md(null!=r?r:n),i=md(null!=o?o:n),a=new Set(e),l=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[t,n,r,o])}(re,c,s,u),ut=rt(st,2),dt=ut[0],ft=ut[1],pt=dt.has("click"),mt=ft.has("click")||ft.has("contextMenu"),gt=di((function(){Le||ct()}));!function(e,t,n,r,o){Wt((function(){if(e&&t&&n){var i=n,a=bd(t),l=bd(i),c=hd(i),s=new Set([c].concat(Ge(a),Ge(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(je,ge,ue,gt,(function(){Ie.current&&F&&mt&&Ae(!1)})),Wt((function(){gt()}),[qe,I]),Wt((function(){!je||null!=R&&R[I]||gt()}),[JSON.stringify(T)]);var vt=e.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(gd(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(R,i,lt,F);return P(e,null==B?void 0:B(lt))}),[lt,B,R,i,F]);e.useImperativeHandle(r,(function(){return{nativeElement:he.current,popupElement:fe.current,forceAlign:gt}}));var bt=rt(e.useState(0),2),yt=bt[0],xt=bt[1],wt=rt(e.useState(0),2),Ct=wt[0],Et=wt[1],St=function(){if(A&&ge){var e=ge.getBoundingClientRect();xt(e.width),Et(e.height)}};function $t(e,t,n,r){we[e]=function(o){var i;null==r||r(o),Ae(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=xe[e])||void 0===i||i.call.apply(i,[xe,o].concat(l))}}Wt((function(){De&&(ct(),De(),He(null))}),[De]),(pt||mt)&&(we.onClick=function(e){var t;Ie.current&&mt?Ae(!1):!Ie.current&&pt&&(Ke(e),Ae(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=xe.onClick)||void 0===t||t.call.apply(t,[xe,e].concat(r))}),function(t,n,r,o,i,a,l,c){var s=e.useRef(t);s.current=t,e.useEffect((function(){if(n&&o&&(!i||a)){var e=function(e){var t;s.current&&!l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},t=hd(o);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var u,d,f=Qa(r);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&D((null==r||null===(u=r.getRootNode)||void 0===u?void 0:u.call(r))===(null===(d=o.getRootNode)||void 0===d?void 0:d.call(o)),"trigger element and popup element should in same shadow root."),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[n,r,o,i,a])}(je,mt,ge,ue,x,C,Ee,Ae);var Ot,kt,Nt=dt.has("hover"),jt=ft.has("hover");Nt&&($t("onMouseEnter",!0,g,(function(e){Ke(e)})),$t("onPointerEnter",!0,g,(function(e){Ke(e)})),Ot=function(e){(je||Le)&&null!=ue&&ue.contains(e.target)&&Ae(!0,g)},F&&(we.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),jt&&($t("onMouseLeave",!1,h),$t("onPointerLeave",!1,h),kt=function(){Ae(!1,h)}),dt.has("focus")&&$t("onFocus",!0,b),ft.has("focus")&&$t("onBlur",!1,y),dt.has("contextMenu")&&(we.onContextMenu=function(e){var t;Ie.current&&ft.has("contextMenu")?Ae(!1):(Ke(e),Ae(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=xe.onContextMenu)||void 0===t||t.call.apply(t,[xe,e].concat(r))}),Q&&(we.className=P(xe.className,Q));var Pt=Y(Y({},xe),we),It={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(It[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Pt[e])||void 0===t||t.call.apply(t,[Pt].concat(r)),ee[e].apply(ee,r)})}));var Mt=e.cloneElement(ye,Y(Y({},Pt),It)),Rt={x:nt,y:ot},Tt=V?Y({},!0!==V?V:{}):null;return e.createElement(e.Fragment,null,e.createElement(Ve,{disabled:!je,ref:be,onResize:function(){St(),gt()}},e.createElement(fd,{getTriggerDOMNode:J},Mt)),e.createElement(pd.Provider,{value:le},e.createElement(dd,{portal:t,ref:pe,prefixCls:i,popup:k,className:P(N,vt),style:j,target:ge,onMouseEnter:Ot,onMouseLeave:kt,onPointerEnter:Ot,zIndex:_,open:je,keepDom:Le,fresh:L,onClick:z,mask:x,motion:Se,maskMotion:$e,onVisibleChanged:function(e){Fe(!1),ct(),null==m||m(e)},onPrepare:function(){return new Promise((function(e){St(),He((function(){return e}))}))},forceRender:S,autoDestroy:te,getPopupContainer:E,align:lt,arrow:Tt,arrowPos:Rt,ready:Ze,offsetX:Qe,offsetY:Je,offsetR:et,offsetB:tt,onAlign:gt,stretch:A,targetWidth:yt/it,targetHeight:Ct/at})))}));return"production"!==process.env.NODE_ENV&&(n.displayName="Trigger"),n}(fs);function jd(e,t,n){return P({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Pd=(e,t)=>t||e,Id=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,i;const{variant:a,[e]:l}=o(Zo),c=o($u),s=null==l?void 0:l.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(r=null!=c?c:s)&&void 0!==r?r:a)&&void 0!==i?i:"outlined";return[u,Yo.includes(u)]};var Md={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"},Rd=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:Md}))},Td=e.forwardRef(Rd);"production"!==process.env.NODE_ENV&&(Td.displayName="CheckOutlined");var _d={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"},Ad=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:_d}))},Bd=e.forwardRef(Ad);function Ld(t){var n=t.children,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.className,l=t.style;return e.createElement("div",{className:P("".concat(r,"-content"),a),style:l},e.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}"production"!==process.env.NODE_ENV&&(Bd.displayName="SearchOutlined");var Fd={shiftX:64,adjustY:1},zd={adjustX:1,shiftY:!0},Dd=[0,0],Hd={left:{points:["cr","cl"],overflow:zd,offset:[-4,0],targetOffset:Dd},right:{points:["cl","cr"],overflow:zd,offset:[4,0],targetOffset:Dd},top:{points:["bc","tc"],overflow:Fd,offset:[0,-4],targetOffset:Dd},bottom:{points:["tc","bc"],overflow:Fd,offset:[0,4],targetOffset:Dd},topLeft:{points:["bl","tl"],overflow:Fd,offset:[0,-4],targetOffset:Dd},leftTop:{points:["tr","tl"],overflow:zd,offset:[-4,0],targetOffset:Dd},topRight:{points:["br","tr"],overflow:Fd,offset:[0,-4],targetOffset:Dd},rightTop:{points:["tl","tr"],overflow:zd,offset:[4,0],targetOffset:Dd},bottomRight:{points:["tr","br"],overflow:Fd,offset:[0,4],targetOffset:Dd},rightBottom:{points:["bl","br"],overflow:zd,offset:[4,0],targetOffset:Dd},bottomLeft:{points:["tl","bl"],overflow:Fd,offset:[0,4],targetOffset:Dd},leftBottom:{points:["br","bl"],overflow:zd,offset:[-4,0],targetOffset:Dd}},Vd=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Wd=function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,l=t.mouseEnterDelay,c=void 0===l?0:l,s=t.mouseLeaveDelay,u=void 0===s?.1:s,d=t.overlayStyle,f=t.prefixCls,p=void 0===f?"rc-tooltip":f,m=t.children,v=t.onVisibleChange,h=t.afterVisibleChange,b=t.transitionName,y=t.animation,x=t.motion,w=t.placement,C=void 0===w?"right":w,E=t.align,S=void 0===E?{}:E,$=t.destroyTooltipOnHide,O=void 0!==$&&$,k=t.defaultVisible,N=t.getTooltipContainer,j=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,M=t.id,R=t.showArrow,T=void 0===R||R,_=ht(t,Vd),A=a(null);g(n,(function(){return A.current}));var B=Y({},_);"visible"in t&&(B.popupVisible=t.visible);return e.createElement(Nd,I({popupClassName:r,prefixCls:p,popup:function(){return e.createElement(Ld,{key:"content",prefixCls:p,id:M,overlayInnerStyle:j},P)},action:i,builtinPlacements:Hd,popupPlacement:C,ref:A,popupAlign:S,getPopupContainer:N,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:b,popupAnimation:y,popupMotion:x,defaultPopupVisible:k,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c,arrow:T},B),m)},qd=s(Wd);const Xd=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Lt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Kd=8;function Gd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Kd:r}}function Ud(e,t){return e?t:{}}function Yd(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Xd(e,t,o)),{"&:before":{background:t}})]},Ud(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Lt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ud(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Lt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ud(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Ud(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Zd={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"]}},Qd={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"]}},Jd=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ef(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Zd).forEach((e=>{const s=r&&Qd[e]||Zd[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Jd.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=Gd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const tf=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Fi(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${Lt(e.calc(s).div(2).equal())} ${Lt(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Kd)}},[`${t}-content`]:{position:"relative"}}),Ki(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Yd(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},nf=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Gd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,m=2*o-0,g=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1);return{arrowShadowWidth:v,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*o-h}px 100%, ${h}px 100%)`}}(bi(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var rf=function(e){const t=Wi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=bi(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[tf(o),Hu(e,"zoom-big-fast")]}),nf,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const of=$i.map((e=>`${e}-inverse`));function af(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Ge(of),Ge($i)).includes(e):$i.includes(e)}function lf(e,t){const n=af(t),r=P({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var cf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sf=e.forwardRef(((t,n)=>{var r,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:g=!0,title:v,overlay:h,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=t,w=!!g,[,C]=Ai(),{getPopupContainer:E,getPrefixCls:S,direction:$}=e.useContext(Zo),O=Nr("Tooltip"),k=e.useRef(null),N=()=>{var e;null===(e=k.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,(()=>{var e;return{forceAlign:N,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:null===(e=k.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((e=>{let[n,r]=e;O.deprecated(!(n in t),n,r)})),"production"!==process.env.NODE_ENV&&O(!m||"boolean"==typeof m,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&O(!g||"boolean"==typeof g||!("arrowPointAtCenter"in g),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,I]=mi(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),M=!v&&!h&&0!==v,R=e.useMemo((()=>{var e,t;let n=y;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:y),b||ef({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:w?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[y,g,b,C]),T=e.useMemo((()=>0===v?v:h||v||""),[h,v]),_=e.createElement(Ou,{space:!0},"function"==typeof T?T():T),{getPopupContainer:A,placement:B="top",mouseEnterDelay:L=.1,mouseLeaveDelay:F=.1,overlayStyle:z,rootClassName:D}=t,H=cf(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=S("tooltip",i),W=S(),q=t["data-popover-inject"];let X=j;"open"in t||"visible"in t||!M||(X=!1);const K=e.isValidElement(d)&&!bl(d)?d:e.createElement("span",null,d),G=K.props,U=G.className&&"string"!=typeof G.className?G.className:P(G.className,a||`${V}-open`),[Y,Z,Q]=rf(V,!q),J=lf(V,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=P(c,{[`${V}-rtl`]:"rtl"===$},J.className,D,Z,Q),[re,oe]=Pl("Tooltip",H.zIndex),ie=e.createElement(qd,Object.assign({},H,{zIndex:re,showArrow:w,placement:B,mouseEnterDelay:L,mouseLeaveDelay:F,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),z),getTooltipContainer:A||l||E,ref:k,builtinPlacements:R,overlay:_,visible:X,onVisibleChange:e=>{var n,r;I(!M&&e),M||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(r=t.onVisibleChange)||void 0===r||r.call(t,e))},afterVisibleChange:null!=f?f:p,overlayInnerStyle:te,arrowContent:e.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:Zl(W,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),X?xl(K,{className:U}):K);return Y(e.createElement(Ol.Provider,{value:oe},ie))})),uf=sf;"production"!==process.env.NODE_ENV&&(uf.displayName="Tooltip"),uf._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:c}=e.useContext(Zo),s=c("tooltip",n),[u,d,f]=rf(s),p=lf(s,a),m=p.arrowStyle,g=Object.assign(Object.assign({},l),p.overlayStyle),v=P(d,f,s,`${s}-pure`,`${s}-placement-${o}`,r,p.className);return u(e.createElement("div",{className:v,style:m},e.createElement("div",{className:`${s}-arrow`}),e.createElement(Ld,Object.assign({},t,{className:d,prefixCls:s,overlayInnerStyle:g}),i)))};const df=new gr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),ff=new gr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),pf=new gr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),mf=new gr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),gf=new gr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),vf=new gr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),hf=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return bi(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorBgContainer,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},bf=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}};var yf=Wi("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:i,textFontSize:a,textFontSizeSM:l,statusSize:c,dotSize:s,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:p,calc:m}=e,g=`${r}-scroll-number`,v=Ki(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]:Object.assign(Object.assign(Object.assign(Object.assign({},Fi(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:Lt(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:m(d).div(2).equal(),boxShadow:`0 0 0 ${Lt(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:l,lineHeight:Lt(f),borderRadius:m(f).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}-dot${g}`]:{transition:`background ${i}`},[`${t}-count, ${t}-dot, ${g}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:vf,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:c,height:c,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:df,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}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:ff,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:pf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:mf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:gf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${g}-custom-component, ${t}-count`]:{transform:"none"},[`${g}-custom-component, ${g}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[g]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${g}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${g}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${g}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${g}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(hf(e))),bf);var xf=Wi(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=Ki(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Fi(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}-text`]:{color:e.colorTextLightSolid},[`${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}}),c),{[`&${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"}})}})(hf(e))),bf);const wf=t=>{const{className:n,prefixCls:r,style:o,color:i,children:a,text:l,placement:c="end",rootClassName:s}=t,{getPrefixCls:u,direction:d}=e.useContext(Zo),f=u("ribbon",r),p=`${f}-wrapper`,[m,g,v]=xf(f,p),h=af(i,!1),b=P(f,`${f}-placement-${c}`,{[`${f}-rtl`]:"rtl"===d,[`${f}-color-${i}`]:h},n),y={},x={};return i&&!h&&(y.background=i,x.color=i),m(e.createElement("div",{className:P(p,s,g,v)},a,e.createElement("div",{className:P(b,g),style:Object.assign(Object.assign({},y),o)},e.createElement("span",{className:`${f}-text`},l),e.createElement("div",{className:`${f}-corner`,style:x}))))};"production"!==process.env.NODE_ENV&&(wf.displayName="Ribbon");const Cf=t=>{const{prefixCls:n,value:r,current:o,offset:i=0}=t;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),e.createElement("span",{style:a,className:P(`${n}-only-unit`,{current:o})},r)};function Ef(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const Sf=t=>{const{prefixCls:n,count:r,value:o}=t,i=Number(o),a=Math.abs(r),[l,c]=e.useState(i),[s,u]=e.useState(a),d=()=>{c(i),u(a)};let f,p;if(e.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),l===i||Number.isNaN(i)||Number.isNaN(l))f=[e.createElement(Cf,Object.assign({},t,{key:i,current:!0}))],p={transition:"none"};else{f=[];const n=i+10,r=[];for(let e=i;e<=n;e+=1)r.push(e);const o=r.findIndex((e=>e%10===l));f=r.map(((n,r)=>{const i=n%10;return e.createElement(Cf,Object.assign({},t,{key:n,value:i,offset:r-o,current:r===o}))}));p={transform:`translateY(${-Ef(l,i,s<a?1:-1)}00%)`}}return e.createElement("span",{className:`${n}-only`,style:p,onTransitionEnd:d},f)};var $f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Of=e.forwardRef(((t,n)=>{const{prefixCls:r,count:o,className:i,motionClassName:a,style:l,title:c,show:s,component:u="sup",children:d}=t,f=$f(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=e.useContext(Zo),m=p("scroll-number",r),g=Object.assign(Object.assign({},f),{"data-show":s,style:l,className:P(m,i,a),title:c});let v=o;if(o&&Number(o)%1==0){const t=String(o).split("");v=e.createElement("bdi",null,t.map(((n,r)=>e.createElement(Sf,{prefixCls:m,count:Number(o),value:n,key:t.length-r}))))}return(null==l?void 0:l.borderColor)&&(g.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),d?xl(d,(e=>({className:P(`${m}-custom-component`,null==e?void 0:e.className,a)}))):e.createElement(u,Object.assign({},g,{ref:n}),v)}));var kf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Nf=e.forwardRef(((t,n)=>{var r,o,i,l,c;const{prefixCls:s,scrollNumberPrefixCls:d,children:f,status:p,text:m,color:g,count:v=null,overflowCount:h=99,dot:b=!1,size:y="default",title:x,offset:w,style:C,className:E,rootClassName:S,classNames:$,styles:O,showZero:k=!1}=t,N=kf(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:j,direction:I,badge:M}=e.useContext(Zo),R=j("badge",s),[T,_,A]=yf(R),B=v>h?`${h}+`:v,L="0"===B||0===B,F=(null!=p||null!=g)&&(null===v||L&&!k),z=b&&!L,D=z?"":B,H=u((()=>(null==D||""===D||L&&!k)&&!z),[D,L,k,z]),V=a(v);H||(V.current=v);const W=V.current,q=a(D);H||(q.current=D);const X=q.current,K=a(z);H||(K.current=z);const G=u((()=>{if(!w)return Object.assign(Object.assign({},null==M?void 0:M.style),C);const e={marginTop:w[1]};return"rtl"===I?e.left=parseInt(w[0],10):e.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},e),null==M?void 0:M.style),C)}),[I,w,C,null==M?void 0:M.style]),U=null!=x?x:"string"==typeof W||"number"==typeof W?W:void 0,Y=H||!m?null:e.createElement("span",{className:`${R}-status-text`},m),Z=W&&"object"==typeof W?xl(W,(e=>({style:Object.assign(Object.assign({},G),e.style)}))):void 0,Q=af(g,!1),J=P(null==$?void 0:$.indicator,null===(r=null==M?void 0:M.classNames)||void 0===r?void 0:r.indicator,{[`${R}-status-dot`]:F,[`${R}-status-${p}`]:!!p,[`${R}-color-${g}`]:Q}),ee={};g&&!Q&&(ee.color=g,ee.background=g);const te=P(R,{[`${R}-status`]:F,[`${R}-not-a-wrapper`]:!f,[`${R}-rtl`]:"rtl"===I},E,S,null==M?void 0:M.className,null===(o=null==M?void 0:M.classNames)||void 0===o?void 0:o.root,null==$?void 0:$.root,_,A);if(!f&&F){const t=G.color;return T(e.createElement("span",Object.assign({},N,{className:te,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(i=null==M?void 0:M.styles)||void 0===i?void 0:i.root),G)}),e.createElement("span",{className:J,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(l=null==M?void 0:M.styles)||void 0===l?void 0:l.indicator),ee)}),m&&e.createElement("span",{style:{color:t},className:`${R}-status-text`},m)))}return T(e.createElement("span",Object.assign({ref:n},N,{className:te,style:Object.assign(Object.assign({},null===(c=null==M?void 0:M.styles)||void 0===c?void 0:c.root),null==O?void 0:O.root)}),f,e.createElement(Ma,{visible:!H,motionName:`${R}-zoom`,motionAppear:!1,motionDeadline:1e3},(t=>{let{className:n}=t;var r,o;const i=j("scroll-number",d),a=K.current,l=P(null==$?void 0:$.indicator,null===(r=null==M?void 0:M.classNames)||void 0===r?void 0:r.indicator,{[`${R}-dot`]:a,[`${R}-count`]:!a,[`${R}-count-sm`]:"small"===y,[`${R}-multiple-words`]:!a&&X&&X.toString().length>1,[`${R}-status-${p}`]:!!p,[`${R}-color-${g}`]:Q});let c=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(o=null==M?void 0:M.styles)||void 0===o?void 0:o.indicator),G);return g&&!Q&&(c=c||{},c.background=g),e.createElement(Of,{prefixCls:i,show:!H,motionClassName:n,className:l,count:X,title:U,style:c,key:"scrollNumber"},Z)})),Y))})),jf=Nf;jf.Ribbon=wf,"production"!==process.env.NODE_ENV&&(jf.displayName="Badge");var Pf={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"},If=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:Pf}))},Mf=e.forwardRef(If);"production"!==process.env.NODE_ENV&&(Mf.displayName="RightOutlined");var Rf=Cl.ESC,Tf=Cl.TAB;var _f=s((function(e,n){var r=e.overlay,o=e.arrow,i=e.prefixCls,a=u((function(){return"function"==typeof r?r():r}),[r]),l=te(n,null==a?void 0:a.ref);return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:re(a)?l:void 0}))})),Af={adjustX:1,adjustY:1},Bf=[0,0],Lf={topLeft:{points:["bl","tl"],overflow:Af,offset:[0,-4],targetOffset:Bf},top:{points:["bc","tc"],overflow:Af,offset:[0,-4],targetOffset:Bf},topRight:{points:["br","tr"],overflow:Af,offset:[0,-4],targetOffset:Bf},bottomLeft:{points:["tl","bl"],overflow:Af,offset:[0,4],targetOffset:Bf},bottom:{points:["tc","bc"],overflow:Af,offset:[0,4],targetOffset:Bf},bottomRight:{points:["tr","br"],overflow:Af,offset:[0,4],targetOffset:Bf}},Ff=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function zf(n,r){var o,i=n.arrow,a=void 0!==i&&i,l=n.prefixCls,c=void 0===l?"rc-dropdown":l,s=n.transitionName,u=n.animation,d=n.align,f=n.placement,p=void 0===f?"bottomLeft":f,m=n.placements,g=void 0===m?Lf:m,v=n.getPopupContainer,h=n.showAction,b=n.hideAction,y=n.overlayClassName,x=n.overlayStyle,w=n.visible,C=n.trigger,E=void 0===C?["hover"]:C,S=n.autoFocus,$=n.overlay,O=n.children,k=n.onVisibleChange,N=ht(n,Ff),j=rt(t.useState(),2),M=j[0],R=j[1],T="visible"in n?w:M,_=t.useRef(null),A=t.useRef(null),B=t.useRef(null);t.useImperativeHandle(r,(function(){return _.current}));var L=function(e){R(e),null==k||k(e)};!function(t){var n=t.visible,r=t.triggerRef,o=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,l=e.useRef(!1),c=function(){var e,t;n&&(null===(e=r.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case Rf:c();break;case Tf:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};e.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&et(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[n])}({visible:T,triggerRef:B,onVisibleChange:L,autoFocus:S,overlayRef:A});var F,z,D,H=function(){return t.createElement(_f,{ref:A,overlay:$,prefixCls:c,arrow:a})},V=t.cloneElement(O,{className:P(null===(o=O.props)||void 0===o?void 0:o.className,T&&(F=n.openClassName,void 0!==F?F:"".concat(c,"-open"))),ref:re(O)?te(B,O.ref):void 0}),W=b;return W||-1===E.indexOf("contextMenu")||(W=["click"]),t.createElement(Nd,I({builtinPlacements:g},N,{prefixCls:c,ref:_,popupClassName:P(y,G({},"".concat(c,"-show-arrow"),a)),popupStyle:x,action:E,showAction:h,hideAction:W,popupPlacement:p,popupAlign:d,popupTransitionName:s,popupAnimation:u,popupVisible:T,stretch:(z=n.minOverlayWidthMatchTrigger,D=n.alignPoint,("minOverlayWidthMatchTrigger"in n?z:!D)?"minWidth":""),popup:"function"==typeof $?H:H(),onPopupVisibleChange:L,onPopupClick:function(e){var t=n.onOverlayClick;R(!1),t&&t(e)},getPopupContainer:v}),V)}var Df=t.forwardRef(zf),Hf=e.createContext(null);function Vf(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Wf(t){return Vf(e.useContext(Hf),t)}var qf=["children","locked"],Xf=e.createContext(null);function Kf(t){var n=t.children,r=t.locked,o=ht(t,qf),i=e.useContext(Xf),a=J((function(){return e=o,t=Y({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(r||e[0]===t[0]&&bt(e[1],t[1],!0))}));return e.createElement(Xf.Provider,{value:a},n)}var Gf=[],Uf=e.createContext(null);function Yf(){return e.useContext(Uf)}var Zf=e.createContext(Gf);function Qf(t){var n=e.useContext(Zf);return e.useMemo((function(){return void 0!==t?[].concat(Ge(n),[t]):n}),[n,t])}var Jf=e.createContext(null),ep=e.createContext({});function tp(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ql(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var np=Cl.LEFT,rp=Cl.RIGHT,op=Cl.UP,ip=Cl.DOWN,ap=Cl.ENTER,lp=Cl.ESC,cp=Cl.HOME,sp=Cl.END,up=[op,ip,np,rp];function dp(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ge(e.querySelectorAll("*")).filter((function(e){return tp(e,t)}));return tp(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function fp(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=dp(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var pp=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Vf(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function mp(t,n,r,o,i,a,l,c,s,u){var d=e.useRef(),f=e.useRef();f.current=n;var p=function(){et.cancel(d.current)};return e.useEffect((function(){return function(){p()}}),[]),function(e){var m=e.which;if([].concat(up,[ap,lp,cp,sp]).includes(m)){var g=a(),v=pp(g,o),h=v,b=h.elements,y=h.key2element,x=h.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),C=x.get(w),E=function(e,t,n,r){var o,i,a,l,c="prev",s="next",u="children",d="parent";if("inline"===e&&r===ap)return{inlineTrigger:!0};var f=(G(o={},op,c),G(o,ip,s),o),p=(G(i={},np,n?s:c),G(i,rp,n?c:s),G(i,ip,u),G(i,ap,u),i),m=(G(a={},op,c),G(a,ip,s),G(a,ap,u),G(a,lp,d),G(a,np,n?u:d),G(a,rp,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(t,1===l(C,!0).length,r,m);if(!E&&m!==cp&&m!==sp)return;(up.includes(m)||[cp,sp].includes(m))&&e.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);c(r),p(),d.current=et((function(){f.current===r&&t.focus()}))}};if([cp,sp].includes(m)||E.sibling||!w){var $,O,k=dp($=w&&"inline"!==t?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,b);O=m===cp?k[0]:m===sp?k[k.length-1]:fp($,b,w,E.offset),S(O)}else if(E.inlineTrigger)s(C);else if(E.offset>0)s(C,!0),p(),d.current=et((function(){v=pp(g,o);var e=w.getAttribute("aria-controls"),t=fp(document.getElementById(e),v.elements);S(t)}),5);else if(E.offset<0){var N=l(C,!0),j=N[N.length-2],P=y.get(j);s(j,!1),S(P)}}null==u||u(e)}}var gp="__RC_UTIL_PATH_SPLIT__",vp=function(e){return e.join(gp)},hp="rc-menu-more";function bp(){var t=rt(e.useState({}),2)[1],n=a(new Map),r=a(new Map),o=rt(e.useState([]),2),i=o[0],l=o[1],c=a(0),s=a(!1),u=m((function(e,o){"production"!==process.env.NODE_ENV&&q(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(o.join(" > "),"]"));var i=vp(o);r.current.set(i,e),n.current.set(e,i),c.current+=1;var a,l=c.current;a=function(){l===c.current&&(s.current||t({}))},Promise.resolve().then(a)}),[]),d=m((function(e,t){var o=vp(t);r.current.delete(o),n.current.delete(e)}),[]),f=m((function(e){l(e)}),[]),p=m((function(e,t){var r=n.current.get(e)||"",o=r.split(gp);return t&&i.includes(o[0])&&o.unshift(hp),o}),[i]),g=m((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return p(e,!0).includes(t)}))}),[p]),v=m((function(e){var t="".concat(n.current.get(e)).concat(gp),o=new Set;return Ge(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return e.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:g,getKeyPath:p,getKeys:function(){var e=Ge(n.current.keys());return i.length&&e.push(hp),e},getSubPathKeys:v}}function yp(t){var n=e.useRef(t);n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return t?r:void 0}var xp=Math.random().toFixed(5).toString().slice(2),wp=0;function Cp(t,n,r,o){var i=e.useContext(Xf),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===t};return n||(s.onMouseEnter=function(e){null==r||r({key:t,domEvent:e}),l(t)},s.onMouseLeave=function(e){null==o||o({key:t,domEvent:e}),c(t)}),s}function Ep(t){var n=e.useContext(Xf),r=n.mode,o=n.rtl,i=n.inlineIndent;if("inline"!==r)return null;return o?{paddingRight:t*i}:{paddingLeft:t*i}}function Sp(t){var n,r=t.icon,o=t.props,i=t.children;return null===r||!1===r?null:("function"==typeof r?n=e.createElement(r,Y({},o)):"boolean"!=typeof r&&(n=r),n||i||null)}var $p=["item"];function Op(e){var t=e.item,n=ht(e,$p);return Object.defineProperty(n,"item",{get:function(){return q(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var kp=["title","attribute","elementRef"],Np=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],jp=["active"],Pp=function(){Te(n,e.Component);var t=Le(n);function n(){return Pe(this,n),t.apply(this,arguments)}return Me(n,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.attribute,o=t.elementRef,i=We(ht(t,kp),["eventKey","popupClassName","popupOffset","onTitleClick"]);return q(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(ld.Item,I({},r,{title:"string"==typeof n?n:void 0},i,{ref:o}))}}]),n}(),Ip=e.forwardRef((function(t,n){var r,o=t.style,i=t.className,a=t.eventKey,l=t.warnKey,c=t.disabled,s=t.itemIcon,u=t.children,d=t.role,f=t.onMouseEnter,p=t.onMouseLeave,m=t.onClick,g=t.onKeyDown,v=t.onFocus,h=ht(t,Np),b=Wf(a),y=e.useContext(Xf),x=y.prefixCls,w=y.onItemClick,C=y.disabled,E=y.overflowDisabled,S=y.itemIcon,$=y.selectedKeys,O=y.onActive,k=e.useContext(ep)._internalRenderMenuItem,N="".concat(x,"-item"),j=e.useRef(),M=e.useRef(),R=C||c,T=ne(n,M),_=Qf(a);"production"!==process.env.NODE_ENV&&l&&q(!1,"MenuItem should not leave undefined `key`.");var A=function(e){return{key:a,keyPath:Ge(_).reverse(),item:j.current,domEvent:e}},B=s||S,L=Cp(a,R,f,p),F=L.active,z=ht(L,jp),D=$.includes(a),H=Ep(_.length),V={};"option"===t.role&&(V["aria-selected"]=D);var W=e.createElement(Pp,I({ref:j,elementRef:T,role:null===d?"none":d||"menuitem",tabIndex:c?null:-1,"data-menu-id":E&&b?null:b},h,z,V,{component:"li","aria-disabled":c,style:Y(Y({},H),o),className:P(N,(r={},G(r,"".concat(N,"-active"),F),G(r,"".concat(N,"-selected"),D),G(r,"".concat(N,"-disabled"),R),r),i),onClick:function(e){if(!R){var t=A(e);null==m||m(Op(t)),w(t)}},onKeyDown:function(e){if(null==g||g(e),e.which===Cl.ENTER){var t=A(e);null==m||m(Op(t)),w(t)}},onFocus:function(e){O(a),null==v||v(e)}}),u,e.createElement(Sp,{props:Y(Y({},t),{},{isSelected:D}),icon:B}));return k&&(W=k(W,t,{selected:D})),W}));function Mp(t,n){var r=t.eventKey,o=Yf(),i=Qf(r);return e.useEffect((function(){if(o)return o.registerPath(r,i),function(){o.unregisterPath(r,i)}}),[i]),o?null:e.createElement(Ip,I({},t,{ref:n}))}var Rp=e.forwardRef(Mp),Tp=["className","children"],_p=function(t,n){var r=t.className,o=t.children,i=ht(t,Tp),a=e.useContext(Xf),l=a.prefixCls,c=a.mode,s=a.rtl;return e.createElement("ul",I({className:P(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Ap=e.forwardRef(_p);function Bp(t,n){return L(t).map((function(t,r){if(e.isValidElement(t)){var o,i,a=t.key,l=null!==(o=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a,c=null==l;c&&(l="tmp_key-".concat([].concat(Ge(n),[r]).join("-")));var s={key:l,eventKey:l};return"production"!==process.env.NODE_ENV&&c&&(s.warnKey=!0),e.cloneElement(t,s)}return t}))}Ap.displayName="SubMenuList";var Lp={adjustX:1,adjustY:1},Fp={topLeft:{points:["bl","tl"],overflow:Lp},topRight:{points:["br","tr"],overflow:Lp},bottomLeft:{points:["tl","bl"],overflow:Lp},bottomRight:{points:["tr","br"],overflow:Lp},leftTop:{points:["tr","tl"],overflow:Lp},leftBottom:{points:["br","bl"],overflow:Lp},rightTop:{points:["tl","tr"],overflow:Lp},rightBottom:{points:["bl","br"],overflow:Lp}},zp={topLeft:{points:["bl","tl"],overflow:Lp},topRight:{points:["br","tr"],overflow:Lp},bottomLeft:{points:["tl","bl"],overflow:Lp},bottomRight:{points:["tr","br"],overflow:Lp},rightTop:{points:["tr","tl"],overflow:Lp},rightBottom:{points:["br","bl"],overflow:Lp},leftTop:{points:["tl","tr"],overflow:Lp},leftBottom:{points:["bl","br"],overflow:Lp}};function Dp(e,t,n){return t||(n?n[e]||n.other:void 0)}var Hp={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Vp(t){var n=t.prefixCls,r=t.visible,o=t.children,i=t.popup,a=t.popupStyle,l=t.popupClassName,c=t.popupOffset,s=t.disabled,u=t.mode,d=t.onVisibleChange,f=e.useContext(Xf),p=f.getPopupContainer,m=f.rtl,g=f.subMenuOpenDelay,v=f.subMenuCloseDelay,h=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,x=f.rootClassName,w=f.motion,C=f.defaultMotions,E=rt(e.useState(!1),2),S=E[0],$=E[1],O=Y(Y({},m?zp:Fp),h),k=Hp[u],N=Dp(u,w,C),j=e.useRef(N);"inline"!==u&&(j.current=N);var I=Y(Y({},j.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=e.useRef();return e.useEffect((function(){return M.current=et((function(){$(r)})),function(){et.cancel(M.current)}}),[r]),e.createElement(Nd,{prefixCls:n,popupClassName:P("".concat(n,"-popup"),G({},"".concat(n,"-rtl"),m),l,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:O,popupPlacement:k,popupVisible:S,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:v,onPopupVisibleChange:d,forceRender:y,popupMotion:I,fresh:!0},o)}function Wp(t){var n=t.id,r=t.open,o=t.keyPath,i=t.children,a="inline",l=e.useContext(Xf),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=e.useRef(!1);p.current=f===a;var m=rt(e.useState(!p.current),2),g=m[0],v=m[1],h=!!p.current&&r;e.useEffect((function(){p.current&&v(!1)}),[f]);var b=Y({},Dp(a,u,d));o.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||v(!0),null==y?void 0:y(e)},g?null:e.createElement(Kf,{mode:a,locked:!p.current},e.createElement(Ma,I({visible:h},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(t){var r=t.className,o=t.style;return e.createElement(Ap,{id:n,className:r,style:o},i)})))}var qp=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Xp=["active"],Kp=e.forwardRef((function(t,n){var r,o=t.style,i=t.className,a=t.title,l=t.eventKey,c=t.warnKey,s=t.disabled,u=t.internalPopupClose,d=t.children,f=t.itemIcon,p=t.expandIcon,m=t.popupClassName,g=t.popupOffset,v=t.popupStyle,h=t.onClick,b=t.onMouseEnter,y=t.onMouseLeave,x=t.onTitleClick,w=t.onTitleMouseEnter,C=t.onTitleMouseLeave,E=ht(t,qp),S=Wf(l),$=e.useContext(Xf),O=$.prefixCls,k=$.mode,N=$.openKeys,j=$.disabled,M=$.overflowDisabled,R=$.activeKey,T=$.selectedKeys,_=$.itemIcon,A=$.expandIcon,B=$.onItemClick,L=$.onOpenChange,F=$.onActive,z=e.useContext(ep)._internalRenderSubMenuItem,D=e.useContext(Jf).isSubPathKey,H=Qf(),V="".concat(O,"-submenu"),W=j||s,X=e.useRef(),K=e.useRef();"production"!==process.env.NODE_ENV&&c&&q(!1,"SubMenu should not leave undefined `key`.");var U=null!=f?f:_,Z=null!=p?p:A,Q=N.includes(l),J=!M&&Q,ee=D(T,l),te=Cp(l,W,w,C),ne=te.active,re=ht(te,Xp),oe=rt(e.useState(!1),2),ie=oe[0],ae=oe[1],le=function(e){W||ae(e)},ce=e.useMemo((function(){return ne||"inline"!==k&&(ie||D([R],l))}),[k,ne,R,ie,l,D]),se=Ep(H.length),ue=yp((function(e){null==h||h(Op(e)),B(e)})),de=S&&"".concat(S,"-popup"),fe=e.createElement("div",I({role:"menuitem",style:se,className:"".concat(V,"-title"),tabIndex:W?null:-1,ref:X,title:"string"==typeof a?a:null,"data-menu-id":M&&S?null:S,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":W,onClick:function(e){W||(null==x||x({key:l,domEvent:e}),"inline"===k&&L(l,!Q))},onFocus:function(){F(l)}},re),a,e.createElement(Sp,{icon:"horizontal"!==k?Z:void 0,props:Y(Y({},t),{},{isOpen:J,isSubMenu:!0})},e.createElement("i",{className:"".concat(V,"-arrow")}))),pe=e.useRef(k);if("inline"!==k&&H.length>1?pe.current="vertical":pe.current=k,!M){var me=pe.current;fe=e.createElement(Vp,{mode:me,prefixCls:V,visible:!u&&J&&"inline"!==k,popupClassName:m,popupOffset:g,popupStyle:v,popup:e.createElement(Kf,{mode:"horizontal"===me?"vertical":me},e.createElement(Ap,{id:de,ref:K},d)),disabled:W,onVisibleChange:function(e){"inline"!==k&&L(l,e)}},fe)}var ge=e.createElement(ld.Item,I({ref:n,role:"none"},E,{component:"li",style:o,className:P(V,"".concat(V,"-").concat(k),i,(r={},G(r,"".concat(V,"-open"),J),G(r,"".concat(V,"-active"),ce),G(r,"".concat(V,"-selected"),ee),G(r,"".concat(V,"-disabled"),W),r)),onMouseEnter:function(e){le(!0),null==b||b({key:l,domEvent:e})},onMouseLeave:function(e){le(!1),null==y||y({key:l,domEvent:e})}}),fe,!M&&e.createElement(Wp,{id:de,open:J,keyPath:H},d));return z&&(ge=z(ge,t,{selected:ee,active:ce,open:J,disabled:W})),e.createElement(Kf,{onItemClick:ue,mode:"horizontal"===k?"vertical":k,itemIcon:U,expandIcon:Z},ge)})),Gp=e.forwardRef((function(t,n){var r,o=t.eventKey,i=t.children,a=Qf(o),l=Bp(i,a),c=Yf();return e.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),r=c?l:e.createElement(Kp,I({ref:n},t),l),e.createElement(Zf.Provider,{value:a},r)}));function Up(t){var n=t.className,r=t.style,o=e.useContext(Xf).prefixCls;return Yf()?null:e.createElement("li",{role:"separator",className:P("".concat(o,"-item-divider"),n),style:r})}"production"!==process.env.NODE_ENV&&(Gp.displayName="SubMenu");var Yp=["className","title","eventKey","children"],Zp=e.forwardRef((function(t,n){var r=t.className,o=t.title;t.eventKey;var i=t.children,a=ht(t,Yp),l=e.useContext(Xf).prefixCls,c="".concat(l,"-item-group");return e.createElement("li",I({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:P(c,r)}),e.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),e.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))})),Qp=e.forwardRef((function(t,n){var r=t.eventKey,o=Bp(t.children,Qf(r));return Yf()?o:e.createElement(Zp,I({ref:n},We(t,["warnKey"])),o)}));"production"!==process.env.NODE_ENV&&(Qp.displayName="MenuItemGroup");var Jp=["label","children","key","type"];function em(t,n){var r=n.item,o=n.group,i=n.submenu,a=n.divider;return(t||[]).map((function(t,l){if(t&&"object"===X(t)){var c=t,s=c.label,u=c.children,d=c.key,f=c.type,p=ht(c,Jp),m=null!=d?d:"tmp-".concat(l);return u||"group"===f?"group"===f?e.createElement(o,I({key:m},p,{title:s}),em(u,n)):e.createElement(i,I({key:m},p,{title:s}),em(u,n)):"divider"===f?e.createElement(a,I({key:m},p)):e.createElement(r,I({key:m},p),s)}return null})).filter((function(e){return e}))}function tm(e,t,n,r){var o=e,i=Y({divider:Up,item:Rp,group:Qp,submenu:Gp},r);return t&&(o=em(t,i)),Bp(o,n)}var nm=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],rm=[],om=e.forwardRef((function(t,n){var r,o,i=t,a=i.prefixCls,l=void 0===a?"rc-menu":a,c=i.rootClassName,s=i.style,u=i.className,d=i.tabIndex,f=void 0===d?0:d,p=i.items,m=i.children,v=i.direction,h=i.id,b=i.mode,y=void 0===b?"vertical":b,x=i.inlineCollapsed,C=i.disabled,E=i.disabledOverflow,S=i.subMenuOpenDelay,$=void 0===S?.1:S,O=i.subMenuCloseDelay,k=void 0===O?.1:O,N=i.forceSubMenuRender,j=i.defaultOpenKeys,M=i.openKeys,R=i.activeKey,T=i.defaultActiveFirst,_=i.selectable,A=void 0===_||_,B=i.multiple,L=void 0!==B&&B,F=i.defaultSelectedKeys,z=i.selectedKeys,D=i.onSelect,H=i.onDeselect,V=i.inlineIndent,W=void 0===V?24:V,X=i.motion,K=i.defaultMotions,U=i.triggerSubMenuAction,Z=void 0===U?"hover":U,Q=i.builtinPlacements,J=i.itemIcon,ee=i.expandIcon,te=i.overflowedIndicator,ne=void 0===te?"...":te,re=i.overflowedIndicatorPopupClassName,oe=i.getPopupContainer,ie=i.onClick,ae=i.onOpenChange,le=i.onKeyDown,ce=i.openAnimation,se=i.openTransitionName,ue=i._internalRenderMenuItem,de=i._internalRenderSubMenuItem,fe=i._internalComponents,pe=ht(i,nm),me=rt(e.useMemo((function(){return[tm(m,p,rm,fe),tm(m,p,rm,{})]}),[m,p,fe]),2),ge=me[0],ve=me[1],he=rt(e.useState(!1),2),be=he[0],ye=he[1],xe=e.useRef(),we=function(t){var n=rt(mi(t,{value:t}),2),r=n[0],o=n[1];return e.useEffect((function(){wp+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(xp,"-").concat(wp);o("rc-menu-uuid-".concat(e))}),[]),r}(h),Ce="rtl"===v;"production"!==process.env.NODE_ENV&&q(!ce&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ee=mi(j,{value:M,postState:function(e){return e||rm}}),Se=rt(Ee,2),$e=Se[0],Oe=Se[1],ke=function(e){function t(){Oe(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?w(t):t()},Ne=rt(e.useState($e),2),je=Ne[0],Pe=Ne[1],Ie=e.useRef(!1),Me=rt(e.useMemo((function(){return"inline"!==y&&"vertical"!==y||!x?[y,!1]:["vertical",x]}),[y,x]),2),Re=Me[0],Te=Me[1],_e="inline"===Re,Ae=rt(e.useState(Re),2),Be=Ae[0],Le=Ae[1],Fe=rt(e.useState(Te),2),ze=Fe[0],De=Fe[1];e.useEffect((function(){Le(Re),De(Te),Ie.current&&(_e?Oe(je):ke(rm))}),[Re,Te]);var He=rt(e.useState(0),2),Ve=He[0],We=He[1],qe=Ve>=ge.length-1||"horizontal"!==Be||E;e.useEffect((function(){_e&&Pe($e)}),[$e]),e.useEffect((function(){return Ie.current=!0,function(){Ie.current=!1}}),[]);var Xe=bp(),Ke=Xe.registerPath,Ue=Xe.unregisterPath,Ye=Xe.refreshOverflowKeys,Ze=Xe.isSubPathKey,Qe=Xe.getKeyPath,Je=Xe.getKeys,et=Xe.getSubPathKeys,tt=e.useMemo((function(){return{registerPath:Ke,unregisterPath:Ue}}),[Ke,Ue]),nt=e.useMemo((function(){return{isSubPathKey:Ze}}),[Ze]);e.useEffect((function(){Ye(qe?rm:ge.slice(Ve+1).map((function(e){return e.key})))}),[Ve,qe]);var ot=rt(mi(R||T&&(null===(r=ge[0])||void 0===r?void 0:r.key),{value:R}),2),it=ot[0],at=ot[1],lt=yp((function(e){at(e)})),ct=yp((function(){at(void 0)}));g(n,(function(){return{list:xe.current,focus:function(e){var t,n,r=Je(),o=pp(r,we),i=o.elements,a=o.key2element,l=o.element2key,c=dp(xe.current,i),s=null!=it?it:c[0]?l.get(c[0]):null===(t=ge.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var st=mi(F||[],{value:z,postState:function(e){return Array.isArray(e)?e:null==e?rm:[e]}}),ut=rt(st,2),dt=ut[0],ft=ut[1],pt=yp((function(e){null==ie||ie(Op(e)),function(e){if(A){var t,n=e.key,r=dt.includes(n);t=L?r?dt.filter((function(e){return e!==n})):[].concat(Ge(dt),[n]):[n],ft(t);var o=Y(Y({},e),{},{selectedKeys:t});r?null==H||H(o):null==D||D(o)}!L&&$e.length&&"inline"!==Be&&ke(rm)}(e)})),mt=yp((function(e,t){var n=$e.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Be){var r=et(e);n=n.filter((function(e){return!r.has(e)}))}bt($e,n,!0)||ke(n,!0)})),gt=mp(Be,it,Ce,we,xe,Je,Qe,at,(function(e,t){var n=null!=t?t:!$e.includes(e);mt(e,n)}),le);e.useEffect((function(){ye(!0)}),[]);var vt=e.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),yt="horizontal"!==Be||E?ge:ge.map((function(t,n){return e.createElement(Kf,{key:t.key,overflowDisabled:n>Ve},t)})),xt=e.createElement(ld,I({id:h,ref:xe,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Rp,className:P(l,"".concat(l,"-root"),"".concat(l,"-").concat(Be),u,(o={},G(o,"".concat(l,"-inline-collapsed"),ze),G(o,"".concat(l,"-rtl"),Ce),o),c),dir:v,style:s,role:"menu",tabIndex:f,data:yt,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,r=n?ge.slice(-n):null;return e.createElement(Gp,{eventKey:hp,title:ne,disabled:qe,internalPopupClose:0===n,popupClassName:re},r)},maxCount:"horizontal"!==Be||E?ld.INVALIDATE:ld.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){We(e)},onKeyDown:gt},pe));return e.createElement(ep.Provider,{value:vt},e.createElement(Hf.Provider,{value:we},e.createElement(Kf,{prefixCls:l,rootClassName:c,mode:Be,openKeys:$e,rtl:Ce,disabled:C,motion:be?X:null,defaultMotions:be?K:null,activeKey:it,onActive:lt,onInactive:ct,selectedKeys:dt,inlineIndent:W,subMenuOpenDelay:$,subMenuCloseDelay:k,forceSubMenuRender:N,builtinPlacements:Q,triggerSubMenuAction:Z,getPopupContainer:oe,itemIcon:J,expandIcon:ee,onItemClick:pt,onOpenChange:mt},e.createElement(Jf.Provider,{value:nt},xt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(Uf.Provider,{value:tt},ve)))))})),im=om;im.Item=Rp,im.SubMenu=Gp,im.ItemGroup=Qp,im.Divider=Up;var am={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"},lm=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:am}))},cm=e.forwardRef(lm);"production"!==process.env.NODE_ENV&&(cm.displayName="BarsOutlined");var sm={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"},um=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:sm}))},dm=e.forwardRef(um);"production"!==process.env.NODE_ENV&&(dm.displayName="LeftOutlined");const fm=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var pm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mm={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},gm=e.createContext({}),vm=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),hm=e.forwardRef(((t,n)=>{const{prefixCls:r,className:i,trigger:l,children:s,defaultCollapsed:u=!1,theme:f="dark",style:p={},collapsible:m=!1,reverseArrow:g=!1,width:v=200,collapsedWidth:h=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:x,onBreakpoint:w}=t,C=pm(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:E}=o(fm),[S,$]=d("collapsed"in t?t.collapsed:u),[O,k]=d(!1);c((()=>{"collapsed"in t&&$(t.collapsed)}),[t.collapsed]);const N=(e,n)=>{"collapsed"in t||$(e),null==x||x(e,n)},j=a();j.current=e=>{k(e.matches),null==w||w(e.matches),S!==e.matches&&N(e.matches,"responsive")},c((()=>{function e(e){return j.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&y&&y in mm){t=n(`screen and (max-width: ${mm[y]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[y]),c((()=>{const e=vm("ant-sider-");return E.addSider(e),()=>E.removeSider(e)}),[]);const I=()=>{N(!S,"clickTrigger")},{getPrefixCls:M}=o(Zo),R=e.useMemo((()=>({siderCollapsed:S})),[S]);return e.createElement(gm.Provider,{value:R},(()=>{const t=M("layout-sider",r),o=We(C,["collapsed"]),a=S?h:v,c=(u=a,!isNaN(parseFloat(u))&&isFinite(u)?`${a}px`:String(a));var u;const d=0===parseFloat(String(h||0))?e.createElement("span",{onClick:I,className:P(`${t}-zero-width-trigger`,`${t}-zero-width-trigger-${g?"right":"left"}`),style:b},l||e.createElement(cm,null)):null,y={expanded:g?e.createElement(Mf,null):e.createElement(dm,null),collapsed:g?e.createElement(dm,null):e.createElement(Mf,null)}[S?"collapsed":"expanded"],x=null!==l?d||e.createElement("div",{className:`${t}-trigger`,onClick:I,style:{width:c}},l||y):null,w=Object.assign(Object.assign({},p),{flex:`0 0 ${c}`,maxWidth:c,minWidth:c,width:c}),E=P(t,`${t}-${f}`,{[`${t}-collapsed`]:!!S,[`${t}-has-trigger`]:m&&null!==l&&!d,[`${t}-below`]:!!O,[`${t}-zero-width`]:0===parseFloat(c)},i);return e.createElement("aside",Object.assign({className:E},o,{style:w,ref:n}),e.createElement("div",{className:`${t}-children`},s),m||O&&d?x:null)})())}));"production"!==process.env.NODE_ENV&&(hm.displayName="Sider");var bm={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"},ym=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:bm}))},xm=e.forwardRef(ym);"production"!==process.env.NODE_ENV&&(xm.displayName="EllipsisOutlined");const wm=i({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Cm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Em=t=>{const{prefixCls:n,className:r,dashed:o}=t,i=Cm(t,["prefixCls","className","dashed"]),{getPrefixCls:a}=e.useContext(Zo),l=a("menu",n),c=P({[`${l}-item-divider-dashed`]:!!o},r);return e.createElement(Up,Object.assign({className:c},i))},Sm=t=>{var n;const{className:r,children:o,icon:i,title:a,danger:l}=t,{prefixCls:c,firstLevel:s,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=e.useContext(wm),{siderCollapsed:p}=e.useContext(gm);let m=a;void 0===a?m=s?o:"":!1===a&&(m="");const g={title:m};p||f||(g.title=null,g.open=!1);const v=L(o).length;let h=e.createElement(Rp,Object.assign({},We(t,["title","icon","danger"]),{className:P({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?v+1:v)},r),title:"string"==typeof a?a:void 0}),xl(i,{className:P(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:"",`${c}-item-icon`)}),(t=>{const n=e.createElement("span",{className:`${c}-title-content`},o);return(!i||e.isValidElement(o)&&"span"===o.type)&&o&&t&&s&&"string"==typeof o?e.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):n})(f));return d||(h=e.createElement(uf,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${c}-inline-collapsed-tooltip`}),h)),h},$m=e.createContext(null),Om=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 ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},km=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)})`}}}}},Nm=e=>Object.assign({},Di(e)),jm=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:h,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:$,popupBg:O,itemHoverBg:k,itemActiveBg:N,menuSubMenuBg:j,horizontalItemSelectedColor:P,horizontalItemSelectedBg:I,horizontalItemBorderRadius:M,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Nm(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Nm(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:h}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Lt(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:s,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:s,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Lt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Lt(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${p}`,`opacity ${v} ${p}`].join(",")}}}}}},Pm=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Lt(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${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}}},Im=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,h={height:r,lineHeight:Lt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Pm(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Pm(e)),{boxShadow:m})}},{[`${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 ${f}`,`background ${f}`,`padding ${l} ${c}`].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`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Lt(e.calc(d).div(2).equal())} - ${Lt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Lt(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Li),{paddingInline:p})}}]},Mm=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Rm=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Lt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Lt(a)})`}}}}},Tm=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fi(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(c)}`,fontSize:b,lineHeight:h,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Mm(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(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},Mm(e)),Rm(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Rm(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Lt(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Lt(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Lt(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Lt(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Lt(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},_m=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:h,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:w,fontSize:C,controlHeightSM:E,fontSizeLG:S,colorTextLightSolid:$,colorErrorHover:O}=e,k=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,j=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,P=new io($).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:k,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:N,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:2*h,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*h+"px",iconSize:C,iconMarginInlineEnd:E-C,collapsedIconSize:S,groupTitleFontSize:C,darkItemDisabledColor:new io($).setAlpha(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:$,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:k?`calc(100% + ${N}px)`:`calc(100% - ${2*j}px)`}};const Am=t=>{var n;const{popupClassName:r,icon:o,title:i,theme:a}=t,l=e.useContext(wm),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=Qf();let f;if(o){const t=e.isValidElement(i)&&"span"===i.type;f=e.createElement(e.Fragment,null,xl(o,{className:P(e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:"",`${c}-item-icon`)}),t?i:e.createElement("span",{className:`${c}-title-content`},i))}else f=s&&!d.length&&i&&"string"==typeof i?e.createElement("div",{className:`${c}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${c}-title-content`},i);const p=e.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),[m]=Pl("Menu");return e.createElement(wm.Provider,{value:p},e.createElement(Gp,Object.assign({},We(t,["icon"]),{title:f,popupClassName:P(c,r,`${c}-${a||u}`),popupStyle:{zIndex:m}})))};var Bm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Lm(e){return null===e||!1===e}const Fm={item:Sm,submenu:Am,divider:Em},zm=s(((t,n)=>{var r;const o=e.useContext($m),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:s}=e.useContext(Zo),u=a(),{prefixCls:d,className:f,style:p,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:h,siderCollapsed:b,rootClassName:y,mode:x,selectable:w,onClick:C,overflowedIndicatorPopupClassName:E}=t,S=We(Bm(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const e=Nr("Menu");"production"!==process.env.NODE_ENV&&e(!("inlineCollapsed"in t&&"inline"!==x),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&e(!(void 0!==t.siderCollapsed&&"inlineCollapsed"in t),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),e.deprecated("items"in t&&!t.children,"children","items")}null===(r=i.validator)||void 0===r||r.call(i,{mode:x});const $=di((function(){var e;null==C||C.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,k=null!=w?w:i.selectable,N=e.useMemo((()=>void 0!==b?b:h),[h,b]),j={horizontal:{motionName:`${u}-slide-up`},inline:Yl(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||i.prefixCls),M=wl(I),[R,T,_]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Wi("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:h,popupBg:b,darkPopupBg:y}=e,x=e.calc(r).div(7).mul(5).equal(),w=bi(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),C=bi(w,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:v,dangerItemActiveBg:h,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[Tm(w),Om(w),Im(w),jm(w,"light"),jm(C,"dark"),km(w),ju(w),Tu(w,"slide-up"),Tu(w,"slide-down"),Hu(w,"zoom-big")]}),_m,{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)}(I,M,!o),A=P(`${I}-${m}`,null==s?void 0:s.className,f),B=e.useMemo((()=>{var t,n;if("function"==typeof g||Lm(g))return g||null;if("function"==typeof i.expandIcon||Lm(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||Lm(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const r=null!==(t=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==t?t:null==s?void 0:s.expandIcon;return xl(r,{className:P(`${I}-submenu-expand-icon`,e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==s?void 0:s.expandIcon,I]),L=e.useMemo((()=>({prefixCls:I,inlineCollapsed:N||!1,direction:c,firstLevel:!0,theme:m,mode:O,disableMenuItemTitleTooltip:v})),[I,N,c,v,m]);return R(e.createElement($m.Provider,{value:null},e.createElement(wm.Provider,{value:L},e.createElement(im,Object.assign({getPopupContainer:l,overflowedIndicator:e.createElement(xm,null),overflowedIndicatorPopupClassName:P(I,`${I}-${m}`,E),mode:O,selectable:k,onClick:$},S,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==s?void 0:s.style),p),className:A,prefixCls:I,direction:c,defaultMotions:j,expandIcon:B,ref:n,rootClassName:P(y,T,i.rootClassName,_,M),_internalComponents:Fm})))))})),Dm=s(((t,n)=>{const r=a(null),o=e.useContext(gm);return g(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),e.createElement(zm,Object.assign({ref:r},t,o))}));function Hm(e){return bi(e,{inputAffixPadding:e.paddingXXS})}Dm.Item=Sm,Dm.SubMenu=Am,Dm.Divider=Em,Dm.ItemGroup=Qp,"production"!==process.env.NODE_ENV&&(Dm.displayName="Menu");const Vm=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${h}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},Wm=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),qm=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Wm(bi(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Xm=(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}}),Km=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Xm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Gm=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},qm(e))}),Km(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Km(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Um=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ym=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${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}}},Um(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Um(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},qm(e))}})}),Zm=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Qm=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Jm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),eg=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qm(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},qm(e))}),Jm(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Jm(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),tg=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ng=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Lt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},tg(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),tg(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}`}}}})}),rg=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Lt(t)} ${Lt(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},og=e=>({padding:`${Lt(e.paddingBlockSM)} ${Lt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ig=e=>Object.assign(Object.assign({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}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},rg(e)),"&-sm":Object.assign({},og(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),ag=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},rg(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},og(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${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)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Lt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${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}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},lg=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fi(e)),ig(e)),Gm(e)),eg(e)),Zm(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},cg=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Lt(e.inputAffixPadding)}`}}}},sg=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},ig(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),cg(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},ug=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Fi(e)),ag(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Ym(e)),ng(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}}})})}},dg=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},fg=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},pg=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var mg=Wi("Input",(e=>{const t=bi(e,Hm(e));return[lg(t),fg(t),sg(t),ug(t),dg(t),pg(t),Zc(t)]}),Vm,{resetFont:!1}),gg={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"},vg=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:gg}))},hg=e.forwardRef(vg);"production"!==process.env.NODE_ENV&&(hg.displayName="PlusOutlined");var bg=i(null),yg={width:0,height:0,left:0,top:0};function xg(t,n){var r=e.useRef(t),o=rt(e.useState({}),2)[1];return[r.current,function(e){var t="function"==typeof e?e(r.current):e;t!==r.current&&n(t,r.current),r.current=t,o({})}]}var wg=Math.pow(.995,20);function Cg(e){var t=rt(d(0),2),n=t[0],r=t[1],o=a(0),i=a();return i.current=e,qt((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var Eg={width:0,height:0,left:0,top:0,right:0};function Sg(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function $g(e){return String(e).replace(/"/g,"TABS_DQ")}function Og(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var kg=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.editable,i=t.locale,a=t.style;return o&&!1!==o.showAdd?e.createElement("button",{ref:n,type:"button",className:"".concat(r,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),Ng=e.forwardRef((function(t,n){var r,o=t.position,i=t.prefixCls,a=t.extra;if(!a)return null;var l={};return"object"!==X(a)||e.isValidElement(a)?l.right=a:l=a,"right"===o&&(r=l.right),"left"===o&&(r=l.left),r?e.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},r):null}));"production"!==process.env.NODE_ENV&&(Ng.displayName="ExtraContent");var jg=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.id,i=t.tabs,a=t.locale,l=t.mobile,s=t.more,u=void 0===s?{}:s,f=t.style,p=t.className,m=t.editable,g=t.tabBarGutter,v=t.rtl,h=t.removeAriaLabel,b=t.onTabClick,y=t.getPopupContainer,x=t.popupClassName,w=rt(d(!1),2),C=w[0],E=w[1],S=rt(d(null),2),$=S[0],O=S[1],k=u.icon,N=void 0===k?"More":k,j="".concat(o,"-more-popup"),M="".concat(r,"-dropdown"),R=null!==$?"".concat(j,"-").concat($):null,T=null==a?void 0:a.dropdownAriaLabel;var _=e.createElement(im,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),E(!1)},prefixCls:"".concat(M,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[$],"aria-label":void 0!==T?T:"expanded dropdown"},i.map((function(t){var n=t.closable,r=t.disabled,i=t.closeIcon,a=t.key,l=t.label,c=Og(n,i,m,r);return e.createElement(Rp,{key:a,id:"".concat(j,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:r},e.createElement("span",null,l),c&&e.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},i||m.removeIcon||"×"))})));function A(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===$}))||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void O(a.key)}}c((function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[$]),c((function(){C||O(null)}),[C]);var B=G({},v?"marginRight":"marginLeft",g);i.length||(B.visibility="hidden",B.order=1);var L=P(G({},"".concat(M,"-rtl"),v)),F=l?null:e.createElement(Df,I({prefixCls:M,overlay:_,visible:!!i.length&&C,onVisibleChange:E,overlayClassName:P(L,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},u),e.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:B,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(o,"-more"),"aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case Cl.UP:A(-1),e.preventDefault();break;case Cl.DOWN:A(1),e.preventDefault();break;case Cl.ESC:E(!1);break;case Cl.SPACE:case Cl.ENTER:null!==$&&b($,e)}else[Cl.DOWN,Cl.SPACE,Cl.ENTER].includes(t)&&(E(!0),e.preventDefault())}},N));return e.createElement("div",{className:P("".concat(r,"-nav-operations"),p),style:f,ref:n},F,e.createElement(kg,{prefixCls:r,locale:a,editable:m}))})),Pg=e.memo(jg,(function(e,t){return t.tabMoving})),Ig=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,d=t.closable,f=t.renderWrapper,p=t.removeAriaLabel,m=t.editable,g=t.onClick,v=t.onFocus,h=t.style,b="".concat(n,"-tab"),y=Og(d,s,m,c);function x(e){c||g(e)}var w=e.useMemo((function(){return u&&"string"==typeof l?e.createElement("span",null,l):l}),[l,u]),C=e.createElement("div",{key:a,"data-node-key":$g(a),className:P(b,G(G(G({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),o),"".concat(b,"-disabled"),c)),style:h,onClick:x},e.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[Cl.SPACE,Cl.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:v},u&&e.createElement("span",{className:"".concat(b,"-icon")},u),l&&w),y&&e.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:a,event:t})}},s||m.removeIcon||"×"));return f?f(C):C},Mg=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},Rg=function(e,t){return e[t?0:1]},Tg=e.forwardRef((function(n,r){var o,i,l,s,f,p=n.className,m=n.style,g=n.id,v=n.animated,h=n.activeKey,b=n.rtl,y=n.extra,x=n.editable,w=n.locale,C=n.tabPosition,E=n.tabBarGutter,S=n.children,$=n.onTabClick,O=n.onTabScroll,k=n.indicator,N=e.useContext(bg),j=N.prefixCls,M=N.tabs,R=a(null),T=a(null),_=a(null),A=a(null),B=a(null),L=a(null),F=a(null),z="top"===C||"bottom"===C,D=xg(0,(function(e,t){z&&O&&O({direction:e>t?"left":"right"})})),H=rt(D,2),V=H[0],W=H[1],q=xg(0,(function(e,t){!z&&O&&O({direction:e>t?"top":"bottom"})})),X=rt(q,2),K=X[0],U=X[1],Z=rt(d([0,0]),2),Q=Z[0],J=Z[1],ee=rt(d([0,0]),2),te=ee[0],re=ee[1],oe=rt(d([0,0]),2),ie=oe[0],ae=oe[1],le=rt(d([0,0]),2),ce=le[0],se=le[1],ue=(o=new Map,i=a([]),l=rt(d({}),2)[1],s=a("function"==typeof o?o():o),f=Cg((function(){var e=s.current;i.current.forEach((function(t){e=t(e)})),i.current=[],s.current=e,l({})})),[s.current,function(e){i.current.push(e),f()}]),de=rt(ue,2),fe=de[0],pe=de[1],me=function(e,t,n){return u((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||yg,i=o.left+o.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=t.get(c);s||(s=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||yg);var u=r.get(c)||Y({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(M,fe,te[0]),ge=Rg(Q,z),ve=Rg(te,z),he=Rg(ie,z),be=Rg(ce,z),ye=ge<ve+he,xe=ye?ge-be:ge-he,we="".concat(j,"-nav-operations-hidden"),Ce=0,Ee=0;function Se(e){return e<Ce?Ce:e>Ee?Ee:e}z&&b?(Ce=0,Ee=Math.max(0,ve-xe)):(Ce=Math.min(0,xe-ve),Ee=0);var $e=a(null),Oe=rt(d(),2),ke=Oe[0],Ne=Oe[1];function je(){Ne(Date.now())}function Pe(){$e.current&&clearTimeout($e.current)}!function(t,n){var r=rt(d(),2),o=r[0],i=r[1],l=rt(d(0),2),c=l[0],s=l[1],u=rt(d(0),2),f=u[0],p=u[1],m=rt(d(),2),g=m[0],v=m[1],h=a(),b=a(),y=a(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(o){e.preventDefault();var t=e.touches[0],r=t.screenX,a=t.screenY;i({x:r,y:a});var l=r-o.x,u=a-o.y;n(l,u);var d=Date.now();s(d),p(d-c),v({x:l,y:u})}},onTouchEnd:function(){if(o&&(i(null),v(null),g)){var e=g.x/f,t=g.y/f,r=Math.abs(e),a=Math.abs(t);if(Math.max(r,a)<.1)return;var l=e,c=t;h.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(h.current):n(20*(l*=wg),20*(c*=wg))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===b.current?t:r:i>a?(o=t,b.current="x"):(o=r,b.current="y"),n(-o,-o)&&e.preventDefault()}},e.useEffect((function(){function e(e){y.current.onTouchMove(e)}function n(e){y.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){y.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){y.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(A,(function(e,t){function n(e,t){e((function(e){return Se(e+t)}))}return!!ye&&(z?n(W,e):n(U,t),Pe(),je(),!0)})),c((function(){return Pe(),ke&&($e.current=setTimeout((function(){Ne(0)}),100)),Pe}),[ke]);var Ie=function(e,t,n,r,o,i,a){var l,c,s,d=a.tabs,f=a.tabPosition,p=a.rtl;return["top","bottom"].includes(f)?(l="width",c=p?"right":"left",s=Math.abs(n)):(l="height",c="top",s=-n),u((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;o<n;o+=1){var i=e.get(d[o].key)||Eg;if(i[c]+i[l]>s+t){r=o-1;break}}for(var a=0,u=n-1;u>=0;u-=1)if((e.get(d[u].key)||Eg)[c]<s){a=u+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,o,i,s,f,d.map((function(e){return e.key})).join("_"),p])}(me,xe,z?V:K,ve,he,be,Y(Y({},n),{},{tabs:M})),Me=rt(Ie,2),Re=Me[0],Te=Me[1],_e=di((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=me.get(e)||{width:0,height:0,left:0,right:0,top:0};if(z){var n=V;b?t.right<V?n=t.right:t.right+t.width>V+xe&&(n=t.right+t.width-xe):t.left<-V?n=-t.left:t.left+t.width>-V+xe&&(n=-(t.left+t.width-xe)),U(0),W(Se(n))}else{var r=K;t.top<-K?r=-t.top:t.top+t.height>-K+xe&&(r=-(t.top+t.height-xe)),W(0),U(Se(r))}})),Ae={};"top"===C||"bottom"===C?Ae[b?"marginRight":"marginLeft"]=E:Ae.marginTop=E;var Be=M.map((function(t,n){var r=t.key;return e.createElement(Ig,{id:g,prefixCls:j,key:r,tab:t,style:0===n?void 0:Ae,closable:t.closable,editable:x,active:r===h,renderWrapper:S,removeAriaLabel:null==w?void 0:w.removeAriaLabel,onClick:function(e){$(r,e)},onFocus:function(){_e(r),je(),A.current&&(b||(A.current.scrollLeft=0),A.current.scrollTop=0)}})})),Le=function(){return pe((function(){var e,t=new Map,n=null===(e=B.current)||void 0===e?void 0:e.getBoundingClientRect();return M.forEach((function(e){var r,o=e.key,i=null===(r=B.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat($g(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=rt(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};c((function(){Le()}),[M.map((function(e){return e.key})).join("_")]);var Fe=Cg((function(){var e=Mg(R),t=Mg(T),n=Mg(_);J([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Mg(F);ae(r);var o=Mg(L);se(o);var i=Mg(B);re([i[0]-r[0],i[1]-r[1]]),Le()})),ze=M.slice(0,Re),De=M.slice(Te+1),He=[].concat(Ge(ze),Ge(De)),We=me.get(h),qe=function(e){var n=e.activeTabOffset,r=e.horizontal,o=e.rtl,i=e.indicator,l=void 0===i?{}:i,s=l.size,u=l.align,f=void 0===u?"center":u,p=rt(d(),2),m=p[0],g=p[1],v=a(),h=t.useCallback((function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e}),[s]);function b(){et.cancel(v.current)}return c((function(){var e={};if(n)if(r){e.width=h(n.width);var t=o?"right":"left";"start"===f&&(e[t]=n[t]),"center"===f&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===f&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=h(n.height),"start"===f&&(e.top=n.top),"center"===f&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===f&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return b(),v.current=et((function(){g(e)})),b}),[n,r,o,f,h]),{style:m}}({activeTabOffset:We,horizontal:z,indicator:k,rtl:b}),Xe=qe.style;c((function(){_e()}),[h,Ce,Ee,Sg(We),Sg(me),z]),c((function(){Fe()}),[b]);var Ke,Ue,Ye,Ze,Qe=!!He.length,Je="".concat(j,"-nav-wrap");return z?b?(Ue=V>0,Ke=V!==Ee):(Ke=V<0,Ue=V!==Ce):(Ye=K<0,Ze=K!==Ce),e.createElement(Ve,{onResize:Fe},e.createElement("div",{ref:ne(r,R),role:"tablist",className:P("".concat(j,"-nav"),p),style:m,onKeyDown:function(){je()}},e.createElement(Ng,{ref:T,position:"left",extra:y,prefixCls:j}),e.createElement(Ve,{onResize:Fe},e.createElement("div",{className:P(Je,G(G(G(G({},"".concat(Je,"-ping-left"),Ke),"".concat(Je,"-ping-right"),Ue),"".concat(Je,"-ping-top"),Ye),"".concat(Je,"-ping-bottom"),Ze)),ref:A},e.createElement(Ve,{onResize:Fe},e.createElement("div",{ref:B,className:"".concat(j,"-nav-list"),style:{transform:"translate(".concat(V,"px, ").concat(K,"px)"),transition:ke?"none":void 0}},Be,e.createElement(kg,{ref:F,prefixCls:j,locale:w,editable:x,style:Y(Y({},0===Be.length?void 0:Ae),{},{visibility:Qe?"hidden":null})}),e.createElement("div",{className:P("".concat(j,"-ink-bar"),G({},"".concat(j,"-ink-bar-animated"),v.inkBar)),style:Xe}))))),e.createElement(Pg,I({},n,{removeAriaLabel:null==w?void 0:w.removeAriaLabel,ref:L,prefixCls:j,tabs:He,className:!Qe&&we,tabMoving:!!ke})),e.createElement(Ng,{ref:_,position:"right",extra:y,prefixCls:j})))})),_g=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.className,i=t.style,a=t.id,l=t.active,c=t.tabKey,s=t.children;return e.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:P(r,l&&"".concat(r,"-active"),o),ref:n},s)}));"production"!==process.env.NODE_ENV&&(_g.displayName="TabPane");var Ag=["renderTabBar"],Bg=["label","key"],Lg=function(t){var n=t.renderTabBar,r=ht(t,Ag),o=e.useContext(bg).tabs;return n?n(Y(Y({},r),{},{panes:o.map((function(t){var n=t.label,r=t.key,o=ht(t,Bg);return e.createElement(_g,I({tab:n,key:r,tabKey:r},o))}))}),Tg):e.createElement(Tg,r)};"production"!==process.env.NODE_ENV&&(Lg.displayName="TabNavListWrapper");var Fg=["key","forceRender","style","className","destroyInactiveTabPane"],zg=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=e.useContext(bg),c=l.prefixCls,s=l.tabs,u=o.tabPane,d="".concat(c,"-tabpane");return e.createElement("div",{className:P("".concat(c,"-content-holder"))},e.createElement("div",{className:P("".concat(c,"-content"),"".concat(c,"-content-").concat(i),G({},"".concat(c,"-content-animated"),u))},s.map((function(t){var i=t.key,l=t.forceRender,c=t.style,s=t.className,f=t.destroyInactiveTabPane,p=ht(t,Fg),m=i===r;return e.createElement(Ma,I({key:i,visible:m,forceRender:l,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),(function(t,r){var o=t.style,a=t.className;return e.createElement(_g,I({},p,{prefixCls:d,id:n,tabKey:i,animated:u,active:m,style:Y(Y({},c),o),className:P(s,a),ref:r}))}))}))))};var Dg=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Hg=0,Vg=e.forwardRef((function(t,n){var r=t.id,o=t.prefixCls,i=void 0===o?"rc-tabs":o,a=t.className,l=t.items,s=t.direction,u=t.activeKey,f=t.defaultActiveKey,p=t.editable,m=t.animated,g=t.tabPosition,v=void 0===g?"top":g,h=t.tabBarGutter,b=t.tabBarStyle,y=t.tabBarExtraContent,x=t.locale,w=t.more,C=t.destroyInactiveTabPane,E=t.renderTabBar,S=t.onChange,$=t.onTabClick,O=t.onTabScroll,k=t.getPopupContainer,N=t.popupClassName,j=t.indicator,M=ht(t,Dg),R=e.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===X(e)&&"key"in e}))}),[l]),T="rtl"===s,_=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Y({inkBar:!0},"object"===X(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&q(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(m),A=rt(d(!1),2),B=A[0],L=A[1];c((function(){L(Vu())}),[]);var F=rt(mi((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:f}),2),z=F[0],D=F[1],H=rt(d((function(){return R.findIndex((function(e){return e.key===z}))})),2),V=H[0],W=H[1];c((function(){var e,t=R.findIndex((function(e){return e.key===z}));-1===t&&(t=Math.max(0,Math.min(V,R.length-1)),D(null===(e=R[t])||void 0===e?void 0:e.key));W(t)}),[R.map((function(e){return e.key})).join("_"),z,V]);var K=rt(mi(null,{value:r}),2),U=K[0],Z=K[1];c((function(){r||(Z("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":Hg)),Hg+=1)}),[]);var Q={id:U,activeKey:z,animated:_,tabPosition:v,rtl:T,mobile:B},J=Y(Y({},Q),{},{editable:p,locale:x,more:w,tabBarGutter:h,onTabClick:function(e,t){null==$||$(e,t);var n=e!==z;D(e),n&&(null==S||S(e))},onTabScroll:O,extra:y,style:b,panes:null,getPopupContainer:k,popupClassName:N,indicator:j});return e.createElement(bg.Provider,{value:{tabs:R,prefixCls:i}},e.createElement("div",I({ref:n,id:r,className:P(i,"".concat(i,"-").concat(v),G(G(G({},"".concat(i,"-mobile"),B),"".concat(i,"-editable"),p),"".concat(i,"-rtl"),T),a)},M),e.createElement(Lg,I({},J,{renderTabBar:E})),e.createElement(zg,I({destroyInactiveTabPane:C},Q,{animated:_}))))}));"production"!==process.env.NODE_ENV&&(Vg.displayName="Tabs");const Wg={motionAppear:!1,motionEnter:!0,motionLeave:!0};var qg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xg=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}`}}}}},[Tu(e,"slide-up"),Tu(e,"slide-down")]]},Kg=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}-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}}}}}}},Gg=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Fi(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":Object.assign(Object.assign({},Li),{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.colorTextDescription,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"}}})}})}},Ug=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Lt(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Lt(l(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:l(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}}}}}},Yg=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${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}}}}}},Zg=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Hi(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},Qg=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:Lt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Lt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Lt(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"}}}}},Jg=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Fi(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${Lt(e.paddingXS)}`,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}},Hi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Zg(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var ev=Wi("Tabs",(e=>{const t=bi(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Lt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Lt(e.horizontalItemGutter)}`});return[Yg(t),Qg(t),Ug(t),Gg(t),Kg(t),Jg(t),Xg(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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 tv=()=>null;"production"!==process.env.NODE_ENV&&(tv.displayName="DeprecatedTabPane");var nv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rv=t=>{var n,r,o,i,a,l,c,s,u,d,f;const{type:p,className:m,rootClassName:g,size:v,onEdit:h,hideAdd:b,centered:y,addIcon:x,removeIcon:w,moreIcon:C,more:E,popupClassName:S,children:$,items:O,animated:k,style:N,indicatorSize:j,indicator:I}=t,M=nv(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=M,{direction:T,tabs:_,getPrefixCls:A,getPopupContainer:B}=e.useContext(Zo),F=A("tabs",R),z=wl(F),[D,H,V]=ev(F,z);let W;"editable-card"===p&&(W={onEdit:(e,t)=>{let{key:n,event:r}=t;null==h||h("add"===e?r:n,e)},removeIcon:null!==(n=null!=w?w:null==_?void 0:_.removeIcon)&&void 0!==n?n:e.createElement(gl,null),addIcon:(null!=x?x:null==_?void 0:_.addIcon)||e.createElement(hg,null),showAdd:!0!==b});const q=A();if("production"!==process.env.NODE_ENV){const e=Nr("Tabs");"production"!==process.env.NODE_ENV&&e(!("onPrevClick"in t)&&!("onNextClick"in t),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&e(!(j||(null==_?void 0:_.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const X=cc(v),K=function(t,n){"production"!==process.env.NODE_ENV&&Nr("Tabs").deprecated(!n,"Tabs.TabPane","items");if(t)return t;const r=L(n).map((t=>{if(e.isValidElement(t)){const{key:e,props:n}=t,r=n||{},{tab:o}=r,i=qg(r,["tab"]);return Object.assign(Object.assign({key:String(e)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(r)}(O,$),G=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}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Wg),{motionName:Zl(e,"switch")})),t}(F,k),U=Object.assign(Object.assign({},null==_?void 0:_.style),N),Y={align:null!==(r=null==I?void 0:I.align)&&void 0!==r?r:null===(o=null==_?void 0:_.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==I?void 0:I.size)&&void 0!==i?i:j)&&void 0!==a?a:null===(l=null==_?void 0:_.indicator)||void 0===l?void 0:l.size)&&void 0!==c?c:null==_?void 0:_.indicatorSize};return D(e.createElement(Vg,Object.assign({direction:T,getPopupContainer:B},M,{items:K,className:P({[`${F}-${X}`]:X,[`${F}-card`]:["card","editable-card"].includes(p),[`${F}-editable-card`]:"editable-card"===p,[`${F}-centered`]:y},null==_?void 0:_.className,m,g,H,V,z),popupClassName:P(S,H,V,z),style:U,editable:W,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(s=null==_?void 0:_.more)||void 0===s?void 0:s.icon)&&void 0!==u?u:null==_?void 0:_.moreIcon)&&void 0!==d?d:C)&&void 0!==f?f:e.createElement(xm,null),transitionName:`${q}-slide-up`},E),prefixCls:F,animated:G,indicator:Y})))};function ov(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function iv(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=ov(t,e,r)):n(o=ov(t,e,""))}}rv.TabPane=tv,"production"!==process.env.NODE_ENV&&(rv.displayName="Tabs");var av=t.forwardRef((function(e,n){var r,o,i=e.inputElement,l=e.children,c=e.prefixCls,s=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,m=e.style,g=e.disabled,h=e.readOnly,b=e.focused,y=e.triggerFocus,x=e.allowClear,w=e.value,C=e.handleReset,E=e.hidden,S=e.classes,$=e.classNames,O=e.dataAttrs,k=e.styles,N=e.components,j=e.onClear,M=null!=l?l:i,R=(null==N?void 0:N.affixWrapper)||"span",T=(null==N?void 0:N.groupWrapper)||"span",_=(null==N?void 0:N.wrapper)||"span",A=(null==N?void 0:N.groupAddon)||"span",B=a(null),L=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),F=v(M,{value:w,className:P(M.props.className,!L&&(null==$?void 0:$.variant))||null}),z=a(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:z.current||B.current}})),L){var D=null;if(x){var H=!g&&!h&&w,V="".concat(c,"-clear-icon"),W="object"===X(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";D=t.createElement("span",{onClick:function(e){null==C||C(e),null==j||j()},onMouseDown:function(e){return e.preventDefault()},className:P(V,G(G({},"".concat(V,"-hidden"),!H),"".concat(V,"-has-suffix"),!!u)),role:"button",tabIndex:-1},W)}var q="".concat(c,"-affix-wrapper"),K=P(q,G(G(G(G(G({},"".concat(c,"-disabled"),g),"".concat(q,"-disabled"),g),"".concat(q,"-focused"),b),"".concat(q,"-readonly"),h),"".concat(q,"-input-with-clear-btn"),u&&x&&w),null==S?void 0:S.affixWrapper,null==$?void 0:$.affixWrapper,null==$?void 0:$.variant),U=(u||x)&&t.createElement("span",{className:P("".concat(c,"-suffix"),null==$?void 0:$.suffix),style:null==k?void 0:k.suffix},D,u);F=t.createElement(R,I({className:K,style:null==k?void 0:k.affixWrapper,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:B}),s&&t.createElement("span",{className:P("".concat(c,"-prefix"),null==$?void 0:$.prefix),style:null==k?void 0:k.prefix},s),F,U)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var Z="".concat(c,"-group"),Q="".concat(Z,"-addon"),J="".concat(Z,"-wrapper"),ee=P("".concat(c,"-wrapper"),Z,null==S?void 0:S.wrapper,null==$?void 0:$.wrapper),te=P(J,G({},"".concat(J,"-disabled"),g),null==S?void 0:S.group,null==$?void 0:$.groupWrapper);F=t.createElement(T,{className:te,ref:z},t.createElement(_,{className:ee},d&&t.createElement(A,{className:Q},d),F,f&&t.createElement(A,{className:Q},f)))}return t.cloneElement(F,{className:P(null===(r=F.props)||void 0===r?void 0:r.className,p)||null,style:Y(Y({},null===(o=F.props)||void 0===o?void 0:o.style),m),hidden:E})})),lv=["show"];function cv(t,n){return e.useMemo((function(){var e={};n&&(e.show="object"===X(n)&&n.formatter?n.formatter:!!n);var r=e=Y(Y({},e),t),o=r.show,i=ht(r,lv);return Y(Y({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var sv=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],uv=s((function(e,n){var r=e.autoComplete,o=e.onChange,i=e.onFocus,l=e.onBlur,s=e.onPressEnter,u=e.onKeyDown,f=e.onKeyUp,p=e.prefixCls,m=void 0===p?"rc-input":p,v=e.disabled,h=e.htmlSize,b=e.className,y=e.maxLength,x=e.suffix,w=e.showCount,C=e.count,E=e.type,S=void 0===E?"text":E,$=e.classes,O=e.classNames,k=e.styles,N=e.onCompositionStart,j=e.onCompositionEnd,M=ht(e,sv),R=rt(d(!1),2),T=R[0],_=R[1],A=a(!1),B=a(!1),L=a(null),F=a(null),z=function(e){L.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(L.current,e)},D=rt(mi(e.defaultValue,{value:e.value}),2),H=D[0],V=D[1],W=null==H?"":String(H),q=rt(d(null),2),X=q[0],K=q[1],U=cv(C,w),Z=U.max||y,Q=U.strategy(W),J=!!Z&&Q>Z;g(n,(function(){var e;return{focus:z,blur:function(){var e;null===(e=L.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=L.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=L.current)||void 0===e||e.select()},input:L.current,nativeElement:(null===(e=F.current)||void 0===e?void 0:e.nativeElement)||L.current}})),c((function(){_((function(e){return(!e||!v)&&e}))}),[v]);var ee=function(e,t,n){var r,i,a=t;if(!A.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&K([(null===(r=L.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=L.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;V(a),L.current&&iv(L.current,e,o,a)};c((function(){var e;X&&(null===(e=L.current)||void 0===e||e.setSelectionRange.apply(e,Ge(X)))}),[X]);var te,ne=function(e){ee(e,e.target.value,{source:"change"})},re=function(e){A.current=!1,ee(e,e.currentTarget.value,{source:"compositionEnd"}),null==j||j(e)},oe=function(e){s&&"Enter"===e.key&&!B.current&&(B.current=!0,s(e)),null==u||u(e)},ie=function(e){"Enter"===e.key&&(B.current=!1),null==f||f(e)},ae=function(e){_(!0),null==i||i(e)},le=function(e){_(!1),null==l||l(e)},ce=J&&"".concat(m,"-out-of-range");return t.createElement(av,I({},M,{prefixCls:m,className:P(b,ce),handleReset:function(e){V(""),z(),L.current&&iv(L.current,e,o)},value:W,focused:T,triggerFocus:z,suffix:function(){var e=Number(Z)>0;if(x||U.show){var n=U.showFormatter?U.showFormatter({value:W,count:Q,maxLength:Z}):"".concat(Q).concat(e?" / ".concat(Z):"");return t.createElement(t.Fragment,null,U.show&&t.createElement("span",{className:P("".concat(m,"-show-count-suffix"),G({},"".concat(m,"-show-count-has-suffix"),!!x),null==O?void 0:O.count),style:Y({},null==k?void 0:k.count)},n),x)}return null}(),disabled:v,classes:$,classNames:O,styles:k}),(te=We(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t.createElement("input",I({autoComplete:r},te,{onChange:ne,onFocus:ae,onBlur:le,onKeyDown:oe,onKeyUp:ie,className:P(m,G({},"".concat(m,"-disabled"),v),null==O?void 0:O.input),style:null==k?void 0:k.input,ref:L,size:h,type:S,onCompositionStart:function(e){A.current=!0,null==N||N(e)},onCompositionEnd:re}))))}));const dv=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement(fl,null)}),n};function fv(e,t){const n=a([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return c((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var pv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mv=s(((e,n)=>{var r;const{prefixCls:i,bordered:l=!0,status:s,size:u,disabled:d,onBlur:f,onFocus:p,suffix:m,allowClear:g,addonAfter:v,addonBefore:h,className:b,style:y,styles:x,rootClassName:w,onChange:C,classNames:E,variant:S}=e,$=pv(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=Nr("Input");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:O,direction:k,input:N}=t.useContext(Zo),j=O("input",i),I=a(null),M=wl(j),[R,T,_]=mg(j,M),{compactSize:A,compactItemClassnames:B}=uc(j,k),L=cc((e=>{var t;return null!==(t=null!=u?u:A)&&void 0!==t?t:e})),F=t.useContext(ei),z=null!=d?d:F,{status:D,hasFeedback:H,feedbackIcon:V}=o(Eu),W=Pd(D,s),q=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!H,X=a(q);if("production"!==process.env.NODE_ENV){const e=Nr("Input");c((()=>{var t;q&&!X.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===(null===(t=I.current)||void 0===t?void 0:t.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),X.current=q}),[q])}const K=fv(I,!0),G=(H||m)&&t.createElement(t.Fragment,null,m,H&&V),U=dv(null!=g?g:null==N?void 0:N.allowClear),[Y,Z]=Id("input",S,l);return R(t.createElement(uv,Object.assign({ref:te(n,I),prefixCls:j,autoComplete:null==N?void 0:N.autoComplete},$,{disabled:z,onBlur:e=>{K(),null==f||f(e)},onFocus:e=>{K(),null==p||p(e)},style:Object.assign(Object.assign({},null==N?void 0:N.style),y),styles:Object.assign(Object.assign({},null==N?void 0:N.styles),x),suffix:G,allowClear:U,className:P(b,w,_,M,B,null==N?void 0:N.className),onChange:e=>{K(),null==C||C(e)},addonBefore:h&&t.createElement(Ou,{form:!0,space:!0},h),addonAfter:v&&t.createElement(Ou,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},E),null==N?void 0:N.classNames),{input:P({[`${j}-sm`]:"small"===L,[`${j}-lg`]:"large"===L,[`${j}-rtl`]:"rtl"===k},null==E?void 0:E.input,null===(r=null==N?void 0:N.classNames)||void 0===r?void 0:r.input,T),variant:P({[`${j}-${Y}`]:Z},jd(j,W)),affixWrapper:P({[`${j}-affix-wrapper-sm`]:"small"===L,[`${j}-affix-wrapper-lg`]:"large"===L,[`${j}-affix-wrapper-rtl`]:"rtl"===k},T),wrapper:P({[`${j}-group-rtl`]:"rtl"===k},T),groupWrapper:P({[`${j}-group-wrapper-sm`]:"small"===L,[`${j}-group-wrapper-lg`]:"large"===L,[`${j}-group-wrapper-rtl`]:"rtl"===k,[`${j}-group-wrapper-${Y}`]:Z},jd(`${j}-group-wrapper`,W,H),T)})})))}));"production"!==process.env.NODE_ENV&&(mv.displayName="Input");const gv=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var vv=Wi(["Input","OTP"],(e=>{const t=bi(e,Hm(e));return[gv(t)]}),Vm),hv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bv=e.forwardRef(((t,n)=>{const{value:r,onChange:o,onActiveChange:i,index:a,mask:l}=t,c=hv(t,["value","onChange","onActiveChange","index","mask"]),s=r&&"string"==typeof l?l:r,u=e.useRef(null);e.useImperativeHandle(n,(()=>u.current));const d=()=>{et((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return e.createElement(mv,Object.assign({},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||r||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===l?"password":"text"}))}));var yv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function xv(e){return(e||"").split("")}const wv=e.forwardRef(((t,n)=>{const{prefixCls:r,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:d,status:f,autoFocus:p,mask:m}=t,g=yv(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=Nr("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof m&&m.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:v,direction:h}=e.useContext(Zo),b=v("otp",r),y=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Y({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||hl(n,"aria-"))||t.data&&hl(n,"data-")||t.attr&&vl.includes(n))&&(r[n]=e[n])})),r}(g,{aria:!0,data:!0,attr:!0}),x=wl(b),[w,C,E]=vv(b,x),S=cc((e=>null!=i?i:e)),$=e.useContext(Eu),O=Pd($.status,f),k=e.useMemo((()=>Object.assign(Object.assign({},$),{status:O,hasFeedback:!1,feedbackIcon:null})),[$,O]),N=e.useRef(null),j=e.useRef({});e.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=j.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=j.current[t])||void 0===e||e.blur()},nativeElement:N.current})));const I=e=>s?s(e):e,[M,R]=e.useState(xv(I(a||"")));e.useEffect((()=>{void 0!==l&&R(xv(l))}),[l]);const T=di((e=>{R(e),c&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>M[t]!==e))&&c(e.join(""))})),_=di(((e,t)=>{let n=Ge(M);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(xv(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=I(n.map((e=>e||" ")).join(""));return n=xv(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),A=(e,t)=>{var n;const r=_(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=j.current[i])||void 0===n||n.focus()),T(r)},B=e=>{var t;null===(t=j.current[e])||void 0===t||t.focus()},L={variant:u,disabled:d,status:O,mask:m};return w(e.createElement("div",Object.assign({},y,{ref:N,className:P(b,{[`${b}-sm`]:"small"===S,[`${b}-lg`]:"large"===S,[`${b}-rtl`]:"rtl"===h},E,C)}),e.createElement(Eu.Provider,{value:k},Array.from({length:o}).map(((t,n)=>{const r=`otp-${n}`,o=M[n]||"";return e.createElement(bv,Object.assign({ref:e=>{j.current[n]=e},key:r,index:n,size:S,htmlSize:1,className:`${b}-input`,onChange:A,value:o,onActiveChange:B,autoFocus:0===n&&p},L))})))))}));var Cv={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"},Ev=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:Cv}))},Sv=e.forwardRef(Ev);"production"!==process.env.NODE_ENV&&(Sv.displayName="EyeInvisibleOutlined");var $v={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"},Ov=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:$v}))},kv=e.forwardRef(Ov);"production"!==process.env.NODE_ENV&&(kv.displayName="EyeOutlined");var Nv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jv=t=>t?e.createElement(kv,null):e.createElement(Sv,null),Pv={click:"onClick",hover:"onMouseOver"},Iv=e.forwardRef(((t,n)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:l=jv}=t,c="object"==typeof i&&void 0!==i.visible,[s,u]=d((()=>!!c&&i.visible)),f=a(null);e.useEffect((()=>{c&&u(i.visible)}),[c,i]);const p=fv(f),m=()=>{r||(s&&p(),u((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:g,prefixCls:v,inputPrefixCls:h,size:b}=t,y=Nv(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=e.useContext(Zo),w=x("input",h),C=x("input-password",v),E=i&&(t=>{const n=Pv[o]||"",r=l(s),i={[n]:m,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(r)?r:e.createElement("span",null,r),i)})(C),S=P(C,g,{[`${C}-${b}`]:!!b}),$=Object.assign(Object.assign({},We(y,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:S,prefixCls:w,suffix:E});return b&&($.size=b),e.createElement(mv,Object.assign({ref:te(n,f)},$))}));"production"!==process.env.NODE_ENV&&(Iv.displayName="Input.Password");var Mv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rv=e.forwardRef(((t,n)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:g}=t,v=Mv(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:b}=e.useContext(Zo),y=e.useRef(!1),x=h("input-search",r),w=h("input",o),{compactSize:C}=uc(x,b),E=cc((e=>{var t;return null!==(t=null!=a?a:C)&&void 0!==t?t:e})),S=e.useRef(null),$=e=>{var t;document.activeElement===(null===(t=S.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;f&&f(null===(n=null===(t=S.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},k="boolean"==typeof c?e.createElement(Bd,null):null,N=`${x}-button`;let j;const I=c||{},M=I.type&&!0===I.type.__ANT_BUTTON;j=M||"button"===I.type?xl(I,Object.assign({onMouseDown:$,onClick:e=>{var t,n;null===(n=null===(t=null==I?void 0:I.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},M?{className:N,size:E}:{})):e.createElement(os,{className:N,type:c?"primary":void 0,size:E,disabled:d,key:"enterButton",onMouseDown:$,onClick:O,loading:u,icon:k},c),s&&(j=[j,xl(s,{key:"addonAfter"})]);const R=P(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${E}`]:!!E,[`${x}-with-button`]:!!c},i);return e.createElement(mv,Object.assign({ref:te(S,n),onPressEnter:e=>{y.current||u||O(e)}},v,{size:E,onCompositionStart:e=>{y.current=!0,null==m||m(e)},onCompositionEnd:e=>{y.current=!1,null==g||g(e)},prefixCls:w,addonAfter:j,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},className:R,disabled:d}))}));"production"!==process.env.NODE_ENV&&(Rv.displayName="Search");var Tv,_v=["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"],Av={};function Bv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Tv||((Tv=document.createElement("textarea")).setAttribute("tab-index","-1"),Tv.setAttribute("aria-hidden","true"),document.body.appendChild(Tv)),e.getAttribute("wrap")?Tv.setAttribute("wrap",e.getAttribute("wrap")):Tv.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Av[n])return Av[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:_v.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Av[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;Tv.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),Tv.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=Tv.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){Tv.value=" ";var p=Tv.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var Lv=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Fv=e.forwardRef((function(t,n){var r=t,o=r.prefixCls,i=r.defaultValue,a=r.value,l=r.autoSize,c=r.onResize,s=r.className,u=r.style,d=r.disabled,f=r.onChange,p=r.onInternalAutoSize,m=ht(r,Lv),g=rt(mi(i,{value:a,postState:function(e){return null!=e?e:""}}),2),v=g[0],h=g[1],b=e.useRef();e.useImperativeHandle(n,(function(){return{textArea:b.current}}));var y=rt(e.useMemo((function(){return l&&"object"===X(l)?[l.minRows,l.maxRows]:[]}),[l]),2),x=y[0],w=y[1],C=!!l,E=rt(e.useState(2),2),S=E[0],$=E[1],O=rt(e.useState(),2),k=O[0],N=O[1],j=function(){$(0),"test"===process.env.NODE_ENV&&(null==p||p())};Wt((function(){C&&j()}),[a,x,w,C]),Wt((function(){if(0===S)$(1);else if(1===S){var e=Bv(b.current,!1,x,w);$(2),N(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=r}}catch(e){}}()}),[S]);var M=e.useRef(),R=function(){et.cancel(M.current)};e.useEffect((function(){return R}),[]);var T=C?k:null,_=Y(Y({},u),T);return 0!==S&&1!==S||(_.overflowY="hidden",_.overflowX="hidden"),e.createElement(Ve,{onResize:function(e){2===S&&(null==c||c(e),l&&(R(),M.current=et((function(){j()}))))},disabled:!(l||c)},e.createElement("textarea",I({},m,{ref:b,style:_,className:P(o,s,G({},"".concat(o,"-disabled"),d)),disabled:d,value:v,onChange:function(e){h(e.target.value),null==f||f(e)}})))})),zv=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Dv=t.forwardRef((function(e,n){var r,o=e.defaultValue,i=e.value,l=e.onFocus,s=e.onBlur,u=e.onChange,d=e.allowClear,f=e.maxLength,p=e.onCompositionStart,m=e.onCompositionEnd,v=e.suffix,h=e.prefixCls,b=void 0===h?"rc-textarea":h,y=e.showCount,x=e.count,w=e.className,C=e.style,E=e.disabled,S=e.hidden,$=e.classNames,O=e.styles,k=e.onResize,N=e.onClear,j=e.onPressEnter,M=e.readOnly,R=e.autoSize,T=e.onKeyDown,_=ht(e,zv),A=rt(mi(o,{value:i,defaultValue:o}),2),B=A[0],L=A[1],F=null==B?"":String(B),z=rt(t.useState(!1),2),D=z[0],H=z[1],V=t.useRef(!1),W=rt(t.useState(null),2),q=W[0],X=W[1],K=a(null),U=a(null),Z=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},Q=function(){Z().focus()};g(n,(function(){var e;return{resizableTextArea:U.current,focus:Q,blur:function(){Z().blur()},nativeElement:(null===(e=K.current)||void 0===e?void 0:e.nativeElement)||Z()}})),c((function(){H((function(e){return!E&&e}))}),[E]);var J=rt(t.useState(null),2),ee=J[0],te=J[1];t.useEffect((function(){var e;ee&&(e=Z()).setSelectionRange.apply(e,Ge(ee))}),[ee]);var ne,re=cv(x,y),oe=null!==(r=re.max)&&void 0!==r?r:f,ie=Number(oe)>0,ae=re.strategy(F),le=!!oe&&ae>oe,ce=function(e,t){var n=t;!V.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max&&t!==(n=re.exceedFormatter(t,{max:re.max}))&&te([Z().selectionStart||0,Z().selectionEnd||0]),L(n),iv(e.currentTarget,e,u,n)},se=v;re.show&&(ne=re.showFormatter?re.showFormatter({value:F,count:ae,maxLength:oe}):"".concat(ae).concat(ie?" / ".concat(oe):""),se=t.createElement(t.Fragment,null,se,t.createElement("span",{className:P("".concat(b,"-data-count"),null==$?void 0:$.count),style:null==O?void 0:O.count},ne)));var ue=!R&&!y&&!d;return t.createElement(av,{ref:K,value:F,allowClear:d,handleReset:function(e){L(""),Q(),iv(Z(),e,u)},suffix:se,prefixCls:b,classNames:Y(Y({},$),{},{affixWrapper:P(null==$?void 0:$.affixWrapper,G(G({},"".concat(b,"-show-count"),y),"".concat(b,"-textarea-allow-clear"),d))}),disabled:E,focused:D,className:P(w,le&&"".concat(b,"-out-of-range")),style:Y(Y({},C),q&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ne?ne:void 0}},hidden:S,readOnly:M,onClear:N},t.createElement(Fv,I({},_,{autoSize:R,maxLength:f,onKeyDown:function(e){"Enter"===e.key&&j&&j(e),null==T||T(e)},onChange:function(e){ce(e,e.target.value)},onFocus:function(e){H(!0),null==l||l(e)},onBlur:function(e){H(!1),null==s||s(e)},onCompositionStart:function(e){V.current=!0,null==p||p(e)},onCompositionEnd:function(e){V.current=!1,ce(e,e.currentTarget.value),null==m||m(e)},className:P(null==$?void 0:$.textarea),style:Y(Y({},null==O?void 0:O.textarea),{},{resize:null==C?void 0:C.resize}),disabled:E,prefixCls:b,onResize:function(e){var t;null==k||k(e),null!==(t=Z())&&void 0!==t&&t.style.height&&X(!0)},ref:U,readOnly:M})))})),Hv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vv=s(((t,n)=>{var r,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:f,className:p,style:m,styles:g,variant:v}=t,h=Hv(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=Nr("TextArea");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:x}=e.useContext(Zo),w=cc(l),C=e.useContext(ei),E=null!=c?c:C,{status:S,hasFeedback:$,feedbackIcon:O}=e.useContext(Eu),k=Pd(S,s),N=e.useRef(null);e.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(e=N.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}}));const j=b("input",i),I=wl(j),[M,R,T]=mg(j,I),[_,A]=Id("textArea",v,a),B=dv(null!=u?u:null==x?void 0:x.allowClear);return M(e.createElement(Dv,Object.assign({autoComplete:null==x?void 0:x.autoComplete},h,{style:Object.assign(Object.assign({},null==x?void 0:x.style),m),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:E,allowClear:B,className:P(T,I,p,f,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:P({[`${j}-sm`]:"small"===w,[`${j}-lg`]:"large"===w},R,null==d?void 0:d.textarea,null===(r=null==x?void 0:x.classNames)||void 0===r?void 0:r.textarea),variant:P({[`${j}-${_}`]:A},jd(j,k)),affixWrapper:P(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:"rtl"===y,[`${j}-affix-wrapper-sm`]:"small"===w,[`${j}-affix-wrapper-lg`]:"large"===w,[`${j}-textarea-show-count`]:t.showCount||(null===(o=t.count)||void 0===o?void 0:o.show)},R)}),prefixCls:j,suffix:$&&e.createElement("span",{className:`${j}-textarea-suffix`},O),ref:N})))})),Wv=mv;Wv.Group=t=>{const{getPrefixCls:n,direction:r}=o(Zo),{prefixCls:i,className:a}=t,l=n("input-group",i),c=n("input"),[s,d]=mg(c),f=P(l,{[`${l}-lg`]:"large"===t.size,[`${l}-sm`]:"small"===t.size,[`${l}-compact`]:t.compact,[`${l}-rtl`]:"rtl"===r},d,a),p=o(Eu),m=u((()=>Object.assign(Object.assign({},p),{isFormItemInput:!1})),[p]);if("production"!==process.env.NODE_ENV){Nr("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return s(e.createElement("span",{className:f,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(Eu.Provider,{value:m},t.children)))},Wv.Search=Rv,Wv.TextArea=Vv,Wv.Password=Iv,Wv.OTP=wv;const qv=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},Xv=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:c,headerColor:s,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:m,motionDurationSlow:g,fontSize:v,borderRadius:h,bodyBg:b,headerBg:y,siderBg:x}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:x,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:Lt(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:x,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${g} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${g}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}}}},qv(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:s,lineHeight:Lt(l),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:v,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}};var Kv=Wi("Layout",(e=>[Xv(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Gv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Uv(t){let{suffixCls:n,tagName:r,displayName:o}=t;return t=>{const i=e.forwardRef(((o,i)=>e.createElement(t,Object.assign({ref:i,suffixCls:n,tagName:r},o))));return"production"!==process.env.NODE_ENV&&(i.displayName=o),i}}const Yv=e.forwardRef(((t,n)=>{const{prefixCls:r,suffixCls:o,className:i,tagName:a}=t,l=Gv(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=e.useContext(Zo),s=c("layout",r),[u,d,f]=Kv(s),p=o?`${s}-${o}`:s;return u(e.createElement(a,Object.assign({className:P(r||p,i,d,f),ref:n},l)))})),Zv=e.forwardRef(((t,n)=>{const{direction:r}=e.useContext(Zo),[o,i]=e.useState([]),{prefixCls:a,className:l,rootClassName:c,children:s,hasSider:u,tagName:d,style:f}=t,p=We(Gv(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:m,layout:g}=e.useContext(Zo),v=m("layout",a),h=function(e,t,n){return"boolean"==typeof n?n:!!e.length||L(t).some((e=>e.type===hm))}(o,s,u),[b,y,x]=Kv(v),w=P(v,{[`${v}-has-sider`]:h,[`${v}-rtl`]:"rtl"===r},null==g?void 0:g.className,l,c,y,x),C=e.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Ge(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return b(e.createElement(fm.Provider,{value:C},e.createElement(d,Object.assign({ref:n,className:w,style:Object.assign(Object.assign({},null==g?void 0:g.style),f)},p),s)))})),Qv=Uv({tagName:"div",displayName:"Layout"})(Zv),Jv=Uv({suffixCls:"header",tagName:"header",displayName:"Header"})(Yv),eh=Uv({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Yv),th=Uv({suffixCls:"content",tagName:"main",displayName:"Content"})(Yv),nh=Qv;nh.Header=Jv,nh.Footer=eh,nh.Content=th,nh.Sider=hm,nh._InternalSiderContext=gm;var rh={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"},oh=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:rh}))},ih=e.forwardRef(oh);"production"!==process.env.NODE_ENV&&(ih.displayName="CopyOutlined");var ah={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"},lh=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:ah}))},ch=e.forwardRef(lh);"production"!==process.env.NODE_ENV&&(ch.displayName="EditOutlined");var sh={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"},uh=function(t,n){return e.createElement(sl,I({},t,{ref:n,icon:sh}))},dh=e.forwardRef(uh);"production"!==process.env.NODE_ENV&&(dh.displayName="EnterOutlined");var fh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ph={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},mh=e.forwardRef(((t,n)=>{const{style:r,noStyle:o,disabled:i,tabIndex:a=0}=t,l=fh(t,["style","noStyle","disabled","tabIndex"]);let c={};return o||(c=Object.assign({},ph)),i&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),r),e.createElement("div",Object.assign({role:"button",tabIndex:a,ref:n},l,{onKeyDown:e=>{const{keyCode:t}=e;t===Cl.ENTER&&e.preventDefault()},onKeyUp:e=>{const{keyCode:n}=e,{onClick:r}=t;n===Cl.ENTER&&r&&r()},style:c}))})),gh=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},vh=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Bi(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},hh=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:$o[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"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}}),bh=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${Lt(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},yh=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),xh=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},gh(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}}}),hh(e)),vh(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},Bi(e)),{marginInlineStart:e.marginXXS})}),bh(e)),yh(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"}})}};var wh=Wi("Typography",(e=>[xh(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const Ch=t=>{const{prefixCls:n,"aria-label":r,className:o,style:i,direction:a,maxLength:l,autoSize:c=!0,value:s,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:m=e.createElement(dh,null)}=t,g=e.useRef(null),v=e.useRef(!1),h=e.useRef(),[b,y]=e.useState(s);e.useEffect((()=>{y(s)}),[s]),e.useEffect((()=>{var e;if(null===(e=g.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=g.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const x=()=>{u(b.trim())},[w,C,E]=wh(n),S=P(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a,[`${n}-${p}`]:!!p},o,C,E);return w(e.createElement("div",{className:S,style:i},e.createElement(Vv,{ref:g,maxLength:l,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(h.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;h.current!==t||v.current||n||r||o||i||(t===Cl.ENTER?(x(),null==f||f()):t===Cl.ESC&&d())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{x()},"aria-label":r,rows:1,autoSize:c}),null!==m?xl(m,{className:`${n}-edit-content-confirm`}):null))};var Eh=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}},Sh={"text/plain":"Text","text/html":"Url",default:"Text"};var $h=function(e,t){var n,r,o,i,a,l,c=!1;t||(t={}),n=t.debug||!1;try{if(o=Eh(),i=document.createRange(),a=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=Sh[t.format]||Sh.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),i.selectNodeContents(l),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return c},Oh=C($h),kh=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))};function Nh(t,n){return e.useMemo((()=>{const e=!!t;return[e,Object.assign(Object.assign({},n),e&&"object"==typeof t?t:null)]}),[t])}var jh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ph=e.forwardRef(((t,n)=>{const{prefixCls:r,component:o="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:s,style:u}=t,d=jh(t,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:m}=e.useContext(Zo),g=null!=s?s:p,v=l?te(n,l):n,h=f("typography",r);if("production"!==process.env.NODE_ENV){Nr("Typography").deprecated(!l,"setContentRef","ref")}const[b,y,x]=wh(h),w=P(h,null==m?void 0:m.className,{[`${h}-rtl`]:"rtl"===g},i,a,y,x),C=Object.assign(Object.assign({},null==m?void 0:m.style),u);return b(e.createElement(o,Object.assign({className:w,style:C,ref:v},d),c))}));function Ih(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function Mh(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(Ph.displayName="Typography");const Rh=e=>["string","number"].includes(typeof e),Th=t=>{let{prefixCls:n,copied:r,locale:o,iconOnly:i,tooltips:a,icon:l,tabIndex:c,onCopy:s,loading:u}=t;const d=Ih(a),f=Ih(l),{copied:p,copy:m}=null!=o?o:{},g=r?p:m,v=Mh(d[r?1:0],g),h="string"==typeof v?v:g;return e.createElement(uf,{title:v},e.createElement(mh,{className:P(`${n}-copy`,{[`${n}-copy-success`]:r,[`${n}-copy-icon-only`]:i}),onClick:s,"aria-label":h,tabIndex:c},r?Mh(f[1],e.createElement(Td,null),!0):Mh(f[0],u?e.createElement($l,null):e.createElement(ih,null),!0)))},_h=e.forwardRef(((t,n)=>{let{style:r,children:o}=t;const i=e.useRef(null);return e.useImperativeHandle(n,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),e.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},o)}));function Ah(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+(Rh(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 Bh=0,Lh=4,Fh={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function zh(t){const{enableMeasure:n,width:r,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:s}=t,u=e.useMemo((()=>L(o)),[o]),d=e.useMemo((()=>(e=>e.reduce(((e,t)=>e+(Rh(t)?String(t).length:1)),0))(u)),[o]),f=e.useMemo((()=>i(u,!1)),[o]),[p,m]=e.useState(null),g=e.useRef(null),v=e.useRef(null),h=e.useRef(null),b=e.useRef(null),y=e.useRef(null),[x,w]=e.useState(!1),[C,E]=e.useState(Bh),[S,$]=e.useState(0),[O,k]=e.useState(null);Wt((()=>{E(n&&r&&d?1:Bh)}),[r,o,a,n,u]),Wt((()=>{var e,t,n,r;if(1===C){E(2);const e=v.current&&getComputedStyle(v.current).whiteSpace;k(e)}else if(2===C){const o=!!(null===(e=h.current)||void 0===e?void 0:e.isExceed());E(o?3:Lh),m(o?[0,d]:null),w(o);const i=(null===(t=h.current)||void 0===t?void 0:t.getHeight())||0,l=1===a?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(r=y.current)||void 0===r?void 0:r.getHeight())||0,u=Math.max(i,l+c);$(u+1),s(o)}}),[C]);const N=p?Math.ceil((p[0]+p[1])/2):0;Wt((()=>{var e;const[t,n]=p||[0,0];if(t!==n){const r=((null===(e=g.current)||void 0===e?void 0:e.getHeight())||0)>S;let o=N;n-t==1&&(o=r?t:n),m(r?[t,o]:[o,n])}}),[p,N]);const j=e.useMemo((()=>{if(!n)return i(u,!1);if(3!==C||!p||p[0]!==p[1]){const t=i(u,!1);return[Lh,Bh].includes(C)?t:e.createElement("span",{style:Object.assign(Object.assign({},Fh),{WebkitLineClamp:a})},t)}return i(l?u:Ah(u,p[0]),x)}),[l,C,p,u].concat(Ge(c))),P={width:r,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return e.createElement(e.Fragment,null,j,2===C&&e.createElement(e.Fragment,null,e.createElement(_h,{style:Object.assign(Object.assign(Object.assign({},P),Fh),{WebkitLineClamp:a}),ref:h},f),e.createElement(_h,{style:Object.assign(Object.assign(Object.assign({},P),Fh),{WebkitLineClamp:a-1}),ref:b},f),e.createElement(_h,{style:Object.assign(Object.assign(Object.assign({},P),Fh),{WebkitLineClamp:1}),ref:y},i([],!0))),3===C&&p&&p[0]!==p[1]&&e.createElement(_h,{style:Object.assign(Object.assign({},P),{top:400}),ref:g},i(Ah(u,N),!0)),1===C&&e.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const Dh=t=>{let{enableEllipsis:n,isEllipsis:r,children:o,tooltipProps:i}=t;return(null==i?void 0:i.title)&&n?e.createElement(uf,Object.assign({open:!!r&&void 0},i),o):o};"production"!==process.env.NODE_ENV&&(Dh.displayName="EllipsisTooltip");var Hh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vh=e.forwardRef(((t,n)=>{var o;const{prefixCls:i,className:l,style:s,type:d,disabled:f,children:p,ellipsis:m,editable:g,copyable:v,component:h,title:b}=t,y=Hh(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:w}=e.useContext(Zo),[C]=((t,n)=>{const r=e.useContext(Lr),o=e.useMemo((()=>{var e;const n=_r[t],o=null!==(e=null==r?void 0:r[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"==typeof n?n():n),o||{})}),[t,n,r]);return[o,e.useMemo((()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?_r.locale:e}),[r])]})("Text"),E=e.useRef(null),S=e.useRef(null),$=x("typography",i),O=We(y,["mark","code","delete","underline","strong","keyboard","italic"]),[k,N]=Nh(g),[j,I]=mi(!1,{value:N.editing}),{triggerType:M=["icon"]}=N,R=e=>{var t;e&&(null===(t=N.onStart)||void 0===t||t.call(N)),I(e)},T=(e=>{const t=a();return c((()=>{t.current=e})),t.current})(j);Wt((()=>{var e;!j&&T&&(null===(e=S.current)||void 0===e||e.focus())}),[j]);const _=e=>{null==e||e.preventDefault(),R(!0)},A=e=>{var t;null===(t=N.onChange)||void 0===t||t.call(N,e),R(!1)},B=()=>{var e;null===(e=N.onCancel)||void 0===e||e.call(N),R(!1)},[F,z]=Nh(v),{copied:D,copyLoading:H,onClick:V}=(t=>{let{copyConfig:n,children:r}=t;const[o,i]=e.useState(!1),[a,l]=e.useState(!1),c=e.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};return n.format&&(u.format=n.format),e.useEffect((()=>s),[]),{copied:o,copyLoading:a,onClick:di((e=>kh(void 0,void 0,void 0,(function*(){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),l(!0);try{const o="function"==typeof n.text?yield n.text():n.text;Oh(o||String(r)||"",u),l(!1),i(!0),s(),c.current=setTimeout((()=>{i(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(e){throw l(!1),e}}))))}})({copyConfig:z,children:p}),[W,q]=e.useState(!1),[X,K]=e.useState(!1),[G,U]=e.useState(!1),[Y,Z]=e.useState(!1),[Q,J]=e.useState(!0),[ee,ne]=Nh(m,{expandable:!1,symbol:e=>e?null==C?void 0:C.collapse:null==C?void 0:C.expand}),[re,oe]=mi(ne.defaultExpanded||!1,{value:ne.expanded}),ie=ee&&(!re||"collapsible"===ne.expandable),{rows:ae=1}=ne,le=e.useMemo((()=>ie&&(void 0!==ne.suffix||ne.onEllipsis||ne.expandable||k||F)),[ie,ne,k,F]);Wt((()=>{ee&&!le&&(q(Nu("webkitLineClamp")),K(Nu("textOverflow")))}),[le,ee]);const[ce,se]=e.useState(ie),ue=e.useMemo((()=>!le&&(1===ae?X:W)),[le,X,W]);Wt((()=>{se(ue&&ie)}),[ue,ie]);const de=ie&&(ce?Y:G),fe=ie&&1===ae&&ce,pe=ie&&ae>1&&ce,[me,ge]=e.useState(0),ve=e=>{var t;U(e),G!==e&&(null===(t=ne.onEllipsis)||void 0===t||t.call(ne,e))};e.useEffect((()=>{const e=E.current;if(ee&&ce&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t),"production"!==process.env.NODE_ENV&&(t.className="ant-typography-css-ellipsis-content-measure");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);Y!==t&&Z(t)}}),[ee,ce,p,pe,Q,me]),e.useEffect((()=>{const e=E.current;if("undefined"==typeof IntersectionObserver||!e||!ce||!ie)return;const t=new IntersectionObserver((()=>{J(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[ce,ie]);const he=((e,t,n)=>u((()=>!0===e?{title:null!=t?t:n}:r(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e}),[e,t,n]))(ne.tooltip,N.text,p),be=e.useMemo((()=>{if(ee&&!ce)return[N.text,p,b,he.title].find(Rh)}),[ee,ce,b,he.title,de]);if(j)return e.createElement(Ch,{value:null!==(o=N.text)&&void 0!==o?o:"string"==typeof p?p:"",onSave:A,onCancel:B,onEnd:N.onEnd,prefixCls:$,className:l,style:s,direction:w,component:h,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const ye=()=>{const{expandable:t,symbol:n}=ne;return t?e.createElement(mh,{key:"expand",className:`${$}-${re?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;oe(t.expanded),null===(n=ne.onExpand)||void 0===n||n.call(ne,e,t)})(e,{expanded:!re}),"aria-label":re?C.collapse:null==C?void 0:C.expand},"function"==typeof n?n(re):n):null},xe=()=>{if(!k)return;const{icon:t,tooltip:n,tabIndex:r}=N,o=L(n)[0]||(null==C?void 0:C.edit),i="string"==typeof o?o:"";return M.includes("icon")?e.createElement(uf,{key:"edit",title:!1===n?"":o},e.createElement(mh,{ref:S,className:`${$}-edit`,onClick:_,"aria-label":i,tabIndex:r},t||e.createElement(ch,{role:"button"}))):null},we=t=>[t&&ye(),xe(),F?e.createElement(Th,Object.assign({key:"copy"},z,{prefixCls:$,copied:D,locale:C,onCopy:V,loading:H,iconOnly:null==p})):null];return e.createElement(Ve,{onResize:e=>{let{offsetWidth:t}=e;ge(t)},disabled:!ie},(r=>e.createElement(Dh,{tooltipProps:he,enableEllipsis:ie,isEllipsis:de},e.createElement(Ph,Object.assign({className:P({[`${$}-${d}`]:d,[`${$}-disabled`]:f,[`${$}-ellipsis`]:ee,[`${$}-ellipsis-single-line`]:fe,[`${$}-ellipsis-multiple-line`]:pe},l),prefixCls:i,style:Object.assign(Object.assign({},s),{WebkitLineClamp:pe?ae:void 0}),component:h,ref:te(r,E,n),direction:w,onClick:M.includes("text")?_:void 0,"aria-label":null==be?void 0:be.toString(),title:b},O),e.createElement(zh,{enableMeasure:ie&&!ce,text:p,rows:ae,width:me,onEllipsis:ve,expanded:re,miscDeps:[D,re,H,k,F]},((n,r)=>function(t,n){let{mark:r,code:o,underline:i,delete:a,strong:l,keyboard:c,italic:s}=t,u=n;function d(t,n){n&&(u=e.createElement(t,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",o),d("mark",r),d("kbd",c),d("i",s),u}(t,e.createElement(e.Fragment,null,n.length>0&&r&&!re&&be?e.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(t=>[t&&!re&&e.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ne.suffix,we(t)])(r)))))))))}));var Wh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qh=e.forwardRef(((t,n)=>{var{ellipsis:r,rel:o}=t,i=Wh(t,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=Nr("Typography.Link");"production"!==process.env.NODE_ENV&&e("object"!=typeof r,"usage","`ellipsis` only supports boolean value.")}const a=Object.assign(Object.assign({},i),{rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o});return delete a.navigate,e.createElement(Vh,Object.assign({},a,{ref:n,ellipsis:!!r,component:"a"}))})),Xh=e.forwardRef(((t,n)=>e.createElement(Vh,Object.assign({ref:n},t,{component:"div"}))));var Kh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Gh=(t,n)=>{var{ellipsis:r}=t,o=Kh(t,["ellipsis"]);const i=e.useMemo((()=>r&&"object"==typeof r?We(r,["expandable","rows"]):r),[r]);if("production"!==process.env.NODE_ENV){const e=Nr("Typography.Text");"production"!==process.env.NODE_ENV&&e("object"!=typeof r||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return e.createElement(Vh,Object.assign({ref:n},o,{ellipsis:i,component:"span"}))};var Uh=e.forwardRef(Gh),Yh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Zh=[1,2,3,4,5],Qh=e.forwardRef(((t,n)=>{const{level:r=1}=t,o=Yh(t,["level"]);if("production"!==process.env.NODE_ENV){const e=Nr("Typography.Title");"production"!==process.env.NODE_ENV&&e(Zh.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=Zh.includes(r)?`h${r}`:"h1";return e.createElement(Vh,Object.assign({ref:n},o,{component:i}))})),Jh=Ph;function eb(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Jh.Text=Uh,Jh.Link=qh,Jh.Title=Qh,Jh.Paragraph=Xh;eb(".appInput {\n font-size: var(--font-14);\n font-weight: 500;\n color: #1e1f21;\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: 14px;\n text-align: left;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n &:hover {\n .ant-input {\n border-color: #d9d9d9;\n }\n }\n\n &:has(.ant-input-affix-wrapper) {\n .ant-input {\n border: none !important;\n height: unset !important;\n }\n }\n .ant-input-affix-wrapper {\n height: 40px;\n display: flex;\n align-items: center;\n .ant-input-outlined:focus-within {\n box-shadow: unset !important;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n }\n .ant-input-outlined {\n height: 40px;\n &:hover {\n border-color: #d9d9d9;\n }\n &:focus {\n box-shadow: unset;\n }\n &:focus-within {\n box-shadow: unset;\n border-color: #d9d9d9;\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var tb=function(e){var t=e.className,n=e.label,r=e.name,o=e.value,i=e.dataTestId,l=e.type,s=e.id,u=e.disabled,d=e.handleChange,f=e.onClick,p=e.defaultValue,m=e.onPressEnter,g=e.isAutoFocus,v=e.triggerFocus,h=e.isOptional,b=e.errorMessage,y=e.suffixIcon,x=e.prefixIcon,w=a(null);c((function(){g&&w.current&&w.current.focus()}),[v,g]);var C=h?"".concat(n," (optional)"):n;return N.jsxs("div",{className:"appInput ".concat(t),children:[N.jsx(Wv,{type:l,"data-test-id":i,id:s,disabled:u,name:r,className:"input",value:o,onChange:d,onClick:f,defaultValue:p,onPressEnter:m,placeholder:C,ref:w,prefix:x&&x,suffix:y&&y}),b&&N.jsx("div",{className:"error",children:b})]})};eb(".appButton {\n width: max-content;\n\n .ant-btn {\n background-color: red;\n padding: 12px;\n &:hover {\n border-color: transparent !important;\n outline: unset !important;\n box-shadow: unset !important;\n }\n }\n}\n");var nb=function(e){var t=e.type,n=e.size,r=e.className,o=e.handleClick,i=e.icon,a=e.text,l=e.disabled,c=e.iconPosition,s=e.isLoading;return N.jsx("div",{className:"appButton ".concat(r),children:N.jsx(os,{disabled:l,type:t,className:["customBtn",i?"btn-icon":"","right"===c?"iconRight":""].join(" "),size:n,onClick:o,icon:i,loading:s,children:a})})};eb('.sideBar {\n height: 100vh;\n .sider {\n height: 100%;\n .ant-layout-sider-children {\n height: 100%;\n display: flex;\n flex-direction: column;\n row-gap: 2.875rem;\n .ant-menu {\n border: none;\n }\n }\n }\n}\n\n.logo {\n height: 64px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px;\n}\n\n.menu {\n border-right: 0;\n}\n\n.footer {\n position: relative;\n &::before {\n content: "";\n height: 1px;\n width: 80%;\n position: absolute;\n top: 0;\n right: 50%;\n left: 50%;\n transform: translateX(-50%);\n background-color: #acacac;\n }\n}\n\n.tag {\n margin-left: 8px;\n}\n');var rb=nh.Sider,ob=function(e){var t=e.links,n=e.logo,r=e.footerLinks,o=e.className,i=function(e){window.location.href=e},a=t.map((function(e){return{key:e.path,icon:e.icon,label:N.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&N.jsx("span",{className:"tag",children:e.tag})]})}})),l=null==r?void 0:r.map((function(e){return{key:e.path,label:N.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return N.jsx("div",{className:"sideBar ".concat(o),children:N.jsxs(rb,{className:"sider",children:[N.jsx("div",{className:"logo",children:n}),N.jsx(Dm,{mode:"inline",className:"menu",items:a}),r&&N.jsx("div",{className:"footer",children:N.jsx(Dm,{mode:"inline",items:l})})]})})};eb(".appTextArea {\n .ant-input-outlined {\n border-color: #bfbebe;\n &:hover {\n border-color: #bfbebe;\n }\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var ib=function(e){var t=e.id,n=e.placeholder,r=e.name,o=e.value,i=e.dataTestId,a=e.defaultValue,l=e.onPressEnter,c=e.handleChange,s=e.rows,u=e.cols,d=e.className,f=e.error;return N.jsxs("div",{className:"appTextArea ".concat(d),children:[N.jsx(Wv.TextArea,{"data-test-id":i,id:t,name:r,placeholder:n,value:o,className:"textArea",onChange:c,defaultValue:a,onPressEnter:l,rows:s,cols:u}),f&&N.jsx("div",{className:"error",children:f})]})};eb(".appTab {\n .tab {\n .ant-tabs-nav {\n &::before {\n border: unset !important;\n }\n .ant-tabs-nav-wrap {\n .ant-tabs-nav-list {\n display: flex;\n gap: 3.5rem;\n align-items: center;\n .ant-tabs-tab {\n margin: 0;\n }\n .ant-tabs-ink-bar {\n display: none;\n }\n }\n }\n }\n }\n}\n");var ab=function(e){var t=e.className,n=e.items,r=e.handleChange,o=e.defaultActiveKey;return N.jsx("div",{className:"appTab ".concat(t),children:N.jsx(rv,{defaultActiveKey:o,items:n,onChange:r,className:"tab"})})},lb={searchIcon:N.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),N.jsx("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:N.jsx("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{d:"M23.0136 7.77219C22.9817 7.69906 22.2017 5.96938 20.4599 4.2275C18.8436 2.61313 16.0667 0.6875 11.9999 0.6875C7.93299 0.6875 5.15611 2.61313 3.53986 4.2275C1.79799 5.96938 1.01799 7.69625 0.986113 7.77219C0.954062 7.84419 0.9375 7.92212 0.9375 8.00094C0.9375 8.07975 0.954062 8.15768 0.986113 8.22969C1.01799 8.30187 1.79799 10.0316 3.53986 11.7734C5.15611 13.3878 7.93299 15.3125 11.9999 15.3125C16.0667 15.3125 18.8436 13.3878 20.4599 11.7734C22.2017 10.0316 22.9817 8.30469 23.0136 8.22969C23.0457 8.15768 23.0622 8.07975 23.0622 8.00094C23.0622 7.92212 23.0457 7.84419 23.0136 7.77219ZM11.9999 14.1875C9.05799 14.1875 6.48924 13.1169 4.36393 11.0066C3.473 10.1211 2.71908 9.10781 2.12705 8C2.71891 6.89237 3.47285 5.87932 4.36393 4.99438C6.48924 2.88313 9.05799 1.8125 11.9999 1.8125C14.9417 1.8125 17.5105 2.88313 19.6358 4.99438C20.5269 5.87932 21.2808 6.89237 21.8727 8C21.2755 9.14469 18.2811 14.1875 11.9999 14.1875ZM11.9999 3.6875C11.1469 3.6875 10.3132 3.94042 9.60397 4.41429C8.89478 4.88815 8.34204 5.56167 8.01563 6.34968C7.68923 7.13768 7.60383 8.00478 7.77023 8.84133C7.93663 9.67787 8.34735 10.4463 8.95047 11.0494C9.55358 11.6525 10.322 12.0632 11.1585 12.2296C11.9951 12.396 12.8622 12.3106 13.6502 11.9842C14.4382 11.6578 15.1117 11.1051 15.5856 10.3959C16.0594 9.68671 16.3124 8.85293 16.3124 8C16.3109 6.85671 15.856 5.76067 15.0476 4.95225C14.2392 4.14382 13.1432 3.68899 11.9999 3.6875ZM11.9999 11.1875C11.3694 11.1875 10.7532 11.0006 10.229 10.6503C9.7048 10.3001 9.29625 9.80224 9.055 9.2198C8.81374 8.63736 8.75062 7.99646 8.87361 7.37815C8.9966 6.75984 9.30018 6.19188 9.74596 5.7461C10.1917 5.30032 10.7597 4.99674 11.378 4.87375C11.9963 4.75076 12.6372 4.81388 13.2197 5.05513C13.8021 5.29639 14.2999 5.70494 14.6502 6.22912C15.0004 6.7533 15.1874 7.36957 15.1874 8C15.1874 8.84538 14.8515 9.65613 14.2538 10.2539C13.656 10.8517 12.8452 11.1875 11.9999 11.1875Z",fill:"black"})}),uploadIcon:N.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.33325 3.99998C2.33325 2.80336 3.3033 1.83331 4.49992 1.83331H9.83325C10.1094 1.83331 10.3333 1.60945 10.3333 1.33331C10.3333 1.05717 10.1094 0.833313 9.83325 0.833313H4.49992C2.75102 0.833313 1.33325 2.25108 1.33325 3.99998V12C1.33325 13.7489 2.75102 15.1666 4.49992 15.1666H12.4999C14.2488 15.1666 15.6666 13.7489 15.6666 12V6.66665C15.6666 6.3905 15.4427 6.16665 15.1666 6.16665C14.8904 6.16665 14.6666 6.3905 14.6666 6.66665V9.00604C14.6365 8.98198 14.6052 8.95911 14.5728 8.93751L12.9856 7.87931C11.9279 7.17418 10.5196 7.31364 9.62072 8.21251L7.37912 10.4541C6.48025 11.353 5.07193 11.4924 4.01427 10.7873L2.33325 9.66664V3.99998ZM13.1666 5.83331C13.4427 5.83331 13.6666 5.60945 13.6666 5.33331V2.54042L14.1464 3.0202C14.3416 3.21546 14.6582 3.21546 14.8534 3.0202C15.0487 2.82494 15.0487 2.50835 14.8534 2.31309L13.9915 1.45117C13.5359 0.995553 12.7972 0.995553 12.3416 1.45117L11.4797 2.31309C11.2844 2.50835 11.2844 2.82494 11.4797 3.0202C11.675 3.21546 11.9915 3.21546 12.1868 3.0202L12.6666 2.54042V5.33331C12.6666 5.60945 12.8904 5.83331 13.1666 5.83331ZM6.16658 7.33331C7.08706 7.33331 7.83325 6.58712 7.83325 5.66665C7.83325 4.74617 7.08706 3.99998 6.16658 3.99998C5.24611 3.99998 4.49992 4.74617 4.49992 5.66665C4.49992 6.58712 5.24611 7.33331 6.16658 7.33331Z",fill:"#FAFAFA"})}),backArrow:N.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),N.jsx("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:N.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.40147 12.3416L5.51352 12.5685C5.61142 12.7668 5.84666 12.9243 6.06777 12.9389L6.60913 12.9746C6.68987 12.9799 6.8315 13.0385 6.89252 13.092L7.30057 13.4495C7.4669 13.5953 7.74449 13.6507 7.95435 13.5796L8.30207 13.4617L7.07889 16.209L6.04906 14.7045L4.24194 14.9459L5.40147 12.3416ZM8.94099 13.4617L9.28871 13.5796C9.49816 13.6506 9.77583 13.5955 9.94249 13.4495L10.3505 13.092C10.4114 13.0386 10.553 12.9799 10.6339 12.9746L11.1753 12.9389C11.396 12.9243 11.6314 12.7672 11.7295 12.5685L11.8416 12.3416L13.0011 14.9459L11.194 14.7045L10.1642 16.209L8.94099 13.4617Z",fill:"white"}),N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36671 13.3491L8.85289 13.1749C8.72505 13.1315 8.51688 13.1318 8.38992 13.1749L7.87611 13.3491C7.74827 13.3924 7.56161 13.3548 7.46079 13.2664L7.05275 12.9089C6.95122 12.8199 6.75878 12.7405 6.62502 12.7317L6.08366 12.696C5.94897 12.6871 5.79091 12.581 5.73158 12.4608L5.49142 11.9743C5.43166 11.8532 5.28425 11.7062 5.16405 11.6469L4.67757 11.4067C4.55652 11.347 4.45113 11.1884 4.44231 11.0547L4.4066 10.5133C4.39772 10.3786 4.31777 10.1864 4.22943 10.0856L3.87188 9.67753C3.78292 9.576 3.74624 9.38916 3.78927 9.26221L3.96345 8.7484C4.00679 8.62055 4.00648 8.41238 3.96345 8.28543L3.78927 7.77162C3.74593 7.64377 3.78354 7.45712 3.87188 7.3563L4.22943 6.94825C4.31839 6.84673 4.39778 6.65429 4.4066 6.52053L4.44231 5.97917C4.45119 5.84447 4.55737 5.68642 4.67757 5.62708L5.16405 5.38693C5.2851 5.32717 5.43208 5.17976 5.49142 5.05956L5.73158 4.57307C5.79133 4.45203 5.94991 4.34664 6.08366 4.33782L6.62502 4.30211C6.75972 4.29322 6.95193 4.21328 7.05275 4.12494L7.46079 3.76739C7.56232 3.67843 7.74916 3.64174 7.87611 3.68478L8.38992 3.85896C8.51777 3.9023 8.72594 3.90199 8.85289 3.85896L9.36671 3.68478C9.49455 3.64144 9.6812 3.67905 9.78202 3.76739L10.1901 4.12494C10.2916 4.2139 10.484 4.29329 10.6178 4.30211L11.1592 4.33782C11.2938 4.3467 11.4519 4.45288 11.5112 4.57307L11.7514 5.05956C11.8112 5.1806 11.9586 5.32759 12.0788 5.38693L12.5652 5.62708C12.6863 5.68684 12.7917 5.84542 12.8005 5.97917L12.8362 6.52053C12.8451 6.65523 12.925 6.84744 13.0134 6.94825L13.3709 7.3563C13.4599 7.45783 13.4966 7.64467 13.4535 7.77162L13.2794 8.28543C13.236 8.41328 13.2363 8.62145 13.2794 8.7484L13.4535 9.26221C13.4969 9.39006 13.4593 9.57671 13.3709 9.67753L13.0134 10.0856C12.9244 10.1871 12.845 10.3795 12.8362 10.5133L12.8005 11.0547C12.7916 11.1894 12.6854 11.3474 12.5652 11.4067L12.0788 11.6469C11.9577 11.7067 11.8107 11.8541 11.7514 11.9743L11.5112 12.4608C11.4515 12.5818 11.2929 12.6872 11.1592 12.696L10.6178 12.7317C10.4831 12.7406 10.2909 12.8206 10.1901 12.9089L9.78202 13.2664C9.68049 13.3554 9.49366 13.3921 9.36671 13.3491ZM8.62141 12.1666C10.6371 12.1666 12.2711 10.5326 12.2711 8.51692C12.2711 6.50127 10.6371 4.86726 8.62141 4.86726C6.60576 4.86726 4.97175 6.50127 4.97175 8.51692C4.97175 10.5326 6.60576 12.1666 8.62141 12.1666Z",fill:"white"}),N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.62144 9.96838L7.25525 10.6877C7.14583 10.7454 7.07412 10.6934 7.09512 10.5714L7.35711 9.04978L6.25077 7.97275C6.16216 7.88649 6.18942 7.80223 6.31193 7.78451L7.84004 7.56346L8.52248 6.17845C8.57714 6.06753 8.66569 6.06741 8.72041 6.17845L9.40285 7.56346L10.931 7.78451C11.0533 7.80221 11.0808 7.8864 10.9921 7.97275L9.88578 9.04978L10.1478 10.5714C10.1687 10.6933 10.0972 10.7454 9.98764 10.6877L8.62144 9.96838Z",fill:"white"})]}),message_icon:N.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{d:"M11.2 -0.00219727H4.8C2.15333 -0.00219727 0 2.15114 0 4.7978V8.53114C0 11.0885 2.01013 13.185 4.53333 13.3239V15.549C4.53333 15.7989 4.73707 16.0021 4.98747 16.0021C5.1072 16.0021 5.22053 15.9546 5.30613 15.869L5.8064 15.3687C7.12 14.0549 8.86693 13.3311 10.7251 13.3311H11.2C13.8467 13.3311 16 11.1778 16 8.53114V4.7978C16 2.15114 13.8467 -0.00219727 11.2 -0.00219727ZM4.53333 7.73114C3.94507 7.73114 3.46667 7.25274 3.46667 6.66447C3.46667 6.0762 3.94507 5.5978 4.53333 5.5978C5.1216 5.5978 5.6 6.0762 5.6 6.66447C5.6 7.25274 5.12133 7.73114 4.53333 7.73114ZM8 7.73114C7.41173 7.73114 6.93333 7.25274 6.93333 6.66447C6.93333 6.0762 7.41173 5.5978 8 5.5978C8.58827 5.5978 9.06667 6.0762 9.06667 6.66447C9.06667 7.25274 8.588 7.73114 8 7.73114ZM11.4667 7.73114C10.8784 7.73114 10.4 7.25274 10.4 6.66447C10.4 6.0762 10.8784 5.5978 11.4667 5.5978C12.0549 5.5978 12.5333 6.0762 12.5333 6.66447C12.5333 7.25274 12.0547 7.73114 11.4667 7.73114Z",fill:"white"})})};eb(".backArrow {\n display: flex;\n align-items: center;\n cursor: pointer;\n font-size: 1rem;\n & > span {\n display: flex;\n }\n\n .icon {\n margin-right: 0.5rem;\n }\n\n .text {\n font-weight: 500;\n }\n}\n");var cb=function(e){var t=e.text,n=void 0===t?"Back":t,r=e.href,o=e.className,i=e.backIcon;return N.jsxs("div",{className:"backArrow ".concat(o),onClick:function(){window.location.href=r},children:[N.jsx("span",{className:"icon",children:i||lb.backArrow}),n&&N.jsx("span",{className:"text",children:n})]})},sb=function(){return sb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sb.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;eb(".appBadge {\n .ribbonWrapper {\n .ant-ribbon-wrapper {\n position: relative;\n .ant-ribbon {\n position: absolute;\n top: 0;\n }\n }\n }\n}\n");var ub=function(e){var t=e.content,n=e.children,r=e.className,o=e.ribbon,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["content","children","className","ribbon"]);return N.jsx("div",{className:"appBadge ".concat(r),children:N.jsx(jf,sb({count:t},i,{children:o?N.jsx("div",{className:"ribbonWrapper",children:N.jsx(jf.Ribbon,{text:o.text,color:o.color,placement:o.placement,children:n})}):n}))})};eb(".overViewCard {\n border-radius: 12px;\n padding: 0.5rem 1rem;\n background-color: #f9f9f9;\n width: max-content;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.5rem;\n .text {\n font-size: 14px;\n font-weight: 700;\n line-height: 18.2px;\n text-align: left;\n }\n}\n");var db=Jh.Text,fb=function(e){var t=e.className,n=e.text,r=e.number;return N.jsxs("div",{className:"overViewCard ".concat(t),children:[N.jsx(db,{children:n}),N.jsx("span",{children:r})]})};export{cb as AppBackArrow,ub as AppBadge,nb as AppButton,tb as AppInput,ob as AppSidebar,ab as AppTab,ib as AppTextarea,fb as OverViewCard};
26
26
  //# sourceMappingURL=index.mjs.map