react-frontend-common-components 0.0.3 → 0.0.4

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.js CHANGED
@@ -7,13 +7,13 @@
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(a)return l;a=1;var t=e,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,o){var a,l={},c=null,u=null;for(a in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,a)&&!s.hasOwnProperty(a)&&(l[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===l[a]&&(l[a]=t[a]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return l.Fragment=o,l.jsx=c,l.jsxs=c,l}():s.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){var t=e,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"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),m=Symbol.iterator,v="@@iterator",b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(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=b.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 x,w=!1,C=!1,E=!1,S=!1,k=!1;function O(e){return e.displayName||"Context"}function _(e){if(null==e)return null;if("number"==typeof e.tag&&y("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 d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return O(e)+".Consumer";case s:return O(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 h:var t=e.displayName||null;return null!==t?t:_(e.type)||"Memo";case p:var n=e,u=n._payload,g=n._init;try{return _(g(u))}catch(e){return null}}return null}x=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=b.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&&y("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 d:return B("Suspense");case f:return B("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return W(e.render,!1);case h:return X(e.type,t,n);case p: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=b.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 y("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=b.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=_(oe.current.type);ne[n]||(y('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',_(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,y("%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,y("%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=b.ReactCurrentOwner,ce=b.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=_(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 "+_(e._owner.type)+"."),ue(e),y('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=m&&e[m]||e[v];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!==h)return;t=n.propTypes}if(t){var 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),y("%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),y("Failed %s type: %s",n,s.message),G(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||se||(se=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ve={};function be(e,t,o,u,m,v){var b=function(e){return"string"==typeof e||"function"==typeof e||!!(e===r||e===a||k||e===i||e===d||e===f||S||e===g||w||C||E)||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===x||void 0!==e.getModuleId)}(e);if(!b){var O,$="";(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?O="null":Z(e)?O="array":void 0!==e&&e.$$typeof===n?(O="<"+(_(e.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,$)}var M=ae(e,t,o,m,v);if(null==M)return M;if(b){var N=t.children;if(void 0!==N)if(u)if(Z(N)){for(var P=0;P<N.length;P++)ge(N[P],e);Object.freeze&&Object.freeze(N)}else y("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=_(e),R=Object.keys(t).filter((function(e){return"key"!==e})),T=R.length>0?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}";ve[I+T]||(y('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),y("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),y("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)};u.Fragment=r,u.jsx=ye,u.jsxs=xe}()),u);var d=s.exports,f={exports:{}};
10
+ */"production"===process.env.NODE_ENV?s.exports=function(){if(a)return l;a=1;var t=e,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,o){var a,l={},c=null,u=null;for(a in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,a)&&!s.hasOwnProperty(a)&&(l[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===l[a]&&(l[a]=t[a]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return l.Fragment=o,l.jsx=c,l.jsxs=c,l}():s.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){var t=e,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"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),m=Symbol.iterator,v="@@iterator",b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(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=b.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 x,C=!1,w=!1,E=!1,S=!1,k=!1;function O(e){return e.displayName||"Context"}function $(e){if(null==e)return null;if("number"==typeof e.tag&&y("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 d:return"Suspense";case p:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return O(e)+".Consumer";case s:return O(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:$(e.type)||"Memo";case h:var n=e,u=n._payload,g=n._init;try{return $(g(u))}catch(e){return null}}return null}x=Symbol.for("react.module.reference");var M,_,P,N,I,L,R,j=Object.assign,T=0;function D(){}D.__reactDisabledLog=!0;var A,z=b.ReactCurrentDispatcher;function B(e,t,n){if(void 0===A)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);A=o&&o[1]||""}return"\n"+A+e}var H,F=!1,V="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||F)return"";var n,o=H.get(e);if(void 0!==o)return o;F=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=z.current,z.current=null,function(){if(0===T){M=console.log,_=console.info,P=console.warn,N=console.error,I=console.group,L=console.groupCollapsed,R=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})}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 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&&H.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{F=!1,z.current=r,function(){if(0==--T){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:M}),info:j({},e,{value:_}),warn:j({},e,{value:P}),error:j({},e,{value:N}),group:j({},e,{value:I}),groupCollapsed:j({},e,{value:L}),groupEnd:j({},e,{value:R})})}T<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?B(p):"";return"function"==typeof e&&H.set(e,f),f}function U(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 d:return B("Suspense");case p:return B("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return W(e.render,!1);case f:return U(e.type,t,n);case h:var r=e,i=r._payload,a=r._init;try{return U(a(i),t,n)}catch(e){}}return""}H=new V;var X=Object.prototype.hasOwnProperty,q={},G=b.ReactDebugCurrentFrame;function K(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);G.setExtraStackFrame(n)}else G.setExtraStackFrame(null)}var Y=Array.isArray;function Z(e){return Y(e)}function Q(e){return""+e}function J(e){if(function(e){try{return Q(e),!1}catch(e){return!0}}(e))return y("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=b.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(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),s=""+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)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&oe.current&&t&&oe.current.stateNode!==t){var n=$(oe.current.type);ne[n]||(y('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',$(oe.current.type),e.ref),ne[n]=!0)}}(t,r)),t)X.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,y("%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,y("%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=b.ReactCurrentOwner,ce=b.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=U(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 pe(){if(le.current){var e=$(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}se=!1;var fe={};function he(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=pe();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(!fe[n]){fe[n]=!0;var o="";e&&e._owner&&e._owner!==le.current&&(o=" It was passed a child from "+$(e._owner.type)+"."),ue(e),y('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)&&he(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=m&&e[m]||e[v];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)&&he(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=$(n);!function(e,t,n,o,r){var i=Function.call.bind(X);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||(K(r),y("%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),K(null)),s instanceof Error&&!(s.message in q)&&(q[s.message]=!0,K(r),y("Failed %s type: %s",n,s.message),K(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||se||(se=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ve={};function be(e,t,o,u,m,v){var b=function(e){return"string"==typeof e||"function"==typeof e||!!(e===r||e===a||k||e===i||e===d||e===p||S||e===g||C||w||E)||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===x||void 0!==e.getModuleId)}(e);if(!b){var O,M="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),M+=pe(),null===e?O="null":Z(e)?O="array":void 0!==e&&e.$$typeof===n?(O="<"+($(e.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,M)}var _=ae(e,t,o,m,v);if(null==_)return _;if(b){var P=t.children;if(void 0!==P)if(u)if(Z(P)){for(var N=0;N<P.length;N++)ge(P[N],e);Object.freeze&&Object.freeze(P)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ge(P,e)}if(X.call(t,"key")){var I=$(e),L=Object.keys(t).filter((function(e){return"key"!==e})),R=L.length>0?"{key: someKey, "+L.join(": ..., ")+": ...}":"{key: someKey}";ve[I+R]||(y('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} />',R,I,L.length>0?"{"+L.join(": ..., ")+": ...}":"{}",I),ve[I+R]=!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),y("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),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(_):me(_),_}var ye=function(e,t,n){return be(e,t,n,!1)},xe=function(e,t,n){return be(e,t,n,!0)};u.Fragment=r,u.jsx=ye,u.jsxs=xe}()),u);var d=s.exports,p={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=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}()}(f);var h=i(f.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 g,m={exports:{}},v={};var b,y={};
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}()}(p);var f=i(p.exports);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},h.apply(null,arguments)}var g,m={exports:{}},v={};var b,y={};
17
17
  /**
18
18
  * @license React
19
19
  * react-is.development.js
@@ -22,24 +22,53 @@
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?m.exports=function(){if(g)return v;g=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 m(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"),v.ContextConsumer=s,v.ContextProvider=a,v.Element=t,v.ForwardRef=c,v.Fragment=o,v.Lazy=h,v.Memo=f,v.Portal=n,v.Profiler=i,v.StrictMode=r,v.Suspense=u,v.SuspenseList=d,v.isAsyncMode=function(){return!1},v.isConcurrentMode=function(){return!1},v.isContextConsumer=function(e){return m(e)===s},v.isContextProvider=function(e){return m(e)===a},v.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},v.isForwardRef=function(e){return m(e)===c},v.isFragment=function(e){return m(e)===o},v.isLazy=function(e){return m(e)===h},v.isMemo=function(e){return m(e)===f},v.isPortal=function(e){return m(e)===n},v.isProfiler=function(e){return m(e)===i},v.isStrictMode=function(e){return m(e)===r},v.isSuspense=function(e){return m(e)===u},v.isSuspenseList=function(e){return m(e)===d},v.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)},v.typeOf=m,v}():m.exports=(b||(b=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,x=c,w=o,C=h,E=f,S=n,k=i,O=r,_=u,$=d,M=!1,N=!1;y.ContextConsumer=m,y.ContextProvider=v,y.Element=b,y.ForwardRef=x,y.Fragment=w,y.Lazy=C,y.Memo=E,y.Portal=S,y.Profiler=k,y.StrictMode=O,y.Suspense=_,y.SuspenseList=$,y.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isContextConsumer=function(e){return g(e)===s},y.isContextProvider=function(e){return g(e)===a},y.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},y.isForwardRef=function(e){return g(e)===c},y.isFragment=function(e){return g(e)===o},y.isLazy=function(e){return g(e)===h},y.isMemo=function(e){return g(e)===f},y.isPortal=function(e){return g(e)===n},y.isProfiler=function(e){return g(e)===i},y.isStrictMode=function(e){return g(e)===r},y.isSuspense=function(e){return g(e)===u},y.isSuspenseList=function(e){return g(e)===d},y.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)},y.typeOf=g}()),y);var x=m.exports;function w(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[];return e.Children.forEach(t,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?o=o.concat(w(e)):x.isFragment(e)&&e.props?o=o.concat(w(e.props.children,n)):o.push(e))})),o}var C={},E=[];function S(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=E.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function k(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=E.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function O(){C={}}function _(e,t,n){t||C[n]||(e(!1,n),C[n]=!0)}function $(e,t){_(S,e,t)}function M(e){return M="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},M(e)}function N(e){var t=function(e,t){if("object"!=M(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=M(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==M(t)?t:t+""}function P(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e){return e instanceof HTMLElement||e instanceof SVGElement}function j(n){var o,r=function(e){return e&&"object"===M(e)&&T(e.nativeElement)?e.nativeElement:T(e)?e:null}(n);return r||(n instanceof e.Component?null===(o=t.findDOMNode)||void 0===o?void 0:o.call(t,n):null)}function A(e,t,n){var r=o.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}$.preMessage=function(e){E.push(e)},$.resetWarned=O,$.noteOnce=function(e,t){_(k,e,t)};var D=function(e,t){"function"==typeof e?e(t):"object"===M(e)&&e&&"current"in e&&(e.current=t)},L=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){D(t,e)}))}},z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A((function(){return L.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},B=function(e){var t,n,o=x.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===x.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===x.ForwardRef)};Number(e.version.split(".")[0]);var F=o.createContext(null);var H=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}()}(),V="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,W="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),X="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(W):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var q=["top","right","bottom","left","width","height","size","weight"],U="undefined"!=typeof MutationObserver,Y=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(){X(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(){V&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),U?(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(){V&&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;q.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}(),G=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},K=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||W},Z=oe(0,0,0,0);function Q(e){return parseFloat(e)||0}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Q(e["border-"+n+"-width"])}),0)}function ee(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Z;var o=K(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]=Q(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=Q(o.width),l=Q(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=J(o,"left","right")+i),Math.round(l+a)!==n&&(l-=J(o,"top","bottom")+a)),!function(e){return e===K(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 oe(r.left,r.top,s,l)}var te="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof K(e).SVGGraphicsElement}:function(e){return e instanceof K(e).SVGElement&&"function"==typeof e.getBBox};function ne(e){return V?te(e)?function(e){var t=e.getBBox();return oe(0,0,t.width,t.height)}(e):ee(e):Z}function oe(e,t,n,o){return{x:e,y:t,width:n,height:o}}var re=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=oe(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ne(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}(),ie=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),G(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);G(this,{target:e,contentRect:c})},ae=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new H,"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 K(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new re(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 K(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 ie(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 H,le=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=Y.getInstance(),o=new ae(t,n,this);se.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){le.prototype[e]=function(){var t;return(t=se.get(this))[e].apply(t,arguments)}}));var ce=void 0!==W.ResizeObserver?W.ResizeObserver:le,ue=new Map;function de(e){e.forEach((function(e){var t,n=e.target;null===(t=ue.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var fe=new ce(de);function he(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,N(o.key),o)}}function ge(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function me(e,t){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},me(e,t)}function ve(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&&me(e,t)}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}function ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ye=function(){return!!e})()}function xe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function we(e){var t=ye();return function(){var n,o=be(e);if(t){var r=be(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xe(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ce=function(){ve(t,o.Component);var e=we(t);function t(){return he(this,t),e.apply(this,arguments)}return ge(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Ee(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),a=o.useRef(null),s=o.useContext(F),l="function"==typeof n,c=l?n(i):n,u=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&o.isValidElement(c)&&B(c),f=d?c.ref:null,h=z(f,i),p=function(){var e;return j(i.current)||(i.current&&"object"===M(i.current)?j(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||j(a.current)};o.useImperativeHandle(t,(function(){return p()}));var g=o.useRef(e);g.current=e;var m=o.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=R(R({},h),{},{offsetWidth:p,offsetHeight:m});null==s||s(v,e,o),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return o.useEffect((function(){var e=p();return e&&!r&&function(e,t){ue.has(e)||(ue.set(e,new Set),fe.observe(e)),ue.get(e).add(t)}(e,m),function(){return function(e,t){ue.has(e)&&(ue.get(e).delete(t),ue.get(e).size||(fe.unobserve(e),ue.delete(e)))}(e,m)}}),[i.current,r]),o.createElement(Ce,{ref:a},d?o.cloneElement(c,{ref:h}):c)}var Se=o.forwardRef(Ee);"production"!==process.env.NODE_ENV&&(Se.displayName="SingleObserver");function ke(e,t){var n=e.children,r="function"==typeof n?[n]:w(n);return"production"!==process.env.NODE_ENV&&(r.length>1?S(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&S(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((function(n,r){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return o.createElement(Se,p({},e,{key:i,ref:0===r?t:void 0}),n)}))}var Oe=o.forwardRef(ke);function _e(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function $e(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 Me(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ne(e,t){if(e){if("string"==typeof e)return $e(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)?$e(e,t):void 0}}function Pe(e){return function(e){if(Array.isArray(e))return $e(e)}(e)||Me(e)||Ne(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&&(Oe.displayName="ResizeObserver"),Oe.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(F),s=o.useCallback((function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){s===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(F.Provider,{value:s},t)};var Ie=function(e){return+setTimeout(e,16)},Re=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ie=function(e){return window.requestAnimationFrame(e)},Re=function(e){return window.cancelAnimationFrame(e)});var Te=0,je=new Map;function Ae(e){je.delete(e)}var De=function(e){var t=Te+=1;return function n(o){if(0===o)Ae(t),e();else{var r=Ie((function(){n(o-1)}));je.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function Le(e){if(Array.isArray(e))return e}function ze(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Be(e,t){return Le(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)||Ne(e,t)||ze()}function Fe(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 He(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Ve(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}De.cancel=function(e){var t=je.get(e);return Ae(e),Re(t)},"production"!==process.env.NODE_ENV&&(De.ids=function(){return je});var We="data-rc-order",Xe="data-rc-priority",qe="rc-util-key",Ue=new Map;function Ye(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):qe}function Ge(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ke(e){return Array.from((Ue.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!He())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(We,a),s&&i&&l.setAttribute(Xe,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=Ge(t),u=c.firstChild;if(o){if(s){var d=(t.styles||Ke(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(We)))return!1;var t=Number(e.getAttribute(Xe)||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 Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ge(t);return(t.styles||Ke(n)).find((function(n){return n.getAttribute(Ye(t))===e}))}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Qe(e,t);n&&Ge(t).removeChild(n)}function et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ge(n),r=Ke(o),i=R(R({},n),{},{styles:r});!function(e,t){var n=Ue.get(e);if(!n||!Ve(document,n)){var o=Ze("",t),r=o.parentNode;Ue.set(e,r),e.removeChild(o)}}(o,i);var a=Qe(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=Ze(e,i);return u.setAttribute(Ye(i),t),u}function tt(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 nt(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($(!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"===M(t)&&"object"===M(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 ot="%";function rt(e){return e.join(ot)}var it=function(){function e(t){he(this,e),P(this,"instanceId",void 0),P(this,"cache",new Map),this.instanceId=t}return ge(e,[{key:"get",value:function(e){return this.opGet(rt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(rt(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}(),at="data-token-hash",st="data-css-hash",lt="data-cache-path",ct="__cssinjs_instance__";var ut=o.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(st,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[ct]=t[ct]||e,t[ct]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(st,"]"))).forEach((function(t){var n,r=t.getAttribute(st);o[r]?t[ct]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new it(e)}(),defaultCache:!0});var dt=function(){function e(){he(this,e),P(this,"cache",void 0),P(this,"keys",void 0),P(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ge(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=Be(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Be(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}();P(dt,"MAX_CACHE_SIZE",20),P(dt,"MAX_CACHE_OFFSET",5);var ft=0,ht=function(){function e(t){he(this,e),P(this,"derivatives",void 0),P(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ft,0===t.length&&S(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ft+=1}return ge(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),pt=new dt;function gt(e){var t=Array.isArray(e)?e:[e];return pt.has(t)||pt.set(t,new ht(t)),pt.get(t)}var mt=new WeakMap,vt={};var bt=new WeakMap;function yt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=bt.get(e)||"";return n||(Object.keys(e).forEach((function(o){var r=e[o];n+=o,r instanceof ht?n+=r.id:r&&"object"===M(r)?n+=yt(r,t):n+=r})),t&&(n=Fe(n)),bt.set(e,n)),n}function xt(e,t){return Fe("".concat(t,"_").concat(yt(e,!0)))}var wt=He();function Ct(e){return"number"==typeof e?"".concat(e,"px"):e}function Et(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=R(R({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},P(P({},at,t),st,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 St=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()},kt=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=Be(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},Ot=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=Be(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=St(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,kt(o,t,{scope:null==n?void 0:n.scope})]},_t="test"!==process.env.NODE_ENV&&He()?o.useLayoutEffect:o.useEffect,$t=function(e,t){var n=o.useRef(!0);_t((function(){return e(n.current)}),t),_t((function(){return n.current=!1,function(){n.current=!0}}),[])},Mt=function(e,t){$t((function(t){if(!t)return e()}),t)},Nt=R({},o).useInsertionEffect,Pt=Nt?function(e,t,n){return Nt((function(){return e(),t()}),n)}:function(e,t,n){o.useMemo(e,n),$t((function(){return t(!0)}),n)},It=void 0!==R({},o).useInsertionEffect?function(e){var t=[],n=!1;return o.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&S(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var Rt=!1;var Tt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Rt};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var jt=window;if("function"==typeof jt.webpackHotUpdate){var At=jt.webpackHotUpdate;jt.webpackHotUpdate=function(){return Rt=!0,setTimeout((function(){Rt=!1}),0),At.apply(void 0,arguments)}}}function Dt(e,t,n,r,i){var a=o.useContext(ut).cache,s=rt([e].concat(Pe(t))),l=It([s]),c=Tt(),u=function(e){a.opUpdate(s,(function(t){var o=Be(t||[void 0,void 0],2),i=o[0],a=void 0===i?0:i,s=o[1],l=s;"production"!==process.env.NODE_ENV&&s&&c&&(null==r||r(l,c),l=null);var u=[a,l||n()];return e?e(u):u}))};o.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 Pt((function(){null==i||i(f)}),(function(e){return u((function(t){var n=Be(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=Be(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 Lt={},zt="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",Bt=new Map;var Ft=0;function Ht(e,t){Bt.set(e,(Bt.get(e)||0)-1);var n=Array.from(Bt.keys()),o=n.filter((function(e){return(Bt.get(e)||0)<=0}));n.length-o.length>Ft&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(at,'="').concat(e,'"]')).forEach((function(e){var n;e[ct]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Bt.delete(e)}))}var Vt=function(e,t,n,o){var r=R(R({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r},Wt="token";function Xt(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.useContext(ut),i=r.cache.instanceId,a=r.container,s=o.salt,l=void 0===s?"":s,c=o.override,u=void 0===c?Lt:c,d=o.formatToken,f=o.getComputedToken,h=o.cssVar,p=function(e,t){for(var n=mt,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(vt)||n.set(vt,e()),n.get(vt)}((function(){return Object.assign.apply(Object,[{}].concat(Pe(n)))}),n),g=yt(p),m=yt(u),v=h?yt(h):"",b=Dt(Wt,[l,t.id,g,m,v],(function(){var e,n=f?f(p,u,t):Vt(p,u,t,d),o=R({},n),r="";if(h){var i=Be(Ot(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=i[0],r=i[1]}var a=xt(n,l);n._tokenKey=a,o._tokenKey=xt(o,l);var s=null!==(e=null==h?void 0:h.key)&&void 0!==e?e:a;n._themeKey=s,function(e){Bt.set(e,(Bt.get(e)||0)+1)}(s);var c="".concat(zt,"-").concat(Fe(a));return n._hashId=c,[n,c,o,r,(null==h?void 0:h.key)||""]}),(function(e){Ht(e[0]._themeKey,i)}),(function(e){var t=Be(e,4),n=t[0],o=t[3];if(h&&o){var r=et(o,Fe("css-variables-".concat(n._themeKey)),{mark:st,prepend:"queue",attachTo:a,priority:-999});r[ct]=i,r.setAttribute(at,n._themeKey)}}));return b}var qt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ut="comm",Yt="rule",Gt="decl",Kt="@import",Zt="@keyframes",Qt="@layer",Jt=Math.abs,en=String.fromCharCode;function tn(e){return e.trim()}function nn(e,t,n){return e.replace(t,n)}function on(e,t,n){return e.indexOf(t,n)}function rn(e,t){return 0|e.charCodeAt(t)}function an(e,t,n){return e.slice(t,n)}function sn(e){return e.length}function ln(e,t){return t.push(e),e}var cn=1,un=1,dn=0,fn=0,hn=0,pn="";function gn(e,t,n,o,r,i,a,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:cn,column:un,length:a,return:"",siblings:s}}function mn(){return hn=fn>0?rn(pn,--fn):0,un--,10===hn&&(un=1,cn--),hn}function vn(){return hn=fn<dn?rn(pn,fn++):0,un++,10===hn&&(un=1,cn++),hn}function bn(){return rn(pn,fn)}function yn(){return fn}function xn(e,t){return an(pn,e,t)}function wn(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 Cn(e){return tn(xn(fn-1,kn(91===e?e+2:40===e?e+1:e)))}function En(e){for(;(hn=bn())&&hn<33;)vn();return wn(e)>2||wn(hn)>3?"":" "}function Sn(e,t){for(;--t&&vn()&&!(hn<48||hn>102||hn>57&&hn<65||hn>70&&hn<97););return xn(e,yn()+(t<6&&32==bn()&&32==vn()))}function kn(e){for(;vn();)switch(hn){case e:return fn;case 34:case 39:34!==e&&39!==e&&kn(hn);break;case 40:41===e&&kn(e);break;case 92:vn()}return fn}function On(e,t){for(;vn()&&e+hn!==57&&(e+hn!==84||47!==bn()););return"/*"+xn(t,fn-1)+"*"+en(47===e?e:vn())}function _n(e){for(;!wn(bn());)vn();return xn(e,fn)}function $n(e){return function(e){return pn="",e}(Mn("",null,null,null,[""],e=function(e){return cn=un=1,dn=sn(pn=e),fn=0,[]}(e),0,[0],e))}function Mn(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,E=y;m;)switch(p=b,b=vn()){case 40:if(108!=p&&58==rn(E,d-1)){-1!=on(E+=nn(Cn(b),"&","&\f"),"&\f",Jt(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:E+=Cn(b);break;case 9:case 10:case 13:case 32:E+=En(p);break;case 92:E+=Sn(yn()-1,7);continue;case 47:switch(bn()){case 42:case 47:ln(Pn(On(vn(),yn()),t,n,l),l),5!=wn(p||1)&&5!=wn(bn()||1)||!sn(E)||" "===an(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*g:s[c++]=sn(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(E=nn(E,/\f/g,"")),h>0&&(sn(E)-d||0===g&&47===p)&&ln(h>32?In(E+";",o,n,d-1,l):In(nn(E," ","")+";",o,n,d-2,l),l);break;case 59:E+=";";default:if(ln(C=Nn(E,t,n,c,u,r,s,y,x=[],w=[],d,i),i),123===b)if(0===u)Mn(E,t,C,C,x,i,d,s,w);else switch(99===f&&110===rn(E,3)?100:f){case 100:case 108:case 109:case 115:Mn(e,C,C,o&&ln(Nn(e,C,C,0,0,r,s,y,r,x=[],d,w),w),r,w,d,s,o?x:w);break;default:Mn(E,C,C,C,[""],w,0,s,w)}}c=u=h=0,g=v=1,y=E="",d=a;break;case 58:d=1+sn(E),h=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==mn())continue;switch(E+=en(b),b*g){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(sn(E)-1)*v,v=1;break;case 64:45===bn()&&(E+=Cn(vn())),f=bn(),u=d=sn(y=E+=_n(yn())),b++;break;case 45:45===p&&2==sn(E)&&(g=0)}}return i}function Nn(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=an(e,f+1,f=Jt(m=a[g])),x=e;b<p;++b)(x=tn(m>0?h[b]+" "+y:nn(y,/&\f/g,h[b])))&&(l[v++]=x);return gn(e,t,n,0===r?Yt:s,l,c,u,d)}function Pn(e,t,n,o){return gn(e,t,n,Ut,en(hn),an(e,2,-2),0,o)}function In(e,t,n,o,r){return gn(e,t,n,Gt,an(e,0,o),an(e,o+1,-1),o,r)}function Rn(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function Tn(e,t,n,o){switch(e.type){case Qt:if(e.children.length)break;case Kt:case Gt:return e.return=e.return||e.value;case Ut:return"";case Zt:return e.return=e.value+"{"+Rn(e.children,o)+"}";case Yt:if(!sn(e.value=e.props.join(",")))return""}return sn(n=Rn(e.children,o))?e.return=e.value+"{"+n+"}":""}function jn(e,t){var n=t.path,o=t.parentSelectors;$(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var An,Dn=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)))&&jn("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Ln=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&jn("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},zn="data-ant-cssinjs-cache-path",Bn="_FILE_STYLE__",Fn=!0;function Hn(e){return function(){if(!An&&(An={},He())){var e=document.createElement("div");e.className=zn,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=Be(e.split(":"),2),n=t[0],o=t[1];An[n]=o}));var n,o=document.querySelector("style[".concat(zn,"]"));o&&(Fn=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!An[e]}var Vn="_skip_check_",Wn="_multi_value_";function Xn(e){return Rn($n(e),Tn).replace(/\{%%%\:[^;];}/g,";")}function qn(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(Pe(n.slice(1))).join(" ")})).join(",")}var Un=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=Be(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"!==M(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===M(e)&&e&&(Vn in e||Wn in e)}(o)){var d;function E(e,t){"production"===process.env.NODE_ENV||"object"===M(o)&&null!=o&&o[Vn]||[Dn,Ln].concat(Pe(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;qt[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"===M(o)&&null!=o&&o[Wn]&&Array.isArray(f)?f.forEach((function(e){E(t,e)})):E(t,f)}else{var h=!1,b=t.trim(),y=!1;(r||i)&&s?b.startsWith("@")?h=!0:b=qn("&"===b?"":t,s,u):!r||s||"&"!==b&&""!==b||(b="",y=!0);var x=Be(e(o,n,{root:y,injectHash:h,parentSelectors:[].concat(Pe(a),[b])}),2),w=x[0],C=x[1];m=R(R({},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 Yn(e,t){return Fe("".concat(e.join("%")).concat(t))}function Gn(){return null}var Kn="style";function Zn(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,s=e.nonce,l=e.clientOnly,c=e.order,u=void 0===c?0:c,d=o.useContext(ut),f=d.autoClear,h=d.mock,g=d.defaultCache,m=d.hashPriority,v=d.container,b=d.ssrInline,y=d.transformers,x=d.linters,w=d.cache,C=d.layer,E=n._tokenKey,S=[E];C&&S.push("layer"),S.push.apply(S,Pe(r));var k=wt;"production"!==process.env.NODE_ENV&&void 0!==h&&(k="client"===h);var O=Dt(Kn,S,(function(){var e=S.join("|");if(Hn(e)){var n=function(e){var t=An[e],n=null;if(t&&He())if(Fn)n=Bn;else{var o=document.querySelector("style[".concat(st,'="').concat(An[e],'"]'));o?n=o.innerHTML:delete An[e]}return[n,t]}(e),o=Be(n,2),s=o[0],c=o[1];if(s)return[s,E,c,{},l,u]}var d=t(),f=Be(Un(d,{hashId:i,hashPriority:m,layer:C?a:void 0,path:r.join("-"),transformers:y,linters:x}),2),h=f[0],p=f[1],g=Xn(h),v=Yn(S,g);return[g,E,v,p,l,u]}),(function(e,t){var n=Be(e,3)[2];(t||f)&&wt&&Je(n,{mark:st})}),(function(e){var t=Be(e,4),n=t[0];t[1];var o=t[2],r=t[3];if(k&&n!==Bn){var i={mark:st,prepend:!C&&"queue",attachTo:v,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){et(Xn(r[e]),"_layer-".concat(e),R(R({},i),{},{prepend:!0}))}));var d=et(n,o,i);d[ct]=w.instanceId,d.setAttribute(at,E),"production"!==process.env.NODE_ENV&&d.setAttribute(lt,S.join("|")),c.forEach((function(e){et(Xn(r[e]),"_effect-".concat(e),i)}))}})),_=Be(O,3),$=_[0],M=_[1],N=_[2];return function(e){var t;return t=b&&!k&&g?o.createElement("style",p({},P(P({},at,M),st,N),{dangerouslySetInnerHTML:{__html:$}})):o.createElement(Gn,null),o.createElement(o.Fragment,null,t,e)}}var Qn="cssVar";P(P(P({},Kn,(function(e,t,n){var o=Be(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=Et(r,i,a,f,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Et(Xn(s[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Wt,(function(e,t,n){var o=Be(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,Et(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Qn,(function(e,t,n){var o=Be(e,4),r=o[1],i=o[2],a=o[3],s=(n||{}).plain;if(!r)return null;return[-999,i,Et(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var Jn=function(){function e(t,n){he(this,e),P(this,"name",void 0),P(this,"style",void 0),P(this,"_keyframe",!0),this.name=t,this.style=n}return ge(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 eo(e){return e.notSplit=!0,e}eo(["borderTop","borderBottom"]),eo(["borderTop"]),eo(["borderBottom"]),eo(["borderLeft","borderRight"]),eo(["borderLeft"]),eo(["borderRight"]);var to=e.createContext({});function no(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}function oo(e,t,n,o){if(!t.length)return n;var r,i,a=Le(r=t)||Me(r)||Ne(r)||ze(),s=a[0],l=a.slice(1);return i=e||"number"!=typeof s?Array.isArray(e)?Pe(e):R({},e):[],o&&void 0===n&&1===l.length?delete i[s][l[0]]:i[s]=oo(i[s],l,n,o),i}function ro(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!no(e,t.slice(0,-1))?e:oo(e,t,n,o)}function io(e){return Array.isArray(e)?[]:{}}var ao="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function so(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=io(t[0]);return t.forEach((function(e){!function t(n,r){var i,a=new Set(r),s=no(e,n),l=Array.isArray(s);if(l||"object"===M(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=no(o,n);l?o=ro(o,n,[]):c&&"object"===M(c)||(o=ro(o,n,io(s))),ao(s).forEach((function(e){t([].concat(Pe(n),[e]),a)}))}}else o=ro(o,n,s)}([])})),o}function lo(){}let co=null;let uo=lo;"production"!==process.env.NODE_ENV&&(uo=(e,t,n)=>{$(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(co=null,O())});const fo=o.createContext({}),ho="production"!==process.env.NODE_ENV?e=>{const{strict:t}=o.useContext(fo),n=(n,o,r)=>{if(!n)if(!1===t&&"deprecated"===o){const t=co;co||(co={}),co[e]=co[e]||[],co[e].includes(r||"")||co[e].push(r||""),t||console.warn("[antd] There exists deprecated usage in your code:",co)}else"production"!==process.env.NODE_ENV&&uo(n,e,r)};return n.deprecated=(e,t,o,r)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${o}\` instead.${r?` ${r}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=lo,e};var po=uo,go=e.createContext(void 0),mo=R(R({},{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 vo={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},bo={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},mo),timePickerLocale:Object.assign({},vo)},yo="${label} is not a valid ${type}",xo={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:bo,TimePicker:vo,Calendar:bo,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:yo,method:yo,array:yo,object:yo,number:yo,date:yo,boolean:yo,integer:yo,float:yo,regexp:yo,email:yo,url:yo,hex:yo},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({},xo.Modal);let wo=[];const Co=()=>wo.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),xo.Modal);const Eo=e.createContext(void 0),So="internalMark",ko=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if("production"!==process.env.NODE_ENV){const e=ho("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===So,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}o.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return wo.push(t),Co(),()=>{wo=wo.filter((e=>e!==t)),Co()}}Object.assign({},xo.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=o.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return o.createElement(Eo.Provider,{value:i},n)};function Oo(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 _o(e){return Math.min(1,Math.max(0,e))}function $o(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Mo(e){return e<=1?"".concat(100*Number(e),"%"):e}function No(e){return 1===e.length?"0"+e:String(e)}function Po(e,t,n){e=Oo(e,255),t=Oo(t,255),n=Oo(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 Io(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 Ro(e,t,n){e=Oo(e,255),t=Oo(t,255),n=Oo(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 To(e,t,n,o){var r=[No(Math.round(e).toString(16)),No(Math.round(t).toString(16)),No(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 jo(e){return Ao(e)/255}function Ao(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(ko.displayName="LocaleProvider");var Do={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 Lo(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(Do[e])e=Do[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Ho.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Ho.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Ho.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Ho.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Ho.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Ho.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Ho.hex8.exec(e),n)return{r:Ao(n[1]),g:Ao(n[2]),b:Ao(n[3]),a:jo(n[4]),format:t?"name":"hex8"};if(n=Ho.hex6.exec(e),n)return{r:Ao(n[1]),g:Ao(n[2]),b:Ao(n[3]),format:t?"name":"hex"};if(n=Ho.hex4.exec(e),n)return{r:Ao(n[1]+n[1]),g:Ao(n[2]+n[2]),b:Ao(n[3]+n[3]),a:jo(n[4]+n[4]),format:t?"name":"hex8"};if(n=Ho.hex3.exec(e),n)return{r:Ao(n[1]+n[1]),g:Ao(n[2]+n[2]),b:Ao(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Vo(e.r)&&Vo(e.g)&&Vo(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Oo(t,255),g:255*Oo(n,255),b:255*Oo(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Vo(e.h)&&Vo(e.s)&&Vo(e.v)?(a=Mo(e.s),s=Mo(e.v),r=function(e,t,n){e=6*Oo(e,360),t=Oo(t,100),n=Oo(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"):Vo(e.h)&&Vo(e.s)&&Vo(e.l)&&(a=Mo(e.s),l=Mo(e.l),r=function(e,t,n){var o,r,i;if(e=Oo(e,360),t=Oo(t,100),n=Oo(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=Io(s,a,e+1/3),r=Io(s,a,e),i=Io(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=$o(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 zo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Bo="[\\s|\\(]+(".concat(zo,")[,|\\s]+(").concat(zo,")[,|\\s]+(").concat(zo,")\\s*\\)?"),Fo="[\\s|\\(]+(".concat(zo,")[,|\\s]+(").concat(zo,")[,|\\s]+(").concat(zo,")[,|\\s]+(").concat(zo,")\\s*\\)?"),Ho={CSS_UNIT:new RegExp(zo),rgb:new RegExp("rgb"+Bo),rgba:new RegExp("rgba"+Fo),hsl:new RegExp("hsl"+Bo),hsla:new RegExp("hsla"+Fo),hsv:new RegExp("hsv"+Bo),hsva:new RegExp("hsva"+Fo),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 Vo(e){return Boolean(Ho.CSS_UNIT.exec(String(e)))}var Wo=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=Lo(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=$o(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=Ro(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=Ro(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=Po(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=Po(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),To(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=[No(Math.round(e).toString(16)),No(Math.round(t).toString(16)),No(Math.round(n).toString(16)),No((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*Oo(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*Oo(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="#"+To(this.r,this.g,this.b,!1),t=0,n=Object.entries(Do);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=_o(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=_o(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=_o(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=_o(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}(),Xo=2,qo=.16,Uo=.05,Yo=.05,Go=.15,Ko=5,Zo=4,Qo=[{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 Jo(e){var t=Ro(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function er(e){var t=e.r,n=e.g,o=e.b;return"#".concat(To(t,n,o,!1))}function tr(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Xo*t:Math.round(e.h)+Xo*t:n?Math.round(e.h)+Xo*t:Math.round(e.h)-Xo*t)<0?o+=360:o>=360&&(o-=360),o}function nr(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-qo*t:t===Zo?e.s+qo:e.s+Uo*t)>1&&(o=1),n&&t===Ko&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function or(e,t,n){var o;return(o=n?e.v+Yo*t:e.v-Go*t)>1&&(o=1),Number(o.toFixed(2))}function rr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=Lo(e),r=Ko;r>0;r-=1){var i=Jo(o),a=er(Lo({h:tr(i,r,!0),s:nr(i,r,!0),v:or(i,r,!0)}));n.push(a)}n.push(er(o));for(var s=1;s<=Zo;s+=1){var l=Jo(o),c=er(Lo({h:tr(l,s),s:nr(l,s),v:or(l,s)}));n.push(c)}return"dark"===t.theme?Qo.map((function(e){var o,r,i,a=e.index,s=e.opacity;return er((o=Lo(t.backgroundColor||"#141414"),r=Lo(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 ir={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"},ar=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ar.primary=ar[5];var sr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];sr.primary=sr[5];var lr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];lr.primary=lr[5];var cr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];cr.primary=cr[5];var ur=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ur.primary=ur[5];var dr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];dr.primary=dr[5];var fr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];fr.primary=fr[5];var hr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];hr.primary=hr[5];var pr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];pr.primary=pr[5];var gr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];gr.primary=gr[5];var mr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];mr.primary=mr[5];var vr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];vr.primary=vr[5];var br=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];br.primary=br[5];var yr={red:ar,volcano:sr,orange:lr,gold:cr,yellow:ur,lime:dr,green:fr,cyan:hr,blue:pr,geekblue:gr,purple:mr,magenta:vr,grey:br};const xr={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"},wr=Object.assign(Object.assign({},xr),{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 Cr=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 Er(e){return(e+8)/e}const Sr=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:Er(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 kr=(e,t)=>new Wo(e).setAlpha(t).toRgbString(),Or=(e,t)=>new Wo(e).darken(t).toHexString(),_r=e=>{const t=rr(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]}},$r=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:kr(o,.88),colorTextSecondary:kr(o,.65),colorTextTertiary:kr(o,.45),colorTextQuaternary:kr(o,.25),colorFill:kr(o,.15),colorFillSecondary:kr(o,.06),colorFillTertiary:kr(o,.04),colorFillQuaternary:kr(o,.02),colorBgLayout:Or(n,4),colorBgContainer:Or(n,0),colorBgElevated:Or(n,0),colorBgSpotlight:kr(o,.85),colorBgBlur:"transparent",colorBorder:Or(n,15),colorBorderSecondary:Or(n,6)}};const Mr=gt((function(e){ir.pink=ir.magenta,yr.pink=yr.magenta;const t=Object.keys(xr).map((t=>{const n=e[t]===ir[t]?yr[t]:rr(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 Wo("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:_r,generateNeutralColorPalettes:$r})),Sr(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},Cr(o))}(e))})),Nr={token:wr,override:{override:wr},hashed:!0},Pr=e.createContext(Nr),Ir="ant",Rr="anticon",Tr=["outlined","borderless","filled"],jr=o.createContext({getPrefixCls:(e,t)=>t||(e?`${Ir}-${e}`:Ir),iconPrefixCls:Rr}),Ar=`-ant-${Date.now()}-${Math.random()}`;function Dr(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 Wo(e),i=rr(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 Wo(t.primaryColor),i=rr(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 Wo(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);He()?et(n,`${Ar}-dynamic-theme`):"production"!==process.env.NODE_ENV&&po(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Lr=o.createContext(!1),zr=e=>{let{children:t,disabled:n}=e;const r=o.useContext(Lr);return o.createElement(Lr.Provider,{value:null!=n?n:r},t)},Br=o.createContext(void 0),Fr=e=>{let{children:t,size:n}=e;const r=o.useContext(Br);return o.createElement(Br.Provider,{value:n||r},t)};var Hr=ge((function e(){he(this,e)})),Vr="CALC_UNIT",Wr=new RegExp(Vr,"g");function Xr(e){return"number"==typeof e?"".concat(e).concat(Vr):e}var qr=function(){ve(t,Hr);var e=we(t);function t(n,o){var r;he(this,t),P(xe(r=e.call(this)),"result",""),P(xe(r),"unitlessCssVar",void 0),P(xe(r),"lowPriority",void 0);var i=M(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===i?r.result=Xr(n):"string"===i&&(r.result=n),r}return ge(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(Xr(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(Xr(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(Wr,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),Ur=function(){ve(t,Hr);var e=we(t);function t(n){var o;return he(this,t),P(xe(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}return ge(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}(),Yr=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 Gr(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return n}function Kr(e){var t=o.useRef(!1),n=Be(o.useState(e),2),r=n[0],i=n[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||i(e)}]}function Zr(e){return void 0!==e}function Qr(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,s=Be(Kr((function(){return Zr(r)?r:Zr(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=Gr(i),h=Be(Kr([u]),2),p=h[0],g=h[1];return Mt((function(){var e=p[0];l!==e&&f(l,e)}),[p]),Mt((function(){Zr(r)||c(r)}),[r]),[d,Gr((function(e,t){c(e,t),g([u],t)}))]}function Jr(e,t,n,o){var r=R({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach((function(t){var n,o=Be(t,2),i=o[0],a=o[1];("production"!==process.env.NODE_ENV&&$(!(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=R(R({},n),r);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var ei="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,ti=!0;function ni(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ei)return Object.assign.apply(Object,[{}].concat(t));ti=!1;var o={};return t.forEach((function(e){"object"===M(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),ti=!0,o}var oi={};function ri(){}function ii(e,t,n){var o;return"function"==typeof n?n(ni(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var ai=function(){function e(){he(this,e),P(this,"map",new Map),P(this,"objectIDMap",new WeakMap),P(this,"nextID",0),P(this,"lastAccessBeat",new Map),P(this,"accessBeat",0)}return ge(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"===M(e)?"obj_".concat(t.getObjectID(e)):"".concat(M(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}(),si=new ai;var li=function(){return{}};const ci=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var ui="5.20.5";function di(e){return e>=0&&e<=255}function fi(e,t){const{r:n,g:o,b:r,a:i}=new Wo(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Wo(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(di(t)&&di(i)&&di(c))return new Wo({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Wo({r:n,g:o,b:r,a:1}).toRgbString()}var hi=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=hi(e,["override"]),o=Object.assign({},t);Object.keys(wr).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:fi(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:fi(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:fi(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:fi(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 Wo("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Wo("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Wo("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 gi=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 mi={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},vi={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},bi={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},yi=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=gi(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=gi(n,["theme"]);let i=r;o&&(i=yi(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function xi(){const{token:t,hashed:n,theme:o,override:r,cssVar:i}=e.useContext(Pr),a=`${ui}-${n||""}`,s=o||Mr,[l,c,u]=Xt(s,[wr,t],{salt:a,override:r,getComputedToken:yi,formatToken:pi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:mi,ignore:vi,preserve:bi}});return[s,u,n?c:"",l,i]}const wi=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Ci={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ei=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}},Si=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"}}}),ki=e=>({outline:`${Ct(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Oi=e=>({"&:focus-visible":Object.assign({},ki(e))}),_i=(e,t)=>{const[n,o]=xi();return Zn({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:$i,genComponentStyleHook:Mi,genSubStyleComponent:Ni}=function(t){var n=t.useCSP,o=void 0===n?li:n,r=t.useToken,i=t.usePrefix,a=t.getResetStyles,s=t.getCommonStyle,l=t.getCompUnitless;function c(t,n,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Be(u,1)[0],f=u.join("-");return function(t){var u,h,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,g=r(),m=g.theme,v=g.realToken,b=g.hashId,y=g.token,x=g.cssVar,w=i(),C=w.rootPrefixCls,E=w.iconPrefixCls,S=o(),k=x?"css":"js",O=(u=function(){var e=new Set;return x&&Object.keys(c.unitless||{}).forEach((function(t){e.add(St(t,x.prefix)),e.add(St(t,Yr(d,x.prefix)))})),function(e,t){var n="css"===e?qr:Ur;return function(e){return new n(e,t)}}(k,e)},h=[k,d,null==x?void 0:x.prefix],e.useMemo((function(){var e=si.get(h);if(e)return e;var t=u();return si.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 Ct(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 Ct(e)})).join(","),")")}}}(k),$=_.max,N=_.min,P={theme:m,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:c.clientOnly,layer:{name:"antd"},order:c.order||-999};Zn(R(R({},P),{},{clientOnly:!1,path:["Shared",C]}),(function(){return"function"==typeof a?a(y):[]}));var I=Zn(R(R({},P),{},{path:[f,t,E]}),(function(){if(!1===c.injectStyle)return[];var e=function(e){var t,n=e,o=ri;return ei&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return ti&&t.add(n),e[n]}}),o=function(e,n){var o;oi[e]={global:Array.from(t),component:R(R({},null===(o=oi[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(y),o=e.token,r=e.flush,i=ii(d,v,l),a=".".concat(t),u=Jr(d,v,i,{deprecatedTokens:c.deprecatedTokens});x&&"object"===M(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(St(e,Yr(d,x.prefix)),")")}));var f=ni(o,{componentCls:a,prefixCls:t,iconCls:".".concat(E),antCls:".".concat(C),calc:O,max:$,min:N},x?i:u),h=n(f,{hashId:b,prefixCls:t,rootPrefixCls:C,iconPrefixCls:E});r(d,u);var g="function"==typeof s?s(f,t,p,c.resetFont):null;return[!1===c.resetStyle?null:g,h]}));return[I,b]}}return{genStyleHooks:function(t,n,o,i){var a=Array.isArray(t)?t[0]:t;function s(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=R(R({},"function"==typeof l?l(t):{}),{},P({},s("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[s(e)]=u[e]}));var f=R(R({},i),{},{unitless:d,prefixToken:s}),h=c(t,n,o,f),p=function(t,n,o){var i=o.unitless,a=o.injectStyle,s=void 0===a||a,l=o.prefixToken,c=o.ignore,u=function(a){var s=a.rootCls,u=a.cssVar,d=void 0===u?{}:u,f=r().realToken;return function(t,n){var o=t.key,r=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=void 0===l?"":l,u=e.useContext(ut),d=u.cache.instanceId,f=u.container,h=s._tokenKey,p=[].concat(Pe(t.path),[o,c,h]),g=Dt(Qn,p,(function(){var e=n(),t=Be(Ot(e,o,{prefix:r,unitless:i,ignore:a,scope:c}),2),s=t[0],l=t[1];return[s,l,Yn(p,l),o]}),(function(e){var t=Be(e,3)[2];wt&&Je(t,{mark:st})}),(function(e){var t=Be(e,3),n=t[1],r=t[2];if(n){var i=et(n,r,{mark:st,prepend:"queue",attachTo:f,priority:-999});i[ct]=d,i.setAttribute(at,o)}}))}({path:[t],prefix:d.prefix,key:d.key,unitless:i,ignore:c,token:f,scope:s},(function(){var e=ii(t,f,n),r=Jr(t,f,e,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(e).forEach((function(e){r[l(e)]=r[e],delete r[e]})),r})),null},d=function(n){var o=r().cssVar;return[function(r){return s&&o?e.createElement(e.Fragment,null,e.createElement(u,{rootCls:n,cssVar:o,component:t}),r):r},null==o?void 0:o.key]};return d}(a,o,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Be(h(e,t),2)[1],o=Be(p(t),2);return[o[0],n,o[1]]}},genSubStyleComponent:function(e,t,n){var o=c(e,t,n,R({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:c}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=e.useContext(jr);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,o,r]=xi();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:t,iconPrefixCls:n}=e.useContext(jr);return _i(n,t),null!=t?t:{}},getResetStyles:e=>[{"&":Si(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:()=>mi});function Pi(e,t){return ci.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 Ii=Object.assign({},o),{useId:Ri}=Ii,Ti=void 0===Ri?()=>"":Ri;var ji=["children"],Ai=o.createContext({});function Di(e){var t=e.children,n=tt(e,ji);return o.createElement(Ai.Provider,{value:n},t)}var Li=function(){ve(t,o.Component);var e=we(t);function t(){return he(this,t),e.apply(this,arguments)}return ge(t,[{key:"render",value:function(){return this.props.children}}]),t}();var zi="none",Bi="appear",Fi="enter",Hi="leave",Vi="none",Wi="prepare",Xi="start",qi="active",Ui="end",Yi="prepared";function Gi(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 Ki=function(e,t){var n={animationend:Gi("Animation","AnimationEnd"),transitionend:Gi("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(He(),"undefined"!=typeof window?window:{}),Zi={};if(He()){var Qi=document.createElement("div");Zi=Qi.style}var Ji={};function ea(e){if(Ji[e])return Ji[e];var t=Ki[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 Zi)return Ji[e]=t[i],Ji[e]}return""}var ta=ea("animationend"),na=ea("transitionend"),oa=!(!ta||!na),ra=ta||"animationend",ia=na||"transitionend";function aa(e,t){if(!e)return null;if("object"===M(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var sa=function(t){var n=e.useRef();function r(e){e&&(e.removeEventListener(ia,t),e.removeEventListener(ra,t))}return o.useEffect((function(){return function(){r(n.current)}}),[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(ia,t),e.addEventListener(ra,t),n.current=e)},r]},la=He()?e.useLayoutEffect:e.useEffect,ca=[Wi,Xi,qi,Ui],ua=[Wi,Yi],da=!1,fa=!0;function ha(e){return e===qi||e===Ui}var pa=function(e,t,n){var r=Be(Kr(Vi),2),i=r[0],a=r[1],s=function(){var e=o.useRef(null);function t(){De.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=De((function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)}));e.current=i},t]}(),l=Be(s,2),c=l[0],u=l[1];var d=t?ua:ca;return la((function(){if(i!==Vi&&i!==Ui){var e=d.indexOf(i),t=d[e+1],o=n(i);o===da?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===o?n():Promise.resolve(o).then(n)}))}}),[e,i]),o.useEffect((function(){return function(){u()}}),[]),[function(){a(Wi,!0)},i]};function ga(t,n,r,i){var a,s,l,c=i.motionEnter,u=void 0===c||c,d=i.motionAppear,f=void 0===d||d,h=i.motionLeave,p=void 0===h||h,g=i.motionDeadline,m=i.motionLeaveImmediately,v=i.onAppearPrepare,b=i.onEnterPrepare,y=i.onLeavePrepare,x=i.onAppearStart,w=i.onEnterStart,C=i.onLeaveStart,E=i.onAppearActive,S=i.onEnterActive,k=i.onLeaveActive,O=i.onAppearEnd,_=i.onEnterEnd,$=i.onLeaveEnd,M=i.onVisibleChanged,N=Be(Kr(),2),I=N[0],T=N[1],j=(a=zi,s=Be(o.useReducer((function(e){return e+1}),0),2)[1],l=o.useRef(a),[Gr((function(){return l.current})),Gr((function(e){l.current="function"==typeof e?e(l.current):e,s()}))]),A=Be(j,2),D=A[0],L=A[1],z=Be(Kr(null),2),B=z[0],F=z[1],H=D(),V=e.useRef(!1),W=e.useRef(null);function X(){return r()}var q=e.useRef(!1);function U(){L(zi),F(null,!0)}var Y=Gr((function(e){var t=D();if(t!==zi){var n=X();if(!e||e.deadline||e.target===n){var o,r=q.current;t===Bi&&r?o=null==O?void 0:O(n,e):t===Fi&&r?o=null==_?void 0:_(n,e):t===Hi&&r&&(o=null==$?void 0:$(n,e)),r&&!1!==o&&U()}}})),G=Be(sa(Y),1)[0],K=function(e){switch(e){case Bi:return P(P(P({},Wi,v),Xi,x),qi,E);case Fi:return P(P(P({},Wi,b),Xi,w),qi,S);case Hi:return P(P(P({},Wi,y),Xi,C),qi,k);default:return{}}},Z=o.useMemo((function(){return K(H)}),[H]),Q=Be(pa(H,!t,(function(e){if(e===Wi){var t=Z[Wi];return t?t(X()):da}var n;ee in Z&&F((null===(n=Z[ee])||void 0===n?void 0:n.call(Z,X(),null))||null);return ee===qi&&H!==zi&&(G(X()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){Y({deadline:!0})}),g))),ee===Yi&&U(),fa})),2),J=Q[0],ee=Q[1],te=ha(ee);q.current=te,la((function(){T(n);var e,o=V.current;V.current=!0,!o&&n&&f&&(e=Bi),o&&n&&u&&(e=Fi),(o&&!n&&p||!o&&m&&!n&&p)&&(e=Hi);var r=K(e);e&&(t||r[Wi])?(L(e),J()):L(zi)}),[n]),e.useEffect((function(){(H===Bi&&!f||H===Fi&&!u||H===Hi&&!p)&&L(zi)}),[f,u,p]),e.useEffect((function(){return function(){V.current=!1,clearTimeout(W.current)}}),[]);var ne=o.useRef(!1);e.useEffect((function(){I&&(ne.current=!0),void 0!==I&&H===zi&&((ne.current||I)&&(null==M||M(I)),ne.current=!0)}),[I,H]);var oe=B;return Z[Wi]&&ee===Xi&&(oe=R({transition:"none"},oe)),[H,ee,oe,null!=I?I:n]}var ma=function(t){var n=t;"object"===M(t)&&(n=t.transitionSupport);var r=o.forwardRef((function(t,r){var i=t.visible,a=void 0===i||i,s=t.removeOnLeave,l=void 0===s||s,c=t.forceRender,u=t.children,d=t.motionName,f=t.leavedClassName,p=t.eventProps,g=function(e,t){return!(!e.motionName||!n||!1===t)}(t,o.useContext(Ai).motion),m=e.useRef(),v=e.useRef();var b=Be(ga(g,a,(function(){try{return m.current instanceof HTMLElement?m.current:j(v.current)}catch(e){return null}}),t),4),y=b[0],x=b[1],w=b[2],C=b[3],E=o.useRef(C);C&&(E.current=!0);var S,k=o.useCallback((function(e){m.current=e,D(r,e)}),[r]),O=R(R({},p),{},{visible:a});if(u)if(y===zi)S=C?u(R({},O),k):!l&&E.current&&f?u(R(R({},O),{},{className:f}),k):c||!l&&!f?u(R(R({},O),{},{style:{display:"none"}}),k):null;else{var _;x===Wi?_="prepare":ha(x)?_="active":x===Xi&&(_="start");var $=aa(d,"".concat(y,"-").concat(_));S=u(R(R({},O),{},{className:h(aa(d,y),P(P({},$,$&&_),d,"string"==typeof d)),style:w}),k)}else S=null;o.isValidElement(S)&&B(S)&&(S.ref||(S=o.cloneElement(S,{ref:k})));return o.createElement(Li,{ref:v},S)}));return r.displayName="CSSMotion",r}(oa),va="add",ba="keep",ya="remove",xa="removed";function wa(e){var t;return R(R({},t=e&&"object"===M(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ca(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(wa)}var Ea=["component","children","onVisibleChanged","onAllRemoved"],Sa=["status"],ka=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Oa(e){const{children:t}=e,[,n]=xi(),{motion:r}=n,i=o.useRef(!1);return i.current=i.current||!1===r,i.current?o.createElement(Di,{motion:r},t):t}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ma,t=function(){ve(n,o.Component);var t=we(n);function n(){var e;he(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return P(xe(e=t.call.apply(t,[this].concat(r))),"state",{keyEntities:[]}),P(xe(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:R(R({},e),{},{status:xa})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==xa})).length})),e}return ge(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,s=r.onVisibleChanged,l=r.onAllRemoved,c=tt(r,Ea),u=i||o.Fragment,d={};return ka.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,o.createElement(u,c,n.map((function(n,r){var i=n.status,c=tt(n,Sa),u=i===va||i===ba;return o.createElement(e,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(R(R({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=Ca(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=Ca(e),a=Ca(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 R(R({},e),{},{status:va})}))),o=i),n.push(R(R({},s),{},{status:ba})),o+=1,t=!0;break}}t||n.push(R(R({},e),{},{status:ya}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return R(R({},e),{},{status:va})}))));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!==ya}))).forEach((function(t){t.key===e&&(t.status=ba)}))})),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!==xa||e.status!==ya}))}}}]),n}();P(t,"defaultProps",{component:"div"})}(oa);const _a=o.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return ho("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(_a.displayName="PropWarning");var $a="production"!==process.env.NODE_ENV?_a:()=>null,Ma=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 Na=!1;process.env.NODE_ENV;const Pa=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ia;const Ra=e=>{const{children:t,csp:n,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:E,calendar:S,carousel:k,cascader:O,collapse:_,typography:$,checkbox:M,descriptions:N,divider:P,drawer:I,skeleton:R,steps:T,image:j,layout:D,list:L,mentions:z,modal:B,progress:F,result:H,slider:V,breadcrumb:W,menu:X,pagination:q,input:U,textArea:Y,empty:G,badge:K,radio:Z,rate:Q,switch:J,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:Ee}=e,Se=o.useCallback(((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||v.getPrefixCls("");return t?`${r}-${t}`:r}),[v.getPrefixCls,e.prefixCls]),ke=b||v.iconPrefixCls||Rr,Oe=n||v.csp;_i(ke,Oe);const _e=function(e,t,n){var o,r;const i=ho("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Nr),{hashed:null!==(o=null==t?void 0:t.hashed)&&void 0!==o?o:Nr.hashed,cssVar:null==t?void 0:t.cssVar}),l=Ti();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 A((()=>{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)=>!nt(e,t[n],!0)))))}(y,v.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(Na=Na||!!_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:Se,iconPrefixCls:ke,theme:_e,segmented:w,statistic:C,spin:E,calendar:S,carousel:k,cascader:O,collapse:_,typography:$,checkbox:M,descriptions:N,divider:P,drawer:I,skeleton:R,steps:T,image:j,input:U,textArea:Y,layout:D,list:L,mentions:z,modal:B,progress:F,result:H,slider:V,breadcrumb:W,menu:X,pagination:q,empty:G,badge:K,radio:Z,rate:Q,switch:J,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:Ee};if("production"!==process.env.NODE_ENV){ho("ConfigProvider")(!("autoInsertSpaceInButton"in e),"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])})),Pa.forEach((t=>{const n=e[t];n&&(Me[t]=n)})),void 0!==r&&(Me.button=Object.assign({autoInsertSpace:r},Me.button));const Ne=A((()=>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=o.useMemo((()=>({prefixCls:ke,csp:Oe})),[ke,Oe]);let Ie=o.createElement(o.Fragment,null,o.createElement($a,{dropdownMatchSelectWidth:h}),t);const Re=o.useMemo((()=>{var e,t,n,o;return so((null===(e=xo.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=o.createElement(go.Provider,{value:Re},Ie)),l&&(Ie=o.createElement(ko,{locale:l,_ANT_MARK__:So},Ie)),(ke||Oe)&&(Ie=o.createElement(to.Provider,{value:Pe},Ie)),c&&(Ie=o.createElement(Fr,{size:c},Ie)),Ie=o.createElement(Oa,null,Ie);const Te=o.useMemo((()=>{const e=_e||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=Ma(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?gt(t):Mr,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=gt(o.algorithm)),delete o.algorithm),s[t]=o}));const l=Object.assign(Object.assign({},wr),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=o.createElement(Pr.Provider,{value:Te},Ie)),Ne.warning&&(Ie=o.createElement(fo.Provider,{value:Ne.warning},Ie)),void 0!==x&&(Ie=o.createElement(zr,{disabled:x},Ie)),o.createElement(jr.Provider,{value:Ne},Ie)},Ta=e=>{const t=o.useContext(jr),n=o.useContext(Eo);return o.createElement(Ra,Object.assign({parentContext:t,legacyLocale:n},e))};function ja(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Aa(e){return function(e){return ja(e)instanceof ShadowRoot}(e)?ja(e):null}function Da(e){return"object"===M(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===M(e.icon)||"function"==typeof e.icon)}function La(){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 za(t,n,o){return o?e.createElement(t.tag,R(R({key:n},La(t.attrs)),o),(t.children||[]).map((function(e,o){return za(e,"".concat(n,"-").concat(t.tag,"-").concat(o))}))):e.createElement(t.tag,R({key:n},La(t.attrs)),(t.children||[]).map((function(e,o){return za(e,"".concat(n,"-").concat(t.tag,"-").concat(o))})))}function Ba(e){return rr(e)[0]}function Fa(e){return e?Array.isArray(e)?e:[e]:[]}Ta.ConfigContext=jr,Ta.SizeContext=Br,Ta.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(Ia=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."),Dr(Ia||Ir,o))},Ta.useConfig=function(){return{componentDisabled:e.useContext(Lr),componentSize:e.useContext(Br)}},Object.defineProperty(Ta,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&po(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Br)}),"production"!==process.env.NODE_ENV&&(Ta.displayName="ConfigProvider");var Ha=["icon","className","onClick","style","primaryColor","secondaryColor"],Va={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Wa=function(t){var n,r,i,a,s,l,c,u=t.icon,d=t.className,f=t.onClick,h=t.style,p=t.primaryColor,g=t.secondaryColor,m=tt(t,Ha),v=o.useRef(),b=Va;if(p&&(b={primaryColor:p,secondaryColor:g||Ba(p)}),n=v,r=e.useContext(to),i=r.csp,a=r.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)),e.useEffect((function(){var e=Aa(n.current);et(s,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),l=Da(u),c="icon should be icon definiton, but got ".concat(u),$(l,"[@ant-design/icons] ".concat(c)),!Da(u))return null;var y=u;return y&&"function"==typeof y.icon&&(y=R(R({},y),{},{icon:y.icon(b.primaryColor,b.secondaryColor)})),za(y.icon,"svg-".concat(y.name),R(R({className:d,onClick:f,style:h,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:v}))};function Xa(e){var t=Be(Fa(e),2),n=t[0],o=t[1];return Wa.setTwoToneColors({primaryColor:n,secondaryColor:o})}Wa.displayName="IconReact",Wa.getTwoToneColors=function(){return R({},Va)},Wa.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Va.primaryColor=t,Va.secondaryColor=n||Ba(t),Va.calculated=!!n};var qa=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Xa(pr.primary);var Ua=o.forwardRef((function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=tt(e,qa),d=o.useContext(to),f=d.prefixCls,g=void 0===f?"anticon":f,m=d.rootClassName,v=h(m,g,P(P({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!i||"loading"===r.name),n),b=s;void 0===b&&l&&(b=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,x=Be(Fa(c),2),w=x[0],C=x[1];return o.createElement("span",p({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:v}),o.createElement(Wa,{icon:r,primaryColor:w,secondaryColor:C,style:y}))}));Ua.displayName="AntdIcon",Ua.getTwoToneColor=function(){var e=Wa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ua.setTwoToneColor=Xa;var Ya={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"},Ga=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:Ya}))},Ka=o.forwardRef(Ga);"production"!==process.env.NODE_ENV&&(Ka.displayName="CloseCircleFilled");var Za={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"},Qa=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:Za}))},Ja=o.forwardRef(Qa);"production"!==process.env.NODE_ENV&&(Ja.displayName="CloseOutlined");var es="".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 ts(e,t){return 0===e.indexOf(t)}function ns(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}:R({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||ts(n,"aria-"))||t.data&&ts(n,"data-")||t.attr&&es.includes(n))&&(o[n]=e[n])})),o}function os(t){return t&&e.isValidElement(t)&&t.type===e.Fragment}const rs=(t,n,o)=>e.isValidElement(t)?e.cloneElement(t,"function"==typeof o?o(t.props||{}):o):n;function is(e,t){return rs(e,e,t)}const as=e=>{const[,,,,t]=xi();return t?`${e}-css-var`:""};var ss={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>=ss.F1&&t<=ss.F12)return!1;switch(t){case ss.ALT:case ss.CAPS_LOCK:case ss.CONTEXT_MENU:case ss.CTRL:case ss.DOWN:case ss.END:case ss.ESC:case ss.HOME:case ss.INSERT:case ss.LEFT:case ss.MAC_FF_META:case ss.META:case ss.NUMLOCK:case ss.NUM_CENTER:case ss.PAGE_DOWN:case ss.PAGE_UP:case ss.PAUSE:case ss.PRINT_SCREEN:case ss.RIGHT:case ss.SHIFT:case ss.UP:case ss.WIN_KEY:case ss.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ss.ZERO&&e<=ss.NINE)return!0;if(e>=ss.NUM_ZERO&&e<=ss.NUM_MULTIPLY)return!0;if(e>=ss.A&&e<=ss.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ss.SPACE:case ss.QUESTION_MARK:case ss.NUM_PLUS:case ss.NUM_MINUS:case ss.NUM_PERIOD:case ss.NUM_DIVISION:case ss.SEMICOLON:case ss.DASH:case ss.EQUALS:case ss.COMMA:case ss.PERIOD:case ss.SLASH:case ss.APOSTROPHE:case ss.SINGLE_QUOTE:case ss.OPEN_SQUARE_BRACKET:case ss.BACKSLASH:case ss.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ls={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"},cs=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:ls}))},us=o.forwardRef(cs);"production"!==process.env.NODE_ENV&&(us.displayName="LoadingOutlined");const ds=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(ds.displayName="zIndexContext");const fs=100,hs={Modal:fs,Drawer:fs,Popover:fs,Popconfirm:fs,Tooltip:fs,Tour:fs},ps={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function gs(t,n){const[,o]=xi(),r=e.useContext(ds),i=function(e){return e in hs}(t);let a;if(void 0!==n)a=[n,n];else{let e=null!=r?r:0;e+=i?(r?0:o.zIndexPopupBase)+hs[t]:ps[t],a=[void 0===r?n:e,e]}if("production"!==process.env.NODE_ENV){const e=ho(t),r=o.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&e(void 0!==n||i<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function ms(){ms=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 P(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(I([])));C&&C!==n&&o.call(C,a)&&(x=C);var E=y.prototype=v.prototype=Object.create(x);function S(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"==M(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var 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(M(t)+" is not iterable")}return b.prototype=y,r(E,"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(E),e},t.awrap=function(e){return{__await:e}},S(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()}))},S(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"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=I,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!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),N(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;N(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:I(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function vs(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 bs(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){vs(i,o,r,a,s,"next",e)}function s(e){vs(i,o,r,a,s,"throw",e)}a(void 0)}))}}var ys,xs=R({},r),ws=xs.version,Cs=xs.render,Es=xs.unmountComponentAtNode;try{Number((ws||"").split(".")[0])>=18&&(ys=xs.createRoot)}catch(e){}function Ss(e){var t=xs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===M(t)&&(t.usingClientEntryPoint=e)}var ks="__rc_react_root__";function Os(e,t){ys?function(e,t){Ss(!0);var n=t[ks]||ys(t);Ss(!1),n.render(e),t[ks]=n}(e,t):function(e,t){Cs(e,t)}(e,t)}function _s(e){return $s.apply(this,arguments)}function $s(){return($s=bs(ms().mark((function e(t){return ms().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[ks])||void 0===e||e.unmount(),delete t[ks]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ms(e){Es(e)}function Ns(){return(Ns=bs(ms().mark((function e(t){return ms().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===ys){e.next=2;break}return e.abrupt("return",_s(t));case 2:Ms(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Ps=()=>({height:0,opacity:0}),Is=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Rs=e=>({height:e?e.offsetHeight:0}),Ts=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,js=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ir}-motion-collapse`,onAppearStart:Ps,onEnterStart:Ps,onAppearActive:Is,onEnterActive:Is,onLeaveStart:Rs,onLeaveActive:Ps,onAppearEnd:Ts,onEnterEnd:Ts,onLeaveEnd:Ts,motionDeadline:500}},As=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var Ds=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 Ls=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 zs=Mi("Wave",(e=>[Ls(e)]));const Bs=`${Ir}-wave-target`;function Fs(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 Hs(e){return Number.isNaN(e)?0:e}const Vs=e=>{const{className:t,target:n,component:r}=e,i=o.useRef(null),[a,s]=o.useState(null),[l,c]=o.useState([]),[u,d]=o.useState(0),[f,p]=o.useState(0),[g,m]=o.useState(0),[v,b]=o.useState(0),[y,x]=o.useState(!1),w={left:u,top:f,width:g,height:v,borderRadius:l.map((e=>`${e}px`)).join(" ")};function C(){const e=getComputedStyle(n);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return Fs(t)?t:Fs(n)?n:Fs(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;d(t?n.offsetLeft:Hs(-parseFloat(o))),p(t?n.offsetTop:Hs(-parseFloat(r))),m(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>Hs(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),o.useEffect((()=>{if(n){const e=De((()=>{C(),x(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(C),t.observe(n)),()=>{De.cancel(e),null==t||t.disconnect()}}}),[]),!y)return null;const E=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(Bs));return o.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 Ns.apply(this,arguments)})(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:r}=e;return o.createElement("div",{ref:L(i,n),className:h(t,r,{"wave-quick":E}),style:w})}))},Ws=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),Os(o.createElement(Vs,Object.assign({},t,{target:e})),i)},Xs=(e,t,n)=>{const{wave:r}=o.useContext(jr),[,i,a]=xi(),s=Gr((o=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${Bs}`)||s,{showEffect:c}=r||{};(c||Ws)(l,{className:t,token:i,component:n,event:o,hashId:a})})),l=o.useRef();return e=>{De.cancel(l.current),l.current=De((()=>{s(e)}))}},qs=t=>{const{children:n,disabled:o,component:r}=t,{getPrefixCls:i}=e.useContext(jr),a=e.useRef(null),s=i("wave"),[,l]=zs(s),c=Xs(a,h(s,l),r);if(e.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!Ds(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||c(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),!e.isValidElement(n))return null!=n?n:null;return is(n,{ref:B(n)?L(n.ref,a):a})};"production"!==process.env.NODE_ENV&&(qs.displayName="Wave");const Us=t=>{const n=e.useContext(Br);return e.useMemo((()=>t?"string"==typeof t?null!=t?t:n:t instanceof Function?t(n):n:n),[t,n])},Ys=o.createContext(null),Gs=(e,t)=>{const n=o.useContext(Ys),r=o.useMemo((()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,a="vertical"===o?"-vertical-":"-";return h(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:r,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},Ks=e=>{let{children:t}=e;return o.createElement(Ys.Provider,{value:null},t)};var Zs=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 Qs=o.createContext(void 0),Js=/^[\u4e00-\u9fa5]{2}$/,el=Js.test.bind(Js);function tl(e){return"string"==typeof e}function nl(e){return"text"===e||"link"===e}function ol(t,n){let o=!1;const r=[];return e.Children.forEach(t,(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})),e.Children.map(r,(t=>function(t,n){if(null==t)return;const o=n?" ":"";return"string"!=typeof t&&"number"!=typeof t&&tl(t.type)&&el(t.props.children)?is(t,{children:t.props.children.split("").join(o)}):tl(t)?el(t)?e.createElement("span",null,t.split("").join(o)):e.createElement("span",null,t):os(t)?e.createElement("span",null,t):t}(t,n)))}const rl=e.forwardRef(((t,n)=>{const{className:o,style:r,children:i,prefixCls:a}=t,s=h(`${a}-icon`,o);return e.createElement("span",{ref:n,className:s,style:r},i)})),il=e.forwardRef(((t,n)=>{const{prefixCls:o,className:r,style:i,iconClassName:a}=t,s=h(`${o}-loading-icon`,r);return e.createElement(rl,{prefixCls:o,className:s,style:i,ref:n},e.createElement(us,{className:a}))})),al=()=>({width:0,opacity:0,transform:"scale(0)"}),sl=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ll=t=>{const{prefixCls:n,loading:o,existIcon:r,className:i,style:a}=t,s=!!o;return r?e.createElement(il,{prefixCls:n,className:i,style:a}):e.createElement(ma,{visible:s,motionName:`${n}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:al,onAppearActive:sl,onEnterStart:al,onEnterActive:sl,onLeaveStart:sl,onLeaveActive:al},((t,o)=>{let{className:r,style:s}=t;return e.createElement(il,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),s),ref:o,iconClassName:r})}))},cl=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ul=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}},cl(`${t}-primary`,r),cl(`${t}-danger`,i)]}},dl=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return ni(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},fl=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:Er(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Er(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Er(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)}},hl=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:`${Ct(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({},Oi(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}}),gl=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ml=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),vl=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),bl=(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}})}),yl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},vl(e))}),xl=e=>Object.assign({},yl(e)),wl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Cl=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xl(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})),bl(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})),bl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),yl(e))}),El=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xl(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})),bl(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})),bl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yl(e))}),Sl=e=>Object.assign(Object.assign({},Cl(e)),{borderStyle:"dashed"}),kl=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},pl(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),wl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},pl(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),wl(e))}),Ol=e=>Object.assign(Object.assign(Object.assign({},pl(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),wl(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},wl(e)),pl(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),_l=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Cl(e),[`${t}-primary`]:El(e),[`${t}-dashed`]:Sl(e),[`${t}-link`]:kl(e),[`${t}-text`]:Ol(e),[`${t}-ghost`]:bl(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},$l=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:`${Ct(c)} ${Ct(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}`]:gl(e)},{[`${n}${n}-round${t}`]:ml(e)}]},Ml=e=>{const t=ni(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return $l(t,e.componentCls)},Nl=e=>{const t=ni(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 $l(t,`${e.componentCls}-sm`)},Pl=e=>{const t=ni(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return $l(t,`${e.componentCls}-lg`)},Il=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Rl=$i("Button",(e=>{const t=dl(e);return[hl(t),Ml(t),Nl(t),Pl(t),Il(t),_l(t),ul(t)]}),fl,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Tl(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 jl(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 Al(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({},Tl(e,o,t)),jl(n,o,t))}}function Dl(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 Ll(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Dl(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 zl=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% + ${Ct(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% + ${Ct(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var Bl=Ni(["Button","compact"],(e=>{const t=dl(e);return[Al(t),Ll(t),zl(t)]}),fl),Fl=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 Hl=e.forwardRef(((t,n)=>{var o,r,i;const{loading:a=!1,prefixCls:s,type:l,danger:c=!1,shape:u="default",size:d,styles:f,disabled:p,className:g,rootClassName:m,children:v,icon:b,iconPosition:y="start",ghost:x=!1,block:w=!1,htmlType:C="button",classNames:E,style:S={},autoInsertSpace:k}=t,O=Fl(t,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),_=l||"default",{getPrefixCls:$,direction:M,button:N}=e.useContext(jr),P=null===(o=null!=k?k:null==N?void 0:N.autoInsertSpace)||void 0===o||o,I=$("btn",s),[R,T,j]=Rl(I),A=e.useContext(Lr),D=null!=p?p:A,z=e.useContext(Qs),B=e.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[F,H]=e.useState(B.loading),[V,W]=e.useState(!1),X=L(n,e.createRef()),q=1===e.Children.count(v)&&!b&&!nl(_);e.useEffect((()=>{let e=null;return B.delay>0?e=setTimeout((()=>{e=null,H(!0)}),B.delay):H(B.loading),function(){e&&(clearTimeout(e),e=null)}}),[B]),e.useEffect((()=>{if(!X||!X.current||!P)return;const e=X.current.textContent;q&&el(e)?V||W(!0):V&&W(!1)}),[X]);const U=e=>{const{onClick:n}=t;F||D?e.preventDefault():null==n||n(e)};if("production"!==process.env.NODE_ENV){const e=ho("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof b&&b.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(x&&nl(_)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:Y,compactItemClassnames:G}=Gs(I,M),K={large:"lg",small:"sm",middle:void 0},Z=Us((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:Y)&&void 0!==t?t:z)&&void 0!==n?n:e})),Q=Z&&K[Z]||"",J=F?"loading":b,ee=_e(O,["navigate"]),te=h(I,T,j,{[`${I}-${u}`]:"default"!==u&&u,[`${I}-${_}`]:_,[`${I}-${Q}`]:Q,[`${I}-icon-only`]:!v&&0!==v&&!!J,[`${I}-background-ghost`]:x&&!nl(_),[`${I}-loading`]:F,[`${I}-two-chinese-chars`]:V&&P&&!F,[`${I}-block`]:w,[`${I}-dangerous`]:c,[`${I}-rtl`]:"rtl"===M,[`${I}-icon-end`]:"end"===y},G,g,m,null==N?void 0:N.className),ne=Object.assign(Object.assign({},null==N?void 0:N.style),S),oe=h(null==E?void 0:E.icon,null===(r=null==N?void 0:N.classNames)||void 0===r?void 0:r.icon),re=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(i=null==N?void 0:N.styles)||void 0===i?void 0:i.icon)||{}),ie=b&&!F?e.createElement(rl,{prefixCls:I,className:oe,style:re},b):e.createElement(ll,{existIcon:!!b,prefixCls:I,loading:F}),ae=v||0===v?ol(v,q&&P):null;if(void 0!==ee.href)return R(e.createElement("a",Object.assign({},ee,{className:h(te,{[`${I}-disabled`]:D}),href:D?void 0:ee.href,style:ne,onClick:U,ref:X,tabIndex:D?-1:0}),ie,ae));let se=e.createElement("button",Object.assign({},O,{type:C,className:te,style:ne,onClick:U,disabled:D,ref:X}),ie,ae,!!G&&e.createElement(Bl,{key:"compact",prefixCls:I}));return nl(_)||(se=e.createElement(qs,{component:"Button",disabled:F},se)),R(se)})),Vl=Hl;Vl.Group=e=>{const{getPrefixCls:t,direction:n}=o.useContext(jr),{prefixCls:r,size:i,className:a}=e,s=Zs(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=xi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=ho("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=h(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},a,c);return o.createElement(Qs.Provider,{value:i},o.createElement("div",Object.assign({},s,{className:d})))},Vl.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Vl.displayName="Button");var Wl=o.createContext(null),Xl=[];function ql(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,";"):"";et("\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),Je(t),{width:f,height:h}}(e):{width:0,height:0}}var Ul="rc-util-locker-".concat(Date.now()),Yl=0;function Gl(e){var t=!!e,n=Be(o.useState((function(){return Yl+=1,"".concat(Ul,"_").concat(Yl)})),1)[0];$t((function(){if(t){var e=ql(document.body).width,o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;et("\nhtml body {\n overflow-y: hidden;\n ".concat(o?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Je(n);return function(){Je(n)}}),[t,n])}var Kl=function(e){return!1!==e&&(He()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Zl=o.forwardRef((function(e,n){var r=e.open,i=e.autoLock,a=e.getContainer,s=e.debug,l=e.autoDestroy,c=void 0===l||l,u=e.children,d=Be(o.useState(r),2),f=d[0],h=d[1],p=f||r;"production"!==process.env.NODE_ENV&&$(He()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),o.useEffect((function(){(c||r)&&h(r)}),[r,c]);var g=Be(o.useState((function(){return Kl(a)})),2),m=g[0],v=g[1];o.useEffect((function(){var e=Kl(a);v(null!=e?e:null)}));var b=function(e,t){var n=Be(o.useState((function(){if(!He())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e})),1)[0],r=o.useRef(!1),i=o.useContext(Wl),a=Be(o.useState(Xl),2),s=a[0],l=a[1],c=i||(r.current?void 0:function(e){l((function(t){return[e].concat(Pe(t))}))});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return $t((function(){return e?i?i(u):u():d(),d}),[e]),$t((function(){s.length&&(s.forEach((function(e){return e()})),l(Xl))}),[s]),[n,c]}(p&&!m,s),y=Be(b,2),x=y[0],w=y[1],C=null!=m?m:x;Gl(i&&r&&He()&&(C===x||C===document.body));var E=null;u&&B(u)&&n&&(E=u.ref);var S=z(E,n);if(!p||!He()||void 0===m)return null;var k=!1===C||!1,O=u;return n&&(O=o.cloneElement(u,{ref:S})),o.createElement(Wl.Provider,{value:w},k?O:t.createPortal(O,C))}));"production"!==process.env.NODE_ENV&&(Zl.displayName="Portal");var Ql=o.createContext({});var Jl=0,ec=R({},o).useId,tc=ec?function(e){var t=ec();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=Be(o.useState("ssr-id"),2),n=t[0],r=t[1];return o.useEffect((function(){var e=Jl;Jl+=1,r("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)};function nc(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function oc(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 rc=o.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),ic={width:0,height:0,overflow:"hidden",outline:"none"},ac={outline:"none"},sc=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.className,i=t.style,a=t.title,s=t.ariaId,l=t.footer,c=t.closable,u=t.closeIcon,d=t.onClose,f=t.children,g=t.bodyStyle,m=t.bodyProps,v=t.modalRender,b=t.onMouseDown,y=t.onMouseUp,x=t.holderRef,w=t.visible,C=t.forceRender,E=t.width,S=t.height,k=t.classNames,O=t.styles,_=e.useContext(Ql).panel,$=z(x,_),N=e.useRef(),P=e.useRef(),I=e.useRef();e.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=I.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===P.current?N.current.focus({preventScroll:!0}):e||t!==N.current||P.current.focus({preventScroll:!0})}}}));var T={};void 0!==E&&(T.width=E),void 0!==S&&(T.height=S);var j=l?e.createElement("div",{className:h("".concat(o,"-footer"),null==k?void 0:k.footer),style:R({},null==O?void 0:O.footer)},l):null,A=a?e.createElement("div",{className:h("".concat(o,"-header"),null==k?void 0:k.header),style:R({},null==O?void 0:O.header)},e.createElement("div",{className:"".concat(o,"-title"),id:s},a)):null,D=e.useMemo((function(){return"object"===M(c)&&null!==c?c:c?{closeIcon:null!=u?u:e.createElement("span",{className:"".concat(o,"-close-x")})}:{}}),[c,u,o]),L=ns(D,!0),B="object"===M(c)&&c.disabled,F=c?e.createElement("button",p({type:"button",onClick:d,"aria-label":"Close"},L,{className:"".concat(o,"-close"),disabled:B}),D.closeIcon):null,H=e.createElement("div",{className:h("".concat(o,"-content"),null==k?void 0:k.content),style:null==O?void 0:O.content},F,A,e.createElement("div",p({className:h("".concat(o,"-body"),null==k?void 0:k.body),style:R(R({},g),null==O?void 0:O.body)},m),f),j);return e.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?s:null,"aria-modal":"true",ref:$,style:R(R({},i),T),className:h(o,r),onMouseDown:b,onMouseUp:y},e.createElement("div",{tabIndex:0,ref:N,style:ic,"aria-hidden":"true"}),e.createElement("div",{ref:I,tabIndex:-1,style:ac},e.createElement(rc,{shouldUpdate:w||C},v?v(H):H)),e.createElement("div",{tabIndex:0,ref:P,style:ic,"aria-hidden":"true"}))}));"production"!==process.env.NODE_ENV&&(sc.displayName="Panel");var lc=o.forwardRef((function(t,n){var r=t.prefixCls,i=t.title,a=t.style,s=t.className,l=t.visible,c=t.forceRender,u=t.destroyOnClose,d=t.motionName,f=t.ariaId,g=t.onVisibleChanged,m=t.mousePosition,v=e.useRef(),b=Be(o.useState(),2),y=b[0],x=b[1],w={};function C(){var e,t,n,o,r,i=(e=v.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow,n.left+=oc(r),n.top+=oc(r,!0),n);x(m&&(m.x||m.y)?"".concat(m.x-i.left,"px ").concat(m.y-i.top,"px"):"")}return y&&(w.transformOrigin=y),o.createElement(ma,{visible:l,onVisibleChanged:g,onAppearPrepare:C,onEnterPrepare:C,forceRender:c,motionName:d,removeOnLeave:u,ref:v},(function(e,l){var c=e.className,u=e.style;return o.createElement(sc,p({},t,{ref:n,title:i,ariaId:f,prefixCls:r,holderRef:l,style:R(R(R({},u),a),w),className:h(s,c)}))}))}));lc.displayName="Content";var cc=function(e){var t=e.prefixCls,n=e.style,r=e.visible,i=e.maskProps,a=e.motionName,s=e.className;return o.createElement(ma,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var a=e.className,l=e.style;return o.createElement("div",p({ref:r,style:R(R({},l),n),className:h("".concat(t,"-mask"),a,s)},i))}))},uc=function(t){var n=t.prefixCls,r=void 0===n?"rc-dialog":n,i=t.zIndex,a=t.visible,s=void 0!==a&&a,l=t.keyboard,c=void 0===l||l,u=t.focusTriggerAfterClose,d=void 0===u||u,f=t.wrapStyle,g=t.wrapClassName,m=t.wrapProps,v=t.onClose,b=t.afterOpenChange,y=t.afterClose,x=t.transitionName,w=t.animation,C=t.closable,E=void 0===C||C,k=t.mask,O=void 0===k||k,_=t.maskTransitionName,$=t.maskAnimation,M=t.maskClosable,N=void 0===M||M,P=t.maskStyle,I=t.maskProps,T=t.rootClassName,j=t.classNames,A=t.styles;"production"!==process.env.NODE_ENV&&(["wrapStyle","bodyStyle","maskStyle"].forEach((function(e){S(!(e in t),"".concat(e," is deprecated, please use styles instead."))})),"wrapClassName"in t&&S(!1,"wrapClassName is deprecated, please use classNames instead."));var D=e.useRef(),L=e.useRef(),z=e.useRef(),B=Be(o.useState(s),2),F=B[0],H=B[1],V=tc();function W(e){null==v||v(e)}var X=e.useRef(!1),q=e.useRef(),U=null;N&&(U=function(e){X.current?X.current=!1:L.current===e.target&&W(e)}),e.useEffect((function(){s&&(H(!0),Ve(L.current,document.activeElement)||(D.current=document.activeElement))}),[s]),e.useEffect((function(){return function(){clearTimeout(q.current)}}),[]);var Y=R(R(R({zIndex:i},f),null==A?void 0:A.wrapper),{},{display:F?null:"none"});return o.createElement("div",p({className:h("".concat(r,"-root"),T)},ns(t,{data:!0})),o.createElement(cc,{prefixCls:r,visible:O&&s,motionName:nc(r,_,$),style:R(R({zIndex:i},P),null==A?void 0:A.mask),maskProps:I,className:null==j?void 0:j.mask}),o.createElement("div",p({tabIndex:-1,onKeyDown:function(e){if(c&&e.keyCode===ss.ESC)return e.stopPropagation(),void W(e);s&&e.keyCode===ss.TAB&&z.current.changeActive(!e.shiftKey)},className:h("".concat(r,"-wrap"),g,null==j?void 0:j.wrapper),ref:L,onClick:U,style:Y},m),o.createElement(lc,p({},t,{onMouseDown:function(){clearTimeout(q.current),X.current=!0},onMouseUp:function(){q.current=setTimeout((function(){X.current=!1}))},ref:z,closable:E,ariaId:V,prefixCls:r,visible:s&&F,onClose:W,onVisibleChanged:function(e){if(e)Ve(L.current,document.activeElement)||null===(t=z.current)||void 0===t||t.focus();else{if(H(!1),O&&D.current&&d){try{D.current.focus({preventScroll:!0})}catch(e){}D.current=null}F&&(null==y||y())}var t;null==b||b(e)},motionName:nc(r,x,w)}))))},dc=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,s=e.afterClose,l=e.panelRef,c=Be(o.useState(t),2),u=c[0],d=c[1],f=o.useMemo((function(){return{panel:l}}),[l]);return o.useEffect((function(){t&&d(!0)}),[t]),r||!a||u?o.createElement(Ql.Provider,{value:f},o.createElement(Zl,{open:t||r||u,autoDestroy:!1,getContainer:n,autoLock:t||u},o.createElement(uc,p({},e,{destroyOnClose:a,afterClose:function(){null==s||s(),d(!1)}})))):null};dc.displayName="Dialog";var fc="RC_FORM_INTERNAL_HOOKS",hc=function(){$(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},pc=o.createContext({getFieldValue:hc,getFieldsValue:hc,getFieldError:hc,getFieldWarning:hc,getFieldsError:hc,isFieldsTouched:hc,isFieldTouched:hc,isFieldValidating:hc,isFieldsValidating:hc,resetFields:hc,setFields:hc,setFieldValue:hc,setFieldsValue:hc,validateFields:hc,submit:hc,getInternalHooks:function(){return hc(),{dispatch:hc,initEntityValue:hc,registerField:hc,useSubscribe:hc,setInitialValues:hc,destroyForm:hc,setCallbacks:hc,registerWatch:hc,getFields:hc,setValidateMessages:hc,setPreserve:hc,getInitialValue:hc}}}),gc=o.createContext(null);function mc(e){return null==e?[]:Array.isArray(e)?e:[e]}function vc(){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 bc=vc();function yc(e){var t="function"==typeof Map?new Map:void 0;return yc=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(ye())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&me(r,n.prototype),r}(e,arguments,be(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),me(n,e)},yc(e)}var xc=/%[sdj%]/g,wc=function(){};function Cc(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 Ec(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(xc,(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 Sc(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 kc(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&&(wc=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 Oc=function(){ve(t,yc(Error));var e=we(t);function t(n,o){var r;return he(this,t),P(xe(r=e.call(this,"Async Validation Error")),"errors",void 0),P(xe(r),"fields",void 0),r.errors=n,r.fields=o,r}return ge(t)}();function _c(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,Pe(e[n]||[]))})),t}(e);kc(a,n,(function(e){return o(e),e.length?i(new Oc(e,Cc(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 Oc(u,Cc(u))):t(r)};s.length||(o(u),t(r)),s.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?kc(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,Pe(e||[])),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function $c(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 Mc(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===M(o)&&"object"===M(e[n])?e[n]=R(R({},e[n]),o):e[n]=o}return e}var Nc,Pc="enum",Ic=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!Sc(t,i||e.type)||o.push(Ec(r.messages.required,e.fullField))},Rc=/^(([^<>()\[\]\\.,;:\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,}))$/,Tc=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,jc={integer:function(e){return jc.number(e)&&parseInt(e,10)===e},float:function(e){return jc.number(e)&&!jc.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"===M(e)&&!jc.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Rc)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Nc)return Nc;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 Nc=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Tc)}},Ac={required:Ic,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Ec(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)Ic(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?jc[i](t)||o.push(Ec(r.messages.types[i],e.fullField,e.type)):i&&M(t)!==e.type&&o.push(Ec(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(Ec(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?o.push(Ec(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?o.push(Ec(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&o.push(Ec(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Pc]=Array.isArray(e[Pc])?e[Pc]:[],-1===e[Pc].indexOf(t)&&o.push(Ec(r.messages[Pc],e.fullField,e[Pc].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(Ec(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Ec(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Dc=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t,i)&&!e.required)return n();Ac.required(e,t,o,a,r,i),Sc(t,i)||Ac.type(e,t,o,a,r)}n(a)},Lc={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Sc(t,"string")&&!e.required)return n();Ac.required(e,t,o,i,r,"string"),Sc(t,"string")||(Ac.type(e,t,o,i,r),Ac.range(e,t,o,i,r),Ac.pattern(e,t,o,i,r),!0===e.whitespace&&Ac.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(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&Ac.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),Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&(Ac.type(e,t,o,i,r),Ac.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(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&Ac.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(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),Sc(t)||Ac.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(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&(Ac.type(e,t,o,i,r),Ac.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(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&(Ac.type(e,t,o,i,r),Ac.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();Ac.required(e,t,o,i,r,"array"),null!=t&&(Ac.type(e,t,o,i,r),Ac.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(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&Ac.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(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r),void 0!==t&&Ac.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(Sc(t,"string")&&!e.required)return n();Ac.required(e,t,o,i,r),Sc(t,"string")||Ac.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(Sc(t,"date")&&!e.required)return n();var a;if(Ac.required(e,t,o,i,r),!Sc(t,"date"))a=t instanceof Date?t:new Date(t),Ac.type(e,a,o,i,r),a&&Ac.range(e,a.getTime(),o,i,r)}n(i)},url:Dc,hex:Dc,email:Dc,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":M(t);Ac.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(Sc(t)&&!e.required)return n();Ac.required(e,t,o,i,r)}n(i)}},zc=function(){function e(t){he(this,e),P(this,"rules",null),P(this,"_messages",bc),this.define(t)}return ge(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==M(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=Mc(vc(),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===bc&&(a=vc()),Mc(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=R({},o)),null!=(i=o[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":M(i)))),(a="function"==typeof a?{validator:a}:R({},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 _c(s,r,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==M(a.fields)&&"object"!==M(a.defaultField));function c(e,t){return R(R({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Pe(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($c(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($c(a,o)):r.error&&(d=[r.error(a,Ec(r.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=R(R({},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,Pe(d)),e&&e.length&&t.push.apply(t,Pe(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,Pe(t)):r.push(t);r.length?(a=Cc(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&&!Lc.hasOwnProperty(e.type))throw new Error(Ec("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]?Lc.required:Lc[this.getType(e)]||void 0}}]),e}();P(zc,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Lc[e]=t})),P(zc,"warning",wc),P(zc,"messages",bc),P(zc,"validators",Lc);var Bc="'${name}' is not a valid ${type}",Fc={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:Bc,method:Bc,array:Bc,object:Bc,number:Bc,date:Bc,boolean:Bc,integer:Bc,float:Bc,regexp:Bc,email:Bc,url:Bc,hex:Bc},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}"}},Hc=zc;function Vc(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 Wc="CODE_LOGIC_ERROR";function Xc(e,t,n,o,r){return qc.apply(this,arguments)}function qc(){return qc=bs(ms().mark((function e(t,n,r,i,a){var s,l,c,u,d,f,h,p,g;return ms().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(s=R({},r)).ruleIndex,Hc.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(Wc)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new Hc(P({},t,[s])),d=so(Fc,i.validateMessages),u.messages(d),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate(P({},t,n),R({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map((function(e,t){var n=e.message,r=n===Wc?d.default:n;return o.isValidElement(r)?o.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(f.length||!c){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Xc("".concat(t,".").concat(n),e,c,i,a)})));case 21:return h=e.sent,e.abrupt("return",h.reduce((function(e,t){return[].concat(Pe(e),Pe(t))}),[]));case 23:return p=R(R({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=f.map((function(e){return"string"==typeof e?Vc(e,p):e})),e.abrupt("return",g);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),qc.apply(this,arguments)}function Uc(e,t,n,o,r,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,o=R(R({},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(){$(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));$(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=bs(ms().mark((function e(n,r){var a,c,u;return ms().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,Xc(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 Xc(s,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return Gc.apply(this,arguments)}(c):function(e){return Yc.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Yc(){return(Yc=bs(ms().mark((function e(t){return ms().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,Pe(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gc(){return Gc=bs(ms().mark((function e(t){var n;return ms().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)}))),Gc.apply(this,arguments)}function Kc(e){return mc(e)}function Zc(e,t){var n={};return t.forEach((function(t){var o=no(e,t);n=ro(n,t,o)})),n}function Qc(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Jc(t,e,n)}))}function Jc(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 eu(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===M(t.target)&&e in t.target?t.target[e]:t}function tu(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(Pe(e.slice(0,n)),[r],Pe(e.slice(n,t)),Pe(e.slice(t+1,o))):i<0?[].concat(Pe(e.slice(0,t)),Pe(e.slice(t+1,n+1)),[r],Pe(e.slice(n+1,o))):e}var nu=["name"],ou=[];function ru(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var iu=function(){ve(t,o.Component);var e=we(t);function t(n){var r;(he(this,t),P(xe(r=e.call(this,n)),"state",{resetCount:0}),P(xe(r),"cancelRegisterFunc",null),P(xe(r),"mounted",!1),P(xe(r),"touched",!1),P(xe(r),"dirty",!1),P(xe(r),"validatePromise",void 0),P(xe(r),"prevValidating",void 0),P(xe(r),"errors",ou),P(xe(r),"warnings",ou),P(xe(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Kc(o)),r.cancelRegisterFunc=null})),P(xe(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Pe(void 0===n?[]:n),Pe(t)):[]})),P(xe(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}))})),P(xe(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),P(xe(r),"metaCache",null),P(xe(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=R(R({},r.getMeta()),{},{destroy:e});nt(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),P(xe(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&&Qc(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||nt(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=ou,r.warnings=ou,r.triggerMetaEvent()),n.type){case"reset":if(!t||h)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=ou,r.warnings=ou,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&ru(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||ou),"warnings"in p&&(r.warnings=p.warnings||ou),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in p&&Qc(t,u,!0))return void r.reRender();if(i&&!u.length&&ru(i,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Kc).some((function(e){return Qc(n.relatedFields,e)})))return void r.reRender();break;default:if(h||(!s.length||u.length||i)&&ru(i,e,c,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),P(xe(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(bs(ms().mark((function o(){var a,s,c,u,d,f,h;return ms().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||mc(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=Uc(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ou;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?ou:r;t?o.push.apply(o,Pe(i)):n.push.apply(n,Pe(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=ou,r.warnings=ou,r.triggerMetaEvent(),r.reRender()),l})),P(xe(r),"isFieldValidating",(function(){return!!r.validatePromise})),P(xe(r),"isFieldTouched",(function(){return r.touched})),P(xe(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(fc).getInitialValue)(r.getNamePath())})),P(xe(r),"getErrors",(function(){return r.errors})),P(xe(r),"getWarnings",(function(){return r.warnings})),P(xe(r),"isListField",(function(){return r.props.isListField})),P(xe(r),"isList",(function(){return r.props.isList})),P(xe(r),"isPreserve",(function(){return r.props.preserve})),P(xe(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}})),P(xe(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return R(R({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=w(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),P(xe(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return no(e||t(!0),n)})),P(xe(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(fc).dispatch,m=r.getValue(),v=c||function(e){return P({},l,e)},b=e[o],y=void 0!==n?v(m):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){$("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=R(R({},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):eu.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)},mc(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}})),x})),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(fc).initEntityValue)(xe(r));return r}return ge(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(fc).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 e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),i=r.child;return r.isFunction?e=i:o.isValidElement(i)?e=o.cloneElement(i,this.getControlled(i.props)):($(!i,"`children` of Field is not validate ReactElement."),e=i),o.createElement(o.Fragment,{key:t},e)}}]),t}();function au(e){var t=e.name,n=tt(e,nu),r=o.useContext(pc),i=o.useContext(gc),a=void 0!==t?Kc(t):void 0,s="keep";return n.isListField||(s="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===n.preserve&&n.isListField&&a.length<=1&&$(!1,"`preserve` should not apply on Form.List fields."),o.createElement(iu,p({key:s,name:a,isListField:!!i},n,{fieldContext:r}))}P(iu,"contextType",pc),P(iu,"defaultProps",{trigger:"onChange",valuePropName:"value"});var su="__@field_split__";function lu(e){return e.map((function(e){return"".concat(M(e),":").concat(e)})).join(su)}var cu=function(){function e(){he(this,e),P(this,"kvs",new Map)}return ge(e,[{key:"set",value:function(e,t){this.kvs.set(lu(e),t)}},{key:"get",value:function(e){return this.kvs.get(lu(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(lu(e))}},{key:"map",value:function(e){return Pe(this.kvs.entries()).map((function(t){var n=Be(t,2),o=n[0],r=n[1],i=o.split(su);return e({key:i.map((function(e){var t=Be(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}(),uu=["name"],du=ge((function e(t){var n=this;he(this,e),P(this,"formHooked",!1),P(this,"forceRootUpdate",void 0),P(this,"subscribable",!0),P(this,"store",{}),P(this,"fieldEntities",[]),P(this,"initialValues",{}),P(this,"callbacks",{}),P(this,"validateMessages",null),P(this,"preserve",null),P(this,"lastValidatePromise",null),P(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}})),P(this,"getInternalHooks",(function(e){return e===fc?(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}):($(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),P(this,"useSubscribe",(function(e){n.subscribable=e})),P(this,"prevWithoutPreserves",null),P(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=so(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=ro(r,n,no(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),P(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new cu;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),P(this,"getInitialValue",(function(e){var t=no(n.initialValues,e);return e.length?so(t):t})),P(this,"setCallbacks",(function(e){n.callbacks=e})),P(this,"setValidateMessages",(function(e){n.validateMessages=e})),P(this,"setPreserve",(function(e){n.preserve=e})),P(this,"watchList",[]),P(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),P(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)}))}})),P(this,"timeoutId",null),P(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||$(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),P(this,"updateStore",(function(e){n.store=e})),P(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),P(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new cu;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),P(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Kc(e);return t.get(n)||{INVALIDATE_NAME_PATH:Kc(e)}}))})),P(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===M(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)})),Zc(n.store,s.map(Kc))})),P(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Kc(e);return no(n.store,t)})),P(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:Kc(e[n]),errors:[],warnings:[]}}))})),P(this,"getFieldError",(function(e){n.warningUnhooked();var t=Kc(e);return n.getFieldsError([t])[0].errors})),P(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Kc(e);return n.getFieldsError([t])[0].warnings})),P(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(Kc),s=!1):(r=null,s=i):(r=i.map(Kc),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 cu;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(Pe(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)})),P(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),P(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(Kc);return t.some((function(e){var t=e.getNamePath();return Qc(o,t)&&e.isFieldValidating()}))})),P(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),P(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new cu,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,Pe(Pe(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))$(!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)$(!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(ro(n.store,r,Pe(i)[0].value))}}}}))})),P(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(so(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(Kc);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(ro(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),P(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=tt(e,uu),a=Kc(r);o.push(a),"value"in i&&n.updateStore(ro(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),P(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=R(R({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),P(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===no(n.store,o)&&n.updateStore(ro(n.store,o,t))}})),P(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),P(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!Jc(e.getNamePath(),t)}))){var s=n.store;n.updateStore(ro(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),P(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})}})),P(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=R(R({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),P(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(Pe(o))}),o})),P(this,"updateValue",(function(e,t){var o=Kc(e),r=n.store;n.updateStore(ro(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(Zc(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(Pe(i)))})),P(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=so(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),P(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),P(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new cu;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Kc(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})),P(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new cu;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 Qc(e,n)}));a.length&&o(a,r)}})),P(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(Kc):[],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||Qc(a,t,d)){var o=e.validateRules(R({validateMessages:R(R({},Fc),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,Pe(n)):o.push.apply(o,Pe(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})),P(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 fu(e){var t=o.useRef(),n=Be(o.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new du((function(){n({})}));t.current=r.getForm()}return[t.current]}var hu=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),pu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],gu=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,a=e.form,s=e.preserve,l=e.children,c=e.component,u=void 0===c?"form":c,d=e.validateMessages,f=e.validateTrigger,h=void 0===f?"onChange":f,g=e.onValuesChange,m=e.onFieldsChange,v=e.onFinish,b=e.onFinishFailed,y=e.clearOnDestroy,x=tt(e,pu),w=o.useRef(null),C=o.useContext(hu),E=Be(fu(a),1)[0],S=E.getInternalHooks(fc),k=S.useSubscribe,O=S.setInitialValues,_=S.setCallbacks,$=S.setValidateMessages,N=S.setPreserve,P=S.destroyForm;o.useImperativeHandle(t,(function(){return R(R({},E),{},{nativeElement:w.current})})),o.useEffect((function(){return C.registerForm(n,E),function(){C.unregisterForm(n)}}),[C,E,n]),$(R(R({},C.validateMessages),d)),_({onValuesChange:g,onFieldsChange:function(e){if(C.triggerFormChange(n,e),m){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];m.apply(void 0,[e].concat(o))}},onFinish:function(e){C.triggerFormFinish(n,e),v&&v(e)},onFinishFailed:b}),N(s);var I,T=o.useRef(null);O(r,!T.current),T.current||(T.current=!0),o.useEffect((function(){return function(){return P(y)}}),[]);var j="function"==typeof l;j?I=l(E.getFieldsValue(!0),E):I=l;k(!j);var A=o.useRef();o.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==M(e)||"object"!==M(t))return!1;var n=Object.keys(e),o=Object.keys(t);return Pe(new Set([].concat(n,o))).every((function(n){var o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r}))})(A.current||[],i||[])||E.setFields(i||[]),A.current=i}),[i,E]);var D=o.useMemo((function(){return R(R({},E),{},{validateTrigger:h})}),[E,h]),L=o.createElement(gc.Provider,{value:null},o.createElement(pc.Provider,{value:D},I));return!1===u?L:o.createElement(u,p({},x,{ref:w,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=x.onReset)||void 0===t||t.call(x,e)}}),L)};function mu(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var vu="production"!==process.env.NODE_ENV?function(t){var n=t.join("__RC_FIELD_FORM_SPLIT__");$(e.useRef(n).current===n,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var bu=o.forwardRef(gu);bu.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(hu),s=o.useRef({});return o.createElement(hu.Provider,{value:R(R({},a),{},{validateMessages:R(R({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(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=R(R({},s.current),{},P({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=R({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},bu.Field=au,bu.List=function(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,s=e.isListField,l=o.useContext(pc),c=o.useContext(gc),u=o.useRef({keys:[],id:0}).current,d=o.useMemo((function(){var e=Kc(l.prefixName)||[];return[].concat(Pe(e),Pe(Kc(t)))}),[l.prefixName,t]),f=o.useMemo((function(){return R(R({},l),{},{prefixName:d})}),[l,d]),h=o.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof r?($(!1,"Form.List only accepts function as children."),null):o.createElement(gc.Provider,{value:h},o.createElement(pc.Provider,{value:f},o.createElement(au,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,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(Pe(u.keys.slice(0,t)),[u.id],Pe(u.keys.slice(t))),i([].concat(Pe(n.slice(0,t)),[e],Pe(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&$(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Pe(u.keys),[u.id]),i([].concat(Pe(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=tu(u.keys,e,t),i(tu(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[],"production"!==process.env.NODE_ENV&&$(!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)}))))},bu.useForm=fu,bu.useWatch=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=n[0],i=n[1],a=void 0===i?{}:i,s=function(e){return e&&!!e._init}(a)?{form:a}:a,l=s.form,c=Be(e.useState(),2),u=c[0],d=c[1],f=e.useMemo((function(){return mu(u)}),[u]),h=e.useRef(f);h.current=f;var p=e.useContext(pc),g=l||p,m=g&&g._init;"production"!==process.env.NODE_ENV&&$(2===n.length&&!l||m,"useWatch requires a form instance since it can not auto detect from context.");var v=Kc(r),b=e.useRef(v);return b.current=v,vu(v),e.useEffect((function(){if(m){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(fc).registerWatch,n=function(e,t){var n=s.preserve?t:e;return"function"==typeof r?r(n):no(n,b.current)},o=t((function(e,t){var o=n(e,t),r=mu(o);h.current!==r&&(h.current=r,d(o))})),i=n(e(),e(!0));return u!==i&&d(i),o}}),[m]),u};const yu=o.createContext({});"production"!==process.env.NODE_ENV&&(yu.displayName="FormItemInputContext");const xu=t=>{let{children:n,status:r,override:i}=t;const a=e.useContext(yu),s=e.useMemo((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,i,a]);return o.createElement(yu.Provider,{value:s},n)},wu=e.createContext(void 0),Cu=t=>{const{space:n,form:o,children:r}=t;if(null==r)return null;let i=r;return o&&(i=e.createElement(xu,{override:!0,status:!0},i)),n&&(i=e.createElement(Ks,null,i)),i};var Eu=function(e){if(He()&&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 Su(e,t){return Array.isArray(e)||void 0===t?Eu(e):function(e,t){if(!Eu(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}const 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"}),_u=e=>({animationDuration:e,animationFillMode:"both"}),$u=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({},Ou(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},_u(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"}}},Mu=new Jn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Nu=new Jn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Pu=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[$u(o,Mu,Nu,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Iu={"slide-up":{inKeyframes:new Jn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Jn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-down":{inKeyframes:new Jn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),outKeyframes:new Jn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}})},"slide-left":{inKeyframes:new Jn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new Jn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new Jn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new Jn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},Ru=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Iu[t];return[$u(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}}]},Tu=new Jn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ju=new Jn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Au=new Jn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Du=new Jn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Lu=new Jn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zu=new Jn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Bu={zoom:{inKeyframes:Tu,outKeyframes:ju},"zoom-big":{inKeyframes:Au,outKeyframes:Du},"zoom-big-fast":{inKeyframes:Au,outKeyframes:Du},"zoom-left":{inKeyframes:new Jn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Jn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Jn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Jn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Lu,outKeyframes:zu},"zoom-down":{inKeyframes:new Jn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Jn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Fu=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Bu[t];return[$u(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 Hu(e){return{position:e,inset:0}}const Vu=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({},Hu("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Hu("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Pu(e)}]},Wu=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:`${Ct(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ei(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ct(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:Ct(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Oi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ct(e.borderRadiusLG)} ${Ct(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:`${Ct(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"}}}]},Xu=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}};$i("Modal",(e=>{const t=(e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return ni(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[Wu(t),Xu(t),Vu(t),Fu(t,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ct(e.paddingMD)} ${Ct(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ct(e.padding)} ${Ct(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ct(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ct(e.paddingXS)} ${Ct(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ct(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ct(e.borderRadiusLG)} ${Ct(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ct(2*e.padding)} ${Ct(2*e.padding)} ${Ct(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM})),{unitless:{titleLineHeight:!0}});var qu=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))},Uu=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Yu=void 0;function Gu(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,s=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,g=e.children,m=e.display,v=e.order,b=e.component,y=void 0===b?"div":b,x=tt(e,Uu),w=s&&!m;function C(e){c(u,e)}o.useEffect((function(){return function(){C(null)}}),[]);var E,S=a&&i!==Yu?a(i):g;r||(E={opacity:w?0:1,height:w?0:Yu,overflowY:w?"hidden":Yu,order:s?v:Yu,pointerEvents:w?"none":Yu,position:w?"absolute":Yu});var k={};w&&(k["aria-hidden"]=!0);var O=o.createElement(y,p({className:h(!r&&n,d),style:R(R({},E),f)},k,x,{ref:t}),S);return s&&(O=o.createElement(Oe,{onResize:function(e){C(e.offsetWidth)},disabled:l},O)),O}var Ku=o.forwardRef(Gu);function Zu(){var e=o.useRef(null);return function(n){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)De(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){t.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(n)}}function Qu(e,t){var n=Be(o.useState(t),2),r=n[0],i=n[1];return[r,Gr((function(t){e((function(){i(t)}))}))]}Ku.displayName="Item";var Ju=e.createContext(null),ed=["component"],td=["className"],nd=["className"],od=function(e,t){var n=o.useContext(Ju);if(!n){var r=e.component,i=void 0===r?"div":r,a=tt(e,ed);return o.createElement(i,p({},a,{ref:t}))}var s=n.className,l=tt(n,td),c=e.className,u=tt(e,nd);return o.createElement(Ju.Provider,{value:null},o.createElement(Ku,p({ref:t,className:h(s,c)},l,u)))},rd=o.forwardRef(od);rd.displayName="RawItem";var id=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ad="responsive",sd="invalidate";function ld(e){return"+ ".concat(e.length," ...")}function cd(t,n){var r=t.prefixCls,i=void 0===r?"rc-overflow":r,a=t.data,s=void 0===a?[]:a,l=t.renderItem,c=t.renderRawItem,u=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,g=t.ssr,m=t.style,v=t.className,b=t.maxCount,y=t.renderRest,x=t.renderRawRest,w=t.suffix,C=t.component,E=void 0===C?"div":C,S=t.itemComponent,k=t.onVisibleChange,O=tt(t,id),_="full"===g,$=Zu(),M=Be(Qu($,null),2),N=M[0],P=M[1],I=N||0,T=Be(Qu($,new Map),2),j=T[0],A=T[1],D=Be(Qu($,0),2),L=D[0],z=D[1],B=Be(Qu($,0),2),F=B[0],H=B[1],V=Be(Qu($,0),2),W=V[0],X=V[1],q=Be(e.useState(null),2),U=q[0],Y=q[1],G=Be(e.useState(null),2),K=G[0],Z=G[1],Q=o.useMemo((function(){return null===K&&_?Number.MAX_SAFE_INTEGER:K||0}),[K,N]),J=Be(e.useState(!1),2),ee=J[0],te=J[1],ne="".concat(i,"-item"),oe=Math.max(L,F),re=b===ad,ie=s.length&&re,ae=b===sd,se=ie||"number"==typeof b&&s.length>b,le=e.useMemo((function(){var e=s;return ie?e=null===N&&_?s:s.slice(0,Math.min(s.length,I/f)):"number"==typeof b&&(e=s.slice(0,b)),e}),[s,f,N,b,ie]),ce=e.useMemo((function(){return ie?s.slice(Q+1):s.slice(le.length)}),[s,le,ie,Q]),ue=e.useCallback((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),de=e.useCallback(l||function(e){return e},[l]);function fe(e,t,n){(K!==e||void 0!==t&&t!==U)&&(Z(e),n||(te(e<s.length-1),null==k||k(e)),void 0!==t&&Y(t))}function he(e,t){A((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function pe(e){return j.get(ue(le[e],e))}$t((function(){if(I&&"number"==typeof oe&&le){var e=W,t=le.length,n=t-1;if(!t)return void fe(0,null);for(var o=0;o<t;o+=1){var r=pe(o);if(_&&(r=r||0),void 0===r){fe(o-1,void 0,!0);break}if(e+=r,0===n&&e<=I||o===n-1&&e+pe(n)<=I){fe(n,null);break}if(e+oe>I){fe(o-1,e-r-W+F);break}}w&&pe(0)+W>I&&Y(null)}}),[I,j,F,W,ue,le]);var ge=ee&&!!ce.length,me={};null!==U&&ie&&(me={position:"absolute",left:U,top:0});var ve,be={prefixCls:ne,responsive:ie,component:S,invalidate:ae},ye=c?function(e,t){var n=ue(e,t);return o.createElement(Ju.Provider,{key:n,value:R(R({},be),{},{order:t,item:e,itemKey:n,registerSize:he,display:t<=Q})},c(e,t))}:function(e,t){var n=ue(e,t);return o.createElement(Ku,p({},be,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:he,display:t<=Q}))},xe={order:ge?Q:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){H(t),z(F)},display:ge};if(x)x&&(ve=o.createElement(Ju.Provider,{value:R(R({},be),xe)},x(ce)));else{var we=y||ld;ve=o.createElement(Ku,p({},be,xe),"function"==typeof we?we(ce):we)}var Ce=o.createElement(E,p({className:h(!ae&&i,v),style:m,ref:n},O),le.map(ye),se?ve:null,w&&o.createElement(Ku,p({},be,{responsive:re,responsiveDisabled:!ie,order:Q,className:"".concat(ne,"-suffix"),registerSize:function(e,t){X(t)},display:!0,style:me}),w));return re&&(Ce=o.createElement(Oe,{onResize:function(e,t){P(t.clientWidth)},disabled:!ie},Ce)),Ce}var ud=o.forwardRef(cd);function dd(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.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,p=o.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],b=m[0],y=m[1],x=v[0],w=v[1];b!==x&&["t","b"].includes(b)?"t"===b?g.top=0:g.bottom=0:g.top=f,y!==w&&["l","r"].includes(y)?"l"===y?g.left=0:g.right=0:g.left=u}return o.createElement("div",{ref:p,className:h("".concat(t,"-arrow"),s),style:g},l)}function fd(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?o.createElement(ma,p({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return o.createElement("div",{style:{zIndex:r},className:h("".concat(t,"-mask"),n)})})):null}ud.displayName="Overflow",ud.Item=rd,ud.RESPONSIVE=ad,ud.INVALIDATE=sd;var hd=o.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(hd.displayName="PopupContent");var pd=o.forwardRef((function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,g=e.mask,m=e.arrow,v=e.arrowPos,b=e.align,y=e.motion,x=e.maskMotion,w=e.forceRender,C=e.getPopupContainer,E=e.autoDestroy,S=e.portal,k=e.zIndex,O=e.onMouseEnter,_=e.onMouseLeave,$=e.onPointerEnter,M=e.ready,N=e.offsetX,P=e.offsetY,I=e.offsetR,T=e.offsetB,j=e.onAlign,A=e.onPrepare,D=e.stretch,z=e.targetWidth,B=e.targetHeight,F="function"==typeof n?n():n,H=c||u,V=(null==C?void 0:C.length)>0,W=Be(o.useState(!C||!V),2),X=W[0],q=W[1];if($t((function(){!X&&V&&s&&q(!0)}),[X,V,s]),!X)return null;var U="auto",Y={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(M||!c){var G,K=b.points,Z=b.dynamicInset||(null===(G=b._experimental)||void 0===G?void 0:G.dynamicInset),Q=Z&&"r"===K[0][1],J=Z&&"b"===K[0][0];Q?(Y.right=I,Y.left=U):(Y.left=N,Y.right=U),J?(Y.bottom=T,Y.top=U):(Y.top=P,Y.bottom=U)}var ee={};return D&&(D.includes("height")&&B?ee.height=B:D.includes("minHeight")&&B&&(ee.minHeight=B),D.includes("width")&&z?ee.width=z:D.includes("minWidth")&&z&&(ee.minWidth=z)),c||(ee.pointerEvents="none"),o.createElement(S,{open:w||H,getContainer:C&&function(){return C(s)},autoDestroy:E},o.createElement(fd,{prefixCls:i,open:c,zIndex:k,mask:g,motion:x}),o.createElement(Oe,{onResize:j,disabled:!c},(function(e){return o.createElement(ma,p({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:A,onEnterPrepare:A,visible:c,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),l(e)}}),(function(n,s){var l=n.className,u=n.style,p=h(i,l,r);return o.createElement("div",{ref:L(e,t,s),className:p,style:R(R(R(R({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Y),ee),u),{},{boxSizing:"border-box",zIndex:k},a),onMouseEnter:O,onMouseLeave:_,onPointerEnter:$,onClick:f},m&&o.createElement(dd,{prefixCls:i,arrow:m,arrowPos:v,align:b}),o.createElement(hd,{cache:!c&&!d},F))}))})))}));"production"!==process.env.NODE_ENV&&(pd.displayName="Popup");var gd=o.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=B(n),a=o.useCallback((function(e){D(t,r?r(e):e)}),[r]),s=z(a,n.ref);return i?o.cloneElement(n,{ref:s}):n}));"production"!==process.env.NODE_ENV&&(gd.displayName="TriggerWrapper");var md=o.createContext(null);function vd(e){return e?Array.isArray(e)?e:[e]:[]}function bd(){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 yd(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function xd(e){return e.ownerDocument.defaultView}function wd(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=xd(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 Cd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Ed(e){return Cd(parseFloat(e),0)}function Sd(e,t){var n=R({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=xd(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=Ed(i),g=Ed(a),m=Ed(s),v=Ed(l),b=Cd(Math.round(c.width/f*1e3)/1e3),y=Cd(Math.round(c.height/u*1e3)/1e3),x=(f-h-m-v)*b,w=(u-d-p-g)*y,C=p*y,E=g*y,S=m*b,k=v*b,O=0,_=0;if("clip"===o){var $=Ed(r);O=$*b,_=$*y}var M=c.x+S-O,N=c.y+C-_,P=M+c.width+2*O-S-k-x,I=N+c.height+2*_-C-E-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 kd(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 Od(e,t){var n=Be(t||[],2),o=n[0],r=n[1];return[kd(e.width,o),kd(e.height,r)]}function _d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function $d(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 Md(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 Nd=["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 Pd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zl,t=o.forwardRef((function(t,n){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=t.children,s=t.action,l=void 0===s?"hover":s,c=t.showAction,u=t.hideAction,d=t.popupVisible,f=t.defaultPopupVisible,p=t.onPopupVisibleChange,g=t.afterPopupVisibleChange,m=t.mouseEnterDelay,v=t.mouseLeaveDelay,b=void 0===v?.1:v,y=t.focusDelay,x=t.blurDelay,w=t.mask,C=t.maskClosable,E=void 0===C||C,k=t.getPopupContainer,O=t.forceRender,_=t.autoDestroy,$=t.destroyPopupOnHide,M=t.popup,N=t.popupClassName,P=t.popupStyle,I=t.popupPlacement,j=t.builtinPlacements,A=void 0===j?{}:j,D=t.popupAlign,L=t.zIndex,z=t.stretch,B=t.getPopupClassNameFromAlign,F=t.fresh,H=t.alignPoint,V=t.onPopupClick,W=t.onPopupAlign,X=t.arrow,q=t.popupMotion,U=t.maskMotion,Y=t.popupTransitionName,G=t.popupAnimation,K=t.maskTransitionName,Z=t.maskAnimation,Q=t.className,J=t.getTriggerDOMNode,ee=tt(t,Nd),te=_||$||!1,ne=Be(o.useState(!1),2),oe=ne[0],re=ne[1];$t((function(){re(qu())}),[]);var ie=o.useRef({}),ae=o.useContext(md),se=o.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),le=tc(),ce=Be(o.useState(null),2),ue=ce[0],de=ce[1],fe=o.useRef(null),he=Gr((function(e){fe.current=e,T(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(le,e)})),pe=Be(o.useState(null),2),ge=pe[0],me=pe[1],ve=o.useRef(null),be=Gr((function(e){T(e)&&ge!==e&&(me(e),ve.current=e)})),ye=o.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=Aa(t))||void 0===n?void 0:n.host)===e||t.contains(null===(o=Aa(e))||void 0===o?void 0:o.host)},Ee=Gr((function(e){var t=ge,n=Ce.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=yd(i,q,G,Y),ke=yd(i,U,Z,K),_e=Be(o.useState(f||!1),2),$e=_e[0],Me=_e[1],Ne=null!=d?d:$e,Ie=Gr((function(e){void 0===d&&Me(e)}));$t((function(){Me(d||!1)}),[d]);var Re=o.useRef(Ne);Re.current=Ne;var Te=o.useRef([]);Te.current=[];var je=Gr((function(e){var t;Ie(e),(null!==(t=Te.current[Te.current.length-1])&&void 0!==t?t:Ne)!==e&&(Te.current.push(e),null==p||p(e))})),Ae=o.useRef(),De=function(){clearTimeout(Ae.current)},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;De(),0===t?je(e):Ae.current=setTimeout((function(){je(e)}),1e3*t)};o.useEffect((function(){return De}),[]);var ze=Be(o.useState(!1),2),Fe=ze[0],He=ze[1];$t((function(e){e&&!Ne||He(!0)}),[Ne]);var Ve=Be(o.useState(null),2),We=Ve[0],Xe=Ve[1],qe=Be(o.useState(null),2),Ue=qe[0],Ye=qe[1],Ge=function(e){Ye([e.clientX,e.clientY])},Ke=function(e,t,n,r,i,a,s){var l=Be(o.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=o.useRef(0),f=o.useMemo((function(){return t?wd(t):[]}),[t]),h=o.useRef({});e||(h.current={});var p=Gr((function(){if(t&&n&&e){var o,l,c,d,p,g=t,m=g.ownerDocument,v=xd(g).getComputedStyle(g),b=v.width,y=v.height,x=v.position,w=g.style.left,C=g.style.top,E=g.style.right,S=g.style.bottom,k=g.style.overflow,O=R(R({},i[r]),a),_=m.createElement("div");if(null===(o=g.parentElement)||void 0===o||o.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(n))p={x:n[0],y:n[1],width:0,height:0};else{var $,M,N=n.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,j=I.clientWidth,A=I.clientHeight,D=I.scrollWidth,L=I.scrollHeight,z=I.scrollTop,B=I.scrollLeft,F=P.height,H=P.width,V=p.height,W=p.width,X={left:0,top:0,right:j,bottom:A},q={left:-B,top:-z,right:D-B,bottom:L-z},U=O.htmlRegion,Y="visible",G="visibleFirst";"scroll"!==U&&U!==G&&(U=Y);var K=U===G,Z=Sd(q,f),Q=Sd(X,f),J=U===Y?Q:Z,ee=K?Q:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=w,g.style.top=C,g.style.right=E,g.style.bottom=S,g.style.overflow=k,null===(d=g.parentElement)||void 0===d||d.removeChild(_);var ne=Cd(Math.round(H/parseFloat(b)*1e3)/1e3),oe=Cd(Math.round(F/parseFloat(y)*1e3)/1e3);if(0===ne||0===oe||T(n)&&!Ds(n))return;var re=O.offset,ie=O.targetOffset,ae=Be(Od(P,re),2),se=ae[0],le=ae[1],ce=Be(Od(p,ie),2),ue=ce[0],de=ce[1];p.x-=ue,p.y-=de;var fe=Be(O.points||[],2),he=fe[0],pe=_d(fe[1]),ge=_d(he),me=$d(p,pe),ve=$d(P,ge),be=R({},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+H,a=r+F,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,Ee,Se,ke=pt(ye,xe),Oe=pt(ye,xe,Q),_e=$d(p,["t","l"]),$e=$d(P,["t","l"]),Me=$d(p,["b","r"]),Ne=$d(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+F,Ee=P.x+ye,Se=Ee+H}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-=F-V:ze=_e.y-Ne.y-le;var Fe=pt(ye,ze),He=pt(ye,ze,Q);Fe>ke||Fe===ke&&(!K||He>=Oe)?(h.current.bt=!0,xe=ze,le=-le,be.points=[Md(ge,0),Md(pe,0)]):h.current.bt=!1}if(De&&"b"===ge[0]&&(we<ee.top||h.current.tb)){var Ve=xe;Le?Ve+=F-V:Ve=Me.y-$e.y-le;var We=pt(ye,Ve),Xe=pt(ye,Ve,Q);We>ke||We===ke&&(!K||Xe>=Oe)?(h.current.tb=!0,xe=Ve,le=-le,be.points=[Md(ge,0),Md(pe,0)]):h.current.tb=!1}var qe=Ae(Ie),Ue=ge[1]===pe[1];if(qe&&"l"===ge[1]&&(Se>ee.right||h.current.rl)){var Ye=ye;Ue?Ye-=H-W:Ye=_e.x-Ne.x-se;var Ge=pt(Ye,xe),Ke=pt(Ye,xe,Q);Ge>ke||Ge===ke&&(!K||Ke>=Oe)?(h.current.rl=!0,ye=Ye,se=-se,be.points=[Md(ge,1),Md(pe,1)]):h.current.rl=!1}if(qe&&"r"===ge[1]&&(Ee<ee.left||h.current.lr)){var Ze=ye;Ue?Ze+=H-W:Ze=Me.x-$e.x-se;var Qe=pt(Ze,xe),Je=pt(Ze,xe,Q);Qe>ke||Qe===ke&&(!K||Je>=Oe)?(h.current.lr=!0,ye=Ze,se=-se,be.points=[Md(ge,1),Md(pe,1)]):h.current.lr=!1}gt();var et=!0===Te?0:Te;"number"==typeof et&&(Ee<Q.left&&(ye-=Ee-Q.left-se,p.x+W<Q.left+et&&(ye+=p.x-Q.left+W-et)),Se>Q.right&&(ye-=Se-Q.right-se,p.x>Q.right-et&&(ye+=p.x-Q.right+et)));var tt=!0===je?0:je;"number"==typeof tt&&(we<Q.top&&(xe-=we-Q.top-le,p.y+V<Q.top+tt&&(xe+=p.y-Q.top+V-tt)),Ce>Q.bottom&&(xe-=Ce-Q.bottom-le,p.y>Q.bottom-tt&&(xe+=p.y-Q.bottom+tt)));var nt=P.x+ye,ot=nt+H,rt=P.y+xe,it=rt+F,at=p.x,st=at+W,lt=p.y,ct=lt+V,ut=(Math.max(nt,at)+Math.min(ot,st))/2-nt,dt=(Math.max(rt,lt)+Math.min(it,ct))/2-rt;null==s||s(t,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 R(R({},e),{},{ready:!1})}))};return $t(g,[r]),$t((function(){e||g()}),[e]),[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()}))}]}(Ne,ue,H&&null!==Ue?Ue:ge,I,A,D,W),Ze=Be(Ke,11),Qe=Ze[0],Je=Ze[1],et=Ze[2],nt=Ze[3],ot=Ze[4],rt=Ze[5],it=Ze[6],at=Ze[7],st=Ze[8],lt=Ze[9],ct=Ze[10],ut=function(e,t,n,r){return o.useMemo((function(){var o=vd(null!=n?n:t),i=vd(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(oe,l,c,u),dt=Be(ut,2),ft=dt[0],ht=dt[1],pt=ft.has("click"),gt=ht.has("click")||ht.has("contextMenu"),mt=Gr((function(){Fe||ct()}));!function(e,t,n,o,r){$t((function(){if(e&&t&&n){var i=n,a=wd(t),s=wd(i),l=xd(i),c=new Set([l].concat(Pe(a),Pe(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])}(Ne,ge,ue,mt,(function(){Re.current&&H&&gt&&Le(!1)})),$t((function(){mt()}),[Ue,I]),$t((function(){!Ne||null!=A&&A[I]||mt()}),[JSON.stringify(D)]);var vt=o.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(bd(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(A,i,lt,H);return h(e,null==B?void 0:B(lt))}),[lt,B,A,i,H]);o.useImperativeHandle(n,(function(){return{nativeElement:ve.current,popupElement:fe.current,forceAlign:mt}}));var bt=Be(o.useState(0),2),yt=bt[0],xt=bt[1],wt=Be(o.useState(0),2),Ct=wt[0],Et=wt[1],St=function(){if(z&&ge){var e=ge.getBoundingClientRect();xt(e.width),Et(e.height)}};function kt(e,t,n,o){we[e]=function(r){var i;null==o||o(r),Le(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))}}$t((function(){We&&(ct(),We(),Xe(null))}),[We]),(pt||gt)&&(we.onClick=function(e){var t;Re.current&&gt?Le(!1):!Re.current&&pt&&(Ge(e),Le(!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(e,t,n,r,i,a,s,l){var c=o.useRef(e);c.current=e,o.useEffect((function(){if(t&&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)},o=xd(r);o.addEventListener("mousedown",e,!0),o.addEventListener("contextmenu",e,!0);var u,d,f=Aa(n);return f&&(f.addEventListener("mousedown",e,!0),f.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&S((null==n||null===(u=n.getRootNode)||void 0===u?void 0:u.call(n))===(null===(d=r.getRootNode)||void 0===d?void 0:d.call(r)),"trigger element and popup element should in same shadow root."),function(){o.removeEventListener("mousedown",e,!0),o.removeEventListener("contextmenu",e,!0),f&&(f.removeEventListener("mousedown",e,!0),f.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,i,a])}(Ne,gt,ge,ue,w,E,Ee,Le);var Ot,_t,Mt=ft.has("hover"),Nt=ht.has("hover");Mt&&(kt("onMouseEnter",!0,m,(function(e){Ge(e)})),kt("onPointerEnter",!0,m,(function(e){Ge(e)})),Ot=function(e){(Ne||Fe)&&null!=ue&&ue.contains(e.target)&&Le(!0,m)},H&&(we.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),Nt&&(kt("onMouseLeave",!1,b),kt("onPointerLeave",!1,b),_t=function(){Le(!1,b)}),ft.has("focus")&&kt("onFocus",!0,y),ht.has("focus")&&kt("onBlur",!1,x),ft.has("contextMenu")&&(we.onContextMenu=function(e){var t;Re.current&&ht.has("contextMenu")?Le(!1):(Ge(e),Le(!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=h(xe.className,Q));var Pt=R(R({},xe),we),It={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(It[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=Pt[e])||void 0===t||t.call.apply(t,[Pt].concat(o)),ee[e].apply(ee,o)})}));var Rt=o.cloneElement(ye,R(R({},Pt),It)),Tt={x:rt,y:it},jt=X?R({},!0!==X?X:{}):null;return o.createElement(o.Fragment,null,o.createElement(Oe,{disabled:!Ne,ref:be,onResize:function(){St(),mt()}},o.createElement(gd,{getTriggerDOMNode:J},Rt)),o.createElement(md.Provider,{value:se},o.createElement(pd,{portal:e,ref:he,prefixCls:i,popup:M,className:h(N,vt),style:P,target:ge,onMouseEnter:Ot,onMouseLeave:_t,onPointerEnter:Ot,zIndex:L,open:Ne,keepDom:Fe,fresh:F,onClick:V,mask:w,motion:Se,maskMotion:ke,onVisibleChanged:function(e){He(!1),ct(),null==g||g(e)},onPrepare:function(){return new Promise((function(e){St(),Xe((function(){return e}))}))},forceRender:O,autoDestroy:te,getPopupContainer:k,align:lt,arrow:jt,arrowPos:Tt,ready:Qe,offsetX:Je,offsetY:et,offsetR:nt,offsetB:ot,onAlign:mt,stretch:z,targetWidth:yt/at,targetHeight:Ct/st})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(Zl);function Id(e,t,n){return h({[`${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 Rd=(e,t)=>t||e,Td=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,i;const{variant:a,[t]:s}=e.useContext(jr),l=e.useContext(wu),c=null==s?void 0:s.variant;let u;u=void 0!==n?n:!1===o?"borderless":null!==(i=null!==(r=null!=l?l:c)&&void 0!==r?r:a)&&void 0!==i?i:"outlined";return[u,Tr.includes(u)]};var jd={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"},Ad=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:jd}))},Dd=o.forwardRef(Ad);"production"!==process.env.NODE_ENV&&(Dd.displayName="CheckOutlined");var Ld={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"},zd=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:Ld}))},Bd=o.forwardRef(zd);function Fd(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,s=e.style;return o.createElement("div",{className:h("".concat(n,"-content"),a),style:s},o.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t))}"production"!==process.env.NODE_ENV&&(Bd.displayName="SearchOutlined");var Hd={shiftX:64,adjustY:1},Vd={adjustX:1,shiftY:!0},Wd=[0,0],Xd={left:{points:["cr","cl"],overflow:Vd,offset:[-4,0],targetOffset:Wd},right:{points:["cl","cr"],overflow:Vd,offset:[4,0],targetOffset:Wd},top:{points:["bc","tc"],overflow:Hd,offset:[0,-4],targetOffset:Wd},bottom:{points:["tc","bc"],overflow:Hd,offset:[0,4],targetOffset:Wd},topLeft:{points:["bl","tl"],overflow:Hd,offset:[0,-4],targetOffset:Wd},leftTop:{points:["tr","tl"],overflow:Vd,offset:[-4,0],targetOffset:Wd},topRight:{points:["br","tr"],overflow:Hd,offset:[0,-4],targetOffset:Wd},rightTop:{points:["tl","tr"],overflow:Vd,offset:[4,0],targetOffset:Wd},bottomRight:{points:["tr","br"],overflow:Hd,offset:[0,4],targetOffset:Wd},rightBottom:{points:["bl","br"],overflow:Vd,offset:[4,0],targetOffset:Wd},bottomLeft:{points:["tl","bl"],overflow:Hd,offset:[0,4],targetOffset:Wd},leftBottom:{points:["br","bl"],overflow:Vd,offset:[-4,0],targetOffset:Wd}},qd=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Ud=function(t,n){var r=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,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,g=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,E=t.align,S=void 0===E?{}:E,k=t.destroyTooltipOnHide,O=void 0!==k&&k,_=t.defaultVisible,$=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,P=t.id,I=t.showArrow,T=void 0===I||I,j=tt(t,qd),A=e.useRef(null);e.useImperativeHandle(n,(function(){return A.current}));var D=R({},j);"visible"in t&&(D.popupVisible=t.visible);return o.createElement(Pd,p({popupClassName:r,prefixCls:h,popup:function(){return o.createElement(Fd,{key:"content",prefixCls:h,id:P,overlayInnerStyle:M},N)},action:a,builtinPlacements:Xd,popupPlacement:C,ref:A,popupAlign:S,getPopupContainer:$,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:y,popupMotion:x,defaultPopupVisible:_,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:T},D),g)},Yd=e.forwardRef(Ud);const Gd=(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 ${Ct(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Kd=8;function Zd(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?Kd:o}}function Qd(e,t){return e?t:{}}function Jd(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"},Gd(e,t,r)),{"&:before":{background:t}})]},Qd(!!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% - ${Ct(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Qd(!!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% - ${Ct(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Qd(!!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}})),Qd(!!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 ef={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"]}},tf={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"]}},nf=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function of(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(ef).forEach((e=>{const c=o&&tf[e]||ef[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,nf.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=Zd({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 rf=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({},Ei(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:`${Ct(e.calc(c).div(2).equal())} ${Ct(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,Kd)}},[`${t}-content`]:{position:"relative"}}),Pi(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},Jd(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},af=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Zd({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%)`}}(ni(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var sf=function(e){const t=$i("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=ni(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[rf(r),Fu(e,"zoom-big-fast")]}),af,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const lf=ci.map((e=>`${e}-inverse`));function cf(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Pe(lf),Pe(ci)).includes(e):ci.includes(e)}function uf(e,t){const n=cf(t),o=h({[`${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 df=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 ff=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:g,arrow:m=!0,title:v,overlay:b,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:w=!0}=e,C=!!m,[,E]=xi(),{getPopupContainer:S,getPrefixCls:k,direction:O}=o.useContext(jr),_=ho("Tooltip"),$=o.useRef(null),M=()=>{var e;null===(e=$.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>{var e;return{forceAlign:M,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),M()},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((t=>{let[n,o]=t;_.deprecated(!(n in e),n,o)})),"production"!==process.env.NODE_ENV&&_(!g||"boolean"==typeof g,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&_(!m||"boolean"==typeof m||!("arrowPointAtCenter"in m),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[N,P]=Qr(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),I=!v&&!b&&0!==v,R=o.useMemo((()=>{var e,t;let n=x;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:x),y||of({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:C?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})}),[x,m,y,E]),T=o.useMemo((()=>0===v?v:b||v||""),[b,v]),j=o.createElement(Cu,{space:!0},"function"==typeof T?T():T),{getPopupContainer:A,placement:D="top",mouseEnterDelay:L=.1,mouseLeaveDelay:z=.1,overlayStyle:B,rootClassName:F}=e,H=df(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=k("tooltip",i),W=k(),X=e["data-popover-inject"];let q=N;"open"in e||"visible"in e||!I||(q=!1);const U=o.isValidElement(d)&&!os(d)?d:o.createElement("span",null,d),Y=U.props,G=Y.className&&"string"!=typeof Y.className?Y.className:h(Y.className,a||`${V}-open`),[K,Z,Q]=sf(V,!X),J=uf(V,c),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=h(l,{[`${V}-rtl`]:"rtl"===O},J.className,F,Z,Q),[oe,re]=gs("Tooltip",H.zIndex),ie=o.createElement(Yd,Object.assign({},H,{zIndex:oe,showArrow:C,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:t=>{var n,o;P(!I&&t),I||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=f?f:p,overlayInnerStyle:te,arrowContent:o.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:As(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),q?is(U,{className:G}):U);return K(o.createElement(ds.Provider,{value:re},ie))})),hf=ff;"production"!==process.env.NODE_ENV&&(hf.displayName="Tooltip"),hf._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=o.useContext(jr),c=l("tooltip",t),[u,d,f]=sf(c),p=uf(c,a),g=p.arrowStyle,m=Object.assign(Object.assign({},s),p.overlayStyle),v=h(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,p.className);return u(o.createElement("div",{className:v,style:g},o.createElement("div",{className:`${c}-arrow`}),o.createElement(Fd,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:m}),i)))};const pf=new Jn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),gf=new Jn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),mf=new Jn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),vf=new Jn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),bf=new Jn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),yf=new Jn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),xf=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return ni(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%)"})},wf=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 Cf=$i("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=Pi(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({},Ei(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:Ct(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(d).div(2).equal(),boxShadow:`0 0 0 ${Ct(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:Ct(f),borderRadius:p(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Ct(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 ${Ct(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:yf,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:gf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:mf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:vf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:bf,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%)"}}})}})(xf(e))),wf);var Ef=$i(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Pi(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({},Ei(e)),{position:"absolute",top:o,padding:`0 ${Ct(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Ct(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:`${Ct(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"}})}})(xf(e))),wf);const Sf=e=>{const{className:t,prefixCls:n,style:r,color:i,children:a,text:s,placement:l="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=o.useContext(jr),f=u("ribbon",n),p=`${f}-wrapper`,[g,m,v]=Ef(f,p),b=cf(i,!1),y=h(f,`${f}-placement-${l}`,{[`${f}-rtl`]:"rtl"===d,[`${f}-color-${i}`]:b},t),x={},w={};return i&&!b&&(x.background=i,w.color=i),g(o.createElement("div",{className:h(p,c,m,v)},a,o.createElement("div",{className:h(y,m),style:Object.assign(Object.assign({},x),r)},o.createElement("span",{className:`${f}-text`},s),o.createElement("div",{className:`${f}-corner`,style:w}))))};"production"!==process.env.NODE_ENV&&(Sf.displayName="Ribbon");const kf=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),o.createElement("span",{style:a,className:h(`${t}-only-unit`,{current:r})},n)};function Of(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const _f=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[s,l]=o.useState(i),[c,u]=o.useState(a),d=()=>{l(i),u(a)};let f,h;if(o.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),s===i||Number.isNaN(i)||Number.isNaN(s))f=[o.createElement(kf,Object.assign({},e,{key:i,current:!0}))],h={transition:"none"};else{f=[];const t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);const r=n.findIndex((e=>e%10===s));f=n.map(((t,n)=>{const i=t%10;return o.createElement(kf,Object.assign({},e,{key:t,value:i,offset:n-r,current:n===r}))}));h={transform:`translateY(${-Of(s,i,c<a?1:-1)}00%)`}}return o.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:d},f)};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=o.forwardRef(((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:a,style:s,title:l,show:c,component:u="sup",children:d}=e,f=$f(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=o.useContext(jr),g=p("scroll-number",n),m=Object.assign(Object.assign({},f),{"data-show":c,style:s,className:h(g,i,a),title:l});let v=r;if(r&&Number(r)%1==0){const e=String(r).split("");v=o.createElement("bdi",null,e.map(((t,n)=>o.createElement(_f,{prefixCls:g,count:Number(r),value:t,key:e.length-n}))))}return(null==s?void 0:s.borderColor)&&(m.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?is(d,(e=>({className:h(`${g}-custom-component`,null==e?void 0:e.className,a)}))):o.createElement(u,Object.assign({},m,{ref:t}),v)}));var Nf=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 Pf=o.forwardRef(((t,n)=>{var r,i,a,s,l;const{prefixCls:c,scrollNumberPrefixCls:u,children:d,status:f,text:p,color:g,count:m=null,overflowCount:v=99,dot:b=!1,size:y="default",title:x,offset:w,style:C,className:E,rootClassName:S,classNames:k,styles:O,showZero:_=!1}=t,$=Nf(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:N,badge:P}=o.useContext(jr),I=M("badge",c),[R,T,j]=Cf(I),A=m>v?`${v}+`:m,D="0"===A||0===A,L=(null!=f||null!=g)&&(null===m||D&&!_),z=b&&!D,B=z?"":A,F=e.useMemo((()=>(null==B||""===B||D&&!_)&&!z),[B,D,_,z]),H=e.useRef(m);F||(H.current=m);const V=H.current,W=e.useRef(B);F||(W.current=B);const X=W.current,q=e.useRef(z);F||(q.current=z);const U=e.useMemo((()=>{if(!w)return Object.assign(Object.assign({},null==P?void 0:P.style),C);const e={marginTop:w[1]};return"rtl"===N?e.left=parseInt(w[0],10):e.right=-parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},e),null==P?void 0:P.style),C)}),[N,w,C,null==P?void 0:P.style]),Y=null!=x?x:"string"==typeof V||"number"==typeof V?V:void 0,G=F||!p?null:o.createElement("span",{className:`${I}-status-text`},p),K=V&&"object"==typeof V?is(V,(e=>({style:Object.assign(Object.assign({},U),e.style)}))):void 0,Z=cf(g,!1),Q=h(null==k?void 0:k.indicator,null===(r=null==P?void 0:P.classNames)||void 0===r?void 0:r.indicator,{[`${I}-status-dot`]:L,[`${I}-status-${f}`]:!!f,[`${I}-color-${g}`]:Z}),J={};g&&!Z&&(J.color=g,J.background=g);const ee=h(I,{[`${I}-status`]:L,[`${I}-not-a-wrapper`]:!d,[`${I}-rtl`]:"rtl"===N},E,S,null==P?void 0:P.className,null===(i=null==P?void 0:P.classNames)||void 0===i?void 0:i.root,null==k?void 0:k.root,T,j);if(!d&&L){const e=U.color;return R(o.createElement("span",Object.assign({},$,{className:ee,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(a=null==P?void 0:P.styles)||void 0===a?void 0:a.root),U)}),o.createElement("span",{className:Q,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(s=null==P?void 0:P.styles)||void 0===s?void 0:s.indicator),J)}),p&&o.createElement("span",{style:{color:e},className:`${I}-status-text`},p)))}return R(o.createElement("span",Object.assign({ref:n},$,{className:ee,style:Object.assign(Object.assign({},null===(l=null==P?void 0:P.styles)||void 0===l?void 0:l.root),null==O?void 0:O.root)}),d,o.createElement(ma,{visible:!F,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t}=e;var n,r;const i=M("scroll-number",u),a=q.current,s=h(null==k?void 0:k.indicator,null===(n=null==P?void 0:P.classNames)||void 0===n?void 0:n.indicator,{[`${I}-dot`]:a,[`${I}-count`]:!a,[`${I}-count-sm`]:"small"===y,[`${I}-multiple-words`]:!a&&X&&X.toString().length>1,[`${I}-status-${f}`]:!!f,[`${I}-color-${g}`]:Z});let l=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(r=null==P?void 0:P.styles)||void 0===r?void 0:r.indicator),U);return g&&!Z&&(l=l||{},l.background=g),o.createElement(Mf,{prefixCls:i,show:!F,motionClassName:t,className:s,count:X,title:Y,style:l,key:"scrollNumber"},K)})),G))})),If=Pf;If.Ribbon=Sf,"production"!==process.env.NODE_ENV&&(If.displayName="Badge");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"},Tf=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:Rf}))},jf=o.forwardRef(Tf);"production"!==process.env.NODE_ENV&&(jf.displayName="RightOutlined");var Af=ss.ESC,Df=ss.TAB;var Lf=e.forwardRef((function(t,n){var o=t.overlay,r=t.arrow,i=t.prefixCls,a=e.useMemo((function(){return"function"==typeof o?o():o}),[o]),s=L(n,null==a?void 0:a.ref);return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"".concat(i,"-arrow")}),e.cloneElement(a,{ref:B(a)?s:void 0}))})),zf={adjustX:1,adjustY:1},Bf=[0,0],Ff={topLeft:{points:["bl","tl"],overflow:zf,offset:[0,-4],targetOffset:Bf},top:{points:["bc","tc"],overflow:zf,offset:[0,-4],targetOffset:Bf},topRight:{points:["br","tr"],overflow:zf,offset:[0,-4],targetOffset:Bf},bottomLeft:{points:["tl","bl"],overflow:zf,offset:[0,4],targetOffset:Bf},bottom:{points:["tc","bc"],overflow:zf,offset:[0,4],targetOffset:Bf},bottomRight:{points:["tr","br"],overflow:zf,offset:[0,4],targetOffset:Bf}},Hf=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Vf(t,n){var r,i=t.arrow,a=void 0!==i&&i,s=t.prefixCls,l=void 0===s?"rc-dropdown":s,c=t.transitionName,u=t.animation,d=t.align,f=t.placement,g=void 0===f?"bottomLeft":f,m=t.placements,v=void 0===m?Ff:m,b=t.getPopupContainer,y=t.showAction,x=t.hideAction,w=t.overlayClassName,C=t.overlayStyle,E=t.visible,S=t.trigger,k=void 0===S?["hover"]:S,O=t.autoFocus,_=t.overlay,$=t.children,M=t.onVisibleChange,N=tt(t,Hf),I=Be(e.useState(),2),R=I[0],T=I[1],j="visible"in t?E:R,A=e.useRef(null),D=e.useRef(null),z=e.useRef(null);e.useImperativeHandle(n,(function(){return A.current}));var F=function(e){T(e),null==M||M(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,s=o.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},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 Af:l();break;case Df:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};o.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&De(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[t])}({visible:j,triggerRef:z,onVisibleChange:F,autoFocus:O,overlayRef:D});var H,V,W,X=function(){return e.createElement(Lf,{ref:D,overlay:_,prefixCls:l,arrow:a})},q=e.cloneElement($,{className:h(null===(r=$.props)||void 0===r?void 0:r.className,j&&(H=t.openClassName,void 0!==H?H:"".concat(l,"-open"))),ref:B($)?L(z,$.ref):void 0}),U=x;return U||-1===k.indexOf("contextMenu")||(U=["click"]),e.createElement(Pd,p({builtinPlacements:v},N,{prefixCls:l,ref:A,popupClassName:h(w,P({},"".concat(l,"-show-arrow"),a)),popupStyle:C,action:k,showAction:y,hideAction:U,popupPlacement:g,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:j,stretch:(V=t.minOverlayWidthMatchTrigger,W=t.alignPoint,("minOverlayWidthMatchTrigger"in t?V:!W)?"minWidth":""),popup:"function"==typeof _?X:X(),onPopupVisibleChange:F,onPopupClick:function(e){var n=t.onOverlayClick;T(!1),n&&n(e)},getPopupContainer:b}),q)}var Wf=e.forwardRef(Vf),Xf=o.createContext(null);function qf(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Uf(e){return qf(o.useContext(Xf),e)}var Yf=["children","locked"],Gf=o.createContext(null);function Kf(e){var t=e.children,n=e.locked,r=tt(e,Yf),i=o.useContext(Gf),a=A((function(){return function(e,t){var n=R({},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!(n||e[0]===t[0]&&nt(e[1],t[1],!0))}));return o.createElement(Gf.Provider,{value:a},t)}var Zf=[],Qf=o.createContext(null);function Jf(){return o.useContext(Qf)}var eh=o.createContext(Zf);function th(e){var t=o.useContext(eh);return o.useMemo((function(){return void 0!==e?[].concat(Pe(t),[e]):t}),[t,e])}var nh=o.createContext(null),oh=o.createContext({});function rh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ds(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 ih=ss.LEFT,ah=ss.RIGHT,sh=ss.UP,lh=ss.DOWN,ch=ss.ENTER,uh=ss.ESC,dh=ss.HOME,fh=ss.END,hh=[sh,lh,ih,ah];function ph(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Pe(e.querySelectorAll("*")).filter((function(e){return rh(e,t)}));return rh(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function gh(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 mh=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(qf(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function vh(e,t,n,r,i,a,s,l,c,u){var d=o.useRef(),f=o.useRef();f.current=t;var h=function(){De.cancel(d.current)};return o.useEffect((function(){return function(){h()}}),[]),function(o){var p=o.which;if([].concat(hh,[ch,uh,dh,fh]).includes(p)){var g=a(),m=mh(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(t),b),C=x.get(w),E=function(e,t,n,o){var r,i,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&o===ch)return{inlineTrigger:!0};var f=(P(r={},sh,l),P(r,lh,c),r),h=(P(i={},ih,n?c:l),P(i,ah,n?l:c),P(i,lh,u),P(i,ch,u),i),p=(P(a={},sh,l),P(a,lh,c),P(a,ch,u),P(a,uh,d),P(a,ih,n?u:d),P(a,ah,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}}(e,1===s(C,!0).length,n,p);if(!E&&p!==dh&&p!==fh)return;(hh.includes(p)||[dh,fh].includes(p))&&o.preventDefault();var S=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=De((function(){f.current===o&&t.focus()}))}};if([dh,fh].includes(p)||E.sibling||!w){var k,O,_=ph(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,b);O=p===dh?_[0]:p===fh?_[_.length-1]:gh(k,b,w,E.offset),S(O)}else if(E.inlineTrigger)c(C);else if(E.offset>0)c(C,!0),h(),d.current=De((function(){m=mh(g,r);var e=w.getAttribute("aria-controls"),t=gh(document.getElementById(e),m.elements);S(t)}),5);else if(E.offset<0){var $=s(C,!0),M=$[$.length-2],N=y.get(M);c(M,!1),S(N)}}null==u||u(o)}}var bh="__RC_UTIL_PATH_SPLIT__",yh=function(e){return e.join(bh)},xh="rc-menu-more";function wh(){var t=Be(o.useState({}),2)[1],n=e.useRef(new Map),r=e.useRef(new Map),i=Be(o.useState([]),2),a=i[0],s=i[1],l=e.useRef(0),c=e.useRef(!1),u=e.useCallback((function(e,o){"production"!==process.env.NODE_ENV&&$(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(o.join(" > "),"]"));var i=yh(o);r.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=e.useCallback((function(e,t){var o=yh(t);r.current.delete(o),n.current.delete(e)}),[]),f=e.useCallback((function(e){s(e)}),[]),h=e.useCallback((function(e,t){var o=n.current.get(e)||"",r=o.split(bh);return t&&a.includes(r[0])&&r.unshift(xh),r}),[a]),p=e.useCallback((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return h(e,!0).includes(t)}))}),[h]),g=e.useCallback((function(e){var t="".concat(n.current.get(e)).concat(bh),o=new Set;return Pe(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return o.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:f,isSubPathKey:p,getKeyPath:h,getKeys:function(){var e=Pe(n.current.keys());return a.length&&e.push(xh),e},getSubPathKeys:g}}function Ch(e){var t=o.useRef(e);t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return e?n:void 0}var Eh=Math.random().toFixed(5).toString().slice(2),Sh=0;function kh(e,t,n,r){var i=o.useContext(Gf),a=i.activeKey,s=i.onActive,l=i.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),s(e)},c.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),c}function Oh(e){var t=o.useContext(Gf),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}function _h(e){var t,n=e.icon,r=e.props,i=e.children;return null===n||!1===n?null:("function"==typeof n?t=o.createElement(n,R({},r)):"boolean"!=typeof n&&(t=n),t||i||null)}var $h=["item"];function Mh(e){var t=e.item,n=tt(e,$h);return Object.defineProperty(n,"item",{get:function(){return $(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Nh=["title","attribute","elementRef"],Ph=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ih=["active"],Rh=function(){ve(t,o.Component);var e=we(t);function t(){return he(this,t),e.apply(this,arguments)}return ge(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=_e(tt(e,Nh),["eventKey","popupClassName","popupOffset","onTitleClick"]);return $(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(ud.Item,p({},n,{title:"string"==typeof t?t:void 0},i,{ref:r}))}}]),t}(),Th=o.forwardRef((function(e,t){var n,r=e.style,i=e.className,a=e.eventKey,s=e.warnKey,l=e.disabled,c=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,g=e.onMouseLeave,m=e.onClick,v=e.onKeyDown,b=e.onFocus,y=tt(e,Ph),x=Uf(a),w=o.useContext(Gf),C=w.prefixCls,E=w.onItemClick,S=w.disabled,k=w.overflowDisabled,O=w.itemIcon,_=w.selectedKeys,M=w.onActive,N=o.useContext(oh)._internalRenderMenuItem,I="".concat(C,"-item"),T=o.useRef(),j=o.useRef(),A=S||l,D=z(t,j),L=th(a);"production"!==process.env.NODE_ENV&&s&&$(!1,"MenuItem should not leave undefined `key`.");var B=function(e){return{key:a,keyPath:Pe(L).reverse(),item:T.current,domEvent:e}},F=c||O,H=kh(a,A,f,g),V=H.active,W=tt(H,Ih),X=_.includes(a),q=Oh(L.length),U={};"option"===e.role&&(U["aria-selected"]=X);var Y=o.createElement(Rh,p({ref:T,elementRef:D,role:null===d?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":k&&x?null:x},y,W,U,{component:"li","aria-disabled":l,style:R(R({},q),r),className:h(I,(n={},P(n,"".concat(I,"-active"),V),P(n,"".concat(I,"-selected"),X),P(n,"".concat(I,"-disabled"),A),n),i),onClick:function(e){if(!A){var t=B(e);null==m||m(Mh(t)),E(t)}},onKeyDown:function(e){if(null==v||v(e),e.which===ss.ENTER){var t=B(e);null==m||m(Mh(t)),E(t)}},onFocus:function(e){M(a),null==b||b(e)}}),u,o.createElement(_h,{props:R(R({},e),{},{isSelected:X}),icon:F}));return N&&(Y=N(Y,e,{selected:X})),Y}));function jh(e,t){var n=e.eventKey,r=Jf(),i=th(n);return o.useEffect((function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}}),[i]),r?null:o.createElement(Th,p({},e,{ref:t}))}var Ah=o.forwardRef(jh),Dh=["className","children"],Lh=function(e,t){var n=e.className,r=e.children,i=tt(e,Dh),a=o.useContext(Gf),s=a.prefixCls,l=a.mode,c=a.rtl;return o.createElement("ul",p({className:h(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),r)},zh=o.forwardRef(Lh);function Bh(e,t){return w(e).map((function(e,n){if(o.isValidElement(e)){var r,i,a=e.key,s=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a,l=null==s;l&&(s="tmp_key-".concat([].concat(Pe(t),[n]).join("-")));var c={key:s,eventKey:s};return"production"!==process.env.NODE_ENV&&l&&(c.warnKey=!0),o.cloneElement(e,c)}return e}))}zh.displayName="SubMenuList";var Fh={adjustX:1,adjustY:1},Hh={topLeft:{points:["bl","tl"],overflow:Fh},topRight:{points:["br","tr"],overflow:Fh},bottomLeft:{points:["tl","bl"],overflow:Fh},bottomRight:{points:["tr","br"],overflow:Fh},leftTop:{points:["tr","tl"],overflow:Fh},leftBottom:{points:["br","bl"],overflow:Fh},rightTop:{points:["tl","tr"],overflow:Fh},rightBottom:{points:["bl","br"],overflow:Fh}},Vh={topLeft:{points:["bl","tl"],overflow:Fh},topRight:{points:["br","tr"],overflow:Fh},bottomLeft:{points:["tl","bl"],overflow:Fh},bottomRight:{points:["tr","br"],overflow:Fh},rightTop:{points:["tr","tl"],overflow:Fh},rightBottom:{points:["br","bl"],overflow:Fh},leftTop:{points:["tl","tr"],overflow:Fh},leftBottom:{points:["bl","br"],overflow:Fh}};function Wh(e,t,n){return t||(n?n[e]||n.other:void 0)}var Xh={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function qh(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,a=e.popupStyle,s=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=o.useContext(Gf),p=f.getPopupContainer,g=f.rtl,m=f.subMenuOpenDelay,v=f.subMenuCloseDelay,b=f.builtinPlacements,y=f.triggerSubMenuAction,x=f.forceSubMenuRender,w=f.rootClassName,C=f.motion,E=f.defaultMotions,S=Be(o.useState(!1),2),k=S[0],O=S[1],_=R(R({},g?Vh:Hh),b),$=Xh[u],M=Wh(u,C,E),N=o.useRef(M);"inline"!==u&&(N.current=M);var I=R(R({},N.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),T=o.useRef();return o.useEffect((function(){return T.current=De((function(){O(n)})),function(){De.cancel(T.current)}}),[n]),o.createElement(Pd,{prefixCls:t,popupClassName:h("".concat(t,"-popup"),P({},"".concat(t,"-rtl"),g),s,w),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:_,popupPlacement:$,popupVisible:k,popup:i,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[y],mouseEnterDelay:m,mouseLeaveDelay:v,onPopupVisibleChange:d,forceRender:x,popupMotion:I,fresh:!0},r)}function Uh(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",s=o.useContext(Gf),l=s.prefixCls,c=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,f=s.mode,h=o.useRef(!1);h.current=f===a;var g=Be(o.useState(!h.current),2),m=g[0],v=g[1],b=!!h.current&&n;o.useEffect((function(){h.current&&v(!1)}),[f]);var y=R({},Wh(a,u,d));r.length>1&&(y.motionAppear=!1);var x=y.onVisibleChanged;return y.onVisibleChanged=function(e){return h.current||e||v(!0),null==x?void 0:x(e)},m?null:o.createElement(Kf,{mode:a,locked:!h.current},o.createElement(ma,p({visible:b},y,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return o.createElement(zh,{id:t,className:n,style:r},i)})))}var Yh=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Gh=["active"],Kh=o.forwardRef((function(e,t){var n,r=e.style,i=e.className,a=e.title,s=e.eventKey,l=e.warnKey,c=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,g=e.expandIcon,m=e.popupClassName,v=e.popupOffset,b=e.popupStyle,y=e.onClick,x=e.onMouseEnter,w=e.onMouseLeave,C=e.onTitleClick,E=e.onTitleMouseEnter,S=e.onTitleMouseLeave,k=tt(e,Yh),O=Uf(s),_=o.useContext(Gf),M=_.prefixCls,N=_.mode,I=_.openKeys,T=_.disabled,j=_.overflowDisabled,A=_.activeKey,D=_.selectedKeys,L=_.itemIcon,z=_.expandIcon,B=_.onItemClick,F=_.onOpenChange,H=_.onActive,V=o.useContext(oh)._internalRenderSubMenuItem,W=o.useContext(nh).isSubPathKey,X=th(),q="".concat(M,"-submenu"),U=T||c,Y=o.useRef(),G=o.useRef();"production"!==process.env.NODE_ENV&&l&&$(!1,"SubMenu should not leave undefined `key`.");var K=null!=f?f:L,Z=null!=g?g:z,Q=I.includes(s),J=!j&&Q,ee=W(D,s),te=kh(s,U,E,S),ne=te.active,oe=tt(te,Gh),re=Be(o.useState(!1),2),ie=re[0],ae=re[1],se=function(e){U||ae(e)},le=o.useMemo((function(){return ne||"inline"!==N&&(ie||W([A],s))}),[N,ne,A,ie,s,W]),ce=Oh(X.length),ue=Ch((function(e){null==y||y(Mh(e)),B(e)})),de=O&&"".concat(O,"-popup"),fe=o.createElement("div",p({role:"menuitem",style:ce,className:"".concat(q,"-title"),tabIndex:U?null:-1,ref:Y,title:"string"==typeof a?a:null,"data-menu-id":j&&O?null:O,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":U,onClick:function(e){U||(null==C||C({key:s,domEvent:e}),"inline"===N&&F(s,!Q))},onFocus:function(){H(s)}},oe),a,o.createElement(_h,{icon:"horizontal"!==N?Z:void 0,props:R(R({},e),{},{isOpen:J,isSubMenu:!0})},o.createElement("i",{className:"".concat(q,"-arrow")}))),he=o.useRef(N);if("inline"!==N&&X.length>1?he.current="vertical":he.current=N,!j){var pe=he.current;fe=o.createElement(qh,{mode:pe,prefixCls:q,visible:!u&&J&&"inline"!==N,popupClassName:m,popupOffset:v,popupStyle:b,popup:o.createElement(Kf,{mode:"horizontal"===pe?"vertical":pe},o.createElement(zh,{id:de,ref:G},d)),disabled:U,onVisibleChange:function(e){"inline"!==N&&F(s,e)}},fe)}var ge=o.createElement(ud.Item,p({ref:t,role:"none"},k,{component:"li",style:r,className:h(q,"".concat(q,"-").concat(N),i,(n={},P(n,"".concat(q,"-open"),J),P(n,"".concat(q,"-active"),le),P(n,"".concat(q,"-selected"),ee),P(n,"".concat(q,"-disabled"),U),n)),onMouseEnter:function(e){se(!0),null==x||x({key:s,domEvent:e})},onMouseLeave:function(e){se(!1),null==w||w({key:s,domEvent:e})}}),fe,!j&&o.createElement(Uh,{id:de,open:J,keyPath:X},d));return V&&(ge=V(ge,e,{selected:ee,active:le,open:J,disabled:U})),o.createElement(Kf,{onItemClick:ue,mode:"horizontal"===N?"vertical":N,itemIcon:K,expandIcon:Z},ge)})),Zh=o.forwardRef((function(e,t){var n,r=e.eventKey,i=e.children,a=th(r),s=Bh(i,a),l=Jf();return o.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),n=l?s:o.createElement(Kh,p({ref:t},e),s),o.createElement(eh.Provider,{value:a},n)}));function Qh(e){var t=e.className,n=e.style,r=o.useContext(Gf).prefixCls;return Jf()?null:o.createElement("li",{role:"separator",className:h("".concat(r,"-item-divider"),t),style:n})}"production"!==process.env.NODE_ENV&&(Zh.displayName="SubMenu");var Jh=["className","title","eventKey","children"],ep=o.forwardRef((function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=tt(e,Jh),s=o.useContext(Gf).prefixCls,l="".concat(s,"-item-group");return o.createElement("li",p({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:h(l,n)}),o.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),o.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))})),tp=o.forwardRef((function(e,t){var n=e.eventKey,r=Bh(e.children,th(n));return Jf()?r:o.createElement(ep,p({ref:t},_e(e,["warnKey"])),r)}));"production"!==process.env.NODE_ENV&&(tp.displayName="MenuItemGroup");var np=["label","children","key","type"];function op(e,t){var n=t.item,r=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===M(e)){var l=e,c=l.label,u=l.children,d=l.key,f=l.type,h=tt(l,np),g=null!=d?d:"tmp-".concat(s);return u||"group"===f?"group"===f?o.createElement(r,p({key:g},h,{title:c}),op(u,t)):o.createElement(i,p({key:g},h,{title:c}),op(u,t)):"divider"===f?o.createElement(a,p({key:g},h)):o.createElement(n,p({key:g},h),c)}return null})).filter((function(e){return e}))}function rp(e,t,n,o){var r=e,i=R({divider:Qh,item:Ah,group:tp,submenu:Zh},o);return t&&(r=op(t,i)),Bh(r,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"],ap=[],sp=o.forwardRef((function(n,r){var i,a,s=n,l=s.prefixCls,c=void 0===l?"rc-menu":l,u=s.rootClassName,d=s.style,f=s.className,g=s.tabIndex,m=void 0===g?0:g,v=s.items,b=s.children,y=s.direction,x=s.id,w=s.mode,C=void 0===w?"vertical":w,E=s.inlineCollapsed,S=s.disabled,k=s.disabledOverflow,O=s.subMenuOpenDelay,_=void 0===O?.1:O,M=s.subMenuCloseDelay,N=void 0===M?.1:M,I=s.forceSubMenuRender,T=s.defaultOpenKeys,j=s.openKeys,A=s.activeKey,D=s.defaultActiveFirst,L=s.selectable,z=void 0===L||L,B=s.multiple,F=void 0!==B&&B,H=s.defaultSelectedKeys,V=s.selectedKeys,W=s.onSelect,X=s.onDeselect,q=s.inlineIndent,U=void 0===q?24:q,Y=s.motion,G=s.defaultMotions,K=s.triggerSubMenuAction,Z=void 0===K?"hover":K,Q=s.builtinPlacements,J=s.itemIcon,ee=s.expandIcon,te=s.overflowedIndicator,ne=void 0===te?"...":te,oe=s.overflowedIndicatorPopupClassName,re=s.getPopupContainer,ie=s.onClick,ae=s.onOpenChange,se=s.onKeyDown,le=s.openAnimation,ce=s.openTransitionName,ue=s._internalRenderMenuItem,de=s._internalRenderSubMenuItem,fe=s._internalComponents,he=tt(s,ip),pe=Be(o.useMemo((function(){return[rp(b,v,ap,fe),rp(b,v,ap,{})]}),[b,v,fe]),2),ge=pe[0],me=pe[1],ve=Be(o.useState(!1),2),be=ve[0],ye=ve[1],xe=o.useRef(),we=function(e){var t=Be(Qr(e,{value:e}),2),n=t[0],r=t[1];return o.useEffect((function(){Sh+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(Eh,"-").concat(Sh);r("rc-menu-uuid-".concat(e))}),[]),n}(x),Ce="rtl"===y;"production"!==process.env.NODE_ENV&&$(!le&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ee=Qr(T,{value:j,postState:function(e){return e||ap}}),Se=Be(Ee,2),ke=Se[0],Oe=Se[1],_e=function(e){function n(){Oe(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.flushSync(n):n()},$e=Be(o.useState(ke),2),Me=$e[0],Ne=$e[1],Ie=o.useRef(!1),Re=Be(o.useMemo((function(){return"inline"!==C&&"vertical"!==C||!E?[C,!1]:["vertical",E]}),[C,E]),2),Te=Re[0],je=Re[1],Ae="inline"===Te,De=Be(o.useState(Te),2),Le=De[0],ze=De[1],Fe=Be(o.useState(je),2),He=Fe[0],Ve=Fe[1];o.useEffect((function(){ze(Te),Ve(je),Ie.current&&(Ae?Oe(Me):_e(ap))}),[Te,je]);var We=Be(o.useState(0),2),Xe=We[0],qe=We[1],Ue=Xe>=ge.length-1||"horizontal"!==Le||k;o.useEffect((function(){Ae&&Ne(ke)}),[ke]),o.useEffect((function(){return Ie.current=!0,function(){Ie.current=!1}}),[]);var Ye=wh(),Ge=Ye.registerPath,Ke=Ye.unregisterPath,Ze=Ye.refreshOverflowKeys,Qe=Ye.isSubPathKey,Je=Ye.getKeyPath,et=Ye.getKeys,ot=Ye.getSubPathKeys,rt=o.useMemo((function(){return{registerPath:Ge,unregisterPath:Ke}}),[Ge,Ke]),it=o.useMemo((function(){return{isSubPathKey:Qe}}),[Qe]);o.useEffect((function(){Ze(Ue?ap:ge.slice(Xe+1).map((function(e){return e.key})))}),[Xe,Ue]);var at=Be(Qr(A||D&&(null===(i=ge[0])||void 0===i?void 0:i.key),{value:A}),2),st=at[0],lt=at[1],ct=Ch((function(e){lt(e)})),ut=Ch((function(){lt(void 0)}));e.useImperativeHandle(r,(function(){return{list:xe.current,focus:function(e){var t,n,o=et(),r=mh(o,we),i=r.elements,a=r.key2element,s=r.element2key,l=ph(xe.current,i),c=null!=st?st: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 dt=Qr(H||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?ap:[e]}}),ft=Be(dt,2),ht=ft[0],pt=ft[1],gt=Ch((function(e){null==ie||ie(Mh(e)),function(e){if(z){var t,n=e.key,o=ht.includes(n);t=F?o?ht.filter((function(e){return e!==n})):[].concat(Pe(ht),[n]):[n],pt(t);var r=R(R({},e),{},{selectedKeys:t});o?null==X||X(r):null==W||W(r)}!F&&ke.length&&"inline"!==Le&&_e(ap)}(e)})),mt=Ch((function(e,t){var n=ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Le){var o=ot(e);n=n.filter((function(e){return!o.has(e)}))}nt(ke,n,!0)||_e(n,!0)})),vt=vh(Le,st,Ce,we,xe,et,Je,lt,(function(e,t){var n=null!=t?t:!ke.includes(e);mt(e,n)}),se);o.useEffect((function(){ye(!0)}),[]);var bt=o.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),yt="horizontal"!==Le||k?ge:ge.map((function(e,t){return o.createElement(Kf,{key:e.key,overflowDisabled:t>Xe},e)})),xt=o.createElement(ud,p({id:x,ref:xe,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:Ah,className:h(c,"".concat(c,"-root"),"".concat(c,"-").concat(Le),f,(a={},P(a,"".concat(c,"-inline-collapsed"),He),P(a,"".concat(c,"-rtl"),Ce),a),u),dir:y,style:d,role:"menu",tabIndex:m,data:yt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ge.slice(-t):null;return o.createElement(Zh,{eventKey:xh,title:ne,disabled:Ue,internalPopupClose:0===t,popupClassName:oe},n)},maxCount:"horizontal"!==Le||k?ud.INVALIDATE:ud.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){qe(e)},onKeyDown:vt},he));return o.createElement(oh.Provider,{value:bt},o.createElement(Xf.Provider,{value:we},o.createElement(Kf,{prefixCls:c,rootClassName:u,mode:Le,openKeys:ke,rtl:Ce,disabled:S,motion:be?Y:null,defaultMotions:be?G:null,activeKey:st,onActive:ct,onInactive:ut,selectedKeys:ht,inlineIndent:U,subMenuOpenDelay:_,subMenuCloseDelay:N,forceSubMenuRender:I,builtinPlacements:Q,triggerSubMenuAction:Z,getPopupContainer:re,itemIcon:J,expandIcon:ee,onItemClick:gt,onOpenChange:mt},o.createElement(nh.Provider,{value:it},xt),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(Qf.Provider,{value:rt},me)))))})),lp=sp;lp.Item=Ah,lp.SubMenu=Zh,lp.ItemGroup=tp,lp.Divider=Qh;var cp={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"},up=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:cp}))},dp=o.forwardRef(up);"production"!==process.env.NODE_ENV&&(dp.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"},hp=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:fp}))},pp=o.forwardRef(hp);"production"!==process.env.NODE_ENV&&(pp.displayName="LeftOutlined");const gp=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var mp=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={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},bp=o.createContext({}),yp=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),xp=o.forwardRef(((t,n)=>{const{prefixCls:r,className:i,trigger:a,children:s,defaultCollapsed:l=!1,theme:c="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:p=200,collapsedWidth:g=80,zeroWidthTriggerStyle:m,breakpoint:v,onCollapse:b,onBreakpoint:y}=t,x=mp(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=e.useContext(gp),[C,E]=e.useState("collapsed"in t?t.collapsed:l),[S,k]=e.useState(!1);e.useEffect((()=>{"collapsed"in t&&E(t.collapsed)}),[t.collapsed]);const O=(e,n)=>{"collapsed"in t||E(e),null==b||b(e,n)},_=e.useRef();_.current=e=>{k(e.matches),null==y||y(e.matches),C!==e.matches&&O(e.matches,"responsive")},e.useEffect((()=>{function e(e){return _.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&v&&v in vp){t=n(`screen and (max-width: ${vp[v]})`);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)}}}),[v]),e.useEffect((()=>{const e=yp("ant-sider-");return w.addSider(e),()=>w.removeSider(e)}),[]);const $=()=>{O(!C,"clickTrigger")},{getPrefixCls:M}=e.useContext(jr),N=o.useMemo((()=>({siderCollapsed:C})),[C]);return o.createElement(bp.Provider,{value:N},(()=>{const e=M("layout-sider",r),t=_e(x,["collapsed"]),l=C?g:p,v=(b=l,!isNaN(parseFloat(b))&&isFinite(b)?`${l}px`:String(l));var b;const y=0===parseFloat(String(g||0))?o.createElement("span",{onClick:$,className:h(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${f?"right":"left"}`),style:m},a||o.createElement(dp,null)):null,w={expanded:f?o.createElement(jf,null):o.createElement(pp,null),collapsed:f?o.createElement(pp,null):o.createElement(jf,null)}[C?"collapsed":"expanded"],E=null!==a?y||o.createElement("div",{className:`${e}-trigger`,onClick:$,style:{width:v}},a||w):null,k=Object.assign(Object.assign({},u),{flex:`0 0 ${v}`,maxWidth:v,minWidth:v,width:v}),O=h(e,`${e}-${c}`,{[`${e}-collapsed`]:!!C,[`${e}-has-trigger`]:d&&null!==a&&!y,[`${e}-below`]:!!S,[`${e}-zero-width`]:0===parseFloat(v)},i);return o.createElement("aside",Object.assign({className:O},t,{style:k,ref:n}),o.createElement("div",{className:`${e}-children`},s),d||S&&y?E:null)})())}));"production"!==process.env.NODE_ENV&&(xp.displayName="Sider");var wp={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"},Cp=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:wp}))},Ep=o.forwardRef(Cp);"production"!==process.env.NODE_ENV&&(Ep.displayName="EllipsisOutlined");const Sp=e.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var kp=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 Op=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=kp(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=o.useContext(jr),s=a("menu",t),l=h({[`${s}-item-divider-dashed`]:!!r},n);return o.createElement(Qh,Object.assign({className:l},i))},_p=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=o.useContext(Sp),{siderCollapsed:p}=o.useContext(bp);let g=a;void 0===a?g=c?r:"":!1===a&&(g="");const m={title:g};p||f||(m.title=null,m.open=!1);const v=w(r).length;let b=o.createElement(Ah,Object.assign({},_e(e,["title","icon","danger"]),{className:h({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(i?v+1:v)},n),title:"string"==typeof a?a:void 0}),is(i,{className:h(o.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=o.createElement("span",{className:`${l}-title-content`},r);return(!i||o.isValidElement(r)&&"span"===r.type)&&r&&e&&c&&"string"==typeof r?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):t})(f));return d||(b=o.createElement(hf,Object.assign({},m,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),b)),b},$p=o.createContext(null),Mp=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:`${Ct(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"}}}},Np=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(${Ct(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ct(n)})`}}}}},Pp=e=>Object.assign({},ki(e)),Ip=(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:E,dangerItemActiveBg:S,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({},Pp(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({},Pp(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:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:E},"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:`${Ct(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:`${Ct(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ct(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(",")}}}}}},Rp=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:Ct(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ct(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Tp=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:Ct(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Rp(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Rp(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Ct(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% - ${Ct(e.calc(d).div(2).equal())} - ${Ct(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:Ct(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({},Ci),{paddingInline:h})}}]},jp=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"}}}},Ap=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(${Ct(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ct(a)})`}}}}},Dp=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({},Ei(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:`${Ct(s)} ${Ct(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"}}}),jp(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ct(e.calc(o).mul(2).equal())} ${Ct(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},jp(e)),Ap(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}}}),Ap(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ct(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Ct(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ct(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ct(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ct(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Lp=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:E,fontSizeLG:S,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 Wo(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:E-C,collapsedIconSize:S,groupTitleFontSize:C,darkItemDisabledColor:new Wo(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 zp=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,s=o.useContext(Sp),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=th();let f;if(r){const e=o.isValidElement(i)&&"span"===i.type;f=o.createElement(o.Fragment,null,is(r,{className:h(o.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?i:o.createElement("span",{className:`${l}-title-content`},i))}else f=c&&!d.length&&i&&"string"==typeof i?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):o.createElement("span",{className:`${l}-title-content`},i);const p=o.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[g]=gs("Menu");return o.createElement(Sp.Provider,{value:p},o.createElement(Zh,Object.assign({},_e(e,["icon"]),{title:f,popupClassName:h(l,n,`${l}-${a||u}`),popupStyle:{zIndex:g}})))};var Bp=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 Fp(e){return null===e||!1===e}const Hp={item:_p,submenu:zp,divider:Op},Vp=e.forwardRef(((e,t)=>{var n;const r=o.useContext($p),i=r||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=o.useContext(jr),u=a(),{prefixCls:d,className:f,style:p,theme:g="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:b,siderCollapsed:y,rootClassName:x,mode:w,selectable:C,onClick:E,overflowedIndicatorPopupClassName:S}=e,k=_e(Bp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=ho("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==w),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&t(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),t.deprecated("items"in e&&!e.children,"children","items")}null===(n=i.validator)||void 0===n||n.call(i,{mode:w});const O=Gr((function(){var e;null==E||E.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),_=i.mode||w,$=null!=C?C:i.selectable,M=o.useMemo((()=>void 0!==y?y:b),[b,y]),N={horizontal:{motionName:`${u}-slide-up`},inline:js(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",d||i.prefixCls),I=as(P),[R,T,j]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=$i("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=ni(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=ni(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[Dp(w),Mp(w),Tp(w),Ip(w,"light"),Ip(C,"dark"),Np(w),ku(w),Ru(w,"slide-up"),Ru(w,"slide-down"),Fu(w,"zoom-big")]}),Lp,{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=h(`${P}-${g}`,null==c?void 0:c.className,f),D=o.useMemo((()=>{var e,t;if("function"==typeof m||Fp(m))return m||null;if("function"==typeof i.expandIcon||Fp(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||Fp(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const n=null!==(e=null!=m?m:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==c?void 0:c.expandIcon;return is(n,{className:h(`${P}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[m,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,P]),L=o.useMemo((()=>({prefixCls:P,inlineCollapsed:M||!1,direction:l,firstLevel:!0,theme:g,mode:_,disableMenuItemTitleTooltip:v})),[P,M,l,v,g]);return R(o.createElement($p.Provider,{value:null},o.createElement(Sp.Provider,{value:L},o.createElement(lp,Object.assign({getPopupContainer:s,overflowedIndicator:o.createElement(Ep,null),overflowedIndicatorPopupClassName:h(P,`${P}-${g}`,S),mode:_,selectable:$,onClick:O},k,{inlineCollapsed:M,style:Object.assign(Object.assign({},null==c?void 0:c.style),p),className:A,prefixCls:P,direction:l,defaultMotions:N,expandIcon:D,ref:t,rootClassName:h(x,T,i.rootClassName,j,I),_internalComponents:Hp})))))})),Wp=e.forwardRef(((t,n)=>{const r=e.useRef(null),i=o.useContext(bp);return e.useImperativeHandle(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),o.createElement(Vp,Object.assign({ref:r},t,i))}));function Xp(e){return ni(e,{inputAffixPadding:e.paddingXXS})}Wp.Item=_p,Wp.SubMenu=zp,Wp.Divider=Op,Wp.ItemGroup=tp,"production"!==process.env.NODE_ENV&&(Wp.displayName="Menu");const qp=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}},Up=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Yp=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({},Up(ni(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Gp=(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}}),Kp=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Gp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Zp=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Yp(e))}),Kp(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Kp(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Qp=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Jp=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Qp(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Qp(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Yp(e))}})}),eg=(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)}},tg=(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}}),ng=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},tg(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),og=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Yp(e))}),ng(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ng(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),rg=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ig=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:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},rg(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),rg(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:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),ag=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Ct(t)} ${Ct(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},sg=e=>({padding:`${Ct(e.paddingBlockSM)} ${Ct(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),lg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ct(e.paddingBlock)} ${Ct(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({},ag(e)),"&-sm":Object.assign({},sg(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),cg=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({},ag(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},sg(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 ${Ct(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ct(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ct(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:`${Ct(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ct(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}}}})}},ug=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({},Ei(e)),lg(e)),Zp(e)),og(e)),eg(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"}})}},dg=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 ${Ct(e.inputAffixPadding)}`}}}},fg=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({},lg(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}}}),dg(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}})}},hg=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ei(e)),cg(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}}},Jp(e)),ig(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}}}}},gg=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}}}}}},mg=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var vg=$i("Input",(e=>{const t=ni(e,Xp(e));return[ug(t),gg(t),fg(t),hg(t),pg(t),mg(t),Al(t)]}),qp,{resetFont:!1}),bg={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"},yg=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:bg}))},xg=o.forwardRef(yg);"production"!==process.env.NODE_ENV&&(xg.displayName="PlusOutlined");var wg=e.createContext(null),Cg={width:0,height:0,left:0,top:0};function Eg(e,t){var n=o.useRef(e),r=Be(o.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var Sg=Math.pow(.995,20);function kg(t){var n=Be(e.useState(0),2),o=n[0],r=n[1],i=e.useRef(0),a=e.useRef();return a.current=t,Mt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[o]),function(){i.current===o&&(i.current+=1,r(i.current))}}var Og={width:0,height:0,left:0,top:0,right:0};function _g(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function $g(e){return String(e).replace(/"/g,"TABS_DQ")}function Mg(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var Ng=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-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})),Pg=o.forwardRef((function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==M(a)||o.isValidElement(a)?s.right=a:s=a,"right"===r&&(n=s.right),"left"===r&&(n=s.left),n?o.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));"production"!==process.env.NODE_ENV&&(Pg.displayName="ExtraContent");var Ig=o.forwardRef((function(t,n){var r=t.prefixCls,i=t.id,a=t.tabs,s=t.locale,l=t.mobile,c=t.more,u=void 0===c?{}:c,d=t.style,f=t.className,g=t.editable,m=t.tabBarGutter,v=t.rtl,b=t.removeAriaLabel,y=t.onTabClick,x=t.getPopupContainer,w=t.popupClassName,C=Be(e.useState(!1),2),E=C[0],S=C[1],k=Be(e.useState(null),2),O=k[0],_=k[1],$=u.icon,M=void 0===$?"More":$,N="".concat(i,"-more-popup"),I="".concat(r,"-dropdown"),R=null!==O?"".concat(N,"-").concat(O):null,T=null==s?void 0:s.dropdownAriaLabel;var j=o.createElement(lp,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),S(!1)},prefixCls:"".concat(I,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[O],"aria-label":void 0!==T?T:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,a=e.key,s=e.label,l=Mg(t,r,g,n);return o.createElement(Ah,{key:a,id:"".concat(N,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:n},o.createElement("span",null,s),l&&o.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),g.onEdit("remove",{key:t,event:e})}(e,a)}},r||g.removeIcon||"×"))})));function A(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===O}))||0,o=t.length,r=0;r<o;r+=1){var i=t[n=(n+e+o)%o];if(!i.disabled)return void _(i.key)}}e.useEffect((function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[O]),e.useEffect((function(){E||_(null)}),[E]);var D=P({},v?"marginRight":"marginLeft",m);a.length||(D.visibility="hidden",D.order=1);var L=h(P({},"".concat(I,"-rtl"),v)),z=l?null:o.createElement(Wf,p({prefixCls:I,overlay:j,visible:!!a.length&&E,onVisibleChange:S,overlayClassName:h(L,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},u),o.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(i,"-more"),"aria-expanded":E,onKeyDown:function(e){var t=e.which;if(E)switch(t){case ss.UP:A(-1),e.preventDefault();break;case ss.DOWN:A(1),e.preventDefault();break;case ss.ESC:S(!1);break;case ss.SPACE:case ss.ENTER:null!==O&&y(O,e)}else[ss.DOWN,ss.SPACE,ss.ENTER].includes(t)&&(S(!0),e.preventDefault())}},M));return o.createElement("div",{className:h("".concat(r,"-nav-operations"),f),style:d,ref:n},z,o.createElement(Ng,{prefixCls:r,locale:s,editable:g}))})),Rg=o.memo(Ig,(function(e,t){return t.tabMoving})),Tg=function(e){var t=e.prefixCls,n=e.id,r=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,d=e.closable,f=e.renderWrapper,p=e.removeAriaLabel,g=e.editable,m=e.onClick,v=e.onFocus,b=e.style,y="".concat(t,"-tab"),x=Mg(d,c,g,l);function w(e){l||m(e)}var C=o.useMemo((function(){return u&&"string"==typeof s?o.createElement("span",null,s):s}),[s,u]),E=o.createElement("div",{key:a,"data-node-key":$g(a),className:h(y,P(P(P({},"".concat(y,"-with-remove"),x),"".concat(y,"-active"),r),"".concat(y,"-disabled"),l)),style:b,onClick:w},o.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(y,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),w(e)},onKeyDown:function(e){[ss.SPACE,ss.ENTER].includes(e.which)&&(e.preventDefault(),w(e))},onFocus:v},u&&o.createElement("span",{className:"".concat(y,"-icon")},u),s&&C),x&&o.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),g.onEdit("remove",{key:a,event:t})}},c||g.removeIcon||"×"));return f?f(E):E},jg=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]},Ag=function(e,t){return e[t?0:1]},Dg=o.forwardRef((function(t,n){var r,i,a,s,l,c=t.className,u=t.style,d=t.id,f=t.animated,g=t.activeKey,m=t.rtl,v=t.extra,b=t.editable,y=t.locale,x=t.tabPosition,w=t.tabBarGutter,C=t.children,E=t.onTabClick,S=t.onTabScroll,k=t.indicator,O=o.useContext(wg),_=O.prefixCls,$=O.tabs,M=e.useRef(null),N=e.useRef(null),I=e.useRef(null),T=e.useRef(null),j=e.useRef(null),A=e.useRef(null),D=e.useRef(null),L="top"===x||"bottom"===x,B=Eg(0,(function(e,t){L&&S&&S({direction:e>t?"left":"right"})})),F=Be(B,2),H=F[0],V=F[1],W=Eg(0,(function(e,t){!L&&S&&S({direction:e>t?"top":"bottom"})})),X=Be(W,2),q=X[0],U=X[1],Y=Be(e.useState([0,0]),2),G=Y[0],K=Y[1],Z=Be(e.useState([0,0]),2),Q=Z[0],J=Z[1],ee=Be(e.useState([0,0]),2),te=ee[0],ne=ee[1],oe=Be(e.useState([0,0]),2),re=oe[0],ie=oe[1],ae=(r=new Map,i=e.useRef([]),a=Be(e.useState({}),2)[1],s=e.useRef("function"==typeof r?r():r),l=kg((function(){var e=s.current;i.current.forEach((function(t){e=t(e)})),i.current=[],s.current=e,a({})})),[s.current,function(e){i.current.push(e),l()}]),se=Be(ae,2),le=se[0],ce=se[1],ue=function(t,n,o){return e.useMemo((function(){for(var e,o=new Map,r=n.get(null===(e=t[0])||void 0===e?void 0:e.key)||Cg,i=r.left+r.width,a=0;a<t.length;a+=1){var s,l=t[a].key,c=n.get(l);c||(c=n.get(null===(s=t[a-1])||void 0===s?void 0:s.key)||Cg);var u=o.get(l)||R({},c);u.right=i-u.left-u.width,o.set(l,u)}return o}),[t.map((function(e){return e.key})).join("_"),n,o])}($,le,Q[0]),de=Ag(G,L),fe=Ag(Q,L),he=Ag(te,L),pe=Ag(re,L),ge=de<fe+he,me=ge?de-pe:de-he,ve="".concat(_,"-nav-operations-hidden"),be=0,ye=0;function xe(e){return e<be?be:e>ye?ye:e}L&&m?(be=0,ye=Math.max(0,fe-me)):(be=Math.min(0,me-fe),ye=0);var we=e.useRef(null),Ce=Be(e.useState(),2),Ee=Ce[0],Se=Ce[1];function ke(){Se(Date.now())}function _e(){we.current&&clearTimeout(we.current)}!function(t,n){var r=Be(e.useState(),2),i=r[0],a=r[1],s=Be(e.useState(0),2),l=s[0],c=s[1],u=Be(e.useState(0),2),d=u[0],f=u[1],h=Be(e.useState(),2),p=h[0],g=h[1],m=e.useRef(),v=e.useRef(),b=e.useRef(null);b.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;a({x:n,y:o}),window.clearInterval(m.current)},onTouchMove:function(e){if(i){e.preventDefault();var t=e.touches[0],o=t.screenX,r=t.screenY;a({x:o,y:r});var s=o-i.x,u=r-i.y;n(s,u);var d=Date.now();c(d),f(d-l),g({x:s,y:u})}},onTouchEnd:function(){if(i&&(a(null),g(null),p)){var e=p.x/d,t=p.y/d,o=Math.abs(e),r=Math.abs(t);if(Math.max(o,r)<.1)return;var s=e,l=t;m.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(m.current):n(20*(s*=Sg),20*(l*=Sg))}),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"===v.current?t:o:i>a?(r=t,v.current="x"):(r=o,v.current="y"),n(-r,-r)&&e.preventDefault()}},o.useEffect((function(){function e(e){b.current.onTouchMove(e)}function n(e){b.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){b.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){b.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(T,(function(e,t){function n(e,t){e((function(e){return xe(e+t)}))}return!!ge&&(L?n(V,e):n(U,t),_e(),ke(),!0)})),e.useEffect((function(){return _e(),Ee&&(we.current=setTimeout((function(){Se(0)}),100)),_e}),[Ee]);var $e=function(t,n,o,r,i,a,s){var l,c,u,d=s.tabs,f=s.tabPosition,h=s.rtl;return["top","bottom"].includes(f)?(l="width",c=h?"right":"left",u=Math.abs(o)):(l="height",c="top",u=-o),e.useMemo((function(){if(!d.length)return[0,0];for(var e=d.length,o=e,r=0;r<e;r+=1){var i=t.get(d[r].key)||Og;if(i[c]+i[l]>u+n){o=r-1;break}}for(var a=0,s=e-1;s>=0;s-=1)if((t.get(d[s].key)||Og)[c]<u){a=s+1;break}return a>=o?[0,0]:[a,o]}),[t,n,r,i,a,u,f,d.map((function(e){return e.key})).join("_"),h])}(ue,me,L?H:q,fe,he,pe,R(R({},t),{},{tabs:$})),Me=Be($e,2),Ne=Me[0],Ie=Me[1],Re=Gr((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(L){var n=H;m?t.right<H?n=t.right:t.right+t.width>H+me&&(n=t.right+t.width-me):t.left<-H?n=-t.left:t.left+t.width>-H+me&&(n=-(t.left+t.width-me)),U(0),V(xe(n))}else{var o=q;t.top<-q?o=-t.top:t.top+t.height>-q+me&&(o=-(t.top+t.height-me)),V(0),U(xe(o))}})),Te={};"top"===x||"bottom"===x?Te[m?"marginRight":"marginLeft"]=w:Te.marginTop=w;var je=$.map((function(e,t){var n=e.key;return o.createElement(Tg,{id:d,prefixCls:_,key:n,tab:e,style:0===t?void 0:Te,closable:e.closable,editable:b,active:n===g,renderWrapper:C,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){E(n,e)},onFocus:function(){Re(n),ke(),T.current&&(m||(T.current.scrollLeft=0),T.current.scrollTop=0)}})})),Ae=function(){return ce((function(){var e,t=new Map,n=null===(e=j.current)||void 0===e?void 0:e.getBoundingClientRect();return $.forEach((function(e){var o,r=e.key,i=null===(o=j.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat($g(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=Be(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}))};e.useEffect((function(){Ae()}),[$.map((function(e){return e.key})).join("_")]);var Le=kg((function(){var e=jg(M),t=jg(N),n=jg(I);K([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=jg(D);ne(o);var r=jg(A);ie(r);var i=jg(j);J([i[0]-o[0],i[1]-o[1]]),Ae()})),ze=$.slice(0,Ne),Fe=$.slice(Ie+1),He=[].concat(Pe(ze),Pe(Fe)),Ve=ue.get(g),We=function(t){var n=t.activeTabOffset,o=t.horizontal,r=t.rtl,i=t.indicator,a=void 0===i?{}:i,s=a.size,l=a.align,c=void 0===l?"center":l,u=Be(e.useState(),2),d=u[0],f=u[1],h=e.useRef(),p=e.useCallback((function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e}),[s]);function g(){De.cancel(h.current)}return e.useEffect((function(){var e={};if(n)if(o){e.width=p(n.width);var t=r?"right":"left";"start"===c&&(e[t]=n[t]),"center"===c&&(e[t]=n[t]+n.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=p(n.height),"start"===c&&(e.top=n.top),"center"===c&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return g(),h.current=De((function(){f(e)})),g}),[n,o,r,c,p]),{style:d}}({activeTabOffset:Ve,horizontal:L,indicator:k,rtl:m}),Xe=We.style;e.useEffect((function(){Re()}),[g,be,ye,_g(Ve),_g(ue),L]),e.useEffect((function(){Le()}),[m]);var qe,Ue,Ye,Ge,Ke=!!He.length,Ze="".concat(_,"-nav-wrap");return L?m?(Ue=H>0,qe=H!==ye):(qe=H<0,Ue=H!==be):(Ye=q<0,Ge=q!==be),o.createElement(Oe,{onResize:Le},o.createElement("div",{ref:z(n,M),role:"tablist",className:h("".concat(_,"-nav"),c),style:u,onKeyDown:function(){ke()}},o.createElement(Pg,{ref:N,position:"left",extra:v,prefixCls:_}),o.createElement(Oe,{onResize:Le},o.createElement("div",{className:h(Ze,P(P(P(P({},"".concat(Ze,"-ping-left"),qe),"".concat(Ze,"-ping-right"),Ue),"".concat(Ze,"-ping-top"),Ye),"".concat(Ze,"-ping-bottom"),Ge)),ref:T},o.createElement(Oe,{onResize:Le},o.createElement("div",{ref:j,className:"".concat(_,"-nav-list"),style:{transform:"translate(".concat(H,"px, ").concat(q,"px)"),transition:Ee?"none":void 0}},je,o.createElement(Ng,{ref:D,prefixCls:_,locale:y,editable:b,style:R(R({},0===je.length?void 0:Te),{},{visibility:Ke?"hidden":null})}),o.createElement("div",{className:h("".concat(_,"-ink-bar"),P({},"".concat(_,"-ink-bar-animated"),f.inkBar)),style:Xe}))))),o.createElement(Rg,p({},t,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:A,prefixCls:_,tabs:He,className:!Ke&&ve,tabMoving:!!Ee})),o.createElement(Pg,{ref:I,position:"right",extra:v,prefixCls:_})))})),Lg=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,s=e.active,l=e.tabKey,c=e.children;return o.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:h(n,s&&"".concat(n,"-active"),r),ref:t},c)}));"production"!==process.env.NODE_ENV&&(Lg.displayName="TabPane");var zg=["renderTabBar"],Bg=["label","key"],Fg=function(e){var t=e.renderTabBar,n=tt(e,zg),r=o.useContext(wg).tabs;return t?t(R(R({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=tt(e,Bg);return o.createElement(Lg,p({tab:t,key:n,tabKey:n},r))}))}),Dg):o.createElement(Dg,n)};"production"!==process.env.NODE_ENV&&(Fg.displayName="TabNavListWrapper");var Hg=["key","forceRender","style","className","destroyInactiveTabPane"],Vg=function(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,s=o.useContext(wg),l=s.prefixCls,c=s.tabs,u=r.tabPane,d="".concat(l,"-tabpane");return o.createElement("div",{className:h("".concat(l,"-content-holder"))},o.createElement("div",{className:h("".concat(l,"-content"),"".concat(l,"-content-").concat(i),P({},"".concat(l,"-content-animated"),u))},c.map((function(e){var i=e.key,s=e.forceRender,l=e.style,c=e.className,f=e.destroyInactiveTabPane,g=tt(e,Hg),m=i===n;return o.createElement(ma,p({key:i,visible:m,forceRender:s,removeOnLeave:!(!a&&!f),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,a=e.className;return o.createElement(Lg,p({},g,{prefixCls:d,id:t,tabKey:i,animated:u,active:m,style:R(R({},l),r),className:h(c,a),ref:n}))}))}))))};var Wg=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Xg=0,qg=o.forwardRef((function(t,n){var r=t.id,i=t.prefixCls,a=void 0===i?"rc-tabs":i,s=t.className,l=t.items,c=t.direction,u=t.activeKey,d=t.defaultActiveKey,f=t.editable,g=t.animated,m=t.tabPosition,v=void 0===m?"top":m,b=t.tabBarGutter,y=t.tabBarStyle,x=t.tabBarExtraContent,w=t.locale,C=t.more,E=t.destroyInactiveTabPane,S=t.renderTabBar,k=t.onChange,O=t.onTabClick,_=t.onTabScroll,N=t.getPopupContainer,I=t.popupClassName,T=t.indicator,j=tt(t,Wg),A=o.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===M(e)&&"key"in e}))}),[l]),D="rtl"===c,L=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:R({inkBar:!0},"object"===M(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&$(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(g),z=Be(e.useState(!1),2),B=z[0],F=z[1];e.useEffect((function(){F(qu())}),[]);var H=Be(Qr((function(){var e;return null===(e=A[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),2),V=H[0],W=H[1],X=Be(e.useState((function(){return A.findIndex((function(e){return e.key===V}))})),2),q=X[0],U=X[1];e.useEffect((function(){var e,t=A.findIndex((function(e){return e.key===V}));-1===t&&(t=Math.max(0,Math.min(q,A.length-1)),W(null===(e=A[t])||void 0===e?void 0:e.key));U(t)}),[A.map((function(e){return e.key})).join("_"),V,q]);var Y=Be(Qr(null,{value:r}),2),G=Y[0],K=Y[1];e.useEffect((function(){r||(K("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":Xg)),Xg+=1)}),[]);var Z={id:G,activeKey:V,animated:L,tabPosition:v,rtl:D,mobile:B},Q=R(R({},Z),{},{editable:f,locale:w,more:C,tabBarGutter:b,onTabClick:function(e,t){null==O||O(e,t);var n=e!==V;W(e),n&&(null==k||k(e))},onTabScroll:_,extra:x,style:y,panes:null,getPopupContainer:N,popupClassName:I,indicator:T});return o.createElement(wg.Provider,{value:{tabs:A,prefixCls:a}},o.createElement("div",p({ref:n,id:r,className:h(a,"".concat(a,"-").concat(v),P(P(P({},"".concat(a,"-mobile"),B),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),D),s)},j),o.createElement(Fg,p({},Q,{renderTabBar:S})),o.createElement(Vg,p({destroyInactiveTabPane:E},Z,{animated:L}))))}));"production"!==process.env.NODE_ENV&&(qg.displayName="Tabs");const Ug={motionAppear:!1,motionEnter:!0,motionLeave:!0};var Yg=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 Gg=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}`}}}}},[Ru(e,"slide-up"),Ru(e,"slide-down")]]},Kg=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:`${Ct(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:Ct(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Ct(e.borderRadiusLG)} ${Ct(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Ct(e.borderRadiusLG)} ${Ct(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Ct(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ct(e.borderRadiusLG)} 0 0 ${Ct(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 ${Ct(e.borderRadiusLG)} ${Ct(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Zg=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ei(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:`${Ct(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({},Ci),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ct(e.paddingXXS)} ${Ct(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"}}})}})}},Qg=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:`${Ct(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:Ct(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ct(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:`${Ct(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Jg=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 ${Ct(e.borderRadius)} ${Ct(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Ct(e.borderRadius)} ${Ct(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ct(e.borderRadius)} ${Ct(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ct(e.borderRadius)} 0 0 ${Ct(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},em=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}},Oi(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}}}},tm=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:Ct(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ct(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ct(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"}}}}},nm=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({},Ei(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 ${Ct(e.paddingXS)}`,background:"transparent",border:`${Ct(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Ct(e.borderRadiusLG)} ${Ct(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}},Oi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),em(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 om=$i("Tabs",(e=>{const t=ni(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ct(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ct(e.horizontalItemGutter)}`});return[Jg(t),tm(t),Qg(t),Zg(t),Kg(t),nm(t),Gg(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 rm=()=>null;"production"!==process.env.NODE_ENV&&(rm.displayName="DeprecatedTabPane");var im=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 am=e=>{var t,n,r,i,a,s,l,c,u,d,f;const{type:p,className:g,rootClassName:m,size:v,onEdit:b,hideAdd:y,centered:x,addIcon:C,removeIcon:E,moreIcon:S,more:k,popupClassName:O,children:_,items:$,animated:M,style:N,indicatorSize:P,indicator:I}=e,R=im(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:T}=R,{direction:j,tabs:A,getPrefixCls:D,getPopupContainer:L}=o.useContext(jr),z=D("tabs",T),B=as(z),[F,H,V]=om(z,B);let W;"editable-card"===p&&(W={onEdit:(e,t)=>{let{key:n,event:o}=t;null==b||b("add"===e?o:n,e)},removeIcon:null!==(t=null!=E?E:null==A?void 0:A.removeIcon)&&void 0!==t?t:o.createElement(Ja,null),addIcon:(null!=C?C:null==A?void 0:A.addIcon)||o.createElement(xg,null),showAdd:!0!==y});const X=D();if("production"!==process.env.NODE_ENV){const t=ho("Tabs");"production"!==process.env.NODE_ENV&&t(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&t(!(P||(null==A?void 0:A.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const q=Us(v),U=function(e,t){"production"!==process.env.NODE_ENV&&ho("Tabs").deprecated(!t,"Tabs.TabPane","items");if(e)return e;const n=w(t).map((e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=Yg(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(n)}($,_),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({},Ug),{motionName:As(e,"switch")})),t}(z,M),G=Object.assign(Object.assign({},null==A?void 0:A.style),N),K={align:null!==(n=null==I?void 0:I.align)&&void 0!==n?n:null===(r=null==A?void 0:A.indicator)||void 0===r?void 0:r.align,size:null!==(l=null!==(a=null!==(i=null==I?void 0:I.size)&&void 0!==i?i:P)&&void 0!==a?a:null===(s=null==A?void 0:A.indicator)||void 0===s?void 0:s.size)&&void 0!==l?l:null==A?void 0:A.indicatorSize};return F(o.createElement(qg,Object.assign({direction:j,getPopupContainer:L},R,{items:U,className:h({[`${z}-${q}`]:q,[`${z}-card`]:["card","editable-card"].includes(p),[`${z}-editable-card`]:"editable-card"===p,[`${z}-centered`]:x},null==A?void 0:A.className,g,m,H,V,B),popupClassName:h(O,H,V,B),style:G,editable:W,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(c=null==A?void 0:A.more)||void 0===c?void 0:c.icon)&&void 0!==u?u:null==A?void 0:A.moreIcon)&&void 0!==d?d:S)&&void 0!==f?f:o.createElement(Ep,null),transitionName:`${X}-slide-up`},k),prefixCls:z,animated:Y,indicator:K})))};function sm(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 lm(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=sm(t,e,o)):n(r=sm(t,e,""))}}am.TabPane=rm,"production"!==process.env.NODE_ENV&&(am.displayName="Tabs");var cm=e.forwardRef((function(t,n){var o,r,i=t.inputElement,a=t.children,s=t.prefixCls,l=t.prefix,c=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,g=t.style,m=t.disabled,v=t.readOnly,b=t.focused,y=t.triggerFocus,x=t.allowClear,w=t.value,C=t.handleReset,E=t.hidden,S=t.classes,k=t.classNames,O=t.dataAttrs,_=t.styles,$=t.components,N=t.onClear,I=null!=a?a:i,T=(null==$?void 0:$.affixWrapper)||"span",j=(null==$?void 0:$.groupWrapper)||"span",A=(null==$?void 0:$.wrapper)||"span",D=(null==$?void 0:$.groupAddon)||"span",L=e.useRef(null),z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(t),B=e.cloneElement(I,{value:w,className:h(I.props.className,!z&&(null==k?void 0:k.variant))||null}),F=e.useRef(null);if(e.useImperativeHandle(n,(function(){return{nativeElement:F.current||L.current}})),z){var H=null;if(x){var V=!m&&!v&&w,W="".concat(s,"-clear-icon"),X="object"===M(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";H=e.createElement("span",{onClick:function(e){null==C||C(e),null==N||N()},onMouseDown:function(e){return e.preventDefault()},className:h(W,P(P({},"".concat(W,"-hidden"),!V),"".concat(W,"-has-suffix"),!!c)),role:"button",tabIndex:-1},X)}var q="".concat(s,"-affix-wrapper"),U=h(q,P(P(P(P(P({},"".concat(s,"-disabled"),m),"".concat(q,"-disabled"),m),"".concat(q,"-focused"),b),"".concat(q,"-readonly"),v),"".concat(q,"-input-with-clear-btn"),c&&x&&w),null==S?void 0:S.affixWrapper,null==k?void 0:k.affixWrapper,null==k?void 0:k.variant),Y=(c||x)&&e.createElement("span",{className:h("".concat(s,"-suffix"),null==k?void 0:k.suffix),style:null==_?void 0:_.suffix},H,c);B=e.createElement(T,p({className:U,style:null==_?void 0:_.affixWrapper,onClick:function(e){var t;null!==(t=L.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:L}),l&&e.createElement("span",{className:h("".concat(s,"-prefix"),null==k?void 0:k.prefix),style:null==_?void 0:_.prefix},l),B,Y)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(t)){var G="".concat(s,"-group"),K="".concat(G,"-addon"),Z="".concat(G,"-wrapper"),Q=h("".concat(s,"-wrapper"),G,null==S?void 0:S.wrapper,null==k?void 0:k.wrapper),J=h(Z,P({},"".concat(Z,"-disabled"),m),null==S?void 0:S.group,null==k?void 0:k.groupWrapper);B=e.createElement(j,{className:J,ref:F},e.createElement(A,{className:Q},u&&e.createElement(D,{className:K},u),B,d&&e.createElement(D,{className:K},d)))}return e.cloneElement(B,{className:h(null===(o=B.props)||void 0===o?void 0:o.className,f)||null,style:R(R({},null===(r=B.props)||void 0===r?void 0:r.style),g),hidden:E})})),um=["show"];function dm(e,t){return o.useMemo((function(){var n={};t&&(n.show="object"===M(t)&&t.formatter?t.formatter:!!t);var o=n=R(R({},n),e),r=o.show,i=tt(o,um);return R(R({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var fm=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],hm=e.forwardRef((function(t,n){var o=t.autoComplete,r=t.onChange,i=t.onFocus,a=t.onBlur,s=t.onPressEnter,l=t.onKeyDown,c=t.onKeyUp,u=t.prefixCls,d=void 0===u?"rc-input":u,f=t.disabled,g=t.htmlSize,m=t.className,v=t.maxLength,b=t.suffix,y=t.showCount,x=t.count,w=t.type,C=void 0===w?"text":w,E=t.classes,S=t.classNames,k=t.styles,O=t.onCompositionStart,_=t.onCompositionEnd,$=tt(t,fm),M=Be(e.useState(!1),2),N=M[0],I=M[1],T=e.useRef(!1),j=e.useRef(!1),A=e.useRef(null),D=e.useRef(null),L=function(e){A.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)}}}}(A.current,e)},z=Be(Qr(t.defaultValue,{value:t.value}),2),B=z[0],F=z[1],H=null==B?"":String(B),V=Be(e.useState(null),2),W=V[0],X=V[1],q=dm(x,y),U=q.max||v,Y=q.strategy(H),G=!!U&&Y>U;e.useImperativeHandle(n,(function(){var e;return{focus:L,blur:function(){var e;null===(e=A.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=A.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=A.current)||void 0===e||e.select()},input:A.current,nativeElement:(null===(e=D.current)||void 0===e?void 0:e.nativeElement)||A.current}})),e.useEffect((function(){I((function(e){return(!e||!f)&&e}))}),[f]);var K=function(e,t,n){var o,i,a=t;if(!T.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max)t!==(a=q.exceedFormatter(t,{max:q.max}))&&X([(null===(o=A.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=A.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;F(a),A.current&&lm(A.current,e,r,a)};e.useEffect((function(){var e;W&&(null===(e=A.current)||void 0===e||e.setSelectionRange.apply(e,Pe(W)))}),[W]);var Z,Q=function(e){K(e,e.target.value,{source:"change"})},J=function(e){T.current=!1,K(e,e.currentTarget.value,{source:"compositionEnd"}),null==_||_(e)},ee=function(e){s&&"Enter"===e.key&&!j.current&&(j.current=!0,s(e)),null==l||l(e)},te=function(e){"Enter"===e.key&&(j.current=!1),null==c||c(e)},ne=function(e){I(!0),null==i||i(e)},oe=function(e){I(!1),null==a||a(e)},re=G&&"".concat(d,"-out-of-range");return e.createElement(cm,p({},$,{prefixCls:d,className:h(m,re),handleReset:function(e){F(""),L(),A.current&&lm(A.current,e,r)},value:H,focused:N,triggerFocus:L,suffix:function(){var t=Number(U)>0;if(b||q.show){var n=q.showFormatter?q.showFormatter({value:H,count:Y,maxLength:U}):"".concat(Y).concat(t?" / ".concat(U):"");return e.createElement(e.Fragment,null,q.show&&e.createElement("span",{className:h("".concat(d,"-show-count-suffix"),P({},"".concat(d,"-show-count-has-suffix"),!!b),null==S?void 0:S.count),style:R({},null==k?void 0:k.count)},n),b)}return null}(),disabled:f,classes:E,classNames:S,styles:k}),(Z=_e(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),e.createElement("input",p({autoComplete:o},Z,{onChange:Q,onFocus:ne,onBlur:oe,onKeyDown:ee,onKeyUp:te,className:h(d,P({},"".concat(d,"-disabled"),f),null==S?void 0:S.input),style:null==k?void 0:k.input,ref:A,size:g,type:C,onCompositionStart:function(e){T.current=!0,null==O||O(e)},onCompositionEnd:J}))))}));const pm=t=>{let n;return"object"==typeof t&&(null==t?void 0:t.clearIcon)?n=t:t&&(n={clearIcon:e.createElement(Ka,null)}),n};function gm(t,n){const o=e.useRef([]),r=()=>{o.current.push(setTimeout((()=>{var e,n,o,r;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=t.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=t.current)||void 0===r||r.input.removeAttribute("value"))})))};return e.useEffect((()=>(n&&r(),()=>o.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var mm=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 vm=e.forwardRef(((t,n)=>{var o;const{prefixCls:r,bordered:i=!0,status:a,size:s,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:g,className:m,style:v,styles:b,rootClassName:y,onChange:x,classNames:w,variant:C}=t,E=mm(t,["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:e}=ho("Input");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:S,direction:k,input:O}=e.useContext(jr),_=S("input",r),$=e.useRef(null),M=as(_),[N,P,I]=vg(_,M),{compactSize:R,compactItemClassnames:T}=Gs(_,k),j=Us((e=>{var t;return null!==(t=null!=s?s:R)&&void 0!==t?t:e})),A=e.useContext(Lr),D=null!=l?l:A,{status:z,hasFeedback:B,feedbackIcon:F}=e.useContext(yu),H=Rd(z,a),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(t)||!!B,W=e.useRef(V);if("production"!==process.env.NODE_ENV){const t=ho("Input");e.useEffect((()=>{var e;V&&!W.current&&"production"!==process.env.NODE_ENV&&t(document.activeElement===(null===(e=$.current)||void 0===e?void 0:e.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"),W.current=V}),[V])}const X=gm($,!0),q=(B||d)&&e.createElement(e.Fragment,null,d,B&&F),U=pm(null!=f?f:null==O?void 0:O.allowClear),[Y,G]=Td("input",C,i);return N(e.createElement(hm,Object.assign({ref:L(n,$),prefixCls:_,autoComplete:null==O?void 0:O.autoComplete},E,{disabled:D,onBlur:e=>{X(),null==c||c(e)},onFocus:e=>{X(),null==u||u(e)},style:Object.assign(Object.assign({},null==O?void 0:O.style),v),styles:Object.assign(Object.assign({},null==O?void 0:O.styles),b),suffix:q,allowClear:U,className:h(m,y,I,M,T,null==O?void 0:O.className),onChange:e=>{X(),null==x||x(e)},addonBefore:g&&e.createElement(Cu,{form:!0,space:!0},g),addonAfter:p&&e.createElement(Cu,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},w),null==O?void 0:O.classNames),{input:h({[`${_}-sm`]:"small"===j,[`${_}-lg`]:"large"===j,[`${_}-rtl`]:"rtl"===k},null==w?void 0:w.input,null===(o=null==O?void 0:O.classNames)||void 0===o?void 0:o.input,P),variant:h({[`${_}-${Y}`]:G},Id(_,H)),affixWrapper:h({[`${_}-affix-wrapper-sm`]:"small"===j,[`${_}-affix-wrapper-lg`]:"large"===j,[`${_}-affix-wrapper-rtl`]:"rtl"===k},P),wrapper:h({[`${_}-group-rtl`]:"rtl"===k},P),groupWrapper:h({[`${_}-group-wrapper-sm`]:"small"===j,[`${_}-group-wrapper-lg`]:"large"===j,[`${_}-group-wrapper-rtl`]:"rtl"===k,[`${_}-group-wrapper-${Y}`]:G},Id(`${_}-group-wrapper`,H,B),P)})})))}));"production"!==process.env.NODE_ENV&&(vm.displayName="Input");const bm=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 ym=$i(["Input","OTP"],(e=>{const t=ni(e,Xp(e));return[bm(t)]}),qp),xm=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 wm=o.forwardRef(((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:a,mask:s}=e,l=xm(e,["value","onChange","onActiveChange","index","mask"]),c=n&&"string"==typeof s?s:n,u=o.useRef(null);o.useImperativeHandle(t,(()=>u.current));const d=()=>{De((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return o.createElement(vm,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||n||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===s?"password":"text"}))}));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};function Em(e){return(e||"").split("")}const Sm=o.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:s,onChange:l,formatter:c,variant:u,disabled:d,status:f,autoFocus:p,mask:g}=e,m=Cm(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=ho("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof g&&g.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:v,direction:b}=o.useContext(jr),y=v("otp",n),x=ns(m,{aria:!0,data:!0,attr:!0}),w=as(y),[C,E,S]=ym(y,w),k=Us((e=>null!=i?i:e)),O=o.useContext(yu),_=Rd(O.status,f),$=o.useMemo((()=>Object.assign(Object.assign({},O),{status:_,hasFeedback:!1,feedbackIcon:null})),[O,_]),M=o.useRef(null),N=o.useRef({});o.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=N.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=N.current[t])||void 0===e||e.blur()},nativeElement:M.current})));const P=e=>c?c(e):e,[I,R]=o.useState(Em(P(a||"")));o.useEffect((()=>{void 0!==s&&R(Em(s))}),[s]);const T=Gr((e=>{R(e),l&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>I[t]!==e))&&l(e.join(""))})),j=Gr(((e,t)=>{let n=Pe(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(Em(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=Em(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=N.current[i])||void 0===n||n.focus()),T(o)},D=e=>{var t;null===(t=N.current[e])||void 0===t||t.focus()},L={variant:u,disabled:d,status:_,mask:g};return C(o.createElement("div",Object.assign({},x,{ref:M,className:h(y,{[`${y}-sm`]:"small"===k,[`${y}-lg`]:"large"===k,[`${y}-rtl`]:"rtl"===b},S,E)}),o.createElement(yu.Provider,{value:$},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,r=I[t]||"";return o.createElement(wm,Object.assign({ref:e=>{N.current[t]=e},key:n,index:t,size:k,htmlSize:1,className:`${y}-input`,onChange:A,value:r,onActiveChange:D,autoFocus:0===t&&p},L))})))))}));var km={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"},Om=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:km}))},_m=o.forwardRef(Om);"production"!==process.env.NODE_ENV&&(_m.displayName="EyeInvisibleOutlined");var $m={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"},Mm=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:$m}))},Nm=o.forwardRef(Mm);"production"!==process.env.NODE_ENV&&(Nm.displayName="EyeOutlined");var Pm=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 Im=e=>e?o.createElement(Nm,null):o.createElement(_m,null),Rm={click:"onClick",hover:"onMouseOver"},Tm=o.forwardRef(((t,n)=>{const{disabled:r,action:i="click",visibilityToggle:a=!0,iconRender:s=Im}=t,l="object"==typeof a&&void 0!==a.visible,[c,u]=e.useState((()=>!!l&&a.visible)),d=e.useRef(null);o.useEffect((()=>{l&&u(a.visible)}),[l,a]);const f=gm(d),p=()=>{r||(c&&f(),u((e=>{var t;const n=!e;return"object"==typeof a&&(null===(t=a.onVisibleChange)||void 0===t||t.call(a,n)),n})))},{className:g,prefixCls:m,inputPrefixCls:v,size:b}=t,y=Pm(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=o.useContext(jr),w=x("input",v),C=x("input-password",m),E=a&&(e=>{const t=Rm[i]||"",n=s(c),r={[t]:p,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(n)?n:o.createElement("span",null,n),r)})(C),S=h(C,g,{[`${C}-${b}`]:!!b}),k=Object.assign(Object.assign({},_e(y,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:S,prefixCls:w,suffix:E});return b&&(k.size=b),o.createElement(vm,Object.assign({ref:L(n,d)},k))}));"production"!==process.env.NODE_ENV&&(Tm.displayName="Input.Password");var jm=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 Am=o.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:m}=e,v=jm(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:y}=o.useContext(jr),x=o.useRef(!1),w=b("input-search",n),C=b("input",r),{compactSize:E}=Gs(w,y),S=Us((e=>{var t;return null!==(t=null!=a?a:E)&&void 0!==t?t:e})),k=o.useRef(null),O=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},_=e=>{var t,n;f&&f(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},$="boolean"==typeof l?o.createElement(Bd,null):null,M=`${w}-button`;let N;const P=l||{},I=P.type&&!0===P.type.__ANT_BUTTON;N=I||"button"===P.type?is(P,Object.assign({onMouseDown:O,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),_(e)},key:"enterButton"},I?{className:M,size:S}:{})):o.createElement(Vl,{className:M,type:l?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:O,onClick:_,loading:u,icon:$},l),c&&(N=[N,is(c,{key:"addonAfter"})]);const R=h(w,{[`${w}-rtl`]:"rtl"===y,[`${w}-${S}`]:!!S,[`${w}-with-button`]:!!l},i);return o.createElement(vm,Object.assign({ref:L(k,t),onPressEnter:e=>{x.current||u||_(e)}},v,{size:S,onCompositionStart:e=>{x.current=!0,null==g||g(e)},onCompositionEnd:e=>{x.current=!1,null==m||m(e)},prefixCls:C,addonAfter:N,suffix:s,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&&(Am.displayName="Search");var Dm,Lm=["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"],zm={};function Bm(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;Dm||((Dm=document.createElement("textarea")).setAttribute("tab-index","-1"),Dm.setAttribute("aria-hidden","true"),document.body.appendChild(Dm)),e.getAttribute("wrap")?Dm.setAttribute("wrap",e.getAttribute("wrap")):Dm.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&&zm[n])return zm[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:Lm.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(zm[n]=s),s}(e,t),i=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;Dm.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")),Dm.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=Dm.scrollHeight;if("border-box"===s?f+=a:"content-box"===s&&(f-=i),null!==n||null!==o){Dm.value=" ";var h=Dm.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 Fm=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Hm=o.forwardRef((function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,s=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange,g=n.onInternalAutoSize,m=tt(n,Fm),v=Be(Qr(i,{value:a,postState:function(e){return null!=e?e:""}}),2),b=v[0],y=v[1],x=o.useRef();o.useImperativeHandle(t,(function(){return{textArea:x.current}}));var w=Be(o.useMemo((function(){return s&&"object"===M(s)?[s.minRows,s.maxRows]:[]}),[s]),2),C=w[0],E=w[1],S=!!s,k=Be(o.useState(2),2),O=k[0],_=k[1],$=Be(o.useState(),2),N=$[0],I=$[1],T=function(){_(0),"test"===process.env.NODE_ENV&&(null==g||g())};$t((function(){S&&T()}),[a,C,E,S]),$t((function(){if(0===O)_(1);else if(1===O){var e=Bm(x.current,!1,C,E);_(2),I(e)}else!function(){try{if(document.activeElement===x.current){var e=x.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;x.current.setSelectionRange(t,n),x.current.scrollTop=o}}catch(e){}}()}),[O]);var j=o.useRef(),A=function(){De.cancel(j.current)};o.useEffect((function(){return A}),[]);var D=S?N:null,L=R(R({},u),D);return 0!==O&&1!==O||(L.overflowY="hidden",L.overflowX="hidden"),o.createElement(Oe,{onResize:function(e){2===O&&(null==l||l(e),s&&(A(),j.current=De((function(){T()}))))},disabled:!(s||l)},o.createElement("textarea",p({},m,{ref:x,style:L,className:h(r,c,P({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:function(e){y(e.target.value),null==f||f(e)}})))})),Vm=["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"],Wm=e.forwardRef((function(t,n){var o,r=t.defaultValue,i=t.value,a=t.onFocus,s=t.onBlur,l=t.onChange,c=t.allowClear,u=t.maxLength,d=t.onCompositionStart,f=t.onCompositionEnd,g=t.suffix,m=t.prefixCls,v=void 0===m?"rc-textarea":m,b=t.showCount,y=t.count,x=t.className,w=t.style,C=t.disabled,E=t.hidden,S=t.classNames,k=t.styles,O=t.onResize,_=t.onClear,$=t.onPressEnter,M=t.readOnly,N=t.autoSize,I=t.onKeyDown,T=tt(t,Vm),j=Be(Qr(r,{value:i,defaultValue:r}),2),A=j[0],D=j[1],L=null==A?"":String(A),z=Be(e.useState(!1),2),B=z[0],F=z[1],H=e.useRef(!1),V=Be(e.useState(null),2),W=V[0],X=V[1],q=e.useRef(null),U=e.useRef(null),Y=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},G=function(){Y().focus()};e.useImperativeHandle(n,(function(){var e;return{resizableTextArea:U.current,focus:G,blur:function(){Y().blur()},nativeElement:(null===(e=q.current)||void 0===e?void 0:e.nativeElement)||Y()}})),e.useEffect((function(){F((function(e){return!C&&e}))}),[C]);var K=Be(e.useState(null),2),Z=K[0],Q=K[1];e.useEffect((function(){var e;Z&&(e=Y()).setSelectionRange.apply(e,Pe(Z))}),[Z]);var J,ee=dm(y,b),te=null!==(o=ee.max)&&void 0!==o?o:u,ne=Number(te)>0,oe=ee.strategy(L),re=!!te&&oe>te,ie=function(e,t){var n=t;!H.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Q([Y().selectionStart||0,Y().selectionEnd||0]),D(n),lm(e.currentTarget,e,l,n)},ae=g;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:L,count:oe,maxLength:te}):"".concat(oe).concat(ne?" / ".concat(te):""),ae=e.createElement(e.Fragment,null,ae,e.createElement("span",{className:h("".concat(v,"-data-count"),null==S?void 0:S.count),style:null==k?void 0:k.count},J)));var se=!N&&!b&&!c;return e.createElement(cm,{ref:q,value:L,allowClear:c,handleReset:function(e){D(""),G(),lm(Y(),e,l)},suffix:ae,prefixCls:v,classNames:R(R({},S),{},{affixWrapper:h(null==S?void 0:S.affixWrapper,P(P({},"".concat(v,"-show-count"),b),"".concat(v,"-textarea-allow-clear"),c))}),disabled:C,focused:B,className:h(x,re&&"".concat(v,"-out-of-range")),style:R(R({},w),W&&!se?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:E,readOnly:M,onClear:_},e.createElement(Hm,p({},T,{autoSize:N,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&$&&$(e),null==I||I(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){F(!0),null==a||a(e)},onBlur:function(e){F(!1),null==s||s(e)},onCompositionStart:function(e){H.current=!0,null==d||d(e)},onCompositionEnd:function(e){H.current=!1,ie(e,e.currentTarget.value),null==f||f(e)},className:h(null==S?void 0:S.textarea),style:R(R({},null==k?void 0:k.textarea),{},{resize:null==w?void 0:w.resize}),disabled:C,prefixCls:v,onResize:function(e){var t;null==O||O(e),null!==(t=Y())&&void 0!==t&&t.style.height&&X(!0)},ref:U,readOnly:M})))})),Xm=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 qm=e.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,bordered:a=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:f,className:p,style:g,styles:m,variant:v}=e,b=Xm(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=ho("TextArea");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:y,direction:x,textArea:w}=o.useContext(jr),C=Us(s),E=o.useContext(Lr),S=null!=l?l:E,{status:k,hasFeedback:O,feedbackIcon:_}=o.useContext(yu),$=Rd(k,c),M=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=M.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=M.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=M.current)||void 0===e?void 0:e.blur()}}}));const N=y("input",i),P=as(N),[I,R,T]=vg(N,P),[j,A]=Td("textArea",v,a),D=pm(null!=u?u:null==w?void 0:w.allowClear);return I(o.createElement(Wm,Object.assign({autoComplete:null==w?void 0:w.autoComplete},b,{style:Object.assign(Object.assign({},null==w?void 0:w.style),g),styles:Object.assign(Object.assign({},null==w?void 0:w.styles),m),disabled:S,allowClear:D,className:h(T,P,p,f,null==w?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==w?void 0:w.classNames),{textarea:h({[`${N}-sm`]:"small"===C,[`${N}-lg`]:"large"===C},R,null==d?void 0:d.textarea,null===(n=null==w?void 0:w.classNames)||void 0===n?void 0:n.textarea),variant:h({[`${N}-${j}`]:A},Id(N,$)),affixWrapper:h(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:"rtl"===x,[`${N}-affix-wrapper-sm`]:"small"===C,[`${N}-affix-wrapper-lg`]:"large"===C,[`${N}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},R)}),prefixCls:N,suffix:O&&o.createElement("span",{className:`${N}-textarea-suffix`},_),ref:M})))})),Um=vm;function Ym(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function Gm(e,n,o,r){var i=t.unstable_batchedUpdates?function(e){t.unstable_batchedUpdates(o,e)}:o;return null!=e&&e.addEventListener&&e.addEventListener(n,i,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(n,i,r)}}}Um.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(jr),{prefixCls:i,className:a}=t,s=n("input-group",i),l=n("input"),[c,u]=vg(l),d=h(s,{[`${s}-lg`]:"large"===t.size,[`${s}-sm`]:"small"===t.size,[`${s}-compact`]:t.compact,[`${s}-rtl`]:"rtl"===r},u,a),f=e.useContext(yu),p=e.useMemo((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);if("production"!==process.env.NODE_ENV){ho("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return c(o.createElement("span",{className:d,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},o.createElement(yu.Provider,{value:p},t.children)))},Um.Search=Am,Um.TextArea=qm,Um.Password=Tm,Um.OTP=Sm;var Km=o.createContext(null),Zm=function(t){var n=t.visible,r=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,p=t.transform,g=t.count,m=t.scale,v=t.minScale,b=t.maxScale,y=t.closeIcon,x=t.onSwitchLeft,w=t.onSwitchRight,C=t.onClose,E=t.onZoomIn,S=t.onZoomOut,k=t.onRotateRight,O=t.onRotateLeft,_=t.onFlipX,$=t.onFlipY,M=t.onReset,N=t.toolbarRender,I=t.zIndex,T=t.image,j=e.useContext(Km),A=l.rotateLeft,D=l.rotateRight,L=l.zoomIn,z=l.zoomOut,B=l.close,F=l.left,H=l.right,V=l.flipX,W=l.flipY,X="".concat(a,"-operations-operation");o.useEffect((function(){var e=function(e){e.keyCode===ss.ESC&&C()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var q=[{icon:W,onClick:$,type:"flipY"},{icon:V,onClick:_,type:"flipX"},{icon:A,onClick:O,type:"rotateLeft"},{icon:D,onClick:k,type:"rotateRight"},{icon:z,onClick:S,type:"zoomOut",disabled:m<=v},{icon:L,onClick:E,type:"zoomIn",disabled:m===b}].map((function(e){var t,n=e.icon,r=e.onClick,i=e.type,s=e.disabled;return o.createElement("div",{className:h(X,(t={},P(t,"".concat(a,"-operations-operation-").concat(i),!0),P(t,"".concat(a,"-operations-operation-disabled"),!!s),t)),onClick:r,key:i},n)})),U=o.createElement("div",{className:"".concat(a,"-operations")},q);return o.createElement(ma,{visible:n,motionName:r},(function(e){var t=e.className,n=e.style;return o.createElement(Zl,{open:!0,getContainer:null!=i?i:document.body},o.createElement("div",{className:h("".concat(a,"-operations-wrapper"),t,s),style:R(R({},n),{},{zIndex:I})},null===y?null:o.createElement("button",{className:"".concat(a,"-close"),onClick:C},y||B),u&&o.createElement(o.Fragment,null,o.createElement("div",{className:h("".concat(a,"-switch-left"),P({},"".concat(a,"-switch-left-disabled"),0===f)),onClick:x},F),o.createElement("div",{className:h("".concat(a,"-switch-right"),P({},"".concat(a,"-switch-right-disabled"),f===g-1)),onClick:w},H)),o.createElement("div",{className:"".concat(a,"-footer")},d&&o.createElement("div",{className:"".concat(a,"-progress")},c?c(f+1,g):"".concat(f+1," / ").concat(g)),N?N(U,R(R({icons:{flipYIcon:q[0],flipXIcon:q[1],rotateLeftIcon:q[2],rotateRightIcon:q[3],zoomOutIcon:q[4],zoomInIcon:q[5]},actions:{onFlipY:$,onFlipX:_,onRotateLeft:O,onRotateRight:k,onZoomOut:S,onZoomIn:E,onReset:M,onClose:C},transform:p},j?{current:f,total:g}:{}),{},{image:T})):U)))}))},Qm={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Jm(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return P({},e,i);if(t<0&&r<o)return P({},e,-i)}else if(t<0||r>o)return P({},e,t<0?i:-i);return{}}function ev(e,t,n,o){var r=Ym(),i=r.width,a=r.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=R(R({},Jm("x",n,e,i)),Jm("y",o,t,a))),s}function tv(t){var n=t.src,o=t.isCustomPlaceholder,r=t.fallback,i=Be(e.useState(o?"loading":"normal"),2),a=i[0],s=i[1],l=e.useRef(!1),c="error"===a;e.useEffect((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(n).then((function(t){!t&&e&&s("error")})),function(){e=!1}}),[n]),e.useEffect((function(){o&&!l.current?s("loading"):c&&s("normal")}),[n]);var u=function(){s("normal")};return[function(e){l.current=!1,"loading"===a&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(l.current=!0,u())},c&&r?{src:r}:{onLoad:u,src:n},a]}function nv(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function ov(t,n,o,r,i,a,s){var l=i.rotate,c=i.scale,u=i.x,d=i.y,f=Be(e.useState(!1),2),h=f[0],p=f[1],g=e.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),m=function(e){g.current=R(R({},g.current),e)};return e.useEffect((function(){var e;return o&&n&&(e=Gm(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[o,n]),{isTouching:h,onTouchStart:function(e){if(n){e.stopPropagation(),p(!0);var t=e.touches,o=void 0===t?[]:t;o.length>1?m({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):m({point1:{x:o[0].clientX-u,y:o[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=g.current,r=o.point1,i=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=nv(e,n),i=nv(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,i,c,u),f=Be(d,2),h=f[0],p=f[1],v=nv(c,u)/nv(r,i);s(v,"touchZoom",h,p,!0),m({point1:c,point2:u,eventType:"touchZoom"})}else"move"===l&&(a({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),m({eventType:"move"}))},onTouchEnd:function(){if(o){if(h&&p(!1),m({eventType:"none"}),r>c)return a({x:0,y:0,scale:r},"touchZoom");var e=t.current.offsetWidth*c,n=t.current.offsetHeight*c,i=t.current.getBoundingClientRect(),s=i.left,u=i.top,d=l%180!=0,f=ev(d?n:e,d?e:n,s,u);f&&a(R({},f),"dragRebound")}}}}var rv=["fallback","src","imgRef"],iv=["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"],av=function(t){var n=t.fallback,o=t.src,r=t.imgRef,i=tt(t,rv),a=Be(tv({src:o,fallback:n}),2),s=a[0],l=a[1];return e.createElement("img",p({ref:function(e){r.current=e,s(e)}},i,l))},sv=function(t){var n=t.prefixCls,o=t.src,r=t.alt,i=t.imageInfo,a=t.fallback,s=t.movable,l=void 0===s||s,c=t.onClose,u=t.visible,d=t.icons,f=void 0===d?{}:d,g=t.rootClassName,m=t.closeIcon,v=t.getContainer,b=t.current,y=void 0===b?0:b,x=t.count,w=void 0===x?1:x,C=t.countRender,E=t.scaleStep,k=void 0===E?.5:E,O=t.minScale,_=void 0===O?1:O,$=t.maxScale,M=void 0===$?50:$,N=t.transitionName,I=void 0===N?"zoom":N,T=t.maskTransitionName,j=void 0===T?"fade":T,A=t.imageRender,D=t.imgCommonProps,L=t.toolbarRender,z=t.onTransform,B=t.onChange,F=tt(t,iv),H=e.useRef(),V=e.useContext(Km),W=V&&w>1,X=V&&w>=1,q=Be(e.useState(!0),2),U=q[0],Y=q[1],G=function(t,n,o,r){var i=e.useRef(null),a=e.useRef([]),s=Be(e.useState(Qm),2),l=s[0],c=s[1],u=function(e,t){null===i.current&&(a.current=[],i.current=De((function(){c((function(e){var n=e;return a.current.forEach((function(e){n=R(R({},n),e)})),i.current=null,null==r||r({transform:n,action:t}),n}))}))),a.current.push(R(R({},l),e))};return{transform:l,resetTransform:function(e){c(Qm),nt(Qm,l)||null==r||r({transform:Qm,action:e})},updateTransform:u,dispatchZoomChange:function(e,r,i,a,s){var c=t.current,d=c.width,f=c.height,h=c.offsetWidth,p=c.offsetHeight,g=c.offsetLeft,m=c.offsetTop,v=e,b=l.scale*e;b>o?(b=o,v=o/l.scale):b<n&&(v=(b=s?b:n)/l.scale);var y=null!=i?i:innerWidth/2,x=null!=a?a:innerHeight/2,w=v-1,C=w*d*.5,E=w*f*.5,S=w*(y-l.x-g),k=w*(x-l.y-m),O=l.x-(S-C),_=l.y-(k-E);if(e<1&&1===b){var $=h*b,M=p*b,N=Ym(),P=N.width,I=N.height;$<=P&&M<=I&&(O=0,_=0)}u({x:O,y:_,scale:b},r)}}}(H,_,M,z),K=G.transform,Z=G.resetTransform,Q=G.updateTransform,J=G.dispatchZoomChange,ee=function(t,n,o,r,i,a,s){var l=i.rotate,c=i.scale,u=i.x,d=i.y,f=Be(e.useState(!1),2),h=f[0],p=f[1],g=e.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),m=function(e){o&&h&&a({x:e.pageX-g.current.diffX,y:e.pageY-g.current.diffY},"move")},v=function(){if(o&&h){p(!1);var e=g.current,n=e.transformX,r=e.transformY;if(u===n||d===r)return;var i=t.current.offsetWidth*c,s=t.current.offsetHeight*c,f=t.current.getBoundingClientRect(),m=f.left,v=f.top,b=l%180!=0,y=ev(b?s:i,b?i:s,m,v);y&&a(R({},y),"dragRebound")}};return e.useEffect((function(){var e,t,o,r;if(n){o=Gm(window,"mouseup",v,!1),r=Gm(window,"mousemove",m,!1);try{window.top!==window.self&&(e=Gm(window.top,"mouseup",v,!1),t=Gm(window.top,"mousemove",m,!1))}catch(e){S(!1,"[rc-image] ".concat(e))}}return function(){var n,i,a,s;null===(n=o)||void 0===n||n.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(s=t)||void 0===s||s.remove()}}),[o,h,u,d,l,n]),{isMoving:h,onMouseDown:function(e){n&&0===e.button&&(e.preventDefault(),e.stopPropagation(),g.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},p(!0))},onMouseMove:m,onMouseUp:v,onWheel:function(e){if(o&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),n=1+Math.min(t,1)*r;e.deltaY>0&&(n=1/n),s(n,"wheel",e.clientX,e.clientY)}}}}(H,l,u,k,K,Q,J),te=ee.isMoving,ne=ee.onMouseDown,oe=ee.onWheel,re=ov(H,l,u,_,K,Q,J),ie=re.isTouching,ae=re.onTouchStart,se=re.onTouchMove,le=re.onTouchEnd,ce=K.rotate,ue=K.scale,de=h(P({},"".concat(n,"-moving"),te));e.useEffect((function(){U||Y(!0)}),[U]);var fe=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),y>0&&(Y(!1),Z("prev"),null==B||B(y-1,y))},he=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),y<w-1&&(Y(!1),Z("next"),null==B||B(y+1,y))},pe=function(e){u&&W&&(e.keyCode===ss.LEFT?fe():e.keyCode===ss.RIGHT&&he())};e.useEffect((function(){var e=Gm(window,"keydown",pe,!1);return function(){e.remove()}}),[u,W,y]);var ge=e.createElement(av,p({},D,{width:t.width,height:t.height,imgRef:H,className:"".concat(n,"-img"),alt:r,style:{transform:"translate3d(".concat(K.x,"px, ").concat(K.y,"px, 0) scale3d(").concat(K.flipX?"-":"").concat(ue,", ").concat(K.flipY?"-":"").concat(ue,", 1) rotate(").concat(ce,"deg)"),transitionDuration:(!U||ie)&&"0s"},fallback:a,src:o,onWheel:oe,onMouseDown:ne,onDoubleClick:function(e){u&&(1!==ue?Q({x:0,y:0,scale:1},"doubleClick"):J(1+k,"doubleClick",e.clientX,e.clientY))},onTouchStart:ae,onTouchMove:se,onTouchEnd:le,onTouchCancel:le})),me=R({url:o,alt:r},i);return e.createElement(e.Fragment,null,e.createElement(dc,p({transitionName:I,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:de},rootClassName:g,getContainer:v},F,{afterClose:function(){Z("close")}}),e.createElement("div",{className:"".concat(n,"-img-wrapper")},A?A(ge,R({transform:K,image:me},V?{current:y}:{})):ge)),e.createElement(Zm,{visible:u,transform:K,maskTransitionName:j,closeIcon:m,getContainer:v,prefixCls:n,rootClassName:g,icons:f,countRender:C,showSwitch:W,showProgress:X,current:y,count:w,scale:ue,minScale:_,maxScale:M,toolbarRender:L,onSwitchLeft:fe,onSwitchRight:he,onZoomIn:function(){J(1+k,"zoomIn")},onZoomOut:function(){J(1/(1+k),"zoomOut")},onRotateRight:function(){Q({rotate:ce+90},"rotateRight")},onRotateLeft:function(){Q({rotate:ce-90},"rotateLeft")},onFlipX:function(){Q({flipX:!K.flipX},"flipX")},onFlipY:function(){Q({flipY:!K.flipY},"flipY")},onClose:c,onReset:function(){Z("reset")},zIndex:void 0!==F.zIndex?F.zIndex+1:void 0,image:me}))},lv=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var cv=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],uv=["src"],dv=0;var fv=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],hv=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],pv=function(t){var n=t.src,r=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,u=t.placeholder,d=t.fallback,f=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,E=t.wrapperStyle,S=t.rootClassName,k=tt(t,fv),O=u&&!0!==u,_="object"===M(b)?b:{},$=_.src,N=_.visible,I=void 0===N?void 0:N,T=_.onVisibleChange,j=void 0===T?i:T,A=_.getContainer,D=void 0===A?void 0:A,L=_.mask,z=_.maskClassName,B=_.movable,F=_.icons,H=_.scaleStep,V=_.minScale,W=_.maxScale,X=_.imageRender,q=_.toolbarRender,U=tt(_,hv),Y=null!=$?$:n,G=Be(Qr(!!I,{value:I,onChange:j}),2),K=G[0],Z=G[1],Q=Be(tv({src:n,isCustomPlaceholder:O,fallback:d}),3),J=Q[0],ee=Q[1],te=Q[2],ne=Be(e.useState(null),2),oe=ne[0],re=ne[1],ie=e.useContext(Km),ae=!!b,se=h(s,C,S,P({},"".concat(s,"-error"),"error"===te)),le=e.useMemo((function(){var e={};return lv.forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e}),lv.map((function(e){return t[e]}))),ce=function(e,t){var n=Be(o.useState((function(){return String(dv+=1)})),1)[0],r=o.useContext(Km),i={data:t,canPreview:e};return o.useEffect((function(){if(r)return r.register(n,i)}),[]),o.useEffect((function(){r&&r.register(n,i)}),[e,t]),n}(ae,e.useMemo((function(){return R(R({},le),{},{src:Y})}),[Y,le]));return o.createElement(o.Fragment,null,o.createElement("div",p({},k,{className:se,onClick:ae?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;ie?ie.onPreview(ce,Y,n,o):(re({x:n,y:o}),Z(!0)),null==x||x(e)}:x,style:R({width:f,height:g},E)}),o.createElement("img",p({},le,{className:h("".concat(s,"-img"),P({},"".concat(s,"-img-placeholder"),!0===u),y),style:R({height:g},m),ref:J},ee,{width:f,height:g,onError:w})),"loading"===te&&o.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},u),L&&ae&&o.createElement("div",{className:h("".concat(s,"-mask"),z),style:{display:"none"===(null==m?void 0:m.display)?"none":void 0}},L)),!ie&&ae&&o.createElement(sv,p({"aria-hidden":!K,visible:K,prefixCls:c,onClose:function(){Z(!1),re(null)},mousePosition:oe,src:Y,alt:r,imageInfo:{width:f,height:g},fallback:d,getContainer:D,icons:F,movable:B,scaleStep:H,minScale:V,maxScale:W,rootClassName:S,imageRender:X,imgCommonProps:le,toolbarRender:q},U)))};pv.PreviewGroup=function(t){var n,r=t.previewPrefixCls,i=void 0===r?"rc-image-preview":r,a=t.children,s=t.icons,l=void 0===s?{}:s,c=t.items,u=t.preview,d=t.fallback,f="object"===M(u)?u:{},h=f.visible,g=f.onVisibleChange,m=f.getContainer,v=f.current,b=f.movable,y=f.minScale,x=f.maxScale,w=f.countRender,C=f.closeIcon,E=f.onChange,S=f.onTransform,k=f.toolbarRender,O=f.imageRender,_=tt(f,cv),$=function(e){var t=Be(o.useState({}),2),n=t[0],r=t[1],i=o.useCallback((function(e,t){return r((function(n){return R(R({},n),{},P({},e,t))})),function(){r((function(t){var n=R({},t);return delete n[e],n}))}}),[]);return[o.useMemo((function(){return e?e.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(Pe(lv)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(n).reduce((function(e,t){var o=n[t],r=o.canPreview,i=o.data;return r&&e.push({data:i,id:t}),e}),[])}),[e,n]),i,!!e]}(c),N=Be($,3),I=N[0],T=N[1],j=N[2],A=Be(Qr(0,{value:v}),2),D=A[0],L=A[1],z=Be(e.useState(!1),2),B=z[0],F=z[1],H=(null===(n=I[D])||void 0===n?void 0:n.data)||{},V=H.src,W=tt(H,uv),X=Be(Qr(!!h,{value:h,onChange:function(e,t){null==g||g(e,t,D)}}),2),q=X[0],U=X[1],Y=Be(e.useState(null),2),G=Y[0],K=Y[1],Z=o.useCallback((function(e,t,n,o){var r=j?I.findIndex((function(e){return e.data.src===t})):I.findIndex((function(t){return t.id===e}));L(r<0?0:r),U(!0),K({x:n,y:o}),F(!0)}),[I,j]);o.useEffect((function(){q?B||L(0):F(!1)}),[q]);var Q=o.useMemo((function(){return{register:T,onPreview:Z}}),[T,Z]);return o.createElement(Km.Provider,{value:Q},a,o.createElement(sv,p({"aria-hidden":!q,movable:b,visible:q,prefixCls:i,closeIcon:C,onClose:function(){U(!1),K(null)},mousePosition:G,imgCommonProps:W,src:V,fallback:d,icons:l,minScale:y,maxScale:x,getContainer:m,current:D,count:I.length,countRender:w,onTransform:S,toolbarRender:k,imageRender:O,onChange:function(e,t){L(e),null==E||E(e,t)}},_)))},"production"!==process.env.NODE_ENV&&(pv.displayName="Image");var gv={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"},mv=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:gv}))},vv=o.forwardRef(mv);"production"!==process.env.NODE_ENV&&(vv.displayName="RotateLeftOutlined");var bv={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"},yv=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:bv}))},xv=o.forwardRef(yv);"production"!==process.env.NODE_ENV&&(xv.displayName="RotateRightOutlined");var wv={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"},Cv=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:wv}))},Ev=o.forwardRef(Cv);"production"!==process.env.NODE_ENV&&(Ev.displayName="SwapOutlined");var Sv={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"},kv=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:Sv}))},Ov=o.forwardRef(kv);"production"!==process.env.NODE_ENV&&(Ov.displayName="ZoomInOutlined");var _v={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"},$v=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:_v}))},Mv=o.forwardRef($v);"production"!==process.env.NODE_ENV&&(Mv.displayName="ZoomOutOutlined");const Nv=e=>({position:e||"absolute",inset:0}),Pv=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 Wo("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ci),{padding:`0 ${Ct(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},Iv=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 Wo(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 ${Ct(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}}}}},Rv=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,s=new Wo(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}}},Tv=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({},Nv()),{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({},Nv()),{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()},"&":[Iv(e),Rv(e)]}]},jv=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({},Pv(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Nv())}}},Av=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Fu(e,"zoom"),"&":Pu(e,!0)}};var Dv=$i("Image",(e=>{const t=`${e.componentCls}-preview`,n=ni(e,{previewCls:t,modalMaskBg:new Wo("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[jv(n),Tv(n),Vu(ni(n,{componentCls:t})),Av(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Wo(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Wo(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Wo(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),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 zv={rotateLeft:o.createElement(vv,null),rotateRight:o.createElement(xv,null),zoomIn:o.createElement(Ov,null),zoomOut:o.createElement(Mv,null),close:o.createElement(Ja,null),left:o.createElement(pp,null),right:o.createElement(jf,null),flipX:o.createElement(Ev,null),flipY:o.createElement(Ev,{rotate:90})};var Bv=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 Fv=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:s}=e,l=Bv(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=xo,getPopupContainer:d,image:f}=o.useContext(jr),p=c("image",n),g=c(),m=u.Image||xo.Image,v=as(p),[b,y,x]=Dv(p,v),w=h(a,y,x,v),C=h(i,y,null==f?void 0:f.className),[E]=gs("ImagePreview","object"==typeof r?r.zIndex:void 0),S=o.useMemo((()=>{var e;if(!1===r)return r;const t="object"==typeof r?r:{},{getContainer:n,closeIcon:i}=t,a=Bv(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${p}-mask-info`},o.createElement(Nm,null),null==m?void 0:m.preview),icons:zv},a),{getContainer:null!=n?n:d,transitionName:As(g,"zoom",t.transitionName),maskTransitionName:As(g,"fade",t.maskTransitionName),zIndex:E,closeIcon:null!=i?i:null===(e=null==f?void 0:f.preview)||void 0===e?void 0:e.closeIcon})}),[r,m,null===(t=null==f?void 0:f.preview)||void 0===t?void 0:t.closeIcon]),k=Object.assign(Object.assign({},null==f?void 0:f.style),s);return b(o.createElement(pv,Object.assign({prefixCls:p,preview:S,rootClassName:w,className:C,style:k},l)))};Fv.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,r=Lv(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=o.useContext(jr),a=i("image",t),s=`${a}-preview`,l=i(),c=as(a),[u,d,f]=Dv(a,c),[p]=gs("ImagePreview","object"==typeof n?n.zIndex:void 0),g=o.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},o=h(d,f,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:As(l,"zoom",t.transitionName),maskTransitionName:As(l,"fade",t.maskTransitionName),rootClassName:o,zIndex:p})}),[n]);return u(o.createElement(pv.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:zv},r)))},"production"!==process.env.NODE_ENV&&(Fv.displayName="Image");const Hv=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}}}},Vv=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:Ct(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}}}}},Hv(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Ct(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 Wv=$i("Layout",(e=>[Vv(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"]]}),Xv=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 qv(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>{const i=o.forwardRef(((r,i)=>o.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},r))));return"production"!==process.env.NODE_ENV&&(i.displayName=r),i}}const Uv=o.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,s=Xv(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=o.useContext(jr),c=l("layout",n),[u,d,f]=Wv(c),p=r?`${c}-${r}`:c;return u(o.createElement(a,Object.assign({className:h(n||p,i,d,f),ref:t},s)))})),Yv=o.forwardRef(((e,t)=>{const{direction:n}=o.useContext(jr),[r,i]=o.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,p=_e(Xv(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:g,layout:m}=o.useContext(jr),v=g("layout",a),b=function(e,t,n){return"boolean"==typeof n?n:!!e.length||w(t).some((e=>e.type===xp))}(r,c,u),[y,x,C]=Wv(v),E=h(v,{[`${v}-has-sider`]:b,[`${v}-rtl`]:"rtl"===n},null==m?void 0:m.className,s,l,x,C),S=o.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Pe(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return y(o.createElement(gp.Provider,{value:S},o.createElement(d,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},null==m?void 0:m.style),f)},p),c)))})),Gv=qv({tagName:"div",displayName:"Layout"})(Yv),Kv=qv({suffixCls:"header",tagName:"header",displayName:"Header"})(Uv),Zv=qv({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Uv),Qv=qv({suffixCls:"content",tagName:"main",displayName:"Content"})(Uv),Jv=Gv;Jv.Header=Kv,Jv.Footer=Zv,Jv.Content=Qv,Jv.Sider=xp,Jv._InternalSiderContext=bp;var eb={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"},tb=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:eb}))},nb=o.forwardRef(tb);"production"!==process.env.NODE_ENV&&(nb.displayName="CopyOutlined");var ob={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"},rb=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:ob}))},ib=o.forwardRef(rb);"production"!==process.env.NODE_ENV&&(ib.displayName="EditOutlined");var ab={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"},sb=function(e,t){return o.createElement(Ua,p({},e,{ref:t,icon:ab}))},lb=o.forwardRef(sb);"production"!==process.env.NODE_ENV&&(lb.displayName="EnterOutlined");var cb=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 ub={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},db=o.forwardRef(((e,t)=>{const{style:n,noStyle:r,disabled:i,tabIndex:a=0}=e,s=cb(e,["style","noStyle","disabled","tabIndex"]);let l={};return r||(l=Object.assign({},ub)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),n),o.createElement("div",Object.assign({role:"button",tabIndex:a,ref:t},s,{onKeyDown:e=>{const{keyCode:t}=e;t===ss.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===ss.ENTER&&o&&o()},style:l}))})),fb=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},hb=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},wi(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:cr[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}}),gb=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 - ${Ct(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"}}}},mb=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),vb=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"}},fb(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)),hb(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},wi(e)),{marginInlineStart:e.marginXXS})}),gb(e)),mb(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 bb=$i("Typography",(e=>[vb(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const yb=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:s,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:g=o.createElement(lb,null)}=e,m=o.useRef(null),v=o.useRef(!1),b=o.useRef(),[y,x]=o.useState(c);o.useEffect((()=>{x(c)}),[c]),o.useEffect((()=>{var e;if(null===(e=m.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{u(y.trim())},[C,E,S]=bb(t),k=h(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===a,[`${t}-${p}`]:!!p},r,E,S);return C(o.createElement("div",{className:k,style:i},o.createElement(qm,{ref:m,maxLength:s,value:y,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;b.current!==t||v.current||n||o||r||i||(t===ss.ENTER?(w(),null==f||f()):t===ss.ESC&&d())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:l}),null!==g?is(g,{className:`${t}-edit-content-confirm`}):null))};var xb=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()}},wb={"text/plain":"Text","text/html":"Url",default:"Text"};var Cb=function(e,t){var n,o,r,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(r=xb(),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=wb[t.format]||wb.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},Eb=i(Cb),Sb=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 kb(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}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=o.forwardRef(((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:s,children:l,direction:c,style:u}=e,d=Ob(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:g}=o.useContext(jr),m=null!=c?c:p,v=s?L(t,s):t,b=f("typography",n);if("production"!==process.env.NODE_ENV){ho("Typography").deprecated(!s,"setContentRef","ref")}const[y,x,w]=bb(b),C=h(b,null==g?void 0:g.className,{[`${b}-rtl`]:"rtl"===m},i,a,x,w),E=Object.assign(Object.assign({},null==g?void 0:g.style),u);return y(o.createElement(r,Object.assign({className:C,style:E,ref:v},d),l))}));function $b(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function Mb(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(_b.displayName="Typography");const Nb=e=>["string","number"].includes(typeof e),Pb=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:s,tabIndex:l,onCopy:c,loading:u}=e;const d=$b(a),f=$b(s),{copied:p,copy:g}=null!=r?r:{},m=n?p:g,v=Mb(d[n?1:0],m),b="string"==typeof v?v:m;return o.createElement(hf,{title:v},o.createElement(db,{className:h(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":b,tabIndex:l},n?Mb(f[1],o.createElement(Dd,null),!0):Mb(f[0],u?o.createElement(us,null):o.createElement(nb,null),!0)))},Ib=o.forwardRef(((e,t)=>{let{style:n,children:r}=e;const i=o.useRef(null);return o.useImperativeHandle(t,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),o.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)"},n)},r)}));function Rb(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+(Nb(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 Tb=0,jb=4,Ab={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Db(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:s,miscDeps:l,onEllipsis:c}=e,u=o.useMemo((()=>w(r)),[r]),d=o.useMemo((()=>(e=>e.reduce(((e,t)=>e+(Nb(t)?String(t).length:1)),0))(u)),[r]),f=o.useMemo((()=>i(u,!1)),[r]),[h,p]=o.useState(null),g=o.useRef(null),m=o.useRef(null),v=o.useRef(null),b=o.useRef(null),y=o.useRef(null),[x,C]=o.useState(!1),[E,S]=o.useState(Tb),[k,O]=o.useState(0),[_,$]=o.useState(null);$t((()=>{S(t&&n&&d?1:Tb)}),[n,r,a,t,u]),$t((()=>{var e,t,n,o;if(1===E){S(2);const e=m.current&&getComputedStyle(m.current).whiteSpace;$(e)}else if(2===E){const r=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());S(r?3:jb),p(r?[0,d]:null),C(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);O(u+1),c(r)}}),[E]);const M=h?Math.ceil((h[0]+h[1])/2):0;$t((()=>{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)>k;let r=M;n-t==1&&(r=o?t:n),p(o?[t,r]:[r,n])}}),[h,M]);const N=o.useMemo((()=>{if(!t)return i(u,!1);if(3!==E||!h||h[0]!==h[1]){const e=i(u,!1);return[jb,Tb].includes(E)?e:o.createElement("span",{style:Object.assign(Object.assign({},Ab),{WebkitLineClamp:a})},e)}return i(s?u:Rb(u,h[0]),x)}),[s,E,h,u].concat(Pe(l))),P={width:n,margin:0,padding:0,whiteSpace:"nowrap"===_?"normal":"inherit"};return o.createElement(o.Fragment,null,N,2===E&&o.createElement(o.Fragment,null,o.createElement(Ib,{style:Object.assign(Object.assign(Object.assign({},P),Ab),{WebkitLineClamp:a}),ref:v},f),o.createElement(Ib,{style:Object.assign(Object.assign(Object.assign({},P),Ab),{WebkitLineClamp:a-1}),ref:b},f),o.createElement(Ib,{style:Object.assign(Object.assign(Object.assign({},P),Ab),{WebkitLineClamp:1}),ref:y},i([],!0))),3===E&&h&&h[0]!==h[1]&&o.createElement(Ib,{style:Object.assign(Object.assign({},P),{top:400}),ref:g},i(Rb(u,M),!0)),1===E&&o.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const Lb=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?o.createElement(hf,Object.assign({open:!!n&&void 0},i),r):r};"production"!==process.env.NODE_ENV&&(Lb.displayName="EllipsisTooltip");var zb=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 Bb=o.forwardRef(((t,n)=>{var r;const{prefixCls:i,className:a,style:s,type:l,disabled:c,children:u,ellipsis:d,editable:f,copyable:p,component:g,title:m}=t,v=zb(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=o.useContext(jr),[x]=((e,t)=>{const n=o.useContext(Eo),r=o.useMemo((()=>{var t;const o=xo[e],r=null!==(t=null==n?void 0:n[e])&&void 0!==t?t:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),r||{})}),[e,t,n]);return[r,o.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?xo.locale:e}),[n])]})("Text"),C=o.useRef(null),E=o.useRef(null),S=b("typography",i),k=_e(v,["mark","code","delete","underline","strong","keyboard","italic"]),[O,_]=kb(f),[$,M]=Qr(!1,{value:_.editing}),{triggerType:N=["icon"]}=_,P=e=>{var t;e&&(null===(t=_.onStart)||void 0===t||t.call(_)),M(e)},I=(t=>{const n=e.useRef();return e.useEffect((()=>{n.current=t})),n.current})($);$t((()=>{var e;!$&&I&&(null===(e=E.current)||void 0===e||e.focus())}),[$]);const R=e=>{null==e||e.preventDefault(),P(!0)},T=e=>{var t;null===(t=_.onChange)||void 0===t||t.call(_,e),P(!1)},j=()=>{var e;null===(e=_.onCancel)||void 0===e||e.call(_),P(!1)},[A,D]=kb(p),{copied:z,copyLoading:B,onClick:F}=(e=>{let{copyConfig:t,children:n}=e;const[r,i]=o.useState(!1),[a,s]=o.useState(!1),l=o.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};return t.format&&(u.format=t.format),o.useEffect((()=>c),[]),{copied:r,copyLoading:a,onClick:Gr((e=>Sb(void 0,void 0,void 0,(function*(){var o;null==e||e.preventDefault(),null==e||e.stopPropagation(),s(!0);try{const r="function"==typeof t.text?yield t.text():t.text;Eb(r||String(n)||"",u),s(!1),i(!0),c(),l.current=setTimeout((()=>{i(!1)}),3e3),null===(o=t.onCopy)||void 0===o||o.call(t,e)}catch(e){throw s(!1),e}}))))}})({copyConfig:D,children:u}),[H,V]=o.useState(!1),[W,X]=o.useState(!1),[q,U]=o.useState(!1),[Y,G]=o.useState(!1),[K,Z]=o.useState(!0),[Q,J]=kb(d,{expandable:!1,symbol:e=>e?null==x?void 0:x.collapse:null==x?void 0:x.expand}),[ee,te]=Qr(J.defaultExpanded||!1,{value:J.expanded}),ne=Q&&(!ee||"collapsible"===J.expandable),{rows:oe=1}=J,re=o.useMemo((()=>ne&&(void 0!==J.suffix||J.onEllipsis||J.expandable||O||A)),[ne,J,O,A]);$t((()=>{Q&&!re&&(V(Su("webkitLineClamp")),X(Su("textOverflow")))}),[re,Q]);const[ie,ae]=o.useState(ne),se=o.useMemo((()=>!re&&(1===oe?W:H)),[re,W,H]);$t((()=>{ae(se&&ne)}),[se,ne]);const le=ne&&(ie?Y:q),ce=ne&&1===oe&&ie,ue=ne&&oe>1&&ie,[de,fe]=o.useState(0),he=e=>{var t;U(e),q!==e&&(null===(t=J.onEllipsis)||void 0===t||t.call(J,e))};o.useEffect((()=>{const e=C.current;if(Q&&ie&&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);Y!==t&&G(t)}}),[Q,ie,u,ue,K,de]),o.useEffect((()=>{const e=C.current;if("undefined"==typeof IntersectionObserver||!e||!ie||!ne)return;const t=new IntersectionObserver((()=>{Z(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[ie,ne]);const pe=((t,n,o)=>e.useMemo((()=>!0===t?{title:null!=n?n:o}:e.isValidElement(t)?{title:t}:"object"==typeof t?Object.assign({title:null!=n?n:o},t):{title:t}),[t,n,o]))(J.tooltip,_.text,u),ge=o.useMemo((()=>{if(Q&&!ie)return[_.text,u,m,pe.title].find(Nb)}),[Q,ie,m,pe.title,le]);if($)return o.createElement(yb,{value:null!==(r=_.text)&&void 0!==r?r:"string"==typeof u?u:"",onSave:T,onCancel:j,onEnd:_.onEnd,prefixCls:S,className:a,style:s,direction:y,component:g,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const me=()=>{const{expandable:e,symbol:t}=J;return e?o.createElement(db,{key:"expand",className:`${S}-${ee?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;te(t.expanded),null===(n=J.onExpand)||void 0===n||n.call(J,e,t)})(e,{expanded:!ee}),"aria-label":ee?x.collapse:null==x?void 0:x.expand},"function"==typeof t?t(ee):t):null},ve=()=>{if(!O)return;const{icon:e,tooltip:t,tabIndex:n}=_,r=w(t)[0]||(null==x?void 0:x.edit),i="string"==typeof r?r:"";return N.includes("icon")?o.createElement(hf,{key:"edit",title:!1===t?"":r},o.createElement(db,{ref:E,className:`${S}-edit`,onClick:R,"aria-label":i,tabIndex:n},e||o.createElement(ib,{role:"button"}))):null},be=e=>[e&&me(),ve(),A?o.createElement(Pb,Object.assign({key:"copy"},D,{prefixCls:S,copied:z,locale:x,onCopy:F,loading:B,iconOnly:null==u})):null];return o.createElement(Oe,{onResize:e=>{let{offsetWidth:t}=e;fe(t)},disabled:!ne},(e=>o.createElement(Lb,{tooltipProps:pe,enableEllipsis:ne,isEllipsis:le},o.createElement(_b,Object.assign({className:h({[`${S}-${l}`]:l,[`${S}-disabled`]:c,[`${S}-ellipsis`]:Q,[`${S}-ellipsis-single-line`]:ce,[`${S}-ellipsis-multiple-line`]:ue},a),prefixCls:i,style:Object.assign(Object.assign({},s),{WebkitLineClamp:ue?oe:void 0}),component:g,ref:L(e,C,n),direction:y,onClick:N.includes("text")?R:void 0,"aria-label":null==ge?void 0:ge.toString(),title:m},k),o.createElement(Db,{enableMeasure:ne&&!ie,text:u,rows:oe,width:de,onEllipsis:he,expanded:ee,miscDeps:[z,ee,B,O,A]},((e,n)=>function(e,t){let{mark:n,code:r,underline:i,delete:a,strong:s,keyboard:l,italic:c}=e,u=t;function d(e,t){t&&(u=o.createElement(e,{},u))}return d("strong",s),d("u",i),d("del",a),d("code",r),d("mark",n),d("kbd",l),d("i",c),u}(t,o.createElement(o.Fragment,null,e.length>0&&n&&!ee&&ge?o.createElement("span",{key:"show-content","aria-hidden":!0},e):e,(e=>[e&&!ee&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),J.suffix,be(e)])(n)))))))))}));var Fb=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 Hb=o.forwardRef(((e,t)=>{var{ellipsis:n,rel:r}=e,i=Fb(e,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=ho("Typography.Link");"production"!==process.env.NODE_ENV&&e("object"!=typeof n,"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,o.createElement(Bb,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))})),Vb=o.forwardRef(((e,t)=>o.createElement(Bb,Object.assign({ref:t},e,{component:"div"}))));var Wb=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 Xb=(e,t)=>{var{ellipsis:n}=e,r=Wb(e,["ellipsis"]);const i=o.useMemo((()=>n&&"object"==typeof n?_e(n,["expandable","rows"]):n),[n]);if("production"!==process.env.NODE_ENV){const e=ho("Typography.Text");"production"!==process.env.NODE_ENV&&e("object"!=typeof n||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return o.createElement(Bb,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))};var qb=o.forwardRef(Xb),Ub=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 Yb=[1,2,3,4,5],Gb=o.forwardRef(((e,t)=>{const{level:n=1}=e,r=Ub(e,["level"]);if("production"!==process.env.NODE_ENV){const e=ho("Typography.Title");"production"!==process.env.NODE_ENV&&e(Yb.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=Yb.includes(n)?`h${n}`:"h1";return o.createElement(Bb,Object.assign({ref:t},r,{component:i}))})),Kb=_b;function Zb(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))}}Kb.Text=qb,Kb.Link=Hb,Kb.Title=Gb,Kb.Paragraph=Vb;Zb(".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");Zb(".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");Zb('.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 Qb=Jv.Sider;Zb(".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");Zb(".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 Jb={searchIcon:d.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:d.jsx("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.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:d.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.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:d.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:d.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),d.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"}),d.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"}),d.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:d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.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"})})};Zb(".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 ey=function(){return ey=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},ey.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;Zb(".appBadge {\n .ribbonWrapper {\n .ant-ribbon-wrapper {\n position: relative;\n .ant-ribbon {\n position: absolute;\n top: 0;\n }\n }\n }\n}\n");Zb(".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 ty=Kb.Text;
25
+ */"production"===process.env.NODE_ENV?m.exports=function(){if(g)return v;g=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"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){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 f:case p:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),v.ContextConsumer=s,v.ContextProvider=a,v.Element=t,v.ForwardRef=c,v.Fragment=o,v.Lazy=f,v.Memo=p,v.Portal=n,v.Profiler=i,v.StrictMode=r,v.Suspense=u,v.SuspenseList=d,v.isAsyncMode=function(){return!1},v.isConcurrentMode=function(){return!1},v.isContextConsumer=function(e){return m(e)===s},v.isContextProvider=function(e){return m(e)===a},v.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},v.isForwardRef=function(e){return m(e)===c},v.isFragment=function(e){return m(e)===o},v.isLazy=function(e){return m(e)===f},v.isMemo=function(e){return m(e)===p},v.isPortal=function(e){return m(e)===n},v.isProfiler=function(e){return m(e)===i},v.isStrictMode=function(e){return m(e)===r},v.isSuspense=function(e){return m(e)===u},v.isSuspenseList=function(e){return m(e)===d},v.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},v.typeOf=m,v}():m.exports=(b||(b=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"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){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 f:case p:case a:return m;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var m=s,v=a,b=t,x=c,C=o,w=f,E=p,S=n,k=i,O=r,$=u,M=d,_=!1,P=!1;y.ContextConsumer=m,y.ContextProvider=v,y.Element=b,y.ForwardRef=x,y.Fragment=C,y.Lazy=w,y.Memo=E,y.Portal=S,y.Profiler=k,y.StrictMode=O,y.Suspense=$,y.SuspenseList=M,y.isAsyncMode=function(e){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},y.isContextConsumer=function(e){return g(e)===s},y.isContextProvider=function(e){return g(e)===a},y.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},y.isForwardRef=function(e){return g(e)===c},y.isFragment=function(e){return g(e)===o},y.isLazy=function(e){return g(e)===f},y.isMemo=function(e){return g(e)===p},y.isPortal=function(e){return g(e)===n},y.isProfiler=function(e){return g(e)===i},y.isStrictMode=function(e){return g(e)===r},y.isSuspense=function(e){return g(e)===u},y.isSuspenseList=function(e){return g(e)===d},y.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},y.typeOf=g}()),y);var x=m.exports;function C(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[];return e.Children.forEach(t,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?o=o.concat(C(e)):x.isFragment(e)&&e.props?o=o.concat(C(e.props.children,n)):o.push(e))})),o}var w={},E=[];function S(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=E.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function k(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=E.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function O(){w={}}function $(e,t,n){t||w[n]||(e(!1,n),w[n]=!0)}function M(e,t){$(S,e,t)}function _(e,t){$(k,e,t)}function P(e){return P="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},P(e)}function N(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=P(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}function I(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(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 R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e){return e instanceof HTMLElement||e instanceof SVGElement}function T(n){var o,r=function(e){return e&&"object"===P(e)&&j(e.nativeElement)?e.nativeElement:j(e)?e:null}(n);return r||(n instanceof e.Component?null===(o=t.findDOMNode)||void 0===o?void 0:o.call(t,n):null)}function D(e,t,n){var r=o.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}M.preMessage=function(e){E.push(e)},M.resetWarned=O,M.noteOnce=_;var A=function(e,t){"function"==typeof e?e(t):"object"===P(e)&&e&&"current"in e&&(e.current=t)},z=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){A(t,e)}))}},B=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return D((function(){return z.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},H=function(e){var t,n,o=x.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===x.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===x.ForwardRef)};Number(e.version.split(".")[0]);var F=o.createContext(null);var V=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}()}(),W="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,U="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),X="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(U):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var q=["top","right","bottom","left","width","height","size","weight"],G="undefined"!=typeof MutationObserver,K=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(){X(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(){W&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),G?(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(){W&&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;q.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}(),Y=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},Z=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||U},Q=re(0,0,0,0);function J(e){return parseFloat(e)||0}function ee(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+J(e["border-"+n+"-width"])}),0)}function te(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Q;var o=Z(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]=J(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=J(o.width),l=J(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=ee(o,"left","right")+i),Math.round(l+a)!==n&&(l-=ee(o,"top","bottom")+a)),!function(e){return e===Z(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 re(r.left,r.top,s,l)}var ne="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Z(e).SVGGraphicsElement}:function(e){return e instanceof Z(e).SVGElement&&"function"==typeof e.getBBox};function oe(e){return W?ne(e)?function(e){var t=e.getBBox();return re(0,0,t.width,t.height)}(e):te(e):Q}function re(e,t,n,o){return{x:e,y:t,width:n,height:o}}var ie=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=re(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=oe(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}(),ae=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),Y(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);Y(this,{target:e,contentRect:c})},se=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new V,"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 Z(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new ie(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 Z(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 ae(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}(),le="undefined"!=typeof WeakMap?new WeakMap:new V,ce=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=K.getInstance(),o=new se(t,n,this);le.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){ce.prototype[e]=function(){var t;return(t=le.get(this))[e].apply(t,arguments)}}));var ue=void 0!==U.ResizeObserver?U.ResizeObserver:ce,de=new Map;function pe(e){e.forEach((function(e){var t,n=e.target;null===(t=de.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var fe=new ue(pe);function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(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,N(o.key),o)}}function me(e,t,n){return t&&ge(e.prototype,t),n&&ge(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ve(e,t){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ve(e,t)}function be(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&&ve(e,t)}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}function xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xe=function(){return!!e})()}function Ce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function we(e){var t=xe();return function(){var n,o=ye(e);if(t){var r=ye(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ce(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ee=function(){be(t,o.Component);var e=we(t);function t(){return he(this,t),e.apply(this,arguments)}return me(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Se(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),a=o.useRef(null),s=o.useContext(F),l="function"==typeof n,c=l?n(i):n,u=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&o.isValidElement(c)&&H(c),p=d?c.ref:null,f=B(p,i),h=function(){var e;return T(i.current)||(i.current&&"object"===P(i.current)?T(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||T(a.current)};o.useImperativeHandle(t,(function(){return h()}));var g=o.useRef(e);g.current=e;var m=o.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),p=Math.floor(a);if(u.current.width!==d||u.current.height!==p||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var f={width:d,height:p,offsetWidth:l,offsetHeight:c};u.current=f;var h=l===Math.round(i)?i:l,m=c===Math.round(a)?a:c,v=R(R({},f),{},{offsetWidth:h,offsetHeight:m});null==s||s(v,e,o),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return o.useEffect((function(){var e=h();return e&&!r&&function(e,t){de.has(e)||(de.set(e,new Set),fe.observe(e)),de.get(e).add(t)}(e,m),function(){return function(e,t){de.has(e)&&(de.get(e).delete(t),de.get(e).size||(fe.unobserve(e),de.delete(e)))}(e,m)}}),[i.current,r]),o.createElement(Ee,{ref:a},d?o.cloneElement(c,{ref:f}):c)}var ke=o.forwardRef(Se);"production"!==process.env.NODE_ENV&&(ke.displayName="SingleObserver");function Oe(e,t){var n=e.children,r="function"==typeof n?[n]:C(n);return"production"!==process.env.NODE_ENV&&(r.length>1?S(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&S(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((function(n,r){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return o.createElement(ke,h({},e,{key:i,ref:0===r?t:void 0}),n)}))}var $e=o.forwardRef(Oe);function Me(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function _e(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 Pe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ne(e,t){if(e){if("string"==typeof e)return _e(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)?_e(e,t):void 0}}function Ie(e){return function(e){if(Array.isArray(e))return _e(e)}(e)||Pe(e)||Ne(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&&($e.displayName="ResizeObserver"),$e.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(F),s=o.useCallback((function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){s===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(F.Provider,{value:s},t)};var Le=function(e){return+setTimeout(e,16)},Re=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Le=function(e){return window.requestAnimationFrame(e)},Re=function(e){return window.cancelAnimationFrame(e)});var je=0,Te=new Map;function De(e){Te.delete(e)}var Ae=function(e){var t=je+=1;return function n(o){if(0===o)De(t),e();else{var r=Le((function(){n(o-1)}));Te.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function ze(e){if(Array.isArray(e))return e}function Be(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function He(e,t){return ze(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)||Ne(e,t)||Be()}function Fe(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 Ve(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function We(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}Ae.cancel=function(e){var t=Te.get(e);return De(e),Re(t)},"production"!==process.env.NODE_ENV&&(Ae.ids=function(){return Te});var Ue="data-rc-order",Xe="data-rc-priority",qe="rc-util-key",Ge=new Map;function Ke(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):qe}function Ye(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ze(e){return Array.from((Ge.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ve())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(Ue,a),s&&i&&l.setAttribute(Xe,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=Ye(t),u=c.firstChild;if(o){if(s){var d=(t.styles||Ze(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Ue)))return!1;var t=Number(e.getAttribute(Xe)||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 Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ye(t);return(t.styles||Ze(n)).find((function(n){return n.getAttribute(Ke(t))===e}))}function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Je(e,t);n&&Ye(t).removeChild(n)}function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ye(n),r=Ze(o),i=R(R({},n),{},{styles:r});!function(e,t){var n=Ge.get(e);if(!n||!We(document,n)){var o=Qe("",t),r=o.parentNode;Ge.set(e,r),e.removeChild(o)}}(o,i);var a=Je(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=Qe(e,i);return u.setAttribute(Ke(i),t),u}function nt(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 ot(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(M(!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"===P(t)&&"object"===P(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 rt="%";function it(e){return e.join(rt)}var at=function(){function e(t){he(this,e),I(this,"instanceId",void 0),I(this,"cache",new Map),this.instanceId=t}return me(e,[{key:"get",value:function(e){return this.opGet(it(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(it(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",lt="data-css-hash",ct="data-cache-path",ut="__cssinjs_instance__";var dt=o.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(lt,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[ut]=t[ut]||e,t[ut]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(lt,"]"))).forEach((function(t){var n,r=t.getAttribute(lt);o[r]?t[ut]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new at(e)}(),defaultCache:!0});var pt=function(){function e(){he(this,e),I(this,"cache",void 0),I(this,"keys",void 0),I(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return me(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,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=He(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=He(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}();I(pt,"MAX_CACHE_SIZE",20),I(pt,"MAX_CACHE_OFFSET",5);var ft=0,ht=function(){function e(t){he(this,e),I(this,"derivatives",void 0),I(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ft,0===t.length&&S(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ft+=1}return me(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),gt=new pt;function mt(e){var t=Array.isArray(e)?e:[e];return gt.has(t)||gt.set(t,new ht(t)),gt.get(t)}var vt=new WeakMap,bt={};var yt=new WeakMap;function xt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=yt.get(e)||"";return n||(Object.keys(e).forEach((function(o){var r=e[o];n+=o,r instanceof ht?n+=r.id:r&&"object"===P(r)?n+=xt(r,t):n+=r})),t&&(n=Fe(n)),yt.set(e,n)),n}function Ct(e,t){return Fe("".concat(t,"_").concat(xt(e,!0)))}var wt=Ve();function Et(e){return"number"==typeof e?"".concat(e,"px"):e}function St(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=R(R({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},I(I({},st,t),lt,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 kt=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()},Ot=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=He(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},$t=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=He(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=kt(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,Ot(o,t,{scope:null==n?void 0:n.scope})]},Mt="test"!==process.env.NODE_ENV&&Ve()?o.useLayoutEffect:o.useEffect,_t=function(e,t){var n=o.useRef(!0);Mt((function(){return e(n.current)}),t),Mt((function(){return n.current=!1,function(){n.current=!0}}),[])},Pt=function(e,t){_t((function(t){if(!t)return e()}),t)},Nt=R({},o).useInsertionEffect,It=Nt?function(e,t,n){return Nt((function(){return e(),t()}),n)}:function(e,t,n){o.useMemo(e,n),_t((function(){return t(!0)}),n)},Lt=void 0!==R({},o).useInsertionEffect?function(e){var t=[],n=!1;return o.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&S(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var Rt=!1;var jt="production"===process.env.NODE_ENV?function(){return!1}:function(){return Rt};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var Tt=window;if("function"==typeof Tt.webpackHotUpdate){var Dt=Tt.webpackHotUpdate;Tt.webpackHotUpdate=function(){return Rt=!0,setTimeout((function(){Rt=!1}),0),Dt.apply(void 0,arguments)}}}function At(e,t,n,r,i){var a=o.useContext(dt).cache,s=it([e].concat(Ie(t))),l=Lt([s]),c=jt(),u=function(e){a.opUpdate(s,(function(t){var o=He(t||[void 0,void 0],2),i=o[0],a=void 0===i?0:i,s=o[1],l=s;"production"!==process.env.NODE_ENV&&s&&c&&(null==r||r(l,c),l=null);var u=[a,l||n()];return e?e(u):u}))};o.useMemo((function(){u()}),[s]);var d=a.opGet(s);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(s));var p=d[1];return It((function(){null==i||i(p)}),(function(e){return u((function(t){var n=He(t,2),o=n[0],r=n[1];return e&&0===o&&(null==i||i(p)),[o+1,r]})),function(){a.opUpdate(s,(function(t){var n=He(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]),p}var zt={},Bt="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",Ht=new Map;var Ft=0;function Vt(e,t){Ht.set(e,(Ht.get(e)||0)-1);var n=Array.from(Ht.keys()),o=n.filter((function(e){return(Ht.get(e)||0)<=0}));n.length-o.length>Ft&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(st,'="').concat(e,'"]')).forEach((function(e){var n;e[ut]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Ht.delete(e)}))}var Wt=function(e,t,n,o){var r=R(R({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r},Ut="token";function Xt(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.useContext(dt),i=r.cache.instanceId,a=r.container,s=o.salt,l=void 0===s?"":s,c=o.override,u=void 0===c?zt:c,d=o.formatToken,p=o.getComputedToken,f=o.cssVar,h=function(e,t){for(var n=vt,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(bt)||n.set(bt,e()),n.get(bt)}((function(){return Object.assign.apply(Object,[{}].concat(Ie(n)))}),n),g=xt(h),m=xt(u),v=f?xt(f):"",b=At(Ut,[l,t.id,g,m,v],(function(){var e,n=p?p(h,u,t):Wt(h,u,t,d),o=R({},n),r="";if(f){var i=He($t(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=i[0],r=i[1]}var a=Ct(n,l);n._tokenKey=a,o._tokenKey=Ct(o,l);var s=null!==(e=null==f?void 0:f.key)&&void 0!==e?e:a;n._themeKey=s,function(e){Ht.set(e,(Ht.get(e)||0)+1)}(s);var c="".concat(Bt,"-").concat(Fe(a));return n._hashId=c,[n,c,o,r,(null==f?void 0:f.key)||""]}),(function(e){Vt(e[0]._themeKey,i)}),(function(e){var t=He(e,4),n=t[0],o=t[3];if(f&&o){var r=tt(o,Fe("css-variables-".concat(n._themeKey)),{mark:lt,prepend:"queue",attachTo:a,priority:-999});r[ut]=i,r.setAttribute(st,n._themeKey)}}));return b}var qt={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},Gt="comm",Kt="rule",Yt="decl",Zt="@import",Qt="@keyframes",Jt="@layer",en=Math.abs,tn=String.fromCharCode;function nn(e){return e.trim()}function on(e,t,n){return e.replace(t,n)}function rn(e,t,n){return e.indexOf(t,n)}function an(e,t){return 0|e.charCodeAt(t)}function sn(e,t,n){return e.slice(t,n)}function ln(e){return e.length}function cn(e,t){return t.push(e),e}var un=1,dn=1,pn=0,fn=0,hn=0,gn="";function mn(e,t,n,o,r,i,a,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:un,column:dn,length:a,return:"",siblings:s}}function vn(){return hn=fn>0?an(gn,--fn):0,dn--,10===hn&&(dn=1,un--),hn}function bn(){return hn=fn<pn?an(gn,fn++):0,dn++,10===hn&&(dn=1,un++),hn}function yn(){return an(gn,fn)}function xn(){return fn}function Cn(e,t){return sn(gn,e,t)}function wn(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 En(e){return nn(Cn(fn-1,On(91===e?e+2:40===e?e+1:e)))}function Sn(e){for(;(hn=yn())&&hn<33;)bn();return wn(e)>2||wn(hn)>3?"":" "}function kn(e,t){for(;--t&&bn()&&!(hn<48||hn>102||hn>57&&hn<65||hn>70&&hn<97););return Cn(e,xn()+(t<6&&32==yn()&&32==bn()))}function On(e){for(;bn();)switch(hn){case e:return fn;case 34:case 39:34!==e&&39!==e&&On(hn);break;case 40:41===e&&On(e);break;case 92:bn()}return fn}function $n(e,t){for(;bn()&&e+hn!==57&&(e+hn!==84||47!==yn()););return"/*"+Cn(t,fn-1)+"*"+tn(47===e?e:bn())}function Mn(e){for(;!wn(yn());)bn();return Cn(e,fn)}function _n(e){return function(e){return gn="",e}(Pn("",null,null,null,[""],e=function(e){return un=dn=1,pn=ln(gn=e),fn=0,[]}(e),0,[0],e))}function Pn(e,t,n,o,r,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,v=1,b=0,y="",x=r,C=i,w=o,E=y;m;)switch(h=b,b=bn()){case 40:if(108!=h&&58==an(E,d-1)){-1!=rn(E+=on(En(b),"&","&\f"),"&\f",en(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:E+=En(b);break;case 9:case 10:case 13:case 32:E+=Sn(h);break;case 92:E+=kn(xn()-1,7);continue;case 47:switch(yn()){case 42:case 47:cn(In($n(bn(),xn()),t,n,l),l),5!=wn(h||1)&&5!=wn(yn()||1)||!ln(E)||" "===sn(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*g:s[c++]=ln(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(E=on(E,/\f/g,"")),f>0&&(ln(E)-d||0===g&&47===h)&&cn(f>32?Ln(E+";",o,n,d-1,l):Ln(on(E," ","")+";",o,n,d-2,l),l);break;case 59:E+=";";default:if(cn(w=Nn(E,t,n,c,u,r,s,y,x=[],C=[],d,i),i),123===b)if(0===u)Pn(E,t,w,w,x,i,d,s,C);else switch(99===p&&110===an(E,3)?100:p){case 100:case 108:case 109:case 115:Pn(e,w,w,o&&cn(Nn(e,w,w,0,0,r,s,y,r,x=[],d,C),C),r,C,d,s,o?x:C);break;default:Pn(E,w,w,w,[""],C,0,s,C)}}c=u=f=0,g=v=1,y=E="",d=a;break;case 58:d=1+ln(E),f=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==vn())continue;switch(E+=tn(b),b*g){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(ln(E)-1)*v,v=1;break;case 64:45===yn()&&(E+=En(bn())),p=yn(),u=d=ln(y=E+=Mn(xn())),b++;break;case 45:45===h&&2==ln(E)&&(g=0)}}return i}function Nn(e,t,n,o,r,i,a,s,l,c,u,d){for(var p=r-1,f=0===r?i:[""],h=function(e){return e.length}(f),g=0,m=0,v=0;g<o;++g)for(var b=0,y=sn(e,p+1,p=en(m=a[g])),x=e;b<h;++b)(x=nn(m>0?f[b]+" "+y:on(y,/&\f/g,f[b])))&&(l[v++]=x);return mn(e,t,n,0===r?Kt:s,l,c,u,d)}function In(e,t,n,o){return mn(e,t,n,Gt,tn(hn),sn(e,2,-2),0,o)}function Ln(e,t,n,o,r){return mn(e,t,n,Yt,sn(e,0,o),sn(e,o+1,-1),o,r)}function Rn(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function jn(e,t,n,o){switch(e.type){case Jt:if(e.children.length)break;case Zt:case Yt:return e.return=e.return||e.value;case Gt:return"";case Qt:return e.return=e.value+"{"+Rn(e.children,o)+"}";case Kt:if(!ln(e.value=e.props.join(",")))return""}return ln(n=Rn(e.children,o))?e.return=e.value+"{"+n+"}":""}function Tn(e,t){var n=t.path,o=t.parentSelectors;M(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var Dn,An=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)))&&Tn("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},zn=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&Tn("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Bn="data-ant-cssinjs-cache-path",Hn="_FILE_STYLE__",Fn=!0;function Vn(e){return function(){if(!Dn&&(Dn={},Ve())){var e=document.createElement("div");e.className=Bn,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=He(e.split(":"),2),n=t[0],o=t[1];Dn[n]=o}));var n,o=document.querySelector("style[".concat(Bn,"]"));o&&(Fn=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!Dn[e]}var Wn="_skip_check_",Un="_multi_value_";function Xn(e){return Rn(_n(e),jn).replace(/\{%%%\:[^;];}/g,";")}function qn(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(Ie(n.slice(1))).join(" ")})).join(",")}var Gn=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,p=void 0===d?[]:d,f=n.linters,h=void 0===f?[]:f,g="",m={};function v(t){var o=t.getName(s);if(!m[o]){var r=He(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=p.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"!==P(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===P(e)&&e&&(Wn in e||Un in e)}(o)){var d;function E(e,t){"production"===process.env.NODE_ENV||"object"===P(o)&&null!=o&&o[Wn]||[An,zn].concat(Ie(h)).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;qt[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 p=null!==(d=null==o?void 0:o.value)&&void 0!==d?d:o;"object"===P(o)&&null!=o&&o[Un]&&Array.isArray(p)?p.forEach((function(e){E(t,e)})):E(t,p)}else{var f=!1,b=t.trim(),y=!1;(r||i)&&s?b.startsWith("@")?f=!0:b=qn("&"===b?"":t,s,u):!r||s||"&"!==b&&""!==b||(b="",y=!0);var x=He(e(o,n,{root:y,injectHash:f,parentSelectors:[].concat(Ie(a),[b])}),2),C=x[0],w=x[1];m=R(R({},m),w),g+="".concat(b).concat(C)}}))}})),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 Kn(e,t){return Fe("".concat(e.join("%")).concat(t))}function Yn(){return null}var Zn="style";function Qn(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,s=e.nonce,l=e.clientOnly,c=e.order,u=void 0===c?0:c,d=o.useContext(dt),p=d.autoClear,f=d.mock,g=d.defaultCache,m=d.hashPriority,v=d.container,b=d.ssrInline,y=d.transformers,x=d.linters,C=d.cache,w=d.layer,E=n._tokenKey,S=[E];w&&S.push("layer"),S.push.apply(S,Ie(r));var k=wt;"production"!==process.env.NODE_ENV&&void 0!==f&&(k="client"===f);var O=At(Zn,S,(function(){var e=S.join("|");if(Vn(e)){var n=function(e){var t=Dn[e],n=null;if(t&&Ve())if(Fn)n=Hn;else{var o=document.querySelector("style[".concat(lt,'="').concat(Dn[e],'"]'));o?n=o.innerHTML:delete Dn[e]}return[n,t]}(e),o=He(n,2),s=o[0],c=o[1];if(s)return[s,E,c,{},l,u]}var d=t(),p=He(Gn(d,{hashId:i,hashPriority:m,layer:w?a:void 0,path:r.join("-"),transformers:y,linters:x}),2),f=p[0],h=p[1],g=Xn(f),v=Kn(S,g);return[g,E,v,h,l,u]}),(function(e,t){var n=He(e,3)[2];(t||p)&&wt&&et(n,{mark:lt})}),(function(e){var t=He(e,4),n=t[0];t[1];var o=t[2],r=t[3];if(k&&n!==Hn){var i={mark:lt,prepend:!w&&"queue",attachTo:v,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){tt(Xn(r[e]),"_layer-".concat(e),R(R({},i),{},{prepend:!0}))}));var d=tt(n,o,i);d[ut]=C.instanceId,d.setAttribute(st,E),"production"!==process.env.NODE_ENV&&d.setAttribute(ct,S.join("|")),c.forEach((function(e){tt(Xn(r[e]),"_effect-".concat(e),i)}))}})),$=He(O,3),M=$[0],_=$[1],P=$[2];return function(e){var t;return t=b&&!k&&g?o.createElement("style",h({},I(I({},st,_),lt,P),{dangerouslySetInnerHTML:{__html:M}})):o.createElement(Yn,null),o.createElement(o.Fragment,null,t,e)}}var Jn="cssVar";I(I(I({},Zn,(function(e,t,n){var o=He(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,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=St(r,i,a,p,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=St(Xn(s[e]),i,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Ut,(function(e,t,n){var o=He(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,St(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Jn,(function(e,t,n){var o=He(e,4),r=o[1],i=o[2],a=o[3],s=(n||{}).plain;if(!r)return null;return[-999,i,St(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var eo=function(){function e(t,n){he(this,e),I(this,"name",void 0),I(this,"style",void 0),I(this,"_keyframe",!0),this.name=t,this.style=n}return me(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function to(e){return e.notSplit=!0,e}to(["borderTop","borderBottom"]),to(["borderTop"]),to(["borderBottom"]),to(["borderLeft","borderRight"]),to(["borderLeft"]),to(["borderRight"]);var no=e.createContext({});function oo(e){return ze(e)||Pe(e)||Ne(e)||Be()}function ro(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}function io(e,t,n,o){if(!t.length)return n;var r,i=oo(t),a=i[0],s=i.slice(1);return r=e||"number"!=typeof a?Array.isArray(e)?Ie(e):R({},e):[],o&&void 0===n&&1===s.length?delete r[a][s[0]]:r[a]=io(r[a],s,n,o),r}function ao(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!ro(e,t.slice(0,-1))?e:io(e,t,n,o)}function so(e){return Array.isArray(e)?[]:{}}var lo="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function co(){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=ro(e,n),l=Array.isArray(s);if(l||"object"===P(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=ro(o,n);l?o=ao(o,n,[]):c&&"object"===P(c)||(o=ao(o,n,so(s))),lo(s).forEach((function(e){t([].concat(Ie(n),[e]),a)}))}}else o=ao(o,n,s)}([])})),o}function uo(){}let po=null;let fo=uo;"production"!==process.env.NODE_ENV&&(fo=(e,t,n)=>{M(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(po=null,O())});const ho=o.createContext({}),go="production"!==process.env.NODE_ENV?e=>{const{strict:t}=o.useContext(ho),n=(n,o,r)=>{if(!n)if(!1===t&&"deprecated"===o){const t=po;po||(po={}),po[e]=po[e]||[],po[e].includes(r||"")||po[e].push(r||""),t||console.warn("[antd] There exists deprecated usage in your code:",po)}else"production"!==process.env.NODE_ENV&&fo(n,e,r)};return n.deprecated=(e,t,o,r)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${o}\` instead.${r?` ${r}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=uo,e};var mo=fo,vo=e.createContext(void 0),bo={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"},yo=R(R({},{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 xo={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Co={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"]},yo),timePickerLocale:Object.assign({},xo)},wo="${label} is not a valid ${type}",Eo={locale:"en",Pagination:bo,DatePicker:Co,TimePicker:xo,Calendar:Co,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:wo,method:wo,array:wo,object:wo,number:wo,date:wo,boolean:wo,integer:wo,float:wo,regexp:wo,email:wo,url:wo,hex:wo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let So=Object.assign({},Eo.Modal),ko=[];const Oo=()=>ko.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Eo.Modal);function $o(){return So}const Mo=e.createContext(void 0),_o=(e,t)=>{const n=o.useContext(Mo),r=o.useMemo((()=>{var o;const r=t||Eo[e],i=null!==(o=null==n?void 0:n[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),i||{})}),[e,t,n]);return[r,o.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Eo.locale:e}),[n])]},Po="internalMark",No=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if("production"!==process.env.NODE_ENV){const e=go("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===Po,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}o.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return ko.push(t),So=Oo(),()=>{ko=ko.filter((e=>e!==t)),So=Oo()}}So=Object.assign({},Eo.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=o.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return o.createElement(Mo.Provider,{value:i},n)};function Io(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 Lo(e){return Math.min(1,Math.max(0,e))}function Ro(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function jo(e){return e<=1?"".concat(100*Number(e),"%"):e}function To(e){return 1===e.length?"0"+e:String(e)}function Do(e,t,n){e=Io(e,255),t=Io(t,255),n=Io(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 Ao(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 zo(e,t,n){e=Io(e,255),t=Io(t,255),n=Io(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 Bo(e,t,n,o){var r=[To(Math.round(e).toString(16)),To(Math.round(t).toString(16)),To(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 Ho(e){return Fo(e)/255}function Fo(e){return parseInt(e,16)}"production"!==process.env.NODE_ENV&&(No.displayName="LocaleProvider");var Vo={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 Wo(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(Vo[e])e=Vo[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Go.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Go.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Go.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Go.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Go.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Go.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Go.hex8.exec(e),n)return{r:Fo(n[1]),g:Fo(n[2]),b:Fo(n[3]),a:Ho(n[4]),format:t?"name":"hex8"};if(n=Go.hex6.exec(e),n)return{r:Fo(n[1]),g:Fo(n[2]),b:Fo(n[3]),format:t?"name":"hex"};if(n=Go.hex4.exec(e),n)return{r:Fo(n[1]+n[1]),g:Fo(n[2]+n[2]),b:Fo(n[3]+n[3]),a:Ho(n[4]+n[4]),format:t?"name":"hex8"};if(n=Go.hex3.exec(e),n)return{r:Fo(n[1]+n[1]),g:Fo(n[2]+n[2]),b:Fo(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Ko(e.r)&&Ko(e.g)&&Ko(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Io(t,255),g:255*Io(n,255),b:255*Io(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Ko(e.h)&&Ko(e.s)&&Ko(e.v)?(a=jo(e.s),s=jo(e.v),r=function(e,t,n){e=6*Io(e,360),t=Io(t,100),n=Io(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"):Ko(e.h)&&Ko(e.s)&&Ko(e.l)&&(a=jo(e.s),l=jo(e.l),r=function(e,t,n){var o,r,i;if(e=Io(e,360),t=Io(t,100),n=Io(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=Ao(s,a,e+1/3),r=Ao(s,a,e),i=Ao(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=Ro(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 Uo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Xo="[\\s|\\(]+(".concat(Uo,")[,|\\s]+(").concat(Uo,")[,|\\s]+(").concat(Uo,")\\s*\\)?"),qo="[\\s|\\(]+(".concat(Uo,")[,|\\s]+(").concat(Uo,")[,|\\s]+(").concat(Uo,")[,|\\s]+(").concat(Uo,")\\s*\\)?"),Go={CSS_UNIT:new RegExp(Uo),rgb:new RegExp("rgb"+Xo),rgba:new RegExp("rgba"+qo),hsl:new RegExp("hsl"+Xo),hsla:new RegExp("hsla"+qo),hsv:new RegExp("hsv"+Xo),hsva:new RegExp("hsva"+qo),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 Ko(e){return Boolean(Go.CSS_UNIT.exec(String(e)))}var Yo=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=Wo(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=Ro(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=zo(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=zo(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=Do(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=Do(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),Bo(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=[To(Math.round(e).toString(16)),To(Math.round(t).toString(16)),To(Math.round(n).toString(16)),To((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*Io(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*Io(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="#"+Bo(this.r,this.g,this.b,!1),t=0,n=Object.entries(Vo);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=Lo(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=Lo(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=Lo(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=Lo(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}(),Zo=2,Qo=.16,Jo=.05,er=.05,tr=.15,nr=5,or=4,rr=[{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 ir(e){var t=zo(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function ar(e){var t=e.r,n=e.g,o=e.b;return"#".concat(Bo(t,n,o,!1))}function sr(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Zo*t:Math.round(e.h)+Zo*t:n?Math.round(e.h)+Zo*t:Math.round(e.h)-Zo*t)<0?o+=360:o>=360&&(o-=360),o}function lr(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-Qo*t:t===or?e.s+Qo:e.s+Jo*t)>1&&(o=1),n&&t===nr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function cr(e,t,n){var o;return(o=n?e.v+er*t:e.v-tr*t)>1&&(o=1),Number(o.toFixed(2))}function ur(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=Wo(e),r=nr;r>0;r-=1){var i=ir(o),a=ar(Wo({h:sr(i,r,!0),s:lr(i,r,!0),v:cr(i,r,!0)}));n.push(a)}n.push(ar(o));for(var s=1;s<=or;s+=1){var l=ir(o),c=ar(Wo({h:sr(l,s),s:lr(l,s),v:cr(l,s)}));n.push(c)}return"dark"===t.theme?rr.map((function(e){var o,r,i,a=e.index,s=e.opacity;return ar((o=Wo(t.backgroundColor||"#141414"),r=Wo(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 dr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},pr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];pr.primary=pr[5];var fr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];fr.primary=fr[5];var hr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];hr.primary=hr[5];var gr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];gr.primary=gr[5];var mr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];mr.primary=mr[5];var vr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];vr.primary=vr[5];var br=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];br.primary=br[5];var yr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];yr.primary=yr[5];var xr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];xr.primary=xr[5];var Cr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Cr.primary=Cr[5];var wr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];wr.primary=wr[5];var Er=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Er.primary=Er[5];var Sr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Sr.primary=Sr[5];var kr={red:pr,volcano:fr,orange:hr,gold:gr,yellow:mr,lime:vr,green:br,cyan:yr,blue:xr,geekblue:Cr,purple:wr,magenta:Er,grey:Sr};const Or={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"},$r=Object.assign(Object.assign({},Or),{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 Mr=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 _r(e){return(e+8)/e}const Pr=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:_r(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 Nr=(e,t)=>new Yo(e).setAlpha(t).toRgbString(),Ir=(e,t)=>new Yo(e).darken(t).toHexString(),Lr=e=>{const t=ur(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]}},Rr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Nr(o,.88),colorTextSecondary:Nr(o,.65),colorTextTertiary:Nr(o,.45),colorTextQuaternary:Nr(o,.25),colorFill:Nr(o,.15),colorFillSecondary:Nr(o,.06),colorFillTertiary:Nr(o,.04),colorFillQuaternary:Nr(o,.02),colorBgLayout:Ir(n,4),colorBgContainer:Ir(n,0),colorBgElevated:Ir(n,0),colorBgSpotlight:Nr(o,.85),colorBgBlur:"transparent",colorBorder:Ir(n,15),colorBorderSecondary:Ir(n,6)}};const jr=mt((function(e){dr.pink=dr.magenta,kr.pink=kr.magenta;const t=Object.keys(Or).map((t=>{const n=e[t]===dr[t]?kr[t]:ur(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),p=n(r),f=n(i),h=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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg: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 Yo("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Lr,generateNeutralColorPalettes:Rr})),Pr(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},Mr(o))}(e))})),Tr={token:$r,override:{override:$r},hashed:!0},Dr=e.createContext(Tr),Ar="ant",zr="anticon",Br=["outlined","borderless","filled"],Hr=o.createContext({getPrefixCls:(e,t)=>t||(e?`${Ar}-${e}`:Ar),iconPrefixCls:zr}),Fr=`-ant-${Date.now()}-${Math.random()}`;function Vr(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 Yo(e),i=ur(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 Yo(t.primaryColor),i=ur(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 Yo(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);Ve()?tt(n,`${Fr}-dynamic-theme`):"production"!==process.env.NODE_ENV&&mo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Wr=o.createContext(!1),Ur=e=>{let{children:t,disabled:n}=e;const r=o.useContext(Wr);return o.createElement(Wr.Provider,{value:null!=n?n:r},t)},Xr=o.createContext(void 0),qr=e=>{let{children:t,size:n}=e;const r=o.useContext(Xr);return o.createElement(Xr.Provider,{value:n||r},t)};var Gr=me((function e(){he(this,e)})),Kr="CALC_UNIT",Yr=new RegExp(Kr,"g");function Zr(e){return"number"==typeof e?"".concat(e).concat(Kr):e}var Qr=function(){be(t,Gr);var e=we(t);function t(n,o){var r;he(this,t),I(Ce(r=e.call(this)),"result",""),I(Ce(r),"unitlessCssVar",void 0),I(Ce(r),"lowPriority",void 0);var i=P(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===i?r.result=Zr(n):"string"===i&&(r.result=n),r}return me(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Zr(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(Zr(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(Yr,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),Jr=function(){be(t,Gr);var e=we(t);function t(n){var o;return he(this,t),I(Ce(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}return me(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),ei=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 ti(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return n}function ni(e){var t=o.useRef(!1),n=He(o.useState(e),2),r=n[0],i=n[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||i(e)}]}function oi(e){return void 0!==e}function ri(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,s=He(ni((function(){return oi(r)?r:oi(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,p=ti(i),f=He(ni([u]),2),h=f[0],g=f[1];return Pt((function(){var e=h[0];l!==e&&p(l,e)}),[h]),Pt((function(){oi(r)||c(r)}),[r]),[d,ti((function(e,t){c(e,t),g([u],t)}))]}function ii(e,t,n,o){var r=R({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach((function(t){var n,o=He(t,2),i=o[0],a=o[1];("production"!==process.env.NODE_ENV&&M(!(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=R(R({},n),r);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var ai="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,si=!0;function li(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ai)return Object.assign.apply(Object,[{}].concat(t));si=!1;var o={};return t.forEach((function(e){"object"===P(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),si=!0,o}var ci={};function ui(){}function di(e,t,n){var o;return"function"==typeof n?n(li(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var pi=function(){function e(){he(this,e),I(this,"map",new Map),I(this,"objectIDMap",new WeakMap),I(this,"nextID",0),I(this,"lastAccessBeat",new Map),I(this,"accessBeat",0)}return me(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===P(e)?"obj_".concat(t.getObjectID(e)):"".concat(P(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}(),fi=new pi;var hi=function(){return{}};const gi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var mi="5.20.5";function vi(e){return e>=0&&e<=255}function bi(e,t){const{r:n,g:o,b:r,a:i}=new Yo(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Yo(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(vi(t)&&vi(i)&&vi(c))return new Yo({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Yo({r:n,g:o,b:r,a:1}).toRgbString()}var yi=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 xi(e){const{override:t}=e,n=yi(e,["override"]),o=Object.assign({},t);Object.keys($r).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:bi(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:bi(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:bi(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:bi(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 Yo("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Yo("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Yo("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 Ci=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 wi={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},Ei={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},Si={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},ki=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=Ci(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=xi(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=Ci(n,["theme"]);let i=r;o&&(i=ki(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function Oi(){const{token:t,hashed:n,theme:o,override:r,cssVar:i}=e.useContext(Dr),a=`${mi}-${n||""}`,s=o||jr,[l,c,u]=Xt(s,[$r,t],{salt:a,override:r,getComputedToken:ki,formatToken:xi,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:wi,ignore:Ei,preserve:Si}});return[s,u,n?c:"",l,i]}const $i=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Mi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},_i=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}},Pi=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"}}}),Ni=e=>({outline:`${Et(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ii=e=>({"&:focus-visible":Object.assign({},Ni(e))}),Li=(e,t)=>{const[n,o]=Oi();return Qn({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:Ri,genComponentStyleHook:ji,genSubStyleComponent:Ti}=function(t){var n=t.useCSP,o=void 0===n?hi:n,r=t.useToken,i=t.usePrefix,a=t.getResetStyles,s=t.getCommonStyle,l=t.getCompUnitless;function c(t,n,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=He(u,1)[0],p=u.join("-");return function(t){var u,f,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,g=r(),m=g.theme,v=g.realToken,b=g.hashId,y=g.token,x=g.cssVar,C=i(),w=C.rootPrefixCls,E=C.iconPrefixCls,S=o(),k=x?"css":"js",O=(u=function(){var e=new Set;return x&&Object.keys(c.unitless||{}).forEach((function(t){e.add(kt(t,x.prefix)),e.add(kt(t,ei(d,x.prefix)))})),function(e,t){var n="css"===e?Qr:Jr;return function(e){return new n(e,t)}}(k,e)},f=[k,d,null==x?void 0:x.prefix],e.useMemo((function(){var e=fi.get(f);if(e)return e;var t=u();return fi.set(f,t),t}),f)),$=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 Et(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 Et(e)})).join(","),")")}}}(k),M=$.max,_=$.min,N={theme:m,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:c.clientOnly,layer:{name:"antd"},order:c.order||-999};Qn(R(R({},N),{},{clientOnly:!1,path:["Shared",w]}),(function(){return"function"==typeof a?a(y):[]}));var I=Qn(R(R({},N),{},{path:[p,t,E]}),(function(){if(!1===c.injectStyle)return[];var e=function(e){var t,n=e,o=ui;return ai&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return si&&t.add(n),e[n]}}),o=function(e,n){var o;ci[e]={global:Array.from(t),component:R(R({},null===(o=ci[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(y),o=e.token,r=e.flush,i=di(d,v,l),a=".".concat(t),u=ii(d,v,i,{deprecatedTokens:c.deprecatedTokens});x&&"object"===P(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(kt(e,ei(d,x.prefix)),")")}));var p=li(o,{componentCls:a,prefixCls:t,iconCls:".".concat(E),antCls:".".concat(w),calc:O,max:M,min:_},x?i:u),f=n(p,{hashId:b,prefixCls:t,rootPrefixCls:w,iconPrefixCls:E});r(d,u);var g="function"==typeof s?s(p,t,h,c.resetFont):null;return[!1===c.resetStyle?null:g,f]}));return[I,b]}}return{genStyleHooks:function(t,n,o,i){var a=Array.isArray(t)?t[0]:t;function s(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=R(R({},"function"==typeof l?l(t):{}),{},I({},s("zIndexPopup"),!0));Object.keys(u).forEach((function(e){d[s(e)]=u[e]}));var p=R(R({},i),{},{unitless:d,prefixToken:s}),f=c(t,n,o,p),h=function(t,n,o){var i=o.unitless,a=o.injectStyle,s=void 0===a||a,l=o.prefixToken,c=o.ignore,u=function(a){var s=a.rootCls,u=a.cssVar,d=void 0===u?{}:u,p=r().realToken;return function(t,n){var o=t.key,r=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=void 0===l?"":l,u=e.useContext(dt),d=u.cache.instanceId,p=u.container,f=s._tokenKey,h=[].concat(Ie(t.path),[o,c,f]),g=At(Jn,h,(function(){var e=n(),t=He($t(e,o,{prefix:r,unitless:i,ignore:a,scope:c}),2),s=t[0],l=t[1];return[s,l,Kn(h,l),o]}),(function(e){var t=He(e,3)[2];wt&&et(t,{mark:lt})}),(function(e){var t=He(e,3),n=t[1],r=t[2];if(n){var i=tt(n,r,{mark:lt,prepend:"queue",attachTo:p,priority:-999});i[ut]=d,i.setAttribute(st,o)}}))}({path:[t],prefix:d.prefix,key:d.key,unitless:i,ignore:c,token:p,scope:s},(function(){var e=di(t,p,n),r=ii(t,p,e,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(e).forEach((function(e){r[l(e)]=r[e],delete r[e]})),r})),null},d=function(n){var o=r().cssVar;return[function(r){return s&&o?e.createElement(e.Fragment,null,e.createElement(u,{rootCls:n,cssVar:o,component:t}),r):r},null==o?void 0:o.key]};return d}(a,o,p);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=He(f(e,t),2)[1],o=He(h(t),2);return[o[0],n,o[1]]}},genSubStyleComponent:function(e,t,n){var o=c(e,t,n,R({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:c}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=e.useContext(Hr);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,o,r]=Oi();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:t,iconPrefixCls:n}=e.useContext(Hr);return Li(n,t),null!=t?t:{}},getResetStyles:e=>[{"&":Pi(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:()=>wi});function Di(e,t){return gi.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 Ai=Object.assign({},o),{useId:zi}=Ai,Bi=void 0===zi?()=>"":zi;var Hi=["children"],Fi=o.createContext({});function Vi(e){var t=e.children,n=nt(e,Hi);return o.createElement(Fi.Provider,{value:n},t)}var Wi=function(){be(t,o.Component);var e=we(t);function t(){return he(this,t),e.apply(this,arguments)}return me(t,[{key:"render",value:function(){return this.props.children}}]),t}();var Ui="none",Xi="appear",qi="enter",Gi="leave",Ki="none",Yi="prepare",Zi="start",Qi="active",Ji="end",ea="prepared";function ta(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 na=function(e,t){var n={animationend:ta("Animation","AnimationEnd"),transitionend:ta("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Ve(),"undefined"!=typeof window?window:{}),oa={};if(Ve()){var ra=document.createElement("div");oa=ra.style}var ia={};function aa(e){if(ia[e])return ia[e];var t=na[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 oa)return ia[e]=t[i],ia[e]}return""}var sa=aa("animationend"),la=aa("transitionend"),ca=!(!sa||!la),ua=sa||"animationend",da=la||"transitionend";function pa(e,t){if(!e)return null;if("object"===P(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var fa=function(t){var n=e.useRef();function r(e){e&&(e.removeEventListener(da,t),e.removeEventListener(ua,t))}return o.useEffect((function(){return function(){r(n.current)}}),[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(da,t),e.addEventListener(ua,t),n.current=e)},r]},ha=Ve()?e.useLayoutEffect:e.useEffect,ga=[Yi,Zi,Qi,Ji],ma=[Yi,ea],va=!1,ba=!0;function ya(e){return e===Qi||e===Ji}var xa=function(e,t,n){var r=He(ni(Ki),2),i=r[0],a=r[1],s=function(){var e=o.useRef(null);function t(){Ae.cancel(e.current)}return o.useEffect((function(){return function(){t()}}),[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Ae((function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)}));e.current=i},t]}(),l=He(s,2),c=l[0],u=l[1];var d=t?ma:ga;return ha((function(){if(i!==Ki&&i!==Ji){var e=d.indexOf(i),t=d[e+1],o=n(i);o===va?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===o?n():Promise.resolve(o).then(n)}))}}),[e,i]),o.useEffect((function(){return function(){u()}}),[]),[function(){a(Yi,!0)},i]};function Ca(t,n,r,i){var a,s,l,c=i.motionEnter,u=void 0===c||c,d=i.motionAppear,p=void 0===d||d,f=i.motionLeave,h=void 0===f||f,g=i.motionDeadline,m=i.motionLeaveImmediately,v=i.onAppearPrepare,b=i.onEnterPrepare,y=i.onLeavePrepare,x=i.onAppearStart,C=i.onEnterStart,w=i.onLeaveStart,E=i.onAppearActive,S=i.onEnterActive,k=i.onLeaveActive,O=i.onAppearEnd,$=i.onEnterEnd,M=i.onLeaveEnd,_=i.onVisibleChanged,P=He(ni(),2),N=P[0],L=P[1],j=(a=Ui,s=He(o.useReducer((function(e){return e+1}),0),2)[1],l=o.useRef(a),[ti((function(){return l.current})),ti((function(e){l.current="function"==typeof e?e(l.current):e,s()}))]),T=He(j,2),D=T[0],A=T[1],z=He(ni(null),2),B=z[0],H=z[1],F=D(),V=e.useRef(!1),W=e.useRef(null);function U(){return r()}var X=e.useRef(!1);function q(){A(Ui),H(null,!0)}var G=ti((function(e){var t=D();if(t!==Ui){var n=U();if(!e||e.deadline||e.target===n){var o,r=X.current;t===Xi&&r?o=null==O?void 0:O(n,e):t===qi&&r?o=null==$?void 0:$(n,e):t===Gi&&r&&(o=null==M?void 0:M(n,e)),r&&!1!==o&&q()}}})),K=He(fa(G),1)[0],Y=function(e){switch(e){case Xi:return I(I(I({},Yi,v),Zi,x),Qi,E);case qi:return I(I(I({},Yi,b),Zi,C),Qi,S);case Gi:return I(I(I({},Yi,y),Zi,w),Qi,k);default:return{}}},Z=o.useMemo((function(){return Y(F)}),[F]),Q=He(xa(F,!t,(function(e){if(e===Yi){var t=Z[Yi];return t?t(U()):va}var n;ee in Z&&H((null===(n=Z[ee])||void 0===n?void 0:n.call(Z,U(),null))||null);return ee===Qi&&F!==Ui&&(K(U()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){G({deadline:!0})}),g))),ee===ea&&q(),ba})),2),J=Q[0],ee=Q[1],te=ya(ee);X.current=te,ha((function(){L(n);var e,o=V.current;V.current=!0,!o&&n&&p&&(e=Xi),o&&n&&u&&(e=qi),(o&&!n&&h||!o&&m&&!n&&h)&&(e=Gi);var r=Y(e);e&&(t||r[Yi])?(A(e),J()):A(Ui)}),[n]),e.useEffect((function(){(F===Xi&&!p||F===qi&&!u||F===Gi&&!h)&&A(Ui)}),[p,u,h]),e.useEffect((function(){return function(){V.current=!1,clearTimeout(W.current)}}),[]);var ne=o.useRef(!1);e.useEffect((function(){N&&(ne.current=!0),void 0!==N&&F===Ui&&((ne.current||N)&&(null==_||_(N)),ne.current=!0)}),[N,F]);var oe=B;return Z[Yi]&&ee===Zi&&(oe=R({transition:"none"},oe)),[F,ee,oe,null!=N?N:n]}var wa=function(t){var n=t;"object"===P(t)&&(n=t.transitionSupport);var r=o.forwardRef((function(t,r){var i=t.visible,a=void 0===i||i,s=t.removeOnLeave,l=void 0===s||s,c=t.forceRender,u=t.children,d=t.motionName,p=t.leavedClassName,h=t.eventProps,g=function(e,t){return!(!e.motionName||!n||!1===t)}(t,o.useContext(Fi).motion),m=e.useRef(),v=e.useRef();var b=He(Ca(g,a,(function(){try{return m.current instanceof HTMLElement?m.current:T(v.current)}catch(e){return null}}),t),4),y=b[0],x=b[1],C=b[2],w=b[3],E=o.useRef(w);w&&(E.current=!0);var S,k=o.useCallback((function(e){m.current=e,A(r,e)}),[r]),O=R(R({},h),{},{visible:a});if(u)if(y===Ui)S=w?u(R({},O),k):!l&&E.current&&p?u(R(R({},O),{},{className:p}),k):c||!l&&!p?u(R(R({},O),{},{style:{display:"none"}}),k):null;else{var $;x===Yi?$="prepare":ya(x)?$="active":x===Zi&&($="start");var M=pa(d,"".concat(y,"-").concat($));S=u(R(R({},O),{},{className:f(pa(d,y),I(I({},M,M&&$),d,"string"==typeof d)),style:C}),k)}else S=null;o.isValidElement(S)&&H(S)&&(S.ref||(S=o.cloneElement(S,{ref:k})));return o.createElement(Wi,{ref:v},S)}));return r.displayName="CSSMotion",r}(ca),Ea="add",Sa="keep",ka="remove",Oa="removed";function $a(e){var t;return R(R({},t=e&&"object"===P(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ma(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map($a)}var _a=["component","children","onVisibleChanged","onAllRemoved"],Pa=["status"],Na=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ia(e){const{children:t}=e,[,n]=Oi(),{motion:r}=n,i=o.useRef(!1);return i.current=i.current||!1===r,i.current?o.createElement(Vi,{motion:r},t):t}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wa,t=function(){be(n,o.Component);var t=we(n);function n(){var e;he(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return I(Ce(e=t.call.apply(t,[this].concat(r))),"state",{keyEntities:[]}),I(Ce(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:R(R({},e),{},{status:Oa})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Oa})).length})),e}return me(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,s=r.onVisibleChanged,l=r.onAllRemoved,c=nt(r,_a),u=i||o.Fragment,d={};return Na.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,o.createElement(u,c,n.map((function(n,r){var i=n.status,c=nt(n,Pa),u=i===Ea||i===Sa;return o.createElement(e,h({},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(R(R({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=Ma(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=Ma(e),a=Ma(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 R(R({},e),{},{status:Ea})}))),o=i),n.push(R(R({},s),{},{status:Sa})),o+=1,t=!0;break}}t||n.push(R(R({},e),{},{status:ka}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return R(R({},e),{},{status:Ea})}))));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!==ka}))).forEach((function(t){t.key===e&&(t.status=Sa)}))})),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!==Oa||e.status!==ka}))}}}]),n}();I(t,"defaultProps",{component:"div"})}(ca);const La=o.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return go("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(La.displayName="PropWarning");var Ra="production"!==process.env.NODE_ENV?La:()=>null,ja=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 Ta=!1;const Da="production"!==process.env.NODE_ENV?e=>{"production"!==process.env.NODE_ENV&&mo(!Ta,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,Aa=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let za,Ba,Ha,Fa;function Va(){return za||Ar}function Wa(){return Ba||zr}const Ua=()=>({getPrefixCls:(e,t)=>t||(e?`${Va()}-${e}`:Va()),getIconPrefixCls:Wa,getRootPrefixCls:()=>za||Va(),getTheme:()=>Ha,holderRender:Fa}),Xa=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,virtual:p,dropdownMatchSelectWidth:f,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:m,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:C,statistic:w,spin:E,calendar:S,carousel:k,cascader:O,collapse:$,typography:M,checkbox:_,descriptions:P,divider:N,drawer:I,skeleton:L,steps:R,image:j,layout:T,list:A,mentions:z,modal:B,progress:H,result:F,slider:V,breadcrumb:W,menu:U,pagination:X,input:q,textArea:G,empty:K,badge:Y,radio:Z,rate:Q,switch:J,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:pe,datePicker:fe,rangePicker:he,flex:ge,wave:me,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:Ce,inputNumber:we,treeSelect:Ee}=e,Se=o.useCallback(((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||v.getPrefixCls("");return t?`${r}-${t}`:r}),[v.getPrefixCls,e.prefixCls]),ke=b||v.iconPrefixCls||zr,Oe=n||v.csp;Li(ke,Oe);const $e=function(e,t,n){var o,r;const i=go("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Tr),{hashed:null!==(o=null==t?void 0:t.hashed)&&void 0!==o?o:Tr.hashed,cssVar:null==t?void 0:t.cssVar}),l=Bi();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 D((()=>{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)=>!ot(e,t[n],!0)))))}(y,v.theme,{prefixCls:Se("")});"production"!==process.env.NODE_ENV&&(Ta=Ta||!!$e);const Me={csp:Oe,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:l||m,direction:u,space:d,virtual:p,popupMatchSelectWidth:null!=h?h:f,popupOverflow:g,getPrefixCls:Se,iconPrefixCls:ke,theme:$e,segmented:C,statistic:w,spin:E,calendar:S,carousel:k,cascader:O,collapse:$,typography:M,checkbox:_,descriptions:P,divider:N,drawer:I,skeleton:L,steps:R,image:j,input:q,textArea:G,layout:T,list:A,mentions:z,modal:B,progress:H,result:F,slider:V,breadcrumb:W,menu:U,pagination:X,empty:K,badge:Y,radio:Z,rate:Q,switch:J,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:pe,datePicker:fe,rangePicker:he,flex:ge,wave:me,dropdown:ve,warning:be,tour:ye,floatButtonGroup:xe,variant:Ce,inputNumber:we,treeSelect:Ee};if("production"!==process.env.NODE_ENV){go("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const _e=Object.assign({},v);Object.keys(Me).forEach((e=>{void 0!==Me[e]&&(_e[e]=Me[e])})),Aa.forEach((t=>{const n=e[t];n&&(_e[t]=n)})),void 0!==r&&(_e.button=Object.assign({autoInsertSpace:r},_e.button));const Pe=D((()=>_e),_e,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),Ne=o.useMemo((()=>({prefixCls:ke,csp:Oe})),[ke,Oe]);let Ie=o.createElement(o.Fragment,null,o.createElement(Ra,{dropdownMatchSelectWidth:f}),t);const Le=o.useMemo((()=>{var e,t,n,o;return co((null===(e=Eo.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Pe.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=Pe.form)||void 0===o?void 0:o.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})}),[Pe,null==s?void 0:s.validateMessages]);Object.keys(Le).length>0&&(Ie=o.createElement(vo.Provider,{value:Le},Ie)),l&&(Ie=o.createElement(No,{locale:l,_ANT_MARK__:Po},Ie)),(ke||Oe)&&(Ie=o.createElement(no.Provider,{value:Ne},Ie)),c&&(Ie=o.createElement(qr,{size:c},Ie)),Ie=o.createElement(Ia,null,Ie);const Re=o.useMemo((()=>{const e=$e||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=ja(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?mt(t):jr,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=mt(o.algorithm)),delete o.algorithm),s[t]=o}));const l=Object.assign(Object.assign({},$r),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=o.createElement(Dr.Provider,{value:Re},Ie)),Pe.warning&&(Ie=o.createElement(ho.Provider,{value:Pe.warning},Ie)),void 0!==x&&(Ie=o.createElement(Ur,{disabled:x},Ie)),o.createElement(Hr.Provider,{value:Pe},Ie)},qa=e=>{const t=o.useContext(Hr),n=o.useContext(Mo);return o.createElement(Xa,Object.assign({parentContext:t,legacyLocale:n},e))};qa.ConfigContext=Hr,qa.SizeContext=Xr,qa.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(za=t),void 0!==n&&(Ba=n),"holderRender"in e&&(Fa=r),o&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?Ha=o:("production"!==process.env.NODE_ENV&&mo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Vr(Va(),o)))},qa.useConfig=function(){return{componentDisabled:e.useContext(Wr),componentSize:e.useContext(Xr)}},Object.defineProperty(qa,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&mo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Xr)}),"production"!==process.env.NODE_ENV&&(qa.displayName="ConfigProvider");var Ga={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Ka(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ya(e){return function(e){return Ka(e)instanceof ShadowRoot}(e)?Ka(e):null}function Za(e){return"object"===P(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===P(e.icon)||"function"==typeof e.icon)}function Qa(){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 Ja(t,n,o){return o?e.createElement(t.tag,R(R({key:n},Qa(t.attrs)),o),(t.children||[]).map((function(e,o){return Ja(e,"".concat(n,"-").concat(t.tag,"-").concat(o))}))):e.createElement(t.tag,R({key:n},Qa(t.attrs)),(t.children||[]).map((function(e,o){return Ja(e,"".concat(n,"-").concat(t.tag,"-").concat(o))})))}function es(e){return ur(e)[0]}function ts(e){return e?Array.isArray(e)?e:[e]:[]}var ns=["icon","className","onClick","style","primaryColor","secondaryColor"],os={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var rs=function(t){var n,r,i,a,s,l,c,u=t.icon,d=t.className,p=t.onClick,f=t.style,h=t.primaryColor,g=t.secondaryColor,m=nt(t,ns),v=o.useRef(),b=os;if(h&&(b={primaryColor:h,secondaryColor:g||es(h)}),n=v,r=e.useContext(no),i=r.csp,a=r.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)),e.useEffect((function(){var e=Ya(n.current);tt(s,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),l=Za(u),c="icon should be icon definiton, but got ".concat(u),M(l,"[@ant-design/icons] ".concat(c)),!Za(u))return null;var y=u;return y&&"function"==typeof y.icon&&(y=R(R({},y),{},{icon:y.icon(b.primaryColor,b.secondaryColor)})),Ja(y.icon,"svg-".concat(y.name),R(R({className:d,onClick:p,style:f,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:v}))};function is(e){var t=He(ts(e),2),n=t[0],o=t[1];return rs.setTwoToneColors({primaryColor:n,secondaryColor:o})}rs.displayName="IconReact",rs.getTwoToneColors=function(){return R({},os)},rs.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;os.primaryColor=t,os.secondaryColor=n||es(t),os.calculated=!!n};var as=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];is(xr.primary);var ss=o.forwardRef((function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=nt(e,as),d=o.useContext(no),p=d.prefixCls,g=void 0===p?"anticon":p,m=d.rootClassName,v=f(m,g,I(I({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!i||"loading"===r.name),n),b=s;void 0===b&&l&&(b=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,x=He(ts(c),2),C=x[0],w=x[1];return o.createElement("span",h({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:v}),o.createElement(rs,{icon:r,primaryColor:C,secondaryColor:w,style:y}))}));ss.displayName="AntdIcon",ss.getTwoToneColor=function(){var e=rs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ss.setTwoToneColor=is;var ls=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Ga}))},cs=o.forwardRef(ls);
26
+ /**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xOTMuNSAzMDEuN2wtMjEwLjYgMjkyYTMxLjggMzEuOCAwIDAxLTUxLjcgMEwzMTguNSA0ODQuOWMtMy44LTUuMyAwLTEyLjcgNi41LTEyLjdoNDYuOWMxMC4yIDAgMTkuOSA0LjkgMjUuOSAxMy4zbDcxLjIgOTguOCAxNTcuMi0yMThjNi04LjMgMTUuNi0xMy4zIDI1LjktMTMuM0g2OTljNi41IDAgMTAuMyA3LjQgNi41IDEyLjd6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(cs.displayName="CheckCircleFilled");var us={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"},ds=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:us}))},ps=o.forwardRef(ds);"production"!==process.env.NODE_ENV&&(ps.displayName="CloseCircleFilled");var fs={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"},hs=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:fs}))},gs=o.forwardRef(hs);"production"!==process.env.NODE_ENV&&(gs.displayName="CloseOutlined");var ms={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},vs=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:ms}))},bs=o.forwardRef(vs);"production"!==process.env.NODE_ENV&&(bs.displayName="ExclamationCircleFilled");var ys={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},xs=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:ys}))},Cs=o.forwardRef(xs);"production"!==process.env.NODE_ENV&&(Cs.displayName="InfoCircleFilled");var ws="".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]+/),Es="aria-",Ss="data-";function ks(e,t){return 0===e.indexOf(t)}function Os(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}:R({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||ks(n,Es))||t.data&&ks(n,Ss)||t.attr&&ws.includes(n))&&(o[n]=e[n])})),o}function $s(t){return t&&e.isValidElement(t)&&t.type===e.Fragment}const Ms=(t,n,o)=>e.isValidElement(t)?e.cloneElement(t,"function"==typeof o?o(t.props||{}):o):n;function _s(e,t){return Ms(e,e,t)}const Ps=e=>{const[,,,,t]=Oi();return t?`${e}-css-var`:""};var Ns={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>=Ns.F1&&t<=Ns.F12)return!1;switch(t){case Ns.ALT:case Ns.CAPS_LOCK:case Ns.CONTEXT_MENU:case Ns.CTRL:case Ns.DOWN:case Ns.END:case Ns.ESC:case Ns.HOME:case Ns.INSERT:case Ns.LEFT:case Ns.MAC_FF_META:case Ns.META:case Ns.NUMLOCK:case Ns.NUM_CENTER:case Ns.PAGE_DOWN:case Ns.PAGE_UP:case Ns.PAUSE:case Ns.PRINT_SCREEN:case Ns.RIGHT:case Ns.SHIFT:case Ns.UP:case Ns.WIN_KEY:case Ns.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ns.ZERO&&e<=Ns.NINE)return!0;if(e>=Ns.NUM_ZERO&&e<=Ns.NUM_MULTIPLY)return!0;if(e>=Ns.A&&e<=Ns.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Ns.SPACE:case Ns.QUESTION_MARK:case Ns.NUM_PLUS:case Ns.NUM_MINUS:case Ns.NUM_PERIOD:case Ns.NUM_DIVISION:case Ns.SEMICOLON:case Ns.DASH:case Ns.EQUALS:case Ns.COMMA:case Ns.PERIOD:case Ns.SLASH:case Ns.APOSTROPHE:case Ns.SINGLE_QUOTE:case Ns.OPEN_SQUARE_BRACKET:case Ns.BACKSLASH:case Ns.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Is={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"},Ls=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Is}))},Rs=o.forwardRef(Ls);"production"!==process.env.NODE_ENV&&(Rs.displayName="LoadingOutlined");const js=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(js.displayName="zIndexContext");const Ts=100,Ds={Modal:Ts,Drawer:Ts,Popover:Ts,Popconfirm:Ts,Tooltip:Ts,Tour:Ts},As={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function zs(t,n){const[,o]=Oi(),r=e.useContext(js),i=function(e){return e in Ds}(t);let a;if(void 0!==n)a=[n,n];else{let e=null!=r?r:0;e+=i?(r?0:o.zIndexPopupBase)+Ds[t]:As[t],a=[void 0===r?n:e,e]}if("production"!==process.env.NODE_ENV){const e=go(t),r=o.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&e(void 0!==n||i<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function Bs(){Bs=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 p="suspendedStart",f="suspendedYield",h="executing",g="completed",m={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var C=Object.getPrototypeOf,w=C&&C(C(I([])));w&&w!==n&&o.call(w,a)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function S(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"==P(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=p;return function(i,a){if(r===h)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===p)throw r=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var c=d(t,n,o);if("normal"===c.type){if(r=o.done?g:f,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 M(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var 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(P(t)+" is not iterable")}return b.prototype=y,r(E,"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(E),e},t.awrap=function(e){return{__await:e}},S(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()}))},S(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"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=I,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(_),!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),_(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;_(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:I(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function Hs(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 Fs(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Hs(i,o,r,a,s,"next",e)}function s(e){Hs(i,o,r,a,s,"throw",e)}a(void 0)}))}}var Vs,Ws=R({},r),Us=Ws.version,Xs=Ws.render,qs=Ws.unmountComponentAtNode;try{Number((Us||"").split(".")[0])>=18&&(Vs=Ws.createRoot)}catch(e){}function Gs(e){var t=Ws.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===P(t)&&(t.usingClientEntryPoint=e)}var Ks="__rc_react_root__";function Ys(e,t){Vs?function(e,t){Gs(!0);var n=t[Ks]||Vs(t);Gs(!1),n.render(e),t[Ks]=n}(e,t):function(e,t){Xs(e,t)}(e,t)}function Zs(e){return Qs.apply(this,arguments)}function Qs(){return(Qs=Fs(Bs().mark((function e(t){return Bs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Ks])||void 0===e||e.unmount(),delete t[Ks]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Js(e){qs(e)}function el(e){return tl.apply(this,arguments)}function tl(){return(tl=Fs(Bs().mark((function e(t){return Bs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Vs){e.next=2;break}return e.abrupt("return",Zs(t));case 2:Js(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const nl=()=>({height:0,opacity:0}),ol=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},rl=e=>({height:e?e.offsetHeight:0}),il=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,al=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ar}-motion-collapse`,onAppearStart:nl,onEnterStart:nl,onAppearActive:ol,onEnterActive:ol,onLeaveStart:rl,onLeaveActive:nl,onAppearEnd:il,onEnterEnd:il,onLeaveEnd:il,motionDeadline:500}},sl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var ll=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 cl=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 ul=ji("Wave",(e=>[cl(e)]));const dl=`${Ar}-wave-target`;function pl(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 fl(e){return Number.isNaN(e)?0:e}const hl=e=>{const{className:t,target:n,component:r}=e,i=o.useRef(null),[a,s]=o.useState(null),[l,c]=o.useState([]),[u,d]=o.useState(0),[p,h]=o.useState(0),[g,m]=o.useState(0),[v,b]=o.useState(0),[y,x]=o.useState(!1),C={left:u,top:p,width:g,height:v,borderRadius:l.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return pl(t)?t:pl(n)?n:pl(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;d(t?n.offsetLeft:fl(-parseFloat(o))),h(t?n.offsetTop:fl(-parseFloat(r))),m(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>fl(parseFloat(e)))))}if(a&&(C["--wave-color"]=a),o.useEffect((()=>{if(n){const e=Ae((()=>{w(),x(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{Ae.cancel(e),null==t||t.disconnect()}}}),[]),!y)return null;const E=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(dl));return o.createElement(wa,{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;el(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:r}=e;return o.createElement("div",{ref:z(i,n),className:f(t,r,{"wave-quick":E}),style:C})}))},gl=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),Ys(o.createElement(hl,Object.assign({},t,{target:e})),i)},ml=(e,t,n)=>{const{wave:r}=o.useContext(Hr),[,i,a]=Oi(),s=ti((o=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${dl}`)||s,{showEffect:c}=r||{};(c||gl)(l,{className:t,token:i,component:n,event:o,hashId:a})})),l=o.useRef();return e=>{Ae.cancel(l.current),l.current=Ae((()=>{s(e)}))}},vl=t=>{const{children:n,disabled:o,component:r}=t,{getPrefixCls:i}=e.useContext(Hr),a=e.useRef(null),s=i("wave"),[,l]=ul(s),c=ml(a,f(s,l),r);if(e.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!ll(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||c(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),!e.isValidElement(n))return null!=n?n:null;return _s(n,{ref:H(n)?z(n.ref,a):a})};"production"!==process.env.NODE_ENV&&(vl.displayName="Wave");const bl=t=>{const n=e.useContext(Xr);return e.useMemo((()=>t?"string"==typeof t?null!=t?t:n:t instanceof Function?t(n):n:n),[t,n])},yl=o.createContext(null),xl=(e,t)=>{const n=o.useContext(yl),r=o.useMemo((()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,a="vertical"===o?"-vertical-":"-";return f(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:r,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},Cl=e=>{let{children:t}=e;return o.createElement(yl.Provider,{value:null},t)};var wl=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 El=o.createContext(void 0),Sl=/^[\u4e00-\u9fa5]{2}$/,kl=Sl.test.bind(Sl);function Ol(e){return"danger"===e?{danger:!0}:{type:e}}function $l(e){return"string"==typeof e}function Ml(e){return"text"===e||"link"===e}function _l(t,n){let o=!1;const r=[];return e.Children.forEach(t,(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})),e.Children.map(r,(t=>function(t,n){if(null==t)return;const o=n?" ":"";return"string"!=typeof t&&"number"!=typeof t&&$l(t.type)&&kl(t.props.children)?_s(t,{children:t.props.children.split("").join(o)}):$l(t)?kl(t)?e.createElement("span",null,t.split("").join(o)):e.createElement("span",null,t):$s(t)?e.createElement("span",null,t):t}(t,n)))}const Pl=e.forwardRef(((t,n)=>{const{className:o,style:r,children:i,prefixCls:a}=t,s=f(`${a}-icon`,o);return e.createElement("span",{ref:n,className:s,style:r},i)})),Nl=e.forwardRef(((t,n)=>{const{prefixCls:o,className:r,style:i,iconClassName:a}=t,s=f(`${o}-loading-icon`,r);return e.createElement(Pl,{prefixCls:o,className:s,style:i,ref:n},e.createElement(Rs,{className:a}))})),Il=()=>({width:0,opacity:0,transform:"scale(0)"}),Ll=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Rl=t=>{const{prefixCls:n,loading:o,existIcon:r,className:i,style:a}=t,s=!!o;return r?e.createElement(Nl,{prefixCls:n,className:i,style:a}):e.createElement(wa,{visible:s,motionName:`${n}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:Il,onAppearActive:Ll,onEnterStart:Il,onEnterActive:Ll,onLeaveStart:Ll,onLeaveActive:Il},((t,o)=>{let{className:r,style:s}=t;return e.createElement(Nl,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),s),ref:o,iconClassName:r})}))},jl=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Tl=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}},jl(`${t}-primary`,r),jl(`${t}-danger`,i)]}},Dl=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return li(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},Al=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:_r(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:_r(l),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:_r(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:p,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*p)/2-e.lineWidth,0)}},zl=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:`${Et(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({},Ii(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"}}}},Bl=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Hl=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Fl=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Vl=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Wl=(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"},Bl(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),Ul=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Vl(e))}),Xl=e=>Object.assign({},Ul(e)),ql=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Gl=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xl(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Bl(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Wl(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},Bl(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Wl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Ul(e))}),Kl=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xl(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Bl(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Wl(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},Bl(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Wl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ul(e))}),Yl=e=>Object.assign(Object.assign({},Gl(e)),{borderStyle:"dashed"}),Zl=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Bl(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ql(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Bl(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),ql(e))}),Ql=e=>Object.assign(Object.assign(Object.assign({},Bl(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),ql(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ql(e)),Bl(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Jl=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Gl(e),[`${t}-primary`]:Kl(e),[`${t}-dashed`]:Yl(e),[`${t}-link`]:Zl(e),[`${t}-text`]:Ql(e),[`${t}-ghost`]:Wl(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ec=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:`${Et(c)} ${Et(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}`]:Hl(e)},{[`${n}${n}-round${t}`]:Fl(e)}]},tc=e=>{const t=li(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return ec(t,e.componentCls)},nc=e=>{const t=li(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 ec(t,`${e.componentCls}-sm`)},oc=e=>{const t=li(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ec(t,`${e.componentCls}-lg`)},rc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var ic=Ri("Button",(e=>{const t=Dl(e);return[zl(t),tc(t),nc(t),oc(t),rc(t),Jl(t),Tl(t)]}),Al,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ac(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 sc(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 lc(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({},ac(e,o,t)),sc(n,o,t))}}function cc(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 uc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},cc(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 dc=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% + ${Et(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% + ${Et(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var pc=Ti(["Button","compact"],(e=>{const t=Dl(e);return[lc(t),uc(t),dc(t)]}),Al),fc=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 hc=e.forwardRef(((t,n)=>{var o,r,i;const{loading:a=!1,prefixCls:s,type:l,danger:c=!1,shape:u="default",size:d,styles:p,disabled:h,className:g,rootClassName:m,children:v,icon:b,iconPosition:y="start",ghost:x=!1,block:C=!1,htmlType:w="button",classNames:E,style:S={},autoInsertSpace:k}=t,O=fc(t,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),$=l||"default",{getPrefixCls:M,direction:_,button:P}=e.useContext(Hr),N=null===(o=null!=k?k:null==P?void 0:P.autoInsertSpace)||void 0===o||o,I=M("btn",s),[L,R,j]=ic(I),T=e.useContext(Wr),D=null!=h?h:T,A=e.useContext(El),B=e.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[H,F]=e.useState(B.loading),[V,W]=e.useState(!1),U=z(n,e.createRef()),X=1===e.Children.count(v)&&!b&&!Ml($);e.useEffect((()=>{let e=null;return B.delay>0?e=setTimeout((()=>{e=null,F(!0)}),B.delay):F(B.loading),function(){e&&(clearTimeout(e),e=null)}}),[B]),e.useEffect((()=>{if(!U||!U.current||!N)return;const e=U.current.textContent;X&&kl(e)?V||W(!0):V&&W(!1)}),[U]);const q=e=>{const{onClick:n}=t;H||D?e.preventDefault():null==n||n(e)};if("production"!==process.env.NODE_ENV){const e=go("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof b&&b.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(x&&Ml($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:G,compactItemClassnames:K}=xl(I,_),Y={large:"lg",small:"sm",middle:void 0},Z=bl((e=>{var t,n;return null!==(n=null!==(t=null!=d?d:G)&&void 0!==t?t:A)&&void 0!==n?n:e})),Q=Z&&Y[Z]||"",J=H?"loading":b,ee=Me(O,["navigate"]),te=f(I,R,j,{[`${I}-${u}`]:"default"!==u&&u,[`${I}-${$}`]:$,[`${I}-${Q}`]:Q,[`${I}-icon-only`]:!v&&0!==v&&!!J,[`${I}-background-ghost`]:x&&!Ml($),[`${I}-loading`]:H,[`${I}-two-chinese-chars`]:V&&N&&!H,[`${I}-block`]:C,[`${I}-dangerous`]:c,[`${I}-rtl`]:"rtl"===_,[`${I}-icon-end`]:"end"===y},K,g,m,null==P?void 0:P.className),ne=Object.assign(Object.assign({},null==P?void 0:P.style),S),oe=f(null==E?void 0:E.icon,null===(r=null==P?void 0:P.classNames)||void 0===r?void 0:r.icon),re=Object.assign(Object.assign({},(null==p?void 0:p.icon)||{}),(null===(i=null==P?void 0:P.styles)||void 0===i?void 0:i.icon)||{}),ie=b&&!H?e.createElement(Pl,{prefixCls:I,className:oe,style:re},b):e.createElement(Rl,{existIcon:!!b,prefixCls:I,loading:H}),ae=v||0===v?_l(v,X&&N):null;if(void 0!==ee.href)return L(e.createElement("a",Object.assign({},ee,{className:f(te,{[`${I}-disabled`]:D}),href:D?void 0:ee.href,style:ne,onClick:q,ref:U,tabIndex:D?-1:0}),ie,ae));let se=e.createElement("button",Object.assign({},O,{type:w,className:te,style:ne,onClick:q,disabled:D,ref:U}),ie,ae,!!K&&e.createElement(pc,{key:"compact",prefixCls:I}));return Ml($)||(se=e.createElement(vl,{component:"Button",disabled:H},se)),L(se)})),gc=hc;function mc(e){return!!(null==e?void 0:e.then)}gc.Group=e=>{const{getPrefixCls:t,direction:n}=o.useContext(Hr),{prefixCls:r,size:i,className:a}=e,s=wl(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Oi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=go("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=f(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},a,c);return o.createElement(El.Provider,{value:i},o.createElement("div",Object.assign({},s,{className:d})))},gc.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(gc.displayName="Button");const vc=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:s,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,p=o.useRef(!1),f=o.useRef(null),[h,g]=ni(!1),m=function(){null==a||a.apply(void 0,arguments)};o.useEffect((()=>{let e=null;return s&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return o.createElement(gc,Object.assign({},Ol(t),{onClick:e=>{if(p.current)return;if(p.current=!0,!d)return void m();let t;if(l){if(t=d(e),u&&!mc(t))return p.current=!1,void m(e)}else if(d.length)t=d(a),p.current=!1;else if(t=d(),!mc(t))return void m();(e=>{mc(e)&&(g(!0),e.then((function(){g(!1,!0),m.apply(void 0,arguments),p.current=!1}),(e=>{if(g(!1,!0),p.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:r},i,{ref:f}),n)},bc=e.createContext({}),{Provider:yc}=bc,xc=()=>{const{autoFocusButton:t,cancelButtonProps:n,cancelTextLocale:o,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:s,onCancel:l,onConfirm:c}=e.useContext(bc);return i?e.createElement(vc,{isSilent:r,actionFn:l,close:function(){null==s||s.apply(void 0,arguments),null==c||c(!1)},autoFocus:"cancel"===t,buttonProps:n,prefixCls:`${a}-btn`},o):null},Cc=()=>{const{autoFocusButton:t,close:n,isSilent:o,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:s,onConfirm:l,onOk:c}=e.useContext(bc);return e.createElement(vc,{isSilent:o,type:s||"primary",actionFn:c,close:function(){null==n||n.apply(void 0,arguments),null==l||l(!0)},autoFocus:"ok"===t,buttonProps:r,prefixCls:`${i}-btn`},a)};var wc=o.createContext(null),Ec=[];function Sc(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,";"):"";tt("\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 p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,f=e&&r&&!isNaN(r)?r:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),et(t),{width:p,height:f}}(e):{width:0,height:0}}var kc="rc-util-locker-".concat(Date.now()),Oc=0;function $c(e){var t=!!e,n=He(o.useState((function(){return Oc+=1,"".concat(kc,"_").concat(Oc)})),1)[0];_t((function(){if(t){var e=Sc(document.body).width,o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;tt("\nhtml body {\n overflow-y: hidden;\n ".concat(o?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else et(n);return function(){et(n)}}),[t,n])}var Mc=function(e){return!1!==e&&(Ve()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},_c=o.forwardRef((function(e,n){var r=e.open,i=e.autoLock,a=e.getContainer,s=e.debug,l=e.autoDestroy,c=void 0===l||l,u=e.children,d=He(o.useState(r),2),p=d[0],f=d[1],h=p||r;"production"!==process.env.NODE_ENV&&M(Ve()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),o.useEffect((function(){(c||r)&&f(r)}),[r,c]);var g=He(o.useState((function(){return Mc(a)})),2),m=g[0],v=g[1];o.useEffect((function(){var e=Mc(a);v(null!=e?e:null)}));var b=function(e,t){var n=He(o.useState((function(){if(!Ve())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&t&&e.setAttribute("data-debug",t),e})),1)[0],r=o.useRef(!1),i=o.useContext(wc),a=He(o.useState(Ec),2),s=a[0],l=a[1],c=i||(r.current?void 0:function(e){l((function(t){return[e].concat(Ie(t))}))});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return _t((function(){return e?i?i(u):u():d(),d}),[e]),_t((function(){s.length&&(s.forEach((function(e){return e()})),l(Ec))}),[s]),[n,c]}(h&&!m,s),y=He(b,2),x=y[0],C=y[1],w=null!=m?m:x;$c(i&&r&&Ve()&&(w===x||w===document.body));var E=null;u&&H(u)&&n&&(E=u.ref);var S=B(E,n);if(!h||!Ve()||void 0===m)return null;var k=!1===w||!1,O=u;return n&&(O=o.cloneElement(u,{ref:S})),o.createElement(wc.Provider,{value:C},k?O:t.createPortal(O,w))}));"production"!==process.env.NODE_ENV&&(_c.displayName="Portal");var Pc=o.createContext({});var Nc=0,Ic=R({},o).useId,Lc=Ic?function(e){var t=Ic();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=He(o.useState("ssr-id"),2),n=t[0],r=t[1];return o.useEffect((function(){var e=Nc;Nc+=1,r("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)};function Rc(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function jc(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 Tc=o.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),Dc={width:0,height:0,overflow:"hidden",outline:"none"},Ac={outline:"none"},zc=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.className,i=t.style,a=t.title,s=t.ariaId,l=t.footer,c=t.closable,u=t.closeIcon,d=t.onClose,p=t.children,g=t.bodyStyle,m=t.bodyProps,v=t.modalRender,b=t.onMouseDown,y=t.onMouseUp,x=t.holderRef,C=t.visible,w=t.forceRender,E=t.width,S=t.height,k=t.classNames,O=t.styles,$=e.useContext(Pc).panel,M=B(x,$),_=e.useRef(),N=e.useRef(),I=e.useRef();e.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=I.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===N.current?_.current.focus({preventScroll:!0}):e||t!==_.current||N.current.focus({preventScroll:!0})}}}));var L={};void 0!==E&&(L.width=E),void 0!==S&&(L.height=S);var j=l?e.createElement("div",{className:f("".concat(o,"-footer"),null==k?void 0:k.footer),style:R({},null==O?void 0:O.footer)},l):null,T=a?e.createElement("div",{className:f("".concat(o,"-header"),null==k?void 0:k.header),style:R({},null==O?void 0:O.header)},e.createElement("div",{className:"".concat(o,"-title"),id:s},a)):null,D=e.useMemo((function(){return"object"===P(c)&&null!==c?c:c?{closeIcon:null!=u?u:e.createElement("span",{className:"".concat(o,"-close-x")})}:{}}),[c,u,o]),A=Os(D,!0),z="object"===P(c)&&c.disabled,H=c?e.createElement("button",h({type:"button",onClick:d,"aria-label":"Close"},A,{className:"".concat(o,"-close"),disabled:z}),D.closeIcon):null,F=e.createElement("div",{className:f("".concat(o,"-content"),null==k?void 0:k.content),style:null==O?void 0:O.content},H,T,e.createElement("div",h({className:f("".concat(o,"-body"),null==k?void 0:k.body),style:R(R({},g),null==O?void 0:O.body)},m),p),j);return e.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?s:null,"aria-modal":"true",ref:M,style:R(R({},i),L),className:f(o,r),onMouseDown:b,onMouseUp:y},e.createElement("div",{tabIndex:0,ref:_,style:Dc,"aria-hidden":"true"}),e.createElement("div",{ref:I,tabIndex:-1,style:Ac},e.createElement(Tc,{shouldUpdate:C||w},v?v(F):F)),e.createElement("div",{tabIndex:0,ref:N,style:Dc,"aria-hidden":"true"}))}));"production"!==process.env.NODE_ENV&&(zc.displayName="Panel");var Bc=o.forwardRef((function(t,n){var r=t.prefixCls,i=t.title,a=t.style,s=t.className,l=t.visible,c=t.forceRender,u=t.destroyOnClose,d=t.motionName,p=t.ariaId,g=t.onVisibleChanged,m=t.mousePosition,v=e.useRef(),b=He(o.useState(),2),y=b[0],x=b[1],C={};function w(){var e,t,n,o,r,i=(e=v.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow,n.left+=jc(r),n.top+=jc(r,!0),n);x(m&&(m.x||m.y)?"".concat(m.x-i.left,"px ").concat(m.y-i.top,"px"):"")}return y&&(C.transformOrigin=y),o.createElement(wa,{visible:l,onVisibleChanged:g,onAppearPrepare:w,onEnterPrepare:w,forceRender:c,motionName:d,removeOnLeave:u,ref:v},(function(e,l){var c=e.className,u=e.style;return o.createElement(zc,h({},t,{ref:n,title:i,ariaId:p,prefixCls:r,holderRef:l,style:R(R(R({},u),a),C),className:f(s,c)}))}))}));Bc.displayName="Content";var Hc=function(e){var t=e.prefixCls,n=e.style,r=e.visible,i=e.maskProps,a=e.motionName,s=e.className;return o.createElement(wa,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var a=e.className,l=e.style;return o.createElement("div",h({ref:r,style:R(R({},l),n),className:f("".concat(t,"-mask"),a,s)},i))}))},Fc=function(t){var n=t.prefixCls,r=void 0===n?"rc-dialog":n,i=t.zIndex,a=t.visible,s=void 0!==a&&a,l=t.keyboard,c=void 0===l||l,u=t.focusTriggerAfterClose,d=void 0===u||u,p=t.wrapStyle,g=t.wrapClassName,m=t.wrapProps,v=t.onClose,b=t.afterOpenChange,y=t.afterClose,x=t.transitionName,C=t.animation,w=t.closable,E=void 0===w||w,k=t.mask,O=void 0===k||k,$=t.maskTransitionName,M=t.maskAnimation,_=t.maskClosable,P=void 0===_||_,N=t.maskStyle,I=t.maskProps,L=t.rootClassName,j=t.classNames,T=t.styles;"production"!==process.env.NODE_ENV&&(["wrapStyle","bodyStyle","maskStyle"].forEach((function(e){S(!(e in t),"".concat(e," is deprecated, please use styles instead."))})),"wrapClassName"in t&&S(!1,"wrapClassName is deprecated, please use classNames instead."));var D=e.useRef(),A=e.useRef(),z=e.useRef(),B=He(o.useState(s),2),H=B[0],F=B[1],V=Lc();function W(e){null==v||v(e)}var U=e.useRef(!1),X=e.useRef(),q=null;P&&(q=function(e){U.current?U.current=!1:A.current===e.target&&W(e)}),e.useEffect((function(){s&&(F(!0),We(A.current,document.activeElement)||(D.current=document.activeElement))}),[s]),e.useEffect((function(){return function(){clearTimeout(X.current)}}),[]);var G=R(R(R({zIndex:i},p),null==T?void 0:T.wrapper),{},{display:H?null:"none"});return o.createElement("div",h({className:f("".concat(r,"-root"),L)},Os(t,{data:!0})),o.createElement(Hc,{prefixCls:r,visible:O&&s,motionName:Rc(r,$,M),style:R(R({zIndex:i},N),null==T?void 0:T.mask),maskProps:I,className:null==j?void 0:j.mask}),o.createElement("div",h({tabIndex:-1,onKeyDown:function(e){if(c&&e.keyCode===Ns.ESC)return e.stopPropagation(),void W(e);s&&e.keyCode===Ns.TAB&&z.current.changeActive(!e.shiftKey)},className:f("".concat(r,"-wrap"),g,null==j?void 0:j.wrapper),ref:A,onClick:q,style:G},m),o.createElement(Bc,h({},t,{onMouseDown:function(){clearTimeout(X.current),U.current=!0},onMouseUp:function(){X.current=setTimeout((function(){U.current=!1}))},ref:z,closable:E,ariaId:V,prefixCls:r,visible:s&&H,onClose:W,onVisibleChanged:function(e){if(e)We(A.current,document.activeElement)||null===(t=z.current)||void 0===t||t.focus();else{if(F(!1),O&&D.current&&d){try{D.current.focus({preventScroll:!0})}catch(e){}D.current=null}H&&(null==y||y())}var t;null==b||b(e)},motionName:Rc(r,x,C)}))))},Vc=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,s=e.afterClose,l=e.panelRef,c=He(o.useState(t),2),u=c[0],d=c[1],p=o.useMemo((function(){return{panel:l}}),[l]);return o.useEffect((function(){t&&d(!0)}),[t]),r||!a||u?o.createElement(Pc.Provider,{value:p},o.createElement(_c,{open:t||r||u,autoDestroy:!1,getContainer:n,autoLock:t||u},o.createElement(Fc,h({},e,{destroyOnClose:a,afterClose:function(){null==s||s(),d(!1)}})))):null};Vc.displayName="Dialog";var Wc="RC_FORM_INTERNAL_HOOKS",Uc=function(){M(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Xc=o.createContext({getFieldValue:Uc,getFieldsValue:Uc,getFieldError:Uc,getFieldWarning:Uc,getFieldsError:Uc,isFieldsTouched:Uc,isFieldTouched:Uc,isFieldValidating:Uc,isFieldsValidating:Uc,resetFields:Uc,setFields:Uc,setFieldValue:Uc,setFieldsValue:Uc,validateFields:Uc,submit:Uc,getInternalHooks:function(){return Uc(),{dispatch:Uc,initEntityValue:Uc,registerField:Uc,useSubscribe:Uc,setInitialValues:Uc,destroyForm:Uc,setCallbacks:Uc,registerWatch:Uc,getFields:Uc,setValidateMessages:Uc,setPreserve:Uc,getInitialValue:Uc}}}),qc=o.createContext(null);function Gc(e){return null==e?[]:Array.isArray(e)?e:[e]}function Kc(){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 Yc=Kc();function Zc(e){var t="function"==typeof Map?new Map:void 0;return Zc=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(xe())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&ve(r,n.prototype),r}(e,arguments,ye(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ve(n,e)},Zc(e)}var Qc=/%[sdj%]/g,Jc=function(){};function eu(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 tu(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(Qc,(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 nu(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 ou(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&&(Jc=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 ru=function(){be(t,Zc(Error));var e=we(t);function t(n,o){var r;return he(this,t),I(Ce(r=e.call(this,"Async Validation Error")),"errors",void 0),I(Ce(r),"fields",void 0),r.errors=n,r.fields=o,r}return me(t)}();function iu(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,Ie(e[n]||[]))})),t}(e);ou(a,n,(function(e){return o(e),e.length?i(new ru(e,eu(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 ru(u,eu(u))):t(r)};s.length||(o(u),t(r)),s.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?ou(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,Ie(e||[])),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function au(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 su(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===P(o)&&"object"===P(e[n])?e[n]=R(R({},e[n]),o):e[n]=o}return e}var lu,cu="enum",uu=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!nu(t,i||e.type)||o.push(tu(r.messages.required,e.fullField))},du=/^(([^<>()\[\]\\.,;:\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,}))$/,pu=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,fu={integer:function(e){return fu.number(e)&&parseInt(e,10)===e},float:function(e){return fu.number(e)&&!fu.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"===P(e)&&!fu.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(du)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(lu)return lu;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,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return lu=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(pu)}},hu={required:uu,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(tu(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)uu(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?fu[i](t)||o.push(tu(r.messages.types[i],e.fullField,e.type)):i&&P(t)!==e.type&&o.push(tu(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,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&o.push(tu(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?o.push(tu(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?o.push(tu(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&o.push(tu(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[cu]=Array.isArray(e[cu])?e[cu]:[],-1===e[cu].indexOf(t)&&o.push(tu(r.messages[cu],e.fullField,e[cu].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(tu(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(tu(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},gu=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(nu(t,i)&&!e.required)return n();hu.required(e,t,o,a,r,i),nu(t,i)||hu.type(e,t,o,a,r)}n(a)},mu={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(nu(t,"string")&&!e.required)return n();hu.required(e,t,o,i,r,"string"),nu(t,"string")||(hu.type(e,t,o,i,r),hu.range(e,t,o,i,r),hu.pattern(e,t,o,i,r),!0===e.whitespace&&hu.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(nu(t)&&!e.required)return n();hu.required(e,t,o,i,r),void 0!==t&&hu.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),nu(t)&&!e.required)return n();hu.required(e,t,o,i,r),void 0!==t&&(hu.type(e,t,o,i,r),hu.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(nu(t)&&!e.required)return n();hu.required(e,t,o,i,r),void 0!==t&&hu.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(nu(t)&&!e.required)return n();hu.required(e,t,o,i,r),nu(t)||hu.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(nu(t)&&!e.required)return n();hu.required(e,t,o,i,r),void 0!==t&&(hu.type(e,t,o,i,r),hu.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(nu(t)&&!e.required)return n();hu.required(e,t,o,i,r),void 0!==t&&(hu.type(e,t,o,i,r),hu.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();hu.required(e,t,o,i,r,"array"),null!=t&&(hu.type(e,t,o,i,r),hu.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(nu(t)&&!e.required)return n();hu.required(e,t,o,i,r),void 0!==t&&hu.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(nu(t)&&!e.required)return n();hu.required(e,t,o,i,r),void 0!==t&&hu.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(nu(t,"string")&&!e.required)return n();hu.required(e,t,o,i,r),nu(t,"string")||hu.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(nu(t,"date")&&!e.required)return n();var a;if(hu.required(e,t,o,i,r),!nu(t,"date"))a=t instanceof Date?t:new Date(t),hu.type(e,a,o,i,r),a&&hu.range(e,a.getTime(),o,i,r)}n(i)},url:gu,hex:gu,email:gu,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":P(t);hu.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(nu(t)&&!e.required)return n();hu.required(e,t,o,i,r)}n(i)}},vu=function(){function e(t){he(this,e),I(this,"rules",null),I(this,"_messages",Yc),this.define(t)}return me(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==P(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=su(Kc(),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===Yc&&(a=Kc()),su(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=R({},o)),null!=(i=o[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":P(i)))),(a="function"==typeof a?{validator:a}:R({},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 iu(s,r,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==P(a.fields)&&"object"!==P(a.defaultField));function c(e,t){return R(R({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Ie(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(au(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(au(a,o)):r.error&&(d=[r.error(a,tu(r.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map((function(e){p[e]=a.defaultField})),p=R(R({},p),t.rule.fields);var f={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(c.bind(null,e))}));var h=new e(f);h.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),h.validate(t.value,t.rule.options||r,(function(e){var t=[];d&&d.length&&t.push.apply(t,Ie(d)),e&&e.length&&t.push.apply(t,Ie(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,p;null===(d=(p=console).error)||void 0===d||d.call(p,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,Ie(t)):r.push(t);r.length?(a=eu(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&&!mu.hasOwnProperty(e.type))throw new Error(tu("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]?mu.required:mu[this.getType(e)]||void 0}}]),e}();I(vu,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");mu[e]=t})),I(vu,"warning",Jc),I(vu,"messages",Yc),I(vu,"validators",mu);var bu="'${name}' is not a valid ${type}",yu={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:bu,method:bu,array:bu,object:bu,number:bu,date:bu,boolean:bu,integer:bu,float:bu,regexp:bu,email:bu,url:bu,hex:bu},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}"}},xu=vu;function Cu(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 wu="CODE_LOGIC_ERROR";function Eu(e,t,n,o,r){return Su.apply(this,arguments)}function Su(){return Su=Fs(Bs().mark((function e(t,n,r,i,a){var s,l,c,u,d,p,f,h,g;return Bs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(s=R({},r)).ruleIndex,xu.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(wu)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new xu(I({},t,[s])),d=co(yu,i.validateMessages),u.messages(d),p=[],e.prev=10,e.next=13,Promise.resolve(u.validate(I({},t,n),R({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(p=e.t0.errors.map((function(e,t){var n=e.message,r=n===wu?d.default:n;return o.isValidElement(r)?o.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(p.length||!c){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Eu("".concat(t,".").concat(n),e,c,i,a)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(Ie(e),Ie(t))}),[]));case 23:return h=R(R({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=p.map((function(e){return"string"==typeof e?Cu(e,h):e})),e.abrupt("return",g);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Su.apply(this,arguments)}function ku(e,t,n,o,r,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,o=R(R({},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(){M(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));M(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=Fs(Bs().mark((function e(n,r){var a,c,u;return Bs().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,Eu(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 Eu(s,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return $u.apply(this,arguments)}(c):function(e){return Ou.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Ou(){return(Ou=Fs(Bs().mark((function e(t){return Bs().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,Ie(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $u(){return $u=Fs(Bs().mark((function e(t){var n;return Bs().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)}))),$u.apply(this,arguments)}function Mu(e){return Gc(e)}function _u(e,t){var n={};return t.forEach((function(t){var o=ro(e,t);n=ao(n,t,o)})),n}function Pu(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 Iu(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===P(t.target)&&e in t.target?t.target[e]:t}function Lu(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(Ie(e.slice(0,n)),[r],Ie(e.slice(n,t)),Ie(e.slice(t+1,o))):i<0?[].concat(Ie(e.slice(0,t)),Ie(e.slice(t+1,n+1)),[r],Ie(e.slice(n+1,o))):e}var Ru=["name"],ju=[];function Tu(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var Du=function(){be(t,o.Component);var e=we(t);function t(n){var r;(he(this,t),I(Ce(r=e.call(this,n)),"state",{resetCount:0}),I(Ce(r),"cancelRegisterFunc",null),I(Ce(r),"mounted",!1),I(Ce(r),"touched",!1),I(Ce(r),"dirty",!1),I(Ce(r),"validatePromise",void 0),I(Ce(r),"prevValidating",void 0),I(Ce(r),"errors",ju),I(Ce(r),"warnings",ju),I(Ce(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Mu(o)),r.cancelRegisterFunc=null})),I(Ce(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ie(void 0===n?[]:n),Ie(t)):[]})),I(Ce(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}))})),I(Ce(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),I(Ce(r),"metaCache",null),I(Ce(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=R(R({},r.getMeta()),{},{destroy:e});ot(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),I(Ce(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),p=r.getValue(c),f=t&&Pu(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||ot(d,p)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=ju,r.warnings=ju,r.triggerMetaEvent()),n.type){case"reset":if(!t||f)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=ju,r.warnings=ju,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&Tu(i,e,c,d,p,n))return void r.reRender();break;case"setField":var h=n.data;if(f)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||ju),"warnings"in h&&(r.warnings=h.warnings||ju),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&Pu(t,u,!0))return void r.reRender();if(i&&!u.length&&Tu(i,e,c,d,p,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Mu).some((function(e){return Pu(n.relatedFields,e)})))return void r.reRender();break;default:if(f||(!s.length||u.length||i)&&Tu(i,e,c,d,p,n))return void r.reRender()}!0===i&&r.reRender()})),I(Ce(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(Fs(Bs().mark((function o(){var a,s,c,u,d,p,f;return Bs().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,p=r.getRules(),i&&(p=p.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Gc(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(f=ku(t,n,p,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ju;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?ju:r;t?o.push.apply(o,Ie(i)):n.push.apply(n,Ie(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",f);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=ju,r.warnings=ju,r.triggerMetaEvent(),r.reRender()),l})),I(Ce(r),"isFieldValidating",(function(){return!!r.validatePromise})),I(Ce(r),"isFieldTouched",(function(){return r.touched})),I(Ce(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(Wc).getInitialValue)(r.getNamePath())})),I(Ce(r),"getErrors",(function(){return r.errors})),I(Ce(r),"getWarnings",(function(){return r.warnings})),I(Ce(r),"isListField",(function(){return r.props.isListField})),I(Ce(r),"isList",(function(){return r.props.isList})),I(Ce(r),"isPreserve",(function(){return r.props.preserve})),I(Ce(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}})),I(Ce(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return R(R({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=C(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),I(Ce(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return ro(e||t(!0),n)})),I(Ce(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,p=r.getNamePath(),f=u.getInternalHooks,h=u.getFieldsValue,g=f(Wc).dispatch,m=r.getValue(),v=c||function(e){return I({},l,e)},b=e[o],y=void 0!==n?v(m):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){M("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=R(R({},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):Iu.apply(void 0,[l].concat(n)),s&&(e=s(e,m,h(!0))),g({type:"updateValue",namePath:p,value:e}),b&&b.apply(void 0,n)},Gc(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:p,triggerName:e})}})),x})),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(Wc).initEntityValue)(Ce(r));return r}return me(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(Wc).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 e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),i=r.child;return r.isFunction?e=i:o.isValidElement(i)?e=o.cloneElement(i,this.getControlled(i.props)):(M(!i,"`children` of Field is not validate ReactElement."),e=i),o.createElement(o.Fragment,{key:t},e)}}]),t}();function Au(e){var t=e.name,n=nt(e,Ru),r=o.useContext(Xc),i=o.useContext(qc),a=void 0!==t?Mu(t):void 0,s="keep";return n.isListField||(s="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===n.preserve&&n.isListField&&a.length<=1&&M(!1,"`preserve` should not apply on Form.List fields."),o.createElement(Du,h({key:s,name:a,isListField:!!i},n,{fieldContext:r}))}I(Du,"contextType",Xc),I(Du,"defaultProps",{trigger:"onChange",valuePropName:"value"});var zu="__@field_split__";function Bu(e){return e.map((function(e){return"".concat(P(e),":").concat(e)})).join(zu)}var Hu=function(){function e(){he(this,e),I(this,"kvs",new Map)}return me(e,[{key:"set",value:function(e,t){this.kvs.set(Bu(e),t)}},{key:"get",value:function(e){return this.kvs.get(Bu(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(Bu(e))}},{key:"map",value:function(e){return Ie(this.kvs.entries()).map((function(t){var n=He(t,2),o=n[0],r=n[1],i=o.split(zu);return e({key:i.map((function(e){var t=He(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}(),Fu=["name"],Vu=me((function e(t){var n=this;he(this,e),I(this,"formHooked",!1),I(this,"forceRootUpdate",void 0),I(this,"subscribable",!0),I(this,"store",{}),I(this,"fieldEntities",[]),I(this,"initialValues",{}),I(this,"callbacks",{}),I(this,"validateMessages",null),I(this,"preserve",null),I(this,"lastValidatePromise",null),I(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}})),I(this,"getInternalHooks",(function(e){return e===Wc?(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}):(M(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),I(this,"useSubscribe",(function(e){n.subscribable=e})),I(this,"prevWithoutPreserves",null),I(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=co(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=ao(r,n,ro(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),I(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Hu;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),I(this,"getInitialValue",(function(e){var t=ro(n.initialValues,e);return e.length?co(t):t})),I(this,"setCallbacks",(function(e){n.callbacks=e})),I(this,"setValidateMessages",(function(e){n.validateMessages=e})),I(this,"setPreserve",(function(e){n.preserve=e})),I(this,"watchList",[]),I(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),I(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)}))}})),I(this,"timeoutId",null),I(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||M(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),I(this,"updateStore",(function(e){n.store=e})),I(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),I(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Hu;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),I(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Mu(e);return t.get(n)||{INVALIDATE_NAME_PATH:Mu(e)}}))})),I(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===P(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)})),_u(n.store,s.map(Mu))})),I(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Mu(e);return ro(n.store,t)})),I(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:Mu(e[n]),errors:[],warnings:[]}}))})),I(this,"getFieldError",(function(e){n.warningUnhooked();var t=Mu(e);return n.getFieldsError([t])[0].errors})),I(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Mu(e);return n.getFieldsError([t])[0].warnings})),I(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(Mu),s=!1):(r=null,s=i):(r=i.map(Mu),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 Hu;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(Ie(t),[e])}))}))}));var d=function(e){return e.some(c)},p=u.map((function(e){return e.value}));return s?p.every(d):p.some(d)})),I(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),I(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(Mu);return t.some((function(e){var t=e.getNamePath();return Pu(o,t)&&e.isFieldValidating()}))})),I(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),I(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Hu,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,Ie(Ie(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))M(!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)M(!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(ao(n.store,r,Ie(i)[0].value))}}}}))})),I(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(co(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(Mu);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(ao(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),I(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=nt(e,Fu),a=Mu(r);o.push(a),"value"in i&&n.updateStore(ao(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),I(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=R(R({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),I(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===ro(n.store,o)&&n.updateStore(ao(n.store,o,t))}})),I(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),I(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!Nu(e.getNamePath(),t)}))){var s=n.store;n.updateStore(ao(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),I(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})}})),I(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=R(R({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),I(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(Ie(o))}),o})),I(this,"updateValue",(function(e,t){var o=Mu(e),r=n.store;n.updateStore(ao(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(_u(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(Ie(i)))})),I(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=co(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),I(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),I(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new Hu;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Mu(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})),I(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new Hu;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 Pu(e,n)}));a.length&&o(a,r)}})),I(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(Mu):[],s=[],l=String(Date.now()),c=new Set,u=r||{},d=u.recursive,p=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||Pu(a,t,d)){var o=e.validateRules(R({validateMessages:R(R({},yu),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,Ie(n)):o.push.apply(o,Ie(n))})),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}})))}}}));var f=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=f,f.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 h=f.then((function(){return n.lastValidatePromise===f?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!==f})}));h.catch((function(e){return e}));var g=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(g),h})),I(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 Wu(e){var t=o.useRef(),n=He(o.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new Vu((function(){n({})}));t.current=r.getForm()}return[t.current]}var Uu=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Xu=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],qu=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,a=e.form,s=e.preserve,l=e.children,c=e.component,u=void 0===c?"form":c,d=e.validateMessages,p=e.validateTrigger,f=void 0===p?"onChange":p,g=e.onValuesChange,m=e.onFieldsChange,v=e.onFinish,b=e.onFinishFailed,y=e.clearOnDestroy,x=nt(e,Xu),C=o.useRef(null),w=o.useContext(Uu),E=He(Wu(a),1)[0],S=E.getInternalHooks(Wc),k=S.useSubscribe,O=S.setInitialValues,$=S.setCallbacks,M=S.setValidateMessages,_=S.setPreserve,N=S.destroyForm;o.useImperativeHandle(t,(function(){return R(R({},E),{},{nativeElement:C.current})})),o.useEffect((function(){return w.registerForm(n,E),function(){w.unregisterForm(n)}}),[w,E,n]),M(R(R({},w.validateMessages),d)),$({onValuesChange:g,onFieldsChange:function(e){if(w.triggerFormChange(n,e),m){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];m.apply(void 0,[e].concat(o))}},onFinish:function(e){w.triggerFormFinish(n,e),v&&v(e)},onFinishFailed:b}),_(s);var I,L=o.useRef(null);O(r,!L.current),L.current||(L.current=!0),o.useEffect((function(){return function(){return N(y)}}),[]);var j="function"==typeof l;j?I=l(E.getFieldsValue(!0),E):I=l;k(!j);var T=o.useRef();o.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==P(e)||"object"!==P(t))return!1;var n=Object.keys(e),o=Object.keys(t);return Ie(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||[])||E.setFields(i||[]),T.current=i}),[i,E]);var D=o.useMemo((function(){return R(R({},E),{},{validateTrigger:f})}),[E,f]),A=o.createElement(qc.Provider,{value:null},o.createElement(Xc.Provider,{value:D},I));return!1===u?A:o.createElement(u,h({},x,{ref:C,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=x.onReset)||void 0===t||t.call(x,e)}}),A)};function Gu(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var Ku="production"!==process.env.NODE_ENV?function(t){var n=t.join("__RC_FIELD_FORM_SPLIT__");M(e.useRef(n).current===n,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var Yu=o.forwardRef(qu);Yu.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(Uu),s=o.useRef({});return o.createElement(Uu.Provider,{value:R(R({},a),{},{validateMessages:R(R({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(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=R(R({},s.current),{},I({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=R({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},Yu.Field=Au,Yu.List=function(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,s=e.isListField,l=o.useContext(Xc),c=o.useContext(qc),u=o.useRef({keys:[],id:0}).current,d=o.useMemo((function(){var e=Mu(l.prefixName)||[];return[].concat(Ie(e),Ie(Mu(t)))}),[l.prefixName,t]),p=o.useMemo((function(){return R(R({},l),{},{prefixName:d})}),[l,d]),f=o.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof r?(M(!1,"Form.List only accepts function as children."),null):o.createElement(qc.Provider,{value:f},o.createElement(Xc.Provider,{value:p},o.createElement(Au,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,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(Ie(u.keys.slice(0,t)),[u.id],Ie(u.keys.slice(t))),i([].concat(Ie(n.slice(0,t)),[e],Ie(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&M(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Ie(u.keys),[u.id]),i([].concat(Ie(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=Lu(u.keys,e,t),i(Lu(n,e,t)))}}},p=o||[];return Array.isArray(p)||(p=[],"production"!==process.env.NODE_ENV&&M(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(p.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)}))))},Yu.useForm=Wu,Yu.useWatch=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=n[0],i=n[1],a=void 0===i?{}:i,s=function(e){return e&&!!e._init}(a)?{form:a}:a,l=s.form,c=He(e.useState(),2),u=c[0],d=c[1],p=e.useMemo((function(){return Gu(u)}),[u]),f=e.useRef(p);f.current=p;var h=e.useContext(Xc),g=l||h,m=g&&g._init;"production"!==process.env.NODE_ENV&&M(2===n.length&&!l||m,"useWatch requires a form instance since it can not auto detect from context.");var v=Mu(r),b=e.useRef(v);return b.current=v,Ku(v),e.useEffect((function(){if(m){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(Wc).registerWatch,n=function(e,t){var n=s.preserve?t:e;return"function"==typeof r?r(n):ro(n,b.current)},o=t((function(e,t){var o=n(e,t),r=Gu(o);f.current!==r&&(f.current=r,d(o))})),i=n(e(),e(!0));return u!==i&&d(i),o}}),[m]),u};const Zu=o.createContext({});"production"!==process.env.NODE_ENV&&(Zu.displayName="FormItemInputContext");const Qu=t=>{let{children:n,status:r,override:i}=t;const a=e.useContext(Zu),s=e.useMemo((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,i,a]);return o.createElement(Zu.Provider,{value:s},n)},Ju=e.createContext(void 0),ed=t=>{const{space:n,form:o,children:r}=t;if(null==r)return null;let i=r;return o&&(i=e.createElement(Qu,{override:!0,status:!0},i)),n&&(i=e.createElement(Cl,null,i)),i};function td(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function nd(t){const{closable:n,closeIcon:o}=t||{};return e.useMemo((()=>{if(!n&&(!1===n||!1===o||null===o))return!1;if(void 0===n&&void 0===o)return null;let e={closeIcon:"boolean"!=typeof o&&null!==o?o:void 0};return n&&"object"==typeof n&&(e=Object.assign(Object.assign({},e),n)),e}),[n,o])}function od(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const rd={};var id=function(e){if(Ve()&&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 ad(e,t){return Array.isArray(e)||void 0===t?id(e):function(e,t){if(!id(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}const sd=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,s=f({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),l=f({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),c=o.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return o.createElement("span",{className:f(t,s,l,n),style:Object.assign(Object.assign({},c),r)})},ld=new eo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),cd=e=>({height:e,lineHeight:Et(e)}),ud=e=>Object.assign({width:e},cd(e)),dd=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ld,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),pd=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},cd(e)),fd=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ud(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ud(r)),[`${t}${t}-sm`]:Object.assign({},ud(i))}},hd=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[o]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},pd(t,s)),[`${o}-lg`]:Object.assign({},pd(r,s)),[`${o}-sm`]:Object.assign({},pd(i,s))}},gd=e=>Object.assign({width:e},cd(e)),md=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:o,borderRadiusSM:r,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},gd(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},gd(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},vd=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},bd=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},cd(e)),yd=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(o).mul(2).equal(),minWidth:s(o).mul(2).equal()},bd(o,s))},vd(e,o,n)),{[`${n}-lg`]:Object.assign({},bd(r,s))}),vd(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},bd(i,s))}),vd(e,i,`${n}-sm`))},xd=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:h,titleHeight:g,blockRadius:m,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},ud(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ud(c)),[`${n}-sm`]:Object.assign({},ud(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[o]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${r}`]:{marginBlockStart:u}},[r]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[o]:{marginBlockStart:f,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},yd(e)),fd(e)),hd(e)),md(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},dd(e))}}};var Cd=Ri("Skeleton",(e=>{const{componentCls:t,calc:n}=e,o=li(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[xd(o)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var wd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Ed=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:wd}))},Sd=o.forwardRef(Ed);"production"!==process.env.NODE_ENV&&(Sd.displayName="DotChartOutlined");const kd=(e,t)=>{const{width:n,rows:o=2}=t;return Array.isArray(n)?n[e]:o-1===e?n:void 0},Od=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=Ie(Array(i)).map(((t,n)=>o.createElement("li",{key:n,style:{width:kd(n,e)}})));return o.createElement("ul",{className:f(t,n),style:r},a)},$d=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return o.createElement("h3",{className:f(t,n),style:Object.assign({width:r},i)})};function Md(e){return e&&"object"==typeof e?e:{}}const _d=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:p}=e,{getPrefixCls:h,direction:g,skeleton:m}=o.useContext(Hr),v=h("skeleton",t),[b,y,x]=Cd(v);if(n||!("loading"in e)){const e=!!l,t=!!c,n=!!u;let s,h;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Md(l));s=o.createElement("div",{className:`${v}-header`},o.createElement(sd,Object.assign({},e)))}if(t||n){let r,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Md(c));r=o.createElement($d,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Md(u));i=o.createElement(Od,Object.assign({},n))}h=o.createElement("div",{className:`${v}-content`},r,i)}const C=f(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:d,[`${v}-rtl`]:"rtl"===g,[`${v}-round`]:p},null==m?void 0:m.className,r,i,y,x);return b(o.createElement("div",{className:C,style:Object.assign(Object.assign({},null==m?void 0:m.style),a)},s,h))}return null!=s?s:null};function Pd(){}_d.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:s="default"}=e,{getPrefixCls:l}=o.useContext(Hr),c=l("skeleton",t),[u,d,p]=Cd(c),h=Me(e,["prefixCls"]),g=f(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},n,r,d,p);return u(o.createElement("div",{className:g},o.createElement(sd,Object.assign({prefixCls:`${c}-button`,size:s},h))))},_d.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:s="default"}=e,{getPrefixCls:l}=o.useContext(Hr),c=l("skeleton",t),[u,d,p]=Cd(c),h=Me(e,["prefixCls","className"]),g=f(c,`${c}-element`,{[`${c}-active`]:i},n,r,d,p);return u(o.createElement("div",{className:g},o.createElement(sd,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:s},h))))},_d.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:s="default"}=e,{getPrefixCls:l}=o.useContext(Hr),c=l("skeleton",t),[u,d,p]=Cd(c),h=Me(e,["prefixCls"]),g=f(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},n,r,d,p);return u(o.createElement("div",{className:g},o.createElement(sd,Object.assign({prefixCls:`${c}-input`,size:s},h))))},_d.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:s}=o.useContext(Hr),l=s("skeleton",t),[c,u,d]=Cd(l),p=f(l,`${l}-element`,{[`${l}-active`]:a},n,r,u,d);return c(o.createElement("div",{className:p},o.createElement("div",{className:f(`${l}-image`,n),style:i},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},o.createElement("title",null,"Image placeholder"),o.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},_d.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:s}=e,{getPrefixCls:l}=o.useContext(Hr),c=l("skeleton",t),[u,d,p]=Cd(c),h=f(c,`${c}-element`,{[`${c}-active`]:a},d,n,r,p),g=null!=s?s:o.createElement(Sd,null);return u(o.createElement("div",{className:h},o.createElement("div",{className:f(`${c}-image`,n),style:i},g)))},"production"!==process.env.NODE_ENV&&(_d.displayName="Skeleton");const Nd=o.createContext({add:Pd,remove:Pd});const Id=()=>{const{cancelButtonProps:t,cancelTextLocale:n,onCancel:o}=e.useContext(bc);return e.createElement(gc,Object.assign({onClick:o},t),n)},Ld=()=>{const{confirmLoading:t,okButtonProps:n,okType:o,okTextLocale:r,onOk:i}=e.useContext(bc);return e.createElement(gc,Object.assign({},Ol(o),{loading:t,onClick:i},n),r)};function Rd(t,n){return e.createElement("span",{className:`${t}-close-x`},n||e.createElement(gs,{className:`${t}-close-icon`}))}const jd=t=>{const{okText:n,okType:o="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:s,okButtonProps:l,cancelButtonProps:c,footer:u}=t,[d]=_o("Modal",$o()),p={confirmLoading:i,okButtonProps:l,cancelButtonProps:c,okTextLocale:n||(null==d?void 0:d.okText),cancelTextLocale:r||(null==d?void 0:d.cancelText),okType:o,onOk:a,onCancel:s},f=e.useMemo((()=>p),Ie(Object.values(p)));let h;return"function"==typeof u||void 0===u?(h=e.createElement(e.Fragment,null,e.createElement(Id,null),e.createElement(Ld,null)),"function"==typeof u&&(h=u(h,{OkBtn:Ld,CancelBtn:Id})),h=e.createElement(yc,{value:f},h)):h=u,e.createElement(Ur,{disabled:!1},h)},Td=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`}}}),Dd=e=>({animationDuration:e,animationFillMode:"both"}),Ad=e=>({animationDuration:e,animationFillMode:"both"}),zd=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({},Dd(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},Ad(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"}}},Bd=new eo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Hd=new eo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Fd=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[zd(o,Bd,Hd,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Vd=new eo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Wd=new eo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Ud=new eo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Xd=new eo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),qd=new eo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gd=new eo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Kd={"move-up":{inKeyframes:new eo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new eo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Vd,outKeyframes:Wd},"move-left":{inKeyframes:Ud,outKeyframes:Xd},"move-right":{inKeyframes:qd,outKeyframes:Gd}},Yd=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Kd[t];return[zd(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Zd=new eo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Qd=new eo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Jd=new eo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ep=new eo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),tp=new eo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),np=new eo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),op=new eo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),rp=new eo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ip={"slide-up":{inKeyframes:Zd,outKeyframes:Qd},"slide-down":{inKeyframes:Jd,outKeyframes:ep},"slide-left":{inKeyframes:tp,outKeyframes:np},"slide-right":{inKeyframes:op,outKeyframes:rp}},ap=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=ip[t];return[zd(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}}]},sp=new eo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),lp=new eo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),cp=new eo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),up=new eo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),dp=new eo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),pp=new eo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),fp={zoom:{inKeyframes:sp,outKeyframes:lp},"zoom-big":{inKeyframes:cp,outKeyframes:up},"zoom-big-fast":{inKeyframes:cp,outKeyframes:up},"zoom-left":{inKeyframes:new eo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new eo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new eo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new eo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:dp,outKeyframes:pp},"zoom-down":{inKeyframes:new eo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new eo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},hp=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=fp[t];return[zd(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 gp(e){return{position:e,inset:0}}const mp=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({},gp("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},gp("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Fd(e)}]},vp=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:`${Et(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},_i(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Et(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:Et(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ii(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Et(e.borderRadiusLG)} ${Et(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:`${Et(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"}}}]},bp=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},yp=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return li(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()})},xp=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Et(e.paddingMD)} ${Et(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Et(e.padding)} ${Et(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Et(e.paddingXS)} ${Et(e.padding)}`:0,footerBorderTop:e.wireframe?`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Et(2*e.padding)} ${Et(2*e.padding)} ${Et(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var Cp=Ri("Modal",(e=>{const t=yp(e);return[vp(t),bp(t),mp(t),hp(t,"zoom")]}),xp,{unitless:{titleLineHeight:!0}}),wp=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 Ep;const Sp=e=>{Ep={x:e.pageX,y:e.pageY},setTimeout((()=>{Ep=null}),100)};Ve()&&window.document.documentElement&&document.documentElement.addEventListener("click",Sp,!0);const kp=t=>{var n;const{getPopupContainer:r,getPrefixCls:i,direction:a,modal:s}=o.useContext(Hr),l=e=>{const{onCancel:n}=t;null==n||n(e)};if("production"!==process.env.NODE_ENV){const e=go("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[o,r]=n;e.deprecated(!(o in t),o,r)}))}const{prefixCls:c,className:u,rootClassName:d,open:p,wrapClassName:h,centered:g,getContainer:m,focusTriggerAfterClose:v=!0,style:b,visible:y,width:x=520,footer:C,classNames:w,styles:E,children:S,loading:k}=t,O=wp(t,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=i("modal",c),M=i(),_=Ps($),[P,N,I]=Cp($,_),L=f(h,{[`${$}-centered`]:!!g,[`${$}-wrap-rtl`]:"rtl"===a}),R=null===C||k?null:o.createElement(jd,Object.assign({},t,{onOk:e=>{const{onOk:n}=t;null==n||n(e)},onCancel:l})),[j,T]=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rd;const r=nd(t),i=nd(n),a=e.useMemo((()=>Object.assign({closeIcon:e.createElement(gs,null)},o)),[o]),s=e.useMemo((()=>!1!==r&&(r?od(a,i,r):!1!==i&&(i?od(a,i):!!a.closable&&a))),[r,i,a]);return e.useMemo((()=>{if(!1===s)return[!1,null];const{closeIconRender:t}=a,{closeIcon:n}=s;let o=n;if(null!=o){t&&(o=t(n));const r=Os(s,!0);Object.keys(r).length&&(o=e.isValidElement(o)?e.cloneElement(o,r):e.createElement("span",Object.assign({},r),o))}return[!0,o]}),[s,a])}(td(t),td(s),{closable:!0,closeIcon:o.createElement(gs,{className:`${$}-close-icon`}),closeIconRender:e=>Rd($,e)}),D=function(e){const t=o.useContext(Nd),n=o.useRef();return ti((o=>{if(o){const r=e?o.querySelector(e):o;t.add(r),n.current=r}else t.remove(n.current)}))}(`.${$}-content`),[A,z]=zs("Modal",O.zIndex);return P(o.createElement(ed,{form:!0,space:!0},o.createElement(js.Provider,{value:z},o.createElement(Vc,Object.assign({width:x},O,{zIndex:A,getContainer:void 0===m?r:m,prefixCls:$,rootClassName:f(N,d,I,_),footer:R,visible:null!=p?p:y,mousePosition:null!==(n=O.mousePosition)&&void 0!==n?n:Ep,onClose:l,closable:j,closeIcon:T,focusTriggerAfterClose:v,transitionName:sl(M,"zoom",t.transitionName),maskTransitionName:sl(M,"fade",t.maskTransitionName),className:f(N,u,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),b),classNames:Object.assign(Object.assign(Object.assign({},null==s?void 0:s.classNames),w),{wrapper:f(L,null==w?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},null==s?void 0:s.styles),E),panelRef:D}),k?o.createElement(_d,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):S))))},Op=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:r,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(r).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Et(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};var $p=Ti(["Modal","confirm"],(e=>{const t=yp(e);return[Op(t)]}),xp,{order:-1e3}),Mp=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 _p(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:s,okCancel:l,footer:c,locale:u}=e,d=Mp(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if("production"!==process.env.NODE_ENV){const e=go("Modal");"production"!==process.env.NODE_ENV&&e(!("string"==typeof n&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let p=n;if(!n&&null!==n)switch(s){case"info":p=o.createElement(Cs,null);break;case"success":p=o.createElement(cs,null);break;case"error":p=o.createElement(ps,null);break;default:p=o.createElement(bs,null)}const h=null!=l?l:"confirm"===s,g=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[m]=_o("Modal"),v=u||m,b=r||(h?null==v?void 0:v.okText:null==v?void 0:v.justOkText),y=i||(null==v?void 0:v.cancelText),x=Object.assign({autoFocusButton:g,cancelTextLocale:y,okTextLocale:b,mergedOkCancel:h},d),C=o.useMemo((()=>x),Ie(Object.values(x))),w=o.createElement(o.Fragment,null,o.createElement(xc,null),o.createElement(Cc,null)),E=void 0!==e.title&&null!==e.title,S=`${a}-body`;return o.createElement("div",{className:`${a}-body-wrapper`},o.createElement("div",{className:f(S,{[`${S}-has-title`]:E})},p,o.createElement("div",{className:`${a}-paragraph`},E&&o.createElement("span",{className:`${a}-title`},e.title),o.createElement("div",{className:`${a}-content`},e.content))),void 0===c||"function"==typeof c?o.createElement(yc,{value:C},o.createElement("div",{className:`${a}-btns`},"function"==typeof c?c(w,{OkBtn:Cc,CancelBtn:xc}):w)):c,o.createElement($p,{prefixCls:t}))}const Pp=e=>{const{close:t,zIndex:n,afterClose:r,open:i,keyboard:a,centered:s,getContainer:l,maskStyle:c,direction:u,prefixCls:d,wrapClassName:p,rootPrefixCls:h,bodyStyle:g,closable:m=!1,closeIcon:v,modalRender:b,focusTriggerAfterClose:y,onConfirm:x,styles:C}=e;if("production"!==process.env.NODE_ENV){const t=go("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[o,r]=n;t.deprecated(!(o in e),o,r)}))}const w=`${d}-confirm`,E=e.width||416,S=e.style||{},k=void 0===e.mask||e.mask,O=void 0!==e.maskClosable&&e.maskClosable,$=f(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===u},e.className),[,M]=Oi(),_=o.useMemo((()=>void 0!==n?n:M.zIndexPopupBase+1e3),[n,M]);return o.createElement(kp,{prefixCls:d,className:$,wrapClassName:f({[`${w}-centered`]:!!e.centered},p),onCancel:()=>{null==t||t({triggerCancel:!0}),null==x||x(!1)},open:i,title:"",footer:null,transitionName:sl(h||"","zoom",e.transitionName),maskTransitionName:sl(h||"","fade",e.maskTransitionName),mask:k,maskClosable:O,style:S,styles:Object.assign({body:g,mask:c},C),width:E,zIndex:_,afterClose:r,keyboard:a,centered:s,getContainer:l,closable:m,closeIcon:v,modalRender:b,focusTriggerAfterClose:y},o.createElement(_p,Object.assign({},e,{confirmPrefixCls:w})))},Np=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return o.createElement(qa,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},o.createElement(Pp,Object.assign({},e)))};"production"!==process.env.NODE_ENV&&(Pp.displayName="ConfirmDialog",Np.displayName="ConfirmDialogWrapper");const Ip=[];let Lp="";function Rp(){return Lp}const jp=t=>{var n,o;const{prefixCls:r,getContainer:i,direction:a}=t,s=$o(),l=e.useContext(Hr),c=Rp()||l.getPrefixCls(),u=r||`${c}-modal`;let d=i;return!1===d&&(d=void 0,"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&mo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),e.createElement(Np,Object.assign({},t,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:null!=a?a:l.direction,locale:null!==(o=null===(n=l.locale)||void 0===n?void 0:n.Modal)&&void 0!==o?o:s,getContainer:d}))};function Tp(t){const n=Ua();"production"===process.env.NODE_ENV||n.holderRender||Da("Modal");const o=document.createDocumentFragment();let r,i=Object.assign(Object.assign({},t),{close:l,open:!0});function a(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a;r.some((e=>null==e?void 0:e.triggerCancel))&&(null===(e=t.onCancel)||void 0===e||(a=e).call.apply(a,[t,()=>{}].concat(Ie(r.slice(1)))));for(let e=0;e<Ip.length;e++){if(Ip[e]===l){Ip.splice(e,1);break}}el(o)}function s(t){clearTimeout(r),r=setTimeout((()=>{const r=n.getPrefixCls(void 0,Rp()),i=n.getIconPrefixCls(),a=n.getTheme(),s=e.createElement(jp,Object.assign({},t));Ys(e.createElement(qa,{prefixCls:r,iconPrefixCls:i,theme:a},n.holderRender?n.holderRender(s):s),o)}))}function l(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof t.afterClose&&t.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,s(i)}return s(i),Ip.push(l),{destroy:l,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),s(i)}}}function Dp(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Ap(e){return Object.assign(Object.assign({},e),{type:"info"})}function zp(e){return Object.assign(Object.assign({},e),{type:"success"})}function Bp(e){return Object.assign(Object.assign({},e),{type:"error"})}function Hp(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var Fp=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=(e,t)=>{var n,{afterClose:r,config:i}=e,a=Fp(e,["afterClose","config"]);const[s,l]=o.useState(!0),[c,u]=o.useState(i),{direction:d,getPrefixCls:p}=o.useContext(Hr),f=p("modal"),h=p(),g=function(){var e;l(!1);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r;n.some((e=>null==e?void 0:e.triggerCancel))&&(null===(e=c.onCancel)||void 0===e||(r=e).call.apply(r,[c,()=>{}].concat(Ie(n.slice(1)))))};o.useImperativeHandle(t,(()=>({destroy:g,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(n=c.okCancel)&&void 0!==n?n:"confirm"===c.type,[v]=_o("Modal",Eo.Modal);return o.createElement(Np,Object.assign({prefixCls:f,rootPrefixCls:h},c,{close:g,open:s,afterClose:()=>{var e;r(),null===(e=c.afterClose)||void 0===e||e.call(c)},okText:c.okText||(m?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:c.direction||d,cancelText:c.cancelText||(null==v?void 0:v.cancelText)},a))};var Wp=o.forwardRef(Vp);let Up=0;const Xp=o.memo(o.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=o.useState([]);return[e,o.useCallback((e=>(t((t=>[].concat(Ie(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return o.useImperativeHandle(t,(()=>({patchElement:r})),[]),o.createElement(o.Fragment,null,n)})));function qp(e){return t=>o.createElement(qa,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},t)))}var Gp=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))},Kp=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,a=e.onMouseDown,s=e.onClick,l="function"==typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==l?l:o.createElement("span",{className:f(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},Yp=o.createContext(null);function Zp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);return o.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var Qp=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Jp=void 0;function ef(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,s=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,p=e.style,g=e.children,m=e.display,v=e.order,b=e.component,y=void 0===b?"div":b,x=nt(e,Qp),C=s&&!m;function w(e){c(u,e)}o.useEffect((function(){return function(){w(null)}}),[]);var E,S=a&&i!==Jp?a(i):g;r||(E={opacity:C?0:1,height:C?0:Jp,overflowY:C?"hidden":Jp,order:s?v:Jp,pointerEvents:C?"none":Jp,position:C?"absolute":Jp});var k={};C&&(k["aria-hidden"]=!0);var O=o.createElement(y,h({className:f(!r&&n,d),style:R(R({},E),p)},k,x,{ref:t}),S);return s&&(O=o.createElement($e,{onResize:function(e){w(e.offsetWidth)},disabled:l},O)),O}var tf=o.forwardRef(ef);function nf(){var e=o.useRef(null);return function(n){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Ae(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){t.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(n)}}function of(e,t){var n=He(o.useState(t),2),r=n[0],i=n[1];return[r,ti((function(t){e((function(){i(t)}))}))]}tf.displayName="Item";var rf=e.createContext(null),af=["component"],sf=["className"],lf=["className"],cf=function(e,t){var n=o.useContext(rf);if(!n){var r=e.component,i=void 0===r?"div":r,a=nt(e,af);return o.createElement(i,h({},a,{ref:t}))}var s=n.className,l=nt(n,sf),c=e.className,u=nt(e,lf);return o.createElement(rf.Provider,{value:null},o.createElement(tf,h({ref:t,className:f(s,c)},l,u)))},uf=o.forwardRef(cf);uf.displayName="RawItem";var df=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],pf="responsive",ff="invalidate";function hf(e){return"+ ".concat(e.length," ...")}function gf(t,n){var r=t.prefixCls,i=void 0===r?"rc-overflow":r,a=t.data,s=void 0===a?[]:a,l=t.renderItem,c=t.renderRawItem,u=t.itemKey,d=t.itemWidth,p=void 0===d?10:d,g=t.ssr,m=t.style,v=t.className,b=t.maxCount,y=t.renderRest,x=t.renderRawRest,C=t.suffix,w=t.component,E=void 0===w?"div":w,S=t.itemComponent,k=t.onVisibleChange,O=nt(t,df),$="full"===g,M=nf(),_=He(of(M,null),2),P=_[0],N=_[1],I=P||0,L=He(of(M,new Map),2),j=L[0],T=L[1],D=He(of(M,0),2),A=D[0],z=D[1],B=He(of(M,0),2),H=B[0],F=B[1],V=He(of(M,0),2),W=V[0],U=V[1],X=He(e.useState(null),2),q=X[0],G=X[1],K=He(e.useState(null),2),Y=K[0],Z=K[1],Q=o.useMemo((function(){return null===Y&&$?Number.MAX_SAFE_INTEGER:Y||0}),[Y,P]),J=He(e.useState(!1),2),ee=J[0],te=J[1],ne="".concat(i,"-item"),oe=Math.max(A,H),re=b===pf,ie=s.length&&re,ae=b===ff,se=ie||"number"==typeof b&&s.length>b,le=e.useMemo((function(){var e=s;return ie?e=null===P&&$?s:s.slice(0,Math.min(s.length,I/p)):"number"==typeof b&&(e=s.slice(0,b)),e}),[s,p,P,b,ie]),ce=e.useMemo((function(){return ie?s.slice(Q+1):s.slice(le.length)}),[s,le,ie,Q]),ue=e.useCallback((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),de=e.useCallback(l||function(e){return e},[l]);function pe(e,t,n){(Y!==e||void 0!==t&&t!==q)&&(Z(e),n||(te(e<s.length-1),null==k||k(e)),void 0!==t&&G(t))}function fe(e,t){T((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function he(e){return j.get(ue(le[e],e))}_t((function(){if(I&&"number"==typeof oe&&le){var e=W,t=le.length,n=t-1;if(!t)return void pe(0,null);for(var o=0;o<t;o+=1){var r=he(o);if($&&(r=r||0),void 0===r){pe(o-1,void 0,!0);break}if(e+=r,0===n&&e<=I||o===n-1&&e+he(n)<=I){pe(n,null);break}if(e+oe>I){pe(o-1,e-r-W+H);break}}C&&he(0)+W>I&&G(null)}}),[I,j,H,W,ue,le]);var ge=ee&&!!ce.length,me={};null!==q&&ie&&(me={position:"absolute",left:q,top:0});var ve,be={prefixCls:ne,responsive:ie,component:S,invalidate:ae},ye=c?function(e,t){var n=ue(e,t);return o.createElement(rf.Provider,{key:n,value:R(R({},be),{},{order:t,item:e,itemKey:n,registerSize:fe,display:t<=Q})},c(e,t))}:function(e,t){var n=ue(e,t);return o.createElement(tf,h({},be,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:fe,display:t<=Q}))},xe={order:ge?Q:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){F(t),z(H)},display:ge};if(x)x&&(ve=o.createElement(rf.Provider,{value:R(R({},be),xe)},x(ce)));else{var Ce=y||hf;ve=o.createElement(tf,h({},be,xe),"function"==typeof Ce?Ce(ce):Ce)}var we=o.createElement(E,h({className:f(!ae&&i,v),style:m,ref:n},O),le.map(ye),se?ve:null,C&&o.createElement(tf,h({},be,{responsive:re,responsiveDisabled:!ie,order:Q,className:"".concat(ne,"-suffix"),registerSize:function(e,t){U(t)},display:!0,style:me}),C));return re&&(we=o.createElement($e,{onResize:function(e,t){N(t.clientWidth)},disabled:!ie},we)),we}var mf=o.forwardRef(gf);mf.displayName="Overflow",mf.Item=uf,mf.RESPONSIVE=pf,mf.INVALIDATE=ff;var vf=function(e,t){var n,r=e.prefixCls,i=e.id,a=e.inputElement,s=e.disabled,l=e.tabIndex,c=e.autoFocus,u=e.autoComplete,d=e.editable,p=e.activeDescendantId,h=e.value,g=e.maxLength,m=e.onKeyDown,v=e.onMouseDown,b=e.onChange,y=e.onPaste,x=e.onCompositionStart,C=e.onCompositionEnd,w=e.open,E=e.attrs,k=a||o.createElement("input",null),O=k,$=O.ref,M=O.props,_=M.onKeyDown,P=M.onChange,N=M.onMouseDown,I=M.onCompositionStart,L=M.onCompositionEnd,j=M.style;return S(!("maxLength"in k.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),k=o.cloneElement(k,R(R(R({type:"search"},M),{},{id:i,ref:z(t,$),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:f("".concat(r,"-selection-search-input"),null===(n=k)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?p:void 0},E),{},{value:d?h:"",maxLength:g,readOnly:!d,unselectable:d?null:"on",style:R(R({},j),{},{opacity:d?null:0}),onKeyDown:function(e){m(e),_&&_(e)},onMouseDown:function(e){v(e),N&&N(e)},onChange:function(e){b(e),P&&P(e)},onCompositionStart:function(e){x(e),I&&I(e)},onCompositionEnd:function(e){C(e),L&&L(e)},onPaste:y}))},bf=o.forwardRef(vf);function yf(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"production"!==process.env.NODE_ENV&&(bf.displayName="Input");var xf="undefined"!=typeof window&&window.document&&window.document.documentElement,Cf="test"!==process.env.NODE_ENV&&xf;function wf(e){return["string","number"].includes(P(e))}function Ef(e){var t=void 0;return e&&(wf(e.title)?t=e.title.toString():wf(e.label)&&(t=e.label.toString())),t}function Sf(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var kf=function(e){e.preventDefault(),e.stopPropagation()},Of=function(t){var n,r,i=t.id,a=t.prefixCls,s=t.values,l=t.open,c=t.searchValue,u=t.autoClearSearchValue,d=t.inputRef,p=t.placeholder,h=t.disabled,g=t.mode,m=t.showSearch,v=t.autoFocus,b=t.autoComplete,y=t.activeDescendantId,x=t.tabIndex,C=t.removeIcon,w=t.maxTagCount,E=t.maxTagTextLength,S=t.maxTagPlaceholder,k=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,O=t.tagRender,$=t.onToggleOpen,M=t.onRemove,_=t.onInputChange,P=t.onInputPaste,N=t.onInputKeyDown,L=t.onInputMouseDown,R=t.onInputCompositionStart,j=t.onInputCompositionEnd,T=o.useRef(null),D=He(e.useState(0),2),A=D[0],z=D[1],B=He(e.useState(!1),2),H=B[0],F=B[1],V="".concat(a,"-selection"),W=l||"multiple"===g&&!1===u||"tags"===g?c:"",U="tags"===g||"multiple"===g&&!1===u||m&&(l||H);n=function(){z(T.current.scrollWidth)},r=[W],Cf?o.useLayoutEffect(n,r):o.useEffect(n,r);var X=function(e,t,n,r,i){return o.createElement("span",{title:Ef(e),className:f("".concat(V,"-item"),I({},"".concat(V,"-item-disabled"),n))},o.createElement("span",{className:"".concat(V,"-item-content")},t),r&&o.createElement(Kp,{className:"".concat(V,"-item-remove"),onMouseDown:kf,onClick:i,customizeIcon:C},"×"))},q=function(e,t,n,r,i,a){return o.createElement("span",{onMouseDown:function(e){kf(e),$(!l)}},O({label:t,value:e,disabled:n,closable:r,onClose:i,isMaxTag:!!a}))},G=o.createElement("div",{className:"".concat(V,"-search"),style:{width:A},onFocus:function(){F(!0)},onBlur:function(){F(!1)}},o.createElement(bf,{ref:d,open:l,prefixCls:a,id:i,inputElement:null,disabled:h,autoFocus:v,autoComplete:b,editable:U,activeDescendantId:y,value:W,onKeyDown:N,onMouseDown:L,onChange:_,onPaste:P,onCompositionStart:R,onCompositionEnd:j,tabIndex:x,attrs:Os(t,!0)}),o.createElement("span",{ref:T,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},W," ")),K=o.createElement(mf,{prefixCls:"".concat(V,"-overflow"),data:s,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!h&&!t,i=n;if("number"==typeof E&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>E&&(i="".concat(a.slice(0,E),"..."))}var s=function(t){t&&t.stopPropagation(),M(e)};return"function"==typeof O?q(o,i,t,r,s):X(e,i,t,r,s)},renderRest:function(e){var t="function"==typeof k?k(e):k;return"function"==typeof O?q(void 0,t,!1,!1,void 0,!0):X({title:t},t,!1)},suffix:G,itemKey:Sf,maxCount:w});return o.createElement(o.Fragment,null,K,!s.length&&!W&&o.createElement("span",{className:"".concat(V,"-placeholder")},p))},$f=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,s=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,u=e.mode,d=e.open,p=e.values,f=e.placeholder,h=e.tabIndex,g=e.showSearch,m=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,C=e.onInputChange,w=e.onInputPaste,E=e.onInputCompositionStart,S=e.onInputCompositionEnd,k=e.title,O=He(o.useState(!1),2),$=O[0],M=O[1],_="combobox"===u,P=_||g,N=p[0],I=m||"";_&&v&&!$&&(I=v),o.useEffect((function(){_&&M(!1)}),[_,v]);var L=!("combobox"!==u&&!d&&!g)&&!!I,R=void 0===k?Ef(N):k,j=o.useMemo((function(){return N?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},f)}),[N,L,f,n]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(bf,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:s,autoComplete:l,editable:P,activeDescendantId:c,value:I,onKeyDown:y,onMouseDown:x,onChange:function(e){M(!0),C(e)},onPaste:w,onCompositionStart:E,onCompositionEnd:S,tabIndex:h,attrs:Os(e,!0),maxLength:_?b:void 0})),!_&&N?o.createElement("span",{className:"".concat(n,"-selection-item"),title:R,style:L?{visibility:"hidden"}:void 0},N.label):null,j)},Mf=function(t,n){var r=e.useRef(null),i=e.useRef(!1),a=t.prefixCls,s=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,p=t.autoClearSearchValue,f=t.onSearch,g=t.onSearchSubmit,m=t.onToggleOpen,v=t.onInputKeyDown,b=t.domRef;o.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var y=He(Zp(0),2),x=y[0],C=y[1],w=e.useRef(null),E=function(e){!1!==f(e,!0,i.current)&&m(!0)},S={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==Ns.UP&&n!==Ns.DOWN||e.preventDefault(),v&&v(e),n!==Ns.ENTER||"tags"!==l||i.current||s||null==g||g(e.target.value),t=n,[Ns.ESC,Ns.SHIFT,Ns.BACKSPACE,Ns.TAB,Ns.WIN_KEY,Ns.ALT,Ns.META,Ns.WIN_KEY_RIGHT,Ns.CTRL,Ns.SEMICOLON,Ns.EQUALS,Ns.CAPS_LOCK,Ns.CONTEXT_MENU,Ns.F1,Ns.F2,Ns.F3,Ns.F4,Ns.F5,Ns.F6,Ns.F7,Ns.F8,Ns.F9,Ns.F10,Ns.F11,Ns.F12].includes(t)||m(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var t=e.target.value;if(u&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,E(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(e){i.current=!1,"combobox"!==l&&E(e.target.value)}},k="multiple"===l||"tags"===l?o.createElement(Of,h({},t,S)):o.createElement($f,h({},t,S));return o.createElement("div",{ref:b,className:"".concat(a,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=x();e.target===r.current||t||"combobox"===l&&d||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&!1!==p&&f("",!0,!1),m())}},k)},_f=o.forwardRef(Mf);function Pf(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,d=i.y,p=void 0===d?0:d,h=o.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],b=m[0],y=m[1],x=v[0],C=v[1];b!==x&&["t","b"].includes(b)?"t"===b?g.top=0:g.bottom=0:g.top=p,y!==C&&["l","r"].includes(y)?"l"===y?g.left=0:g.right=0:g.left=u}return o.createElement("div",{ref:h,className:f("".concat(t,"-arrow"),s),style:g},l)}function Nf(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?o.createElement(wa,h({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return o.createElement("div",{style:{zIndex:r},className:f("".concat(t,"-mask"),n)})})):null}"production"!==process.env.NODE_ENV&&(_f.displayName="Selector");var If=o.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(If.displayName="PopupContent");var Lf=o.forwardRef((function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,p=e.onClick,g=e.mask,m=e.arrow,v=e.arrowPos,b=e.align,y=e.motion,x=e.maskMotion,C=e.forceRender,w=e.getPopupContainer,E=e.autoDestroy,S=e.portal,k=e.zIndex,O=e.onMouseEnter,$=e.onMouseLeave,M=e.onPointerEnter,_=e.ready,P=e.offsetX,N=e.offsetY,I=e.offsetR,L=e.offsetB,j=e.onAlign,T=e.onPrepare,D=e.stretch,A=e.targetWidth,B=e.targetHeight,H="function"==typeof n?n():n,F=c||u,V=(null==w?void 0:w.length)>0,W=He(o.useState(!w||!V),2),U=W[0],X=W[1];if(_t((function(){!U&&V&&s&&X(!0)}),[U,V,s]),!U)return null;var q="auto",G={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(_||!c){var K,Y=b.points,Z=b.dynamicInset||(null===(K=b._experimental)||void 0===K?void 0:K.dynamicInset),Q=Z&&"r"===Y[0][1],J=Z&&"b"===Y[0][0];Q?(G.right=I,G.left=q):(G.left=P,G.right=q),J?(G.bottom=L,G.top=q):(G.top=N,G.bottom=q)}var ee={};return D&&(D.includes("height")&&B?ee.height=B:D.includes("minHeight")&&B&&(ee.minHeight=B),D.includes("width")&&A?ee.width=A:D.includes("minWidth")&&A&&(ee.minWidth=A)),c||(ee.pointerEvents="none"),o.createElement(S,{open:C||F,getContainer:w&&function(){return w(s)},autoDestroy:E},o.createElement(Nf,{prefixCls:i,open:c,zIndex:k,mask:g,motion:x}),o.createElement($e,{onResize:j,disabled:!c},(function(e){return o.createElement(wa,h({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:T,onEnterPrepare:T,visible:c,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),l(e)}}),(function(n,s){var l=n.className,u=n.style,h=f(i,l,r);return o.createElement("div",{ref:z(e,t,s),className:h,style:R(R(R(R({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},G),ee),u),{},{boxSizing:"border-box",zIndex:k},a),onMouseEnter:O,onMouseLeave:$,onPointerEnter:M,onClick:p},m&&o.createElement(Pf,{prefixCls:i,arrow:m,arrowPos:v,align:b}),o.createElement(If,{cache:!c&&!d},H))}))})))}));"production"!==process.env.NODE_ENV&&(Lf.displayName="Popup");var Rf=o.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=H(n),a=o.useCallback((function(e){A(t,r?r(e):e)}),[r]),s=B(a,n.ref);return i?o.cloneElement(n,{ref:s}):n}));"production"!==process.env.NODE_ENV&&(Rf.displayName="TriggerWrapper");var jf=o.createContext(null);function Tf(e){return e?Array.isArray(e)?e:[e]:[]}function Df(){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 Af(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function zf(e){return e.ownerDocument.defaultView}function Bf(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=zf(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 Hf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Ff(e){return Hf(parseFloat(e),0)}function Vf(e,t){var n=R({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=zf(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,p=e.offsetWidth,f=e.clientWidth,h=Ff(i),g=Ff(a),m=Ff(s),v=Ff(l),b=Hf(Math.round(c.width/p*1e3)/1e3),y=Hf(Math.round(c.height/u*1e3)/1e3),x=(p-f-m-v)*b,C=(u-d-h-g)*y,w=h*y,E=g*y,S=m*b,k=v*b,O=0,$=0;if("clip"===o){var M=Ff(r);O=M*b,$=M*y}var _=c.x+S-O,P=c.y+w-$,N=_+c.width+2*O-S-k-x,I=P+c.height+2*$-w-E-C;n.left=Math.max(n.left,_),n.top=Math.max(n.top,P),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,I)}})),n}function Wf(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 Uf(e,t){var n=He(t||[],2),o=n[0],r=n[1];return[Wf(e.width,o),Wf(e.height,r)]}function Xf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function qf(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 Gf(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 Kf=["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 Yf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_c,t=o.forwardRef((function(t,n){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=t.children,s=t.action,l=void 0===s?"hover":s,c=t.showAction,u=t.hideAction,d=t.popupVisible,p=t.defaultPopupVisible,h=t.onPopupVisibleChange,g=t.afterPopupVisibleChange,m=t.mouseEnterDelay,v=t.mouseLeaveDelay,b=void 0===v?.1:v,y=t.focusDelay,x=t.blurDelay,C=t.mask,w=t.maskClosable,E=void 0===w||w,k=t.getPopupContainer,O=t.forceRender,$=t.autoDestroy,M=t.destroyPopupOnHide,_=t.popup,P=t.popupClassName,N=t.popupStyle,I=t.popupPlacement,L=t.builtinPlacements,T=void 0===L?{}:L,D=t.popupAlign,A=t.zIndex,z=t.stretch,B=t.getPopupClassNameFromAlign,H=t.fresh,F=t.alignPoint,V=t.onPopupClick,W=t.onPopupAlign,U=t.arrow,X=t.popupMotion,q=t.maskMotion,G=t.popupTransitionName,K=t.popupAnimation,Y=t.maskTransitionName,Z=t.maskAnimation,Q=t.className,J=t.getTriggerDOMNode,ee=nt(t,Kf),te=$||M||!1,ne=He(o.useState(!1),2),oe=ne[0],re=ne[1];_t((function(){re(Gp())}),[]);var ie=o.useRef({}),ae=o.useContext(jf),se=o.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),le=Lc(),ce=He(o.useState(null),2),ue=ce[0],de=ce[1],pe=o.useRef(null),fe=ti((function(e){pe.current=e,j(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(le,e)})),he=He(o.useState(null),2),ge=he[0],me=he[1],ve=o.useRef(null),be=ti((function(e){j(e)&&ge!==e&&(me(e),ve.current=e)})),ye=o.Children.only(a),xe=(null==ye?void 0:ye.props)||{},Ce={},we=function(e,t){var n,o;return e===t||t.contains(e)||(null===(n=Ya(t))||void 0===n?void 0:n.host)===e||t.contains(null===(o=Ya(e))||void 0===o?void 0:o.host)},Ee=ti((function(e){var t=ge,n=we.bind(null,e);return n(t)||n(ue)||Object.values(ie.current).some(n)})),Se=Af(i,X,K,G),ke=Af(i,q,Z,Y),Oe=He(o.useState(p||!1),2),Me=Oe[0],_e=Oe[1],Pe=null!=d?d:Me,Ne=ti((function(e){void 0===d&&_e(e)}));_t((function(){_e(d||!1)}),[d]);var Le=o.useRef(Pe);Le.current=Pe;var Re=o.useRef([]);Re.current=[];var je=ti((function(e){var t;Ne(e),(null!==(t=Re.current[Re.current.length-1])&&void 0!==t?t:Pe)!==e&&(Re.current.push(e),null==h||h(e))})),Te=o.useRef(),De=function(){clearTimeout(Te.current)},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;De(),0===t?je(e):Te.current=setTimeout((function(){je(e)}),1e3*t)};o.useEffect((function(){return De}),[]);var ze=He(o.useState(!1),2),Be=ze[0],Fe=ze[1];_t((function(e){e&&!Pe||Fe(!0)}),[Pe]);var Ve=He(o.useState(null),2),We=Ve[0],Ue=Ve[1],Xe=He(o.useState(null),2),qe=Xe[0],Ge=Xe[1],Ke=function(e){Ge([e.clientX,e.clientY])},Ye=function(e,t,n,r,i,a,s){var l=He(o.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=o.useRef(0),p=o.useMemo((function(){return t?Bf(t):[]}),[t]),f=o.useRef({});e||(f.current={});var h=ti((function(){if(t&&n&&e){var o,l,c,d,h,g=t,m=g.ownerDocument,v=zf(g).getComputedStyle(g),b=v.width,y=v.height,x=v.position,C=g.style.left,w=g.style.top,E=g.style.right,S=g.style.bottom,k=g.style.overflow,O=R(R({},i[r]),a),$=m.createElement("div");if(null===(o=g.parentElement)||void 0===o||o.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(n))h={x:n[0],y:n[1],width:0,height:0};else{var M,_,P=n.getBoundingClientRect();P.x=null!==(M=P.x)&&void 0!==M?M:P.left,P.y=null!==(_=P.y)&&void 0!==_?_:P.top,h={x:P.x,y:P.y,width:P.width,height:P.height}}var N=g.getBoundingClientRect();N.x=null!==(l=N.x)&&void 0!==l?l:N.left,N.y=null!==(c=N.y)&&void 0!==c?c:N.top;var I=m.documentElement,L=I.clientWidth,T=I.clientHeight,D=I.scrollWidth,A=I.scrollHeight,z=I.scrollTop,B=I.scrollLeft,H=N.height,F=N.width,V=h.height,W=h.width,U={left:0,top:0,right:L,bottom:T},X={left:-B,top:-z,right:D-B,bottom:A-z},q=O.htmlRegion,G="visible",K="visibleFirst";"scroll"!==q&&q!==K&&(q=G);var Y=q===K,Z=Vf(X,p),Q=Vf(U,p),J=q===G?Q:Z,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=C,g.style.top=w,g.style.right=E,g.style.bottom=S,g.style.overflow=k,null===(d=g.parentElement)||void 0===d||d.removeChild($);var ne=Hf(Math.round(F/parseFloat(b)*1e3)/1e3),oe=Hf(Math.round(H/parseFloat(y)*1e3)/1e3);if(0===ne||0===oe||j(n)&&!ll(n))return;var re=O.offset,ie=O.targetOffset,ae=He(Uf(N,re),2),se=ae[0],le=ae[1],ce=He(Uf(h,ie),2),ue=ce[0],de=ce[1];h.x-=ue,h.y-=de;var pe=He(O.points||[],2),fe=pe[0],he=Xf(pe[1]),ge=Xf(fe),me=qf(h,he),ve=qf(N,ge),be=R({},O),ye=me.x-ve.x+se,xe=me.y-ve.y+le;function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,o=N.x+e,r=N.y+t,i=o+F,a=r+H,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 Ce,we,Ee,Se,ke=ht(ye,xe),Oe=ht(ye,xe,Q),$e=qf(h,["t","l"]),Me=qf(N,["t","l"]),_e=qf(h,["b","r"]),Pe=qf(N,["b","r"]),Ne=O.overflow||{},Ie=Ne.adjustX,Le=Ne.adjustY,Re=Ne.shiftX,je=Ne.shiftY,Te=function(e){return"boolean"==typeof e?e:e>=0};function gt(){Ce=N.y+xe,we=Ce+H,Ee=N.x+ye,Se=Ee+F}gt();var De=Te(Le),Ae=ge[0]===he[0];if(De&&"t"===ge[0]&&(we>ee.bottom||f.current.bt)){var ze=xe;Ae?ze-=H-V:ze=$e.y-Pe.y-le;var Be=ht(ye,ze),Fe=ht(ye,ze,Q);Be>ke||Be===ke&&(!Y||Fe>=Oe)?(f.current.bt=!0,xe=ze,le=-le,be.points=[Gf(ge,0),Gf(he,0)]):f.current.bt=!1}if(De&&"b"===ge[0]&&(Ce<ee.top||f.current.tb)){var Ve=xe;Ae?Ve+=H-V:Ve=_e.y-Me.y-le;var We=ht(ye,Ve),Ue=ht(ye,Ve,Q);We>ke||We===ke&&(!Y||Ue>=Oe)?(f.current.tb=!0,xe=Ve,le=-le,be.points=[Gf(ge,0),Gf(he,0)]):f.current.tb=!1}var Xe=Te(Ie),qe=ge[1]===he[1];if(Xe&&"l"===ge[1]&&(Se>ee.right||f.current.rl)){var Ge=ye;qe?Ge-=F-W:Ge=$e.x-Pe.x-se;var Ke=ht(Ge,xe),Ye=ht(Ge,xe,Q);Ke>ke||Ke===ke&&(!Y||Ye>=Oe)?(f.current.rl=!0,ye=Ge,se=-se,be.points=[Gf(ge,1),Gf(he,1)]):f.current.rl=!1}if(Xe&&"r"===ge[1]&&(Ee<ee.left||f.current.lr)){var Ze=ye;qe?Ze+=F-W:Ze=_e.x-Me.x-se;var Qe=ht(Ze,xe),Je=ht(Ze,xe,Q);Qe>ke||Qe===ke&&(!Y||Je>=Oe)?(f.current.lr=!0,ye=Ze,se=-se,be.points=[Gf(ge,1),Gf(he,1)]):f.current.lr=!1}gt();var et=!0===Re?0:Re;"number"==typeof et&&(Ee<Q.left&&(ye-=Ee-Q.left-se,h.x+W<Q.left+et&&(ye+=h.x-Q.left+W-et)),Se>Q.right&&(ye-=Se-Q.right-se,h.x>Q.right-et&&(ye+=h.x-Q.right+et)));var tt=!0===je?0:je;"number"==typeof tt&&(Ce<Q.top&&(xe-=Ce-Q.top-le,h.y+V<Q.top+tt&&(xe+=h.y-Q.top+V-tt)),we>Q.bottom&&(xe-=we-Q.bottom-le,h.y>Q.bottom-tt&&(xe+=h.y-Q.bottom+tt)));var nt=N.x+ye,ot=nt+F,rt=N.y+xe,it=rt+H,at=h.x,st=at+W,lt=h.y,ct=lt+V,ut=(Math.max(nt,at)+Math.min(ot,st))/2-nt,dt=(Math.max(rt,lt)+Math.min(it,ct))/2-rt;null==s||s(t,be);var pt=te.right-N.x-(ye+N.width),ft=te.bottom-N.y-(xe+N.height);1===ne&&(ye=Math.round(ye),pt=Math.round(pt)),1===oe&&(xe=Math.round(xe),ft=Math.round(ft)),u({ready:!0,offsetX:ye/ne,offsetY:xe/oe,offsetR:pt/ne,offsetB:ft/oe,arrowX:ut/ne,arrowY:dt/oe,scaleX:ne,scaleY:oe,align:be})}})),g=function(){u((function(e){return R(R({},e),{},{ready:!1})}))};return _t(g,[r]),_t((function(){e||g()}),[e]),[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&&h()}))}]}(Pe,ue,F&&null!==qe?qe:ge,I,T,D,W),Ze=He(Ye,11),Qe=Ze[0],Je=Ze[1],et=Ze[2],tt=Ze[3],ot=Ze[4],rt=Ze[5],it=Ze[6],at=Ze[7],st=Ze[8],lt=Ze[9],ct=Ze[10],ut=function(e,t,n,r){return o.useMemo((function(){var o=Tf(null!=n?n:t),i=Tf(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(oe,l,c,u),dt=He(ut,2),pt=dt[0],ft=dt[1],ht=pt.has("click"),gt=ft.has("click")||ft.has("contextMenu"),mt=ti((function(){Be||ct()}));!function(e,t,n,o,r){_t((function(){if(e&&t&&n){var i=n,a=Bf(t),s=Bf(i),l=zf(i),c=new Set([l].concat(Ie(a),Ie(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])}(Pe,ge,ue,mt,(function(){Le.current&&F&&gt&&Ae(!1)})),_t((function(){mt()}),[qe,I]),_t((function(){!Pe||null!=T&&T[I]||mt()}),[JSON.stringify(D)]);var vt=o.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(Df(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(T,i,lt,F);return f(e,null==B?void 0:B(lt))}),[lt,B,T,i,F]);o.useImperativeHandle(n,(function(){return{nativeElement:ve.current,popupElement:pe.current,forceAlign:mt}}));var bt=He(o.useState(0),2),yt=bt[0],xt=bt[1],Ct=He(o.useState(0),2),wt=Ct[0],Et=Ct[1],St=function(){if(z&&ge){var e=ge.getBoundingClientRect();xt(e.width),Et(e.height)}};function kt(e,t,n,o){Ce[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))}}_t((function(){We&&(ct(),We(),Ue(null))}),[We]),(ht||gt)&&(Ce.onClick=function(e){var t;Le.current&&gt?Ae(!1):!Le.current&&ht&&(Ke(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(e,t,n,r,i,a,s,l){var c=o.useRef(e);c.current=e,o.useEffect((function(){if(t&&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)},o=zf(r);o.addEventListener("mousedown",e,!0),o.addEventListener("contextmenu",e,!0);var u,d,p=Ya(n);return p&&(p.addEventListener("mousedown",e,!0),p.addEventListener("contextmenu",e,!0)),"production"!==process.env.NODE_ENV&&S((null==n||null===(u=n.getRootNode)||void 0===u?void 0:u.call(n))===(null===(d=r.getRootNode)||void 0===d?void 0:d.call(r)),"trigger element and popup element should in same shadow root."),function(){o.removeEventListener("mousedown",e,!0),o.removeEventListener("contextmenu",e,!0),p&&(p.removeEventListener("mousedown",e,!0),p.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,i,a])}(Pe,gt,ge,ue,C,E,Ee,Ae);var Ot,$t,Mt=pt.has("hover"),Pt=ft.has("hover");Mt&&(kt("onMouseEnter",!0,m,(function(e){Ke(e)})),kt("onPointerEnter",!0,m,(function(e){Ke(e)})),Ot=function(e){(Pe||Be)&&null!=ue&&ue.contains(e.target)&&Ae(!0,m)},F&&(Ce.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),Pt&&(kt("onMouseLeave",!1,b),kt("onPointerLeave",!1,b),$t=function(){Ae(!1,b)}),pt.has("focus")&&kt("onFocus",!0,y),ft.has("focus")&&kt("onBlur",!1,x),pt.has("contextMenu")&&(Ce.onContextMenu=function(e){var t;Le.current&&ft.has("contextMenu")?Ae(!1):(Ke(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&&(Ce.className=f(xe.className,Q));var Nt=R(R({},xe),Ce),It={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(It[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 Lt=o.cloneElement(ye,R(R({},Nt),It)),Rt={x:rt,y:it},jt=U?R({},!0!==U?U:{}):null;return o.createElement(o.Fragment,null,o.createElement($e,{disabled:!Pe,ref:be,onResize:function(){St(),mt()}},o.createElement(Rf,{getTriggerDOMNode:J},Lt)),o.createElement(jf.Provider,{value:se},o.createElement(Lf,{portal:e,ref:fe,prefixCls:i,popup:_,className:f(P,vt),style:N,target:ge,onMouseEnter:Ot,onMouseLeave:$t,onPointerEnter:Ot,zIndex:A,open:Pe,keepDom:Be,fresh:H,onClick:V,mask:C,motion:Se,maskMotion:ke,onVisibleChanged:function(e){Fe(!1),ct(),null==g||g(e)},onPrepare:function(){return new Promise((function(e){St(),Ue((function(){return e}))}))},forceRender:O,autoDestroy:te,getPopupContainer:k,align:lt,arrow:jt,arrowPos:Rt,ready:Qe,offsetX:Je,offsetY:et,offsetR:tt,offsetB:ot,onAlign:mt,stretch:z,targetWidth:yt/at,targetHeight:wt/st})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(_c),Zf=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Qf=function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,i=e.children,a=e.popupElement,s=e.animation,l=e.transitionName,c=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,p=void 0===d?"ltr":d,g=e.placement,m=e.builtinPlacements,v=e.dropdownMatchSelectWidth,b=e.dropdownRender,y=e.dropdownAlign,x=e.getPopupContainer,C=e.empty,w=e.getTriggerDOMNode,E=e.onPopupVisibleChange,S=e.onPopupMouseEnter,k=nt(e,Zf),O="".concat(n,"-dropdown"),$=a;b&&($=b(a));var M=o.useMemo((function(){return m||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(v)}),[m,v]),_=s?"".concat(O,"-").concat(s):l,P="number"==typeof v,N=o.useMemo((function(){return P?null:!1===v?"minWidth":"width"}),[v,P]),L=c;P&&(L=R(R({},L),{},{width:v}));var j=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=j.current)||void 0===e?void 0:e.popupElement}}})),o.createElement(Yf,h({},k,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:g||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:M,prefixCls:O,popupTransitionName:_,popup:o.createElement("div",{onMouseEnter:S},$),ref:j,stretch:N,popupAlign:y,popupVisible:r,getPopupContainer:x,popupClassName:f(u,I({},"".concat(O,"-empty"),C)),popupStyle:L,getTriggerDOMNode:w,onPopupVisibleChange:E}),i)},Jf=o.forwardRef(Qf);function eh(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function th(e){return void 0!==e&&!Number.isNaN(e)}function nh(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function oh(e){var t=R({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return M(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}"production"!==process.env.NODE_ENV&&(Jf.displayName="SelectTrigger");var rh=o.createContext(null);function ih(e){var t=e.visible,n=e.values;if(!t)return null;return o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(P(t))?t:n})).join(", ")),n.length>50?", ...":null)}var ah=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],sh=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],lh=function(e){return"tags"===e||"multiple"===e},ch=o.forwardRef((function(t,n){var r,i=t.id,a=t.prefixCls,s=t.className,l=t.showSearch,c=t.tagRender,u=t.direction,d=t.omitDomProps,p=t.displayValues,g=t.onDisplayValuesChange,m=t.emptyOptions,v=t.notFoundContent,b=void 0===v?"Not Found":v,y=t.onClear,x=t.mode,C=t.disabled,w=t.loading,E=t.getInputElement,S=t.getRawInputElement,k=t.open,O=t.defaultOpen,$=t.onDropdownVisibleChange,M=t.activeValue,_=t.onActiveValueChange,N=t.activeDescendantId,L=t.searchValue,j=t.autoClearSearchValue,T=t.onSearch,D=t.onSearchSplit,A=t.tokenSeparators,z=t.allowClear,H=t.suffixIcon,F=t.clearIcon,V=t.OptionList,W=t.animation,U=t.transitionName,X=t.dropdownStyle,q=t.dropdownClassName,G=t.dropdownMatchSelectWidth,K=t.dropdownRender,Y=t.dropdownAlign,Z=t.placement,Q=t.builtinPlacements,J=t.getPopupContainer,ee=t.showAction,te=void 0===ee?[]:ee,ne=t.onFocus,oe=t.onBlur,re=t.onKeyUp,ie=t.onKeyDown,ae=t.onMouseDown,se=nt(t,ah),le=lh(x),ce=(void 0!==l?l:le)||"combobox"===x,ue=R({},se);sh.forEach((function(e){delete ue[e]})),null==d||d.forEach((function(e){delete ue[e]}));var de=He(o.useState(!1),2),pe=de[0],fe=de[1];o.useEffect((function(){fe(Gp())}),[]);var he=o.useRef(null),ge=o.useRef(null),me=o.useRef(null),ve=o.useRef(null),be=o.useRef(null),ye=o.useRef(!1),xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=He(o.useState(!1),2),n=t[0],r=t[1],i=o.useRef(null),a=function(){window.clearTimeout(i.current)};return o.useEffect((function(){return a}),[]),[n,function(t,n){a(),i.current=window.setTimeout((function(){r(t),n&&n()}),e)},a]}(),Ce=He(xe,3),we=Ce[0],Ee=Ce[1],Se=Ce[2];o.useImperativeHandle(n,(function(){var e,t;return{focus:null===(e=ve.current)||void 0===e?void 0:e.focus,blur:null===(t=ve.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=be.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:he.current||ge.current}}));var ke=o.useMemo((function(){var e;if("combobox"!==x)return L;var t=null===(e=p[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[L,x,p]),Oe="combobox"===x&&"function"==typeof E&&E()||null,$e="function"==typeof S&&S(),Me=B(ge,null==$e||null===(r=$e.props)||void 0===r?void 0:r.ref),_e=He(o.useState(!1),2),Pe=_e[0],Ne=_e[1];_t((function(){Ne(!0)}),[]);var Le=He(ri(!1,{defaultValue:O,value:k}),2),Re=Le[0],je=Le[1],Te=!!Pe&&Re,De=!b&&m;(C||De&&Te&&"combobox"===x)&&(Te=!1);var Ae=!De&&Te,ze=o.useCallback((function(e){var t=void 0!==e?e:!Te;C||(je(t),Te!==t&&(null==$||$(t)))}),[C,Te,je,$]),Be=o.useMemo((function(){return(A||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[A]),Fe=o.useContext(rh)||{},Ve=Fe.maxCount,We=Fe.rawValues,Ue=function(e,t,n){if(!(le&&th(Ve)&&(null==We?void 0:We.size)>=Ve)){var o=!0,r=e;null==_||_(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=oo(n),i=r[0],a=r.slice(1);if(!i)return[t];var s=t.split(i);return o=o||s.length>1,s.reduce((function(t,n){return[].concat(Ie(t),Ie(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null}(e,A,th(Ve)?Ve-We.size:void 0),a=n?null:i;return"combobox"!==x&&a&&(r="",null==D||D(a),ze(!1),o=!1),T&&ke!==r&&T(r,{source:t?"typing":"effect"}),o}};o.useEffect((function(){Te||le||"combobox"===x||Ue("",!1,!1)}),[Te]),o.useEffect((function(){Re&&C&&je(!1),C&&!ye.current&&Ee(!1)}),[C]);var Xe=He(Zp(),2),qe=Xe[0],Ge=Xe[1],Ke=o.useRef(!1),Ye=o.useRef(!1),Ze=[];o.useEffect((function(){return function(){Ze.forEach((function(e){return clearTimeout(e)})),Ze.splice(0,Ze.length)}}),[]);var Qe,Je=He(o.useState({}),2)[1];$e&&(Qe=function(e){ze(e)}),function(e,t,n,r){var i=o.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[he.current,null===(e=me.current)||void 0===e?void 0:e.getPopupElement()]}),Ae,ze,!!$e);var et,tt=o.useMemo((function(){return R(R({},t),{},{notFoundContent:b,open:Te,triggerOpen:Ae,id:i,showSearch:ce,multiple:le,toggleOpen:ze})}),[t,b,Ae,Te,i,ce,le,ze]),ot=!!H||w;ot&&(et=o.createElement(Kp,{className:f("".concat(a,"-arrow"),I({},"".concat(a,"-arrow-loading"),w)),customizeIcon:H,customizeIconProps:{loading:w,searchValue:ke,open:Te,focused:we,showSearch:ce}}));var rt,it=function(t,n,o,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=e.useMemo((function(){return"object"===P(r)?r.clearIcon:i||void 0}),[r,i]);return{allowClear:e.useMemo((function(){return!(a||!r||!o.length&&!s||"combobox"===l&&""===s)}),[r,a,o.length,s,l]),clearIcon:e.createElement(Kp,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}}(a,(function(){var e;null==y||y(),null===(e=ve.current)||void 0===e||e.focus(),g([],{type:"clear",values:p}),Ue("",!1,!1)}),p,z,F,C,ke,x),at=it.allowClear,st=it.clearIcon,lt=o.createElement(V,{ref:be}),ct=f(a,s,I(I(I(I(I(I(I(I(I(I({},"".concat(a,"-focused"),we),"".concat(a,"-multiple"),le),"".concat(a,"-single"),!le),"".concat(a,"-allow-clear"),z),"".concat(a,"-show-arrow"),ot),"".concat(a,"-disabled"),C),"".concat(a,"-loading"),w),"".concat(a,"-open"),Te),"".concat(a,"-customize-input"),Oe),"".concat(a,"-show-search"),ce)),ut=o.createElement(Jf,{ref:me,disabled:C,prefixCls:a,visible:Ae,popupElement:lt,animation:W,transitionName:U,dropdownStyle:X,dropdownClassName:q,direction:u,dropdownMatchSelectWidth:G,dropdownRender:K,dropdownAlign:Y,placement:Z,builtinPlacements:Q,getPopupContainer:J,empty:m,getTriggerDOMNode:function(e){return ge.current||e},onPopupVisibleChange:Qe,onPopupMouseEnter:function(){Je({})}},$e?o.cloneElement($e,{ref:Me}):o.createElement(_f,h({},t,{domRef:ge,prefixCls:a,inputElement:Oe,ref:ve,id:i,showSearch:ce,autoClearSearchValue:j,mode:x,activeDescendantId:N,tagRender:c,values:p,open:Te,onToggleOpen:ze,activeValue:M,searchValue:ke,onSearch:Ue,onSearchSubmit:function(e){e&&e.trim()&&T(e,{source:"submit"})},onRemove:function(e){var t=p.filter((function(t){return t!==e}));g(t,{type:"remove",values:[e]})},tokenWithEnter:Be})));return rt=$e?ut:o.createElement("div",h({className:ct},ue,{ref:he,onMouseDown:function(e){var t,n=e.target,o=null===(t=me.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=Ze.indexOf(r);-1!==t&&Ze.splice(t,1),Se(),pe||o.contains(document.activeElement)||null===(e=ve.current)||void 0===e||e.focus()}));Ze.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null==ae||ae.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=qe(),o=e.key,r="Enter"===o;if(r&&("combobox"!==x&&e.preventDefault(),Te||ze(!0)),Ge(!!ke),"Backspace"===o&&!n&&le&&!ke&&p.length){for(var i=Ie(p),a=null,s=i.length-1;s>=0;s-=1){var l=i[s];if(!l.disabled){i.splice(s,1),a=l;break}}a&&g(i,{type:"remove",values:[a]})}for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];!Te||r&&Ke.current||null===(t=be.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),r&&(Ke.current=!0),null==ie||ie.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;Te&&(null===(r=be.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),"Enter"===e.key&&(Ke.current=!1),null==re||re.apply(void 0,[e].concat(n))},onFocus:function(){Ee(!0),C||(ne&&!Ye.current&&ne.apply(void 0,arguments),te.includes("focus")&&ze(!0)),Ye.current=!0},onBlur:function(){ye.current=!0,Ee(!1,(function(){Ye.current=!1,ye.current=!1,ze(!1)})),C||(ke&&("tags"===x?T(ke,{source:"submit"}):"multiple"===x&&T("",{source:"blur"})),oe&&oe.apply(void 0,arguments))}}),o.createElement(ih,{visible:we&&!Te,values:p}),ut,et,at&&st),o.createElement(Yp.Provider,{value:tt},rt)}));"production"!==process.env.NODE_ENV&&(ch.displayName="BaseSelect");var uh=function(){return null};uh.isSelectOptGroup=!0;var dh=function(){return null};dh.isSelectOption=!0;var ph=o.forwardRef((function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,a=e.children,s=e.prefixCls,l=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,p={},g={display:"flex",flexDirection:"column"};return void 0!==r&&(p={height:n,position:"relative",overflow:"hidden"},g=R(R({},g),{},I(I(I(I(I({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),o.createElement("div",{style:p},o.createElement($e,{onResize:function(e){e.offsetHeight&&l&&l()}},o.createElement("div",h({style:g,className:f(I({},"".concat(s,"-holder-inner"),s)),ref:t},c),a,d)))}));function fh(e){var t=e.children,n=e.setRef,r=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:r})}function hh(e,t,n){var r=He(o.useState(e),2),i=r[0],a=r[1],s=He(o.useState(null),2),l=s[0],c=s[1];return o.useEffect((function(){var n=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var p=l(o[d]);if(p!==l(r[d])){c=d,u=u||p!==l(r[d+1]);break}}return null===c?null:{index:c,multiple:u}}(i||[],e||[],t);void 0!==(null==n?void 0:n.index)&&c(e[n.index]),a(e)}),[e]),[l]}ph.displayName="Filler";var gh="object"===("undefined"==typeof navigator?"undefined":P(navigator))&&/Firefox/i.test(navigator.userAgent),mh=function(t,n,o,r){var i=e.useRef(!1),a=e.useRef(null);var s=e.useRef({top:t,bottom:n,left:o,right:r});return s.current.top=t,s.current.bottom=n,s.current.left=o,s.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&o?(clearTimeout(a.current),i.current=!1):o&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&o}};function vh(t,n,o,r,i,a,s){var l=e.useRef(0),c=e.useRef(null),u=e.useRef(null),d=e.useRef(!1),p=mh(n,o,r,i);var f=e.useRef(null),h=e.useRef(null);return[function(e){if(t){Ae.cancel(h.current),h.current=Ae((function(){f.current=null}),2);var n=e.deltaX,o=e.deltaY,r=e.shiftKey,i=n,g=o;("sx"===f.current||!f.current&&r&&o&&!n)&&(i=o,g=0,f.current="sx");var m=Math.abs(i),v=Math.abs(g);null===f.current&&(f.current=a&&m>v?"x":"y"),"y"===f.current?function(e,t){Ae.cancel(c.current),l.current+=t,u.current=t,p(!1,t)||(gh||e.preventDefault(),c.current=Ae((function(){var e=d.current?10:1;s(l.current*e),l.current=0})))}(e,g):function(e,t){s(t,!0),gh||e.preventDefault()}(e,i)}},function(e){t&&(d.current=e.detail===u.current)}]}var bh=function(){function e(){he(this,e),I(this,"maps",void 0),I(this,"id",0),this.maps=Object.create(null)}return me(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var yh=14/15;var xh=10;function Ch(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var wh=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,s=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,p=e.containerSize,h=e.style,g=e.thumbStyle,m=He(o.useState(!1),2),v=m[0],b=m[1],y=He(o.useState(null),2),x=y[0],C=y[1],w=He(o.useState(null),2),E=w[0],S=w[1],k=!r,O=o.useRef(),$=o.useRef(),M=He(o.useState(!1),2),_=M[0],P=M[1],N=o.useRef(),L=function(){clearTimeout(N.current),P(!0),N.current=setTimeout((function(){P(!1)}),3e3)},j=a-p||0,T=p-d||0,D=o.useMemo((function(){return 0===i||0===j?0:i/j*T}),[i,j,T]),A=o.useRef({top:D,dragging:v,pageY:x,startTop:E});A.current={top:D,dragging:v,pageY:x,startTop:E};var z=function(e){b(!0),C(Ch(e,u)),S(A.current.top),s(),e.stopPropagation(),e.preventDefault()};o.useEffect((function(){var e=function(e){e.preventDefault()},t=O.current,n=$.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",z,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",z)}}),[]);var B=o.useRef();B.current=j;var H=o.useRef();H.current=T,o.useEffect((function(){if(v){var e,t=function(t){var n=A.current,o=n.dragging,r=n.pageY,i=n.startTop;Ae.cancel(e);var a=O.current.getBoundingClientRect(),s=p/(u?a.width:a.height);if(o){var l=(Ch(t,u)-r)*s,d=i;!k&&u?d-=l:d+=l;var f=B.current,h=H.current,g=h?d/h:0,m=Math.ceil(g*f);m=Math.max(m,0),m=Math.min(m,f),e=Ae((function(){c(m,u)}))}},n=function(){b(!1),l()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Ae.cancel(e)}}}),[v]),o.useEffect((function(){return L(),function(){clearTimeout(N.current)}}),[i]),o.useImperativeHandle(t,(function(){return{delayHidden:L}}));var F="".concat(n,"-scrollbar"),V={position:"absolute",visibility:_?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(V.height=8,V.left=0,V.right=0,V.bottom=0,W.height="100%",W.width=d,k?W.left=D:W.right=D):(V.width=8,V.top=0,V.bottom=0,k?V.right=0:V.left=0,W.width="100%",W.height=d,W.top=D),o.createElement("div",{ref:O,className:f(F,I(I(I({},"".concat(F,"-horizontal"),u),"".concat(F,"-vertical"),!u),"".concat(F,"-visible"),_)),style:R(R({},V),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:L},o.createElement("div",{ref:$,className:f("".concat(F,"-thumb"),I({},"".concat(F,"-thumb-moving"),v)),style:R(R({},W),g),onMouseDown:z}))}));"production"!==process.env.NODE_ENV&&(wh.displayName="ScrollBar");var Eh=20;function Sh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,Eh),Math.floor(t)}var kh=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Oh=[],$h={overflowY:"auto",overflowAnchor:"none"};function Mh(n,r){var i=n.prefixCls,a=void 0===i?"rc-virtual-list":i,s=n.className,l=n.height,c=n.itemHeight,u=n.fullHeight,d=void 0===u||u,p=n.style,g=n.data,m=n.children,v=n.itemKey,b=n.virtual,y=n.direction,x=n.scrollWidth,C=n.component,w=void 0===C?"div":C,E=n.onScroll,S=n.onVirtualScroll,k=n.onVisibleChange,O=n.innerProps,$=n.extraRender,_=n.styles,N=nt(n,kh),L=o.useCallback((function(e){return"function"==typeof v?v(e):null==e?void 0:e[v]}),[v]),j=function(t){var n=He(o.useState(0),2),r=n[0],i=n[1],a=e.useRef(new Map),s=e.useRef(new bh),l=e.useRef();function c(){Ae.cancel(l.current)}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){a.current.forEach((function(e,t){if(e&&e.offsetParent){var n=T(e),o=n.offsetHeight;s.current.get(t)!==o&&s.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))};e?t():l.current=Ae(t)}return e.useEffect((function(){return c}),[]),[function(e,n){var o=t(e);a.current.get(o),n?(a.current.set(o,n),u()):a.current.delete(o)},u,s.current,r]}(L),D=He(j,4),A=D[0],z=D[1],B=D[2],H=D[3],F=!(!1===b||!l||!c),V=o.useMemo((function(){return Object.values(B.maps).reduce((function(e,t){return e+t}),0)}),[B.id,B.maps]),W=F&&g&&(Math.max(c*g.length,V)>l||!!x),U="rtl"===y,X=f(a,I({},"".concat(a,"-rtl"),U),s),q=g||Oh,G=e.useRef(),K=e.useRef(),Y=e.useRef(),Z=He(e.useState(0),2),Q=Z[0],J=Z[1],ee=He(e.useState(0),2),te=ee[0],ne=ee[1],oe=He(e.useState(!1),2),re=oe[0],ie=oe[1],ae=function(){ie(!0)},se=function(){ie(!1)},le={getKey:L};function ce(e){J((function(t){var n=function(e){var t=e;Number.isNaN(Oe.current)||(t=Math.min(t,Oe.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return G.current.scrollTop=n,n}))}var ue=e.useRef({start:0,end:q.length}),de=e.useRef(),pe=He(hh(q,L),1)[0];de.current=pe;var fe=o.useMemo((function(){if(!F)return{scrollHeight:void 0,start:0,end:q.length-1,offset:void 0};var e;if(!W)return{scrollHeight:(null===(e=K.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:q.length-1,offset:void 0};for(var t,n,o,r=0,i=q.length,a=0;a<i;a+=1){var s=q[a],u=L(s),d=B.get(u),p=r+(void 0===d?c:d);p>=Q&&void 0===t&&(t=a,n=r),p>Q+l&&void 0===o&&(o=a),r=p}return void 0===t&&(t=0,n=0,o=Math.ceil(l/c)),void 0===o&&(o=q.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,q.length-1),offset:n}}),[W,F,Q,q,H,l]),he=fe.scrollHeight,ge=fe.start,me=fe.end,ve=fe.offset;ue.current.start=ge,ue.current.end=me;var be=He(o.useState({width:0,height:l}),2),ye=be[0],xe=be[1],Ce=e.useRef(),we=e.useRef(),Ee=o.useMemo((function(){return Sh(ye.width,x)}),[ye.width,x]),Se=o.useMemo((function(){return Sh(ye.height,he)}),[ye.height,he]),ke=he-l,Oe=e.useRef(ke);Oe.current=ke;var Me=Q<=0,_e=Q>=ke,Pe=te<=0,Ne=te>=x,Ie=mh(Me,_e,Pe,Ne),Le=function(){return{x:U?-te:te,y:Q}},Re=e.useRef(Le()),je=ti((function(e){if(S){var t=R(R({},Le()),e);Re.current.x===t.x&&Re.current.y===t.y||(S(t),Re.current=t)}}));function Te(e,n){var o=e;n?(t.flushSync((function(){ne(o)})),je()):ce(o)}var De=function(e){var t=e,n=x?x-ye.width:0;return t=Math.max(t,0),t=Math.min(t,n)},ze=ti((function(e,n){n?(t.flushSync((function(){ne((function(t){return De(t+(U?-e:e))}))})),je()):ce((function(t){return t+e}))})),Be=He(vh(F,Me,_e,Pe,Ne,!!x,ze),2),Fe=Be[0],Ve=Be[1];!function(t,n,o){var r,i=e.useRef(!1),a=e.useRef(0),s=e.useRef(0),l=e.useRef(null),c=e.useRef(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),r=a.current-t,l=s.current-n,u=Math.abs(r)>Math.abs(l);u?a.current=t:s.current=n,o(u,u?r:l)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){u?r*=yh:l*=yh;var e=Math.floor(u?r:l);(!o(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16)}},d=function(){i.current=!1,r()},p=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),s.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};r=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",d))},_t((function(){return t&&n.current.addEventListener("touchstart",p,{passive:!0}),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",p),r(),clearInterval(c.current)}}),[t])}(F,G,(function(e,t,n){return!Ie(e,t,n)&&(Fe({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)})),_t((function(){function e(e){F&&e.preventDefault()}var t=G.current;return t.addEventListener("wheel",Fe,{passive:!1}),t.addEventListener("DOMMouseScroll",Ve,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Fe),t.removeEventListener("DOMMouseScroll",Ve),t.removeEventListener("MozMousePixelScroll",e)}}),[F]),_t((function(){if(x){var e=De(te);ne(e),je({x:e})}}),[ye.width,x]);var We=function(){var e,t;null===(e=Ce.current)||void 0===e||e.delayHidden(),null===(t=we.current)||void 0===t||t.delayHidden()},Ue=function(e,t,n,r,i,a,s,l){var c=o.useRef(),u=He(o.useState(null),2),d=u[0],p=u[1];return _t((function(){if(d&&d.times<xh){if(!e.current)return void p((function(e){return R({},e)}));a();var o=d.targetAlign,l=d.originAlign,c=d.index,u=d.offset,f=e.current.clientHeight,h=!1,g=o,m=null;if(f){for(var v=o||l,b=0,y=0,x=0,C=Math.min(t.length-1,c),w=0;w<=C;w+=1){var E=i(t[w]);y=b;var S=n.get(E);b=x=y+(void 0===S?r:S)}for(var k="top"===v?u:f-u,O=C;O>=0;O-=1){var $=i(t[O]),_=n.get($);if(void 0===_){h=!0;break}if((k-=_)<=0)break}switch(v){case"top":m=y-u;break;case"bottom":m=x-f+u;break;default:var P=e.current.scrollTop;y<P?g="top":x>P+f&&(g="bottom")}null!==m&&s(m),m!==d.lastTop&&(h=!0)}h&&p(R(R({},d),{},{times:d.times+1,targetAlign:g,lastTop:m}))}else"production"!==process.env.NODE_ENV&&(null==d?void 0:d.times)===xh&&M(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")}),[d,e.current]),function(e){if(null!=e){if(Ae.cancel(c.current),"number"==typeof e)s(e);else if(e&&"object"===P(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var r=e.offset;p({times:0,index:n,offset:void 0===r?0:r,originAlign:o})}}else l()}}(G,q,B,c,L,(function(){return z(!0)}),ce,We);o.useImperativeHandle(r,(function(){return{nativeElement:Y.current,getScrollInfo:Le,scrollTo:function(e){var t;(t=e)&&"object"===P(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ne(De(e.left)),Ue(e.top)):Ue(e)}}})),_t((function(){if(k){var e=q.slice(ge,me+1);k(e,q)}}),[ge,me,q]);var Xe=function(e,t,n,r){var i=He(o.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),a=i[0],s=i[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,l=a.get(o),c=a.get(i);if(void 0===l||void 0===c)for(var u=e.length,d=s.length;d<u;d+=1){var p,f=e[d],h=t(f);a.set(h,d);var g=null!==(p=n.get(h))&&void 0!==p?p:r;if(s[d]=(s[d-1]||0)+g,h===o&&(l=d),h===i&&(c=d),void 0!==l&&void 0!==c)break}return{top:s[l-1]||0,bottom:s[c]}}}(q,L,B,c),qe=null==$?void 0:$({start:ge,end:me,virtual:W,offsetX:te,offsetY:ve,rtl:U,getSize:Xe}),Ge=function(e,t,n,r,i,a,s,l){var c=l.getKey;return e.slice(t,n+1).map((function(e,n){var l=s(e,t+n,{style:{width:r},offsetX:i}),u=c(e);return o.createElement(fh,{key:u,setRef:function(t){return a(e,t)}},l)}))}(q,ge,me,x,te,A,m,le),Ke=null;l&&(Ke=R(I({},d?"height":"maxHeight",l),$h),F&&(Ke.overflowY="hidden",x&&(Ke.overflowX="hidden"),re&&(Ke.pointerEvents="none")));var Ye={};return U&&(Ye.dir="rtl"),o.createElement("div",h({ref:Y,style:R(R({},p),{},{position:"relative"}),className:X},Ye,N),o.createElement($e,{onResize:function(e){xe({width:e.offsetWidth,height:e.offsetHeight})}},o.createElement(w,{className:"".concat(a,"-holder"),style:Ke,ref:G,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==Q&&ce(t),null==E||E(e),je()},onMouseEnter:We},o.createElement(ph,{prefixCls:a,height:he,offsetX:te,offsetY:ve,scrollWidth:x,onInnerResize:z,ref:K,innerProps:O,rtl:U,extra:qe},Ge))),W&&he>l&&o.createElement(wh,{ref:Ce,prefixCls:a,scrollOffset:Q,scrollRange:he,rtl:U,onScroll:Te,onStartMove:ae,onStopMove:se,spinSize:Se,containerSize:ye.height,style:null==_?void 0:_.verticalScrollBar,thumbStyle:null==_?void 0:_.verticalScrollBarThumb}),W&&x>ye.width&&o.createElement(wh,{ref:we,prefixCls:a,scrollOffset:te,scrollRange:x,rtl:U,onScroll:Te,onStartMove:ae,onStopMove:se,spinSize:Ee,containerSize:ye.width,horizontal:!0,style:null==_?void 0:_.horizontalScrollBar,thumbStyle:null==_?void 0:_.horizontalScrollBarThumb}))}var _h=o.forwardRef(Mh);_h.displayName="List";var Ph=["disabled","title","children","style","className"];function Nh(e){return"string"==typeof e||"number"==typeof e}var Ih=function(t,n){var r=o.useContext(Yp),i=r.prefixCls,a=r.id,s=r.open,l=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,p=r.notFoundContent,g=r.onPopupScroll,m=o.useContext(rh),v=m.maxCount,b=m.flattenOptions,y=m.onActiveValue,x=m.defaultActiveFirstOption,C=m.onSelect,w=m.menuItemSelectedIcon,E=m.rawValues,S=m.fieldNames,k=m.virtual,O=m.direction,$=m.listHeight,M=m.listItemHeight,_=m.optionRender,P="".concat(i,"-item"),N=D((function(){return b}),[s,b],(function(e,t){return t[0]&&e[1]!==t[1]})),L=o.useRef(null),R=o.useMemo((function(){return l&&th(v)&&(null==E?void 0:E.size)>=v}),[l,v,null==E?void 0:E.size]),j=function(e){e.preventDefault()},T=function(e){var t;null===(t=L.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},A=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=N.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=N[r]||{},a=i.group,s=i.data;if(!(a||null!=s&&s.disabled||R))return r}return-1},z=He(o.useState((function(){return A(0)})),2),B=z[0],H=z[1],F=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];H(e);var n={source:t?"keyboard":"mouse"},o=N[e];o?y(o.value,e,n):y(null,-1,n)};e.useEffect((function(){F(!1!==x?A(0):-1)}),[N.length,u]);var V=o.useCallback((function(e){return E.has(e)&&"combobox"!==c}),[c,Ie(E).toString(),E.size]);e.useEffect((function(){var e,t=setTimeout((function(){if(!l&&s&&1===E.size){var e=Array.from(E)[0],t=N.findIndex((function(t){return t.data.value===e}));-1!==t&&(F(t),T(t))}}));s&&(null===(e=L.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[s,u]);var W=function(e){void 0!==e&&C(e,{selected:!E.has(e)}),l||d(!1)};if(o.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Ns.N:case Ns.P:case Ns.UP:case Ns.DOWN:var o=0;if(t===Ns.UP?o=-1:t===Ns.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Ns.N?o=1:t===Ns.P&&(o=-1)),0!==o){var r=A(B+o,o);T(r),F(r,!0)}break;case Ns.ENTER:var i,a=N[B];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||R?W(void 0):W(a.value),s&&e.preventDefault();break;case Ns.ESC:d(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){T(e)}}})),0===N.length)return o.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:j},p);var U=Object.keys(S).map((function(e){return S[e]})),X=function(e){return e.label};function q(e,t){return{role:e.group?"presentation":"option",id:"".concat(a,"_list_").concat(t)}}var G=function(e){var t=N[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,a=Os(n,!0),s=X(t);return t?o.createElement("div",h({"aria-label":"string"!=typeof s||i?null:s},a,{key:e},q(t,e),{"aria-selected":V(r)}),r):null},K={role:"listbox",id:"".concat(a,"_list")};return o.createElement(o.Fragment,null,k&&o.createElement("div",h({},K,{style:{height:0,width:0,overflow:"hidden"}}),G(B-1),G(B),G(B+1)),o.createElement(_h,{itemKey:"key",ref:L,data:N,height:$,itemHeight:M,fullHeight:!1,onMouseDown:j,onScroll:g,virtual:k,direction:O,innerProps:k?null:K},(function(e,t){var n=e.group,r=e.groupOption,i=e.data,a=e.label,s=e.value,l=i.key;if(n){var c,u=null!==(c=i.title)&&void 0!==c?c:Nh(a)?a.toString():void 0;return o.createElement("div",{className:f(P,"".concat(P,"-group"),i.className),title:u},void 0!==a?a:l)}var d=i.disabled,p=i.title;i.children;var g=i.style,m=i.className,v=Me(nt(i,Ph),U),b=V(s),y=d||!b&&R,x="".concat(P,"-option"),C=f(P,x,m,I(I(I(I({},"".concat(x,"-grouped"),r),"".concat(x,"-active"),B===t&&!y),"".concat(x,"-disabled"),y),"".concat(x,"-selected"),b)),E=X(e),S=!w||"function"==typeof w||b,O="number"==typeof E?E:E||s,$=Nh(O)?O.toString():void 0;return void 0!==p&&($=p),o.createElement("div",h({},Os(v),k?{}:q(e,t),{"aria-selected":b,className:C,title:$,onMouseMove:function(){B===t||y||F(t)},onClick:function(){y||W(s)},style:g}),o.createElement("div",{className:"".concat(x,"-content")},"function"==typeof _?_(e,{index:t}):O),o.isValidElement(w)||b,S&&o.createElement(Kp,{className:"".concat(P,"-option-state"),customizeIcon:w,customizeIconProps:{value:s,disabled:y,isSelected:b}},b?"✓":null))})))},Lh=o.forwardRef(Ih);"production"!==process.env.NODE_ENV&&(Lh.displayName="OptionList");function Rh(e,t){return yf(e).join("").toUpperCase().includes(t)}var jh=0,Th="test"!==process.env.NODE_ENV&&Ve();function Dh(e){var t=He(o.useState(),2),n=t[0],r=t[1];return o.useEffect((function(){var e;r("rc_select_".concat((Th?(e=jh,jh+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var Ah=["children","value"],zh=["children"];function Bh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return C(e).map((function(e,n){if(!o.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,s=r.props,l=s.children,c=nt(s,zh);return t||!i?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value;return R({key:n,value:void 0!==i?i:n,children:r},nt(o,Ah))}(e):R(R({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},c),{},{options:Bh(l)})})).filter((function(e){return e}))}function Hh(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var Fh=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Vh=["inputValue"];var Wh=o.forwardRef((function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,a=void 0===i?"rc-select":i,s=e.backfill,l=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,p=e.autoClearSearchValue,f=void 0===p||p,g=e.onSelect,m=e.onDeselect,v=e.dropdownMatchSelectWidth,b=void 0===v||v,y=e.filterOption,x=e.filterSort,w=e.optionFilterProp,E=e.optionLabelProp,S=e.options,k=e.optionRender,O=e.children,$=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,L=e.virtual,j=e.direction,T=e.listHeight,D=void 0===T?200:T,A=e.listItemHeight,z=void 0===A?20:A,B=e.labelRender,H=e.value,F=e.defaultValue,V=e.labelInValue,W=e.onChange,U=e.maxCount,X=nt(e,Fh),q=Dh(n),G=lh(r),K=!(S||!O),Y=o.useMemo((function(){return(void 0!==y||"combobox"!==r)&&y}),[y,r]),Z=o.useMemo((function(){return nh(l,K)}),[JSON.stringify(l),K]),Q=He(ri("",{value:void 0!==u?u:c,postState:function(e){return e||""}}),2),J=Q[0],ee=Q[1],te=function(e,t,n,r,i){return o.useMemo((function(){var o=e;!e&&(o=Bh(t));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||o?(a.set(u[n.value],u),l(s,u,n.label),l(s,u,r),l(s,u,i)):e(u[n.options],!0)}}(o),{options:o,valueOptions:a,labelOptions:s}}),[e,t,n,r,i])}(S,O,Z,w,E),ne=te.valueOptions,oe=te.labelOptions,re=te.options,ie=o.useCallback((function(e){return yf(e).map((function(e){var t,n,r,i,a,s;(function(e){return!e||"object"!==P(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(s=e.value)&&void 0!==s?s:r);var l,c=ne.get(t);if(c&&(void 0===n&&(n=null==c?void 0:c[E||Z.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),i=null==c?void 0:c.disabled,a=null==c?void 0:c.title,"production"!==process.env.NODE_ENV&&!E)){var u=null==c?void 0:c[Z.label];void 0===u||o.isValidElement(u)||o.isValidElement(n)||u===n||M(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:n,value:t,key:r,disabled:i,title:a}}))}),[Z,E,ne]),ae=He(ri(F,{value:H}),2),se=ae[0],le=ae[1],ce=o.useMemo((function(){var e,t=ie(G&&null===se?[]:se);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[se,ie,r,G]),ue=function(e,t){var n=o.useRef({values:new Map,options:new Map});return[o.useMemo((function(){var o=n.current,r=o.values,i=o.options,a=e.map((function(e){var t;return void 0===e.label?R(R({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return a.forEach((function(e){s.set(e.value,e),l.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=s,n.current.options=l,a}),[e,t]),o.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(ce,ne),de=He(ue,2),pe=de[0],fe=de[1],he=o.useMemo((function(){if(!r&&1===pe.length){var e=pe[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return pe.map((function(e){var t;return R(R({},e),{},{label:null!==(t="function"==typeof B?B(e):e.label)&&void 0!==t?t:e.value})}))}),[r,pe,B]),ge=o.useMemo((function(){return new Set(pe.map((function(e){return e.value})))}),[pe]);o.useEffect((function(){if("combobox"===r){var e,t=null===(e=pe[0])||void 0===e?void 0:e.value;ee(function(e){return null!=e}(t)?String(t):"")}}),[pe]);var me=Hh((function(e,t){var n=null!=t?t:e;return I(I({},Z.value,e),Z.label,n)})),ve=function(e,t,n,r,i){return o.useMemo((function(){if(!n||!1===r)return e;var o=t.options,a=t.label,s=t.value,l=[],c="function"==typeof r,u=n.toUpperCase(),d=c?r:function(e,t){return i?Rh(t[i],u):t[o]?Rh(t["children"!==a?a:"label"],u):Rh(t[s],u)},p=c?function(e){return oh(e)}:function(e){return e};return e.forEach((function(e){if(e[o])if(d(n,p(e)))l.push(e);else{var t=e[o].filter((function(e){return d(n,p(e))}));t.length&&l.push(R(R({},e),{},I({},o,t)))}else d(n,p(e))&&l.push(e)})),l}),[e,r,i,n,t])}(o.useMemo((function(){if("tags"!==r)return re;var e=Ie(re);return Ie(pe).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return ne.has(e)})(n)||e.push(me(n,t.label))})),e}),[me,re,ne,pe,r]),Z,J,Y,w),be=o.useMemo((function(){return"tags"!==r||!J||ve.some((function(e){return e[w||"value"]===J}))||ve.some((function(e){return e[Z.value]===J}))?ve:[me(J)].concat(Ie(ve))}),[me,w,r,ve,J,Z]),ye=function e(t){return Ie(t).sort((function(e,t){return x(e,t,{searchValue:J})})).map((function(t){return Array.isArray(t.options)?R(R({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},xe=o.useMemo((function(){return x?ye(be):be}),[be,x,J]),Ce=o.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=nh(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(l in t)){var i=t[s];r.push({key:eh(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&o&&(u=t.label),r.push({key:eh(t,r.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),r}(xe,{fieldNames:Z,childrenAsData:K})}),[xe,Z,K]),we=function(e){var t=ie(e);if(le(t),W&&(t.length!==pe.length||t.some((function(e,t){var n;return(null===(n=pe[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=V?t:t.map((function(e){return e.value})),o=t.map((function(e){return oh(fe(e.value))}));W(G?n:n[0],G?o:o[0])}},Ee=He(o.useState(null),2),Se=Ee[0],ke=Ee[1],Oe=He(o.useState(0),2),$e=Oe[0],Me=Oe[1],_e=void 0!==$?$:"combobox"!==r,Pe=o.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;Me(t),s&&"combobox"===r&&null!==e&&"keyboard"===o&&ke(String(e))}),[s,r]),Ne=function(e,t,n){var o=function(){var t,n=fe(e);return[V?{label:null==n?void 0:n[Z.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,oh(n)]};if(t&&g){var r=He(o(),2),i=r[0],a=r[1];g(i,a)}else if(!t&&m&&"clear"!==n){var s=He(o(),2),l=s[0],c=s[1];m(l,c)}},Le=Hh((function(e,t){var n,o=!G||t.selected;n=o?G?[].concat(Ie(pe),[e]):[e]:pe.filter((function(t){return t.value!==e})),we(n),Ne(e,o),"combobox"===r?ke(""):lh&&!f||(ee(""),ke(""))})),Re=o.useMemo((function(){var e=!1!==L&&!1!==b;return R(R({},te),{},{flattenOptions:Ce,onActiveValue:Pe,defaultActiveFirstOption:_e,onSelect:Le,menuItemSelectedIcon:N,rawValues:ge,fieldNames:Z,virtual:e,direction:j,listHeight:D,listItemHeight:z,childrenAsData:K,maxCount:U,optionRender:k})}),[U,te,Ce,Pe,_e,Le,N,ge,Z,L,b,j,D,z,K,k]);return"production"!==process.env.NODE_ENV&&(function(e){var t=e.mode,n=e.options,r=e.children,i=e.backfill,a=e.allowClear,s=e.placeholder,l=e.getInputElement,c=e.showSearch,u=e.onSearch,d=e.defaultOpen,p=e.autoFocus,f=e.labelInValue,h=e.value,g=e.inputValue,m=e.optionLabelProp,v=lh(t),b=void 0!==c?c:v||"combobox"===t,y=n||Bh(r);if(M("tags"!==t||y.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),("tags"===t||"combobox"===t)&&M(!y.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)})),"`value` of Option should not use number type when `mode` is `tags` or `combobox`."),M("combobox"!==t||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),M("combobox"===t||!i,"`backfill` only works with `combobox` mode."),M("combobox"===t||!l,"`getInputElement` only work with `combobox` mode."),_("combobox"!==t||!l||!a||!s,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!b&&"combobox"!==t&&"tags"!==t&&M(!1,"`onSearch` should work with `showSearch` instead of use alone."),_(!d||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=h){var x=yf(h);M(!f||x.every((function(e){return"object"===P(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),M(!v||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var w=null;C(r).some((function(e){if(!o.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!C(e.props.children).every((function(t){return!(o.isValidElement(t)&&e.type&&!t.type.isSelectOption&&(w=t.type,1))})):(w=t,!0))})),w&&M(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(w.displayName||w.name||w,"`.")),M(void 0===g,"`inputValue` is deprecated, please use `searchValue` instead.")}}(e),function(e,t){e&&function e(n){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;r<n.length;r++){var i=n[r];if(null===i[null==t?void 0:t.value])return M(!1,"`value` in Select options should not be `null`."),!0;if(!o&&Array.isArray(i[null==t?void 0:t.options])&&e(i[null==t?void 0:t.options],!0))break}}(e)}(re,Z)),o.createElement(rh.Provider,{value:Re},o.createElement(ch,h({},X,{id:q,prefixCls:a,ref:t,omitDomProps:Vh,mode:r,displayValues:he,onDisplayValuesChange:function(e,t){we(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){Ne(e.value,!1,n)}))},direction:j,searchValue:J,onSearch:function(e,t){if(ee(e),ke(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&we(e),null==d||d(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Ie(ge),[n])));we(o),Ne(n,!0),ee("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=oe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Ie(ge),Ie(t))));we(n),n.forEach((function(e){Ne(e,!0)}))},dropdownMatchSelectWidth:b,OptionList:Lh,emptyOptions:!Ce.length,activeValue:Se,activeDescendantId:"".concat(q,"_list_").concat($e)})))}));"production"!==process.env.NODE_ENV&&(Wh.displayName="Select");var Uh=Wh;function Xh(e,t,n){return f({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}Uh.Option=dh,Uh.OptGroup=uh;const qh=(e,t)=>t||e,Gh=()=>{const[,e]=Oi(),t=new Yo(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"empty image"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};"production"!==process.env.NODE_ENV&&(Gh.displayName="EmptyImage");const Kh=()=>{const[,t]=Oi(),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=t,{borderColor:s,shadowColor:l,contentColor:c}=e.useMemo((()=>({borderColor:new Yo(n).onBackground(a).toHexShortString(),shadowColor:new Yo(r).onBackground(a).toHexShortString(),contentColor:new Yo(i).onBackground(a).toHexShortString()})),[n,r,i,a]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Simple Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:s},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))};"production"!==process.env.NODE_ENV&&(Kh.displayName="SimpleImage");const Yh=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var Zh=Ri("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=li(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[Yh(r)]})),Qh=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 Jh=o.createElement(Gh,null),eg=o.createElement(Kh,null),tg=e=>{var{className:t,rootClassName:n,prefixCls:r,image:i=Jh,description:a,children:s,imageStyle:l,style:c}=e,u=Qh(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:p,empty:h}=o.useContext(Hr),g=d("empty",r),[m,v,b]=Zh(g),[y]=_o("Empty"),x=void 0!==a?a:null==y?void 0:y.description,C="string"==typeof x?x:"empty";let w=null;return w="string"==typeof i?o.createElement("img",{alt:C,src:i}):i,m(o.createElement("div",Object.assign({className:f(v,b,g,null==h?void 0:h.className,{[`${g}-normal`]:i===eg,[`${g}-rtl`]:"rtl"===p},t,n),style:Object.assign(Object.assign({},null==h?void 0:h.style),c)},u),o.createElement("div",{className:`${g}-image`,style:l},w),x&&o.createElement("div",{className:`${g}-description`},x),s&&o.createElement("div",{className:`${g}-footer`},s)))};tg.PRESENTED_IMAGE_DEFAULT=Jh,tg.PRESENTED_IMAGE_SIMPLE=eg,"production"!==process.env.NODE_ENV&&(tg.displayName="Empty");const ng=t=>{const{componentName:n}=t,{getPrefixCls:o}=e.useContext(Hr),r=o("empty");switch(n){case"Table":case"List":return e.createElement(tg,{image:tg.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return e.createElement(tg,{image:tg.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return e.createElement(tg,null)}},og=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,i;const{variant:a,[t]:s}=e.useContext(Hr),l=e.useContext(Ju),c=null==s?void 0:s.variant;let u;u=void 0!==n?n:!1===o?"borderless":null!==(i=null!==(r=null!=l?l:c)&&void 0!==r?r:a)&&void 0!==i?i:"outlined";return[u,Br.includes(u)]};function rg(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const ig=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},ag=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},_i(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:Zd},[`\n ${r}${s}topLeft,\n ${i}${s}topLeft,\n ${r}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:Jd},[`${a}${s}bottomLeft`]:{animationName:Qd},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:ep},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},ig(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Mi),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${o}-option-selected:not(${o}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${o}-option-selected:not(${o}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},ig(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},ap(e,"slide-up"),ap(e,"slide-down"),Yd(e,"move-up"),Yd(e,"move-down")]},sg=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:o,cursor:"default",transition:`font-size ${r}, line-height ${r}, height ${r}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},lg=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),s=t?`${n}-${t}`:"",l=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(n).sub(o).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:Et(t),itemLineHeight:Et(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},sg(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Et(o)} 0`,lineHeight:Et(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Et(l.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Et(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function cg(e,t){const{componentCls:n}=e,o=t?`${n}-${t}`:"",r={[`${n}-multiple${o}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[lg(e,t),r]}const ug=e=>{const{componentCls:t}=e,n=li(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=li(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[cg(e),cg(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},cg(o,"lg")]};function dg(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},_i(e,!0)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Et(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Et(o)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Et(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Et(o)}`,"&:after":{display:"none"}}}}}}}function pg(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[dg(e),dg(li(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Et(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},dg(li(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const fg=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Et(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Et(r)} ${t.activeShadowColor}`,outline:0}}}},hg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},fg(e,t))}),gg=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},fg(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),hg(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),hg(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mg=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Et(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},vg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mg(e,t))}),bg=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),vg(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),vg(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),yg=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),xg=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},gg(e)),bg(e)),yg(e))}),Cg=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},wg=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Eg=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},_i(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Cg(e)),wg(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Mi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Mi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}},Sg=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Eg(e),pg(e),ug(e),ag(e),{[`${t}-rtl`]:{direction:"rtl"}},lc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var kg=Ri("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=li(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Sg(o),xg(o)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:f,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:v}=e,b=2*s,y=2*o,x=Math.min(r-b,r-y),C=Math.min(i-b,i-y),w=Math.min(a-b,a-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:f,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:C,multipleItemHeightLG:w,multipleSelectorBgDisabled:m,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Og={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"},$g=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Og}))},Mg=o.forwardRef($g);"production"!==process.env.NODE_ENV&&(Mg.displayName="CheckOutlined");var _g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Pg=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:_g}))},Ng=o.forwardRef(Pg);"production"!==process.env.NODE_ENV&&(Ng.displayName="DownOutlined");var Ig={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"},Lg=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Ig}))},Rg=o.forwardRef(Lg);"production"!==process.env.NODE_ENV&&(Rg.displayName="SearchOutlined");var jg=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 Tg="SECRET_COMBOBOX_MODE_DO_NOT_USE",Dg=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:p,listItemHeight:h,size:g,disabled:m,notFoundContent:v,status:b,builtinPlacements:y,dropdownMatchSelectWidth:x,popupMatchSelectWidth:C,direction:w,style:E,allowClear:S,variant:k,dropdownStyle:O,transitionName:$,tagRender:M,maxCount:_}=e,P=jg(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:N,getPrefixCls:I,renderEmpty:L,direction:R,virtual:j,popupMatchSelectWidth:T,popupOverflow:D,select:A}=o.useContext(Hr),[,z]=Oi(),B=null!=h?h:null==z?void 0:z.controlHeight,H=I("select",r),F=I(),V=null!=w?w:R,{compactSize:W,compactItemClassnames:U}=xl(H,V),[X,q]=og("select",k,i),G=Ps(H),[K,Y,Z]=kg(H,G),Q=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===Tg?"combobox":t}),[e.mode]),J="multiple"===Q||"tags"===Q,ee=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),te=null!==(n=null!=C?C:x)&&void 0!==n?n:T,{status:ne,hasFeedback:oe,isFormItemInput:re,feedbackIcon:ie}=o.useContext(Zu),ae=qh(ne,b);let se;se=void 0!==v?v:"combobox"===Q?null:(null==L?void 0:L("Select"))||o.createElement(ng,{componentName:"Select"});const{suffixIcon:le,itemIcon:ce,removeIcon:ue,clearIcon:de}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:f}=e;"production"!==process.env.NODE_ENV&&go(f).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const h=null!=n?n:o.createElement(ps,null),g=e=>null!==t||l||p?o.createElement(o.Fragment,null,!1!==u&&e,l&&d):null;let m=null;if(void 0!==t)m=g(t);else if(a)m=g(o.createElement(Rs,{spin:!0}));else{const e=`${c}-suffix`;m=t=>{let{open:n,showSearch:r}=t;return g(n&&r?o.createElement(Rg,{className:e}):o.createElement(Ng,{className:e}))}}let v=null;v=void 0!==r?r:s?o.createElement(Mg,null):null;let b=null;return b=void 0!==i?i:o.createElement(gs,null),{clearIcon:h,suffixIcon:m,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},P),{multiple:J,hasFeedback:oe,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:H,componentName:"Select"})),pe=!0===S?{clearIcon:de}:S,fe=Me(P,["suffixIcon","itemIcon"]),he=f(c||u,{[`${H}-dropdown-${V}`]:"rtl"===V},s,Z,G,Y),ge=bl((e=>{var t;return null!==(t=null!=g?g:W)&&void 0!==t?t:e})),me=o.useContext(Wr),ve=null!=m?m:me,be=f({[`${H}-lg`]:"large"===ge,[`${H}-sm`]:"small"===ge,[`${H}-rtl`]:"rtl"===V,[`${H}-${X}`]:q,[`${H}-in-form-item`]:re},Xh(H,ae,oe),U,null==A?void 0:A.className,a,s,Z,G,Y),ye=o.useMemo((()=>void 0!==p?p:"rtl"===V?"bottomRight":"bottomLeft"),[p,V]);if("production"!==process.env.NODE_ENV){const t=go("Select");t.deprecated(!u,"dropdownClassName","popupClassName"),t.deprecated(void 0===x,"dropdownMatchSelectWidth","popupMatchSelectWidth"),"production"!==process.env.NODE_ENV&&t(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),t.deprecated(!("bordered"in e),"bordered","variant"),"production"!==process.env.NODE_ENV&&t(!(void 0!==_&&!J),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[xe]=zs("SelectLike",null==O?void 0:O.zIndex);return K(o.createElement(Uh,Object.assign({ref:t,virtual:j,showSearch:null==A?void 0:A.showSearch},fe,{style:Object.assign(Object.assign({},null==A?void 0:A.style),E),dropdownMatchSelectWidth:te,transitionName:sl(F,"slide-up",$),builtinPlacements:rg(y,D),listHeight:d,listItemHeight:B,mode:Q,prefixCls:H,placement:ye,direction:V,suffixIcon:le,menuItemSelectedIcon:ce,removeIcon:ue,allowClear:pe,notFoundContent:se,className:be,getPopupContainer:l||N,dropdownClassName:he,disabled:ve,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:xe}),maxCount:J?_:void 0,tagRender:J?M:void 0})))};"production"!==process.env.NODE_ENV&&(Dg.displayName="Select");const Ag=o.forwardRef(Dg),zg=(Bg=Ag,qp((e=>{const{prefixCls:t,style:n}=e,r=o.useRef(null),[i,a]=o.useState(0),[s,l]=o.useState(0),[c,u]=ri(!1,{value:e.open}),{getPrefixCls:d}=o.useContext(Hr),p=d("select",t);o.useEffect((()=>{if(u(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;a(t.offsetHeight+8),l(t.offsetWidth)})),t=setInterval((()=>{var n;const o=`.${p}-dropdown`,i=null===(n=r.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let f=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:c,visible:c,getPopupContainer:()=>r.current});const h={paddingBottom:i,position:"relative",minWidth:s};return o.createElement("div",{ref:r,style:h},o.createElement(Bg,Object.assign({},f)))})));var Bg;Ag.SECRET_COMBOBOX_MODE_DO_NOT_USE=Tg,Ag.Option=dh,Ag.OptGroup=uh,Ag._InternalPanelDoNotUseOrYouWillBeFired=zg,"production"!==process.env.NODE_ENV&&(Ag.displayName="Select");const Hg=["xxl","xl","lg","md","sm","xs"],Fg=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Vg=e=>{const t=e,n=[].concat(Hg).reverse();return n.forEach(((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e};function Wg(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const n=e.useRef({}),r=function(){const[,e]=o.useReducer((e=>e+1),0);return e}(),i=function(){const[,t]=Oi(),n=Fg(Vg(t));return e.useMemo((()=>{const e=new Map;let t=-1,o={};return{matchHandlers:{},dispatch:t=>(o=t,e.forEach((e=>e(o))),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(o),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach((e=>{const t=n[e],o=this.matchHandlers[t];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),e.clear()},register(){Object.keys(n).forEach((e=>{const t=n[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(t);i.addListener(r),this.matchHandlers[t]={mql:i,listener:r},r(i)}))},responsiveMap:n}}),[t])}();return _t((()=>{const e=i.subscribe((e=>{n.current=e,t&&r()}));return()=>i.unsubscribe(e)}),[]),n.current}const Ug=o.createContext({}),Xg=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:p,borderRadiusLG:f,borderRadiusSM:h,lineWidth:g,lineType:m}=e,v=(e,t,r)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},_i(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${Et(g)} ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(a,c,p)),{"&-lg":Object.assign({},v(s,u,f)),"&-sm":Object.assign({},v(l,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},qg=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}};var Gg=Ri("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=li(e,{avatarBg:n,avatarColor:t});return[Xg(o),qg(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:r,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}})),Kg=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 Yg=(e,t)=>{const[n,r]=o.useState(1),[i,a]=o.useState(!1),[s,l]=o.useState(!0),c=o.useRef(null),u=o.useRef(null),d=z(t,c),{getPrefixCls:p,avatar:h}=o.useContext(Hr),g=o.useContext(Ug),m=()=>{if(!u.current||!c.current)return;const t=u.current.offsetWidth,n=c.current.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o<n&&r(n-2*o<t?(n-2*o)/t:1)}};o.useEffect((()=>{a(!0)}),[]),o.useEffect((()=>{l(!0),r(1)}),[e.src]),o.useEffect(m,[e.gap]);const v=()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&l(!1)},{prefixCls:b,shape:y,size:x,src:C,srcSet:w,icon:E,className:S,rootClassName:k,alt:O,draggable:$,children:M,crossOrigin:_}=e,P=Kg(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),N=bl((e=>{var t,n;return null!==(n=null!==(t=null!=x?x:null==g?void 0:g.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),I=Wg(Object.keys("object"==typeof N&&N||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),L=o.useMemo((()=>{if("object"!=typeof N)return{};const e=Hg.find((e=>I[e])),t=N[e];return t?{width:t,height:t,fontSize:t&&(E||M)?t/2:18}:{}}),[I,N]);if("production"!==process.env.NODE_ENV){const e=go("Avatar");"production"!==process.env.NODE_ENV&&e(!("string"==typeof E&&E.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${E}\` at https://ant.design/components/icon`)}const R=p("avatar",b),j=Ps(R),[T,D,A]=Gg(R,j),B=f({[`${R}-lg`]:"large"===N,[`${R}-sm`]:"small"===N}),H=o.isValidElement(C),F=y||(null==g?void 0:g.shape)||"circle",V=f(R,B,null==h?void 0:h.className,`${R}-${F}`,{[`${R}-image`]:H||C&&s,[`${R}-icon`]:!!E},A,j,S,k,D),W="number"==typeof N?{width:N,height:N,fontSize:E?N/2:18}:{};let U;if("string"==typeof C&&s)U=o.createElement("img",{src:C,draggable:$,srcSet:w,onError:v,alt:O,crossOrigin:_});else if(H)U=C;else if(E)U=E;else if(i||1!==n){const e=`scale(${n})`,t={msTransform:e,WebkitTransform:e,transform:e};U=o.createElement($e,{onResize:m},o.createElement("span",{className:`${R}-string`,ref:u,style:Object.assign({},t)},M))}else U=o.createElement("span",{className:`${R}-string`,style:{opacity:0},ref:u},M);return delete P.onError,delete P.gap,T(o.createElement("span",Object.assign({},P,{style:Object.assign(Object.assign(Object.assign(Object.assign({},W),L),null==h?void 0:h.style),P.style),className:V,ref:d}),U))},Zg=o.forwardRef(Yg);"production"!==process.env.NODE_ENV&&(Zg.displayName="Avatar");const Qg=e=>e?"function"==typeof e?e():e:null;function Jg(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,s=e.style;return o.createElement("div",{className:f("".concat(n,"-content"),a),style:s},o.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t))}var em={shiftX:64,adjustY:1},tm={adjustX:1,shiftY:!0},nm=[0,0],om={left:{points:["cr","cl"],overflow:tm,offset:[-4,0],targetOffset:nm},right:{points:["cl","cr"],overflow:tm,offset:[4,0],targetOffset:nm},top:{points:["bc","tc"],overflow:em,offset:[0,-4],targetOffset:nm},bottom:{points:["tc","bc"],overflow:em,offset:[0,4],targetOffset:nm},topLeft:{points:["bl","tl"],overflow:em,offset:[0,-4],targetOffset:nm},leftTop:{points:["tr","tl"],overflow:tm,offset:[-4,0],targetOffset:nm},topRight:{points:["br","tr"],overflow:em,offset:[0,-4],targetOffset:nm},rightTop:{points:["tl","tr"],overflow:tm,offset:[4,0],targetOffset:nm},bottomRight:{points:["tr","br"],overflow:em,offset:[0,4],targetOffset:nm},rightBottom:{points:["bl","br"],overflow:tm,offset:[4,0],targetOffset:nm},bottomLeft:{points:["tl","bl"],overflow:em,offset:[0,4],targetOffset:nm},leftBottom:{points:["br","bl"],overflow:tm,offset:[-4,0],targetOffset:nm}},rm=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],im=function(t,n){var r=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,s=t.mouseEnterDelay,l=void 0===s?0:s,c=t.mouseLeaveDelay,u=void 0===c?.1:c,d=t.overlayStyle,p=t.prefixCls,f=void 0===p?"rc-tooltip":p,g=t.children,m=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,y=t.animation,x=t.motion,C=t.placement,w=void 0===C?"right":C,E=t.align,S=void 0===E?{}:E,k=t.destroyTooltipOnHide,O=void 0!==k&&k,$=t.defaultVisible,M=t.getTooltipContainer,_=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,N=t.id,I=t.showArrow,L=void 0===I||I,j=nt(t,rm),T=e.useRef(null);e.useImperativeHandle(n,(function(){return T.current}));var D=R({},j);"visible"in t&&(D.popupVisible=t.visible);return o.createElement(Yf,h({popupClassName:r,prefixCls:f,popup:function(){return o.createElement(Jg,{key:"content",prefixCls:f,id:N,overlayInnerStyle:_},P)},action:a,builtinPlacements:om,popupPlacement:w,ref:T,popupAlign:S,getPopupContainer:M,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:y,popupMotion:x,defaultPopupVisible:$,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:L},D),g)},am=e.forwardRef(im);function sm(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,p=2*r-a,f=s,h=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 ${p} ${f} A ${o} ${o} 0 0 0 ${h} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const lm=(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 ${Et(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},cm=8;function um(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?cm:o}}function dm(e,t){return e?t:{}}function pm(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"},lm(e,t,r)),{"&:before":{background:t}})]},dm(!!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% - ${Et(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),dm(!!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% - ${Et(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),dm(!!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}})),dm(!!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 fm={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"]}},hm={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"]}},gm=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function mm(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(fm).forEach((e=>{const c=o&&hm[e]||fm[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,gm.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=um({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 vm=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({},_i(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:`${Et(e.calc(c).div(2).equal())} ${Et(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,cm)}},[`${t}-content`]:{position:"relative"}}),Di(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},pm(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},bm=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},um({contentRadius:e.borderRadius,limitVerticalRadius:!0})),sm(li(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var ym=function(e){const t=Ri("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=li(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[vm(r),hp(e,"zoom-big-fast")]}),bm,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const xm=gi.map((e=>`${e}-inverse`));function Cm(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Ie(xm),Ie(gi)).includes(e):gi.includes(e)}function wm(e,t){const n=Cm(t),o=f({[`${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 Em=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=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:h,destroyTooltipOnHide:g,arrow:m=!0,title:v,overlay:b,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:C=!0}=e,w=!!m,[,E]=Oi(),{getPopupContainer:S,getPrefixCls:k,direction:O}=o.useContext(Hr),$=go("Tooltip"),M=o.useRef(null),_=()=>{var e;null===(e=M.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>{var e;return{forceAlign:_,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),_()},nativeElement:null===(e=M.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((t=>{let[n,o]=t;$.deprecated(!(n in e),n,o)})),"production"!==process.env.NODE_ENV&&$(!g||"boolean"==typeof g,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&$(!m||"boolean"==typeof m||!("arrowPointAtCenter"in m),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[P,N]=ri(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),I=!v&&!b&&0!==v,L=o.useMemo((()=>{var e,t;let n=x;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:x),y||mm({arrowPointAtCenter:n,autoAdjustOverflow:C,arrowWidth:w?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})}),[x,m,y,E]),R=o.useMemo((()=>0===v?v:b||v||""),[b,v]),j=o.createElement(ed,{space:!0},"function"==typeof R?R():R),{getPopupContainer:T,placement:D="top",mouseEnterDelay:A=.1,mouseLeaveDelay:z=.1,overlayStyle:B,rootClassName:H}=e,F=Em(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=k("tooltip",i),W=k(),U=e["data-popover-inject"];let X=P;"open"in e||"visible"in e||!I||(X=!1);const q=o.isValidElement(d)&&!$s(d)?d:o.createElement("span",null,d),G=q.props,K=G.className&&"string"!=typeof G.className?G.className:f(G.className,a||`${V}-open`),[Y,Z,Q]=ym(V,!U),J=wm(V,c),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=f(l,{[`${V}-rtl`]:"rtl"===O},J.className,H,Z,Q),[oe,re]=zs("Tooltip",F.zIndex),ie=o.createElement(am,Object.assign({},F,{zIndex:oe,showArrow:w,placement:D,mouseEnterDelay:A,mouseLeaveDelay:z,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),B),getTooltipContainer:T||s||S,ref:M,builtinPlacements:L,overlay:j,visible:X,onVisibleChange:t=>{var n,o;N(!I&&t),I||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=p?p:h,overlayInnerStyle:te,arrowContent:o.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:sl(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),X?_s(q,{className:K}):q);return Y(o.createElement(js.Provider,{value:re},ie))})),km=Sm;"production"!==process.env.NODE_ENV&&(km.displayName="Tooltip"),km._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=o.useContext(Hr),c=l("tooltip",t),[u,d,p]=ym(c),h=wm(c,a),g=h.arrowStyle,m=Object.assign(Object.assign({},s),h.overlayStyle),v=f(d,p,c,`${c}-pure`,`${c}-placement-${r}`,n,h.className);return u(o.createElement("div",{className:v,style:g},o.createElement("div",{className:`${c}-arrow`}),o.createElement(Jg,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:m}),i)))};const Om=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:p,titleBorderBottom:f,innerContentPadding:h,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},_i(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:u,color:s,fontWeight:r,borderBottom:f,padding:g},[`${t}-inner-content`]:{color:n,padding:h}})},pm(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},$m=e=>{const{componentCls:t}=e;return{[t]:gi.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}};var Mm=Ri("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,o=li(e,{popoverBg:t,popoverColor:n});return[Om(o),$m(o),hp(o,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:o,padding:r,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,p=n-o,f=p/2,h=p/2-t,g=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},sm(e)),um({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${f}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),_m=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 Pm=e=>{let{title:t,content:n,prefixCls:r}=e;return t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:`${r}-title`},t),n&&o.createElement("div",{className:`${r}-inner-content`},n)):null},Nm=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:s,content:l,children:c}=e,u=Qg(s),d=Qg(l),p=f(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return o.createElement("div",{className:p,style:i},o.createElement("div",{className:`${n}-arrow`}),o.createElement(Jg,Object.assign({},e,{className:t,prefixCls:n}),c||o.createElement(Pm,{prefixCls:n,title:u,content:d})))};var Im=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=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,title:a,content:s,overlayClassName:l,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:p=.1,mouseLeaveDelay:h=.1,onOpenChange:g,overlayStyle:m={}}=e,v=Im(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:b}=o.useContext(Hr),y=b("popover",i),[x,C,w]=Mm(y),E=b(),S=f(l,C,w),[k,O]=ri(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),$=(e,t)=>{O(e,!0),null==g||g(e,t)},M=Qg(a),_=Qg(s);return x(o.createElement(km,Object.assign({placement:c,trigger:u,mouseEnterDelay:p,mouseLeaveDelay:h,overlayStyle:m},v,{prefixCls:y,overlayClassName:S,ref:t,open:k,onOpenChange:e=>{$(e)},overlay:M||_?o.createElement(Pm,{prefixCls:y,title:M,content:_}):null,transitionName:sl(E,"zoom-big",v.transitionName),"data-popover-inject":!0}),_s(d,{onKeyDown:e=>{var t,n;o.isValidElement(d)&&(null===(n=null==d?void 0:(t=d.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===Ns.ESC&&$(!1,e)})(e)}})))}));Lm._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n}=e,r=_m(e,["prefixCls","className"]),{getPrefixCls:i}=o.useContext(Hr),a=i("popover",t),[s,l,c]=Mm(a);return s(o.createElement(Nm,Object.assign({},r,{prefixCls:a,hashId:l,className:f(n,c)})))},"production"!==process.env.NODE_ENV&&(Lm.displayName="Popover");const Rm=e=>{const{size:t,shape:n}=o.useContext(Ug),r=o.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return o.createElement(Ug.Provider,{value:r},e.children)},jm=Zg;jm.Group=e=>{var t,n,r;const{getPrefixCls:i,direction:a}=o.useContext(Hr),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:p,size:h,shape:g,maxPopoverPlacement:m,maxPopoverTrigger:v,children:b,max:y}=e;if("production"!==process.env.NODE_ENV){const e=go("Avatar.Group");e.deprecated(!d,"maxCount","max={{ count: number }}"),e.deprecated(!p,"maxStyle","max={{ style: CSSProperties }}"),e.deprecated(!m,"maxPopoverPlacement","max={{ popover: PopoverProps }}"),e.deprecated(!v,"maxPopoverTrigger","max={{ popover: PopoverProps }}")}const x=i("avatar",s),w=`${x}-group`,E=Ps(x),[S,k,O]=Gg(x,E),$=f(w,{[`${w}-rtl`]:"rtl"===a},O,E,l,c,k),M=C(b).map(((e,t)=>_s(e,{key:`avatar-key-${t}`}))),_=(null==y?void 0:y.count)||d,P=M.length;if(_&&_<P){const e=M.slice(0,_),i=M.slice(_,P),a=(null==y?void 0:y.style)||p,s=(null===(t=null==y?void 0:y.popover)||void 0===t?void 0:t.trigger)||v||"hover",l=(null===(n=null==y?void 0:y.popover)||void 0===n?void 0:n.placement)||m||"top",c=Object.assign(Object.assign({content:i},null==y?void 0:y.popover),{overlayClassName:f(`${w}-popover`,null===(r=null==y?void 0:y.popover)||void 0===r?void 0:r.overlayClassName),placement:l,trigger:s});return e.push(o.createElement(Lm,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},c),o.createElement(Zg,{style:a},"+"+(P-_)))),S(o.createElement(Rm,{shape:g,size:h},o.createElement("div",{className:$,style:u},e)))}return S(o.createElement(Rm,{shape:g,size:h},o.createElement("div",{className:$,style:u},M)))};const Tm=new eo("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Dm=new eo("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Am=new eo("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),zm=new eo("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Bm=new eo("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Hm=new eo("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Fm=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return li(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%)"})},Vm=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 Wm=Ri("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:p,marginXS:f,calc:h}=e,g=`${o}-scroll-number`,m=Di(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({},_i(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:Et(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(d).div(2).equal(),boxShadow:`0 0 0 ${Et(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:p,height:p,fontSize:s,lineHeight:Et(p),borderRadius:h(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Et(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 ${Et(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:Hm,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:Tm,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:f,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Dm,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Am,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:zm,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Bm,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%)"}}})}})(Fm(e))),Vm);var Um=Ri(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Di(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({},_i(e)),{position:"absolute",top:o,padding:`0 ${Et(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Et(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:`${Et(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"}})}})(Fm(e))),Vm);const Xm=e=>{const{className:t,prefixCls:n,style:r,color:i,children:a,text:s,placement:l="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=o.useContext(Hr),p=u("ribbon",n),h=`${p}-wrapper`,[g,m,v]=Um(p,h),b=Cm(i,!1),y=f(p,`${p}-placement-${l}`,{[`${p}-rtl`]:"rtl"===d,[`${p}-color-${i}`]:b},t),x={},C={};return i&&!b&&(x.background=i,C.color=i),g(o.createElement("div",{className:f(h,c,m,v)},a,o.createElement("div",{className:f(y,m),style:Object.assign(Object.assign({},x),r)},o.createElement("span",{className:`${p}-text`},s),o.createElement("div",{className:`${p}-corner`,style:C}))))};"production"!==process.env.NODE_ENV&&(Xm.displayName="Ribbon");const qm=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),o.createElement("span",{style:a,className:f(`${t}-only-unit`,{current:r})},n)};function Gm(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const Km=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[s,l]=o.useState(i),[c,u]=o.useState(a),d=()=>{l(i),u(a)};let p,f;if(o.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),s===i||Number.isNaN(i)||Number.isNaN(s))p=[o.createElement(qm,Object.assign({},e,{key:i,current:!0}))],f={transition:"none"};else{p=[];const t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);const r=n.findIndex((e=>e%10===s));p=n.map(((t,n)=>{const i=t%10;return o.createElement(qm,Object.assign({},e,{key:t,value:i,offset:n-r,current:n===r}))}));f={transform:`translateY(${-Gm(s,i,c<a?1:-1)}00%)`}}return o.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:d},p)};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 Zm=o.forwardRef(((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:a,style:s,title:l,show:c,component:u="sup",children:d}=e,p=Ym(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=o.useContext(Hr),g=h("scroll-number",n),m=Object.assign(Object.assign({},p),{"data-show":c,style:s,className:f(g,i,a),title:l});let v=r;if(r&&Number(r)%1==0){const e=String(r).split("");v=o.createElement("bdi",null,e.map(((t,n)=>o.createElement(Km,{prefixCls:g,count:Number(r),value:t,key:e.length-n}))))}return(null==s?void 0:s.borderColor)&&(m.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?_s(d,(e=>({className:f(`${g}-custom-component`,null==e?void 0:e.className,a)}))):o.createElement(u,Object.assign({},m,{ref:t}),v)}));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=o.forwardRef(((t,n)=>{var r,i,a,s,l;const{prefixCls:c,scrollNumberPrefixCls:u,children:d,status:p,text:h,color:g,count:m=null,overflowCount:v=99,dot:b=!1,size:y="default",title:x,offset:C,style:w,className:E,rootClassName:S,classNames:k,styles:O,showZero:$=!1}=t,M=Qm(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:_,direction:P,badge:N}=o.useContext(Hr),I=_("badge",c),[L,R,j]=Wm(I),T=m>v?`${v}+`:m,D="0"===T||0===T,A=(null!=p||null!=g)&&(null===m||D&&!$),z=b&&!D,B=z?"":T,H=e.useMemo((()=>(null==B||""===B||D&&!$)&&!z),[B,D,$,z]),F=e.useRef(m);H||(F.current=m);const V=F.current,W=e.useRef(B);H||(W.current=B);const U=W.current,X=e.useRef(z);H||(X.current=z);const q=e.useMemo((()=>{if(!C)return Object.assign(Object.assign({},null==N?void 0:N.style),w);const e={marginTop:C[1]};return"rtl"===P?e.left=parseInt(C[0],10):e.right=-parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},e),null==N?void 0:N.style),w)}),[P,C,w,null==N?void 0:N.style]),G=null!=x?x:"string"==typeof V||"number"==typeof V?V:void 0,K=H||!h?null:o.createElement("span",{className:`${I}-status-text`},h),Y=V&&"object"==typeof V?_s(V,(e=>({style:Object.assign(Object.assign({},q),e.style)}))):void 0,Z=Cm(g,!1),Q=f(null==k?void 0:k.indicator,null===(r=null==N?void 0:N.classNames)||void 0===r?void 0:r.indicator,{[`${I}-status-dot`]:A,[`${I}-status-${p}`]:!!p,[`${I}-color-${g}`]:Z}),J={};g&&!Z&&(J.color=g,J.background=g);const ee=f(I,{[`${I}-status`]:A,[`${I}-not-a-wrapper`]:!d,[`${I}-rtl`]:"rtl"===P},E,S,null==N?void 0:N.className,null===(i=null==N?void 0:N.classNames)||void 0===i?void 0:i.root,null==k?void 0:k.root,R,j);if(!d&&A){const e=q.color;return L(o.createElement("span",Object.assign({},M,{className:ee,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(a=null==N?void 0:N.styles)||void 0===a?void 0:a.root),q)}),o.createElement("span",{className:Q,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(s=null==N?void 0:N.styles)||void 0===s?void 0:s.indicator),J)}),h&&o.createElement("span",{style:{color:e},className:`${I}-status-text`},h)))}return L(o.createElement("span",Object.assign({ref:n},M,{className:ee,style:Object.assign(Object.assign({},null===(l=null==N?void 0:N.styles)||void 0===l?void 0:l.root),null==O?void 0:O.root)}),d,o.createElement(wa,{visible:!H,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t}=e;var n,r;const i=_("scroll-number",u),a=X.current,s=f(null==k?void 0:k.indicator,null===(n=null==N?void 0:N.classNames)||void 0===n?void 0:n.indicator,{[`${I}-dot`]:a,[`${I}-count`]:!a,[`${I}-count-sm`]:"small"===y,[`${I}-multiple-words`]:!a&&U&&U.toString().length>1,[`${I}-status-${p}`]:!!p,[`${I}-color-${g}`]:Z});let l=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(r=null==N?void 0:N.styles)||void 0===r?void 0:r.indicator),q);return g&&!Z&&(l=l||{},l.background=g),o.createElement(Zm,{prefixCls:i,show:!H,motionClassName:t,className:s,count:U,title:G,style:l,key:"scrollNumber"},Y)})),K))})),ev=Jm;ev.Ribbon=Xm,"production"!==process.env.NODE_ENV&&(ev.displayName="Badge");var tv={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"},nv=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:tv}))},ov=o.forwardRef(nv);"production"!==process.env.NODE_ENV&&(ov.displayName="RightOutlined");var rv=Ns.ESC,iv=Ns.TAB;var av=e.forwardRef((function(t,n){var o=t.overlay,r=t.arrow,i=t.prefixCls,a=e.useMemo((function(){return"function"==typeof o?o():o}),[o]),s=z(n,null==a?void 0:a.ref);return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"".concat(i,"-arrow")}),e.cloneElement(a,{ref:H(a)?s:void 0}))})),sv={adjustX:1,adjustY:1},lv=[0,0],cv={topLeft:{points:["bl","tl"],overflow:sv,offset:[0,-4],targetOffset:lv},top:{points:["bc","tc"],overflow:sv,offset:[0,-4],targetOffset:lv},topRight:{points:["br","tr"],overflow:sv,offset:[0,-4],targetOffset:lv},bottomLeft:{points:["tl","bl"],overflow:sv,offset:[0,4],targetOffset:lv},bottom:{points:["tc","bc"],overflow:sv,offset:[0,4],targetOffset:lv},bottomRight:{points:["tr","br"],overflow:sv,offset:[0,4],targetOffset:lv}},uv=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function dv(t,n){var r,i=t.arrow,a=void 0!==i&&i,s=t.prefixCls,l=void 0===s?"rc-dropdown":s,c=t.transitionName,u=t.animation,d=t.align,p=t.placement,g=void 0===p?"bottomLeft":p,m=t.placements,v=void 0===m?cv:m,b=t.getPopupContainer,y=t.showAction,x=t.hideAction,C=t.overlayClassName,w=t.overlayStyle,E=t.visible,S=t.trigger,k=void 0===S?["hover"]:S,O=t.autoFocus,$=t.overlay,M=t.children,_=t.onVisibleChange,P=nt(t,uv),N=He(e.useState(),2),L=N[0],R=N[1],j="visible"in t?E:L,T=e.useRef(null),D=e.useRef(null),A=e.useRef(null);e.useImperativeHandle(n,(function(){return T.current}));var B=function(e){R(e),null==_||_(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,s=o.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},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 rv:l();break;case iv:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};o.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&Ae(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[t])}({visible:j,triggerRef:A,onVisibleChange:B,autoFocus:O,overlayRef:D});var F,V,W,U=function(){return e.createElement(av,{ref:D,overlay:$,prefixCls:l,arrow:a})},X=e.cloneElement(M,{className:f(null===(r=M.props)||void 0===r?void 0:r.className,j&&(F=t.openClassName,void 0!==F?F:"".concat(l,"-open"))),ref:H(M)?z(A,M.ref):void 0}),q=x;return q||-1===k.indexOf("contextMenu")||(q=["click"]),e.createElement(Yf,h({builtinPlacements:v},P,{prefixCls:l,ref:T,popupClassName:f(C,I({},"".concat(l,"-show-arrow"),a)),popupStyle:w,action:k,showAction:y,hideAction:q,popupPlacement:g,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:j,stretch:(V=t.minOverlayWidthMatchTrigger,W=t.alignPoint,("minOverlayWidthMatchTrigger"in t?V:!W)?"minWidth":""),popup:"function"==typeof $?U:U(),onPopupVisibleChange:B,onPopupClick:function(e){var n=t.onOverlayClick;R(!1),n&&n(e)},getPopupContainer:b}),X)}var pv=e.forwardRef(dv),fv=o.createContext(null);function hv(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function gv(e){return hv(o.useContext(fv),e)}var mv=["children","locked"],vv=o.createContext(null);function bv(e){var t=e.children,n=e.locked,r=nt(e,mv),i=o.useContext(vv),a=D((function(){return function(e,t){var n=R({},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!(n||e[0]===t[0]&&ot(e[1],t[1],!0))}));return o.createElement(vv.Provider,{value:a},t)}var yv=[],xv=o.createContext(null);function Cv(){return o.useContext(xv)}var wv=o.createContext(yv);function Ev(e){var t=o.useContext(wv);return o.useMemo((function(){return void 0!==e?[].concat(Ie(t),[e]):t}),[t,e])}var Sv=o.createContext(null),kv=o.createContext({});function Ov(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ll(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 $v=Ns.LEFT,Mv=Ns.RIGHT,_v=Ns.UP,Pv=Ns.DOWN,Nv=Ns.ENTER,Iv=Ns.ESC,Lv=Ns.HOME,Rv=Ns.END,jv=[_v,Pv,$v,Mv];function Tv(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ie(e.querySelectorAll("*")).filter((function(e){return Ov(e,t)}));return Ov(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function Dv(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=Tv(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 Av=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(hv(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function zv(e,t,n,r,i,a,s,l,c,u){var d=o.useRef(),p=o.useRef();p.current=t;var f=function(){Ae.cancel(d.current)};return o.useEffect((function(){return function(){f()}}),[]),function(o){var h=o.which;if([].concat(jv,[Nv,Iv,Lv,Rv]).includes(h)){var g=a(),m=Av(g,r),v=m,b=v.elements,y=v.key2element,x=v.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),w=x.get(C),E=function(e,t,n,o){var r,i,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&o===Nv)return{inlineTrigger:!0};var p=(I(r={},_v,l),I(r,Pv,c),r),f=(I(i={},$v,n?c:l),I(i,Mv,n?l:c),I(i,Pv,u),I(i,Nv,u),i),h=(I(a={},_v,l),I(a,Pv,c),I(a,Nv,u),I(a,Iv,d),I(a,$v,n?u:d),I(a,Mv,n?d:u),a);switch(null===(s={inline:p,horizontal:f,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h}["".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}}(e,1===s(w,!0).length,n,h);if(!E&&h!==Lv&&h!==Rv)return;(jv.includes(h)||[Lv,Rv].includes(h))&&o.preventDefault();var S=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),f(),d.current=Ae((function(){p.current===o&&t.focus()}))}};if([Lv,Rv].includes(h)||E.sibling||!C){var k,O,$=Tv(k=C&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,b);O=h===Lv?$[0]:h===Rv?$[$.length-1]:Dv(k,b,C,E.offset),S(O)}else if(E.inlineTrigger)c(w);else if(E.offset>0)c(w,!0),f(),d.current=Ae((function(){m=Av(g,r);var e=C.getAttribute("aria-controls"),t=Dv(document.getElementById(e),m.elements);S(t)}),5);else if(E.offset<0){var M=s(w,!0),_=M[M.length-2],P=y.get(_);c(_,!1),S(P)}}null==u||u(o)}}var Bv="__RC_UTIL_PATH_SPLIT__",Hv=function(e){return e.join(Bv)},Fv="rc-menu-more";function Vv(){var t=He(o.useState({}),2)[1],n=e.useRef(new Map),r=e.useRef(new Map),i=He(o.useState([]),2),a=i[0],s=i[1],l=e.useRef(0),c=e.useRef(!1),u=e.useCallback((function(e,o){"production"!==process.env.NODE_ENV&&M(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(o.join(" > "),"]"));var i=Hv(o);r.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=e.useCallback((function(e,t){var o=Hv(t);r.current.delete(o),n.current.delete(e)}),[]),p=e.useCallback((function(e){s(e)}),[]),f=e.useCallback((function(e,t){var o=n.current.get(e)||"",r=o.split(Bv);return t&&a.includes(r[0])&&r.unshift(Fv),r}),[a]),h=e.useCallback((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),g=e.useCallback((function(e){var t="".concat(n.current.get(e)).concat(Bv),o=new Set;return Ie(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return o.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:p,isSubPathKey:h,getKeyPath:f,getKeys:function(){var e=Ie(n.current.keys());return a.length&&e.push(Fv),e},getSubPathKeys:g}}function Wv(e){var t=o.useRef(e);t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return e?n:void 0}var Uv=Math.random().toFixed(5).toString().slice(2),Xv=0;function qv(e,t,n,r){var i=o.useContext(vv),a=i.activeKey,s=i.onActive,l=i.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),s(e)},c.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),c}function Gv(e){var t=o.useContext(vv),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}function Kv(e){var t,n=e.icon,r=e.props,i=e.children;return null===n||!1===n?null:("function"==typeof n?t=o.createElement(n,R({},r)):"boolean"!=typeof n&&(t=n),t||i||null)}var Yv=["item"];function Zv(e){var t=e.item,n=nt(e,Yv);return Object.defineProperty(n,"item",{get:function(){return M(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Qv=["title","attribute","elementRef"],Jv=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],eb=["active"],tb=function(){be(t,o.Component);var e=we(t);function t(){return he(this,t),e.apply(this,arguments)}return me(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=Me(nt(e,Qv),["eventKey","popupClassName","popupOffset","onTitleClick"]);return M(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(mf.Item,h({},n,{title:"string"==typeof t?t:void 0},i,{ref:r}))}}]),t}(),nb=o.forwardRef((function(e,t){var n,r=e.style,i=e.className,a=e.eventKey,s=e.warnKey,l=e.disabled,c=e.itemIcon,u=e.children,d=e.role,p=e.onMouseEnter,g=e.onMouseLeave,m=e.onClick,v=e.onKeyDown,b=e.onFocus,y=nt(e,Jv),x=gv(a),C=o.useContext(vv),w=C.prefixCls,E=C.onItemClick,S=C.disabled,k=C.overflowDisabled,O=C.itemIcon,$=C.selectedKeys,_=C.onActive,P=o.useContext(kv)._internalRenderMenuItem,N="".concat(w,"-item"),L=o.useRef(),j=o.useRef(),T=S||l,D=B(t,j),A=Ev(a);"production"!==process.env.NODE_ENV&&s&&M(!1,"MenuItem should not leave undefined `key`.");var z=function(e){return{key:a,keyPath:Ie(A).reverse(),item:L.current,domEvent:e}},H=c||O,F=qv(a,T,p,g),V=F.active,W=nt(F,eb),U=$.includes(a),X=Gv(A.length),q={};"option"===e.role&&(q["aria-selected"]=U);var G=o.createElement(tb,h({ref:L,elementRef:D,role:null===d?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":k&&x?null:x},y,W,q,{component:"li","aria-disabled":l,style:R(R({},X),r),className:f(N,(n={},I(n,"".concat(N,"-active"),V),I(n,"".concat(N,"-selected"),U),I(n,"".concat(N,"-disabled"),T),n),i),onClick:function(e){if(!T){var t=z(e);null==m||m(Zv(t)),E(t)}},onKeyDown:function(e){if(null==v||v(e),e.which===Ns.ENTER){var t=z(e);null==m||m(Zv(t)),E(t)}},onFocus:function(e){_(a),null==b||b(e)}}),u,o.createElement(Kv,{props:R(R({},e),{},{isSelected:U}),icon:H}));return P&&(G=P(G,e,{selected:U})),G}));function ob(e,t){var n=e.eventKey,r=Cv(),i=Ev(n);return o.useEffect((function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}}),[i]),r?null:o.createElement(nb,h({},e,{ref:t}))}var rb=o.forwardRef(ob),ib=["className","children"],ab=function(e,t){var n=e.className,r=e.children,i=nt(e,ib),a=o.useContext(vv),s=a.prefixCls,l=a.mode,c=a.rtl;return o.createElement("ul",h({className:f(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),r)},sb=o.forwardRef(ab);function lb(e,t){return C(e).map((function(e,n){if(o.isValidElement(e)){var r,i,a=e.key,s=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a,l=null==s;l&&(s="tmp_key-".concat([].concat(Ie(t),[n]).join("-")));var c={key:s,eventKey:s};return"production"!==process.env.NODE_ENV&&l&&(c.warnKey=!0),o.cloneElement(e,c)}return e}))}sb.displayName="SubMenuList";var cb={adjustX:1,adjustY:1},ub={topLeft:{points:["bl","tl"],overflow:cb},topRight:{points:["br","tr"],overflow:cb},bottomLeft:{points:["tl","bl"],overflow:cb},bottomRight:{points:["tr","br"],overflow:cb},leftTop:{points:["tr","tl"],overflow:cb},leftBottom:{points:["br","bl"],overflow:cb},rightTop:{points:["tl","tr"],overflow:cb},rightBottom:{points:["bl","br"],overflow:cb}},db={topLeft:{points:["bl","tl"],overflow:cb},topRight:{points:["br","tr"],overflow:cb},bottomLeft:{points:["tl","bl"],overflow:cb},bottomRight:{points:["tr","br"],overflow:cb},rightTop:{points:["tr","tl"],overflow:cb},rightBottom:{points:["br","bl"],overflow:cb},leftTop:{points:["tl","tr"],overflow:cb},leftBottom:{points:["bl","br"],overflow:cb}};function pb(e,t,n){return t||(n?n[e]||n.other:void 0)}var fb={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function hb(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,a=e.popupStyle,s=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,p=o.useContext(vv),h=p.getPopupContainer,g=p.rtl,m=p.subMenuOpenDelay,v=p.subMenuCloseDelay,b=p.builtinPlacements,y=p.triggerSubMenuAction,x=p.forceSubMenuRender,C=p.rootClassName,w=p.motion,E=p.defaultMotions,S=He(o.useState(!1),2),k=S[0],O=S[1],$=R(R({},g?db:ub),b),M=fb[u],_=pb(u,w,E),P=o.useRef(_);"inline"!==u&&(P.current=_);var N=R(R({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=o.useRef();return o.useEffect((function(){return L.current=Ae((function(){O(n)})),function(){Ae.cancel(L.current)}}),[n]),o.createElement(Yf,{prefixCls:t,popupClassName:f("".concat(t,"-popup"),I({},"".concat(t,"-rtl"),g),s,C),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:h,builtinPlacements:$,popupPlacement:M,popupVisible:k,popup:i,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[y],mouseEnterDelay:m,mouseLeaveDelay:v,onPopupVisibleChange:d,forceRender:x,popupMotion:N,fresh:!0},r)}function gb(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",s=o.useContext(vv),l=s.prefixCls,c=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,p=s.mode,f=o.useRef(!1);f.current=p===a;var g=He(o.useState(!f.current),2),m=g[0],v=g[1],b=!!f.current&&n;o.useEffect((function(){f.current&&v(!1)}),[p]);var y=R({},pb(a,u,d));r.length>1&&(y.motionAppear=!1);var x=y.onVisibleChanged;return y.onVisibleChanged=function(e){return f.current||e||v(!0),null==x?void 0:x(e)},m?null:o.createElement(bv,{mode:a,locked:!f.current},o.createElement(wa,h({visible:b},y,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return o.createElement(sb,{id:t,className:n,style:r},i)})))}var mb=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],vb=["active"],bb=o.forwardRef((function(e,t){var n,r=e.style,i=e.className,a=e.title,s=e.eventKey,l=e.warnKey,c=e.disabled,u=e.internalPopupClose,d=e.children,p=e.itemIcon,g=e.expandIcon,m=e.popupClassName,v=e.popupOffset,b=e.popupStyle,y=e.onClick,x=e.onMouseEnter,C=e.onMouseLeave,w=e.onTitleClick,E=e.onTitleMouseEnter,S=e.onTitleMouseLeave,k=nt(e,mb),O=gv(s),$=o.useContext(vv),_=$.prefixCls,P=$.mode,N=$.openKeys,L=$.disabled,j=$.overflowDisabled,T=$.activeKey,D=$.selectedKeys,A=$.itemIcon,z=$.expandIcon,B=$.onItemClick,H=$.onOpenChange,F=$.onActive,V=o.useContext(kv)._internalRenderSubMenuItem,W=o.useContext(Sv).isSubPathKey,U=Ev(),X="".concat(_,"-submenu"),q=L||c,G=o.useRef(),K=o.useRef();"production"!==process.env.NODE_ENV&&l&&M(!1,"SubMenu should not leave undefined `key`.");var Y=null!=p?p:A,Z=null!=g?g:z,Q=N.includes(s),J=!j&&Q,ee=W(D,s),te=qv(s,q,E,S),ne=te.active,oe=nt(te,vb),re=He(o.useState(!1),2),ie=re[0],ae=re[1],se=function(e){q||ae(e)},le=o.useMemo((function(){return ne||"inline"!==P&&(ie||W([T],s))}),[P,ne,T,ie,s,W]),ce=Gv(U.length),ue=Wv((function(e){null==y||y(Zv(e)),B(e)})),de=O&&"".concat(O,"-popup"),pe=o.createElement("div",h({role:"menuitem",style:ce,className:"".concat(X,"-title"),tabIndex:q?null:-1,ref:G,title:"string"==typeof a?a:null,"data-menu-id":j&&O?null:O,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":q,onClick:function(e){q||(null==w||w({key:s,domEvent:e}),"inline"===P&&H(s,!Q))},onFocus:function(){F(s)}},oe),a,o.createElement(Kv,{icon:"horizontal"!==P?Z:void 0,props:R(R({},e),{},{isOpen:J,isSubMenu:!0})},o.createElement("i",{className:"".concat(X,"-arrow")}))),fe=o.useRef(P);if("inline"!==P&&U.length>1?fe.current="vertical":fe.current=P,!j){var he=fe.current;pe=o.createElement(hb,{mode:he,prefixCls:X,visible:!u&&J&&"inline"!==P,popupClassName:m,popupOffset:v,popupStyle:b,popup:o.createElement(bv,{mode:"horizontal"===he?"vertical":he},o.createElement(sb,{id:de,ref:K},d)),disabled:q,onVisibleChange:function(e){"inline"!==P&&H(s,e)}},pe)}var ge=o.createElement(mf.Item,h({ref:t,role:"none"},k,{component:"li",style:r,className:f(X,"".concat(X,"-").concat(P),i,(n={},I(n,"".concat(X,"-open"),J),I(n,"".concat(X,"-active"),le),I(n,"".concat(X,"-selected"),ee),I(n,"".concat(X,"-disabled"),q),n)),onMouseEnter:function(e){se(!0),null==x||x({key:s,domEvent:e})},onMouseLeave:function(e){se(!1),null==C||C({key:s,domEvent:e})}}),pe,!j&&o.createElement(gb,{id:de,open:J,keyPath:U},d));return V&&(ge=V(ge,e,{selected:ee,active:le,open:J,disabled:q})),o.createElement(bv,{onItemClick:ue,mode:"horizontal"===P?"vertical":P,itemIcon:Y,expandIcon:Z},ge)})),yb=o.forwardRef((function(e,t){var n,r=e.eventKey,i=e.children,a=Ev(r),s=lb(i,a),l=Cv();return o.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),n=l?s:o.createElement(bb,h({ref:t},e),s),o.createElement(wv.Provider,{value:a},n)}));function xb(e){var t=e.className,n=e.style,r=o.useContext(vv).prefixCls;return Cv()?null:o.createElement("li",{role:"separator",className:f("".concat(r,"-item-divider"),t),style:n})}"production"!==process.env.NODE_ENV&&(yb.displayName="SubMenu");var Cb=["className","title","eventKey","children"],wb=o.forwardRef((function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=nt(e,Cb),s=o.useContext(vv).prefixCls,l="".concat(s,"-item-group");return o.createElement("li",h({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:f(l,n)}),o.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),o.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))})),Eb=o.forwardRef((function(e,t){var n=e.eventKey,r=lb(e.children,Ev(n));return Cv()?r:o.createElement(wb,h({ref:t},Me(e,["warnKey"])),r)}));"production"!==process.env.NODE_ENV&&(Eb.displayName="MenuItemGroup");var Sb=["label","children","key","type"];function kb(e,t){var n=t.item,r=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===P(e)){var l=e,c=l.label,u=l.children,d=l.key,p=l.type,f=nt(l,Sb),g=null!=d?d:"tmp-".concat(s);return u||"group"===p?"group"===p?o.createElement(r,h({key:g},f,{title:c}),kb(u,t)):o.createElement(i,h({key:g},f,{title:c}),kb(u,t)):"divider"===p?o.createElement(a,h({key:g},f)):o.createElement(n,h({key:g},f),c)}return null})).filter((function(e){return e}))}function Ob(e,t,n,o){var r=e,i=R({divider:xb,item:rb,group:Eb,submenu:yb},o);return t&&(r=kb(t,i)),lb(r,n)}var $b=["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"],Mb=[],_b=o.forwardRef((function(n,r){var i,a,s=n,l=s.prefixCls,c=void 0===l?"rc-menu":l,u=s.rootClassName,d=s.style,p=s.className,g=s.tabIndex,m=void 0===g?0:g,v=s.items,b=s.children,y=s.direction,x=s.id,C=s.mode,w=void 0===C?"vertical":C,E=s.inlineCollapsed,S=s.disabled,k=s.disabledOverflow,O=s.subMenuOpenDelay,$=void 0===O?.1:O,_=s.subMenuCloseDelay,P=void 0===_?.1:_,N=s.forceSubMenuRender,L=s.defaultOpenKeys,j=s.openKeys,T=s.activeKey,D=s.defaultActiveFirst,A=s.selectable,z=void 0===A||A,B=s.multiple,H=void 0!==B&&B,F=s.defaultSelectedKeys,V=s.selectedKeys,W=s.onSelect,U=s.onDeselect,X=s.inlineIndent,q=void 0===X?24:X,G=s.motion,K=s.defaultMotions,Y=s.triggerSubMenuAction,Z=void 0===Y?"hover":Y,Q=s.builtinPlacements,J=s.itemIcon,ee=s.expandIcon,te=s.overflowedIndicator,ne=void 0===te?"...":te,oe=s.overflowedIndicatorPopupClassName,re=s.getPopupContainer,ie=s.onClick,ae=s.onOpenChange,se=s.onKeyDown,le=s.openAnimation,ce=s.openTransitionName,ue=s._internalRenderMenuItem,de=s._internalRenderSubMenuItem,pe=s._internalComponents,fe=nt(s,$b),he=He(o.useMemo((function(){return[Ob(b,v,Mb,pe),Ob(b,v,Mb,{})]}),[b,v,pe]),2),ge=he[0],me=he[1],ve=He(o.useState(!1),2),be=ve[0],ye=ve[1],xe=o.useRef(),Ce=function(e){var t=He(ri(e,{value:e}),2),n=t[0],r=t[1];return o.useEffect((function(){Xv+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(Uv,"-").concat(Xv);r("rc-menu-uuid-".concat(e))}),[]),n}(x),we="rtl"===y;"production"!==process.env.NODE_ENV&&M(!le&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ee=ri(L,{value:j,postState:function(e){return e||Mb}}),Se=He(Ee,2),ke=Se[0],Oe=Se[1],$e=function(e){function n(){Oe(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.flushSync(n):n()},Me=He(o.useState(ke),2),_e=Me[0],Pe=Me[1],Ne=o.useRef(!1),Le=He(o.useMemo((function(){return"inline"!==w&&"vertical"!==w||!E?[w,!1]:["vertical",E]}),[w,E]),2),Re=Le[0],je=Le[1],Te="inline"===Re,De=He(o.useState(Re),2),Ae=De[0],ze=De[1],Be=He(o.useState(je),2),Fe=Be[0],Ve=Be[1];o.useEffect((function(){ze(Re),Ve(je),Ne.current&&(Te?Oe(_e):$e(Mb))}),[Re,je]);var We=He(o.useState(0),2),Ue=We[0],Xe=We[1],qe=Ue>=ge.length-1||"horizontal"!==Ae||k;o.useEffect((function(){Te&&Pe(ke)}),[ke]),o.useEffect((function(){return Ne.current=!0,function(){Ne.current=!1}}),[]);var Ge=Vv(),Ke=Ge.registerPath,Ye=Ge.unregisterPath,Ze=Ge.refreshOverflowKeys,Qe=Ge.isSubPathKey,Je=Ge.getKeyPath,et=Ge.getKeys,tt=Ge.getSubPathKeys,rt=o.useMemo((function(){return{registerPath:Ke,unregisterPath:Ye}}),[Ke,Ye]),it=o.useMemo((function(){return{isSubPathKey:Qe}}),[Qe]);o.useEffect((function(){Ze(qe?Mb:ge.slice(Ue+1).map((function(e){return e.key})))}),[Ue,qe]);var at=He(ri(T||D&&(null===(i=ge[0])||void 0===i?void 0:i.key),{value:T}),2),st=at[0],lt=at[1],ct=Wv((function(e){lt(e)})),ut=Wv((function(){lt(void 0)}));e.useImperativeHandle(r,(function(){return{list:xe.current,focus:function(e){var t,n,o=et(),r=Av(o,Ce),i=r.elements,a=r.key2element,s=r.element2key,l=Tv(xe.current,i),c=null!=st?st: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 dt=ri(F||[],{value:V,postState:function(e){return Array.isArray(e)?e:null==e?Mb:[e]}}),pt=He(dt,2),ft=pt[0],ht=pt[1],gt=Wv((function(e){null==ie||ie(Zv(e)),function(e){if(z){var t,n=e.key,o=ft.includes(n);t=H?o?ft.filter((function(e){return e!==n})):[].concat(Ie(ft),[n]):[n],ht(t);var r=R(R({},e),{},{selectedKeys:t});o?null==U||U(r):null==W||W(r)}!H&&ke.length&&"inline"!==Ae&&$e(Mb)}(e)})),mt=Wv((function(e,t){var n=ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ae){var o=tt(e);n=n.filter((function(e){return!o.has(e)}))}ot(ke,n,!0)||$e(n,!0)})),vt=zv(Ae,st,we,Ce,xe,et,Je,lt,(function(e,t){var n=null!=t?t:!ke.includes(e);mt(e,n)}),se);o.useEffect((function(){ye(!0)}),[]);var bt=o.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),yt="horizontal"!==Ae||k?ge:ge.map((function(e,t){return o.createElement(bv,{key:e.key,overflowDisabled:t>Ue},e)})),xt=o.createElement(mf,h({id:x,ref:xe,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:rb,className:f(c,"".concat(c,"-root"),"".concat(c,"-").concat(Ae),p,(a={},I(a,"".concat(c,"-inline-collapsed"),Fe),I(a,"".concat(c,"-rtl"),we),a),u),dir:y,style:d,role:"menu",tabIndex:m,data:yt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ge.slice(-t):null;return o.createElement(yb,{eventKey:Fv,title:ne,disabled:qe,internalPopupClose:0===t,popupClassName:oe},n)},maxCount:"horizontal"!==Ae||k?mf.INVALIDATE:mf.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Xe(e)},onKeyDown:vt},fe));return o.createElement(kv.Provider,{value:bt},o.createElement(fv.Provider,{value:Ce},o.createElement(bv,{prefixCls:c,rootClassName:u,mode:Ae,openKeys:ke,rtl:we,disabled:S,motion:be?G:null,defaultMotions:be?K:null,activeKey:st,onActive:ct,onInactive:ut,selectedKeys:ft,inlineIndent:q,subMenuOpenDelay:$,subMenuCloseDelay:P,forceSubMenuRender:N,builtinPlacements:Q,triggerSubMenuAction:Z,getPopupContainer:re,itemIcon:J,expandIcon:ee,onItemClick:gt,onOpenChange:mt},o.createElement(Sv.Provider,{value:it},xt),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(xv.Provider,{value:rt},me)))))})),Pb=_b;Pb.Item=rb,Pb.SubMenu=yb,Pb.ItemGroup=Eb,Pb.Divider=xb;var Nb={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"},Ib=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Nb}))},Lb=o.forwardRef(Ib);"production"!==process.env.NODE_ENV&&(Lb.displayName="BarsOutlined");var Rb={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"},jb=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Rb}))},Tb=o.forwardRef(jb);"production"!==process.env.NODE_ENV&&(Tb.displayName="LeftOutlined");const Db=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Ab=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 zb={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Bb=o.createContext({}),Hb=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Fb=o.forwardRef(((t,n)=>{const{prefixCls:r,className:i,trigger:a,children:s,defaultCollapsed:l=!1,theme:c="dark",style:u={},collapsible:d=!1,reverseArrow:p=!1,width:h=200,collapsedWidth:g=80,zeroWidthTriggerStyle:m,breakpoint:v,onCollapse:b,onBreakpoint:y}=t,x=Ab(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=e.useContext(Db),[w,E]=e.useState("collapsed"in t?t.collapsed:l),[S,k]=e.useState(!1);e.useEffect((()=>{"collapsed"in t&&E(t.collapsed)}),[t.collapsed]);const O=(e,n)=>{"collapsed"in t||E(e),null==b||b(e,n)},$=e.useRef();$.current=e=>{k(e.matches),null==y||y(e.matches),w!==e.matches&&O(e.matches,"responsive")},e.useEffect((()=>{function e(e){return $.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&v&&v in zb){t=n(`screen and (max-width: ${zb[v]})`);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)}}}),[v]),e.useEffect((()=>{const e=Hb("ant-sider-");return C.addSider(e),()=>C.removeSider(e)}),[]);const M=()=>{O(!w,"clickTrigger")},{getPrefixCls:_}=e.useContext(Hr),P=o.useMemo((()=>({siderCollapsed:w})),[w]);return o.createElement(Bb.Provider,{value:P},(()=>{const e=_("layout-sider",r),t=Me(x,["collapsed"]),l=w?g:h,v=(b=l,!isNaN(parseFloat(b))&&isFinite(b)?`${l}px`:String(l));var b;const y=0===parseFloat(String(g||0))?o.createElement("span",{onClick:M,className:f(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${p?"right":"left"}`),style:m},a||o.createElement(Lb,null)):null,C={expanded:p?o.createElement(ov,null):o.createElement(Tb,null),collapsed:p?o.createElement(Tb,null):o.createElement(ov,null)}[w?"collapsed":"expanded"],E=null!==a?y||o.createElement("div",{className:`${e}-trigger`,onClick:M,style:{width:v}},a||C):null,k=Object.assign(Object.assign({},u),{flex:`0 0 ${v}`,maxWidth:v,minWidth:v,width:v}),O=f(e,`${e}-${c}`,{[`${e}-collapsed`]:!!w,[`${e}-has-trigger`]:d&&null!==a&&!y,[`${e}-below`]:!!S,[`${e}-zero-width`]:0===parseFloat(v)},i);return o.createElement("aside",Object.assign({className:O},t,{style:k,ref:n}),o.createElement("div",{className:`${e}-children`},s),d||S&&y?E:null)})())}));"production"!==process.env.NODE_ENV&&(Fb.displayName="Sider");var Vb={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"},Wb=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Vb}))},Ub=o.forwardRef(Wb);"production"!==process.env.NODE_ENV&&(Ub.displayName="EllipsisOutlined");const Xb=e.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var qb=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 Gb=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=qb(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=o.useContext(Hr),s=a("menu",t),l=f({[`${s}-item-divider-dashed`]:!!r},n);return o.createElement(xb,Object.assign({className:l},i))},Kb=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:p}=o.useContext(Xb),{siderCollapsed:h}=o.useContext(Bb);let g=a;void 0===a?g=c?r:"":!1===a&&(g="");const m={title:g};h||p||(m.title=null,m.open=!1);const v=C(r).length;let b=o.createElement(rb,Object.assign({},Me(e,["title","icon","danger"]),{className:f({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(i?v+1:v)},n),title:"string"==typeof a?a:void 0}),_s(i,{className:f(o.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=o.createElement("span",{className:`${l}-title-content`},r);return(!i||o.isValidElement(r)&&"span"===r.type)&&r&&e&&c&&"string"==typeof r?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):t})(p));return d||(b=o.createElement(km,Object.assign({},m,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),b)),b},Yb=o.createContext(null),Zb=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:`${Et(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"}}}},Qb=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(${Et(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Et(n)})`}}}}},Jb=e=>Object.assign({},Ni(e)),ey=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:C,dangerItemHoverColor:w,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:k,popupBg:O,itemHoverBg:$,itemActiveBg:M,menuSubMenuBg:_,horizontalItemSelectedColor:P,horizontalItemSelectedBg:N,horizontalItemBorderRadius:I,horizontalItemHoverBg:L}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Jb(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({},Jb(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:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${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:`${Et(c)} solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:L,"&::after":{borderBottomWidth:c,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:c,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Et(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Et(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(",")}}}}}},ty=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:Et(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Et(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},ny=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:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,v={height:o,lineHeight:Et(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},ty(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},ty(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Et(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`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% - ${Et(e.calc(d).div(2).equal())} - ${Et(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:Et(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({},Mi),{paddingInline:f})}}]},oy=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"}}}},ry=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(${Et(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Et(a)})`}}}}},iy=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:p,subMenuItemBorderRadius:f,menuArrowSize:h,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({},_i(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:`${Et(s)} ${Et(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"}}}),oy(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Et(e.calc(o).mul(2).equal())} ${Et(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},oy(e)),ry(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${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}}}),ry(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Et(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Et(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Et(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Et(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Et(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},ay=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:h,controlItemBgActive:g,colorBgTextHover:m,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:C,fontSize:w,controlHeightSM:E,fontSizeLG:S,colorTextLightSolid:k,colorErrorHover:O}=e,$=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,M=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,_=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,P=new Yo(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:p,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:f,activeBarBorderWidth:M,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:_,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:C,horizontalLineHeight:1.15*v+"px",iconSize:w,iconMarginInlineEnd:E-w,collapsedIconSize:S,groupTitleFontSize:w,darkItemDisabledColor:new Yo(k).setAlpha(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:k,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:$?`calc(100% + ${M}px)`:`calc(100% - ${2*_}px)`}};const sy=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,s=o.useContext(Xb),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=Ev();let p;if(r){const e=o.isValidElement(i)&&"span"===i.type;p=o.createElement(o.Fragment,null,_s(r,{className:f(o.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?i:o.createElement("span",{className:`${l}-title-content`},i))}else p=c&&!d.length&&i&&"string"==typeof i?o.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):o.createElement("span",{className:`${l}-title-content`},i);const h=o.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[g]=zs("Menu");return o.createElement(Xb.Provider,{value:h},o.createElement(yb,Object.assign({},Me(e,["icon"]),{title:p,popupClassName:f(l,n,`${l}-${a||u}`),popupStyle:{zIndex:g}})))};var ly=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 cy(e){return null===e||!1===e}const uy={item:Kb,submenu:sy,divider:Gb},dy=e.forwardRef(((e,t)=>{var n;const r=o.useContext(Yb),i=r||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=o.useContext(Hr),u=a(),{prefixCls:d,className:p,style:h,theme:g="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:b,siderCollapsed:y,rootClassName:x,mode:C,selectable:w,onClick:E,overflowedIndicatorPopupClassName:S}=e,k=Me(ly(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=go("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==C),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&t(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),t.deprecated("items"in e&&!e.children,"children","items")}null===(n=i.validator)||void 0===n||n.call(i,{mode:C});const O=ti((function(){var e;null==E||E.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),$=i.mode||C,M=null!=w?w:i.selectable,_=o.useMemo((()=>void 0!==y?y:b),[b,y]),P={horizontal:{motionName:`${u}-slide-up`},inline:al(u),other:{motionName:`${u}-zoom-big`}},N=a("menu",d||i.prefixCls),I=Ps(N),[L,R,j]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Ri("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:p,darkItemHoverColor:f,darkItemDisabledColor:h,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:m,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(o).div(7).mul(5).equal(),C=li(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}),w=li(C,{itemColor:r,itemHoverColor:f,groupTitleColor:p,itemSelectedColor:l,itemBg:a,popupBg:y,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:m,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[iy(C),Zb(C),ny(C),ey(C,"light"),ey(w,"dark"),Qb(C),Td(C),ap(C,"slide-up"),ap(C,"slide-down"),hp(C,"zoom-big")]}),ay,{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)}(N,I,!r),T=f(`${N}-${g}`,null==c?void 0:c.className,p),D=o.useMemo((()=>{var e,t;if("function"==typeof m||cy(m))return m||null;if("function"==typeof i.expandIcon||cy(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||cy(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const n=null!==(e=null!=m?m:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==c?void 0:c.expandIcon;return _s(n,{className:f(`${N}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[m,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,N]),A=o.useMemo((()=>({prefixCls:N,inlineCollapsed:_||!1,direction:l,firstLevel:!0,theme:g,mode:$,disableMenuItemTitleTooltip:v})),[N,_,l,v,g]);return L(o.createElement(Yb.Provider,{value:null},o.createElement(Xb.Provider,{value:A},o.createElement(Pb,Object.assign({getPopupContainer:s,overflowedIndicator:o.createElement(Ub,null),overflowedIndicatorPopupClassName:f(N,`${N}-${g}`,S),mode:$,selectable:M,onClick:O},k,{inlineCollapsed:_,style:Object.assign(Object.assign({},null==c?void 0:c.style),h),className:T,prefixCls:N,direction:l,defaultMotions:P,expandIcon:D,ref:t,rootClassName:f(x,R,i.rootClassName,j,I),_internalComponents:uy})))))})),py=e.forwardRef(((t,n)=>{const r=e.useRef(null),i=o.useContext(Bb);return e.useImperativeHandle(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),o.createElement(dy,Object.assign({ref:r},t,i))}));py.Item=Kb,py.SubMenu=sy,py.Divider=Gb,py.ItemGroup=Eb,"production"!==process.env.NODE_ENV&&(py.displayName="Menu");var fy=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],hy=e.forwardRef((function(t,n){var r=t.prefixCls,i=void 0===r?"rc-checkbox":r,a=t.className,s=t.style,l=t.checked,c=t.disabled,u=t.defaultChecked,d=void 0!==u&&u,p=t.type,g=void 0===p?"checkbox":p,m=t.title,v=t.onChange,b=nt(t,fy),y=e.useRef(null),x=e.useRef(null),C=He(ri(d,{value:l}),2),w=C[0],E=C[1];e.useImperativeHandle(n,(function(){return{focus:function(e){var t;null===(t=y.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=y.current)||void 0===e||e.blur()},input:y.current,nativeElement:x.current}}));var S=f(i,a,I(I({},"".concat(i,"-checked"),w),"".concat(i,"-disabled"),c));return o.createElement("span",{className:S,title:m,style:s,ref:x},o.createElement("input",h({},b,{className:"".concat(i,"-input"),ref:y,onChange:function(e){c||("checked"in t||E(e.target.checked),null==v||v({target:R(R({},t),{},{type:g,checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},disabled:c,checked:!!w,type:g})),o.createElement("span",{className:"".concat(i,"-inner")}))}));function gy(e){return li(e,{inputAffixPadding:e.paddingXXS})}const my=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:p,colorPrimaryHover:f,colorPrimary:h,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:p,activeBorderColor:h,hoverBorderColor:f,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}},vy=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),by=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({},vy(li(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),yy=(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}}),xy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},yy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Cy=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yy(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},by(e))}),xy(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),xy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),wy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ey=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},wy(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),wy(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},by(e))}})}),Sy=(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)}},ky=(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}}),Oy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ky(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),$y=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ky(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},by(e))}),Oy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Oy(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),My=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),_y=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:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Et(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},My(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),My(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:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Py=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Et(t)} ${Et(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},Ny=e=>({padding:`${Et(e.paddingBlockSM)} ${Et(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Iy=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Et(e.paddingBlock)} ${Et(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({},Py(e)),"&-sm":Object.assign({},Ny(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Ly=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({},Py(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Ny(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 ${Et(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Et(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Et(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:`${Et(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Et(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}}}})}},Ry=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({},_i(e)),Iy(e)),Cy(e)),$y(e)),Sy(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"}})}},jy=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 ${Et(e.inputAffixPadding)}`}}}},Ty=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({},Iy(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}}}),jy(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}})}},Dy=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},_i(e)),Ly(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}}},Ey(e)),_y(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}}})})}},Ay=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}}}}},zy=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}}}}}},By=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var Hy=Ri("Input",(e=>{const t=li(e,gy(e));return[Ry(t),zy(t),Ty(t),Dy(t),Ay(t),By(t),lc(t)]}),my,{resetFont:!1}),Fy={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"},Vy=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Fy}))},Wy=o.forwardRef(Vy);"production"!==process.env.NODE_ENV&&(Wy.displayName="PlusOutlined");var Uy=e.createContext(null),Xy={width:0,height:0,left:0,top:0};function qy(e,t){var n=o.useRef(e),r=He(o.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var Gy=Math.pow(.995,20);function Ky(t){var n=He(e.useState(0),2),o=n[0],r=n[1],i=e.useRef(0),a=e.useRef();return a.current=t,Pt((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[o]),function(){i.current===o&&(i.current+=1,r(i.current))}}var Yy={width:0,height:0,left:0,top:0,right:0};function Zy(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Qy(e){return String(e).replace(/"/g,"TABS_DQ")}function Jy(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var ex=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-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})),tx=o.forwardRef((function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==P(a)||o.isValidElement(a)?s.right=a:s=a,"right"===r&&(n=s.right),"left"===r&&(n=s.left),n?o.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));"production"!==process.env.NODE_ENV&&(tx.displayName="ExtraContent");var nx=o.forwardRef((function(t,n){var r=t.prefixCls,i=t.id,a=t.tabs,s=t.locale,l=t.mobile,c=t.more,u=void 0===c?{}:c,d=t.style,p=t.className,g=t.editable,m=t.tabBarGutter,v=t.rtl,b=t.removeAriaLabel,y=t.onTabClick,x=t.getPopupContainer,C=t.popupClassName,w=He(e.useState(!1),2),E=w[0],S=w[1],k=He(e.useState(null),2),O=k[0],$=k[1],M=u.icon,_=void 0===M?"More":M,P="".concat(i,"-more-popup"),N="".concat(r,"-dropdown"),L=null!==O?"".concat(P,"-").concat(O):null,R=null==s?void 0:s.dropdownAriaLabel;var j=o.createElement(Pb,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),S(!1)},prefixCls:"".concat(N,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":L,selectedKeys:[O],"aria-label":void 0!==R?R:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,a=e.key,s=e.label,l=Jy(t,r,g,n);return o.createElement(rb,{key:a,id:"".concat(P,"-").concat(a),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(a),disabled:n},o.createElement("span",null,s),l&&o.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(N,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),g.onEdit("remove",{key:t,event:e})}(e,a)}},r||g.removeIcon||"×"))})));function T(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===O}))||0,o=t.length,r=0;r<o;r+=1){var i=t[n=(n+e+o)%o];if(!i.disabled)return void $(i.key)}}e.useEffect((function(){var e=document.getElementById(L);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[O]),e.useEffect((function(){E||$(null)}),[E]);var D=I({},v?"marginRight":"marginLeft",m);a.length||(D.visibility="hidden",D.order=1);var A=f(I({},"".concat(N,"-rtl"),v)),z=l?null:o.createElement(pv,h({prefixCls:N,overlay:j,visible:!!a.length&&E,onVisibleChange:S,overlayClassName:f(A,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},u),o.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":P,id:"".concat(i,"-more"),"aria-expanded":E,onKeyDown:function(e){var t=e.which;if(E)switch(t){case Ns.UP:T(-1),e.preventDefault();break;case Ns.DOWN:T(1),e.preventDefault();break;case Ns.ESC:S(!1);break;case Ns.SPACE:case Ns.ENTER:null!==O&&y(O,e)}else[Ns.DOWN,Ns.SPACE,Ns.ENTER].includes(t)&&(S(!0),e.preventDefault())}},_));return o.createElement("div",{className:f("".concat(r,"-nav-operations"),p),style:d,ref:n},z,o.createElement(ex,{prefixCls:r,locale:s,editable:g}))})),ox=o.memo(nx,(function(e,t){return t.tabMoving})),rx=function(e){var t=e.prefixCls,n=e.id,r=e.active,i=e.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,d=e.closable,p=e.renderWrapper,h=e.removeAriaLabel,g=e.editable,m=e.onClick,v=e.onFocus,b=e.style,y="".concat(t,"-tab"),x=Jy(d,c,g,l);function C(e){l||m(e)}var w=o.useMemo((function(){return u&&"string"==typeof s?o.createElement("span",null,s):s}),[s,u]),E=o.createElement("div",{key:a,"data-node-key":Qy(a),className:f(y,I(I(I({},"".concat(y,"-with-remove"),x),"".concat(y,"-active"),r),"".concat(y,"-disabled"),l)),style:b,onClick:C},o.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(y,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),C(e)},onKeyDown:function(e){[Ns.SPACE,Ns.ENTER].includes(e.which)&&(e.preventDefault(),C(e))},onFocus:v},u&&o.createElement("span",{className:"".concat(y,"-icon")},u),s&&w),x&&o.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(y,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),g.onEdit("remove",{key:a,event:t})}},c||g.removeIcon||"×"));return p?p(E):E},ix=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]},ax=function(e,t){return e[t?0:1]},sx=o.forwardRef((function(t,n){var r,i,a,s,l,c=t.className,u=t.style,d=t.id,p=t.animated,g=t.activeKey,m=t.rtl,v=t.extra,b=t.editable,y=t.locale,x=t.tabPosition,C=t.tabBarGutter,w=t.children,E=t.onTabClick,S=t.onTabScroll,k=t.indicator,O=o.useContext(Uy),$=O.prefixCls,M=O.tabs,_=e.useRef(null),P=e.useRef(null),N=e.useRef(null),L=e.useRef(null),j=e.useRef(null),T=e.useRef(null),D=e.useRef(null),A="top"===x||"bottom"===x,z=qy(0,(function(e,t){A&&S&&S({direction:e>t?"left":"right"})})),H=He(z,2),F=H[0],V=H[1],W=qy(0,(function(e,t){!A&&S&&S({direction:e>t?"top":"bottom"})})),U=He(W,2),X=U[0],q=U[1],G=He(e.useState([0,0]),2),K=G[0],Y=G[1],Z=He(e.useState([0,0]),2),Q=Z[0],J=Z[1],ee=He(e.useState([0,0]),2),te=ee[0],ne=ee[1],oe=He(e.useState([0,0]),2),re=oe[0],ie=oe[1],ae=(r=new Map,i=e.useRef([]),a=He(e.useState({}),2)[1],s=e.useRef("function"==typeof r?r():r),l=Ky((function(){var e=s.current;i.current.forEach((function(t){e=t(e)})),i.current=[],s.current=e,a({})})),[s.current,function(e){i.current.push(e),l()}]),se=He(ae,2),le=se[0],ce=se[1],ue=function(t,n,o){return e.useMemo((function(){for(var e,o=new Map,r=n.get(null===(e=t[0])||void 0===e?void 0:e.key)||Xy,i=r.left+r.width,a=0;a<t.length;a+=1){var s,l=t[a].key,c=n.get(l);c||(c=n.get(null===(s=t[a-1])||void 0===s?void 0:s.key)||Xy);var u=o.get(l)||R({},c);u.right=i-u.left-u.width,o.set(l,u)}return o}),[t.map((function(e){return e.key})).join("_"),n,o])}(M,le,Q[0]),de=ax(K,A),pe=ax(Q,A),fe=ax(te,A),he=ax(re,A),ge=de<pe+fe,me=ge?de-he:de-fe,ve="".concat($,"-nav-operations-hidden"),be=0,ye=0;function xe(e){return e<be?be:e>ye?ye:e}A&&m?(be=0,ye=Math.max(0,pe-me)):(be=Math.min(0,me-pe),ye=0);var Ce=e.useRef(null),we=He(e.useState(),2),Ee=we[0],Se=we[1];function ke(){Se(Date.now())}function Oe(){Ce.current&&clearTimeout(Ce.current)}!function(t,n){var r=He(e.useState(),2),i=r[0],a=r[1],s=He(e.useState(0),2),l=s[0],c=s[1],u=He(e.useState(0),2),d=u[0],p=u[1],f=He(e.useState(),2),h=f[0],g=f[1],m=e.useRef(),v=e.useRef(),b=e.useRef(null);b.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;a({x:n,y:o}),window.clearInterval(m.current)},onTouchMove:function(e){if(i){e.preventDefault();var t=e.touches[0],o=t.screenX,r=t.screenY;a({x:o,y:r});var s=o-i.x,u=r-i.y;n(s,u);var d=Date.now();c(d),p(d-l),g({x:s,y:u})}},onTouchEnd:function(){if(i&&(a(null),g(null),h)){var e=h.x/d,t=h.y/d,o=Math.abs(e),r=Math.abs(t);if(Math.max(o,r)<.1)return;var s=e,l=t;m.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(m.current):n(20*(s*=Gy),20*(l*=Gy))}),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"===v.current?t:o:i>a?(r=t,v.current="x"):(r=o,v.current="y"),n(-r,-r)&&e.preventDefault()}},o.useEffect((function(){function e(e){b.current.onTouchMove(e)}function n(e){b.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){b.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){b.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(L,(function(e,t){function n(e,t){e((function(e){return xe(e+t)}))}return!!ge&&(A?n(V,e):n(q,t),Oe(),ke(),!0)})),e.useEffect((function(){return Oe(),Ee&&(Ce.current=setTimeout((function(){Se(0)}),100)),Oe}),[Ee]);var Me=function(t,n,o,r,i,a,s){var l,c,u,d=s.tabs,p=s.tabPosition,f=s.rtl;return["top","bottom"].includes(p)?(l="width",c=f?"right":"left",u=Math.abs(o)):(l="height",c="top",u=-o),e.useMemo((function(){if(!d.length)return[0,0];for(var e=d.length,o=e,r=0;r<e;r+=1){var i=t.get(d[r].key)||Yy;if(i[c]+i[l]>u+n){o=r-1;break}}for(var a=0,s=e-1;s>=0;s-=1)if((t.get(d[s].key)||Yy)[c]<u){a=s+1;break}return a>=o?[0,0]:[a,o]}),[t,n,r,i,a,u,p,d.map((function(e){return e.key})).join("_"),f])}(ue,me,A?F:X,pe,fe,he,R(R({},t),{},{tabs:M})),_e=He(Me,2),Pe=_e[0],Ne=_e[1],Le=ti((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){var n=F;m?t.right<F?n=t.right:t.right+t.width>F+me&&(n=t.right+t.width-me):t.left<-F?n=-t.left:t.left+t.width>-F+me&&(n=-(t.left+t.width-me)),q(0),V(xe(n))}else{var o=X;t.top<-X?o=-t.top:t.top+t.height>-X+me&&(o=-(t.top+t.height-me)),V(0),q(xe(o))}})),Re={};"top"===x||"bottom"===x?Re[m?"marginRight":"marginLeft"]=C:Re.marginTop=C;var je=M.map((function(e,t){var n=e.key;return o.createElement(rx,{id:d,prefixCls:$,key:n,tab:e,style:0===t?void 0:Re,closable:e.closable,editable:b,active:n===g,renderWrapper:w,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){E(n,e)},onFocus:function(){Le(n),ke(),L.current&&(m||(L.current.scrollLeft=0),L.current.scrollTop=0)}})})),Te=function(){return ce((function(){var e,t=new Map,n=null===(e=j.current)||void 0===e?void 0:e.getBoundingClientRect();return M.forEach((function(e){var o,r=e.key,i=null===(o=j.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(Qy(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=He(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}))};e.useEffect((function(){Te()}),[M.map((function(e){return e.key})).join("_")]);var De=Ky((function(){var e=ix(_),t=ix(P),n=ix(N);Y([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=ix(D);ne(o);var r=ix(T);ie(r);var i=ix(j);J([i[0]-o[0],i[1]-o[1]]),Te()})),ze=M.slice(0,Pe),Be=M.slice(Ne+1),Fe=[].concat(Ie(ze),Ie(Be)),Ve=ue.get(g),We=function(t){var n=t.activeTabOffset,o=t.horizontal,r=t.rtl,i=t.indicator,a=void 0===i?{}:i,s=a.size,l=a.align,c=void 0===l?"center":l,u=He(e.useState(),2),d=u[0],p=u[1],f=e.useRef(),h=e.useCallback((function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e}),[s]);function g(){Ae.cancel(f.current)}return e.useEffect((function(){var e={};if(n)if(o){e.width=h(n.width);var t=r?"right":"left";"start"===c&&(e[t]=n[t]),"center"===c&&(e[t]=n[t]+n.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=h(n.height),"start"===c&&(e.top=n.top),"center"===c&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return g(),f.current=Ae((function(){p(e)})),g}),[n,o,r,c,h]),{style:d}}({activeTabOffset:Ve,horizontal:A,indicator:k,rtl:m}),Ue=We.style;e.useEffect((function(){Le()}),[g,be,ye,Zy(Ve),Zy(ue),A]),e.useEffect((function(){De()}),[m]);var Xe,qe,Ge,Ke,Ye=!!Fe.length,Ze="".concat($,"-nav-wrap");return A?m?(qe=F>0,Xe=F!==ye):(Xe=F<0,qe=F!==be):(Ge=X<0,Ke=X!==be),o.createElement($e,{onResize:De},o.createElement("div",{ref:B(n,_),role:"tablist",className:f("".concat($,"-nav"),c),style:u,onKeyDown:function(){ke()}},o.createElement(tx,{ref:P,position:"left",extra:v,prefixCls:$}),o.createElement($e,{onResize:De},o.createElement("div",{className:f(Ze,I(I(I(I({},"".concat(Ze,"-ping-left"),Xe),"".concat(Ze,"-ping-right"),qe),"".concat(Ze,"-ping-top"),Ge),"".concat(Ze,"-ping-bottom"),Ke)),ref:L},o.createElement($e,{onResize:De},o.createElement("div",{ref:j,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(X,"px)"),transition:Ee?"none":void 0}},je,o.createElement(ex,{ref:D,prefixCls:$,locale:y,editable:b,style:R(R({},0===je.length?void 0:Re),{},{visibility:Ye?"hidden":null})}),o.createElement("div",{className:f("".concat($,"-ink-bar"),I({},"".concat($,"-ink-bar-animated"),p.inkBar)),style:Ue}))))),o.createElement(ox,h({},t,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:T,prefixCls:$,tabs:Fe,className:!Ye&&ve,tabMoving:!!Ee})),o.createElement(tx,{ref:N,position:"right",extra:v,prefixCls:$})))})),lx=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,s=e.active,l=e.tabKey,c=e.children;return o.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:f(n,s&&"".concat(n,"-active"),r),ref:t},c)}));"production"!==process.env.NODE_ENV&&(lx.displayName="TabPane");var cx=["renderTabBar"],ux=["label","key"],dx=function(e){var t=e.renderTabBar,n=nt(e,cx),r=o.useContext(Uy).tabs;return t?t(R(R({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=nt(e,ux);return o.createElement(lx,h({tab:t,key:n,tabKey:n},r))}))}),sx):o.createElement(sx,n)};"production"!==process.env.NODE_ENV&&(dx.displayName="TabNavListWrapper");var px=["key","forceRender","style","className","destroyInactiveTabPane"],fx=function(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,s=o.useContext(Uy),l=s.prefixCls,c=s.tabs,u=r.tabPane,d="".concat(l,"-tabpane");return o.createElement("div",{className:f("".concat(l,"-content-holder"))},o.createElement("div",{className:f("".concat(l,"-content"),"".concat(l,"-content-").concat(i),I({},"".concat(l,"-content-animated"),u))},c.map((function(e){var i=e.key,s=e.forceRender,l=e.style,c=e.className,p=e.destroyInactiveTabPane,g=nt(e,px),m=i===n;return o.createElement(wa,h({key:i,visible:m,forceRender:s,removeOnLeave:!(!a&&!p),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,a=e.className;return o.createElement(lx,h({},g,{prefixCls:d,id:t,tabKey:i,animated:u,active:m,style:R(R({},l),r),className:f(c,a),ref:n}))}))}))))};var hx=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],gx=0,mx=o.forwardRef((function(t,n){var r=t.id,i=t.prefixCls,a=void 0===i?"rc-tabs":i,s=t.className,l=t.items,c=t.direction,u=t.activeKey,d=t.defaultActiveKey,p=t.editable,g=t.animated,m=t.tabPosition,v=void 0===m?"top":m,b=t.tabBarGutter,y=t.tabBarStyle,x=t.tabBarExtraContent,C=t.locale,w=t.more,E=t.destroyInactiveTabPane,S=t.renderTabBar,k=t.onChange,O=t.onTabClick,$=t.onTabScroll,_=t.getPopupContainer,N=t.popupClassName,L=t.indicator,j=nt(t,hx),T=o.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===P(e)&&"key"in e}))}),[l]),D="rtl"===c,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}:R({inkBar:!0},"object"===P(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&M(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(g),z=He(e.useState(!1),2),B=z[0],H=z[1];e.useEffect((function(){H(Gp())}),[]);var F=He(ri((function(){var e;return null===(e=T[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),2),V=F[0],W=F[1],U=He(e.useState((function(){return T.findIndex((function(e){return e.key===V}))})),2),X=U[0],q=U[1];e.useEffect((function(){var e,t=T.findIndex((function(e){return e.key===V}));-1===t&&(t=Math.max(0,Math.min(X,T.length-1)),W(null===(e=T[t])||void 0===e?void 0:e.key));q(t)}),[T.map((function(e){return e.key})).join("_"),V,X]);var G=He(ri(null,{value:r}),2),K=G[0],Y=G[1];e.useEffect((function(){r||(Y("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":gx)),gx+=1)}),[]);var Z={id:K,activeKey:V,animated:A,tabPosition:v,rtl:D,mobile:B},Q=R(R({},Z),{},{editable:p,locale:C,more:w,tabBarGutter:b,onTabClick:function(e,t){null==O||O(e,t);var n=e!==V;W(e),n&&(null==k||k(e))},onTabScroll:$,extra:x,style:y,panes:null,getPopupContainer:_,popupClassName:N,indicator:L});return o.createElement(Uy.Provider,{value:{tabs:T,prefixCls:a}},o.createElement("div",h({ref:n,id:r,className:f(a,"".concat(a,"-").concat(v),I(I(I({},"".concat(a,"-mobile"),B),"".concat(a,"-editable"),p),"".concat(a,"-rtl"),D),s)},j),o.createElement(dx,h({},Q,{renderTabBar:S})),o.createElement(fx,h({destroyInactiveTabPane:E},Z,{animated:A}))))}));"production"!==process.env.NODE_ENV&&(mx.displayName="Tabs");const vx={motionAppear:!1,motionEnter:!0,motionLeave:!0};var bx=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 yx=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}`}}}}},[ap(e,"slide-up"),ap(e,"slide-down")]]},xx=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:`${Et(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:Et(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Et(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Et(e.borderRadiusLG)} 0 0 ${Et(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 ${Et(e.borderRadiusLG)} ${Et(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Cx=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},_i(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:`${Et(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({},Mi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Et(e.paddingXXS)} ${Et(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"}}})}})}},wx=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:`${Et(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:Et(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Et(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:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ex=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 ${Et(e.borderRadius)} ${Et(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Et(e.borderRadius)} ${Et(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Et(e.borderRadius)} ${Et(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Et(e.borderRadius)} 0 0 ${Et(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},Sx=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}},Ii(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}}}},kx=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:Et(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Et(e.marginXS)},marginLeft:{_skip_check_:!0,value:Et(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"}}}}},Ox=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({},_i(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 ${Et(e.paddingXS)}`,background:"transparent",border:`${Et(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Et(e.borderRadiusLG)} ${Et(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}},Ii(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Sx(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 $x=Ri("Tabs",(e=>{const t=li(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Et(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Et(e.horizontalItemGutter)}`});return[Ex(t),kx(t),wx(t),Cx(t),xx(t),Ox(t),yx(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 Mx=()=>null;"production"!==process.env.NODE_ENV&&(Mx.displayName="DeprecatedTabPane");var _x=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 Px=e=>{var t,n,r,i,a,s,l,c,u,d,p;const{type:h,className:g,rootClassName:m,size:v,onEdit:b,hideAdd:y,centered:x,addIcon:w,removeIcon:E,moreIcon:S,more:k,popupClassName:O,children:$,items:M,animated:_,style:P,indicatorSize:N,indicator:I}=e,L=_x(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=L,{direction:j,tabs:T,getPrefixCls:D,getPopupContainer:A}=o.useContext(Hr),z=D("tabs",R),B=Ps(z),[H,F,V]=$x(z,B);let W;"editable-card"===h&&(W={onEdit:(e,t)=>{let{key:n,event:o}=t;null==b||b("add"===e?o:n,e)},removeIcon:null!==(t=null!=E?E:null==T?void 0:T.removeIcon)&&void 0!==t?t:o.createElement(gs,null),addIcon:(null!=w?w:null==T?void 0:T.addIcon)||o.createElement(Wy,null),showAdd:!0!==y});const U=D();if("production"!==process.env.NODE_ENV){const t=go("Tabs");"production"!==process.env.NODE_ENV&&t(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&t(!(N||(null==T?void 0:T.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const X=bl(v),q=function(e,t){"production"!==process.env.NODE_ENV&&go("Tabs").deprecated(!t,"Tabs.TabPane","items");if(e)return e;const n=C(t).map((e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=bx(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(n)}(M,$),G=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},vx),{motionName:sl(e,"switch")})),t}(z,_),K=Object.assign(Object.assign({},null==T?void 0:T.style),P),Y={align:null!==(n=null==I?void 0:I.align)&&void 0!==n?n:null===(r=null==T?void 0:T.indicator)||void 0===r?void 0:r.align,size:null!==(l=null!==(a=null!==(i=null==I?void 0:I.size)&&void 0!==i?i:N)&&void 0!==a?a:null===(s=null==T?void 0:T.indicator)||void 0===s?void 0:s.size)&&void 0!==l?l:null==T?void 0:T.indicatorSize};return H(o.createElement(mx,Object.assign({direction:j,getPopupContainer:A},L,{items:q,className:f({[`${z}-${X}`]:X,[`${z}-card`]:["card","editable-card"].includes(h),[`${z}-editable-card`]:"editable-card"===h,[`${z}-centered`]:x},null==T?void 0:T.className,g,m,F,V,B),popupClassName:f(O,F,V,B),style:K,editable:W,more:Object.assign({icon:null!==(p=null!==(d=null!==(u=null===(c=null==T?void 0:T.more)||void 0===c?void 0:c.icon)&&void 0!==u?u:null==T?void 0:T.moreIcon)&&void 0!==d?d:S)&&void 0!==p?p:o.createElement(Ub,null),transitionName:`${U}-slide-up`},k),prefixCls:z,animated:G,indicator:Y})))};Px.TabPane=Mx,"production"!==process.env.NODE_ENV&&(Px.displayName="Tabs");const Nx=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},_i(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},_i(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},_i(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Ni(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Et(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Ix(e,t){const n=li(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Nx(n)]}var Lx=Ri("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[Ix(n,e)]}));const Rx=e.createContext(null);var jx=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 Tx=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:a,children:s,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:p=!1,disabled:h}=e,g=jx(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:v,checkbox:b}=o.useContext(Hr),y=o.useContext(Rx),{isFormItemInput:x}=o.useContext(Zu),C=o.useContext(Wr),w=null!==(n=(null==y?void 0:y.disabled)||h)&&void 0!==n?n:C,E=o.useRef(g.value);if("production"!==process.env.NODE_ENV){const e=go("Checkbox");"production"!==process.env.NODE_ENV&&e("checked"in g||!!y||!("value"in g),"usage","`value` is not a valid prop, do you mean `checked`?")}o.useEffect((()=>{null==y||y.registerValue(g.value)}),[]),o.useEffect((()=>{if(!p)return g.value!==E.current&&(null==y||y.cancelValue(E.current),null==y||y.registerValue(g.value),E.current=g.value),()=>null==y?void 0:y.cancelValue(g.value)}),[g.value]);const S=m("checkbox",r),k=Ps(S),[O,$,M]=Lx(S,k),_=Object.assign({},g);y&&!p&&(_.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),y.toggleOption&&y.toggleOption({label:s,value:g.value})},_.name=y.name,_.checked=y.value.includes(g.value));const P=f(`${S}-wrapper`,{[`${S}-rtl`]:"rtl"===v,[`${S}-wrapper-checked`]:_.checked,[`${S}-wrapper-disabled`]:w,[`${S}-wrapper-in-form-item`]:x},null==b?void 0:b.className,i,a,M,k,$),N=f({[`${S}-indeterminate`]:l},dl,$),I=l?"mixed":void 0;return O(o.createElement(vl,{component:"Checkbox",disabled:w},o.createElement("label",{className:P,style:Object.assign(Object.assign({},null==b?void 0:b.style),c),onMouseEnter:u,onMouseLeave:d},o.createElement(hy,Object.assign({"aria-checked":I},_,{prefixCls:S,className:N,disabled:w,ref:t})),void 0!==s&&o.createElement("span",null,s))))},Dx=o.forwardRef(Tx);"production"!==process.env.NODE_ENV&&(Dx.displayName="Checkbox");var Ax=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 zx=o.forwardRef(((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:s,rootClassName:l,style:c,onChange:u}=e,d=Ax(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:h}=o.useContext(Hr),[g,m]=o.useState(d.value||n||[]),[v,b]=o.useState([]);o.useEffect((()=>{"value"in d&&m(d.value||[])}),[d.value]);const y=o.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),x=p("checkbox",a),C=`${x}-group`,w=Ps(x),[E,S,k]=Lx(x,w),O=Me(d,["value","disabled"]),$=i.length?y.map((e=>o.createElement(Dx,{prefixCls:x,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:`${C}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,M={toggleOption:e=>{const t=g.indexOf(e.value),n=Ie(g);-1===t?n.push(e.value):n.splice(t,1),"value"in d||m(n),null==u||u(n.filter((e=>v.includes(e))).sort(((e,t)=>y.findIndex((t=>t.value===e))-y.findIndex((e=>e.value===t)))))},value:g,disabled:d.disabled,name:d.name,registerValue:e=>{b((t=>[].concat(Ie(t),[e])))},cancelValue:e=>{b((t=>t.filter((t=>t!==e))))}},_=f(C,{[`${C}-rtl`]:"rtl"===h},s,l,k,w,S);return E(o.createElement("div",Object.assign({className:_,style:c},O,{ref:t}),o.createElement(Rx.Provider,{value:M},$)))})),Bx=Dx;Bx.Group=zx,Bx.__ANT_CHECKBOX=!0,"production"!==process.env.NODE_ENV&&(Bx.displayName="Checkbox");var Hx=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.forceRender,i=t.className,a=t.style,s=t.children,l=t.isActive,c=t.role,u=He(e.useState(l||r),2),d=u[0],p=u[1];return e.useEffect((function(){(r||l)&&p(!0)}),[r,l]),d?e.createElement("div",{ref:n,className:f("".concat(o,"-content"),I(I({},"".concat(o,"-content-active"),l),"".concat(o,"-content-inactive"),!l),i),style:a,role:c},e.createElement("div",{className:"".concat(o,"-content-box")},s)):null}));Hx.displayName="PanelContent";var Fx=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Vx=e.forwardRef((function(t,n){var o=t.showArrow,r=void 0===o||o,i=t.headerClass,a=t.isActive,s=t.onItemClick,l=t.forceRender,c=t.className,u=t.prefixCls,d=t.collapsible,p=t.accordion,g=t.panelKey,m=t.extra,v=t.header,b=t.expandIcon,y=t.openMotion,x=t.destroyInactivePanel,C=t.children,w=nt(t,Fx),E="disabled"===d,S="header"===d,k="icon"===d,O=null!=m&&"boolean"!=typeof m,$=function(){null==s||s(g)},M="function"==typeof b?b(t):e.createElement("i",{className:"arrow"});M&&(M=e.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?$:void 0},M));var _=f(I(I(I({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),E),c),P={className:f(i,I(I(I({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),S),"".concat(u,"-icon-collapsible-only"),k)),"aria-expanded":a,"aria-disabled":E,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==Ns.ENTER&&e.which!==Ns.ENTER||$()}};return S||k||(P.onClick=$,P.role=p?"tab":"button",P.tabIndex=E?-1:0),e.createElement("div",h({},w,{ref:n,className:_}),e.createElement("div",P,r&&M,e.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===d?$:void 0},v),O&&e.createElement("div",{className:"".concat(u,"-extra")},m)),e.createElement(wa,h({visible:a,leavedClassName:"".concat(u,"-content-hidden")},y,{forceRender:l,removeOnLeave:x}),(function(t,n){var o=t.className,r=t.style;return e.createElement(Hx,{ref:n,prefixCls:u,className:o,style:r,isActive:a,forceRender:l,role:p?"tabpanel":void 0},C)})))})),Wx=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function Ux(t,n,o){return Array.isArray(t)?function(t,n){var o=n.prefixCls,r=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map((function(t,n){var d=t.children,p=t.label,f=t.key,g=t.collapsible,m=t.onItemClick,v=t.destroyInactivePanel,b=nt(t,Wx),y=String(null!=f?f:n),x=null!=g?g:i,C=null!=v?v:a,w=!1;return w=r?l[0]===y:l.indexOf(y)>-1,e.createElement(Vx,h({},b,{prefixCls:o,key:y,panelKey:y,isActive:w,accordion:r,openMotion:c,expandIcon:u,header:p,collapsible:x,onItemClick:function(e){"disabled"!==x&&(s(e),null==m||m(e))},destroyInactivePanel:C}),d)}))}(t,o):C(n).map((function(t,n){return function(t,n,o){if(!t)return null;var r=o.prefixCls,i=o.accordion,a=o.collapsible,s=o.destroyInactivePanel,l=o.onItemClick,c=o.activeKey,u=o.openMotion,d=o.expandIcon,p=t.key||String(n),f=t.props,h=f.header,g=f.headerClass,m=f.destroyInactivePanel,v=f.collapsible,b=f.onItemClick,y=!1;y=i?c[0]===p:c.indexOf(p)>-1;var x=null!=v?v:a,C={key:p,panelKey:p,header:h,headerClass:g,isActive:y,prefixCls:r,destroyInactivePanel:null!=m?m:s,openMotion:u,accordion:i,children:t.props.children,onItemClick:function(e){"disabled"!==x&&(l(e),null==b||b(e))},expandIcon:d,collapsible:x};return"string"==typeof t.type?t:(Object.keys(C).forEach((function(e){void 0===C[e]&&delete C[e]})),e.cloneElement(t,C))}(t,n,o)}))}function Xx(e){var t=e;if(!Array.isArray(t)){var n=P(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var qx=e.forwardRef((function(t,n){var o=t.prefixCls,r=void 0===o?"rc-collapse":o,i=t.destroyInactivePanel,a=void 0!==i&&i,s=t.style,l=t.accordion,c=t.className,u=t.children,d=t.collapsible,p=t.openMotion,g=t.expandIcon,m=t.activeKey,v=t.defaultActiveKey,b=t.onChange,y=t.items,x=f(r,c),C=He(ri([],{value:m,onChange:function(e){return null==b?void 0:b(e)},defaultValue:v,postState:Xx}),2),w=C[0],E=C[1];M(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var S=Ux(y,u,{prefixCls:r,accordion:l,openMotion:p,expandIcon:g,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return E((function(){return l?w[0]===e?[]:[e]:w.indexOf(e)>-1?w.filter((function(t){return t!==e})):[].concat(Ie(w),[e])}))},activeKey:w});return e.createElement("div",h({ref:n,className:x,style:s,role:l?"tablist":void 0},Os(t,{aria:!0,data:!0})),S)})),Gx=Object.assign(qx,{Panel:Vx});Gx.Panel;const Kx=o.forwardRef(((e,t)=>{if("production"!==process.env.NODE_ENV){go("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"')}const{getPrefixCls:n}=o.useContext(Hr),{prefixCls:r,className:i,showArrow:a=!0}=e,s=n("collapse",r),l=f({[`${s}-no-arrow`]:!a},i);return o.createElement(Gx.Panel,Object.assign({ref:t},e,{prefixCls:s,className:l}))})),Yx=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:f,colorTextDisabled:h,fontSizeLG:g,lineHeight:m,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:x,paddingXS:C,motionDurationSlow:w,fontSizeIcon:E,contentPadding:S,fontHeight:k,fontHeightLG:O}=e,$=`${Et(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},_i(e)),{backgroundColor:r,border:$,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Et(l)} ${Et(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:m,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:k,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:E,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:v,[`> ${t}-header`]:{padding:s,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(x).sub(o).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Et(l)} ${Et(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},Zx=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Qx=e=>{const{componentCls:t,headerBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},Jx=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var eC=Ri("Collapse",(e=>{const t=li(e,{collapseHeaderPaddingSM:`${Et(e.paddingXS)} ${Et(e.paddingSM)}`,collapseHeaderPaddingLG:`${Et(e.padding)} ${Et(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Yx(t),Qx(t),Jx(t),Zx(t),Td(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const tC=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=o.useContext(Hr),{prefixCls:a,className:s,rootClassName:l,style:c,bordered:u=!0,ghost:d,size:p,expandIconPosition:h="start",children:g,expandIcon:m}=e,v=bl((e=>{var t;return null!==(t=null!=p?p:e)&&void 0!==t?t:"middle"})),b=n("collapse",a),y=n(),[x,w,E]=eC(b);if("production"!==process.env.NODE_ENV){const e=go("Collapse");"production"!==process.env.NODE_ENV&&e("left"!==h&&"right"!==h,"deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.")}const S=o.useMemo((()=>"left"===h?"start":"right"===h?"end":h),[h]),k=null!=m?m:null==i?void 0:i.expandIcon,O=o.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"==typeof k?k(e):o.createElement(ov,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return _s(t,(()=>{var e;return{className:f(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${b}-arrow`)}}))}),[k,b]),$=f(`${b}-icon-position-${S}`,{[`${b}-borderless`]:!u,[`${b}-rtl`]:"rtl"===r,[`${b}-ghost`]:!!d,[`${b}-${v}`]:"middle"!==v},null==i?void 0:i.className,s,l,w,E),M=Object.assign(Object.assign({},al(y)),{motionAppear:!1,leavedClassName:`${b}-content-hidden`}),_=o.useMemo((()=>g?C(g).map(((e,t)=>{var n,o;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(o=e.key)&&void 0!==o?o:String(t),{disabled:r,collapsible:i}=e.props;return _s(e,Object.assign(Object.assign({},Me(e.props,["disabled"])),{key:n,collapsible:null!=i?i:r?"disabled":void 0}))}return e})):null),[g]);return x(o.createElement(Gx,Object.assign({ref:t,openMotion:M},Me(e,["rootClassName"]),{expandIcon:O,prefixCls:b,className:$,style:Object.assign(Object.assign({},null==i?void 0:i.style),c)}),_))}));"production"!==process.env.NODE_ENV&&(tC.displayName="Collapse");var nC=Object.assign(tC,{Panel:Kx});function oC(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 rC(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=oC(t,e,o)):n(r=oC(t,e,""))}}var iC=e.forwardRef((function(t,n){var o,r,i=t.inputElement,a=t.children,s=t.prefixCls,l=t.prefix,c=t.suffix,u=t.addonBefore,d=t.addonAfter,p=t.className,g=t.style,m=t.disabled,v=t.readOnly,b=t.focused,y=t.triggerFocus,x=t.allowClear,C=t.value,w=t.handleReset,E=t.hidden,S=t.classes,k=t.classNames,O=t.dataAttrs,$=t.styles,M=t.components,_=t.onClear,N=null!=a?a:i,L=(null==M?void 0:M.affixWrapper)||"span",j=(null==M?void 0:M.groupWrapper)||"span",T=(null==M?void 0:M.wrapper)||"span",D=(null==M?void 0:M.groupAddon)||"span",A=e.useRef(null),z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(t),B=e.cloneElement(N,{value:C,className:f(N.props.className,!z&&(null==k?void 0:k.variant))||null}),H=e.useRef(null);if(e.useImperativeHandle(n,(function(){return{nativeElement:H.current||A.current}})),z){var F=null;if(x){var V=!m&&!v&&C,W="".concat(s,"-clear-icon"),U="object"===P(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";F=e.createElement("span",{onClick:function(e){null==w||w(e),null==_||_()},onMouseDown:function(e){return e.preventDefault()},className:f(W,I(I({},"".concat(W,"-hidden"),!V),"".concat(W,"-has-suffix"),!!c)),role:"button",tabIndex:-1},U)}var X="".concat(s,"-affix-wrapper"),q=f(X,I(I(I(I(I({},"".concat(s,"-disabled"),m),"".concat(X,"-disabled"),m),"".concat(X,"-focused"),b),"".concat(X,"-readonly"),v),"".concat(X,"-input-with-clear-btn"),c&&x&&C),null==S?void 0:S.affixWrapper,null==k?void 0:k.affixWrapper,null==k?void 0:k.variant),G=(c||x)&&e.createElement("span",{className:f("".concat(s,"-suffix"),null==k?void 0:k.suffix),style:null==$?void 0:$.suffix},F,c);B=e.createElement(L,h({className:q,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=A.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:A}),l&&e.createElement("span",{className:f("".concat(s,"-prefix"),null==k?void 0:k.prefix),style:null==$?void 0:$.prefix},l),B,G)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(t)){var K="".concat(s,"-group"),Y="".concat(K,"-addon"),Z="".concat(K,"-wrapper"),Q=f("".concat(s,"-wrapper"),K,null==S?void 0:S.wrapper,null==k?void 0:k.wrapper),J=f(Z,I({},"".concat(Z,"-disabled"),m),null==S?void 0:S.group,null==k?void 0:k.groupWrapper);B=e.createElement(j,{className:J,ref:H},e.createElement(T,{className:Q},u&&e.createElement(D,{className:Y},u),B,d&&e.createElement(D,{className:Y},d)))}return e.cloneElement(B,{className:f(null===(o=B.props)||void 0===o?void 0:o.className,p)||null,style:R(R({},null===(r=B.props)||void 0===r?void 0:r.style),g),hidden:E})})),aC=["show"];function sC(e,t){return o.useMemo((function(){var n={};t&&(n.show="object"===P(t)&&t.formatter?t.formatter:!!t);var o=n=R(R({},n),e),r=o.show,i=nt(o,aC);return R(R({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var lC=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],cC=e.forwardRef((function(t,n){var o=t.autoComplete,r=t.onChange,i=t.onFocus,a=t.onBlur,s=t.onPressEnter,l=t.onKeyDown,c=t.onKeyUp,u=t.prefixCls,d=void 0===u?"rc-input":u,p=t.disabled,g=t.htmlSize,m=t.className,v=t.maxLength,b=t.suffix,y=t.showCount,x=t.count,C=t.type,w=void 0===C?"text":C,E=t.classes,S=t.classNames,k=t.styles,O=t.onCompositionStart,$=t.onCompositionEnd,M=nt(t,lC),_=He(e.useState(!1),2),P=_[0],N=_[1],L=e.useRef(!1),j=e.useRef(!1),T=e.useRef(null),D=e.useRef(null),A=function(e){T.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)}}}}(T.current,e)},z=He(ri(t.defaultValue,{value:t.value}),2),B=z[0],H=z[1],F=null==B?"":String(B),V=He(e.useState(null),2),W=V[0],U=V[1],X=sC(x,y),q=X.max||v,G=X.strategy(F),K=!!q&&G>q;e.useImperativeHandle(n,(function(){var e;return{focus:A,blur:function(){var e;null===(e=T.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=T.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=T.current)||void 0===e||e.select()},input:T.current,nativeElement:(null===(e=D.current)||void 0===e?void 0:e.nativeElement)||T.current}})),e.useEffect((function(){N((function(e){return(!e||!p)&&e}))}),[p]);var Y=function(e,t,n){var o,i,a=t;if(!L.current&&X.exceedFormatter&&X.max&&X.strategy(t)>X.max)t!==(a=X.exceedFormatter(t,{max:X.max}))&&U([(null===(o=T.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=T.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;H(a),T.current&&rC(T.current,e,r,a)};e.useEffect((function(){var e;W&&(null===(e=T.current)||void 0===e||e.setSelectionRange.apply(e,Ie(W)))}),[W]);var Z,Q=function(e){Y(e,e.target.value,{source:"change"})},J=function(e){L.current=!1,Y(e,e.currentTarget.value,{source:"compositionEnd"}),null==$||$(e)},ee=function(e){s&&"Enter"===e.key&&!j.current&&(j.current=!0,s(e)),null==l||l(e)},te=function(e){"Enter"===e.key&&(j.current=!1),null==c||c(e)},ne=function(e){N(!0),null==i||i(e)},oe=function(e){N(!1),null==a||a(e)},re=K&&"".concat(d,"-out-of-range");return e.createElement(iC,h({},M,{prefixCls:d,className:f(m,re),handleReset:function(e){H(""),A(),T.current&&rC(T.current,e,r)},value:F,focused:P,triggerFocus:A,suffix:function(){var t=Number(q)>0;if(b||X.show){var n=X.showFormatter?X.showFormatter({value:F,count:G,maxLength:q}):"".concat(G).concat(t?" / ".concat(q):"");return e.createElement(e.Fragment,null,X.show&&e.createElement("span",{className:f("".concat(d,"-show-count-suffix"),I({},"".concat(d,"-show-count-has-suffix"),!!b),null==S?void 0:S.count),style:R({},null==k?void 0:k.count)},n),b)}return null}(),disabled:p,classes:E,classNames:S,styles:k}),(Z=Me(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),e.createElement("input",h({autoComplete:o},Z,{onChange:Q,onFocus:ne,onBlur:oe,onKeyDown:ee,onKeyUp:te,className:f(d,I({},"".concat(d,"-disabled"),p),null==S?void 0:S.input),style:null==k?void 0:k.input,ref:T,size:g,type:w,onCompositionStart:function(e){L.current=!0,null==O||O(e)},onCompositionEnd:J}))))}));const uC=t=>{let n;return"object"==typeof t&&(null==t?void 0:t.clearIcon)?n=t:t&&(n={clearIcon:e.createElement(ps,null)}),n};function dC(t,n){const o=e.useRef([]),r=()=>{o.current.push(setTimeout((()=>{var e,n,o,r;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=t.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=t.current)||void 0===r||r.input.removeAttribute("value"))})))};return e.useEffect((()=>(n&&r(),()=>o.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var pC=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 fC=e.forwardRef(((t,n)=>{var o;const{prefixCls:r,bordered:i=!0,status:a,size:s,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:p,addonAfter:h,addonBefore:g,className:m,style:v,styles:b,rootClassName:y,onChange:x,classNames:C,variant:w}=t,E=pC(t,["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:e}=go("Input");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:S,direction:k,input:O}=e.useContext(Hr),$=S("input",r),M=e.useRef(null),_=Ps($),[P,N,I]=Hy($,_),{compactSize:L,compactItemClassnames:R}=xl($,k),j=bl((e=>{var t;return null!==(t=null!=s?s:L)&&void 0!==t?t:e})),T=e.useContext(Wr),D=null!=l?l:T,{status:A,hasFeedback:B,feedbackIcon:H}=e.useContext(Zu),F=qh(A,a),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(t)||!!B,W=e.useRef(V);if("production"!==process.env.NODE_ENV){const t=go("Input");e.useEffect((()=>{var e;V&&!W.current&&"production"!==process.env.NODE_ENV&&t(document.activeElement===(null===(e=M.current)||void 0===e?void 0:e.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"),W.current=V}),[V])}const U=dC(M,!0),X=(B||d)&&e.createElement(e.Fragment,null,d,B&&H),q=uC(null!=p?p:null==O?void 0:O.allowClear),[G,K]=og("input",w,i);return P(e.createElement(cC,Object.assign({ref:z(n,M),prefixCls:$,autoComplete:null==O?void 0:O.autoComplete},E,{disabled:D,onBlur:e=>{U(),null==c||c(e)},onFocus:e=>{U(),null==u||u(e)},style:Object.assign(Object.assign({},null==O?void 0:O.style),v),styles:Object.assign(Object.assign({},null==O?void 0:O.styles),b),suffix:X,allowClear:q,className:f(m,y,I,_,R,null==O?void 0:O.className),onChange:e=>{U(),null==x||x(e)},addonBefore:g&&e.createElement(ed,{form:!0,space:!0},g),addonAfter:h&&e.createElement(ed,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},C),null==O?void 0:O.classNames),{input:f({[`${$}-sm`]:"small"===j,[`${$}-lg`]:"large"===j,[`${$}-rtl`]:"rtl"===k},null==C?void 0:C.input,null===(o=null==O?void 0:O.classNames)||void 0===o?void 0:o.input,N),variant:f({[`${$}-${G}`]:K},Xh($,F)),affixWrapper:f({[`${$}-affix-wrapper-sm`]:"small"===j,[`${$}-affix-wrapper-lg`]:"large"===j,[`${$}-affix-wrapper-rtl`]:"rtl"===k},N),wrapper:f({[`${$}-group-rtl`]:"rtl"===k},N),groupWrapper:f({[`${$}-group-wrapper-sm`]:"small"===j,[`${$}-group-wrapper-lg`]:"large"===j,[`${$}-group-wrapper-rtl`]:"rtl"===k,[`${$}-group-wrapper-${G}`]:K},Xh(`${$}-group-wrapper`,F,B),N)})})))}));"production"!==process.env.NODE_ENV&&(fC.displayName="Input");const hC=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 gC=Ri(["Input","OTP"],(e=>{const t=li(e,gy(e));return[hC(t)]}),my),mC=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 vC=o.forwardRef(((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:a,mask:s}=e,l=mC(e,["value","onChange","onActiveChange","index","mask"]),c=n&&"string"==typeof s?s:n,u=o.useRef(null);o.useImperativeHandle(t,(()=>u.current));const d=()=>{Ae((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return o.createElement(fC,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||n||i(a-1),d()},onMouseDown:d,onMouseUp:d,type:!0===s?"password":"text"}))}));var bC=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 yC(e){return(e||"").split("")}const xC=o.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:s,onChange:l,formatter:c,variant:u,disabled:d,status:p,autoFocus:h,mask:g}=e,m=bC(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=go("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof g&&g.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:v,direction:b}=o.useContext(Hr),y=v("otp",n),x=Os(m,{aria:!0,data:!0,attr:!0}),C=Ps(y),[w,E,S]=gC(y,C),k=bl((e=>null!=i?i:e)),O=o.useContext(Zu),$=qh(O.status,p),M=o.useMemo((()=>Object.assign(Object.assign({},O),{status:$,hasFeedback:!1,feedbackIcon:null})),[O,$]),_=o.useRef(null),P=o.useRef({});o.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=P.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=P.current[t])||void 0===e||e.blur()},nativeElement:_.current})));const N=e=>c?c(e):e,[I,L]=o.useState(yC(N(a||"")));o.useEffect((()=>{void 0!==s&&L(yC(s))}),[s]);const R=ti((e=>{L(e),l&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>I[t]!==e))&&l(e.join(""))})),j=ti(((e,t)=>{let n=Ie(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(yC(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const o=N(n.map((e=>e||" ")).join(""));return n=yC(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),T=(e,t)=>{var n;const o=j(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=P.current[i])||void 0===n||n.focus()),R(o)},D=e=>{var t;null===(t=P.current[e])||void 0===t||t.focus()},A={variant:u,disabled:d,status:$,mask:g};return w(o.createElement("div",Object.assign({},x,{ref:_,className:f(y,{[`${y}-sm`]:"small"===k,[`${y}-lg`]:"large"===k,[`${y}-rtl`]:"rtl"===b},S,E)}),o.createElement(Zu.Provider,{value:M},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,r=I[t]||"";return o.createElement(vC,Object.assign({ref:e=>{P.current[t]=e},key:n,index:t,size:k,htmlSize:1,className:`${y}-input`,onChange:T,value:r,onActiveChange:D,autoFocus:0===t&&h},A))})))))}));var CC={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"},wC=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:CC}))},EC=o.forwardRef(wC);"production"!==process.env.NODE_ENV&&(EC.displayName="EyeInvisibleOutlined");var SC={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"},kC=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:SC}))},OC=o.forwardRef(kC);"production"!==process.env.NODE_ENV&&(OC.displayName="EyeOutlined");var $C=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 MC=e=>e?o.createElement(OC,null):o.createElement(EC,null),_C={click:"onClick",hover:"onMouseOver"},PC=o.forwardRef(((t,n)=>{const{disabled:r,action:i="click",visibilityToggle:a=!0,iconRender:s=MC}=t,l="object"==typeof a&&void 0!==a.visible,[c,u]=e.useState((()=>!!l&&a.visible)),d=e.useRef(null);o.useEffect((()=>{l&&u(a.visible)}),[l,a]);const p=dC(d),h=()=>{r||(c&&p(),u((e=>{var t;const n=!e;return"object"==typeof a&&(null===(t=a.onVisibleChange)||void 0===t||t.call(a,n)),n})))},{className:g,prefixCls:m,inputPrefixCls:v,size:b}=t,y=$C(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=o.useContext(Hr),C=x("input",v),w=x("input-password",m),E=a&&(e=>{const t=_C[i]||"",n=s(c),r={[t]:h,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(n)?n:o.createElement("span",null,n),r)})(w),S=f(w,g,{[`${w}-${b}`]:!!b}),k=Object.assign(Object.assign({},Me(y,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:S,prefixCls:C,suffix:E});return b&&(k.size=b),o.createElement(fC,Object.assign({ref:z(n,d)},k))}));"production"!==process.env.NODE_ENV&&(PC.displayName="Input.Password");var NC=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=o.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:p,onChange:h,onCompositionStart:g,onCompositionEnd:m}=e,v=NC(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:y}=o.useContext(Hr),x=o.useRef(!1),C=b("input-search",n),w=b("input",r),{compactSize:E}=xl(C,y),S=bl((e=>{var t;return null!==(t=null!=a?a:E)&&void 0!==t?t:e})),k=o.useRef(null),O=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},$=e=>{var t,n;p&&p(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},M="boolean"==typeof l?o.createElement(Rg,null):null,_=`${C}-button`;let P;const N=l||{},I=N.type&&!0===N.type.__ANT_BUTTON;P=I||"button"===N.type?_s(N,Object.assign({onMouseDown:O,onClick:e=>{var t,n;null===(n=null===(t=null==N?void 0:N.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),$(e)},key:"enterButton"},I?{className:_,size:S}:{})):o.createElement(gc,{className:_,type:l?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:O,onClick:$,loading:u,icon:M},l),c&&(P=[P,_s(c,{key:"addonAfter"})]);const L=f(C,{[`${C}-rtl`]:"rtl"===y,[`${C}-${S}`]:!!S,[`${C}-with-button`]:!!l},i);return o.createElement(fC,Object.assign({ref:z(k,t),onPressEnter:e=>{x.current||u||$(e)}},v,{size:S,onCompositionStart:e=>{x.current=!0,null==g||g(e)},onCompositionEnd:e=>{x.current=!1,null==m||m(e)},prefixCls:w,addonAfter:P,suffix:s,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),null==h||h(e)},className:L,disabled:d}))}));"production"!==process.env.NODE_ENV&&(IC.displayName="Search");var LC,RC=["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"],jC={};function TC(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;LC||((LC=document.createElement("textarea")).setAttribute("tab-index","-1"),LC.setAttribute("aria-hidden","true"),document.body.appendChild(LC)),e.getAttribute("wrap")?LC.setAttribute("wrap",e.getAttribute("wrap")):LC.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&&jC[n])return jC[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:RC.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(jC[n]=s),s}(e,t),i=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;LC.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")),LC.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,p=LC.scrollHeight;if("border-box"===s?p+=a:"content-box"===s&&(p-=i),null!==n||null!==o){LC.value=" ";var f=LC.scrollHeight-i;null!==n&&(u=f*n,"border-box"===s&&(u=u+i+a),p=Math.max(u,p)),null!==o&&(d=f*o,"border-box"===s&&(d=d+i+a),c=p>d?"":"hidden",p=Math.min(d,p))}var h={height:p,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var DC=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],AC=o.forwardRef((function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,s=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,p=n.onChange,g=n.onInternalAutoSize,m=nt(n,DC),v=He(ri(i,{value:a,postState:function(e){return null!=e?e:""}}),2),b=v[0],y=v[1],x=o.useRef();o.useImperativeHandle(t,(function(){return{textArea:x.current}}));var C=He(o.useMemo((function(){return s&&"object"===P(s)?[s.minRows,s.maxRows]:[]}),[s]),2),w=C[0],E=C[1],S=!!s,k=He(o.useState(2),2),O=k[0],$=k[1],M=He(o.useState(),2),_=M[0],N=M[1],L=function(){$(0),"test"===process.env.NODE_ENV&&(null==g||g())};_t((function(){S&&L()}),[a,w,E,S]),_t((function(){if(0===O)$(1);else if(1===O){var e=TC(x.current,!1,w,E);$(2),N(e)}else!function(){try{if(document.activeElement===x.current){var e=x.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;x.current.setSelectionRange(t,n),x.current.scrollTop=o}}catch(e){}}()}),[O]);var j=o.useRef(),T=function(){Ae.cancel(j.current)};o.useEffect((function(){return T}),[]);var D=S?_:null,A=R(R({},u),D);return 0!==O&&1!==O||(A.overflowY="hidden",A.overflowX="hidden"),o.createElement($e,{onResize:function(e){2===O&&(null==l||l(e),s&&(T(),j.current=Ae((function(){L()}))))},disabled:!(s||l)},o.createElement("textarea",h({},m,{ref:x,style:A,className:f(r,c,I({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:function(e){y(e.target.value),null==p||p(e)}})))})),zC=["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"],BC=e.forwardRef((function(t,n){var o,r=t.defaultValue,i=t.value,a=t.onFocus,s=t.onBlur,l=t.onChange,c=t.allowClear,u=t.maxLength,d=t.onCompositionStart,p=t.onCompositionEnd,g=t.suffix,m=t.prefixCls,v=void 0===m?"rc-textarea":m,b=t.showCount,y=t.count,x=t.className,C=t.style,w=t.disabled,E=t.hidden,S=t.classNames,k=t.styles,O=t.onResize,$=t.onClear,M=t.onPressEnter,_=t.readOnly,P=t.autoSize,N=t.onKeyDown,L=nt(t,zC),j=He(ri(r,{value:i,defaultValue:r}),2),T=j[0],D=j[1],A=null==T?"":String(T),z=He(e.useState(!1),2),B=z[0],H=z[1],F=e.useRef(!1),V=He(e.useState(null),2),W=V[0],U=V[1],X=e.useRef(null),q=e.useRef(null),G=function(){var e;return null===(e=q.current)||void 0===e?void 0:e.textArea},K=function(){G().focus()};e.useImperativeHandle(n,(function(){var e;return{resizableTextArea:q.current,focus:K,blur:function(){G().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||G()}})),e.useEffect((function(){H((function(e){return!w&&e}))}),[w]);var Y=He(e.useState(null),2),Z=Y[0],Q=Y[1];e.useEffect((function(){var e;Z&&(e=G()).setSelectionRange.apply(e,Ie(Z))}),[Z]);var J,ee=sC(y,b),te=null!==(o=ee.max)&&void 0!==o?o:u,ne=Number(te)>0,oe=ee.strategy(A),re=!!te&&oe>te,ie=function(e,t){var n=t;!F.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Q([G().selectionStart||0,G().selectionEnd||0]),D(n),rC(e.currentTarget,e,l,n)},ae=g;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:A,count:oe,maxLength:te}):"".concat(oe).concat(ne?" / ".concat(te):""),ae=e.createElement(e.Fragment,null,ae,e.createElement("span",{className:f("".concat(v,"-data-count"),null==S?void 0:S.count),style:null==k?void 0:k.count},J)));var se=!P&&!b&&!c;return e.createElement(iC,{ref:X,value:A,allowClear:c,handleReset:function(e){D(""),K(),rC(G(),e,l)},suffix:ae,prefixCls:v,classNames:R(R({},S),{},{affixWrapper:f(null==S?void 0:S.affixWrapper,I(I({},"".concat(v,"-show-count"),b),"".concat(v,"-textarea-allow-clear"),c))}),disabled:w,focused:B,className:f(x,re&&"".concat(v,"-out-of-range")),style:R(R({},C),W&&!se?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:E,readOnly:_,onClear:$},e.createElement(AC,h({},L,{autoSize:P,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&M&&M(e),null==N||N(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){H(!0),null==a||a(e)},onBlur:function(e){H(!1),null==s||s(e)},onCompositionStart:function(e){F.current=!0,null==d||d(e)},onCompositionEnd:function(e){F.current=!1,ie(e,e.currentTarget.value),null==p||p(e)},className:f(null==S?void 0:S.textarea),style:R(R({},null==k?void 0:k.textarea),{},{resize:null==C?void 0:C.resize}),disabled:w,prefixCls:v,onResize:function(e){var t;null==O||O(e),null!==(t=G())&&void 0!==t&&t.style.height&&U(!0)},ref:q,readOnly:_})))})),HC=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 FC=e.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,bordered:a=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:p,className:h,style:g,styles:m,variant:v}=e,b=HC(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=go("TextArea");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:y,direction:x,textArea:C}=o.useContext(Hr),w=bl(s),E=o.useContext(Wr),S=null!=l?l:E,{status:k,hasFeedback:O,feedbackIcon:$}=o.useContext(Zu),M=qh(k,c),_=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=_.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=_.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=_.current)||void 0===e?void 0:e.blur()}}}));const P=y("input",i),N=Ps(P),[I,L,R]=Hy(P,N),[j,T]=og("textArea",v,a),D=uC(null!=u?u:null==C?void 0:C.allowClear);return I(o.createElement(BC,Object.assign({autoComplete:null==C?void 0:C.autoComplete},b,{style:Object.assign(Object.assign({},null==C?void 0:C.style),g),styles:Object.assign(Object.assign({},null==C?void 0:C.styles),m),disabled:S,allowClear:D,className:f(R,N,h,p,null==C?void 0:C.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==C?void 0:C.classNames),{textarea:f({[`${P}-sm`]:"small"===w,[`${P}-lg`]:"large"===w},L,null==d?void 0:d.textarea,null===(n=null==C?void 0:C.classNames)||void 0===n?void 0:n.textarea),variant:f({[`${P}-${j}`]:T},Xh(P,M)),affixWrapper:f(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:"rtl"===x,[`${P}-affix-wrapper-sm`]:"small"===w,[`${P}-affix-wrapper-lg`]:"large"===w,[`${P}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},L)}),prefixCls:P,suffix:O&&o.createElement("span",{className:`${P}-textarea-suffix`},$),ref:_})))})),VC=fC;function WC(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function UC(e,n,o,r){var i=t.unstable_batchedUpdates?function(e){t.unstable_batchedUpdates(o,e)}:o;return null!=e&&e.addEventListener&&e.addEventListener(n,i,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(n,i,r)}}}VC.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(Hr),{prefixCls:i,className:a}=t,s=n("input-group",i),l=n("input"),[c,u]=Hy(l),d=f(s,{[`${s}-lg`]:"large"===t.size,[`${s}-sm`]:"small"===t.size,[`${s}-compact`]:t.compact,[`${s}-rtl`]:"rtl"===r},u,a),p=e.useContext(Zu),h=e.useMemo((()=>Object.assign(Object.assign({},p),{isFormItemInput:!1})),[p]);if("production"!==process.env.NODE_ENV){go("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return c(o.createElement("span",{className:d,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},o.createElement(Zu.Provider,{value:h},t.children)))},VC.Search=IC,VC.TextArea=FC,VC.Password=PC,VC.OTP=xC;var XC=o.createContext(null),qC=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,s=t.rootClassName,l=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,p=t.current,h=t.transform,g=t.count,m=t.scale,v=t.minScale,b=t.maxScale,y=t.closeIcon,x=t.onSwitchLeft,C=t.onSwitchRight,w=t.onClose,E=t.onZoomIn,S=t.onZoomOut,k=t.onRotateRight,O=t.onRotateLeft,$=t.onFlipX,M=t.onFlipY,_=t.onReset,P=t.toolbarRender,N=t.zIndex,L=t.image,j=e.useContext(XC),T=l.rotateLeft,D=l.rotateRight,A=l.zoomIn,z=l.zoomOut,B=l.close,H=l.left,F=l.right,V=l.flipX,W=l.flipY,U="".concat(a,"-operations-operation");o.useEffect((function(){var e=function(e){e.keyCode===Ns.ESC&&w()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var X=[{icon:W,onClick:M,type:"flipY"},{icon:V,onClick:$,type:"flipX"},{icon:T,onClick:O,type:"rotateLeft"},{icon:D,onClick:k,type:"rotateRight"},{icon:z,onClick:S,type:"zoomOut",disabled:m<=v},{icon:A,onClick:E,type:"zoomIn",disabled:m===b}].map((function(e){var t,n=e.icon,r=e.onClick,i=e.type,s=e.disabled;return o.createElement("div",{className:f(U,(t={},I(t,"".concat(a,"-operations-operation-").concat(i),!0),I(t,"".concat(a,"-operations-operation-disabled"),!!s),t)),onClick:r,key:i},n)})),q=o.createElement("div",{className:"".concat(a,"-operations")},X);return o.createElement(wa,{visible:n,motionName:r},(function(e){var t=e.className,n=e.style;return o.createElement(_c,{open:!0,getContainer:null!=i?i:document.body},o.createElement("div",{className:f("".concat(a,"-operations-wrapper"),t,s),style:R(R({},n),{},{zIndex:N})},null===y?null:o.createElement("button",{className:"".concat(a,"-close"),onClick:w},y||B),u&&o.createElement(o.Fragment,null,o.createElement("div",{className:f("".concat(a,"-switch-left"),I({},"".concat(a,"-switch-left-disabled"),0===p)),onClick:x},H),o.createElement("div",{className:f("".concat(a,"-switch-right"),I({},"".concat(a,"-switch-right-disabled"),p===g-1)),onClick:C},F)),o.createElement("div",{className:"".concat(a,"-footer")},d&&o.createElement("div",{className:"".concat(a,"-progress")},c?c(p+1,g):"".concat(p+1," / ").concat(g)),P?P(q,R(R({icons:{flipYIcon:X[0],flipXIcon:X[1],rotateLeftIcon:X[2],rotateRightIcon:X[3],zoomOutIcon:X[4],zoomInIcon:X[5]},actions:{onFlipY:M,onFlipX:$,onRotateLeft:O,onRotateRight:k,onZoomOut:S,onZoomIn:E,onReset:_,onClose:w},transform:h},j?{current:p,total:g}:{}),{},{image:L})):q)))}))},GC={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function KC(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return I({},e,i);if(t<0&&r<o)return I({},e,-i)}else if(t<0||r>o)return I({},e,t<0?i:-i);return{}}function YC(e,t,n,o){var r=WC(),i=r.width,a=r.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=R(R({},KC("x",n,e,i)),KC("y",o,t,a))),s}function ZC(t){var n=t.src,o=t.isCustomPlaceholder,r=t.fallback,i=He(e.useState(o?"loading":"normal"),2),a=i[0],s=i[1],l=e.useRef(!1),c="error"===a;e.useEffect((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(n).then((function(t){!t&&e&&s("error")})),function(){e=!1}}),[n]),e.useEffect((function(){o&&!l.current?s("loading"):c&&s("normal")}),[n]);var u=function(){s("normal")};return[function(e){l.current=!1,"loading"===a&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(l.current=!0,u())},c&&r?{src:r}:{onLoad:u,src:n},a]}function QC(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function JC(t,n,o,r,i,a,s){var l=i.rotate,c=i.scale,u=i.x,d=i.y,p=He(e.useState(!1),2),f=p[0],h=p[1],g=e.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),m=function(e){g.current=R(R({},g.current),e)};return e.useEffect((function(){var e;return o&&n&&(e=UC(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[o,n]),{isTouching:f,onTouchStart:function(e){if(n){e.stopPropagation(),h(!0);var t=e.touches,o=void 0===t?[]:t;o.length>1?m({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):m({point1:{x:o[0].clientX-u,y:o[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=g.current,r=o.point1,i=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=QC(e,n),i=QC(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,i,c,u),p=He(d,2),f=p[0],h=p[1],v=QC(c,u)/QC(r,i);s(v,"touchZoom",f,h,!0),m({point1:c,point2:u,eventType:"touchZoom"})}else"move"===l&&(a({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),m({eventType:"move"}))},onTouchEnd:function(){if(o){if(f&&h(!1),m({eventType:"none"}),r>c)return a({x:0,y:0,scale:r},"touchZoom");var e=t.current.offsetWidth*c,n=t.current.offsetHeight*c,i=t.current.getBoundingClientRect(),s=i.left,u=i.top,d=l%180!=0,p=YC(d?n:e,d?e:n,s,u);p&&a(R({},p),"dragRebound")}}}}var ew=["fallback","src","imgRef"],tw=["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"],nw=function(t){var n=t.fallback,o=t.src,r=t.imgRef,i=nt(t,ew),a=He(ZC({src:o,fallback:n}),2),s=a[0],l=a[1];return e.createElement("img",h({ref:function(e){r.current=e,s(e)}},i,l))},ow=function(t){var n=t.prefixCls,o=t.src,r=t.alt,i=t.imageInfo,a=t.fallback,s=t.movable,l=void 0===s||s,c=t.onClose,u=t.visible,d=t.icons,p=void 0===d?{}:d,g=t.rootClassName,m=t.closeIcon,v=t.getContainer,b=t.current,y=void 0===b?0:b,x=t.count,C=void 0===x?1:x,w=t.countRender,E=t.scaleStep,k=void 0===E?.5:E,O=t.minScale,$=void 0===O?1:O,M=t.maxScale,_=void 0===M?50:M,P=t.transitionName,N=void 0===P?"zoom":P,L=t.maskTransitionName,j=void 0===L?"fade":L,T=t.imageRender,D=t.imgCommonProps,A=t.toolbarRender,z=t.onTransform,B=t.onChange,H=nt(t,tw),F=e.useRef(),V=e.useContext(XC),W=V&&C>1,U=V&&C>=1,X=He(e.useState(!0),2),q=X[0],G=X[1],K=function(t,n,o,r){var i=e.useRef(null),a=e.useRef([]),s=He(e.useState(GC),2),l=s[0],c=s[1],u=function(e,t){null===i.current&&(a.current=[],i.current=Ae((function(){c((function(e){var n=e;return a.current.forEach((function(e){n=R(R({},n),e)})),i.current=null,null==r||r({transform:n,action:t}),n}))}))),a.current.push(R(R({},l),e))};return{transform:l,resetTransform:function(e){c(GC),ot(GC,l)||null==r||r({transform:GC,action:e})},updateTransform:u,dispatchZoomChange:function(e,r,i,a,s){var c=t.current,d=c.width,p=c.height,f=c.offsetWidth,h=c.offsetHeight,g=c.offsetLeft,m=c.offsetTop,v=e,b=l.scale*e;b>o?(b=o,v=o/l.scale):b<n&&(v=(b=s?b:n)/l.scale);var y=null!=i?i:innerWidth/2,x=null!=a?a:innerHeight/2,C=v-1,w=C*d*.5,E=C*p*.5,S=C*(y-l.x-g),k=C*(x-l.y-m),O=l.x-(S-w),$=l.y-(k-E);if(e<1&&1===b){var M=f*b,_=h*b,P=WC(),N=P.width,I=P.height;M<=N&&_<=I&&(O=0,$=0)}u({x:O,y:$,scale:b},r)}}}(F,$,_,z),Y=K.transform,Z=K.resetTransform,Q=K.updateTransform,J=K.dispatchZoomChange,ee=function(t,n,o,r,i,a,s){var l=i.rotate,c=i.scale,u=i.x,d=i.y,p=He(e.useState(!1),2),f=p[0],h=p[1],g=e.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),m=function(e){o&&f&&a({x:e.pageX-g.current.diffX,y:e.pageY-g.current.diffY},"move")},v=function(){if(o&&f){h(!1);var e=g.current,n=e.transformX,r=e.transformY;if(u===n||d===r)return;var i=t.current.offsetWidth*c,s=t.current.offsetHeight*c,p=t.current.getBoundingClientRect(),m=p.left,v=p.top,b=l%180!=0,y=YC(b?s:i,b?i:s,m,v);y&&a(R({},y),"dragRebound")}};return e.useEffect((function(){var e,t,o,r;if(n){o=UC(window,"mouseup",v,!1),r=UC(window,"mousemove",m,!1);try{window.top!==window.self&&(e=UC(window.top,"mouseup",v,!1),t=UC(window.top,"mousemove",m,!1))}catch(e){S(!1,"[rc-image] ".concat(e))}}return function(){var n,i,a,s;null===(n=o)||void 0===n||n.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(s=t)||void 0===s||s.remove()}}),[o,f,u,d,l,n]),{isMoving:f,onMouseDown:function(e){n&&0===e.button&&(e.preventDefault(),e.stopPropagation(),g.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},h(!0))},onMouseMove:m,onMouseUp:v,onWheel:function(e){if(o&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),n=1+Math.min(t,1)*r;e.deltaY>0&&(n=1/n),s(n,"wheel",e.clientX,e.clientY)}}}}(F,l,u,k,Y,Q,J),te=ee.isMoving,ne=ee.onMouseDown,oe=ee.onWheel,re=JC(F,l,u,$,Y,Q,J),ie=re.isTouching,ae=re.onTouchStart,se=re.onTouchMove,le=re.onTouchEnd,ce=Y.rotate,ue=Y.scale,de=f(I({},"".concat(n,"-moving"),te));e.useEffect((function(){q||G(!0)}),[q]);var pe=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),y>0&&(G(!1),Z("prev"),null==B||B(y-1,y))},fe=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),y<C-1&&(G(!1),Z("next"),null==B||B(y+1,y))},he=function(e){u&&W&&(e.keyCode===Ns.LEFT?pe():e.keyCode===Ns.RIGHT&&fe())};e.useEffect((function(){var e=UC(window,"keydown",he,!1);return function(){e.remove()}}),[u,W,y]);var ge=e.createElement(nw,h({},D,{width:t.width,height:t.height,imgRef:F,className:"".concat(n,"-img"),alt:r,style:{transform:"translate3d(".concat(Y.x,"px, ").concat(Y.y,"px, 0) scale3d(").concat(Y.flipX?"-":"").concat(ue,", ").concat(Y.flipY?"-":"").concat(ue,", 1) rotate(").concat(ce,"deg)"),transitionDuration:(!q||ie)&&"0s"},fallback:a,src:o,onWheel:oe,onMouseDown:ne,onDoubleClick:function(e){u&&(1!==ue?Q({x:0,y:0,scale:1},"doubleClick"):J(1+k,"doubleClick",e.clientX,e.clientY))},onTouchStart:ae,onTouchMove:se,onTouchEnd:le,onTouchCancel:le})),me=R({url:o,alt:r},i);return e.createElement(e.Fragment,null,e.createElement(Vc,h({transitionName:N,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:de},rootClassName:g,getContainer:v},H,{afterClose:function(){Z("close")}}),e.createElement("div",{className:"".concat(n,"-img-wrapper")},T?T(ge,R({transform:Y,image:me},V?{current:y}:{})):ge)),e.createElement(qC,{visible:u,transform:Y,maskTransitionName:j,closeIcon:m,getContainer:v,prefixCls:n,rootClassName:g,icons:p,countRender:w,showSwitch:W,showProgress:U,current:y,count:C,scale:ue,minScale:$,maxScale:_,toolbarRender:A,onSwitchLeft:pe,onSwitchRight:fe,onZoomIn:function(){J(1+k,"zoomIn")},onZoomOut:function(){J(1/(1+k),"zoomOut")},onRotateRight:function(){Q({rotate:ce+90},"rotateRight")},onRotateLeft:function(){Q({rotate:ce-90},"rotateLeft")},onFlipX:function(){Q({flipX:!Y.flipX},"flipX")},onFlipY:function(){Q({flipY:!Y.flipY},"flipY")},onClose:c,onReset:function(){Z("reset")},zIndex:void 0!==H.zIndex?H.zIndex+1:void 0,image:me}))},rw=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var iw=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],aw=["src"],sw=0;var lw=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],cw=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],uw=function(t){var n=t.src,r=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,u=t.placeholder,d=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,C=t.onError,w=t.wrapperClassName,E=t.wrapperStyle,S=t.rootClassName,k=nt(t,lw),O=u&&!0!==u,$="object"===P(b)?b:{},M=$.src,_=$.visible,N=void 0===_?void 0:_,L=$.onVisibleChange,j=void 0===L?i:L,T=$.getContainer,D=void 0===T?void 0:T,A=$.mask,z=$.maskClassName,B=$.movable,H=$.icons,F=$.scaleStep,V=$.minScale,W=$.maxScale,U=$.imageRender,X=$.toolbarRender,q=nt($,cw),G=null!=M?M:n,K=He(ri(!!N,{value:N,onChange:j}),2),Y=K[0],Z=K[1],Q=He(ZC({src:n,isCustomPlaceholder:O,fallback:d}),3),J=Q[0],ee=Q[1],te=Q[2],ne=He(e.useState(null),2),oe=ne[0],re=ne[1],ie=e.useContext(XC),ae=!!b,se=f(s,w,S,I({},"".concat(s,"-error"),"error"===te)),le=e.useMemo((function(){var e={};return rw.forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e}),rw.map((function(e){return t[e]}))),ce=function(e,t){var n=He(o.useState((function(){return String(sw+=1)})),1)[0],r=o.useContext(XC),i={data:t,canPreview:e};return o.useEffect((function(){if(r)return r.register(n,i)}),[]),o.useEffect((function(){r&&r.register(n,i)}),[e,t]),n}(ae,e.useMemo((function(){return R(R({},le),{},{src:G})}),[G,le]));return o.createElement(o.Fragment,null,o.createElement("div",h({},k,{className:se,onClick:ae?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;ie?ie.onPreview(ce,G,n,o):(re({x:n,y:o}),Z(!0)),null==x||x(e)}:x,style:R({width:p,height:g},E)}),o.createElement("img",h({},le,{className:f("".concat(s,"-img"),I({},"".concat(s,"-img-placeholder"),!0===u),y),style:R({height:g},m),ref:J},ee,{width:p,height:g,onError:C})),"loading"===te&&o.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},u),A&&ae&&o.createElement("div",{className:f("".concat(s,"-mask"),z),style:{display:"none"===(null==m?void 0:m.display)?"none":void 0}},A)),!ie&&ae&&o.createElement(ow,h({"aria-hidden":!Y,visible:Y,prefixCls:c,onClose:function(){Z(!1),re(null)},mousePosition:oe,src:G,alt:r,imageInfo:{width:p,height:g},fallback:d,getContainer:D,icons:H,movable:B,scaleStep:F,minScale:V,maxScale:W,rootClassName:S,imageRender:U,imgCommonProps:le,toolbarRender:X},q)))};uw.PreviewGroup=function(t){var n,r=t.previewPrefixCls,i=void 0===r?"rc-image-preview":r,a=t.children,s=t.icons,l=void 0===s?{}:s,c=t.items,u=t.preview,d=t.fallback,p="object"===P(u)?u:{},f=p.visible,g=p.onVisibleChange,m=p.getContainer,v=p.current,b=p.movable,y=p.minScale,x=p.maxScale,C=p.countRender,w=p.closeIcon,E=p.onChange,S=p.onTransform,k=p.toolbarRender,O=p.imageRender,$=nt(p,iw),M=function(e){var t=He(o.useState({}),2),n=t[0],r=t[1],i=o.useCallback((function(e,t){return r((function(n){return R(R({},n),{},I({},e,t))})),function(){r((function(t){var n=R({},t);return delete n[e],n}))}}),[]);return[o.useMemo((function(){return e?e.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(Ie(rw)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(n).reduce((function(e,t){var o=n[t],r=o.canPreview,i=o.data;return r&&e.push({data:i,id:t}),e}),[])}),[e,n]),i,!!e]}(c),_=He(M,3),N=_[0],L=_[1],j=_[2],T=He(ri(0,{value:v}),2),D=T[0],A=T[1],z=He(e.useState(!1),2),B=z[0],H=z[1],F=(null===(n=N[D])||void 0===n?void 0:n.data)||{},V=F.src,W=nt(F,aw),U=He(ri(!!f,{value:f,onChange:function(e,t){null==g||g(e,t,D)}}),2),X=U[0],q=U[1],G=He(e.useState(null),2),K=G[0],Y=G[1],Z=o.useCallback((function(e,t,n,o){var r=j?N.findIndex((function(e){return e.data.src===t})):N.findIndex((function(t){return t.id===e}));A(r<0?0:r),q(!0),Y({x:n,y:o}),H(!0)}),[N,j]);o.useEffect((function(){X?B||A(0):H(!1)}),[X]);var Q=o.useMemo((function(){return{register:L,onPreview:Z}}),[L,Z]);return o.createElement(XC.Provider,{value:Q},a,o.createElement(ow,h({"aria-hidden":!X,movable:b,visible:X,prefixCls:i,closeIcon:w,onClose:function(){q(!1),Y(null)},mousePosition:K,imgCommonProps:W,src:V,fallback:d,icons:l,minScale:y,maxScale:x,getContainer:m,current:D,count:N.length,countRender:C,onTransform:S,toolbarRender:k,imageRender:O,onChange:function(e,t){A(e),null==E||E(e,t)}},$)))},"production"!==process.env.NODE_ENV&&(uw.displayName="Image");var dw={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"},pw=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:dw}))},fw=o.forwardRef(pw);"production"!==process.env.NODE_ENV&&(fw.displayName="RotateLeftOutlined");var hw={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"},gw=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:hw}))},mw=o.forwardRef(gw);"production"!==process.env.NODE_ENV&&(mw.displayName="RotateRightOutlined");var vw={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"},bw=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:vw}))},yw=o.forwardRef(bw);"production"!==process.env.NODE_ENV&&(yw.displayName="SwapOutlined");var xw={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"},Cw=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:xw}))},ww=o.forwardRef(Cw);"production"!==process.env.NODE_ENV&&(ww.displayName="ZoomInOutlined");var Ew={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"},Sw=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Ew}))},kw=o.forwardRef(Sw);"production"!==process.env.NODE_ENV&&(kw.displayName="ZoomOutOutlined");const Ow=e=>({position:e||"absolute",inset:0}),$w=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 Yo("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Mi),{padding:`0 ${Et(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},Mw=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,p=new Yo(n).setAlpha(.1),f=p.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:p.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Et(a)}`,backgroundColor:p.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}}}}},_w=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,s=new Yo(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}}},Pw=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({},Ow()),{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({},Ow()),{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()},"&":[Mw(e),_w(e)]}]},Nw=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({},$w(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Ow())}}},Iw=e=>{const{previewCls:t}=e;return{[`${t}-root`]:hp(e,"zoom"),"&":Fd(e,!0)}};var Lw=Ri("Image",(e=>{const t=`${e.componentCls}-preview`,n=li(e,{previewCls:t,modalMaskBg:new Yo("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Nw(n),Pw(n),mp(li(n,{componentCls:t})),Iw(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Yo(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Yo(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Yo(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),Rw=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 jw={rotateLeft:o.createElement(fw,null),rotateRight:o.createElement(mw,null),zoomIn:o.createElement(ww,null),zoomOut:o.createElement(kw,null),close:o.createElement(gs,null),left:o.createElement(Tb,null),right:o.createElement(ov,null),flipX:o.createElement(yw,null),flipY:o.createElement(yw,{rotate:90})};var Tw=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 Dw=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:s}=e,l=Tw(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=Eo,getPopupContainer:d,image:p}=o.useContext(Hr),h=c("image",n),g=c(),m=u.Image||Eo.Image,v=Ps(h),[b,y,x]=Lw(h,v),C=f(a,y,x,v),w=f(i,y,null==p?void 0:p.className),[E]=zs("ImagePreview","object"==typeof r?r.zIndex:void 0),S=o.useMemo((()=>{var e;if(!1===r)return r;const t="object"==typeof r?r:{},{getContainer:n,closeIcon:i}=t,a=Tw(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${h}-mask-info`},o.createElement(OC,null),null==m?void 0:m.preview),icons:jw},a),{getContainer:null!=n?n:d,transitionName:sl(g,"zoom",t.transitionName),maskTransitionName:sl(g,"fade",t.maskTransitionName),zIndex:E,closeIcon:null!=i?i:null===(e=null==p?void 0:p.preview)||void 0===e?void 0:e.closeIcon})}),[r,m,null===(t=null==p?void 0:p.preview)||void 0===t?void 0:t.closeIcon]),k=Object.assign(Object.assign({},null==p?void 0:p.style),s);return b(o.createElement(uw,Object.assign({prefixCls:h,preview:S,rootClassName:C,className:w,style:k},l)))};Dw.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,r=Rw(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=o.useContext(Hr),a=i("image",t),s=`${a}-preview`,l=i(),c=Ps(a),[u,d,p]=Lw(a,c),[h]=zs("ImagePreview","object"==typeof n?n.zIndex:void 0),g=o.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},o=f(d,p,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:sl(l,"zoom",t.transitionName),maskTransitionName:sl(l,"fade",t.maskTransitionName),rootClassName:o,zIndex:h})}),[n]);return u(o.createElement(uw.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:jw},r)))},"production"!==process.env.NODE_ENV&&(Dw.displayName="Image");const Aw=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}}}},zw=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:p,zeroTriggerWidth:f,motionDurationMid:h,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 ${h}, 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:Et(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${h}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(f).mul(-1).equal(),zIndex:1,width:f,height:p,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(f).mul(-1).equal(),borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},Aw(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Et(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 Bw=Ri("Layout",(e=>[zw(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"]]}),Hw=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 Fw(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>{const i=o.forwardRef(((r,i)=>o.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},r))));return"production"!==process.env.NODE_ENV&&(i.displayName=r),i}}const Vw=o.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,s=Hw(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=o.useContext(Hr),c=l("layout",n),[u,d,p]=Bw(c),h=r?`${c}-${r}`:c;return u(o.createElement(a,Object.assign({className:f(n||h,i,d,p),ref:t},s)))})),Ww=o.forwardRef(((e,t)=>{const{direction:n}=o.useContext(Hr),[r,i]=o.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:p}=e,h=Me(Hw(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:g,layout:m}=o.useContext(Hr),v=g("layout",a),b=function(e,t,n){return"boolean"==typeof n?n:!!e.length||C(t).some((e=>e.type===Fb))}(r,c,u),[y,x,w]=Bw(v),E=f(v,{[`${v}-has-sider`]:b,[`${v}-rtl`]:"rtl"===n},null==m?void 0:m.className,s,l,x,w),S=o.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Ie(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return y(o.createElement(Db.Provider,{value:S},o.createElement(d,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},null==m?void 0:m.style),p)},h),c)))})),Uw=Fw({tagName:"div",displayName:"Layout"})(Ww),Xw=Fw({suffixCls:"header",tagName:"header",displayName:"Header"})(Vw),qw=Fw({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Vw),Gw=Fw({suffixCls:"content",tagName:"main",displayName:"Content"})(Vw),Kw=Uw;Kw.Header=Xw,Kw.Footer=qw,Kw.Content=Gw,Kw.Sider=Fb,Kw._InternalSiderContext=Bb;var Yw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Zw=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Yw}))},Qw=o.forwardRef(Zw);"production"!==process.env.NODE_ENV&&(Qw.displayName="DoubleLeftOutlined");var Jw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},eE=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:Jw}))},tE=o.forwardRef(eE);"production"!==process.env.NODE_ENV&&(tE.displayName="DoubleRightOutlined");var nE={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},oE=["10","20","50","100"],rE=function(t){var n=t.pageSizeOptions,o=void 0===n?oE:n,r=t.locale,i=t.changeSize,a=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.selectComponentClass,d=t.selectPrefixCls,p=t.disabled,f=t.buildOptionText,h=He(e.useState(""),2),g=h[0],m=h[1],v=function(){return!g||Number.isNaN(g)?void 0:Number(g)},b="function"==typeof f?f:function(e){return"".concat(e," ").concat(r.items_per_page)},y=function(e){""!==g&&(e.keyCode!==Ns.ENTER&&"click"!==e.type||(m(""),null==l||l(v())))},x="".concat(c,"-options");if(!i&&!l)return null;var C=null,w=null,E=null;if(i&&u){var S=(o.some((function(e){return e.toString()===a.toString()}))?o:o.concat([a.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(t,n){return e.createElement(u.Option,{key:n,value:t.toString()},b(t))}));C=e.createElement(u,{disabled:p,prefixCls:d,showSearch:!1,className:"".concat(x,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||o[0]).toString(),onChange:function(e){null==i||i(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},S)}return l&&(s&&(E="boolean"==typeof s?e.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:p,className:"".concat(x,"-quick-jumper-button")},r.jump_to_confirm):e.createElement("span",{onClick:y,onKeyUp:y},s)),w=e.createElement("div",{className:"".concat(x,"-quick-jumper")},r.jump_to,e.createElement("input",{disabled:p,type:"text",value:g,onChange:function(e){m(e.target.value)},onKeyUp:y,onBlur:function(e){s||""===g||(m(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(v()))},"aria-label":r.page}),r.page,E)),e.createElement("li",{className:x},C,w)};"production"!==process.env.NODE_ENV&&(rE.displayName="Options");var iE=function(t){var n,o=t.rootPrefixCls,r=t.page,i=t.active,a=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(o,"-item"),p=f(d,"".concat(d,"-").concat(r),(I(n={},"".concat(d,"-active"),i),I(n,"".concat(d,"-disabled"),!r),n),a),h=u(r,"page",e.createElement("a",{rel:"nofollow"},r));return h?e.createElement("li",{title:s?String(r):null,className:p,onClick:function(){l(r)},onKeyDown:function(e){c(e,l,r)},tabIndex:0},h):null};"production"!==process.env.NODE_ENV&&(iE.displayName="Pager");var aE=function(e,t,n){return n};function sE(){}function lE(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function cE(e,t,n){var o=void 0===e?t:e;return Math.floor((n-1)/o)+1}var uE=function(t){var n,o=t.prefixCls,r=void 0===o?"rc-pagination":o,i=t.selectPrefixCls,a=void 0===i?"rc-select":i,s=t.className,l=t.selectComponentClass,c=t.current,u=t.defaultCurrent,d=void 0===u?1:u,p=t.total,g=void 0===p?0:p,m=t.pageSize,v=t.defaultPageSize,b=void 0===v?10:v,y=t.onChange,x=void 0===y?sE:y,C=t.hideOnSinglePage,w=t.align,E=t.showPrevNextJumpers,S=void 0===E||E,k=t.showQuickJumper,O=t.showLessItems,$=t.showTitle,_=void 0===$||$,N=t.onShowSizeChange,L=void 0===N?sE:N,j=t.locale,T=void 0===j?nE:j,D=t.style,A=t.totalBoundaryShowSizeChanger,z=void 0===A?50:A,B=t.disabled,H=t.simple,F=t.showTotal,V=t.showSizeChanger,W=t.pageSizeOptions,U=t.itemRender,X=void 0===U?aE:U,q=t.jumpPrevIcon,G=t.jumpNextIcon,K=t.prevIcon,Y=t.nextIcon,Z=e.useRef(null),Q=He(ri(10,{value:m,defaultValue:b}),2),J=Q[0],ee=Q[1],te=He(ri(1,{value:c,defaultValue:d,postState:function(e){return Math.max(1,Math.min(e,cE(void 0,J,g)))}}),2),ne=te[0],oe=te[1],re=He(e.useState(ne),2),ie=re[0],ae=re[1];e.useEffect((function(){ae(ne)}),[ne]);var se=x!==sE,le="current"in t;"production"!==process.env.NODE_ENV&&M(!le||se,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ce=Math.max(1,ne-(O?3:5)),ue=Math.min(cE(void 0,J,g),ne+(O?3:5));function de(n,o){var i=n||e.createElement("button",{type:"button","aria-label":o,className:"".concat(r,"-item-link")});return"function"==typeof n&&(i=e.createElement(n,R({},t))),i}function pe(e){var t=e.target.value,n=cE(void 0,J,g);return""===t?t:Number.isNaN(Number(t))?ie:t>=n?n:Number(t)}var fe=g>J&&k;function he(e){var t=pe(e);switch(t!==ie&&ae(t),e.keyCode){case Ns.ENTER:ge(t);break;case Ns.UP:ge(t-1);break;case Ns.DOWN:ge(t+1)}}function ge(e){if(function(e){return lE(e)&&e!==ne&&lE(g)&&g>0}(e)&&!B){var t=cE(void 0,J,g),n=e;return e>t?n=t:e<1&&(n=1),n!==ie&&ae(n),oe(n),null==x||x(n,J),n}return ne}var me=ne>1,ve=ne<cE(void 0,J,g),be=null!=V?V:g>z;function ye(){me&&ge(ne-1)}function xe(){ve&&ge(ne+1)}function Ce(){ge(ce)}function we(){ge(ue)}function Ee(e,t){if("Enter"===e.key||e.charCode===Ns.ENTER||e.keyCode===Ns.ENTER){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];t.apply(void 0,o)}}function Se(e){"click"!==e.type&&e.keyCode!==Ns.ENTER||ge(ie)}var ke=null,Oe=Os(t,{aria:!0,data:!0}),$e=F&&e.createElement("li",{className:"".concat(r,"-total-text")},F(g,[0===g?0:(ne-1)*J+1,ne*J>g?g:ne*J])),Me=null,_e=cE(void 0,J,g);if(C&&g<=J)return null;var Pe=[],Ne={rootPrefixCls:r,onClick:ge,onKeyPress:Ee,showTitle:_,itemRender:X,page:-1},Ie=ne-1>0?ne-1:0,Le=ne+1<_e?ne+1:_e,Re=k&&k.goButton,je="object"===P(H)?H.readOnly:!H,Te=Re,De=null;H&&(Re&&(Te="boolean"==typeof Re?e.createElement("button",{type:"button",onClick:Se,onKeyUp:Se},T.jump_to_confirm):e.createElement("span",{onClick:Se,onKeyUp:Se},Re),Te=e.createElement("li",{title:_?"".concat(T.jump_to).concat(ne,"/").concat(_e):null,className:"".concat(r,"-simple-pager")},Te)),De=e.createElement("li",{title:_?"".concat(ne,"/").concat(_e):null,className:"".concat(r,"-simple-pager")},je?ie:e.createElement("input",{type:"text",value:ie,disabled:B,onKeyDown:function(e){e.keyCode!==Ns.UP&&e.keyCode!==Ns.DOWN||e.preventDefault()},onKeyUp:he,onChange:he,onBlur:function(e){ge(pe(e))},size:3}),e.createElement("span",{className:"".concat(r,"-slash")},"/"),_e));var Ae=O?1:2;if(_e<=3+2*Ae){_e||Pe.push(e.createElement(iE,h({},Ne,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var ze=1;ze<=_e;ze+=1)Pe.push(e.createElement(iE,h({},Ne,{key:ze,page:ze,active:ne===ze})))}else{var Be=O?T.prev_3:T.prev_5,Fe=O?T.next_3:T.next_5,Ve=X(ce,"jump-prev",de(q,"prev page")),We=X(ue,"jump-next",de(G,"next page"));S&&(ke=Ve?e.createElement("li",{title:_?Be:null,key:"prev",onClick:Ce,tabIndex:0,onKeyDown:function(e){Ee(e,Ce)},className:f("".concat(r,"-jump-prev"),I({},"".concat(r,"-jump-prev-custom-icon"),!!q))},Ve):null,Me=We?e.createElement("li",{title:_?Fe:null,key:"next",onClick:we,tabIndex:0,onKeyDown:function(e){Ee(e,we)},className:f("".concat(r,"-jump-next"),I({},"".concat(r,"-jump-next-custom-icon"),!!G))},We):null);var Ue=Math.max(1,ne-Ae),Xe=Math.min(ne+Ae,_e);ne-1<=Ae&&(Xe=1+2*Ae),_e-ne<=Ae&&(Ue=_e-2*Ae);for(var qe=Ue;qe<=Xe;qe+=1)Pe.push(e.createElement(iE,h({},Ne,{key:qe,page:qe,active:ne===qe})));if(ne-1>=2*Ae&&3!==ne&&(Pe[0]=e.cloneElement(Pe[0],{className:f("".concat(r,"-item-after-jump-prev"),Pe[0].props.className)}),Pe.unshift(ke)),_e-ne>=2*Ae&&ne!==_e-2){var Ge=Pe[Pe.length-1];Pe[Pe.length-1]=e.cloneElement(Ge,{className:f("".concat(r,"-item-before-jump-next"),Ge.props.className)}),Pe.push(Me)}1!==Ue&&Pe.unshift(e.createElement(iE,h({},Ne,{key:1,page:1}))),Xe!==_e&&Pe.push(e.createElement(iE,h({},Ne,{key:_e,page:_e})))}var Ke=function(t){var n=X(t,"prev",de(K,"prev page"));return e.isValidElement(n)?e.cloneElement(n,{disabled:!me}):n}(Ie);if(Ke){var Ye=!me||!_e;Ke=e.createElement("li",{title:_?T.prev_page:null,onClick:ye,tabIndex:Ye?null:0,onKeyDown:function(e){Ee(e,ye)},className:f("".concat(r,"-prev"),I({},"".concat(r,"-disabled"),Ye)),"aria-disabled":Ye},Ke)}var Ze,Qe,Je=function(t){var n=X(t,"next",de(Y,"next page"));return e.isValidElement(n)?e.cloneElement(n,{disabled:!ve}):n}(Le);Je&&(H?(Ze=!ve,Qe=me?0:null):Qe=(Ze=!ve||!_e)?null:0,Je=e.createElement("li",{title:_?T.next_page:null,onClick:xe,tabIndex:Qe,onKeyDown:function(e){Ee(e,xe)},className:f("".concat(r,"-next"),I({},"".concat(r,"-disabled"),Ze)),"aria-disabled":Ze},Je));var et=f(r,s,(I(n={},"".concat(r,"-start"),"start"===w),I(n,"".concat(r,"-center"),"center"===w),I(n,"".concat(r,"-end"),"end"===w),I(n,"".concat(r,"-simple"),H),I(n,"".concat(r,"-disabled"),B),n));return e.createElement("ul",h({className:et,style:D,ref:Z},Oe),$e,Ke,H?De:Pe,Je,e.createElement(rE,{locale:T,rootPrefixCls:r,disabled:B,selectComponentClass:l,selectPrefixCls:a,changeSize:be?function(e){var t=cE(e,J,g),n=ne>t&&0!==t?t:ne;ee(e),ae(n),null==L||L(ne,e),oe(n),null==x||x(n,e)}:null,pageSize:J,pageSizeOptions:W,quickGo:fe?ge:null,goButton:Te}))};"production"!==process.env.NODE_ENV&&(uE.displayName="Pagination");const dE=e=>o.createElement(Ag,Object.assign({},e,{showSearch:!0,size:"small"})),pE=e=>o.createElement(Ag,Object.assign({},e,{showSearch:!0,size:"middle"}));dE.Option=Ag.Option,pE.Option=Ag.Option;const fE=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},hE=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Et(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Et(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Et(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Et(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Et(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Et(e.itemSizeSM),input:Object.assign(Object.assign({},Ny(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},gE=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:Et(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Et(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Et(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Et(e.inputOutlineOffset)} 0 ${Et(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},mE=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Et(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Et(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Et(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Iy(e)),yy(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},by(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},vE=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Et(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Et(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Et(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},bE=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_i(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Et(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),vE(e)),mE(e)),gE(e)),hE(e)),fE(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},yE=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ii(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ni(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Ni(e))}}}},xE=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},my(e)),CE=e=>li(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},gy(e));var wE=Ri("Pagination",(e=>{const t=CE(e);return[bE(t),yE(t)]}),xE);const EE=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Et(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var SE=Ti(["Pagination","bordered"],(e=>{const t=CE(e);return[EE(t)]}),xE),kE=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 OE=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:s,size:l,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:p}=e,h=kE(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:g}=Wg(d),[,m]=Oi(),{getPrefixCls:v,direction:b,pagination:y={}}=o.useContext(Hr),x=v("pagination",n),[C,w,E]=wE(x),S=null!=p?p:y.showSizeChanger,k=o.useMemo((()=>{const e=o.createElement("span",{className:`${x}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===b?o.createElement(ov,null):o.createElement(Tb,null)),nextIcon:o.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===b?o.createElement(Tb,null):o.createElement(ov,null)),jumpPrevIcon:o.createElement("a",{className:`${x}-item-link`},o.createElement("div",{className:`${x}-item-container`},"rtl"===b?o.createElement(tE,{className:`${x}-item-link-icon`}):o.createElement(Qw,{className:`${x}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${x}-item-link`},o.createElement("div",{className:`${x}-item-container`},"rtl"===b?o.createElement(Qw,{className:`${x}-item-link-icon`}):o.createElement(tE,{className:`${x}-item-link-icon`}),e))}}),[b,x]),[O]=_o("Pagination",bo),$=Object.assign(Object.assign({},O),c),M=bl(l),_="small"===M||!(!g||M||!d),P=v("select",r),N=f({[`${x}-${t}`]:!!t,[`${x}-mini`]:_,[`${x}-rtl`]:"rtl"===b,[`${x}-bordered`]:m.wireframe},null==y?void 0:y.className,i,a,w,E),I=Object.assign(Object.assign({},null==y?void 0:y.style),s);return C(o.createElement(o.Fragment,null,m.wireframe&&o.createElement(SE,{prefixCls:x}),o.createElement(uE,Object.assign({},k,h,{style:I,prefixCls:x,selectPrefixCls:P,className:N,selectComponentClass:u||(_?dE:pE),locale:$,showSizeChanger:S}))))};"production"!==process.env.NODE_ENV&&(OE.displayName="Pagination");var $E=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};var ME=qp((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:s,children:l,footer:c}=e,u=$E(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=o.useContext(Hr),p=d(),h=t||d("modal"),g=Ps(p),[m,v,b]=Cp(h,g),y=`${h}-confirm`;let x={};return x=a?{closable:null!=i&&i,title:"",footer:"",children:o.createElement(_p,Object.assign({},e,{prefixCls:h,confirmPrefixCls:y,rootPrefixCls:p,content:l}))}:{closable:null==i||i,title:s,footer:null!==c&&o.createElement(jd,Object.assign({},e)),children:l},m(o.createElement(zc,Object.assign({prefixCls:h,className:f(v,`${h}-pure-panel`,a&&y,a&&`${y}-${a}`,n,b,g)},u,{closeIcon:Rd(h,r),closable:i},x)))}));function _E(e){return Tp(Dp(e))}const PE=kp;PE.useModal=function(){const e=o.useRef(null),[t,n]=o.useState([]);o.useEffect((()=>{if(t.length){Ie(t).forEach((e=>{e()})),n([])}}),[t]);const r=o.useCallback((t=>function(r){var i;Up+=1;const a=o.createRef();let s;const l=new Promise((e=>{s=e}));let c,u=!1;const d=o.createElement(Wp,{key:`modal-${Up}`,config:t(r),ref:a,afterClose:()=>{null==c||c()},isSilent:()=>u,onConfirm:e=>{s(e)}});c=null===(i=e.current)||void 0===i?void 0:i.patchElement(d),c&&Ip.push(c);const p={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(Ie(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(Ie(e),[t])))},then:e=>(u=!0,l.then(e))};return p}),[]);return[o.useMemo((()=>({info:r(Ap),success:r(zp),error:r(Bp),warning:r(Dp),confirm:r(Hp)})),[]),o.createElement(Xp,{key:"modal-holder",ref:e})]},PE.info=function(e){return Tp(Ap(e))},PE.success=function(e){return Tp(zp(e))},PE.error=function(e){return Tp(Bp(e))},PE.warning=_E,PE.warn=_E,PE.confirm=function(e){return Tp(Hp(e))},PE.destroyAll=function(){for(;Ip.length;){const e=Ip.pop();e&&e()}},PE.config=function(e){let{rootPrefixCls:t}=e;"production"!==process.env.NODE_ENV&&mo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),Lp=t},PE._InternalPanelDoNotUseOrYouWillBeFired=ME,"production"!==process.env.NODE_ENV&&(PE.displayName="Modal");var NE={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"},IE=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:NE}))},LE=o.forwardRef(IE);"production"!==process.env.NODE_ENV&&(LE.displayName="CopyOutlined");var RE={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"},jE=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:RE}))},TE=o.forwardRef(jE);"production"!==process.env.NODE_ENV&&(TE.displayName="EditOutlined");var DE={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"},AE=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:DE}))},zE=o.forwardRef(AE);"production"!==process.env.NODE_ENV&&(zE.displayName="EnterOutlined");var BE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},HE=function(e,t){return o.createElement(ss,h({},e,{ref:t,icon:BE}))},FE=o.forwardRef(HE);"production"!==process.env.NODE_ENV&&(FE.displayName="UserOutlined");var VE=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 WE={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},UE=o.forwardRef(((e,t)=>{const{style:n,noStyle:r,disabled:i,tabIndex:a=0}=e,s=VE(e,["style","noStyle","disabled","tabIndex"]);let l={};return r||(l=Object.assign({},WE)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),n),o.createElement("div",Object.assign({role:"button",tabIndex:a,ref:t},s,{onKeyDown:e=>{const{keyCode:t}=e;t===Ns.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===Ns.ENTER&&o&&o()},style:l}))})),XE=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},qE=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},$i(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"}}})}},GE=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:gr[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}}),KE=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 - ${Et(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"}}}},YE=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),ZE=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"}},XE(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}}}),GE(e)),qE(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},$i(e)),{marginInlineStart:e.marginXXS})}),KE(e)),YE(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 QE=Ri("Typography",(e=>[ZE(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const JE=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:s,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:p,component:h,enterIcon:g=o.createElement(zE,null)}=e,m=o.useRef(null),v=o.useRef(!1),b=o.useRef(),[y,x]=o.useState(c);o.useEffect((()=>{x(c)}),[c]),o.useEffect((()=>{var e;if(null===(e=m.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const C=()=>{u(y.trim())},[w,E,S]=QE(t),k=f(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===a,[`${t}-${h}`]:!!h},r,E,S);return w(o.createElement("div",{className:k,style:i},o.createElement(FC,{ref:m,maxLength:s,value:y,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;b.current!==t||v.current||n||o||r||i||(t===Ns.ENTER?(C(),null==p||p()):t===Ns.ESC&&d())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{C()},"aria-label":n,rows:1,autoSize:l}),null!==g?_s(g,{className:`${t}-edit-content-confirm`}):null))};var eS=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()}},tS={"text/plain":"Text","text/html":"Url",default:"Text"};var nS=function(e,t){var n,o,r,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(r=eS(),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=tS[t.format]||tS.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},oS=i(nS),rS=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 iS(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}var aS=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 sS=o.forwardRef(((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:s,children:l,direction:c,style:u}=e,d=aS(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:h,typography:g}=o.useContext(Hr),m=null!=c?c:h,v=s?z(t,s):t,b=p("typography",n);if("production"!==process.env.NODE_ENV){go("Typography").deprecated(!s,"setContentRef","ref")}const[y,x,C]=QE(b),w=f(b,null==g?void 0:g.className,{[`${b}-rtl`]:"rtl"===m},i,a,x,C),E=Object.assign(Object.assign({},null==g?void 0:g.style),u);return y(o.createElement(r,Object.assign({className:w,style:E,ref:v},d),l))}));function lS(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function cS(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(sS.displayName="Typography");const uS=e=>["string","number"].includes(typeof e),dS=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:s,tabIndex:l,onCopy:c,loading:u}=e;const d=lS(a),p=lS(s),{copied:h,copy:g}=null!=r?r:{},m=n?h:g,v=cS(d[n?1:0],m),b="string"==typeof v?v:m;return o.createElement(km,{title:v},o.createElement(UE,{className:f(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":b,tabIndex:l},n?cS(p[1],o.createElement(Mg,null),!0):cS(p[0],u?o.createElement(Rs,null):o.createElement(LE,null),!0)))},pS=o.forwardRef(((e,t)=>{let{style:n,children:r}=e;const i=o.useRef(null);return o.useImperativeHandle(t,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),o.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)"},n)},r)}));function fS(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+(uS(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 hS=0,gS=4,mS={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function vS(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:s,miscDeps:l,onEllipsis:c}=e,u=o.useMemo((()=>C(r)),[r]),d=o.useMemo((()=>(e=>e.reduce(((e,t)=>e+(uS(t)?String(t).length:1)),0))(u)),[r]),p=o.useMemo((()=>i(u,!1)),[r]),[f,h]=o.useState(null),g=o.useRef(null),m=o.useRef(null),v=o.useRef(null),b=o.useRef(null),y=o.useRef(null),[x,w]=o.useState(!1),[E,S]=o.useState(hS),[k,O]=o.useState(0),[$,M]=o.useState(null);_t((()=>{S(t&&n&&d?1:hS)}),[n,r,a,t,u]),_t((()=>{var e,t,n,o;if(1===E){S(2);const e=m.current&&getComputedStyle(m.current).whiteSpace;M(e)}else if(2===E){const r=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());S(r?3:gS),h(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);O(u+1),c(r)}}),[E]);const _=f?Math.ceil((f[0]+f[1])/2):0;_t((()=>{var e;const[t,n]=f||[0,0];if(t!==n){const o=((null===(e=g.current)||void 0===e?void 0:e.getHeight())||0)>k;let r=_;n-t==1&&(r=o?t:n),h(o?[t,r]:[r,n])}}),[f,_]);const P=o.useMemo((()=>{if(!t)return i(u,!1);if(3!==E||!f||f[0]!==f[1]){const e=i(u,!1);return[gS,hS].includes(E)?e:o.createElement("span",{style:Object.assign(Object.assign({},mS),{WebkitLineClamp:a})},e)}return i(s?u:fS(u,f[0]),x)}),[s,E,f,u].concat(Ie(l))),N={width:n,margin:0,padding:0,whiteSpace:"nowrap"===$?"normal":"inherit"};return o.createElement(o.Fragment,null,P,2===E&&o.createElement(o.Fragment,null,o.createElement(pS,{style:Object.assign(Object.assign(Object.assign({},N),mS),{WebkitLineClamp:a}),ref:v},p),o.createElement(pS,{style:Object.assign(Object.assign(Object.assign({},N),mS),{WebkitLineClamp:a-1}),ref:b},p),o.createElement(pS,{style:Object.assign(Object.assign(Object.assign({},N),mS),{WebkitLineClamp:1}),ref:y},i([],!0))),3===E&&f&&f[0]!==f[1]&&o.createElement(pS,{style:Object.assign(Object.assign({},N),{top:400}),ref:g},i(fS(u,_),!0)),1===E&&o.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const bS=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?o.createElement(km,Object.assign({open:!!n&&void 0},i),r):r};"production"!==process.env.NODE_ENV&&(bS.displayName="EllipsisTooltip");var yS=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 xS=o.forwardRef(((t,n)=>{var r;const{prefixCls:i,className:a,style:s,type:l,disabled:c,children:u,ellipsis:d,editable:p,copyable:h,component:g,title:m}=t,v=yS(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=o.useContext(Hr),[x]=_o("Text"),w=o.useRef(null),E=o.useRef(null),S=b("typography",i),k=Me(v,["mark","code","delete","underline","strong","keyboard","italic"]),[O,$]=iS(p),[M,_]=ri(!1,{value:$.editing}),{triggerType:P=["icon"]}=$,N=e=>{var t;e&&(null===(t=$.onStart)||void 0===t||t.call($)),_(e)},I=(t=>{const n=e.useRef();return e.useEffect((()=>{n.current=t})),n.current})(M);_t((()=>{var e;!M&&I&&(null===(e=E.current)||void 0===e||e.focus())}),[M]);const L=e=>{null==e||e.preventDefault(),N(!0)},R=e=>{var t;null===(t=$.onChange)||void 0===t||t.call($,e),N(!1)},j=()=>{var e;null===(e=$.onCancel)||void 0===e||e.call($),N(!1)},[T,D]=iS(h),{copied:A,copyLoading:B,onClick:H}=(e=>{let{copyConfig:t,children:n}=e;const[r,i]=o.useState(!1),[a,s]=o.useState(!1),l=o.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};return t.format&&(u.format=t.format),o.useEffect((()=>c),[]),{copied:r,copyLoading:a,onClick:ti((e=>rS(void 0,void 0,void 0,(function*(){var o;null==e||e.preventDefault(),null==e||e.stopPropagation(),s(!0);try{const r="function"==typeof t.text?yield t.text():t.text;oS(r||String(n)||"",u),s(!1),i(!0),c(),l.current=setTimeout((()=>{i(!1)}),3e3),null===(o=t.onCopy)||void 0===o||o.call(t,e)}catch(e){throw s(!1),e}}))))}})({copyConfig:D,children:u}),[F,V]=o.useState(!1),[W,U]=o.useState(!1),[X,q]=o.useState(!1),[G,K]=o.useState(!1),[Y,Z]=o.useState(!0),[Q,J]=iS(d,{expandable:!1,symbol:e=>e?null==x?void 0:x.collapse:null==x?void 0:x.expand}),[ee,te]=ri(J.defaultExpanded||!1,{value:J.expanded}),ne=Q&&(!ee||"collapsible"===J.expandable),{rows:oe=1}=J,re=o.useMemo((()=>ne&&(void 0!==J.suffix||J.onEllipsis||J.expandable||O||T)),[ne,J,O,T]);_t((()=>{Q&&!re&&(V(ad("webkitLineClamp")),U(ad("textOverflow")))}),[re,Q]);const[ie,ae]=o.useState(ne),se=o.useMemo((()=>!re&&(1===oe?W:F)),[re,W,F]);_t((()=>{ae(se&&ne)}),[se,ne]);const le=ne&&(ie?G:X),ce=ne&&1===oe&&ie,ue=ne&&oe>1&&ie,[de,pe]=o.useState(0),fe=e=>{var t;q(e),X!==e&&(null===(t=J.onEllipsis)||void 0===t||t.call(J,e))};o.useEffect((()=>{const e=w.current;if(Q&&ie&&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);G!==t&&K(t)}}),[Q,ie,u,ue,Y,de]),o.useEffect((()=>{const e=w.current;if("undefined"==typeof IntersectionObserver||!e||!ie||!ne)return;const t=new IntersectionObserver((()=>{Z(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[ie,ne]);const he=((t,n,o)=>e.useMemo((()=>!0===t?{title:null!=n?n:o}:e.isValidElement(t)?{title:t}:"object"==typeof t?Object.assign({title:null!=n?n:o},t):{title:t}),[t,n,o]))(J.tooltip,$.text,u),ge=o.useMemo((()=>{if(Q&&!ie)return[$.text,u,m,he.title].find(uS)}),[Q,ie,m,he.title,le]);if(M)return o.createElement(JE,{value:null!==(r=$.text)&&void 0!==r?r:"string"==typeof u?u:"",onSave:R,onCancel:j,onEnd:$.onEnd,prefixCls:S,className:a,style:s,direction:y,component:g,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const me=()=>{const{expandable:e,symbol:t}=J;return e?o.createElement(UE,{key:"expand",className:`${S}-${ee?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;te(t.expanded),null===(n=J.onExpand)||void 0===n||n.call(J,e,t)})(e,{expanded:!ee}),"aria-label":ee?x.collapse:null==x?void 0:x.expand},"function"==typeof t?t(ee):t):null},ve=()=>{if(!O)return;const{icon:e,tooltip:t,tabIndex:n}=$,r=C(t)[0]||(null==x?void 0:x.edit),i="string"==typeof r?r:"";return P.includes("icon")?o.createElement(km,{key:"edit",title:!1===t?"":r},o.createElement(UE,{ref:E,className:`${S}-edit`,onClick:L,"aria-label":i,tabIndex:n},e||o.createElement(TE,{role:"button"}))):null},be=e=>[e&&me(),ve(),T?o.createElement(dS,Object.assign({key:"copy"},D,{prefixCls:S,copied:A,locale:x,onCopy:H,loading:B,iconOnly:null==u})):null];return o.createElement($e,{onResize:e=>{let{offsetWidth:t}=e;pe(t)},disabled:!ne},(e=>o.createElement(bS,{tooltipProps:he,enableEllipsis:ne,isEllipsis:le},o.createElement(sS,Object.assign({className:f({[`${S}-${l}`]:l,[`${S}-disabled`]:c,[`${S}-ellipsis`]:Q,[`${S}-ellipsis-single-line`]:ce,[`${S}-ellipsis-multiple-line`]:ue},a),prefixCls:i,style:Object.assign(Object.assign({},s),{WebkitLineClamp:ue?oe:void 0}),component:g,ref:z(e,w,n),direction:y,onClick:P.includes("text")?L:void 0,"aria-label":null==ge?void 0:ge.toString(),title:m},k),o.createElement(vS,{enableMeasure:ne&&!ie,text:u,rows:oe,width:de,onEllipsis:fe,expanded:ee,miscDeps:[A,ee,B,O,T]},((e,n)=>function(e,t){let{mark:n,code:r,underline:i,delete:a,strong:s,keyboard:l,italic:c}=e,u=t;function d(e,t){t&&(u=o.createElement(e,{},u))}return d("strong",s),d("u",i),d("del",a),d("code",r),d("mark",n),d("kbd",l),d("i",c),u}(t,o.createElement(o.Fragment,null,e.length>0&&n&&!ee&&ge?o.createElement("span",{key:"show-content","aria-hidden":!0},e):e,(e=>[e&&!ee&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),J.suffix,be(e)])(n)))))))))}));var CS=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 wS=o.forwardRef(((e,t)=>{var{ellipsis:n,rel:r}=e,i=CS(e,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=go("Typography.Link");"production"!==process.env.NODE_ENV&&e("object"!=typeof n,"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,o.createElement(xS,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))})),ES=o.forwardRef(((e,t)=>o.createElement(xS,Object.assign({ref:t},e,{component:"div"}))));var SS=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 kS=(e,t)=>{var{ellipsis:n}=e,r=SS(e,["ellipsis"]);const i=o.useMemo((()=>n&&"object"==typeof n?Me(n,["expandable","rows"]):n),[n]);if("production"!==process.env.NODE_ENV){const e=go("Typography.Text");"production"!==process.env.NODE_ENV&&e("object"!=typeof n||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return o.createElement(xS,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))};var OS=o.forwardRef(kS),$S=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 MS=[1,2,3,4,5],_S=o.forwardRef(((e,t)=>{const{level:n=1}=e,r=$S(e,["level"]);if("production"!==process.env.NODE_ENV){const e=go("Typography.Title");"production"!==process.env.NODE_ENV&&e(MS.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=MS.includes(n)?`h${n}`:"h1";return o.createElement(xS,Object.assign({ref:t},r,{component:i}))})),PS=sS;function NS(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))}}PS.Text=OS,PS.Link=wS,PS.Title=_S,PS.Paragraph=ES;NS(".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");NS(".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");NS('.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 IS=Kw.Sider;NS(".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");NS(".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 LS={searchIcon:d.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:d.jsx("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.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:d.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.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:d.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:d.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),d.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"}),d.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"}),d.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:d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.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"})})};NS(".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 RS=function(){return RS=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},RS.apply(this,arguments)};function jS(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"==typeof SuppressedError&&SuppressedError;NS(".appBadge {\n .ribbonWrapper {\n .ant-ribbon-wrapper {\n position: relative;\n .ant-ribbon {\n position: absolute;\n top: 0;\n }\n }\n }\n}\n");NS(".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 TS=PS.Text;
26
27
  /*!
27
28
  * @kurkle/color v0.3.2
28
29
  * https://github.com/kurkle/color#readme
29
30
  * (c) 2023 Jukka Kurkela
30
31
  * Released under the MIT License
31
32
  */
32
- function ny(e){return e+.5|0}const oy=(e,t,n)=>Math.max(Math.min(e,n),t);function ry(e){return oy(ny(2.55*e),0,255)}function iy(e){return oy(ny(255*e),0,255)}function ay(e){return oy(ny(e/2.55)/100,0,1)}function sy(e){return oy(ny(100*e),0,100)}const ly={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},cy=[..."0123456789ABCDEF"],uy=e=>cy[15&e],dy=e=>cy[(240&e)>>4]+cy[15&e],fy=e=>(240&e)>>4==(15&e);function hy(e){var t=(e=>fy(e.r)&&fy(e.g)&&fy(e.b)&&fy(e.a))(e)?uy:dy;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const py=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function gy(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 my(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 vy(e,t,n){const o=gy(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 by(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 yy(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(iy)}function xy(e,t,n){return yy(gy,e,t,n)}function wy(e){return(e%360+360)%360}function Cy(e){const t=py.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?ry(+t[5]):iy(+t[5]));const r=wy(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return yy(vy,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return yy(my,e,t,n)}(r,i,a):xy(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}const Ey={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"},Sy={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 Oy(e){ky||(ky=function(){const e={},t=Object.keys(Sy),n=Object.keys(Ey);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,Ey[i]);i=parseInt(Sy[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 _y=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const $y=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,My=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ny(e,t,n){if(e){let o=by(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 Py(e,t){return e?Object.assign(t||{},e):e}function Iy(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=iy(e[3]))):(t=Py(e,{r:0,g:0,b:0,a:1})).a=iy(t.a),t}function Ry(e){return"r"===e.charAt(0)?function(e){const t=_y.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?ry(e):oy(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?ry(n):oy(n,0,255)),o=255&(t[4]?ry(o):oy(o,0,255)),r=255&(t[6]?ry(r):oy(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):Cy(e)}class Ty{constructor(e){if(e instanceof Ty)return e;const t=typeof e;let n;var o,r,i;"object"===t?n=Iy(e):"string"===t&&(i=(o=e).length,"#"===o[0]&&(4===i||5===i?r={r:255&17*ly[o[1]],g:255&17*ly[o[2]],b:255&17*ly[o[3]],a:5===i?17*ly[o[4]]:255}:7!==i&&9!==i||(r={r:ly[o[1]]<<4|ly[o[2]],g:ly[o[3]]<<4|ly[o[4]],b:ly[o[5]]<<4|ly[o[6]],a:9===i?ly[o[7]]<<4|ly[o[8]]:255})),n=r||Oy(e)||Ry(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Py(this._rgb);return e&&(e.a=ay(e.a)),e}set rgb(e){this._rgb=Iy(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ay(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?hy(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=by(e),n=t[0],o=sy(t[1]),r=sy(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${r}%, ${ay(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=My(ay(e.r)),r=My(ay(e.g)),i=My(ay(e.b));return{r:iy($y(o+n*(My(ay(t.r))-o))),g:iy($y(r+n*(My(ay(t.g))-r))),b:iy($y(i+n*(My(ay(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Ty(this.rgb)}alpha(e){return this._rgb.a=iy(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=ny(.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 Ny(this._rgb,2,e),this}darken(e){return Ny(this._rgb,2,-e),this}saturate(e){return Ny(this._rgb,1,e),this}desaturate(e){return Ny(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=by(e);n[0]=wy(n[0]+t),n=xy(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}
33
+ function DS(e){return e+.5|0}const AS=(e,t,n)=>Math.max(Math.min(e,n),t);function zS(e){return AS(DS(2.55*e),0,255)}function BS(e){return AS(DS(255*e),0,255)}function HS(e){return AS(DS(e/2.55)/100,0,1)}function FS(e){return AS(DS(100*e),0,100)}const VS={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},WS=[..."0123456789ABCDEF"],US=e=>WS[15&e],XS=e=>WS[(240&e)>>4]+WS[15&e],qS=e=>(240&e)>>4==(15&e);function GS(e){var t=(e=>qS(e.r)&&qS(e.g)&&qS(e.b)&&qS(e.a))(e)?US:XS;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const KS=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function YS(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 ZS(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 QS(e,t,n){const o=YS(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 JS(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 ek(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(BS)}function tk(e,t,n){return ek(YS,e,t,n)}function nk(e){return(e%360+360)%360}function ok(e){const t=KS.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?zS(+t[5]):BS(+t[5]));const r=nk(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return ek(QS,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return ek(ZS,e,t,n)}(r,i,a):tk(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}const rk={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"},ik={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 ak;function sk(e){ak||(ak=function(){const e={},t=Object.keys(ik),n=Object.keys(rk);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,rk[i]);i=parseInt(ik[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),ak.transparent=[0,0,0,0]);const t=ak[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const lk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const ck=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,uk=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function dk(e,t,n){if(e){let o=JS(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=tk(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function pk(e,t){return e?Object.assign(t||{},e):e}function fk(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=BS(e[3]))):(t=pk(e,{r:0,g:0,b:0,a:1})).a=BS(t.a),t}function hk(e){return"r"===e.charAt(0)?function(e){const t=lk.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?zS(e):AS(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?zS(n):AS(n,0,255)),o=255&(t[4]?zS(o):AS(o,0,255)),r=255&(t[6]?zS(r):AS(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):ok(e)}class gk{constructor(e){if(e instanceof gk)return e;const t=typeof e;let n;var o,r,i;"object"===t?n=fk(e):"string"===t&&(i=(o=e).length,"#"===o[0]&&(4===i||5===i?r={r:255&17*VS[o[1]],g:255&17*VS[o[2]],b:255&17*VS[o[3]],a:5===i?17*VS[o[4]]:255}:7!==i&&9!==i||(r={r:VS[o[1]]<<4|VS[o[2]],g:VS[o[3]]<<4|VS[o[4]],b:VS[o[5]]<<4|VS[o[6]],a:9===i?VS[o[7]]<<4|VS[o[8]]:255})),n=r||sk(e)||hk(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=pk(this._rgb);return e&&(e.a=HS(e.a)),e}set rgb(e){this._rgb=fk(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${HS(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?GS(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=JS(e),n=t[0],o=FS(t[1]),r=FS(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${r}%, ${HS(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=uk(HS(e.r)),r=uk(HS(e.g)),i=uk(HS(e.b));return{r:BS(ck(o+n*(uk(HS(t.r))-o))),g:BS(ck(r+n*(uk(HS(t.g))-r))),b:BS(ck(i+n*(uk(HS(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new gk(this.rgb)}alpha(e){return this._rgb.a=BS(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=DS(.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 dk(this._rgb,2,e),this}darken(e){return dk(this._rgb,2,-e),this}saturate(e){return dk(this._rgb,1,e),this}desaturate(e){return dk(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=JS(e);n[0]=nk(n[0]+t),n=tk(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}
33
34
  /*!
34
35
  * Chart.js v4.4.4
35
36
  * https://www.chartjs.org
36
37
  * (c) 2024 Chart.js Contributors
37
38
  * Released under the MIT License
38
- */function jy(){}const Ay=(()=>{let e=0;return()=>e++})();function Dy(e){return null==e}function Ly(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 zy(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function By(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function Fy(e,t){return By(e)?e:t}function Hy(e,t){return void 0===e?t:e}const Vy=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Wy(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function Xy(e,t,n,o){let r,i,a;if(Ly(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(zy(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function qy(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 Uy(e){if(Ly(e))return e.map(Uy);if(zy(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=Uy(e[n[r]]);return t}return e}function Yy(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Gy(e,t,n,o){if(!Yy(e))return;const r=t[e],i=n[e];zy(r)&&zy(i)?Ky(r,i,o):t[e]=Uy(i)}function Ky(e,t,n){const o=Ly(t)?t:[t],r=o.length;if(!zy(e))return e;const i=(n=n||{}).merger||Gy;let a;for(let t=0;t<r;++t){if(a=o[t],!zy(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 Zy(e,t){return Ky(e,t,{merger:Qy})}function Qy(e,t,n){if(!Yy(e))return;const o=t[e],r=n[e];zy(o)&&zy(r)?Zy(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Uy(r))}const Jy={"":e=>e,x:e=>e.x,y:e=>e.y};function ex(e,t){const n=Jy[t]||(Jy[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 tx(e){return e.charAt(0).toUpperCase()+e.slice(1)}const nx=e=>void 0!==e,ox=e=>"function"==typeof e,rx=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const ix=Math.PI,ax=2*ix,sx=ax+ix,lx=Number.POSITIVE_INFINITY,cx=ix/180,ux=ix/2,dx=ix/4,fx=2*ix/3,hx=Math.log10,px=Math.sign;function gx(e,t,n){return Math.abs(e-t)<n}function mx(e){const t=Math.round(e);e=gx(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(hx(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function vx(e){return!isNaN(parseFloat(e))&&isFinite(e)}function bx(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 yx(e){return e*(ix/180)}function xx(e){return e*(180/ix)}function wx(e){if(!By(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Cx(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*ix&&(i+=ax),{angle:i,distance:r}}function Ex(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Sx(e,t){return(e-t+sx)%ax-ix}function kx(e){return(e%ax+ax)%ax}function Ox(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 _x(e,t,n){return Math.max(t,Math.min(n,e))}function $x(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function Mx(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 Nx=(e,t,n,o)=>Mx(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),Px=(e,t,n)=>Mx(e,n,(o=>e[o][t]>=n));const Ix=["push","pop","shift","splice","unshift"];function Rx(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||(Ix.forEach((t=>{delete e[t]})),delete e._chartjs)}function Tx(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const jx="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function Ax(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,jx.call(window,(()=>{o=!1,e.apply(t,n)})))}}const Dx=e=>"start"===e?"left":"end"===e?"right":"center",Lx=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const zx=e=>0===e||1===e,Bx=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*ax/n),Fx=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ax/n)+1,Hx={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*ux),easeOutSine:e=>Math.sin(e*ux),easeInOutSine:e=>-.5*(Math.cos(ix*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=>zx(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=>zx(e)?e:Bx(e,.075,.3),easeOutElastic:e=>zx(e)?e:Fx(e,.075,.3),easeInOutElastic(e){const t=.1125;return zx(e)?e:e<.5?.5*Bx(2*e,t,.45):.5+.5*Fx(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-Hx.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*Hx.easeInBounce(2*e):.5*Hx.easeOutBounce(2*e-1)+.5};function Vx(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Wx(e){return Vx(e)?e:new Ty(e)}function Xx(e){return Vx(e)?e:new Ty(e).saturate(.5).darken(.1).hexString()}const qx=["x","y","borderWidth","radius","tension"],Ux=["color","borderColor","backgroundColor"];const Yx=new Map;function Gx(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=Yx.get(n);return o||(o=new Intl.NumberFormat(e,t),Yx.set(n,o)),o}(t,n).format(e)}const Kx={values:e=>Ly(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=hx(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),Gx(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(hx(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?Kx.numeric.call(this,e,t,n):""}};var Zx={formatters:Kx};const Qx=Object.create(null),Jx=Object.create(null);function ew(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 tw(e,t,n){return"string"==typeof t?Ky(ew(e,t),n):Ky(ew(e,""),t)}class nw{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)=>Xx(t.backgroundColor),this.hoverBorderColor=(e,t)=>Xx(t.borderColor),this.hoverColor=(e,t)=>Xx(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 tw(this,e,t)}get(e){return ew(this,e)}describe(e,t){return tw(Jx,e,t)}override(e,t){return tw(Qx,e,t)}route(e,t,n,o){const r=ew(this,e),i=ew(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 zy(e)?Object.assign({},t,e):Hy(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var ow=new nw({_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:Ux},numbers:{type:"number",properties:qx}}),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:Zx.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 rw(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 iw(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 aw(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function sw(e,t,n,o){lw(e,t,n,o,null)}function lw(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)*cx;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,ax):e.arc(n,o,g,0,ax),e.closePath();break;case"triangle":u=r?r/2:g,e.moveTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=fx,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=fx,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+dx)*l,d=Math.cos(m+dx)*(r?r/2-c:l),s=Math.sin(m+dx)*l,f=Math.sin(m+dx)*(r?r/2-c:l),e.arc(n-d,o-s,c,m-ix,m-ux),e.arc(n+f,o-a,c,m-ux,m),e.arc(n+d,o+s,c,m,m+ux),e.arc(n-f,o+a,c,m+ux,m+ix),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+=dx;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+=dx;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+=dx,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 cw(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 uw(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function dw(e){e.restore()}function fw(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 hw(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 pw(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 gw(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function mw(e,t,n,o,r,i={}){const a=Ly(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]),Dy(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&&gw(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),Dy(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),pw(e,n,o,c,i),o+=Number(r.lineHeight);e.restore()}function vw(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*ix,ix,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,ix,ux,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,ux,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-ux,!0),e.lineTo(n+a.topLeft,o)}const bw=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,yw=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function xw(e,t){const n=(""+e).match(bw);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 ww=e=>+e||0;function Cw(e,t){const n={},o=zy(t),r=o?Object.keys(t):t,i=zy(e)?o?n=>Hy(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=ww(i(e));return n}function Ew(e){return Cw(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Sw(e){return Cw(e,["topLeft","topRight","bottomLeft","bottomRight"])}function kw(e){const t=Ew(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ow(e,t){e=e||{},t=t||ow.font;let n=Hy(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=Hy(e.style,t.style);o&&!(""+o).match(yw)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:Hy(e.family,t.family),lineHeight:xw(Hy(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:Hy(e.weight,t.weight),string:""};return r.string=function(e){return!e||Dy(e.size)||Dy(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function _w(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 $w(e,t){return Object.assign(Object.create(e),t)}function Mw(e,t=[""],n,o,r=()=>e[0]){const i=n||e;void 0===o&&(o=Bw("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:n=>Mw([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)=>Tw(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=Bw(Iw(i,e),n),void 0!==r)return Rw(e,r)?Lw(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)=>Fw(e).includes(t),ownKeys:e=>Fw(e),set(e,t,n){const o=e._storage||(e._storage=r());return e[t]=o[t]=n,delete e._keys,!0}})}function Nw(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Pw(e,o),setContext:t=>Nw(e,t,n,o),override:r=>Nw(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Tw(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let s=o[t];ox(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),Rw(e,l)&&(l=Lw(r._scopes,r,e,l));return l}(t,s,e,n));Ly(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(zy(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=Lw(o,r,e,l);t.push(Nw(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));Rw(t,s)&&(s=Nw(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 Pw(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:ox(n)?n:()=>n,isIndexable:ox(o)?o:()=>o}}const Iw=(e,t)=>e?e+tx(t):t,Rw=(e,t)=>zy(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Tw(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const o=n();return e[t]=o,o}function jw(e,t,n){return ox(e)?e(t,n):e}const Aw=(e,t)=>!0===e?t:"string"==typeof e?ex(t,e):void 0;function Dw(e,t,n,o,r){for(const i of t){const t=Aw(n,i);if(t){e.add(t);const i=jw(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 Lw(e,t,n,o){const r=t._rootScopes,i=jw(t._fallback,n,o),a=[...e,...r],s=new Set;s.add(o);let l=zw(s,a,n,i||n,o);return null!==l&&((void 0===i||i===n||(l=zw(s,a,i,l,o),null!==l))&&Mw(Array.from(s),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];if(Ly(r)&&zy(n))return n;return r||{}}(t,n,o))))}function zw(e,t,n,o,r){for(;n;)n=Dw(e,t,n,o,r);return n}function Bw(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function Fw(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 Hw=Number.EPSILON||1e-14,Vw=(e,t)=>t<e.length&&!e[t].skip&&e[t],Ww=e=>"x"===e?"y":"x";function Xw(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,s=Ex(i,r),l=Ex(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 qw(e,t="x"){const n=Ww(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,s,l,c=Vw(e,0);for(a=0;a<o;++a)if(s=l,l=c,c=Vw(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?px(r[a-1])!==px(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=Vw(e,0);for(let u=0;u<o-1;++u)l=c,c=Vw(e,u+1),l&&c&&(gx(t[u],0,Hw)?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=Ww(n),r=e.length;let i,a,s,l=Vw(e,0);for(let c=0;c<r;++c){if(a=s,s=l,l=Vw(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 Uw(e,t,n){return Math.max(Math.min(e,n),t)}function Yw(e,t,n,o,r){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)qw(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=Xw(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=cw(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=s,s=n<o-1&&cw(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=Uw(r.cp1x,t.left,t.right),r.cp1y=Uw(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=Uw(r.cp2x,t.left,t.right),r.cp2y=Uw(r.cp2y,t.top,t.bottom)))}(e,n)}function Gw(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Kw(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function Zw(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 Qw=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const Jw=["top","right","bottom","left"];function eC(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=Jw[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const tC=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function nC(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=Qw(n),i="border-box"===r.boxSizing,a=eC(r,"padding"),s=eC(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(tC(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 oC=e=>Math.round(10*e)/10;function rC(e,t,n,o){const r=Qw(e),i=eC(r,"margin"),a=Zw(r.maxWidth,e,"clientWidth")||lx,s=Zw(r.maxHeight,e,"clientHeight")||lx,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=e&&Kw(e);if(i){const e=i.getBoundingClientRect(),a=Qw(i),s=eC(a,"border","width"),l=eC(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=Zw(a.maxWidth,i,"clientWidth"),r=Zw(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||lx,maxHeight:r||lx}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=eC(r,"border","width"),t=eC(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=oC(Math.min(c,a,l.maxWidth)),u=oC(Math.min(u,s,l.maxHeight)),c&&!u&&(u=oC(c/2));return(void 0!==t||void 0!==n)&&o&&l.height&&u>l.height&&(u=l.height,c=oC(Math.floor(u*o))),{width:c,height:u}}function iC(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 aC=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Gw()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function sC(e,t){const n=function(e,t){return Qw(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function lC(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function cC(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 uC(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=lC(e,r,n),s=lC(r,i,n),l=lC(i,t,n),c=lC(a,s,n),u=lC(s,l,n);return lC(c,u,n)}function dC(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 fC(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 hC(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function pC(e){return"angle"===e?{between:Ox,compare:Sx,normalize:kx}:{between:$x,compare:(e,t)=>e-t,normalize:e=>e}}function gC({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 mC(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=pC(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}=pC(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(gC({start:y,end:e,loop:f,count:a,style:h})),y=null),n=e,v=g));return null!==y&&p.push(gC({start:y,end:d,loop:f,count:a,style:h})),p}function vC(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=bC(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=bC(o.setContext($w(r,{type:"segment",p0:i,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),yC(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 bC(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function yC(e,t){if(!t)return!1;const n=[],o=function(e,t){return Vx(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}
39
+ */function mk(){}const vk=(()=>{let e=0;return()=>e++})();function bk(e){return null==e}function yk(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 xk(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function Ck(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function wk(e,t){return Ck(e)?e:t}function Ek(e,t){return void 0===e?t:e}const Sk=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function kk(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function Ok(e,t,n,o){let r,i,a;if(yk(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(xk(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function $k(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 Mk(e){if(yk(e))return e.map(Mk);if(xk(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=Mk(e[n[r]]);return t}return e}function _k(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Pk(e,t,n,o){if(!_k(e))return;const r=t[e],i=n[e];xk(r)&&xk(i)?Nk(r,i,o):t[e]=Mk(i)}function Nk(e,t,n){const o=yk(t)?t:[t],r=o.length;if(!xk(e))return e;const i=(n=n||{}).merger||Pk;let a;for(let t=0;t<r;++t){if(a=o[t],!xk(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 Ik(e,t){return Nk(e,t,{merger:Lk})}function Lk(e,t,n){if(!_k(e))return;const o=t[e],r=n[e];xk(o)&&xk(r)?Ik(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Mk(r))}const Rk={"":e=>e,x:e=>e.x,y:e=>e.y};function jk(e,t){const n=Rk[t]||(Rk[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 Tk(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Dk=e=>void 0!==e,Ak=e=>"function"==typeof e,zk=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const Bk=Math.PI,Hk=2*Bk,Fk=Hk+Bk,Vk=Number.POSITIVE_INFINITY,Wk=Bk/180,Uk=Bk/2,Xk=Bk/4,qk=2*Bk/3,Gk=Math.log10,Kk=Math.sign;function Yk(e,t,n){return Math.abs(e-t)<n}function Zk(e){const t=Math.round(e);e=Yk(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Gk(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function Qk(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Jk(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 eO(e){return e*(Bk/180)}function tO(e){return e*(180/Bk)}function nO(e){if(!Ck(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function oO(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*Bk&&(i+=Hk),{angle:i,distance:r}}function rO(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function iO(e,t){return(e-t+Fk)%Hk-Bk}function aO(e){return(e%Hk+Hk)%Hk}function sO(e,t,n,o){const r=aO(e),i=aO(t),a=aO(n),s=aO(i-r),l=aO(a-r),c=aO(r-i),u=aO(r-a);return r===i||r===a||o&&i===a||s>l&&c<u}function lO(e,t,n){return Math.max(t,Math.min(n,e))}function cO(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function uO(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 dO=(e,t,n,o)=>uO(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),pO=(e,t,n)=>uO(e,n,(o=>e[o][t]>=n));const fO=["push","pop","shift","splice","unshift"];function hO(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||(fO.forEach((t=>{delete e[t]})),delete e._chartjs)}function gO(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const mO="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function vO(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,mO.call(window,(()=>{o=!1,e.apply(t,n)})))}}const bO=e=>"start"===e?"left":"end"===e?"right":"center",yO=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const xO=e=>0===e||1===e,CO=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*Hk/n),wO=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Hk/n)+1,EO={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*Uk),easeOutSine:e=>Math.sin(e*Uk),easeInOutSine:e=>-.5*(Math.cos(Bk*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=>xO(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=>xO(e)?e:CO(e,.075,.3),easeOutElastic:e=>xO(e)?e:wO(e,.075,.3),easeInOutElastic(e){const t=.1125;return xO(e)?e:e<.5?.5*CO(2*e,t,.45):.5+.5*wO(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-EO.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*EO.easeInBounce(2*e):.5*EO.easeOutBounce(2*e-1)+.5};function SO(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function kO(e){return SO(e)?e:new gk(e)}function OO(e){return SO(e)?e:new gk(e).saturate(.5).darken(.1).hexString()}const $O=["x","y","borderWidth","radius","tension"],MO=["color","borderColor","backgroundColor"];const _O=new Map;function PO(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=_O.get(n);return o||(o=new Intl.NumberFormat(e,t),_O.set(n,o)),o}(t,n).format(e)}const NO={values:e=>yk(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=Gk(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),PO(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(Gk(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?NO.numeric.call(this,e,t,n):""}};var IO={formatters:NO};const LO=Object.create(null),RO=Object.create(null);function jO(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 TO(e,t,n){return"string"==typeof t?Nk(jO(e,t),n):Nk(jO(e,""),t)}class DO{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)=>OO(t.backgroundColor),this.hoverBorderColor=(e,t)=>OO(t.borderColor),this.hoverColor=(e,t)=>OO(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 TO(this,e,t)}get(e){return jO(this,e)}describe(e,t){return TO(RO,e,t)}override(e,t){return TO(LO,e,t)}route(e,t,n,o){const r=jO(this,e),i=jO(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 xk(e)?Object.assign({},t,e):Ek(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var AO=new DO({_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:MO},numbers:{type:"number",properties:$O}}),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:IO.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 zO(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 BO(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 HO(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function FO(e,t,n,o){VO(e,t,n,o,null)}function VO(e,t,n,o,r){let i,a,s,l,c,u,d,p;const f=t.pointStyle,h=t.rotation,g=t.radius;let m=(h||0)*Wk;if(f&&"object"==typeof f&&(i=f.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,o),e.rotate(m),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void e.restore();if(!(isNaN(g)||g<=0)){switch(e.beginPath(),f){default:r?e.ellipse(n,o,r/2,g,0,0,Hk):e.arc(n,o,g,0,Hk),e.closePath();break;case"triangle":u=r?r/2:g,e.moveTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=qk,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=qk,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+Xk)*l,d=Math.cos(m+Xk)*(r?r/2-c:l),s=Math.sin(m+Xk)*l,p=Math.sin(m+Xk)*(r?r/2-c:l),e.arc(n-d,o-s,c,m-Bk,m-Uk),e.arc(n+p,o-a,c,m-Uk,m),e.arc(n+d,o+s,c,m,m+Uk),e.arc(n-p,o+a,c,m+Uk,m+Bk),e.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*g,u=r?r/2:l,e.rect(n-u,o-l,2*u,2*l);break}m+=Xk;case"rectRot":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+p,o-a),e.lineTo(n+d,o+s),e.lineTo(n-p,o+a),e.closePath();break;case"crossRot":m+=Xk;case"cross":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a);break;case"star":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a),m+=Xk,d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,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 WO(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 UO(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function XO(e){e.restore()}function qO(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 GO(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 KO(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 YO(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function ZO(e,t,n,o,r,i={}){const a=yk(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]),bk(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&&YO(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),bk(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),KO(e,n,o,c,i),o+=Number(r.lineHeight);e.restore()}function QO(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*Bk,Bk,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,Bk,Uk,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,Uk,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-Uk,!0),e.lineTo(n+a.topLeft,o)}const JO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,e$=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function t$(e,t){const n=(""+e).match(JO);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 n$=e=>+e||0;function o$(e,t){const n={},o=xk(t),r=o?Object.keys(t):t,i=xk(e)?o?n=>Ek(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=n$(i(e));return n}function r$(e){return o$(e,{top:"y",right:"x",bottom:"y",left:"x"})}function i$(e){return o$(e,["topLeft","topRight","bottomLeft","bottomRight"])}function a$(e){const t=r$(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function s$(e,t){e=e||{},t=t||AO.font;let n=Ek(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=Ek(e.style,t.style);o&&!(""+o).match(e$)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:Ek(e.family,t.family),lineHeight:t$(Ek(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:Ek(e.weight,t.weight),string:""};return r.string=function(e){return!e||bk(e.size)||bk(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function l$(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 c$(e,t){return Object.assign(Object.create(e),t)}function u$(e,t=[""],n,o,r=()=>e[0]){const i=n||e;void 0===o&&(o=C$("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:n=>u$([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)=>g$(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=C$(f$(i,e),n),void 0!==r)return h$(e,r)?y$(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)=>w$(e).includes(t),ownKeys:e=>w$(e),set(e,t,n){const o=e._storage||(e._storage=r());return e[t]=o[t]=n,delete e._keys,!0}})}function d$(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:p$(e,o),setContext:t=>d$(e,t,n,o),override:r=>d$(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>g$(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let s=o[t];Ak(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),h$(e,l)&&(l=y$(r._scopes,r,e,l));return l}(t,s,e,n));yk(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(xk(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=y$(o,r,e,l);t.push(d$(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));h$(t,s)&&(s=d$(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 p$(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:Ak(n)?n:()=>n,isIndexable:Ak(o)?o:()=>o}}const f$=(e,t)=>e?e+Tk(t):t,h$=(e,t)=>xk(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function g$(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const o=n();return e[t]=o,o}function m$(e,t,n){return Ak(e)?e(t,n):e}const v$=(e,t)=>!0===e?t:"string"==typeof e?jk(t,e):void 0;function b$(e,t,n,o,r){for(const i of t){const t=v$(n,i);if(t){e.add(t);const i=m$(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 y$(e,t,n,o){const r=t._rootScopes,i=m$(t._fallback,n,o),a=[...e,...r],s=new Set;s.add(o);let l=x$(s,a,n,i||n,o);return null!==l&&((void 0===i||i===n||(l=x$(s,a,i,l,o),null!==l))&&u$(Array.from(s),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];if(yk(r)&&xk(n))return n;return r||{}}(t,n,o))))}function x$(e,t,n,o,r){for(;n;)n=b$(e,t,n,o,r);return n}function C$(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function w$(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 E$=Number.EPSILON||1e-14,S$=(e,t)=>t<e.length&&!e[t].skip&&e[t],k$=e=>"x"===e?"y":"x";function O$(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,s=rO(i,r),l=rO(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,p=o*u;return{previous:{x:i.x-d*(a.x-r.x),y:i.y-d*(a.y-r.y)},next:{x:i.x+p*(a.x-r.x),y:i.y+p*(a.y-r.y)}}}function $$(e,t="x"){const n=k$(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,s,l,c=S$(e,0);for(a=0;a<o;++a)if(s=l,l=c,c=S$(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?Kk(r[a-1])!==Kk(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=S$(e,0);for(let u=0;u<o-1;++u)l=c,c=S$(e,u+1),l&&c&&(Yk(t[u],0,E$)?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=k$(n),r=e.length;let i,a,s,l=S$(e,0);for(let c=0;c<r;++c){if(a=s,s=l,l=S$(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 M$(e,t,n){return Math.max(Math.min(e,n),t)}function _$(e,t,n,o,r){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)$$(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=O$(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=WO(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=s,s=n<o-1&&WO(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=M$(r.cp1x,t.left,t.right),r.cp1y=M$(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=M$(r.cp2x,t.left,t.right),r.cp2y=M$(r.cp2y,t.top,t.bottom)))}(e,n)}function P$(){return"undefined"!=typeof window&&"undefined"!=typeof document}function N$(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function I$(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 L$=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const R$=["top","right","bottom","left"];function j$(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=R$[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const T$=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function D$(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=L$(n),i="border-box"===r.boxSizing,a=j$(r,"padding"),s=j$(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(T$(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),p=a.top+(u&&s.top);let{width:f,height:h}=t;return i&&(f-=a.width+s.width,h-=a.height+s.height),{x:Math.round((l-d)/f*n.width/o),y:Math.round((c-p)/h*n.height/o)}}const A$=e=>Math.round(10*e)/10;function z$(e,t,n,o){const r=L$(e),i=j$(r,"margin"),a=I$(r.maxWidth,e,"clientWidth")||Vk,s=I$(r.maxHeight,e,"clientHeight")||Vk,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=e&&N$(e);if(i){const e=i.getBoundingClientRect(),a=L$(i),s=j$(a,"border","width"),l=j$(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=I$(a.maxWidth,i,"clientWidth"),r=I$(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||Vk,maxHeight:r||Vk}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=j$(r,"border","width"),t=j$(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=A$(Math.min(c,a,l.maxWidth)),u=A$(Math.min(u,s,l.maxHeight)),c&&!u&&(u=A$(c/2));return(void 0!==t||void 0!==n)&&o&&l.height&&u>l.height&&(u=l.height,c=A$(Math.floor(u*o))),{width:c,height:u}}function B$(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 H$=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};P$()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function F$(e,t){const n=function(e,t){return L$(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function V$(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function W$(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 U$(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=V$(e,r,n),s=V$(r,i,n),l=V$(i,t,n),c=V$(a,s,n),u=V$(s,l,n);return V$(c,u,n)}function X$(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 q$(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 G$(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function K$(e){return"angle"===e?{between:sO,compare:iO,normalize:aO}:{between:cO,compare:(e,t)=>e-t,normalize:e=>e}}function Y$({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 Z$(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=K$(o),{start:u,end:d,loop:p,style:f}=function(e,t,n){const{property:o,start:r,end:i}=n,{between:a,normalize:s}=K$(o),l=t.length;let c,u,{start:d,end:p,loop:f}=e;if(f){for(d+=l,p+=l,c=0,u=l;c<u&&a(s(t[d%l][o]),r,i);++c)d--,p--;d%=l,p%=l}return p<d&&(p+=l),{start:d,end:p,loop:f,style:e.style}}(e,t,n),h=[];let g,m,v,b=!1,y=null;const x=()=>b||l(r,v,g)&&0!==s(r,v),C=()=>!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&&C()&&(h.push(Y$({start:y,end:e,loop:p,count:a,style:f})),y=null),n=e,v=g));return null!==y&&h.push(Y$({start:y,end:d,loop:p,count:a,style:f})),h}function Q$(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=J$(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,p=d;function f(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(p=d+1;p<=e.end;p++){const s=n[p%l];t=J$(o.setContext(c$(r,{type:"segment",p0:i,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),eM(t,u)&&f(d,p-1,e.loop,u),i=s,u=t}d<p-1&&f(d,p-1,e.loop,u)}return c}(e,t,n,o):t}function J$(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function eM(e,t){if(!t)return!1;const n=[],o=function(e,t){return SO(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}
39
40
  /*!
40
41
  * Chart.js v4.4.4
41
42
  * https://www.chartjs.org
42
43
  * (c) 2024 Chart.js Contributors
43
44
  * 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=jx.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 wC=new xC;const CC="transparent",EC={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=Wx(e||CC),r=o.valid&&Wx(t||CC);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class SC{constructor(e,t,n,o){const r=t[n];o=_w([e.to,o,r,e.from]);const i=_w([e.from,r,o]);this._active=!0,this._fn=e.fn||EC[e.type||typeof i],this._easing=Hx[e.easing]||Hx.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=_w([e.to,t,o,e.from]),this._from=_w([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(!zy(e))return;const t=Object.keys(ow.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!zy(r))return;const i={};for(const e of t)i[e]=r[e];(Ly(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 SC(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?(wC.add(this._chart,n),!0):void 0}}function OC(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 _C(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 $C(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],By(c)&&(i||0===t||px(t)===px(c))&&(t+=c)}return t}}function MC(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function NC(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function PC(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 IC(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]=NC(r,u,i),f[s]=d,f._top=PC(f,a,!0,o.type),f._bottom=PC(f,a,!1,o.type);(f._visualValues||(f._visualValues={}))[s]=d}}function RC(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function TC(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 jC=e=>"reset"===e||"none"===e,AC=(e,t)=>t?e:Object.assign({},e);class DC{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=MC(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&&TC(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=Hy(n.xAxisID,RC(e,"x")),i=t.yAxisID=Hy(n.yAxisID,RC(e,"y")),a=t.rAxisID=Hy(n.rAxisID,RC(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&&Rx(this._data,this),e._stacked&&TC(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(zy(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){Rx(n,this);const e=this._cachedMeta;TC(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]}}),Ix.forEach((t=>{const n="_onData"+tx(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=MC(t.vScale,t),t.stack!==n.stack&&(o=!0,TC(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&IC(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=Ly(o[e])?this.parseArrayData(n,o,e,t):zy(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&&IC(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(ex(f,a),d),y:i.parse(ex(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 $C({keys:_C(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=$C(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:_C(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!By(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],By(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 zy(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}}(Hy(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=OC(e,n),r=OC(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 $w(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 $w(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&&nx(n);if(a)return AC(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(ow.elements[e]),h=l.resolveNamedOptions(d,f,(()=>this.getContext(n,o,t)),u);return h.$shared&&(h.$shared=s,r[i]=Object.freeze(AC(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||jC(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){jC(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!jC(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&&TC(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 LC(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=Tx(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&&(nx(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 zC(e,t,n,o){return Ly(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 BC(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(zC(f,d,i,c));return l}function FC(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function HC(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[VC(u,a,s,l)]=!0,r=c)),i[VC(r,a,s,l)]=!0,e.borderSkipped=i}function VC(e,t,n,o){var r,i,a;return o?(a=n,e=WC(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=WC(e,t,n),e}function WC(e,t,n){return"start"===e?t:"end"===e?n:e}function XC(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class qC extends DC{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 BC(e,t,n,o)}parseArrayData(e,t,n,o){return BC(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(ex(p,l),d),u.push(zC(ex(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=FC(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||Dy(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||FC(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;HC(g,m,p,i),XC(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(Dy(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||LC(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=FC(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&&px(f)!==px(l.barEnd)&&(h=0),h+=f);const g=Dy(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?px(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=px(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=Hy(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 Dy(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 UC extends DC{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(zy(n[e])){const{key:e="value"}=this._parsing;a=t=>+ex(n[t],e)}for(r=e,i=e+t;r<i;++r)o._parsed[r]=a(r)}}_getRotation(){return yx(this.options.rotation-90)}_getCircumference(){return yx(this.options.circumference)}_getRotationExtents(){let e=ax,t=-ax;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<ax){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)=>Ox(e,s,l,!0)?1:Math.max(t,t*n,o,o*n),p=(e,t,o)=>Ox(e,s,l,!0)?-1:Math.min(t,t*n,o,o*n),g=h(0,c,d),m=h(ux,u,f),v=p(ix,c,d),b=p(ix+ux,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=Vy(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/ax)}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)?ax*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=Gx(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(Hy(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class YC extends DC{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=_x(Math.min(Nx(s,l,c).lo,n?o:Nx(t,l,a.getPixelForValue(c)).lo),0,o-1)),i=f?_x(Math.max(Nx(s,a.axis,u,!0).hi+1,n?0:Nx(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=vx(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=Dy(x[f]),C=b[d]=i.getPixelForValue(x[d],n),E=b[f]=r||w?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[f],n);b.skip=isNaN(C)||isNaN(E)||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 GC extends UC{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function KC(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?Px:Nx;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 ZC(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}=KC(i[e],t,a,r);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function QC(e,t,n,o,r){const i=[];if(!r&&!e.isPointInArea(t))return i;return ZC(e,n,t,(function(n,a,s){(r||cw(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function JC(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 ZC(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 eE(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?JC(e,t,n,o,r,i):function(e,t,n,o){let r=[];return ZC(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=Cx(e,{x:t.x,y:t.y});Ox(l,a,s)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function tE(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return ZC(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 nE={evaluateInteractionItems:ZC,modes:{index(e,t,n,o){const r=nC(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?QC(e,r,i,o,a):eE(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=nC(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?QC(e,r,i,o,a):eE(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)=>QC(e,nC(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=nC(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return eE(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>tE(e,nC(t,e),"x",n.intersect,o),y:(e,t,n,o)=>tE(e,nC(t,e),"y",n.intersect,o)}};const oE=["left","top","right","bottom"];function rE(e,t){return e.filter((e=>e.pos===t))}function iE(e,t){return e.filter((e=>-1===oE.indexOf(e.pos)&&e.box.axis===t))}function aE(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 sE(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!oE.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 lE(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function cE(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 uE(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!zy(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&&cE(a,i.getPadding());const s=Math.max(0,t.outerWidth-lE(a,e,"left","right")),l=Math.max(0,t.outerHeight-lE(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 dE(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 fE(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,dE(s.horizontal,t));const{same:a,other:d}=uE(t,n,s,o);c|=a&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&fE(r,t,n,o)||u}function hE(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 pE(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;nx(l.start)&&(a=l.start),e.fullSize?hE(e,r.left,a,n.outerWidth-r.right-r.left,i):hE(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;nx(l.start)&&(i=l.start),e.fullSize?hE(e,i,r.top,a,n.outerHeight-r.bottom-r.top):hE(e,i,t.top+l.placed,a,o),l.start=i,l.placed+=o,i=e.right}}t.x=i,t.y=a}var gE={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=aE(t.filter((e=>e.box.fullSize)),!0),o=aE(rE(t,"left"),!0),r=aE(rE(t,"right")),i=aE(rE(t,"top"),!0),a=aE(rE(t,"bottom")),s=iE(t,"x"),l=iE(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:rE(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;Xy(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);cE(f,kw(o));const h=Object.assign({maxPadding:f,w:i,h:a,x:r.left,y:r.top},r),p=sE(l.concat(c),d);fE(s.fullSize,h,d,p),fE(l,h,d,p),fE(c,h,d,p)&&fE(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),pE(s.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,pE(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},Xy(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 mE{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 vE extends mE{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const bE="$chartjs",yE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xE=e=>null===e||""===e;const wE=!!aC&&{passive:!0};function CE(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,wE)}function EE(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function SE(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||EE(n.addedNodes,o),t=t&&!EE(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function kE(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||EE(n.removedNodes,o),t=t&&!EE(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const OE=new Map;let _E=0;function $E(){const e=window.devicePixelRatio;e!==_E&&(_E=e,OE.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function ME(e,t,n){const o=e.canvas,r=o&&Kw(o);if(!r)return;const i=Ax(((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){OE.size||window.addEventListener("resize",$E),OE.set(e,t)}(e,i),a}function NE(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){OE.delete(e),OE.size||window.removeEventListener("resize",$E)}(e)}function PE(e,t,n){const o=e.canvas,r=Ax((t=>{null!==e.ctx&&n(function(e,t){const n=yE[e.type]||e.type,{x:o,y:r}=nC(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,wE)}(o,t,r),r}class IE extends mE{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[bE]={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",xE(r)){const t=sC(e,"width");void 0!==t&&(e.width=t)}if(xE(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=sC(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[bE])return!1;const n=t[bE].initial;["height","width"].forEach((e=>{const o=n[e];Dy(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[bE],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:SE,detach:kE,resize:ME}[t]||PE;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];if(!o)return;({attach:NE,detach:NE,resize:NE}[t]||CE)(e,t,o),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return rC(e,t,n,o)}isAttached(e){const t=e&&Kw(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 vx(this.x)&&vx(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 TE(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(jE(t,c,u,Dy(o)?0:s-o,s),e=0,n=a-1;e<n;e++)jE(t,c,u,i[e],i[e+1]);return jE(t,c,u,l,Dy(o)?t.length:l+o),c}return jE(t,c,u),c}function jE(e,t,n,o,r){const i=Hy(o,0),a=Math.min(Hy(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 AE=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,DE=(e,t)=>Math.min(t||e,e);function LE(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 zE(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 BE(e){return e.drawTicks?e.tickLength:0}function FE(e,t){if(!e.display)return 0;const n=Ow(e.font,t),o=kw(e.padding);return(Ly(e.text)?e.text.length:1)*n.lineHeight+o.height}function HE(e,t,n){let o=Dx(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class VE 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=Fy(e,Number.POSITIVE_INFINITY),t=Fy(t,Number.NEGATIVE_INFINITY),n=Fy(n,Number.POSITIVE_INFINITY),o=Fy(o,Number.NEGATIVE_INFINITY),{min:Fy(e,n),max:Fy(t,o),minDefined:By(e),maxDefined:By(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:Fy(n,Fy(o,n)),max:Fy(o,Fy(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(){Wy(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=Vy(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?LE(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=TE(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(){Wy(this.options.afterUpdate,[this])}beforeSetDimensions(){Wy(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(){Wy(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Wy(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Wy(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=Wy(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){Wy(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Wy(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=DE(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=_x(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-BE(e.grid)-t.padding-FE(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=xx(Math.min(Math.asin(_x((c.highest.height+6)/i,-1,1)),Math.asin(_x(a/s,-1,1))-Math.asin(_x(d/s,-1,1)))),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Wy(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Wy(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=BE(r)+i):(e.height=this.maxHeight,e.width=BE(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=yx(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(){Wy(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++)Dy(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=LE(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/DE(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,Dy(d)||Ly(d)){if(Ly(d))for(c=0,u=d.length;c<u;++c)b=d[c],Dy(b)||Ly(b)||(m=rw(o,p.data,p.gc,m,b),v+=g)}else m=rw(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){Xy(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),E=e=>({width:i[e]||0,height:a[e]||0});return{first:E(0),last:E(t-1),widest:E(w),highest:E(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 _x(this._alignToPixels?iw(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 $w(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=$w(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=yx(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=BE(r),d=[],f=a.setContext(this.getContext()),h=f.display?f.width:0,p=h/2,g=function(e){return iw(n,e,h)};let m,v,b,y,x,w,C,E,S,k,O,_;if("top"===i)m=g(this.bottom),w=this.bottom-u,E=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,E=this.top+u;else if("left"===i)m=g(this.right),x=this.right-u,C=m-p,S=g(e.left)+p,O=e.right;else if("right"===i)m=g(this.left),S=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(zy(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,E=w+u}else if("y"===t){if("center"===i)m=g((e.left+e.right)/2);else if(zy(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}x=m-p,C=x-u,S=e.left,O=e.right}const $=Hy(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=zE(this,v,s),void 0!==b&&(y=iw(n,b,i),l?x=C=S=O=y:w=E=k=_=y,d.push({tx1:x,ty1:w,tx2:C,ty2:E,x1:S,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=BE(n.grid),f=d+c,h=u?-c:f,p=-yx(this.labelRotation),g=[];let m,v,b,y,x,w,C,E,S,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(zy(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(zy(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));E=this.getPixelForTick(m)+r.labelOffset,S=this._resolveTickFontOptions(m),k=S.lineHeight,O=Ly(y)?y.length:1;const t=O/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,f=C;if(i?(x=E,"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=E,_=(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:S,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(-yx(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=iw(e,this.left,i)-i/2,c=iw(e,this.right,a)+a/2,u=d=s):(u=iw(e,this.top,i)-i/2,d=iw(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&&uw(t,n);const o=this.getLabelItems(e);for(const e of o){const n=e.options,o=e.font;mw(t,e.label,0,e.textOffset,o,n)}n&&dw(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=Ow(n.font),i=kw(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||zy(t)?(s+=i.bottom,Ly(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=Lx(o,i,s),zy(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:AE(e,n,t);d=s-i}else{if(zy(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:AE(e,n,t);h=Lx(o,a,r),p="left"===n?-ux:ux}return{titleX:f,titleY:h,maxWidth:d,rotation:p}}(this,s,t,a);mw(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=Hy(e.grid&&e.grid.z,-1),o=Hy(e.border&&e.border.z,0);return this._isVisible()&&this.draw===VE.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 Ow(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class WE{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=Ky(Object.create(null),[n?ow.get(n):{},ow.get(t),e.defaults]);ow.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(".");ow.route(i,r,l,s)}))}(t,e.defaultRoutes);e.descriptors&&ow.describe(t,e.descriptors)}(e,i,n),this.override&&ow.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 ow[o]&&(delete ow[o][n],this.override&&delete Qx[n])}}class XE{constructor(){this.controllers=new WE(DC,"datasets",!0),this.elements=new WE(RE,"elements"),this.plugins=new WE(Object,"plugins"),this.scales=new WE(VE,"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):Xy(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=tx(e);Wy(n["before"+o],[],n),t[e](n),Wy(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 qE=new XE;class UE{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===Wy(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){Dy(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=Hy(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(qE.plugins.items);for(let e=0;e<o.length;e++)n.push(qE.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:GE(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 GE(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 KE(e,t){const n=ow.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function ZE(e){if("x"===e||"y"===e||"r"===e)return e}function QE(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function JE(e,...t){if(ZE(e))return e;for(const n of t){const t=n.axis||QE(n.position)||e.length>1&&ZE(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function eS(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function tS(e,t){const n=Qx[e.type]||{scales:{}},o=t.scales||{},r=KE(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!zy(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=JE(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 eS(e,"x",n[0])||eS(e,"y",n[0])}return{}}(t,e),ow.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};i[t]=Zy(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||KE(r,t),s=(Qx[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),Zy(i[r],[{axis:t},o[r],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];Zy(t,[ow.scales[t.type],ow.scale])})),i}function nS(e){const t=e.options||(e.options={});t.plugins=Hy(t.plugins,{}),t.scales=tS(e,t)}function oS(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const rS=new Map,iS=new Set;function aS(e,t){let n=rS.get(e);return n||(n=t(),rS.set(e,n),iS.add(n)),n}const sS=(e,t,n)=>{const o=ex(t,n);void 0!==o&&e.add(o)};class lS{constructor(e){this._config=function(e){return(e=e||{}).data=oS(e.data),nS(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=oS(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(),nS(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return aS(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return aS(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return aS(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return aS(`${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=>sS(s,e,t)))),t.forEach((e=>sS(s,o,e))),t.forEach((e=>sS(s,Qx[r]||{},e))),t.forEach((e=>sS(s,ow,e))),t.forEach((e=>sS(s,Jx,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),iS.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Qx[t]||{},ow.datasets[t]||{},{type:t},ow,Jx]}resolveNamedOptions(e,t,n,o=[""]){const r={$shared:!0},{resolver:i,subPrefixes:a}=cS(this._resolverCache,e,o);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:o}=Pw(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&(ox(a)||uS(a))||i&&Ly(a))return!0}return!1}(i,t)){r.$shared=!1;s=Nw(i,n=ox(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}=cS(this._resolverCache,e,n);return zy(t)?Nw(r,t,void 0,o):r}}function cS(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:Mw(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)}return i}const uS=e=>zy(e)&&Object.getOwnPropertyNames(e).some((t=>ox(e[t])));const dS=["top","bottom","left","right","chartArea"];function fS(e,t){return"top"===e||"bottom"===e||-1===dS.indexOf(e)&&"x"===t}function hS(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function pS(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Wy(n&&n.onComplete,[e],t)}function gS(e){const t=e.chart,n=t.options.animation;Wy(n&&n.onProgress,[e],t)}function mS(e){return Gw()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const vS={},bS=e=>{const t=mS(e);return Object.values(vS).filter((e=>e.canvas===t)).pop()};function yS(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 xS(e,t,n){return e.options.clip?e[n]:t[n]}let wS=class{static defaults=ow;static instances=vS;static overrides=Qx;static registry=qE;static version="4.4.4";static getChart=bS;static register(...e){qE.add(...e),CS()}static unregister(...e){qE.remove(...e),CS()}constructor(e,t){const n=this.config=new lS(t),o=mS(e),r=bS(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!Gw()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?vE:IE}(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=Ay(),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 UE,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=[],vS[this.id]=this,a&&s?(wC.listen(this,"complete",pS),wC.listen(this,"progress",gS),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 Dy(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 qE}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():iC(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return aw(this.canvas,this.ctx),this}stop(){return wC.stop(this),this}resize(e,t){wC.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,iC(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),Wy(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Xy(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=JE(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),Xy(r,(t=>{const r=t.options,i=r.id,a=JE(i,r),s=Hy(r.type,t.dtype);void 0!==r.position&&fS(r.position,a)===fS(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(qE.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),Xy(o,((e,t)=>{e||delete n[t]})),Xy(n,(e=>{gE.configure(this,e,e.options),gE.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(hS("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||KE(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=qE.getController(i),{datasetElementType:o,dataElementType:a}=ow.datasets[i];Object.assign(t,{dataElementType:qE.getElement(a),datasetElementType:o&&qE.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){Xy(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||Xy(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(hS("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Xy(this.scales,(e=>{gE.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);rx(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){yS(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(!rx(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;gE.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Xy(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,ox(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})&&(wC.has(this)?this.attached&&!wC.running(this)&&wC.start(this):(this.draw(),pS({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:xS(n,t,"left"),right:xS(n,t,"right"),top:xS(o,t,"top"),bottom:xS(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&uw(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&&dw(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return cw(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=nE.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=$w(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);nx(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(),wC.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(),aw(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete vS[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)};Xy(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(){Xy(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},Xy(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}}));!qy(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,Wy(r.onHover,[e,a,this],this),s&&Wy(r.onClick,[e,a,this],this));const c=!qy(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 CS(){return Xy(wS.instances,(e=>e._plugins.invalidate()))}function ES(e,t,n,o){const r=Cw(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 _x(e,0,Math.min(i,t))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:_x(r.innerStart,0,a),innerEnd:_x(r.innerEnd,0,a)}}function SS(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function kS(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/ix)/d)/2,m=l+g+h,v=r-g-h,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:w}=ES(t,f,d,v-m),C=d-b,E=d-y,S=m+b/C,k=v-y/E,O=f+x,_=f+w,$=m+x/O,M=v-w/_;if(e.beginPath(),i){const t=(S+k)/2;if(e.arc(a,s,d,S,t),e.arc(a,s,d,t,k),y>0){const t=SS(E,k,a,s);e.arc(t.x,t.y,y,k,v+ux)}const n=SS(_,v,a,s);if(e.lineTo(n.x,n.y),w>0){const t=SS(_,M,a,s);e.arc(t.x,t.y,w,v+ux,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=SS(O,$,a,s);e.arc(t.x,t.y,x,$+Math.PI,m-ux)}const r=SS(C,m,a,s);if(e.lineTo(r.x,r.y),b>0){const t=SS(C,S,a,s);e.arc(t.x,t.y,b,m-ux,S)}}else{e.moveTo(a,s);const t=Math.cos(S)*d+a,n=Math.sin(S)*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 OS(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){kS(e,t,n,o,p,r);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(p=a+(s%ax||ax))}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+ux,o-ux),e.closePath(),e.clip()}(e,t,p),i||(kS(e,t,n,o,p,r),e.stroke())}function _S(e,t,n=t){e.lineCap=Hy(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Hy(n.borderDash,t.borderDash)),e.lineDashOffset=Hy(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Hy(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Hy(n.borderWidth,t.borderWidth),e.strokeStyle=Hy(n.borderColor,t.borderColor)}function $S(e,t,n){e.lineTo(n.x,n.y)}function MS(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 NS(e,t,n,o){const{points:r,options:i}=t,{count:a,start:s,loop:l,ilen:c}=MS(r,n,o),u=function(e){return e.stepped?fw:e.tension||"monotone"===e.cubicInterpolationMode?hw:$S}(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 PS(e,t,n,o){const r=t.points,{count:i,start:a,ilen:s}=MS(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 IS(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?PS:NS}const RS="function"==typeof Path2D;function TS(e,t,n,o){RS&&!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()),_S(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=IS(t);for(const s of r)_S(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 jS(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}function AS(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 DS(e,t,n,o){return e?0:_x(t,n,o)}function LS(e){const t=AS(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=Ew(o);return{t:DS(r.top,i.top,0,n),r:DS(r.right,i.right,0,t),b:DS(r.bottom,i.bottom,0,n),l:DS(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=Sw(r),a=Math.min(t,n),s=e.borderSkipped,l=o||zy(r);return{topLeft:DS(!l||s.top||s.left,i.topLeft,0,a),topRight:DS(!l||s.top||s.right,i.topRight,0,a),bottomLeft:DS(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:DS(!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 zS(e,t,n,o){const r=null===t,i=null===n,a=e&&!(r&&i)&&AS(e,o);return a&&(r||$x(t,a.left,a.right))&&(i||$x(n,a.top,a.bottom))}function BS(e,t){e.rect(t.x,t.y,t.w,t.h)}function FS(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 HS=(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 VS 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=Wy(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=Ow(n.font),r=o.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=HS(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=WS(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=dC(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=Lx(n,this.left+o,this.right-this.lineWidths[r]);for(const s of t)r!==s.row&&(r=s.row,a=Lx(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=Lx(n,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const s of t)s.col!==r&&(r=s.col,a=Lx(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;uw(e,this),this._draw(),dw(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:r,labels:i}=e,a=ow.color,s=dC(e.rtl,this.left,this.width),l=Ow(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}=HS(i,u),m=this.isHorizontal(),v=this._computeTitleHeight();f=m?{x:Lx(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:Lx(r,this.top+v+c,this.bottom-t[0].height),line:0},fC(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)),E=h+d+w;let S=f.x,k=f.y;s.setWidth(this.width),m?x>0&&S+E+c>this.right&&(k=f.y+=b,f.line++,S=f.x=Lx(r,this.left+c,this.right-n[f.line])):x>0&&k+b>this.bottom&&(S=f.x=S+t[f.line].width+c,f.line++,k=f.y=Lx(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=Hy(n.lineWidth,1);if(o.fillStyle=Hy(n.fillStyle,a),o.lineCap=Hy(n.lineCap,"butt"),o.lineDashOffset=Hy(n.lineDashOffset,0),o.lineJoin=Hy(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=Hy(n.strokeStyle,a),o.setLineDash(Hy(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);lw(o,a,l,t+d,i.pointStyleWidth&&h)}else{const i=t+Math.max((u-p)/2,0),a=s.leftForLtr(e,h),l=Sw(n.borderRadius);o.beginPath(),Object.values(l).some((e=>0!==e))?vw(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(S),k,y),S=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(C,S+h+d,m?S+E:this.right,e.rtl),function(e,t,n){mw(o,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),k,y),m)f.x+=E+c;else if("string"!=typeof y.text){const e=l.lineHeight;f.y+=WS(y,e)+c}else f.y+=b})),hC(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Ow(t.font),o=kw(t.padding);if(!t.display)return;const r=dC(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=Lx(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+Lx(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const f=Lx(a,u,u+d);i.textAlign=r.textAlign(Dx(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,mw(i,t.text,f,c,n)}_computeTitleHeight(){const e=this.options.title,t=Ow(e.font),n=kw(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,r;if($x(e,this.left,this.right)&&$x(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],$x(e,o.left,o.left+o.width)&&$x(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&&Wy(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&Wy(t.onHover,[e,n,this],this)}else n&&Wy(t.onClick,[e,n,this],this);var o,r}}function WS(e,t){return t*(e.text?e.text.length:0)}var XS={id:"legend",_element:VS,start(e,t,n){const o=e.legend=new VS({ctx:e.ctx,options:n,chart:e});gE.configure(e,o,n),gE.addBox(e,o)},stop(e){gE.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;gE.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 qS 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=Ly(n.text)?n.text.length:1;this._padding=kw(n.padding);const r=o*Ow(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=Lx(a,n,r),c=t+e,s=r-n):("left"===i.position?(l=n+e,c=Lx(a,o,t),u=-.5*ix):(l=r-e,c=Lx(a,t,o),u=.5*ix),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=Ow(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(o);mw(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:Dx(t.align),textBaseline:"middle",translation:[r,i]})}}var US={id:"title",_element:qS,start(e,t,n){!function(e,t){const n=new qS({ctx:e.ctx,options:t,chart:e});gE.configure(e,n,t),gE.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;gE.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;gE.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 YS={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=Ex(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 GS(e,t){return t&&(Ly(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function KS(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function ZS(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 QS(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=Ow(t.bodyFont),c=Ow(t.titleFont),u=Ow(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,Xy(e.title,y),n.font=l.string,Xy(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,Xy(o,(e=>{Xy(e.before,y),Xy(e.lines,y),Xy(e.after,y)})),b=0,n.font=u.string,Xy(e.footer,y),n.restore(),m+=p.width,{width:m,height:g}}function JS(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 ek(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||JS(e,t,n,o),yAlign:o}}function tk(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}=Sw(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:_x(p,0,o.width-t.width),y:_x(g,0,o.height-t.height)}}function nk(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 ok(e){return GS([],KS(e))}function rk(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const ik={beforeTitle:jy,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:jy,beforeBody:jy,beforeLabel:jy,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 Dy(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:jy,afterBody:jy,beforeFooter:jy,footer:jy,afterFooter:jy};function ak(e,t,n,o){const r=e[t].call(n,o);return void 0===r?ik[t].call(n,o):r}class sk extends RE{static positioners=YS;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,$w(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,o=ak(n,"beforeTitle",this,e),r=ak(n,"title",this,e),i=ak(n,"afterTitle",this,e);let a=[];return a=GS(a,KS(o)),a=GS(a,KS(r)),a=GS(a,KS(i)),a}getBeforeBody(e,t){return ok(ak(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return Xy(e,(e=>{const t={before:[],lines:[],after:[]},r=rk(n,e);GS(t.before,KS(ak(r,"beforeLabel",this,e))),GS(t.lines,ak(r,"label",this,e)),GS(t.after,KS(ak(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return ok(ak(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=ak(n,"beforeFooter",this,e),r=ak(n,"footer",this,e),i=ak(n,"afterFooter",this,e);let a=[];return a=GS(a,KS(o)),a=GS(a,KS(r)),a=GS(a,KS(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(ZS(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)))),Xy(l,(t=>{const n=rk(e.callbacks,t);o.push(ak(n,"labelColor",this,t)),r.push(ak(n,"labelPointStyle",this,t)),i.push(ak(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=YS[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=QS(this,n),a=Object.assign({},e,t),s=ek(this.chart,n,a),l=tk(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}=Sw(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=dC(n.rtl,this.x,this.width);for(e.x=nk(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=Ow(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=Ow(r.bodyFont),u=nk(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,sw(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,sw(e,t,n,c)}else{e.lineWidth=zy(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=Sw(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,vw(e,{x:t,y:h,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),vw(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=Ow(n.bodyFont);let d=u.lineHeight,f=0;const h=dC(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=nk(this,g,n),t.fillStyle=n.bodyColor,Xy(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,Xy(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;Xy(m.after,p)}f=0,d=u.lineHeight,Xy(this.afterBody,p),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const s=dC(n.rtl,this.x,this.width);for(e.x=nk(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=Ow(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}=Sw(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=YS[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=QS(this,e),a=Object.assign({},n,this._size),s=ek(t,e,a),l=tk(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),fC(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),hC(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=!qy(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||!qy(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=YS[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}var lk={id:"tooltip",_element:sk,positioners:YS,afterInit(e,t,n){n&&(e.tooltip=new sk({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:ik},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 ck(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 uk(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function dk(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=!Dy(i),v=!Dy(a),b=!Dy(l),y=(g-p)/(u+1);let x,w,C,E,S=mx((g-p)/h/f)*f;if(S<1e-14&&!m&&!v)return[{value:p},{value:g}];E=Math.ceil(g/S)-Math.floor(p/S),E>h&&(S=mx(E*S/h/f)*f),Dy(s)||(x=Math.pow(10,s),S=Math.ceil(S*x)/x),"ticks"===o?(w=Math.floor(p/S)*S,C=Math.ceil(g/S)*S):(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,S/1e3)?(E=Math.round(Math.min((a-i)/S,c)),S=(a-i)/E,w=i,C=a):b?(w=m?i:w,C=v?a:C,E=l-1,S=(C-w)/E):(E=(C-w)/S,E=gx(E,Math.round(E),S/1e3)?Math.round(E):Math.ceil(E));const k=Math.max(wx(S),wx(w));x=Math.pow(10,Dy(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++,gx(Math.round((w+O*S)*x)/x,i,fk(i,y,e))&&O++):w<i&&O++);O<E;++O){const e=Math.round((w+O*S)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&C!==a?n.length&&gx(n[n.length-1].value,a,fk(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&C!==a||n.push({value:C}),n}function fk(e,t,{horizontal:n,minRotation:o}){const r=yx(o),i=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class hk extends VE{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 Dy(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=px(o),t=px(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=dk({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&&bx(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 Gx(e,this.chart.options.locale,this.options.ticks.format)}}class pk extends hk{static id="linear";static defaults={ticks:{callback:Zx.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=By(e)?e:0,this.max=By(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=yx(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}}Zx.formatters.logarithmic;Zx.formatters.numeric;const gk="label";function mk(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function vk(e,t){e.labels=t}function bk(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gk;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 yk(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gk;const n={labels:[],datasets:[]};return vk(n,e.labels),bk(n,e.datasets,t),n}function xk(t,n){const{height:o=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:s,data:l,options:c,plugins:u=[],fallbackContent:d,updateMode:f,...h}=t,p=e.useRef(null),g=e.useRef(),m=()=>{p.current&&(g.current=new wS(p.current,{type:s,data:yk(l,a),options:c&&{...c},plugins:u}),mk(n,g.current))},v=()=>{mk(n,null),g.current&&(g.current.destroy(),g.current=null)};return e.useEffect((()=>{!i&&g.current&&c&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(g.current,c)}),[i,c]),e.useEffect((()=>{!i&&g.current&&vk(g.current.config.data,l.labels)}),[i,l.labels]),e.useEffect((()=>{!i&&g.current&&l.datasets&&bk(g.current.config.data,l.datasets,a)}),[i,l.datasets]),e.useEffect((()=>{g.current&&(i?(v(),setTimeout(m)):g.current.update(f))}),[i,c,l.labels,l.datasets,f]),e.useEffect((()=>{g.current&&(v(),setTimeout(m))}),[s]),e.useEffect((()=>(m(),()=>v())),[]),e.createElement("canvas",Object.assign({ref:p,role:"img",height:o,width:r},h),d)}const wk=e.forwardRef(xk);function Ck(t,n){return wS.register(n),e.forwardRef(((n,o)=>e.createElement(wk,Object.assign({},n,{ref:o,type:t}))))}const Ek=Ck("line",YC),Sk=Ck("bar",qC),kk=Ck("doughnut",UC),Ok=Ck("pie",GC);Zb(".appChart {\n & > canvas {\n height: 100% !important;\n width: 100% !important;\n }\n}\n"),wS.register(class extends VE{static id="category";static defaults={ticks:{callback:uk}};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(Dy(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:_x(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:ck(n,e,Hy(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 uk.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}},pk,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}=LS(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?vw:BS;var s;e.save(),i.w===r.w&&i.h===r.h||(e.beginPath(),a(e,FS(i,t,r)),e.clip(),a(e,FS(r,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,FS(r,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return zS(this,e,t,n)}inXRange(e,t){return zS(this,e,null,t)}inYRange(e,t){return zS(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;Yw(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 vC(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=mC(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?cC:e.tension||"monotone"===e.cubicInterpolationMode?uC:lC}(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 IS(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=IS(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(),TS(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 jS(this,e,"x",t)}inYRange(e,t){return jS(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||!cw(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,sw(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}=Cx(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=Hy(u,s-a),h=Ox(r,a,s)&&a!==s,p=f>=ax||h,g=$x(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>ax?Math.floor(n/ax):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(ix,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){kS(e,t,n,o,l,r);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%ax||ax))}kS(e,t,n,o,l,r),e.fill()}(e,this,s,r,i),OS(e,this,s,r,i),e.restore()}},US,lk,XS);Zb(".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");exports.AppBackArrow=function(e){var t=e.text,n=void 0===t?"Back":t,o=e.href,r=e.className,i=e.backIcon;return d.jsxs("div",{className:"backArrow ".concat(r),onClick:function(){window.location.href=o},children:[d.jsx("span",{className:"icon",children:i||Jb.backArrow}),n&&d.jsx("span",{className:"text",children:n})]})},exports.AppBadge=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 d.jsx("div",{className:"appBadge ".concat(o),children:d.jsx(If,ey({count:t},i,{children:r?d.jsx("div",{className:"ribbonWrapper",children:d.jsx(If.Ribbon,{text:r.text,color:r.color,placement:r.placement,children:n})}):n}))})},exports.AppButton=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 d.jsx("div",{className:"appButton ".concat(o),children:d.jsx(Vl,{disabled:s,type:t,className:["customBtn",i?"btn-icon":"","right"===l?"iconRight":""].join(" "),size:n,onClick:r,icon:i,loading:c,children:a})})},exports.AppChart=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 d.jsx("div",{style:{height:a,width:l},className:"appChart ".concat(r),children:function(){switch(t){case"bar":return d.jsx(Sk,{data:n,options:o,className:r});case"line":return d.jsx(Ek,{data:n,options:o,className:r});case"pie":return d.jsx(Ok,{data:n,options:o,className:r});case"doughnut":return d.jsx(kk,{data:n,options:o,className:r});default:return null}}()})},exports.AppImageBox=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 d.jsxs("div",{className:"appImageBox ".concat(l),children:[d.jsx(Fv,{preview:!1,width:n,height:r,src:s.src,alt:a}),a&&d.jsx("span",{className:"text",children:a})]})},exports.AppInput=function(t){var n=t.className,o=t.label,r=t.name,i=t.value,a=t.dataTestId,s=t.type,l=t.id,c=t.disabled,u=t.handleChange,f=t.onClick,h=t.defaultValue,p=t.onPressEnter,g=t.isAutoFocus,m=t.triggerFocus,v=t.isOptional,b=t.errorMessage,y=t.suffixIcon,x=t.prefixIcon,w=e.useRef(null);e.useEffect((function(){g&&w.current&&w.current.focus()}),[m,g]);var C=v?"".concat(o," (optional)"):o;return d.jsxs("div",{className:"appInput ".concat(n),children:[d.jsx(Um,{type:s,"data-test-id":a,id:l,disabled:c,name:r,className:"input",value:i,onChange:u,onClick:f,defaultValue:h,onPressEnter:p,placeholder:C,ref:w,prefix:x&&x,suffix:y&&y}),b&&d.jsx("div",{className:"error",children:b})]})},exports.AppSidebar=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:d.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&d.jsx("span",{className:"tag",children:e.tag})]})}})),s=null==o?void 0:o.map((function(e){return{key:e.path,label:d.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return d.jsx("div",{className:"sideBar ".concat(r),children:d.jsxs(Qb,{className:"sider",children:[d.jsx("div",{className:"logo",children:n}),d.jsx(Wp,{mode:"inline",className:"menu",items:a}),o&&d.jsx("div",{className:"footer",children:d.jsx(Wp,{mode:"inline",items:s})})]})})},exports.AppTab=function(e){var t=e.className,n=e.items,o=e.handleChange,r=e.defaultActiveKey;return d.jsx("div",{className:"appTab ".concat(t),children:d.jsx(am,{defaultActiveKey:r,items:n,onChange:o,className:"tab"})})},exports.AppTextarea=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,f=e.className,h=e.error;return d.jsxs("div",{className:"appTextArea ".concat(f),children:[d.jsx(Um.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}),h&&d.jsx("div",{className:"error",children:h})]})},exports.OverViewCard=function(e){var t=e.className,n=e.text,o=e.number;return d.jsxs("div",{className:"overViewCard ".concat(t),children:[d.jsx(ty,{children:n}),d.jsx("span",{children:o})]})};
45
+ */class tM{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=mO.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 nM=new tM;const oM="transparent",rM={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=kO(e||oM),r=o.valid&&kO(t||oM);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class iM{constructor(e,t,n,o){const r=t[n];o=l$([e.to,o,r,e.from]);const i=l$([e.from,r,o]);this._active=!0,this._fn=e.fn||rM[e.type||typeof i],this._easing=EO[e.easing]||EO.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=l$([e.to,t,o,e.from]),this._from=l$([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 aM{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!xk(e))return;const t=Object.keys(AO.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!xk(r))return;const i={};for(const e of t)i[e]=r[e];(yk(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 iM(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?(nM.add(this._chart,n),!0):void 0}}function sM(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 lM(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 cM(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],Ck(c)&&(i||0===t||Kk(t)===Kk(c))&&(t+=c)}return t}}function uM(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function dM(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function pM(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 fM(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 p;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;p=(n._stacks||(n._stacks={}))[c]=dM(r,u,i),p[s]=d,p._top=pM(p,a,!0,o.type),p._bottom=pM(p,a,!1,o.type);(p._visualValues||(p._visualValues={}))[s]=d}}function hM(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function gM(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 mM=e=>"reset"===e||"none"===e,vM=(e,t)=>t?e:Object.assign({},e);class bM{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=uM(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&&gM(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=Ek(n.xAxisID,hM(e,"x")),i=t.yAxisID=Ek(n.yAxisID,hM(e,"y")),a=t.rAxisID=Ek(n.rAxisID,hM(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&&hO(this._data,this),e._stacked&&gM(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(xk(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){hO(n,this);const e=this._cachedMeta;gM(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]}}),fO.forEach((t=>{const n="_onData"+Tk(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=uM(t.vScale,t),t.stack!==n.stack&&(o=!0,gM(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&fM(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=yk(o[e])?this.parseArrayData(n,o,e,t):xk(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&&fM(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,p,f;for(d=0,p=o;d<p;++d)f=d+n,u[d]={[a]:c||r.parse(l[f],f),[s]:i.parse(t[f],f)};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,p;for(c=0,u=o;c<u;++c)d=c+n,p=t[d],l[c]={x:r.parse(jk(p,a),d),y:i.parse(jk(p,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 cM({keys:lM(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=cM(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:lM(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,p;function f(){p=o[d];const t=p[a.axis];return!Ck(p[e.axis])||c>t||u<t}for(d=0;d<i&&(f()||(this.updateRangeFromParsed(l,e,p,s),!r));++d);if(r)for(d=i-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,e,p,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],Ck(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 xk(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}}(Ek(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=sM(e,n),r=sM(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 c$(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 c$(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&&Dk(n);if(a)return vM(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),p=Object.keys(AO.elements[e]),f=l.resolveNamedOptions(d,p,(()=>this.getContext(n,o,t)),u);return f.$shared&&(f.$shared=s,r[i]=Object.freeze(vM(f,s))),f}_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 aM(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||mM(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){mM(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!mM(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&&gM(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 yM(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=gO(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&&(Dk(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 xM(e,t,n,o){return yk(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 CM(e,t,n,o){const r=e.iScale,i=e.vScale,a=r.getLabels(),s=r===i,l=[];let c,u,d,p;for(c=n,u=n+o;c<u;++c)p=t[c],d={},d[r.axis]=s||r.parse(a[c],c),l.push(xM(p,d,i,c));return l}function wM(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function EM(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[SM(u,a,s,l)]=!0,r=c)),i[SM(r,a,s,l)]=!0,e.borderSkipped=i}function SM(e,t,n,o){var r,i,a;return o?(a=n,e=kM(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=kM(e,t,n),e}function kM(e,t,n){return"start"===e?t:"end"===e?n:e}function OM(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class $M extends bM{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 CM(e,t,n,o)}parseArrayData(e,t,n,o){return CM(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,p,f,h;for(d=n,p=n+o;d<p;++d)h=t[d],f={},f[r.axis]=r.parse(jk(h,l),d),u.push(xM(jk(h,c),f,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=wM(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 p=t;p<t+n;p++){const t=this.getParsed(p),n=r||bk(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),f=this._calculateBarIndexPixels(p,c),h=(t._stacks||{})[a.axis],g={horizontal:l,base:n.base,enableBorderRadius:!h||wM(t._custom)||i===h._top||i===h._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};d&&(g.options=u||this.resolveDataElementOptions(p,e[p].active?"active":o));const m=g.options||e[p].options;EM(g,m,h,i),OM(g,m,c.ratio),this.updateElement(e[p],p,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(bk(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||yM(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=wM(l);let u,d,p=s[t.axis],f=0,h=n?this.applyStack(t,s,n):p;h!==p&&(f=h-p,h=p),c&&(p=l.barStart,h=l.barEnd-l.barStart,0!==p&&Kk(p)!==Kk(l.barEnd)&&(f=0),f+=p);const g=bk(r)||c?f:r;let m=t.getPixelForValue(g);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(f+h):m,d=u-m,Math.abs(d)<i){d=function(e,t,n){return 0!==e?Kk(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,p===a&&(m-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),f=Math.max(e,r);m=Math.max(Math.min(m,f),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=Kk(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=Ek(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 bk(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 MM extends bM{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(xk(n[e])){const{key:e="value"}=this._parsing;a=t=>+jk(n[t],e)}for(r=e,i=e+t;r<i;++r)o._parsed[r]=a(r)}}_getRotation(){return eO(this.options.rotation-90)}_getCircumference(){return eO(this.options.circumference)}_getRotationExtents(){let e=Hk,t=-Hk;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:p}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:m}=function(e,t,n){let o=1,r=1,i=0,a=0;if(t<Hk){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),p=Math.sin(l),f=(e,t,o)=>sO(e,s,l,!0)?1:Math.max(t,t*n,o,o*n),h=(e,t,o)=>sO(e,s,l,!0)?-1:Math.min(t,t*n,o,o*n),g=f(0,c,d),m=f(Uk,u,p),v=h(Bk,c,d),b=h(Bk+Uk,u,p);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}}(p,d,s),v=(n.width-i)/f,b=(n.height-i)/h,y=Math.max(Math.min(v,b)/2,0),x=Sk(this.options.radius,y),C=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,o.total=this.calculateTotal(),this.outerRadius=x-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*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/Hk)}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,p=u?0:this.outerRadius,{sharedOptions:f,includeOptions:h}=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:p,innerRadius:d};h&&(i.options=f||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)?Hk*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=PO(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(Ek(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class _M extends bM{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:p}=a.getUserBounds();d&&(r=lO(Math.min(dO(s,l,c).lo,n?o:dO(t,l,a.getPixelForValue(c)).lo),0,o-1)),i=p?lO(Math.max(dO(s,a.axis,u,!0).hi+1,n?0:dO(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,p=a.axis,{spanGaps:f,segment:h}=this.options,g=Qk(f)?f: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 f=e[n],b=m?f:{};if(n<t||n>=v){b.skip=!0;continue}const x=this.getParsed(n),C=bk(x[p]),w=b[d]=i.getPixelForValue(x[d],n),E=b[p]=r||C?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[p],n);b.skip=isNaN(w)||isNaN(E)||C,b.stop=n>0&&Math.abs(x[d]-y[d])>g,h&&(b.parsed=x,b.raw=l.data[n]),u&&(b.options=c||this.resolveDataElementOptions(n,f.active?"active":o)),m||this.updateElement(f,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 PM extends MM{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function NM(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?pO:dO;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 IM(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}=NM(i[e],t,a,r);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function LM(e,t,n,o,r){const i=[];if(!r&&!e.isPointInArea(t))return i;return IM(e,n,t,(function(n,a,s){(r||WO(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function RM(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 IM(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(o&&!d)return;const p=n.getCenterPoint(r);if(!(!!i||e.isPointInArea(p))&&!d)return;const f=s(t,p);f<l?(a=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function jM(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?RM(e,t,n,o,r,i):function(e,t,n,o){let r=[];return IM(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=oO(e,{x:t.x,y:t.y});sO(l,a,s)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function TM(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return IM(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 DM={evaluateInteractionItems:IM,modes:{index(e,t,n,o){const r=D$(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?LM(e,r,i,o,a):jM(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=D$(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?LM(e,r,i,o,a):jM(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)=>LM(e,D$(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=D$(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return jM(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>TM(e,D$(t,e),"x",n.intersect,o),y:(e,t,n,o)=>TM(e,D$(t,e),"y",n.intersect,o)}};const AM=["left","top","right","bottom"];function zM(e,t){return e.filter((e=>e.pos===t))}function BM(e,t){return e.filter((e=>-1===AM.indexOf(e.pos)&&e.box.axis===t))}function HM(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 FM(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!AM.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 VM(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function WM(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 UM(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!xk(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&&WM(a,i.getPadding());const s=Math.max(0,t.outerWidth-VM(a,e,"left","right")),l=Math.max(0,t.outerHeight-VM(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 XM(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 qM(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,XM(s.horizontal,t));const{same:a,other:d}=UM(t,n,s,o);c|=a&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&qM(r,t,n,o)||u}function GM(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 KM(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;Dk(l.start)&&(a=l.start),e.fullSize?GM(e,r.left,a,n.outerWidth-r.right-r.left,i):GM(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;Dk(l.start)&&(i=l.start),e.fullSize?GM(e,i,r.top,a,n.outerHeight-r.bottom-r.top):GM(e,i,t.top+l.placed,a,o),l.start=i,l.placed+=o,i=e.right}}t.x=i,t.y=a}var YM={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=a$(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=HM(t.filter((e=>e.box.fullSize)),!0),o=HM(zM(t,"left"),!0),r=HM(zM(t,"right")),i=HM(zM(t,"top"),!0),a=HM(zM(t,"bottom")),s=BM(t,"x"),l=BM(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:zM(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;Ok(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}),p=Object.assign({},r);WM(p,a$(o));const f=Object.assign({maxPadding:p,w:i,h:a,x:r.left,y:r.top},r),h=FM(l.concat(c),d);qM(s.fullSize,f,d,h),qM(l,f,d,h),qM(c,f,d,h)&&qM(l,f,d,h),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")}(f),KM(s.leftAndTop,f,d,h),f.x+=f.w,f.y+=f.h,KM(s.rightAndBottom,f,d,h),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Ok(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class ZM{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 QM extends ZM{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const JM="$chartjs",e_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},t_=e=>null===e||""===e;const n_=!!H$&&{passive:!0};function o_(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,n_)}function r_(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function i_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||r_(n.addedNodes,o),t=t&&!r_(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function a_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||r_(n.removedNodes,o),t=t&&!r_(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const s_=new Map;let l_=0;function c_(){const e=window.devicePixelRatio;e!==l_&&(l_=e,s_.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function u_(e,t,n){const o=e.canvas,r=o&&N$(o);if(!r)return;const i=vO(((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){s_.size||window.addEventListener("resize",c_),s_.set(e,t)}(e,i),a}function d_(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){s_.delete(e),s_.size||window.removeEventListener("resize",c_)}(e)}function p_(e,t,n){const o=e.canvas,r=vO((t=>{null!==e.ctx&&n(function(e,t){const n=e_[e.type]||e.type,{x:o,y:r}=D$(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,n_)}(o,t,r),r}class f_ extends ZM{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[JM]={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",t_(r)){const t=F$(e,"width");void 0!==t&&(e.width=t)}if(t_(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=F$(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[JM])return!1;const n=t[JM].initial;["height","width"].forEach((e=>{const o=n[e];bk(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[JM],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:i_,detach:a_,resize:u_}[t]||p_;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];if(!o)return;({attach:d_,detach:d_,resize:d_}[t]||o_)(e,t,o),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return z$(e,t,n,o)}isAttached(e){const t=e&&N$(e);return!(!t||!t.isConnected)}}let h_=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 Qk(this.x)&&Qk(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 g_(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(m_(t,c,u,bk(o)?0:s-o,s),e=0,n=a-1;e<n;e++)m_(t,c,u,i[e],i[e+1]);return m_(t,c,u,l,bk(o)?t.length:l+o),c}return m_(t,c,u),c}function m_(e,t,n,o,r){const i=Ek(o,0),a=Math.min(Ek(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 v_=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,b_=(e,t)=>Math.min(t||e,e);function y_(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 x_(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 C_(e){return e.drawTicks?e.tickLength:0}function w_(e,t){if(!e.display)return 0;const n=s$(e.font,t),o=a$(e.padding);return(yk(e.text)?e.text.length:1)*n.lineHeight+o.height}function E_(e,t,n){let o=bO(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class S_ extends h_{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=wk(e,Number.POSITIVE_INFINITY),t=wk(t,Number.NEGATIVE_INFINITY),n=wk(n,Number.POSITIVE_INFINITY),o=wk(o,Number.NEGATIVE_INFINITY),{min:wk(e,n),max:wk(t,o),minDefined:Ck(e),maxDefined:Ck(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:wk(n,wk(o,n)),max:wk(o,wk(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(){kk(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=Sk(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?y_(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=g_(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(){kk(this.options.afterUpdate,[this])}beforeSetDimensions(){kk(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(){kk(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),kk(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){kk(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=kk(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){kk(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){kk(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=b_(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,p=lO(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:p/(n-1),u+6>i&&(i=p/(n-(e.offset?.5:1)),a=this.maxHeight-C_(e.grid)-t.padding-w_(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=tO(Math.min(Math.asin(lO((c.highest.height+6)/i,-1,1)),Math.asin(lO(a/s,-1,1))-Math.asin(lO(d/s,-1,1)))),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){kk(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){kk(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=w_(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=C_(r)+i):(e.height=this.maxHeight,e.width=C_(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=eO(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(){kk(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++)bk(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=y_(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/b_(t,n));let l,c,u,d,p,f,h,g,m,v,b,y=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,p=this._resolveTickFontOptions(l),o.font=f=p.string,h=r[f]=r[f]||{data:{},gc:[]},g=p.lineHeight,m=v=0,bk(d)||yk(d)){if(yk(d))for(c=0,u=d.length;c<u;++c)b=d[c],bk(b)||yk(b)||(m=zO(o,h.data,h.gc,m,b),v+=g)}else m=zO(o,h.data,h.gc,m,d),v=g;i.push(m),a.push(v),y=Math.max(m,y),x=Math.max(v,x)}!function(e,t){Ok(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 C=i.indexOf(y),w=a.indexOf(x),E=e=>({width:i[e]||0,height:a[e]||0});return{first:E(0),last:E(t-1),widest:E(C),highest:E(w),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 lO(this._alignToPixels?BO(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 c$(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=c$(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=eO(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=C_(r),d=[],p=a.setContext(this.getContext()),f=p.display?p.width:0,h=f/2,g=function(e){return BO(n,e,f)};let m,v,b,y,x,C,w,E,S,k,O,$;if("top"===i)m=g(this.bottom),C=this.bottom-u,E=m-h,k=g(e.top)+h,$=e.bottom;else if("bottom"===i)m=g(this.top),k=e.top,$=g(e.bottom)-h,C=m+h,E=this.top+u;else if("left"===i)m=g(this.right),x=this.right-u,w=m-h,S=g(e.left)+h,O=e.right;else if("right"===i)m=g(this.left),S=e.left,O=g(e.right)-h,x=m+h,w=this.left+u;else if("x"===t){if("center"===i)m=g((e.top+e.bottom)/2+.5);else if(xk(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}k=e.top,$=e.bottom,C=m+h,E=C+u}else if("y"===t){if("center"===i)m=g((e.left+e.right)/2);else if(xk(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}x=m-h,w=x-u,S=e.left,O=e.right}const M=Ek(o.ticks.maxTicksLimit,c),_=Math.max(1,Math.ceil(c/M));for(v=0;v<c;v+=_){const e=this.getContext(v),t=r.setContext(e),o=a.setContext(e),i=t.lineWidth,c=t.color,u=o.dash||[],p=o.dashOffset,f=t.tickWidth,h=t.tickColor,g=t.tickBorderDash||[],m=t.tickBorderDashOffset;b=x_(this,v,s),void 0!==b&&(y=BO(n,b,i),l?x=w=S=O=y:C=E=k=$=y,d.push({tx1:x,ty1:C,tx2:w,ty2:E,x1:S,y1:k,x2:O,y2:$,width:i,color:c,borderDash:u,borderDashOffset:p,tickWidth:f,tickColor:h,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=C_(n.grid),p=d+c,f=u?-c:p,h=-eO(this.labelRotation),g=[];let m,v,b,y,x,C,w,E,S,k,O,$,M="middle";if("top"===o)C=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===o)C=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,x=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,x=e.x}else if("x"===t){if("center"===o)C=(e.top+e.bottom)/2+p;else if(xk(o)){const e=Object.keys(o)[0],t=o[e];C=this.chart.scales[e].getPixelForValue(t)+p}w=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)x=(e.left+e.right)/2-p;else if(xk(o)){const e=Object.keys(o)[0],t=o[e];x=this.chart.scales[e].getPixelForValue(t)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?M="top":"end"===s&&(M="bottom"));const _=this._getLabelSizes();for(m=0,v=a.length;m<v;++m){b=a[m],y=b.label;const e=r.setContext(this.getContext(m));E=this.getPixelForTick(m)+r.labelOffset,S=this._resolveTickFontOptions(m),k=S.lineHeight,O=yk(y)?y.length:1;const t=O/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,p=w;if(i?(x=E,"inner"===w&&(p=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),$="top"===o?"near"===l||0!==h?-O*k+k/2:"center"===l?-_.highest.height/2-t*k+k:-_.highest.height+k/2:"near"===l||0!==h?k/2:"center"===l?_.highest.height/2-t*k:_.highest.height-O*k,u&&($*=-1),0===h||e.showLabelBackdrop||(x+=k/2*Math.sin(h))):(C=E,$=(1-O)*k/2),e.showLabelBackdrop){const t=a$(e.backdropPadding),n=_.heights[m],o=_.widths[m];let r=$-t.top,i=0-t.left;switch(M){case"middle":r-=n/2;break;case"bottom":r-=n}switch(w){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:S,textOffset:$,options:{rotation:h,color:n,strokeColor:s,strokeWidth:c,textAlign:p,textBaseline:M,translation:[x,C],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-eO(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=BO(e,this.left,i)-i/2,c=BO(e,this.right,a)+a/2,u=d=s):(u=BO(e,this.top,i)-i/2,d=BO(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&&UO(t,n);const o=this.getLabelItems(e);for(const e of o){const n=e.options,o=e.font;ZO(t,e.label,0,e.textOffset,o,n)}n&&XO(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=s$(n.font),i=a$(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||xk(t)?(s+=i.bottom,yk(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,p,f,h=0;const g=a-r,m=s-i;if(e.isHorizontal()){if(p=yO(o,i,s),xk(n)){const e=Object.keys(n)[0],o=n[e];f=u[e].getPixelForValue(o)+g-t}else f="center"===n?(c.bottom+c.top)/2+g-t:v_(e,n,t);d=s-i}else{if(xk(n)){const e=Object.keys(n)[0],o=n[e];p=u[e].getPixelForValue(o)-m+t}else p="center"===n?(c.left+c.right)/2-m+t:v_(e,n,t);f=yO(o,a,r),h="left"===n?-Uk:Uk}return{titleX:p,titleY:f,maxWidth:d,rotation:h}}(this,s,t,a);ZO(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:E_(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=Ek(e.grid&&e.grid.z,-1),o=Ek(e.border&&e.border.z,0);return this._isVisible()&&this.draw===S_.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 s$(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class k_{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=Nk(Object.create(null),[n?AO.get(n):{},AO.get(t),e.defaults]);AO.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(".");AO.route(i,r,l,s)}))}(t,e.defaultRoutes);e.descriptors&&AO.describe(t,e.descriptors)}(e,i,n),this.override&&AO.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 AO[o]&&(delete AO[o][n],this.override&&delete LO[n])}}class O_{constructor(){this.controllers=new k_(bM,"datasets",!0),this.elements=new k_(h_,"elements"),this.plugins=new k_(Object,"plugins"),this.scales=new k_(S_,"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):Ok(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=Tk(e);kk(n["before"+o],[],n),t[e](n),kk(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 $_=new O_;class M_{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===kk(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){bk(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=Ek(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys($_.plugins.items);for(let e=0;e<o.length;e++)n.push($_.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=__(o[t],r);null!==l&&i.push({plugin:s,options:P_(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 __(e,t){return t||!1!==e?!0===e?{}:e:null}function P_(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 N_(e,t){const n=AO.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function I_(e){if("x"===e||"y"===e||"r"===e)return e}function L_(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function R_(e,...t){if(I_(e))return e;for(const n of t){const t=n.axis||L_(n.position)||e.length>1&&I_(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function j_(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function T_(e,t){const n=LO[e.type]||{scales:{}},o=t.scales||{},r=N_(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!xk(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=R_(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 j_(e,"x",n[0])||j_(e,"y",n[0])}return{}}(t,e),AO.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};i[t]=Ik(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||N_(r,t),s=(LO[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),Ik(i[r],[{axis:t},o[r],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];Ik(t,[AO.scales[t.type],AO.scale])})),i}function D_(e){const t=e.options||(e.options={});t.plugins=Ek(t.plugins,{}),t.scales=T_(e,t)}function A_(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const z_=new Map,B_=new Set;function H_(e,t){let n=z_.get(e);return n||(n=t(),z_.set(e,n),B_.add(n)),n}const F_=(e,t,n)=>{const o=jk(t,n);void 0!==o&&e.add(o)};class V_{constructor(e){this._config=function(e){return(e=e||{}).data=A_(e.data),D_(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=A_(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(),D_(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return H_(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return H_(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return H_(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return H_(`${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=>F_(s,e,t)))),t.forEach((e=>F_(s,o,e))),t.forEach((e=>F_(s,LO[r]||{},e))),t.forEach((e=>F_(s,AO,e))),t.forEach((e=>F_(s,RO,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),B_.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,LO[t]||{},AO.datasets[t]||{},{type:t},AO,RO]}resolveNamedOptions(e,t,n,o=[""]){const r={$shared:!0},{resolver:i,subPrefixes:a}=W_(this._resolverCache,e,o);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:o}=p$(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&(Ak(a)||U_(a))||i&&yk(a))return!0}return!1}(i,t)){r.$shared=!1;s=d$(i,n=Ak(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}=W_(this._resolverCache,e,n);return xk(t)?d$(r,t,void 0,o):r}}function W_(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:u$(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)}return i}const U_=e=>xk(e)&&Object.getOwnPropertyNames(e).some((t=>Ak(e[t])));const X_=["top","bottom","left","right","chartArea"];function q_(e,t){return"top"===e||"bottom"===e||-1===X_.indexOf(e)&&"x"===t}function G_(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function K_(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),kk(n&&n.onComplete,[e],t)}function Y_(e){const t=e.chart,n=t.options.animation;kk(n&&n.onProgress,[e],t)}function Z_(e){return P$()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Q_={},J_=e=>{const t=Z_(e);return Object.values(Q_).filter((e=>e.canvas===t)).pop()};function eP(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 tP(e,t,n){return e.options.clip?e[n]:t[n]}let nP=class{static defaults=AO;static instances=Q_;static overrides=LO;static registry=$_;static version="4.4.4";static getChart=J_;static register(...e){$_.add(...e),oP()}static unregister(...e){$_.remove(...e),oP()}constructor(e,t){const n=this.config=new V_(t),o=Z_(e),r=J_(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!P$()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?QM:f_}(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=vk(),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 M_,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=[],Q_[this.id]=this,a&&s?(nM.listen(this,"complete",K_),nM.listen(this,"progress",Y_),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 bk(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 $_}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():B$(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return HO(this.canvas,this.ctx),this}stop(){return nM.stop(this),this}resize(e,t){nM.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,B$(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),kk(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Ok(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=R_(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),Ok(r,(t=>{const r=t.options,i=r.id,a=R_(i,r),s=Ek(r.type,t.dtype);void 0!==r.position&&q_(r.position,a)===q_(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($_.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),Ok(o,((e,t)=>{e||delete n[t]})),Ok(n,(e=>{YM.configure(this,e,e.options),YM.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(G_("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||N_(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=$_.getController(i),{datasetElementType:o,dataElementType:a}=AO.datasets[i];Object.assign(t,{dataElementType:$_.getElement(a),datasetElementType:o&&$_.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){Ok(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||Ok(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(G_("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Ok(this.scales,(e=>{YM.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);zk(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){eP(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(!zk(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;YM.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Ok(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,Ak(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})&&(nM.has(this)?this.attached&&!nM.running(this)&&nM.start(this):(this.draw(),K_({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:tP(n,t,"left"),right:tP(n,t,"right"),top:tP(o,t,"top"),bottom:tP(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&UO(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&&XO(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return WO(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=DM.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=c$(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);Dk(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(),nM.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(),HO(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Q_[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)};Ok(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(){Ok(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},Ok(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}}));!$k(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,kk(r.onHover,[e,a,this],this),s&&kk(r.onClick,[e,a,this],this));const c=!$k(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 oP(){return Ok(nP.instances,(e=>e._plugins.invalidate()))}function rP(e,t,n,o){const r=o$(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 lO(e,0,Math.min(i,t))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:lO(r.innerStart,0,a),innerEnd:lO(r.innerEnd,0,a)}}function iP(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function aP(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),p=u>0?u+o+n+c:0;let f=0;const h=r-l;if(o){const e=((u>0?u-o:0)+(d>0?d-o:0))/2;f=(h-(0!==e?h*e/(e+o):h))/2}const g=(h-Math.max(.001,h*d-n/Bk)/d)/2,m=l+g+f,v=r-g-f,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:C}=rP(t,p,d,v-m),w=d-b,E=d-y,S=m+b/w,k=v-y/E,O=p+x,$=p+C,M=m+x/O,_=v-C/$;if(e.beginPath(),i){const t=(S+k)/2;if(e.arc(a,s,d,S,t),e.arc(a,s,d,t,k),y>0){const t=iP(E,k,a,s);e.arc(t.x,t.y,y,k,v+Uk)}const n=iP($,v,a,s);if(e.lineTo(n.x,n.y),C>0){const t=iP($,_,a,s);e.arc(t.x,t.y,C,v+Uk,_+Math.PI)}const o=(v-C/p+(m+x/p))/2;if(e.arc(a,s,p,v-C/p,o,!0),e.arc(a,s,p,o,m+x/p,!0),x>0){const t=iP(O,M,a,s);e.arc(t.x,t.y,x,M+Math.PI,m-Uk)}const r=iP(w,m,a,s);if(e.lineTo(r.x,r.y),b>0){const t=iP(w,S,a,s);e.arc(t.x,t.y,b,m-Uk,S)}}else{e.moveTo(a,s);const t=Math.cos(S)*d+a,n=Math.sin(S)*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 sP(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:p}=l,f="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=p,f?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let h=t.endAngle;if(i){aP(e,t,n,o,h,r);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(h=a+(s%Hk||Hk))}f&&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+Uk,o-Uk),e.closePath(),e.clip()}(e,t,h),i||(aP(e,t,n,o,h,r),e.stroke())}function lP(e,t,n=t){e.lineCap=Ek(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ek(n.borderDash,t.borderDash)),e.lineDashOffset=Ek(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ek(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ek(n.borderWidth,t.borderWidth),e.strokeStyle=Ek(n.borderColor,t.borderColor)}function cP(e,t,n){e.lineTo(n.x,n.y)}function uP(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 dP(e,t,n,o){const{points:r,options:i}=t,{count:a,start:s,loop:l,ilen:c}=uP(r,n,o),u=function(e){return e.stepped?qO:e.tension||"monotone"===e.cubicInterpolationMode?GO:cP}(i);let d,p,f,{move:h=!0,reverse:g}=o||{};for(d=0;d<=c;++d)p=r[(s+(g?c-d:d))%a],p.skip||(h?(e.moveTo(p.x,p.y),h=!1):u(e,f,p,g,i.stepped),f=p);return l&&(p=r[(s+(g?c:0))%a],u(e,f,p,g,i.stepped)),!!l}function pP(e,t,n,o){const r=t.points,{count:i,start:a,ilen:s}=uP(r,n,o),{move:l=!0,reverse:c}=o||{};let u,d,p,f,h,g,m=0,v=0;const b=e=>(a+(c?s-e:e))%i,y=()=>{f!==h&&(e.lineTo(m,h),e.lineTo(m,f),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===p?(n<f?f=n:n>h&&(h=n),m=(v*m+t)/++v):(y(),e.lineTo(t,n),p=o,v=0,f=h=n),g=n}y()}function fP(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?pP:dP}const hP="function"==typeof Path2D;function gP(e,t,n,o){hP&&!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()),lP(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=fP(t);for(const s of r)lP(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 mP(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}function vP(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 bP(e,t,n,o){return e?0:lO(t,n,o)}function yP(e){const t=vP(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=r$(o);return{t:bP(r.top,i.top,0,n),r:bP(r.right,i.right,0,t),b:bP(r.bottom,i.bottom,0,n),l:bP(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=i$(r),a=Math.min(t,n),s=e.borderSkipped,l=o||xk(r);return{topLeft:bP(!l||s.top||s.left,i.topLeft,0,a),topRight:bP(!l||s.top||s.right,i.topRight,0,a),bottomLeft:bP(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:bP(!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 xP(e,t,n,o){const r=null===t,i=null===n,a=e&&!(r&&i)&&vP(e,o);return a&&(r||cO(t,a.left,a.right))&&(i||cO(n,a.top,a.bottom))}function CP(e,t){e.rect(t.x,t.y,t.w,t.h)}function wP(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 EP=(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 SP extends h_{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=kk(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=s$(n.font),r=o.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=EP(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,p=-c;return this.legendItems.forEach(((e,f)=>{const h=n+t/2+r.measureText(e.text).width;(0===f||l[l.length-1]+h+2*a>i)&&(u+=c,l[l.length-(f>0?0:1)]=0,p+=c,d++),s[f]={left:0,top:p,row:d,width:h,height:o},l[l.length-1]+=h+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,p=0,f=0,h=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=kP(t,n));return o}(r,o,t.lineHeight);return{itemWidth:i,itemHeight:a}}(n,t,r,e,o);i>0&&p+m+2*a>c&&(u+=d+a,l.push({width:d,height:p}),f+=d+a,h++,d=p=0),s[i]={left:f,top:p,col:h,width:g,height:m},d=Math.max(d,g),p+=m+a})),u+=d,l.push({width:d,height:p}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:o},rtl:r}}=this,i=X$(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=yO(n,this.left+o,this.right-this.lineWidths[r]);for(const s of t)r!==s.row&&(r=s.row,a=yO(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=yO(n,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const s of t)s.col!==r&&(r=s.col,a=yO(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;UO(e,this),this._draw(),XO(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:r,labels:i}=e,a=AO.color,s=X$(e.rtl,this.left,this.width),l=s$(i.font),{padding:c}=i,u=l.size,d=u/2;let p;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=l.string;const{boxWidth:f,boxHeight:h,itemHeight:g}=EP(i,u),m=this.isHorizontal(),v=this._computeTitleHeight();p=m?{x:yO(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:yO(r,this.top+v+c,this.bottom-t[0].height),line:0},q$(this.ctx,e.textDirection);const b=g+c;this.legendItems.forEach(((y,x)=>{o.strokeStyle=y.fontColor,o.fillStyle=y.fontColor;const C=o.measureText(y.text).width,w=s.textAlign(y.textAlign||(y.textAlign=i.textAlign)),E=f+d+C;let S=p.x,k=p.y;s.setWidth(this.width),m?x>0&&S+E+c>this.right&&(k=p.y+=b,p.line++,S=p.x=yO(r,this.left+c,this.right-n[p.line])):x>0&&k+b>this.bottom&&(S=p.x=S+t[p.line].width+c,p.line++,k=p.y=yO(r,this.top+v+c,this.bottom-t[p.line].height));if(function(e,t,n){if(isNaN(f)||f<=0||isNaN(h)||h<0)return;o.save();const r=Ek(n.lineWidth,1);if(o.fillStyle=Ek(n.fillStyle,a),o.lineCap=Ek(n.lineCap,"butt"),o.lineDashOffset=Ek(n.lineDashOffset,0),o.lineJoin=Ek(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=Ek(n.strokeStyle,a),o.setLineDash(Ek(n.lineDash,[])),i.usePointStyle){const a={radius:h*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=s.xPlus(e,f/2);VO(o,a,l,t+d,i.pointStyleWidth&&f)}else{const i=t+Math.max((u-h)/2,0),a=s.leftForLtr(e,f),l=i$(n.borderRadius);o.beginPath(),Object.values(l).some((e=>0!==e))?QO(o,{x:a,y:i,w:f,h:h,radius:l}):o.rect(a,i,f,h),o.fill(),0!==r&&o.stroke()}o.restore()}(s.x(S),k,y),S=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(w,S+f+d,m?S+E:this.right,e.rtl),function(e,t,n){ZO(o,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),k,y),m)p.x+=E+c;else if("string"!=typeof y.text){const e=l.lineHeight;p.y+=kP(y,e)+c}else p.y+=b})),G$(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=s$(t.font),o=a$(t.padding);if(!t.display)return;const r=X$(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=yO(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+yO(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=yO(a,u,u+d);i.textAlign=r.textAlign(bO(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,ZO(i,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=s$(e.font),n=a$(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,r;if(cO(e,this.left,this.right)&&cO(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],cO(e,o.left,o.left+o.width)&&cO(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&&kk(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&kk(t.onHover,[e,n,this],this)}else n&&kk(t.onClick,[e,n,this],this);var o,r}}function kP(e,t){return t*(e.text?e.text.length:0)}var OP={id:"legend",_element:SP,start(e,t,n){const o=e.legend=new SP({ctx:e.ctx,options:n,chart:e});YM.configure(e,o,n),YM.addBox(e,o)},stop(e){YM.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;YM.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=a$(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 $P extends h_{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=yk(n.text)?n.text.length:1;this._padding=a$(n.padding);const r=o*s$(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=yO(a,n,r),c=t+e,s=r-n):("left"===i.position?(l=n+e,c=yO(a,o,t),u=-.5*Bk):(l=r-e,c=yO(a,t,o),u=.5*Bk),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=s$(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(o);ZO(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:bO(t.align),textBaseline:"middle",translation:[r,i]})}}var MP={id:"title",_element:$P,start(e,t,n){!function(e,t){const n=new $P({ctx:e.ctx,options:t,chart:e});YM.configure(e,n,t),YM.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;YM.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;YM.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 _P={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=rO(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 PP(e,t){return t&&(yk(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function NP(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function IP(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 LP(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=s$(t.bodyFont),c=s$(t.titleFont),u=s$(t.footerFont),d=i.length,p=r.length,f=o.length,h=a$(t.padding);let g=h.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+=f*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-f)*l.lineHeight+(v-1)*t.bodySpacing}p&&(g+=t.footerMarginTop+p*u.lineHeight+(p-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,Ok(e.title,y),n.font=l.string,Ok(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,Ok(o,(e=>{Ok(e.before,y),Ok(e.lines,y),Ok(e.after,y)})),b=0,n.font=u.string,Ok(e.footer,y),n.restore(),m+=h.width,{width:m,height:g}}function RP(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 jP(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||RP(e,t,n,o),yAlign:o}}function TP(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:p,bottomRight:f}=i$(a);let h=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?h+=c:"right"===s&&(h-=c):"left"===s?h-=Math.max(u,p)+r:"right"===s&&(h+=Math.max(d,f)+r),{x:lO(h,0,o.width-t.width),y:lO(g,0,o.height-t.height)}}function DP(e,t,n){const o=a$(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function AP(e){return PP([],NP(e))}function zP(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const BP={beforeTitle:mk,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:mk,beforeBody:mk,beforeLabel:mk,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 bk(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:mk,afterBody:mk,beforeFooter:mk,footer:mk,afterFooter:mk};function HP(e,t,n,o){const r=e[t].call(n,o);return void 0===r?BP[t].call(n,o):r}class FP extends h_{static positioners=_P;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 aM(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,c$(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,o=HP(n,"beforeTitle",this,e),r=HP(n,"title",this,e),i=HP(n,"afterTitle",this,e);let a=[];return a=PP(a,NP(o)),a=PP(a,NP(r)),a=PP(a,NP(i)),a}getBeforeBody(e,t){return AP(HP(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return Ok(e,(e=>{const t={before:[],lines:[],after:[]},r=zP(n,e);PP(t.before,NP(HP(r,"beforeLabel",this,e))),PP(t.lines,HP(r,"label",this,e)),PP(t.after,NP(HP(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return AP(HP(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=HP(n,"beforeFooter",this,e),r=HP(n,"footer",this,e),i=HP(n,"afterFooter",this,e);let a=[];return a=PP(a,NP(o)),a=PP(a,NP(r)),a=PP(a,NP(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(IP(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)))),Ok(l,(t=>{const n=zP(e.callbacks,t);o.push(HP(n,"labelColor",this,t)),r.push(HP(n,"labelPointStyle",this,t)),i.push(HP(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=_P[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=LP(this,n),a=Object.assign({},e,t),s=jP(this.chart,n,a),l=TP(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}=i$(a),{x:d,y:p}=e,{width:f,height:h}=t;let g,m,v,b,y,x;return"center"===r?(y=p+h/2,"left"===o?(g=d,m=g-i,b=y+i,x=y-i):(g=d+f,m=g+i,b=y-i,x=y+i),v=g):(m="left"===o?d+Math.max(s,c)+i:"right"===o?d+f-Math.max(l,u)-i:this.caretX,"top"===r?(b=p,y=b-i,g=m-i,v=m+i):(b=p+h,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=X$(n.rtl,this.x,this.width);for(e.x=DP(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=s$(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=s$(r.bodyFont),u=DP(this,"left",r),d=o.x(u),p=s<c.lineHeight?(c.lineHeight-s)/2:0,f=t.y+p;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=f+s/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,FO(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,FO(e,t,n,c)}else{e.lineWidth=xk(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=i$(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,QO(e,{x:t,y:f,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),QO(e,{x:n,y:f+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,f,l,s),e.strokeRect(t,f,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,f+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=s$(n.bodyFont);let d=u.lineHeight,p=0;const f=X$(n.rtl,this.x,this.width),h=function(n){t.fillText(n,f.x(e.x+p),e.y+d/2),e.y+=d+r},g=f.textAlign(i);let m,v,b,y,x,C,w;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=DP(this,g,n),t.fillStyle=n.bodyColor,Ok(this.beforeBody,h),p=a&&"right"!==g?"center"===i?l/2+c:l+2+c:0,y=0,C=o.length;y<C;++y){for(m=o[y],v=this.labelTextColors[y],t.fillStyle=v,Ok(m.before,h),b=m.lines,a&&b.length&&(this._drawColorBox(t,e,y,f,n),d=Math.max(u.lineHeight,s)),x=0,w=b.length;x<w;++x)h(b[x]),d=u.lineHeight;Ok(m.after,h)}p=0,d=u.lineHeight,Ok(this.afterBody,h),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const s=X$(n.rtl,this.x,this.width);for(e.x=DP(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=s$(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:p,bottomRight:f}=i$(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-f),t.quadraticCurveTo(a+l,s+c,a+l-f,s+c),"bottom"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+p,s+c),t.quadraticCurveTo(a,s+c,a,s+c-p),"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=_P[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=LP(this,e),a=Object.assign({},n,this._size),s=jP(t,e,a),l=TP(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=a$(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),q$(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),G$(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=!$k(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||!$k(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=_P[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}var VP={id:"tooltip",_element:FP,positioners:_P,afterInit(e,t,n){n&&(e.tooltip=new FP({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:BP},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 WP(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 UP(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function XP(e,t){const n=[],{bounds:o,step:r,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,p=r||1,f=c-1,{min:h,max:g}=t,m=!bk(i),v=!bk(a),b=!bk(l),y=(g-h)/(u+1);let x,C,w,E,S=Zk((g-h)/f/p)*p;if(S<1e-14&&!m&&!v)return[{value:h},{value:g}];E=Math.ceil(g/S)-Math.floor(h/S),E>f&&(S=Zk(E*S/f/p)*p),bk(s)||(x=Math.pow(10,s),S=Math.ceil(S*x)/x),"ticks"===o?(C=Math.floor(h/S)*S,w=Math.ceil(g/S)*S):(C=h,w=g),m&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/r,S/1e3)?(E=Math.round(Math.min((a-i)/S,c)),S=(a-i)/E,C=i,w=a):b?(C=m?i:C,w=v?a:w,E=l-1,S=(w-C)/E):(E=(w-C)/S,E=Yk(E,Math.round(E),S/1e3)?Math.round(E):Math.ceil(E));const k=Math.max(nO(S),nO(C));x=Math.pow(10,bk(s)?k:s),C=Math.round(C*x)/x,w=Math.round(w*x)/x;let O=0;for(m&&(d&&C!==i?(n.push({value:i}),C<i&&O++,Yk(Math.round((C+O*S)*x)/x,i,qP(i,y,e))&&O++):C<i&&O++);O<E;++O){const e=Math.round((C+O*S)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&w!==a?n.length&&Yk(n[n.length-1].value,a,qP(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&w!==a||n.push({value:w}),n}function qP(e,t,{horizontal:n,minRotation:o}){const r=eO(o),i=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class GP extends S_{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 bk(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=Kk(o),t=Kk(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=XP({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&&Jk(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 PO(e,this.chart.options.locale,this.options.ticks.format)}}class KP extends GP{static id="linear";static defaults={ticks:{callback:IO.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Ck(e)?e:0,this.max=Ck(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=eO(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}}IO.formatters.logarithmic;IO.formatters.numeric;const YP="label";function ZP(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function QP(e,t){e.labels=t}function JP(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:YP;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 eN(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:YP;const n={labels:[],datasets:[]};return QP(n,e.labels),JP(n,e.datasets,t),n}function tN(t,n){const{height:o=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:s,data:l,options:c,plugins:u=[],fallbackContent:d,updateMode:p,...f}=t,h=e.useRef(null),g=e.useRef(),m=()=>{h.current&&(g.current=new nP(h.current,{type:s,data:eN(l,a),options:c&&{...c},plugins:u}),ZP(n,g.current))},v=()=>{ZP(n,null),g.current&&(g.current.destroy(),g.current=null)};return e.useEffect((()=>{!i&&g.current&&c&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(g.current,c)}),[i,c]),e.useEffect((()=>{!i&&g.current&&QP(g.current.config.data,l.labels)}),[i,l.labels]),e.useEffect((()=>{!i&&g.current&&l.datasets&&JP(g.current.config.data,l.datasets,a)}),[i,l.datasets]),e.useEffect((()=>{g.current&&(i?(v(),setTimeout(m)):g.current.update(p))}),[i,c,l.labels,l.datasets,p]),e.useEffect((()=>{g.current&&(v(),setTimeout(m))}),[s]),e.useEffect((()=>(m(),()=>v())),[]),e.createElement("canvas",Object.assign({ref:h,role:"img",height:o,width:r},f),d)}const nN=e.forwardRef(tN);function oN(t,n){return nP.register(n),e.forwardRef(((n,o)=>e.createElement(nN,Object.assign({},n,{ref:o,type:t}))))}const rN=oN("line",_M),iN=oN("bar",$M),aN=oN("doughnut",MM),sN=oN("pie",PM);NS(".appChart {\n & > canvas {\n height: 100% !important;\n width: 100% !important;\n }\n}\n"),nP.register(class extends S_{static id="category";static defaults={ticks:{callback:UP}};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(bk(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:lO(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:WP(n,e,Ek(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 UP.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}},KP,class extends h_{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}=yP(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?QO:CP;var s;e.save(),i.w===r.w&&i.h===r.h||(e.beginPath(),a(e,wP(i,t,r)),e.clip(),a(e,wP(r,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,wP(r,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return xP(this,e,t,n)}inXRange(e,t){return xP(this,e,null,t)}inYRange(e,t){return xP(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 h_{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;_$(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 Q$(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=Z$(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?W$:e.tension||"monotone"===e.cubicInterpolationMode?U$:V$}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=r[c],p=r[u];if(d===p){a.push(d);continue}const f=s(d,p,Math.abs((o-d[t])/(p[t]-d[t])),n.stepped);f[t]=e[t],a.push(f)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return fP(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=fP(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(),gP(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends h_{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 mP(this,e,"x",t)}inYRange(e,t){return mP(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||!WO(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,FO(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}},class extends h_{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}=oO(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,p=Ek(u,s-a),f=sO(r,a,s)&&a!==s,h=p>=Hk||f,g=cO(i,l+d,c+d);return h&&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>Hk?Math.floor(n/Hk):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(Bk,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){aP(e,t,n,o,l,r);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%Hk||Hk))}aP(e,t,n,o,l,r),e.fill()}(e,this,s,r,i),sP(e,this,s,r,i),e.restore()}},MP,VP,OP);NS(".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");NS(".appCheckboxText {\n .checkboxText {\n & > span:last-child {\n line-height: unset;\n & > span {\n font-size: 15px;\n font-weight: 500;\n text-align: left;\n }\n }\n }\n}\n");nC.Panel;NS('.wrapper {\n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n background-color: (0, 0, 0, 0.3);\n backdrop-filter: blur(10px);\n display: flex;\n z-index: 99;\n}\n\n/*code for custom loading icon*/\n\n.loader {\n position: relative;\n width: 80px;\n margin-left: 45%;\n margin-top: 25%;\n}\n\n.loader span {\n display: block;\n transform-origin: 40px 40px;\n animation: ding 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n}\n\n.loader span::before {\n content: "";\n position: absolute;\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: rgb(0, 0, 0);\n margin: -4px 0 0 -4px;\n}\n\n.loader span:nth-child(1) {\n animation-delay: -0.36s;\n}\n\n.loader span:nth-child(1):before {\n top: 63px;\n left: 63px;\n}\n\n.loader span:nth-child(2) {\n animation-delay: -0.72s;\n}\n\n.loader span:nth-child(2):before {\n top: 68px;\n left: 56px;\n}\n\n.loader span:nth-child(3) {\n animation-delay: -0.108s;\n}\n\n.loader span:nth-child(3):before {\n top: 71px;\n left: 48px;\n}\n.loader span:nth-child(4) {\n animation-delay: -0.144s;\n}\n\n.loader span:nth-child(4):before {\n top: 72px;\n left: 40px;\n}\n\n.loader span:nth-child(5) {\n animation-delay: -0.18;\n}\n\n.loader span:nth-child(5):before {\n top: 71px;\n left: 32px;\n}\n\n.loader span:nth-child(6) {\n animation-delay: -0.216s;\n}\n\n.loader span:nth-child(6):before {\n top: 68px;\n left: 24px;\n}\n\n.loader span:nth-child(7) {\n animation-delay: -0.252s;\n}\n\n.loader span:nth-child(7):before {\n top: 63px;\n left: 17px;\n}\n\n.loader span:nth-child(8) {\n animation-delay: -0.288s;\n}\n\n.loader span:nth-child(8):before {\n top: 56px;\n left: 12px;\n}\n\n@keyframes ding {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n');var lN=function(e,t){return lN=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},lN(e,t)};
46
+ /*! *****************************************************************************
47
+ Copyright (c) Microsoft Corporation.
48
+
49
+ Permission to use, copy, modify, and/or distribute this software for any
50
+ purpose with or without fee is hereby granted.
51
+
52
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
53
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
54
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
55
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
56
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
57
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
58
+ PERFORMANCE OF THIS SOFTWARE.
59
+ ***************************************************************************** */function cN(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}lN(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var uN=function(){return uN=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},uN.apply(this,arguments)};function dN(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 pN(e,t,n,o){return new(n||(n=Promise))((function(t,r){function i(e){try{s(o.next(e))}catch(e){r(e)}}function a(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n((function(e){e(o)}))).then(i,a)}s((o=o.apply(e,[])).next())}))}function fN(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function hN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gN=process.env.NODE_ENV,mN=function(e,t,n,o,r,i,a,s){if("production"!==gN&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}},vN=hN(mN),bN=e.createContext(null);function yN(e,t,n,o){var r,i,a={};return r=e,i=function(e,r){var i=n[r];i!==t[r]&&(a[r]=i,e(o,i))},Object.keys(r).forEach((function(e){return i(r[e],e)})),a}function xN(e,t,n){var o,r,i,a=(o=n,r=function(n,o,r){return"function"==typeof e[r]&&n.push(google.maps.event.addListener(t,o,e[r])),n},i=[],Object.keys(o).reduce((function(e,t){return r(e,o[t],t)}),i));return a}function CN(e){google.maps.event.removeListener(e)}function wN(e){void 0===e&&(e=[]),e.forEach(CN)}function EN(e){var t=e.updaterMap,n=e.eventMap,o=e.prevProps,r=e.nextProps,i=e.instance,a=xN(r,i,n);return yN(t,o,r,i),a}var SN={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},kN={extraMapTypes:function(e,t){t.forEach((function(t,n){e.mapTypes.set(String(n),t)}))},center:function(e,t){e.setCenter(t)},clickableIcons:function(e,t){e.setClickableIcons(t)},heading:function(e,t){e.setHeading(t)},mapTypeId:function(e,t){e.setMapTypeId(t)},options:function(e,t){e.setOptions(t)},streetView:function(e,t){e.setStreetView(t)},tilt:function(e,t){e.setTilt(t)},zoom:function(e,t){e.setZoom(t)}};e.memo((function(t){var n=t.children,o=t.options,r=t.id,i=t.mapContainerStyle,a=t.mapContainerClassName,s=t.center,l=t.onClick,c=t.onDblClick,u=t.onDrag,p=t.onDragEnd,f=t.onDragStart,h=t.onMouseMove,g=t.onMouseOut,m=t.onMouseOver,v=t.onMouseDown,b=t.onMouseUp,y=t.onRightClick,x=t.onCenterChanged,C=t.onLoad,w=t.onUnmount,E=e.useState(null),S=E[0],k=E[1],O=e.useRef(null),$=e.useState(null),M=$[0],_=$[1],P=e.useState(null),N=P[0],I=P[1],L=e.useState(null),R=L[0],j=L[1],T=e.useState(null),D=T[0],A=T[1],z=e.useState(null),B=z[0],H=z[1],F=e.useState(null),V=F[0],W=F[1],U=e.useState(null),X=U[0],q=U[1],G=e.useState(null),K=G[0],Y=G[1],Z=e.useState(null),Q=Z[0],J=Z[1],ee=e.useState(null),te=ee[0],ne=ee[1],oe=e.useState(null),re=oe[0],ie=oe[1],ae=e.useState(null),se=ae[0],le=ae[1];return e.useEffect((function(){o&&null!==S&&S.setOptions(o)}),[S,o]),e.useEffect((function(){null!==S&&void 0!==s&&S.setCenter(s)}),[S,s]),e.useEffect((function(){S&&c&&(null!==N&&google.maps.event.removeListener(N),I(google.maps.event.addListener(S,"dblclick",c)))}),[c]),e.useEffect((function(){S&&p&&(null!==R&&google.maps.event.removeListener(R),j(google.maps.event.addListener(S,"dragend",p)))}),[p]),e.useEffect((function(){S&&f&&(null!==D&&google.maps.event.removeListener(D),A(google.maps.event.addListener(S,"dragstart",f)))}),[f]),e.useEffect((function(){S&&v&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(S,"mousedown",v)))}),[v]),e.useEffect((function(){S&&h&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener(S,"mousemove",h)))}),[h]),e.useEffect((function(){S&&g&&(null!==X&&google.maps.event.removeListener(X),q(google.maps.event.addListener(S,"mouseout",g)))}),[g]),e.useEffect((function(){S&&m&&(null!==K&&google.maps.event.removeListener(K),Y(google.maps.event.addListener(S,"mouseover",m)))}),[m]),e.useEffect((function(){S&&b&&(null!==Q&&google.maps.event.removeListener(Q),J(google.maps.event.addListener(S,"mouseup",b)))}),[b]),e.useEffect((function(){S&&y&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(S,"rightclick",y)))}),[y]),e.useEffect((function(){S&&l&&(null!==re&&google.maps.event.removeListener(re),ie(google.maps.event.addListener(S,"click",l)))}),[l]),e.useEffect((function(){S&&u&&(null!==se&&google.maps.event.removeListener(se),le(google.maps.event.addListener(S,"drag",u)))}),[u]),e.useEffect((function(){S&&x&&(null!==M&&google.maps.event.removeListener(M),_(google.maps.event.addListener(S,"center_changed",x)))}),[l]),e.useEffect((function(){var e=null===O.current?null:new google.maps.Map(O.current,o);return k(e),null!==e&&C&&C(e),function(){null!==e&&w&&w(e)}}),[]),d.jsx("div",{id:r,ref:O,style:i,className:a,children:d.jsx(bN.Provider,{value:S,children:null!==S?n:null})})}));var ON=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={map:null},t.registeredEvents=[],t.mapRef=null,t.getInstance=function(){return null===t.mapRef?null:new google.maps.Map(t.mapRef,t.props.options)},t.panTo=function(e){var n=t.getInstance();n&&n.panTo(e)},t.setMapCallback=function(){null!==t.state.map&&t.props.onLoad&&t.props.onLoad(t.state.map)},t.getRef=function(e){t.mapRef=e},t}return cN(t,e),t.prototype.componentDidMount=function(){var e=this.getInstance();this.registeredEvents=EN({updaterMap:kN,eventMap:SN,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{map:e}}),this.setMapCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.map&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:kN,eventMap:SN,prevProps:e,nextProps:this.props,instance:this.state.map}))},t.prototype.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),wN(this.registeredEvents))},t.prototype.render=function(){return d.jsx("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:d.jsx(bN.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:null})})},t}(e.PureComponent),$N="undefined"!=typeof document;function MN(e){var t=e.url,n=e.id,o=e.nonce;return $N?new Promise((function(e,r){var i=document.getElementById(n),a=window;if(i){var s=i.getAttribute("data-state");if(i.src===t&&"error"!==s){if("ready"===s)return e(n);var l=a.initMap,c=i.onerror;return a.initMap=function(){l&&l(),e(n)},void(i.onerror=function(e){c&&c(e),r(e)})}i.remove()}var u=document.createElement("script");u.type="text/javascript",u.src=t,u.id=n,u.async=!0,u.nonce=o||"",u.onerror=function(e){u.setAttribute("data-state","error"),r(e)},a.initMap=function(){u.setAttribute("data-state","ready"),e(n)},document.head.appendChild(u)})).catch((function(e){throw console.error("injectScript error: ",e),e})):Promise.reject(new Error("document is undefined"))}function _N(e){var t=e.href;return!(!t||0!==t.indexOf("https://fonts.googleapis.com/css?family=Roboto")&&0!==t.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text"))||("style"===e.tagName.toLowerCase()&&e.styleSheet&&e.styleSheet.cssText&&0===e.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(e.styleSheet.cssText="",!0):"style"===e.tagName.toLowerCase()&&e.innerHTML&&0===e.innerHTML.replace("\r\n","").indexOf(".gm-style")?(e.innerHTML="",!0):"style"===e.tagName.toLowerCase()&&!e.styleSheet&&!e.innerHTML)}function PN(){var e=document.getElementsByTagName("head")[0];if(e){var t=e.insertBefore.bind(e);e.insertBefore=function(n,o){return _N(n)||Reflect.apply(t,e,[n,o]),n};var n=e.appendChild.bind(e);e.appendChild=function(t){return _N(t)||Reflect.apply(n,e,[t]),t}}}function NN(e){var t=e.googleMapsApiKey,n=e.googleMapsClientId,o=e.version,r=void 0===o?"weekly":o,i=e.language,a=e.region,s=e.libraries,l=e.channel,c=e.mapIds,u=e.authReferrerPolicy,d=[];return vN(t&&n||!(t&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?d.push("key=".concat(t)):n&&d.push("client=".concat(n)),r&&d.push("v=".concat(r)),i&&d.push("language=".concat(i)),a&&d.push("region=".concat(a)),s&&s.length&&d.push("libraries=".concat(s.sort().join(","))),l&&d.push("channel=".concat(l)),c&&c.length&&d.push("map_ids=".concat(c.join(","))),u&&d.push("auth_referrer_policy=".concat(u)),d.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?".concat(d.join("&"))}var IN=!1;function LN(){return d.jsx("div",{children:"Loading..."})}var RN,jN={id:"script-loader",version:"weekly"},TN=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.check=e.createRef(),n.state={loaded:!1},n.cleanupCallback=function(){delete window.google.maps,n.injectScript()},n.isCleaningUp=function(){return pN(n,0,void 0,(function(){function e(e){if(IN){if($N)var t=window.setInterval((function(){IN||(window.clearInterval(t),e())}),1)}else e()}return fN(this,(function(t){return[2,new Promise(e)]}))}))},n.cleanup=function(){IN=!0;var e=document.getElementById(n.props.id);e&&e.parentNode&&e.parentNode.removeChild(e),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(e){return"string"==typeof e.src&&e.src.includes("maps.googleapis")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(e){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===e.href})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(e){return void 0!==e.innerText&&e.innerText.length>0&&e.innerText.includes(".gm-")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},n.injectScript=function(){n.props.preventGoogleFontsLoading&&PN(),vN(!!n.props.id,'LoadScript requires "id" prop to be a string: %s',n.props.id),MN({id:n.props.id,nonce:n.props.nonce,url:NN(n.props)}).then((function(){n.props.onLoad&&n.props.onLoad(),n.setState((function(){return{loaded:!0}}))})).catch((function(e){n.props.onError&&n.props.onError(e),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(n.props.googleMapsApiKey||"-",") or Client ID (").concat(n.props.googleMapsClientId||"-",") to <LoadScript />\n Otherwise it is a Network issue.\n "))}))},n}return cN(n,t),n.prototype.componentDidMount=function(){if($N){if(window.google&&window.google.maps&&!IN)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(e){console.error("Error at injecting script after cleaning up: ",e)}))}},n.prototype.componentDidUpdate=function(e){this.props.libraries!==e.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),$N&&e.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))},n.prototype.componentWillUnmount=function(){var e=this;if($N){this.cleanup();window.setTimeout((function(){e.check.current||(delete window.google,IN=!1)}),1),this.props.onUnmount&&this.props.onUnmount()}},n.prototype.render=function(){return d.jsxs(d.Fragment,{children:[d.jsx("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||d.jsx(LN,{})]})},n.defaultProps=jN,n}(e.PureComponent);var DN,AN=d.jsx(LN,{});e.memo((function(t){var n=t.loadingElement,o=t.onLoad,r=t.onError,i=t.onUnmount,a=t.children,s=function(t){var n=t.id,o=void 0===n?jN.id:n,r=t.version,i=void 0===r?jN.version:r,a=t.nonce,s=t.googleMapsApiKey,l=t.googleMapsClientId,c=t.language,u=t.region,d=t.libraries,p=t.preventGoogleFontsLoading,f=t.channel,h=t.mapIds,g=t.authReferrerPolicy,m=e.useRef(!1),v=e.useState(!1),b=v[0],y=v[1],x=e.useState(void 0),C=x[0],w=x[1];e.useEffect((function(){return m.current=!0,function(){m.current=!1}}),[]),e.useEffect((function(){$N&&p&&PN()}),[p]),e.useEffect((function(){b&&vN(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[b]);var E=NN({version:i,googleMapsApiKey:s,googleMapsClientId:l,language:c,region:u,libraries:d,channel:f,mapIds:h,authReferrerPolicy:g});e.useEffect((function(){function e(){m.current&&(y(!0),RN=E)}$N&&(window.google&&window.google.maps&&RN===E?e():MN({id:o,url:E,nonce:a}).then(e).catch((function(e){m.current&&w(e),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(s||"-",") or Client ID (").concat(l||"-",")\n Otherwise it is a Network issue.\n ")),console.error(e)})))}),[o,E,a]);var S=e.useRef();return e.useEffect((function(){S.current&&d!==S.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),S.current=d}),[d]),{isLoaded:b,loadError:C,url:E}}(dN(t,["loadingElement","onLoad","onError","onUnmount","children"])),l=s.isLoaded,c=s.loadError;return e.useEffect((function(){l&&"function"==typeof o&&o()}),[l,o]),e.useEffect((function(){c&&"function"==typeof r&&r(c)}),[c,r]),e.useEffect((function(){return function(){i&&i()}}),[i]),l?a:n||AN})),function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(DN||(DN={}));var zN={},BN={options:function(e,t){e.setOptions(t)}};e.memo((function(t){var n=t.options,o=t.onLoad,r=t.onUnmount,i=e.useContext(bN),a=e.useState(null),s=a[0],l=a[1];return e.useEffect((function(){null!==s&&s.setMap(i)}),[i]),e.useEffect((function(){n&&null!==s&&s.setOptions(n)}),[s,n]),e.useEffect((function(){var e=new google.maps.TrafficLayer(uN(uN({},n||{}),{map:i}));return l(e),o&&o(e),function(){null!==s&&(r&&r(s),s.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={trafficLayer:null},t.setTrafficLayerCallback=function(){null!==t.state.trafficLayer&&t.props.onLoad&&t.props.onLoad(t.state.trafficLayer)},t.registeredEvents=[],t}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.TrafficLayer(uN(uN({},this.props.options||{}),{map:this.context}));this.registeredEvents=EN({updaterMap:BN,eventMap:zN,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{trafficLayer:e}}),this.setTrafficLayerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.trafficLayer&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:BN,eventMap:zN,prevProps:e,nextProps:this.props,instance:this.state.trafficLayer}))},t.prototype.componentWillUnmount=function(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),wN(this.registeredEvents),this.state.trafficLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent),e.memo((function(t){var n=t.onLoad,o=t.onUnmount,r=e.useContext(bN),i=e.useState(null),a=i[0],s=i[1];return e.useEffect((function(){null!==a&&a.setMap(r)}),[r]),e.useEffect((function(){var e=new google.maps.BicyclingLayer;return s(e),e.setMap(r),n&&n(e),function(){null!==e&&(o&&o(e),e.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={bicyclingLayer:null},t.setBicyclingLayerCallback=function(){null!==t.state.bicyclingLayer&&(t.state.bicyclingLayer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.bicyclingLayer))},t}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:e}}),this.setBicyclingLayerCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent),e.memo((function(t){var n=t.onLoad,o=t.onUnmount,r=e.useContext(bN),i=e.useState(null),a=i[0],s=i[1];return e.useEffect((function(){null!==a&&a.setMap(r)}),[r]),e.useEffect((function(){var e=new google.maps.TransitLayer;return s(e),e.setMap(r),n&&n(e),function(){null!==a&&(o&&o(a),a.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={transitLayer:null},t.setTransitLayerCallback=function(){null!==t.state.transitLayer&&(t.state.transitLayer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.transitLayer))},t}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:e}}),this.setTransitLayerCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent);var HN={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},FN={drawingMode:function(e,t){e.setDrawingMode(t)},options:function(e,t){e.setOptions(t)}};e.memo((function(t){var n=t.options,o=t.drawingMode,r=t.onCircleComplete,i=t.onMarkerComplete,a=t.onOverlayComplete,s=t.onPolygonComplete,l=t.onPolylineComplete,c=t.onRectangleComplete,u=t.onLoad,d=t.onUnmount,p=e.useContext(bN),f=e.useState(null),h=f[0],g=f[1],m=e.useState(null),v=m[0],b=m[1],y=e.useState(null),x=y[0],C=y[1],w=e.useState(null),E=w[0],S=w[1],k=e.useState(null),O=k[0],$=k[1],M=e.useState(null),_=M[0],P=M[1],N=e.useState(null),I=N[0],L=N[1];return e.useEffect((function(){null!==h&&h.setMap(p)}),[p]),e.useEffect((function(){n&&null!==h&&h.setOptions(n)}),[h,n]),e.useEffect((function(){null!==h&&h.setDrawingMode(null!=o?o:null)}),[h,o]),e.useEffect((function(){h&&r&&(null!==v&&google.maps.event.removeListener(v),b(google.maps.event.addListener(h,"circlecomplete",r)))}),[h,r]),e.useEffect((function(){h&&i&&(null!==x&&google.maps.event.removeListener(x),C(google.maps.event.addListener(h,"markercomplete",i)))}),[h,i]),e.useEffect((function(){h&&a&&(null!==E&&google.maps.event.removeListener(E),S(google.maps.event.addListener(h,"overlaycomplete",a)))}),[h,a]),e.useEffect((function(){h&&s&&(null!==O&&google.maps.event.removeListener(O),$(google.maps.event.addListener(h,"polygoncomplete",s)))}),[h,s]),e.useEffect((function(){h&&l&&(null!==_&&google.maps.event.removeListener(_),P(google.maps.event.addListener(h,"polylinecomplete",l)))}),[h,l]),e.useEffect((function(){h&&c&&(null!==I&&google.maps.event.removeListener(I),L(google.maps.event.addListener(h,"rectanglecomplete",c)))}),[h,c]),e.useEffect((function(){vN(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var e=new google.maps.drawing.DrawingManager(uN(uN({},n||{}),{map:p}));return o&&e.setDrawingMode(o),r&&b(google.maps.event.addListener(e,"circlecomplete",r)),i&&C(google.maps.event.addListener(e,"markercomplete",i)),a&&S(google.maps.event.addListener(e,"overlaycomplete",a)),s&&$(google.maps.event.addListener(e,"polygoncomplete",s)),l&&P(google.maps.event.addListener(e,"polylinecomplete",l)),c&&L(google.maps.event.addListener(e,"rectanglecomplete",c)),g(e),u&&u(e),function(){null!==h&&(v&&google.maps.event.removeListener(v),x&&google.maps.event.removeListener(x),E&&google.maps.event.removeListener(E),O&&google.maps.event.removeListener(O),_&&google.maps.event.removeListener(_),I&&google.maps.event.removeListener(I),d&&d(h),h.setMap(null))}}),[]),null})),function(e){function t(t){var n=e.call(this,t)||this;return n.registeredEvents=[],n.state={drawingManager:null},n.setDrawingManagerCallback=function(){null!==n.state.drawingManager&&n.props.onLoad&&n.props.onLoad(n.state.drawingManager)},vN(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),n}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.drawing.DrawingManager(uN(uN({},this.props.options||{}),{map:this.context}));this.registeredEvents=EN({updaterMap:FN,eventMap:HN,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{drawingManager:e}}),this.setDrawingManagerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.drawingManager&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:FN,eventMap:HN,prevProps:e,nextProps:this.props,instance:this.state.drawingManager}))},t.prototype.componentWillUnmount=function(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),wN(this.registeredEvents),this.state.drawingManager.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent);var VN={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},WN={animation:function(e,t){e.setAnimation(t)},clickable:function(e,t){e.setClickable(t)},cursor:function(e,t){e.setCursor(t)},draggable:function(e,t){e.setDraggable(t)},icon:function(e,t){e.setIcon(t)},label:function(e,t){e.setLabel(t)},map:function(e,t){e.setMap(t)},opacity:function(e,t){e.setOpacity(t)},options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},shape:function(e,t){e.setShape(t)},title:function(e,t){e.setTitle(t)},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},UN={};e.memo((function(t){var n=t.position,o=t.options,r=t.clusterer,i=t.noClustererRedraw,a=t.children,s=t.draggable,l=t.visible,c=t.animation,u=t.clickable,p=t.cursor,f=t.icon,h=t.label,g=t.opacity,m=t.shape,v=t.title,b=t.zIndex,y=t.onClick,x=t.onDblClick,C=t.onDrag,w=t.onDragEnd,E=t.onDragStart,S=t.onMouseOut,k=t.onMouseOver,O=t.onMouseUp,$=t.onMouseDown,M=t.onRightClick,_=t.onClickableChanged,P=t.onCursorChanged,N=t.onAnimationChanged,I=t.onDraggableChanged,L=t.onFlatChanged,R=t.onIconChanged,j=t.onPositionChanged,T=t.onShapeChanged,D=t.onTitleChanged,A=t.onVisibleChanged,z=t.onZindexChanged,B=t.onLoad,H=t.onUnmount,F=e.useContext(bN),V=e.useState(null),W=V[0],U=V[1],X=e.useState(null),q=X[0],G=X[1],K=e.useState(null),Y=K[0],Z=K[1],Q=e.useState(null),J=Q[0],ee=Q[1],te=e.useState(null),ne=te[0],oe=te[1],re=e.useState(null),ie=re[0],ae=re[1],se=e.useState(null),le=se[0],ce=se[1],ue=e.useState(null),de=ue[0],pe=ue[1],fe=e.useState(null),he=fe[0],ge=fe[1],me=e.useState(null),ve=me[0],be=me[1],ye=e.useState(null),xe=ye[0],Ce=ye[1],we=e.useState(null),Ee=we[0],Se=we[1],ke=e.useState(null),Oe=ke[0],$e=ke[1],Me=e.useState(null),_e=Me[0],Pe=Me[1],Ne=e.useState(null),Ie=Ne[0],Le=Ne[1],Re=e.useState(null),je=Re[0],Te=Re[1],De=e.useState(null),Ae=De[0],ze=De[1],Be=e.useState(null),He=Be[0],Fe=Be[1],Ve=e.useState(null),We=Ve[0],Ue=Ve[1],Xe=e.useState(null),qe=Xe[0],Ge=Xe[1],Ke=e.useState(null),Ye=Ke[0],Ze=Ke[1],Qe=e.useState(null),Je=Qe[0],et=Qe[1];e.useEffect((function(){null!==W&&W.setMap(F)}),[F]),e.useEffect((function(){void 0!==o&&null!==W&&W.setOptions(o)}),[W,o]),e.useEffect((function(){void 0!==s&&null!==W&&W.setDraggable(s)}),[W,s]),e.useEffect((function(){n&&null!==W&&W.setPosition(n)}),[W,n]),e.useEffect((function(){void 0!==l&&null!==W&&W.setVisible(l)}),[W,l]),e.useEffect((function(){null==W||W.setAnimation(c)}),[W,c]),e.useEffect((function(){W&&void 0!==u&&W.setClickable(u)}),[W,u]),e.useEffect((function(){W&&void 0!==p&&W.setCursor(p)}),[W,p]),e.useEffect((function(){W&&void 0!==f&&W.setIcon(f)}),[W,f]),e.useEffect((function(){W&&void 0!==h&&W.setLabel(h)}),[W,h]),e.useEffect((function(){W&&void 0!==g&&W.setOpacity(g)}),[W,g]),e.useEffect((function(){W&&void 0!==m&&W.setShape(m)}),[W,m]),e.useEffect((function(){W&&void 0!==v&&W.setTitle(v)}),[W,v]),e.useEffect((function(){W&&void 0!==b&&W.setZIndex(b)}),[W,b]),e.useEffect((function(){W&&x&&(null!==q&&google.maps.event.removeListener(q),G(google.maps.event.addListener(W,"dblclick",x)))}),[x]),e.useEffect((function(){W&&w&&(null!==Y&&google.maps.event.removeListener(Y),Z(google.maps.event.addListener(W,"dragend",w)))}),[w]),e.useEffect((function(){W&&E&&(null!==J&&google.maps.event.removeListener(J),ee(google.maps.event.addListener(W,"dragstart",E)))}),[E]),e.useEffect((function(){W&&$&&(null!==ne&&google.maps.event.removeListener(ne),oe(google.maps.event.addListener(W,"mousedown",$)))}),[$]),e.useEffect((function(){W&&S&&(null!==ie&&google.maps.event.removeListener(ie),ae(google.maps.event.addListener(W,"mouseout",S)))}),[S]),e.useEffect((function(){W&&k&&(null!==le&&google.maps.event.removeListener(le),ce(google.maps.event.addListener(W,"mouseover",k)))}),[k]),e.useEffect((function(){W&&O&&(null!==de&&google.maps.event.removeListener(de),pe(google.maps.event.addListener(W,"mouseup",O)))}),[O]),e.useEffect((function(){W&&M&&(null!==he&&google.maps.event.removeListener(he),ge(google.maps.event.addListener(W,"rightclick",M)))}),[M]),e.useEffect((function(){W&&y&&(null!==ve&&google.maps.event.removeListener(ve),be(google.maps.event.addListener(W,"click",y)))}),[y]),e.useEffect((function(){W&&C&&(null!==xe&&google.maps.event.removeListener(xe),Ce(google.maps.event.addListener(W,"drag",C)))}),[C]),e.useEffect((function(){W&&_&&(null!==Ee&&google.maps.event.removeListener(Ee),Se(google.maps.event.addListener(W,"clickable_changed",_)))}),[_]),e.useEffect((function(){W&&P&&(null!==Oe&&google.maps.event.removeListener(Oe),$e(google.maps.event.addListener(W,"cursor_changed",P)))}),[P]),e.useEffect((function(){W&&N&&(null!==_e&&google.maps.event.removeListener(_e),Pe(google.maps.event.addListener(W,"animation_changed",N)))}),[N]),e.useEffect((function(){W&&I&&(null!==Ie&&google.maps.event.removeListener(Ie),Le(google.maps.event.addListener(W,"draggable_changed",I)))}),[I]),e.useEffect((function(){W&&L&&(null!==je&&google.maps.event.removeListener(je),Te(google.maps.event.addListener(W,"flat_changed",L)))}),[L]),e.useEffect((function(){W&&R&&(null!==Ae&&google.maps.event.removeListener(Ae),ze(google.maps.event.addListener(W,"icon_changed",R)))}),[R]),e.useEffect((function(){W&&j&&(null!==He&&google.maps.event.removeListener(He),Fe(google.maps.event.addListener(W,"position_changed",j)))}),[j]),e.useEffect((function(){W&&T&&(null!==We&&google.maps.event.removeListener(We),Ue(google.maps.event.addListener(W,"shape_changed",T)))}),[T]),e.useEffect((function(){W&&D&&(null!==qe&&google.maps.event.removeListener(qe),Ge(google.maps.event.addListener(W,"title_changed",D)))}),[D]),e.useEffect((function(){W&&A&&(null!==Ye&&google.maps.event.removeListener(Ye),Ze(google.maps.event.addListener(W,"visible_changed",A)))}),[A]),e.useEffect((function(){W&&z&&(null!==Je&&google.maps.event.removeListener(Je),et(google.maps.event.addListener(W,"zindex_changed",z)))}),[z]),e.useEffect((function(){var e=uN(uN(uN({},o||UN),r?UN:{map:F}),{position:n}),t=new google.maps.Marker(e);return r?r.addMarker(t,!!i):t.setMap(F),n&&t.setPosition(n),void 0!==l&&t.setVisible(l),void 0!==s&&t.setDraggable(s),void 0!==u&&t.setClickable(u),"string"==typeof p&&t.setCursor(p),f&&t.setIcon(f),void 0!==h&&t.setLabel(h),void 0!==g&&t.setOpacity(g),m&&t.setShape(m),"string"==typeof v&&t.setTitle(v),"number"==typeof b&&t.setZIndex(b),x&&G(google.maps.event.addListener(t,"dblclick",x)),w&&Z(google.maps.event.addListener(t,"dragend",w)),E&&ee(google.maps.event.addListener(t,"dragstart",E)),$&&oe(google.maps.event.addListener(t,"mousedown",$)),S&&ae(google.maps.event.addListener(t,"mouseout",S)),k&&ce(google.maps.event.addListener(t,"mouseover",k)),O&&pe(google.maps.event.addListener(t,"mouseup",O)),M&&ge(google.maps.event.addListener(t,"rightclick",M)),y&&be(google.maps.event.addListener(t,"click",y)),C&&Ce(google.maps.event.addListener(t,"drag",C)),_&&Se(google.maps.event.addListener(t,"clickable_changed",_)),P&&$e(google.maps.event.addListener(t,"cursor_changed",P)),N&&Pe(google.maps.event.addListener(t,"animation_changed",N)),I&&Le(google.maps.event.addListener(t,"draggable_changed",I)),L&&Te(google.maps.event.addListener(t,"flat_changed",L)),R&&ze(google.maps.event.addListener(t,"icon_changed",R)),j&&Fe(google.maps.event.addListener(t,"position_changed",j)),T&&Ue(google.maps.event.addListener(t,"shape_changed",T)),D&&Ge(google.maps.event.addListener(t,"title_changed",D)),A&&Ze(google.maps.event.addListener(t,"visible_changed",A)),z&&et(google.maps.event.addListener(t,"zindex_changed",z)),U(t),B&&B(t),function(){null!==q&&google.maps.event.removeListener(q),null!==Y&&google.maps.event.removeListener(Y),null!==J&&google.maps.event.removeListener(J),null!==ne&&google.maps.event.removeListener(ne),null!==ie&&google.maps.event.removeListener(ie),null!==le&&google.maps.event.removeListener(le),null!==de&&google.maps.event.removeListener(de),null!==he&&google.maps.event.removeListener(he),null!==ve&&google.maps.event.removeListener(ve),null!==Ee&&google.maps.event.removeListener(Ee),null!==Oe&&google.maps.event.removeListener(Oe),null!==_e&&google.maps.event.removeListener(_e),null!==Ie&&google.maps.event.removeListener(Ie),null!==je&&google.maps.event.removeListener(je),null!==Ae&&google.maps.event.removeListener(Ae),null!==He&&google.maps.event.removeListener(He),null!==qe&&google.maps.event.removeListener(qe),null!==Ye&&google.maps.event.removeListener(Ye),null!==Je&&google.maps.event.removeListener(Je),H&&H(t),r?r.removeMarker(t,!!i):t&&t.setMap(null)}}),[]);var tt=e.useMemo((function(){return a?e.Children.map(a,(function(t){if(!e.isValidElement(t))return t;var n=t;return e.cloneElement(n,{anchor:W})})):null}),[a,W]);return d.jsx(d.Fragment,{children:tt})||null})),function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.registeredEvents=[],e}cN(n,t),n.prototype.componentDidMount=function(){var e=uN(uN(uN({},this.props.options||UN),this.props.clusterer?UN:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(e),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=EN({updaterMap:WN,eventMap:VN,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},n.prototype.componentDidUpdate=function(e){this.marker&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:WN,eventMap:VN,prevProps:e,nextProps:this.props,instance:this.marker}))},n.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),wN(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},n.prototype.render=function(){var t=this,n=null;return this.props.children&&(n=e.Children.map(this.props.children,(function(n){if(!e.isValidElement(n))return n;var o=n;return e.cloneElement(o,{anchor:t.marker})}))),n||null},n.contextType=bN}(e.PureComponent);var XN=function(){function e(t,n){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(t.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return e.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},e.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},e.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var t=this.cluster.getClusterer();if(google.maps.event.trigger(t,"click",this.cluster),google.maps.event.trigger(t,"clusterclick",this.cluster),t.getZoomOnClick()){var n=t.getMaxZoom(),o=this.cluster.getBounds(),r=t.getMap();null!==r&&"fitBounds"in r&&r.fitBounds(o),this.timeOut=window.setTimeout((function(){var e=t.getMap();if(null!==e){"fitBounds"in e&&e.fitBounds(o);var r=e.getZoom()||0;null!==n&&r>n&&e.setZoom(n+1)}}),100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},e.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},e.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},e.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),null===(e=this.getPanes())||void 0===e||e.overlayMouseTarget.appendChild(this.div);var t=this.getMap();null!==t&&(this.boundsChangedListener=google.maps.event.addListener(t,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),null!==this.timeOut&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},e.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=null!==e?"".concat(e.y,"px"):"0",this.div.style.left=null!==e?"".concat(e.x,"px"):"0"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){var e,t,n,o,r,i;if(this.div&&this.center){var a=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,s=this.backgroundPosition.split(" "),l=parseInt((null===(e=s[0])||void 0===e?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),c=parseInt((null===(t=s[1])||void 0===t?void 0:t.replace(/^\s+|\s+$/g,""))||"0",10),u=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(null!==u?"".concat(u.y,"px"):"0","; left: ").concat(null!==u?"".concat(u.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var d=document.createElement("img");d.alt=a,d.src=this.url,d.width=this.width,d.height=this.height,d.setAttribute("style","position: absolute; top: ".concat(c,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(d.style.clip="rect(-".concat(c,"px, -").concat(l+this.width,"px, -").concat(c+this.height,", -").concat(l,")"));var p=document.createElement("div");p.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),(null===(n=this.sums)||void 0===n?void 0:n.text)&&(p.innerText="".concat(null===(o=this.sums)||void 0===o?void 0:o.text)),(null===(r=this.sums)||void 0===r?void 0:r.html)&&(p.innerHTML="".concat(null===(i=this.sums)||void 0===i?void 0:i.html)),this.div.innerHTML="",this.div.appendChild(d),this.div.appendChild(p),this.div.title=a,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(e){this.sums=e;var t=this.cluster.getClusterer().getStyles(),n=t[Math.min(t.length-1,Math.max(0,e.index-1))];n&&(this.url=n.url,this.height=n.height,this.width=n.width,n.className&&(this.className="".concat(this.clusterClassName," ").concat(n.className)),this.anchorText=n.anchorText||[0,0],this.anchorIcon=n.anchorIcon||[this.height/2,this.width/2],this.textColor=n.textColor||"black",this.textSize=n.textSize||11,this.textDecoration=n.textDecoration||"none",this.fontWeight=n.fontWeight||"bold",this.fontStyle=n.fontStyle||"normal",this.fontFamily=n.fontFamily||"Arial,sans-serif",this.backgroundPosition=n.backgroundPosition||"0 0")},e.prototype.setCenter=function(e){this.center=e},e.prototype.getPosFromLatLng=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return null!==t&&(t.x-=this.anchorIcon[1],t.y-=this.anchorIcon[0]),t},e}(),qN=function(){function e(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new XN(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),t=0,n=this.getMarkers();t<n.length;t++){var o=n[t].getPosition();o&&e.extend(o)}return e},e.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},e.prototype.addMarker=function(e){var t,n;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter&&(n=e.getPosition())){var o=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(o-1)+n.lat())/o,(this.center.lng()*(o-1)+n.lng())/o),this.calculateBounds()}}else(n=e.getPosition())&&(this.center=n,this.calculateBounds());e.isAdded=!0,this.markers.push(e);var r=this.markers.length,i=this.markerClusterer.getMaxZoom(),a=null===(t=this.map)||void 0===t?void 0:t.getZoom();if(null!==i&&void 0!==a&&a>i)e.getMap()!==this.map&&e.setMap(this.map);else if(r<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(r===this.minClusterSize)for(var s=0,l=this.markers;s<l.length;s++){l[s].setMap(null)}else e.setMap(null);return!0},e.prototype.isMarkerInClusterBounds=function(e){if(null!==this.bounds){var t=e.getPosition();if(t)return this.bounds.contains(t)}return!1},e.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},e.prototype.updateIcon=function(){var e,t=this.markers.length,n=this.markerClusterer.getMaxZoom(),o=null===(e=this.map)||void 0===e?void 0:e.getZoom();null!==n&&void 0!==o&&o>n||t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},e.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var t=0;t<this.markers.length;t++)if(e===this.markers[t])return!0;return!1},e}();function GN(e,t){var n=e.length,o=n.toString().length,r=Math.min(o,t);return{text:n.toString(),index:r,title:""}}var KN=[53,56,66,78,90],YN=function(){function e(t,n,o){void 0===n&&(n=[]),void 0===o&&(o={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createClusters=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(e,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=o.gridSize||60,this.minClusterSize=o.minimumClusterSize||2,this.maxZoom=o.maxZoom||null,this.styles=o.styles||[],this.title=o.title||"",this.zoomOnClick=!0,void 0!==o.zoomOnClick&&(this.zoomOnClick=o.zoomOnClick),this.averageCenter=!1,void 0!==o.averageCenter&&(this.averageCenter=o.averageCenter),this.ignoreHidden=!1,void 0!==o.ignoreHidden&&(this.ignoreHidden=o.ignoreHidden),this.enableRetinaIcons=!1,void 0!==o.enableRetinaIcons&&(this.enableRetinaIcons=o.enableRetinaIcons),this.imagePath=o.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=o.imageExtension||"png",this.imageSizes=o.imageSizes||KN,this.calculator=o.calculator||GN,this.batchSize=o.batchSize||2e3,this.batchSizeIE=o.batchSizeIE||500,this.clusterClass=o.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(t)}return e.prototype.onZoomChanged=function(){var e,t;this.resetViewport(!1),(null===(e=this.getMap())||void 0===e?void 0:e.getZoom())!==(this.get("minZoom")||0)&&(null===(t=this.getMap())||void 0===t?void 0:t.getZoom())!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")},e.prototype.onIdle=function(){this.redraw()},e.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),null!==e&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},e.prototype.onRemove=function(){for(var e=0,t=this.markers;e<t.length;e++){var n=t[e];n.getMap()!==this.activeMap&&n.setMap(this.activeMap)}for(var o=0,r=this.clusters;o<r.length;o++){r[o].remove()}this.clusters=[];for(var i=0,a=this.listeners;i<a.length;i++){var s=a[i];google.maps.event.removeListener(s)}this.listeners=[],this.activeMap=null,this.ready=!1},e.prototype.draw=function(){},e.prototype.getMap=function(){return null},e.prototype.getPanes=function(){return null},e.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},e.prototype.setMap=function(){},e.prototype.addListener=function(){return{remove:function(){}}},e.prototype.bindTo=function(){},e.prototype.get=function(){},e.prototype.notify=function(){},e.prototype.set=function(){},e.prototype.setValues=function(){},e.prototype.unbind=function(){},e.prototype.unbindAll=function(){},e.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},e.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0,o=e;n<o.length;n++){var r=o[n].getPosition();r&&t.extend(r)}var i=this.getMap();null!==i&&"fitBounds"in i&&i.fitBounds(t)},e.prototype.getGridSize=function(){return this.gridSize},e.prototype.setGridSize=function(e){this.gridSize=e},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize},e.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.setMaxZoom=function(e){this.maxZoom=e},e.prototype.getStyles=function(){return this.styles},e.prototype.setStyles=function(e){this.styles=e},e.prototype.getTitle=function(){return this.title},e.prototype.setTitle=function(e){this.title=e},e.prototype.getZoomOnClick=function(){return this.zoomOnClick},e.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},e.prototype.getAverageCenter=function(){return this.averageCenter},e.prototype.setAverageCenter=function(e){this.averageCenter=e},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden},e.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},e.prototype.getImageExtension=function(){return this.imageExtension},e.prototype.setImageExtension=function(e){this.imageExtension=e},e.prototype.getImagePath=function(){return this.imagePath},e.prototype.setImagePath=function(e){this.imagePath=e},e.prototype.getImageSizes=function(){return this.imageSizes},e.prototype.setImageSizes=function(e){this.imageSizes=e},e.prototype.getCalculator=function(){return this.calculator},e.prototype.setCalculator=function(e){this.calculator=e},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE},e.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},e.prototype.getClusterClass=function(){return this.clusterClass},e.prototype.setClusterClass=function(e){this.clusterClass=e},e.prototype.getMarkers=function(){return this.markers},e.prototype.getTotalMarkers=function(){return this.markers.length},e.prototype.getClusters=function(){return this.clusters},e.prototype.getTotalClusters=function(){return this.clusters.length},e.prototype.addMarker=function(e,t){this.pushMarkerTo(e),t||this.redraw()},e.prototype.addMarkers=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];o&&this.pushMarkerTo(o)}t||this.redraw()},e.prototype.pushMarkerTo=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers.push(e)},e.prototype.removeMarker_=function(e){var t=-1;if(this.markers.indexOf)t=this.markers.indexOf(e);else for(var n=0;n<this.markers.length;n++)if(e===this.markers[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers.splice(t,1),!0)},e.prototype.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},e.prototype.removeMarkers=function(e,t){for(var n=!1,o=0,r=e;o<r.length;o++){var i=r[o];n=n||this.removeMarker_(i)}return!t&&n&&this.repaint(),n},e.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var t=0,n=e;t<n.length;t++){n[t].remove()}}),0)},e.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));null!==n&&(n.x+=this.gridSize,n.y-=this.gridSize);var o=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(null!==o&&(o.x-=this.gridSize,o.y+=this.gridSize),null!==n){var r=t.fromDivPixelToLatLng(n);null!==r&&e.extend(r)}if(null!==o){var i=t.fromDivPixelToLatLng(o);null!==i&&e.extend(i)}return e},e.prototype.redraw=function(){this.createClusters(0)},e.prototype.resetViewport=function(e){for(var t=0,n=this.clusters;t<n.length;t++){n[t].remove()}this.clusters=[];for(var o=0,r=this.markers;o<r.length;o++){var i=r[o];i.isAdded=!1,e&&i.setMap(null)}},e.prototype.distanceBetweenPoints=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,o=(t.lng()-e.lng())*Math.PI/180,r=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2);return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371},e.prototype.isMarkerInBounds=function(e,t){var n=e.getPosition();return!!n&&t.contains(n)},e.prototype.addToClosestCluster=function(e){for(var t,n=4e4,o=null,r=0,i=this.clusters;r<i.length;r++){var a=(t=i[r]).getCenter(),s=e.getPosition();if(a&&s){var l=this.distanceBetweenPoints(a,s);l<n&&(n=l,o=t)}}o&&o.isMarkerInClusterBounds(e)?o.addMarker(e):((t=new qN(this)).addMarker(e),this.clusters.push(t))},e.prototype.createClusters=function(e){var t=this;if(this.ready){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=this.getMap(),o=(null!==n&&"getBounds"in n?n.getBounds():null),r=((null==n?void 0:n.getZoom())||0)>3?new google.maps.LatLngBounds(null==o?void 0:o.getSouthWest(),null==o?void 0:o.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),i=this.getExtendedBounds(r),a=Math.min(e+this.batchSize,this.markers.length),s=e;s<a;s++){var l=this.markers[s];l&&!l.isAdded&&this.isMarkerInBounds(l,i)&&(!this.ignoreHidden||this.ignoreHidden&&l.getVisible())&&this.addToClosestCluster(l)}if(a<this.markers.length)this.timerRefStatic=window.setTimeout((function(){t.createClusters(a)}),0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var c=0,u=this.clusters;c<u.length;c++){u[c].updateIcon()}}}},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype){var n=t;this.prototype[n]=e.prototype[n]}return this}.apply(e,[t])},e}(),ZN={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},QN={averageCenter:function(e,t){e.setAverageCenter(t)},batchSizeIE:function(e,t){e.setBatchSizeIE(t)},calculator:function(e,t){e.setCalculator(t)},clusterClass:function(e,t){e.setClusterClass(t)},enableRetinaIcons:function(e,t){e.setEnableRetinaIcons(t)},gridSize:function(e,t){e.setGridSize(t)},ignoreHidden:function(e,t){e.setIgnoreHidden(t)},imageExtension:function(e,t){e.setImageExtension(t)},imagePath:function(e,t){e.setImagePath(t)},imageSizes:function(e,t){e.setImageSizes(t)},maxZoom:function(e,t){e.setMaxZoom(t)},minimumClusterSize:function(e,t){e.setMinimumClusterSize(t)},styles:function(e,t){e.setStyles(t)},title:function(e,t){e.setTitle(t)},zoomOnClick:function(e,t){e.setZoomOnClick(t)}},JN={};function eI(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}e.memo((function(t){var n=t.children,o=t.options,r=t.averageCenter,i=t.batchSizeIE,a=t.calculator,s=t.clusterClass,l=t.enableRetinaIcons,c=t.gridSize,u=t.ignoreHidden,d=t.imageExtension,p=t.imagePath,f=t.imageSizes,h=t.maxZoom,g=t.minimumClusterSize,m=t.styles,v=t.title,b=t.zoomOnClick,y=t.onClick,x=t.onClusteringBegin,C=t.onClusteringEnd,w=t.onMouseOver,E=t.onMouseOut,S=t.onLoad,k=t.onUnmount,O=e.useState(null),$=O[0],M=O[1],_=e.useContext(bN),P=e.useState(null),N=P[0],I=P[1],L=e.useState(null),R=L[0],j=L[1],T=e.useState(null),D=T[0],A=T[1],z=e.useState(null),B=z[0],H=z[1],F=e.useState(null),V=F[0],W=F[1];return e.useEffect((function(){$&&E&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener($,ZN.onMouseOut,E)))}),[E]),e.useEffect((function(){$&&w&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener($,ZN.onMouseOver,w)))}),[w]),e.useEffect((function(){$&&y&&(null!==N&&google.maps.event.removeListener(N),I(google.maps.event.addListener($,ZN.onClick,y)))}),[y]),e.useEffect((function(){$&&x&&(null!==R&&google.maps.event.removeListener(R),j(google.maps.event.addListener($,ZN.onClusteringBegin,x)))}),[x]),e.useEffect((function(){$&&C&&(null!==D&&google.maps.event.removeListener(D),j(google.maps.event.addListener($,ZN.onClusteringEnd,C)))}),[C]),e.useEffect((function(){void 0!==r&&null!==$&&QN.averageCenter($,r)}),[$,r]),e.useEffect((function(){void 0!==i&&null!==$&&QN.batchSizeIE($,i)}),[$,i]),e.useEffect((function(){void 0!==a&&null!==$&&QN.calculator($,a)}),[$,a]),e.useEffect((function(){void 0!==s&&null!==$&&QN.clusterClass($,s)}),[$,s]),e.useEffect((function(){void 0!==l&&null!==$&&QN.enableRetinaIcons($,l)}),[$,l]),e.useEffect((function(){void 0!==c&&null!==$&&QN.gridSize($,c)}),[$,c]),e.useEffect((function(){void 0!==u&&null!==$&&QN.ignoreHidden($,u)}),[$,u]),e.useEffect((function(){void 0!==d&&null!==$&&QN.imageExtension($,d)}),[$,d]),e.useEffect((function(){void 0!==p&&null!==$&&QN.imagePath($,p)}),[$,p]),e.useEffect((function(){void 0!==f&&null!==$&&QN.imageSizes($,f)}),[$,f]),e.useEffect((function(){void 0!==h&&null!==$&&QN.maxZoom($,h)}),[$,h]),e.useEffect((function(){void 0!==g&&null!==$&&QN.minimumClusterSize($,g)}),[$,g]),e.useEffect((function(){void 0!==m&&null!==$&&QN.styles($,m)}),[$,m]),e.useEffect((function(){void 0!==v&&null!==$&&QN.title($,v)}),[$,v]),e.useEffect((function(){void 0!==b&&null!==$&&QN.zoomOnClick($,b)}),[$,b]),e.useEffect((function(){if(_){var e=uN({},o||JN),t=new YN(_,[],e);return r&&QN.averageCenter(t,r),i&&QN.batchSizeIE(t,i),a&&QN.calculator(t,a),s&&QN.clusterClass(t,s),l&&QN.enableRetinaIcons(t,l),c&&QN.gridSize(t,c),u&&QN.ignoreHidden(t,u),d&&QN.imageExtension(t,d),p&&QN.imagePath(t,p),f&&QN.imageSizes(t,f),h&&QN.maxZoom(t,h),g&&QN.minimumClusterSize(t,g),m&&QN.styles(t,m),v&&QN.title(t,v),b&&QN.zoomOnClick(t,b),E&&H(google.maps.event.addListener(t,ZN.onMouseOut,E)),w&&W(google.maps.event.addListener(t,ZN.onMouseOver,w)),y&&I(google.maps.event.addListener(t,ZN.onClick,y)),x&&j(google.maps.event.addListener(t,ZN.onClusteringBegin,x)),C&&A(google.maps.event.addListener(t,ZN.onClusteringEnd,C)),M(t),S&&S(t),function(){null!==B&&google.maps.event.removeListener(B),null!==V&&google.maps.event.removeListener(V),null!==N&&google.maps.event.removeListener(N),null!==R&&google.maps.event.removeListener(R),null!==D&&google.maps.event.removeListener(D),k&&k(t)}}}),[]),null!==$&&n($)||null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={markerClusterer:null},t.setClustererCallback=function(){null!==t.state.markerClusterer&&t.props.onLoad&&t.props.onLoad(t.state.markerClusterer)},t}cN(t,e),t.prototype.componentDidMount=function(){if(this.context){var e=new YN(this.context,[],this.props.options);this.registeredEvents=EN({updaterMap:QN,eventMap:ZN,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{markerClusterer:e}}),this.setClustererCallback)}},t.prototype.componentDidUpdate=function(e){this.state.markerClusterer&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:QN,eventMap:ZN,prevProps:e,nextProps:this.props,instance:this.state.markerClusterer}))},t.prototype.componentWillUnmount=function(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),wN(this.registeredEvents),this.state.markerClusterer.setMap(null))},t.prototype.render=function(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null},t.contextType=bN}(e.PureComponent);var tI=function(){function e(t){void 0===t&&(t={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),void 0===t.visible&&(void 0===t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var e=this;if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var t=this.getPanes();if(null!==t&&t[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var o=0,r=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"];o<r.length;o++){var i=r[o];this.eventListeners.push(google.maps.event.addListener(this.div,i,eI))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",(function(){e.div&&(e.div.style.cursor="default")})))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",(function(t){t.returnValue=!1,t.preventDefault&&t.preventDefault(),e.enableEventPropagation||eI(t)})),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg=function(){var e="";return""!==this.closeBoxURL&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},e.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&""!==this.closeBoxURL?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},e.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},e.prototype.getCloseClickHandler=function(){return this.closeClickHandler},e.prototype.panBox=function(e){if(this.div&&!e){var t=this.getMap();if(t instanceof google.maps.Map){var n=0,o=0,r=t.getBounds();r&&!r.contains(this.position)&&t.setCenter(this.position);var i=t.getDiv(),a=i.offsetWidth,s=i.offsetHeight,l=this.pixelOffset.width,c=this.pixelOffset.height,u=this.div.offsetWidth,d=this.div.offsetHeight,p=this.infoBoxClearance.width,f=this.infoBoxClearance.height,h=this.getProjection().fromLatLngToContainerPixel(this.position);null!==h&&(h.x<-l+p?n=h.x+l-p:h.x+u+l+p>a&&(n=h.x+u+l+p-a),this.alignBottom?h.y<-c+f+d?o=h.y+c-f-d:h.y+c+f>s&&(o=h.y+c+f-s):h.y<-c+f?o=h.y+c-f:h.y+d+c+f>s&&(o=h.y+d+c+f-s)),0===n&&0===o||t.panBy(n,o)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.div.style[t]=e[t]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},e.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var t=this.div.ownerDocument,n=t&&t.defaultView?t.defaultView.getComputedStyle(this.div,""):null;n&&(e.top=parseInt(n.borderTopWidth||"",10)||0,e.bottom=parseInt(n.borderBottomWidth||"",10)||0,e.left=parseInt(n.borderLeftWidth||"",10)||0,e.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var o=this.div.currentStyle;o&&(e.top=parseInt(o.borderTopWidth||"",10)||0,e.bottom=parseInt(o.borderBottomWidth||"",10)||0,e.left=parseInt(o.borderLeftWidth||"",10)||0,e.right=parseInt(o.borderRightWidth||"",10)||0)}return e},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection().fromLatLngToDivPixel(this.position);null!==e&&(this.div.style.left=e.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(e.y+this.pixelOffset.height)+"px":this.div.style.top=e.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},e.prototype.setOptions=function(e){void 0===e&&(e={}),void 0!==e.boxClass&&(this.boxClass=e.boxClass,this.setBoxStyle()),void 0!==e.boxStyle&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),void 0!==e.content&&this.setContent(e.content),void 0!==e.disableAutoPan&&(this.disableAutoPan=e.disableAutoPan),void 0!==e.maxWidth&&(this.maxWidth=e.maxWidth),void 0!==e.pixelOffset&&(this.pixelOffset=e.pixelOffset),void 0!==e.alignBottom&&(this.alignBottom=e.alignBottom),void 0!==e.position&&this.setPosition(e.position),void 0!==e.zIndex&&this.setZIndex(e.zIndex),void 0!==e.closeBoxMargin&&(this.closeBoxMargin=e.closeBoxMargin),void 0!==e.closeBoxURL&&(this.closeBoxURL=e.closeBoxURL),void 0!==e.infoBoxClearance&&(this.infoBoxClearance=e.infoBoxClearance),void 0!==e.isHidden&&(this.isHidden=e.isHidden),void 0!==e.visible&&(this.isHidden=!e.visible),void 0!==e.enableEventPropagation&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){var e=this.getMap();return null!=e&&!this.isHidden},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(e,t){var n=this;t&&(this.position=t.getPosition(),this.moveListener=google.maps.event.addListener(t,"position_changed",(function(){var e=t.getPosition();n.setPosition(e)})),this.mapListener=google.maps.event.addListener(t,"map_changed",(function(){n.setMap(t.map)}))),this.setMap(e),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,t=this.eventListeners;e<t.length;e++){var n=t[e];google.maps.event.removeListener(n)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)Object.prototype.hasOwnProperty.call(this,t)||(this.prototype[t]=e.prototype[t]);return this}.apply(e,[t])},e}(),nI={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},oI={options:function(e,t){e.setOptions(t)},position:function(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},rI={};e.memo((function(n){var o=n.children,r=n.anchor,i=n.options,a=n.position,s=n.zIndex,l=n.onCloseClick,c=n.onDomReady,u=n.onContentChanged,d=n.onPositionChanged,p=n.onZindexChanged,f=n.onLoad,h=n.onUnmount,g=e.useContext(bN),m=e.useState(null),v=m[0],b=m[1],y=e.useState(null),x=y[0],C=y[1],w=e.useState(null),E=w[0],S=w[1],k=e.useState(null),O=k[0],$=k[1],M=e.useState(null),_=M[0],P=M[1],N=e.useState(null),I=N[0],L=N[1],R=e.useRef(null);return e.useEffect((function(){g&&null!==v&&(v.close(),r?v.open(g,r):v.getPosition()&&v.open(g))}),[g,v,r]),e.useEffect((function(){i&&null!==v&&v.setOptions(i)}),[v,i]),e.useEffect((function(){if(a&&null!==v){var e=a instanceof google.maps.LatLng?a:new google.maps.LatLng(a.lat,a.lng);v.setPosition(e)}}),[a]),e.useEffect((function(){"number"==typeof s&&null!==v&&v.setZIndex(s)}),[s]),e.useEffect((function(){v&&l&&(null!==x&&google.maps.event.removeListener(x),C(google.maps.event.addListener(v,"closeclick",l)))}),[l]),e.useEffect((function(){v&&c&&(null!==E&&google.maps.event.removeListener(E),S(google.maps.event.addListener(v,"domready",c)))}),[c]),e.useEffect((function(){v&&u&&(null!==O&&google.maps.event.removeListener(O),$(google.maps.event.addListener(v,"content_changed",u)))}),[u]),e.useEffect((function(){v&&d&&(null!==_&&google.maps.event.removeListener(_),P(google.maps.event.addListener(v,"position_changed",d)))}),[d]),e.useEffect((function(){v&&p&&(null!==I&&google.maps.event.removeListener(I),L(google.maps.event.addListener(v,"zindex_changed",p)))}),[p]),e.useEffect((function(){if(g){var e=i||rI,t=e.position,n=dN(e,["position"]),o=void 0;!t||t instanceof google.maps.LatLng||(o=new google.maps.LatLng(t.lat,t.lng));var a=new tI(uN(uN({},n),o?{position:o}:{}));R.current=document.createElement("div"),b(a),l&&C(google.maps.event.addListener(a,"closeclick",l)),c&&S(google.maps.event.addListener(a,"domready",c)),u&&$(google.maps.event.addListener(a,"content_changed",u)),d&&P(google.maps.event.addListener(a,"position_changed",d)),p&&L(google.maps.event.addListener(a,"zindex_changed",p)),a.setContent(R.current),r?a.open(g,r):a.getPosition()?a.open(g):vN(!1,"You must provide either an anchor or a position prop for <InfoBox>."),f&&f(a)}return function(){null!==v&&(x&&google.maps.event.removeListener(x),O&&google.maps.event.removeListener(O),E&&google.maps.event.removeListener(E),_&&google.maps.event.removeListener(_),I&&google.maps.event.removeListener(I),h&&h(v),v.close())}}),[]),R.current?t.createPortal(e.Children.only(o),R.current):null})),function(n){function o(){var e=null!==n&&n.apply(this,arguments)||this;return e.registeredEvents=[],e.containerElement=null,e.state={infoBox:null},e.open=function(t,n){n?null!==e.context&&t.open(e.context,n):t.getPosition()?null!==e.context&&t.open(e.context):vN(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},e.setInfoBoxCallback=function(){null!==e.state.infoBox&&null!==e.containerElement&&(e.state.infoBox.setContent(e.containerElement),e.open(e.state.infoBox,e.props.anchor),e.props.onLoad&&e.props.onLoad(e.state.infoBox))},e}cN(o,n),o.prototype.componentDidMount=function(){var e,t=this.props.options||{},n=t.position,o=dN(t,["position"]);!n||n instanceof google.maps.LatLng||(e=new google.maps.LatLng(n.lat,n.lng));var r=new tI(uN(uN({},o),e?{position:e}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=EN({updaterMap:oI,eventMap:nI,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)},o.prototype.componentDidUpdate=function(e){var t=this.state.infoBox;null!==t&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:oI,eventMap:nI,prevProps:e,nextProps:this.props,instance:t}))},o.prototype.componentWillUnmount=function(){var e=this.props.onUnmount,t=this.state.infoBox;null!==t&&(e&&e(t),wN(this.registeredEvents),t.close())},o.prototype.render=function(){return this.containerElement?t.createPortal(e.Children.only(this.props.children),this.containerElement):null},o.contextType=bN}(e.PureComponent);var iI=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},aI=hN(iI);const sI=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class lI{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,n]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const o=n>>4;if(1!==o)throw new Error(`Got v${o} data when expected v1.`);const r=sI[15&n];if(!r)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(e,2,1),[a]=new Uint32Array(e,4,1);return new lI(a,i,r,e)}constructor(e,t=64,n=Float64Array,o){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const r=sI.indexOf(this.ArrayType),i=2*e*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(r<0)throw new Error(`Unexpected typed array class: ${n}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+i+a+s),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+r]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return cI(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:a}=this,s=[0,r.length-1,0],l=[];for(;s.length;){const c=s.pop()||0,u=s.pop()||0,d=s.pop()||0;if(u-d<=a){for(let a=d;a<=u;a++){const s=i[2*a],c=i[2*a+1];s>=e&&s<=n&&c>=t&&c<=o&&l.push(r[a])}continue}const p=d+u>>1,f=i[2*p],h=i[2*p+1];f>=e&&f<=n&&h>=t&&h<=o&&l.push(r[p]),(0===c?e<=f:t<=h)&&(s.push(d),s.push(p-1),s.push(1-c)),(0===c?n>=f:o>=h)&&(s.push(p+1),s.push(u),s.push(1-c))}return l}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:r,nodeSize:i}=this,a=[0,o.length-1,0],s=[],l=n*n;for(;a.length;){const c=a.pop()||0,u=a.pop()||0,d=a.pop()||0;if(u-d<=i){for(let n=d;n<=u;n++)fI(r[2*n],r[2*n+1],e,t)<=l&&s.push(o[n]);continue}const p=d+u>>1,f=r[2*p],h=r[2*p+1];fI(f,h,e,t)<=l&&s.push(o[p]),(0===c?e-n<=f:t-n<=h)&&(a.push(d),a.push(p-1),a.push(1-c)),(0===c?e+n>=f:t+n>=h)&&(a.push(p+1),a.push(u),a.push(1-c))}return s}}function cI(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;uI(e,t,a,o,r,i),cI(e,t,n,o,a-1,1-i),cI(e,t,n,a+1,r,1-i)}function uI(e,t,n,o,r,i){for(;r>o;){if(r-o>600){const a=r-o+1,s=n-o+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(s-a/2<0?-1:1);uI(e,t,n,Math.max(o,Math.floor(n-s*c/a+u)),Math.min(r,Math.floor(n+(a-s)*c/a+u)),i)}const a=t[2*n+i];let s=o,l=r;for(dI(e,t,o,n),t[2*r+i]>a&&dI(e,t,o,r);s<l;){for(dI(e,t,s,l),s++,l--;t[2*s+i]<a;)s++;for(;t[2*l+i]>a;)l--}t[2*o+i]===a?dI(e,t,o,l):(l++,dI(e,t,l,r)),l<=n&&(o=l+1),n<=l&&(r=l-1)}}function dI(e,t,n,o){pI(e,n,o),pI(t,2*n,2*o),pI(t,2*n+1,2*o+1)}function pI(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function fI(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const hI={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},gI=Math.fround||(mI=new Float32Array(1),e=>(mI[0]=+e,mI[0]));var mI;const vI=3,bI=5,yI=6;class xI{constructor(e){this.options=Object.assign(Object.create(hI),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:n,maxZoom:o}=this.options;t&&console.time("total time");const r=`prepare ${e.length} points`;t&&console.time(r),this.points=e;const i=[];for(let t=0;t<e.length;t++){const n=e[t];if(!n.geometry)continue;const[o,r]=n.geometry.coordinates,a=gI(EI(o)),s=gI(SI(r));i.push(a,s,1/0,t,-1,1),this.options.reduce&&i.push(0)}let a=this.trees[o+1]=this._createTree(i);t&&console.timeEnd(r);for(let e=o;e>=n;e--){const n=+Date.now();a=this.trees[e]=this._createTree(this._cluster(a,e)),t&&console.log("z%d: %d clusters in %dms",e,a.numItems,+Date.now()-n)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[1]));let r=180===e[2]?180:((e[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,r=180;else if(n>r){const e=this.getClusters([n,o,180,i],t),a=this.getClusters([-180,o,r,i],t);return e.concat(a)}const a=this.trees[this._limitZoom(t)],s=a.range(EI(n),SI(i),EI(r),SI(o)),l=a.data,c=[];for(const e of s){const t=this.stride*e;c.push(l[t+bI]>1?CI(l,t,this.clusterProps):this.points[l[t+vI]])}return c}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),o="No cluster with the specified id.",r=this.trees[n];if(!r)throw new Error(o);const i=r.data;if(t*this.stride>=i.length)throw new Error(o);const a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=i[t*this.stride],l=i[t*this.stride+1],c=r.within(s,l,a),u=[];for(const t of c){const n=t*this.stride;i[n+4]===e&&u.push(i[n+bI]>1?CI(i,n,this.clusterProps):this.points[i[n+vI]])}if(0===u.length)throw new Error(o);return u}getLeaves(e,t,n){t=t||10,n=n||0;const o=[];return this._appendLeaves(o,e,t,n,0),o}getTile(e,t,n){const o=this.trees[this._limitZoom(e)],r=Math.pow(2,e),{extent:i,radius:a}=this.options,s=a/i,l=(n-s)/r,c=(n+1+s)/r,u={features:[]};return this._addTileFeatures(o.range((t-s)/r,l,(t+1+s)/r,c),o.data,t,n,r,u),0===t&&this._addTileFeatures(o.range(1-s/r,l,1,c),o.data,r,n,r,u),t===r-1&&this._addTileFeatures(o.range(0,l,s/r,c),o.data,-1,n,r,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,o,r){const i=this.getChildren(t);for(const t of i){const i=t.properties;if(i&&i.cluster?r+i.point_count<=o?r+=i.point_count:r=this._appendLeaves(e,i.cluster_id,n,o,r):r<o?r++:e.push(t),e.length===n)break}return r}_createTree(e){const t=new lI(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let n=0;n<e.length;n+=this.stride)t.add(e[n],e[n+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,n,o,r,i){for(const a of e){const e=a*this.stride,s=t[e+bI]>1;let l,c,u;if(s)l=wI(t,e,this.clusterProps),c=t[e],u=t[e+1];else{const n=this.points[t[e+vI]];l=n.properties;const[o,r]=n.geometry.coordinates;c=EI(o),u=SI(r)}const d={type:1,geometry:[[Math.round(this.options.extent*(c*r-n)),Math.round(this.options.extent*(u*r-o))]],tags:l};let p;p=s||this.options.generateId?t[e+vI]:this.points[t[e+vI]].id,void 0!==p&&(d.id=p),i.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:n,extent:o,reduce:r,minPoints:i}=this.options,a=n/(o*Math.pow(2,t)),s=e.data,l=[],c=this.stride;for(let n=0;n<s.length;n+=c){if(s[n+2]<=t)continue;s[n+2]=t;const o=s[n],u=s[n+1],d=e.within(s[n],s[n+1],a),p=s[n+bI];let f=p;for(const e of d){const n=e*c;s[n+2]>t&&(f+=s[n+bI])}if(f>p&&f>=i){let e,i=o*p,a=u*p,h=-1;const g=(n/c<<5)+(t+1)+this.points.length;for(const o of d){const l=o*c;if(s[l+2]<=t)continue;s[l+2]=t;const u=s[l+bI];i+=s[l]*u,a+=s[l+1]*u,s[l+4]=g,r&&(e||(e=this._map(s,n,!0),h=this.clusterProps.length,this.clusterProps.push(e)),r(e,this._map(s,l)))}s[n+4]=g,l.push(i/f,a/f,1/0,g,-1,f),r&&l.push(h)}else{for(let e=0;e<c;e++)l.push(s[n+e]);if(f>1)for(const e of d){const n=e*c;if(!(s[n+2]<=t)){s[n+2]=t;for(let e=0;e<c;e++)l.push(s[n+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+bI]>1){const o=this.clusterProps[e[t+yI]];return n?Object.assign({},o):o}const o=this.points[e[t+vI]].properties,r=this.options.map(o);return n&&r===o?Object.assign({},r):r}}function CI(e,t,n){return{type:"Feature",id:e[t+vI],properties:wI(e,t,n),geometry:{type:"Point",coordinates:[(o=e[t],360*(o-.5)),kI(e[t+1])]}};var o}function wI(e,t,n){const o=e[t+bI],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?Math.round(o/100)/10+"k":o,i=e[t+yI],a=-1===i?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+vI],point_count:o,point_count_abbreviated:r})}function EI(e){return e/360+.5}function SI(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function kI(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}
60
+ /*! *****************************************************************************
61
+ Copyright (c) Microsoft Corporation.
62
+
63
+ Permission to use, copy, modify, and/or distribute this software for any
64
+ purpose with or without fee is hereby granted.
65
+
66
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
67
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
68
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
69
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
70
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
71
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
72
+ PERFORMANCE OF THIS SOFTWARE.
73
+ ***************************************************************************** */class OI{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return!!this.isAdvancedMarker(e)||e.getVisible()}}class $I{constructor({markers:e,position:t}){this.markers=e,t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(0===this.markers.length&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(OI.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>OI.getVisible(e))).length}push(e){this.markers.push(e)}delete(){this.marker&&(OI.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class MI{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return _I(e)}}const _I=e=>e.map((e=>new $I({position:OI.getPosition(e),markers:[e]})));class PI extends MI{constructor(e){var{maxZoom:t,radius:n=60}=e,o=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,["maxZoom","radius"]);super({maxZoom:t}),this.state={zoom:-1},this.superCluster=new xI(Object.assign({maxZoom:this.maxZoom,radius:n},o))}calculate(e){let t=!1;const n={zoom:e.map.getZoom()};if(!aI(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const n=this.markers.map((e=>{const t=OI.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(n)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!aI(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map((e=>this.transformCluster(e)))}transformCluster({geometry:{coordinates:[e,t]},properties:n}){if(n.cluster)return new $I({markers:this.superCluster.getLeaves(n.cluster_id,1/0).map((e=>e.properties.marker)),position:{lat:t,lng:e}});const o=n.marker;return new $I({markers:[o],position:OI.getPosition(o)})}}class NI{constructor(e,t){this.markers={sum:e.length};const n=t.map((e=>e.count)),o=n.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:o/t.length,sum:o,min:Math.min(...n),max:Math.max(...n)}}}}class II{render({count:e,position:t},n,o){const r=`<svg fill="${e>Math.max(10,n.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>\n</svg>`,i=`Cluster of ${e} markers`,a=Number(google.maps.Marker.MAX_ZINDEX)+e;if(OI.isAdvancedMarkerAvailable(o)){const e=(new DOMParser).parseFromString(r,"image/svg+xml").documentElement;e.setAttribute("transform","translate(0 25)");const n={map:o,position:t,zIndex:a,title:i,content:e};return new google.maps.marker.AdvancedMarkerElement(n)}const s={position:t,zIndex:a,title:i,icon:{url:`data:image/svg+xml;base64,${btoa(r)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(s)}}class LI{constructor(){!function(e,t){for(let n in t.prototype)e.prototype[n]=t.prototype[n]}(LI,google.maps.OverlayView)}}var RI;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(RI||(RI={}));const jI=(e,t,n)=>{n.fitBounds(t.bounds)};class TI extends LI{constructor({map:e,markers:t=[],algorithmOptions:n={},algorithm:o=new PI(n),renderer:r=new II,onClusterClick:i=jI}){super(),this.markers=[...t],this.clusters=[],this.algorithm=o,this.renderer=r,this.onClusterClick=i,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){const n=this.markers.indexOf(e);return-1!==n&&(OI.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){let n=!1;return e.forEach((e=>{n=this.removeMarker(e,!0)||n})),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,RI.CLUSTERING_BEGIN,this);const{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(n||null==n){const e=new Set;for(const n of t)1==n.markers.length&&e.add(n.markers[0]);const n=[];for(const t of this.clusters)null!=t.marker&&(1==t.markers.length?e.has(t.marker)||OI.setMap(t.marker,null):n.push(t.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame((()=>n.forEach((e=>OI.setMap(e,null)))))}google.maps.event.trigger(this,RI.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>OI.setMap(e,null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const e=new NI(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((n=>{1===n.markers.length?n.marker=n.markers[0]:(n.marker=this.renderer.render(n,e,t),n.markers.forEach((e=>OI.setMap(e,null))),this.onClusterClick&&n.marker.addListener("click",(e=>{google.maps.event.trigger(this,RI.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)}))),OI.setMap(n.marker,t)}))}}function DI(t){var n=function(){vN(!!e.useContext,"useGoogleMap is React hook and requires React version 16.8+");var t=e.useContext(bN);return vN(!!t,"useGoogleMap needs a GoogleMap available up in the tree"),t}(),o=e.useState(null),r=o[0],i=o[1];return e.useEffect((function(){if(n&&null===r){var e=new TI(uN(uN({},t),{map:n}));i(e)}}),[n]),r}e.memo((function(e){var t=e.children,n=DI(e.options);return null!==n?t(n):null}));var AI={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},zI={options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},zIndex:function(e,t){e.setZIndex(t)}};e.memo((function(n){var o=n.children,r=n.anchor,i=n.options,a=n.position,s=n.zIndex,l=n.onCloseClick,c=n.onDomReady,u=n.onContentChanged,d=n.onPositionChanged,p=n.onZindexChanged,f=n.onLoad,h=n.onUnmount,g=e.useContext(bN),m=e.useState(null),v=m[0],b=m[1],y=e.useState(null),x=y[0],C=y[1],w=e.useState(null),E=w[0],S=w[1],k=e.useState(null),O=k[0],$=k[1],M=e.useState(null),_=M[0],P=M[1],N=e.useState(null),I=N[0],L=N[1],R=e.useRef(null);return e.useEffect((function(){null!==v&&(v.close(),r?v.open(g,r):v.getPosition()&&v.open(g))}),[g,v,r]),e.useEffect((function(){i&&null!==v&&v.setOptions(i)}),[v,i]),e.useEffect((function(){a&&null!==v&&v.setPosition(a)}),[a]),e.useEffect((function(){"number"==typeof s&&null!==v&&v.setZIndex(s)}),[s]),e.useEffect((function(){v&&l&&(null!==x&&google.maps.event.removeListener(x),C(google.maps.event.addListener(v,"closeclick",l)))}),[l]),e.useEffect((function(){v&&c&&(null!==E&&google.maps.event.removeListener(E),S(google.maps.event.addListener(v,"domready",c)))}),[c]),e.useEffect((function(){v&&u&&(null!==O&&google.maps.event.removeListener(O),$(google.maps.event.addListener(v,"content_changed",u)))}),[u]),e.useEffect((function(){v&&d&&(null!==_&&google.maps.event.removeListener(_),P(google.maps.event.addListener(v,"position_changed",d)))}),[d]),e.useEffect((function(){v&&p&&(null!==I&&google.maps.event.removeListener(I),L(google.maps.event.addListener(v,"zindex_changed",p)))}),[p]),e.useEffect((function(){var e=new google.maps.InfoWindow(uN({},i||{}));return b(e),R.current=document.createElement("div"),l&&C(google.maps.event.addListener(e,"closeclick",l)),c&&S(google.maps.event.addListener(e,"domready",c)),u&&$(google.maps.event.addListener(e,"content_changed",u)),d&&P(google.maps.event.addListener(e,"position_changed",d)),p&&L(google.maps.event.addListener(e,"zindex_changed",p)),e.setContent(R.current),a&&e.setPosition(a),s&&e.setZIndex(s),r?e.open(g,r):e.getPosition()?e.open(g):vN(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),f&&f(e),function(){x&&google.maps.event.removeListener(x),O&&google.maps.event.removeListener(O),E&&google.maps.event.removeListener(E),_&&google.maps.event.removeListener(_),I&&google.maps.event.removeListener(I),h&&h(e),e.close()}}),[]),R.current?t.createPortal(e.Children.only(o),R.current):null})),function(n){function o(){var e=null!==n&&n.apply(this,arguments)||this;return e.registeredEvents=[],e.containerElement=null,e.state={infoWindow:null},e.open=function(t,n){n?t.open(e.context,n):t.getPosition()?t.open(e.context):vN(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},e.setInfoWindowCallback=function(){null!==e.state.infoWindow&&null!==e.containerElement&&(e.state.infoWindow.setContent(e.containerElement),e.open(e.state.infoWindow,e.props.anchor),e.props.onLoad&&e.props.onLoad(e.state.infoWindow))},e}cN(o,n),o.prototype.componentDidMount=function(){var e=new google.maps.InfoWindow(uN({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=EN({updaterMap:zI,eventMap:AI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{infoWindow:e}}),this.setInfoWindowCallback)},o.prototype.componentDidUpdate=function(e){null!==this.state.infoWindow&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:zI,eventMap:AI,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))},o.prototype.componentWillUnmount=function(){null!==this.state.infoWindow&&(wN(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},o.prototype.render=function(){return this.containerElement?t.createPortal(e.Children.only(this.props.children),this.containerElement):null},o.contextType=bN}(e.PureComponent);var BI={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},HI={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},visible:function(e,t){e.setVisible(t)}},FI={};e.memo((function(t){var n=t.options,o=t.draggable,r=t.editable,i=t.visible,a=t.path,s=t.onDblClick,l=t.onDragEnd,c=t.onDragStart,u=t.onMouseDown,d=t.onMouseMove,p=t.onMouseOut,f=t.onMouseOver,h=t.onMouseUp,g=t.onRightClick,m=t.onClick,v=t.onDrag,b=t.onLoad,y=t.onUnmount,x=e.useContext(bN),C=e.useState(null),w=C[0],E=C[1],S=e.useState(null),k=S[0],O=S[1],$=e.useState(null),M=$[0],_=$[1],P=e.useState(null),N=P[0],I=P[1],L=e.useState(null),R=L[0],j=L[1],T=e.useState(null),D=T[0],A=T[1],z=e.useState(null),B=z[0],H=z[1],F=e.useState(null),V=F[0],W=F[1],U=e.useState(null),X=U[0],q=U[1],G=e.useState(null),K=G[0],Y=G[1],Z=e.useState(null),Q=Z[0],J=Z[1],ee=e.useState(null),te=ee[0],ne=ee[1];return e.useEffect((function(){null!==w&&w.setMap(x)}),[x]),e.useEffect((function(){void 0!==n&&null!==w&&w.setOptions(n)}),[w,n]),e.useEffect((function(){void 0!==o&&null!==w&&w.setDraggable(o)}),[w,o]),e.useEffect((function(){void 0!==r&&null!==w&&w.setEditable(r)}),[w,r]),e.useEffect((function(){void 0!==i&&null!==w&&w.setVisible(i)}),[w,i]),e.useEffect((function(){void 0!==a&&null!==w&&w.setPath(a)}),[w,a]),e.useEffect((function(){w&&s&&(null!==k&&google.maps.event.removeListener(k),O(google.maps.event.addListener(w,"dblclick",s)))}),[s]),e.useEffect((function(){w&&l&&(null!==M&&google.maps.event.removeListener(M),_(google.maps.event.addListener(w,"dragend",l)))}),[l]),e.useEffect((function(){w&&c&&(null!==N&&google.maps.event.removeListener(N),I(google.maps.event.addListener(w,"dragstart",c)))}),[c]),e.useEffect((function(){w&&u&&(null!==R&&google.maps.event.removeListener(R),j(google.maps.event.addListener(w,"mousedown",u)))}),[u]),e.useEffect((function(){w&&d&&(null!==D&&google.maps.event.removeListener(D),A(google.maps.event.addListener(w,"mousemove",d)))}),[d]),e.useEffect((function(){w&&p&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(w,"mouseout",p)))}),[p]),e.useEffect((function(){w&&f&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener(w,"mouseover",f)))}),[f]),e.useEffect((function(){w&&h&&(null!==X&&google.maps.event.removeListener(X),q(google.maps.event.addListener(w,"mouseup",h)))}),[h]),e.useEffect((function(){w&&g&&(null!==K&&google.maps.event.removeListener(K),Y(google.maps.event.addListener(w,"rightclick",g)))}),[g]),e.useEffect((function(){w&&m&&(null!==Q&&google.maps.event.removeListener(Q),J(google.maps.event.addListener(w,"click",m)))}),[m]),e.useEffect((function(){w&&v&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(w,"drag",v)))}),[v]),e.useEffect((function(){var e=new google.maps.Polyline(uN(uN({},n||FI),{map:x}));return a&&e.setPath(a),void 0!==i&&e.setVisible(i),void 0!==r&&e.setEditable(r),void 0!==o&&e.setDraggable(o),s&&O(google.maps.event.addListener(e,"dblclick",s)),l&&_(google.maps.event.addListener(e,"dragend",l)),c&&I(google.maps.event.addListener(e,"dragstart",c)),u&&j(google.maps.event.addListener(e,"mousedown",u)),d&&A(google.maps.event.addListener(e,"mousemove",d)),p&&H(google.maps.event.addListener(e,"mouseout",p)),f&&W(google.maps.event.addListener(e,"mouseover",f)),h&&q(google.maps.event.addListener(e,"mouseup",h)),g&&Y(google.maps.event.addListener(e,"rightclick",g)),m&&J(google.maps.event.addListener(e,"click",m)),v&&ne(google.maps.event.addListener(e,"drag",v)),E(e),b&&b(e),function(){null!==k&&google.maps.event.removeListener(k),null!==M&&google.maps.event.removeListener(M),null!==N&&google.maps.event.removeListener(N),null!==R&&google.maps.event.removeListener(R),null!==D&&google.maps.event.removeListener(D),null!==B&&google.maps.event.removeListener(B),null!==V&&google.maps.event.removeListener(V),null!==X&&google.maps.event.removeListener(X),null!==K&&google.maps.event.removeListener(K),null!==Q&&google.maps.event.removeListener(Q),y&&y(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={polyline:null},t.setPolylineCallback=function(){null!==t.state.polyline&&t.props.onLoad&&t.props.onLoad(t.state.polyline)},t}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Polyline(uN(uN({},this.props.options||{}),{map:this.context}));this.registeredEvents=EN({updaterMap:HI,eventMap:BI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polyline:e}}),this.setPolylineCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.polyline&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:HI,eventMap:BI,prevProps:e,nextProps:this.props,instance:this.state.polyline}))},t.prototype.componentWillUnmount=function(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),wN(this.registeredEvents),this.state.polyline.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent);var VI={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},WI={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},paths:function(e,t){e.setPaths(t)},visible:function(e,t){e.setVisible(t)}};e.memo((function(t){var n=t.options,o=t.draggable,r=t.editable,i=t.visible,a=t.path,s=t.paths,l=t.onDblClick,c=t.onDragEnd,u=t.onDragStart,d=t.onMouseDown,p=t.onMouseMove,f=t.onMouseOut,h=t.onMouseOver,g=t.onMouseUp,m=t.onRightClick,v=t.onClick,b=t.onDrag,y=t.onLoad,x=t.onUnmount,C=t.onEdit,w=e.useContext(bN),E=e.useState(null),S=E[0],k=E[1],O=e.useState(null),$=O[0],M=O[1],_=e.useState(null),P=_[0],N=_[1],I=e.useState(null),L=I[0],R=I[1],j=e.useState(null),T=j[0],D=j[1],A=e.useState(null),z=A[0],B=A[1],H=e.useState(null),F=H[0],V=H[1],W=e.useState(null),U=W[0],X=W[1],q=e.useState(null),G=q[0],K=q[1],Y=e.useState(null),Z=Y[0],Q=Y[1],J=e.useState(null),ee=J[0],te=J[1],ne=e.useState(null),oe=ne[0],re=ne[1];return e.useEffect((function(){null!==S&&S.setMap(w)}),[w]),e.useEffect((function(){void 0!==n&&null!==S&&S.setOptions(n)}),[S,n]),e.useEffect((function(){void 0!==o&&null!==S&&S.setDraggable(o)}),[S,o]),e.useEffect((function(){void 0!==r&&null!==S&&S.setEditable(r)}),[S,r]),e.useEffect((function(){void 0!==i&&null!==S&&S.setVisible(i)}),[S,i]),e.useEffect((function(){void 0!==a&&null!==S&&S.setPath(a)}),[S,a]),e.useEffect((function(){void 0!==s&&null!==S&&S.setPaths(s)}),[S,s]),e.useEffect((function(){S&&l&&(null!==$&&google.maps.event.removeListener($),M(google.maps.event.addListener(S,"dblclick",l)))}),[l]),e.useEffect((function(){S&&(google.maps.event.addListener(S.getPath(),"insert_at",(function(){null==C||C(S)})),google.maps.event.addListener(S.getPath(),"set_at",(function(){null==C||C(S)})))}),[S,C]),e.useEffect((function(){S&&c&&(null!==P&&google.maps.event.removeListener(P),N(google.maps.event.addListener(S,"dragend",c)))}),[c]),e.useEffect((function(){S&&u&&(null!==L&&google.maps.event.removeListener(L),R(google.maps.event.addListener(S,"dragstart",u)))}),[u]),e.useEffect((function(){S&&d&&(null!==T&&google.maps.event.removeListener(T),D(google.maps.event.addListener(S,"mousedown",d)))}),[d]),e.useEffect((function(){S&&p&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(S,"mousemove",p)))}),[p]),e.useEffect((function(){S&&f&&(null!==F&&google.maps.event.removeListener(F),V(google.maps.event.addListener(S,"mouseout",f)))}),[f]),e.useEffect((function(){S&&h&&(null!==U&&google.maps.event.removeListener(U),X(google.maps.event.addListener(S,"mouseover",h)))}),[h]),e.useEffect((function(){S&&g&&(null!==G&&google.maps.event.removeListener(G),K(google.maps.event.addListener(S,"mouseup",g)))}),[g]),e.useEffect((function(){S&&m&&(null!==Z&&google.maps.event.removeListener(Z),Q(google.maps.event.addListener(S,"rightclick",m)))}),[m]),e.useEffect((function(){S&&v&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(S,"click",v)))}),[v]),e.useEffect((function(){S&&b&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener(S,"drag",b)))}),[b]),e.useEffect((function(){var e=new google.maps.Polygon(uN(uN({},n||{}),{map:w}));return a&&e.setPath(a),s&&e.setPaths(s),void 0!==i&&e.setVisible(i),void 0!==r&&e.setEditable(r),void 0!==o&&e.setDraggable(o),l&&M(google.maps.event.addListener(e,"dblclick",l)),c&&N(google.maps.event.addListener(e,"dragend",c)),u&&R(google.maps.event.addListener(e,"dragstart",u)),d&&D(google.maps.event.addListener(e,"mousedown",d)),p&&B(google.maps.event.addListener(e,"mousemove",p)),f&&V(google.maps.event.addListener(e,"mouseout",f)),h&&X(google.maps.event.addListener(e,"mouseover",h)),g&&K(google.maps.event.addListener(e,"mouseup",g)),m&&Q(google.maps.event.addListener(e,"rightclick",m)),v&&te(google.maps.event.addListener(e,"click",v)),b&&re(google.maps.event.addListener(e,"drag",b)),k(e),y&&y(e),function(){null!==$&&google.maps.event.removeListener($),null!==P&&google.maps.event.removeListener(P),null!==L&&google.maps.event.removeListener(L),null!==T&&google.maps.event.removeListener(T),null!==z&&google.maps.event.removeListener(z),null!==F&&google.maps.event.removeListener(F),null!==U&&google.maps.event.removeListener(U),null!==G&&google.maps.event.removeListener(G),null!==Z&&google.maps.event.removeListener(Z),null!==ee&&google.maps.event.removeListener(ee),x&&x(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={polygon:null},t.setPolygonCallback=function(){null!==t.state.polygon&&t.props.onLoad&&t.props.onLoad(t.state.polygon)},t}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Polygon(uN(uN({},this.props.options||{}),{map:this.context}));this.registeredEvents=EN({updaterMap:WI,eventMap:VI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polygon:e}}),this.setPolygonCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.polygon&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:WI,eventMap:VI,prevProps:e,nextProps:this.props,instance:this.state.polygon}))},t.prototype.componentWillUnmount=function(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),wN(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent);var UI={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},XI={bounds:function(e,t){e.setBounds(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},visible:function(e,t){e.setVisible(t)}};e.memo((function(t){var n=t.options,o=t.bounds,r=t.draggable,i=t.editable,a=t.visible,s=t.onDblClick,l=t.onDragEnd,c=t.onDragStart,u=t.onMouseDown,d=t.onMouseMove,p=t.onMouseOut,f=t.onMouseOver,h=t.onMouseUp,g=t.onRightClick,m=t.onClick,v=t.onDrag,b=t.onBoundsChanged,y=t.onLoad,x=t.onUnmount,C=e.useContext(bN),w=e.useState(null),E=w[0],S=w[1],k=e.useState(null),O=k[0],$=k[1],M=e.useState(null),_=M[0],P=M[1],N=e.useState(null),I=N[0],L=N[1],R=e.useState(null),j=R[0],T=R[1],D=e.useState(null),A=D[0],z=D[1],B=e.useState(null),H=B[0],F=B[1],V=e.useState(null),W=V[0],U=V[1],X=e.useState(null),q=X[0],G=X[1],K=e.useState(null),Y=K[0],Z=K[1],Q=e.useState(null),J=Q[0],ee=Q[1],te=e.useState(null),ne=te[0],oe=te[1],re=e.useState(null),ie=re[0],ae=re[1];return e.useEffect((function(){null!==E&&E.setMap(C)}),[C]),e.useEffect((function(){void 0!==n&&null!==E&&E.setOptions(n)}),[E,n]),e.useEffect((function(){void 0!==r&&null!==E&&E.setDraggable(r)}),[E,r]),e.useEffect((function(){void 0!==i&&null!==E&&E.setEditable(i)}),[E,i]),e.useEffect((function(){void 0!==a&&null!==E&&E.setVisible(a)}),[E,a]),e.useEffect((function(){void 0!==o&&null!==E&&E.setBounds(o)}),[E,o]),e.useEffect((function(){E&&s&&(null!==O&&google.maps.event.removeListener(O),$(google.maps.event.addListener(E,"dblclick",s)))}),[s]),e.useEffect((function(){E&&l&&(null!==_&&google.maps.event.removeListener(_),P(google.maps.event.addListener(E,"dragend",l)))}),[l]),e.useEffect((function(){E&&c&&(null!==I&&google.maps.event.removeListener(I),L(google.maps.event.addListener(E,"dragstart",c)))}),[c]),e.useEffect((function(){E&&u&&(null!==j&&google.maps.event.removeListener(j),T(google.maps.event.addListener(E,"mousedown",u)))}),[u]),e.useEffect((function(){E&&d&&(null!==A&&google.maps.event.removeListener(A),z(google.maps.event.addListener(E,"mousemove",d)))}),[d]),e.useEffect((function(){E&&p&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(E,"mouseout",p)))}),[p]),e.useEffect((function(){E&&f&&(null!==W&&google.maps.event.removeListener(W),U(google.maps.event.addListener(E,"mouseover",f)))}),[f]),e.useEffect((function(){E&&h&&(null!==q&&google.maps.event.removeListener(q),G(google.maps.event.addListener(E,"mouseup",h)))}),[h]),e.useEffect((function(){E&&g&&(null!==Y&&google.maps.event.removeListener(Y),Z(google.maps.event.addListener(E,"rightclick",g)))}),[g]),e.useEffect((function(){E&&m&&(null!==J&&google.maps.event.removeListener(J),ee(google.maps.event.addListener(E,"click",m)))}),[m]),e.useEffect((function(){E&&v&&(null!==ne&&google.maps.event.removeListener(ne),oe(google.maps.event.addListener(E,"drag",v)))}),[v]),e.useEffect((function(){E&&b&&(null!==ie&&google.maps.event.removeListener(ie),ae(google.maps.event.addListener(E,"bounds_changed",b)))}),[b]),e.useEffect((function(){var e=new google.maps.Rectangle(uN(uN({},n||{}),{map:C}));return void 0!==a&&e.setVisible(a),void 0!==i&&e.setEditable(i),void 0!==r&&e.setDraggable(r),void 0!==o&&e.setBounds(o),s&&$(google.maps.event.addListener(e,"dblclick",s)),l&&P(google.maps.event.addListener(e,"dragend",l)),c&&L(google.maps.event.addListener(e,"dragstart",c)),u&&T(google.maps.event.addListener(e,"mousedown",u)),d&&z(google.maps.event.addListener(e,"mousemove",d)),p&&F(google.maps.event.addListener(e,"mouseout",p)),f&&U(google.maps.event.addListener(e,"mouseover",f)),h&&G(google.maps.event.addListener(e,"mouseup",h)),g&&Z(google.maps.event.addListener(e,"rightclick",g)),m&&ee(google.maps.event.addListener(e,"click",m)),v&&oe(google.maps.event.addListener(e,"drag",v)),b&&ae(google.maps.event.addListener(e,"bounds_changed",b)),S(e),y&&y(e),function(){null!==O&&google.maps.event.removeListener(O),null!==_&&google.maps.event.removeListener(_),null!==I&&google.maps.event.removeListener(I),null!==j&&google.maps.event.removeListener(j),null!==A&&google.maps.event.removeListener(A),null!==H&&google.maps.event.removeListener(H),null!==W&&google.maps.event.removeListener(W),null!==q&&google.maps.event.removeListener(q),null!==Y&&google.maps.event.removeListener(Y),null!==J&&google.maps.event.removeListener(J),null!==ne&&google.maps.event.removeListener(ne),null!==ie&&google.maps.event.removeListener(ie),x&&x(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={rectangle:null},t.setRectangleCallback=function(){null!==t.state.rectangle&&t.props.onLoad&&t.props.onLoad(t.state.rectangle)},t}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Rectangle(uN(uN({},this.props.options||{}),{map:this.context}));this.registeredEvents=EN({updaterMap:XI,eventMap:UI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{rectangle:e}}),this.setRectangleCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.rectangle&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:XI,eventMap:UI,prevProps:e,nextProps:this.props,instance:this.state.rectangle}))},t.prototype.componentWillUnmount=function(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),wN(this.registeredEvents),this.state.rectangle.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent);var qI={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},GI={center:function(e,t){e.setCenter(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},radius:function(e,t){e.setRadius(t)},visible:function(e,t){e.setVisible(t)}},KI={};e.memo((function(t){var n=t.options,o=t.center,r=t.radius,i=t.draggable,a=t.editable,s=t.visible,l=t.onDblClick,c=t.onDragEnd,u=t.onDragStart,d=t.onMouseDown,p=t.onMouseMove,f=t.onMouseOut,h=t.onMouseOver,g=t.onMouseUp,m=t.onRightClick,v=t.onClick,b=t.onDrag,y=t.onCenterChanged,x=t.onRadiusChanged,C=t.onLoad,w=t.onUnmount,E=e.useContext(bN),S=e.useState(null),k=S[0],O=S[1],$=e.useState(null),M=$[0],_=$[1],P=e.useState(null),N=P[0],I=P[1],L=e.useState(null),R=L[0],j=L[1],T=e.useState(null),D=T[0],A=T[1],z=e.useState(null),B=z[0],H=z[1],F=e.useState(null),V=F[0],W=F[1],U=e.useState(null),X=U[0],q=U[1],G=e.useState(null),K=G[0],Y=G[1],Z=e.useState(null),Q=Z[0],J=Z[1],ee=e.useState(null),te=ee[0],ne=ee[1],oe=e.useState(null),re=oe[0],ie=oe[1],ae=e.useState(null),se=ae[0],le=ae[1],ce=e.useState(null),ue=ce[0],de=ce[1];return e.useEffect((function(){null!==k&&k.setMap(E)}),[E]),e.useEffect((function(){void 0!==n&&null!==k&&k.setOptions(n)}),[k,n]),e.useEffect((function(){void 0!==i&&null!==k&&k.setDraggable(i)}),[k,i]),e.useEffect((function(){void 0!==a&&null!==k&&k.setEditable(a)}),[k,a]),e.useEffect((function(){void 0!==s&&null!==k&&k.setVisible(s)}),[k,s]),e.useEffect((function(){"number"==typeof r&&null!==k&&k.setRadius(r)}),[k,r]),e.useEffect((function(){void 0!==o&&null!==k&&k.setCenter(o)}),[k,o]),e.useEffect((function(){k&&l&&(null!==M&&google.maps.event.removeListener(M),_(google.maps.event.addListener(k,"dblclick",l)))}),[l]),e.useEffect((function(){k&&c&&(null!==N&&google.maps.event.removeListener(N),I(google.maps.event.addListener(k,"dragend",c)))}),[c]),e.useEffect((function(){k&&u&&(null!==R&&google.maps.event.removeListener(R),j(google.maps.event.addListener(k,"dragstart",u)))}),[u]),e.useEffect((function(){k&&d&&(null!==D&&google.maps.event.removeListener(D),A(google.maps.event.addListener(k,"mousedown",d)))}),[d]),e.useEffect((function(){k&&p&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(k,"mousemove",p)))}),[p]),e.useEffect((function(){k&&f&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener(k,"mouseout",f)))}),[f]),e.useEffect((function(){k&&h&&(null!==X&&google.maps.event.removeListener(X),q(google.maps.event.addListener(k,"mouseover",h)))}),[h]),e.useEffect((function(){k&&g&&(null!==K&&google.maps.event.removeListener(K),Y(google.maps.event.addListener(k,"mouseup",g)))}),[g]),e.useEffect((function(){k&&m&&(null!==Q&&google.maps.event.removeListener(Q),J(google.maps.event.addListener(k,"rightclick",m)))}),[m]),e.useEffect((function(){k&&v&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(k,"click",v)))}),[v]),e.useEffect((function(){k&&b&&(null!==re&&google.maps.event.removeListener(re),ie(google.maps.event.addListener(k,"drag",b)))}),[b]),e.useEffect((function(){k&&y&&(null!==se&&google.maps.event.removeListener(se),le(google.maps.event.addListener(k,"center_changed",y)))}),[v]),e.useEffect((function(){k&&x&&(null!==ue&&google.maps.event.removeListener(ue),de(google.maps.event.addListener(k,"radius_changed",x)))}),[x]),e.useEffect((function(){var e=new google.maps.Circle(uN(uN({},n||KI),{map:E}));return"number"==typeof r&&e.setRadius(r),void 0!==o&&e.setCenter(o),"number"==typeof r&&e.setRadius(r),void 0!==s&&e.setVisible(s),void 0!==a&&e.setEditable(a),void 0!==i&&e.setDraggable(i),l&&_(google.maps.event.addListener(e,"dblclick",l)),c&&I(google.maps.event.addListener(e,"dragend",c)),u&&j(google.maps.event.addListener(e,"dragstart",u)),d&&A(google.maps.event.addListener(e,"mousedown",d)),p&&H(google.maps.event.addListener(e,"mousemove",p)),f&&W(google.maps.event.addListener(e,"mouseout",f)),h&&q(google.maps.event.addListener(e,"mouseover",h)),g&&Y(google.maps.event.addListener(e,"mouseup",g)),m&&J(google.maps.event.addListener(e,"rightclick",m)),v&&ne(google.maps.event.addListener(e,"click",v)),b&&ie(google.maps.event.addListener(e,"drag",b)),y&&le(google.maps.event.addListener(e,"center_changed",y)),x&&de(google.maps.event.addListener(e,"radius_changed",x)),O(e),C&&C(e),function(){null!==M&&google.maps.event.removeListener(M),null!==N&&google.maps.event.removeListener(N),null!==R&&google.maps.event.removeListener(R),null!==D&&google.maps.event.removeListener(D),null!==B&&google.maps.event.removeListener(B),null!==V&&google.maps.event.removeListener(V),null!==X&&google.maps.event.removeListener(X),null!==K&&google.maps.event.removeListener(K),null!==Q&&google.maps.event.removeListener(Q),null!==te&&google.maps.event.removeListener(te),null!==se&&google.maps.event.removeListener(se),null!==ue&&google.maps.event.removeListener(ue),w&&w(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={circle:null},t.setCircleCallback=function(){null!==t.state.circle&&t.props.onLoad&&t.props.onLoad(t.state.circle)},t}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Circle(uN(uN({},this.props.options||{}),{map:this.context}));this.registeredEvents=EN({updaterMap:GI,eventMap:qI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{circle:e}}),this.setCircleCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.circle&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:GI,eventMap:qI,prevProps:e,nextProps:this.props,instance:this.state.circle}))},t.prototype.componentWillUnmount=function(){var e;null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),wN(this.registeredEvents),null===(e=this.state.circle)||void 0===e||e.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent);var YI={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},ZI={add:function(e,t){e.add(t)},addgeojson:function(e,t,n){e.addGeoJson(t,n)},contains:function(e,t){e.contains(t)},foreach:function(e,t){e.forEach(t)},loadgeojson:function(e,t,n,o){e.loadGeoJson(t,n,o)},overridestyle:function(e,t,n){e.overrideStyle(t,n)},remove:function(e,t){e.remove(t)},revertstyle:function(e,t){e.revertStyle(t)},controlposition:function(e,t){e.setControlPosition(t)},controls:function(e,t){e.setControls(t)},drawingmode:function(e,t){e.setDrawingMode(t)},map:function(e,t){e.setMap(t)},style:function(e,t){e.setStyle(t)},togeojson:function(e,t){e.toGeoJson(t)}};e.memo((function(t){var n=t.options,o=t.onClick,r=t.onDblClick,i=t.onMouseDown,a=t.onMouseMove,s=t.onMouseOut,l=t.onMouseOver,c=t.onMouseUp,u=t.onRightClick,d=t.onAddFeature,p=t.onRemoveFeature,f=t.onRemoveProperty,h=t.onSetGeometry,g=t.onSetProperty,m=t.onLoad,v=t.onUnmount,b=e.useContext(bN),y=e.useState(null),x=y[0],C=y[1],w=e.useState(null),E=w[0],S=w[1],k=e.useState(null),O=k[0],$=k[1],M=e.useState(null),_=M[0],P=M[1],N=e.useState(null),I=N[0],L=N[1],R=e.useState(null),j=R[0],T=R[1],D=e.useState(null),A=D[0],z=D[1],B=e.useState(null),H=B[0],F=B[1],V=e.useState(null),W=V[0],U=V[1],X=e.useState(null),q=X[0],G=X[1],K=e.useState(null),Y=K[0],Z=K[1],Q=e.useState(null),J=Q[0],ee=Q[1],te=e.useState(null),ne=te[0],oe=te[1],re=e.useState(null),ie=re[0],ae=re[1];return e.useEffect((function(){null!==x&&x.setMap(b)}),[b]),e.useEffect((function(){x&&r&&(null!==E&&google.maps.event.removeListener(E),S(google.maps.event.addListener(x,"dblclick",r)))}),[r]),e.useEffect((function(){x&&i&&(null!==O&&google.maps.event.removeListener(O),$(google.maps.event.addListener(x,"mousedown",i)))}),[i]),e.useEffect((function(){x&&a&&(null!==_&&google.maps.event.removeListener(_),P(google.maps.event.addListener(x,"mousemove",a)))}),[a]),e.useEffect((function(){x&&s&&(null!==I&&google.maps.event.removeListener(I),L(google.maps.event.addListener(x,"mouseout",s)))}),[s]),e.useEffect((function(){x&&l&&(null!==j&&google.maps.event.removeListener(j),T(google.maps.event.addListener(x,"mouseover",l)))}),[l]),e.useEffect((function(){x&&c&&(null!==A&&google.maps.event.removeListener(A),z(google.maps.event.addListener(x,"mouseup",c)))}),[c]),e.useEffect((function(){x&&u&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(x,"rightclick",u)))}),[u]),e.useEffect((function(){x&&o&&(null!==W&&google.maps.event.removeListener(W),U(google.maps.event.addListener(x,"click",o)))}),[o]),e.useEffect((function(){x&&d&&(null!==q&&google.maps.event.removeListener(q),G(google.maps.event.addListener(x,"addfeature",d)))}),[d]),e.useEffect((function(){x&&p&&(null!==Y&&google.maps.event.removeListener(Y),Z(google.maps.event.addListener(x,"removefeature",p)))}),[p]),e.useEffect((function(){x&&f&&(null!==J&&google.maps.event.removeListener(J),ee(google.maps.event.addListener(x,"removeproperty",f)))}),[f]),e.useEffect((function(){x&&h&&(null!==ne&&google.maps.event.removeListener(ne),oe(google.maps.event.addListener(x,"setgeometry",h)))}),[h]),e.useEffect((function(){x&&g&&(null!==ie&&google.maps.event.removeListener(ie),ae(google.maps.event.addListener(x,"setproperty",g)))}),[g]),e.useEffect((function(){if(null!==b){var e=new google.maps.Data(uN(uN({},n||{}),{map:b}));r&&S(google.maps.event.addListener(e,"dblclick",r)),i&&$(google.maps.event.addListener(e,"mousedown",i)),a&&P(google.maps.event.addListener(e,"mousemove",a)),s&&L(google.maps.event.addListener(e,"mouseout",s)),l&&T(google.maps.event.addListener(e,"mouseover",l)),c&&z(google.maps.event.addListener(e,"mouseup",c)),u&&F(google.maps.event.addListener(e,"rightclick",u)),o&&U(google.maps.event.addListener(e,"click",o)),d&&G(google.maps.event.addListener(e,"addfeature",d)),p&&Z(google.maps.event.addListener(e,"removefeature",p)),f&&ee(google.maps.event.addListener(e,"removeproperty",f)),h&&oe(google.maps.event.addListener(e,"setgeometry",h)),g&&ae(google.maps.event.addListener(e,"setproperty",g)),C(e),m&&m(e)}return function(){x&&(null!==E&&google.maps.event.removeListener(E),null!==O&&google.maps.event.removeListener(O),null!==_&&google.maps.event.removeListener(_),null!==I&&google.maps.event.removeListener(I),null!==j&&google.maps.event.removeListener(j),null!==A&&google.maps.event.removeListener(A),null!==H&&google.maps.event.removeListener(H),null!==W&&google.maps.event.removeListener(W),null!==q&&google.maps.event.removeListener(q),null!==Y&&google.maps.event.removeListener(Y),null!==J&&google.maps.event.removeListener(J),null!==ne&&google.maps.event.removeListener(ne),null!==ie&&google.maps.event.removeListener(ie),v&&v(x),x.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={data:null},t.setDataCallback=function(){null!==t.state.data&&t.props.onLoad&&t.props.onLoad(t.state.data)},t}cN(t,e),t.prototype.componentDidMount=function(){if(null!==this.context){var e=new google.maps.Data(uN(uN({},this.props.options||{}),{map:this.context}));this.registeredEvents=EN({updaterMap:ZI,eventMap:YI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{data:e}}),this.setDataCallback)}},t.prototype.componentDidUpdate=function(e){null!==this.state.data&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:ZI,eventMap:YI,prevProps:e,nextProps:this.props,instance:this.state.data}))},t.prototype.componentWillUnmount=function(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),wN(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent);var QI={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},JI={options:function(e,t){e.setOptions(t)},url:function(e,t){e.setUrl(t)},zIndex:function(e,t){e.setZIndex(t)}};function eL(e,t){return"function"==typeof t?t(e.offsetWidth,e.offsetHeight):{x:0,y:0}}function tL(e,t){return new t(e.lat,e.lng)}function nL(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function oL(e,t,n,o){return void 0!==n?function(e,t,n){var o=e&&e.fromLatLngToDivPixel(n.getNorthEast()),r=e&&e.fromLatLngToDivPixel(n.getSouthWest());return o&&r?{left:"".concat(r.x+t.x,"px"),top:"".concat(o.y+t.y,"px"),width:"".concat(o.x-r.x-t.x,"px"),height:"".concat(r.y-o.y-t.y,"px")}:{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(n,google.maps.LatLngBounds,nL)):function(e,t,n){var o=e&&e.fromLatLngToDivPixel(n);if(o){var r=o.x,i=o.y;return{left:"".concat(r+t.x,"px"),top:"".concat(i+t.y,"px")}}return{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(o,google.maps.LatLng,tL))}function rL(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function iL(e){return e?(e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west)))+"":""}function aL(){}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={kmlLayer:null},t.setKmlLayerCallback=function(){null!==t.state.kmlLayer&&t.props.onLoad&&t.props.onLoad(t.state.kmlLayer)},t}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.KmlLayer(uN(uN({},this.props.options),{map:this.context}));this.registeredEvents=EN({updaterMap:JI,eventMap:QI,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{kmlLayer:e}}),this.setKmlLayerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.kmlLayer&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:JI,eventMap:QI,prevProps:e,nextProps:this.props,instance:this.state.kmlLayer}))},t.prototype.componentWillUnmount=function(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),wN(this.registeredEvents),this.state.kmlLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent),e.memo((function(t){var n=t.position,o=t.bounds,i=t.mapPaneName,a=t.zIndex,s=t.onLoad,l=t.onUnmount,c=t.getPixelPositionOffset,u=t.children,d=e.useContext(bN),p=e.useMemo((function(){var e=document.createElement("div");return e.style.position="absolute",e}),[]),f=e.useMemo((function(){return function(e,t,n,o,r){var i=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.container=t,i.pane=n,i.position=o,i.bounds=r,i}return cN(t,e),t.prototype.onAdd=function(){var e,t=null===(e=this.getPanes())||void 0===e?void 0:e[this.pane];null==t||t.appendChild(this.container)},t.prototype.draw=function(){for(var e=oL(this.getProjection(),uN({},this.container?eL(this.container,r):{x:0,y:0}),this.bounds,this.position),t=0,n=Object.entries(e);t<n.length;t++){var o=n[t],i=o[0],a=o[1];this.container.style[i]=a}},t.prototype.onRemove=function(){null!==this.container.parentNode&&this.container.parentNode.removeChild(this.container)},t}(google.maps.OverlayView);return new i(e,t,n,o)}(p,i,n,o,c)}),[p,i,n,o]);return e.useEffect((function(){return null==s||s(f),null==f||f.setMap(d),function(){null==l||l(f),null==f||f.setMap(null)}}),[d,f]),e.useEffect((function(){p.style.zIndex="".concat(a)}),[a,p]),r.createPortal(u,p)})),function(t){function n(n){var o=t.call(this,n)||this;o.state={paneEl:null,containerStyle:{position:"absolute"}},o.updatePane=function(){var e=o.props.mapPaneName,t=o.overlayView.getPanes();vN(!!e,"OverlayView requires props.mapPaneName but got %s",e),t?o.setState({paneEl:t[e]}):o.setState({paneEl:null})},o.onAdd=function(){var e,t;o.updatePane(),null===(t=(e=o.props).onLoad)||void 0===t||t.call(e,o.overlayView)},o.onPositionElement=function(){var e,t,n=oL(o.overlayView.getProjection(),uN({x:0,y:0},o.containerRef.current?eL(o.containerRef.current,o.props.getPixelPositionOffset):{}),o.props.bounds,o.props.position),r=o.state.containerStyle,i=r.left,a=r.top,s=r.width,l=r.height;t={left:i,top:a,width:s,height:l},((e=n).left!==t.left||e.top!==t.top||e.width!==t.height||e.height!==t.height)&&o.setState({containerStyle:{top:n.top||0,left:n.left||0,width:n.width||0,height:n.height||0,position:"absolute"}})},o.draw=function(){o.onPositionElement()},o.onRemove=function(){var e,t;o.setState((function(){return{paneEl:null}})),null===(t=(e=o.props).onUnmount)||void 0===t||t.call(e,o.overlayView)},o.containerRef=e.createRef();var r=new google.maps.OverlayView;return r.onAdd=o.onAdd,r.draw=o.draw,r.onRemove=o.onRemove,o.overlayView=r,o}cN(n,t),n.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},n.prototype.componentDidUpdate=function(e){var t=rL(e.position),n=rL(this.props.position),o=iL(e.bounds),r=iL(this.props.bounds);t===n&&o===r||this.overlayView.draw(),e.mapPaneName!==this.props.mapPaneName&&this.updatePane()},n.prototype.componentWillUnmount=function(){this.overlayView.setMap(null)},n.prototype.render=function(){var t=this.state.paneEl;return t?r.createPortal(d.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:e.Children.only(this.props.children)}),t):null},n.FLOAT_PANE="floatPane",n.MAP_PANE="mapPane",n.MARKER_LAYER="markerLayer",n.OVERLAY_LAYER="overlayLayer",n.OVERLAY_MOUSE_TARGET="overlayMouseTarget",n.contextType=bN}(e.PureComponent);var sL={onDblClick:"dblclick",onClick:"click"},lL={opacity:function(e,t){e.setOpacity(t)}};e.memo((function(t){var n=t.url,o=t.bounds,r=t.options,i=t.visible,a=e.useContext(bN),s=new google.maps.LatLngBounds(new google.maps.LatLng(o.south,o.west),new google.maps.LatLng(o.north,o.east)),l=e.useMemo((function(){return new google.maps.GroundOverlay(n,s,uN({},r))}),[]);return e.useEffect((function(){null!==l&&l.setMap(a)}),[a]),e.useEffect((function(){void 0!==n&&null!==l&&(l.set("url",n),l.setMap(a))}),[l,n]),e.useEffect((function(){void 0!==i&&null!==l&&l.setOpacity(i?1:0)}),[l,i]),e.useEffect((function(){var e=new google.maps.LatLngBounds(new google.maps.LatLng(o.south,o.west),new google.maps.LatLng(o.north,o.east));void 0!==o&&null!==l&&(l.set("bounds",e),l.setMap(a))}),[l,o]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={groundOverlay:null},t.setGroundOverlayCallback=function(){null!==t.state.groundOverlay&&t.props.onLoad&&t.props.onLoad(t.state.groundOverlay)},t}cN(t,e),t.prototype.componentDidMount=function(){vN(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var e=new google.maps.GroundOverlay(this.props.url,this.props.bounds,uN(uN({},this.props.options),{map:this.context}));this.registeredEvents=EN({updaterMap:lL,eventMap:sL,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{groundOverlay:e}}),this.setGroundOverlayCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.groundOverlay&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:lL,eventMap:sL,prevProps:e,nextProps:this.props,instance:this.state.groundOverlay}))},t.prototype.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},t.prototype.render=function(){return null},t.defaultProps={onLoad:aL},t.contextType=bN}(e.PureComponent);var cL={},uL={data:function(e,t){e.setData(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)}};e.memo((function(t){var n=t.data,o=t.onLoad,r=t.onUnmount,i=t.options,a=e.useContext(bN),s=e.useState(null),l=s[0],c=s[1];return e.useEffect((function(){google.maps.visualization||vN(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)}),[]),e.useEffect((function(){vN(!!n,"data property is required in HeatmapLayer %s",n)}),[n]),e.useEffect((function(){null!==l&&l.setMap(a)}),[a]),e.useEffect((function(){i&&null!==l&&l.setOptions(i)}),[l,i]),e.useEffect((function(){var e=new google.maps.visualization.HeatmapLayer(uN(uN({},i||{}),{data:n,map:a}));return c(e),o&&o(e),function(){null!==l&&(r&&r(l),l.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={heatmapLayer:null},t.setHeatmapLayerCallback=function(){null!==t.state.heatmapLayer&&t.props.onLoad&&t.props.onLoad(t.state.heatmapLayer)},t}cN(t,e),t.prototype.componentDidMount=function(){vN(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),vN(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var e=new google.maps.visualization.HeatmapLayer(uN(uN({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=EN({updaterMap:uL,eventMap:cL,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{heatmapLayer:e}}),this.setHeatmapLayerCallback)},t.prototype.componentDidUpdate=function(e){wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:uL,eventMap:cL,prevProps:e,nextProps:this.props,instance:this.state.heatmapLayer})},t.prototype.componentWillUnmount=function(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),wN(this.registeredEvents),this.state.heatmapLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent);var dL={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},pL={register:function(e,t,n){e.registerPanoProvider(t,n)},links:function(e,t){e.setLinks(t)},motionTracking:function(e,t){e.setMotionTracking(t)},options:function(e,t){e.setOptions(t)},pano:function(e,t){e.setPano(t)},position:function(e,t){e.setPosition(t)},pov:function(e,t){e.setPov(t)},visible:function(e,t){e.setVisible(t)},zoom:function(e,t){e.setZoom(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={streetViewPanorama:null},t.setStreetViewPanoramaCallback=function(){null!==t.state.streetViewPanorama&&t.props.onLoad&&t.props.onLoad(t.state.streetViewPanorama)},t}cN(t,e),t.prototype.componentDidMount=function(){var e,t,n=null!==(t=null===(e=this.context)||void 0===e?void 0:e.getStreetView())&&void 0!==t?t:null;this.registeredEvents=EN({updaterMap:pL,eventMap:dL,prevProps:{},nextProps:this.props,instance:n}),this.setState((function(){return{streetViewPanorama:n}}),this.setStreetViewPanoramaCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.streetViewPanorama&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:pL,eventMap:dL,prevProps:e,nextProps:this.props,instance:this.state.streetViewPanorama}))},t.prototype.componentWillUnmount=function(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),wN(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={streetViewService:null},t.setStreetViewServiceCallback=function(){null!==t.state.streetViewService&&t.props.onLoad&&t.props.onLoad(t.state.streetViewService)},t}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:e}}),this.setStreetViewServiceCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},t.prototype.render=function(){return null},t.contextType=bN}(e.PureComponent),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={directionsService:null},t.setDirectionsServiceCallback=function(){null!==t.state.directionsService&&t.props.onLoad&&t.props.onLoad(t.state.directionsService)},t}cN(t,e),t.prototype.componentDidMount=function(){vN(!!this.props.options,"DirectionsService expected options object as parameter, but got %s",this.props.options);var e=new google.maps.DirectionsService;this.setState((function(){return{directionsService:e}}),this.setDirectionsServiceCallback)},t.prototype.componentDidUpdate=function(){null!==this.state.directionsService&&this.state.directionsService.route(this.props.options,this.props.callback)},t.prototype.componentWillUnmount=function(){null!==this.state.directionsService&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},t.prototype.render=function(){return null}}(e.PureComponent);var fL={onDirectionsChanged:"directions_changed"},hL={directions:function(e,t){e.setDirections(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},panel:function(e,t){e.setPanel(t)},routeIndex:function(e,t){e.setRouteIndex(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={directionsRenderer:null},t.setDirectionsRendererCallback=function(){null!==t.state.directionsRenderer&&(t.state.directionsRenderer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.directionsRenderer))},t}cN(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=EN({updaterMap:hL,eventMap:fL,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{directionsRenderer:e}}),this.setDirectionsRendererCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.directionsRenderer&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:hL,eventMap:fL,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))},t.prototype.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),wN(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},t.prototype.render=function(){return d.jsx(d.Fragment,{})},t.contextType=bN}(e.PureComponent),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={distanceMatrixService:null},t.setDistanceMatrixServiceCallback=function(){null!==t.state.distanceMatrixService&&t.props.onLoad&&t.props.onLoad(t.state.distanceMatrixService)},t}cN(t,e),t.prototype.componentDidMount=function(){vN(!!this.props.options,"DistanceMatrixService expected options object as parameter, but go %s",this.props.options);var e=new google.maps.DistanceMatrixService;this.setState((function(){return{distanceMatrixService:e}}),this.setDistanceMatrixServiceCallback)},t.prototype.componentDidUpdate=function(){null!==this.state.distanceMatrixService&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},t.prototype.componentWillUnmount=function(){null!==this.state.distanceMatrixService&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},t.prototype.render=function(){return null}}(e.PureComponent);var gL={onPlacesChanged:"places_changed"},mL={bounds:function(e,t){e.setBounds(t)}};!function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=e.createRef(),n.state={searchBox:null},n.setSearchBoxCallback=function(){null!==n.state.searchBox&&n.props.onLoad&&n.props.onLoad(n.state.searchBox)},n}cN(n,t),n.prototype.componentDidMount=function(){if(vN(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){var e=this.containerElement.current.querySelector("input");if(null!==e){var t=new google.maps.places.SearchBox(e,this.props.options);this.registeredEvents=EN({updaterMap:mL,eventMap:gL,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{searchBox:t}}),this.setSearchBoxCallback)}}},n.prototype.componentDidUpdate=function(e){null!==this.state.searchBox&&(wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:mL,eventMap:gL,prevProps:e,nextProps:this.props,instance:this.state.searchBox}))},n.prototype.componentWillUnmount=function(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),wN(this.registeredEvents))},n.prototype.render=function(){return d.jsx("div",{ref:this.containerElement,children:e.Children.only(this.props.children)})},n.contextType=bN}(e.PureComponent);var vL={onPlaceChanged:"place_changed"},bL={bounds:function(e,t){e.setBounds(t)},restrictions:function(e,t){e.setComponentRestrictions(t)},fields:function(e,t){e.setFields(t)},options:function(e,t){e.setOptions(t)},types:function(e,t){e.setTypes(t)}};!function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=e.createRef(),n.state={autocomplete:null},n.setAutocompleteCallback=function(){null!==n.state.autocomplete&&n.props.onLoad&&n.props.onLoad(n.state.autocomplete)},n}cN(n,t),n.prototype.componentDidMount=function(){var e;vN(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var t=null===(e=this.containerElement.current)||void 0===e?void 0:e.querySelector("input");if(t){var n=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=EN({updaterMap:bL,eventMap:vL,prevProps:{},nextProps:this.props,instance:n}),this.setState((function(){return{autocomplete:n}}),this.setAutocompleteCallback)}},n.prototype.componentDidUpdate=function(e){wN(this.registeredEvents),this.registeredEvents=EN({updaterMap:bL,eventMap:vL,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})},n.prototype.componentWillUnmount=function(){null!==this.state.autocomplete&&wN(this.registeredEvents)},n.prototype.render=function(){return d.jsx("div",{ref:this.containerElement,className:this.props.className,children:e.Children.only(this.props.children)})},n.defaultProps={className:""},n.contextType=bN}(e.PureComponent);NS(".appLocationMap {\n width: max-content;\n height: max-content;\n}\n");NS(".header {\n width: 100%;\n padding: 0 16px;\n}\n\n.title,\n.titleLeft {\n font-size: 1rem;\n font-weight: 500;\n text-align: center;\n flex-grow: 1;\n}\n\n.titleLeft {\n text-align: left;\n}\n\n.descriptionLeft {\n text-align: left;\n}\n\n.closeButton {\n align-self: flex-end;\n}\n\n.body {\n text-align: center;\n}\n\n.footer {\n margin-top: 16px;\n display: flex;\n justify-content: center;\n width: 100%;\n}\n");var yL=function(e){return"object"==typeof e&&null!==e},xL=function(t){var n=t.value,o=void 0===n?"":n,r=t.numInputs,i=void 0===r?4:r,a=t.onChange,s=t.onPaste,l=t.renderInput,c=t.shouldAutoFocus,u=void 0!==c&&c,d=t.inputType,p=void 0===d?"text":d,f=t.renderSeparator,h=t.placeholder,g=t.containerStyle,m=t.inputStyle,v=t.skipDefaultStyles,b=void 0!==v&&v,y=e.useState(0),x=y[0],C=y[1],w=e.useRef([]),E=function(){return o?o.toString().split(""):[]},S="number"===p||"tel"===p;e.useEffect((function(){w.current=w.current.slice(0,i)}),[i]),e.useEffect((function(){var e;u&&(null===(e=w.current[0])||void 0===e||e.focus())}),[u]);var k=function(){if("string"==typeof h){if(h.length===i)return h;h.length>0&&console.error("Length of the placeholder should be equal to the number of inputs.")}},O=function(e){return(S?!isNaN(Number(e)):"string"==typeof e)&&1===e.trim().length},$=function(e){var t=e.target.value;O(t)&&(I(t),N(x+1))},M=function(e){var t=e.nativeEvent,n=e.target.value;if(!O(n)){if(n.length===i)n.split("").some((function(e){return!O(e)}))||(L(n.split("")),N(i-1));null===t.data&&"deleteContentBackward"===t.inputType&&(e.preventDefault(),I(""),N(x-1)),e.target.value=""}},_=function(){C(x-1)},P=function(e){var t=E();[e.code,e.key].includes("Backspace")?(e.preventDefault(),I(""),N(x-1)):"Delete"===e.code?(e.preventDefault(),I("")):"ArrowLeft"===e.code?(e.preventDefault(),N(x-1)):"ArrowRight"===e.code||e.key===t[x]?(e.preventDefault(),N(x+1)):"Spacebar"!==e.code&&"Space"!==e.code&&"ArrowUp"!==e.code&&"ArrowDown"!==e.code||e.preventDefault()},N=function(e){var t,n,o=Math.max(Math.min(i-1,e),0);w.current[o]&&(null===(t=w.current[o])||void 0===t||t.focus(),null===(n=w.current[o])||void 0===n||n.select(),C(o))},I=function(e){var t=E();t[x]=e[0],L(t)},L=function(e){var t=e.join("");a(t)},R=function(e){var t;e.preventDefault();var n=E(),o=x,r=e.clipboardData.getData("text/plain").slice(0,i-x).split("");if(!S||!r.some((function(e){return isNaN(Number(e))}))){for(var a=0;a<i;++a)a>=x&&r.length>0&&(n[a]=null!==(t=r.shift())&&void 0!==t?t:"",o++);N(o),L(n)}};return e.createElement("div",{style:Object.assign({display:"flex",alignItems:"center"},yL(g)&&g),className:"string"==typeof g?g:void 0,onPaste:s},Array.from({length:i},(function(e,t){return t})).map((function(t){var n,o,r;return e.createElement(e.Fragment,{key:t},l({value:null!==(n=E()[t])&&void 0!==n?n:"",placeholder:null!==(r=null===(o=k())||void 0===o?void 0:o[t])&&void 0!==r?r:void 0,ref:function(e){return w.current[t]=e},onChange:$,onFocus:function(e){return function(e){return function(t){C(t),e.target.select()}}(e)(t)},onBlur:_,onKeyDown:P,onPaste:R,autoComplete:"off","aria-label":"Please enter OTP character ".concat(t+1),style:Object.assign(b?{}:{width:"1em",textAlign:"center"},yL(m)?m:{}),className:"string"==typeof m?m:void 0,type:p,inputMode:S?"numeric":"text",onInput:M},t),t<i-1&&("function"==typeof f?f(t):f))})))};NS(".appOtpField {\n .otpInputStyle {\n gap: 0.5rem;\n & input {\n margin: 0 5px;\n font-size: 24px;\n border-radius: 10px;\n border: none;\n width: 3.125rem !important;\n height: 2.6875rem !important;\n background-color: #f6f7f9 !important;\n }\n }\n .resendWrap {\n margin-top: 1rem;\n & .forgotPassword {\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 500;\n line-height: 150%;\n letter-spacing: -0.0175rem;\n cursor: pointer;\n .resendTimer {\n color: rgb(255, 0, 0);\n }\n .resendBtn {\n color: #009046;\n }\n }\n }\n}\n");NS(".appPasswordInput {\n font-size: var(--font-14);\n font-weight: 500;\n color: #1e1f21;\n border: none;\n position: relative;\n\n .icon {\n position: absolute;\n right: 1rem;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n .ant-input-outlined {\n &:hover {\n border-color: #bfbebe !important;\n }\n &::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: 14px;\n text-align: left;\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");exports.AppAvatar=function(e){var t=e.src,n=e.fallbackIcon,o=void 0===n?d.jsx(FE,{}):n,r=e.className,i=jS(e,["src","fallbackIcon","className"]);return d.jsx("div",{className:r,children:d.jsx(jm,RS({src:t,icon:t?void 0:o},i))})},exports.AppBackArrow=function(e){var t=e.text,n=void 0===t?"Back":t,o=e.href,r=e.className,i=e.backIcon;return d.jsxs("div",{className:"backArrow ".concat(r),onClick:function(){window.location.href=o},children:[d.jsx("span",{className:"icon",children:i||LS.backArrow}),n&&d.jsx("span",{className:"text",children:n})]})},exports.AppBadge=function(e){var t=e.content,n=e.children,o=e.className,r=e.ribbon,i=jS(e,["content","children","className","ribbon"]);return d.jsx("div",{className:"appBadge ".concat(o),children:d.jsx(ev,RS({count:t},i,{children:r?d.jsx("div",{className:"ribbonWrapper",children:d.jsx(ev.Ribbon,{text:r.text,color:r.color,placement:r.placement,children:n})}):n}))})},exports.AppButton=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 d.jsx("div",{className:"appButton ".concat(o),children:d.jsx(gc,{disabled:s,type:t,className:["customBtn",i?"btn-icon":"","right"===l?"iconRight":""].join(" "),size:n,onClick:r,icon:i,loading:c,children:a})})},exports.AppChart=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 d.jsx("div",{style:{height:a,width:l},className:"appChart ".concat(r),children:function(){switch(t){case"bar":return d.jsx(iN,{data:n,options:o,className:r});case"line":return d.jsx(rN,{data:n,options:o,className:r});case"pie":return d.jsx(sN,{data:n,options:o,className:r});case"doughnut":return d.jsx(aN,{data:n,options:o,className:r});default:return null}}()})},exports.AppCheckboxText=function(e){var t=e.text,n=e.className;return d.jsx("div",{className:"appCheckboxText ".concat(n),children:d.jsx(Bx,{className:"checkboxText",children:d.jsx("span",{dangerouslySetInnerHTML:{__html:t}})})})},exports.AppCollapse=function(e){var t=e.panels,n=void 0===t?[]:t,o=e.defaultActiveKey,r=e.onChange,i=e.expandIconPosition,a=e.ghost,s=e.accordion,l=e.expandIcon,c=e.size,u=e.bordered,p=e.activeKey,f=e.className,h=jS(e,["panels","defaultActiveKey","onChange","expandIconPosition","ghost","accordion","expandIcon","size","bordered","activeKey","className"]),g=n.map((function(e){return{key:e.key,label:e.header,children:e.content,collapsible:e.collapsible}}));return d.jsx("div",{className:f,children:d.jsx(nC,RS({defaultActiveKey:o,onChange:r,expandIconPosition:i,ghost:a,accordion:s,expandIcon:l,size:c,bordered:u,activeKey:p,items:g},h))})},exports.AppCustomLoader=function(e){var t=e.className;return d.jsx("div",{className:"wrapper ".concat(t),children:d.jsxs("div",{className:"loader",children:[d.jsx("span",{}),d.jsx("span",{}),d.jsx("span",{}),d.jsx("span",{}),d.jsx("span",{}),d.jsx("span",{}),d.jsx("span",{}),d.jsx("span",{})]})})},exports.AppImageBox=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 d.jsxs("div",{className:"appImageBox ".concat(l),children:[d.jsx(Dw,{preview:!1,width:n,height:r,src:s.src,alt:a}),a&&d.jsx("span",{className:"text",children:a})]})},exports.AppInput=function(t){var n=t.className,o=t.label,r=t.name,i=t.value,a=t.dataTestId,s=t.type,l=t.id,c=t.disabled,u=t.handleChange,p=t.onClick,f=t.defaultValue,h=t.onPressEnter,g=t.isAutoFocus,m=t.triggerFocus,v=t.isOptional,b=t.errorMessage,y=t.suffixIcon,x=t.prefixIcon,C=e.useRef(null);e.useEffect((function(){g&&C.current&&C.current.focus()}),[m,g]);var w=v?"".concat(o," (optional)"):o;return d.jsxs("div",{className:"appInput ".concat(n),children:[d.jsx(VC,{type:s,"data-test-id":a,id:l,disabled:c,name:r,className:"input",value:i,onChange:u,onClick:p,defaultValue:f,onPressEnter:h,placeholder:w,ref:C,prefix:x&&x,suffix:y&&y}),b&&d.jsx("div",{className:"error",children:b})]})},exports.AppLocationMap=function(t){var n=t.cityId,o=t.className,r=t.containerStyle,i=t.clickableIcons,a=t.zoom,s=void 0===a?10:a,l=t.mapKey,c=e.useState(null),u=c[0],p=c[1];return e.useEffect((function(){n?p(n):navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){p({lat:e.coords.latitude,lng:e.coords.longitude})}))}),[n]),d.jsx("div",{className:"appLocationMap ".concat(o),children:d.jsx(TN,{googleMapsApiKey:l,children:d.jsx("div",{style:r,children:u&&d.jsx(ON,{mapContainerStyle:r,center:u,clickableIcons:i,zoom:s})})})})},exports.AppModal=function(e){var t=e.visible,n=e.onClose,o=e.title,r=e.description,i=e.children,a=e.footerButtons,s=e.alignTitleLeft,l=void 0!==s&&s,c=e.className,u=e.closeIcon;return d.jsx("div",{className:"AppModal ".concat(c),children:d.jsxs(PE,{open:t,onCancel:n,footer:null,closeIcon:u||d.jsx(gs,{}),className:"modal",children:[d.jsxs("div",{className:"header",children:[o&&d.jsx("div",{className:l?"titleLeft":"title",children:o}),r&&d.jsx("div",{className:l?"descriptionLeft":"description",children:r})]}),d.jsx("div",{className:"body",children:i}),a&&d.jsx("div",{className:"footer",children:a})]})})},exports.AppOtpField=function(t){var n=t.otp,o=t.onChange,r=t.numInputs,i=void 0===r?4:r,a=t.otpError,s=t.resendTimeout,l=t.onResendOtp,c=t.setResendTimeout,u=t.className,p=t.resendTxt,f=t.resendTime;return e.useEffect((function(){if(s&&s>0){var e=setTimeout((function(){c(s-1)}),1e3);return function(){return clearTimeout(e)}}}),[s,c]),d.jsxs("div",{className:"appOtpField ".concat(u),children:[d.jsx(xL,{value:n,onChange:o,numInputs:i,containerStyle:"otpInputStyle",renderSeparator:d.jsx("span",{children:"-"}),renderInput:function(e){return d.jsx("input",RS({},e))}}),a&&d.jsx("p",{className:"error",children:a})," ",d.jsx("div",{className:"resendWrap",children:void 0!==s&&d.jsx("span",{className:"forgotPassword",children:s>0?d.jsx("span",{className:"resendTimer",children:f}):l&&d.jsx("span",{className:"resendBtn",onClick:function(){return l()},children:p})})})]})},exports.AppPagination=function(e){var t=e.total,n=e.currentPage,o=e.pageSize,r=void 0===o?10:o,i=e.onPageChange,a=e.showGotoBox,s=void 0!==a&&a,l=e.sizeChanger,c=void 0===l||l,u=e.className,p=jS(e,["total","currentPage","pageSize","onPageChange","showGotoBox","sizeChanger","className"]);return d.jsx("div",{className:u,children:d.jsx(OE,RS({current:n,pageSize:r,total:t,onChange:i,showSizeChanger:c,showQuickJumper:s},p))})},exports.AppPasswordInput=function(t){var n=t.label,o=t.name,r=t.value,i=t.dataTestId,a=t.id,s=t.disabled,l=t.handleChange,c=t.onClick,u=t.defaultValue,p=t.onPressEnter,f=t.className,h=t.errorMessage,g=t.isAutoFocus,m=t.autoComplete,v=void 0===m?"new-password":m,b=e.useState(!1),y=b[0],x=b[1];return d.jsxs("div",{className:"appPasswordInput ".concat(f),children:[d.jsxs("div",{className:"position-relative w-100",children:[d.jsx(VC,{type:y?"text":"password",className:"inputPassword","data-test-id":i,id:a,disabled:s,name:o,value:r,onChange:l,onClick:c,defaultValue:u,onPressEnter:p,placeholder:n,autoFocus:g,autoComplete:v}),d.jsx("span",{className:"icon",onClick:function(){x(!y)},children:LS.eyePassword})]}),h&&d.jsx("div",{className:"error",children:h})]})},exports.AppSidebar=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:d.jsxs("span",{onClick:function(){return i(e.path)},children:[e.label,e.tag&&d.jsx("span",{className:"tag",children:e.tag})]})}})),s=null==o?void 0:o.map((function(e){return{key:e.path,label:d.jsx("span",{onClick:function(){return i(e.path)},children:e.label})}}));return d.jsx("div",{className:"sideBar ".concat(r),children:d.jsxs(IS,{className:"sider",children:[d.jsx("div",{className:"logo",children:n}),d.jsx(py,{mode:"inline",className:"menu",items:a}),o&&d.jsx("div",{className:"footer",children:d.jsx(py,{mode:"inline",items:s})})]})})},exports.AppTab=function(e){var t=e.className,n=e.items,o=e.handleChange,r=e.defaultActiveKey;return d.jsx("div",{className:"appTab ".concat(t),children:d.jsx(Px,{defaultActiveKey:r,items:n,onChange:o,className:"tab"})})},exports.AppTextarea=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,p=e.className,f=e.error;return d.jsxs("div",{className:"appTextArea ".concat(p),children:[d.jsx(VC.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&&d.jsx("div",{className:"error",children:f})]})},exports.OverViewCard=function(e){var t=e.className,n=e.text,o=e.number;return d.jsxs("div",{className:"overViewCard ".concat(t),children:[d.jsx(TS,{children:n}),d.jsx("span",{children:o})]})};
45
74
  //# sourceMappingURL=index.js.map