react-frontend-common-components 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +53 -2
- package/dist/index.js +23 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/src/index.ts +8 -0
package/dist/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import*as e from"react";import t,{version as n,isValidElement as
|
1
|
+
import*as e from"react";import t,{version as n,isValidElement as o,useContext as r,createContext as i,useRef as a,useLayoutEffect as s,useEffect as l,forwardRef as c,useMemo as u,useState as d,Children as f,createRef as h,useCallback as p,useImperativeHandle as g,cloneElement as m}from"react";import*as v 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 S,E={exports:{}},k={};var O,_={};
|
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?E.exports=function(){if(S)return k;S=1;var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=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 s(e,t,o){var s,l={},c=null,u=null;for(s in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return k.Fragment=o,k.jsx=s,k.jsxs=s,k}():E.exports=(O||(O=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator",v=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),o=1;o<t;o++)n[o-1]=arguments[o];!function(e,t,n){var o=v.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",n=n.concat([o]));var r=n.map((function(e){return String(e)}));r.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,r)}("error",e,n)}var y,x=!1,w=!1,C=!1,S=!1,E=!1;function k(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 r:return"Fragment";case o: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 l:return k(e)+".Consumer";case s:return k(e._context)+".Provider";case c:return function(e,t,n){var o=e.displayName;if(o)return o;var r=t.displayName||t.name||"";return""!==r?n+"("+r+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case h:var n=e,p=n._payload,g=n._init;try{return O(g(p))}catch(e){return null}}return null}y=Symbol.for("react.module.reference");var $,M,N,P,I,R,T,j=Object.assign,A=0;function D(){}D.__reactDisabledLog=!0;var L,z=v.ReactCurrentDispatcher;function B(e,t,n){if(void 0===L)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return"\n"+L+e}var F,H=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||H)return"";var n,o=F.get(e);if(void 0!==o)return o;H=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=z.current,z.current=null,function(){if(0===A){$=console.log,M=console.info,N=console.warn,P=console.error,I=console.group,R=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:D,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 s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&F.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{H=!1,z.current=r,function(){if(0==--A){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:$}),info:j({},e,{value:M}),warn:j({},e,{value:N}),error:j({},e,{value:P}),group:j({},e,{value:I}),groupCollapsed:j({},e,{value:R}),groupEnd:j({},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:"",h=f?B(f):"";return"function"==typeof e&&F.set(e,h),h}function X(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,!(!(o=e.prototype)||!o.isReactComponent));var o;if("string"==typeof e)return B(e);switch(e){case u:return B("Suspense");case d:return B("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return W(e.render,!1);case f:return X(e.type,t,n);case h:var r=e,i=r._payload,a=r._init;try{return X(a(i),t,n)}catch(e){}}return""}F=new V;var q=Object.prototype.hasOwnProperty,U={},Y=v.ReactDebugCurrentFrame;function G(e){if(e){var t=e._owner,n=X(e.type,e._source,t?t.type:null);Y.setExtraStackFrame(n)}else Y.setExtraStackFrame(null)}var K=Array.isArray;function Z(e){return K(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,oe=v.ReactCurrentOwner,re={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,o,r,i,a,s){var l={$$typeof:n,type:e,key:t,ref:o,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ae(e,t,n,o,r){var i,a={},s=null,l=null;for(i in void 0!==n&&(J(n),s=""+n),function(e){if(q.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),s=""+t.key),function(e){if(q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&oe.current&&t&&oe.current.stateNode!==t){var n=O(oe.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(oe.current.type),e.ref),ne[n]=!0)}}(t,r)),t)q.call(t,i)&&!re.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===a[i]&&(a[i]=c[i])}if(s||l){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&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),l&&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,s,l,r,o,oe.current,a)}var se,le=v.ReactCurrentOwner,ce=v.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=X(e.type,e._source,t?t.type:null);ce.setExtraStackFrame(n)}else ce.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function fe(){if(le.current){var e=O(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}se=!1;var he={};function pe(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(!he[n]){he[n]=!0;var o="";e&&e._owner&&e._owner!==le.current&&(o=" 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,o),ue(null)}}}function ge(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var o=e[n];de(o)&&pe(o,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof r&&r!==e.entries)for(var i,a=r.call(e);!(i=a.next()).done;)de(i.value)&&pe(i.value,t)}}function me(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!==c&&n.$$typeof!==f)return;t=n.propTypes}if(t){var o=O(n);!function(e,t,n,o,r){var i=Function.call.bind(q);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((o||"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 l.name="Invariant Violation",l}s=e[a](t,a,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(G(r),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).",o||"React class",n,a,typeof s),G(null)),s instanceof Error&&!(s.message in U)&&(U[s.message]=!0,G(r),b("Failed %s type: %s",n,s.message),G(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||se||(se=!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 ve={};function be(e,t,o,g,m,v){var k=function(e){return"string"==typeof e||"function"==typeof e||!!(e===r||e===a||E||e===i||e===u||e===d||S||e===p||x||w||C)||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===y||void 0!==e.getModuleId)}(e);if(!k){var _,$="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&($+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),$+=fe(),null===e?_="null":Z(e)?_="array":void 0!==e&&e.$$typeof===n?(_="<"+(O(e.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):_=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",_,$)}var M=ae(e,t,o,m,v);if(null==M)return M;if(k){var N=t.children;if(void 0!==N)if(g)if(Z(N)){for(var P=0;P<N.length;P++)ge(N[P],e);Object.freeze&&Object.freeze(N)}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(N,e)}if(q.call(t,"key")){var I=O(e),R=Object.keys(t).filter((function(e){return"key"!==e})),T=R.length>0?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}";ve[I+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,I,R.length>0?"{"+R.join(": ..., ")+": ...}":"{}",I),ve[I+T]=!0)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if("children"!==o&&"key"!==o){ue(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),ue(null);break}}null!==e.ref&&(ue(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(M):me(M),M}var ye=function(e,t,n){return be(e,t,n,!1)},xe=function(e,t,n){return be(e,t,n,!0)};_.Fragment=r,_.jsx=ye,_.jsxs=xe}()),_);var $=E.exports,M={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=
|
16
|
+
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(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 o="";for(var i in e)t.call(e,i)&&e[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(M);var N=C(M.exports);function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},P.apply(null,arguments)}var I,R={exports:{}},T={};var j,A={};
|
17
17
|
/**
|
18
18
|
* @license React
|
19
19
|
* react-is.development.js
|
@@ -22,5 +22,24 @@ 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(I)return T;I=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case o:case i:case r:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case f:case a:return e;default:return p}}case n:return p}}}return e=Symbol.for("react.module.reference"),T.ContextConsumer=s,T.ContextProvider=a,T.Element=t,T.ForwardRef=c,T.Fragment=o,T.Lazy=h,T.Memo=f,T.Portal=n,T.Profiler=i,T.StrictMode=r,T.Suspense=u,T.SuspenseList=d,T.isAsyncMode=function(){return!1},T.isConcurrentMode=function(){return!1},T.isContextConsumer=function(e){return g(e)===s},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)===c},T.isFragment=function(e){return g(e)===o},T.isLazy=function(e){return g(e)===h},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)===r},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===o||t===i||t===r||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},T.typeOf=g,T}():R.exports=(j||(j=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case o:case i:case r:case u:case d:return g;default:var m=g&&g.$$typeof;switch(m){case l:case s:case c:case h:case f:case a:return m;default:return p}}case n:return p}}}e=Symbol.for("react.module.reference");var m=s,v=a,b=t,y=c,x=o,w=h,C=f,S=n,E=i,k=r,O=u,_=d,$=!1,M=!1;A.ContextConsumer=m,A.ContextProvider=v,A.Element=b,A.ForwardRef=y,A.Fragment=x,A.Lazy=w,A.Memo=C,A.Portal=S,A.Profiler=E,A.StrictMode=k,A.Suspense=O,A.SuspenseList=_,A.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},A.isConcurrentMode=function(e){return M||(M=!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)===s},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)===c},A.isFragment=function(e){return g(e)===o},A.isLazy=function(e){return g(e)===h},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)===r},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===o||t===i||t===r||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},A.typeOf=g}()),A);var D=R.exports;function L(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?o=o.concat(L(e)):D.isFragment(e)&&e.props?o=o.concat(L(e.props.children,n)):o.push(e))})),o}var z={},B=[];function F(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=B.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=B.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 X(e,t){W(F,e,t)}function q(e){return q="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},q(e)}function U(e){var t=function(e,t){if("object"!=q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=q(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==q(t)?t:t+""}function Y(e,t,n){return(t=U(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(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,o=function(e){return e&&"object"===q(e)&&Z(e.nativeElement)?e.nativeElement:Z(e)?e:null}(e);return o||(e instanceof t.Component?null===(n=b.findDOMNode)||void 0===n?void 0:n.call(b,e):null)}function J(t,n,o){var r=e.useRef({});return"value"in r.current&&!o(r.current.condition,n)||(r.current.value=t(),r.current.condition=n),r.current.value}X.preMessage=function(e){B.push(e)},X.resetWarned=V,X.noteOnce=function(e,t){W(H,e,t)};var ee=function(e,t){"function"==typeof e?e(t):"object"===q(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 o=t.filter(Boolean);return o.length<=1?o[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]}))}))},oe=function(e){var t,n,o=D.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===D.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===D.ForwardRef)};Number(n.split(".")[0]);var re=e.createContext(null);var ie=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!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),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,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,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),ae="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,se="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),le="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(se):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ce=["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,o=!1,r=0;function i(){n&&(n=!1,e()),o&&s()}function a(){le(i)}function s(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return s}(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;ce.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,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},he=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||se},pe=xe(0,0,0,0);function ge(e){return parseFloat(e)||0}function me(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 ve(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return pe;var o=he(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=ge(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=ge(o.width),l=ge(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=me(o,"left","right")+i),Math.round(l+a)!==n&&(l-=me(o,"top","bottom")+a)),!function(e){return e===he(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return xe(r.left,r.top,s,l)}var be="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof he(e).SVGGraphicsElement}:function(e){return e instanceof he(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):ve(e):pe}function xe(e,t,n,o){return{x:e,y:t,width:n,height:o}}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,o,r,i,a,s,l,c=(o=(n=t).x,r=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),fe(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);fe(this,{target:e,contentRect:c})},Se=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 he(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 he(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}(),Ee="undefined"!=typeof WeakMap?new WeakMap:new ie,ke=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(),o=new Se(t,n,this);Ee.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){ke.prototype[e]=function(){var t;return(t=Ee.get(this))[e].apply(t,arguments)}}));var Oe=void 0!==se.ResizeObserver?se.ResizeObserver:ke,_e=new Map;function $e(e){e.forEach((function(e){var t,n=e.target;null===(t=_e.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var Me=new Oe($e);function Ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,U(o.key),o)}}function Ie(e,t,n){return t&&Pe(e.prototype,t),n&&Pe(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 je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},je(e)}function Ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ae=function(){return!!e})()}function De(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,o=je(e);if(t){var r=je(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return De(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var ze=function(){Te(n,e.Component);var t=Le(n);function n(){return Ne(this,n),t.apply(this,arguments)}return Ie(n,[{key:"render",value:function(){return this.props.children}}]),n}();function Be(t,n){var o=t.children,r=t.disabled,i=e.useRef(null),a=e.useRef(null),s=e.useContext(re),l="function"==typeof o,c=l?o(i):o,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&e.isValidElement(c)&&oe(c),f=d?c.ref:null,h=ne(f,i),p=function(){var e;return Q(i.current)||(i.current&&"object"===q(i.current)?Q(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Q(a.current)};e.useImperativeHandle(n,(function(){return p()}));var g=e.useRef(t);g.current=t;var m=e.useCallback((function(e){var t=g.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,a=r.height,l=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var h={width:d,height:f,offsetWidth:l,offsetHeight:c};u.current=h;var p=l===Math.round(i)?i:l,m=c===Math.round(a)?a:c,v=K(K({},h),{},{offsetWidth:p,offsetHeight:m});null==s||s(v,e,o),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return e.useEffect((function(){var e=p();return e&&!r&&function(e,t){_e.has(e)||(_e.set(e,new Set),Me.observe(e)),_e.get(e).add(t)}(e,m),function(){return function(e,t){_e.has(e)&&(_e.get(e).delete(t),_e.get(e).size||(Me.unobserve(e),_e.delete(e)))}(e,m)}}),[i.current,r]),e.createElement(ze,{ref:a},d?e.cloneElement(c,{ref:h}):c)}var Fe=e.forwardRef(Be);"production"!==process.env.NODE_ENV&&(Fe.displayName="SingleObserver");function He(t,n){var o=t.children,r="function"==typeof o?[o]:L(o);return"production"!==process.env.NODE_ENV&&(r.length>1?F(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&F(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((function(o,r){var i=(null==o?void 0:o.key)||"".concat("rc-observer-key","-").concat(r);return e.createElement(Fe,P({},t,{key:i,ref:0===r?n:void 0}),o)}))}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 Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function qe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ue(e,t){if(e){if("string"==typeof e)return Xe(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)?Xe(e,t):void 0}}function Ye(e){return function(e){if(Array.isArray(e))return Xe(e)}(e)||qe(e)||Ue(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,o=t.onBatchResize,r=e.useRef(0),i=e.useRef([]),a=e.useContext(re),s=e.useCallback((function(e,t,n){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){s===r.current&&(null==o||o(i.current),i.current=[])})),null==a||a(e,t,n)}),[o,a]);return e.createElement(re.Provider,{value:s},n)};var Ge=function(e){return+setTimeout(e,16)},Ke=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ge=function(e){return window.requestAnimationFrame(e)},Ke=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(o){if(0===o)Je(t),e();else{var r=Ge((function(){n(o-1)}));Qe.set(t,r)}}(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 ot(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 o,r,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||Ue(e,t)||nt()}function rt(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(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)}function at(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}et.cancel=function(e){var t=Qe.get(e);return Je(e),Ke(t)},"production"!==process.env.NODE_ENV&&(et.ids=function(){return Qe});var st="data-rc-order",lt="data-rc-priority",ct="rc-util-key",ut=new Map;function dt(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):ct}function ft(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ht(e){return Array.from((ut.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,o=t.prepend,r=t.priority,i=void 0===r?0:r,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(st,a),s&&i&&l.setAttribute(lt,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=ft(t),u=c.firstChild;if(o){if(s){var d=(t.styles||ht(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(st)))return!1;var t=Number(e.getAttribute(lt)||0);return i>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ft(t);return(t.styles||ht(n)).find((function(n){return n.getAttribute(dt(t))===e}))}function mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=gt(e,t);n&&ft(t).removeChild(n)}function vt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=ft(n),r=ht(o),i=K(K({},n),{},{styles:r});!function(e,t){var n=ut.get(e);if(!n||!at(document,n)){var o=pt("",t),r=o.parentNode;ut.set(e,r),e.removeChild(o)}}(o,i);var a=gt(t,i);if(a){var s,l,c;if(null!==(s=i.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=pt(e,i);return u.setAttribute(dt(i),t),u}function bt(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=o.has(t);if(X(!a,"Warning: There may be circular references"),a)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);var s=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],r[l],s))return!1;return!0}if(t&&r&&"object"===q(t)&&"object"===q(r)){var c=Object.keys(t);return c.length===Object.keys(r).length&&c.every((function(n){return e(t[n],r[n],s)}))}return!1}(e,t)}var xt="%";function wt(e){return e.join(xt)}var Ct=function(){function e(t){Ne(this,e),Y(this,"instanceId",void 0),Y(this,"cache",new Map),this.instanceId=t}return Ie(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}(),St="data-token-hash",Et="data-css-hash",kt="data-cache-path",Ot="__cssinjs_instance__";var _t=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[Ot]=t[Ot]||e,t[Ot]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(Et,"]"))).forEach((function(t){var n,r=t.getAttribute(Et);o[r]?t[Ot]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new Ct(e)}(),defaultCache:!0});var $t=function(){function e(){Ne(this,e),Y(this,"cache",void 0),Y(this,"keys",void 0),Y(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ie(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t;r?r=null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):r=void 0})),null!==(t=r)&&void 0!==t&&t.value&&o&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||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 o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=ot(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=ot(r,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,r){if(r===t.length-1)a.set(e,{value:[n,o.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,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}},{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}();Y($t,"MAX_CACHE_SIZE",20),Y($t,"MAX_CACHE_OFFSET",5);var Mt=0,Nt=function(){function e(t){Ne(this,e),Y(this,"derivatives",void 0),Y(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Mt,0===t.length&&F(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Mt+=1}return Ie(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Pt=new $t;function It(e){var t=Array.isArray(e)?e:[e];return Pt.has(t)||Pt.set(t,new Nt(t)),Pt.get(t)}var Rt=new WeakMap,Tt={};var jt=new WeakMap;function At(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=jt.get(e)||"";return n||(Object.keys(e).forEach((function(o){var r=e[o];n+=o,r instanceof Nt?n+=r.id:r&&"object"===q(r)?n+=At(r,t):n+=r})),t&&(n=rt(n)),jt.set(e,n)),n}function Dt(e,t){return rt("".concat(t,"_").concat(At(e,!0)))}var Lt=it();function zt(e){return"number"==typeof e?"".concat(e,"px"):e}function Bt(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=K(K({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},Y(Y({},St,t),Et,n)),r=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(r,">").concat(e,"</style>")}var Ft=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()},Ht=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=ot(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},Vt=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=ot(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])r[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var c,u=Ft(s,null==n?void 0:n.prefix);o[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),r[s]="var(".concat(u,")")}})),[r,Ht(o,t,{scope:null==n?void 0:n.scope})]},Wt="test"!==process.env.NODE_ENV&&it()?e.useLayoutEffect:e.useEffect,Xt=function(t,n){var o=e.useRef(!0);Wt((function(){return t(o.current)}),n),Wt((function(){return o.current=!1,function(){o.current=!0}}),[])},qt=function(e,t){Xt((function(t){if(!t)return e()}),t)},Ut=K({},e).useInsertionEffect,Yt=Ut?function(e,t,n){return Ut((function(){return e(),t()}),n)}:function(t,n,o){e.useMemo(t,o),Xt((function(){return n(!0)}),o)},Gt=void 0!==K({},e).useInsertionEffect?function(t){var n=[],o=!1;return e.useEffect((function(){return o=!1,function(){o=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){o?"production"!==process.env.NODE_ENV&&F(!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 Kt=!1;var Zt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Kt};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var Qt=window;if("function"==typeof Qt.webpackHotUpdate){var Jt=Qt.webpackHotUpdate;Qt.webpackHotUpdate=function(){return Kt=!0,setTimeout((function(){Kt=!1}),0),Jt.apply(void 0,arguments)}}}function en(t,n,o,r,i){var a=e.useContext(_t).cache,s=wt([t].concat(Ye(n))),l=Gt([s]),c=Zt(),u=function(e){a.opUpdate(s,(function(t){var n=ot(t||[void 0,void 0],2),i=n[0],a=void 0===i?0:i,s=n[1],l=s;"production"!==process.env.NODE_ENV&&s&&c&&(null==r||r(l,c),l=null);var u=[a,l||o()];return e?e(u):u}))};e.useMemo((function(){u()}),[s]);var d=a.opGet(s);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(s));var f=d[1];return Yt((function(){null==i||i(f)}),(function(e){return u((function(t){var n=ot(t,2),o=n[0],r=n[1];return e&&0===o&&(null==i||i(f)),[o+1,r]})),function(){a.opUpdate(s,(function(t){var n=ot(t||[],2),o=n[0],i=void 0===o?0:o,c=n[1];return 0===i-1?(l((function(){!e&&a.opGet(s)||null==r||r(c,!1)})),null):[i-1,c]}))}}),[s]),f}var tn={},nn="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",on=new Map;var rn=0;function an(e,t){on.set(e,(on.get(e)||0)-1);var n=Array.from(on.keys()),o=n.filter((function(e){return(on.get(e)||0)<=0}));n.length-o.length>rn&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(St,'="').concat(e,'"]')).forEach((function(e){var n;e[Ot]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),on.delete(e)}))}var sn=function(e,t,n,o){var r=K(K({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r},ln="token";function cn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r(_t),i=o.cache.instanceId,a=o.container,s=n.salt,l=void 0===s?"":s,c=n.override,u=void 0===c?tn:c,d=n.formatToken,f=n.getComputedToken,h=n.cssVar,p=function(e,t){for(var n=Rt,o=0;o<t.length;o+=1){var r=t[o];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(Tt)||n.set(Tt,e()),n.get(Tt)}((function(){return Object.assign.apply(Object,[{}].concat(Ye(t)))}),t),g=At(p),m=At(u),v=h?At(h):"",b=en(ln,[l,e.id,g,m,v],(function(){var t,n=f?f(p,u,e):sn(p,u,e,d),o=K({},n),r="";if(h){var i=ot(Vt(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=i[0],r=i[1]}var a=Dt(n,l);n._tokenKey=a,o._tokenKey=Dt(o,l);var s=null!==(t=null==h?void 0:h.key)&&void 0!==t?t:a;n._themeKey=s,function(e){on.set(e,(on.get(e)||0)+1)}(s);var c="".concat(nn,"-").concat(rt(a));return n._hashId=c,[n,c,o,r,(null==h?void 0:h.key)||""]}),(function(e){an(e[0]._themeKey,i)}),(function(e){var t=ot(e,4),n=t[0],o=t[3];if(h&&o){var r=vt(o,rt("css-variables-".concat(n._themeKey)),{mark:Et,prepend:"queue",attachTo:a,priority:-999});r[Ot]=i,r.setAttribute(St,n._themeKey)}}));return b}var un={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},dn="comm",fn="rule",hn="decl",pn="@import",gn="@keyframes",mn="@layer",vn=Math.abs,bn=String.fromCharCode;function yn(e){return e.trim()}function xn(e,t,n){return e.replace(t,n)}function wn(e,t,n){return e.indexOf(t,n)}function Cn(e,t){return 0|e.charCodeAt(t)}function Sn(e,t,n){return e.slice(t,n)}function En(e){return e.length}function kn(e,t){return t.push(e),e}var On=1,_n=1,$n=0,Mn=0,Nn=0,Pn="";function In(e,t,n,o,r,i,a,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:On,column:_n,length:a,return:"",siblings:s}}function Rn(){return Nn=Mn>0?Cn(Pn,--Mn):0,_n--,10===Nn&&(_n=1,On--),Nn}function Tn(){return Nn=Mn<$n?Cn(Pn,Mn++):0,_n++,10===Nn&&(_n=1,On++),Nn}function jn(){return Cn(Pn,Mn)}function An(){return Mn}function Dn(e,t){return Sn(Pn,e,t)}function Ln(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 zn(e){return yn(Dn(Mn-1,Hn(91===e?e+2:40===e?e+1:e)))}function Bn(e){for(;(Nn=jn())&&Nn<33;)Tn();return Ln(e)>2||Ln(Nn)>3?"":" "}function Fn(e,t){for(;--t&&Tn()&&!(Nn<48||Nn>102||Nn>57&&Nn<65||Nn>70&&Nn<97););return Dn(e,An()+(t<6&&32==jn()&&32==Tn()))}function Hn(e){for(;Tn();)switch(Nn){case e:return Mn;case 34:case 39:34!==e&&39!==e&&Hn(Nn);break;case 40:41===e&&Hn(e);break;case 92:Tn()}return Mn}function Vn(e,t){for(;Tn()&&e+Nn!==57&&(e+Nn!==84||47!==jn()););return"/*"+Dn(t,Mn-1)+"*"+bn(47===e?e:Tn())}function Wn(e){for(;!Ln(jn());)Tn();return Dn(e,Mn)}function Xn(e){return function(e){return Pn="",e}(qn("",null,null,null,[""],e=function(e){return On=_n=1,$n=En(Pn=e),Mn=0,[]}(e),0,[0],e))}function qn(e,t,n,o,r,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,g=1,m=1,v=1,b=0,y="",x=r,w=i,C=o,S=y;m;)switch(p=b,b=Tn()){case 40:if(108!=p&&58==Cn(S,d-1)){-1!=wn(S+=xn(zn(b),"&","&\f"),"&\f",vn(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=zn(b);break;case 9:case 10:case 13:case 32:S+=Bn(p);break;case 92:S+=Fn(An()-1,7);continue;case 47:switch(jn()){case 42:case 47:kn(Yn(Vn(Tn(),An()),t,n,l),l),5!=Ln(p||1)&&5!=Ln(jn()||1)||!En(S)||" "===Sn(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:s[c++]=En(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(S=xn(S,/\f/g,"")),h>0&&(En(S)-d||0===g&&47===p)&&kn(h>32?Gn(S+";",o,n,d-1,l):Gn(xn(S," ","")+";",o,n,d-2,l),l);break;case 59:S+=";";default:if(kn(C=Un(S,t,n,c,u,r,s,y,x=[],w=[],d,i),i),123===b)if(0===u)qn(S,t,C,C,x,i,d,s,w);else switch(99===f&&110===Cn(S,3)?100:f){case 100:case 108:case 109:case 115:qn(e,C,C,o&&kn(Un(e,C,C,0,0,r,s,y,r,x=[],d,w),w),r,w,d,s,o?x:w);break;default:qn(S,C,C,C,[""],w,0,s,w)}}c=u=h=0,g=v=1,y=S="",d=a;break;case 58:d=1+En(S),h=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Rn())continue;switch(S+=bn(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(En(S)-1)*v,v=1;break;case 64:45===jn()&&(S+=zn(Tn())),f=jn(),u=d=En(y=S+=Wn(An())),b++;break;case 45:45===p&&2==En(S)&&(g=0)}}return i}function Un(e,t,n,o,r,i,a,s,l,c,u,d){for(var f=r-1,h=0===r?i:[""],p=function(e){return e.length}(h),g=0,m=0,v=0;g<o;++g)for(var b=0,y=Sn(e,f+1,f=vn(m=a[g])),x=e;b<p;++b)(x=yn(m>0?h[b]+" "+y:xn(y,/&\f/g,h[b])))&&(l[v++]=x);return In(e,t,n,0===r?fn:s,l,c,u,d)}function Yn(e,t,n,o){return In(e,t,n,dn,bn(Nn),Sn(e,2,-2),0,o)}function Gn(e,t,n,o,r){return In(e,t,n,hn,Sn(e,0,o),Sn(e,o+1,-1),o,r)}function Kn(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function Zn(e,t,n,o){switch(e.type){case mn:if(e.children.length)break;case pn:case hn:return e.return=e.return||e.value;case dn:return"";case gn:return e.return=e.value+"{"+Kn(e.children,o)+"}";case fn:if(!En(e.value=e.props.join(",")))return""}return En(n=Kn(e.children,o))?e.return=e.value+"{"+n+"}":""}function Qn(e,t){var n=t.path,o=t.parentSelectors;X(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var Jn,eo=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)}},to=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)},no="data-ant-cssinjs-cache-path",oo="_FILE_STYLE__",ro=!0;function io(e){return function(){if(!Jn&&(Jn={},it())){var e=document.createElement("div");e.className=no,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=ot(e.split(":"),2),n=t[0],o=t[1];Jn[n]=o}));var n,o=document.querySelector("style[".concat(no,"]"));o&&(ro=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!Jn[e]}var ao="_skip_check_",so="_multi_value_";function lo(e){return Kn(Xn(e),Zn).replace(/\{%%%\:[^;];}/g,";")}function co(e,t,n){if(!t)return e;var o=".".concat(t),r="low"===n?":where(".concat(o,")"):o;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(r).concat(o.slice(i.length))].concat(Ye(n.slice(1))).join(" ")})).join(",")}var uo=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=o.root,i=o.injectHash,a=o.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,f=void 0===d?[]:d,h=n.linters,p=void 0===h?[]:h,g="",m={};function v(t){var o=t.getName(s);if(!m[o]){var r=ot(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];m[o]="@keyframes ".concat(t.getName(s)).concat(r)}}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 o="string"!=typeof t||r?t:{};if("string"==typeof o)g+="".concat(o,"\n");else if(o._keyframe)v(o);else{var l=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(l).forEach((function(t){var o=l[t];if("object"!==q(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===q(e)&&e&&(ao in e||so in e)}(o)){var d;function S(e,t){"production"===process.env.NODE_ENV||"object"===q(o)&&null!=o&&o[ao]||[eo,to].concat(Ye(p)).forEach((function(n){return n(e,t,{path:c,hashId:s,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;un[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(s)),g+="".concat(n,":").concat(r,";")}var f=null!==(d=null==o?void 0:o.value)&&void 0!==d?d:o;"object"===q(o)&&null!=o&&o[so]&&Array.isArray(f)?f.forEach((function(e){S(t,e)})):S(t,f)}else{var h=!1,b=t.trim(),y=!1;(r||i)&&s?b.startsWith("@")?h=!0:b=co("&"===b?"":t,s,u):!r||s||"&"!==b&&""!==b||(b="",y=!0);var x=ot(e(o,n,{root:y,injectHash:h,parentSelectors:[].concat(Ye(a),[b])}),2),w=x[0],C=x[1];m=K(K({},m),C),g+="".concat(b).concat(w)}}))}})),r?l&&(g="@layer ".concat(l.name," {").concat(g,"}"),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,m]};function fo(e,t){return rt("".concat(e.join("%")).concat(t))}function ho(){return null}var po="style";function go(t,n){var o=t.token,r=t.path,i=t.hashId,a=t.layer,s=t.nonce,l=t.clientOnly,c=t.order,u=void 0===c?0:c,d=e.useContext(_t),f=d.autoClear,h=d.mock,p=d.defaultCache,g=d.hashPriority,m=d.container,v=d.ssrInline,b=d.transformers,y=d.linters,x=d.cache,w=d.layer,C=o._tokenKey,S=[C];w&&S.push("layer"),S.push.apply(S,Ye(r));var E=Lt;"production"!==process.env.NODE_ENV&&void 0!==h&&(E="client"===h);var k=en(po,S,(function(){var e=S.join("|");if(io(e)){var t=function(e){var t=Jn[e],n=null;if(t&&it())if(ro)n=oo;else{var o=document.querySelector("style[".concat(Et,'="').concat(Jn[e],'"]'));o?n=o.innerHTML:delete Jn[e]}return[n,t]}(e),o=ot(t,2),s=o[0],c=o[1];if(s)return[s,C,c,{},l,u]}var d=n(),f=ot(uo(d,{hashId:i,hashPriority:g,layer:w?a:void 0,path:r.join("-"),transformers:b,linters:y}),2),h=f[0],p=f[1],m=lo(h),v=fo(S,m);return[m,C,v,p,l,u]}),(function(e,t){var n=ot(e,3)[2];(t||f)&&Lt&&mt(n,{mark:Et})}),(function(e){var t=ot(e,4),n=t[0];t[1];var o=t[2],r=t[3];if(E&&n!==oo){var i={mark:Et,prepend:!w&&"queue",attachTo:m,priority:u},a="function"==typeof s?s():s;a&&(i.csp={nonce:a});var l=[],c=[];Object.keys(r).forEach((function(e){e.startsWith("@layer")?l.push(e):c.push(e)})),l.forEach((function(e){vt(lo(r[e]),"_layer-".concat(e),K(K({},i),{},{prepend:!0}))}));var d=vt(n,o,i);d[Ot]=x.instanceId,d.setAttribute(St,C),"production"!==process.env.NODE_ENV&&d.setAttribute(kt,S.join("|")),c.forEach((function(e){vt(lo(r[e]),"_effect-".concat(e),i)}))}})),O=ot(k,3),_=O[0],$=O[1],M=O[2];return function(t){var n;return n=v&&!E&&p?e.createElement("style",P({},Y(Y({},St,$),Et,M),{dangerouslySetInnerHTML:{__html:_}})):e.createElement(ho,null),e.createElement(e.Fragment,null,n,t)}}var mo="cssVar";Y(Y(Y({},po,(function(e,t,n){var o=ot(e,6),r=o[0],i=o[1],a=o[2],s=o[3],l=o[4],c=o[5],u=(n||{}).plain;if(l)return null;var d=r,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Bt(r,i,a,f,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Bt(lo(s[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),ln,(function(e,t,n){var o=ot(e,5),r=o[2],i=o[3],a=o[4],s=(n||{}).plain;if(!i)return null;var l=r._tokenKey;return[-999,l,Bt(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),mo,(function(e,t,n){var o=ot(e,4),r=o[1],i=o[2],a=o[3],s=(n||{}).plain;if(!r)return null;return[-999,i,Bt(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var vo=function(){function e(t,n){Ne(this,e),Y(this,"name",void 0),Y(this,"style",void 0),Y(this,"_keyframe",!0),this.name=t,this.style=n}return Ie(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 bo(e){return e.notSplit=!0,e}bo(["borderTop","borderBottom"]),bo(["borderTop"]),bo(["borderBottom"]),bo(["borderLeft","borderRight"]),bo(["borderLeft"]),bo(["borderRight"]);var yo=i({});function xo(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}function wo(e,t,n,o){if(!t.length)return n;var r,i,a=tt(r=t)||qe(r)||Ue(r)||nt(),s=a[0],l=a.slice(1);return i=e||"number"!=typeof s?Array.isArray(e)?Ye(e):K({},e):[],o&&void 0===n&&1===l.length?delete i[s][l[0]]:i[s]=wo(i[s],l,n,o),i}function Co(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!xo(e,t.slice(0,-1))?e:wo(e,t,n,o)}function So(e){return Array.isArray(e)?[]:{}}var Eo="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function ko(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=So(t[0]);return t.forEach((function(e){!function t(n,r){var i,a=new Set(r),s=xo(e,n),l=Array.isArray(s);if(l||"object"===q(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=xo(o,n);l?o=Co(o,n,[]):c&&"object"===q(c)||(o=Co(o,n,So(s))),Eo(s).forEach((function(e){t([].concat(Ye(n),[e]),a)}))}}else o=Co(o,n,s)}([])})),o}function Oo(){}let _o=null;let $o=Oo;"production"!==process.env.NODE_ENV&&($o=(e,t,n)=>{X(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(_o=null,V())});const Mo=e.createContext({}),No="production"!==process.env.NODE_ENV?t=>{const{strict:n}=e.useContext(Mo),o=(e,o,r)=>{if(!e)if(!1===n&&"deprecated"===o){const e=_o;_o||(_o={}),_o[t]=_o[t]||[],_o[t].includes(r||"")||_o[t].push(r||""),e||console.warn("[antd] There exists deprecated usage in your code:",_o)}else"production"!==process.env.NODE_ENV&&$o(e,t,r)};return o.deprecated=(e,t,n,r)=>{o(e,"deprecated",`\`${t}\` is deprecated. Please use \`${n}\` instead.${r?` ${r}`:""}`)},o}:()=>{const e=()=>{};return e.deprecated=Oo,e};var Po=$o,Io=i(void 0),Ro=K(K({},{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 To={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},jo={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"]},Ro),timePickerLocale:Object.assign({},To)},Ao="${label} is not a valid ${type}",Do={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:jo,TimePicker:To,Calendar:jo,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:Ao,method:Ao,array:Ao,object:Ao,number:Ao,date:Ao,boolean:Ao,integer:Ao,float:Ao,regexp:Ao,email:Ao,url:Ao,hex:Ao},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({},Do.Modal);let Lo=[];const zo=()=>Lo.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Do.Modal);const Bo=i(void 0),Fo="internalMark",Ho=t=>{const{locale:n={},children:o,_ANT_MARK__:r}=t;if("production"!==process.env.NODE_ENV){const e=No("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===Fo,"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 Lo.push(t),zo(),()=>{Lo=Lo.filter((e=>e!==t)),zo()}}Object.assign({},Do.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(Bo.Provider,{value:i},o)};function Vo(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 Wo(e){return Math.min(1,Math.max(0,e))}function Xo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function qo(e){return e<=1?"".concat(100*Number(e),"%"):e}function Uo(e){return 1===e.length?"0"+e:String(e)}function Yo(e,t,n){e=Vo(e,255),t=Vo(t,255),n=Vo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,s=(o+r)/2;if(o===r)a=0,i=0;else{var l=o-r;switch(a=s>.5?l/(2-o-r):l/(o+r),o){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:a,l:s}}function Go(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 Ko(e,t,n){e=Vo(e,255),t=Vo(t,255),n=Vo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,s=o-r,l=0===o?0:s/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}function Zo(e,t,n,o){var r=[Uo(Math.round(e).toString(16)),Uo(Math.round(t).toString(16)),Uo(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Qo(e){return Jo(e)/255}function Jo(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(Ho.displayName="LocaleProvider");var er={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 tr(e){var t,n,o,r={r:0,g:0,b:0},i=1,a=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(er[e])e=er[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ir.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ir.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ir.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=ir.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ir.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=ir.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ir.hex8.exec(e),n)return{r:Jo(n[1]),g:Jo(n[2]),b:Jo(n[3]),a:Qo(n[4]),format:t?"name":"hex8"};if(n=ir.hex6.exec(e),n)return{r:Jo(n[1]),g:Jo(n[2]),b:Jo(n[3]),format:t?"name":"hex"};if(n=ir.hex4.exec(e),n)return{r:Jo(n[1]+n[1]),g:Jo(n[2]+n[2]),b:Jo(n[3]+n[3]),a:Qo(n[4]+n[4]),format:t?"name":"hex8"};if(n=ir.hex3.exec(e),n)return{r:Jo(n[1]+n[1]),g:Jo(n[2]+n[2]),b:Jo(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(ar(e.r)&&ar(e.g)&&ar(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Vo(t,255),g:255*Vo(n,255),b:255*Vo(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):ar(e.h)&&ar(e.s)&&ar(e.v)?(a=qo(e.s),s=qo(e.v),r=function(e,t,n){e=6*Vo(e,360),t=Vo(t,100),n=Vo(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=o%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,a,s),c=!0,u="hsv"):ar(e.h)&&ar(e.s)&&ar(e.l)&&(a=qo(e.s),l=qo(e.l),r=function(e,t,n){var o,r,i;if(e=Vo(e,360),t=Vo(t,100),n=Vo(n,100),0===t)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;o=Go(s,a,e+1/3),r=Go(s,a,e),i=Go(s,a,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Xo(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var nr="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),or="[\\s|\\(]+(".concat(nr,")[,|\\s]+(").concat(nr,")[,|\\s]+(").concat(nr,")\\s*\\)?"),rr="[\\s|\\(]+(".concat(nr,")[,|\\s]+(").concat(nr,")[,|\\s]+(").concat(nr,")[,|\\s]+(").concat(nr,")\\s*\\)?"),ir={CSS_UNIT:new RegExp(nr),rgb:new RegExp("rgb"+or),rgba:new RegExp("rgba"+rr),hsl:new RegExp("hsl"+or),hsla:new RegExp("hsla"+rr),hsv:new RegExp("hsv"+or),hsva:new RegExp("hsva"+rr),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 ar(e){return Boolean(ir.CSS_UNIT.exec(String(e)))}var sr=function(){function e(t,n){var o;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 r=tr(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.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=r.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,o=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*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Xo(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=Ko(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=Ko(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Yo(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=Yo(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Zo(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,o,r){var i,a=[Uo(Math.round(e).toString(16)),Uo(Math.round(t).toString(16)),Uo(Math.round(n).toString(16)),Uo((i=o,Math.round(255*parseFloat(i)).toString(16)))];return r&&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*Vo(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*Vo(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="#"+Zo(this.r,this.g,this.b,!1),t=0,n=Object.entries(er);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,o=this.a<1&&this.a>=0;return t||!o||!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=Wo(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=Wo(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=Wo(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=Wo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));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(),o=n.h,r=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:o,s:r,v:i})),i=(i+s)%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(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},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(),o=n.h,r=[this],i=360/t,a=1;a<t;a++)r.push(new e({h:(o+a*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),lr=2,cr=.16,ur=.05,dr=.05,fr=.15,hr=5,pr=4,gr=[{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 mr(e){var t=Ko(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function vr(e){var t=e.r,n=e.g,o=e.b;return"#".concat(Zo(t,n,o,!1))}function br(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-lr*t:Math.round(e.h)+lr*t:n?Math.round(e.h)+lr*t:Math.round(e.h)-lr*t)<0?o+=360:o>=360&&(o-=360),o}function yr(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-cr*t:t===pr?e.s+cr:e.s+ur*t)>1&&(o=1),n&&t===hr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function xr(e,t,n){var o;return(o=n?e.v+dr*t:e.v-fr*t)>1&&(o=1),Number(o.toFixed(2))}function wr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=tr(e),r=hr;r>0;r-=1){var i=mr(o),a=vr(tr({h:br(i,r,!0),s:yr(i,r,!0),v:xr(i,r,!0)}));n.push(a)}n.push(vr(o));for(var s=1;s<=pr;s+=1){var l=mr(o),c=vr(tr({h:br(l,s),s:yr(l,s),v:xr(l,s)}));n.push(c)}return"dark"===t.theme?gr.map((function(e){var o,r,i,a=e.index,s=e.opacity;return vr((o=tr(t.backgroundColor||"#141414"),r=tr(n[a]),i=100*s/100,{r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b}))})):n}var Cr={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"},Sr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Sr.primary=Sr[5];var Er=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Er.primary=Er[5];var kr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];kr.primary=kr[5];var Or=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Or.primary=Or[5];var _r=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];_r.primary=_r[5];var $r=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];$r.primary=$r[5];var Mr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Mr.primary=Mr[5];var Nr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Nr.primary=Nr[5];var Pr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Pr.primary=Pr[5];var Ir=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ir.primary=Ir[5];var Rr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Rr.primary=Rr[5];var Tr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Tr.primary=Tr[5];var jr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];jr.primary=jr[5];var Ar={red:Sr,volcano:Er,orange:kr,gold:Or,yellow:_r,lime:$r,green:Mr,cyan:Nr,blue:Pr,geekblue:Ir,purple:Rr,magenta:Tr,grey:jr};const Dr={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"},Lr=Object.assign(Object.assign({},Dr),{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 zr=e=>{let t=e,n=e,o=e,r=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?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};function Br(e){return(e+8)/e}const Fr=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Br(e)})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),r=n[1],i=n[0],a=n[2],s=o[1],l=o[0],c=o[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*r),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};const Hr=(e,t)=>new sr(e).setAlpha(t).toRgbString(),Vr=(e,t)=>new sr(e).darken(t).toHexString(),Wr=e=>{const t=wr(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]}},Xr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Hr(o,.88),colorTextSecondary:Hr(o,.65),colorTextTertiary:Hr(o,.45),colorTextQuaternary:Hr(o,.25),colorFill:Hr(o,.15),colorFillSecondary:Hr(o,.06),colorFillTertiary:Hr(o,.04),colorFillQuaternary:Hr(o,.02),colorBgLayout:Vr(n,4),colorBgContainer:Vr(n,0),colorBgElevated:Vr(n,0),colorBgSpotlight:Hr(o,.85),colorBgBlur:"transparent",colorBorder:Vr(n,15),colorBorderSecondary:Vr(n,6)}};const qr=It((function(e){Cr.pink=Cr.magenta,Ar.pink=Ar.magenta;const t=Object.keys(Dr).map((t=>{const n=e[t]===Cr[t]?Ar[t]:wr(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],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:o}=t;const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(r),h=n(i),p=n(a),g=n(s),m=o(c,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},m),{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:p[1],colorErrorBgHover:p[2],colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[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:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new sr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Wr,generateNeutralColorPalettes:Xr})),Fr(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:o,lineWidth:r}=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:r+1},zr(o))}(e))})),Ur={token:Lr,override:{override:Lr},hashed:!0},Yr=t.createContext(Ur),Gr="ant",Kr="anticon",Zr=["outlined","borderless","filled"],Qr=e.createContext({getPrefixCls:(e,t)=>t||(e?`${Gr}-${e}`:Gr),iconPrefixCls:Kr}),Jr=`-ant-${Date.now()}-${Math.random()}`;function ei(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new sr(e),i=wr(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new sr(t.primaryColor),i=wr(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new sr(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(a,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(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,`${Jr}-dynamic-theme`):"production"!==process.env.NODE_ENV&&Po(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ti=e.createContext(!1),ni=t=>{let{children:n,disabled:o}=t;const r=e.useContext(ti);return e.createElement(ti.Provider,{value:null!=o?o:r},n)},oi=e.createContext(void 0),ri=t=>{let{children:n,size:o}=t;const r=e.useContext(oi);return e.createElement(oi.Provider,{value:o||r},n)};var ii=Ie((function e(){Ne(this,e)})),ai="CALC_UNIT",si=new RegExp(ai,"g");function li(e){return"number"==typeof e?"".concat(e).concat(ai):e}var ci=function(){Te(t,ii);var e=Le(t);function t(n,o){var r;Ne(this,t),Y(De(r=e.call(this)),"result",""),Y(De(r),"unitlessCssVar",void 0),Y(De(r),"lowPriority",void 0);var i=q(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===i?r.result=li(n):"string"===i&&(r.result=n),r}return Ie(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,o=!0;return"boolean"==typeof n?o=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(o=!1),this.result=this.result.replace(si,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),ui=function(){Te(t,ii);var e=Le(t);function t(n){var o;return Ne(this,t),Y(De(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}return Ie(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}(),di=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 fi(t){var n=e.useRef();n.current=t;var o=e.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return o}function hi(t){var n=e.useRef(!1),o=ot(e.useState(t),2),r=o[0],i=o[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[r,function(e,t){t&&n.current||i(e)}]}function pi(e){return void 0!==e}function gi(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,s=ot(hi((function(){return pi(r)?r:pi(o)?"function"==typeof o?o():o:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==r?r:l,d=a?a(u):u,f=fi(i),h=ot(hi([u]),2),p=h[0],g=h[1];return qt((function(){var e=p[0];l!==e&&f(l,e)}),[p]),qt((function(){pi(r)||c(r)}),[r]),[d,fi((function(e,t){c(e,t),g([u],t)}))]}function mi(e,t,n,o){var r=K({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach((function(t){var n,o=ot(t,2),i=o[0],a=o[1];("production"!==process.env.NODE_ENV&&X(!(null!=r&&r[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=r&&r[i]||null!=r&&r[a])&&(null!==(n=r[a])&&void 0!==n||(r[a]=null==r?void 0:r[i]))}));var i=K(K({},n),r);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,bi=!0;function yi(){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));bi=!1;var o={};return t.forEach((function(e){"object"===q(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),bi=!0,o}var xi={};function wi(){}function Ci(e,t,n){var o;return"function"==typeof n?n(yi(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var Si=function(){function e(){Ne(this,e),Y(this,"map",new Map),Y(this,"objectIDMap",new WeakMap),Y(this,"nextID",0),Y(this,"lastAccessBeat",new Map),Y(this,"accessBeat",0)}return Ie(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"===q(e)?"obj_".concat(t.getObjectID(e)):"".concat(q(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,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))})),this.accessBeat=0}}}]),e}(),Ei=new Si;var ki=function(){return{}};const Oi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var _i="5.20.5";function $i(e){return e>=0&&e<=255}function Mi(e,t){const{r:n,g:o,b:r,a:i}=new sr(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new sr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((o-s*(1-e))/e),c=Math.round((r-l*(1-e))/e);if($i(t)&&$i(i)&&$i(c))return new sr({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new sr({r:n,g:o,b:r,a:1}).toRgbString()}var Ni=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Pi(e){const{override:t}=e,n=Ni(e,["override"]),o=Object.assign({},t);Object.keys(Lr).forEach((e=>{delete o[e]}));const r=Object.assign(Object.assign({},n),o),i=1200,a=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:Mi(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:Mi(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Mi(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:4*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:Mi(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.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 sr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new sr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new sr("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)"}),o)}var Ii=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ri={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},Ti={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},ji={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 o=n.getDerivativeToken(e),{override:r}=t,i=Ii(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=Pi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=Ii(n,["theme"]);let i=r;o&&(i=Ai(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function Di(){const{token:e,hashed:n,theme:o,override:r,cssVar:i}=t.useContext(Yr),a=`${_i}-${n||""}`,s=o||qr,[l,c,u]=cn(s,[Lr,e],{salt:a,override:r,getComputedToken:Ai,formatToken:Pi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Ri,ignore:Ti,preserve:ji}});return[s,u,n?c:"",l,i]}const Li=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),zi={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}},Fi=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"}}}),Hi=e=>({outline:`${zt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Vi=e=>({"&:focus-visible":Object.assign({},Hi(e))}),Wi=(e,t)=>{const[n,o]=Di();return go({theme:n,token:o,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:Xi,genComponentStyleHook:qi,genSubStyleComponent:Ui}=function(e){var n=e.useCSP,o=void 0===n?ki:n,i=e.useToken,a=e.usePrefix,s=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function u(e,n,r){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(e)?e:[e,e],d=ot(u,1)[0],f=u.join("-");return function(e){var u,h,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=i(),m=g.theme,v=g.realToken,b=g.hashId,y=g.token,x=g.cssVar,w=a(),C=w.rootPrefixCls,S=w.iconPrefixCls,E=o(),k=x?"css":"js",O=(u=function(){var e=new Set;return x&&Object.keys(c.unitless||{}).forEach((function(t){e.add(Ft(t,x.prefix)),e.add(Ft(t,di(d,x.prefix)))})),function(e,t){var n="css"===e?ci:ui;return function(e){return new n(e,t)}}(k,e)},h=[k,d,null==x?void 0:x.prefix],t.useMemo((function(){var e=Ei.get(h);if(e)return e;var t=u();return Ei.set(h,t),t}),h)),_=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 zt(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 zt(e)})).join(","),")")}}}(k),$=_.max,M=_.min,N={theme:m,token:y,hashId:b,nonce:function(){return E.nonce},clientOnly:c.clientOnly,layer:{name:"antd"},order:c.order||-999};go(K(K({},N),{},{clientOnly:!1,path:["Shared",C]}),(function(){return"function"==typeof s?s(y):[]}));var P=go(K(K({},N),{},{path:[f,e,S]}),(function(){if(!1===c.injectStyle)return[];var t=function(e){var t,n=e,o=wi;return vi&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return bi&&t.add(n),e[n]}}),o=function(e,n){var o;xi[e]={global:Array.from(t),component:K(K({},null===(o=xi[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(y),o=t.token,i=t.flush,a=Ci(d,v,r),s=".".concat(e),u=mi(d,v,a,{deprecatedTokens:c.deprecatedTokens});x&&"object"===q(a)&&Object.keys(a).forEach((function(e){a[e]="var(".concat(Ft(e,di(d,x.prefix)),")")}));var f=yi(o,{componentCls:s,prefixCls:e,iconCls:".".concat(S),antCls:".".concat(C),calc:O,max:$,min:M},x?a:u),h=n(f,{hashId:b,prefixCls:e,rootPrefixCls:C,iconPrefixCls:S});i(d,u);var g="function"==typeof l?l(f,e,p,c.resetFont):null;return[!1===c.resetStyle?null:g,h]}));return[P,b]}}return{genStyleHooks:function(e,n,o,a){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==a?void 0:a.unitless)||{},f=K(K({},"function"==typeof c?c(e):{}),{},Y({},l("zIndexPopup"),!0));Object.keys(d).forEach((function(e){f[l(e)]=d[e]}));var h=K(K({},a),{},{unitless:f,prefixToken:l}),p=u(e,n,o,h),g=function(e,n,o){var a=o.unitless,s=o.injectStyle,l=void 0===s||s,c=o.prefixToken,u=o.ignore,d=function(t){var s=t.rootCls,l=t.cssVar,d=void 0===l?{}:l,f=i().realToken;return function(e,t){var n=e.key,o=e.prefix,i=e.unitless,a=e.ignore,s=e.token,l=e.scope,c=void 0===l?"":l,u=r(_t),d=u.cache.instanceId,f=u.container,h=s._tokenKey,p=[].concat(Ye(e.path),[n,c,h]),g=en(mo,p,(function(){var e=t(),r=ot(Vt(e,n,{prefix:o,unitless:i,ignore:a,scope:c}),2),s=r[0],l=r[1];return[s,l,fo(p,l),n]}),(function(e){var t=ot(e,3)[2];Lt&&mt(t,{mark:Et})}),(function(e){var t=ot(e,3),o=t[1],r=t[2];if(o){var i=vt(o,r,{mark:Et,prepend:"queue",attachTo:f,priority:-999});i[Ot]=d,i.setAttribute(St,n)}}))}({path:[e],prefix:d.prefix,key:d.key,unitless:a,ignore:u,token:f,scope:s},(function(){var t=Ci(e,f,n),r=mi(e,f,t,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(t).forEach((function(e){r[c(e)]=r[e],delete r[e]})),r})),null},f=function(n){var o=i().cssVar;return[function(r){return l&&o?t.createElement(t.Fragment,null,t.createElement(d,{rootCls:n,cssVar:o,component:e}),r):r},null==o?void 0:o.key]};return f}(s,o,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=ot(p(e,t),2)[1],o=ot(g(t),2);return[o[0],n,o[1]]}},genSubStyleComponent:function(e,t,n){var o=u(e,t,n,K({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),r=function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(r.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),r},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=r(Qr);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r]=Di();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=r(Qr);return Wi(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":Fi(e)}],getCommonStyle:(e,t,n,o)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:r,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==o&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[r]:a})}},getCompUnitless:()=>Ri});function Yi(e,t){return Oi.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],s=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const Gi=Object.assign({},e),{useId:Ki}=Gi,Zi=void 0===Ki?()=>"":Ki;var Qi=["children"],Ji=e.createContext({});function ea(t){var n=t.children,o=bt(t,Qi);return e.createElement(Ji.Provider,{value:o},n)}var ta=function(){Te(n,e.Component);var t=Le(n);function n(){return Ne(this,n),t.apply(this,arguments)}return Ie(n,[{key:"render",value:function(){return this.props.children}}]),n}();var na="none",oa="appear",ra="enter",ia="leave",aa="none",sa="prepare",la="start",ca="active",ua="end",da="prepared";function fa(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 ha=function(e,t){var n={animationend:fa("Animation","AnimationEnd"),transitionend:fa("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 ga=document.createElement("div");pa=ga.style}var ma={};function va(e){if(ma[e])return ma[e];var t=ha[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in pa)return ma[e]=t[i],ma[e]}return""}var ba=va("animationend"),ya=va("transitionend"),xa=!(!ba||!ya),wa=ba||"animationend",Ca=ya||"transitionend";function Sa(e,t){if(!e)return null;if("object"===q(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 o(e){e&&(e.removeEventListener(Ca,t),e.removeEventListener(wa,t))}return e.useEffect((function(){return function(){o(n.current)}}),[]),[function(e){n.current&&n.current!==e&&o(n.current),e&&e!==n.current&&(e.addEventListener(Ca,t),e.addEventListener(wa,t),n.current=e)},o]},ka=it()?s:l,Oa=[sa,la,ca,ua],_a=[sa,da],$a=!1,Ma=!0;function Na(e){return e===ca||e===ua}var Pa=function(t,n,o){var r=ot(hi(aa),2),i=r[0],a=r[1],s=function(){var t=e.useRef(null);function n(){et.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=et((function(){r<=1?o({isCanceled:function(){return i!==t.current}}):e(o,r-1)}));t.current=i},n]}(),l=ot(s,2),c=l[0],u=l[1];var d=n?_a:Oa;return ka((function(){if(i!==aa&&i!==ua){var e=d.indexOf(i),t=d[e+1],n=o(i);n===$a?a(t,!0):t&&c((function(e){function o(){e.isCanceled()||a(t,!0)}!0===n?o():Promise.resolve(n).then(o)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(sa,!0)},i]};function Ia(t,n,o,r){var i,s,c,u=r.motionEnter,d=void 0===u||u,f=r.motionAppear,h=void 0===f||f,p=r.motionLeave,g=void 0===p||p,m=r.motionDeadline,v=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,x=r.onLeavePrepare,w=r.onAppearStart,C=r.onEnterStart,S=r.onLeaveStart,E=r.onAppearActive,k=r.onEnterActive,O=r.onLeaveActive,_=r.onAppearEnd,$=r.onEnterEnd,M=r.onLeaveEnd,N=r.onVisibleChanged,P=ot(hi(),2),I=P[0],R=P[1],T=(i=na,s=ot(e.useReducer((function(e){return e+1}),0),2)[1],c=e.useRef(i),[fi((function(){return c.current})),fi((function(e){c.current="function"==typeof e?e(c.current):e,s()}))]),j=ot(T,2),A=j[0],D=j[1],L=ot(hi(null),2),z=L[0],B=L[1],F=A(),H=a(!1),V=a(null);function W(){return o()}var X=a(!1);function q(){D(na),B(null,!0)}var U=fi((function(e){var t=A();if(t!==na){var n=W();if(!e||e.deadline||e.target===n){var o,r=X.current;t===oa&&r?o=null==_?void 0:_(n,e):t===ra&&r?o=null==$?void 0:$(n,e):t===ia&&r&&(o=null==M?void 0:M(n,e)),r&&!1!==o&&q()}}})),G=ot(Ea(U),1)[0],Z=function(e){switch(e){case oa:return Y(Y(Y({},sa,b),la,w),ca,E);case ra:return Y(Y(Y({},sa,y),la,C),ca,k);case ia:return Y(Y(Y({},sa,x),la,S),ca,O);default:return{}}},Q=e.useMemo((function(){return Z(F)}),[F]),J=ot(Pa(F,!t,(function(e){if(e===sa){var t=Q[sa];return t?t(W()):$a}var n;te in Q&&B((null===(n=Q[te])||void 0===n?void 0:n.call(Q,W(),null))||null);return te===ca&&F!==na&&(G(W()),m>0&&(clearTimeout(V.current),V.current=setTimeout((function(){U({deadline:!0})}),m))),te===da&&q(),Ma})),2),ee=J[0],te=J[1],ne=Na(te);X.current=ne,ka((function(){R(n);var e,o=H.current;H.current=!0,!o&&n&&h&&(e=oa),o&&n&&d&&(e=ra),(o&&!n&&g||!o&&v&&!n&&g)&&(e=ia);var r=Z(e);e&&(t||r[sa])?(D(e),ee()):D(na)}),[n]),l((function(){(F===oa&&!h||F===ra&&!d||F===ia&&!g)&&D(na)}),[h,d,g]),l((function(){return function(){H.current=!1,clearTimeout(V.current)}}),[]);var oe=e.useRef(!1);l((function(){I&&(oe.current=!0),void 0!==I&&F===na&&((oe.current||I)&&(null==N||N(I)),oe.current=!0)}),[I,F]);var re=z;return Q[sa]&&te===la&&(re=K({transition:"none"},re)),[F,te,re,null!=I?I:n]}var Ra=function(t){var n=t;"object"===q(t)&&(n=t.transitionSupport);var o=e.forwardRef((function(t,o){var r=t.visible,i=void 0===r||r,s=t.removeOnLeave,l=void 0===s||s,c=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,h=t.eventProps,p=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(Ji).motion),g=a(),m=a();var v=ot(Ia(p,i,(function(){try{return g.current instanceof HTMLElement?g.current:Q(m.current)}catch(e){return null}}),t),4),b=v[0],y=v[1],x=v[2],w=v[3],C=e.useRef(w);w&&(C.current=!0);var S,E=e.useCallback((function(e){g.current=e,ee(o,e)}),[o]),k=K(K({},h),{},{visible:i});if(u)if(b===na)S=w?u(K({},k),E):!l&&C.current&&f?u(K(K({},k),{},{className:f}),E):c||!l&&!f?u(K(K({},k),{},{style:{display:"none"}}),E):null;else{var O;y===sa?O="prepare":Na(y)?O="active":y===la&&(O="start");var _=Sa(d,"".concat(b,"-").concat(O));S=u(K(K({},k),{},{className:N(Sa(d,b),Y(Y({},_,_&&O),d,"string"==typeof d)),style:x}),E)}else S=null;e.isValidElement(S)&&oe(S)&&(S.ref||(S=e.cloneElement(S,{ref:E})));return e.createElement(ta,{ref:m},S)}));return o.displayName="CSSMotion",o}(xa),Ta="add",ja="keep",Aa="remove",Da="removed";function La(e){var t;return K(K({},t=e&&"object"===q(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function za(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(La)}var Ba=["component","children","onVisibleChanged","onAllRemoved"],Fa=["status"],Ha=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Va(t){const{children:n}=t,[,o]=Di(),{motion:r}=o,i=e.useRef(!1);return i.current=i.current||!1===r,i.current?e.createElement(ea,{motion:r},n):n}!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ra,o=function(){Te(o,e.Component);var t=Le(o);function o(){var e;Ne(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Y(De(e=t.call.apply(t,[this].concat(r))),"state",{keyEntities:[]}),Y(De(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:K(K({},e),{},{status:Da})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Da})).length})),e}return Ie(o,[{key:"render",value:function(){var t=this,o=this.state.keyEntities,r=this.props,i=r.component,a=r.children,s=r.onVisibleChanged,l=r.onAllRemoved,c=bt(r,Ba),u=i||e.Fragment,d={};return Ha.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,e.createElement(u,c,o.map((function(o,r){var i=o.status,c=bt(o,Fa),u=i===Ta||i===ja;return e.createElement(n,P({},d,{key:c.key,visible:u,eventProps:c,onVisibleChanged:function(e){(null==s||s(e,{key:c.key}),e)||0===t.removeKey(c.key)&&l&&l()}}),(function(e,t){return a(K(K({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=za(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=[],o=0,r=t.length,i=za(e),a=za(t);i.forEach((function(e){for(var t=!1,i=o;i<r;i+=1){var s=a[i];if(s.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map((function(e){return K(K({},e),{},{status:Ta})}))),o=i),n.push(K(K({},s),{},{status:ja})),o+=1,t=!0;break}}t||n.push(K(K({},e),{},{status:Aa}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return K(K({},e),{},{status:Ta})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==Aa}))).forEach((function(t){t.key===e&&(t.status=ja)}))})),n}(o,r);return{keyEntities:i.filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Da||e.status!==Aa}))}}}]),o}();Y(o,"defaultProps",{component:"div"})}(xa);const Wa=e.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return No("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(Wa.displayName="PropWarning");var Xa="production"!==process.env.NODE_ENV?Wa:()=>null,qa=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let Ua=!1;process.env.NODE_ENV;const Ya=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ga;const Ka=t=>{const{children:n,csp:o,autoInsertSpaceInButton:r,alert:i,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:g,legacyLocale:m,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:w,statistic:C,spin:S,calendar:E,carousel:k,cascader:O,collapse:_,typography:$,checkbox:M,descriptions:N,divider:P,drawer:I,skeleton:R,steps:T,image:j,layout:A,list:D,mentions:L,modal:z,progress:B,result:F,slider:H,breadcrumb:V,menu:W,pagination:X,input:q,textArea:U,empty:Y,badge:G,radio:K,rate:Z,switch:Q,transfer:ee,avatar:te,message:ne,tag:oe,table:re,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:fe,datePicker:he,rangePicker:pe,flex:ge,wave:me,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:Ce,treeSelect:Se}=t,Ee=e.useCallback(((e,n)=>{const{prefixCls:o}=t;if(n)return n;const r=o||v.getPrefixCls("");return e?`${r}-${e}`:r}),[v.getPrefixCls,t.prefixCls]),ke=b||v.iconPrefixCls||Kr,Oe=o||v.csp;Wi(ke,Oe);const _e=function(e,t,n){var o,r;const i=No("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Ur),{hashed:null!==(o=null==t?void 0:t.hashed)&&void 0!==o?o:Ur.hashed,cssVar:null==t?void 0:t.cssVar}),l=Zi();if("production"!==process.env.NODE_ENV){const e=a.cssVar||s.cssVar,t=!!("object"==typeof a.cssVar&&(null===(r=a.cssVar)||void 0===r?void 0:r.key)||l);"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 o,r;if(!e)return t;const i=Object.assign({},s.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const c=`css-var-${l.replace(/:/g,"")}`,u=(null!==(o=a.cssVar)&&void 0!==o?o:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof s.cssVar?s.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(r=a.cssVar)||void 0===r?void 0:r.key)||c});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:i,cssVar:u})}),[a,s],((e,t)=>e.some(((e,n)=>!yt(e,t[n],!0)))))}(y,v.theme,{prefixCls:Ee("")});"production"!==process.env.NODE_ENV&&(Ua=Ua||!!_e);const $e={csp:Oe,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:l||m,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!=p?p:h,popupOverflow:g,getPrefixCls:Ee,iconPrefixCls:ke,theme:_e,segmented:w,statistic:C,spin:S,calendar:E,carousel:k,cascader:O,collapse:_,typography:$,checkbox:M,descriptions:N,divider:P,drawer:I,skeleton:R,steps:T,image:j,input:q,textArea:U,layout:A,list:D,mentions:L,modal:z,progress:B,result:F,slider:H,breadcrumb:V,menu:W,pagination:X,empty:Y,badge:G,radio:K,rate:Z,switch:Q,transfer:ee,avatar:te,message:ne,tag:oe,table:re,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ce,notification:ue,tree:de,colorPicker:fe,datePicker:he,rangePicker:pe,flex:ge,wave:me,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:we,inputNumber:Ce,treeSelect:Se};if("production"!==process.env.NODE_ENV){No("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Me=Object.assign({},v);Object.keys($e).forEach((e=>{void 0!==$e[e]&&(Me[e]=$e[e])})),Ya.forEach((e=>{const n=t[e];n&&(Me[e]=n)})),void 0!==r&&(Me.button=Object.assign({autoInsertSpace:r},Me.button));const Ne=J((()=>Me),Me,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),Pe=e.useMemo((()=>({prefixCls:ke,csp:Oe})),[ke,Oe]);let Ie=e.createElement(e.Fragment,null,e.createElement(Xa,{dropdownMatchSelectWidth:h}),n);const Re=e.useMemo((()=>{var e,t,n,o;return ko((null===(e=Do.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ne.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=Ne.form)||void 0===o?void 0:o.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})}),[Ne,null==s?void 0:s.validateMessages]);Object.keys(Re).length>0&&(Ie=e.createElement(Io.Provider,{value:Re},Ie)),l&&(Ie=e.createElement(Ho,{locale:l,_ANT_MARK__:Fo},Ie)),(ke||Oe)&&(Ie=e.createElement(yo.Provider,{value:Pe},Ie)),c&&(Ie=e.createElement(ri,{size:c},Ie)),Ie=e.createElement(Va,null,Ie);const Te=e.useMemo((()=>{const e=_e||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=qa(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?It(t):qr,s={};Object.entries(o||{}).forEach((e=>{let[t,n]=e;const o=Object.assign({},n);"algorithm"in o&&(!0===o.algorithm?o.theme=a:(Array.isArray(o.algorithm)||"function"==typeof o.algorithm)&&(o.theme=It(o.algorithm)),delete o.algorithm),s[t]=o}));const l=Object.assign(Object.assign({},Lr),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:r})}),[_e]);return y&&(Ie=e.createElement(Yr.Provider,{value:Te},Ie)),Ne.warning&&(Ie=e.createElement(Mo.Provider,{value:Ne.warning},Ie)),void 0!==x&&(Ie=e.createElement(ni,{disabled:x},Ie)),e.createElement(Qr.Provider,{value:Ne},Ie)},Za=t=>{const n=e.useContext(Qr),o=e.useContext(Bo);return e.createElement(Ka,Object.assign({parentContext:n,legacyLocale:o},t))};function Qa(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ja(e){return function(e){return Qa(e)instanceof ShadowRoot}(e)?Qa(e):null}function es(e){return"object"===q(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===q(e.icon)||"function"==typeof e.icon)}function ts(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var o,r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[(o=n,o.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=r;return t}),{})}function ns(e,n,o){return o?t.createElement(e.tag,K(K({key:n},ts(e.attrs)),o),(e.children||[]).map((function(t,o){return ns(t,"".concat(n,"-").concat(e.tag,"-").concat(o))}))):t.createElement(e.tag,K({key:n},ts(e.attrs)),(e.children||[]).map((function(t,o){return ns(t,"".concat(n,"-").concat(e.tag,"-").concat(o))})))}function os(e){return wr(e)[0]}function rs(e){return e?Array.isArray(e)?e:[e]:[]}Za.ConfigContext=Qr,Za.SizeContext=oi,Za.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(Ga=t),o&&function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)&&("production"!==process.env.NODE_ENV&&Po(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),ei(Ga||Gr,o))},Za.useConfig=function(){return{componentDisabled:r(ti),componentSize:r(oi)}},Object.defineProperty(Za,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&Po(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),oi)}),"production"!==process.env.NODE_ENV&&(Za.displayName="ConfigProvider");var is=["icon","className","onClick","style","primaryColor","secondaryColor"],as={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var ss=function(t){var n,o,i,a,s,c,u,d=t.icon,f=t.className,h=t.onClick,p=t.style,g=t.primaryColor,m=t.secondaryColor,v=bt(t,is),b=e.useRef(),y=as;if(g&&(y={primaryColor:g,secondaryColor:m||os(g)}),n=b,o=r(yo),i=o.csp,a=o.prefixCls,s="\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&&(s=s.replace(/anticon/g,a)),l((function(){var e=Ja(n.current);vt(s,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),c=es(d),u="icon should be icon definiton, but got ".concat(d),X(c,"[@ant-design/icons] ".concat(u)),!es(d))return null;var x=d;return x&&"function"==typeof x.icon&&(x=K(K({},x),{},{icon:x.icon(y.primaryColor,y.secondaryColor)})),ns(x.icon,"svg-".concat(x.name),K(K({className:f,onClick:h,style:p,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v),{},{ref:b}))};function ls(e){var t=ot(rs(e),2),n=t[0],o=t[1];return ss.setTwoToneColors({primaryColor:n,secondaryColor:o})}ss.displayName="IconReact",ss.getTwoToneColors=function(){return K({},as)},ss.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;as.primaryColor=t,as.secondaryColor=n||os(t),as.calculated=!!n};var cs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ls(Pr.primary);var us=e.forwardRef((function(t,n){var o=t.className,r=t.icon,i=t.spin,a=t.rotate,s=t.tabIndex,l=t.onClick,c=t.twoToneColor,u=bt(t,cs),d=e.useContext(yo),f=d.prefixCls,h=void 0===f?"anticon":f,p=d.rootClassName,g=N(p,h,Y(Y({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||"loading"===r.name),o),m=s;void 0===m&&l&&(m=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=ot(rs(c),2),y=b[0],x=b[1];return e.createElement("span",P({role:"img","aria-label":r.name},u,{ref:n,tabIndex:m,onClick:l,className:g}),e.createElement(ss,{icon:r,primaryColor:y,secondaryColor:x,style:v}))}));us.displayName="AntdIcon",us.getTwoToneColor=function(){var e=ss.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},us.setTwoToneColor=ls;var ds={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"},fs=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:ds}))},hs=e.forwardRef(fs);"production"!==process.env.NODE_ENV&&(hs.displayName="CloseCircleFilled");var ps={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"},gs=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:ps}))},ms=e.forwardRef(gs);"production"!==process.env.NODE_ENV&&(ms.displayName="CloseOutlined");var vs="".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 bs(e,t){return 0===e.indexOf(t)}function ys(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}:K({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||bs(n,"aria-"))||t.data&&bs(n,"data-")||t.attr&&vs.includes(n))&&(o[n]=e[n])})),o}function xs(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const ws=(e,n,o)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof o?o(e.props||{}):o):n;function Cs(e,t){return ws(e,e,t)}const Ss=e=>{const[,,,,t]=Di();return t?`${e}-css-var`:""};var Es={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>=Es.F1&&t<=Es.F12)return!1;switch(t){case Es.ALT:case Es.CAPS_LOCK:case Es.CONTEXT_MENU:case Es.CTRL:case Es.DOWN:case Es.END:case Es.ESC:case Es.HOME:case Es.INSERT:case Es.LEFT:case Es.MAC_FF_META:case Es.META:case Es.NUMLOCK:case Es.NUM_CENTER:case Es.PAGE_DOWN:case Es.PAGE_UP:case Es.PAUSE:case Es.PRINT_SCREEN:case Es.RIGHT:case Es.SHIFT:case Es.UP:case Es.WIN_KEY:case Es.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Es.ZERO&&e<=Es.NINE)return!0;if(e>=Es.NUM_ZERO&&e<=Es.NUM_MULTIPLY)return!0;if(e>=Es.A&&e<=Es.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Es.SPACE:case Es.QUESTION_MARK:case Es.NUM_PLUS:case Es.NUM_MINUS:case Es.NUM_PERIOD:case Es.NUM_DIVISION:case Es.SEMICOLON:case Es.DASH:case Es.EQUALS:case Es.COMMA:case Es.PERIOD:case Es.SLASH:case Es.APOSTROPHE:case Es.SINGLE_QUOTE:case Es.OPEN_SQUARE_BRACKET:case Es.BACKSLASH:case Es.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ks={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"},Os=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:ks}))},_s=e.forwardRef(Os);"production"!==process.env.NODE_ENV&&(_s.displayName="LoadingOutlined");const $s=t.createContext(void 0);"production"!==process.env.NODE_ENV&&($s.displayName="zIndexContext");const Ms=100,Ns={Modal:Ms,Drawer:Ms,Popover:Ms,Popconfirm:Ms,Tooltip:Ms,Tour:Ms},Ps={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Is(e,n){const[,o]=Di(),r=t.useContext($s),i=function(e){return e in Ns}(e);let a;if(void 0!==n)a=[n,n];else{let t=null!=r?r:0;t+=i?(r?0:o.zIndexPopupBase)+Ns[e]:Ps[e],a=[void 0===r?n:t,t]}if("production"!==process.env.NODE_ENV){const t=No(e),r=o.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&t(void 0!==n||i<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function Rs(){Rs=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new N(o||[]);return r(a,"_invoke",{value:O(e,n,s)}),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",h="suspendedYield",p="executing",g="completed",m={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(P([])));C&&C!==n&&o.call(C,a)&&(x=C);var S=y.prototype=v.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,i,a,s){var l=d(e[r],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==q(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function O(t,n,o){var r=f;return function(i,a){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=_(s,o);if(l){if(l===m)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=p;var c=d(t,n,o);if("normal"===c.type){if(r=o.done?g:h,c.arg===m)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=g,o.method="throw",o.arg=c.arg)}}}function _(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;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,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function P(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 r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(q(t)+" is not iterable")}return b.prototype=y,r(S,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"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,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},E(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new k(u(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=P,N.prototype={constructor:N,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(M),!t)for(var n in this)"t"===n.charAt(0)&&o.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 r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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,m):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),m},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),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;M(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function Ts(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function js(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Ts(i,o,r,a,s,"next",e)}function s(e){Ts(i,o,r,a,s,"throw",e)}a(void 0)}))}}var As,Ds=K({},v),Ls=Ds.version,zs=Ds.render,Bs=Ds.unmountComponentAtNode;try{Number((Ls||"").split(".")[0])>=18&&(As=Ds.createRoot)}catch(e){}function Fs(e){var t=Ds.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===q(t)&&(t.usingClientEntryPoint=e)}var Hs="__rc_react_root__";function Vs(e,t){As?function(e,t){Fs(!0);var n=t[Hs]||As(t);Fs(!1),n.render(e),t[Hs]=n}(e,t):function(e,t){zs(e,t)}(e,t)}function Ws(e){return Xs.apply(this,arguments)}function Xs(){return(Xs=js(Rs().mark((function e(t){return Rs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Hs])||void 0===e||e.unmount(),delete t[Hs]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qs(e){Bs(e)}function Us(){return(Us=js(Rs().mark((function e(t){return Rs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===As){e.next=2;break}return e.abrupt("return",Ws(t));case 2:qs(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Ys=()=>({height:0,opacity:0}),Gs=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ks=e=>({height:e?e.offsetHeight:0}),Zs=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Qs=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr}-motion-collapse`,onAppearStart:Ys,onEnterStart:Ys,onAppearActive:Gs,onEnterActive:Gs,onLeaveStart:Ks,onLeaveActive:Ys,onAppearEnd:Zs,onEnterEnd:Zs,onLeaveEnd:Zs,motionDeadline:500}},Js=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var el=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,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1};const tl=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 nl=qi("Wave",(e=>[tl(e)]));const ol=`${Gr}-wave-target`;function rl(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 il(e){return Number.isNaN(e)?0:e}const al=t=>{const{className:n,target:o,component:r}=t,i=e.useRef(null),[a,s]=e.useState(null),[l,c]=e.useState([]),[u,d]=e.useState(0),[f,h]=e.useState(0),[p,g]=e.useState(0),[m,v]=e.useState(0),[b,y]=e.useState(!1),x={left:u,top:f,width:p,height:m,borderRadius:l.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(o);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return rl(t)?t:rl(n)?n:rl(o)?o:null}(o));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:r}=e;d(t?o.offsetLeft:il(-parseFloat(n))),h(t?o.offsetTop:il(-parseFloat(r))),g(o.offsetWidth),v(o.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>il(parseFloat(e)))))}if(a&&(x["--wave-color"]=a),e.useEffect((()=>{if(o){const e=et((()=>{w(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(o)),()=>{et.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const C=("Checkbox"===r||"Radio"===r)&&(null==o?void 0:o.classList.contains(ol));return e.createElement(Ra,{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 Us.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((t,o)=>{let{className:r}=t;return e.createElement("div",{ref:te(i,o),className:N(n,r,{"wave-quick":C}),style:x})}))},sl=(t,n)=>{var o;const{component:r}=n;if("Checkbox"===r&&!(null===(o=t.querySelector("input"))||void 0===o?void 0:o.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),Vs(e.createElement(al,Object.assign({},n,{target:t})),i)},ll=(t,n,o)=>{const{wave:r}=e.useContext(Qr),[,i,a]=Di(),s=fi((e=>{const s=t.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${ol}`)||s,{showEffect:c}=r||{};(c||sl)(l,{className:n,token:i,component:o,event:e,hashId:a})})),l=e.useRef();return e=>{et.cancel(l.current),l.current=et((()=>{s(e)}))}},cl=e=>{const{children:n,disabled:o,component:i}=e,{getPrefixCls:s}=r(Qr),l=a(null),c=s("wave"),[,u]=nl(c),d=ll(l,N(c,u),i);if(t.useEffect((()=>{const e=l.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!el(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)}}),[o]),!t.isValidElement(n))return null!=n?n:null;return Cs(n,{ref:oe(n)?te(n.ref,l):l})};"production"!==process.env.NODE_ENV&&(cl.displayName="Wave");const ul=e=>{const n=t.useContext(oi);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])},dl=e.createContext(null),fl=(t,n)=>{const o=e.useContext(dl),r=e.useMemo((()=>{if(!o)return"";const{compactDirection:e,isFirstItem:r,isLastItem:i}=o,a="vertical"===e?"-vertical-":"-";return N(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:r,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})}),[t,n,o]);return{compactSize:null==o?void 0:o.compactSize,compactDirection:null==o?void 0:o.compactDirection,compactItemClassnames:r}},hl=t=>{let{children:n}=t;return e.createElement(dl.Provider,{value:null},n)};var pl=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const gl=e.createContext(void 0),ml=/^[\u4e00-\u9fa5]{2}$/,vl=ml.test.bind(ml);function bl(e){return"string"==typeof e}function yl(e){return"text"===e||"link"===e}function xl(e,n){let o=!1;const r=[];return t.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(o&&n){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);o=n})),t.Children.map(r,(e=>function(e,n){if(null==e)return;const o=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&bl(e.type)&&vl(e.props.children)?Cs(e,{children:e.props.children.split("").join(o)}):bl(e)?vl(e)?t.createElement("span",null,e.split("").join(o)):t.createElement("span",null,e):xs(e)?t.createElement("span",null,e):e}(e,n)))}const wl=c(((e,n)=>{const{className:o,style:r,children:i,prefixCls:a}=e,s=N(`${a}-icon`,o);return t.createElement("span",{ref:n,className:s,style:r},i)})),Cl=c(((e,n)=>{const{prefixCls:o,className:r,style:i,iconClassName:a}=e,s=N(`${o}-loading-icon`,r);return t.createElement(wl,{prefixCls:o,className:s,style:i,ref:n},t.createElement(_s,{className:a}))})),Sl=()=>({width:0,opacity:0,transform:"scale(0)"}),El=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),kl=e=>{const{prefixCls:n,loading:o,existIcon:r,className:i,style:a}=e,s=!!o;return r?t.createElement(Cl,{prefixCls:n,className:i,style:a}):t.createElement(Ra,{visible:s,motionName:`${n}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:Sl,onAppearActive:El,onEnterStart:Sl,onEnterActive:El,onLeaveStart:El,onLeaveActive:Sl},((e,o)=>{let{className:r,style:s}=e;return t.createElement(Cl,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),s),ref:o,iconClassName:r})}))},Ol=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),_l=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,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(o).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}},Ol(`${t}-primary`,r),Ol(`${t}-danger`,i)]}},$l=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return yi(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},Ml=e=>{var t,n,o,r,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,u=null!==(r=e.contentLineHeight)&&void 0!==r?r:Br(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Br(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Br(c);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:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},Nl=e=>{const{componentCls:t,iconCls:n,fontWeight:o}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${zt(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({},Vi(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"}}}},Pl=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Il=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Rl=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Tl=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),jl=(e,t,n,o,r,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},Pl(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),Al=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Tl(e))}),Dl=e=>Object.assign({},Al(e)),Ll=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),zl=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dl(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Pl(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),jl(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},Pl(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),jl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Al(e))}),Bl=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dl(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Pl(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),jl(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},Pl(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),jl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Al(e))}),Fl=e=>Object.assign(Object.assign({},zl(e)),{borderStyle:"dashed"}),Hl=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Pl(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ll(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Pl(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ll(e))}),Vl=e=>Object.assign(Object.assign(Object.assign({},Pl(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ll(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ll(e)),Pl(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Wl=e=>{const{componentCls:t}=e;return{[`${t}-default`]:zl(e),[`${t}-primary`]:Bl(e),[`${t}-dashed`]:Fl(e),[`${t}-link`]:Hl(e),[`${t}-text`]:Vl(e),[`${t}-ghost`]:jl(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Xl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:o,fontSize:r,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:r,lineHeight:i,height:o,padding:`${zt(c)} ${zt(s)}`,borderRadius:a,[`&${u}`]:{width:o,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{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}`]:Il(e)},{[`${n}${n}-round${t}`]:Rl(e)}]},ql=e=>{const t=yi(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Xl(t,e.componentCls)},Ul=e=>{const t=yi(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 Xl(t,`${e.componentCls}-sm`)},Yl=e=>{const t=yi(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Xl(t,`${e.componentCls}-lg`)},Gl=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Kl=Xi("Button",(e=>{const t=$l(e);return[Nl(t),ql(t),Ul(t),Yl(t),Gl(t),Wl(t),_l(t)]}),Ml,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Zl(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",s=["hover",r?"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({[s]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Ql(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Jl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},Zl(e,o,t)),Ql(n,o,t))}}function ec(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 tc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ec(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const nc=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% + ${zt(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% + ${zt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var oc=Ui(["Button","compact"],(e=>{const t=$l(e);return[Jl(t),tc(t),nc(t)]}),Ml),rc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ic=t.forwardRef(((e,n)=>{var o,i,a;const{loading:s=!1,prefixCls:c,type:p,danger:g=!1,shape:m="default",size:v,styles:b,disabled:y,className:x,rootClassName:w,children:C,icon:S,iconPosition:E="start",ghost:k=!1,block:O=!1,htmlType:_="button",classNames:$,style:M={},autoInsertSpace:P}=e,I=rc(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),R=p||"default",{getPrefixCls:T,direction:j,button:A}=r(Qr),D=null===(o=null!=P?P:null==A?void 0:A.autoInsertSpace)||void 0===o||o,L=T("btn",c),[z,B,F]=Kl(L),H=r(ti),V=null!=y?y:H,W=r(gl),X=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}}(s)),[s]),[q,U]=d(X.loading),[Y,G]=d(!1),K=te(n,h()),Z=1===f.count(C)&&!S&&!yl(R);l((()=>{let e=null;return X.delay>0?e=setTimeout((()=>{e=null,U(!0)}),X.delay):U(X.loading),function(){e&&(clearTimeout(e),e=null)}}),[X]),l((()=>{if(!K||!K.current||!D)return;const e=K.current.textContent;Z&&vl(e)?Y||G(!0):Y&&G(!1)}),[K]);const Q=t=>{const{onClick:n}=e;q||V?t.preventDefault():null==n||n(t)};if("production"!==process.env.NODE_ENV){const e=No("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof S&&S.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${S}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(k&&yl(R)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:J,compactItemClassnames:ee}=fl(L,j),ne={large:"lg",small:"sm",middle:void 0},oe=ul((e=>{var t,n;return null!==(n=null!==(t=null!=v?v:J)&&void 0!==t?t:W)&&void 0!==n?n:e})),re=oe&&ne[oe]||"",ie=q?"loading":S,ae=We(I,["navigate"]),se=N(L,B,F,{[`${L}-${m}`]:"default"!==m&&m,[`${L}-${R}`]:R,[`${L}-${re}`]:re,[`${L}-icon-only`]:!C&&0!==C&&!!ie,[`${L}-background-ghost`]:k&&!yl(R),[`${L}-loading`]:q,[`${L}-two-chinese-chars`]:Y&&D&&!q,[`${L}-block`]:O,[`${L}-dangerous`]:g,[`${L}-rtl`]:"rtl"===j,[`${L}-icon-end`]:"end"===E},ee,x,w,null==A?void 0:A.className),le=Object.assign(Object.assign({},null==A?void 0:A.style),M),ce=N(null==$?void 0:$.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=S&&!q?t.createElement(wl,{prefixCls:L,className:ce,style:ue},S):t.createElement(kl,{existIcon:!!S,prefixCls:L,loading:q}),fe=C||0===C?xl(C,Z&&D):null;if(void 0!==ae.href)return z(t.createElement("a",Object.assign({},ae,{className:N(se,{[`${L}-disabled`]:V}),href:V?void 0:ae.href,style:le,onClick:Q,ref:K,tabIndex:V?-1:0}),de,fe));let he=t.createElement("button",Object.assign({},I,{type:_,className:se,style:le,onClick:Q,disabled:V,ref:K}),de,fe,!!ee&&t.createElement(oc,{key:"compact",prefixCls:L}));return yl(R)||(he=t.createElement(cl,{component:"Button",disabled:q},he)),z(he)})),ac=ic;ac.Group=t=>{const{getPrefixCls:n,direction:o}=e.useContext(Qr),{prefixCls:r,size:i,className:a}=t,s=pl(t,["prefixCls","size","className"]),l=n("btn-group",r),[,,c]=Di();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=No("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=N(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===o},a,c);return e.createElement(gl.Provider,{value:i},e.createElement("div",Object.assign({},s,{className:d})))},ac.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(ac.displayName="Button");var sc=e.createContext(null),lc=[];function cc(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 o,r,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 s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";vt("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),o=l,r=c}}document.body.appendChild(n);var f=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,h=e&&r&&!isNaN(r)?r:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),mt(t),{width:f,height:h}}(e):{width:0,height:0}}var uc="rc-util-locker-".concat(Date.now()),dc=0;function fc(t){var n=!!t,o=ot(e.useState((function(){return dc+=1,"".concat(uc,"_").concat(dc)})),1)[0];Xt((function(){if(n){var e=cc(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}"),o)}else mt(o);return function(){mt(o)}}),[n,o])}var hc=function(e){return!1!==e&&(it()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},pc=e.forwardRef((function(t,n){var o=t.open,r=t.autoLock,i=t.getContainer,a=t.debug,s=t.autoDestroy,l=void 0===s||s,c=t.children,u=ot(e.useState(o),2),d=u[0],f=u[1],h=d||o;"production"!==process.env.NODE_ENV&&X(it()||!o,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),e.useEffect((function(){(l||o)&&f(o)}),[o,l]);var p=ot(e.useState((function(){return hc(i)})),2),g=p[0],m=p[1];e.useEffect((function(){var e=hc(i);m(null!=e?e:null)}));var v=function(t,n){var o=ot(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],r=e.useRef(!1),i=e.useContext(sc),a=ot(e.useState(lc),2),s=a[0],l=a[1],c=i||(r.current?void 0:function(e){l((function(t){return[e].concat(Ye(t))}))});function u(){o.parentElement||document.body.appendChild(o),r.current=!0}function d(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),r.current=!1}return Xt((function(){return t?i?i(u):u():d(),d}),[t]),Xt((function(){s.length&&(s.forEach((function(e){return e()})),l(lc))}),[s]),[o,c]}(h&&!g,a),b=ot(v,2),x=b[0],w=b[1],C=null!=g?g:x;fc(r&&o&&it()&&(C===x||C===document.body));var S=null;c&&oe(c)&&n&&(S=c.ref);var E=ne(S,n);if(!h||!it()||void 0===g)return null;var k=!1===C||!1,O=c;return n&&(O=e.cloneElement(c,{ref:E})),e.createElement(sc.Provider,{value:w},k?O:y(O,C))}));"production"!==process.env.NODE_ENV&&(pc.displayName="Portal");var gc=e.createContext({});var mc=0,vc=K({},e).useId,bc=vc?function(e){var t=vc();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(t){var n=ot(e.useState("ssr-id"),2),o=n[0],r=n[1];return e.useEffect((function(){var e=mc;mc+=1,r("rc_unique_".concat(e))}),[]),t||("test"===process.env.NODE_ENV?"test-id":o)};function yc(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function xc(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}var wc=e.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),Cc={width:0,height:0,overflow:"hidden",outline:"none"},Sc={outline:"none"},Ec=t.forwardRef((function(e,n){var o=e.prefixCls,r=e.className,i=e.style,s=e.title,l=e.ariaId,c=e.footer,d=e.closable,f=e.closeIcon,h=e.onClose,p=e.children,g=e.bodyStyle,m=e.bodyProps,v=e.modalRender,b=e.onMouseDown,y=e.onMouseUp,x=e.holderRef,w=e.visible,C=e.forceRender,S=e.width,E=e.height,k=e.classNames,O=e.styles,_=t.useContext(gc).panel,$=ne(x,_),M=a(),I=a(),R=a();t.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=R.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===I.current?M.current.focus({preventScroll:!0}):e||t!==M.current||I.current.focus({preventScroll:!0})}}}));var T={};void 0!==S&&(T.width=S),void 0!==E&&(T.height=E);var j=c?t.createElement("div",{className:N("".concat(o,"-footer"),null==k?void 0:k.footer),style:K({},null==O?void 0:O.footer)},c):null,A=s?t.createElement("div",{className:N("".concat(o,"-header"),null==k?void 0:k.header),style:K({},null==O?void 0:O.header)},t.createElement("div",{className:"".concat(o,"-title"),id:l},s)):null,D=u((function(){return"object"===q(d)&&null!==d?d:d?{closeIcon:null!=f?f:t.createElement("span",{className:"".concat(o,"-close-x")})}:{}}),[d,f,o]),L=ys(D,!0),z="object"===q(d)&&d.disabled,B=d?t.createElement("button",P({type:"button",onClick:h,"aria-label":"Close"},L,{className:"".concat(o,"-close"),disabled:z}),D.closeIcon):null,F=t.createElement("div",{className:N("".concat(o,"-content"),null==k?void 0:k.content),style:null==O?void 0:O.content},B,A,t.createElement("div",P({className:N("".concat(o,"-body"),null==k?void 0:k.body),style:K(K({},g),null==O?void 0:O.body)},m),p),j);return t.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?l:null,"aria-modal":"true",ref:$,style:K(K({},i),T),className:N(o,r),onMouseDown:b,onMouseUp:y},t.createElement("div",{tabIndex:0,ref:M,style:Cc,"aria-hidden":"true"}),t.createElement("div",{ref:R,tabIndex:-1,style:Sc},t.createElement(wc,{shouldUpdate:w||C},v?v(F):F)),t.createElement("div",{tabIndex:0,ref:I,style:Cc,"aria-hidden":"true"}))}));"production"!==process.env.NODE_ENV&&(Ec.displayName="Panel");var kc=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.title,i=t.style,s=t.className,l=t.visible,c=t.forceRender,u=t.destroyOnClose,d=t.motionName,f=t.ariaId,h=t.onVisibleChanged,p=t.mousePosition,g=a(),m=ot(e.useState(),2),v=m[0],b=m[1],y={};function x(){var e,t,n,o,r,i=(e=g.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow,n.left+=xc(r),n.top+=xc(r,!0),n);b(p&&(p.x||p.y)?"".concat(p.x-i.left,"px ").concat(p.y-i.top,"px"):"")}return v&&(y.transformOrigin=v),e.createElement(Ra,{visible:l,onVisibleChanged:h,onAppearPrepare:x,onEnterPrepare:x,forceRender:c,motionName:d,removeOnLeave:u,ref:g},(function(a,l){var c=a.className,u=a.style;return e.createElement(Ec,P({},t,{ref:n,title:r,ariaId:f,prefixCls:o,holderRef:l,style:K(K(K({},u),i),y),className:N(s,c)}))}))}));kc.displayName="Content";var Oc=function(t){var n=t.prefixCls,o=t.style,r=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return e.createElement(Ra,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},(function(t,r){var a=t.className,l=t.style;return e.createElement("div",P({ref:r,style:K(K({},l),o),className:N("".concat(n,"-mask"),a,s)},i))}))},_c=function(t){var n=t.prefixCls,o=void 0===n?"rc-dialog":n,r=t.zIndex,i=t.visible,s=void 0!==i&&i,c=t.keyboard,u=void 0===c||c,d=t.focusTriggerAfterClose,f=void 0===d||d,h=t.wrapStyle,p=t.wrapClassName,g=t.wrapProps,m=t.onClose,v=t.afterOpenChange,b=t.afterClose,y=t.transitionName,x=t.animation,w=t.closable,C=void 0===w||w,S=t.mask,E=void 0===S||S,k=t.maskTransitionName,O=t.maskAnimation,_=t.maskClosable,$=void 0===_||_,M=t.maskStyle,I=t.maskProps,R=t.rootClassName,T=t.classNames,j=t.styles;"production"!==process.env.NODE_ENV&&(["wrapStyle","bodyStyle","maskStyle"].forEach((function(e){F(!(e in t),"".concat(e," is deprecated, please use styles instead."))})),"wrapClassName"in t&&F(!1,"wrapClassName is deprecated, please use classNames instead."));var A=a(),D=a(),L=a(),z=ot(e.useState(s),2),B=z[0],H=z[1],V=bc();function W(e){null==m||m(e)}var X=a(!1),q=a(),U=null;$&&(U=function(e){X.current?X.current=!1:D.current===e.target&&W(e)}),l((function(){s&&(H(!0),at(D.current,document.activeElement)||(A.current=document.activeElement))}),[s]),l((function(){return function(){clearTimeout(q.current)}}),[]);var Y=K(K(K({zIndex:r},h),null==j?void 0:j.wrapper),{},{display:B?null:"none"});return e.createElement("div",P({className:N("".concat(o,"-root"),R)},ys(t,{data:!0})),e.createElement(Oc,{prefixCls:o,visible:E&&s,motionName:yc(o,k,O),style:K(K({zIndex:r},M),null==j?void 0:j.mask),maskProps:I,className:null==T?void 0:T.mask}),e.createElement("div",P({tabIndex:-1,onKeyDown:function(e){if(u&&e.keyCode===Es.ESC)return e.stopPropagation(),void W(e);s&&e.keyCode===Es.TAB&&L.current.changeActive(!e.shiftKey)},className:N("".concat(o,"-wrap"),p,null==T?void 0:T.wrapper),ref:D,onClick:U,style:Y},g),e.createElement(kc,P({},t,{onMouseDown:function(){clearTimeout(q.current),X.current=!0},onMouseUp:function(){q.current=setTimeout((function(){X.current=!1}))},ref:L,closable:C,ariaId:V,prefixCls:o,visible:s&&B,onClose:W,onVisibleChanged:function(e){if(e)at(D.current,document.activeElement)||null===(t=L.current)||void 0===t||t.focus();else{if(H(!1),E&&A.current&&f){try{A.current.focus({preventScroll:!0})}catch(e){}A.current=null}B&&(null==b||b())}var t;null==v||v(e)},motionName:yc(o,y,x)}))))},$c=function(t){var n=t.visible,o=t.getContainer,r=t.forceRender,i=t.destroyOnClose,a=void 0!==i&&i,s=t.afterClose,l=t.panelRef,c=ot(e.useState(n),2),u=c[0],d=c[1],f=e.useMemo((function(){return{panel:l}}),[l]);return e.useEffect((function(){n&&d(!0)}),[n]),r||!a||u?e.createElement(gc.Provider,{value:f},e.createElement(pc,{open:n||r||u,autoDestroy:!1,getContainer:o,autoLock:n||u},e.createElement(_c,P({},t,{destroyOnClose:a,afterClose:function(){null==s||s(),d(!1)}})))):null};$c.displayName="Dialog";var Mc="RC_FORM_INTERNAL_HOOKS",Nc=function(){X(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Pc=e.createContext({getFieldValue:Nc,getFieldsValue:Nc,getFieldError:Nc,getFieldWarning:Nc,getFieldsError:Nc,isFieldsTouched:Nc,isFieldTouched:Nc,isFieldValidating:Nc,isFieldsValidating:Nc,resetFields:Nc,setFields:Nc,setFieldValue:Nc,setFieldsValue:Nc,validateFields:Nc,submit:Nc,getInternalHooks:function(){return Nc(),{dispatch:Nc,initEntityValue:Nc,registerField:Nc,useSubscribe:Nc,setInitialValues:Nc,destroyForm:Nc,setCallbacks:Nc,registerWatch:Nc,getFields:Nc,setValidateMessages:Nc,setPreserve:Nc,getInitialValue:Nc}}}),Ic=e.createContext(null);function Rc(e){return null==e?[]:Array.isArray(e)?e:[e]}function Tc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var jc=Tc();function Ac(e){var t="function"==typeof Map?new Map:void 0;return Ac=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 o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&Re(r,n.prototype),r}(e,arguments,je(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Re(n,e)},Ac(e)}var Dc=/%[sdj%]/g,Lc=function(){};function zc(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 Bc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(Dc,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}break;default:return e}})):e}function Fc(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 Hc(e,t,n){var o=0,r=e.length;!function i(a){if(a&&a.length)n(a);else{var s=o;o+=1,s<r?t(e[s],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(Lc=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 Vc=function(){Te(t,Ac(Error));var e=Le(t);function t(n,o){var r;return Ne(this,t),Y(De(r=e.call(this,"Async Validation Error")),"errors",void 0),Y(De(r),"fields",void 0),r.errors=n,r.fields=o,r}return Ie(t)}();function Wc(e,t,n,o,r){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,Ye(e[n]||[]))})),t}(e);Hc(a,n,(function(e){return o(e),e.length?i(new Vc(e,zc(e))):t(r)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return o(u),u.length?i(new Vc(u,zc(u))):t(r)};s.length||(o(u),t(r)),s.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?Hc(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,Ye(e||[])),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function Xc(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function qc(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===q(o)&&"object"===q(e[n])?e[n]=K(K({},e[n]),o):e[n]=o}return e}var Uc,Yc="enum",Gc=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!Fc(t,i||e.type)||o.push(Bc(r.messages.required,e.fullField))},Kc=/^(([^<>()\[\]\\.,;:\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,}))$/,Zc=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Qc={integer:function(e){return Qc.number(e)&&parseInt(e,10)===e},float:function(e){return Qc.number(e)&&!Qc.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"===q(e)&&!Qc.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Kc)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Uc)return Uc;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}",o="[a-fA-F\\d]{1,4}",r=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],i="(?:".concat(r.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.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 Uc=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Zc)}},Jc={required:Gc,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Bc(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)Gc(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Qc[i](t)||o.push(Bc(r.messages.types[i],e.fullField,e.type)):i&&q(t)!==e.type&&o.push(Bc(r.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,o,r){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&o.push(Bc(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?o.push(Bc(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?o.push(Bc(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&o.push(Bc(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Yc]=Array.isArray(e[Yc])?e[Yc]:[],-1===e[Yc].indexOf(t)&&o.push(Bc(r.messages[Yc],e.fullField,e[Yc].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Bc(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Bc(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},eu=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t,i)&&!e.required)return n();Jc.required(e,t,o,a,r,i),Fc(t,i)||Jc.type(e,t,o,a,r)}n(a)},tu={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t,"string")&&!e.required)return n();Jc.required(e,t,o,i,r,"string"),Fc(t,"string")||(Jc.type(e,t,o,i,r),Jc.range(e,t,o,i,r),Jc.pattern(e,t,o,i,r),!0===e.whitespace&&Jc.whitespace(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t)&&!e.required)return n();Jc.required(e,t,o,i,r),void 0!==t&&Jc.type(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Fc(t)&&!e.required)return n();Jc.required(e,t,o,i,r),void 0!==t&&(Jc.type(e,t,o,i,r),Jc.range(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t)&&!e.required)return n();Jc.required(e,t,o,i,r),void 0!==t&&Jc.type(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t)&&!e.required)return n();Jc.required(e,t,o,i,r),Fc(t)||Jc.type(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t)&&!e.required)return n();Jc.required(e,t,o,i,r),void 0!==t&&(Jc.type(e,t,o,i,r),Jc.range(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t)&&!e.required)return n();Jc.required(e,t,o,i,r),void 0!==t&&(Jc.type(e,t,o,i,r),Jc.range(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Jc.required(e,t,o,i,r,"array"),null!=t&&(Jc.type(e,t,o,i,r),Jc.range(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t)&&!e.required)return n();Jc.required(e,t,o,i,r),void 0!==t&&Jc.type(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t)&&!e.required)return n();Jc.required(e,t,o,i,r),void 0!==t&&Jc.enum(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t,"string")&&!e.required)return n();Jc.required(e,t,o,i,r),Fc(t,"string")||Jc.pattern(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t,"date")&&!e.required)return n();var a;if(Jc.required(e,t,o,i,r),!Fc(t,"date"))a=t instanceof Date?t:new Date(t),Jc.type(e,a,o,i,r),a&&Jc.range(e,a.getTime(),o,i,r)}n(i)},url:eu,hex:eu,email:eu,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":q(t);Jc.required(e,t,o,i,r,a),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Fc(t)&&!e.required)return n();Jc.required(e,t,o,i,r)}n(i)}},nu=function(){function e(t){Ne(this,e),Y(this,"rules",null),Y(this,"_messages",jc),this.define(t)}return Ie(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==q(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))}},{key:"messages",value:function(e){return e&&(this._messages=qc(Tc(),e)),this._messages}},{key:"validate",value:function(t){var n=this,o=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof r&&(i=r,r={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,o),Promise.resolve(o);if(r.messages){var a=this.messages();a===jc&&(a=Tc()),qc(a,r.messages),r.messages=a}else r.messages=this.messages();var s={};(r.keys||Object.keys(this.rules)).forEach((function(e){var r=n.rules[e],i=o[e];r.forEach((function(r){var a=r;"function"==typeof a.transform&&(o===t&&(o=K({},o)),null!=(i=o[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":q(i)))),(a="function"==typeof a?{validator:a}:K({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:o,field:e}))}))}));var l={};return Wc(s,r,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==q(a.fields)&&"object"!==q(a.defaultField));function c(e,t){return K(K({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Ye(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!r.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Xc(a,o));if(r.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Xc(a,o)):r.error&&(d=[r.error(a,Bc(r.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=K(K({},f),t.rule.fields);var h={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];h[e]=n.map(c.bind(null,e))}));var p=new e(h);p.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),p.validate(t.value,t.rule.options||r,(function(e){var t=[];d&&d.length&&t.push.apply(t,Ye(d)),e&&e.length&&t.push.apply(t,Ye(e)),n(t.length?t:null)}))}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,r);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,r)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),r.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,r=[],a={},s=0;s<e.length;s++)t=e[s],n=void 0,Array.isArray(t)?r=(n=r).concat.apply(n,Ye(t)):r.push(t);r.length?(a=zc(r),i(r,a)):i(null,o)}(e)}),o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!tu.hasOwnProperty(e.type))throw new Error(Bc("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]?tu.required:tu[this.getType(e)]||void 0}}]),e}();Y(nu,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");tu[e]=t})),Y(nu,"warning",Lc),Y(nu,"messages",jc),Y(nu,"validators",tu);var ou="'${name}' is not a valid ${type}",ru={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:ou,method:ou,array:ou,object:ou,number:ou,date:ou,boolean:ou,integer:ou,float:ou,regexp:ou,email:ou,url:ou,hex:ou},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}"}},iu=nu;function au(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 su="CODE_LOGIC_ERROR";function lu(e,t,n,o,r){return cu.apply(this,arguments)}function cu(){return cu=js(Rs().mark((function t(n,o,r,i,a){var s,l,c,u,d,f,h,p,g;return Rs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(s=K({},r)).ruleIndex,iu.warning=function(){},s.validator&&(l=s.validator,s.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(su)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new iu(Y({},n,[s])),d=ko(ru,i.validateMessages),u.messages(d),f=[],t.prev=10,t.next=13,Promise.resolve(u.validate(Y({},n,o),K({},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 o=t.message,r=o===su?d.default:o;return e.isValidElement(r)?e.cloneElement(r,{key:"error_".concat(n)}):r})));case 18:if(f.length||!c){t.next=23;break}return t.next=21,Promise.all(o.map((function(e,t){return lu("".concat(n,".").concat(t),e,c,i,a)})));case 21:return h=t.sent,t.abrupt("return",h.reduce((function(e,t){return[].concat(Ye(e),Ye(t))}),[]));case 23:return p=K(K({},r),{},{name:n,enum:(r.enum||[]).join(", ")},a),g=f.map((function(e){return"string"==typeof e?au(e,p):e})),t.abrupt("return",g);case 26:case"end":return t.stop()}}),t,null,[[10,15]])}))),cu.apply(this,arguments)}function uu(e,t,n,o,r,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,o=K(K({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var r=!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(){X(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));X(r=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),r&&i.then((function(){o()})).catch((function(e){o(e||" ")}))}),o})).sort((function(e,t){var n=e.warningOnly,o=e.ruleIndex,r=t.warningOnly,i=t.ruleIndex;return!!n==!!r?o-i:n?1:-1}));if(!0===r)a=new Promise(function(){var e=js(Rs().mark((function e(n,r){var a,c,u;return Rs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,lu(s,t,c,o,i);case 5:if(!(u=e.sent).length){e.next=9;break}return r([{errors:u,rule:c}]),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 c=l.map((function(e){return lu(s,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return fu.apply(this,arguments)}(c):function(e){return du.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function du(){return(du=js(Rs().mark((function e(t){return Rs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Ye(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fu(){return fu=js(Rs().mark((function e(t){var n;return Rs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(o){o.then((function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),fu.apply(this,arguments)}function hu(e){return Rc(e)}function pu(e,t){var n={};return t.forEach((function(t){var o=xo(e,t);n=Co(n,t,o)})),n}function gu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return mu(t,e,n)}))}function mu(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 vu(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===q(t.target)&&e in t.target?t.target[e]:t}function bu(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var r=e[t],i=t-n;return i>0?[].concat(Ye(e.slice(0,n)),[r],Ye(e.slice(n,t)),Ye(e.slice(t+1,o))):i<0?[].concat(Ye(e.slice(0,t)),Ye(e.slice(t+1,n+1)),[r],Ye(e.slice(n+1,o))):e}var yu=["name"],xu=[];function wu(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var Cu=function(){Te(n,e.Component);var t=Le(n);function n(o){var r;(Ne(this,n),Y(De(r=t.call(this,o)),"state",{resetCount:0}),Y(De(r),"cancelRegisterFunc",null),Y(De(r),"mounted",!1),Y(De(r),"touched",!1),Y(De(r),"dirty",!1),Y(De(r),"validatePromise",void 0),Y(De(r),"prevValidating",void 0),Y(De(r),"errors",xu),Y(De(r),"warnings",xu),Y(De(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,hu(o)),r.cancelRegisterFunc=null})),Y(De(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ye(void 0===n?[]:n),Ye(t)):[]})),Y(De(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),Y(De(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Y(De(r),"metaCache",null),Y(De(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=K(K({},r.getMeta()),{},{destroy:e});yt(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Y(De(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,s=void 0===a?[]:a,l=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(c),h=t&&gu(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||yt(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=xu,r.warnings=xu,r.triggerMetaEvent()),n.type){case"reset":if(!t||h)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=xu,r.warnings=xu,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&wu(i,e,c,d,f,n))return void r.reRender();break;case"setField":var p=n.data;if(h)return"touched"in p&&(r.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(r.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(r.errors=p.errors||xu),"warnings"in p&&(r.warnings=p.warnings||xu),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in p&&gu(t,u,!0))return void r.reRender();if(i&&!u.length&&wu(i,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(hu).some((function(e){return gu(n.relatedFields,e)})))return void r.reRender();break;default:if(h||(!s.length||u.length||i)&&wu(i,e,c,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),Y(De(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(js(Rs().mark((function o(){var a,s,c,u,d,f,h;return Rs().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Rc(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(h=uu(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xu;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?xu:r;t?o.push.apply(o,Ye(i)):n.push.apply(n,Ye(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",h);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=xu,r.warnings=xu,r.triggerMetaEvent(),r.reRender()),l})),Y(De(r),"isFieldValidating",(function(){return!!r.validatePromise})),Y(De(r),"isFieldTouched",(function(){return r.touched})),Y(De(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(Mc).getInitialValue)(r.getNamePath())})),Y(De(r),"getErrors",(function(){return r.errors})),Y(De(r),"getWarnings",(function(){return r.warnings})),Y(De(r),"isListField",(function(){return r.props.isListField})),Y(De(r),"isList",(function(){return r.props.isList})),Y(De(r),"isPreserve",(function(){return r.props.preserve})),Y(De(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Y(De(r),"getOnlyChild",(function(t){if("function"==typeof t){var n=r.getMeta();return K(K({},r.getOnlyChild(t(r.getControlled(),n,r.props.fieldContext))),{},{isFunction:!0})}var o=L(t);return 1===o.length&&e.isValidElement(o[0])?{child:o[0],isFunction:!1}:{child:o,isFunction:!1}})),Y(De(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return xo(e||t(!0),n)})),Y(De(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=r.getNamePath(),h=u.getInternalHooks,p=u.getFieldsValue,g=h(Mc).dispatch,m=r.getValue(),v=c||function(e){return Y({},l,e)},b=e[o],y=void 0!==n?v(m):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){X("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=K(K({},e),y);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):vu.apply(void 0,[l].concat(n)),s&&(e=s(e,m,p(!0))),g({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},Rc(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}})),x})),o.fieldContext)&&(0,(0,o.fieldContext.getInternalHooks)(Mc).initEntityValue)(De(r));return r}return Ie(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(Mc).registerField;this.cancelRegisterFunc=o(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,o=this.props.children,r=this.getOnlyChild(o),i=r.child;return r.isFunction?t=i:e.isValidElement(i)?t=e.cloneElement(i,this.getControlled(i.props)):(X(!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,o=bt(t,yu),r=e.useContext(Pc),i=e.useContext(Ic),a=void 0!==n?hu(n):void 0,s="keep";return o.isListField||(s="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===o.preserve&&o.isListField&&a.length<=1&&X(!1,"`preserve` should not apply on Form.List fields."),e.createElement(Cu,P({key:s,name:a,isListField:!!i},o,{fieldContext:r}))}Y(Cu,"contextType",Pc),Y(Cu,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Eu="__@field_split__";function ku(e){return e.map((function(e){return"".concat(q(e),":").concat(e)})).join(Eu)}var Ou=function(){function e(){Ne(this,e),Y(this,"kvs",new Map)}return Ie(e,[{key:"set",value:function(e,t){this.kvs.set(ku(e),t)}},{key:"get",value:function(e){return this.kvs.get(ku(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(ku(e))}},{key:"map",value:function(e){return Ye(this.kvs.entries()).map((function(t){var n=ot(t,2),o=n[0],r=n[1],i=o.split(Eu);return e({key:i.map((function(e){var t=ot(e.match(/^([^:]*):(.*)$/),3),n=t[1],o=t[2];return"number"===n?Number(o):o})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null})),e}}]),e}(),_u=["name"],$u=Ie((function e(t){var n=this;Ne(this,e),Y(this,"formHooked",!1),Y(this,"forceRootUpdate",void 0),Y(this,"subscribable",!0),Y(this,"store",{}),Y(this,"fieldEntities",[]),Y(this,"initialValues",{}),Y(this,"callbacks",{}),Y(this,"validateMessages",null),Y(this,"preserve",null),Y(this,"lastValidatePromise",null),Y(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}})),Y(this,"getInternalHooks",(function(e){return e===Mc?(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}):(X(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Y(this,"useSubscribe",(function(e){n.subscribable=e})),Y(this,"prevWithoutPreserves",null),Y(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=ko(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=Co(r,n,xo(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),Y(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Ou;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),Y(this,"getInitialValue",(function(e){var t=xo(n.initialValues,e);return e.length?ko(t):t})),Y(this,"setCallbacks",(function(e){n.callbacks=e})),Y(this,"setValidateMessages",(function(e){n.validateMessages=e})),Y(this,"setPreserve",(function(e){n.preserve=e})),Y(this,"watchList",[]),Y(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Y(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,o,e)}))}})),Y(this,"timeoutId",null),Y(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||X(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),Y(this,"updateStore",(function(e){n.store=e})),Y(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Y(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Ou;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Y(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=hu(e);return t.get(n)||{INVALIDATE_NAME_PATH:hu(e)}}))})),Y(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===q(e)&&(i=e.strict,r=e.filter),!0===o&&!r)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(r){var u="getMeta"in e?e.getMeta():null;r(u)&&s.push(c)}else s.push(c)})),pu(n.store,s.map(hu))})),Y(this,"getFieldValue",(function(e){n.warningUnhooked();var t=hu(e);return xo(n.store,t)})),Y(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:hu(e[n]),errors:[],warnings:[]}}))})),Y(this,"getFieldError",(function(e){n.warningUnhooked();var t=hu(e);return n.getFieldsError([t])[0].errors})),Y(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=hu(e);return n.getFieldsError([t])[0].warnings})),Y(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i=t[0],a=t[1],s=!1;0===t.length?r=null:1===t.length?Array.isArray(i)?(r=i.map(hu),s=!1):(r=null,s=i):(r=i.map(hu),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!r)return s?l.every((function(e){return c(e)||e.isList()})):l.some(c);var u=new Ou;r.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();r.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Ye(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return s?f.every(d):f.some(d)})),Y(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Y(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(hu);return t.some((function(e){var t=e.getNamePath();return gu(o,t)&&e.isFieldValidating()}))})),Y(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Y(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ou,o=n.getFieldEntities(!0);o.forEach((function(e){var n=e.props.initialValue,o=e.getNamePath();if(void 0!==n){var r=t.get(o)||new Set;r.add({entity:e,value:n}),t.set(o,r)}}));var r;e.entities?r=e.entities:e.namePathList?(r=[],e.namePathList.forEach((function(e){var n,o=t.get(e);o&&(n=r).push.apply(n,Ye(Ye(o).map((function(e){return e.entity}))))}))):r=o,r.forEach((function(o){if(void 0!==o.props.initialValue){var r=o.getNamePath();if(void 0!==n.getInitialValue(r))X(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=t.get(r);if(i&&i.size>1)X(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(r);o.isListField()||e.skipExist&&void 0!==a||n.updateStore(Co(n.store,r,Ye(i)[0].value))}}}}))})),Y(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(ko(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(hu);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Co(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),Y(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=bt(e,_u),a=hu(r);o.push(a),"value"in i&&n.updateStore(Co(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),Y(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=K(K({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),Y(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===xo(n.store,o)&&n.updateStore(Co(n.store,o,t))}})),Y(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Y(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(r)&&(!o||i.length>1)){var a=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!mu(e.getNamePath(),t)}))){var s=n.store;n.updateStore(Co(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Y(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var r=e.namePath,i=e.triggerName;n.validateFields([r],{triggerName:i})}})),Y(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=K(K({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),Y(this,"triggerDependenciesUpdate",(function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat(Ye(o))}),o})),Y(this,"updateValue",(function(e,t){var o=hu(e),r=n.store;n.updateStore(Co(n.store,o,t)),n.notifyObservers(r,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var i=n.triggerDependenciesUpdate(r,o),a=n.callbacks.onValuesChange;a&&a(pu(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(Ye(i)))})),Y(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=ko(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Y(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Y(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new Ou;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=hu(t);r.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){(r.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(o.push(r),e(r))}}))}(e),o})),Y(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new Ou;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),r.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=r.filter((function(t){var n=t.name;return gu(e,n)}));a.length&&o(a,r)}})),Y(this,"validateFields",(function(e,t){var o,r;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,r=t):r=e;var i=!!o,a=i?o.map(hu):[],s=[],l=String(Date.now()),c=new Set,u=r||{},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(c.add(t.join(l)),!i||gu(a,t,d)){var o=e.validateRules(K({validateMessages:K(K({},ru),n.validateMessages)},r));s.push(o.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,o=[],r=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?r.push.apply(r,Ye(n)):o.push.apply(o,Ye(n))})),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}})))}}}));var h=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise((function(r,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,o[a]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=h,h.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 p=h.then((function(){return n.lastValidatePromise===h?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!==h})}));p.catch((function(e){return e}));var g=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(g),p})),Y(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 Mu(t){var n=e.useRef(),o=ot(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var r=new $u((function(){o({})}));n.current=r.getForm()}return[n.current]}var Nu=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Pu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Iu=function(t,n){var o=t.name,r=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=void 0===c?"form":c,d=t.validateMessages,f=t.validateTrigger,h=void 0===f?"onChange":f,p=t.onValuesChange,g=t.onFieldsChange,m=t.onFinish,v=t.onFinishFailed,b=t.clearOnDestroy,y=bt(t,Pu),x=e.useRef(null),w=e.useContext(Nu),C=ot(Mu(a),1)[0],S=C.getInternalHooks(Mc),E=S.useSubscribe,k=S.setInitialValues,O=S.setCallbacks,_=S.setValidateMessages,$=S.setPreserve,M=S.destroyForm;e.useImperativeHandle(n,(function(){return K(K({},C),{},{nativeElement:x.current})})),e.useEffect((function(){return w.registerForm(o,C),function(){w.unregisterForm(o)}}),[w,C,o]),_(K(K({},w.validateMessages),d)),O({onValuesChange:p,onFieldsChange:function(e){if(w.triggerFormChange(o,e),g){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];g.apply(void 0,[e].concat(n))}},onFinish:function(e){w.triggerFormFinish(o,e),m&&m(e)},onFinishFailed:v}),$(s);var N,I=e.useRef(null);k(r,!I.current),I.current||(I.current=!0),e.useEffect((function(){return function(){return M(b)}}),[]);var R="function"==typeof l;R?N=l(C.getFieldsValue(!0),C):N=l;E(!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"!==q(e)||"object"!==q(t))return!1;var n=Object.keys(e),o=Object.keys(t);return Ye(new Set([].concat(n,o))).every((function(n){var o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r}))})(T.current||[],i||[])||C.setFields(i||[]),T.current=i}),[i,C]);var j=e.useMemo((function(){return K(K({},C),{},{validateTrigger:h})}),[C,h]),A=e.createElement(Ic.Provider,{value:null},e.createElement(Pc.Provider,{value:j},N));return!1===u?A:e.createElement(u,P({},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 Ru(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var Tu="production"!==process.env.NODE_ENV?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__");X(a(t).current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var ju=e.forwardRef(Iu);ju.FormProvider=function(t){var n=t.validateMessages,o=t.onFormChange,r=t.onFormFinish,i=t.children,a=e.useContext(Nu),s=e.useRef({});return e.createElement(Nu.Provider,{value:K(K({},a),{},{validateMessages:K(K({},a.validateMessages),n),triggerFormChange:function(e,t){o&&o(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=K(K({},s.current),{},Y({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=K({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},ju.Field=Su,ju.List=function(t){var n=t.name,o=t.initialValue,r=t.children,i=t.rules,a=t.validateTrigger,s=t.isListField,l=e.useContext(Pc),c=e.useContext(Ic),u=e.useRef({keys:[],id:0}).current,d=e.useMemo((function(){var e=hu(l.prefixName)||[];return[].concat(Ye(e),Ye(hu(n)))}),[l.prefixName,n]),f=e.useMemo((function(){return K(K({},l),{},{prefixName:d})}),[l,d]),h=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 r?(X(!1,"Form.List only accepts function as children."),null):e.createElement(Ic.Provider,{value:h},e.createElement(Pc.Provider,{value:f},e.createElement(Su,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:o,isList:!0,isListField:null!=s?s:!!c},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(d||[])||[]},c={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(Ye(u.keys.slice(0,t)),[u.id],Ye(u.keys.slice(t))),i([].concat(Ye(n.slice(0,t)),[e],Ye(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&X(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Ye(u.keys),[u.id]),i([].concat(Ye(n),[e]))),u.id+=1},remove:function(e){var t=s(),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=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=bu(u.keys,e,t),i(bu(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&X(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),c,t)}))))},ju.useForm=Mu,ju.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t[1],s=void 0===i?{}:i,c=function(e){return e&&!!e._init}(s)?{form:s}:s,f=c.form,h=ot(d(),2),p=h[0],g=h[1],m=u((function(){return Ru(p)}),[p]),v=a(m);v.current=m;var b=r(Pc),y=f||b,x=y&&y._init;"production"!==process.env.NODE_ENV&&X(2===t.length&&!f||x,"useWatch requires a form instance since it can not auto detect from context.");var w=hu(o),C=a(w);return C.current=w,Tu(w),l((function(){if(x){var e=y.getFieldsValue,t=(0,y.getInternalHooks)(Mc).registerWatch,n=function(e,t){var n=c.preserve?t:e;return"function"==typeof o?o(n):xo(n,C.current)},r=t((function(e,t){var o=n(e,t),r=Ru(o);v.current!==r&&(v.current=r,g(o))})),i=n(e(),e(!0));return p!==i&&g(i),r}}),[x]),p};const Au=e.createContext({});"production"!==process.env.NODE_ENV&&(Au.displayName="FormItemInputContext");const Du=t=>{let{children:n,status:o,override:i}=t;const a=r(Au),s=u((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,o&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[o,i,a]);return e.createElement(Au.Provider,{value:s},n)},Lu=i(void 0),zu=e=>{const{space:n,form:o,children:r}=e;if(null==r)return null;let i=r;return o&&(i=t.createElement(Du,{override:!0,status:!0},i)),n&&(i=t.createElement(hl,null,i)),i};var Bu=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 Fu(e,t){return Array.isArray(e)||void 0===t?Bu(e):function(e,t){if(!Bu(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}const Hu=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`}}}),Vu=e=>({animationDuration:e,animationFillMode:"both"}),Wu=e=>({animationDuration:e,animationFillMode:"both"}),Xu=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:Object.assign(Object.assign({},Vu(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},Wu(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},qu=new vo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Uu=new vo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Yu=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[Xu(o,qu,Uu,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Gu={"slide-up":{inKeyframes:new vo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new vo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new vo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new vo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new vo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new vo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new vo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new vo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},Ku=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Gu[t];return[Xu(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Zu=new vo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Qu=new vo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ju=new vo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ed=new vo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),td=new vo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),nd=new vo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),od={zoom:{inKeyframes:Zu,outKeyframes:Qu},"zoom-big":{inKeyframes:Ju,outKeyframes:ed},"zoom-big-fast":{inKeyframes:Ju,outKeyframes:ed},"zoom-left":{inKeyframes:new vo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new vo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new vo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new vo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:td,outKeyframes:nd},"zoom-down":{inKeyframes:new vo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new vo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},rd=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=od[t];return[Xu(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function id(e){return{position:e,inset:0}}const ad=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},id("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},id("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Yu(e)}]},sd=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${zt(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Bi(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${zt(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:zt(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Vi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${zt(e.borderRadiusLG)} ${zt(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${zt(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},ld=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}};Xi("Modal",(e=>{const t=(e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return yi(e,{modalHeaderHeight:e.calc(e.calc(o).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})})(e);return[sd(t),ld(t),ad(t),rd(t,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${zt(e.paddingMD)} ${zt(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${zt(e.padding)} ${zt(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${zt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${zt(e.paddingXS)} ${zt(e.padding)}`:0,footerBorderTop:e.wireframe?`${zt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${zt(e.borderRadiusLG)} ${zt(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${zt(2*e.padding)} ${zt(2*e.padding)} ${zt(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM})),{unitless:{titleLineHeight:!0}});var cd=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))},ud=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],dd=void 0;function fd(t,n){var o=t.prefixCls,r=t.invalidate,i=t.item,a=t.renderItem,s=t.responsive,l=t.responsiveDisabled,c=t.registerSize,u=t.itemKey,d=t.className,f=t.style,h=t.children,p=t.display,g=t.order,m=t.component,v=void 0===m?"div":m,b=bt(t,ud),y=s&&!p;function x(e){c(u,e)}e.useEffect((function(){return function(){x(null)}}),[]);var w,C=a&&i!==dd?a(i):h;r||(w={opacity:y?0:1,height:y?0:dd,overflowY:y?"hidden":dd,order:s?g:dd,pointerEvents:y?"none":dd,position:y?"absolute":dd});var S={};y&&(S["aria-hidden"]=!0);var E=e.createElement(v,P({className:N(!r&&o,d),style:K(K({},w),f)},S,b,{ref:n}),C);return s&&(E=e.createElement(Ve,{onResize:function(e){x(e.offsetWidth)},disabled:l},E)),E}var hd=e.forwardRef(fd);function pd(){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 gd(t,n){var o=ot(e.useState(n),2),r=o[0],i=o[1];return[r,fi((function(e){t((function(){i(e)}))}))]}hd.displayName="Item";var md=t.createContext(null),vd=["component"],bd=["className"],yd=["className"],xd=function(t,n){var o=e.useContext(md);if(!o){var r=t.component,i=void 0===r?"div":r,a=bt(t,vd);return e.createElement(i,P({},a,{ref:n}))}var s=o.className,l=bt(o,bd),c=t.className,u=bt(t,yd);return e.createElement(md.Provider,{value:null},e.createElement(hd,P({ref:n,className:N(s,c)},l,u)))},wd=e.forwardRef(xd);wd.displayName="RawItem";var Cd=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Sd="responsive",Ed="invalidate";function kd(e){return"+ ".concat(e.length," ...")}function Od(t,n){var o=t.prefixCls,r=void 0===o?"rc-overflow":o,i=t.data,a=void 0===i?[]:i,s=t.renderItem,l=t.renderRawItem,c=t.itemKey,f=t.itemWidth,h=void 0===f?10:f,g=t.ssr,m=t.style,v=t.className,b=t.maxCount,y=t.renderRest,x=t.renderRawRest,w=t.suffix,C=t.component,S=void 0===C?"div":C,E=t.itemComponent,k=t.onVisibleChange,O=bt(t,Cd),_="full"===g,$=pd(),M=ot(gd($,null),2),I=M[0],R=M[1],T=I||0,j=ot(gd($,new Map),2),A=j[0],D=j[1],L=ot(gd($,0),2),z=L[0],B=L[1],F=ot(gd($,0),2),H=F[0],V=F[1],W=ot(gd($,0),2),X=W[0],q=W[1],U=ot(d(null),2),Y=U[0],G=U[1],Z=ot(d(null),2),Q=Z[0],J=Z[1],ee=e.useMemo((function(){return null===Q&&_?Number.MAX_SAFE_INTEGER:Q||0}),[Q,I]),te=ot(d(!1),2),ne=te[0],oe=te[1],re="".concat(r,"-item"),ie=Math.max(z,H),ae=b===Sd,se=a.length&&ae,le=b===Ed,ce=se||"number"==typeof b&&a.length>b,ue=u((function(){var e=a;return se?e=null===I&&_?a:a.slice(0,Math.min(a.length,T/h)):"number"==typeof b&&(e=a.slice(0,b)),e}),[a,h,I,b,se]),de=u((function(){return se?a.slice(ee+1):a.slice(ue.length)}),[a,ue,se,ee]),fe=p((function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t}),[c]),he=p(s||function(e){return e},[s]);function pe(e,t,n){(Q!==e||void 0!==t&&t!==Y)&&(J(e),n||(oe(e<a.length-1),null==k||k(e)),void 0!==t&&G(t))}function ge(e,t){D((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function me(e){return A.get(fe(ue[e],e))}Xt((function(){if(T&&"number"==typeof ie&&ue){var e=X,t=ue.length,n=t-1;if(!t)return void pe(0,null);for(var o=0;o<t;o+=1){var r=me(o);if(_&&(r=r||0),void 0===r){pe(o-1,void 0,!0);break}if(e+=r,0===n&&e<=T||o===n-1&&e+me(n)<=T){pe(n,null);break}if(e+ie>T){pe(o-1,e-r-X+H);break}}w&&me(0)+X>T&&G(null)}}),[T,A,H,X,fe,ue]);var ve=ne&&!!de.length,be={};null!==Y&&se&&(be={position:"absolute",left:Y,top:0});var ye,xe={prefixCls:re,responsive:se,component:E,invalidate:le},we=l?function(t,n){var o=fe(t,n);return e.createElement(md.Provider,{key:o,value:K(K({},xe),{},{order:n,item:t,itemKey:o,registerSize:ge,display:n<=ee})},l(t,n))}:function(t,n){var o=fe(t,n);return e.createElement(hd,P({},xe,{order:n,key:o,item:t,renderItem:he,itemKey:o,registerSize:ge,display:n<=ee}))},Ce={order:ve?ee:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){V(t),B(H)},display:ve};if(x)x&&(ye=e.createElement(md.Provider,{value:K(K({},xe),Ce)},x(de)));else{var Se=y||kd;ye=e.createElement(hd,P({},xe,Ce),"function"==typeof Se?Se(de):Se)}var Ee=e.createElement(S,P({className:N(!le&&r,v),style:m,ref:n},O),ue.map(we),ce?ye:null,w&&e.createElement(hd,P({},xe,{responsive:ae,responsiveDisabled:!se,order:ee,className:"".concat(re,"-suffix"),registerSize:function(e,t){q(t)},display:!0,style:be}),w));return ae&&(Ee=e.createElement(Ve,{onResize:function(e,t){R(t.clientWidth)},disabled:!se},Ee)),Ee}var _d=e.forwardRef(Od);function $d(t){var n=t.prefixCls,o=t.align,r=t.arrow,i=t.arrowPos,a=r||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,d=i.y,f=void 0===d?0:d,h=e.useRef();if(!o||!o.points)return null;var p={position:"absolute"};if(!1!==o.autoArrow){var g=o.points[0],m=o.points[1],v=g[0],b=g[1],y=m[0],x=m[1];v!==y&&["t","b"].includes(v)?"t"===v?p.top=0:p.bottom=0:p.top=f,b!==x&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=u}return e.createElement("div",{ref:h,className:N("".concat(n,"-arrow"),s),style:p},l)}function Md(t){var n=t.prefixCls,o=t.open,r=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Ra,P({},a,{motionAppear:!0,visible:o,removeOnLeave:!0}),(function(t){var o=t.className;return e.createElement("div",{style:{zIndex:r},className:N("".concat(n,"-mask"),o)})})):null}_d.displayName="Overflow",_d.Item=wd,_d.RESPONSIVE=Sd,_d.INVALIDATE=Ed;var Nd=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(Nd.displayName="PopupContent");var Pd=e.forwardRef((function(t,n){var o=t.popup,r=t.className,i=t.prefixCls,a=t.style,s=t.target,l=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,f=t.onClick,h=t.mask,p=t.arrow,g=t.arrowPos,m=t.align,v=t.motion,b=t.maskMotion,y=t.forceRender,x=t.getPopupContainer,w=t.autoDestroy,C=t.portal,S=t.zIndex,E=t.onMouseEnter,k=t.onMouseLeave,O=t.onPointerEnter,_=t.ready,$=t.offsetX,M=t.offsetY,I=t.offsetR,R=t.offsetB,T=t.onAlign,j=t.onPrepare,A=t.stretch,D=t.targetWidth,L=t.targetHeight,z="function"==typeof o?o():o,B=c||u,F=(null==x?void 0:x.length)>0,H=ot(e.useState(!x||!F),2),V=H[0],W=H[1];if(Xt((function(){!V&&F&&s&&W(!0)}),[V,F,s]),!V)return null;var X="auto",q={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(_||!c){var U,Y=m.points,G=m.dynamicInset||(null===(U=m._experimental)||void 0===U?void 0:U.dynamicInset),Z=G&&"r"===Y[0][1],Q=G&&"b"===Y[0][0];Z?(q.right=I,q.left=X):(q.left=$,q.right=X),Q?(q.bottom=R,q.top=X):(q.top=M,q.bottom=X)}var J={};return A&&(A.includes("height")&&L?J.height=L:A.includes("minHeight")&&L&&(J.minHeight=L),A.includes("width")&&D?J.width=D:A.includes("minWidth")&&D&&(J.minWidth=D)),c||(J.pointerEvents="none"),e.createElement(C,{open:y||B,getContainer:x&&function(){return x(s)},autoDestroy:w},e.createElement(Md,{prefixCls:i,open:c,zIndex:S,mask:h,motion:b}),e.createElement(Ve,{onResize:T,disabled:!c},(function(t){return e.createElement(Ra,P({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:j,onEnterPrepare:j,visible:c,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),l(e)}}),(function(o,s){var l=o.className,u=o.style,h=N(i,l,r);return e.createElement("div",{ref:te(t,n,s),className:h,style:K(K(K(K({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},q),J),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:E,onMouseLeave:k,onPointerEnter:O,onClick:f},p&&e.createElement($d,{prefixCls:i,arrow:p,arrowPos:g,align:m}),e.createElement(Nd,{cache:!c&&!d},z))}))})))}));"production"!==process.env.NODE_ENV&&(Pd.displayName="Popup");var Id=e.forwardRef((function(t,n){var o=t.children,r=t.getTriggerDOMNode,i=oe(o),a=e.useCallback((function(e){ee(n,r?r(e):e)}),[r]),s=ne(a,o.ref);return i?e.cloneElement(o,{ref:s}):o}));"production"!==process.env.NODE_ENV&&(Id.displayName="TriggerWrapper");var Rd=e.createContext(null);function Td(e){return e?Array.isArray(e)?e:[e]:[]}function jd(){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 Ad(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function Dd(e){return e.ownerDocument.defaultView}function Ld(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=Dd(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function zd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Bd(e){return zd(parseFloat(e),0)}function Fd(e,t){var n=K({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Dd(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,h=e.clientWidth,p=Bd(i),g=Bd(a),m=Bd(s),v=Bd(l),b=zd(Math.round(c.width/f*1e3)/1e3),y=zd(Math.round(c.height/u*1e3)/1e3),x=(f-h-m-v)*b,w=(u-d-p-g)*y,C=p*y,S=g*y,E=m*b,k=v*b,O=0,_=0;if("clip"===o){var $=Bd(r);O=$*b,_=$*y}var M=c.x+E-O,N=c.y+C-_,P=M+c.width+2*O-E-k-x,I=N+c.height+2*_-C-S-w;n.left=Math.max(n.left,M),n.top=Math.max(n.top,N),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,I)}})),n}function Hd(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 Vd(e,t){var n=ot(t||[],2),o=n[0],r=n[1];return[Hd(e.width,o),Hd(e.height,r)]}function Wd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Xd(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function qd(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}var Ud=["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 Yd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pc,n=e.forwardRef((function(n,o){var r=n.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=n.children,s=n.action,l=void 0===s?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,h=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,g=n.mouseEnterDelay,m=n.mouseLeaveDelay,v=void 0===m?.1:m,b=n.focusDelay,y=n.blurDelay,x=n.mask,w=n.maskClosable,C=void 0===w||w,S=n.getPopupContainer,E=n.forceRender,k=n.autoDestroy,O=n.destroyPopupOnHide,_=n.popup,$=n.popupClassName,M=n.popupStyle,P=n.popupPlacement,I=n.builtinPlacements,R=void 0===I?{}:I,T=n.popupAlign,j=n.zIndex,A=n.stretch,D=n.getPopupClassNameFromAlign,L=n.fresh,z=n.alignPoint,B=n.onPopupClick,H=n.onPopupAlign,V=n.arrow,W=n.popupMotion,X=n.maskMotion,q=n.popupTransitionName,U=n.popupAnimation,Y=n.maskTransitionName,G=n.maskAnimation,Q=n.className,J=n.getTriggerDOMNode,ee=bt(n,Ud),te=k||O||!1,ne=ot(e.useState(!1),2),oe=ne[0],re=ne[1];Xt((function(){re(cd())}),[]);var ie=e.useRef({}),ae=e.useContext(Rd),se=e.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),le=bc(),ce=ot(e.useState(null),2),ue=ce[0],de=ce[1],fe=e.useRef(null),he=fi((function(e){fe.current=e,Z(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(le,e)})),pe=ot(e.useState(null),2),ge=pe[0],me=pe[1],ve=e.useRef(null),be=fi((function(e){Z(e)&&ge!==e&&(me(e),ve.current=e)})),ye=e.Children.only(a),xe=(null==ye?void 0:ye.props)||{},we={},Ce=function(e,t){var n,o;return e===t||t.contains(e)||(null===(n=Ja(t))||void 0===n?void 0:n.host)===e||t.contains(null===(o=Ja(e))||void 0===o?void 0:o.host)},Se=fi((function(e){var t=ge,n=Ce.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Ee=Ad(i,W,U,q),ke=Ad(i,X,G,Y),Oe=ot(e.useState(f||!1),2),_e=Oe[0],$e=Oe[1],Me=null!=d?d:_e,Ne=fi((function(e){void 0===d&&$e(e)}));Xt((function(){$e(d||!1)}),[d]);var Pe=e.useRef(Me);Pe.current=Me;var Ie=e.useRef([]);Ie.current=[];var Re=fi((function(e){var t;Ne(e),(null!==(t=Ie.current[Ie.current.length-1])&&void 0!==t?t:Me)!==e&&(Ie.current.push(e),null==h||h(e))})),Te=e.useRef(),je=function(){clearTimeout(Te.current)},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;je(),0===t?Re(e):Te.current=setTimeout((function(){Re(e)}),1e3*t)};e.useEffect((function(){return je}),[]);var De=ot(e.useState(!1),2),Le=De[0],ze=De[1];Xt((function(e){e&&!Me||ze(!0)}),[Me]);var Be=ot(e.useState(null),2),Fe=Be[0],He=Be[1],We=ot(e.useState(null),2),Xe=We[0],qe=We[1],Ue=function(e){qe([e.clientX,e.clientY])},Ge=function(t,n,o,r,i,a,s){var l=ot(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),c=l[0],u=l[1],d=e.useRef(0),f=e.useMemo((function(){return n?Ld(n):[]}),[n]),h=e.useRef({});t||(h.current={});var p=fi((function(){if(n&&o&&t){var e,l,c,d,p,g=n,m=g.ownerDocument,v=Dd(g).getComputedStyle(g),b=v.width,y=v.height,x=v.position,w=g.style.left,C=g.style.top,S=g.style.right,E=g.style.bottom,k=g.style.overflow,O=K(K({},i[r]),a),_=m.createElement("div");if(null===(e=g.parentElement)||void 0===e||e.appendChild(_),_.style.left="".concat(g.offsetLeft,"px"),_.style.top="".concat(g.offsetTop,"px"),_.style.position=x,_.style.height="".concat(g.offsetHeight,"px"),_.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(o))p={x:o[0],y:o[1],width:0,height:0};else{var $,M,N=o.getBoundingClientRect();N.x=null!==($=N.x)&&void 0!==$?$:N.left,N.y=null!==(M=N.y)&&void 0!==M?M:N.top,p={x:N.x,y:N.y,width:N.width,height:N.height}}var P=g.getBoundingClientRect();P.x=null!==(l=P.x)&&void 0!==l?l:P.left,P.y=null!==(c=P.y)&&void 0!==c?c:P.top;var I=m.documentElement,R=I.clientWidth,T=I.clientHeight,j=I.scrollWidth,A=I.scrollHeight,D=I.scrollTop,L=I.scrollLeft,z=P.height,B=P.width,F=p.height,H=p.width,V={left:0,top:0,right:R,bottom:T},W={left:-L,top:-D,right:j-L,bottom:A-D},X=O.htmlRegion,q="visible",U="visibleFirst";"scroll"!==X&&X!==U&&(X=q);var Y=X===U,G=Fd(W,f),Q=Fd(V,f),J=X===q?Q:G,ee=Y?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=S,g.style.bottom=E,g.style.overflow=k,null===(d=g.parentElement)||void 0===d||d.removeChild(_);var ne=zd(Math.round(B/parseFloat(b)*1e3)/1e3),oe=zd(Math.round(z/parseFloat(y)*1e3)/1e3);if(0===ne||0===oe||Z(o)&&!el(o))return;var re=O.offset,ie=O.targetOffset,ae=ot(Vd(P,re),2),se=ae[0],le=ae[1],ce=ot(Vd(p,ie),2),ue=ce[0],de=ce[1];p.x-=ue,p.y-=de;var fe=ot(O.points||[],2),he=fe[0],pe=Wd(fe[1]),ge=Wd(he),me=Xd(p,pe),ve=Xd(P,ge),be=K({},O),ye=me.x-ve.x+se,xe=me.y-ve.y+le;function pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,o=P.x+e,r=P.y+t,i=o+B,a=r+z,s=Math.max(o,n.left),l=Math.max(r,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var we,Ce,Se,Ee,ke=pt(ye,xe),Oe=pt(ye,xe,Q),_e=Xd(p,["t","l"]),$e=Xd(P,["t","l"]),Me=Xd(p,["b","r"]),Ne=Xd(P,["b","r"]),Pe=O.overflow||{},Ie=Pe.adjustX,Re=Pe.adjustY,Te=Pe.shiftX,je=Pe.shiftY,Ae=function(e){return"boolean"==typeof e?e:e>=0};function gt(){we=P.y+xe,Ce=we+z,Se=P.x+ye,Ee=Se+B}gt();var De=Ae(Re),Le=ge[0]===pe[0];if(De&&"t"===ge[0]&&(Ce>ee.bottom||h.current.bt)){var ze=xe;Le?ze-=z-F:ze=_e.y-Ne.y-le;var Be=pt(ye,ze),Fe=pt(ye,ze,Q);Be>ke||Be===ke&&(!Y||Fe>=Oe)?(h.current.bt=!0,xe=ze,le=-le,be.points=[qd(ge,0),qd(pe,0)]):h.current.bt=!1}if(De&&"b"===ge[0]&&(we<ee.top||h.current.tb)){var He=xe;Le?He+=z-F:He=Me.y-$e.y-le;var Ve=pt(ye,He),We=pt(ye,He,Q);Ve>ke||Ve===ke&&(!Y||We>=Oe)?(h.current.tb=!0,xe=He,le=-le,be.points=[qd(ge,0),qd(pe,0)]):h.current.tb=!1}var Xe=Ae(Ie),qe=ge[1]===pe[1];if(Xe&&"l"===ge[1]&&(Ee>ee.right||h.current.rl)){var Ue=ye;qe?Ue-=B-H:Ue=_e.x-Ne.x-se;var Ye=pt(Ue,xe),Ge=pt(Ue,xe,Q);Ye>ke||Ye===ke&&(!Y||Ge>=Oe)?(h.current.rl=!0,ye=Ue,se=-se,be.points=[qd(ge,1),qd(pe,1)]):h.current.rl=!1}if(Xe&&"r"===ge[1]&&(Se<ee.left||h.current.lr)){var Ke=ye;qe?Ke+=B-H:Ke=Me.x-$e.x-se;var Ze=pt(Ke,xe),Qe=pt(Ke,xe,Q);Ze>ke||Ze===ke&&(!Y||Qe>=Oe)?(h.current.lr=!0,ye=Ke,se=-se,be.points=[qd(ge,1),qd(pe,1)]):h.current.lr=!1}gt();var Je=!0===Te?0:Te;"number"==typeof Je&&(Se<Q.left&&(ye-=Se-Q.left-se,p.x+H<Q.left+Je&&(ye+=p.x-Q.left+H-Je)),Ee>Q.right&&(ye-=Ee-Q.right-se,p.x>Q.right-Je&&(ye+=p.x-Q.right+Je)));var et=!0===je?0:je;"number"==typeof et&&(we<Q.top&&(xe-=we-Q.top-le,p.y+F<Q.top+et&&(xe+=p.y-Q.top+F-et)),Ce>Q.bottom&&(xe-=Ce-Q.bottom-le,p.y>Q.bottom-et&&(xe+=p.y-Q.bottom+et)));var tt=P.x+ye,nt=tt+B,rt=P.y+xe,it=rt+z,at=p.x,st=at+H,lt=p.y,ct=lt+F,ut=(Math.max(tt,at)+Math.min(nt,st))/2-tt,dt=(Math.max(rt,lt)+Math.min(it,ct))/2-rt;null==s||s(n,be);var ft=te.right-P.x-(ye+P.width),ht=te.bottom-P.y-(xe+P.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===oe&&(xe=Math.round(xe),ht=Math.round(ht)),u({ready:!0,offsetX:ye/ne,offsetY:xe/oe,offsetR:ft/ne,offsetB:ht/oe,arrowX:ut/ne,arrowY:dt/oe,scaleX:ne,scaleY:oe,align:be})}})),g=function(){u((function(e){return K(K({},e),{},{ready:!1})}))};return Xt(g,[r]),Xt((function(){t||g()}),[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&p()}))}]}(Me,ue,z&&null!==Xe?Xe:ge,P,R,T,H),Ke=ot(Ge,11),Ze=Ke[0],Qe=Ke[1],Je=Ke[2],et=Ke[3],tt=Ke[4],nt=Ke[5],rt=Ke[6],it=Ke[7],at=Ke[8],st=Ke[9],lt=Ke[10],ct=function(t,n,o,r){return e.useMemo((function(){var e=Td(null!=o?o:n),i=Td(null!=r?r:n),a=new Set(e),s=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,n,o,r])}(oe,l,c,u),ut=ot(ct,2),dt=ut[0],ft=ut[1],ht=dt.has("click"),pt=ft.has("click")||ft.has("contextMenu"),gt=fi((function(){Le||lt()}));!function(e,t,n,o,r){Xt((function(){if(e&&t&&n){var i=n,a=Ld(t),s=Ld(i),l=Dd(i),c=new Set([l].concat(Ye(a),Ye(s)));function u(){o(),r()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),o(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(Me,ge,ue,gt,(function(){Pe.current&&z&&pt&&Ae(!1)})),Xt((function(){gt()}),[Xe,P]),Xt((function(){!Me||null!=R&&R[P]||gt()}),[JSON.stringify(T)]);var mt=e.useMemo((function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(jd(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(R,i,st,z);return N(e,null==D?void 0:D(st))}),[st,D,R,i,z]);e.useImperativeHandle(o,(function(){return{nativeElement:ve.current,popupElement:fe.current,forceAlign:gt}}));var vt=ot(e.useState(0),2),yt=vt[0],xt=vt[1],wt=ot(e.useState(0),2),Ct=wt[0],St=wt[1],Et=function(){if(A&&ge){var e=ge.getBoundingClientRect();xt(e.width),St(e.height)}};function kt(e,t,n,o){we[e]=function(r){var i;null==o||o(r),Ae(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=xe[e])||void 0===i||i.call.apply(i,[xe,r].concat(s))}}Xt((function(){Fe&&(lt(),Fe(),He(null))}),[Fe]),(ht||pt)&&(we.onClick=function(e){var t;Pe.current&&pt?Ae(!1):!Pe.current&&ht&&(Ue(e),Ae(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=xe.onClick)||void 0===t||t.call.apply(t,[xe,e].concat(o))}),function(t,n,o,r,i,a,s,l){var c=e.useRef(t);c.current=t,e.useEffect((function(){if(n&&r&&(!i||a)){var e=function(e){var t;c.current&&!s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&l(!1)},t=Dd(r);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var u,d,f=Ja(o);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&F((null==o||null===(u=o.getRootNode)||void 0===u?void 0:u.call(o))===(null===(d=r.getRootNode)||void 0===d?void 0:d.call(r)),"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,o,r,i,a])}(Me,pt,ge,ue,x,C,Se,Ae);var Ot,_t,$t=dt.has("hover"),Mt=ft.has("hover");$t&&(kt("onMouseEnter",!0,g,(function(e){Ue(e)})),kt("onPointerEnter",!0,g,(function(e){Ue(e)})),Ot=function(e){(Me||Le)&&null!=ue&&ue.contains(e.target)&&Ae(!0,g)},z&&(we.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),Mt&&(kt("onMouseLeave",!1,v),kt("onPointerLeave",!1,v),_t=function(){Ae(!1,v)}),dt.has("focus")&&kt("onFocus",!0,b),ft.has("focus")&&kt("onBlur",!1,y),dt.has("contextMenu")&&(we.onContextMenu=function(e){var t;Pe.current&&ft.has("contextMenu")?Ae(!1):(Ue(e),Ae(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=xe.onContextMenu)||void 0===t||t.call.apply(t,[xe,e].concat(o))}),Q&&(we.className=N(xe.className,Q));var Nt=K(K({},xe),we),Pt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(Pt[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=Nt[e])||void 0===t||t.call.apply(t,[Nt].concat(o)),ee[e].apply(ee,o)})}));var It=e.cloneElement(ye,K(K({},Nt),Pt)),Rt={x:nt,y:rt},Tt=V?K({},!0!==V?V:{}):null;return e.createElement(e.Fragment,null,e.createElement(Ve,{disabled:!Me,ref:be,onResize:function(){Et(),gt()}},e.createElement(Id,{getTriggerDOMNode:J},It)),e.createElement(Rd.Provider,{value:se},e.createElement(Pd,{portal:t,ref:he,prefixCls:i,popup:_,className:N($,mt),style:M,target:ge,onMouseEnter:Ot,onMouseLeave:_t,onPointerEnter:Ot,zIndex:j,open:Me,keepDom:Le,fresh:L,onClick:B,mask:x,motion:Ee,maskMotion:ke,onVisibleChanged:function(e){ze(!1),lt(),null==p||p(e)},onPrepare:function(){return new Promise((function(e){Et(),He((function(){return e}))}))},forceRender:E,autoDestroy:te,getPopupContainer:S,align:st,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}(pc);function Gd(e,t,n){return N({[`${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 Kd=(e,t)=>t||e,Zd=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:s}=r(Qr),l=r(Lu),c=null==s?void 0:s.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(o=null!=l?l:c)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,Zr.includes(u)]};var Qd={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"},Jd=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Qd}))},ef=e.forwardRef(Jd);"production"!==process.env.NODE_ENV&&(ef.displayName="CheckOutlined");var tf={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"},nf=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:tf}))},of=e.forwardRef(nf);function rf(t){var n=t.children,o=t.prefixCls,r=t.id,i=t.overlayInnerStyle,a=t.className,s=t.style;return e.createElement("div",{className:N("".concat(o,"-content"),a),style:s},e.createElement("div",{className:"".concat(o,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof n?n():n))}"production"!==process.env.NODE_ENV&&(of.displayName="SearchOutlined");var af={shiftX:64,adjustY:1},sf={adjustX:1,shiftY:!0},lf=[0,0],cf={left:{points:["cr","cl"],overflow:sf,offset:[-4,0],targetOffset:lf},right:{points:["cl","cr"],overflow:sf,offset:[4,0],targetOffset:lf},top:{points:["bc","tc"],overflow:af,offset:[0,-4],targetOffset:lf},bottom:{points:["tc","bc"],overflow:af,offset:[0,4],targetOffset:lf},topLeft:{points:["bl","tl"],overflow:af,offset:[0,-4],targetOffset:lf},leftTop:{points:["tr","tl"],overflow:sf,offset:[-4,0],targetOffset:lf},topRight:{points:["br","tr"],overflow:af,offset:[0,-4],targetOffset:lf},rightTop:{points:["tl","tr"],overflow:sf,offset:[4,0],targetOffset:lf},bottomRight:{points:["tr","br"],overflow:af,offset:[0,4],targetOffset:lf},rightBottom:{points:["bl","br"],overflow:sf,offset:[4,0],targetOffset:lf},bottomLeft:{points:["tl","bl"],overflow:af,offset:[0,4],targetOffset:lf},leftBottom:{points:["br","bl"],overflow:sf,offset:[-4,0],targetOffset:lf}},uf=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],df=function(t,n){var o=t.overlayClassName,r=t.trigger,i=void 0===r?["hover"]:r,s=t.mouseEnterDelay,l=void 0===s?0:s,c=t.mouseLeaveDelay,u=void 0===c?.1:c,d=t.overlayStyle,f=t.prefixCls,h=void 0===f?"rc-tooltip":f,p=t.children,m=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,y=t.animation,x=t.motion,w=t.placement,C=void 0===w?"right":w,S=t.align,E=void 0===S?{}:S,k=t.destroyTooltipOnHide,O=void 0!==k&&k,_=t.defaultVisible,$=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,I=t.id,R=t.showArrow,T=void 0===R||R,j=bt(t,uf),A=a(null);g(n,(function(){return A.current}));var D=K({},j);"visible"in t&&(D.popupVisible=t.visible);return e.createElement(Yd,P({popupClassName:o,prefixCls:h,popup:function(){return e.createElement(rf,{key:"content",prefixCls:h,id:I,overlayInnerStyle:M},N)},action:i,builtinPlacements:cf,popupPlacement:C,ref:A,popupAlign:E,getPopupContainer:$,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:y,popupMotion:x,defaultPopupVisible:_,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:T},D),p)},ff=c(df);const hf=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:l(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${zt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},pf=8;function gf(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?pf:o}}function mf(e,t){return e?t:{}}function vf(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},hf(e,t,r)),{"&:before":{background:t}})]},mf(!!l.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${zt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),mf(!!l.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${zt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),mf(!!l.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),mf(!!l.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}const bf={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"]}},yf={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"]}},xf=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function wf(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(bf).forEach((e=>{const c=o&&yf[e]||bf[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,xf.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-r;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+r;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-r;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+r}const d=gf({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-s}u.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},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),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),l}const Cf=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,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":r,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${zt(e.calc(c).div(2).equal())} ${zt(u)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,pf)}},[`${t}-content`]:{position:"relative"}}),Yi(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},vf(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Sf=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},gf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),s=r-o*(1-1/Math.sqrt(2)),l=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-l,d=c,f=2*r-a,h=s,p=2*r-0,g=i,m=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${h} A ${o} ${o} 0 0 0 ${p} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}(yi(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var Ef=function(e){const t=Xi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=yi(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[Cf(r),rd(e,"zoom-big-fast")]}),Sf,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const kf=Oi.map((e=>`${e}-inverse`));function Of(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Ye(kf),Ye(Oi)).includes(e):Oi.includes(e)}function _f(e,t){const n=Of(t),o=N({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}var $f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Mf=e.forwardRef(((t,n)=>{var o,r;const{prefixCls:i,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:h,destroyTooltipOnHide:p,arrow:g=!0,title:m,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=t,w=!!g,[,C]=Di(),{getPopupContainer:S,getPrefixCls:E,direction:k}=e.useContext(Qr),O=No("Tooltip"),_=e.useRef(null),$=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,(()=>{var e;return{forceAlign:$,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),$()},nativeElement:null===(e=_.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,o]=e;O.deprecated(!(n in t),n,o)})),"production"!==process.env.NODE_ENV&&O(!p||"boolean"==typeof p,"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[M,P]=gi(!1,{value:null!==(o=t.open)&&void 0!==o?o:t.visible,defaultValue:null!==(r=t.defaultOpen)&&void 0!==r?r:t.defaultVisible}),I=!m&&!v&&0!==m,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||wf({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===m?m:v||m||""),[v,m]),j=e.createElement(zu,{space:!0},"function"==typeof T?T():T),{getPopupContainer:A,placement:D="top",mouseEnterDelay:L=.1,mouseLeaveDelay:z=.1,overlayStyle:B,rootClassName:F}=t,H=$f(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=E("tooltip",i),W=E(),X=t["data-popover-inject"];let q=M;"open"in t||"visible"in t||!I||(q=!1);const U=e.isValidElement(d)&&!xs(d)?d:e.createElement("span",null,d),Y=U.props,G=Y.className&&"string"!=typeof Y.className?Y.className:N(Y.className,a||`${V}-open`),[K,Z,Q]=Ef(V,!X),J=_f(V,c),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=N(l,{[`${V}-rtl`]:"rtl"===k},J.className,F,Z,Q),[oe,re]=Is("Tooltip",H.zIndex),ie=e.createElement(ff,Object.assign({},H,{zIndex:oe,showArrow:w,placement:D,mouseEnterDelay:L,mouseLeaveDelay:z,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),B),getTooltipContainer:A||s||S,ref:_,builtinPlacements:R,overlay:j,visible:q,onVisibleChange:e=>{var n,o;P(!I&&e),I||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(o=t.onVisibleChange)||void 0===o||o.call(t,e))},afterVisibleChange:null!=f?f:h,overlayInnerStyle:te,arrowContent:e.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:Js(W,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),q?Cs(U,{className:G}):U);return K(e.createElement($s.Provider,{value:re},ie))})),Nf=Mf;"production"!==process.env.NODE_ENV&&(Nf.displayName="Tooltip"),Nf._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:o,placement:r="top",title:i,color:a,overlayInnerStyle:s}=t,{getPrefixCls:l}=e.useContext(Qr),c=l("tooltip",n),[u,d,f]=Ef(c),h=_f(c,a),p=h.arrowStyle,g=Object.assign(Object.assign({},s),h.overlayStyle),m=N(d,f,c,`${c}-pure`,`${c}-placement-${r}`,o,h.className);return u(e.createElement("div",{className:m,style:p},e.createElement("div",{className:`${c}-arrow`}),e.createElement(rf,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:g}),i)))};const Pf=new vo("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),If=new vo("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Rf=new vo("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Tf=new vo("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),jf=new vo("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Af=new vo("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Df=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return yi(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorBgContainer,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:r,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Lf=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*r,indicatorHeightSM:t,dotSize:o/2,textFontSize:o,textFontSizeSM:o,textFontWeight:"normal",statusSize:o/2}};var zf=Xi("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,badgeShadowSize:r,motionDurationSlow:i,textFontSize:a,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:h,calc:p}=e,g=`${o}-scroll-number`,m=Yi(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o},"a:hover &":{background:o}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Bi(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:zt(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(d).div(2).equal(),boxShadow:`0 0 0 ${zt(r)} ${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:s,lineHeight:zt(f),borderRadius:p(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${zt(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${zt(r)} ${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:Af,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:r,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Pf,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:h,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:If,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Rf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Tf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:jf,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%)"}}})}})(Df(e))),Lf);var Bf=Xi(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Yi(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Bi(e)),{position:"absolute",top:o,padding:`0 ${zt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:zt(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:r,height:r,color:"currentcolor",border:`${zt(i(r).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(r).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(r).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(Df(e))),Lf);const Ff=t=>{const{className:n,prefixCls:o,style:r,color:i,children:a,text:s,placement:l="end",rootClassName:c}=t,{getPrefixCls:u,direction:d}=e.useContext(Qr),f=u("ribbon",o),h=`${f}-wrapper`,[p,g,m]=Bf(f,h),v=Of(i,!1),b=N(f,`${f}-placement-${l}`,{[`${f}-rtl`]:"rtl"===d,[`${f}-color-${i}`]:v},n),y={},x={};return i&&!v&&(y.background=i,x.color=i),p(e.createElement("div",{className:N(h,c,g,m)},a,e.createElement("div",{className:N(b,g),style:Object.assign(Object.assign({},y),r)},e.createElement("span",{className:`${f}-text`},s),e.createElement("div",{className:`${f}-corner`,style:x}))))};"production"!==process.env.NODE_ENV&&(Ff.displayName="Ribbon");const Hf=t=>{const{prefixCls:n,value:o,current:r,offset:i=0}=t;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),e.createElement("span",{style:a,className:N(`${n}-only-unit`,{current:r})},o)};function Vf(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const Wf=t=>{const{prefixCls:n,count:o,value:r}=t,i=Number(r),a=Math.abs(o),[s,l]=e.useState(i),[c,u]=e.useState(a),d=()=>{l(i),u(a)};let f,h;if(e.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),s===i||Number.isNaN(i)||Number.isNaN(s))f=[e.createElement(Hf,Object.assign({},t,{key:i,current:!0}))],h={transition:"none"};else{f=[];const n=i+10,o=[];for(let e=i;e<=n;e+=1)o.push(e);const r=o.findIndex((e=>e%10===s));f=o.map(((n,o)=>{const i=n%10;return e.createElement(Hf,Object.assign({},t,{key:n,value:i,offset:o-r,current:o===r}))}));h={transform:`translateY(${-Vf(s,i,c<a?1:-1)}00%)`}}return e.createElement("span",{className:`${n}-only`,style:h,onTransitionEnd:d},f)};var Xf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const qf=e.forwardRef(((t,n)=>{const{prefixCls:o,count:r,className:i,motionClassName:a,style:s,title:l,show:c,component:u="sup",children:d}=t,f=Xf(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=e.useContext(Qr),p=h("scroll-number",o),g=Object.assign(Object.assign({},f),{"data-show":c,style:s,className:N(p,i,a),title:l});let m=r;if(r&&Number(r)%1==0){const t=String(r).split("");m=e.createElement("bdi",null,t.map(((n,o)=>e.createElement(Wf,{prefixCls:p,count:Number(r),value:n,key:t.length-o}))))}return(null==s?void 0:s.borderColor)&&(g.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?Cs(d,(e=>({className:N(`${p}-custom-component`,null==e?void 0:e.className,a)}))):e.createElement(u,Object.assign({},g,{ref:n}),m)}));var Uf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Yf=e.forwardRef(((t,n)=>{var o,r,i,s,l;const{prefixCls:c,scrollNumberPrefixCls:d,children:f,status:h,text:p,color:g,count:m=null,overflowCount:v=99,dot:b=!1,size:y="default",title:x,offset:w,style:C,className:S,rootClassName:E,classNames:k,styles:O,showZero:_=!1}=t,$=Uf(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:P,badge:I}=e.useContext(Qr),R=M("badge",c),[T,j,A]=zf(R),D=m>v?`${v}+`:m,L="0"===D||0===D,z=(null!=h||null!=g)&&(null===m||L&&!_),B=b&&!L,F=B?"":D,H=u((()=>(null==F||""===F||L&&!_)&&!B),[F,L,_,B]),V=a(m);H||(V.current=m);const W=V.current,X=a(F);H||(X.current=F);const q=X.current,U=a(B);H||(U.current=B);const Y=u((()=>{if(!w)return Object.assign(Object.assign({},null==I?void 0:I.style),C);const e={marginTop:w[1]};return"rtl"===P?e.left=parseInt(w[0],10):e.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},e),null==I?void 0:I.style),C)}),[P,w,C,null==I?void 0:I.style]),G=null!=x?x:"string"==typeof W||"number"==typeof W?W:void 0,K=H||!p?null:e.createElement("span",{className:`${R}-status-text`},p),Z=W&&"object"==typeof W?Cs(W,(e=>({style:Object.assign(Object.assign({},Y),e.style)}))):void 0,Q=Of(g,!1),J=N(null==k?void 0:k.indicator,null===(o=null==I?void 0:I.classNames)||void 0===o?void 0:o.indicator,{[`${R}-status-dot`]:z,[`${R}-status-${h}`]:!!h,[`${R}-color-${g}`]:Q}),ee={};g&&!Q&&(ee.color=g,ee.background=g);const te=N(R,{[`${R}-status`]:z,[`${R}-not-a-wrapper`]:!f,[`${R}-rtl`]:"rtl"===P},S,E,null==I?void 0:I.className,null===(r=null==I?void 0:I.classNames)||void 0===r?void 0:r.root,null==k?void 0:k.root,j,A);if(!f&&z){const t=Y.color;return T(e.createElement("span",Object.assign({},$,{className:te,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(i=null==I?void 0:I.styles)||void 0===i?void 0:i.root),Y)}),e.createElement("span",{className:J,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(s=null==I?void 0:I.styles)||void 0===s?void 0:s.indicator),ee)}),p&&e.createElement("span",{style:{color:t},className:`${R}-status-text`},p)))}return T(e.createElement("span",Object.assign({ref:n},$,{className:te,style:Object.assign(Object.assign({},null===(l=null==I?void 0:I.styles)||void 0===l?void 0:l.root),null==O?void 0:O.root)}),f,e.createElement(Ra,{visible:!H,motionName:`${R}-zoom`,motionAppear:!1,motionDeadline:1e3},(t=>{let{className:n}=t;var o,r;const i=M("scroll-number",d),a=U.current,s=N(null==k?void 0:k.indicator,null===(o=null==I?void 0:I.classNames)||void 0===o?void 0:o.indicator,{[`${R}-dot`]:a,[`${R}-count`]:!a,[`${R}-count-sm`]:"small"===y,[`${R}-multiple-words`]:!a&&q&&q.toString().length>1,[`${R}-status-${h}`]:!!h,[`${R}-color-${g}`]:Q});let l=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(r=null==I?void 0:I.styles)||void 0===r?void 0:r.indicator),Y);return g&&!Q&&(l=l||{},l.background=g),e.createElement(qf,{prefixCls:i,show:!H,motionClassName:n,className:s,count:q,title:G,style:l,key:"scrollNumber"},Z)})),K))})),Gf=Yf;Gf.Ribbon=Ff,"production"!==process.env.NODE_ENV&&(Gf.displayName="Badge");var Kf={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"},Zf=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Kf}))},Qf=e.forwardRef(Zf);"production"!==process.env.NODE_ENV&&(Qf.displayName="RightOutlined");var Jf=Es.ESC,eh=Es.TAB;var th=c((function(e,n){var o=e.overlay,r=e.arrow,i=e.prefixCls,a=u((function(){return"function"==typeof o?o():o}),[o]),s=te(n,null==a?void 0:a.ref);return t.createElement(t.Fragment,null,r&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:oe(a)?s:void 0}))})),nh={adjustX:1,adjustY:1},oh=[0,0],rh={topLeft:{points:["bl","tl"],overflow:nh,offset:[0,-4],targetOffset:oh},top:{points:["bc","tc"],overflow:nh,offset:[0,-4],targetOffset:oh},topRight:{points:["br","tr"],overflow:nh,offset:[0,-4],targetOffset:oh},bottomLeft:{points:["tl","bl"],overflow:nh,offset:[0,4],targetOffset:oh},bottom:{points:["tc","bc"],overflow:nh,offset:[0,4],targetOffset:oh},bottomRight:{points:["tr","br"],overflow:nh,offset:[0,4],targetOffset:oh}},ih=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ah(n,o){var r,i=n.arrow,a=void 0!==i&&i,s=n.prefixCls,l=void 0===s?"rc-dropdown":s,c=n.transitionName,u=n.animation,d=n.align,f=n.placement,h=void 0===f?"bottomLeft":f,p=n.placements,g=void 0===p?rh:p,m=n.getPopupContainer,v=n.showAction,b=n.hideAction,y=n.overlayClassName,x=n.overlayStyle,w=n.visible,C=n.trigger,S=void 0===C?["hover"]:C,E=n.autoFocus,k=n.overlay,O=n.children,_=n.onVisibleChange,$=bt(n,ih),M=ot(t.useState(),2),I=M[0],R=M[1],T="visible"in n?w:I,j=t.useRef(null),A=t.useRef(null),D=t.useRef(null);t.useImperativeHandle(o,(function(){return j.current}));var L=function(e){R(e),null==_||_(e)};!function(t){var n=t.visible,o=t.triggerRef,r=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,s=e.useRef(!1),l=function(){var e,t;n&&(null===(e=o.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==r||r(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),s.current=!0,0))},u=function(e){switch(e.keyCode){case Jf:l();break;case eh:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};e.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&et(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[n])}({visible:T,triggerRef:D,onVisibleChange:L,autoFocus:E,overlayRef:A});var z,B,F,H=function(){return t.createElement(th,{ref:A,overlay:k,prefixCls:l,arrow:a})},V=t.cloneElement(O,{className:N(null===(r=O.props)||void 0===r?void 0:r.className,T&&(z=n.openClassName,void 0!==z?z:"".concat(l,"-open"))),ref:oe(O)?te(D,O.ref):void 0}),W=b;return W||-1===S.indexOf("contextMenu")||(W=["click"]),t.createElement(Yd,P({builtinPlacements:g},$,{prefixCls:l,ref:j,popupClassName:N(y,Y({},"".concat(l,"-show-arrow"),a)),popupStyle:x,action:S,showAction:v,hideAction:W,popupPlacement:h,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:T,stretch:(B=n.minOverlayWidthMatchTrigger,F=n.alignPoint,("minOverlayWidthMatchTrigger"in n?B:!F)?"minWidth":""),popup:"function"==typeof k?H:H(),onPopupVisibleChange:L,onPopupClick:function(e){var t=n.onOverlayClick;R(!1),t&&t(e)},getPopupContainer:m}),V)}var sh=t.forwardRef(ah),lh=e.createContext(null);function ch(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function uh(t){return ch(e.useContext(lh),t)}var dh=["children","locked"],fh=e.createContext(null);function hh(t){var n=t.children,o=t.locked,r=bt(t,dh),i=e.useContext(fh),a=J((function(){return function(e,t){var n=K({},e);return Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n}(i,r)}),[i,r],(function(e,t){return!(o||e[0]===t[0]&&yt(e[1],t[1],!0))}));return e.createElement(fh.Provider,{value:a},n)}var ph=[],gh=e.createContext(null);function mh(){return e.useContext(gh)}var vh=e.createContext(ph);function bh(t){var n=e.useContext(vh);return e.useMemo((function(){return void 0!==t?[].concat(Ye(n),[t]):n}),[n,t])}var yh=e.createContext(null),xh=e.createContext({});function wh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(el(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Ch=Es.LEFT,Sh=Es.RIGHT,Eh=Es.UP,kh=Es.DOWN,Oh=Es.ENTER,_h=Es.ESC,$h=Es.HOME,Mh=Es.END,Nh=[Eh,kh,Ch,Sh];function Ph(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ye(e.querySelectorAll("*")).filter((function(e){return wh(e,t)}));return wh(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function Ih(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=Ph(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var Rh=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(ch(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function Th(t,n,o,r,i,a,s,l,c,u){var d=e.useRef(),f=e.useRef();f.current=n;var h=function(){et.cancel(d.current)};return e.useEffect((function(){return function(){h()}}),[]),function(e){var p=e.which;if([].concat(Nh,[Oh,_h,$h,Mh]).includes(p)){var g=a(),m=Rh(g,r),v=m,b=v.elements,y=v.key2element,x=v.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),C=x.get(w),S=function(e,t,n,o){var r,i,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&o===Oh)return{inlineTrigger:!0};var f=(Y(r={},Eh,l),Y(r,kh,c),r),h=(Y(i={},Ch,n?c:l),Y(i,Sh,n?l:c),Y(i,kh,u),Y(i,Oh,u),i),p=(Y(a={},Eh,l),Y(a,kh,c),Y(a,Oh,u),Y(a,_h,d),Y(a,Ch,n?u:d),Y(a,Sh,n?d:u),a);switch(null===(s={inline:f,horizontal:h,vertical:p,inlineSub:f,horizontalSub:p,verticalSub:p}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[o]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(t,1===s(C,!0).length,o,p);if(!S&&p!==$h&&p!==Mh)return;(Nh.includes(p)||[$h,Mh].includes(p))&&e.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=x.get(e);l(o),h(),d.current=et((function(){f.current===o&&t.focus()}))}};if([$h,Mh].includes(p)||S.sibling||!w){var k,O,_=Ph(k=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=p===$h?_[0]:p===Mh?_[_.length-1]:Ih(k,b,w,S.offset),E(O)}else if(S.inlineTrigger)c(C);else if(S.offset>0)c(C,!0),h(),d.current=et((function(){m=Rh(g,r);var e=w.getAttribute("aria-controls"),t=Ih(document.getElementById(e),m.elements);E(t)}),5);else if(S.offset<0){var $=s(C,!0),M=$[$.length-2],N=y.get(M);c(M,!1),E(N)}}null==u||u(e)}}var jh="__RC_UTIL_PATH_SPLIT__",Ah=function(e){return e.join(jh)},Dh="rc-menu-more";function Lh(){var t=ot(e.useState({}),2)[1],n=a(new Map),o=a(new Map),r=ot(e.useState([]),2),i=r[0],s=r[1],l=a(0),c=a(!1),u=p((function(e,r){"production"!==process.env.NODE_ENV&&X(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(r.join(" > "),"]"));var i=Ah(r);o.current.set(i,e),n.current.set(e,i),l.current+=1;var a=l.current;!function(e){Promise.resolve().then(e)}((function(){a===l.current&&(c.current||t({}))}))}),[]),d=p((function(e,t){var r=Ah(t);o.current.delete(r),n.current.delete(e)}),[]),f=p((function(e){s(e)}),[]),h=p((function(e,t){var o=n.current.get(e)||"",r=o.split(jh);return t&&i.includes(r[0])&&r.unshift(Dh),r}),[i]),g=p((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return h(e,!0).includes(t)}))}),[h]),m=p((function(e){var t="".concat(n.current.get(e)).concat(jh),r=new Set;return Ye(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return e.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:g,getKeyPath:h,getKeys:function(){var e=Ye(n.current.keys());return i.length&&e.push(Dh),e},getSubPathKeys:m}}function zh(t){var n=e.useRef(t);n.current=t;var o=e.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return t?o:void 0}var Bh=Math.random().toFixed(5).toString().slice(2),Fh=0;function Hh(t,n,o,r){var i=e.useContext(fh),a=i.activeKey,s=i.onActive,l=i.onInactive,c={active:a===t};return n||(c.onMouseEnter=function(e){null==o||o({key:t,domEvent:e}),s(t)},c.onMouseLeave=function(e){null==r||r({key:t,domEvent:e}),l(t)}),c}function Vh(t){var n=e.useContext(fh),o=n.mode,r=n.rtl,i=n.inlineIndent;if("inline"!==o)return null;return r?{paddingRight:t*i}:{paddingLeft:t*i}}function Wh(t){var n,o=t.icon,r=t.props,i=t.children;return null===o||!1===o?null:("function"==typeof o?n=e.createElement(o,K({},r)):"boolean"!=typeof o&&(n=o),n||i||null)}var Xh=["item"];function qh(e){var t=e.item,n=bt(e,Xh);return Object.defineProperty(n,"item",{get:function(){return X(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Uh=["title","attribute","elementRef"],Yh=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Gh=["active"],Kh=function(){Te(n,e.Component);var t=Le(n);function n(){return Ne(this,n),t.apply(this,arguments)}return Ie(n,[{key:"render",value:function(){var t=this.props,n=t.title,o=t.attribute,r=t.elementRef,i=We(bt(t,Uh),["eventKey","popupClassName","popupOffset","onTitleClick"]);return X(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(_d.Item,P({},o,{title:"string"==typeof n?n:void 0},i,{ref:r}))}}]),n}(),Zh=e.forwardRef((function(t,n){var o,r=t.style,i=t.className,a=t.eventKey,s=t.warnKey,l=t.disabled,c=t.itemIcon,u=t.children,d=t.role,f=t.onMouseEnter,h=t.onMouseLeave,p=t.onClick,g=t.onKeyDown,m=t.onFocus,v=bt(t,Yh),b=uh(a),y=e.useContext(fh),x=y.prefixCls,w=y.onItemClick,C=y.disabled,S=y.overflowDisabled,E=y.itemIcon,k=y.selectedKeys,O=y.onActive,_=e.useContext(xh)._internalRenderMenuItem,$="".concat(x,"-item"),M=e.useRef(),I=e.useRef(),R=C||l,T=ne(n,I),j=bh(a);"production"!==process.env.NODE_ENV&&s&&X(!1,"MenuItem should not leave undefined `key`.");var A=function(e){return{key:a,keyPath:Ye(j).reverse(),item:M.current,domEvent:e}},D=c||E,L=Hh(a,R,f,h),z=L.active,B=bt(L,Gh),F=k.includes(a),H=Vh(j.length),V={};"option"===t.role&&(V["aria-selected"]=F);var W=e.createElement(Kh,P({ref:M,elementRef:T,role:null===d?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":S&&b?null:b},v,B,V,{component:"li","aria-disabled":l,style:K(K({},H),r),className:N($,(o={},Y(o,"".concat($,"-active"),z),Y(o,"".concat($,"-selected"),F),Y(o,"".concat($,"-disabled"),R),o),i),onClick:function(e){if(!R){var t=A(e);null==p||p(qh(t)),w(t)}},onKeyDown:function(e){if(null==g||g(e),e.which===Es.ENTER){var t=A(e);null==p||p(qh(t)),w(t)}},onFocus:function(e){O(a),null==m||m(e)}}),u,e.createElement(Wh,{props:K(K({},t),{},{isSelected:F}),icon:D}));return _&&(W=_(W,t,{selected:F})),W}));function Qh(t,n){var o=t.eventKey,r=mh(),i=bh(o);return e.useEffect((function(){if(r)return r.registerPath(o,i),function(){r.unregisterPath(o,i)}}),[i]),r?null:e.createElement(Zh,P({},t,{ref:n}))}var Jh=e.forwardRef(Qh),ep=["className","children"],tp=function(t,n){var o=t.className,r=t.children,i=bt(t,ep),a=e.useContext(fh),s=a.prefixCls,l=a.mode,c=a.rtl;return e.createElement("ul",P({className:N(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===l?"inline":"vertical"),o),role:"menu"},i,{"data-menu-list":!0,ref:n}),r)},np=e.forwardRef(tp);function op(t,n){return L(t).map((function(t,o){if(e.isValidElement(t)){var r,i,a=t.key,s=null!==(r=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a,l=null==s;l&&(s="tmp_key-".concat([].concat(Ye(n),[o]).join("-")));var c={key:s,eventKey:s};return"production"!==process.env.NODE_ENV&&l&&(c.warnKey=!0),e.cloneElement(t,c)}return t}))}np.displayName="SubMenuList";var rp={adjustX:1,adjustY:1},ip={topLeft:{points:["bl","tl"],overflow:rp},topRight:{points:["br","tr"],overflow:rp},bottomLeft:{points:["tl","bl"],overflow:rp},bottomRight:{points:["tr","br"],overflow:rp},leftTop:{points:["tr","tl"],overflow:rp},leftBottom:{points:["br","bl"],overflow:rp},rightTop:{points:["tl","tr"],overflow:rp},rightBottom:{points:["bl","br"],overflow:rp}},ap={topLeft:{points:["bl","tl"],overflow:rp},topRight:{points:["br","tr"],overflow:rp},bottomLeft:{points:["tl","bl"],overflow:rp},bottomRight:{points:["tr","br"],overflow:rp},rightTop:{points:["tr","tl"],overflow:rp},rightBottom:{points:["br","bl"],overflow:rp},leftTop:{points:["tl","tr"],overflow:rp},leftBottom:{points:["bl","br"],overflow:rp}};function sp(e,t,n){return t||(n?n[e]||n.other:void 0)}var lp={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function cp(t){var n=t.prefixCls,o=t.visible,r=t.children,i=t.popup,a=t.popupStyle,s=t.popupClassName,l=t.popupOffset,c=t.disabled,u=t.mode,d=t.onVisibleChange,f=e.useContext(fh),h=f.getPopupContainer,p=f.rtl,g=f.subMenuOpenDelay,m=f.subMenuCloseDelay,v=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,x=f.rootClassName,w=f.motion,C=f.defaultMotions,S=ot(e.useState(!1),2),E=S[0],k=S[1],O=K(K({},p?ap:ip),v),_=lp[u],$=sp(u,w,C),M=e.useRef($);"inline"!==u&&(M.current=$);var P=K(K({},M.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),I=e.useRef();return e.useEffect((function(){return I.current=et((function(){k(o)})),function(){et.cancel(I.current)}}),[o]),e.createElement(Yd,{prefixCls:n,popupClassName:N("".concat(n,"-popup"),Y({},"".concat(n,"-rtl"),p),s,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:h,builtinPlacements:O,popupPlacement:_,popupVisible:E,popup:i,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:m,onPopupVisibleChange:d,forceRender:y,popupMotion:P,fresh:!0},r)}function up(t){var n=t.id,o=t.open,r=t.keyPath,i=t.children,a="inline",s=e.useContext(fh),l=s.prefixCls,c=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,f=s.mode,h=e.useRef(!1);h.current=f===a;var p=ot(e.useState(!h.current),2),g=p[0],m=p[1],v=!!h.current&&o;e.useEffect((function(){h.current&&m(!1)}),[f]);var b=K({},sp(a,u,d));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return h.current||e||m(!0),null==y?void 0:y(e)},g?null:e.createElement(hh,{mode:a,locked:!h.current},e.createElement(Ra,P({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(t){var o=t.className,r=t.style;return e.createElement(np,{id:n,className:o,style:r},i)})))}var dp=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],fp=["active"],hp=e.forwardRef((function(t,n){var o,r=t.style,i=t.className,a=t.title,s=t.eventKey,l=t.warnKey,c=t.disabled,u=t.internalPopupClose,d=t.children,f=t.itemIcon,h=t.expandIcon,p=t.popupClassName,g=t.popupOffset,m=t.popupStyle,v=t.onClick,b=t.onMouseEnter,y=t.onMouseLeave,x=t.onTitleClick,w=t.onTitleMouseEnter,C=t.onTitleMouseLeave,S=bt(t,dp),E=uh(s),k=e.useContext(fh),O=k.prefixCls,_=k.mode,$=k.openKeys,M=k.disabled,I=k.overflowDisabled,R=k.activeKey,T=k.selectedKeys,j=k.itemIcon,A=k.expandIcon,D=k.onItemClick,L=k.onOpenChange,z=k.onActive,B=e.useContext(xh)._internalRenderSubMenuItem,F=e.useContext(yh).isSubPathKey,H=bh(),V="".concat(O,"-submenu"),W=M||c,q=e.useRef(),U=e.useRef();"production"!==process.env.NODE_ENV&&l&&X(!1,"SubMenu should not leave undefined `key`.");var G=null!=f?f:j,Z=null!=h?h:A,Q=$.includes(s),J=!I&&Q,ee=F(T,s),te=Hh(s,W,w,C),ne=te.active,oe=bt(te,fp),re=ot(e.useState(!1),2),ie=re[0],ae=re[1],se=function(e){W||ae(e)},le=e.useMemo((function(){return ne||"inline"!==_&&(ie||F([R],s))}),[_,ne,R,ie,s,F]),ce=Vh(H.length),ue=zh((function(e){null==v||v(qh(e)),D(e)})),de=E&&"".concat(E,"-popup"),fe=e.createElement("div",P({role:"menuitem",style:ce,className:"".concat(V,"-title"),tabIndex:W?null:-1,ref:q,title:"string"==typeof a?a:null,"data-menu-id":I&&E?null:E,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":W,onClick:function(e){W||(null==x||x({key:s,domEvent:e}),"inline"===_&&L(s,!Q))},onFocus:function(){z(s)}},oe),a,e.createElement(Wh,{icon:"horizontal"!==_?Z:void 0,props:K(K({},t),{},{isOpen:J,isSubMenu:!0})},e.createElement("i",{className:"".concat(V,"-arrow")}))),he=e.useRef(_);if("inline"!==_&&H.length>1?he.current="vertical":he.current=_,!I){var pe=he.current;fe=e.createElement(cp,{mode:pe,prefixCls:V,visible:!u&&J&&"inline"!==_,popupClassName:p,popupOffset:g,popupStyle:m,popup:e.createElement(hh,{mode:"horizontal"===pe?"vertical":pe},e.createElement(np,{id:de,ref:U},d)),disabled:W,onVisibleChange:function(e){"inline"!==_&&L(s,e)}},fe)}var ge=e.createElement(_d.Item,P({ref:n,role:"none"},S,{component:"li",style:r,className:N(V,"".concat(V,"-").concat(_),i,(o={},Y(o,"".concat(V,"-open"),J),Y(o,"".concat(V,"-active"),le),Y(o,"".concat(V,"-selected"),ee),Y(o,"".concat(V,"-disabled"),W),o)),onMouseEnter:function(e){se(!0),null==b||b({key:s,domEvent:e})},onMouseLeave:function(e){se(!1),null==y||y({key:s,domEvent:e})}}),fe,!I&&e.createElement(up,{id:de,open:J,keyPath:H},d));return B&&(ge=B(ge,t,{selected:ee,active:le,open:J,disabled:W})),e.createElement(hh,{onItemClick:ue,mode:"horizontal"===_?"vertical":_,itemIcon:G,expandIcon:Z},ge)})),pp=e.forwardRef((function(t,n){var o,r=t.eventKey,i=t.children,a=bh(r),s=op(i,a),l=mh();return e.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),o=l?s:e.createElement(hp,P({ref:n},t),s),e.createElement(vh.Provider,{value:a},o)}));function gp(t){var n=t.className,o=t.style,r=e.useContext(fh).prefixCls;return mh()?null:e.createElement("li",{role:"separator",className:N("".concat(r,"-item-divider"),n),style:o})}"production"!==process.env.NODE_ENV&&(pp.displayName="SubMenu");var mp=["className","title","eventKey","children"],vp=e.forwardRef((function(t,n){var o=t.className,r=t.title;t.eventKey;var i=t.children,a=bt(t,mp),s=e.useContext(fh).prefixCls,l="".concat(s,"-item-group");return e.createElement("li",P({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:N(l,o)}),e.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),e.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))})),bp=e.forwardRef((function(t,n){var o=t.eventKey,r=op(t.children,bh(o));return mh()?r:e.createElement(vp,P({ref:n},We(t,["warnKey"])),r)}));"production"!==process.env.NODE_ENV&&(bp.displayName="MenuItemGroup");var yp=["label","children","key","type"];function xp(t,n){var o=n.item,r=n.group,i=n.submenu,a=n.divider;return(t||[]).map((function(t,s){if(t&&"object"===q(t)){var l=t,c=l.label,u=l.children,d=l.key,f=l.type,h=bt(l,yp),p=null!=d?d:"tmp-".concat(s);return u||"group"===f?"group"===f?e.createElement(r,P({key:p},h,{title:c}),xp(u,n)):e.createElement(i,P({key:p},h,{title:c}),xp(u,n)):"divider"===f?e.createElement(a,P({key:p},h)):e.createElement(o,P({key:p},h),c)}return null})).filter((function(e){return e}))}function wp(e,t,n,o){var r=e,i=K({divider:gp,item:Jh,group:bp,submenu:pp},o);return t&&(r=xp(t,i)),op(r,n)}var Cp=["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"],Sp=[],Ep=e.forwardRef((function(t,n){var o,r,i=t,a=i.prefixCls,s=void 0===a?"rc-menu":a,l=i.rootClassName,c=i.style,u=i.className,d=i.tabIndex,f=void 0===d?0:d,h=i.items,p=i.children,m=i.direction,v=i.id,b=i.mode,y=void 0===b?"vertical":b,x=i.inlineCollapsed,C=i.disabled,S=i.disabledOverflow,E=i.subMenuOpenDelay,k=void 0===E?.1:E,O=i.subMenuCloseDelay,_=void 0===O?.1:O,$=i.forceSubMenuRender,M=i.defaultOpenKeys,I=i.openKeys,R=i.activeKey,T=i.defaultActiveFirst,j=i.selectable,A=void 0===j||j,D=i.multiple,L=void 0!==D&&D,z=i.defaultSelectedKeys,B=i.selectedKeys,F=i.onSelect,H=i.onDeselect,V=i.inlineIndent,W=void 0===V?24:V,q=i.motion,U=i.defaultMotions,G=i.triggerSubMenuAction,Z=void 0===G?"hover":G,Q=i.builtinPlacements,J=i.itemIcon,ee=i.expandIcon,te=i.overflowedIndicator,ne=void 0===te?"...":te,oe=i.overflowedIndicatorPopupClassName,re=i.getPopupContainer,ie=i.onClick,ae=i.onOpenChange,se=i.onKeyDown,le=i.openAnimation,ce=i.openTransitionName,ue=i._internalRenderMenuItem,de=i._internalRenderSubMenuItem,fe=i._internalComponents,he=bt(i,Cp),pe=ot(e.useMemo((function(){return[wp(p,h,Sp,fe),wp(p,h,Sp,{})]}),[p,h,fe]),2),ge=pe[0],me=pe[1],ve=ot(e.useState(!1),2),be=ve[0],ye=ve[1],xe=e.useRef(),we=function(t){var n=ot(gi(t,{value:t}),2),o=n[0],r=n[1];return e.useEffect((function(){Fh+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(Bh,"-").concat(Fh);r("rc-menu-uuid-".concat(e))}),[]),o}(v),Ce="rtl"===m;"production"!==process.env.NODE_ENV&&X(!le&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Se=gi(M,{value:I,postState:function(e){return e||Sp}}),Ee=ot(Se,2),ke=Ee[0],Oe=Ee[1],_e=function(e){function t(){Oe(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?w(t):t()},$e=ot(e.useState(ke),2),Me=$e[0],Ne=$e[1],Pe=e.useRef(!1),Ie=ot(e.useMemo((function(){return"inline"!==y&&"vertical"!==y||!x?[y,!1]:["vertical",x]}),[y,x]),2),Re=Ie[0],Te=Ie[1],je="inline"===Re,Ae=ot(e.useState(Re),2),De=Ae[0],Le=Ae[1],ze=ot(e.useState(Te),2),Be=ze[0],Fe=ze[1];e.useEffect((function(){Le(Re),Fe(Te),Pe.current&&(je?Oe(Me):_e(Sp))}),[Re,Te]);var He=ot(e.useState(0),2),Ve=He[0],We=He[1],Xe=Ve>=ge.length-1||"horizontal"!==De||S;e.useEffect((function(){je&&Ne(ke)}),[ke]),e.useEffect((function(){return Pe.current=!0,function(){Pe.current=!1}}),[]);var qe=Lh(),Ue=qe.registerPath,Ge=qe.unregisterPath,Ke=qe.refreshOverflowKeys,Ze=qe.isSubPathKey,Qe=qe.getKeyPath,Je=qe.getKeys,et=qe.getSubPathKeys,tt=e.useMemo((function(){return{registerPath:Ue,unregisterPath:Ge}}),[Ue,Ge]),nt=e.useMemo((function(){return{isSubPathKey:Ze}}),[Ze]);e.useEffect((function(){Ke(Xe?Sp:ge.slice(Ve+1).map((function(e){return e.key})))}),[Ve,Xe]);var rt=ot(gi(R||T&&(null===(o=ge[0])||void 0===o?void 0:o.key),{value:R}),2),it=rt[0],at=rt[1],st=zh((function(e){at(e)})),lt=zh((function(){at(void 0)}));g(n,(function(){return{list:xe.current,focus:function(e){var t,n,o=Je(),r=Rh(o,we),i=r.elements,a=r.key2element,s=r.element2key,l=Ph(xe.current,i),c=null!=it?it:l[0]?s.get(l[0]):null===(t=ge.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var ct=gi(z||[],{value:B,postState:function(e){return Array.isArray(e)?e:null==e?Sp:[e]}}),ut=ot(ct,2),dt=ut[0],ft=ut[1],ht=zh((function(e){null==ie||ie(qh(e)),function(e){if(A){var t,n=e.key,o=dt.includes(n);t=L?o?dt.filter((function(e){return e!==n})):[].concat(Ye(dt),[n]):[n],ft(t);var r=K(K({},e),{},{selectedKeys:t});o?null==H||H(r):null==F||F(r)}!L&&ke.length&&"inline"!==De&&_e(Sp)}(e)})),pt=zh((function(e,t){var n=ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==De){var o=et(e);n=n.filter((function(e){return!o.has(e)}))}yt(ke,n,!0)||_e(n,!0)})),gt=Th(De,it,Ce,we,xe,Je,Qe,at,(function(e,t){var n=null!=t?t:!ke.includes(e);pt(e,n)}),se);e.useEffect((function(){ye(!0)}),[]);var mt=e.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),vt="horizontal"!==De||S?ge:ge.map((function(t,n){return e.createElement(hh,{key:t.key,overflowDisabled:n>Ve},t)})),xt=e.createElement(_d,P({id:v,ref:xe,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Jh,className:N(s,"".concat(s,"-root"),"".concat(s,"-").concat(De),u,(r={},Y(r,"".concat(s,"-inline-collapsed"),Be),Y(r,"".concat(s,"-rtl"),Ce),r),l),dir:m,style:c,role:"menu",tabIndex:f,data:vt,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,o=n?ge.slice(-n):null;return e.createElement(pp,{eventKey:Dh,title:ne,disabled:Xe,internalPopupClose:0===n,popupClassName:oe},o)},maxCount:"horizontal"!==De||S?_d.INVALIDATE:_d.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){We(e)},onKeyDown:gt},he));return e.createElement(xh.Provider,{value:mt},e.createElement(lh.Provider,{value:we},e.createElement(hh,{prefixCls:s,rootClassName:l,mode:De,openKeys:ke,rtl:Ce,disabled:C,motion:be?q:null,defaultMotions:be?U:null,activeKey:it,onActive:st,onInactive:lt,selectedKeys:dt,inlineIndent:W,subMenuOpenDelay:k,subMenuCloseDelay:_,forceSubMenuRender:$,builtinPlacements:Q,triggerSubMenuAction:Z,getPopupContainer:re,itemIcon:J,expandIcon:ee,onItemClick:ht,onOpenChange:pt},e.createElement(yh.Provider,{value:nt},xt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(gh.Provider,{value:tt},me)))))})),kp=Ep;kp.Item=Jh,kp.SubMenu=pp,kp.ItemGroup=bp,kp.Divider=gp;var Op={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"},_p=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Op}))},$p=e.forwardRef(_p);"production"!==process.env.NODE_ENV&&($p.displayName="BarsOutlined");var Mp={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"},Np=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Mp}))},Pp=e.forwardRef(Np);"production"!==process.env.NODE_ENV&&(Pp.displayName="LeftOutlined");const Ip=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Rp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Tp={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},jp=e.createContext({}),Ap=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Dp=e.forwardRef(((t,n)=>{const{prefixCls:o,className:i,trigger:s,children:c,defaultCollapsed:u=!1,theme:f="dark",style:h={},collapsible:p=!1,reverseArrow:g=!1,width:m=200,collapsedWidth:v=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:x,onBreakpoint:w}=t,C=Rp(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=r(Ip),[E,k]=d("collapsed"in t?t.collapsed:u),[O,_]=d(!1);l((()=>{"collapsed"in t&&k(t.collapsed)}),[t.collapsed]);const $=(e,n)=>{"collapsed"in t||k(e),null==x||x(e,n)},M=a();M.current=e=>{_(e.matches),null==w||w(e.matches),E!==e.matches&&$(e.matches,"responsive")},l((()=>{function e(e){return M.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&y&&y in Tp){t=n(`screen and (max-width: ${Tp[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]),l((()=>{const e=Ap("ant-sider-");return S.addSider(e),()=>S.removeSider(e)}),[]);const P=()=>{$(!E,"clickTrigger")},{getPrefixCls:I}=r(Qr),R=e.useMemo((()=>({siderCollapsed:E})),[E]);return e.createElement(jp.Provider,{value:R},(()=>{const t=I("layout-sider",o),r=We(C,["collapsed"]),a=E?v:m,l=(u=a,!isNaN(parseFloat(u))&&isFinite(u)?`${a}px`:String(a));var u;const d=0===parseFloat(String(v||0))?e.createElement("span",{onClick:P,className:N(`${t}-zero-width-trigger`,`${t}-zero-width-trigger-${g?"right":"left"}`),style:b},s||e.createElement($p,null)):null,y={expanded:g?e.createElement(Qf,null):e.createElement(Pp,null),collapsed:g?e.createElement(Pp,null):e.createElement(Qf,null)}[E?"collapsed":"expanded"],x=null!==s?d||e.createElement("div",{className:`${t}-trigger`,onClick:P,style:{width:l}},s||y):null,w=Object.assign(Object.assign({},h),{flex:`0 0 ${l}`,maxWidth:l,minWidth:l,width:l}),S=N(t,`${t}-${f}`,{[`${t}-collapsed`]:!!E,[`${t}-has-trigger`]:p&&null!==s&&!d,[`${t}-below`]:!!O,[`${t}-zero-width`]:0===parseFloat(l)},i);return e.createElement("aside",Object.assign({className:S},r,{style:w,ref:n}),e.createElement("div",{className:`${t}-children`},c),p||O&&d?x:null)})())}));"production"!==process.env.NODE_ENV&&(Dp.displayName="Sider");var Lp={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"},zp=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Lp}))},Bp=e.forwardRef(zp);"production"!==process.env.NODE_ENV&&(Bp.displayName="EllipsisOutlined");const Fp=i({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Hp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Vp=t=>{const{prefixCls:n,className:o,dashed:r}=t,i=Hp(t,["prefixCls","className","dashed"]),{getPrefixCls:a}=e.useContext(Qr),s=a("menu",n),l=N({[`${s}-item-divider-dashed`]:!!r},o);return e.createElement(gp,Object.assign({className:l},i))},Wp=t=>{var n;const{className:o,children:r,icon:i,title:a,danger:s}=t,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=e.useContext(Fp),{siderCollapsed:h}=e.useContext(jp);let p=a;void 0===a?p=c?r:"":!1===a&&(p="");const g={title:p};h||f||(g.title=null,g.open=!1);const m=L(r).length;let v=e.createElement(Jh,Object.assign({},We(t,["title","icon","danger"]),{className:N({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(i?m+1:m)},o),title:"string"==typeof a?a:void 0}),Cs(i,{className:N(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:"",`${l}-item-icon`)}),(t=>{const n=e.createElement("span",{className:`${l}-title-content`},r);return(!i||e.isValidElement(r)&&"span"===r.type)&&r&&t&&c&&"string"==typeof r?e.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):n})(f));return d||(v=e.createElement(Nf,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),v)),v},Xp=e.createContext(null),qp=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${zt(i)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${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"}}}},Up=e=>{let{componentCls:t,menuArrowOffset:n,calc:o}=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(${zt(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${zt(n)})`}}}}},Yp=e=>Object.assign({},Hi(e)),Gp=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:p,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:k,popupBg:O,itemHoverBg:_,itemActiveBg:$,menuSubMenuBg:M,horizontalItemSelectedColor:N,horizontalItemSelectedBg:P,horizontalItemBorderRadius:I,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Yp(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Yp(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:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:$}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:$}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${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:I,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${zt(c)} solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:c,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${zt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${zt(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(",")}}}}}},Kp=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:zt(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:zt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Zp=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:h,boxShadowSecondary:p,collapsedWidth:g,collapsedIconSize:m}=e,v={height:o,lineHeight:zt(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Kp(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Kp(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${zt(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 ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize: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% - ${zt(e.calc(d).div(2).equal())} - ${zt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:zt(o),"+ 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:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},zi),{paddingInline:h})}}]},Qp=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=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} ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${o} ${i}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${r}`,`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"}}}},Jp=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,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} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${zt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${zt(a)})`}}}}},eg=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:h,menuArrowSize:p,menuArrowOffset:g,lineType:m,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bi(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} 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:`${zt(s)} ${zt(l)}`,fontSize:b,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,[`> ${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:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qp(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${zt(e.calc(o).mul(2).equal())} ${zt(l)}`}}},"&-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},Qp(e)),Jp(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${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}}}),Jp(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${zt(g)})`},"&::after":{transform:`rotate(45deg) translateX(${zt(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${zt(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${zt(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${zt(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},tg=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:p,controlItemBgActive:g,colorBgTextHover:m,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:w,fontSize:C,controlHeightSM:S,fontSizeLG:E,colorTextLightSolid:k,colorErrorHover:O}=e,_=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,$=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:h,M=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,N=new sr(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:h,activeBarBorderWidth:$,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*v+"px",iconSize:C,iconMarginInlineEnd:S-C,collapsedIconSize:E,groupTitleFontSize:C,darkItemDisabledColor:new sr(k).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:k,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:_?`calc(100% + ${$}px)`:`calc(100% - ${2*M}px)`}};const ng=t=>{var n;const{popupClassName:o,icon:r,title:i,theme:a}=t,s=e.useContext(Fp),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=bh();let f;if(r){const t=e.isValidElement(i)&&"span"===i.type;f=e.createElement(e.Fragment,null,Cs(r,{className:N(e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:"",`${l}-item-icon`)}),t?i:e.createElement("span",{className:`${l}-title-content`},i))}else f=c&&!d.length&&i&&"string"==typeof i?e.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${l}-title-content`},i);const h=e.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[p]=Is("Menu");return e.createElement(Fp.Provider,{value:h},e.createElement(pp,Object.assign({},We(t,["icon"]),{title:f,popupClassName:N(l,o,`${l}-${a||u}`),popupStyle:{zIndex:p}})))};var og=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function rg(e){return null===e||!1===e}const ig={item:Wp,submenu:ng,divider:Vp},ag=c(((t,n)=>{var o;const r=e.useContext(Xp),i=r||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=e.useContext(Qr),u=a(),{prefixCls:d,className:f,style:h,theme:p="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:x,selectable:w,onClick:C,overflowedIndicatorPopupClassName:S}=t,E=We(og(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const e=No("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===(o=i.validator)||void 0===o||o.call(i,{mode:x});const k=fi((function(){var e;null==C||C.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,_=null!=w?w:i.selectable,$=e.useMemo((()=>void 0!==b?b:v),[v,b]),M={horizontal:{motionName:`${u}-slide-up`},inline:Qs(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",d||i.prefixCls),I=Ss(P),[R,T,j]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Xi("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:h,darkItemDisabledColor:p,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:m,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(o).div(7).mul(5).equal(),w=yi(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=yi(w,{itemColor:r,itemHoverColor:h,groupTitleColor:f,itemSelectedColor:l,itemBg:a,popupBg:y,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:p,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:m,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[eg(w),qp(w),Zp(w),Gp(w,"light"),Gp(C,"dark"),Up(w),Hu(w),Ku(w,"slide-up"),Ku(w,"slide-down"),rd(w,"zoom-big")]}),tg,{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)}(P,I,!r),A=N(`${P}-${p}`,null==c?void 0:c.className,f),D=e.useMemo((()=>{var t,n;if("function"==typeof g||rg(g))return g||null;if("function"==typeof i.expandIcon||rg(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||rg(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const o=null!==(t=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==t?t:null==c?void 0:c.expandIcon;return Cs(o,{className:N(`${P}-submenu-expand-icon`,e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,P]),L=e.useMemo((()=>({prefixCls:P,inlineCollapsed:$||!1,direction:l,firstLevel:!0,theme:p,mode:O,disableMenuItemTitleTooltip:m})),[P,$,l,m,p]);return R(e.createElement(Xp.Provider,{value:null},e.createElement(Fp.Provider,{value:L},e.createElement(kp,Object.assign({getPopupContainer:s,overflowedIndicator:e.createElement(Bp,null),overflowedIndicatorPopupClassName:N(P,`${P}-${p}`,S),mode:O,selectable:_,onClick:k},E,{inlineCollapsed:$,style:Object.assign(Object.assign({},null==c?void 0:c.style),h),className:A,prefixCls:P,direction:l,defaultMotions:M,expandIcon:D,ref:n,rootClassName:N(y,T,i.rootClassName,j,I),_internalComponents:ig})))))})),sg=c(((t,n)=>{const o=a(null),r=e.useContext(jp);return g(n,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),e.createElement(ag,Object.assign({ref:o},t,r))}));function lg(e){return yi(e,{inputAffixPadding:e.paddingXXS})}sg.Item=Wp,sg.SubMenu=ng,sg.Divider=Vp,sg.ItemGroup=bp,"production"!==process.env.NODE_ENV&&(sg.displayName="Menu");const cg=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*o)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((i-n*o)/2*10)/10-r,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-r,paddingInline:c-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:f,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},ug=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),dg=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({},ug(yi(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),fg=(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}}),hg=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},fg(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),pg=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fg(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},dg(e))}),hg(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),hg(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),gg=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),mg=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},gg(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),gg(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},dg(e))}})}),vg=(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)}},bg=(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}}),yg=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},bg(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),xg=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},dg(e))}),yg(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),yg(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),wg=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Cg=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:`${zt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${zt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},wg(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),wg(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:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Sg=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${zt(t)} ${zt(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},Eg=e=>({padding:`${zt(e.paddingBlockSM)} ${zt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),kg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${zt(e.paddingBlock)} ${zt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},(e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}))(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Sg(e)),"&-sm":Object.assign({},Eg(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Og=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({},Sg(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Eg(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 ${zt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${zt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${zt(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:`${zt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${zt(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}}}})}},_g=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,i=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bi(e)),kg(e)),pg(e)),xg(e)),vg(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"}})}},$g=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 ${zt(e.inputAffixPadding)}`}}}},Mg=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},kg(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:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),$g(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}})}},Ng=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Bi(e)),Og(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:o}}},mg(e)),Cg(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}}})})}},Pg=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-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,[`${o}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${o}-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}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-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}}}}},Ig=e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[o]:{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${o}-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},[`${o}-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}}}}}},Rg=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var Tg=Xi("Input",(e=>{const t=yi(e,lg(e));return[_g(t),Ig(t),Mg(t),Ng(t),Pg(t),Rg(t),Jl(t)]}),cg,{resetFont:!1}),jg={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"},Ag=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:jg}))},Dg=e.forwardRef(Ag);"production"!==process.env.NODE_ENV&&(Dg.displayName="PlusOutlined");var Lg=i(null),zg={width:0,height:0,left:0,top:0};function Bg(t,n){var o=e.useRef(t),r=ot(e.useState({}),2)[1];return[o.current,function(e){var t="function"==typeof e?e(o.current):e;t!==o.current&&n(t,o.current),o.current=t,r({})}]}var Fg=Math.pow(.995,20);function Hg(e){var t=ot(d(0),2),n=t[0],o=t[1],r=a(0),i=a();return i.current=e,qt((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){r.current===n&&(r.current+=1,o(r.current))}}var Vg={width:0,height:0,left:0,top:0,right:0};function Wg(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Xg(e){return String(e).replace(/"/g,"TABS_DQ")}function qg(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var Ug=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.editable,i=t.locale,a=t.style;return r&&!1!==r.showAdd?e.createElement("button",{ref:n,type:"button",className:"".concat(o,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),Yg=e.forwardRef((function(t,n){var o,r=t.position,i=t.prefixCls,a=t.extra;if(!a)return null;var s={};return"object"!==q(a)||e.isValidElement(a)?s.right=a:s=a,"right"===r&&(o=s.right),"left"===r&&(o=s.left),o?e.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},o):null}));"production"!==process.env.NODE_ENV&&(Yg.displayName="ExtraContent");var Gg=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.id,i=t.tabs,a=t.locale,s=t.mobile,c=t.more,u=void 0===c?{}:c,f=t.style,h=t.className,p=t.editable,g=t.tabBarGutter,m=t.rtl,v=t.removeAriaLabel,b=t.onTabClick,y=t.getPopupContainer,x=t.popupClassName,w=ot(d(!1),2),C=w[0],S=w[1],E=ot(d(null),2),k=E[0],O=E[1],_=u.icon,$=void 0===_?"More":_,M="".concat(r,"-more-popup"),I="".concat(o,"-dropdown"),R=null!==k?"".concat(M,"-").concat(k):null,T=null==a?void 0:a.dropdownAriaLabel;var j=e.createElement(kp,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),S(!1)},prefixCls:"".concat(I,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[k],"aria-label":void 0!==T?T:"expanded dropdown"},i.map((function(t){var n=t.closable,o=t.disabled,i=t.closeIcon,a=t.key,s=t.label,l=qg(n,i,p,o);return e.createElement(Jh,{key:a,id:"".concat(M,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:o},e.createElement("span",null,s),l&&e.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,a)}},i||p.removeIcon||"×"))})));function A(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,o=t.length,r=0;r<o;r+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void O(a.key)}}l((function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),l((function(){C||O(null)}),[C]);var D=Y({},m?"marginRight":"marginLeft",g);i.length||(D.visibility="hidden",D.order=1);var L=N(Y({},"".concat(I,"-rtl"),m)),z=s?null:e.createElement(sh,P({prefixCls:I,overlay:j,visible:!!i.length&&C,onVisibleChange:S,overlayClassName:N(L,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},u),e.createElement("button",{type:"button",className:"".concat(o,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":C,onKeyDown:function(e){var t=e.which;if(C)switch(t){case Es.UP:A(-1),e.preventDefault();break;case Es.DOWN:A(1),e.preventDefault();break;case Es.ESC:S(!1);break;case Es.SPACE:case Es.ENTER:null!==k&&b(k,e)}else[Es.DOWN,Es.SPACE,Es.ENTER].includes(t)&&(S(!0),e.preventDefault())}},$));return e.createElement("div",{className:N("".concat(o,"-nav-operations"),h),style:f,ref:n},z,e.createElement(Ug,{prefixCls:o,locale:a,editable:p}))})),Kg=e.memo(Gg,(function(e,t){return t.tabMoving})),Zg=function(t){var n=t.prefixCls,o=t.id,r=t.active,i=t.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,d=t.closable,f=t.renderWrapper,h=t.removeAriaLabel,p=t.editable,g=t.onClick,m=t.onFocus,v=t.style,b="".concat(n,"-tab"),y=qg(d,c,p,l);function x(e){l||g(e)}var w=e.useMemo((function(){return u&&"string"==typeof s?e.createElement("span",null,s):s}),[s,u]),C=e.createElement("div",{key:a,"data-node-key":Xg(a),className:N(b,Y(Y(Y({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),r),"".concat(b,"-disabled"),l)),style:v,onClick:x},e.createElement("div",{role:"tab","aria-selected":r,id:o&&"".concat(o,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":o&&"".concat(o,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[Es.SPACE,Es.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:m},u&&e.createElement("span",{className:"".concat(b,"-icon")},u),s&&w),y&&e.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),p.onEdit("remove",{key:a,event:t})}},c||p.removeIcon||"×"));return f?f(C):C},Qg=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,r=t.offsetHeight,i=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,l=a.height;if(Math.abs(s-o)<1)return[s,l]}return[o,i]},Jg=function(e,t){return e[t?0:1]},em=e.forwardRef((function(n,o){var r,i,s,c,f,h=n.className,p=n.style,g=n.id,m=n.animated,v=n.activeKey,b=n.rtl,y=n.extra,x=n.editable,w=n.locale,C=n.tabPosition,S=n.tabBarGutter,E=n.children,k=n.onTabClick,O=n.onTabScroll,_=n.indicator,$=e.useContext(Lg),M=$.prefixCls,I=$.tabs,R=a(null),T=a(null),j=a(null),A=a(null),D=a(null),L=a(null),z=a(null),B="top"===C||"bottom"===C,F=Bg(0,(function(e,t){B&&O&&O({direction:e>t?"left":"right"})})),H=ot(F,2),V=H[0],W=H[1],X=Bg(0,(function(e,t){!B&&O&&O({direction:e>t?"top":"bottom"})})),q=ot(X,2),U=q[0],G=q[1],Z=ot(d([0,0]),2),Q=Z[0],J=Z[1],ee=ot(d([0,0]),2),te=ee[0],oe=ee[1],re=ot(d([0,0]),2),ie=re[0],ae=re[1],se=ot(d([0,0]),2),le=se[0],ce=se[1],ue=(r=new Map,i=a([]),s=ot(d({}),2)[1],c=a("function"==typeof r?r():r),f=Hg((function(){var e=c.current;i.current.forEach((function(t){e=t(e)})),i.current=[],c.current=e,s({})})),[c.current,function(e){i.current.push(e),f()}]),de=ot(ue,2),fe=de[0],he=de[1],pe=function(e,t,n){return u((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||zg,i=r.left+r.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||zg);var u=o.get(l)||K({},c);u.right=i-u.left-u.width,o.set(l,u)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(I,fe,te[0]),ge=Jg(Q,B),me=Jg(te,B),ve=Jg(ie,B),be=Jg(le,B),ye=ge<me+ve,xe=ye?ge-be:ge-ve,we="".concat(M,"-nav-operations-hidden"),Ce=0,Se=0;function Ee(e){return e<Ce?Ce:e>Se?Se:e}B&&b?(Ce=0,Se=Math.max(0,me-xe)):(Ce=Math.min(0,xe-me),Se=0);var ke=a(null),Oe=ot(d(),2),_e=Oe[0],$e=Oe[1];function Me(){$e(Date.now())}function Ne(){ke.current&&clearTimeout(ke.current)}!function(t,n){var o=ot(d(),2),r=o[0],i=o[1],s=ot(d(0),2),l=s[0],c=s[1],u=ot(d(0),2),f=u[0],h=u[1],p=ot(d(),2),g=p[0],m=p[1],v=a(),b=a(),y=a(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;i({x:n,y:o}),window.clearInterval(v.current)},onTouchMove:function(e){if(r){e.preventDefault();var t=e.touches[0],o=t.screenX,a=t.screenY;i({x:o,y:a});var s=o-r.x,u=a-r.y;n(s,u);var d=Date.now();c(d),h(d-l),m({x:s,y:u})}},onTouchEnd:function(){if(r&&(i(null),m(null),g)){var e=g.x/f,t=g.y/f,o=Math.abs(e),a=Math.abs(t);if(Math.max(o,a)<.1)return;var s=e,l=t;v.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(v.current):n(20*(s*=Fg),20*(l*=Fg))}),20)}},onWheel:function(e){var t=e.deltaX,o=e.deltaY,r=0,i=Math.abs(t),a=Math.abs(o);i===a?r="x"===b.current?t:o:i>a?(r=t,b.current="x"):(r=o,b.current="y"),n(-r,-r)&&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 Ee(e+t)}))}return!!ye&&(B?n(W,e):n(G,t),Ne(),Me(),!0)})),l((function(){return Ne(),_e&&(ke.current=setTimeout((function(){$e(0)}),100)),Ne}),[_e]);var Pe=function(e,t,n,o,r,i,a){var s,l,c,d=a.tabs,f=a.tabPosition,h=a.rtl;return["top","bottom"].includes(f)?(s="width",l=h?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),u((function(){if(!d.length)return[0,0];for(var n=d.length,o=n,r=0;r<n;r+=1){var i=e.get(d[r].key)||Vg;if(i[l]+i[s]>c+t){o=r-1;break}}for(var a=0,u=n-1;u>=0;u-=1)if((e.get(d[u].key)||Vg)[l]<c){a=u+1;break}return a>=o?[0,0]:[a,o]}),[e,t,o,r,i,c,f,d.map((function(e){return e.key})).join("_"),h])}(pe,xe,B?V:U,me,ve,be,K(K({},n),{},{tabs:I})),Ie=ot(Pe,2),Re=Ie[0],Te=Ie[1],je=fi((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=pe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(B){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)),G(0),W(Ee(n))}else{var o=U;t.top<-U?o=-t.top:t.top+t.height>-U+xe&&(o=-(t.top+t.height-xe)),W(0),G(Ee(o))}})),Ae={};"top"===C||"bottom"===C?Ae[b?"marginRight":"marginLeft"]=S:Ae.marginTop=S;var De=I.map((function(t,n){var o=t.key;return e.createElement(Zg,{id:g,prefixCls:M,key:o,tab:t,style:0===n?void 0:Ae,closable:t.closable,editable:x,active:o===v,renderWrapper:E,removeAriaLabel:null==w?void 0:w.removeAriaLabel,onClick:function(e){k(o,e)},onFocus:function(){je(o),Me(),A.current&&(b||(A.current.scrollLeft=0),A.current.scrollTop=0)}})})),Le=function(){return he((function(){var e,t=new Map,n=null===(e=D.current)||void 0===e?void 0:e.getBoundingClientRect();return I.forEach((function(e){var o,r=e.key,i=null===(o=D.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(Xg(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.x,u=a.y;return Math.abs(s-n)<1?[s,l,c-t.x,u-t.y]:[n,o,i,r]}(i,n),s=ot(a,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(r,{width:l,height:c,left:u,top:d})}})),t}))};l((function(){Le()}),[I.map((function(e){return e.key})).join("_")]);var ze=Hg((function(){var e=Qg(R),t=Qg(T),n=Qg(j);J([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=Qg(z);ae(o);var r=Qg(L);ce(r);var i=Qg(D);oe([i[0]-o[0],i[1]-o[1]]),Le()})),Be=I.slice(0,Re),Fe=I.slice(Te+1),He=[].concat(Ye(Be),Ye(Fe)),We=pe.get(v),Xe=function(e){var n=e.activeTabOffset,o=e.horizontal,r=e.rtl,i=e.indicator,s=void 0===i?{}:i,c=s.size,u=s.align,f=void 0===u?"center":u,h=ot(d(),2),p=h[0],g=h[1],m=a(),v=t.useCallback((function(e){return"function"==typeof c?c(e):"number"==typeof c?c:e}),[c]);function b(){et.cancel(m.current)}return l((function(){var e={};if(n)if(o){e.width=v(n.width);var t=r?"right":"left";"start"===f&&(e[t]=n[t]),"center"===f&&(e[t]=n[t]+n.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===f&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=v(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(),m.current=et((function(){g(e)})),b}),[n,o,r,f,v]),{style:p}}({activeTabOffset:We,horizontal:B,indicator:_,rtl:b}),qe=Xe.style;l((function(){je()}),[v,Ce,Se,Wg(We),Wg(pe),B]),l((function(){ze()}),[b]);var Ue,Ge,Ke,Ze,Qe=!!He.length,Je="".concat(M,"-nav-wrap");return B?b?(Ge=V>0,Ue=V!==Se):(Ue=V<0,Ge=V!==Ce):(Ke=U<0,Ze=U!==Ce),e.createElement(Ve,{onResize:ze},e.createElement("div",{ref:ne(o,R),role:"tablist",className:N("".concat(M,"-nav"),h),style:p,onKeyDown:function(){Me()}},e.createElement(Yg,{ref:T,position:"left",extra:y,prefixCls:M}),e.createElement(Ve,{onResize:ze},e.createElement("div",{className:N(Je,Y(Y(Y(Y({},"".concat(Je,"-ping-left"),Ue),"".concat(Je,"-ping-right"),Ge),"".concat(Je,"-ping-top"),Ke),"".concat(Je,"-ping-bottom"),Ze)),ref:A},e.createElement(Ve,{onResize:ze},e.createElement("div",{ref:D,className:"".concat(M,"-nav-list"),style:{transform:"translate(".concat(V,"px, ").concat(U,"px)"),transition:_e?"none":void 0}},De,e.createElement(Ug,{ref:z,prefixCls:M,locale:w,editable:x,style:K(K({},0===De.length?void 0:Ae),{},{visibility:Qe?"hidden":null})}),e.createElement("div",{className:N("".concat(M,"-ink-bar"),Y({},"".concat(M,"-ink-bar-animated"),m.inkBar)),style:qe}))))),e.createElement(Kg,P({},n,{removeAriaLabel:null==w?void 0:w.removeAriaLabel,ref:L,prefixCls:M,tabs:He,className:!Qe&&we,tabMoving:!!_e})),e.createElement(Yg,{ref:j,position:"right",extra:y,prefixCls:M})))})),tm=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.className,i=t.style,a=t.id,s=t.active,l=t.tabKey,c=t.children;return e.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!s,style:i,className:N(o,s&&"".concat(o,"-active"),r),ref:n},c)}));"production"!==process.env.NODE_ENV&&(tm.displayName="TabPane");var nm=["renderTabBar"],om=["label","key"],rm=function(t){var n=t.renderTabBar,o=bt(t,nm),r=e.useContext(Lg).tabs;return n?n(K(K({},o),{},{panes:r.map((function(t){var n=t.label,o=t.key,r=bt(t,om);return e.createElement(tm,P({tab:n,key:o,tabKey:o},r))}))}),em):e.createElement(em,o)};"production"!==process.env.NODE_ENV&&(rm.displayName="TabNavListWrapper");var im=["key","forceRender","style","className","destroyInactiveTabPane"],am=function(t){var n=t.id,o=t.activeKey,r=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=e.useContext(Lg),l=s.prefixCls,c=s.tabs,u=r.tabPane,d="".concat(l,"-tabpane");return e.createElement("div",{className:N("".concat(l,"-content-holder"))},e.createElement("div",{className:N("".concat(l,"-content"),"".concat(l,"-content-").concat(i),Y({},"".concat(l,"-content-animated"),u))},c.map((function(t){var i=t.key,s=t.forceRender,l=t.style,c=t.className,f=t.destroyInactiveTabPane,h=bt(t,im),p=i===o;return e.createElement(Ra,P({key:i,visible:p,forceRender:s,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),(function(t,o){var r=t.style,a=t.className;return e.createElement(tm,P({},h,{prefixCls:d,id:n,tabKey:i,animated:u,active:p,style:K(K({},l),r),className:N(c,a),ref:o}))}))}))))};var sm=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],lm=0,cm=e.forwardRef((function(t,n){var o=t.id,r=t.prefixCls,i=void 0===r?"rc-tabs":r,a=t.className,s=t.items,c=t.direction,u=t.activeKey,f=t.defaultActiveKey,h=t.editable,p=t.animated,g=t.tabPosition,m=void 0===g?"top":g,v=t.tabBarGutter,b=t.tabBarStyle,y=t.tabBarExtraContent,x=t.locale,w=t.more,C=t.destroyInactiveTabPane,S=t.renderTabBar,E=t.onChange,k=t.onTabClick,O=t.onTabScroll,_=t.getPopupContainer,$=t.popupClassName,M=t.indicator,I=bt(t,sm),R=e.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===q(e)&&"key"in e}))}),[s]),T="rtl"===c,j=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}:K({inkBar:!0},"object"===q(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&X(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(p),A=ot(d(!1),2),D=A[0],L=A[1];l((function(){L(cd())}),[]);var z=ot(gi((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:f}),2),B=z[0],F=z[1],H=ot(d((function(){return R.findIndex((function(e){return e.key===B}))})),2),V=H[0],W=H[1];l((function(){var e,t=R.findIndex((function(e){return e.key===B}));-1===t&&(t=Math.max(0,Math.min(V,R.length-1)),F(null===(e=R[t])||void 0===e?void 0:e.key));W(t)}),[R.map((function(e){return e.key})).join("_"),B,V]);var U=ot(gi(null,{value:o}),2),G=U[0],Z=U[1];l((function(){o||(Z("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":lm)),lm+=1)}),[]);var Q={id:G,activeKey:B,animated:j,tabPosition:m,rtl:T,mobile:D},J=K(K({},Q),{},{editable:h,locale:x,more:w,tabBarGutter:v,onTabClick:function(e,t){null==k||k(e,t);var n=e!==B;F(e),n&&(null==E||E(e))},onTabScroll:O,extra:y,style:b,panes:null,getPopupContainer:_,popupClassName:$,indicator:M});return e.createElement(Lg.Provider,{value:{tabs:R,prefixCls:i}},e.createElement("div",P({ref:n,id:o,className:N(i,"".concat(i,"-").concat(m),Y(Y(Y({},"".concat(i,"-mobile"),D),"".concat(i,"-editable"),h),"".concat(i,"-rtl"),T),a)},I),e.createElement(rm,P({},J,{renderTabBar:S})),e.createElement(am,P({destroyInactiveTabPane:C},Q,{animated:j}))))}));"production"!==process.env.NODE_ENV&&(cm.displayName="Tabs");const um={motionAppear:!1,motionEnter:!0,motionLeave:!0};var dm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const fm=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}`}}}}},[Ku(e,"slide-up"),Ku(e,"slide-down")]]},hm=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${zt(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:zt(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${zt(e.borderRadiusLG)} ${zt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${zt(e.borderRadiusLG)} ${zt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:zt(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${zt(e.borderRadiusLG)} 0 0 ${zt(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 ${zt(e.borderRadiusLG)} ${zt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},pm=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=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:`${zt(o)} 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({},zi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${zt(e.paddingXXS)} ${zt(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"}}})}})}},gm=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${zt(e.lineWidth)} ${e.lineType} ${o}`,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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${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:zt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${zt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},mm=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,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 ${zt(e.borderRadius)} ${zt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${zt(e.borderRadius)} ${zt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${zt(e.borderRadius)} ${zt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${zt(e.borderRadius)} 0 0 ${zt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},vm=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Vi(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-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:o},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},bm=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,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}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:zt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:zt(e.marginXS)},marginLeft:{_skip_check_:!0,value:zt(i(e.marginXXS).mul(-1).equal())},[o]:{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:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ym=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=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:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${zt(e.paddingXS)}`,background:"transparent",border:`${zt(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${zt(e.borderRadiusLG)} ${zt(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}},Vi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),vm(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 xm=Xi("Tabs",(e=>{const t=yi(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${zt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${zt(e.horizontalItemGutter)}`});return[mm(t),bm(t),gm(t),pm(t),hm(t),ym(t),fm(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 wm=()=>null;"production"!==process.env.NODE_ENV&&(wm.displayName="DeprecatedTabPane");var Cm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Sm=t=>{var n,o,r,i,a,s,l,c,u,d,f;const{type:h,className:p,rootClassName:g,size:m,onEdit:v,hideAdd:b,centered:y,addIcon:x,removeIcon:w,moreIcon:C,more:S,popupClassName:E,children:k,items:O,animated:_,style:$,indicatorSize:M,indicator:P}=t,I=Cm(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=I,{direction:T,tabs:j,getPrefixCls:A,getPopupContainer:D}=e.useContext(Qr),z=A("tabs",R),B=Ss(z),[F,H,V]=xm(z,B);let W;"editable-card"===h&&(W={onEdit:(e,t)=>{let{key:n,event:o}=t;null==v||v("add"===e?o:n,e)},removeIcon:null!==(n=null!=w?w:null==j?void 0:j.removeIcon)&&void 0!==n?n:e.createElement(ms,null),addIcon:(null!=x?x:null==j?void 0:j.addIcon)||e.createElement(Dg,null),showAdd:!0!==b});const X=A();if("production"!==process.env.NODE_ENV){const e=No("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(!(M||(null==j?void 0:j.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const q=ul(m),U=function(t,n){"production"!==process.env.NODE_ENV&&No("Tabs").deprecated(!n,"Tabs.TabPane","items");if(t)return t;const o=L(n).map((t=>{if(e.isValidElement(t)){const{key:e,props:n}=t,o=n||{},{tab:r}=o,i=dm(o,["tab"]);return Object.assign(Object.assign({key:String(e)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(o)}(O,k),Y=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({},um),{motionName:Js(e,"switch")})),t}(z,_),G=Object.assign(Object.assign({},null==j?void 0:j.style),$),K={align:null!==(o=null==P?void 0:P.align)&&void 0!==o?o:null===(r=null==j?void 0:j.indicator)||void 0===r?void 0:r.align,size:null!==(l=null!==(a=null!==(i=null==P?void 0:P.size)&&void 0!==i?i:M)&&void 0!==a?a:null===(s=null==j?void 0:j.indicator)||void 0===s?void 0:s.size)&&void 0!==l?l:null==j?void 0:j.indicatorSize};return F(e.createElement(cm,Object.assign({direction:T,getPopupContainer:D},I,{items:U,className:N({[`${z}-${q}`]:q,[`${z}-card`]:["card","editable-card"].includes(h),[`${z}-editable-card`]:"editable-card"===h,[`${z}-centered`]:y},null==j?void 0:j.className,p,g,H,V,B),popupClassName:N(E,H,V,B),style:G,editable:W,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(c=null==j?void 0:j.more)||void 0===c?void 0:c.icon)&&void 0!==u?u:null==j?void 0:j.moreIcon)&&void 0!==d?d:C)&&void 0!==f?f:e.createElement(Bp,null),transitionName:`${X}-slide-up`},S),prefixCls:z,animated:Y,indicator:K})))};function Em(e,t,n){var o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function km(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=Em(t,e,o)):n(r=Em(t,e,""))}}Sm.TabPane=wm,"production"!==process.env.NODE_ENV&&(Sm.displayName="Tabs");var Om=t.forwardRef((function(e,n){var o,r,i=e.inputElement,s=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,h=e.className,p=e.style,g=e.disabled,v=e.readOnly,b=e.focused,y=e.triggerFocus,x=e.allowClear,w=e.value,C=e.handleReset,S=e.hidden,E=e.classes,k=e.classNames,O=e.dataAttrs,_=e.styles,$=e.components,M=e.onClear,I=null!=s?s:i,R=(null==$?void 0:$.affixWrapper)||"span",T=(null==$?void 0:$.groupWrapper)||"span",j=(null==$?void 0:$.wrapper)||"span",A=(null==$?void 0:$.groupAddon)||"span",D=a(null),L=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),z=m(I,{value:w,className:N(I.props.className,!L&&(null==k?void 0:k.variant))||null}),B=a(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:B.current||D.current}})),L){var F=null;if(x){var H=!g&&!v&&w,V="".concat(l,"-clear-icon"),W="object"===q(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";F=t.createElement("span",{onClick:function(e){null==C||C(e),null==M||M()},onMouseDown:function(e){return e.preventDefault()},className:N(V,Y(Y({},"".concat(V,"-hidden"),!H),"".concat(V,"-has-suffix"),!!u)),role:"button",tabIndex:-1},W)}var X="".concat(l,"-affix-wrapper"),U=N(X,Y(Y(Y(Y(Y({},"".concat(l,"-disabled"),g),"".concat(X,"-disabled"),g),"".concat(X,"-focused"),b),"".concat(X,"-readonly"),v),"".concat(X,"-input-with-clear-btn"),u&&x&&w),null==E?void 0:E.affixWrapper,null==k?void 0:k.affixWrapper,null==k?void 0:k.variant),G=(u||x)&&t.createElement("span",{className:N("".concat(l,"-suffix"),null==k?void 0:k.suffix),style:null==_?void 0:_.suffix},F,u);z=t.createElement(R,P({className:U,style:null==_?void 0:_.affixWrapper,onClick:function(e){var t;null!==(t=D.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:D}),c&&t.createElement("span",{className:N("".concat(l,"-prefix"),null==k?void 0:k.prefix),style:null==_?void 0:_.prefix},c),z,G)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var Z="".concat(l,"-group"),Q="".concat(Z,"-addon"),J="".concat(Z,"-wrapper"),ee=N("".concat(l,"-wrapper"),Z,null==E?void 0:E.wrapper,null==k?void 0:k.wrapper),te=N(J,Y({},"".concat(J,"-disabled"),g),null==E?void 0:E.group,null==k?void 0:k.groupWrapper);z=t.createElement(T,{className:te,ref:B},t.createElement(j,{className:ee},d&&t.createElement(A,{className:Q},d),z,f&&t.createElement(A,{className:Q},f)))}return t.cloneElement(z,{className:N(null===(o=z.props)||void 0===o?void 0:o.className,h)||null,style:K(K({},null===(r=z.props)||void 0===r?void 0:r.style),p),hidden:S})})),_m=["show"];function $m(t,n){return e.useMemo((function(){var e={};n&&(e.show="object"===q(n)&&n.formatter?n.formatter:!!n);var o=e=K(K({},e),t),r=o.show,i=bt(o,_m);return K(K({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var Mm=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Nm=c((function(e,n){var o=e.autoComplete,r=e.onChange,i=e.onFocus,s=e.onBlur,c=e.onPressEnter,u=e.onKeyDown,f=e.onKeyUp,h=e.prefixCls,p=void 0===h?"rc-input":h,m=e.disabled,v=e.htmlSize,b=e.className,y=e.maxLength,x=e.suffix,w=e.showCount,C=e.count,S=e.type,E=void 0===S?"text":S,k=e.classes,O=e.classNames,_=e.styles,$=e.onCompositionStart,M=e.onCompositionEnd,I=bt(e,Mm),R=ot(d(!1),2),T=R[0],j=R[1],A=a(!1),D=a(!1),L=a(null),z=a(null),B=function(e){L.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}(L.current,e)},F=ot(gi(e.defaultValue,{value:e.value}),2),H=F[0],V=F[1],W=null==H?"":String(H),X=ot(d(null),2),q=X[0],U=X[1],G=$m(C,w),Z=G.max||y,Q=G.strategy(W),J=!!Z&&Q>Z;g(n,(function(){var e;return{focus:B,blur:function(){var e;null===(e=L.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=L.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=L.current)||void 0===e||e.select()},input:L.current,nativeElement:(null===(e=z.current)||void 0===e?void 0:e.nativeElement)||L.current}})),l((function(){j((function(e){return(!e||!m)&&e}))}),[m]);var ee=function(e,t,n){var o,i,a=t;if(!A.current&&G.exceedFormatter&&G.max&&G.strategy(t)>G.max)t!==(a=G.exceedFormatter(t,{max:G.max}))&&U([(null===(o=L.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=L.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;V(a),L.current&&km(L.current,e,r,a)};l((function(){var e;q&&(null===(e=L.current)||void 0===e||e.setSelectionRange.apply(e,Ye(q)))}),[q]);var te,ne=function(e){ee(e,e.target.value,{source:"change"})},oe=function(e){A.current=!1,ee(e,e.currentTarget.value,{source:"compositionEnd"}),null==M||M(e)},re=function(e){c&&"Enter"===e.key&&!D.current&&(D.current=!0,c(e)),null==u||u(e)},ie=function(e){"Enter"===e.key&&(D.current=!1),null==f||f(e)},ae=function(e){j(!0),null==i||i(e)},se=function(e){j(!1),null==s||s(e)},le=J&&"".concat(p,"-out-of-range");return t.createElement(Om,P({},I,{prefixCls:p,className:N(b,le),handleReset:function(e){V(""),B(),L.current&&km(L.current,e,r)},value:W,focused:T,triggerFocus:B,suffix:function(){var e=Number(Z)>0;if(x||G.show){var n=G.showFormatter?G.showFormatter({value:W,count:Q,maxLength:Z}):"".concat(Q).concat(e?" / ".concat(Z):"");return t.createElement(t.Fragment,null,G.show&&t.createElement("span",{className:N("".concat(p,"-show-count-suffix"),Y({},"".concat(p,"-show-count-has-suffix"),!!x),null==O?void 0:O.count),style:K({},null==_?void 0:_.count)},n),x)}return null}(),disabled:m,classes:k,classNames:O,styles:_}),(te=We(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t.createElement("input",P({autoComplete:o},te,{onChange:ne,onFocus:ae,onBlur:se,onKeyDown:re,onKeyUp:ie,className:N(p,Y({},"".concat(p,"-disabled"),m),null==O?void 0:O.input),style:null==_?void 0:_.input,ref:L,size:v,type:E,onCompositionStart:function(e){A.current=!0,null==$||$(e)},onCompositionEnd:oe}))))}));const Pm=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement(hs,null)}),n};function Im(e,t){const n=a([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(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===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return l((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var Rm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Tm=c(((e,n)=>{var o;const{prefixCls:i,bordered:s=!0,status:c,size:u,disabled:d,onBlur:f,onFocus:h,suffix:p,allowClear:g,addonAfter:m,addonBefore:v,className:b,style:y,styles:x,rootClassName:w,onChange:C,classNames:S,variant:E}=e,k=Rm(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}=No("Input");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:O,direction:_,input:$}=t.useContext(Qr),M=O("input",i),P=a(null),I=Ss(M),[R,T,j]=Tg(M,I),{compactSize:A,compactItemClassnames:D}=fl(M,_),L=ul((e=>{var t;return null!==(t=null!=u?u:A)&&void 0!==t?t:e})),z=t.useContext(ti),B=null!=d?d:z,{status:F,hasFeedback:H,feedbackIcon:V}=r(Au),W=Kd(F,c),X=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!H,q=a(X);if("production"!==process.env.NODE_ENV){const e=No("Input");l((()=>{var t;X&&!q.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===(null===(t=P.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"),q.current=X}),[X])}const U=Im(P,!0),Y=(H||p)&&t.createElement(t.Fragment,null,p,H&&V),G=Pm(null!=g?g:null==$?void 0:$.allowClear),[K,Z]=Zd("input",E,s);return R(t.createElement(Nm,Object.assign({ref:te(n,P),prefixCls:M,autoComplete:null==$?void 0:$.autoComplete},k,{disabled:B,onBlur:e=>{U(),null==f||f(e)},onFocus:e=>{U(),null==h||h(e)},style:Object.assign(Object.assign({},null==$?void 0:$.style),y),styles:Object.assign(Object.assign({},null==$?void 0:$.styles),x),suffix:Y,allowClear:G,className:N(b,w,j,I,D,null==$?void 0:$.className),onChange:e=>{U(),null==C||C(e)},addonBefore:v&&t.createElement(zu,{form:!0,space:!0},v),addonAfter:m&&t.createElement(zu,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},S),null==$?void 0:$.classNames),{input:N({[`${M}-sm`]:"small"===L,[`${M}-lg`]:"large"===L,[`${M}-rtl`]:"rtl"===_},null==S?void 0:S.input,null===(o=null==$?void 0:$.classNames)||void 0===o?void 0:o.input,T),variant:N({[`${M}-${K}`]:Z},Gd(M,W)),affixWrapper:N({[`${M}-affix-wrapper-sm`]:"small"===L,[`${M}-affix-wrapper-lg`]:"large"===L,[`${M}-affix-wrapper-rtl`]:"rtl"===_},T),wrapper:N({[`${M}-group-rtl`]:"rtl"===_},T),groupWrapper:N({[`${M}-group-wrapper-sm`]:"small"===L,[`${M}-group-wrapper-lg`]:"large"===L,[`${M}-group-wrapper-rtl`]:"rtl"===_,[`${M}-group-wrapper-${K}`]:Z},Gd(`${M}-group-wrapper`,W,H),T)})})))}));"production"!==process.env.NODE_ENV&&(Tm.displayName="Input");const jm=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 Am=Xi(["Input","OTP"],(e=>{const t=yi(e,lg(e));return[jm(t)]}),cg),Dm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Lm=e.forwardRef(((t,n)=>{const{value:o,onChange:r,onActiveChange:i,index:a,mask:s}=t,l=Dm(t,["value","onChange","onActiveChange","index","mask"]),c=o&&"string"==typeof s?s:o,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(Tm,Object.assign({},l,{ref:u,value:c,onInput:e=>{r(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||o||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===s?"password":"text"}))}));var zm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Bm(e){return(e||"").split("")}const Fm=e.forwardRef(((t,n)=>{const{prefixCls:o,length:r=6,size:i,defaultValue:a,value:s,onChange:l,formatter:c,variant:u,disabled:d,status:f,autoFocus:h,mask:p}=t,g=zm(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=No("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof p&&p.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:m,direction:v}=e.useContext(Qr),b=m("otp",o),y=ys(g,{aria:!0,data:!0,attr:!0}),x=Ss(b),[w,C,S]=Am(b,x),E=ul((e=>null!=i?i:e)),k=e.useContext(Au),O=Kd(k.status,f),_=e.useMemo((()=>Object.assign(Object.assign({},k),{status:O,hasFeedback:!1,feedbackIcon:null})),[k,O]),$=e.useRef(null),M=e.useRef({});e.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=M.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=M.current[t])||void 0===e||e.blur()},nativeElement:$.current})));const P=e=>c?c(e):e,[I,R]=e.useState(Bm(P(a||"")));e.useEffect((()=>{void 0!==s&&R(Bm(s))}),[s]);const T=fi((e=>{R(e),l&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>I[t]!==e))&&l(e.join(""))})),j=fi(((e,t)=>{let n=Ye(I);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Bm(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const o=P(n.map((e=>e||" ")).join(""));return n=Bm(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),A=(e,t)=>{var n;const o=j(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=M.current[i])||void 0===n||n.focus()),T(o)},D=e=>{var t;null===(t=M.current[e])||void 0===t||t.focus()},L={variant:u,disabled:d,status:O,mask:p};return w(e.createElement("div",Object.assign({},y,{ref:$,className:N(b,{[`${b}-sm`]:"small"===E,[`${b}-lg`]:"large"===E,[`${b}-rtl`]:"rtl"===v},S,C)}),e.createElement(Au.Provider,{value:_},Array.from({length:r}).map(((t,n)=>{const o=`otp-${n}`,r=I[n]||"";return e.createElement(Lm,Object.assign({ref:e=>{M.current[n]=e},key:o,index:n,size:E,htmlSize:1,className:`${b}-input`,onChange:A,value:r,onActiveChange:D,autoFocus:0===n&&h},L))})))))}));var Hm={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"},Vm=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Hm}))},Wm=e.forwardRef(Vm);"production"!==process.env.NODE_ENV&&(Wm.displayName="EyeInvisibleOutlined");var Xm={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"},qm=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Xm}))},Um=e.forwardRef(qm);"production"!==process.env.NODE_ENV&&(Um.displayName="EyeOutlined");var Ym=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Gm=t=>t?e.createElement(Um,null):e.createElement(Wm,null),Km={click:"onClick",hover:"onMouseOver"},Zm=e.forwardRef(((t,n)=>{const{disabled:o,action:r="click",visibilityToggle:i=!0,iconRender:s=Gm}=t,l="object"==typeof i&&void 0!==i.visible,[c,u]=d((()=>!!l&&i.visible)),f=a(null);e.useEffect((()=>{l&&u(i.visible)}),[l,i]);const h=Im(f),p=()=>{o||(c&&h(),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:m,inputPrefixCls:v,size:b}=t,y=Ym(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=e.useContext(Qr),w=x("input",v),C=x("input-password",m),S=i&&(t=>{const n=Km[r]||"",o=s(c),i={[n]:p,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(o)?o:e.createElement("span",null,o),i)})(C),E=N(C,g,{[`${C}-${b}`]:!!b}),k=Object.assign(Object.assign({},We(y,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:E,prefixCls:w,suffix:S});return b&&(k.size=b),e.createElement(Tm,Object.assign({ref:te(n,f)},k))}));"production"!==process.env.NODE_ENV&&(Zm.displayName="Input.Password");var Qm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Jm=e.forwardRef(((t,n)=>{const{prefixCls:o,inputPrefixCls:r,className:i,size:a,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:h,onCompositionStart:p,onCompositionEnd:g}=t,m=Qm(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=e.useContext(Qr),y=e.useRef(!1),x=v("input-search",o),w=v("input",r),{compactSize:C}=fl(x,b),S=ul((e=>{var t;return null!==(t=null!=a?a:C)&&void 0!==t?t:e})),E=e.useRef(null),k=e=>{var t;document.activeElement===(null===(t=E.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;f&&f(null===(n=null===(t=E.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},_="boolean"==typeof l?e.createElement(of,null):null,$=`${x}-button`;let M;const P=l||{},I=P.type&&!0===P.type.__ANT_BUTTON;M=I||"button"===P.type?Cs(P,Object.assign({onMouseDown:k,onClick:e=>{var t,n;null===(n=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},I?{className:$,size:S}:{})):e.createElement(ac,{className:$,type:l?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:k,onClick:O,loading:u,icon:_},l),c&&(M=[M,Cs(c,{key:"addonAfter"})]);const R=N(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!l},i);return e.createElement(Tm,Object.assign({ref:te(E,n),onPressEnter:e=>{y.current||u||O(e)}},m,{size:S,onCompositionStart:e=>{y.current=!0,null==p||p(e)},onCompositionEnd:e=>{y.current=!1,null==g||g(e)},prefixCls:w,addonAfter:M,suffix:s,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==h||h(e)},className:R,disabled:d}))}));"production"!==process.env.NODE_ENV&&(Jm.displayName="Search");var ev,tv=["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"],nv={};function ov(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ev||((ev=document.createElement("textarea")).setAttribute("tab-index","-1"),ev.setAttribute("aria-hidden","true"),document.body.appendChild(ev)),e.getAttribute("wrap")?ev.setAttribute("wrap",e.getAttribute("wrap")):ev.removeAttribute("wrap");var r=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&&nv[n])return nv[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:tv.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(nv[n]=s),s}(e,t),i=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;ev.setAttribute("style","".concat(l,";").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")),ev.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=ev.scrollHeight;if("border-box"===s?f+=a:"content-box"===s&&(f-=i),null!==n||null!==o){ev.value=" ";var h=ev.scrollHeight-i;null!==n&&(u=h*n,"border-box"===s&&(u=u+i+a),f=Math.max(u,f)),null!==o&&(d=h*o,"border-box"===s&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var p={height:f,overflowY:c,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}var rv=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],iv=e.forwardRef((function(t,n){var o=t,r=o.prefixCls,i=o.defaultValue,a=o.value,s=o.autoSize,l=o.onResize,c=o.className,u=o.style,d=o.disabled,f=o.onChange,h=o.onInternalAutoSize,p=bt(o,rv),g=ot(gi(i,{value:a,postState:function(e){return null!=e?e:""}}),2),m=g[0],v=g[1],b=e.useRef();e.useImperativeHandle(n,(function(){return{textArea:b.current}}));var y=ot(e.useMemo((function(){return s&&"object"===q(s)?[s.minRows,s.maxRows]:[]}),[s]),2),x=y[0],w=y[1],C=!!s,S=ot(e.useState(2),2),E=S[0],k=S[1],O=ot(e.useState(),2),_=O[0],$=O[1],M=function(){k(0),"test"===process.env.NODE_ENV&&(null==h||h())};Xt((function(){C&&M()}),[a,x,w,C]),Xt((function(){if(0===E)k(1);else if(1===E){var e=ov(b.current,!1,x,w);k(2),$(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=o}}catch(e){}}()}),[E]);var I=e.useRef(),R=function(){et.cancel(I.current)};e.useEffect((function(){return R}),[]);var T=C?_:null,j=K(K({},u),T);return 0!==E&&1!==E||(j.overflowY="hidden",j.overflowX="hidden"),e.createElement(Ve,{onResize:function(e){2===E&&(null==l||l(e),s&&(R(),I.current=et((function(){M()}))))},disabled:!(s||l)},e.createElement("textarea",P({},p,{ref:b,style:j,className:N(r,c,Y({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:function(e){v(e.target.value),null==f||f(e)}})))})),av=["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"],sv=t.forwardRef((function(e,n){var o,r=e.defaultValue,i=e.value,s=e.onFocus,c=e.onBlur,u=e.onChange,d=e.allowClear,f=e.maxLength,h=e.onCompositionStart,p=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,b=void 0===v?"rc-textarea":v,y=e.showCount,x=e.count,w=e.className,C=e.style,S=e.disabled,E=e.hidden,k=e.classNames,O=e.styles,_=e.onResize,$=e.onClear,M=e.onPressEnter,I=e.readOnly,R=e.autoSize,T=e.onKeyDown,j=bt(e,av),A=ot(gi(r,{value:i,defaultValue:r}),2),D=A[0],L=A[1],z=null==D?"":String(D),B=ot(t.useState(!1),2),F=B[0],H=B[1],V=t.useRef(!1),W=ot(t.useState(null),2),X=W[0],q=W[1],U=a(null),G=a(null),Z=function(){var e;return null===(e=G.current)||void 0===e?void 0:e.textArea},Q=function(){Z().focus()};g(n,(function(){var e;return{resizableTextArea:G.current,focus:Q,blur:function(){Z().blur()},nativeElement:(null===(e=U.current)||void 0===e?void 0:e.nativeElement)||Z()}})),l((function(){H((function(e){return!S&&e}))}),[S]);var J=ot(t.useState(null),2),ee=J[0],te=J[1];t.useEffect((function(){var e;ee&&(e=Z()).setSelectionRange.apply(e,Ye(ee))}),[ee]);var ne,oe=$m(x,y),re=null!==(o=oe.max)&&void 0!==o?o:f,ie=Number(re)>0,ae=oe.strategy(z),se=!!re&&ae>re,le=function(e,t){var n=t;!V.current&&oe.exceedFormatter&&oe.max&&oe.strategy(t)>oe.max&&t!==(n=oe.exceedFormatter(t,{max:oe.max}))&&te([Z().selectionStart||0,Z().selectionEnd||0]),L(n),km(e.currentTarget,e,u,n)},ce=m;oe.show&&(ne=oe.showFormatter?oe.showFormatter({value:z,count:ae,maxLength:re}):"".concat(ae).concat(ie?" / ".concat(re):""),ce=t.createElement(t.Fragment,null,ce,t.createElement("span",{className:N("".concat(b,"-data-count"),null==k?void 0:k.count),style:null==O?void 0:O.count},ne)));var ue=!R&&!y&&!d;return t.createElement(Om,{ref:U,value:z,allowClear:d,handleReset:function(e){L(""),Q(),km(Z(),e,u)},suffix:ce,prefixCls:b,classNames:K(K({},k),{},{affixWrapper:N(null==k?void 0:k.affixWrapper,Y(Y({},"".concat(b,"-show-count"),y),"".concat(b,"-textarea-allow-clear"),d))}),disabled:S,focused:F,className:N(w,se&&"".concat(b,"-out-of-range")),style:K(K({},C),X&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ne?ne:void 0}},hidden:E,readOnly:I,onClear:$},t.createElement(iv,P({},j,{autoSize:R,maxLength:f,onKeyDown:function(e){"Enter"===e.key&&M&&M(e),null==T||T(e)},onChange:function(e){le(e,e.target.value)},onFocus:function(e){H(!0),null==s||s(e)},onBlur:function(e){H(!1),null==c||c(e)},onCompositionStart:function(e){V.current=!0,null==h||h(e)},onCompositionEnd:function(e){V.current=!1,le(e,e.currentTarget.value),null==p||p(e)},className:N(null==k?void 0:k.textarea),style:K(K({},null==O?void 0:O.textarea),{},{resize:null==C?void 0:C.resize}),disabled:S,prefixCls:b,onResize:function(e){var t;null==_||_(e),null!==(t=Z())&&void 0!==t&&t.style.height&&q(!0)},ref:G,readOnly:I})))})),lv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const cv=c(((t,n)=>{var o,r;const{prefixCls:i,bordered:a=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:f,className:h,style:p,styles:g,variant:m}=t,v=lv(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=No("TextArea");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:x}=e.useContext(Qr),w=ul(s),C=e.useContext(ti),S=null!=l?l:C,{status:E,hasFeedback:k,feedbackIcon:O}=e.useContext(Au),_=Kd(E,c),$=e.useRef(null);e.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(e=$.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=$.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.blur()}}}));const M=b("input",i),P=Ss(M),[I,R,T]=Tg(M,P),[j,A]=Zd("textArea",m,a),D=Pm(null!=u?u:null==x?void 0:x.allowClear);return I(e.createElement(sv,Object.assign({autoComplete:null==x?void 0:x.autoComplete},v,{style:Object.assign(Object.assign({},null==x?void 0:x.style),p),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:S,allowClear:D,className:N(T,P,h,f,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:N({[`${M}-sm`]:"small"===w,[`${M}-lg`]:"large"===w},R,null==d?void 0:d.textarea,null===(o=null==x?void 0:x.classNames)||void 0===o?void 0:o.textarea),variant:N({[`${M}-${j}`]:A},Gd(M,_)),affixWrapper:N(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:"rtl"===y,[`${M}-affix-wrapper-sm`]:"small"===w,[`${M}-affix-wrapper-lg`]:"large"===w,[`${M}-textarea-show-count`]:t.showCount||(null===(r=t.count)||void 0===r?void 0:r.show)},R)}),prefixCls:M,suffix:k&&e.createElement("span",{className:`${M}-textarea-suffix`},O),ref:$})))})),uv=Tm;function dv(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function fv(e,t,n,o){var r=b.unstable_batchedUpdates?function(e){b.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,r,o)}}}uv.Group=t=>{const{getPrefixCls:n,direction:o}=r(Qr),{prefixCls:i,className:a}=t,s=n("input-group",i),l=n("input"),[c,d]=Tg(l),f=N(s,{[`${s}-lg`]:"large"===t.size,[`${s}-sm`]:"small"===t.size,[`${s}-compact`]:t.compact,[`${s}-rtl`]:"rtl"===o},d,a),h=r(Au),p=u((()=>Object.assign(Object.assign({},h),{isFormItemInput:!1})),[h]);if("production"!==process.env.NODE_ENV){No("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return c(e.createElement("span",{className:f,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(Au.Provider,{value:p},t.children)))},uv.Search=Jm,uv.TextArea=cv,uv.Password=Zm,uv.OTP=Fm;var hv=e.createContext(null),pv=function(t){var n=t.visible,o=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,s=t.rootClassName,l=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,h=t.transform,p=t.count,g=t.scale,m=t.minScale,v=t.maxScale,b=t.closeIcon,y=t.onSwitchLeft,x=t.onSwitchRight,w=t.onClose,C=t.onZoomIn,S=t.onZoomOut,E=t.onRotateRight,k=t.onRotateLeft,O=t.onFlipX,_=t.onFlipY,$=t.onReset,M=t.toolbarRender,P=t.zIndex,I=t.image,R=r(hv),T=l.rotateLeft,j=l.rotateRight,A=l.zoomIn,D=l.zoomOut,L=l.close,z=l.left,B=l.right,F=l.flipX,H=l.flipY,V="".concat(a,"-operations-operation");e.useEffect((function(){var e=function(e){e.keyCode===Es.ESC&&w()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var W=[{icon:H,onClick:_,type:"flipY"},{icon:F,onClick:O,type:"flipX"},{icon:T,onClick:k,type:"rotateLeft"},{icon:j,onClick:E,type:"rotateRight"},{icon:D,onClick:S,type:"zoomOut",disabled:g<=m},{icon:A,onClick:C,type:"zoomIn",disabled:g===v}].map((function(t){var n,o=t.icon,r=t.onClick,i=t.type,s=t.disabled;return e.createElement("div",{className:N(V,(n={},Y(n,"".concat(a,"-operations-operation-").concat(i),!0),Y(n,"".concat(a,"-operations-operation-disabled"),!!s),n)),onClick:r,key:i},o)})),X=e.createElement("div",{className:"".concat(a,"-operations")},W);return e.createElement(Ra,{visible:n,motionName:o},(function(t){var n=t.className,o=t.style;return e.createElement(pc,{open:!0,getContainer:null!=i?i:document.body},e.createElement("div",{className:N("".concat(a,"-operations-wrapper"),n,s),style:K(K({},o),{},{zIndex:P})},null===b?null:e.createElement("button",{className:"".concat(a,"-close"),onClick:w},b||L),u&&e.createElement(e.Fragment,null,e.createElement("div",{className:N("".concat(a,"-switch-left"),Y({},"".concat(a,"-switch-left-disabled"),0===f)),onClick:y},z),e.createElement("div",{className:N("".concat(a,"-switch-right"),Y({},"".concat(a,"-switch-right-disabled"),f===p-1)),onClick:x},B)),e.createElement("div",{className:"".concat(a,"-footer")},d&&e.createElement("div",{className:"".concat(a,"-progress")},c?c(f+1,p):"".concat(f+1," / ").concat(p)),M?M(X,K(K({icons:{flipYIcon:W[0],flipXIcon:W[1],rotateLeftIcon:W[2],rotateRightIcon:W[3],zoomOutIcon:W[4],zoomInIcon:W[5]},actions:{onFlipY:_,onFlipX:O,onRotateLeft:k,onRotateRight:E,onZoomOut:S,onZoomIn:C,onReset:$,onClose:w},transform:h},R?{current:f,total:p}:{}),{},{image:I})):X)))}))},gv={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function mv(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return Y({},e,i);if(t<0&&r<o)return Y({},e,-i)}else if(t<0||r>o)return Y({},e,t<0?i:-i);return{}}function vv(e,t,n,o){var r=dv(),i=r.width,a=r.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=K(K({},mv("x",n,e,i)),mv("y",o,t,a))),s}function bv(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,r=ot(d(n?"loading":"normal"),2),i=r[0],s=r[1],c=a(!1),u="error"===i;l((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&s("error")})),function(){e=!1}}),[t]),l((function(){n&&!c.current?s("loading"):u&&s("normal")}),[t]);var f=function(){s("normal")};return[function(e){c.current=!1,"loading"===i&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,f())},u&&o?{src:o}:{onLoad:f,src:t},i]}function yv(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function xv(e,t,n,o,r,i,s){var c=r.rotate,u=r.scale,f=r.x,h=r.y,p=ot(d(!1),2),g=p[0],m=p[1],v=a({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),b=function(e){v.current=K(K({},v.current),e)};return l((function(){var e;return n&&t&&(e=fv(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:g,onTouchStart:function(e){if(t){e.stopPropagation(),m(!0);var n=e.touches,o=void 0===n?[]:n;o.length>1?b({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):b({point1:{x:o[0].clientX-f,y:o[0].clientY-h},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=v.current,r=o.point1,a=o.point2,l=o.eventType;if(n.length>1&&"touchZoom"===l){var c={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,o){var r=yv(e,n),i=yv(t,o);if(0===r&&0===i)return[e.x,e.y];var a=r/(r+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(r,a,c,u),f=ot(d,2),h=f[0],p=f[1],g=yv(c,u)/yv(r,a);s(g,"touchZoom",h,p,!0),b({point1:c,point2:u,eventType:"touchZoom"})}else"move"===l&&(i({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),b({eventType:"move"}))},onTouchEnd:function(){if(n){if(g&&m(!1),b({eventType:"none"}),o>u)return i({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*u,r=e.current.offsetHeight*u,a=e.current.getBoundingClientRect(),s=a.left,l=a.top,d=c%180!=0,f=vv(d?r:t,d?t:r,s,l);f&&i(K({},f),"dragRebound")}}}}var wv=["fallback","src","imgRef"],Cv=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Sv=function(e){var n=e.fallback,o=e.src,r=e.imgRef,i=bt(e,wv),a=ot(bv({src:o,fallback:n}),2),s=a[0],l=a[1];return t.createElement("img",P({ref:function(e){r.current=e,s(e)}},i,l))},Ev=function(e){var n=e.prefixCls,o=e.src,i=e.alt,s=e.imageInfo,c=e.fallback,u=e.movable,f=void 0===u||u,h=e.onClose,p=e.visible,g=e.icons,m=void 0===g?{}:g,v=e.rootClassName,b=e.closeIcon,y=e.getContainer,x=e.current,w=void 0===x?0:x,C=e.count,S=void 0===C?1:C,E=e.countRender,k=e.scaleStep,O=void 0===k?.5:k,_=e.minScale,$=void 0===_?1:_,M=e.maxScale,I=void 0===M?50:M,R=e.transitionName,T=void 0===R?"zoom":R,j=e.maskTransitionName,A=void 0===j?"fade":j,D=e.imageRender,L=e.imgCommonProps,z=e.toolbarRender,B=e.onTransform,H=e.onChange,V=bt(e,Cv),W=a(),X=r(hv),q=X&&S>1,U=X&&S>=1,G=ot(d(!0),2),Z=G[0],Q=G[1],J=function(e,t,n,o){var r=a(null),i=a([]),s=ot(d(gv),2),l=s[0],c=s[1],u=function(e,t){null===r.current&&(i.current=[],r.current=et((function(){c((function(e){var n=e;return i.current.forEach((function(e){n=K(K({},n),e)})),r.current=null,null==o||o({transform:n,action:t}),n}))}))),i.current.push(K(K({},l),e))};return{transform:l,resetTransform:function(e){c(gv),yt(gv,l)||null==o||o({transform:gv,action:e})},updateTransform:u,dispatchZoomChange:function(o,r,i,a,s){var c=e.current,d=c.width,f=c.height,h=c.offsetWidth,p=c.offsetHeight,g=c.offsetLeft,m=c.offsetTop,v=o,b=l.scale*o;b>n?(b=n,v=n/l.scale):b<t&&(v=(b=s?b:t)/l.scale);var y=null!=i?i:innerWidth/2,x=null!=a?a:innerHeight/2,w=v-1,C=w*d*.5,S=w*f*.5,E=w*(y-l.x-g),k=w*(x-l.y-m),O=l.x-(E-C),_=l.y-(k-S);if(o<1&&1===b){var $=h*b,M=p*b,N=dv(),P=N.width,I=N.height;$<=P&&M<=I&&(O=0,_=0)}u({x:O,y:_,scale:b},r)}}}(W,$,I,B),ee=J.transform,te=J.resetTransform,ne=J.updateTransform,oe=J.dispatchZoomChange,re=function(e,t,n,o,r,i,s){var c=r.rotate,u=r.scale,f=r.x,h=r.y,p=ot(d(!1),2),g=p[0],m=p[1],v=a({diffX:0,diffY:0,transformX:0,transformY:0}),b=function(e){n&&g&&i({x:e.pageX-v.current.diffX,y:e.pageY-v.current.diffY},"move")},y=function(){if(n&&g){m(!1);var t=v.current,o=t.transformX,r=t.transformY;if(f===o||h===r)return;var a=e.current.offsetWidth*u,s=e.current.offsetHeight*u,l=e.current.getBoundingClientRect(),d=l.left,p=l.top,b=c%180!=0,y=vv(b?s:a,b?a:s,d,p);y&&i(K({},y),"dragRebound")}};return l((function(){var e,n,o,r;if(t){o=fv(window,"mouseup",y,!1),r=fv(window,"mousemove",b,!1);try{window.top!==window.self&&(e=fv(window.top,"mouseup",y,!1),n=fv(window.top,"mousemove",b,!1))}catch(e){F(!1,"[rc-image] ".concat(e))}}return function(){var t,i,a,s;null===(t=o)||void 0===t||t.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(s=n)||void 0===s||s.remove()}}),[n,g,f,h,c,t]),{isMoving:g,onMouseDown:function(e){t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),v.current={diffX:e.pageX-f,diffY:e.pageY-h,transformX:f,transformY:h},m(!0))},onMouseMove:b,onMouseUp:y,onWheel:function(e){if(n&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),r=1+Math.min(t,1)*o;e.deltaY>0&&(r=1/r),s(r,"wheel",e.clientX,e.clientY)}}}}(W,f,p,O,ee,ne,oe),ie=re.isMoving,ae=re.onMouseDown,se=re.onWheel,le=xv(W,f,p,$,ee,ne,oe),ce=le.isTouching,ue=le.onTouchStart,de=le.onTouchMove,fe=le.onTouchEnd,he=ee.rotate,pe=ee.scale,ge=N(Y({},"".concat(n,"-moving"),ie));l((function(){Z||Q(!0)}),[Z]);var me=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),w>0&&(Q(!1),te("prev"),null==H||H(w-1,w))},ve=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),w<S-1&&(Q(!1),te("next"),null==H||H(w+1,w))},be=function(e){p&&q&&(e.keyCode===Es.LEFT?me():e.keyCode===Es.RIGHT&&ve())};l((function(){var e=fv(window,"keydown",be,!1);return function(){e.remove()}}),[p,q,w]);var ye=t.createElement(Sv,P({},L,{width:e.width,height:e.height,imgRef:W,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(ee.x,"px, ").concat(ee.y,"px, 0) scale3d(").concat(ee.flipX?"-":"").concat(pe,", ").concat(ee.flipY?"-":"").concat(pe,", 1) rotate(").concat(he,"deg)"),transitionDuration:(!Z||ce)&&"0s"},fallback:c,src:o,onWheel:se,onMouseDown:ae,onDoubleClick:function(e){p&&(1!==pe?ne({x:0,y:0,scale:1},"doubleClick"):oe(1+O,"doubleClick",e.clientX,e.clientY))},onTouchStart:ue,onTouchMove:de,onTouchEnd:fe,onTouchCancel:fe})),xe=K({url:o,alt:i},s);return t.createElement(t.Fragment,null,t.createElement($c,P({transitionName:T,maskTransitionName:A,closable:!1,keyboard:!0,prefixCls:n,onClose:h,visible:p,classNames:{wrapper:ge},rootClassName:v,getContainer:y},V,{afterClose:function(){te("close")}}),t.createElement("div",{className:"".concat(n,"-img-wrapper")},D?D(ye,K({transform:ee,image:xe},X?{current:w}:{})):ye)),t.createElement(pv,{visible:p,transform:ee,maskTransitionName:A,closeIcon:b,getContainer:y,prefixCls:n,rootClassName:v,icons:m,countRender:E,showSwitch:q,showProgress:U,current:w,count:S,scale:pe,minScale:$,maxScale:I,toolbarRender:z,onSwitchLeft:me,onSwitchRight:ve,onZoomIn:function(){oe(1+O,"zoomIn")},onZoomOut:function(){oe(1/(1+O),"zoomOut")},onRotateRight:function(){ne({rotate:he+90},"rotateRight")},onRotateLeft:function(){ne({rotate:he-90},"rotateLeft")},onFlipX:function(){ne({flipX:!ee.flipX},"flipX")},onFlipY:function(){ne({flipY:!ee.flipY},"flipY")},onClose:h,onReset:function(){te("reset")},zIndex:void 0!==V.zIndex?V.zIndex+1:void 0,image:xe}))},kv=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var Ov=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],_v=["src"],$v=0;var Mv=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Nv=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Pv=function(t){var n=t.src,o=t.alt,i=t.onPreviewClose,a=t.prefixCls,s=void 0===a?"rc-image":a,l=t.previewPrefixCls,c=void 0===l?"".concat(s,"-preview"):l,f=t.placeholder,h=t.fallback,p=t.width,g=t.height,m=t.style,v=t.preview,b=void 0===v||v,y=t.className,x=t.onClick,w=t.onError,C=t.wrapperClassName,S=t.wrapperStyle,E=t.rootClassName,k=bt(t,Mv),O=f&&!0!==f,_="object"===q(b)?b:{},$=_.src,M=_.visible,I=void 0===M?void 0:M,R=_.onVisibleChange,T=void 0===R?i:R,j=_.getContainer,A=void 0===j?void 0:j,D=_.mask,L=_.maskClassName,z=_.movable,B=_.icons,F=_.scaleStep,H=_.minScale,V=_.maxScale,W=_.imageRender,X=_.toolbarRender,U=bt(_,Nv),G=null!=$?$:n,Z=ot(gi(!!I,{value:I,onChange:T}),2),Q=Z[0],J=Z[1],ee=ot(bv({src:n,isCustomPlaceholder:O,fallback:h}),3),te=ee[0],ne=ee[1],oe=ee[2],re=ot(d(null),2),ie=re[0],ae=re[1],se=r(hv),le=!!b,ce=N(s,C,E,Y({},"".concat(s,"-error"),"error"===oe)),ue=u((function(){var e={};return kv.forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e}),kv.map((function(e){return t[e]}))),de=function(t,n){var o=ot(e.useState((function(){return String($v+=1)})),1)[0],r=e.useContext(hv),i={data:n,canPreview:t};return e.useEffect((function(){if(r)return r.register(o,i)}),[]),e.useEffect((function(){r&&r.register(o,i)}),[t,n]),o}(le,u((function(){return K(K({},ue),{},{src:G})}),[G,ue]));return e.createElement(e.Fragment,null,e.createElement("div",P({},k,{className:ce,onClick:le?function(e){var t=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}(e.target),n=t.left,o=t.top;se?se.onPreview(de,G,n,o):(ae({x:n,y:o}),J(!0)),null==x||x(e)}:x,style:K({width:p,height:g},S)}),e.createElement("img",P({},ue,{className:N("".concat(s,"-img"),Y({},"".concat(s,"-img-placeholder"),!0===f),y),style:K({height:g},m),ref:te},ne,{width:p,height:g,onError:w})),"loading"===oe&&e.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},f),D&&le&&e.createElement("div",{className:N("".concat(s,"-mask"),L),style:{display:"none"===(null==m?void 0:m.display)?"none":void 0}},D)),!se&&le&&e.createElement(Ev,P({"aria-hidden":!Q,visible:Q,prefixCls:c,onClose:function(){J(!1),ae(null)},mousePosition:ie,src:G,alt:o,imageInfo:{width:p,height:g},fallback:h,getContainer:A,icons:B,movable:z,scaleStep:F,minScale:H,maxScale:V,rootClassName:E,imageRender:W,imgCommonProps:ue,toolbarRender:X},U)))};Pv.PreviewGroup=function(t){var n,o=t.previewPrefixCls,r=void 0===o?"rc-image-preview":o,i=t.children,a=t.icons,s=void 0===a?{}:a,l=t.items,c=t.preview,u=t.fallback,f="object"===q(c)?c:{},h=f.visible,p=f.onVisibleChange,g=f.getContainer,m=f.current,v=f.movable,b=f.minScale,y=f.maxScale,x=f.countRender,w=f.closeIcon,C=f.onChange,S=f.onTransform,E=f.toolbarRender,k=f.imageRender,O=bt(f,Ov),_=function(t){var n=ot(e.useState({}),2),o=n[0],r=n[1],i=e.useCallback((function(e,t){return r((function(n){return K(K({},n),{},Y({},e,t))})),function(){r((function(t){var n=K({},t);return delete n[e],n}))}}),[]);return[e.useMemo((function(){return t?t.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(Ye(kv)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(o).reduce((function(e,t){var n=o[t],r=n.canPreview,i=n.data;return r&&e.push({data:i,id:t}),e}),[])}),[t,o]),i,!!t]}(l),$=ot(_,3),M=$[0],N=$[1],I=$[2],R=ot(gi(0,{value:m}),2),T=R[0],j=R[1],A=ot(d(!1),2),D=A[0],L=A[1],z=(null===(n=M[T])||void 0===n?void 0:n.data)||{},B=z.src,F=bt(z,_v),H=ot(gi(!!h,{value:h,onChange:function(e,t){null==p||p(e,t,T)}}),2),V=H[0],W=H[1],X=ot(d(null),2),U=X[0],G=X[1],Z=e.useCallback((function(e,t,n,o){var r=I?M.findIndex((function(e){return e.data.src===t})):M.findIndex((function(t){return t.id===e}));j(r<0?0:r),W(!0),G({x:n,y:o}),L(!0)}),[M,I]);e.useEffect((function(){V?D||j(0):L(!1)}),[V]);var Q=e.useMemo((function(){return{register:N,onPreview:Z}}),[N,Z]);return e.createElement(hv.Provider,{value:Q},i,e.createElement(Ev,P({"aria-hidden":!V,movable:v,visible:V,prefixCls:r,closeIcon:w,onClose:function(){W(!1),G(null)},mousePosition:U,imgCommonProps:F,src:B,fallback:u,icons:s,minScale:b,maxScale:y,getContainer:g,current:T,count:M.length,countRender:x,onTransform:S,toolbarRender:E,imageRender:k,onChange:function(e,t){j(e),null==C||C(e,t)}},O)))},"production"!==process.env.NODE_ENV&&(Pv.displayName="Image");var Iv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Rv=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Iv}))},Tv=e.forwardRef(Rv);"production"!==process.env.NODE_ENV&&(Tv.displayName="RotateLeftOutlined");var jv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Av=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:jv}))},Dv=e.forwardRef(Av);"production"!==process.env.NODE_ENV&&(Dv.displayName="RotateRightOutlined");var Lv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},zv=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Lv}))},Bv=e.forwardRef(zv);"production"!==process.env.NODE_ENV&&(Bv.displayName="SwapOutlined");var Fv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Hv=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Fv}))},Vv=e.forwardRef(Hv);"production"!==process.env.NODE_ENV&&(Vv.displayName="ZoomInOutlined");var Wv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Xv=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Wv}))},qv=e.forwardRef(Xv);"production"!==process.env.NODE_ENV&&(qv.displayName="ZoomOutOutlined");const Uv=e=>({position:e||"absolute",inset:0}),Yv=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new sr("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},zi),{padding:`0 ${zt(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},Gv=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,marginXL:r,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,f=new sr(n).setAlpha(.1),h=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:r,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:r,right:{_skip_check_:!0,value:r},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${zt(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Kv=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,s=new sr(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},Zv=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Uv()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Uv()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Gv(e),Kv(e)]}]},Qv=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Yv(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Uv())}}},Jv=e=>{const{previewCls:t}=e;return{[`${t}-root`]:rd(e,"zoom"),"&":Yu(e,!0)}};var eb=Xi("Image",(e=>{const t=`${e.componentCls}-preview`,n=yi(e,{previewCls:t,modalMaskBg:new sr("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Qv(n),Zv(n),ad(yi(n,{componentCls:t})),Jv(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new sr(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new sr(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new sr(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),tb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const nb={rotateLeft:e.createElement(Tv,null),rotateRight:e.createElement(Dv,null),zoomIn:e.createElement(Vv,null),zoomOut:e.createElement(qv,null),close:e.createElement(ms,null),left:e.createElement(Pp,null),right:e.createElement(Qf,null),flipX:e.createElement(Bv,null),flipY:e.createElement(Bv,{rotate:90})};var ob=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const rb=t=>{var n;const{prefixCls:o,preview:r,className:i,rootClassName:a,style:s}=t,l=ob(t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=Do,getPopupContainer:d,image:f}=e.useContext(Qr),h=c("image",o),p=c(),g=u.Image||Do.Image,m=Ss(h),[v,b,y]=eb(h,m),x=N(a,b,y,m),w=N(i,b,null==f?void 0:f.className),[C]=Is("ImagePreview","object"==typeof r?r.zIndex:void 0),S=e.useMemo((()=>{var t;if(!1===r)return r;const n="object"==typeof r?r:{},{getContainer:o,closeIcon:i}=n,a=ob(n,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:e.createElement("div",{className:`${h}-mask-info`},e.createElement(Um,null),null==g?void 0:g.preview),icons:nb},a),{getContainer:null!=o?o:d,transitionName:Js(p,"zoom",n.transitionName),maskTransitionName:Js(p,"fade",n.maskTransitionName),zIndex:C,closeIcon:null!=i?i:null===(t=null==f?void 0:f.preview)||void 0===t?void 0:t.closeIcon})}),[r,g,null===(n=null==f?void 0:f.preview)||void 0===n?void 0:n.closeIcon]),E=Object.assign(Object.assign({},null==f?void 0:f.style),s);return v(e.createElement(Pv,Object.assign({prefixCls:h,preview:S,rootClassName:x,className:w,style:E},l)))};rb.PreviewGroup=t=>{var{previewPrefixCls:n,preview:o}=t,r=tb(t,["previewPrefixCls","preview"]);const{getPrefixCls:i}=e.useContext(Qr),a=i("image",n),s=`${a}-preview`,l=i(),c=Ss(a),[u,d,f]=eb(a,c),[h]=Is("ImagePreview","object"==typeof o?o.zIndex:void 0),p=e.useMemo((()=>{var e;if(!1===o)return o;const t="object"==typeof o?o:{},n=N(d,f,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:Js(l,"zoom",t.transitionName),maskTransitionName:Js(l,"fade",t.maskTransitionName),rootClassName:n,zIndex:h})}),[o]);return u(e.createElement(Pv.PreviewGroup,Object.assign({preview:p,previewPrefixCls:s,icons:nb},r)))},"production"!==process.env.NODE_ENV&&(rb.displayName="Image");const ib=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:o,lightTriggerBg:r,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:o,[`${t}-sider-trigger`]:{color:i,background:r},[`${t}-sider-zero-width-trigger`]:{color:i,background:r,border:`1px solid ${n}`,borderInlineStart:0}}}},ab=e=>{const{antCls:t,componentCls:n,colorText:o,triggerColor:r,footerBg:i,triggerBg:a,headerHeight:s,headerPadding:l,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:h,motionDurationMid:p,motionDurationSlow:g,fontSize:m,borderRadius:v,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 ${p}, 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:r,lineHeight:zt(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${p}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:f,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:x,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,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(h).mul(-1).equal(),borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},ib(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:zt(s),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:o,fontSize:m,background:i},[`${n}-content`]:{flex:"auto",color:o,minHeight:0}}};var sb=Xi("Layout",(e=>[ab(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:r,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:r}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),lb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function cb(t){let{suffixCls:n,tagName:o,displayName:r}=t;return t=>{const i=e.forwardRef(((r,i)=>e.createElement(t,Object.assign({ref:i,suffixCls:n,tagName:o},r))));return"production"!==process.env.NODE_ENV&&(i.displayName=r),i}}const ub=e.forwardRef(((t,n)=>{const{prefixCls:o,suffixCls:r,className:i,tagName:a}=t,s=lb(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=e.useContext(Qr),c=l("layout",o),[u,d,f]=sb(c),h=r?`${c}-${r}`:c;return u(e.createElement(a,Object.assign({className:N(o||h,i,d,f),ref:n},s)))})),db=e.forwardRef(((t,n)=>{const{direction:o}=e.useContext(Qr),[r,i]=e.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=t,h=We(lb(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:p,layout:g}=e.useContext(Qr),m=p("layout",a),v=function(e,t,n){return"boolean"==typeof n?n:!!e.length||L(t).some((e=>e.type===Dp))}(r,c,u),[b,y,x]=sb(m),w=N(m,{[`${m}-has-sider`]:v,[`${m}-rtl`]:"rtl"===o},null==g?void 0:g.className,s,l,y,x),C=e.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Ye(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return b(e.createElement(Ip.Provider,{value:C},e.createElement(d,Object.assign({ref:n,className:w,style:Object.assign(Object.assign({},null==g?void 0:g.style),f)},h),c)))})),fb=cb({tagName:"div",displayName:"Layout"})(db),hb=cb({suffixCls:"header",tagName:"header",displayName:"Header"})(ub),pb=cb({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ub),gb=cb({suffixCls:"content",tagName:"main",displayName:"Content"})(ub),mb=fb;mb.Header=hb,mb.Footer=pb,mb.Content=gb,mb.Sider=Dp,mb._InternalSiderContext=jp;var vb={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"},bb=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:vb}))},yb=e.forwardRef(bb);"production"!==process.env.NODE_ENV&&(yb.displayName="CopyOutlined");var xb={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"},wb=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:xb}))},Cb=e.forwardRef(wb);"production"!==process.env.NODE_ENV&&(Cb.displayName="EditOutlined");var Sb={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"},Eb=function(t,n){return e.createElement(us,P({},t,{ref:n,icon:Sb}))},kb=e.forwardRef(Eb);"production"!==process.env.NODE_ENV&&(kb.displayName="EnterOutlined");var Ob=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const _b={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},$b=e.forwardRef(((t,n)=>{const{style:o,noStyle:r,disabled:i,tabIndex:a=0}=t,s=Ob(t,["style","noStyle","disabled","tabIndex"]);let l={};return r||(l=Object.assign({},_b)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),e.createElement("div",Object.assign({role:"button",tabIndex:a,ref:n},s,{onKeyDown:e=>{const{keyCode:t}=e;t===Es.ENTER&&e.preventDefault()},onKeyUp:e=>{const{keyCode:n}=e,{onClick:o}=t;n===Es.ENTER&&o&&o()},style:l}))})),Mb=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,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},Nb=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Li(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"}}})}},Pb=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:Or[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}}),Ib=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(o).mul(-1).equal(),marginBottom:`calc(1em - ${zt(o)})`},[`${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"}}}},Rb=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Tb=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"}},Mb(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}}}),Pb(e)),Nb(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},Li(e)),{marginInlineStart:e.marginXXS})}),Ib(e)),Rb(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 jb=Xi("Typography",(e=>[Tb(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const Ab=t=>{const{prefixCls:n,"aria-label":o,className:r,style:i,direction:a,maxLength:s,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:h,enterIcon:p=e.createElement(kb,null)}=t,g=e.useRef(null),m=e.useRef(!1),v=e.useRef(),[b,y]=e.useState(c);e.useEffect((()=>{y(c)}),[c]),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,S]=jb(n),E=N(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a,[`${n}-${h}`]:!!h},r,C,S);return w(e.createElement("div",{className:E,style:i},e.createElement(cv,{ref:g,maxLength:s,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;m.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;v.current!==t||m.current||n||o||r||i||(t===Es.ENTER?(x(),null==f||f()):t===Es.ESC&&d())},onCompositionStart:()=>{m.current=!0},onCompositionEnd:()=>{m.current=!1},onBlur:()=>{x()},"aria-label":o,rows:1,autoSize:l}),null!==p?Cs(p,{className:`${n}-edit-content-confirm`}):null))};var Db=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));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()}},Lb={"text/plain":"Text","text/html":"Url",default:"Text"};var zb=function(e,t){var n,o,r,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(r=Db(),i=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=Lb[t.format]||Lb.default;window.clipboardData.setData(r,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=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(o,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),r()}return l},Bb=C(zb),Fb=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};function Hb(t,n){return e.useMemo((()=>{const e=!!t;return[e,Object.assign(Object.assign({},n),e&&"object"==typeof t?t:null)]}),[t])}var Vb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Wb=e.forwardRef(((t,n)=>{const{prefixCls:o,component:r="article",className:i,rootClassName:a,setContentRef:s,children:l,direction:c,style:u}=t,d=Vb(t,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:h,typography:p}=e.useContext(Qr),g=null!=c?c:h,m=s?te(n,s):n,v=f("typography",o);if("production"!==process.env.NODE_ENV){No("Typography").deprecated(!s,"setContentRef","ref")}const[b,y,x]=jb(v),w=N(v,null==p?void 0:p.className,{[`${v}-rtl`]:"rtl"===g},i,a,y,x),C=Object.assign(Object.assign({},null==p?void 0:p.style),u);return b(e.createElement(r,Object.assign({className:w,style:C,ref:m},d),l))}));function Xb(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function qb(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(Wb.displayName="Typography");const Ub=e=>["string","number"].includes(typeof e),Yb=t=>{let{prefixCls:n,copied:o,locale:r,iconOnly:i,tooltips:a,icon:s,tabIndex:l,onCopy:c,loading:u}=t;const d=Xb(a),f=Xb(s),{copied:h,copy:p}=null!=r?r:{},g=o?h:p,m=qb(d[o?1:0],g),v="string"==typeof m?m:g;return e.createElement(Nf,{title:m},e.createElement($b,{className:N(`${n}-copy`,{[`${n}-copy-success`]:o,[`${n}-copy-icon-only`]:i}),onClick:c,"aria-label":v,tabIndex:l},o?qb(f[1],e.createElement(ef,null),!0):qb(f[0],u?e.createElement(_s,null):e.createElement(yb,null),!0)))},Gb=e.forwardRef(((t,n)=>{let{style:o,children:r}=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)"},o)},r)}));function Kb(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const i=e[r],a=n+(Ub(i)?String(i).length:1);if(a>t){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=a}return e}const Zb=0,Qb=4,Jb={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ey(t){const{enableMeasure:n,width:o,text:r,children:i,rows:a,expanded:s,miscDeps:l,onEllipsis:c}=t,u=e.useMemo((()=>L(r)),[r]),d=e.useMemo((()=>(e=>e.reduce(((e,t)=>e+(Ub(t)?String(t).length:1)),0))(u)),[r]),f=e.useMemo((()=>i(u,!1)),[r]),[h,p]=e.useState(null),g=e.useRef(null),m=e.useRef(null),v=e.useRef(null),b=e.useRef(null),y=e.useRef(null),[x,w]=e.useState(!1),[C,S]=e.useState(Zb),[E,k]=e.useState(0),[O,_]=e.useState(null);Xt((()=>{S(n&&o&&d?1:Zb)}),[o,r,a,n,u]),Xt((()=>{var e,t,n,o;if(1===C){S(2);const e=m.current&&getComputedStyle(m.current).whiteSpace;_(e)}else if(2===C){const r=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());S(r?3:Qb),p(r?[0,d]:null),w(r);const i=(null===(t=v.current)||void 0===t?void 0:t.getHeight())||0,s=1===a?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0,l=(null===(o=y.current)||void 0===o?void 0:o.getHeight())||0,u=Math.max(i,s+l);k(u+1),c(r)}}),[C]);const $=h?Math.ceil((h[0]+h[1])/2):0;Xt((()=>{var e;const[t,n]=h||[0,0];if(t!==n){const o=((null===(e=g.current)||void 0===e?void 0:e.getHeight())||0)>E;let r=$;n-t==1&&(r=o?t:n),p(o?[t,r]:[r,n])}}),[h,$]);const M=e.useMemo((()=>{if(!n)return i(u,!1);if(3!==C||!h||h[0]!==h[1]){const t=i(u,!1);return[Qb,Zb].includes(C)?t:e.createElement("span",{style:Object.assign(Object.assign({},Jb),{WebkitLineClamp:a})},t)}return i(s?u:Kb(u,h[0]),x)}),[s,C,h,u].concat(Ye(l))),N={width:o,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return e.createElement(e.Fragment,null,M,2===C&&e.createElement(e.Fragment,null,e.createElement(Gb,{style:Object.assign(Object.assign(Object.assign({},N),Jb),{WebkitLineClamp:a}),ref:v},f),e.createElement(Gb,{style:Object.assign(Object.assign(Object.assign({},N),Jb),{WebkitLineClamp:a-1}),ref:b},f),e.createElement(Gb,{style:Object.assign(Object.assign(Object.assign({},N),Jb),{WebkitLineClamp:1}),ref:y},i([],!0))),3===C&&h&&h[0]!==h[1]&&e.createElement(Gb,{style:Object.assign(Object.assign({},N),{top:400}),ref:g},i(Kb(u,$),!0)),1===C&&e.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const ty=t=>{let{enableEllipsis:n,isEllipsis:o,children:r,tooltipProps:i}=t;return(null==i?void 0:i.title)&&n?e.createElement(Nf,Object.assign({open:!!o&&void 0},i),r):r};"production"!==process.env.NODE_ENV&&(ty.displayName="EllipsisTooltip");var ny=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const oy=e.forwardRef(((t,n)=>{var r;const{prefixCls:i,className:s,style:c,type:d,disabled:f,children:h,ellipsis:p,editable:g,copyable:m,component:v,title:b}=t,y=ny(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:w}=e.useContext(Qr),[C]=((t,n)=>{const o=e.useContext(Bo),r=e.useMemo((()=>{var e;const n=Do[t],r=null!==(e=null==o?void 0:o[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"==typeof n?n():n),r||{})}),[t,n,o]);return[r,e.useMemo((()=>{const e=null==o?void 0:o.locale;return(null==o?void 0:o.exist)&&!e?Do.locale:e}),[o])]})("Text"),S=e.useRef(null),E=e.useRef(null),k=x("typography",i),O=We(y,["mark","code","delete","underline","strong","keyboard","italic"]),[_,$]=Hb(g),[M,P]=gi(!1,{value:$.editing}),{triggerType:I=["icon"]}=$,R=e=>{var t;e&&(null===(t=$.onStart)||void 0===t||t.call($)),P(e)},T=(e=>{const t=a();return l((()=>{t.current=e})),t.current})(M);Xt((()=>{var e;!M&&T&&(null===(e=E.current)||void 0===e||e.focus())}),[M]);const j=e=>{null==e||e.preventDefault(),R(!0)},A=e=>{var t;null===(t=$.onChange)||void 0===t||t.call($,e),R(!1)},D=()=>{var e;null===(e=$.onCancel)||void 0===e||e.call($),R(!1)},[z,B]=Hb(m),{copied:F,copyLoading:H,onClick:V}=(t=>{let{copyConfig:n,children:o}=t;const[r,i]=e.useState(!1),[a,s]=e.useState(!1),l=e.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};return n.format&&(u.format=n.format),e.useEffect((()=>c),[]),{copied:r,copyLoading:a,onClick:fi((e=>Fb(void 0,void 0,void 0,(function*(){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),s(!0);try{const r="function"==typeof n.text?yield n.text():n.text;Bb(r||String(o)||"",u),s(!1),i(!0),c(),l.current=setTimeout((()=>{i(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(e){throw s(!1),e}}))))}})({copyConfig:B,children:h}),[W,X]=e.useState(!1),[q,U]=e.useState(!1),[Y,G]=e.useState(!1),[K,Z]=e.useState(!1),[Q,J]=e.useState(!0),[ee,ne]=Hb(p,{expandable:!1,symbol:e=>e?null==C?void 0:C.collapse:null==C?void 0:C.expand}),[oe,re]=gi(ne.defaultExpanded||!1,{value:ne.expanded}),ie=ee&&(!oe||"collapsible"===ne.expandable),{rows:ae=1}=ne,se=e.useMemo((()=>ie&&(void 0!==ne.suffix||ne.onEllipsis||ne.expandable||_||z)),[ie,ne,_,z]);Xt((()=>{ee&&!se&&(X(Fu("webkitLineClamp")),U(Fu("textOverflow")))}),[se,ee]);const[le,ce]=e.useState(ie),ue=e.useMemo((()=>!se&&(1===ae?q:W)),[se,q,W]);Xt((()=>{ce(ue&&ie)}),[ue,ie]);const de=ie&&(le?K:Y),fe=ie&&1===ae&&le,he=ie&&ae>1&&le,[pe,ge]=e.useState(0),me=e=>{var t;G(e),Y!==e&&(null===(t=ne.onEllipsis)||void 0===t||t.call(ne,e))};e.useEffect((()=>{const e=S.current;if(ee&&le&&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(),o=t.getBoundingClientRect();return e.removeChild(t),n.left>o.left||o.right>n.right||n.top>o.top||o.bottom>n.bottom}(e);K!==t&&Z(t)}}),[ee,le,h,he,Q,pe]),e.useEffect((()=>{const e=S.current;if("undefined"==typeof IntersectionObserver||!e||!le||!ie)return;const t=new IntersectionObserver((()=>{J(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[le,ie]);const ve=((e,t,n)=>u((()=>!0===e?{title:null!=t?t:n}:o(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e}),[e,t,n]))(ne.tooltip,$.text,h),be=e.useMemo((()=>{if(ee&&!le)return[$.text,h,b,ve.title].find(Ub)}),[ee,le,b,ve.title,de]);if(M)return e.createElement(Ab,{value:null!==(r=$.text)&&void 0!==r?r:"string"==typeof h?h:"",onSave:A,onCancel:D,onEnd:$.onEnd,prefixCls:k,className:s,style:c,direction:w,component:v,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const ye=()=>{const{expandable:t,symbol:n}=ne;return t?e.createElement($b,{key:"expand",className:`${k}-${oe?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;re(t.expanded),null===(n=ne.onExpand)||void 0===n||n.call(ne,e,t)})(e,{expanded:!oe}),"aria-label":oe?C.collapse:null==C?void 0:C.expand},"function"==typeof n?n(oe):n):null},xe=()=>{if(!_)return;const{icon:t,tooltip:n,tabIndex:o}=$,r=L(n)[0]||(null==C?void 0:C.edit),i="string"==typeof r?r:"";return I.includes("icon")?e.createElement(Nf,{key:"edit",title:!1===n?"":r},e.createElement($b,{ref:E,className:`${k}-edit`,onClick:j,"aria-label":i,tabIndex:o},t||e.createElement(Cb,{role:"button"}))):null},we=t=>[t&&ye(),xe(),z?e.createElement(Yb,Object.assign({key:"copy"},B,{prefixCls:k,copied:F,locale:C,onCopy:V,loading:H,iconOnly:null==h})):null];return e.createElement(Ve,{onResize:e=>{let{offsetWidth:t}=e;ge(t)},disabled:!ie},(o=>e.createElement(ty,{tooltipProps:ve,enableEllipsis:ie,isEllipsis:de},e.createElement(Wb,Object.assign({className:N({[`${k}-${d}`]:d,[`${k}-disabled`]:f,[`${k}-ellipsis`]:ee,[`${k}-ellipsis-single-line`]:fe,[`${k}-ellipsis-multiple-line`]:he},s),prefixCls:i,style:Object.assign(Object.assign({},c),{WebkitLineClamp:he?ae:void 0}),component:v,ref:te(o,S,n),direction:w,onClick:I.includes("text")?j:void 0,"aria-label":null==be?void 0:be.toString(),title:b},O),e.createElement(ey,{enableMeasure:ie&&!le,text:h,rows:ae,width:pe,onEllipsis:me,expanded:oe,miscDeps:[F,oe,H,_,z]},((n,o)=>function(t,n){let{mark:o,code:r,underline:i,delete:a,strong:s,keyboard:l,italic:c}=t,u=n;function d(t,n){n&&(u=e.createElement(t,{},u))}return d("strong",s),d("u",i),d("del",a),d("code",r),d("mark",o),d("kbd",l),d("i",c),u}(t,e.createElement(e.Fragment,null,n.length>0&&o&&!oe&&be?e.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(t=>[t&&!oe&&e.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ne.suffix,we(t)])(o)))))))))}));var ry=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const iy=e.forwardRef(((t,n)=>{var{ellipsis:o,rel:r}=t,i=ry(t,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=No("Typography.Link");"production"!==process.env.NODE_ENV&&e("object"!=typeof o,"usage","`ellipsis` only supports boolean value.")}const a=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete a.navigate,e.createElement(oy,Object.assign({},a,{ref:n,ellipsis:!!o,component:"a"}))})),ay=e.forwardRef(((t,n)=>e.createElement(oy,Object.assign({ref:n},t,{component:"div"}))));var sy=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ly=(t,n)=>{var{ellipsis:o}=t,r=sy(t,["ellipsis"]);const i=e.useMemo((()=>o&&"object"==typeof o?We(o,["expandable","rows"]):o),[o]);if("production"!==process.env.NODE_ENV){const e=No("Typography.Text");"production"!==process.env.NODE_ENV&&e("object"!=typeof o||!o||!("expandable"in o)&&!("rows"in o),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return e.createElement(oy,Object.assign({ref:n},r,{ellipsis:i,component:"span"}))};var cy=e.forwardRef(ly),uy=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const dy=[1,2,3,4,5],fy=e.forwardRef(((t,n)=>{const{level:o=1}=t,r=uy(t,["level"]);if("production"!==process.env.NODE_ENV){const e=No("Typography.Title");"production"!==process.env.NODE_ENV&&e(dy.includes(o),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=dy.includes(o)?`h${o}`:"h1";return e.createElement(oy,Object.assign({ref:n},r,{component:i}))})),hy=Wb;function py(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}hy.Text=cy,hy.Link=iy,hy.Title=fy,hy.Paragraph=ay;py(".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 gy=function(e){var t=e.className,n=e.label,o=e.name,r=e.value,i=e.dataTestId,s=e.type,c=e.id,u=e.disabled,d=e.handleChange,f=e.onClick,h=e.defaultValue,p=e.onPressEnter,g=e.isAutoFocus,m=e.triggerFocus,v=e.isOptional,b=e.errorMessage,y=e.suffixIcon,x=e.prefixIcon,w=a(null);l((function(){g&&w.current&&w.current.focus()}),[m,g]);var C=v?"".concat(n," (optional)"):n;return $.jsxs("div",{className:"appInput ".concat(t),children:[$.jsx(uv,{type:s,"data-test-id":i,id:c,disabled:u,name:o,className:"input",value:r,onChange:d,onClick:f,defaultValue:h,onPressEnter:p,placeholder:C,ref:w,prefix:x&&x,suffix:y&&y}),b&&$.jsx("div",{className:"error",children:b})]})};py(".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 my=function(e){var t=e.type,n=e.size,o=e.className,r=e.handleClick,i=e.icon,a=e.text,s=e.disabled,l=e.iconPosition,c=e.isLoading;return $.jsx("div",{className:"appButton ".concat(o),children:$.jsx(ac,{disabled:s,type:t,className:["customBtn",i?"btn-icon":"","right"===l?"iconRight":""].join(" "),size:n,onClick:r,icon:i,loading:c,children:a})})};py('.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 vy=mb.Sider,by=function(e){var t=e.links,n=e.logo,o=e.footerLinks,r=e.className,i=function(e){window.location.href=e},a=t.map((function(e){return{key:e.path,icon:e.icon,label:$.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&$.jsx("span",{className:"tag",children:e.tag})]})}})),s=null==o?void 0:o.map((function(e){return{key:e.path,label:$.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return $.jsx("div",{className:"sideBar ".concat(r),children:$.jsxs(vy,{className:"sider",children:[$.jsx("div",{className:"logo",children:n}),$.jsx(sg,{mode:"inline",className:"menu",items:a}),o&&$.jsx("div",{className:"footer",children:$.jsx(sg,{mode:"inline",items:s})})]})})};py(".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 yy=function(e){var t=e.id,n=e.placeholder,o=e.name,r=e.value,i=e.dataTestId,a=e.defaultValue,s=e.onPressEnter,l=e.handleChange,c=e.rows,u=e.cols,d=e.className,f=e.error;return $.jsxs("div",{className:"appTextArea ".concat(d),children:[$.jsx(uv.TextArea,{"data-test-id":i,id:t,name:o,placeholder:n,value:r,className:"textArea",onChange:l,defaultValue:a,onPressEnter:s,rows:c,cols:u}),f&&$.jsx("div",{className:"error",children:f})]})};py(".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 xy=function(e){var t=e.className,n=e.items,o=e.handleChange,r=e.defaultActiveKey;return $.jsx("div",{className:"appTab ".concat(t),children:$.jsx(Sm,{defaultActiveKey:r,items:n,onChange:o,className:"tab"})})},wy={searchIcon:$.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.jsx("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),$.jsx("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:$.jsx("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:$.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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:$.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.jsx("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),$.jsx("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:$.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),$.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"}),$.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"}),$.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:$.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.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"})})};py(".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 Cy=function(e){var t=e.text,n=void 0===t?"Back":t,o=e.href,r=e.className,i=e.backIcon;return $.jsxs("div",{className:"backArrow ".concat(r),onClick:function(){window.location.href=o},children:[$.jsx("span",{className:"icon",children:i||wy.backArrow}),n&&$.jsx("span",{className:"text",children:n})]})},Sy=function(){return Sy=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Sy.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;py(".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 Ey=function(e){var t=e.content,n=e.children,o=e.className,r=e.ribbon,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["content","children","className","ribbon"]);return $.jsx("div",{className:"appBadge ".concat(o),children:$.jsx(Gf,Sy({count:t},i,{children:r?$.jsx("div",{className:"ribbonWrapper",children:$.jsx(Gf.Ribbon,{text:r.text,color:r.color,placement:r.placement,children:n})}):n}))})};py(".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 ky=hy.Text,Oy=function(e){var t=e.className,n=e.text,o=e.number;return $.jsxs("div",{className:"overViewCard ".concat(t),children:[$.jsx(ky,{children:n}),$.jsx("span",{children:o})]})};
|
26
|
+
/*!
|
27
|
+
* @kurkle/color v0.3.2
|
28
|
+
* https://github.com/kurkle/color#readme
|
29
|
+
* (c) 2023 Jukka Kurkela
|
30
|
+
* Released under the MIT License
|
31
|
+
*/
|
32
|
+
function _y(e){return e+.5|0}const $y=(e,t,n)=>Math.max(Math.min(e,n),t);function My(e){return $y(_y(2.55*e),0,255)}function Ny(e){return $y(_y(255*e),0,255)}function Py(e){return $y(_y(e/2.55)/100,0,1)}function Iy(e){return $y(_y(100*e),0,100)}const Ry={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ty=[..."0123456789ABCDEF"],jy=e=>Ty[15&e],Ay=e=>Ty[(240&e)>>4]+Ty[15&e],Dy=e=>(240&e)>>4==(15&e);function Ly(e){var t=(e=>Dy(e.r)&&Dy(e.g)&&Dy(e.b)&&Dy(e.a))(e)?jy:Ay;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const zy=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function By(e,t,n){const o=t*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-o*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Fy(e,t,n){const o=(o,r=(o+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[o(5),o(3),o(1)]}function Hy(e,t,n){const o=By(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)o[r]*=1-t-n,o[r]+=t;return o}function Vy(e){const t=e.r/255,n=e.g/255,o=e.b/255,r=Math.max(t,n,o),i=Math.min(t,n,o),a=(r+i)/2;let s,l,c;return r!==i&&(c=r-i,l=a>.5?c/(2-r-i):c/(r+i),s=function(e,t,n,o,r){return e===r?(t-n)/o+(t<n?6:0):t===r?(n-e)/o+2:(e-t)/o+4}(t,n,o,c,r),s=60*s+.5),[0|s,l||0,a]}function Wy(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(Ny)}function Xy(e,t,n){return Wy(By,e,t,n)}function qy(e){return(e%360+360)%360}function Uy(e){const t=zy.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?My(+t[5]):Ny(+t[5]));const r=qy(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return Wy(Hy,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return Wy(Fy,e,t,n)}(r,i,a):Xy(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}const Yy={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Gy={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Ky;function Zy(e){Ky||(Ky=function(){const e={},t=Object.keys(Gy),n=Object.keys(Yy);let o,r,i,a,s;for(o=0;o<t.length;o++){for(a=s=t[o],r=0;r<n.length;r++)i=n[r],s=s.replace(i,Yy[i]);i=parseInt(Gy[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),Ky.transparent=[0,0,0,0]);const t=Ky[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const Qy=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Jy=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,ex=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function tx(e,t,n){if(e){let o=Vy(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=Xy(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function nx(e,t){return e?Object.assign(t||{},e):e}function ox(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ny(e[3]))):(t=nx(e,{r:0,g:0,b:0,a:1})).a=Ny(t.a),t}function rx(e){return"r"===e.charAt(0)?function(e){const t=Qy.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?My(e):$y(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?My(n):$y(n,0,255)),o=255&(t[4]?My(o):$y(o,0,255)),r=255&(t[6]?My(r):$y(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):Uy(e)}class ix{constructor(e){if(e instanceof ix)return e;const t=typeof e;let n;var o,r,i;"object"===t?n=ox(e):"string"===t&&(i=(o=e).length,"#"===o[0]&&(4===i||5===i?r={r:255&17*Ry[o[1]],g:255&17*Ry[o[2]],b:255&17*Ry[o[3]],a:5===i?17*Ry[o[4]]:255}:7!==i&&9!==i||(r={r:Ry[o[1]]<<4|Ry[o[2]],g:Ry[o[3]]<<4|Ry[o[4]],b:Ry[o[5]]<<4|Ry[o[6]],a:9===i?Ry[o[7]]<<4|Ry[o[8]]:255})),n=r||Zy(e)||rx(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=nx(this._rgb);return e&&(e.a=Py(e.a)),e}set rgb(e){this._rgb=ox(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Py(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?Ly(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=Vy(e),n=t[0],o=Iy(t[1]),r=Iy(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${r}%, ${Py(e.a)})`:`hsl(${n}, ${o}%, ${r}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,o=e.rgb;let r;const i=t===r?.5:t,a=2*i-1,s=n.a-o.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*o.r+.5,n.g=255&l*n.g+r*o.g+.5,n.b=255&l*n.b+r*o.b+.5,n.a=i*n.a+(1-i)*o.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const o=ex(Py(e.r)),r=ex(Py(e.g)),i=ex(Py(e.b));return{r:Ny(Jy(o+n*(ex(Py(t.r))-o))),g:Ny(Jy(r+n*(ex(Py(t.g))-r))),b:Ny(Jy(i+n*(ex(Py(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new ix(this.rgb)}alpha(e){return this._rgb.a=Ny(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=_y(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return tx(this._rgb,2,e),this}darken(e){return tx(this._rgb,2,-e),this}saturate(e){return tx(this._rgb,1,e),this}desaturate(e){return tx(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=Vy(e);n[0]=qy(n[0]+t),n=Xy(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}
|
33
|
+
/*!
|
34
|
+
* Chart.js v4.4.4
|
35
|
+
* https://www.chartjs.org
|
36
|
+
* (c) 2024 Chart.js Contributors
|
37
|
+
* Released under the MIT License
|
38
|
+
*/function ax(){}const sx=(()=>{let e=0;return()=>e++})();function lx(e){return null==e}function cx(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function ux(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function dx(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function fx(e,t){return dx(e)?e:t}function hx(e,t){return void 0===e?t:e}const px=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function gx(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function mx(e,t,n,o){let r,i,a;if(cx(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(ux(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function vx(e,t){let n,o,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],i=t[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function bx(e){if(cx(e))return e.map(bx);if(ux(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=bx(e[n[r]]);return t}return e}function yx(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function xx(e,t,n,o){if(!yx(e))return;const r=t[e],i=n[e];ux(r)&&ux(i)?wx(r,i,o):t[e]=bx(i)}function wx(e,t,n){const o=cx(t)?t:[t],r=o.length;if(!ux(e))return e;const i=(n=n||{}).merger||xx;let a;for(let t=0;t<r;++t){if(a=o[t],!ux(a))continue;const r=Object.keys(a);for(let t=0,o=r.length;t<o;++t)i(r[t],e,a,n)}return e}function Cx(e,t){return wx(e,t,{merger:Sx})}function Sx(e,t,n){if(!yx(e))return;const o=t[e],r=n[e];ux(o)&&ux(r)?Cx(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=bx(r))}const Ex={"":e=>e,x:e=>e.x,y:e=>e.y};function kx(e,t){const n=Ex[t]||(Ex[t]=function(e){const t=function(e){const t=e.split("."),n=[];let o="";for(const e of t)o+=e,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function Ox(e){return e.charAt(0).toUpperCase()+e.slice(1)}const _x=e=>void 0!==e,$x=e=>"function"==typeof e,Mx=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const Nx=Math.PI,Px=2*Nx,Ix=Px+Nx,Rx=Number.POSITIVE_INFINITY,Tx=Nx/180,jx=Nx/2,Ax=Nx/4,Dx=2*Nx/3,Lx=Math.log10,zx=Math.sign;function Bx(e,t,n){return Math.abs(e-t)<n}function Fx(e){const t=Math.round(e);e=Bx(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Lx(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function Hx(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Vx(e,t,n){let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function Wx(e){return e*(Nx/180)}function Xx(e){return e*(180/Nx)}function qx(e){if(!dx(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Ux(e,t){const n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*Nx&&(i+=Px),{angle:i,distance:r}}function Yx(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Gx(e,t){return(e-t+Ix)%Px-Nx}function Kx(e){return(e%Px+Px)%Px}function Zx(e,t,n,o){const r=Kx(e),i=Kx(t),a=Kx(n),s=Kx(i-r),l=Kx(a-r),c=Kx(r-i),u=Kx(r-a);return r===i||r===a||o&&i===a||s>l&&c<u}function Qx(e,t,n){return Math.max(t,Math.min(n,e))}function Jx(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function ew(e,t,n){n=n||(n=>e[n]<t);let o,r=e.length-1,i=0;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const tw=(e,t,n,o)=>ew(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),nw=(e,t,n)=>ew(e,n,(o=>e[o][t]>=n));const ow=["push","pop","shift","splice","unshift"];function rw(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(t);-1!==r&&o.splice(r,1),o.length>0||(ow.forEach((t=>{delete e[t]})),delete e._chartjs)}function iw(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const aw="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function sw(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,aw.call(window,(()=>{o=!1,e.apply(t,n)})))}}const lw=e=>"start"===e?"left":"end"===e?"right":"center",cw=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const uw=e=>0===e||1===e,dw=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*Px/n),fw=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Px/n)+1,hw={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*jx),easeOutSine:e=>Math.sin(e*jx),easeInOutSine:e=>-.5*(Math.cos(Nx*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>uw(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>uw(e)?e:dw(e,.075,.3),easeOutElastic:e=>uw(e)?e:fw(e,.075,.3),easeInOutElastic(e){const t=.1125;return uw(e)?e:e<.5?.5*dw(2*e,t,.45):.5+.5*fw(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-hw.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*hw.easeInBounce(2*e):.5*hw.easeOutBounce(2*e-1)+.5};function pw(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function gw(e){return pw(e)?e:new ix(e)}function mw(e){return pw(e)?e:new ix(e).saturate(.5).darken(.1).hexString()}const vw=["x","y","borderWidth","radius","tension"],bw=["color","borderColor","backgroundColor"];const yw=new Map;function xw(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=yw.get(n);return o||(o=new Intl.NumberFormat(e,t),yw.set(n,o)),o}(t,n).format(e)}const ww={values:e=>cx(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const o=this.chart.options.locale;let r,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const a=Lx(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),xw(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(Lx(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?ww.numeric.call(this,e,t,n):""}};var Cw={formatters:ww};const Sw=Object.create(null),Ew=Object.create(null);function kw(e,t){if(!t)return e;const n=t.split(".");for(let t=0,o=n.length;t<o;++t){const o=n[t];e=e[o]||(e[o]=Object.create(null))}return e}function Ow(e,t,n){return"string"==typeof t?wx(kw(e,t),n):wx(kw(e,""),t)}class _w{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>mw(t.backgroundColor),this.hoverBorderColor=(e,t)=>mw(t.borderColor),this.hoverColor=(e,t)=>mw(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return Ow(this,e,t)}get(e){return kw(this,e)}describe(e,t){return Ow(Ew,e,t)}override(e,t){return Ow(Sw,e,t)}route(e,t,n,o){const r=kw(this,e),i=kw(this,n),a="_"+t;Object.defineProperties(r,{[a]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=i[o];return ux(e)?Object.assign({},t,e):hx(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var $w=new _w({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:bw},numbers:{type:"number",properties:vw}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Cw.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function Mw(e,t,n,o,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>o&&(o=i),o}function Nw(e,t,n){const o=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*o)/o+r}function Pw(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Iw(e,t,n,o){Rw(e,t,n,o,null)}function Rw(e,t,n,o,r){let i,a,s,l,c,u,d,f;const h=t.pointStyle,p=t.rotation,g=t.radius;let m=(p||0)*Tx;if(h&&"object"==typeof h&&(i=h.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,o),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(g)||g<=0)){switch(e.beginPath(),h){default:r?e.ellipse(n,o,r/2,g,0,0,Px):e.arc(n,o,g,0,Px),e.closePath();break;case"triangle":u=r?r/2:g,e.moveTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=Dx,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=Dx,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),e.closePath();break;case"rectRounded":c=.516*g,l=g-c,a=Math.cos(m+Ax)*l,d=Math.cos(m+Ax)*(r?r/2-c:l),s=Math.sin(m+Ax)*l,f=Math.sin(m+Ax)*(r?r/2-c:l),e.arc(n-d,o-s,c,m-Nx,m-jx),e.arc(n+f,o-a,c,m-jx,m),e.arc(n+d,o+s,c,m,m+jx),e.arc(n-f,o+a,c,m+jx,m+Nx),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=r?r/2:l,e.rect(n-u,o-l,2*u,2*l);break}m+=Ax;case"rectRot":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+f,o-a),e.lineTo(n+d,o+s),e.lineTo(n-f,o+a),e.closePath();break;case"crossRot":m+=Ax;case"cross":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"star":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a),m+=Ax,d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"line":a=r?r/2:Math.cos(m)*g,s=Math.sin(m)*g,e.moveTo(n-a,o-s),e.lineTo(n+a,o+s);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(m)*(r?r/2:g),o+Math.sin(m)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function Tw(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function jw(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Aw(e){e.restore()}function Dw(e,t,n,o,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===r!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Lw(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function zw(e,t,n,o,r){if(r.strikethrough||r.underline){const i=e.measureText(o),a=t-i.actualBoundingBoxLeft,s=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function Bw(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Fw(e,t,n,o,r,i={}){const a=cx(t)?t:[t],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),lx(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<a.length;++l)c=a[l],i.backdrop&&Bw(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),lx(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),zw(e,n,o,c,i),o+=Number(r.lineHeight);e.restore()}function Hw(e,t){const{x:n,y:o,w:r,h:i,radius:a}=t;e.arc(n+a.topLeft,o+a.topLeft,a.topLeft,1.5*Nx,Nx,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,Nx,jx,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,jx,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-jx,!0),e.lineTo(n+a.topLeft,o)}const Vw=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Ww=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Xw(e,t){const n=(""+e).match(Vw);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const qw=e=>+e||0;function Uw(e,t){const n={},o=ux(t),r=o?Object.keys(t):t,i=ux(e)?o?n=>hx(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=qw(i(e));return n}function Yw(e){return Uw(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Gw(e){return Uw(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Kw(e){const t=Yw(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Zw(e,t){e=e||{},t=t||$w.font;let n=hx(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=hx(e.style,t.style);o&&!(""+o).match(Ww)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:hx(e.family,t.family),lineHeight:Xw(hx(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:hx(e.weight,t.weight),string:""};return r.string=function(e){return!e||lx(e.size)||lx(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function Qw(e,t,n,o){let r,i,a;for(r=0,i=e.length;r<i;++r)if(a=e[r],void 0!==a&&void 0!==a)return a}function Jw(e,t){return Object.assign(Object.create(e),t)}function eC(e,t=[""],n,o,r=()=>e[0]){const i=n||e;void 0===o&&(o=dC("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:n=>eC([n,...e],t,i,o)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,o)=>iC(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=dC(oC(i,e),n),void 0!==r)return rC(e,r)?cC(n,o,e,r):r}(o,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>fC(e).includes(t),ownKeys:e=>fC(e),set(e,t,n){const o=e._storage||(e._storage=r());return e[t]=o[t]=n,delete e._keys,!0}})}function tC(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:nC(e,o),setContext:t=>tC(e,t,n,o),override:r=>tC(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>iC(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let s=o[t];$x(s)&&a.isScriptable(t)&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(i,a||o);s.delete(e),rC(e,l)&&(l=cC(r._scopes,r,e,l));return l}(t,s,e,n));cx(s)&&s.length&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_descriptors:s}=n;if(void 0!==i.index&&o(e))return t[i.index%t.length];if(ux(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=cC(o,r,e,l);t.push(tC(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));rC(t,s)&&(s=tC(s,r,i&&i[t],a));return s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,o)=>(e[n]=o,delete t[n],!0)})}function nC(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:o,isScriptable:$x(n)?n:()=>n,isIndexable:$x(o)?o:()=>o}}const oC=(e,t)=>e?e+Ox(t):t,rC=(e,t)=>ux(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function iC(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const o=n();return e[t]=o,o}function aC(e,t,n){return $x(e)?e(t,n):e}const sC=(e,t)=>!0===e?t:"string"==typeof e?kx(t,e):void 0;function lC(e,t,n,o,r){for(const i of t){const t=sC(n,i);if(t){e.add(t);const i=aC(t._fallback,n,r);if(void 0!==i&&i!==n&&i!==o)return i}else if(!1===t&&void 0!==o&&n!==o)return null}return!1}function cC(e,t,n,o){const r=t._rootScopes,i=aC(t._fallback,n,o),a=[...e,...r],s=new Set;s.add(o);let l=uC(s,a,n,i||n,o);return null!==l&&((void 0===i||i===n||(l=uC(s,a,i,l,o),null!==l))&&eC(Array.from(s),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];if(cx(r)&&ux(n))return n;return r||{}}(t,n,o))))}function uC(e,t,n,o,r){for(;n;)n=lC(e,t,n,o,r);return n}function dC(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function fC(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const hC=Number.EPSILON||1e-14,pC=(e,t)=>t<e.length&&!e[t].skip&&e[t],gC=e=>"x"===e?"y":"x";function mC(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,s=Yx(i,r),l=Yx(a,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=o*c,f=o*u;return{previous:{x:i.x-d*(a.x-r.x),y:i.y-d*(a.y-r.y)},next:{x:i.x+f*(a.x-r.x),y:i.y+f*(a.y-r.y)}}}function vC(e,t="x"){const n=gC(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,s,l,c=pC(e,0);for(a=0;a<o;++a)if(s=l,l=c,c=pC(e,a+1),l){if(c){const e=c[t]-l[t];r[a]=0!==e?(c[n]-l[n])/e:0}i[a]=s?c?zx(r[a-1])!==zx(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}!function(e,t,n){const o=e.length;let r,i,a,s,l,c=pC(e,0);for(let u=0;u<o-1;++u)l=c,c=pC(e,u+1),l&&c&&(Bx(t[u],0,hC)?n[u]=n[u+1]=0:(r=n[u]/t[u],i=n[u+1]/t[u],s=Math.pow(r,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),n[u]=r*a*t[u],n[u+1]=i*a*t[u])))}(e,r,i),function(e,t,n="x"){const o=gC(n),r=e.length;let i,a,s,l=pC(e,0);for(let c=0;c<r;++c){if(a=s,s=l,l=pC(e,c+1),!s)continue;const r=s[n],u=s[o];a&&(i=(r-a[n])/3,s[`cp1${n}`]=r-i,s[`cp1${o}`]=u-i*t[c]),l&&(i=(l[n]-r)/3,s[`cp2${n}`]=r+i,s[`cp2${o}`]=u+i*t[c])}}(e,i,t)}function bC(e,t,n){return Math.max(Math.min(e,n),t)}function yC(e,t,n,o,r){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)vC(e,r);else{let n=o?e[e.length-1]:e[0];for(i=0,a=e.length;i<a;++i)s=e[i],l=mC(n,s,e[Math.min(i+1,a-(o?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,o,r,i,a,s=Tw(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=s,s=n<o-1&&Tw(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=bC(r.cp1x,t.left,t.right),r.cp1y=bC(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=bC(r.cp2x,t.left,t.right),r.cp2y=bC(r.cp2y,t.top,t.bottom)))}(e,n)}function xC(){return"undefined"!=typeof window&&"undefined"!=typeof document}function wC(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function CC(e,t,n){let o;return"string"==typeof e?(o=parseInt(e,10),-1!==e.indexOf("%")&&(o=o/100*t.parentNode[n])):o=e,o}const SC=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const EC=["top","right","bottom","left"];function kC(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=EC[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const OC=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function _C(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=SC(n),i="border-box"===r.boxSizing,a=kC(r,"padding"),s=kC(r,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:r,offsetY:i}=o;let a,s,l=!1;if(OC(r,i,e.target))a=r,s=i;else{const e=t.getBoundingClientRect();a=o.clientX-e.left,s=o.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),f=a.top+(u&&s.top);let{width:h,height:p}=t;return i&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-d)/h*n.width/o),y:Math.round((c-f)/p*n.height/o)}}const $C=e=>Math.round(10*e)/10;function MC(e,t,n,o){const r=SC(e),i=kC(r,"margin"),a=CC(r.maxWidth,e,"clientWidth")||Rx,s=CC(r.maxHeight,e,"clientHeight")||Rx,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=e&&wC(e);if(i){const e=i.getBoundingClientRect(),a=SC(i),s=kC(a,"border","width"),l=kC(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=CC(a.maxWidth,i,"clientWidth"),r=CC(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||Rx,maxHeight:r||Rx}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=kC(r,"border","width"),t=kC(r,"padding");c-=t.width+e.width,u-=t.height+e.height}c=Math.max(0,c-i.width),u=Math.max(0,o?c/o:u-i.height),c=$C(Math.min(c,a,l.maxWidth)),u=$C(Math.min(u,s,l.maxHeight)),c&&!u&&(u=$C(c/2));return(void 0!==t||void 0!==n)&&o&&l.height&&u>l.height&&(u=l.height,c=$C(Math.floor(u*o))),{width:c,height:u}}function NC(e,t,n){const o=t||1,r=Math.floor(e.height*o),i=Math.floor(e.width*o);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==o||a.height!==r||a.width!==i)&&(e.currentDevicePixelRatio=o,a.height=r,a.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0)}const PC=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};xC()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function IC(e,t){const n=function(e,t){return SC(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function RC(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function TC(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:"middle"===o?n<.5?e.y:t.y:"after"===o?n<1?e.y:t.y:n>0?t.y:e.y}}function jC(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=RC(e,r,n),s=RC(r,i,n),l=RC(i,t,n),c=RC(a,s,n),u=RC(s,l,n);return RC(c,u,n)}function AC(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function DC(e,t){let n,o;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function LC(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function zC(e){return"angle"===e?{between:Zx,compare:Gx,normalize:Kx}:{between:Jx,compare:(e,t)=>e-t,normalize:e=>e}}function BC({start:e,end:t,count:n,loop:o,style:r}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n==0,style:r}}function FC(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=zC(o),{start:u,end:d,loop:f,style:h}=function(e,t,n){const{property:o,start:r,end:i}=n,{between:a,normalize:s}=zC(o),l=t.length;let c,u,{start:d,end:f,loop:h}=e;if(h){for(d+=l,f+=l,c=0,u=l;c<u&&a(s(t[d%l][o]),r,i);++c)d--,f--;d%=l,f%=l}return f<d&&(f+=l),{start:d,end:f,loop:h,style:e.style}}(e,t,n),p=[];let g,m,v,b=!1,y=null;const x=()=>b||l(r,v,g)&&0!==s(r,v),w=()=>!b||0===s(i,g)||l(i,v,g);for(let e=u,n=u;e<=d;++e)m=t[e%a],m.skip||(g=c(m[o]),g!==v&&(b=l(g,r,i),null===y&&x()&&(y=0===s(g,r)?e:n),null!==y&&w()&&(p.push(BC({start:y,end:e,loop:f,count:a,style:h})),y=null),n=e,v=g));return null!==y&&p.push(BC({start:y,end:d,loop:f,count:a,style:h})),p}function HC(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=VC(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,f=d;function h(e,t,o,r){const i=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:o,style:r}),u=r,d=t%l)}}for(const e of t){d=s?d:e.start;let t,i=n[d%l];for(f=d+1;f<=e.end;f++){const s=n[f%l];t=VC(o.setContext(Jw(r,{type:"segment",p0:i,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),WC(t,u)&&h(d,f-1,e.loop,u),i=s,u=t}d<f-1&&h(d,f-1,e.loop,u)}return c}(e,t,n,o):t}function VC(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function WC(e,t){if(!t)return!1;const n=[],o=function(e,t){return pw(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}
|
39
|
+
/*!
|
40
|
+
* Chart.js v4.4.4
|
41
|
+
* https://www.chartjs.org
|
42
|
+
* (c) 2024 Chart.js Contributors
|
43
|
+
* Released under the MIT License
|
44
|
+
*/class XC{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,o){const r=t.listeners[o],i=t.duration;r.forEach((o=>o({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=aw.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,o)=>{if(!n.running||!n.items.length)return;const r=n.items;let i,a=r.length-1,s=!1;for(;a>=0;--a)i=r[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(r[a]=r[r.length-1],r.pop());s&&(o.draw(),this._notify(o,n,e,"progress")),r.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var qC=new XC;const UC="transparent",YC={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=gw(e||UC),r=o.valid&&gw(t||UC);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class GC{constructor(e,t,n,o){const r=t[n];o=Qw([e.to,o,r,e.from]);const i=Qw([e.from,r,o]);this._active=!0,this._fn=e.fn||YC[e.type||typeof i],this._easing=hw[e.easing]||hw.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=o,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const o=this._target[this._prop],r=n-this._start,i=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Qw([e.to,t,o,e.from]),this._from=Qw([e.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,o=this._prop,r=this._from,i=this._loop,a=this._to;let s;if(this._active=r!==a&&(i||t<n),!this._active)return this._target[o]=a,void this._notify(!0);t<0?this._target[o]=r:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(r,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class KC{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!ux(e))return;const t=Object.keys($w.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!ux(r))return;const i={};for(const e of t)i[e]=r[e];(cx(r.properties)&&r.properties||[o]).forEach((e=>{e!==o&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,o=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!o)return[];const r=this._createAnimations(o,n);return n.$shared&&function(e,t){const n=[],o=Object.keys(t);for(let t=0;t<o.length;t++){const r=e[o[t]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,o=[],r=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){o.push(...this._animateOptions(e,t));continue}const c=t[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(r[l]=u=new GC(d,e,l,c),o.push(u)):e[l]=c}return o}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(qC.add(this._chart,n),!0):void 0}}function ZC(e,t){const n=e&&e.options||{},o=n.reverse,r=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:o?i:r,end:o?r:i}}function QC(e,t){const n=[],o=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function JC(e,t,n,o={}){const r=e.keys,i="single"===o.mode;let a,s,l,c;if(null!==t){for(a=0,s=r.length;a<s;++a){if(l=+r[a],l===n){if(o.all)continue;break}c=e.values[l],dx(c)&&(i||0===t||zx(t)===zx(c))&&(t+=c)}return t}}function eS(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function tS(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function nS(e,t,n,o){for(const r of t.getMatchingVisibleMetas(o).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function oS(e,t){const{chart:n,_cachedMeta:o}=e,r=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=o,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,o),d=t.length;let f;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;f=(n._stacks||(n._stacks={}))[c]=tS(r,u,i),f[s]=d,f._top=nS(f,a,!0,o.type),f._bottom=nS(f,a,!1,o.type);(f._visualValues||(f._visualValues={}))[s]=d}}function rS(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function iS(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[o]||void 0===t[o][n])return;delete t[o][n],void 0!==t[o]._visualValues&&void 0!==t[o]._visualValues[n]&&delete t[o]._visualValues[n]}}}const aS=e=>"reset"===e||"none"===e,sS=(e,t)=>t?e:Object.assign({},e);class lS{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=eS(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&iS(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),o=(e,t,n,o)=>"x"===e?t:"r"===e?o:n,r=t.xAxisID=hx(n.xAxisID,rS(e,"x")),i=t.yAxisID=hx(n.yAxisID,rS(e,"y")),a=t.rAxisID=hx(n.rAxisID,rS(e,"r")),s=t.indexAxis,l=t.iAxisID=o(s,r,i,a),c=t.vAxisID=o(s,i,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&rw(this._data,this),e._stacked&&iS(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(ux(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:o}=t,r="x"===n.axis?"x":"y",i="x"===o.axis?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[r]:u,[i]:e[u]};return s}(t,e)}else if(n!==t){if(n){rw(n,this);const e=this._cachedMeta;iS(e),e._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ow.forEach((t=>{const n="_onData"+Ox(t),o=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const r=o.apply(this,t);return e._chartjs.listeners.forEach((e=>{"function"==typeof e[n]&&e[n](...t)})),r}})})))}(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const r=t._stacked;t._stacked=eS(t.vScale,t),t.stack!==n.stack&&(o=!0,iS(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&oS(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:i}=n,a=r.axis;let s,l,c,u=0===e&&t===o.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,c=o;else{c=cx(o[e])?this.parseArrayData(n,o,e,t):ux(o[e])?this.parseObjectData(n,o,e,t):this.parsePrimitiveData(n,o,e,t);const r=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(r()&&(u=!1),d=l);n._sorted=u}i&&oS(this,c)}parsePrimitiveData(e,t,n,o){const{iScale:r,vScale:i}=e,a=r.axis,s=i.axis,l=r.getLabels(),c=r===i,u=new Array(o);let d,f,h;for(d=0,f=o;d<f;++d)h=d+n,u[d]={[a]:c||r.parse(l[h],h),[s]:i.parse(t[h],h)};return u}parseArrayData(e,t,n,o){const{xScale:r,yScale:i}=e,a=new Array(o);let s,l,c,u;for(s=0,l=o;s<l;++s)c=s+n,u=t[c],a[s]={x:r.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(e,t,n,o){const{xScale:r,yScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(o);let c,u,d,f;for(c=0,u=o;c<u;++c)d=c+n,f=t[d],l[c]={x:r.parse(kx(f,a),d),y:i.parse(kx(f,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const o=this.chart,r=this._cachedMeta,i=t[e.axis];return JC({keys:QC(o,!0),values:t._stacks[e.axis]._visualValues},i,r.index,{mode:n})}updateRangeFromParsed(e,t,n,o){const r=n[t.axis];let i=null===r?NaN:r;const a=o&&n._stacks[t.axis];o&&a&&(o.values=a,i=JC(o,r,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,o=n._parsed,r=n._sorted&&e===n.iScale,i=o.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:QC(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:o,maxDefined:r}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let d,f;function h(){f=o[d];const t=f[a.axis];return!dx(f[e.axis])||c>t||u<t}for(d=0;d<i&&(h()||(this.updateRangeFromParsed(l,e,f,s),!r));++d);if(r)for(d=i-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(l,e,f,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let o,r,i;for(o=0,r=t.length;o<r;++o)i=t[o][e.axis],dx(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,o=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:o?""+o.getLabelForValue(r[o.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,o,r;return ux(e)?(t=e.top,n=e.right,o=e.bottom,r=e.left):t=n=o=r=e,{top:t,right:n,bottom:o,left:r,disabled:!1===e}}(hx(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=ZC(e,n),r=ZC(t,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,o=n.data||[],r=t.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||o.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,r,a,s),c=a;c<a+s;++c){const t=o[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,r))}for(c=0;c<i.length;++c)i[c].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const o=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return Jw(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=o.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return Jw(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=o,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const o="active"===t,r=this._cachedDataOpts,i=e+"-"+t,a=r[i],s=this.enableOptionSharing&&_x(n);if(a)return sS(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=o?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),f=Object.keys($w.elements[e]),h=l.resolveNamedOptions(d,f,(()=>this.getContext(n,o,t)),u);return h.$shared&&(h.$shared=s,r[i]=Object.freeze(sS(h,s))),h}_resolveAnimations(e,t,n){const o=this.chart,r=this._cachedDataOpts,i=`animation-${t}`,a=r[i];if(a)return a;let s;if(!1!==o.options.animation){const o=this.chart.config,r=o.datasetAnimationScopeKeys(this._type,t),i=o.getOptionScopes(this.getDataset(),r);s=o.createResolver(i,this.getContext(e,n,t))}const l=new KC(o,s&&s.animations);return s&&s._cacheable&&(r[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||aS(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),o=this._sharedOptions,r=this.getSharedOptions(n),i=this.includeOptions(t,r)||r!==o;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:i}}updateElement(e,t,n,o){aS(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!aS(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,o){e.active=o;const r=this.getStyle(t,o);this._resolveAnimations(t,n,o).update(e,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const o=n.length,r=t.length,i=Math.min(r,o);i&&this.parse(0,i),r>o?this._insertElements(o,r-o,e):r<o&&this._removeElements(r,o-r)}_insertElements(e,t,n=!0){const o=this._cachedMeta,r=o.data,i=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(r),a=e;a<i;++a)r[a]=new this.dataElementType;this._parsing&&s(o._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,o){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,t);n._stacked&&iS(n,o)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,o]=e;this[t](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function cS(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let t=0,r=n.length;t<r;t++)o=o.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=iw(o.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let o,r,i,a,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(_x(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(o=0,r=n.length;o<r;++o)i=t.getPixelForValue(n[o]),l();for(a=void 0,o=0,r=t.ticks.length;o<r;++o)i=t.getPixelForTick(o),l();return s}function uS(e,t,n,o){return cx(e)?function(e,t,n,o){const r=n.parse(e[0],o),i=n.parse(e[1],o),a=Math.min(r,i),s=Math.max(r,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:i,min:a,max:s}}(e,t,n,o):t[n.axis]=n.parse(e,o),t}function dS(e,t,n,o){const r=e.iScale,i=e.vScale,a=r.getLabels(),s=r===i,l=[];let c,u,d,f;for(c=n,u=n+o;c<u;++c)f=t[c],d={},d[r.axis]=s||r.parse(a[c],c),l.push(uS(f,d,i,c));return l}function fS(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function hS(e,t,n,o){let r=t.borderSkipped;const i={};if(!r)return void(e.borderSkipped=i);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,o,r,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:t,top:r,bottom:i}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?r=c:(n._bottom||0)===o?r=u:(i[pS(u,a,s,l)]=!0,r=c)),i[pS(r,a,s,l)]=!0,e.borderSkipped=i}function pS(e,t,n,o){var r,i,a;return o?(a=n,e=gS(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=gS(e,t,n),e}function gS(e,t,n){return"start"===e?t:"end"===e?n:e}function mS(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class vS extends lS{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,o){return dS(e,t,n,o)}parseArrayData(e,t,n,o){return dS(e,t,n,o)}parseObjectData(e,t,n,o){const{iScale:r,vScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===r.axis?a:s,c="x"===i.axis?a:s,u=[];let d,f,h,p;for(d=n,f=n+o;d<f;++d)p=t[d],h={},h[r.axis]=r.parse(kx(p,l),d),u.push(uS(kx(p,c),h,i,d));return u}updateRangeFromParsed(e,t,n,o){super.updateRangeFromParsed(e,t,n,o);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:o}=t,r=this.getParsed(e),i=r._custom,a=fS(i)?"["+i.start+", "+i.end+"]":""+o.getLabelForValue(r[o.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,o){const r="reset"===o,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,o);for(let f=t;f<t+n;f++){const t=this.getParsed(f),n=r||lx(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),h=this._calculateBarIndexPixels(f,c),p=(t._stacks||{})[a.axis],g={horizontal:l,base:n.base,enableBorderRadius:!p||fS(t._custom)||i===p._top||i===p._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};d&&(g.options=u||this.resolveDataElementOptions(f,e[f].active?"active":o));const m=g.options||e[f].options;hS(g,m,p,i),mS(g,m,c.ratio),this.updateElement(e[f],f,g,o)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),r=n.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(t),s=a&&a[n.axis],l=e=>{const t=e._parsed.find((e=>e[n.axis]===s)),o=t&&t[e.vScale.axis];if(lx(o)||isNaN(o))return!0};for(const n of o)if((void 0===t||!l(n))&&((!1===r||-1===i.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const o=this._getStacks(e,n),r=void 0!==t?o.indexOf(t):-1;return-1===r?o.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,o=[];let r,i;for(r=0,i=t.data.length;r<i;++r)o.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=e.barThickness;return{min:a||cS(t),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:o},options:{base:r,minBarLength:i}}=this,a=r||0,s=this.getParsed(e),l=s._custom,c=fS(l);let u,d,f=s[t.axis],h=0,p=n?this.applyStack(t,s,n):f;p!==f&&(h=p-f,p=f),c&&(f=l.barStart,p=l.barEnd-l.barStart,0!==f&&zx(f)!==zx(l.barEnd)&&(h=0),h+=f);const g=lx(r)||c?h:r;let m=t.getPixelForValue(g);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(h+p):m,d=u-m,Math.abs(d)<i){d=function(e,t,n){return 0!==e?zx(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,f===a&&(m-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),h=Math.max(e,r);m=Math.max(Math.min(m,h),l),u=m+d,n&&!c&&(s._stacks[t.axis]._visualValues[o]=t.getValueForPixel(u)-t.getValueForPixel(m))}if(m===t.getPixelForValue(a)){const e=zx(d)*t.getLineWidthForValue(a)/2;m+=e,d-=e}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,o=this.options,r=o.skipNull,i=hx(o.maxBarThickness,1/0);let a,s;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,l="flex"===o.barThickness?function(e,t,n,o){const r=t.pixels,i=r[e];let a=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/o,ratio:n.barPercentage,start:c}}(e,t,o,n):function(e,t,n,o){const r=n.barThickness;let i,a;return lx(r)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:t.pixels[e]-i/2}}(e,t,o,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,o=n.length;let r=0;for(;r<o;++r)null===this.getParsed(r)[t.axis]||n[r].hidden||n[r].draw(this._ctx)}}class bS extends lS{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return t.labels.map(((t,r)=>{const i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:o,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=n;else{let r,i,a=e=>+n[e];if(ux(n[e])){const{key:e="value"}=this._parsing;a=t=>+kx(n[t],e)}for(r=e,i=e+t;r<i;++r)o._parsed[r]=a(r)}}_getRotation(){return Wx(this.options.rotation-90)}_getCircumference(){return Wx(this.options.circumference)}_getRotationExtents(){let e=Px,t=-Px;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,r=o._getRotation(),i=o._getCircumference();e=Math.min(e,r),t=Math.max(t,r+i)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,o=this._cachedMeta,r=o.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:p,offsetX:g,offsetY:m}=function(e,t,n){let o=1,r=1,i=0,a=0;if(t<Px){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),f=Math.sin(l),h=(e,t,o)=>Zx(e,s,l,!0)?1:Math.max(t,t*n,o,o*n),p=(e,t,o)=>Zx(e,s,l,!0)?-1:Math.min(t,t*n,o,o*n),g=h(0,c,d),m=h(jx,u,f),v=p(Nx,c,d),b=p(Nx+jx,u,f);o=(g-v)/2,r=(m-b)/2,i=-(g+v)/2,a=-(m+b)/2}return{ratioX:o,ratioY:r,offsetX:i,offsetY:a}}(f,d,s),v=(n.width-i)/h,b=(n.height-i)/p,y=Math.max(Math.min(v,b)/2,0),x=px(this.options.radius,y),w=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,o.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,o=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*r/Px)}updateElements(e,t,n,o){const r="reset"===o,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=r&&s.animateScale,d=u?0:this.innerRadius,f=u?0:this.outerRadius,{sharedOptions:h,includeOptions:p}=this._getSharedOptions(t,o);let g,m=this._getRotation();for(g=0;g<t;++g)m+=this._circumference(g,r);for(g=t;g<t+n;++g){const t=this._circumference(g,r),n=e[g],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+t,circumference:t,outerRadius:f,innerRadius:d};p&&(i.options=h||this.resolveDataElementOptions(g,n.active?"active":o)),m+=t,this.updateElement(n,g,i,o)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,o=0;for(n=0;n<t.length;n++){const r=e._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||t[n].hidden||(o+=Math.abs(r))}return o}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?Px*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=xw(t._parsed[e],n.options.locale);return{label:o[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let o,r,i,a,s;if(!e)for(o=0,r=n.data.datasets.length;o<r;++o)if(n.isDatasetVisible(o)){i=n.getDatasetMeta(o),e=i.data,a=i.controller;break}if(!e)return 0;for(o=0,r=e.length;o<r;++o)s=a.resolveDataElementOptions(o),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,o=e.length;n<o;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(hx(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class yS extends lS{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=function(e,t,n){const o=t.length;let r=0,i=o;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(r=Qx(Math.min(tw(s,l,c).lo,n?o:tw(t,l,a.getPixelForValue(c)).lo),0,o-1)),i=f?Qx(Math.max(tw(s,a.axis,u,!0).hi+1,n?0:tw(t,l,a.getPixelForValue(u),!0).hi+1),r,o)-r:o-r}return{start:r,count:i}}(t,o,i);this._drawStart=a,this._drawCount=s,function(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=r,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}(t)&&(a=0,s=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(o,a,s,e)}updateElements(e,t,n,o){const r="reset"===o,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,o),d=i.axis,f=a.axis,{spanGaps:h,segment:p}=this.options,g=Hx(h)?h:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||r||"none"===o,v=t+n,b=e.length;let y=t>0&&this.getParsed(t-1);for(let n=0;n<b;++n){const h=e[n],b=m?h:{};if(n<t||n>=v){b.skip=!0;continue}const x=this.getParsed(n),w=lx(x[f]),C=b[d]=i.getPixelForValue(x[d],n),S=b[f]=r||w?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[f],n);b.skip=isNaN(C)||isNaN(S)||w,b.stop=n>0&&Math.abs(x[d]-y[d])>g,p&&(b.parsed=x,b.raw=l.data[n]),u&&(b.options=c||this.resolveDataElementOptions(n,h.active?"active":o)),m||this.updateElement(h,n,b,o),y=x}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,o=e.data||[];if(!o.length)return n;const r=o[0].size(this.resolveDataElementOptions(0)),i=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}class xS extends bS{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function wS(e,t,n,o){const{controller:r,data:i,_sorted:a}=e,s=r._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const e=s._reversePixels?nw:tw;if(!o)return e(i,t,n);if(r._sharedOptions){const o=i[0],r="function"==typeof o.getRange&&o.getRange(t);if(r){const o=e(i,t,n-r),a=e(i,t,n+r);return{lo:o.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function CS(e,t,n,o,r){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:s}=i[e],{lo:l,hi:c}=wS(i[e],t,a,r);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function SS(e,t,n,o,r){const i=[];if(!r&&!e.isPointInArea(t))return i;return CS(e,n,t,(function(n,a,s){(r||Tw(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function ES(e,t,n,o,r,i){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,o){const r=t?Math.abs(e.x-o.x):0,i=n?Math.abs(e.y-o.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return CS(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(o&&!d)return;const f=n.getCenterPoint(r);if(!(!!i||e.isPointInArea(f))&&!d)return;const h=s(t,f);h<l?(a=[{element:n,datasetIndex:c,index:u}],l=h):h===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function kS(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?ES(e,t,n,o,r,i):function(e,t,n,o){let r=[];return CS(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=Ux(e,{x:t.x,y:t.y});Zx(l,a,s)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function OS(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return CS(e,n,t,((e,o,l)=>{e[a]&&e[a](t[n],r)&&(i.push({element:e,datasetIndex:o,index:l}),s=s||e.inRange(t.x,t.y,r))})),o&&!s?[]:i}var _S={evaluateInteractionItems:CS,modes:{index(e,t,n,o){const r=_C(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?SS(e,r,i,o,a):kS(e,r,i,!1,o,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,o){const r=_C(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?SS(e,r,i,o,a):kS(e,r,i,!1,o,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,o)=>SS(e,_C(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=_C(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return kS(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>OS(e,_C(t,e),"x",n.intersect,o),y:(e,t,n,o)=>OS(e,_C(t,e),"y",n.intersect,o)}};const $S=["left","top","right","bottom"];function MS(e,t){return e.filter((e=>e.pos===t))}function NS(e,t){return e.filter((e=>-1===$S.indexOf(e.pos)&&e.box.axis===t))}function PS(e,t){return e.sort(((e,n)=>{const o=t?n:e,r=t?e:n;return o.weight===r.weight?o.index-r.index:o.weight-r.weight}))}function IS(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!$S.includes(o))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return t}(e),{vBoxMaxWidth:o,hBoxMaxHeight:r}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*o:a&&t.availableWidth,s.height=r):(s.width=o,s.height=c?c*r:a&&t.availableHeight)}return n}function RS(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function TS(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function jS(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!ux(r)){n.size&&(e[r]-=n.size);const t=o[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[r]+=n.size}i.getPadding&&TS(a,i.getPadding());const s=Math.max(0,t.outerWidth-RS(a,e,"left","right")),l=Math.max(0,t.outerHeight-RS(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function AS(e,t){const n=t.maxPadding;function o(e){const o={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{o[e]=Math.max(t[e],n[e])})),o}return o(e?["left","right"]:["top","bottom"])}function DS(e,t,n,o){const r=[];let i,a,s,l,c,u;for(i=0,a=e.length,c=0;i<a;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,AS(s.horizontal,t));const{same:a,other:d}=jS(t,n,s,o);c|=a&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&DS(r,t,n,o)||u}function LS(e,t,n,o,r){e.top=n,e.left=t,e.right=t+o,e.bottom=n+r,e.width=o,e.height=r}function zS(e,t,n,o){const r=n.padding;let{x:i,y:a}=t;for(const s of e){const e=s.box,l=o[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const o=t.w*c,i=l.size||e.height;_x(l.start)&&(a=l.start),e.fullSize?LS(e,r.left,a,n.outerWidth-r.right-r.left,i):LS(e,t.left+l.placed,a,o,i),l.start=a,l.placed+=o,a=e.bottom}else{const o=t.h*c,a=l.size||e.width;_x(l.start)&&(i=l.start),e.fullSize?LS(e,i,r.top,a,n.outerHeight-r.bottom-r.top):LS(e,i,t.top+l.placed,a,o),l.start=i,l.placed+=o,i=e.right}}t.x=i,t.y=a}var BS={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const r=Kw(e.options.layout.padding),i=Math.max(t-r.width,0),a=Math.max(n-r.height,0),s=function(e){const t=function(e){const t=[];let n,o,r,i,a,s;for(n=0,o=(e||[]).length;n<o;++n)r=e[n],({position:i,options:{stack:a,stackWeight:s=1}}=r),t.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:s});return t}(e),n=PS(t.filter((e=>e.box.fullSize)),!0),o=PS(MS(t,"left"),!0),r=PS(MS(t,"right")),i=PS(MS(t,"top"),!0),a=PS(MS(t,"bottom")),s=NS(t,"x"),l=NS(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:MS(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;mx(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},r);TS(f,Kw(o));const h=Object.assign({maxPadding:f,w:i,h:a,x:r.left,y:r.top},r),p=IS(l.concat(c),d);DS(s.fullSize,h,d,p),DS(l,h,d,p),DS(c,h,d,p)&&DS(l,h,d,p),function(e){const t=e.maxPadding;function n(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),zS(s.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,zS(s.rightAndBottom,h,d,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},mx(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class FS{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,o){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,o?Math.floor(t/o):n)}}isAttached(e){return!0}updateConfig(e){}}class HS extends FS{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const VS="$chartjs",WS={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},XS=e=>null===e||""===e;const qS=!!PC&&{passive:!0};function US(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,qS)}function YS(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function GS(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||YS(n.addedNodes,o),t=t&&!YS(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function KS(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||YS(n.removedNodes,o),t=t&&!YS(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const ZS=new Map;let QS=0;function JS(){const e=window.devicePixelRatio;e!==QS&&(QS=e,ZS.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function eE(e,t,n){const o=e.canvas,r=o&&wC(o);if(!r)return;const i=sw(((e,t)=>{const o=r.clientWidth;n(e,t),o<r.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,o=t.contentRect.height;0===n&&0===o||i(n,o)}));return a.observe(r),function(e,t){ZS.size||window.addEventListener("resize",JS),ZS.set(e,t)}(e,i),a}function tE(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){ZS.delete(e),ZS.size||window.removeEventListener("resize",JS)}(e)}function nE(e,t,n){const o=e.canvas,r=sw((t=>{null!==e.ctx&&n(function(e,t){const n=WS[e.type]||e.type,{x:o,y:r}=_C(e,t);return{type:n,chart:t,native:e,x:void 0!==o?o:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,qS)}(o,t,r),r}class oE extends FS{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,o=e.getAttribute("height"),r=e.getAttribute("width");if(e[VS]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",XS(r)){const t=IC(e,"width");void 0!==t&&(e.width=t)}if(XS(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=IC(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[VS])return!1;const n=t[VS].initial;["height","width"].forEach((e=>{const o=n[e];lx(o)?t.removeAttribute(e):t.setAttribute(e,o)}));const o=n.style||{};return Object.keys(o).forEach((e=>{t.style[e]=o[e]})),t.width=t.width,delete t[VS],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:GS,detach:KS,resize:eE}[t]||nE;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];if(!o)return;({attach:tE,detach:tE,resize:tE}[t]||US)(e,t,o),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return MC(e,t,n,o)}isAttached(e){const t=e&&wC(e);return!(!t||!t.isConnected)}}let rE=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return Hx(this.x)&&Hx(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const o={};return e.forEach((e=>{o[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),o}};function iE(e,t){const n=e.options.ticks,o=function(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(o,r))}(e),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?function(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}(t):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>r)return function(e,t,n,o){let r,i=0,a=n[0];for(o=Math.ceil(o),r=0;r<e.length;r++)r===a&&(t.push(e[r]),i++,a=n[i*o])}(t,c,i,a/r),c;const u=function(e,t,n){const o=function(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}(e),r=t.length/n;if(!o)return Math.max(r,1);const i=function(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o==0&&(t.push(o),t.push(e/o));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(o);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>r)return t}return Math.max(r,1)}(i,t,r);if(a>0){let e,n;const o=a>1?Math.round((l-s)/(a-1)):null;for(aE(t,c,u,lx(o)?0:s-o,s),e=0,n=a-1;e<n;e++)aE(t,c,u,i[e],i[e+1]);return aE(t,c,u,l,lx(o)?t.length:l+o),c}return aE(t,c,u),c}function aE(e,t,n,o,r){const i=hx(o,0),a=Math.min(hx(r,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),r&&(s=r-o,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}const sE=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,lE=(e,t)=>Math.min(t||e,e);function cE(e,t){const n=[],o=e.length/t,r=e.length;let i=0;for(;i<r;i+=o)n.push(e[Math.floor(i)]);return n}function uE(e,t,n){const o=e.ticks.length,r=Math.min(t,o-1),i=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(r);if(!(n&&(l=1===o?Math.max(c-i,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<i-s||c>a+s)))return c}function dE(e){return e.drawTicks?e.tickLength:0}function fE(e,t){if(!e.display)return 0;const n=Zw(e.font,t),o=Kw(e.padding);return(cx(e.text)?e.text.length:1)*n.lineHeight+o.height}function hE(e,t,n){let o=lw(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class pE extends rE{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:o}=this;return e=fx(e,Number.POSITIVE_INFINITY),t=fx(t,Number.NEGATIVE_INFINITY),n=fx(n,Number.POSITIVE_INFINITY),o=fx(o,Number.NEGATIVE_INFINITY),{min:fx(e,n),max:fx(t,o),minDefined:dx(e),maxDefined:dx(t)}}getMinMax(e){let t,{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds();if(r&&i)return{min:n,max:o};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),i||(o=Math.max(o,t.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:fx(n,fx(o,n)),max:fx(o,fx(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){gx(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:o,grace:r,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:o,max:r}=e,i=px(t,(r-o)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(o,-Math.abs(i)),max:a(r,i)}}(this,r,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?cE(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=iE(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){gx(this.options.afterUpdate,[this])}beforeSetDimensions(){gx(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){gx(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),gx(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){gx(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,o,r;for(n=0,o=e.length;n<o;n++)r=e[n],r.label=gx(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){gx(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){gx(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=lE(this.ticks.length,e.ticks.maxTicksLimit),o=t.minRotation||0,r=t.maxRotation;let i,a,s,l=o;if(!this._isVisible()||!t.display||o>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,f=Qx(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:f/(n-1),u+6>i&&(i=f/(n-(e.offset?.5:1)),a=this.maxHeight-dE(e.grid)-t.padding-fE(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Xx(Math.min(Math.asin(Qx((c.highest.height+6)/i,-1,1)),Math.asin(Qx(a/s,-1,1))-Math.asin(Qx(d/s,-1,1)))),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){gx(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){gx(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:o,grid:r}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=fE(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=dE(r)+i):(e.height=this.maxHeight,e.width=dE(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=Wx(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*r.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*r.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,o,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,o){const{ticks:{align:r,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=o*e.width,d=n*t.height):(u=n*e.height,d=o*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,o=e.height/2;"start"===r?(n=0,o=e.height):"end"===r&&(n=t.height,o=0),this.paddingTop=n+i,this.paddingBottom=o+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){gx(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)lx(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=cE(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:o,_longestTextCache:r}=this,i=[],a=[],s=Math.floor(t/lE(t,n));let l,c,u,d,f,h,p,g,m,v,b,y=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,f=this._resolveTickFontOptions(l),o.font=h=f.string,p=r[h]=r[h]||{data:{},gc:[]},g=f.lineHeight,m=v=0,lx(d)||cx(d)){if(cx(d))for(c=0,u=d.length;c<u;++c)b=d[c],lx(b)||cx(b)||(m=Mw(o,p.data,p.gc,m,b),v+=g)}else m=Mw(o,p.data,p.gc,m,d),v=g;i.push(m),a.push(v),y=Math.max(m,y),x=Math.max(v,x)}!function(e,t){mx(e,(e=>{const n=e.gc,o=n.length/2;let r;if(o>t){for(r=0;r<o;++r)delete e.data[n[r]];n.splice(0,o)}}))}(r,t);const w=i.indexOf(y),C=a.indexOf(x),S=e=>({width:i[e]||0,height:a[e]||0});return{first:S(0),last:S(t-1),widest:S(w),highest:S(C),widths:i,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return Qx(this._alignToPixels?Nw(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return Jw(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=Jw(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=Wx(this.labelRotation),n=Math.abs(Math.cos(t)),o=Math.abs(Math.sin(t)),r=this._getLabelSizes(),i=e.autoSkipPadding||0,a=r?r.widest.width+i:0,s=r?r.highest.height+i:0;return this.isHorizontal()?s*n>a*o?a/n:s/o:s*o<a*n?s/n:a/o}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,o=this.options,{grid:r,position:i,border:a}=o,s=r.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=dE(r),d=[],f=a.setContext(this.getContext()),h=f.display?f.width:0,p=h/2,g=function(e){return Nw(n,e,h)};let m,v,b,y,x,w,C,S,E,k,O,_;if("top"===i)m=g(this.bottom),w=this.bottom-u,S=m-p,k=g(e.top)+p,_=e.bottom;else if("bottom"===i)m=g(this.top),k=e.top,_=g(e.bottom)-p,w=m+p,S=this.top+u;else if("left"===i)m=g(this.right),x=this.right-u,C=m-p,E=g(e.left)+p,O=e.right;else if("right"===i)m=g(this.left),E=e.left,O=g(e.right)-p,x=m+p,C=this.left+u;else if("x"===t){if("center"===i)m=g((e.top+e.bottom)/2+.5);else if(ux(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}k=e.top,_=e.bottom,w=m+p,S=w+u}else if("y"===t){if("center"===i)m=g((e.left+e.right)/2);else if(ux(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}x=m-p,C=x-u,E=e.left,O=e.right}const $=hx(o.ticks.maxTicksLimit,c),M=Math.max(1,Math.ceil(c/$));for(v=0;v<c;v+=M){const e=this.getContext(v),t=r.setContext(e),o=a.setContext(e),i=t.lineWidth,c=t.color,u=o.dash||[],f=o.dashOffset,h=t.tickWidth,p=t.tickColor,g=t.tickBorderDash||[],m=t.tickBorderDashOffset;b=uE(this,v,s),void 0!==b&&(y=Nw(n,b,i),l?x=C=E=O=y:w=S=k=_=y,d.push({tx1:x,ty1:w,tx2:C,ty2:S,x1:E,y1:k,x2:O,y2:_,width:i,color:c,borderDash:u,borderDashOffset:f,tickWidth:h,tickColor:p,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:o,ticks:r}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=r,d=dE(n.grid),f=d+c,h=u?-c:f,p=-Wx(this.labelRotation),g=[];let m,v,b,y,x,w,C,S,E,k,O,_,$="middle";if("top"===o)w=this.bottom-h,C=this._getXAxisLabelAlignment();else if("bottom"===o)w=this.top+h,C=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(d);C=e.textAlign,x=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(d);C=e.textAlign,x=e.x}else if("x"===t){if("center"===o)w=(e.top+e.bottom)/2+f;else if(ux(o)){const e=Object.keys(o)[0],t=o[e];w=this.chart.scales[e].getPixelForValue(t)+f}C=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)x=(e.left+e.right)/2-f;else if(ux(o)){const e=Object.keys(o)[0],t=o[e];x=this.chart.scales[e].getPixelForValue(t)}C=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?$="top":"end"===s&&($="bottom"));const M=this._getLabelSizes();for(m=0,v=a.length;m<v;++m){b=a[m],y=b.label;const e=r.setContext(this.getContext(m));S=this.getPixelForTick(m)+r.labelOffset,E=this._resolveTickFontOptions(m),k=E.lineHeight,O=cx(y)?y.length:1;const t=O/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,f=C;if(i?(x=S,"inner"===C&&(f=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),_="top"===o?"near"===l||0!==p?-O*k+k/2:"center"===l?-M.highest.height/2-t*k+k:-M.highest.height+k/2:"near"===l||0!==p?k/2:"center"===l?M.highest.height/2-t*k:M.highest.height-O*k,u&&(_*=-1),0===p||e.showLabelBackdrop||(x+=k/2*Math.sin(p))):(w=S,_=(1-O)*k/2),e.showLabelBackdrop){const t=Kw(e.backdropPadding),n=M.heights[m],o=M.widths[m];let r=_-t.top,i=0-t.left;switch($){case"middle":r-=n/2;break;case"bottom":r-=n}switch(C){case"center":i-=o/2;break;case"right":i-=o;break;case"inner":m===v-1?i-=o:m>0&&(i-=o/2)}d={left:i,top:r,width:o+t.width,height:n+t.height,color:e.backdropColor}}g.push({label:y,font:E,textOffset:_,options:{rotation:p,color:n,strokeColor:s,strokeWidth:c,textAlign:f,textBaseline:$,translation:[x,w],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-Wx(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:o,padding:r}}=this.options,i=e+r,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?o?(l=this.right+r,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?o?(l=this.left+r,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:o,width:r,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,o,r,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,i;const a=(e,t,o)=>{o.width&&o.color&&(n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.setLineDash(o.borderDash||[]),n.lineDashOffset=o.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,i=o.length;r<i;++r){const e=o[r];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:o}}=this,r=n.setContext(this.getContext()),i=n.display?r.width:0;if(!i)return;const a=o.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Nw(e,this.left,i)-i/2,c=Nw(e,this.right,a)+a/2,u=d=s):(u=Nw(e,this.top,i)-i/2,d=Nw(e,this.bottom,a)+a/2,l=c=s),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&jw(t,n);const o=this.getLabelItems(e);for(const e of o){const n=e.options,o=e.font;Fw(t,e.label,0,e.textOffset,o,n)}n&&Aw(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=Zw(n.font),i=Kw(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||ux(t)?(s+=i.bottom,cx(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,o){const{top:r,left:i,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,f,h,p=0;const g=a-r,m=s-i;if(e.isHorizontal()){if(f=cw(o,i,s),ux(n)){const e=Object.keys(n)[0],o=n[e];h=u[e].getPixelForValue(o)+g-t}else h="center"===n?(c.bottom+c.top)/2+g-t:sE(e,n,t);d=s-i}else{if(ux(n)){const e=Object.keys(n)[0],o=n[e];f=u[e].getPixelForValue(o)-m+t}else f="center"===n?(c.left+c.right)/2-m+t:sE(e,n,t);h=cw(o,a,r),p="left"===n?-jx:jx}return{titleX:f,titleY:h,maxWidth:d,rotation:p}}(this,s,t,a);Fw(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:hE(a,t,o),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=hx(e.grid&&e.grid.z,-1),o=hx(e.border&&e.border.z,0);return this._isVisible()&&this.draw===pE.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let r,i;for(r=0,i=t.length;r<i;++r){const i=t[r];i[n]!==this.id||e&&i.type!==e||o.push(i)}return o}_resolveTickFontOptions(e){return Zw(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class gE{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const o=this.items,r=e.id,i=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in o||(o[r]=e,function(e,t,n){const o=wx(Object.create(null),[n?$w.get(n):{},$w.get(t),e.defaults]);$w.set(t,o),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const o=n.split("."),r=o.pop(),i=[e].concat(o).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");$w.route(i,r,l,s)}))}(t,e.defaultRoutes);e.descriptors&&$w.describe(t,e.descriptors)}(e,i,n),this.override&&$w.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,o=this.scope;n in t&&delete t[n],o&&n in $w[o]&&(delete $w[o][n],this.override&&delete Sw[n])}}class mE{constructor(){this.controllers=new gE(lS,"datasets",!0),this.elements=new gE(rE,"elements"),this.plugins=new gE(Object,"plugins"),this.scales=new gE(pE,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const o=n||this._getRegistryForType(t);n||o.isForType(t)||o===this.plugins&&t.id?this._exec(e,o,t):mx(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=Ox(e);gx(n["before"+o],[],n),t[e](n),gx(n["after"+o],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const o=t.get(e);if(void 0===o)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var vE=new mE;class bE{constructor(){this._init=[]}notify(e,t,n,o){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=o?this._descriptors(e).filter(o):this._descriptors(e),i=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,o){o=o||{};for(const r of e){const e=r.plugin;if(!1===gx(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){lx(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,o=hx(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(vE.plugins.items);for(let e=0;e<o.length;e++)n.push(vE.getPlugin(o[e]));const r=e.plugins||[];for(let e=0;e<r.length;e++){const o=r[e];-1===n.indexOf(o)&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==o||t?function(e,{plugins:t,localIds:n},o,r){const i=[],a=e.getContext();for(const s of t){const t=s.id,l=yE(o[t],r);null!==l&&i.push({plugin:s,options:xE(e.config,{plugin:s,local:n[t]},l,a)})}return i}(e,r,o,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,o=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(o(t,n),e,"stop"),this._notify(o(n,t),e,"start")}}function yE(e,t){return t||!1!==e?!0===e?{}:e:null}function xE(e,{plugin:t,local:n},o,r){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(o,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function wE(e,t){const n=$w.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function CE(e){if("x"===e||"y"===e||"r"===e)return e}function SE(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function EE(e,...t){if(CE(e))return e;for(const n of t){const t=n.axis||SE(n.position)||e.length>1&&CE(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function kE(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function OE(e,t){const n=Sw[e.type]||{scales:{}},o=t.scales||{},r=wE(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!ux(a))return console.error(`Invalid scale configuration for scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=EE(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return kE(e,"x",n[0])||kE(e,"y",n[0])}return{}}(t,e),$w.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};i[t]=Cx(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||wE(r,t),s=(Sw[r]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),r=n[t+"AxisID"]||t;i[r]=i[r]||Object.create(null),Cx(i[r],[{axis:t},o[r],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];Cx(t,[$w.scales[t.type],$w.scale])})),i}function _E(e){const t=e.options||(e.options={});t.plugins=hx(t.plugins,{}),t.scales=OE(e,t)}function $E(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const ME=new Map,NE=new Set;function PE(e,t){let n=ME.get(e);return n||(n=t(),ME.set(e,n),NE.add(n)),n}const IE=(e,t,n)=>{const o=kx(t,n);void 0!==o&&e.add(o)};class RE{constructor(e){this._config=function(e){return(e=e||{}).data=$E(e.data),_E(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=$E(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),_E(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return PE(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return PE(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return PE(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return PE(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let o=n.get(e);return o&&!t||(o=new Map,n.set(e,o)),o}getOptionScopes(e,t,n){const{options:o,type:r}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>IE(s,e,t)))),t.forEach((e=>IE(s,o,e))),t.forEach((e=>IE(s,Sw[r]||{},e))),t.forEach((e=>IE(s,$w,e))),t.forEach((e=>IE(s,Ew,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),NE.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Sw[t]||{},$w.datasets[t]||{},{type:t},$w,Ew]}resolveNamedOptions(e,t,n,o=[""]){const r={$shared:!0},{resolver:i,subPrefixes:a}=TE(this._resolverCache,e,o);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:o}=nC(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&($x(a)||jE(a))||i&&cx(a))return!0}return!1}(i,t)){r.$shared=!1;s=tC(i,n=$x(n)?n():n,this.createResolver(e,n,a))}for(const e of t)r[e]=s[e];return r}createResolver(e,t,n=[""],o){const{resolver:r}=TE(this._resolverCache,e,n);return ux(t)?tC(r,t,void 0,o):r}}function TE(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const r=n.join();let i=o.get(r);if(!i){i={resolver:eC(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)}return i}const jE=e=>ux(e)&&Object.getOwnPropertyNames(e).some((t=>$x(e[t])));const AE=["top","bottom","left","right","chartArea"];function DE(e,t){return"top"===e||"bottom"===e||-1===AE.indexOf(e)&&"x"===t}function LE(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function zE(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),gx(n&&n.onComplete,[e],t)}function BE(e){const t=e.chart,n=t.options.animation;gx(n&&n.onProgress,[e],t)}function FE(e){return xC()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const HE={},VE=e=>{const t=FE(e);return Object.values(HE).filter((e=>e.canvas===t)).pop()};function WE(e,t,n){const o=Object.keys(e);for(const r of o){const o=+r;if(o>=t){const i=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=i)}}}function XE(e,t,n){return e.options.clip?e[n]:t[n]}let qE=class{static defaults=$w;static instances=HE;static overrides=Sw;static registry=vE;static version="4.4.4";static getChart=VE;static register(...e){vE.add(...e),UE()}static unregister(...e){vE.remove(...e),UE()}constructor(e,t){const n=this.config=new RE(t),o=FE(e),r=VE(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!xC()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?HS:oE}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=sx(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new bE,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],HE[this.id]=this,a&&s?(qC.listen(this,"complete",zE),qC.listen(this,"progress",BE),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:o,_aspectRatio:r}=this;return lx(e)?t&&r?r:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return vE}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():NC(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Pw(this.canvas,this.ctx),this}stop(){return qC.stop(this),this}resize(e,t){qC.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(o,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,NC(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),gx(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){mx(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,o=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],o=EE(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),mx(r,(t=>{const r=t.options,i=r.id,a=EE(i,r),s=hx(r.type,t.dtype);void 0!==r.position&&DE(r.position,a)===DE(t.dposition)||(r.position=t.dposition),o[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(vE.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),mx(o,((e,t)=>{e||delete n[t]})),mx(n,(e=>{BS.configure(this,e,e.options),BS.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(LE("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=t.length;n<o;n++){const o=t[n];let r=this.getDatasetMeta(n);const i=o.type||this.config.type;if(r.type&&r.type!==i&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=i,r.indexAxis=o.indexAxis||wE(i,this.options),r.order=o.order||0,r.index=n,r.label=""+o.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=vE.getController(i),{datasetElementType:o,dataElementType:a}=$w.datasets[i];Object.assign(t,{dataElementType:vE.getElement(a),datasetElementType:o&&vE.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){mx(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!o&&-1===r.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),o||mx(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(LE("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){mx(this.scales,(e=>{BS.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Mx(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:r}of t){WE(e,o,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),o=n(0);for(let e=1;e<t;e++)if(!Mx(o,n(e)))return;return Array.from(o).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;BS.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],mx(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,$x(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",o)&&(n.controller._update(t),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(qC.has(this)?this.attached&&!qC.running(this)&&qC.start(this):(this.draw(),zE({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let o,r;for(o=0,r=t.length;o<r;++o){const r=t[o];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,o=!n.disabled,r=function(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:XE(n,t,"left"),right:XE(n,t,"right"),top:XE(o,t,"top"),bottom:XE(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&jw(t,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),e.controller.draw(),o&&Aw(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return Tw(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=_S.modes[t];return"function"==typeof r?r(this,e,n,o):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let o=n.filter((e=>e&&e._dataset===t)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Jw(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const o=n?"show":"hide",r=this.getDatasetMeta(e),i=r.controller._resolveAnimations(void 0,o);_x(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?o:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),qC.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Pw(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete HE[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};mx(this.options.events,(e=>n(e,o)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(n,o)=>{e[n]&&(t.removeEventListener(this,n,o),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",i)};i=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){mx(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},mx(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const o=n?"set":"remove";let r,i,a,s;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[o+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!vx(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const o=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=r(t,e),a=n?e:r(e,t);i.length&&this.updateHoverStyle(i,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},o=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:o=[],options:r}=this,i=t,a=this._getActiveElements(e,o,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,o){return n&&"mouseout"!==e.type?o?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,gx(r.onHover,[e,a,this],this),s&&gx(r.onClick,[e,a,this],this));const c=!vx(a,o);return(c||t)&&(this._active=a,this._updateHoverStyles(a,o,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,o){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,o)}};function UE(){return mx(qE.instances,(e=>e._plugins.invalidate()))}function YE(e,t,n,o){const r=Uw(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(n-t)/2,a=Math.min(i,o*t/2),s=e=>{const t=(n-Math.min(i,e))*o/2;return Qx(e,0,Math.min(i,t))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Qx(r.innerStart,0,a),innerEnd:Qx(r.innerEnd,0,a)}}function GE(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function KE(e,t,n,o,r,i){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+o+n-c,0),f=u>0?u+o+n+c:0;let h=0;const p=r-l;if(o){const e=((u>0?u-o:0)+(d>0?d-o:0))/2;h=(p-(0!==e?p*e/(e+o):p))/2}const g=(p-Math.max(.001,p*d-n/Nx)/d)/2,m=l+g+h,v=r-g-h,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:w}=YE(t,f,d,v-m),C=d-b,S=d-y,E=m+b/C,k=v-y/S,O=f+x,_=f+w,$=m+x/O,M=v-w/_;if(e.beginPath(),i){const t=(E+k)/2;if(e.arc(a,s,d,E,t),e.arc(a,s,d,t,k),y>0){const t=GE(S,k,a,s);e.arc(t.x,t.y,y,k,v+jx)}const n=GE(_,v,a,s);if(e.lineTo(n.x,n.y),w>0){const t=GE(_,M,a,s);e.arc(t.x,t.y,w,v+jx,M+Math.PI)}const o=(v-w/f+(m+x/f))/2;if(e.arc(a,s,f,v-w/f,o,!0),e.arc(a,s,f,o,m+x/f,!0),x>0){const t=GE(O,$,a,s);e.arc(t.x,t.y,x,$+Math.PI,m-jx)}const r=GE(C,m,a,s);if(e.lineTo(r.x,r.y),b>0){const t=GE(C,E,a,s);e.arc(t.x,t.y,b,m-jx,E)}}else{e.moveTo(a,s);const t=Math.cos(E)*d+a,n=Math.sin(E)*d+s;e.lineTo(t,n);const o=Math.cos(k)*d+a,r=Math.sin(k)*d+s;e.lineTo(o,r)}e.closePath()}function ZE(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=l,h="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let p=t.endAngle;if(i){KE(e,t,n,o,p,r);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(p=a+(s%Px||Px))}h&&function(e,t,n){const{startAngle:o,pixelMargin:r,x:i,y:a,outerRadius:s,innerRadius:l}=t;let c=r/s;e.beginPath(),e.arc(i,a,s,o-c,n+c),l>r?(c=r/l,e.arc(i,a,l,n+c,o-c,!0)):e.arc(i,a,r,n+jx,o-jx),e.closePath(),e.clip()}(e,t,p),i||(KE(e,t,n,o,p,r),e.stroke())}function QE(e,t,n=t){e.lineCap=hx(n.borderCapStyle,t.borderCapStyle),e.setLineDash(hx(n.borderDash,t.borderDash)),e.lineDashOffset=hx(n.borderDashOffset,t.borderDashOffset),e.lineJoin=hx(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=hx(n.borderWidth,t.borderWidth),e.strokeStyle=hx(n.borderColor,t.borderColor)}function JE(e,t,n){e.lineTo(n.x,n.y)}function ek(e,t,n={}){const o=e.length,{start:r=0,end:i=o-1}=n,{start:a,end:s}=t,l=Math.max(r,a),c=Math.min(i,s),u=r<a&&i<a||r>s&&i>s;return{count:o,start:l,loop:t.loop,ilen:c<l&&!u?o+c-l:c-l}}function tk(e,t,n,o){const{points:r,options:i}=t,{count:a,start:s,loop:l,ilen:c}=ek(r,n,o),u=function(e){return e.stepped?Dw:e.tension||"monotone"===e.cubicInterpolationMode?Lw:JE}(i);let d,f,h,{move:p=!0,reverse:g}=o||{};for(d=0;d<=c;++d)f=r[(s+(g?c-d:d))%a],f.skip||(p?(e.moveTo(f.x,f.y),p=!1):u(e,h,f,g,i.stepped),h=f);return l&&(f=r[(s+(g?c:0))%a],u(e,h,f,g,i.stepped)),!!l}function nk(e,t,n,o){const r=t.points,{count:i,start:a,ilen:s}=ek(r,n,o),{move:l=!0,reverse:c}=o||{};let u,d,f,h,p,g,m=0,v=0;const b=e=>(a+(c?s-e:e))%i,y=()=>{h!==p&&(e.lineTo(m,p),e.lineTo(m,h),e.lineTo(m,g))};for(l&&(d=r[b(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=r[b(u)],d.skip)continue;const t=d.x,n=d.y,o=0|t;o===f?(n<h?h=n:n>p&&(p=n),m=(v*m+t)/++v):(y(),e.lineTo(t,n),f=o,v=0,h=p=n),g=n}y()}function ok(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?nk:tk}const rk="function"==typeof Path2D;function ik(e,t,n,o){rk&&!t.options.segment?function(e,t,n,o){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,o)&&r.closePath()),QE(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=ok(t);for(const s of r)QE(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}(e,t,n,o)}function ak(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}function sk(e,t){const{x:n,y:o,base:r,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,r),l=Math.max(n,r),c=o-d,u=o+d):(d=i/2,s=n-d,l=n+d,c=Math.min(o,r),u=Math.max(o,r)),{left:s,top:c,right:l,bottom:u}}function lk(e,t,n,o){return e?0:Qx(t,n,o)}function ck(e){const t=sk(e),n=t.right-t.left,o=t.bottom-t.top,r=function(e,t,n){const o=e.options.borderWidth,r=e.borderSkipped,i=Yw(o);return{t:lk(r.top,i.top,0,n),r:lk(r.right,i.right,0,t),b:lk(r.bottom,i.bottom,0,n),l:lk(r.left,i.left,0,t)}}(e,n/2,o/2),i=function(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,i=Gw(r),a=Math.min(t,n),s=e.borderSkipped,l=o||ux(r);return{topLeft:lk(!l||s.top||s.left,i.topLeft,0,a),topRight:lk(!l||s.top||s.right,i.topRight,0,a),bottomLeft:lk(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:lk(!l||s.bottom||s.right,i.bottomRight,0,a)}}(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function uk(e,t,n,o){const r=null===t,i=null===n,a=e&&!(r&&i)&&sk(e,o);return a&&(r||Jx(t,a.left,a.right))&&(i||Jx(n,a.top,a.bottom))}function dk(e,t){e.rect(t.x,t.y,t.w,t.h)}function fk(e,t,n={}){const o=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-o,a=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+o,y:e.y+r,w:e.w+i,h:e.h+a,radius:e.radius}}const hk=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}};class pk extends rE{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=gx(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,o=Zw(n.font),r=o.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=hk(n,r);let l,c;t.font=o.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,r,a,s)+10):(c=this.maxHeight,l=this._fitCols(i,o,a,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,o){const{ctx:r,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=o+a;let u=e;r.textAlign="left",r.textBaseline="middle";let d=-1,f=-c;return this.legendItems.forEach(((e,h)=>{const p=n+t/2+r.measureText(e.text).width;(0===h||l[l.length-1]+p+2*a>i)&&(u+=c,l[l.length-(h>0?0:1)]=0,f+=c,d++),s[h]={left:0,top:f,row:d,width:p,height:o},l[l.length-1]+=p+a})),u}_fitCols(e,t,n,o){const{ctx:r,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-e;let u=a,d=0,f=0,h=0,p=0;return this.legendItems.forEach(((e,i)=>{const{itemWidth:g,itemHeight:m}=function(e,t,n,o,r){const i=function(e,t,n,o){let r=e.text;r&&"string"!=typeof r&&(r=r.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+o.measureText(r).width}(o,e,t,n),a=function(e,t,n){let o=e;"string"!=typeof t.text&&(o=gk(t,n));return o}(r,o,t.lineHeight);return{itemWidth:i,itemHeight:a}}(n,t,r,e,o);i>0&&f+m+2*a>c&&(u+=d+a,l.push({width:d,height:f}),h+=d+a,p++,d=f=0),s[i]={left:h,top:f,col:p,width:g,height:m},d=Math.max(d,g),f+=m+a})),u+=d,l.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:o},rtl:r}}=this,i=AC(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=cw(n,this.left+o,this.right-this.lineWidths[r]);for(const s of t)r!==s.row&&(r=s.row,a=cw(n,this.left+o,this.right-this.lineWidths[r])),s.top+=this.top+e+o,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+o}else{let r=0,a=cw(n,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const s of t)s.col!==r&&(r=s.col,a=cw(n,this.top+e+o,this.bottom-this.columnSizes[r].height)),s.top=a,s.left+=this.left+o,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;jw(e,this),this._draw(),Aw(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:r,labels:i}=e,a=$w.color,s=AC(e.rtl,this.left,this.width),l=Zw(i.font),{padding:c}=i,u=l.size,d=u/2;let f;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=l.string;const{boxWidth:h,boxHeight:p,itemHeight:g}=hk(i,u),m=this.isHorizontal(),v=this._computeTitleHeight();f=m?{x:cw(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:cw(r,this.top+v+c,this.bottom-t[0].height),line:0},DC(this.ctx,e.textDirection);const b=g+c;this.legendItems.forEach(((y,x)=>{o.strokeStyle=y.fontColor,o.fillStyle=y.fontColor;const w=o.measureText(y.text).width,C=s.textAlign(y.textAlign||(y.textAlign=i.textAlign)),S=h+d+w;let E=f.x,k=f.y;s.setWidth(this.width),m?x>0&&E+S+c>this.right&&(k=f.y+=b,f.line++,E=f.x=cw(r,this.left+c,this.right-n[f.line])):x>0&&k+b>this.bottom&&(E=f.x=E+t[f.line].width+c,f.line++,k=f.y=cw(r,this.top+v+c,this.bottom-t[f.line].height));if(function(e,t,n){if(isNaN(h)||h<=0||isNaN(p)||p<0)return;o.save();const r=hx(n.lineWidth,1);if(o.fillStyle=hx(n.fillStyle,a),o.lineCap=hx(n.lineCap,"butt"),o.lineDashOffset=hx(n.lineDashOffset,0),o.lineJoin=hx(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=hx(n.strokeStyle,a),o.setLineDash(hx(n.lineDash,[])),i.usePointStyle){const a={radius:p*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=s.xPlus(e,h/2);Rw(o,a,l,t+d,i.pointStyleWidth&&h)}else{const i=t+Math.max((u-p)/2,0),a=s.leftForLtr(e,h),l=Gw(n.borderRadius);o.beginPath(),Object.values(l).some((e=>0!==e))?Hw(o,{x:a,y:i,w:h,h:p,radius:l}):o.rect(a,i,h,p),o.fill(),0!==r&&o.stroke()}o.restore()}(s.x(E),k,y),E=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(C,E+h+d,m?E+S:this.right,e.rtl),function(e,t,n){Fw(o,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(E),k,y),m)f.x+=S+c;else if("string"!=typeof y.text){const e=l.lineHeight;f.y+=gk(y,e)+c}else f.y+=b})),LC(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Zw(t.font),o=Kw(t.padding);if(!t.display)return;const r=AC(e.rtl,this.left,this.width),i=this.ctx,a=t.position,s=n.size/2,l=o.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=cw(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+cw(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const f=cw(a,u,u+d);i.textAlign=r.textAlign(lw(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,Fw(i,t.text,f,c,n)}_computeTitleHeight(){const e=this.options.title,t=Zw(e.font),n=Kw(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,r;if(Jx(e,this.left,this.right)&&Jx(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],Jx(e,o.left,o.left+o.width)&&Jx(t,o.top,o.top+o.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const i=this._hoveredItem,a=(r=n,null!==(o=i)&&null!==r&&o.datasetIndex===r.datasetIndex&&o.index===r.index);i&&!a&&gx(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&gx(t.onHover,[e,n,this],this)}else n&&gx(t.onClick,[e,n,this],this);var o,r}}function gk(e,t){return t*(e.text?e.text.length:0)}var mk={id:"legend",_element:pk,start(e,t,n){const o=e.legend=new pk({ctx:e.ctx,options:n,chart:e});BS.configure(e,o,n),BS.addBox(e,o)},stop(e){BS.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;BS.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,r=n.chart;r.isDatasetVisible(o)?(r.hide(o),t.hidden=!0):(r.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:i,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=Kw(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:o||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class vk extends rE{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const o=cx(n.text)?n.text.length:1;this._padding=Kw(n.padding);const r=o*Zw(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:o,right:r,options:i}=this,a=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=cw(a,n,r),c=t+e,s=r-n):("left"===i.position?(l=n+e,c=cw(a,o,t),u=-.5*Nx):(l=r-e,c=cw(a,t,o),u=.5*Nx),s=o-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Zw(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(o);Fw(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:lw(t.align),textBaseline:"middle",translation:[r,i]})}}var bk={id:"title",_element:vk,start(e,t,n){!function(e,t){const n=new vk({ctx:e.ctx,options:t,chart:e});BS.configure(e,n,t),BS.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;BS.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;BS.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const yk={average(e){if(!e.length)return!1;let t,n,o=new Set,r=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();o.add(e.x),r+=e.y,++i}}if(0===i||0===o.size)return!1;return{x:[...o].reduce(((e,t)=>e+t))/o.size,y:r/i}},nearest(e,t){if(!e.length)return!1;let n,o,r,i=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,o=e.length;n<o;++n){const o=e[n].element;if(o&&o.hasValue()){const e=Yx(t,o.getCenterPoint());e<s&&(s=e,r=o)}}if(r){const e=r.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function xk(e,t){return t&&(cx(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function wk(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Ck(e,t){const{element:n,datasetIndex:o,index:r}=t,i=e.getDatasetMeta(o).controller,{label:a,value:s}=i.getLabelAndValue(r);return{chart:e,label:a,parsed:i.getParsed(r),raw:e.data.datasets[o].data[r],formattedValue:s,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function Sk(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=Zw(t.bodyFont),c=Zw(t.titleFont),u=Zw(t.footerFont),d=i.length,f=r.length,h=o.length,p=Kw(t.padding);let g=p.height,m=0,v=o.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){g+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let b=0;const y=function(e){m=Math.max(m,n.measureText(e).width+b)};return n.save(),n.font=c.string,mx(e.title,y),n.font=l.string,mx(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,mx(o,(e=>{mx(e.before,y),mx(e.lines,y),mx(e.after,y)})),b=0,n.font=u.string,mx(e.footer,y),n.restore(),m+=p.width,{width:m,height:g}}function Ek(e,t,n,o){const{x:r,width:i}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===o?c=r<=(s+l)/2?"left":"right":r<=i/2?c="left":r>=a-i/2&&(c="right"),function(e,t,n,o){const{x:r,width:i}=o,a=n.caretSize+n.caretPadding;return"left"===e&&r+i+a>t.width||"right"===e&&r-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function kk(e,t,n){const o=n.yAlign||t.yAlign||function(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||Ek(e,t,n,o),yAlign:o}}function Ok(e,t,n,o){const{caretSize:r,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=r+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=Gw(a);let p=function(e,t){let{x:n,width:o}=e;return"right"===t?n-=o:"center"===t&&(n-=o/2),n}(t,s);const g=function(e,t,n){let{y:o,height:r}=e;return"top"===t?o+=n:o-="bottom"===t?r+n:r/2,o}(t,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,f)+r:"right"===s&&(p+=Math.max(d,h)+r),{x:Qx(p,0,o.width-t.width),y:Qx(g,0,o.height-t.height)}}function _k(e,t,n){const o=Kw(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function $k(e){return xk([],wk(e))}function Mk(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Nk={beforeTitle:ax,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:ax,beforeBody:ax,beforeLabel:ax,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return lx(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:ax,afterBody:ax,beforeFooter:ax,footer:ax,afterFooter:ax};function Pk(e,t,n,o){const r=e[t].call(n,o);return void 0===r?Nk[t].call(n,o):r}class Ik extends rE{static positioners=yk;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&t.options.animation&&n.animations,r=new KC(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,Jw(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,o=Pk(n,"beforeTitle",this,e),r=Pk(n,"title",this,e),i=Pk(n,"afterTitle",this,e);let a=[];return a=xk(a,wk(o)),a=xk(a,wk(r)),a=xk(a,wk(i)),a}getBeforeBody(e,t){return $k(Pk(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return mx(e,(e=>{const t={before:[],lines:[],after:[]},r=Mk(n,e);xk(t.before,wk(Pk(r,"beforeLabel",this,e))),xk(t.lines,Pk(r,"label",this,e)),xk(t.after,wk(Pk(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return $k(Pk(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=Pk(n,"beforeFooter",this,e),r=Pk(n,"footer",this,e),i=Pk(n,"afterFooter",this,e);let a=[];return a=xk(a,wk(o)),a=xk(a,wk(r)),a=xk(a,wk(i)),a}_createItems(e){const t=this._active,n=this.chart.data,o=[],r=[],i=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(Ck(this.chart,t[a]));return e.filter&&(l=l.filter(((t,o,r)=>e.filter(t,o,r,n)))),e.itemSort&&(l=l.sort(((t,o)=>e.itemSort(t,o,n)))),mx(l,(t=>{const n=Mk(e.callbacks,t);o.push(Pk(n,"labelColor",this,t)),r.push(Pk(n,"labelPointStyle",this,t)),i.push(Pk(n,"labelTextColor",this,t))})),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),o=this._active;let r,i=[];if(o.length){const e=yk[n.position].call(this,o,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=Sk(this,n),a=Object.assign({},e,t),s=kk(this.chart,n,a),l=Ok(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,o){const r=this.getCaretPosition(e,n,o);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:o,yAlign:r}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=Gw(a),{x:d,y:f}=e,{width:h,height:p}=t;let g,m,v,b,y,x;return"center"===r?(y=f+p/2,"left"===o?(g=d,m=g-i,b=y+i,x=y-i):(g=d+h,m=g+i,b=y-i,x=y+i),v=g):(m="left"===o?d+Math.max(s,c)+i:"right"===o?d+h-Math.max(l,u)-i:this.caretX,"top"===r?(b=f,y=b-i,g=m-i,v=m+i):(b=f+p,y=b+i,g=m+i,v=m-i),x=b),{x1:g,x2:m,x3:v,y1:b,y2:y,y3:x}}drawTitle(e,t,n){const o=this.title,r=o.length;let i,a,s;if(r){const l=AC(n.rtl,this.x,this.width);for(e.x=_k(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=Zw(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<r;++s)t.fillText(o[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,s+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,o,r){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=r,c=Zw(r.bodyFont),u=_k(this,"left",r),d=o.x(u),f=s<c.lineHeight?(c.lineHeight-s)/2:0,h=t.y+f;if(r.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=o.leftForLtr(d,l)+l/2,c=h+s/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,Iw(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,Iw(e,t,n,c)}else{e.lineWidth=ux(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=o.leftForLtr(d,l),n=o.leftForLtr(o.xPlus(d,1),l-2),a=Gw(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Hw(e,{x:t,y:h,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),Hw(e,{x:n,y:h+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,h,l,s),e.strokeRect(t,h,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,h+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:o}=this,{bodySpacing:r,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=Zw(n.bodyFont);let d=u.lineHeight,f=0;const h=AC(n.rtl,this.x,this.width),p=function(n){t.fillText(n,h.x(e.x+f),e.y+d/2),e.y+=d+r},g=h.textAlign(i);let m,v,b,y,x,w,C;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=_k(this,g,n),t.fillStyle=n.bodyColor,mx(this.beforeBody,p),f=a&&"right"!==g?"center"===i?l/2+c:l+2+c:0,y=0,w=o.length;y<w;++y){for(m=o[y],v=this.labelTextColors[y],t.fillStyle=v,mx(m.before,p),b=m.lines,a&&b.length&&(this._drawColorBox(t,e,y,h,n),d=Math.max(u.lineHeight,s)),x=0,C=b.length;x<C;++x)p(b[x]),d=u.lineHeight;mx(m.after,p)}f=0,d=u.lineHeight,mx(this.afterBody,p),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const s=AC(n.rtl,this.x,this.width);for(e.x=_k(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=Zw(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<r;++a)t.fillText(o[a],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,o){const{xAlign:r,yAlign:i}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=Gw(o.cornerRadius);t.fillStyle=o.backgroundColor,t.strokeStyle=o.borderColor,t.lineWidth=o.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===r&&this.drawCaret(e,t,n,o),t.lineTo(a+l,s+c-h),t.quadraticCurveTo(a+l,s+c,a+l-h,s+c),"bottom"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+f,s+c),t.quadraticCurveTo(a,s+c,a,s+c-f),"center"===i&&"left"===r&&this.drawCaret(e,t,n,o),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),o.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){const n=yk[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=Sk(this,e),a=Object.assign({},n,this._size),s=kk(t,e,a),l=Ok(e,a,s,t);o._to===l.x&&r._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=Kw(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,o,t),DC(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),LC(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,o=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),r=!vx(n,o),i=this._positionChanged(o,t);(r||i)&&(this._active=o,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,r=this._active||[],i=this._getActiveElements(e,r,t,n),a=this._positionChanged(i,e),s=t||!vx(i,r)||a;return s&&(this._active=i,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,o){const r=this.options;if("mouseout"===e.type)return[];if(!o)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:o,options:r}=this,i=yk[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}var Rk={id:"tooltip",_element:Ik,positioners:yk,afterInit(e,t,n){n&&(e.tooltip=new Ik({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Nk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Tk(e,t,n,o){const r=e.indexOf(t);if(-1===r)return((e,t,n,o)=>("string"==typeof t?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,o);return r!==e.lastIndexOf(t)?n:r}function jk(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function Ak(e,t){const n=[],{bounds:o,step:r,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,f=r||1,h=c-1,{min:p,max:g}=t,m=!lx(i),v=!lx(a),b=!lx(l),y=(g-p)/(u+1);let x,w,C,S,E=Fx((g-p)/h/f)*f;if(E<1e-14&&!m&&!v)return[{value:p},{value:g}];S=Math.ceil(g/E)-Math.floor(p/E),S>h&&(E=Fx(S*E/h/f)*f),lx(s)||(x=Math.pow(10,s),E=Math.ceil(E*x)/x),"ticks"===o?(w=Math.floor(p/E)*E,C=Math.ceil(g/E)*E):(w=p,C=g),m&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/r,E/1e3)?(S=Math.round(Math.min((a-i)/E,c)),E=(a-i)/S,w=i,C=a):b?(w=m?i:w,C=v?a:C,S=l-1,E=(C-w)/S):(S=(C-w)/E,S=Bx(S,Math.round(S),E/1e3)?Math.round(S):Math.ceil(S));const k=Math.max(qx(E),qx(w));x=Math.pow(10,lx(s)?k:s),w=Math.round(w*x)/x,C=Math.round(C*x)/x;let O=0;for(m&&(d&&w!==i?(n.push({value:i}),w<i&&O++,Bx(Math.round((w+O*E)*x)/x,i,Dk(i,y,e))&&O++):w<i&&O++);O<S;++O){const e=Math.round((w+O*E)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&C!==a?n.length&&Bx(n[n.length-1].value,a,Dk(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&C!==a||n.push({value:C}),n}function Dk(e,t,{horizontal:n,minRotation:o}){const r=Wx(o),i=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class Lk extends pE{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return lx(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this;const i=e=>o=t?o:e,a=e=>r=n?r:e;if(e){const e=zx(o),t=zx(r);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(o===r){let t=0===r?1:Math.abs(.05*r);a(r+t),e||i(o-t)}this.min=o,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:o}=e;return o?(t=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const o=Ak({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&Vx(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const o=(n-t)/Math.max(e.length-1,1)/2;t-=o,n+=o}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return xw(e,this.chart.options.locale,this.options.ticks.format)}}class zk extends Lk{static id="linear";static defaults={ticks:{callback:Cw.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=dx(e)?e:0,this.max=dx(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=Wx(this.options.ticks.minRotation),o=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/o))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Cw.formatters.logarithmic;Cw.formatters.numeric;const Bk="label";function Fk(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Hk(e,t){e.labels=t}function Vk(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bk;const o=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[n]===t[n]));return r&&t.data&&!o.includes(r)?(o.push(r),Object.assign(r,t),r):{...t}}))}function Wk(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bk;const n={labels:[],datasets:[]};return Hk(n,e.labels),Vk(n,e.datasets,t),n}function Xk(e,n){const{height:o=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:c,data:u,options:d,plugins:f=[],fallbackContent:h,updateMode:p,...g}=e,m=a(null),v=a(),b=()=>{m.current&&(v.current=new qE(m.current,{type:c,data:Wk(u,s),options:d&&{...d},plugins:f}),Fk(n,v.current))},y=()=>{Fk(n,null),v.current&&(v.current.destroy(),v.current=null)};return l((()=>{!i&&v.current&&d&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(v.current,d)}),[i,d]),l((()=>{!i&&v.current&&Hk(v.current.config.data,u.labels)}),[i,u.labels]),l((()=>{!i&&v.current&&u.datasets&&Vk(v.current.config.data,u.datasets,s)}),[i,u.datasets]),l((()=>{v.current&&(i?(y(),setTimeout(b)):v.current.update(p))}),[i,d,u.labels,u.datasets,p]),l((()=>{v.current&&(y(),setTimeout(b))}),[c]),l((()=>(b(),()=>y())),[]),t.createElement("canvas",Object.assign({ref:m,role:"img",height:o,width:r},g),h)}const qk=c(Xk);function Uk(e,n){return qE.register(n),c(((n,o)=>t.createElement(qk,Object.assign({},n,{ref:o,type:e}))))}const Yk=Uk("line",yS),Gk=Uk("bar",vS),Kk=Uk("doughnut",bS),Zk=Uk("pie",xS);py(".appChart {\n & > canvas {\n height: 100% !important;\n width: 100% !important;\n }\n}\n"),qE.register(class extends pE{static id="category";static defaults={ticks:{callback:jk}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:o}of t)e[n]===o&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(lx(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:Qx(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:Tk(n,e,hx(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,o=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)o.push({value:n});return o}getLabelForValue(e){return jk.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}},zk,class extends rE{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:o}}=this,{inner:r,outer:i}=ck(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?Hw:dk;var s;e.save(),i.w===r.w&&i.h===r.h||(e.beginPath(),a(e,fk(i,t,r)),e.clip(),a(e,fk(r,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,fk(r,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return uk(this,e,t,n)}inXRange(e,t){return uk(this,e,null,t)}inYRange(e,t){return uk(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:o,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(t+o)/2:t,y:r?n:(n+o)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}},class extends rE{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const o=n.spanGaps?this._loop:this._fullLoop;yC(this._points,n,e,o,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,o=e.options.spanGaps,r=n.length;if(!r)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,n,o){let r=0,i=t-1;if(n&&!o)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}(n,r,i,o);return HC(e,!0===o?[{start:a,end:s,loop:i}]:function(e,t,n,o){const r=e.length,i=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%r];n.skip||n.stop?l.skip||(o=!1,i.push({start:t%r,end:(a-1)%r,loop:o}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&i.push({start:t%r,end:s%r,loop:o}),i}(n,a,s<a?s+r:s,!!e._fullLoop&&0===a&&s===r-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,o=e[t],r=this.points,i=function(e,t){const n=[],o=e.segments;for(let r=0;r<o.length;r++){const i=FC(o[r],e.points,t);i.length&&n.push(...i)}return n}(this,{property:t,start:o,end:o});if(!i.length)return;const a=[],s=function(e){return e.stepped?TC:e.tension||"monotone"===e.cubicInterpolationMode?jC:RC}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=r[c],f=r[u];if(d===f){a.push(d);continue}const h=s(d,f,Math.abs((o-d[t])/(f[t]-d[t])),n.stepped);h[t]=e[t],a.push(h)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return ok(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=ok(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of o)i&=r(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,o){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),ik(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends rE{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.options,{x:r,y:i}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-i,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,t){return ak(this,e,"x",t)}inYRange(e,t){return ak(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!Tw(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,Iw(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}},class extends rE{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.getProps(["x","y"],n),{angle:r,distance:i}=Ux(o,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,f=hx(u,s-a),h=Zx(r,a,s)&&a!==s,p=f>=Px||h,g=Jx(i,l+d,c+d);return p&&g}getCenterPoint(e){const{x:t,y:n,startAngle:o,endAngle:r,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(o+r)/2,u=(i+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,o=(t.offset||0)/4,r=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>Px?Math.floor(n/Px):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*o,Math.sin(a)*o);const s=o*(1-Math.sin(Math.min(Nx,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:s}=t;let l=t.endAngle;if(i){KE(e,t,n,o,l,r);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%Px||Px))}KE(e,t,n,o,l,r),e.fill()}(e,this,s,r,i),ZE(e,this,s,r,i),e.restore()}},bk,Rk,mk);var Qk=function(e){var t=e.type,n=e.data,o=e.options,r=e.className,i=e.height,a=void 0===i?400:i,s=e.width,l=void 0===s?600:s;return $.jsx("div",{style:{height:a,width:l},className:"appChart ".concat(r),children:function(){switch(t){case"bar":return $.jsx(Gk,{data:n,options:o,className:r});case"line":return $.jsx(Yk,{data:n,options:o,className:r});case"pie":return $.jsx(Zk,{data:n,options:o,className:r});case"doughnut":return $.jsx(Kk,{data:n,options:o,className:r});default:return null}}()})};py(".appImageBox {\n width: max-content;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1rem;\n\n .ant-image {\n border-radius: 50%;\n overflow: hidden;\n\n .ant-image-img {\n border-radius: 50%;\n }\n }\n .text {\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n text-align: left;\n color: #000000;\n }\n}\n");var Jk=function(e){var t=e.width,n=void 0===t?100:t,o=e.height,r=void 0===o?100:o,i=e.text,a=void 0===i?"":i,s=e.image,l=e.className;return $.jsxs("div",{className:"appImageBox ".concat(l),children:[$.jsx(rb,{preview:!1,width:n,height:r,src:s.src,alt:a}),a&&$.jsx("span",{className:"text",children:a})]})};export{Cy as AppBackArrow,Ey as AppBadge,my as AppButton,Qk as AppChart,Jk as AppImageBox,gy as AppInput,by as AppSidebar,xy as AppTab,yy as AppTextarea,Oy as OverViewCard};
|
26
45
|
//# sourceMappingURL=index.mjs.map
|