react-frontend-common-components 0.0.88 → 0.0.90
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 +20 -10
- package/package.json +1 -5
- package/dist/index.d.ts +0 -449
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -68
- package/dist/index.mjs.map +0 -1
package/dist/index.mjs
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as o from"react";import r,{version as i,isValidElement as a,useContext as s,createContext as l,useRef as c,useLayoutEffect as u,useEffect as d,forwardRef as p,useMemo as f,useState as h,Children as g,createRef as m,useCallback as v,useImperativeHandle as b,cloneElement as y,memo as x,PureComponent as C}from"react";import*as w from"react-dom";import S,{createPortal as k,unstable_batchedUpdates as E,flushSync as O}from"react-dom";var $=function(){return $=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},$.apply(this,arguments)};function N(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 M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var I={exports:{}};
|
2
|
-
/*!
|
3
|
-
Copyright (c) 2018 Jed Watson.
|
4
|
-
Licensed under the MIT License (MIT), see
|
5
|
-
http://jedwatson.github.io/classnames
|
6
|
-
*/!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}()}(I);var P=M(I.exports);function L(){return L=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},L.apply(null,arguments)}function A(e){return A="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},A(e)}var D=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),j=Symbol.for("react.fragment");function R(e){return e&&"object"===A(e)&&(e.$$typeof===D||e.$$typeof===T)&&e.type===j}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(_(e)):R(e)&&e.props?n=n.concat(_(e.props.children,t)):n.push(e))})),n}var z={},B=[];function H(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=B.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function F(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=B.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function V(){z={}}function W(e,t,n){t||z[n]||(e(!1,n),z[n]=!0)}function K(e,t){W(H,e,t)}function q(e,t){W(F,e,t)}function X(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=A(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}function U(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e){return e instanceof HTMLElement||e instanceof SVGElement}function Z(e){var t,n=function(e){return e&&"object"===A(e)&&Q(e.nativeElement)?e.nativeElement:Q(e)?e:null}(e);return n||(e instanceof r.Component?null===(t=S.findDOMNode)||void 0===t?void 0:t.call(S,e):null)}K.preMessage=function(e){B.push(e)},K.resetWarned=V,K.noteOnce=q;var J,ee={exports:{}},te={};var ne,oe={};
|
7
|
-
/**
|
8
|
-
* @license React
|
9
|
-
* react-is.development.js
|
10
|
-
*
|
11
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
12
|
-
*
|
13
|
-
* This source code is licensed under the MIT license found in the
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
15
|
-
*/"production"===process.env.NODE_ENV?ee.exports=function(){if(J)return te;J=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 g(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"),te.ContextConsumer=s,te.ContextProvider=a,te.Element=t,te.ForwardRef=c,te.Fragment=o,te.Lazy=f,te.Memo=p,te.Portal=n,te.Profiler=i,te.StrictMode=r,te.Suspense=u,te.SuspenseList=d,te.isAsyncMode=function(){return!1},te.isConcurrentMode=function(){return!1},te.isContextConsumer=function(e){return g(e)===s},te.isContextProvider=function(e){return g(e)===a},te.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},te.isForwardRef=function(e){return g(e)===c},te.isFragment=function(e){return g(e)===o},te.isLazy=function(e){return g(e)===f},te.isMemo=function(e){return g(e)===p},te.isPortal=function(e){return g(e)===n},te.isProfiler=function(e){return g(e)===i},te.isStrictMode=function(e){return g(e)===r},te.isSuspense=function(e){return g(e)===u},te.isSuspenseList=function(e){return g(e)===d},te.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)},te.typeOf=g,te}():ee.exports=(ne||(ne=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,y=c,x=o,C=f,w=p,S=n,k=i,E=r,O=u,$=d,N=!1,M=!1;oe.ContextConsumer=m,oe.ContextProvider=v,oe.Element=b,oe.ForwardRef=y,oe.Fragment=x,oe.Lazy=C,oe.Memo=w,oe.Portal=S,oe.Profiler=k,oe.StrictMode=E,oe.Suspense=O,oe.SuspenseList=$,oe.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},oe.isConcurrentMode=function(e){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},oe.isContextConsumer=function(e){return g(e)===s},oe.isContextProvider=function(e){return g(e)===a},oe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},oe.isForwardRef=function(e){return g(e)===c},oe.isFragment=function(e){return g(e)===o},oe.isLazy=function(e){return g(e)===f},oe.isMemo=function(e){return g(e)===p},oe.isPortal=function(e){return g(e)===n},oe.isProfiler=function(e){return g(e)===i},oe.isStrictMode=function(e){return g(e)===r},oe.isSuspense=function(e){return g(e)===u},oe.isSuspenseList=function(e){return g(e)===d},oe.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)},oe.typeOf=g}()),oe);var re=ee.exports;function ie(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}var ae=Number(i.split(".")[0]),se=function(e,t){"function"==typeof e?e(t):"object"===A(e)&&e&&"current"in e&&(e.current=t)},le=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){se(t,e)}))}},ce=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie((function(){return le.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},ue=function(e){var t,n;if(!e)return!1;if(de(e)&&ae>=19)return!0;var o=re.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===re.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===re.ForwardRef)};function de(e){return a(e)&&!R(e)}var pe=function(e){if(e&&de(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},fe=o.createContext(null);var he=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}()}(),ge="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,me="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ve="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(me):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var be=["top","right","bottom","left","width","height","size","weight"],ye="undefined"!=typeof MutationObserver,xe=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(){ve(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(){ge&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ye?(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(){ge&&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;be.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}(),Ce=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},we=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||me},Se=Me(0,0,0,0);function ke(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+ke(e["border-"+n+"-width"])}),0)}function Oe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Se;var o=we(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]=ke(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=ke(o.width),l=ke(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===we(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 Me(r.left,r.top,s,l)}var $e="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof we(e).SVGGraphicsElement}:function(e){return e instanceof we(e).SVGElement&&"function"==typeof e.getBBox};function Ne(e){return ge?$e(e)?function(e){var t=e.getBBox();return Me(0,0,t.width,t.height)}(e):Oe(e):Se}function Me(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_=Me(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}(),Pe=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),Ce(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);Ce(this,{target:e,contentRect:c})},Le=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new he,"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 we(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 we(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 Pe(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}(),Ae="undefined"!=typeof WeakMap?new WeakMap:new he,De=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=xe.getInstance(),o=new Le(t,n,this);Ae.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){De.prototype[e]=function(){var t;return(t=Ae.get(this))[e].apply(t,arguments)}}));var Te=void 0!==me.ResizeObserver?me.ResizeObserver:De,je=new Map;function Re(e){e.forEach((function(e){var t,n=e.target;null===(t=je.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var _e=new Te(Re);function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Be(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,X(o.key),o)}}function He(e,t,n){return t&&Be(e.prototype,t),n&&Be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fe(e,t){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fe(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&&Fe(e,t)}function We(e){return We=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},We(e)}function Ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ke=function(){return!!e})()}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xe(e,t){if(t&&("object"==A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qe(e)}function Ue(e){var t=Ke();return function(){var n,o=We(e);if(t){var r=We(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Xe(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Ge=function(){Ve(t,o.Component);var e=Ue(t);function t(){return ze(this,t),e.apply(this,arguments)}return He(t,[{key:"render",value:function(){return this.props.children}}]),t}();function Ye(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),a=o.useRef(null),s=o.useContext(fe),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)&&ue(c),p=d?pe(c):null,f=ce(p,i),h=function(){var e;return Z(i.current)||(i.current&&"object"===A(i.current)?Z(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Z(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=Y(Y({},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){je.has(e)||(je.set(e,new Set),_e.observe(e)),je.get(e).add(t)}(e,m),function(){return function(e,t){je.has(e)&&(je.get(e).delete(t),je.get(e).size||(_e.unobserve(e),je.delete(e)))}(e,m)}}),[i.current,r]),o.createElement(Ge,{ref:a},d?o.cloneElement(c,{ref:f}):c)}var Qe=o.forwardRef(Ye);"production"!==process.env.NODE_ENV&&(Qe.displayName="SingleObserver");function Ze(e,t){var n=e.children,r="function"==typeof n?[n]:_(n);return"production"!==process.env.NODE_ENV&&(r.length>1?H(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&H(!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(Qe,L({},e,{key:i,ref:0===r?t:void 0}),n)}))}var Je=o.forwardRef(Ze);function et(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function tt(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 nt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ot(e,t){if(e){if("string"==typeof e)return tt(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)?tt(e,t):void 0}}function rt(e){return function(e){if(Array.isArray(e))return tt(e)}(e)||nt(e)||ot(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&&(Je.displayName="ResizeObserver"),Je.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(fe),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(fe.Provider,{value:s},t)};var it=function(e){return+setTimeout(e,16)},at=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(it=function(e){return window.requestAnimationFrame(e)},at=function(e){return window.cancelAnimationFrame(e)});var st=0,lt=new Map;function ct(e){lt.delete(e)}var ut=function(e){var t=st+=1;return function n(o){if(0===o)ct(t),e();else{var r=it((function(){n(o-1)}));lt.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function dt(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t=ut((n=>()=>{t=null,e.apply(void 0,rt(n))})(o))}};return n.cancel=()=>{ut.cancel(t),t=null},n}function pt(e){if(Array.isArray(e))return e}function ft(){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 ht(e,t){return pt(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)||ot(e,t)||ft()}function gt(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 mt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function vt(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}ut.cancel=function(e){var t=lt.get(e);return ct(e),at(t)},"production"!==process.env.NODE_ENV&&(ut.ids=function(){return lt});var bt="data-rc-order",yt="data-rc-priority",xt=new Map;function Ct(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function wt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function St(e){return Array.from((xt.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!mt())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(bt,a),s&&i&&l.setAttribute(yt,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=wt(t),u=c.firstChild;if(o){if(s){var d=(t.styles||St(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(bt)))return!1;var t=Number(e.getAttribute(yt)||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 Et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=wt(t);return(t.styles||St(n)).find((function(n){return n.getAttribute(Ct(t))===e}))}function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Et(e,t);n&&wt(t).removeChild(n)}function $t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=wt(n),r=St(o),i=Y(Y({},n),{},{styles:r});!function(e,t){var n=xt.get(e);if(!n||!vt(document,n)){var o=kt("",t),r=o.parentNode;xt.set(e,r),e.removeChild(o)}}(o,i);var a=Et(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=kt(e,i);return u.setAttribute(Ct(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(-1!==t.indexOf(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],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mt(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(K(!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"===A(t)&&"object"===A(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)}function It(e){return e.join("%")}var Pt=function(){function e(t){ze(this,e),U(this,"instanceId",void 0),U(this,"cache",new Map),this.instanceId=t}return He(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}(),Lt="data-token-hash",At="data-css-hash",Dt="__cssinjs_instance__";var Tt=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(At,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Dt]=t[Dt]||e,t[Dt]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(At,"]"))).forEach((function(t){var n,r=t.getAttribute(At);o[r]?t[Dt]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new Pt(e)}(),defaultCache:!0});var jt=function(){function e(){ze(this,e),U(this,"cache",void 0),U(this,"keys",void 0),U(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return He(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=ht(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=ht(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}();U(jt,"MAX_CACHE_SIZE",20),U(jt,"MAX_CACHE_OFFSET",5);var Rt=0,_t=function(){function e(t){ze(this,e),U(this,"derivatives",void 0),U(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Rt,0===t.length&&H(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Rt+=1}return He(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),zt=new jt;function Bt(e){var t=Array.isArray(e)?e:[e];return zt.has(t)||zt.set(t,new _t(t)),zt.get(t)}var Ht=new WeakMap,Ft={};var Vt=new WeakMap;function Wt(e){var t=Vt.get(e)||"";return t||(Object.keys(e).forEach((function(n){var o=e[n];t+=n,o instanceof _t?t+=o.id:o&&"object"===A(o)?t+=Wt(o):t+=o})),t=gt(t),Vt.set(e,t)),t}function Kt(e,t){return gt("".concat(t,"_").concat(Wt(e)))}var qt=mt();function Xt(e){return"number"==typeof e?"".concat(e,"px"):e}function Ut(e,t,n){var o;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=Y(Y({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(U(o={},Lt,t),U(o,At,n),o)),i=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Gt=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()},Yt=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=ht(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},Qt=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=ht(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=Gt(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,Yt(o,t,{scope:null==n?void 0:n.scope})]},Zt="test"!==process.env.NODE_ENV&&mt()?o.useLayoutEffect:o.useEffect,Jt=function(e,t){var n=o.useRef(!0);Zt((function(){return e(n.current)}),t),Zt((function(){return n.current=!1,function(){n.current=!0}}),[])},en=function(e,t){Jt((function(t){if(!t)return e()}),t)},tn=Y({},o).useInsertionEffect,nn=tn?function(e,t,n){return tn((function(){return e(),t()}),n)}:function(e,t,n){o.useMemo(e,n),Jt((function(){return t(!0)}),n)},on=void 0!==Y({},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&&H(!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 rn=!1;var an="production"===process.env.NODE_ENV?function(){return!1}:function(){return rn};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var sn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(sn&&"function"==typeof sn.webpackHotUpdate){var ln=sn.webpackHotUpdate;sn.webpackHotUpdate=function(){return rn=!0,setTimeout((function(){rn=!1}),0),ln.apply(void 0,arguments)}}}function cn(e,t,n,r,i){var a=o.useContext(Tt).cache,s=It([e].concat(rt(t))),l=on([s]),c=an(),u=function(e){a.opUpdate(s,(function(t){var o=ht(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 nn((function(){null==i||i(p)}),(function(e){return u((function(t){var n=ht(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=ht(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 un={},dn="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",pn=new Map;function fn(e,t){pn.set(e,(pn.get(e)||0)-1);var n=Array.from(pn.keys()),o=n.filter((function(e){return(pn.get(e)||0)<=0}));n.length-o.length>0&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Lt,'="').concat(e,'"]')).forEach((function(e){var n;e[Dt]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),pn.delete(e)}))}var hn="token";function gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=s(Tt),r=o.cache.instanceId,i=o.container,a=n.salt,l=void 0===a?"":a,c=n.override,u=void 0===c?un:c,d=n.formatToken,p=n.getComputedToken,f=n.cssVar,h=function(e,t){for(var n=Ht,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(Ft)||n.set(Ft,e()),n.get(Ft)}((function(){return Object.assign.apply(Object,[{}].concat(rt(t)))}),t),g=Wt(h),m=Wt(u),v=f?Wt(f):"",b=cn(hn,[l,e.id,g,m,v],(function(){var t,n=p?p(h,u,e):function(e,t,n,o){var r=Y(Y({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r}(h,u,e,d),o=Y({},n),r="";if(f){var i=ht(Qt(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=i[0],r=i[1]}var a=Kt(n,l);n._tokenKey=a,o._tokenKey=Kt(o,l);var s=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;n._themeKey=s,function(e){pn.set(e,(pn.get(e)||0)+1)}(s);var c="".concat(dn,"-").concat(gt(a));return n._hashId=c,[n,c,o,r,(null==f?void 0:f.key)||""]}),(function(e){fn(e[0]._themeKey,r)}),(function(e){var t=ht(e,4),n=t[0],o=t[3];if(f&&o){var a=$t(o,gt("css-variables-".concat(n._themeKey)),{mark:At,prepend:"queue",attachTo:i,priority:-999});a[Dt]=r,a.setAttribute(Lt,n._themeKey)}}));return b}var mn={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},vn="comm",bn="rule",yn="decl",xn=Math.abs,Cn=String.fromCharCode;function wn(e){return e.trim()}function Sn(e,t,n){return e.replace(t,n)}function kn(e,t,n){return e.indexOf(t,n)}function En(e,t){return 0|e.charCodeAt(t)}function On(e,t,n){return e.slice(t,n)}function $n(e){return e.length}function Nn(e,t){return t.push(e),e}var Mn=1,In=1,Pn=0,Ln=0,An=0,Dn="";function Tn(e,t,n,o,r,i,a,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Mn,column:In,length:a,return:"",siblings:s}}function jn(){return An=Ln>0?En(Dn,--Ln):0,In--,10===An&&(In=1,Mn--),An}function Rn(){return An=Ln<Pn?En(Dn,Ln++):0,In++,10===An&&(In=1,Mn++),An}function _n(){return En(Dn,Ln)}function zn(){return Ln}function Bn(e,t){return On(Dn,e,t)}function Hn(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 Fn(e){return wn(Bn(Ln-1,Kn(91===e?e+2:40===e?e+1:e)))}function Vn(e){for(;(An=_n())&&An<33;)Rn();return Hn(e)>2||Hn(An)>3?"":" "}function Wn(e,t){for(;--t&&Rn()&&!(An<48||An>102||An>57&&An<65||An>70&&An<97););return Bn(e,zn()+(t<6&&32==_n()&&32==Rn()))}function Kn(e){for(;Rn();)switch(An){case e:return Ln;case 34:case 39:34!==e&&39!==e&&Kn(An);break;case 40:41===e&&Kn(e);break;case 92:Rn()}return Ln}function qn(e,t){for(;Rn()&&e+An!==57&&(e+An!==84||47!==_n()););return"/*"+Bn(t,Ln-1)+"*"+Cn(47===e?e:Rn())}function Xn(e){for(;!Hn(_n());)Rn();return Bn(e,Ln)}function Un(e){return function(e){return Dn="",e}(Gn("",null,null,null,[""],e=function(e){return Mn=In=1,Pn=$n(Dn=e),Ln=0,[]}(e),0,[0],e))}function Gn(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,S=y;m;)switch(h=b,b=Rn()){case 40:if(108!=h&&58==En(S,d-1)){-1!=kn(S+=Sn(Fn(b),"&","&\f"),"&\f",xn(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Fn(b);break;case 9:case 10:case 13:case 32:S+=Vn(h);break;case 92:S+=Wn(zn()-1,7);continue;case 47:switch(_n()){case 42:case 47:Nn(Qn(qn(Rn(),zn()),t,n,l),l),5!=Hn(h||1)&&5!=Hn(_n()||1)||!$n(S)||" "===On(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:s[c++]=$n(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(S=Sn(S,/\f/g,"")),f>0&&($n(S)-d||0===g&&47===h)&&Nn(f>32?Zn(S+";",o,n,d-1,l):Zn(Sn(S," ","")+";",o,n,d-2,l),l);break;case 59:S+=";";default:if(Nn(w=Yn(S,t,n,c,u,r,s,y,x=[],C=[],d,i),i),123===b)if(0===u)Gn(S,t,w,w,x,i,d,s,C);else{switch(p){case 99:if(110===En(S,3))break;case 108:if(97===En(S,2))break;default:u=0;case 100:case 109:case 115:}u?Gn(e,w,w,o&&Nn(Yn(e,w,w,0,0,r,s,y,r,x=[],d,C),C),r,C,d,s,o?x:C):Gn(S,w,w,w,[""],C,0,s,C)}}c=u=f=0,g=v=1,y=S="",d=a;break;case 58:d=1+$n(S),f=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==jn())continue;switch(S+=Cn(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=($n(S)-1)*v,v=1;break;case 64:45===_n()&&(S+=Fn(Rn())),p=_n(),u=d=$n(y=S+=Xn(zn())),b++;break;case 45:45===h&&2==$n(S)&&(g=0)}}return i}function Yn(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=On(e,p+1,p=xn(m=a[g])),x=e;b<h;++b)(x=wn(m>0?f[b]+" "+y:Sn(y,/&\f/g,f[b])))&&(l[v++]=x);return Tn(e,t,n,0===r?bn:s,l,c,u,d)}function Qn(e,t,n,o){return Tn(e,t,n,vn,Cn(An),On(e,2,-2),0,o)}function Zn(e,t,n,o,r){return Tn(e,t,n,yn,On(e,0,o),On(e,o+1,-1),o,r)}function Jn(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function eo(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case yn:return e.return=e.return||e.value;case vn:return"";case"@keyframes":return e.return=e.value+"{"+Jn(e.children,o)+"}";case bn:if(!$n(e.value=e.props.join(",")))return""}return $n(n=Jn(e.children,o))?e.return=e.value+"{"+n+"}":""}function to(e,t){var n=t.path,o=t.parentSelectors;K(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var no,oo=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&to("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},ro=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&to("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},io="data-ant-cssinjs-cache-path",ao="_FILE_STYLE__",so=!0;function lo(e){return function(){if(!no&&(no={},mt())){var e=document.createElement("div");e.className=io,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=ht(e.split(":"),2),n=t[0],o=t[1];no[n]=o}));var n,o=document.querySelector("style[".concat(io,"]"));o&&(so=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!no[e]}var co="_skip_check_",uo="_multi_value_";function po(e){return Jn(Un(e),eo).replace(/\{%%%\:[^;];}/g,";")}function fo(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(rt(n.slice(1))).join(" ")})).join(",")}var ho=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=ht(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"!==A(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===A(e)&&e&&(co in e||uo in e)}(o)){var d;function S(e,t){"production"===process.env.NODE_ENV||"object"===A(o)&&null!=o&&o[co]||[oo,ro].concat(rt(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;mn[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"===A(o)&&null!=o&&o[uo]&&Array.isArray(p)?p.forEach((function(e){S(t,e)})):S(t,p)}else{var f=!1,b=t.trim(),y=!1;(r||i)&&s?b.startsWith("@")?f=!0:b=fo("&"===b?"":t,s,u):!r||s||"&"!==b&&""!==b||(b="",y=!0);var x=ht(e(o,n,{root:y,injectHash:f,parentSelectors:[].concat(rt(a),[b])}),2),C=x[0],w=x[1];m=Y(Y({},m),w),g+="".concat(b).concat(C)}}))}})),r?l&&(g&&(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 go(e,t){return gt("".concat(e.join("%")).concat(t))}function mo(){return null}var vo="style";function bo(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(Tt),p=d.autoClear,f=d.mock,h=d.defaultCache,g=d.hashPriority,m=d.container,v=d.ssrInline,b=d.transformers,y=d.linters,x=d.cache,C=d.layer,w=n._tokenKey,S=[w];C&&S.push("layer"),S.push.apply(S,rt(r));var k=qt;"production"!==process.env.NODE_ENV&&void 0!==f&&(k="client"===f);var E=cn(vo,S,(function(){var e=S.join("|");if(lo(e)){var n=function(e){var t=no[e],n=null;if(t&&mt())if(so)n=ao;else{var o=document.querySelector("style[".concat(At,'="').concat(no[e],'"]'));o?n=o.innerHTML:delete no[e]}return[n,t]}(e),o=ht(n,2),s=o[0],c=o[1];if(s)return[s,w,c,{},l,u]}var d=t(),p=ht(ho(d,{hashId:i,hashPriority:g,layer:C?a:void 0,path:r.join("-"),transformers:b,linters:y}),2),f=p[0],h=p[1],m=po(f),v=go(S,m);return[m,w,v,h,l,u]}),(function(e,t){var n=ht(e,3)[2];(t||p)&&qt&&Ot(n,{mark:At})}),(function(e){var t=ht(e,4),n=t[0];t[1];var o=t[2],r=t[3];if(k&&n!==ao){var i={mark:At,prepend:!C&&"queue",attachTo:m,priority:u},a="function"==typeof s?s():s;a&&(i.csp={nonce:a});var l=[],c=[];Object.keys(r).forEach((function(e){e.startsWith("@layer")?l.push(e):c.push(e)})),l.forEach((function(e){$t(po(r[e]),"_layer-".concat(e),Y(Y({},i),{},{prepend:!0}))}));var d=$t(n,o,i);d[Dt]=x.instanceId,d.setAttribute(Lt,w),"production"!==process.env.NODE_ENV&&d.setAttribute("data-cache-path",S.join("|")),c.forEach((function(e){$t(po(r[e]),"_effect-".concat(e),i)}))}})),O=ht(E,3),$=O[0],N=O[1],M=O[2];return function(e){var t,n;v&&!k&&h?t=o.createElement("style",L({},(U(n={},Lt,N),U(n,At,M),n),{dangerouslySetInnerHTML:{__html:$}})):t=o.createElement(mo,null);return o.createElement(o.Fragment,null,t,e)}}var yo,xo="cssVar";U(yo={},vo,(function(e,t,n){var o=ht(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=Ut(r,i,a,p,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Ut(po(s[e]),i,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),U(yo,hn,(function(e,t,n){var o=ht(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,Ut(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),U(yo,xo,(function(e,t,n){var o=ht(e,4),r=o[1],i=o[2],a=o[3],s=(n||{}).plain;if(!r)return null;return[-999,i,Ut(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var Co=function(){function e(t,n){ze(this,e),U(this,"name",void 0),U(this,"style",void 0),U(this,"_keyframe",!0),this.name=t,this.style=n}return He(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function wo(e){return e.notSplit=!0,e}wo(["borderTop","borderBottom"]),wo(["borderTop"]),wo(["borderBottom"]),wo(["borderLeft","borderRight"]),wo(["borderLeft"]),wo(["borderRight"]);var So=l({});function ko(e){return pt(e)||nt(e)||ot(e)||ft()}function Eo(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=ko(t),a=i[0],s=i.slice(1);return r=e||"number"!=typeof a?Array.isArray(e)?rt(e):Y({},e):[],o&&void 0===n&&1===s.length?delete r[a][s[0]]:r[a]=Oo(r[a],s,n,o),r}function $o(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!Eo(e,t.slice(0,-1))?e:Oo(e,t,n,o)}function No(e){return Array.isArray(e)?[]:{}}var Mo="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Io(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=No(t[0]);return t.forEach((function(e){!function t(n,r){var i,a=new Set(r),s=Eo(e,n),l=Array.isArray(s);if(l||"object"===A(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=Eo(o,n);l?o=$o(o,n,[]):c&&"object"===A(c)||(o=$o(o,n,No(s))),Mo(s).forEach((function(e){t([].concat(rt(n),[e]),a)}))}}else o=$o(o,n,s)}([])})),o}function Po(){}let Lo=null;let Ao=Po;"production"!==process.env.NODE_ENV&&(Ao=(e,t,n)=>{K(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(Lo=null,V())});const Do=o.createContext({}),To="production"!==process.env.NODE_ENV?e=>{const{strict:t}=o.useContext(Do),n=(n,o,r)=>{if(!n)if(!1===t&&"deprecated"===o){const t=Lo;Lo||(Lo={}),Lo[e]=Lo[e]||[],Lo[e].includes(r||"")||Lo[e].push(r||""),t||console.warn("[antd] There exists deprecated usage in your code:",Lo)}else"production"!==process.env.NODE_ENV&&Ao(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=Po,e};var jo=Ao,Ro=l(void 0),_o={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"},zo=Y(Y({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Bo={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ho={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"]},zo),timePickerLocale:Object.assign({},Bo)},Fo="${label} is not a valid ${type}",Vo={locale:"en",Pagination:_o,DatePicker:Ho,TimePicker:Bo,Calendar:Ho,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:Fo,method:Fo,array:Fo,object:Fo,number:Fo,date:Fo,boolean:Fo,integer:Fo,float:Fo,regexp:Fo,email:Fo,url:Fo,hex:Fo},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 Wo=Object.assign({},Vo.Modal),Ko=[];const qo=()=>Ko.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Vo.Modal);function Xo(){return Wo}const Uo=l(void 0),Go=(e,t)=>{const n=o.useContext(Uo),r=o.useMemo((()=>{var o;const r=t||Vo[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?Vo.locale:e}),[n])]},Yo="internalMark",Qo=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if("production"!==process.env.NODE_ENV){const e=To("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===Yo,"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),Wo=qo(),()=>{Ko=Ko.filter((e=>e!==t)),Wo=qo()}}Wo=Object.assign({},Vo.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(Uo.Provider,{value:i},n)};"production"!==process.env.NODE_ENV&&(Qo.displayName="LocaleProvider");const Zo=Math.round;function Jo(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)o[e]=t(o[e]||0,n[e]||"",e);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const er=(e,t,n)=>0===n?e:e/100;function tr(e,t){const n=t||255;return e>n?n:e<0?0:e}class nr{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(U(this,"isValid",!0),U(this,"r",0),U(this,"g",0),U(this,"b",0),U(this,"a",1),U(this,"_h",void 0),U(this,"_s",void 0),U(this,"_l",void 0),U(this,"_v",void 0),U(this,"_max",void 0),U(this,"_min",void 0),U(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function o(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(e instanceof nr)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=tr(e.r),this.g=tr(e.g),this.b=tr(e.b),this.a="number"==typeof e.a?tr(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:Zo(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e,t=50){const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],i={r:Zo(r("r")),g:Zo(r("g")),b:Zo(r("b")),a:Zo(100*r("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>Zo((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=Zo(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=Zo(100*this.getSaturation()),n=Zo(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=tr(t,n),o}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:o}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof o?o:1,t<=0){const e=Zo(255*n);this.r=e,this.g=e,this.b=e}let r=0,i=0,a=0;const s=e/60,l=(1-Math.abs(2*n-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(r=l,i=c):s>=1&&s<2?(r=c,i=l):s>=2&&s<3?(i=l,a=c):s>=3&&s<4?(i=c,a=l):s>=4&&s<5?(r=c,a=l):s>=5&&s<6&&(r=l,a=c);const u=n-l/2;this.r=Zo(255*(r+u)),this.g=Zo(255*(i+u)),this.b=Zo(255*(a+u))}fromHsv({h:e,s:t,v:n,a:o}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof o?o:1;const r=Zo(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const i=e/60,a=Math.floor(i),s=i-a,l=Zo(n*(1-t)*255),c=Zo(n*(1-t*s)*255),u=Zo(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=Jo(e,er);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Jo(e,er);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Jo(e,((e,t)=>t.includes("%")?Zo(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var or=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function rr(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function ir(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(100*o)/100);var o}function ar(e,t,n){var o;return o=n?e.v+.05*t:e.v-.15*t,o=Math.max(0,Math.min(1,o)),Math.round(100*o)/100}function sr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=new nr(e),r=o.toHsv(),i=5;i>0;i-=1){var a=new nr({h:rr(r,i,!0),s:ir(r,i,!0),v:ar(r,i,!0)});n.push(a)}n.push(o);for(var s=1;s<=4;s+=1){var l=new nr({h:rr(r,s),s:ir(r,s),v:ar(r,s)});n.push(l)}return"dark"===t.theme?or.map((function(e){var o=e.index,r=e.amount;return new nr(t.backgroundColor||"#141414").mix(n[o],r).toHexString()})):n.map((function(e){return e.toHexString()}))}var lr={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"},cr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];cr.primary=cr[5];var ur=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ur.primary=ur[5];var dr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];dr.primary=dr[5];var pr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];pr.primary=pr[5];var fr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];fr.primary=fr[5];var hr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];hr.primary=hr[5];var gr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];gr.primary=gr[5];var mr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];mr.primary=mr[5];var vr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];vr.primary=vr[5];var br=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];br.primary=br[5];var yr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];yr.primary=yr[5];var xr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];xr.primary=xr[5];var Cr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Cr.primary=Cr[5];var wr={red:cr,volcano:ur,orange:dr,gold:pr,yellow:fr,lime:hr,green:gr,cyan:mr,blue:vr,geekblue:br,purple:yr,magenta:xr,grey:Cr};const Sr={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"},kr=Object.assign(Object.assign({},Sr),{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});function Er(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 Or(e){return Math.min(1,Math.max(0,e))}function $r(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Nr(e){return e<=1?"".concat(100*Number(e),"%"):e}function Mr(e){return 1===e.length?"0"+e:String(e)}function Ir(e,t,n){e=Er(e,255),t=Er(t,255),n=Er(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 Pr(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 Lr(e,t,n){e=Er(e,255),t=Er(t,255),n=Er(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 Ar(e,t,n,o){var r=[Mr(Math.round(e).toString(16)),Mr(Math.round(t).toString(16)),Mr(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 Dr(e){return Tr(e)/255}function Tr(e){return parseInt(e,16)}var jr={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 Rr(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(jr[e])e=jr[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Hr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Hr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Hr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Hr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Hr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Hr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Hr.hex8.exec(e),n)return{r:Tr(n[1]),g:Tr(n[2]),b:Tr(n[3]),a:Dr(n[4]),format:t?"name":"hex8"};if(n=Hr.hex6.exec(e),n)return{r:Tr(n[1]),g:Tr(n[2]),b:Tr(n[3]),format:t?"name":"hex"};if(n=Hr.hex4.exec(e),n)return{r:Tr(n[1]+n[1]),g:Tr(n[2]+n[2]),b:Tr(n[3]+n[3]),a:Dr(n[4]+n[4]),format:t?"name":"hex8"};if(n=Hr.hex3.exec(e),n)return{r:Tr(n[1]+n[1]),g:Tr(n[2]+n[2]),b:Tr(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Fr(e.r)&&Fr(e.g)&&Fr(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Er(t,255),g:255*Er(n,255),b:255*Er(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Fr(e.h)&&Fr(e.s)&&Fr(e.v)?(a=Nr(e.s),s=Nr(e.v),r=function(e,t,n){e=6*Er(e,360),t=Er(t,100),n=Er(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"):Fr(e.h)&&Fr(e.s)&&Fr(e.l)&&(a=Nr(e.s),l=Nr(e.l),r=function(e,t,n){var o,r,i;if(e=Er(e,360),t=Er(t,100),n=Er(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=Pr(s,a,e+1/3),r=Pr(s,a,e),i=Pr(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=$r(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 _r="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),zr="[\\s|\\(]+(".concat(_r,")[,|\\s]+(").concat(_r,")[,|\\s]+(").concat(_r,")\\s*\\)?"),Br="[\\s|\\(]+(".concat(_r,")[,|\\s]+(").concat(_r,")[,|\\s]+(").concat(_r,")[,|\\s]+(").concat(_r,")\\s*\\)?"),Hr={CSS_UNIT:new RegExp(_r),rgb:new RegExp("rgb"+zr),rgba:new RegExp("rgba"+Br),hsl:new RegExp("hsl"+zr),hsla:new RegExp("hsla"+Br),hsv:new RegExp("hsv"+zr),hsva:new RegExp("hsva"+Br),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 Fr(e){return Boolean(Hr.CSS_UNIT.exec(String(e)))}var Vr=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=Rr(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=$r(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=Lr(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=Lr(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=Ir(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=Ir(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),Ar(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=[Mr(Math.round(e).toString(16)),Mr(Math.round(t).toString(16)),Mr(Math.round(n).toString(16)),Mr((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*Er(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*Er(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="#"+Ar(this.r,this.g,this.b,!1),t=0,n=Object.entries(jr);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=Or(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=Or(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=Or(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=Or(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}();function Wr(e){return(e+8)/e}const Kr=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:Wr(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 qr=(e,t)=>new Vr(e).setAlpha(t).toRgbString(),Xr=(e,t)=>new Vr(e).darken(t).toHexString(),Ur=e=>{const t=sr(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]}},Gr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:qr(o,.88),colorTextSecondary:qr(o,.65),colorTextTertiary:qr(o,.45),colorTextQuaternary:qr(o,.25),colorFill:qr(o,.15),colorFillSecondary:qr(o,.06),colorFillTertiary:qr(o,.04),colorFillQuaternary:qr(o,.02),colorBgLayout:Xr(n,4),colorBgContainer:Xr(n,0),colorBgElevated:Xr(n,0),colorBgSpotlight:qr(o,.85),colorBgBlur:"transparent",colorBorder:Xr(n,15),colorBorderSecondary:Xr(n,6)}};const Yr=Bt((function(e){lr.pink=lr.magenta,wr.pink=wr.magenta;const t=Object.keys(Sr).map((t=>{const n=e[t]===lr[t]?wr[t]:sr(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 Vr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Ur,generateNeutralColorPalettes:Gr})),Kr(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},(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}})(o))}(e))})),Qr={token:kr,override:{override:kr},hashed:!0},Zr=r.createContext(Qr),Jr="ant",ei="anticon",ti=["outlined","borderless","filled"],ni=o.createContext({getPrefixCls:(e,t)=>t||(e?`${Jr}-${e}`:Jr),iconPrefixCls:ei}),oi=`-ant-${Date.now()}-${Math.random()}`;function ri(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 Vr(e),i=sr(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 Vr(t.primaryColor),i=sr(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 Vr(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);mt()?$t(n,`${oi}-dynamic-theme`):"production"!==process.env.NODE_ENV&&jo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ii=o.createContext(!1),ai=e=>{let{children:t,disabled:n}=e;const r=o.useContext(ii);return o.createElement(ii.Provider,{value:null!=n?n:r},t)},si=o.createContext(void 0),li=e=>{let{children:t,size:n}=e;const r=o.useContext(si);return o.createElement(si.Provider,{value:n||r},t)};var ci=He((function e(){ze(this,e)})),ui="CALC_UNIT",di=new RegExp(ui,"g");function pi(e){return"number"==typeof e?"".concat(e).concat(ui):e}var fi=function(){Ve(t,ci);var e=Ue(t);function t(n,o){var r;ze(this,t),U(qe(r=e.call(this)),"result",""),U(qe(r),"unitlessCssVar",void 0),U(qe(r),"lowPriority",void 0);var i=A(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===i?r.result=pi(n):"string"===i&&(r.result=n),r}return He(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(pi(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(pi(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(di,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),hi=function(){Ve(t,ci);var e=Ue(t);function t(n){var o;return ze(this,t),U(qe(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}return He(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}(),gi=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 mi(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 vi(e){var t=o.useRef(!1),n=ht(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 bi(e){return void 0!==e}function yi(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,s=ht(vi((function(){return bi(r)?r:bi(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=mi(i),f=ht(vi([u]),2),h=f[0],g=f[1];return en((function(){var e=h[0];l!==e&&p(l,e)}),[h]),en((function(){bi(r)||c(r)}),[r]),[d,mi((function(e,t){c(e,t),g([u],t)}))]}function xi(e,t,n,o){var r=Y({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach((function(t){var n,o=ht(t,2),i=o[0],a=o[1];("production"!==process.env.NODE_ENV&&K(!(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=Y(Y({},n),r);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Ci="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,wi=!0;function Si(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ci)return Object.assign.apply(Object,[{}].concat(t));wi=!1;var o={};return t.forEach((function(e){"object"===A(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),wi=!0,o}var ki={};function Ei(){}function Oi(e,t,n){var o;return"function"==typeof n?n(Si(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var $i=function(){function e(){ze(this,e),U(this,"map",new Map),U(this,"objectIDMap",new WeakMap),U(this,"nextID",0),U(this,"lastAccessBeat",new Map),U(this,"accessBeat",0)}return He(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"===A(e)?"obj_".concat(t.getObjectID(e)):"".concat(A(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))})),this.accessBeat=0}}}]),e}(),Ni=new $i;var Mi=function(){return{}};const Ii=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Pi(e){return e>=0&&e<=255}function Li(e,t){const{r:n,g:o,b:r,a:i}=new Vr(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Vr(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(Pi(t)&&Pi(i)&&Pi(c))return new Vr({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Vr({r:n,g:o,b:r,a:1}).toRgbString()}var Ai=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 Di(e){const{override:t}=e,n=Ai(e,["override"]),o=Object.assign({},t);Object.keys(kr).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:Li(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:Li(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Li(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:Li(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 Vr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Vr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Vr("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 Ti=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 ji={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Ri={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},_i={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},zi=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=Ti(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=Di(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=Ti(n,["theme"]);let i=r;o&&(i=zi(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function Bi(){const{token:e,hashed:t,theme:n,override:o,cssVar:i}=r.useContext(Zr),a=`5.20.5-${t||""}`,s=n||Yr,[l,c,u]=gn(s,[kr,e],{salt:a,override:o,getComputedToken:zi,formatToken:Di,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:ji,ignore:Ri,preserve:_i}});return[s,u,t?c:"",l,i]}const Hi=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Fi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Vi=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}},Wi=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:`${Xt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),qi=e=>({"&:focus-visible":Object.assign({},Ki(e))}),Xi=(e,t)=>{const[n,o]=Bi();return bo({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:Ui,genComponentStyleHook:Gi,genSubStyleComponent:Yi}=function(e){var t=e.useCSP,n=void 0===t?Mi:t,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function u(t,s,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(t)?t:[t,t],p=ht(d,1)[0],f=d.join("-"),h=e.layer||{name:"antd"};return function(e){var t,d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,m=o(),v=m.theme,b=m.realToken,y=m.hashId,x=m.token,C=m.cssVar,w=i(),S=w.rootPrefixCls,k=w.iconPrefixCls,E=n(),O=C?"css":"js",$=(t=function(){var e=new Set;return C&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Gt(t,C.prefix)),e.add(Gt(t,gi(p,C.prefix)))})),function(e,t){var n="css"===e?fi:hi;return function(e){return new n(e,t)}}(O,e)},d=[O,p,null==C?void 0:C.prefix],r.useMemo((function(){var e=Ni.get(d);if(e)return e;var n=t();return Ni.set(d,n),n}),d)),N=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return Xt(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 Xt(e)})).join(","),")")}}}(O),M=N.max,I=N.min,P={theme:v,token:x,hashId:y,nonce:function(){return E.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};"function"==typeof a&&bo(Y(Y({},P),{},{clientOnly:!1,path:["Shared",S]}),(function(){return a(x,{prefix:{rootPrefixCls:S,iconPrefixCls:k},csp:E})}));var L=bo(Y(Y({},P),{},{path:[f,e,k]}),(function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,o=Ei;return Ci&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;return wi&&(null===(o=t)||void 0===o||o.add(n)),e[n]}}),o=function(e,n){var o;ki[e]={global:Array.from(t),component:Y(Y({},null===(o=ki[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(x),n=t.token,o=t.flush,r=Oi(p,b,c),i=".".concat(e),a=xi(p,b,r,{deprecatedTokens:u.deprecatedTokens});C&&r&&"object"===A(r)&&Object.keys(r).forEach((function(e){r[e]="var(".concat(Gt(e,gi(p,C.prefix)),")")}));var d=Si(n,{componentCls:i,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(S),calc:$,max:M,min:I},C?r:a),f=s(d,{hashId:y,prefixCls:e,rootPrefixCls:S,iconPrefixCls:k});o(p,a);var h="function"==typeof l?l(d,e,g,u.resetFont):null;return[!1===u.resetStyle?null:h,f]}));return[L,y]}}return{genStyleHooks:function(e,t,n,i){var a=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==i?void 0:i.unitless)||{},p=Y(Y({},"function"==typeof c?c(e):{}),{},U({},l("zIndexPopup"),!0));Object.keys(d).forEach((function(e){p[l(e)]=d[e]}));var f=Y(Y({},i),{},{unitless:p,prefixToken:l}),h=u(e,t,n,f),g=function(e,t,n){var i=n.unitless,a=n.injectStyle,l=void 0===a||a,c=n.prefixToken,u=n.ignore,d=function(r){var a=r.rootCls,l=r.cssVar,d=void 0===l?{}:l,p=o().realToken;return function(e,t){var n=e.key,o=e.prefix,r=e.unitless,i=e.ignore,a=e.token,l=e.scope,c=void 0===l?"":l,u=s(Tt),d=u.cache.instanceId,p=u.container,f=a._tokenKey,h=[].concat(rt(e.path),[n,c,f]),g=cn(xo,h,(function(){var e=t(),a=ht(Qt(e,n,{prefix:o,unitless:r,ignore:i,scope:c}),2),s=a[0],l=a[1];return[s,l,go(h,l),n]}),(function(e){var t=ht(e,3)[2];qt&&Ot(t,{mark:At})}),(function(e){var t=ht(e,3),o=t[1],r=t[2];if(o){var i=$t(o,r,{mark:At,prepend:"queue",attachTo:p,priority:-999});i[Dt]=d,i.setAttribute(Lt,n)}}))}({path:[e],prefix:d.prefix,key:d.key,unitless:i,ignore:u,token:p,scope:a},(function(){var o=Oi(e,p,t),r=xi(e,p,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((function(e){r[c(e)]=r[e],delete r[e]})),r})),null},p=function(t){var n=o().cssVar;return[function(o){return l&&n?r.createElement(r.Fragment,null,r.createElement(d,{rootCls:t,cssVar:n,component:e}),o):o},null==n?void 0:n.key]};return p}(a,n,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=ht(h(e,t),2)[1],o=ht(g(t),2);return[o[0],n,o[1]]}},genSubStyleComponent:function(e,t,n){var o=u(e,t,n,Y({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),r=function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(r.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),r},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=s(ni);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r]=Bi();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=s(ni);return Xi(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":Wi(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:()=>ji});function Qi(e,t){return Ii.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 Zi=Object.assign({},o),{useId:Ji}=Zi,ea=void 0===Ji?()=>"":Ji;var ta=["children"],na=o.createContext({});function oa(e){var t=e.children,n=Nt(e,ta);return o.createElement(na.Provider,{value:n},t)}var ra=function(){Ve(t,o.Component);var e=Ue(t);function t(){return ze(this,t),e.apply(this,arguments)}return He(t,[{key:"render",value:function(){return this.props.children}}]),t}();var ia="none",aa="appear",sa="enter",la="leave",ca="none",ua="prepare",da="start",pa="active",fa="end",ha="prepared";function ga(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 ma=function(e,t){var n={animationend:ga("Animation","AnimationEnd"),transitionend:ga("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(mt(),"undefined"!=typeof window?window:{}),va={};if(mt()){var ba=document.createElement("div");va=ba.style}var ya={};function xa(e){if(ya[e])return ya[e];var t=ma[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 va)return ya[e]=t[i],ya[e]}return""}var Ca=xa("animationend"),wa=xa("transitionend"),Sa=!(!Ca||!wa),ka=Ca||"animationend",Ea=wa||"transitionend";function Oa(e,t){if(!e)return null;if("object"===A(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var $a=mt()?u:d,Na=[ua,da,pa,fa],Ma=[ua,ha],Ia=!1;function Pa(e){return e===pa||e===fa}var La=function(e,t,n){var r=ht(vi(ca),2),i=r[0],a=r[1],s=function(){var e=o.useRef(null);function t(){ut.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=ut((function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)}));e.current=i},t]}(),l=ht(s,2),c=l[0],u=l[1];var d=t?Ma:Na;return $a((function(){if(i!==ca&&i!==fa){var e=d.indexOf(i),t=d[e+1],o=n(i);o===Ia?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(ua,!0)},i]};function Aa(e,t,n,r){var i,a,s,l=r.motionEnter,u=void 0===l||l,p=r.motionAppear,f=void 0===p||p,h=r.motionLeave,g=void 0===h||h,m=r.motionDeadline,v=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,x=r.onLeavePrepare,C=r.onAppearStart,w=r.onEnterStart,S=r.onLeaveStart,k=r.onAppearActive,E=r.onEnterActive,O=r.onLeaveActive,$=r.onAppearEnd,N=r.onEnterEnd,M=r.onLeaveEnd,I=r.onVisibleChanged,P=ht(vi(),2),L=P[0],A=P[1],D=(i=ia,a=ht(o.useReducer((function(e){return e+1}),0),2)[1],s=o.useRef(i),[mi((function(){return s.current})),mi((function(e){s.current="function"==typeof e?e(s.current):e,a()}))]),T=ht(D,2),j=T[0],R=T[1],_=ht(vi(null),2),z=_[0],B=_[1],H=j(),F=c(!1),V=c(null);function W(){return n()}var K=c(!1);function q(){R(ia),B(null,!0)}var X=mi((function(e){var t=j();if(t!==ia){var n=W();if(!e||e.deadline||e.target===n){var o,r=K.current;t===aa&&r?o=null==$?void 0:$(n,e):t===sa&&r?o=null==N?void 0:N(n,e):t===la&&r&&(o=null==M?void 0:M(n,e)),r&&!1!==o&&q()}}})),G=function(e){var t=c();function n(t){t&&(t.removeEventListener(Ea,e),t.removeEventListener(ka,e))}return o.useEffect((function(){return function(){n(t.current)}}),[]),[function(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Ea,e),o.addEventListener(ka,e),t.current=o)},n]}(X),Q=ht(G,1)[0],Z=function(e){switch(e){case aa:return U(U(U({},ua,b),da,C),pa,k);case sa:return U(U(U({},ua,y),da,w),pa,E);case la:return U(U(U({},ua,x),da,S),pa,O);default:return{}}},J=o.useMemo((function(){return Z(H)}),[H]),ee=ht(La(H,!e,(function(e){if(e===ua){var t=J[ua];return t?t(W()):Ia}var n;ne in J&&B((null===(n=J[ne])||void 0===n?void 0:n.call(J,W(),null))||null);return ne===pa&&H!==ia&&(Q(W()),m>0&&(clearTimeout(V.current),V.current=setTimeout((function(){X({deadline:!0})}),m))),ne===ha&&q(),true})),2),te=ee[0],ne=ee[1],oe=Pa(ne);K.current=oe;var re=c(null);$a((function(){if(!F.current||re.current!==t){A(t);var n,o=F.current;F.current=!0,!o&&t&&f&&(n=aa),o&&t&&u&&(n=sa),(o&&!t&&g||!o&&v&&!t&&g)&&(n=la);var r=Z(n);n&&(e||r[ua])?(R(n),te()):R(ia),re.current=t}}),[t]),d((function(){(H===aa&&!f||H===sa&&!u||H===la&&!g)&&R(ia)}),[f,u,g]),d((function(){return function(){F.current=!1,clearTimeout(V.current)}}),[]);var ie=o.useRef(!1);d((function(){L&&(ie.current=!0),void 0!==L&&H===ia&&((ie.current||L)&&(null==I||I(L)),ie.current=!0)}),[L,H]);var ae=z;return J[ua]&&ne===da&&(ae=Y({transition:"none"},ae)),[H,ne,ae,null!=L?L:t]}var Da=function(e){var t=e;"object"===A(e)&&(t=e.transitionSupport);var n=o.forwardRef((function(e,n){var r=e.visible,i=void 0===r||r,a=e.removeOnLeave,s=void 0===a||a,l=e.forceRender,u=e.children,d=e.motionName,p=e.leavedClassName,f=e.eventProps,h=function(e,n){return!(!e.motionName||!t||!1===n)}(e,o.useContext(na).motion),g=c(),m=c();var v=ht(Aa(h,i,(function(){try{return g.current instanceof HTMLElement?g.current:Z(m.current)}catch(e){return null}}),e),4),b=v[0],y=v[1],x=v[2],C=v[3],w=o.useRef(C);C&&(w.current=!0);var S,k=o.useCallback((function(e){g.current=e,se(n,e)}),[n]),E=Y(Y({},f),{},{visible:i});if(u)if(b===ia)S=C?u(Y({},E),k):!s&&w.current&&p?u(Y(Y({},E),{},{className:p}),k):l||!s&&!p?u(Y(Y({},E),{},{style:{display:"none"}}),k):null;else{var O;y===ua?O="prepare":Pa(y)?O="active":y===da&&(O="start");var $=Oa(d,"".concat(b,"-").concat(O));S=u(Y(Y({},E),{},{className:P(Oa(d,b),U(U({},$,$&&O),d,"string"==typeof d)),style:x}),k)}else S=null;o.isValidElement(S)&&ue(S)&&(pe(S)||(S=o.cloneElement(S,{ref:k})));return o.createElement(ra,{ref:m},S)}));return n.displayName="CSSMotion",n}(Sa),Ta="add",ja="keep",Ra="remove",_a="removed";function za(e){var t;return Y(Y({},t=e&&"object"===A(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Ba(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(za)}var Ha=["component","children","onVisibleChanged","onAllRemoved"],Fa=["status"],Va=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Wa(e){const{children:t}=e,[,n]=Bi(),{motion:r}=n,i=o.useRef(!1);return i.current=i.current||!1===r,i.current?o.createElement(oa,{motion:r},t):t}!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Da,n=function(){Ve(n,o.Component);var e=Ue(n);function n(){var t;ze(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return U(qe(t=e.call.apply(e,[this].concat(r))),"state",{keyEntities:[]}),U(qe(t),"removeKey",(function(e){t.setState((function(t){return{keyEntities:t.keyEntities.map((function(t){return t.key!==e?t:Y(Y({},t),{},{status:_a})}))}}),(function(){0===t.state.keyEntities.filter((function(e){return e.status!==_a})).length&&t.props.onAllRemoved&&t.props.onAllRemoved()}))})),t}return He(n,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,s=r.onVisibleChanged;r.onAllRemoved;var l=Nt(r,Ha),c=i||o.Fragment,u={};return Va.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,o.createElement(c,l,n.map((function(n,r){var i=n.status,l=Nt(n,Fa),c=i===Ta||i===ja;return o.createElement(t,L({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(t){null==s||s(t,{key:l.key}),t||e.removeKey(l.key)}}),(function(e,t){return a(Y(Y({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=Ba(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=Ba(e),a=Ba(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 Y(Y({},e),{},{status:Ta})}))),o=i),n.push(Y(Y({},s),{},{status:ja})),o+=1,t=!0;break}}t||n.push(Y(Y({},e),{},{status:Ra}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return Y(Y({},e),{},{status:Ta})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==Ra}))).forEach((function(t){t.key===e&&(t.status=ja)}))})),n}(o,r);return{keyEntities:i.filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==_a||e.status!==Ra}))}}}]),n}();U(n,"defaultProps",{component:"div"})}(Sa);const Ka=o.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return To("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(Ka.displayName="PropWarning");var qa="production"!==process.env.NODE_ENV?Ka:()=>null,Xa=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let Ua=!1;const Ga="production"!==process.env.NODE_ENV?e=>{"production"!==process.env.NODE_ENV&&jo(!Ua,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,Ya=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Qa,Za,Ja,es;function ts(){return Qa||Jr}function ns(){return Za||ei}const os=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:S,calendar:k,carousel:E,cascader:O,collapse:$,typography:N,checkbox:M,descriptions:I,divider:P,drawer:L,skeleton:A,steps:D,image:T,layout:j,list:R,mentions:_,modal:z,progress:B,result:H,slider:F,breadcrumb:V,menu:W,pagination:K,input:q,textArea:X,empty:U,badge:G,radio:Y,rate:Q,switch:Z,transfer:J,avatar:ee,message:te,tag:ne,table:oe,card:re,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:Se}=e,ke=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]),Ee=b||v.iconPrefixCls||ei,Oe=n||v.csp;Xi(Ee,Oe);const $e=function(e,t,n){var o,r;const i=To("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},Qr),{hashed:null!==(o=null==t?void 0:t.hashed)&&void 0!==o?o:Qr.hashed,cssVar:null==t?void 0:t.cssVar}),l=ea();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 ie((()=>{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)=>!Mt(e,t[n],!0)))))}(y,v.theme,{prefixCls:ke("")});"production"!==process.env.NODE_ENV&&(Ua=Ua||!!$e);const Ne={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:ke,iconPrefixCls:Ee,theme:$e,segmented:C,statistic:w,spin:S,calendar:k,carousel:E,cascader:O,collapse:$,typography:N,checkbox:M,descriptions:I,divider:P,drawer:L,skeleton:A,steps:D,image:T,input:q,textArea:X,layout:j,list:R,mentions:_,modal:z,progress:B,result:H,slider:F,breadcrumb:V,menu:W,pagination:K,empty:U,badge:G,radio:Y,rate:Q,switch:Z,transfer:J,avatar:ee,message:te,tag:ne,table:oe,card:re,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:Se};if("production"!==process.env.NODE_ENV){To("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Me=Object.assign({},v);Object.keys(Ne).forEach((e=>{void 0!==Ne[e]&&(Me[e]=Ne[e])})),Ya.forEach((t=>{const n=e[t];n&&(Me[t]=n)})),void 0!==r&&(Me.button=Object.assign({autoInsertSpace:r},Me.button));const Ie=ie((()=>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:Ee,csp:Oe})),[Ee,Oe]);let Le=o.createElement(o.Fragment,null,o.createElement(qa,{dropdownMatchSelectWidth:f}),t);const Ae=o.useMemo((()=>{var e,t,n,o;return Io((null===(e=Vo.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ie.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=Ie.form)||void 0===o?void 0:o.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})}),[Ie,null==s?void 0:s.validateMessages]);Object.keys(Ae).length>0&&(Le=o.createElement(Ro.Provider,{value:Ae},Le)),l&&(Le=o.createElement(Qo,{locale:l,_ANT_MARK__:Yo},Le)),(Ee||Oe)&&(Le=o.createElement(So.Provider,{value:Pe},Le)),c&&(Le=o.createElement(li,{size:c},Le)),Le=o.createElement(Wa,null,Le);const De=o.useMemo((()=>{const e=$e||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=Xa(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Bt(t):Yr,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=Bt(o.algorithm)),delete o.algorithm),s[t]=o}));const l=Object.assign(Object.assign({},kr),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:r})}),[$e]);return y&&(Le=o.createElement(Zr.Provider,{value:De},Le)),Ie.warning&&(Le=o.createElement(Do.Provider,{value:Ie.warning},Le)),void 0!==x&&(Le=o.createElement(ai,{disabled:x},Le)),o.createElement(ni.Provider,{value:Ie},Le)},rs=e=>{const t=o.useContext(ni),n=o.useContext(Uo);return o.createElement(os,Object.assign({parentContext:t,legacyLocale:n},e))};rs.ConfigContext=ni,rs.SizeContext=si,rs.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(Qa=t),void 0!==n&&(Za=n),"holderRender"in e&&(es=r),o&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?Ja=o:("production"!==process.env.NODE_ENV&&jo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),ri(ts(),o)))},rs.useConfig=function(){return{componentDisabled:s(ii),componentSize:s(si)}},Object.defineProperty(rs,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&jo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),si)}),"production"!==process.env.NODE_ENV&&(rs.displayName="ConfigProvider");var is={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 as(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function ss(e){return function(e){return as(e)instanceof ShadowRoot}(e)?as(e):null}function ls(e){return"object"===A(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===A(e.icon)||"function"==typeof e.icon)}function cs(){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 us(e,t,n){return n?r.createElement(e.tag,Y(Y({key:t},cs(e.attrs)),n),(e.children||[]).map((function(n,o){return us(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))):r.createElement(e.tag,Y({key:t},cs(e.attrs)),(e.children||[]).map((function(n,o){return us(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})))}function ds(e){return sr(e)[0]}function ps(e){return e?Array.isArray(e)?e:[e]:[]}var fs=["icon","className","onClick","style","primaryColor","secondaryColor"],hs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var gs=function(e){var t,n,r,i,a,l,c,u,p=e.icon,f=e.className,h=e.onClick,g=e.style,m=e.primaryColor,v=e.secondaryColor,b=Nt(e,fs),y=o.useRef(),x=hs;if(m&&(x={primaryColor:m,secondaryColor:v||ds(m)}),t=y,n=s(So),r=n.csp,i=n.prefixCls,a=n.layer,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(l=l.replace(/anticon/g,i)),a&&(l="@layer ".concat(a," {\n").concat(l,"\n}")),d((function(){var e=ss(t.current);$t(l,"@ant-design-icons",{prepend:!a,csp:r,attachTo:e})}),[]),c=ls(p),u="icon should be icon definiton, but got ".concat(p),K(c,"[@ant-design/icons] ".concat(u)),!ls(p))return null;var C=p;return C&&"function"==typeof C.icon&&(C=Y(Y({},C),{},{icon:C.icon(x.primaryColor,x.secondaryColor)})),us(C.icon,"svg-".concat(C.name),Y(Y({className:f,onClick:h,style:g,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},b),{},{ref:y}))};function ms(e){var t=ht(ps(e),2),n=t[0],o=t[1];return gs.setTwoToneColors({primaryColor:n,secondaryColor:o})}gs.displayName="IconReact",gs.getTwoToneColors=function(){return Y({},hs)},gs.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;hs.primaryColor=t,hs.secondaryColor=n||ds(t),hs.calculated=!!n};var vs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ms(vr.primary);var bs=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,vs),d=o.useContext(So),p=d.prefixCls,f=void 0===p?"anticon":p,h=d.rootClassName,g=P(h,f,U(U({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||"loading"===r.name),n),m=s;void 0===m&&l&&(m=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=ht(ps(c),2),y=b[0],x=b[1];return o.createElement("span",L({role:"img","aria-label":r.name},u,{ref:t,tabIndex:m,onClick:l,className:g}),o.createElement(gs,{icon:r,primaryColor:y,secondaryColor:x,style:v}))}));bs.displayName="AntdIcon",bs.getTwoToneColor=function(){var e=gs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},bs.setTwoToneColor=ms;var ys=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:is}))},xs=o.forwardRef(ys);
|
16
|
-
/** */"production"!==process.env.NODE_ENV&&(xs.displayName="CheckCircleFilled");var Cs={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"},ws=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:Cs}))},Ss=o.forwardRef(ws);"production"!==process.env.NODE_ENV&&(Ss.displayName="CloseCircleFilled");var ks={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"},Es=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:ks}))},Os=o.forwardRef(Es);"production"!==process.env.NODE_ENV&&(Os.displayName="CloseOutlined");var $s={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"},Ns=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:$s}))},Ms=o.forwardRef(Ns);"production"!==process.env.NODE_ENV&&(Ms.displayName="ExclamationCircleFilled");var Is={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"},Ps=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:Is}))},Ls=o.forwardRef(Ps);"production"!==process.env.NODE_ENV&&(Ls.displayName="InfoCircleFilled");var As="".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 Ds(e,t){return 0===e.indexOf(t)}function Ts(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Y({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Ds(n,"aria-"))||t.data&&Ds(n,"data-")||t.attr&&As.includes(n))&&(o[n]=e[n])})),o}function js(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}const Rs=(e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function _s(e,t){return Rs(e,e,t)}function zs(e){return null!=e&&e===e.window}const Bs=e=>{var t,n;if("undefined"==typeof window)return 0;let o=0;return zs(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(o=e.scrollTop),e&&!zs(e)&&"number"!=typeof o&&(o=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),o};function Hs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,i=n(),a=Bs(i),s=Date.now(),l=()=>{const t=Date.now()-s,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);zs(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?ut(l):"function"==typeof o&&o()};ut(l)}const Fs=e=>{const[,,,,t]=Bi();return t?`${e}-css-var`:""};var Vs={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>=Vs.F1&&t<=Vs.F12)return!1;switch(t){case Vs.ALT:case Vs.CAPS_LOCK:case Vs.CONTEXT_MENU:case Vs.CTRL:case Vs.DOWN:case Vs.END:case Vs.ESC:case Vs.HOME:case Vs.INSERT:case Vs.LEFT:case Vs.MAC_FF_META:case Vs.META:case Vs.NUMLOCK:case Vs.NUM_CENTER:case Vs.PAGE_DOWN:case Vs.PAGE_UP:case Vs.PAUSE:case Vs.PRINT_SCREEN:case Vs.RIGHT:case Vs.SHIFT:case Vs.UP:case Vs.WIN_KEY:case Vs.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Vs.ZERO&&e<=Vs.NINE)return!0;if(e>=Vs.NUM_ZERO&&e<=Vs.NUM_MULTIPLY)return!0;if(e>=Vs.A&&e<=Vs.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Vs.SPACE:case Vs.QUESTION_MARK:case Vs.NUM_PLUS:case Vs.NUM_MINUS:case Vs.NUM_PERIOD:case Vs.NUM_DIVISION:case Vs.SEMICOLON:case Vs.DASH:case Vs.EQUALS:case Vs.COMMA:case Vs.PERIOD:case Vs.SLASH:case Vs.APOSTROPHE:case Vs.SINGLE_QUOTE:case Vs.OPEN_SQUARE_BRACKET:case Vs.BACKSLASH:case Vs.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ws={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"},Ks=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:Ws}))},qs=o.forwardRef(Ks);"production"!==process.env.NODE_ENV&&(qs.displayName="LoadingOutlined");const Xs=r.createContext(void 0);"production"!==process.env.NODE_ENV&&(Xs.displayName="zIndexContext");const Us=100,Gs={Modal:Us,Drawer:Us,Popover:Us,Popconfirm:Us,Tooltip:Us,Tour:Us},Ys={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Qs(e,t){const[,n]=Bi(),o=r.useContext(Xs),i=function(e){return e in Gs}(e);let a;if(void 0!==t)a=[t,t];else{let r=null!=o?o:0;r+=i?(o?0:n.zIndexPopupBase)+Gs[e]:Ys[e],a=[void 0===o?t:r,r]}if("production"!==process.env.NODE_ENV){const o=To(e),r=n.zIndexPopupBase+1e3,i=a[0]||0;"production"!==process.env.NODE_ENV&&o(void 0!==t||i<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function Zs(){Zs=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 I(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(P([])));w&&w!==n&&o.call(w,a)&&(x=w);var S=y.prototype=v.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(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"==A(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 N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(A(t)+" is not iterable")}return b.prototype=y,r(S,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(E.prototype),c(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new E(u(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=P,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;M(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function Js(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 el(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Js(i,o,r,a,s,"next",e)}function s(e){Js(i,o,r,a,s,"throw",e)}a(void 0)}))}}var tl,nl=Y({},w),ol=nl.version,rl=nl.render,il=nl.unmountComponentAtNode;try{Number((ol||"").split(".")[0])>=18&&(tl=nl.createRoot)}catch(e){}function al(e){var t=nl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===A(t)&&(t.usingClientEntryPoint=e)}var sl="__rc_react_root__";function ll(e,t){tl?function(e,t){al(!0);var n=t[sl]||tl(t);al(!1),n.render(e),t[sl]=n}(e,t):function(e,t){null==rl||rl(e,t)}(e,t)}function cl(e){return ul.apply(this,arguments)}function ul(){return(ul=el(Zs().mark((function e(t){return Zs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[sl])||void 0===e||e.unmount(),delete t[sl]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dl(e){il(e)}function pl(e){return fl.apply(this,arguments)}function fl(){return(fl=el(Zs().mark((function e(t){return Zs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===tl){e.next=2;break}return e.abrupt("return",cl(t));case 2:dl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const hl=()=>({height:0,opacity:0}),gl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ml=e=>({height:e?e.offsetHeight:0}),vl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,bl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jr}-motion-collapse`,onAppearStart:hl,onEnterStart:hl,onAppearActive:gl,onEnterActive:gl,onLeaveStart:ml,onLeaveActive:hl,onAppearEnd:vl,onEnterEnd:vl,onLeaveEnd:vl,motionDeadline:500}},yl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var xl=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 wl=Gi("Wave",(e=>[Cl(e)]));const Sl=`${Jr}-wave-target`;function kl(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 El(e){return Number.isNaN(e)?0:e}const Ol=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,f]=o.useState(0),[h,g]=o.useState(0),[m,v]=o.useState(0),[b,y]=o.useState(!1),x={left:u,top:p,width:h,height:m,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 kl(t)?t:kl(n)?n:kl(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;d(t?n.offsetLeft:El(-parseFloat(o))),f(t?n.offsetTop:El(-parseFloat(r))),g(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>El(parseFloat(e)))))}if(a&&(x["--wave-color"]=a),o.useEffect((()=>{if(n){const e=ut((()=>{C(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(C),t.observe(n)),()=>{ut.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const w=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(Sl));return o.createElement(Da,{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;pl(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:r}=e;return o.createElement("div",{ref:le(i,n),className:P(t,r,{"wave-quick":w}),style:x})}))},$l=(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),ll(o.createElement(Ol,Object.assign({},t,{target:e})),i)},Nl=(e,t,n)=>{const{wave:r}=o.useContext(ni),[,i,a]=Bi(),s=mi((o=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${Sl}`)||s,{showEffect:c}=r||{};(c||$l)(l,{className:t,token:i,component:n,event:o,hashId:a})})),l=o.useRef();return e=>{ut.cancel(l.current),l.current=ut((()=>{s(e)}))}},Ml=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:i}=s(ni),a=c(null),l=i("wave"),[,u]=wl(l),d=Nl(a,P(l,u),o);if(r.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!xl(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!r.isValidElement(t))return null!=t?t:null;return _s(t,{ref:ue(t)?le(t.ref,a):a})};"production"!==process.env.NODE_ENV&&(Ml.displayName="Wave");const Il=e=>{const t=r.useContext(si);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},Pl=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Ll=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Al=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var Dl=Ui("Space",(e=>{const t=Si(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Ll(t),Al(t),Pl(t)]}),(()=>({})),{resetStyle:!1}),Tl=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 jl=o.createContext(null),Rl=(e,t)=>{const n=o.useContext(jl),r=o.useMemo((()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,a="vertical"===o?"-vertical-":"-";return P(`${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}},_l=e=>{let{children:t}=e;return o.createElement(jl.Provider,{value:null},t)},zl=e=>{var{children:t}=e,n=Tl(e,["children"]);return o.createElement(jl.Provider,{value:n},t)};var Bl=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=o.createContext(void 0),Fl=/^[\u4e00-\u9fa5]{2}$/,Vl=Fl.test.bind(Fl);function Wl(e){return"danger"===e?{danger:!0}:{type:e}}function Kl(e){return"string"==typeof e}function ql(e){return"text"===e||"link"===e}function Xl(e,t){let n=!1;const o=[];return r.Children.forEach(e,(e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r})),r.Children.map(o,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Kl(e.type)&&Vl(e.props.children)?_s(e,{children:e.props.children.split("").join(n)}):Kl(e)?Vl(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):js(e)?r.createElement("span",null,e):e}(e,t)))}const Ul=p(((e,t)=>{const{className:n,style:o,children:i,prefixCls:a}=e,s=P(`${a}-icon`,n);return r.createElement("span",{ref:t,className:s,style:o},i)})),Gl=p(((e,t)=>{const{prefixCls:n,className:o,style:i,iconClassName:a}=e,s=P(`${n}-loading-icon`,o);return r.createElement(Ul,{prefixCls:n,className:s,style:i,ref:t},r.createElement(qs,{className:a}))})),Yl=()=>({width:0,opacity:0,transform:"scale(0)"}),Ql=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Zl=e=>{const{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e,s=!!n;return o?r.createElement(Gl,{prefixCls:t,className:i,style:a}):r.createElement(Da,{visible:s,motionName:`${t}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:Yl,onAppearActive:Ql,onEnterStart:Yl,onEnterActive:Ql,onLeaveStart:Ql,onLeaveActive:Yl},((e,n)=>{let{className:o,style:s}=e;return r.createElement(Gl,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),s),ref:n,iconClassName:o})}))},Jl=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ec=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)]}},tc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return Si(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},nc=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:Wr(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Wr(l),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Wr(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)}},oc=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:`${Xt(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({},qi(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"}}}},rc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ic=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ac=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),sc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),lc=(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"},rc(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),cc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},sc(e))}),uc=e=>Object.assign({},cc(e)),dc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),pc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),rc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),lc(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},rc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),lc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),cc(e))}),fc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),rc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),lc(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},rc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),lc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),cc(e))}),hc=e=>Object.assign(Object.assign({},pc(e)),{borderStyle:"dashed"}),gc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},rc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),dc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},rc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),dc(e))}),mc=e=>Object.assign(Object.assign(Object.assign({},rc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),dc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},dc(e)),rc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),vc=e=>{const{componentCls:t}=e;return{[`${t}-default`]:pc(e),[`${t}-primary`]:fc(e),[`${t}-dashed`]:hc(e),[`${t}-link`]:gc(e),[`${t}-text`]:mc(e),[`${t}-ghost`]:lc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},bc=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:`${Xt(c)} ${Xt(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}`]:ic(e)},{[`${n}${n}-round${t}`]:ac(e)}]},yc=e=>{const t=Si(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return bc(t,e.componentCls)},xc=e=>{const t=Si(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 bc(t,`${e.componentCls}-sm`)},Cc=e=>{const t=Si(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return bc(t,`${e.componentCls}-lg`)},wc=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Sc=Ui("Button",(e=>{const t=tc(e);return[oc(t),yc(t),xc(t),Cc(t),wc(t),vc(t),ec(t)]}),nc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function kc(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 Ec(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 Oc(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({},kc(e,o,t)),Ec(n,o,t))}}function $c(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 Nc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},$c(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 Mc=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% + ${Xt(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% + ${Xt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var Ic=Yi(["Button","compact"],(e=>{const t=tc(e);return[Oc(t),Nc(t),Mc(t)]}),nc),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 Lc=r.forwardRef(((e,t)=>{var n,o,i;const{loading:a=!1,prefixCls:l,type:c,danger:u=!1,shape:p="default",size:v,styles:b,disabled:y,className:x,rootClassName:C,children:w,icon:S,iconPosition:k="start",ghost:E=!1,block:O=!1,htmlType:$="button",classNames:N,style:M={},autoInsertSpace:I}=e,L=Pc(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),A=c||"default",{getPrefixCls:D,direction:T,button:j}=s(ni),R=null===(n=null!=I?I:null==j?void 0:j.autoInsertSpace)||void 0===n||n,_=D("btn",l),[z,B,H]=Sc(_),F=s(ii),V=null!=y?y:F,W=s(Hl),K=f((()=>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]),[q,X]=h(K.loading),[U,G]=h(!1),Y=le(t,m()),Q=1===g.count(w)&&!S&&!ql(A);d((()=>{let e=null;return K.delay>0?e=setTimeout((()=>{e=null,X(!0)}),K.delay):X(K.loading),function(){e&&(clearTimeout(e),e=null)}}),[K]),d((()=>{if(!Y||!Y.current||!R)return;const e=Y.current.textContent;Q&&Vl(e)?U||G(!0):U&&G(!1)}),[Y]);const Z=t=>{const{onClick:n}=e;q||V?t.preventDefault():null==n||n(t)};if("production"!==process.env.NODE_ENV){const e=To("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof S&&S.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${S}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(E&&ql(A)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:J,compactItemClassnames:ee}=Rl(_,T),te={large:"lg",small:"sm",middle:void 0},ne=Il((e=>{var t,n;return null!==(n=null!==(t=null!=v?v:J)&&void 0!==t?t:W)&&void 0!==n?n:e})),oe=ne&&te[ne]||"",re=q?"loading":S,ie=et(L,["navigate"]),ae=P(_,B,H,{[`${_}-${p}`]:"default"!==p&&p,[`${_}-${A}`]:A,[`${_}-${oe}`]:oe,[`${_}-icon-only`]:!w&&0!==w&&!!re,[`${_}-background-ghost`]:E&&!ql(A),[`${_}-loading`]:q,[`${_}-two-chinese-chars`]:U&&R&&!q,[`${_}-block`]:O,[`${_}-dangerous`]:u,[`${_}-rtl`]:"rtl"===T,[`${_}-icon-end`]:"end"===k},ee,x,C,null==j?void 0:j.className),se=Object.assign(Object.assign({},null==j?void 0:j.style),M),ce=P(null==N?void 0:N.icon,null===(o=null==j?void 0:j.classNames)||void 0===o?void 0:o.icon),ue=Object.assign(Object.assign({},(null==b?void 0:b.icon)||{}),(null===(i=null==j?void 0:j.styles)||void 0===i?void 0:i.icon)||{}),de=S&&!q?r.createElement(Ul,{prefixCls:_,className:ce,style:ue},S):r.createElement(Zl,{existIcon:!!S,prefixCls:_,loading:q}),pe=w||0===w?Xl(w,Q&&R):null;if(void 0!==ie.href)return z(r.createElement("a",Object.assign({},ie,{className:P(ae,{[`${_}-disabled`]:V}),href:V?void 0:ie.href,style:se,onClick:Z,ref:Y,tabIndex:V?-1:0}),de,pe));let fe=r.createElement("button",Object.assign({},L,{type:$,className:ae,style:se,onClick:Z,disabled:V,ref:Y}),de,pe,!!ee&&r.createElement(Ic,{key:"compact",prefixCls:_}));return ql(A)||(fe=r.createElement(Ml,{component:"Button",disabled:q},fe)),z(fe)})),Ac=Lc;function Dc(e){return!!(null==e?void 0:e.then)}Ac.Group=e=>{const{getPrefixCls:t,direction:n}=o.useContext(ni),{prefixCls:r,size:i,className:a}=e,s=Bl(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Bi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=To("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=P(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},a,c);return o.createElement(Hl.Provider,{value:i},o.createElement("div",Object.assign({},s,{className:d})))},Ac.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Ac.displayName="Button");const Tc=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]=vi(!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(Ac,Object.assign({},Wl(t),{onClick:e=>{if(p.current)return;if(p.current=!0,!d)return void m();let t;if(l){if(t=d(e),u&&!Dc(t))return p.current=!1,void m(e)}else if(d.length)t=d(a),p.current=!1;else if(t=d(),!Dc(t))return void m();(e=>{Dc(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)},jc=r.createContext({}),{Provider:Rc}=jc,_c=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:c,onConfirm:u}=s(jc);return i?r.createElement(Tc,{isSilent:o,actionFn:c,close:function(){null==l||l.apply(void 0,arguments),null==u||u(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},zc=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:c,onOk:u}=s(jc);return r.createElement(Tc,{isSilent:n,type:l||"primary",actionFn:u,close:function(){null==t||t.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${i}-btn`},a)};var Bc,Hc=o.createContext(null),Fc=[];function Vc(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,";"):"";$t("\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),Ot(t),{width:p,height:f}}function Wc(e){return"undefined"==typeof document?0:(void 0===Bc&&(Bc=Vc()),Bc.width)}function Kc(e){return"undefined"!=typeof document&&e&&e instanceof Element?Vc(e):{width:0,height:0}}var qc="rc-util-locker-".concat(Date.now()),Xc=0;function Uc(e){var t=!!e,n=ht(o.useState((function(){return Xc+=1,"".concat(qc,"_").concat(Xc)})),1)[0];Jt((function(){if(t){var e=Kc(document.body).width,o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;$t("\nhtml body {\n overflow-y: hidden;\n ".concat(o?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Ot(n);return function(){Ot(n)}}),[t,n])}var Gc=function(e){return!1!==e&&(mt()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Yc=o.forwardRef((function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,a=e.debug,s=e.autoDestroy,l=void 0===s||s,c=e.children,u=ht(o.useState(n),2),d=u[0],p=u[1],f=d||n;"production"!==process.env.NODE_ENV&&K(mt()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),o.useEffect((function(){(l||n)&&p(n)}),[n,l]);var h=ht(o.useState((function(){return Gc(i)})),2),g=h[0],m=h[1];o.useEffect((function(){var e=Gc(i);m(null!=e?e:null)}));var v=function(e,t){var n=ht(o.useState((function(){if(!mt())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(Hc),a=ht(o.useState(Fc),2),s=a[0],l=a[1],c=i||(r.current?void 0:function(e){l((function(t){return[e].concat(rt(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 Jt((function(){return e?i?i(u):u():d(),d}),[e]),Jt((function(){s.length&&(s.forEach((function(e){return e()})),l(Fc))}),[s]),[n,c]}(f&&!g,a),b=ht(v,2),y=b[0],x=b[1],C=null!=g?g:y;Uc(r&&n&&mt()&&(C===y||C===document.body));var w=null;c&&ue(c)&&t&&(w=c.ref);var S=ce(w,t);if(!f||!mt()||void 0===g)return null;var E=!1===C||!1,O=c;return t&&(O=o.cloneElement(c,{ref:S})),o.createElement(Hc.Provider,{value:x},E?O:k(O,C))}));"production"!==process.env.NODE_ENV&&(Yc.displayName="Portal");var Qc=o.createContext({});var Zc=0,Jc=Y({},o).useId,eu=Jc?function(e){var t=Jc();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(e){var t=ht(o.useState("ssr-id"),2),n=t[0],r=t[1];return o.useEffect((function(){var e=Zc;Zc+=1,r("rc_unique_".concat(e))}),[]),e||("test"===process.env.NODE_ENV?"test-id":n)};function tu(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function nu(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 ou=o.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),ru={width:0,height:0,overflow:"hidden",outline:"none"},iu={outline:"none"},au=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,a=e.title,s=e.ariaId,l=e.footer,u=e.closable,d=e.closeIcon,p=e.onClose,h=e.children,g=e.bodyStyle,m=e.bodyProps,v=e.modalRender,b=e.onMouseDown,y=e.onMouseUp,x=e.holderRef,C=e.visible,w=e.forceRender,S=e.width,k=e.height,E=e.classNames,O=e.styles,$=r.useContext(Qc).panel,N=ce(x,$),M=c(),I=c(),D=c();r.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=D.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===I.current?M.current.focus({preventScroll:!0}):e||t!==M.current||I.current.focus({preventScroll:!0})}}}));var T={};void 0!==S&&(T.width=S),void 0!==k&&(T.height=k);var j=l?r.createElement("div",{className:P("".concat(n,"-footer"),null==E?void 0:E.footer),style:Y({},null==O?void 0:O.footer)},l):null,R=a?r.createElement("div",{className:P("".concat(n,"-header"),null==E?void 0:E.header),style:Y({},null==O?void 0:O.header)},r.createElement("div",{className:"".concat(n,"-title"),id:s},a)):null,_=f((function(){return"object"===A(u)&&null!==u?u:u?{closeIcon:null!=d?d:r.createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[u,d,n]),z=Ts(_,!0),B="object"===A(u)&&u.disabled,H=u?r.createElement("button",L({type:"button",onClick:p,"aria-label":"Close"},z,{className:"".concat(n,"-close"),disabled:B}),_.closeIcon):null,F=r.createElement("div",{className:P("".concat(n,"-content"),null==E?void 0:E.content),style:null==O?void 0:O.content},H,R,r.createElement("div",L({className:P("".concat(n,"-body"),null==E?void 0:E.body),style:Y(Y({},g),null==O?void 0:O.body)},m),h),j);return r.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?s:null,"aria-modal":"true",ref:N,style:Y(Y({},i),T),className:P(n,o),onMouseDown:b,onMouseUp:y},r.createElement("div",{tabIndex:0,ref:M,style:ru,"aria-hidden":"true"}),r.createElement("div",{ref:D,tabIndex:-1,style:iu},r.createElement(ou,{shouldUpdate:C||w},v?v(F):F)),r.createElement("div",{tabIndex:0,ref:I,style:ru,"aria-hidden":"true"}))}));"production"!==process.env.NODE_ENV&&(au.displayName="Panel");var su=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,s=e.visible,l=e.forceRender,u=e.destroyOnClose,d=e.motionName,p=e.ariaId,f=e.onVisibleChanged,h=e.mousePosition,g=c(),m=ht(o.useState(),2),v=m[0],b=m[1],y={};function x(){var e,t,n,o,r,i=(e=g.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow,n.left+=nu(r),n.top+=nu(r,!0),n);b(h&&(h.x||h.y)?"".concat(h.x-i.left,"px ").concat(h.y-i.top,"px"):"")}return v&&(y.transformOrigin=v),o.createElement(Da,{visible:s,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:l,motionName:d,removeOnLeave:u,ref:g},(function(s,l){var c=s.className,u=s.style;return o.createElement(au,L({},e,{ref:t,title:r,ariaId:p,prefixCls:n,holderRef:l,style:Y(Y(Y({},u),i),y),className:P(a,c)}))}))}));su.displayName="Content";var lu=function(e){var t=e.prefixCls,n=e.style,r=e.visible,i=e.maskProps,a=e.motionName,s=e.className;return o.createElement(Da,{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",L({ref:r,style:Y(Y({},l),n),className:P("".concat(t,"-mask"),a,s)},i))}))},cu=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,i=e.visible,a=void 0!==i&&i,s=e.keyboard,l=void 0===s||s,u=e.focusTriggerAfterClose,p=void 0===u||u,f=e.wrapStyle,h=e.wrapClassName,g=e.wrapProps,m=e.onClose,v=e.afterOpenChange,b=e.afterClose,y=e.transitionName,x=e.animation,C=e.closable,w=void 0===C||C,S=e.mask,k=void 0===S||S,E=e.maskTransitionName,O=e.maskAnimation,$=e.maskClosable,N=void 0===$||$,M=e.maskStyle,I=e.maskProps,A=e.rootClassName,D=e.classNames,T=e.styles;"production"!==process.env.NODE_ENV&&(["wrapStyle","bodyStyle","maskStyle"].forEach((function(t){H(!(t in e),"".concat(t," is deprecated, please use styles instead."))})),"wrapClassName"in e&&H(!1,"wrapClassName is deprecated, please use classNames instead."));var j=c(),R=c(),_=c(),z=ht(o.useState(a),2),B=z[0],F=z[1],V=eu();function W(e){null==m||m(e)}var K=c(!1),q=c(),X=null;N&&(X=function(e){K.current?K.current=!1:R.current===e.target&&W(e)}),d((function(){a&&(F(!0),vt(R.current,document.activeElement)||(j.current=document.activeElement))}),[a]),d((function(){return function(){clearTimeout(q.current)}}),[]);var U=Y(Y(Y({zIndex:r},f),null==T?void 0:T.wrapper),{},{display:B?null:"none"});return o.createElement("div",L({className:P("".concat(n,"-root"),A)},Ts(e,{data:!0})),o.createElement(lu,{prefixCls:n,visible:k&&a,motionName:tu(n,E,O),style:Y(Y({zIndex:r},M),null==T?void 0:T.mask),maskProps:I,className:null==D?void 0:D.mask}),o.createElement("div",L({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===Vs.ESC)return e.stopPropagation(),void W(e);a&&e.keyCode===Vs.TAB&&_.current.changeActive(!e.shiftKey)},className:P("".concat(n,"-wrap"),h,null==D?void 0:D.wrapper),ref:R,onClick:X,style:U},g),o.createElement(su,L({},e,{onMouseDown:function(){clearTimeout(q.current),K.current=!0},onMouseUp:function(){q.current=setTimeout((function(){K.current=!1}))},ref:_,closable:w,ariaId:V,prefixCls:n,visible:a&&B,onClose:W,onVisibleChanged:function(e){if(e)vt(R.current,document.activeElement)||null===(t=_.current)||void 0===t||t.focus();else{if(F(!1),k&&j.current&&p){try{j.current.focus({preventScroll:!0})}catch(e){}j.current=null}B&&(null==b||b())}var t;null==v||v(e)},motionName:tu(n,y,x)}))))},uu=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=ht(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(Qc.Provider,{value:p},o.createElement(Yc,{open:t||r||u,autoDestroy:!1,getContainer:n,autoLock:t||u},o.createElement(cu,L({},e,{destroyOnClose:a,afterClose:function(){null==s||s(),d(!1)}})))):null};uu.displayName="Dialog";var du="RC_FORM_INTERNAL_HOOKS",pu=function(){K(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},fu=o.createContext({getFieldValue:pu,getFieldsValue:pu,getFieldError:pu,getFieldWarning:pu,getFieldsError:pu,isFieldsTouched:pu,isFieldTouched:pu,isFieldValidating:pu,isFieldsValidating:pu,resetFields:pu,setFields:pu,setFieldValue:pu,setFieldsValue:pu,validateFields:pu,submit:pu,getInternalHooks:function(){return pu(),{dispatch:pu,initEntityValue:pu,registerField:pu,useSubscribe:pu,setInitialValues:pu,destroyForm:pu,setCallbacks:pu,registerWatch:pu,getFields:pu,setValidateMessages:pu,setPreserve:pu,getInitialValue:pu}}}),hu=o.createContext(null);function gu(e){return null==e?[]:Array.isArray(e)?e:[e]}function mu(){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 vu=mu();function bu(e){var t="function"==typeof Map?new Map:void 0;return bu=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(Ke())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&Fe(r,n.prototype),r}(e,arguments,We(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fe(n,e)},bu(e)}var yu=/%[sdj%]/g,xu=function(){};function Cu(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 wu(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(yu,(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 Su(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 ku(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&&(xu=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 Eu=function(){Ve(t,bu(Error));var e=Ue(t);function t(n,o){var r;return ze(this,t),U(qe(r=e.call(this,"Async Validation Error")),"errors",void 0),U(qe(r),"fields",void 0),r.errors=n,r.fields=o,r}return He(t)}();function Ou(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,rt(e[n]||[]))})),t}(e);ku(a,n,(function(e){return o(e),e.length?i(new Eu(e,Cu(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 Eu(u,Cu(u))):t(r)};s.length||(o(u),t(r)),s.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?ku(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,rt(e||[])),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function $u(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 Nu(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===A(o)&&"object"===A(e[n])?e[n]=Y(Y({},e[n]),o):e[n]=o}return e}var Mu,Iu="enum",Pu=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!Su(t,i||e.type)||o.push(wu(r.messages.required,e.fullField))},Lu=/^(([^<>()\[\]\\.,;:\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,}))$/,Au=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Du={integer:function(e){return Du.number(e)&&parseInt(e,10)===e},float:function(e){return Du.number(e)&&!Du.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"===A(e)&&!Du.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Lu)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Mu)return Mu;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 Mu=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Au)}},Tu={required:Pu,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(wu(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)Pu(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Du[i](t)||o.push(wu(r.messages.types[i],e.fullField,e.type)):i&&A(t)!==e.type&&o.push(wu(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(wu(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?o.push(wu(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?o.push(wu(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&o.push(wu(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[Iu]=Array.isArray(e[Iu])?e[Iu]:[],-1===e[Iu].indexOf(t)&&o.push(wu(r.messages[Iu],e.fullField,e[Iu].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(wu(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(wu(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},ju=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Su(t,i)&&!e.required)return n();Tu.required(e,t,o,a,r,i),Su(t,i)||Tu.type(e,t,o,a,r)}n(a)},Ru={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Su(t,"string")&&!e.required)return n();Tu.required(e,t,o,i,r,"string"),Su(t,"string")||(Tu.type(e,t,o,i,r),Tu.range(e,t,o,i,r),Tu.pattern(e,t,o,i,r),!0===e.whitespace&&Tu.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(Su(t)&&!e.required)return n();Tu.required(e,t,o,i,r),void 0!==t&&Tu.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),Su(t)&&!e.required)return n();Tu.required(e,t,o,i,r),void 0!==t&&(Tu.type(e,t,o,i,r),Tu.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(Su(t)&&!e.required)return n();Tu.required(e,t,o,i,r),void 0!==t&&Tu.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(Su(t)&&!e.required)return n();Tu.required(e,t,o,i,r),Su(t)||Tu.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(Su(t)&&!e.required)return n();Tu.required(e,t,o,i,r),void 0!==t&&(Tu.type(e,t,o,i,r),Tu.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(Su(t)&&!e.required)return n();Tu.required(e,t,o,i,r),void 0!==t&&(Tu.type(e,t,o,i,r),Tu.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();Tu.required(e,t,o,i,r,"array"),null!=t&&(Tu.type(e,t,o,i,r),Tu.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(Su(t)&&!e.required)return n();Tu.required(e,t,o,i,r),void 0!==t&&Tu.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(Su(t)&&!e.required)return n();Tu.required(e,t,o,i,r),void 0!==t&&Tu.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(Su(t,"string")&&!e.required)return n();Tu.required(e,t,o,i,r),Su(t,"string")||Tu.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(Su(t,"date")&&!e.required)return n();var a;if(Tu.required(e,t,o,i,r),!Su(t,"date"))a=t instanceof Date?t:new Date(t),Tu.type(e,a,o,i,r),a&&Tu.range(e,a.getTime(),o,i,r)}n(i)},url:ju,hex:ju,email:ju,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":A(t);Tu.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(Su(t)&&!e.required)return n();Tu.required(e,t,o,i,r)}n(i)}},_u=function(){function e(t){ze(this,e),U(this,"rules",null),U(this,"_messages",vu),this.define(t)}return He(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==A(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=Nu(mu(),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===vu&&(a=mu()),Nu(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=Y({},o)),null!=(i=o[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":A(i)))),(a="function"==typeof a?{validator:a}:Y({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:o,field:e}))}))}));var l={};return Ou(s,r,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==A(a.fields)&&"object"!==A(a.defaultField));function c(e,t){return Y(Y({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(rt(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($u(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($u(a,o)):r.error&&(d=[r.error(a,wu(r.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map((function(e){p[e]=a.defaultField})),p=Y(Y({},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,rt(d)),e&&e.length&&t.push.apply(t,rt(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,rt(t)):r.push(t);r.length?(a=Cu(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&&!Ru.hasOwnProperty(e.type))throw new Error(wu("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]?Ru.required:Ru[this.getType(e)]||void 0}}]),e}();U(_u,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ru[e]=t})),U(_u,"warning",xu),U(_u,"messages",vu),U(_u,"validators",Ru);var zu="'${name}' is not a valid ${type}",Bu={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:zu,method:zu,array:zu,object:zu,number:zu,date:zu,boolean:zu,integer:zu,float:zu,regexp:zu,email:zu,url:zu,hex:zu},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}"}},Hu=_u;function Fu(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 Vu="CODE_LOGIC_ERROR";function Wu(e,t,n,o,r){return Ku.apply(this,arguments)}function Ku(){return Ku=el(Zs().mark((function e(t,n,r,i,a){var s,l,c,u,d,p,f,h,g;return Zs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(s=Y({},r)).ruleIndex,Hu.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(Vu)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new Hu(U({},t,[s])),d=Io(Bu,i.validateMessages),u.messages(d),p=[],e.prev=10,e.next=13,Promise.resolve(u.validate(U({},t,n),Y({},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===Vu?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 Wu("".concat(t,".").concat(n),e,c,i,a)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(rt(e),rt(t))}),[]));case 23:return h=Y(Y({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=p.map((function(e){return"string"==typeof e?Fu(e,h):e})),e.abrupt("return",g);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Ku.apply(this,arguments)}function qu(e,t,n,o,r,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,o=Y(Y({},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(){K(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));K(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=el(Zs().mark((function e(n,r){var a,c,u;return Zs().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,Wu(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 Wu(s,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return Uu.apply(this,arguments)}(c):function(e){return Xu.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Xu(){return(Xu=el(Zs().mark((function e(t){return Zs().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,rt(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Uu(){return Uu=el(Zs().mark((function e(t){var n;return Zs().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)}))),Uu.apply(this,arguments)}function Gu(e){return gu(e)}function Yu(e,t){var n={};return t.forEach((function(t){var o=Eo(e,t);n=$o(n,t,o)})),n}function Qu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Zu(t,e,n)}))}function Zu(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 Ju(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===A(t.target)&&e in t.target?t.target[e]:t}function ed(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(rt(e.slice(0,n)),[r],rt(e.slice(n,t)),rt(e.slice(t+1,o))):i<0?[].concat(rt(e.slice(0,t)),rt(e.slice(t+1,n+1)),[r],rt(e.slice(n+1,o))):e}var td=["name"],nd=[];function od(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var rd=function(){Ve(t,o.Component);var e=Ue(t);function t(n){var r;(ze(this,t),U(qe(r=e.call(this,n)),"state",{resetCount:0}),U(qe(r),"cancelRegisterFunc",null),U(qe(r),"mounted",!1),U(qe(r),"touched",!1),U(qe(r),"dirty",!1),U(qe(r),"validatePromise",void 0),U(qe(r),"prevValidating",void 0),U(qe(r),"errors",nd),U(qe(r),"warnings",nd),U(qe(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Gu(o)),r.cancelRegisterFunc=null})),U(qe(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(rt(void 0===n?[]:n),rt(t)):[]})),U(qe(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}))})),U(qe(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),U(qe(r),"metaCache",null),U(qe(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Y(Y({},r.getMeta()),{},{destroy:e});Mt(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),U(qe(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&&Qu(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Mt(d,p)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=nd,r.warnings=nd,r.triggerMetaEvent()),n.type){case"reset":if(!t||f)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=nd,r.warnings=nd,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&od(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||nd),"warnings"in h&&(r.warnings=h.warnings||nd),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&Qu(t,u,!0))return void r.reRender();if(i&&!u.length&&od(i,e,c,d,p,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Gu).some((function(e){return Qu(n.relatedFields,e)})))return void r.reRender();break;default:if(f||(!s.length||u.length||i)&&od(i,e,c,d,p,n))return void r.reRender()}!0===i&&r.reRender()})),U(qe(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(el(Zs().mark((function o(){var a,s,c,u,d,p,f;return Zs().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||gu(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=qu(t,n,p,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nd;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?nd:r;t?o.push.apply(o,rt(i)):n.push.apply(n,rt(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=nd,r.warnings=nd,r.triggerMetaEvent(),r.reRender()),l})),U(qe(r),"isFieldValidating",(function(){return!!r.validatePromise})),U(qe(r),"isFieldTouched",(function(){return r.touched})),U(qe(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(du).getInitialValue)(r.getNamePath())})),U(qe(r),"getErrors",(function(){return r.errors})),U(qe(r),"getWarnings",(function(){return r.warnings})),U(qe(r),"isListField",(function(){return r.props.isListField})),U(qe(r),"isList",(function(){return r.props.isList})),U(qe(r),"isPreserve",(function(){return r.props.preserve})),U(qe(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}})),U(qe(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return Y(Y({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=_(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),U(qe(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Eo(e||t(!0),n)})),U(qe(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(du).dispatch,m=r.getValue(),v=c||function(e){return U({},l,e)},b=e[o],y=void 0!==n?v(m):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){K("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var x=Y(Y({},e),y);return x[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):Ju.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)},gu(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)(du).initEntityValue)(qe(r));return r}return He(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)(du).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)):(K(!i,"`children` of Field is not validate ReactElement."),e=i),o.createElement(o.Fragment,{key:t},e)}}]),t}();function id(e){var t=e.name,n=Nt(e,td),r=o.useContext(fu),i=o.useContext(hu),a=void 0!==t?Gu(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&&K(!1,"`preserve` should not apply on Form.List fields."),o.createElement(rd,L({key:s,name:a,isListField:!!i},n,{fieldContext:r}))}U(rd,"contextType",fu),U(rd,"defaultProps",{trigger:"onChange",valuePropName:"value"});var ad="__@field_split__";function sd(e){return e.map((function(e){return"".concat(A(e),":").concat(e)})).join(ad)}var ld=function(){function e(){ze(this,e),U(this,"kvs",new Map)}return He(e,[{key:"set",value:function(e,t){this.kvs.set(sd(e),t)}},{key:"get",value:function(e){return this.kvs.get(sd(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(sd(e))}},{key:"map",value:function(e){return rt(this.kvs.entries()).map((function(t){var n=ht(t,2),o=n[0],r=n[1],i=o.split(ad);return e({key:i.map((function(e){var t=ht(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}(),cd=["name"],ud=He((function e(t){var n=this;ze(this,e),U(this,"formHooked",!1),U(this,"forceRootUpdate",void 0),U(this,"subscribable",!0),U(this,"store",{}),U(this,"fieldEntities",[]),U(this,"initialValues",{}),U(this,"callbacks",{}),U(this,"validateMessages",null),U(this,"preserve",null),U(this,"lastValidatePromise",null),U(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}})),U(this,"getInternalHooks",(function(e){return e===du?(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}):(K(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),U(this,"useSubscribe",(function(e){n.subscribable=e})),U(this,"prevWithoutPreserves",null),U(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=Io(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=$o(r,n,Eo(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),U(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new ld;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),U(this,"getInitialValue",(function(e){var t=Eo(n.initialValues,e);return e.length?Io(t):t})),U(this,"setCallbacks",(function(e){n.callbacks=e})),U(this,"setValidateMessages",(function(e){n.validateMessages=e})),U(this,"setPreserve",(function(e){n.preserve=e})),U(this,"watchList",[]),U(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),U(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)}))}})),U(this,"timeoutId",null),U(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||K(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),U(this,"updateStore",(function(e){n.store=e})),U(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),U(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ld;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),U(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Gu(e);return t.get(n)||{INVALIDATE_NAME_PATH:Gu(e)}}))})),U(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===A(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)})),Yu(n.store,s.map(Gu))})),U(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Gu(e);return Eo(n.store,t)})),U(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:Gu(e[n]),errors:[],warnings:[]}}))})),U(this,"getFieldError",(function(e){n.warningUnhooked();var t=Gu(e);return n.getFieldsError([t])[0].errors})),U(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Gu(e);return n.getFieldsError([t])[0].warnings})),U(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(Gu),s=!1):(r=null,s=i):(r=i.map(Gu),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 ld;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(rt(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)})),U(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),U(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(Gu);return t.some((function(e){var t=e.getNamePath();return Qu(o,t)&&e.isFieldValidating()}))})),U(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),U(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new ld,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,rt(rt(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))K(!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)K(!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($o(n.store,r,rt(i)[0].value))}}}}))})),U(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Io(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(Gu);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore($o(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),U(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=Nt(e,cd),a=Gu(r);o.push(a),"value"in i&&n.updateStore($o(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),U(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=Y(Y({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),U(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===Eo(n.store,o)&&n.updateStore($o(n.store,o,t))}})),U(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),U(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!Zu(e.getNamePath(),t)}))){var s=n.store;n.updateStore($o(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),U(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})}})),U(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=Y(Y({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),U(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(rt(o))}),o})),U(this,"updateValue",(function(e,t){var o=Gu(e),r=n.store;n.updateStore($o(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(Yu(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(rt(i)))})),U(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=Io(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),U(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),U(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new ld;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Gu(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})),U(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new ld;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 Qu(e,n)}));a.length&&o(a,r)}})),U(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(Gu):[],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||Qu(a,t,d)){var o=e.validateRules(Y({validateMessages:Y(Y({},Bu),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,rt(n)):o.push.apply(o,rt(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})),U(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 dd(e){var t=o.useRef(),n=ht(o.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new ud((function(){n({})}));t.current=r.getForm()}return[t.current]}var pd=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),fd=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],hd=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,h=e.onValuesChange,g=e.onFieldsChange,m=e.onFinish,v=e.onFinishFailed,b=e.clearOnDestroy,y=Nt(e,fd),x=o.useRef(null),C=o.useContext(pd),w=ht(dd(a),1)[0],S=w.getInternalHooks(du),k=S.useSubscribe,E=S.setInitialValues,O=S.setCallbacks,$=S.setValidateMessages,N=S.setPreserve,M=S.destroyForm;o.useImperativeHandle(t,(function(){return Y(Y({},w),{},{nativeElement:x.current})})),o.useEffect((function(){return C.registerForm(n,w),function(){C.unregisterForm(n)}}),[C,w,n]),$(Y(Y({},C.validateMessages),d)),O({onValuesChange:h,onFieldsChange:function(e){if(C.triggerFormChange(n,e),g){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];g.apply(void 0,[e].concat(o))}},onFinish:function(e){C.triggerFormFinish(n,e),m&&m(e)},onFinishFailed:v}),N(s);var I,P=o.useRef(null);E(r,!P.current),P.current||(P.current=!0),o.useEffect((function(){return function(){return M(b)}}),[]);var D="function"==typeof l;D?I=l(w.getFieldsValue(!0),w):I=l;k(!D);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"!==A(e)||"object"!==A(t))return!1;var n=Object.keys(e),o=Object.keys(t);return rt(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||[])||w.setFields(i||[]),T.current=i}),[i,w]);var j=o.useMemo((function(){return Y(Y({},w),{},{validateTrigger:f})}),[w,f]),R=o.createElement(hu.Provider,{value:null},o.createElement(fu.Provider,{value:j},I));return!1===u?R:o.createElement(u,L({},y,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),R)};function gd(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var md="production"!==process.env.NODE_ENV?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__");K(c(t).current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var vd=o.forwardRef(hd);vd.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(pd),s=o.useRef({});return o.createElement(pd.Provider,{value:Y(Y({},a),{},{validateMessages:Y(Y({},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=Y(Y({},s.current),{},U({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Y({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},vd.Field=id,vd.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(fu),c=o.useContext(hu),u=o.useRef({keys:[],id:0}).current,d=o.useMemo((function(){var e=Gu(l.prefixName)||[];return[].concat(rt(e),rt(Gu(t)))}),[l.prefixName,t]),p=o.useMemo((function(){return Y(Y({},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?(K(!1,"Form.List only accepts function as children."),null):o.createElement(hu.Provider,{value:f},o.createElement(fu.Provider,{value:p},o.createElement(id,{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(rt(u.keys.slice(0,t)),[u.id],rt(u.keys.slice(t))),i([].concat(rt(n.slice(0,t)),[e],rt(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&K(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(rt(u.keys),[u.id]),i([].concat(rt(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=ed(u.keys,e,t),i(ed(n,e,t)))}}},p=o||[];return Array.isArray(p)||(p=[],"production"!==process.env.NODE_ENV&&K(!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)}))))},vd.useForm=dd,vd.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],r=t[1],i=void 0===r?{}:r,a=function(e){return e&&!!e._init}(i)?{form:i}:i,l=a.form,u=ht(h(),2),p=u[0],g=u[1],m=f((function(){return gd(p)}),[p]),v=c(m);v.current=m;var b=s(fu),y=l||b,x=y&&y._init;"production"!==process.env.NODE_ENV&&K(2===t.length&&!l||x,"useWatch requires a form instance since it can not auto detect from context.");var C=Gu(o),w=c(C);return w.current=C,md(C),d((function(){if(x){var e=y.getFieldsValue,t=(0,y.getInternalHooks)(du).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof o?o(n):Eo(n,w.current)},r=t((function(e,t){var o=n(e,t),r=gd(o);v.current!==r&&(v.current=r,g(o))})),i=n(e(),e(!0));return p!==i&&g(i),r}}),[x]),p};const bd=o.createContext({});"production"!==process.env.NODE_ENV&&(bd.displayName="FormItemInputContext");const yd=e=>{let{children:t,status:n,override:r}=e;const i=s(bd),a=f((()=>{const e=Object.assign({},i);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,i]);return o.createElement(bd.Provider,{value:a},t)},xd=l(void 0),Cd=e=>{const{space:t,form:n,children:o}=e;if(null==o)return null;let i=o;return n&&(i=r.createElement(yd,{override:!0,status:!0},i)),t&&(i=r.createElement(_l,null,i)),i};function wd(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Sd(e){const{closable:t,closeIcon:n}=e||{};return r.useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function kd(){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 Ed={};function Od(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ed;const o=Sd(e),i=Sd(t),a=r.useMemo((()=>Object.assign({closeIcon:r.createElement(Os,null)},n)),[n]),s=r.useMemo((()=>!1!==o&&(o?kd(a,i,o):!1!==i&&(i?kd(a,i):!!a.closable&&a))),[o,i,a]);return r.useMemo((()=>{if(!1===s)return[!1,null];const{closeIconRender:e}=a,{closeIcon:t}=s;let n=t;if(null!=n){e&&(n=e(t));const o=Ts(s,!0);Object.keys(o).length&&(n=r.isValidElement(n)?r.cloneElement(n,o):r.createElement("span",Object.assign({},o),n))}return[!0,n]}),[s,a])}var $d=function(e){if(mt()&&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 Nd(e,t){return Array.isArray(e)||void 0===t?$d(e):function(e,t){if(!$d(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}const Md=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,s=P({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),l=P({[`${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:P(t,s,l,n),style:Object.assign(Object.assign({},c),r)})},Id=new Co("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Pd=e=>({height:e,lineHeight:Xt(e)}),Ld=e=>Object.assign({width:e},Pd(e)),Ad=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Id,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Dd=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Pd(e)),Td=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ld(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ld(r)),[`${t}${t}-sm`]:Object.assign({},Ld(i))}},jd=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},Dd(t,s)),[`${o}-lg`]:Object.assign({},Dd(r,s)),[`${o}-sm`]:Object.assign({},Dd(i,s))}},Rd=e=>Object.assign({width:e},Pd(e)),_d=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},Rd(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Rd(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%"}}},zd=(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()},Pd(e)),Hd=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))},zd(e,o,n)),{[`${n}-lg`]:Object.assign({},Bd(r,s))}),zd(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Bd(i,s))}),zd(e,i,`${n}-sm`))},Fd=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},Ld(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ld(c)),[`${n}-sm`]:Object.assign({},Ld(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"},Hd(e)),Td(e)),jd(e)),_d(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({},Ad(e))}}};var Vd=Ui("Skeleton",(e=>{const{componentCls:t,calc:n}=e,o=Si(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[Fd(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"},Kd=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:Wd}))},qd=o.forwardRef(Kd);"production"!==process.env.NODE_ENV&&(qd.displayName="DotChartOutlined");const Xd=(e,t)=>{const{width:n,rows:o=2}=t;return Array.isArray(n)?n[e]:o-1===e?n:void 0},Ud=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=rt(Array(i)).map(((t,n)=>o.createElement("li",{key:n,style:{width:Xd(n,e)}})));return o.createElement("ul",{className:P(t,n),style:r},a)},Gd=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return o.createElement("h3",{className:P(t,n),style:Object.assign({width:r},i)})};function Yd(e){return e&&"object"==typeof e?e:{}}const Qd=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:f,direction:h,skeleton:g}=o.useContext(ni),m=f("skeleton",t),[v,b,y]=Vd(m);if(n||!("loading"in e)){const e=!!l,t=!!c,n=!!u;let s,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${m}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Yd(l));s=o.createElement("div",{className:`${m}-header`},o.createElement(Md,Object.assign({},e)))}if(t||n){let r,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${m}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Yd(c));r=o.createElement(Gd,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Yd(u));i=o.createElement(Ud,Object.assign({},n))}f=o.createElement("div",{className:`${m}-content`},r,i)}const x=P(m,{[`${m}-with-avatar`]:e,[`${m}-active`]:d,[`${m}-rtl`]:"rtl"===h,[`${m}-round`]:p},null==g?void 0:g.className,r,i,b,y);return v(o.createElement("div",{className:x,style:Object.assign(Object.assign({},null==g?void 0:g.style),a)},s,f))}return null!=s?s:null};function Zd(){}Qd.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:s="default"}=e,{getPrefixCls:l}=o.useContext(ni),c=l("skeleton",t),[u,d,p]=Vd(c),f=et(e,["prefixCls"]),h=P(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},n,r,d,p);return u(o.createElement("div",{className:h},o.createElement(Md,Object.assign({prefixCls:`${c}-button`,size:s},f))))},Qd.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:s="default"}=e,{getPrefixCls:l}=o.useContext(ni),c=l("skeleton",t),[u,d,p]=Vd(c),f=et(e,["prefixCls","className"]),h=P(c,`${c}-element`,{[`${c}-active`]:i},n,r,d,p);return u(o.createElement("div",{className:h},o.createElement(Md,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:s},f))))},Qd.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:s="default"}=e,{getPrefixCls:l}=o.useContext(ni),c=l("skeleton",t),[u,d,p]=Vd(c),f=et(e,["prefixCls"]),h=P(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},n,r,d,p);return u(o.createElement("div",{className:h},o.createElement(Md,Object.assign({prefixCls:`${c}-input`,size:s},f))))},Qd.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:s}=o.useContext(ni),l=s("skeleton",t),[c,u,d]=Vd(l),p=P(l,`${l}-element`,{[`${l}-active`]:a},n,r,u,d);return c(o.createElement("div",{className:p},o.createElement("div",{className:P(`${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`})))))},Qd.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:s}=e,{getPrefixCls:l}=o.useContext(ni),c=l("skeleton",t),[u,d,p]=Vd(c),f=P(c,`${c}-element`,{[`${c}-active`]:a},d,n,r,p),h=null!=s?s:o.createElement(qd,null);return u(o.createElement("div",{className:f},o.createElement("div",{className:P(`${c}-image`,n),style:i},h)))},"production"!==process.env.NODE_ENV&&(Qd.displayName="Skeleton");const Jd=o.createContext({add:Zd,remove:Zd});const ep=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=s(jc);return r.createElement(Ac,Object.assign({onClick:n},e),t)},tp=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:i}=s(jc);return r.createElement(Ac,Object.assign({},Wl(n),{loading:e,onClick:i},t),o)};function np(e,t){return r.createElement("span",{className:`${e}-close-x`},t||r.createElement(Os,{className:`${e}-close-icon`}))}const op=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:s,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=Go("Modal",Xo()),p={confirmLoading:i,okButtonProps:l,cancelButtonProps:c,okTextLocale:t||(null==d?void 0:d.okText),cancelTextLocale:o||(null==d?void 0:d.cancelText),okType:n,onOk:a,onCancel:s},f=r.useMemo((()=>p),rt(Object.values(p)));let h;return"function"==typeof u||void 0===u?(h=r.createElement(r.Fragment,null,r.createElement(ep,null),r.createElement(tp,null)),"function"==typeof u&&(h=u(h,{OkBtn:tp,CancelBtn:ep})),h=r.createElement(Rc,{value:f},h)):h=u,r.createElement(ai,{disabled:!1},h)},rp=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`}}}),ip=e=>({animationDuration:e,animationFillMode:"both"}),ap=e=>({animationDuration:e,animationFillMode:"both"}),sp=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({},ip(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},ap(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"}}},lp=new Co("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),cp=new Co("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),up=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[sp(o,lp,cp,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},dp=new Co("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pp=new Co("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),fp=new Co("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hp=new Co("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gp=new Co("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mp=new Co("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),vp={"move-up":{inKeyframes:new Co("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 Co("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:dp,outKeyframes:pp},"move-left":{inKeyframes:fp,outKeyframes:hp},"move-right":{inKeyframes:gp,outKeyframes:mp}},bp=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=vp[t];return[sp(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},yp=new Co("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),xp=new Co("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Cp=new Co("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),wp=new Co("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Sp=new Co("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),kp=new Co("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ep=new Co("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Op=new Co("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$p={"slide-up":{inKeyframes:yp,outKeyframes:xp},"slide-down":{inKeyframes:Cp,outKeyframes:wp},"slide-left":{inKeyframes:Sp,outKeyframes:kp},"slide-right":{inKeyframes:Ep,outKeyframes:Op}},Np=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=$p[t];return[sp(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}}]},Mp=new Co("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ip=new Co("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Pp=new Co("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Lp=new Co("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Ap=new Co("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Dp=new Co("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Tp={zoom:{inKeyframes:Mp,outKeyframes:Ip},"zoom-big":{inKeyframes:Pp,outKeyframes:Lp},"zoom-big-fast":{inKeyframes:Pp,outKeyframes:Lp},"zoom-left":{inKeyframes:new Co("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Co("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Co("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Co("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Ap,outKeyframes:Dp},"zoom-down":{inKeyframes:new Co("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Co("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},jp=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Tp[t];return[sp(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 Rp(e){return{position:e,inset:0}}const _p=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({},Rp("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Rp("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:up(e)}]},zp=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:`${Xt(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Vi(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Xt(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:Xt(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},qi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Xt(e.borderRadiusLG)} ${Xt(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:`${Xt(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"}}}}},Hp=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return Si(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()})},Fp=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Xt(e.paddingMD)} ${Xt(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Xt(e.padding)} ${Xt(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Xt(e.paddingXS)} ${Xt(e.padding)}`:0,footerBorderTop:e.wireframe?`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Xt(e.borderRadiusLG)} ${Xt(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Xt(2*e.padding)} ${Xt(2*e.padding)} ${Xt(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var Vp=Ui("Modal",(e=>{const t=Hp(e);return[zp(t),Bp(t),_p(t),jp(t,"zoom")]}),Fp,{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 Kp;const qp=e=>{Kp={x:e.pageX,y:e.pageY},setTimeout((()=>{Kp=null}),100)};mt()&&window.document.documentElement&&document.documentElement.addEventListener("click",qp,!0);const Xp=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=o.useContext(ni),s=t=>{const{onCancel:n}=e;null==n||n(t)};if("production"!==process.env.NODE_ENV){const t=To("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[o,r]=n;t.deprecated(!(o in e),o,r)}))}const{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:p,centered:f,getContainer:h,focusTriggerAfterClose:g=!0,style:m,visible:v,width:b=520,footer:y,classNames:x,styles:C,children:w,loading:S}=e,k=Wp(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),E=r("modal",l),O=r(),$=Fs(E),[N,M,I]=Vp(E,$),L=P(p,{[`${E}-centered`]:!!f,[`${E}-wrap-rtl`]:"rtl"===i}),A=null===y||S?null:o.createElement(op,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:s})),[D,T]=Od(wd(e),wd(a),{closable:!0,closeIcon:o.createElement(Os,{className:`${E}-close-icon`}),closeIconRender:e=>np(E,e)}),j=function(e){const t=o.useContext(Jd),n=o.useRef();return mi((o=>{if(o){const r=e?o.querySelector(e):o;t.add(r),n.current=r}else t.remove(n.current)}))}(`.${E}-content`),[R,_]=Qs("Modal",k.zIndex);return N(o.createElement(Cd,{form:!0,space:!0},o.createElement(Xs.Provider,{value:_},o.createElement(uu,Object.assign({width:b},k,{zIndex:R,getContainer:void 0===h?n:h,prefixCls:E,rootClassName:P(M,u,I,$),footer:A,visible:null!=d?d:v,mousePosition:null!==(t=k.mousePosition)&&void 0!==t?t:Kp,onClose:s,closable:D,closeIcon:T,focusTriggerAfterClose:g,transitionName:yl(O,"zoom",e.transitionName),maskTransitionName:yl(O,"fade",e.maskTransitionName),className:P(M,c,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),m),classNames:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.classNames),x),{wrapper:P(L,null==x?void 0:x.wrapper)}),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),C),panelRef:j}),S?o.createElement(Qd,{active:!0,title:!1,paragraph:{rows:4},className:`${E}-body-skeleton`}):w))))},Up=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% - ${Xt(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 Gp=Yi(["Modal","confirm"],(e=>{const t=Hp(e);return[Up(t)]}),Fp,{order:-1e3}),Yp=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 Qp(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:s,okCancel:l,footer:c,locale:u}=e,d=Yp(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if("production"!==process.env.NODE_ENV){const e=To("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(Ls,null);break;case"success":p=o.createElement(xs,null);break;case"error":p=o.createElement(Ss,null);break;default:p=o.createElement(Ms,null)}const f=null!=l?l:"confirm"===s,h=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[g]=Go("Modal"),m=u||g,v=r||(f?null==m?void 0:m.okText:null==m?void 0:m.justOkText),b=i||(null==m?void 0:m.cancelText),y=Object.assign({autoFocusButton:h,cancelTextLocale:b,okTextLocale:v,mergedOkCancel:f},d),x=o.useMemo((()=>y),rt(Object.values(y))),C=o.createElement(o.Fragment,null,o.createElement(_c,null),o.createElement(zc,null)),w=void 0!==e.title&&null!==e.title,S=`${a}-body`;return o.createElement("div",{className:`${a}-body-wrapper`},o.createElement("div",{className:P(S,{[`${S}-has-title`]:w})},p,o.createElement("div",{className:`${a}-paragraph`},w&&o.createElement("span",{className:`${a}-title`},e.title),o.createElement("div",{className:`${a}-content`},e.content))),void 0===c||"function"==typeof c?o.createElement(Rc,{value:x},o.createElement("div",{className:`${a}-btns`},"function"==typeof c?c(C,{OkBtn:zc,CancelBtn:_c}):C)):c,o.createElement(Gp,{prefixCls:t}))}const Zp=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:f,bodyStyle:h,closable:g=!1,closeIcon:m,modalRender:v,focusTriggerAfterClose:b,onConfirm:y,styles:x}=e;if("production"!==process.env.NODE_ENV){const t=To("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[o,r]=n;t.deprecated(!(o in e),o,r)}))}const C=`${d}-confirm`,w=e.width||416,S=e.style||{},k=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,O=P(C,`${C}-${e.type}`,{[`${C}-rtl`]:"rtl"===u},e.className),[,$]=Bi(),N=o.useMemo((()=>void 0!==n?n:$.zIndexPopupBase+1e3),[n,$]);return o.createElement(Xp,{prefixCls:d,className:O,wrapClassName:P({[`${C}-centered`]:!!e.centered},p),onCancel:()=>{null==t||t({triggerCancel:!0}),null==y||y(!1)},open:i,title:"",footer:null,transitionName:yl(f||"","zoom",e.transitionName),maskTransitionName:yl(f||"","fade",e.maskTransitionName),mask:k,maskClosable:E,style:S,styles:Object.assign({body:h,mask:c},x),width:w,zIndex:N,afterClose:r,keyboard:a,centered:s,getContainer:l,closable:g,closeIcon:m,modalRender:v,focusTriggerAfterClose:b},o.createElement(Qp,Object.assign({},e,{confirmPrefixCls:C})))},Jp=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return o.createElement(rs,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},o.createElement(Zp,Object.assign({},e)))};"production"!==process.env.NODE_ENV&&(Zp.displayName="ConfirmDialog",Jp.displayName="ConfirmDialogWrapper");const ef=[];let tf="";function nf(){return tf}const of=e=>{var t,n;const{prefixCls:o,getContainer:i,direction:a}=e,l=Xo(),c=s(ni),u=nf()||c.getPrefixCls(),d=o||`${u}-modal`;let p=i;return!1===p&&(p=void 0,"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&jo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),r.createElement(Jp,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=a?a:c.direction,locale:null!==(n=null===(t=c.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:l,getContainer:p}))};function rf(e){const t={getPrefixCls:(e,t)=>t||(e?`${ts()}-${e}`:ts()),getIconPrefixCls:ns,getRootPrefixCls:()=>Qa||ts(),getTheme:()=>Ja,holderRender:es};"production"===process.env.NODE_ENV||t.holderRender||Ga("Modal");const n=document.createDocumentFragment();let o,i=Object.assign(Object.assign({},e),{close:l,open:!0});function a(){for(var t,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var a;r.some((e=>null==e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(rt(r.slice(1)))));for(let e=0;e<ef.length;e++){if(ef[e]===l){ef.splice(e,1);break}}pl(n)}function s(e){clearTimeout(o),o=setTimeout((()=>{const o=t.getPrefixCls(void 0,nf()),i=t.getIconPrefixCls(),a=t.getTheme(),s=r.createElement(of,Object.assign({},e));ll(r.createElement(rs,{prefixCls:o,iconPrefixCls:i,theme:a},t.holderRender?t.holderRender(s):s),n)}))}function l(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,s(i)}return s(i),ef.push(l),{destroy:l,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),s(i)}}}function af(e){return Object.assign(Object.assign({},e),{type:"warning"})}function sf(e){return Object.assign(Object.assign({},e),{type:"info"})}function lf(e){return Object.assign(Object.assign({},e),{type:"success"})}function cf(e){return Object.assign(Object.assign({},e),{type:"error"})}function uf(e){return Object.assign(Object.assign({},e),{type:"confirm"})}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 pf=(e,t)=>{var n,{afterClose:r,config:i}=e,a=df(e,["afterClose","config"]);const[s,l]=o.useState(!0),[c,u]=o.useState(i),{direction:d,getPrefixCls:p}=o.useContext(ni),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(rt(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]=Go("Modal",Vo.Modal);return o.createElement(Jp,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 ff=o.forwardRef(pf);let hf=0;const gf=o.memo(o.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=o.useState([]);return[e,o.useCallback((e=>(t((t=>[].concat(rt(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return o.useImperativeHandle(t,(()=>({patchElement:r})),[]),o.createElement(o.Fragment,null,n)})));function mf(e){return t=>o.createElement(rs,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},t)))}const vf=(e,t,n,r)=>mf((i=>{const{prefixCls:a,style:s}=i,l=o.useRef(null),[c,u]=o.useState(0),[d,p]=o.useState(0),[f,h]=yi(!1,{value:i.open}),{getPrefixCls:g}=o.useContext(ni),m=g(t||"select",a);o.useEffect((()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),p(t.offsetWidth)})),t=setInterval((()=>{var o;const r=n?`.${n(m)}`:`.${m}-dropdown`,i=null===(o=l.current)||void 0===o?void 0:o.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:f,visible:f,getPopupContainer:()=>l.current});r&&(v=r(v));const b={paddingBottom:c,position:"relative",minWidth:d};return o.createElement("div",{ref:l,style:b},o.createElement(e,Object.assign({},v)))}));var bf=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))},yf=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:P(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},xf=o.createContext(null);function Cf(){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 wf=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Sf=void 0;function kf(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,f=e.children,h=e.display,g=e.order,m=e.component,v=void 0===m?"div":m,b=Nt(e,wf),y=s&&!h;function x(e){c(u,e)}o.useEffect((function(){return function(){x(null)}}),[]);var C,w=a&&i!==Sf?a(i,{index:g}):f;r||(C={opacity:y?0:1,height:y?0:Sf,overflowY:y?"hidden":Sf,order:s?g:Sf,pointerEvents:y?"none":Sf,position:y?"absolute":Sf});var S={};y&&(S["aria-hidden"]=!0);var k=o.createElement(v,L({className:P(!r&&n,d),style:Y(Y({},C),p)},S,b,{ref:t}),w);return s&&(k=o.createElement(Je,{onResize:function(e){x(e.offsetWidth)},disabled:l},k)),k}var Ef=o.forwardRef(kf);function Of(){var e=o.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)ut(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){E((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function $f(e,t){var n=ht(o.useState(t),2),r=n[0],i=n[1];return[r,mi((function(t){e((function(){i(t)}))}))]}Ef.displayName="Item";var Nf=r.createContext(null),Mf=["component"],If=["className"],Pf=["className"],Lf=function(e,t){var n=o.useContext(Nf);if(!n){var r=e.component,i=void 0===r?"div":r,a=Nt(e,Mf);return o.createElement(i,L({},a,{ref:t}))}var s=n.className,l=Nt(n,If),c=e.className,u=Nt(e,Pf);return o.createElement(Nf.Provider,{value:null},o.createElement(Ef,L({ref:t,className:P(s,c)},l,u)))},Af=o.forwardRef(Lf);Af.displayName="RawItem";var Df=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Tf="responsive",jf="invalidate";function Rf(e){return"+ ".concat(e.length," ...")}function _f(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,i=e.data,a=void 0===i?[]:i,s=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,p=e.ssr,g=e.style,m=e.className,b=e.maxCount,y=e.renderRest,x=e.renderRawRest,C=e.suffix,w=e.component,S=void 0===w?"div":w,k=e.itemComponent,E=e.onVisibleChange,O=Nt(e,Df),$="full"===p,N=Of(),M=ht($f(N,null),2),I=M[0],A=M[1],D=I||0,T=ht($f(N,new Map),2),j=T[0],R=T[1],_=ht($f(N,0),2),z=_[0],B=_[1],H=ht($f(N,0),2),F=H[0],V=H[1],W=ht($f(N,0),2),K=W[0],q=W[1],X=ht(h(null),2),U=X[0],G=X[1],Q=ht(h(null),2),Z=Q[0],J=Q[1],ee=o.useMemo((function(){return null===Z&&$?Number.MAX_SAFE_INTEGER:Z||0}),[Z,I]),te=ht(h(!1),2),ne=te[0],oe=te[1],re="".concat(r,"-item"),ie=Math.max(z,F),ae=b===Tf,se=a.length&&ae,le=b===jf,ce=se||"number"==typeof b&&a.length>b,ue=f((function(){var e=a;return se?e=null===I&&$?a:a.slice(0,Math.min(a.length,D/d)):"number"==typeof b&&(e=a.slice(0,b)),e}),[a,d,I,b,se]),de=f((function(){return se?a.slice(ee+1):a.slice(ue.length)}),[a,ue,se,ee]),pe=v((function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t}),[c]),fe=v(s||function(e){return e},[s]);function he(e,t,n){(Z!==e||void 0!==t&&t!==U)&&(J(e),n||(oe(e<a.length-1),null==E||E(e)),void 0!==t&&G(t))}function ge(e,t){R((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function me(e){return j.get(pe(ue[e],e))}Jt((function(){if(D&&"number"==typeof ie&&ue){var e=K,t=ue.length,n=t-1;if(!t)return void he(0,null);for(var o=0;o<t;o+=1){var r=me(o);if($&&(r=r||0),void 0===r){he(o-1,void 0,!0);break}if(e+=r,0===n&&e<=D||o===n-1&&e+me(n)<=D){he(n,null);break}if(e+ie>D){he(o-1,e-r-K+F);break}}C&&me(0)+K>D&&G(null)}}),[D,j,F,K,pe,ue]);var ve=ne&&!!de.length,be={};null!==U&&se&&(be={position:"absolute",left:U,top:0});var ye={prefixCls:re,responsive:se,component:k,invalidate:le},xe=l?function(e,t){var n=pe(e,t);return o.createElement(Nf.Provider,{key:n,value:Y(Y({},ye),{},{order:t,item:e,itemKey:n,registerSize:ge,display:t<=ee})},l(e,t))}:function(e,t){var n=pe(e,t);return o.createElement(Ef,L({},ye,{order:t,key:n,item:e,renderItem:fe,itemKey:n,registerSize:ge,display:t<=ee}))},Ce={order:ve?ee:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){V(t),B(F)},display:ve},we=y||Rf,Se=x?o.createElement(Nf.Provider,{value:Y(Y({},ye),Ce)},x(de)):o.createElement(Ef,L({},ye,Ce),"function"==typeof we?we(de):we),ke=o.createElement(S,L({className:P(!le&&r,m),style:g,ref:t},O),ue.map(xe),ce?Se:null,C&&o.createElement(Ef,L({},ye,{responsive:ae,responsiveDisabled:!se,order:ee,className:"".concat(re,"-suffix"),registerSize:function(e,t){q(t)},display:!0,style:be}),C));return ae?o.createElement(Je,{onResize:function(e,t){A(t.clientWidth)},disabled:!se},ke):ke}var zf=o.forwardRef(_f);zf.displayName="Overflow",zf.Item=Af,zf.RESPONSIVE=Tf,zf.INVALIDATE=jf;var Bf=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,f=e.value,h=e.maxLength,g=e.onKeyDown,m=e.onMouseDown,v=e.onChange,b=e.onPaste,y=e.onCompositionStart,x=e.onCompositionEnd,C=e.open,w=e.attrs,S=a||o.createElement("input",null),k=S,E=k.ref,O=k.props,$=O.onKeyDown,N=O.onChange,M=O.onMouseDown,I=O.onCompositionStart,L=O.onCompositionEnd,A=O.style;return H(!("maxLength"in S.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),S=o.cloneElement(S,Y(Y(Y({type:"search"},O),{},{id:i,ref:le(t,E),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:P("".concat(r,"-selection-search-input"),null===(n=S)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":C?p:void 0},w),{},{value:d?f:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:Y(Y({},A),{},{opacity:d?null:0}),onKeyDown:function(e){g(e),$&&$(e)},onMouseDown:function(e){m(e),M&&M(e)},onChange:function(e){v(e),N&&N(e)},onCompositionStart:function(e){y(e),I&&I(e)},onCompositionEnd:function(e){x(e),L&&L(e)},onPaste:b}))},Hf=o.forwardRef(Bf);function Ff(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"production"!==process.env.NODE_ENV&&(Hf.displayName="Input");var Vf="undefined"!=typeof window&&window.document&&window.document.documentElement,Wf="test"!==process.env.NODE_ENV&&Vf;function Kf(e){return["string","number"].includes(A(e))}function qf(e){var t=void 0;return e&&(Kf(e.title)?t=e.title.toString():Kf(e.label)&&(t=e.label.toString())),t}function Xf(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Uf=function(e){e.preventDefault(),e.stopPropagation()},Gf=function(e){var t,n,r=e.id,i=e.prefixCls,a=e.values,s=e.open,l=e.searchValue,c=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,p=e.disabled,f=e.mode,g=e.showSearch,m=e.autoFocus,v=e.autoComplete,b=e.activeDescendantId,y=e.tabIndex,x=e.removeIcon,C=e.maxTagCount,w=e.maxTagTextLength,S=e.maxTagPlaceholder,k=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,E=e.tagRender,O=e.onToggleOpen,$=e.onRemove,N=e.onInputChange,M=e.onInputPaste,I=e.onInputKeyDown,L=e.onInputMouseDown,A=e.onInputCompositionStart,D=e.onInputCompositionEnd,T=o.useRef(null),j=ht(h(0),2),R=j[0],_=j[1],z=ht(h(!1),2),B=z[0],H=z[1],F="".concat(i,"-selection"),V=s||"multiple"===f&&!1===c||"tags"===f?l:"",W="tags"===f||"multiple"===f&&!1===c||g&&(s||B);t=function(){_(T.current.scrollWidth)},n=[V],Wf?o.useLayoutEffect(t,n):o.useEffect(t,n);var K=function(e,t,n,r,i){return o.createElement("span",{title:qf(e),className:P("".concat(F,"-item"),U({},"".concat(F,"-item-disabled"),n))},o.createElement("span",{className:"".concat(F,"-item-content")},t),r&&o.createElement(yf,{className:"".concat(F,"-item-remove"),onMouseDown:Uf,onClick:i,customizeIcon:x},"×"))},q=function(e,t,n,r,i,a){return o.createElement("span",{onMouseDown:function(e){Uf(e),O(!s)}},E({label:t,value:e,disabled:n,closable:r,onClose:i,isMaxTag:!!a}))},X=o.createElement("div",{className:"".concat(F,"-search"),style:{width:R},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},o.createElement(Hf,{ref:u,open:s,prefixCls:i,id:r,inputElement:null,disabled:p,autoFocus:m,autoComplete:v,editable:W,activeDescendantId:b,value:V,onKeyDown:I,onMouseDown:L,onChange:N,onPaste:M,onCompositionStart:A,onCompositionEnd:D,tabIndex:y,attrs:Ts(e,!0)}),o.createElement("span",{ref:T,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},V," ")),G=o.createElement(zf,{prefixCls:"".concat(F,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!p&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>w&&(i="".concat(a.slice(0,w),"..."))}var s=function(t){t&&t.stopPropagation(),$(e)};return"function"==typeof E?q(o,i,t,r,s):K(e,i,t,r,s)},renderRest:function(e){var t="function"==typeof k?k(e):k;return"function"==typeof E?q(void 0,t,!1,!1,void 0,!0):K({title:t},t,!1)},suffix:X,itemKey:Xf,maxCount:C});return o.createElement(o.Fragment,null,G,!a.length&&!V&&o.createElement("span",{className:"".concat(F,"-placeholder")},d))},Yf=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,S=e.onInputCompositionStart,k=e.onInputCompositionEnd,E=e.title,O=ht(o.useState(!1),2),$=O[0],N=O[1],M="combobox"===u,I=M||g,P=p[0],L=m||"";M&&v&&!$&&(L=v),o.useEffect((function(){M&&N(!1)}),[M,v]);var A=!("combobox"!==u&&!d&&!g)&&!!L,D=void 0===E?qf(P):E,T=o.useMemo((function(){return P?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:A?{visibility:"hidden"}:void 0},f)}),[P,A,f,n]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(Hf,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:s,autoComplete:l,editable:I,activeDescendantId:c,value:L,onKeyDown:y,onMouseDown:x,onChange:function(e){N(!0),C(e)},onPaste:w,onCompositionStart:S,onCompositionEnd:k,tabIndex:h,attrs:Ts(e,!0),maxLength:M?b:void 0})),!M&&P?o.createElement("span",{className:"".concat(n,"-selection-item"),title:D,style:A?{visibility:"hidden"}:void 0},P.label):null,T)},Qf=function(e,t){var n=c(null),r=c(!1),i=e.prefixCls,a=e.open,s=e.mode,l=e.showSearch,u=e.tokenWithEnter,d=e.disabled,p=e.autoClearSearchValue,f=e.onSearch,h=e.onSearchSubmit,g=e.onToggleOpen,m=e.onInputKeyDown,v=e.domRef;o.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var b=ht(Cf(0),2),y=b[0],x=b[1],C=c(null),w=function(e){!1!==f(e,!0,r.current)&&g(!0)},S={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==Vs.UP&&n!==Vs.DOWN||e.preventDefault(),m&&m(e),n!==Vs.ENTER||"tags"!==s||r.current||a||null==h||h(e.target.value),t=n,[Vs.ESC,Vs.SHIFT,Vs.BACKSPACE,Vs.TAB,Vs.WIN_KEY,Vs.ALT,Vs.META,Vs.WIN_KEY_RIGHT,Vs.CTRL,Vs.SEMICOLON,Vs.EQUALS,Vs.CAPS_LOCK,Vs.CONTEXT_MENU,Vs.F1,Vs.F2,Vs.F3,Vs.F4,Vs.F5,Vs.F6,Vs.F7,Vs.F8,Vs.F9,Vs.F10,Vs.F11,Vs.F12].includes(t)||g(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(u&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");C.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==s&&w(e.target.value)}},k="multiple"===s||"tags"===s?o.createElement(Gf,L({},e,S)):o.createElement(Yf,L({},e,S));return o.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=y();e.target===n.current||t||"combobox"===s&&d||e.preventDefault(),("combobox"===s||l&&t)&&a||(a&&!1!==p&&f("",!0,!1),g())}},k)},Zf=o.forwardRef(Qf);function Jf(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,f=o.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],m=n.points[1],v=g[0],b=g[1],y=m[0],x=m[1];v!==y&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=p,b!==x&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return o.createElement("div",{ref:f,className:P("".concat(t,"-arrow"),s),style:h},l)}function eh(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?o.createElement(Da,L({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return o.createElement("div",{style:{zIndex:r},className:P("".concat(t,"-mask"),n)})})):null}"production"!==process.env.NODE_ENV&&(Zf.displayName="Selector");var th=o.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(th.displayName="PopupContent");var nh=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,f=e.mask,h=e.arrow,g=e.arrowPos,m=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,C=e.autoDestroy,w=e.portal,S=e.zIndex,k=e.onMouseEnter,E=e.onMouseLeave,O=e.onPointerEnter,$=e.onPointerDownCapture,N=e.ready,M=e.offsetX,I=e.offsetY,A=e.offsetR,D=e.offsetB,T=e.onAlign,j=e.onPrepare,R=e.stretch,_=e.targetWidth,z=e.targetHeight,B="function"==typeof n?n():n,H=c||u,F=(null==x?void 0:x.length)>0,V=ht(o.useState(!x||!F),2),W=V[0],K=V[1];if(Jt((function(){!W&&F&&s&&K(!0)}),[W,F,s]),!W)return null;var q="auto",X={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(N||!c){var U,G=m.points,Q=m.dynamicInset||(null===(U=m._experimental)||void 0===U?void 0:U.dynamicInset),Z=Q&&"r"===G[0][1],J=Q&&"b"===G[0][0];Z?(X.right=A,X.left=q):(X.left=M,X.right=q),J?(X.bottom=D,X.top=q):(X.top=I,X.bottom=q)}var ee={};return R&&(R.includes("height")&&z?ee.height=z:R.includes("minHeight")&&z&&(ee.minHeight=z),R.includes("width")&&_?ee.width=_:R.includes("minWidth")&&_&&(ee.minWidth=_)),c||(ee.pointerEvents="none"),o.createElement(w,{open:y||H,getContainer:x&&function(){return x(s)},autoDestroy:C},o.createElement(eh,{prefixCls:i,open:c,zIndex:S,mask:f,motion:b}),o.createElement(Je,{onResize:T,disabled:!c},(function(e){return o.createElement(Da,L({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:j,onEnterPrepare:j,visible:c,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),l(e)}}),(function(n,s){var l=n.className,u=n.style,f=P(i,l,r);return o.createElement("div",{ref:le(e,t,s),className:f,style:Y(Y(Y(Y({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},X),ee),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:k,onMouseLeave:E,onPointerEnter:O,onClick:p,onPointerDownCapture:$},h&&o.createElement(Jf,{prefixCls:i,arrow:h,arrowPos:g,align:m}),o.createElement(th,{cache:!c&&!d},B))}))})))}));"production"!==process.env.NODE_ENV&&(nh.displayName="Popup");var oh=o.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=ue(n),a=o.useCallback((function(e){se(t,r?r(e):e)}),[r]),s=ce(a,pe(n));return i?o.cloneElement(n,{ref:s}):n}));"production"!==process.env.NODE_ENV&&(oh.displayName="TriggerWrapper");var rh=o.createContext(null);function ih(e){return e?Array.isArray(e)?e:[e]:[]}function ah(){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 sh(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function lh(e){return e.ownerDocument.defaultView}function ch(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=lh(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 uh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function dh(e){return uh(parseFloat(e),0)}function ph(e,t){var n=Y({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=lh(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=dh(i),g=dh(a),m=dh(s),v=dh(l),b=uh(Math.round(c.width/p*1e3)/1e3),y=uh(Math.round(c.height/u*1e3)/1e3),x=(p-f-m-v)*b,C=(u-d-h-g)*y,w=h*y,S=g*y,k=m*b,E=v*b,O=0,$=0;if("clip"===o){var N=dh(r);O=N*b,$=N*y}var M=c.x+k-O,I=c.y+w-$,P=M+c.width+2*O-k-E-x,L=I+c.height+2*$-w-S-C;n.left=Math.max(n.left,M),n.top=Math.max(n.top,I),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,L)}})),n}function fh(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 hh(e,t){var n=ht(t||[],2),o=n[0],r=n[1];return[fh(e.width,o),fh(e.height,r)]}function gh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function mh(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 vh(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 bh=["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 yh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yc,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,f=t.onPopupVisibleChange,h=t.afterPopupVisibleChange,g=t.mouseEnterDelay,m=t.mouseLeaveDelay,v=void 0===m?.1:m,b=t.focusDelay,y=t.blurDelay,x=t.mask,C=t.maskClosable,w=void 0===C||C,S=t.getPopupContainer,k=t.forceRender,E=t.autoDestroy,O=t.destroyPopupOnHide,$=t.popup,N=t.popupClassName,M=t.popupStyle,I=t.popupPlacement,L=t.builtinPlacements,A=void 0===L?{}:L,D=t.popupAlign,T=t.zIndex,j=t.stretch,R=t.getPopupClassNameFromAlign,_=t.fresh,z=t.alignPoint,B=t.onPopupClick,F=t.onPopupAlign,V=t.arrow,W=t.popupMotion,K=t.maskMotion,q=t.popupTransitionName,X=t.popupAnimation,U=t.maskTransitionName,G=t.maskAnimation,Z=t.className,J=t.getTriggerDOMNode,ee=Nt(t,bh),te=E||O||!1,ne=ht(o.useState(!1),2),oe=ne[0],re=ne[1];Jt((function(){re(bf())}),[]);var ie=o.useRef({}),ae=o.useContext(rh),se=o.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),le=eu(),ce=ht(o.useState(null),2),ue=ce[0],de=ce[1],pe=o.useRef(null),fe=mi((function(e){pe.current=e,Q(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(le,e)})),he=ht(o.useState(null),2),ge=he[0],me=he[1],ve=o.useRef(null),be=mi((function(e){Q(e)&&ge!==e&&(me(e),ve.current=e)})),ye=o.Children.only(a),xe=(null==ye?void 0:ye.props)||{},Ce={},we=mi((function(e){var t,n,o=ge;return(null==o?void 0:o.contains(e))||(null===(t=ss(o))||void 0===t?void 0:t.host)===e||e===o||(null==ue?void 0:ue.contains(e))||(null===(n=ss(ue))||void 0===n?void 0:n.host)===e||e===ue||Object.values(ie.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Se=sh(i,W,X,q),ke=sh(i,K,G,U),Ee=ht(o.useState(p||!1),2),Oe=Ee[0],$e=Ee[1],Ne=null!=d?d:Oe,Me=mi((function(e){void 0===d&&$e(e)}));Jt((function(){$e(d||!1)}),[d]);var Ie=o.useRef(Ne);Ie.current=Ne;var Pe=o.useRef([]);Pe.current=[];var Le=mi((function(e){var t;Me(e),(null!==(t=Pe.current[Pe.current.length-1])&&void 0!==t?t:Ne)!==e&&(Pe.current.push(e),null==f||f(e))})),Ae=o.useRef(),De=function(){clearTimeout(Ae.current)},Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;De(),0===t?Le(e):Ae.current=setTimeout((function(){Le(e)}),1e3*t)};o.useEffect((function(){return De}),[]);var je=ht(o.useState(!1),2),Re=je[0],_e=je[1];Jt((function(e){e&&!Ne||_e(!0)}),[Ne]);var ze=ht(o.useState(null),2),Be=ze[0],He=ze[1],Fe=ht(o.useState(null),2),Ve=Fe[0],We=Fe[1],Ke=function(e){We([e.clientX,e.clientY])},qe=function(e,t,n,r,i,a,s){var l=ht(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?ch(t):[]}),[t]),f=o.useRef({});e||(f.current={});var h=mi((function(){if(t&&n&&e){var o,l,c,d,h,g=t,m=g.ownerDocument,v=lh(g).getComputedStyle(g),b=v.width,y=v.height,x=v.position,C=g.style.left,w=g.style.top,S=g.style.right,k=g.style.bottom,E=g.style.overflow,O=Y(Y({},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 N,M,I=n.getBoundingClientRect();I.x=null!==(N=I.x)&&void 0!==N?N:I.left,I.y=null!==(M=I.y)&&void 0!==M?M:I.top,h={x:I.x,y:I.y,width:I.width,height:I.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 L=m.documentElement,A=L.clientWidth,D=L.clientHeight,T=L.scrollWidth,j=L.scrollHeight,R=L.scrollTop,_=L.scrollLeft,z=P.height,B=P.width,H=h.height,F=h.width,V={left:0,top:0,right:A,bottom:D},W={left:-_,top:-R,right:T-_,bottom:j-R},K=O.htmlRegion,q="visible",X="visibleFirst";"scroll"!==K&&K!==X&&(K=q);var U=K===X,G=ph(W,p),Z=ph(V,p),J=K===q?Z:G,ee=U?Z: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=S,g.style.bottom=k,g.style.overflow=E,null===(d=g.parentElement)||void 0===d||d.removeChild($);var ne=uh(Math.round(B/parseFloat(b)*1e3)/1e3),oe=uh(Math.round(z/parseFloat(y)*1e3)/1e3);if(0===ne||0===oe||Q(n)&&!xl(n))return;var re=O.offset,ie=O.targetOffset,ae=ht(hh(P,re),2),se=ae[0],le=ae[1],ce=ht(hh(h,ie),2),ue=ce[0],de=ce[1];h.x-=ue,h.y-=de;var pe=ht(O.points||[],2),fe=pe[0],he=gh(pe[1]),ge=gh(fe),me=mh(h,he),ve=mh(P,ge),be=Y({},O),ye=me.x-ve.x+se,xe=me.y-ve.y+le;function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,o=P.x+e,r=P.y+t,i=o+B,a=r+z,s=Math.max(o,n.left),l=Math.max(r,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var Ce,we,Se,ke,Ee=ft(ye,xe),Oe=ft(ye,xe,Z),$e=mh(h,["t","l"]),Ne=mh(P,["t","l"]),Me=mh(h,["b","r"]),Ie=mh(P,["b","r"]),Pe=O.overflow||{},Le=Pe.adjustX,Ae=Pe.adjustY,De=Pe.shiftX,Te=Pe.shiftY,je=function(e){return"boolean"==typeof e?e:e>=0};function gt(){Ce=P.y+xe,we=Ce+z,Se=P.x+ye,ke=Se+B}gt();var Re=je(Ae),_e=ge[0]===he[0];if(Re&&"t"===ge[0]&&(we>ee.bottom||f.current.bt)){var ze=xe;_e?ze-=z-H:ze=$e.y-Ie.y-le;var Be=ft(ye,ze),He=ft(ye,ze,Z);Be>Ee||Be===Ee&&(!U||He>=Oe)?(f.current.bt=!0,xe=ze,le=-le,be.points=[vh(ge,0),vh(he,0)]):f.current.bt=!1}if(Re&&"b"===ge[0]&&(Ce<ee.top||f.current.tb)){var Fe=xe;_e?Fe+=z-H:Fe=Me.y-Ne.y-le;var Ve=ft(ye,Fe),We=ft(ye,Fe,Z);Ve>Ee||Ve===Ee&&(!U||We>=Oe)?(f.current.tb=!0,xe=Fe,le=-le,be.points=[vh(ge,0),vh(he,0)]):f.current.tb=!1}var Ke=je(Le),qe=ge[1]===he[1];if(Ke&&"l"===ge[1]&&(ke>ee.right||f.current.rl)){var Xe=ye;qe?Xe-=B-F:Xe=$e.x-Ie.x-se;var Ue=ft(Xe,xe),Ge=ft(Xe,xe,Z);Ue>Ee||Ue===Ee&&(!U||Ge>=Oe)?(f.current.rl=!0,ye=Xe,se=-se,be.points=[vh(ge,1),vh(he,1)]):f.current.rl=!1}if(Ke&&"r"===ge[1]&&(Se<ee.left||f.current.lr)){var Ye=ye;qe?Ye+=B-F:Ye=Me.x-Ne.x-se;var Qe=ft(Ye,xe),Ze=ft(Ye,xe,Z);Qe>Ee||Qe===Ee&&(!U||Ze>=Oe)?(f.current.lr=!0,ye=Ye,se=-se,be.points=[vh(ge,1),vh(he,1)]):f.current.lr=!1}gt();var Je=!0===De?0:De;"number"==typeof Je&&(Se<Z.left&&(ye-=Se-Z.left-se,h.x+F<Z.left+Je&&(ye+=h.x-Z.left+F-Je)),ke>Z.right&&(ye-=ke-Z.right-se,h.x>Z.right-Je&&(ye+=h.x-Z.right+Je)));var et=!0===Te?0:Te;"number"==typeof et&&(Ce<Z.top&&(xe-=Ce-Z.top-le,h.y+H<Z.top+et&&(xe+=h.y-Z.top+H-et)),we>Z.bottom&&(xe-=we-Z.bottom-le,h.y>Z.bottom-et&&(xe+=h.y-Z.bottom+et)));var tt=P.x+ye,nt=tt+B,ot=P.y+xe,rt=ot+z,it=h.x,at=it+F,st=h.y,lt=st+H,ct=(Math.max(tt,it)+Math.min(nt,at))/2-tt,ut=(Math.max(ot,st)+Math.min(rt,lt))/2-ot;null==s||s(t,be);var dt=te.right-P.x-(ye+P.width),pt=te.bottom-P.y-(xe+P.height);1===ne&&(ye=Math.round(ye),dt=Math.round(dt)),1===oe&&(xe=Math.round(xe),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:xe/oe,offsetR:dt/ne,offsetB:pt/oe,arrowX:ct/ne,arrowY:ut/oe,scaleX:ne,scaleY:oe,align:be})}})),g=function(){u((function(e){return Y(Y({},e),{},{ready:!1})}))};return Jt(g,[r]),Jt((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()}))}]}(Ne,ue,z&&null!==Ve?Ve:ge,I,A,D,F),Xe=ht(qe,11),Ue=Xe[0],Ge=Xe[1],Ye=Xe[2],Qe=Xe[3],Ze=Xe[4],et=Xe[5],tt=Xe[6],nt=Xe[7],ot=Xe[8],it=Xe[9],at=Xe[10],st=function(e,t,n,r){return o.useMemo((function(){var o=ih(null!=n?n:t),i=ih(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),lt=ht(st,2),ct=lt[0],ut=lt[1],dt=ct.has("click"),pt=ut.has("click")||ut.has("contextMenu"),ft=mi((function(){Re||at()}));!function(e,t,n,o,r){Jt((function(){if(e&&t&&n){var i=n,a=ch(t),s=ch(i),l=lh(i),c=new Set([l].concat(rt(a),rt(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,ft,(function(){Ie.current&&z&&pt&&Te(!1)})),Jt((function(){ft()}),[Ve,I]),Jt((function(){!Ne||null!=A&&A[I]||ft()}),[JSON.stringify(D)]);var gt=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(ah(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(A,i,it,z);return P(e,null==R?void 0:R(it))}),[it,R,A,i,z]);o.useImperativeHandle(n,(function(){return{nativeElement:ve.current,popupElement:pe.current,forceAlign:ft}}));var mt=ht(o.useState(0),2),vt=mt[0],bt=mt[1],yt=ht(o.useState(0),2),xt=yt[0],Ct=yt[1],wt=function(){if(j&&ge){var e=ge.getBoundingClientRect();bt(e.width),Ct(e.height)}};function St(e,t,n,o){Ce[e]=function(r){var i;null==o||o(r),Te(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))}}Jt((function(){Be&&(at(),Be(),He(null))}),[Be]),(dt||pt)&&(Ce.onClick=function(e){var t;Ie.current&&pt?Te(!1):!Ie.current&&dt&&(Ke(e),Te(!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))});var kt,Et,Ot=function(e,t,n,r,i,a,s,l){var c=o.useRef(e);c.current=e;var u=o.useRef(!1);return o.useEffect((function(){if(t&&r&&(!i||a)){var e=function(){u.current=!1},o=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)||u.current||l(!1)},d=lh(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",o,!0),d.addEventListener("contextmenu",o,!0);var p,f,h=ss(n);return h&&(h.addEventListener("mousedown",o,!0),h.addEventListener("contextmenu",o,!0)),"production"!==process.env.NODE_ENV&&H((null==n||null===(p=n.getRootNode)||void 0===p?void 0:p.call(n))===(null===(f=r.getRootNode)||void 0===f?void 0:f.call(r)),"trigger element and popup element should in same shadow root."),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",o,!0),d.removeEventListener("contextmenu",o,!0),h&&(h.removeEventListener("mousedown",o,!0),h.removeEventListener("contextmenu",o,!0))}}}),[t,n,r,i,a]),function(){u.current=!0}}(Ne,pt,ge,ue,x,w,we,Te),$t=ct.has("hover"),Mt=ut.has("hover");$t&&(St("onMouseEnter",!0,g,(function(e){Ke(e)})),St("onPointerEnter",!0,g,(function(e){Ke(e)})),kt=function(e){(Ne||Re)&&null!=ue&&ue.contains(e.target)&&Te(!0,g)},z&&(Ce.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),Mt&&(St("onMouseLeave",!1,v),St("onPointerLeave",!1,v),Et=function(){Te(!1,v)}),ct.has("focus")&&St("onFocus",!0,b),ut.has("focus")&&St("onBlur",!1,y),ct.has("contextMenu")&&(Ce.onContextMenu=function(e){var t;Ie.current&&ut.has("contextMenu")?Te(!1):(Ke(e),Te(!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))}),Z&&(Ce.className=P(xe.className,Z));var It=Y(Y({},xe),Ce),Pt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ee[e]&&(Pt[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=It[e])||void 0===t||t.call.apply(t,[It].concat(o)),ee[e].apply(ee,o)})}));var Lt=o.cloneElement(ye,Y(Y({},It),Pt)),At={x:et,y:tt},Dt=V?Y({},!0!==V?V:{}):null;return o.createElement(o.Fragment,null,o.createElement(Je,{disabled:!Ne,ref:be,onResize:function(){wt(),ft()}},o.createElement(oh,{getTriggerDOMNode:J},Lt)),o.createElement(rh.Provider,{value:se},o.createElement(nh,{portal:e,ref:fe,prefixCls:i,popup:$,className:P(N,gt),style:M,target:ge,onMouseEnter:kt,onMouseLeave:Et,onPointerEnter:kt,zIndex:T,open:Ne,keepDom:Re,fresh:_,onClick:B,onPointerDownCapture:Ot,mask:x,motion:Se,maskMotion:ke,onVisibleChanged:function(e){_e(!1),at(),null==h||h(e)},onPrepare:function(){return new Promise((function(e){wt(),He((function(){return e}))}))},forceRender:k,autoDestroy:te,getPopupContainer:S,align:it,arrow:Dt,arrowPos:At,ready:Ue,offsetX:Ge,offsetY:Ye,offsetR:Qe,offsetB:Ze,onAlign:ft,stretch:j,targetWidth:vt/nt,targetHeight:xt/ot})))}));return"production"!==process.env.NODE_ENV&&(t.displayName="Trigger"),t}(Yc),xh=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ch=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,f=e.placement,h=e.builtinPlacements,g=e.dropdownMatchSelectWidth,m=e.dropdownRender,v=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,C=e.onPopupVisibleChange,w=e.onPopupMouseEnter,S=Nt(e,xh),k="".concat(n,"-dropdown"),E=a;m&&(E=m(a));var O=o.useMemo((function(){return h||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"}}}(g)}),[h,g]),$=s?"".concat(k,"-").concat(s):l,N="number"==typeof g,M=o.useMemo((function(){return N?null:!1===g?"minWidth":"width"}),[g,N]),I=c;N&&(I=Y(Y({},I),{},{width:g}));var A=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=A.current)||void 0===e?void 0:e.popupElement}}})),o.createElement(yh,L({},S,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:f||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:k,popupTransitionName:$,popup:o.createElement("div",{onMouseEnter:w},E),ref:A,stretch:M,popupAlign:v,popupVisible:r,getPopupContainer:b,popupClassName:P(u,U({},"".concat(k,"-empty"),y)),popupStyle:I,getTriggerDOMNode:x,onPopupVisibleChange:C}),i)},wh=o.forwardRef(Ch);function Sh(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 kh(e){return void 0!==e&&!Number.isNaN(e)}function Eh(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=Y({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return K(!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&&(wh.displayName="SelectTrigger");var $h=o.createContext(null);function Nh(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(A(t))?t:n})).join(", ")),n.length>50?", ...":null)}var Mh=["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"],Ih=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ph=function(e){return"tags"===e||"multiple"===e},Lh=o.forwardRef((function(e,t){var n,i=e.id,a=e.prefixCls,s=e.className,l=e.showSearch,c=e.tagRender,u=e.direction,d=e.omitDomProps,p=e.displayValues,f=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,m=void 0===g?"Not Found":g,v=e.onClear,b=e.mode,y=e.disabled,x=e.loading,C=e.getInputElement,w=e.getRawInputElement,S=e.open,k=e.defaultOpen,E=e.onDropdownVisibleChange,O=e.activeValue,$=e.onActiveValueChange,N=e.activeDescendantId,M=e.searchValue,I=e.autoClearSearchValue,D=e.onSearch,T=e.onSearchSplit,j=e.tokenSeparators,R=e.allowClear,_=e.suffixIcon,z=e.clearIcon,B=e.OptionList,H=e.animation,F=e.transitionName,V=e.dropdownStyle,W=e.dropdownClassName,K=e.dropdownMatchSelectWidth,q=e.dropdownRender,X=e.dropdownAlign,G=e.placement,Q=e.builtinPlacements,Z=e.getPopupContainer,J=e.showAction,ee=void 0===J?[]:J,te=e.onFocus,ne=e.onBlur,oe=e.onKeyUp,re=e.onKeyDown,ie=e.onMouseDown,ae=Nt(e,Mh),se=Ph(b),le=(void 0!==l?l:se)||"combobox"===b,ue=Y({},ae);Ih.forEach((function(e){delete ue[e]})),null==d||d.forEach((function(e){delete ue[e]}));var de=ht(o.useState(!1),2),pe=de[0],fe=de[1];o.useEffect((function(){fe(bf())}),[]);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=ht(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=ht(xe,3),we=Ce[0],Se=Ce[1],ke=Ce[2];o.useImperativeHandle(t,(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 Ee=o.useMemo((function(){var e;if("combobox"!==b)return M;var t=null===(e=p[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[M,b,p]),Oe="combobox"===b&&"function"==typeof C&&C()||null,$e="function"==typeof w&&w(),Ne=ce(ge,null==$e||null===(n=$e.props)||void 0===n?void 0:n.ref),Me=ht(o.useState(!1),2),Ie=Me[0],Pe=Me[1];Jt((function(){Pe(!0)}),[]);var Le=ht(yi(!1,{defaultValue:k,value:S}),2),Ae=Le[0],De=Le[1],Te=!!Ie&&Ae,je=!m&&h;(y||je&&Te&&"combobox"===b)&&(Te=!1);var Re=!je&&Te,_e=o.useCallback((function(e){var t=void 0!==e?e:!Te;y||(De(t),Te!==t&&(null==E||E(t)))}),[y,Te,De,E]),ze=o.useMemo((function(){return(j||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[j]),Be=o.useContext($h)||{},He=Be.maxCount,Fe=Be.rawValues,Ve=function(e,t,n){if(!(se&&kh(He)&&(null==Fe?void 0:Fe.size)>=He)){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=ko(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(rt(t),rt(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null}(e,j,kh(He)?He-Fe.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(r="",null==T||T(a),_e(!1),o=!1),D&&Ee!==r&&D(r,{source:t?"typing":"effect"}),o}};o.useEffect((function(){Te||se||"combobox"===b||Ve("",!1,!1)}),[Te]),o.useEffect((function(){Ae&&y&&De(!1),y&&!ye.current&&Se(!1)}),[y]);var We=ht(Cf(),2),Ke=We[0],qe=We[1],Xe=o.useRef(!1),Ue=o.useRef(!1),Ge=[];o.useEffect((function(){return function(){Ge.forEach((function(e){return clearTimeout(e)})),Ge.splice(0,Ge.length)}}),[]);var Ye,Qe=ht(o.useState({}),2)[1];$e&&(Ye=function(e){_e(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()]}),Re,_e,!!$e);var Ze,Je=o.useMemo((function(){return Y(Y({},e),{},{notFoundContent:m,open:Te,triggerOpen:Re,id:i,showSearch:le,multiple:se,toggleOpen:_e})}),[e,m,Re,Te,i,le,se,_e]),et=!!_||x;et&&(Ze=o.createElement(yf,{className:P("".concat(a,"-arrow"),U({},"".concat(a,"-arrow-loading"),x)),customizeIcon:_,customizeIconProps:{loading:x,searchValue:Ee,open:Te,focused:we,showSearch:le}}));var tt,nt=function(e,t,n,o,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=r.useMemo((function(){return"object"===A(o)?o.clearIcon:i||void 0}),[o,i]);return{allowClear:r.useMemo((function(){return!(a||!o||!n.length&&!s||"combobox"===l&&""===s)}),[o,a,n.length,s,l]),clearIcon:r.createElement(yf,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(a,(function(){var e;null==v||v(),null===(e=ve.current)||void 0===e||e.focus(),f([],{type:"clear",values:p}),Ve("",!1,!1)}),p,R,z,y,Ee,b),ot=nt.allowClear,it=nt.clearIcon,at=o.createElement(B,{ref:be}),st=P(a,s,U(U(U(U(U(U(U(U(U(U({},"".concat(a,"-focused"),we),"".concat(a,"-multiple"),se),"".concat(a,"-single"),!se),"".concat(a,"-allow-clear"),R),"".concat(a,"-show-arrow"),et),"".concat(a,"-disabled"),y),"".concat(a,"-loading"),x),"".concat(a,"-open"),Te),"".concat(a,"-customize-input"),Oe),"".concat(a,"-show-search"),le)),lt=o.createElement(wh,{ref:me,disabled:y,prefixCls:a,visible:Re,popupElement:at,animation:H,transitionName:F,dropdownStyle:V,dropdownClassName:W,direction:u,dropdownMatchSelectWidth:K,dropdownRender:q,dropdownAlign:X,placement:G,builtinPlacements:Q,getPopupContainer:Z,empty:h,getTriggerDOMNode:function(e){return ge.current||e},onPopupVisibleChange:Ye,onPopupMouseEnter:function(){Qe({})}},$e?o.cloneElement($e,{ref:Ne}):o.createElement(Zf,L({},e,{domRef:ge,prefixCls:a,inputElement:Oe,ref:ve,id:i,showSearch:le,autoClearSearchValue:I,mode:b,activeDescendantId:N,tagRender:c,values:p,open:Te,onToggleOpen:_e,activeValue:O,searchValue:Ee,onSearch:Ve,onSearchSubmit:function(e){e&&e.trim()&&D(e,{source:"submit"})},onRemove:function(e){var t=p.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:ze})));return tt=$e?lt:o.createElement("div",L({className:st},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=Ge.indexOf(r);-1!==t&&Ge.splice(t,1),ke(),pe||o.contains(document.activeElement)||null===(e=ve.current)||void 0===e||e.focus()}));Ge.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==ie||ie.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ke(),o=e.key,r="Enter"===o;if(r&&("combobox"!==b&&e.preventDefault(),Te||_e(!0)),qe(!!Ee),"Backspace"===o&&!n&&se&&!Ee&&p.length){for(var i=rt(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&&f(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&&Xe.current||null===(t=be.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),r&&(Xe.current=!0),null==re||re.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&&(Xe.current=!1),null==oe||oe.apply(void 0,[e].concat(n))},onFocus:function(){Se(!0),y||(te&&!Ue.current&&te.apply(void 0,arguments),ee.includes("focus")&&_e(!0)),Ue.current=!0},onBlur:function(){ye.current=!0,Se(!1,(function(){Ue.current=!1,ye.current=!1,_e(!1)})),y||(Ee&&("tags"===b?D(Ee,{source:"submit"}):"multiple"===b&&D("",{source:"blur"})),ne&&ne.apply(void 0,arguments))}}),o.createElement(Nh,{visible:we&&!Te,values:p}),lt,Ze,ot&&it),o.createElement(xf.Provider,{value:Je},tt)}));"production"!==process.env.NODE_ENV&&(Lh.displayName="BaseSelect");var Ah=function(){return null};Ah.isSelectOptGroup=!0;var Dh=function(){return null};Dh.isSelectOption=!0;var Th=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={},f={display:"flex",flexDirection:"column"};return void 0!==r&&(p={height:n,position:"relative",overflow:"hidden"},f=Y(Y({},f),{},U(U(U(U(U({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),o.createElement("div",{style:p},o.createElement(Je,{onResize:function(e){e.offsetHeight&&l&&l()}},o.createElement("div",L({style:f,className:P(U({},"".concat(s,"-holder-inner"),s)),ref:t},c),a,d)))}));function jh(e){var t=e.children,n=e.setRef,r=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:r})}function Rh(e,t,n){var r=ht(o.useState(e),2),i=r[0],a=r[1],s=ht(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]}Th.displayName="Filler";var _h="object"===("undefined"==typeof navigator?"undefined":A(navigator))&&/Firefox/i.test(navigator.userAgent),zh=function(e,t,n,o){var r=c(!1),i=c(null);var a=c({top:e,bottom:t,left:n,right:o});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return n&&o?(clearTimeout(i.current),r.current=!1):o&&!r.current||(clearTimeout(i.current),r.current=!0,i.current=setTimeout((function(){r.current=!1}),50)),!r.current&&o}};function Bh(e,t,n,o,r,i,a){var s=c(0),l=c(null),u=c(null),d=c(!1),p=zh(t,n,o,r);var f=c(null),h=c(null);return[function(t){if(e){ut.cancel(h.current),h.current=ut((function(){f.current=null}),2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,c=n,g=o;("sx"===f.current||!f.current&&r&&o&&!n)&&(c=o,g=0,f.current="sx");var m=Math.abs(c),v=Math.abs(g);null===f.current&&(f.current=i&&m>v?"x":"y"),"y"===f.current?function(e,t){if(ut.cancel(l.current),!p(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,u.current=t,_h||n.preventDefault(),l.current=ut((function(){var e=d.current?10:1;a(s.current*e,!1),s.current=0})))}}(t,g):function(e,t){a(t,!0),_h||e.preventDefault()}(t,c)}},function(t){e&&(d.current=t.detail===u.current)}]}var Hh=function(){function e(){ze(this,e),U(this,"maps",void 0),U(this,"id",0),U(this,"diffKeys",new Set),this.maps=Object.create(null)}return He(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1,this.diffKeys.add(e)}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}();function Fh(e){var t=parseFloat(e);return isNaN(t)?0:t}var Vh=14/15;function Wh(e){return Math.floor(Math.pow(e,.5))}function Kh(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var qh=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,f=e.style,h=e.thumbStyle,g=e.showScrollBar,m=ht(o.useState(!1),2),v=m[0],b=m[1],y=ht(o.useState(null),2),x=y[0],C=y[1],w=ht(o.useState(null),2),S=w[0],k=w[1],E=!r,O=o.useRef(),$=o.useRef(),N=ht(o.useState(g),2),M=N[0],I=N[1],L=o.useRef(),A=function(){!0!==g&&!1!==g&&(clearTimeout(L.current),I(!0),L.current=setTimeout((function(){I(!1)}),3e3))},D=a-p||0,T=p-d||0,j=o.useMemo((function(){return 0===i||0===D?0:i/D*T}),[i,D,T]),R=o.useRef({top:j,dragging:v,pageY:x,startTop:S});R.current={top:j,dragging:v,pageY:x,startTop:S};var _=function(e){b(!0),C(Kh(e,u)),k(R.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",_,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",_)}}),[]);var z=o.useRef();z.current=D;var B=o.useRef();B.current=T,o.useEffect((function(){if(v){var e,t=function(t){var n=R.current,o=n.dragging,r=n.pageY,i=n.startTop;ut.cancel(e);var a=O.current.getBoundingClientRect(),s=p/(u?a.width:a.height);if(o){var l=(Kh(t,u)-r)*s,d=i;!E&&u?d-=l:d+=l;var f=z.current,h=B.current,g=h?d/h:0,m=Math.ceil(g*f);m=Math.max(m,0),m=Math.min(m,f),e=ut((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),ut.cancel(e)}}}),[v]),o.useEffect((function(){return A(),function(){clearTimeout(L.current)}}),[i]),o.useImperativeHandle(t,(function(){return{delayHidden:A}}));var H="".concat(n,"-scrollbar"),F={position:"absolute",visibility:M?null:"hidden"},V={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(F.height=8,F.left=0,F.right=0,F.bottom=0,V.height="100%",V.width=d,E?V.left=j:V.right=j):(F.width=8,F.top=0,F.bottom=0,E?F.right=0:F.left=0,V.width="100%",V.height=d,V.top=j),o.createElement("div",{ref:O,className:P(H,U(U(U({},"".concat(H,"-horizontal"),u),"".concat(H,"-vertical"),!u),"".concat(H,"-visible"),M)),style:Y(Y({},F),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:A},o.createElement("div",{ref:$,className:P("".concat(H,"-thumb"),U({},"".concat(H,"-thumb-moving"),v)),style:Y(Y({},V),h),onMouseDown:_}))}));"production"!==process.env.NODE_ENV&&(qh.displayName="ScrollBar");function Xh(){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,20),Math.floor(t)}var Uh=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Gh=[],Yh={overflowY:"auto",overflowAnchor:"none"};function Qh(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,i=e.className,a=e.height,s=e.itemHeight,l=e.fullHeight,u=void 0===l||l,p=e.style,f=e.data,g=e.children,m=e.itemKey,v=e.virtual,b=e.direction,y=e.scrollWidth,x=e.component,C=void 0===x?"div":x,w=e.onScroll,S=e.onVirtualScroll,k=e.onVisibleChange,E=e.innerProps,$=e.extraRender,N=e.styles,M=e.showScrollBar,I=void 0===M?"optional":M,D=Nt(e,Uh),T=o.useCallback((function(e){return"function"==typeof m?m(e):null==e?void 0:e[m]}),[m]),j=function(e){var t=ht(o.useState(0),2),n=t[0],r=t[1],i=c(new Map),a=c(new Hh),s=c(0);function l(){s.current+=1}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l();var t=function(){var e=!1;i.current.forEach((function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,r=getComputedStyle(t),i=r.marginTop,s=r.marginBottom,l=o+Fh(i)+Fh(s);a.current.get(n)!==l&&(a.current.set(n,l),e=!0)}})),e&&r((function(e){return e+1}))};if(e)t();else{s.current+=1;var n=s.current;Promise.resolve().then((function(){n===s.current&&t()}))}}return d((function(){return l}),[]),[function(t,n){var o=e(t);i.current.get(o),n?(i.current.set(o,n),u()):i.current.delete(o)},u,a.current,n]}(T),R=ht(j,4),_=R[0],z=R[1],B=R[2],H=R[3],F=!(!1===v||!a||!s),V=o.useMemo((function(){return Object.values(B.maps).reduce((function(e,t){return e+t}),0)}),[B.id,B.maps]),W=F&&f&&(Math.max(s*f.length,V)>a||!!y),q="rtl"===b,X=P(r,U({},"".concat(r,"-rtl"),q),i),G=f||Gh,Q=c(),Z=c(),J=c(),ee=ht(h(0),2),te=ee[0],ne=ee[1],oe=ht(h(0),2),re=oe[0],ie=oe[1],ae=ht(h(!1),2),se=ae[0],le=ae[1],ce=function(){le(!0)},ue=function(){le(!1)},de={getKey:T};function pe(e){ne((function(t){var n=function(e){var t=e;Number.isNaN(Me.current)||(t=Math.min(t,Me.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return Q.current.scrollTop=n,n}))}var fe=c({start:0,end:G.length}),he=c(),ge=ht(Rh(G,T),1)[0];he.current=ge;var me=o.useMemo((function(){if(!F)return{scrollHeight:void 0,start:0,end:G.length-1,offset:void 0};var e;if(!W)return{scrollHeight:(null===(e=Z.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:G.length-1,offset:void 0};for(var t,n,o,r=0,i=G.length,l=0;l<i;l+=1){var c=G[l],u=T(c),d=B.get(u),p=r+(void 0===d?s:d);p>=te&&void 0===t&&(t=l,n=r),p>te+a&&void 0===o&&(o=l),r=p}return void 0===t&&(t=0,n=0,o=Math.ceil(a/s)),void 0===o&&(o=G.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,G.length-1),offset:n}}),[W,F,te,G,H,a]),ve=me.scrollHeight,be=me.start,ye=me.end,xe=me.offset;fe.current.start=be,fe.current.end=ye,o.useLayoutEffect((function(){var e=B.getRecord();if(1===e.size){var t=Array.from(e)[0],n=G[be];if(n)if(T(n)===t){var o=B.get(t)-s;pe((function(e){return e+o}))}}B.resetRecord()}),[ve]);var Ce=ht(o.useState({width:0,height:a}),2),we=Ce[0],Se=Ce[1],ke=c(),Ee=c(),Oe=o.useMemo((function(){return Xh(we.width,y)}),[we.width,y]),$e=o.useMemo((function(){return Xh(we.height,ve)}),[we.height,ve]),Ne=ve-a,Me=c(Ne);Me.current=Ne;var Ie=te<=0,Pe=te>=Ne,Le=re<=0,Ae=re>=y,De=zh(Ie,Pe,Le,Ae),Te=function(){return{x:q?-re:re,y:te}},je=c(Te()),Re=mi((function(e){if(S){var t=Y(Y({},Te()),e);je.current.x===t.x&&je.current.y===t.y||(S(t),je.current=t)}}));function _e(e,t){var n=e;t?(O((function(){ie(n)})),Re()):pe(n)}var ze=function(e){var t=e,n=y?y-we.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Be=mi((function(e,t){t?(O((function(){ie((function(t){return ze(t+(q?-e:e))}))})),Re()):pe((function(t){return t+e}))})),He=ht(Bh(F,Ie,Pe,Le,Ae,!!y,Be),2),Fe=He[0],Ve=He[1];!function(e,t,n){var o,r=c(!1),i=c(0),a=c(0),s=c(null),l=c(null),u=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),s=i.current-t,c=a.current-o,u=Math.abs(s)>Math.abs(c);u?i.current=t:a.current=o;var d=n(u,u?s:c,!1,e);d&&e.preventDefault(),clearInterval(l.current),d&&(l.current=setInterval((function(){u?s*=Vh:c*=Vh;var e=Math.floor(u?s:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)}),16))}},d=function(){r.current=!1,o()},p=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",u,{passive:!1}),s.current.addEventListener("touchend",d,{passive:!0}))};o=function(){s.current&&(s.current.removeEventListener("touchmove",u),s.current.removeEventListener("touchend",d))},Jt((function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",p),o(),clearInterval(l.current)}}),[e])}(F,Q,(function(e,t,n,o){var r=o;return!De(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),Fe({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){o.useEffect((function(){var o=t.current;if(e&&o){var r,i,a=!1,s=function(){ut.cancel(r)},l=function e(){s(),r=ut((function(){n(i),e()}))},c=function(e){if(!e.target.draggable){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,s()},d=function(e){if(a){var t=Kh(e,!1),n=o.getBoundingClientRect(),r=n.top,c=n.bottom;t<=r?(i=-Wh(r-t),l()):t>=c?(i=Wh(t-c),l()):s()}};return o.addEventListener("mousedown",c),o.ownerDocument.addEventListener("mouseup",u),o.ownerDocument.addEventListener("mousemove",d),function(){o.removeEventListener("mousedown",c),o.ownerDocument.removeEventListener("mouseup",u),o.ownerDocument.removeEventListener("mousemove",d),s()}}}),[e])}(W,Q,(function(e){pe((function(t){return t+e}))})),Jt((function(){function e(e){var t=Ie&&e.detail<0,n=Pe&&e.detail>0;!F||t||n||e.preventDefault()}var t=Q.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,Ie,Pe]),Jt((function(){if(y){var e=ze(re);ie(e),Re({x:e})}}),[we.width,y]);var We=function(){var e,t;null===(e=ke.current)||void 0===e||e.delayHidden(),null===(t=Ee.current)||void 0===t||t.delayHidden()},Ke=function(e,t,n,r,i,a,s,l){var c=o.useRef(),u=ht(o.useState(null),2),d=u[0],p=u[1];return Jt((function(){if(d&&d.times<10){if(!e.current)return void p((function(e){return Y({},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 S=i(t[w]);y=b;var k=n.get(S);b=x=y+(void 0===k?r:k)}for(var E="top"===v?u:f-u,O=C;O>=0;O-=1){var $=i(t[O]),N=n.get($);if(void 0===N){h=!0;break}if((E-=N)<=0)break}switch(v){case"top":m=y-u;break;case"bottom":m=x-f+u;break;default:var M=e.current.scrollTop;y<M?g="top":x>M+f&&(g="bottom")}null!==m&&s(m),m!==d.lastTop&&(h=!0)}h&&p(Y(Y({},d),{},{times:d.times+1,targetAlign:g,lastTop:m}))}else"production"!==process.env.NODE_ENV&&10===(null==d?void 0:d.times)&&K(!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(ut.cancel(c.current),"number"==typeof e)s(e);else if(e&&"object"===A(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()}}(Q,G,B,s,T,(function(){return z(!0)}),pe,We);o.useImperativeHandle(t,(function(){return{nativeElement:J.current,getScrollInfo:Te,scrollTo:function(e){var t;(t=e)&&"object"===A(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ie(ze(e.left)),Ke(e.top)):Ke(e)}}})),Jt((function(){if(k){var e=G.slice(be,ye+1);k(e,G)}}),[be,ye,G]);var qe=function(e,t,n,r){var i=ht(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]}}}(G,T,B,s),Xe=null==$?void 0:$({start:be,end:ye,virtual:W,offsetX:re,offsetY:xe,rtl:q,getSize:qe}),Ue=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(jh,{key:u,setRef:function(t){return a(e,t)}},l)}))}(G,be,ye,y,re,_,g,de),Ge=null;a&&(Ge=Y(U({},u?"height":"maxHeight",a),Yh),F&&(Ge.overflowY="hidden",y&&(Ge.overflowX="hidden"),se&&(Ge.pointerEvents="none")));var Ye={};return q&&(Ye.dir="rtl"),o.createElement("div",L({ref:J,style:Y(Y({},p),{},{position:"relative"}),className:X},Ye,D),o.createElement(Je,{onResize:function(e){Se({width:e.offsetWidth,height:e.offsetHeight})}},o.createElement(C,{className:"".concat(r,"-holder"),style:Ge,ref:Q,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==te&&pe(t),null==w||w(e),Re()},onMouseEnter:We},o.createElement(Th,{prefixCls:r,height:ve,offsetX:re,offsetY:xe,scrollWidth:y,onInnerResize:z,ref:Z,innerProps:E,rtl:q,extra:Xe},Ue))),W&&ve>a&&o.createElement(qh,{ref:ke,prefixCls:r,scrollOffset:te,scrollRange:ve,rtl:q,onScroll:_e,onStartMove:ce,onStopMove:ue,spinSize:$e,containerSize:we.height,style:null==N?void 0:N.verticalScrollBar,thumbStyle:null==N?void 0:N.verticalScrollBarThumb,showScrollBar:I}),W&&y>we.width&&o.createElement(qh,{ref:Ee,prefixCls:r,scrollOffset:re,scrollRange:y,rtl:q,onScroll:_e,onStartMove:ce,onStopMove:ue,spinSize:Oe,containerSize:we.width,horizontal:!0,style:null==N?void 0:N.horizontalScrollBar,thumbStyle:null==N?void 0:N.horizontalScrollBarThumb,showScrollBar:I}))}var Zh=o.forwardRef(Qh);Zh.displayName="List";var Jh=["disabled","title","children","style","className"];function eg(e){return"string"==typeof e||"number"==typeof e}var tg=function(e,t){var n=o.useContext(xf),r=n.prefixCls,i=n.id,a=n.open,s=n.multiple,l=n.mode,c=n.searchValue,u=n.toggleOpen,p=n.notFoundContent,f=n.onPopupScroll,h=o.useContext($h),g=h.maxCount,m=h.flattenOptions,v=h.onActiveValue,b=h.defaultActiveFirstOption,y=h.onSelect,x=h.menuItemSelectedIcon,C=h.rawValues,w=h.fieldNames,S=h.virtual,k=h.direction,E=h.listHeight,O=h.listItemHeight,$=h.optionRender,N="".concat(r,"-item"),M=ie((function(){return m}),[a,m],(function(e,t){return t[0]&&e[1]!==t[1]})),I=o.useRef(null),A=o.useMemo((function(){return s&&kh(g)&&(null==C?void 0:C.size)>=g}),[s,g,null==C?void 0:C.size]),D=function(e){e.preventDefault()},T=function(e){var t;null===(t=I.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},j=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=M.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=M[r]||{},a=i.group,s=i.data;if(!(a||null!=s&&s.disabled||A))return r}return-1},R=ht(o.useState((function(){return j(0)})),2),_=R[0],z=R[1],B=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];z(e);var n={source:t?"keyboard":"mouse"},o=M[e];o?v(o.value,e,n):v(null,-1,n)};d((function(){B(!1!==b?j(0):-1)}),[M.length,c]);var H=o.useCallback((function(e){return C.has(e)&&"combobox"!==l}),[l,rt(C).toString(),C.size]);d((function(){var e,t=setTimeout((function(){if(!s&&a&&1===C.size){var e=Array.from(C)[0],t=M.findIndex((function(t){return t.data.value===e}));-1!==t&&(B(t),T(t))}}));a&&(null===(e=I.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,c]);var F=function(e){void 0!==e&&y(e,{selected:!C.has(e)}),s||u(!1)};if(o.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Vs.N:case Vs.P:case Vs.UP:case Vs.DOWN:var o=0;if(t===Vs.UP?o=-1:t===Vs.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Vs.N?o=1:t===Vs.P&&(o=-1)),0!==o){var r=j(_+o,o);T(r),B(r,!0)}break;case Vs.ENTER:var i,s=M[_];!s||null!=s&&null!==(i=s.data)&&void 0!==i&&i.disabled||A?F(void 0):F(s.value),a&&e.preventDefault();break;case Vs.ESC:u(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){T(e)}}})),0===M.length)return o.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(N,"-empty"),onMouseDown:D},p);var V=Object.keys(w).map((function(e){return w[e]})),W=function(e){return e.label};function K(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var q=function(e){var t=M[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,a=Ts(n,!0),s=W(t);return t?o.createElement("div",L({"aria-label":"string"!=typeof s||i?null:s},a,{key:e},K(t,e),{"aria-selected":H(r)}),r):null},X={role:"listbox",id:"".concat(i,"_list")};return o.createElement(o.Fragment,null,S&&o.createElement("div",L({},X,{style:{height:0,width:0,overflow:"hidden"}}),q(_-1),q(_),q(_+1)),o.createElement(Zh,{itemKey:"key",ref:I,data:M,height:E,itemHeight:O,fullHeight:!1,onMouseDown:D,onScroll:f,virtual:S,direction:k,innerProps:S?null:X},(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:eg(a)?a.toString():void 0;return o.createElement("div",{className:P(N,"".concat(N,"-group"),i.className),title:u},void 0!==a?a:l)}var d=i.disabled,p=i.title;i.children;var f=i.style,h=i.className,g=et(Nt(i,Jh),V),m=H(s),v=d||!m&&A,b="".concat(N,"-option"),y=P(N,b,h,U(U(U(U({},"".concat(b,"-grouped"),r),"".concat(b,"-active"),_===t&&!v),"".concat(b,"-disabled"),v),"".concat(b,"-selected"),m)),C=W(e),w=!x||"function"==typeof x||m,k="number"==typeof C?C:C||s,E=eg(k)?k.toString():void 0;return void 0!==p&&(E=p),o.createElement("div",L({},Ts(g),S?{}:K(e,t),{"aria-selected":m,className:y,title:E,onMouseMove:function(){_===t||v||B(t)},onClick:function(){v||F(s)},style:f}),o.createElement("div",{className:"".concat(b,"-content")},"function"==typeof $?$(e,{index:t}):k),o.isValidElement(x)||m,w&&o.createElement(yf,{className:"".concat(N,"-option-state"),customizeIcon:x,customizeIconProps:{value:s,disabled:v,isSelected:m}},m?"✓":null))})))},ng=o.forwardRef(tg);"production"!==process.env.NODE_ENV&&(ng.displayName="OptionList");function og(e,t){return Ff(e).join("").toUpperCase().includes(t)}var rg=0,ig="test"!==process.env.NODE_ENV&&mt();function ag(e){var t=ht(o.useState(),2),n=t[0],r=t[1];return o.useEffect((function(){var e;r("rc_select_".concat((ig?(e=rg,rg+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var sg=["children","value"],lg=["children"];function cg(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _(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,lg);return t||!i?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value;return Y({key:n,value:void 0!==i?i:n,children:r},Nt(o,sg))}(e):Y(Y({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},c),{},{options:cg(l)})})).filter((function(e){return e}))}function ug(e){var t=o.useRef();t.current=e;var n=o.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var dg=["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"],pg=["inputValue"];var fg=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,h=e.onSelect,g=e.onDeselect,m=e.dropdownMatchSelectWidth,v=void 0===m||m,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,C=e.optionLabelProp,w=e.options,S=e.optionRender,k=e.children,E=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,$=e.virtual,N=e.direction,M=e.listHeight,I=void 0===M?200:M,P=e.listItemHeight,D=void 0===P?20:P,T=e.labelRender,j=e.value,R=e.defaultValue,z=e.labelInValue,B=e.onChange,H=e.maxCount,F=Nt(e,dg),V=ag(n),W=Ph(r),X=!(w||!k),G=o.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),Q=o.useMemo((function(){return Eh(l,X)}),[JSON.stringify(l),X]),Z=ht(yi("",{value:void 0!==u?u:c,postState:function(e){return e||""}}),2),J=Z[0],ee=Z[1],te=function(e,t,n,r,i){return o.useMemo((function(){var o=e;!e&&(o=cg(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])}(w,k,Q,x,C),ne=te.valueOptions,oe=te.labelOptions,re=te.options,ie=o.useCallback((function(e){return Ff(e).map((function(e){var t,n,r,i,a,s;(function(e){return!e||"object"!==A(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[C||Q.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&&!C)){var u=null==c?void 0:c[Q.label];void 0===u||o.isValidElement(u)||o.isValidElement(n)||u===n||K(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:n,value:t,key:r,disabled:i,title:a}}))}),[Q,C,ne]),ae=ht(yi(R,{value:j}),2),se=ae[0],le=ae[1],ce=o.useMemo((function(){var e,t=ie(W&&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,W]),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?Y(Y({},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=ht(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 Y(Y({},e),{},{label:null!==(t="function"==typeof T?T(e):e.label)&&void 0!==t?t:e.value})}))}),[r,pe,T]),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=ug((function(e,t){var n=null!=t?t:e;return U(U({},Q.value,e),Q.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?og(t[i],u):t[o]?og(t["children"!==a?a:"label"],u):og(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(Y(Y({},e),{},U({},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=rt(re);return rt(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]),Q,J,G,x),be=o.useMemo((function(){return"tags"!==r||!J||ve.some((function(e){return e[x||"value"]===J}))||ve.some((function(e){return e[Q.value]===J}))?ve:[me(J)].concat(rt(ve))}),[me,x,r,ve,J,Q]),ye=function e(t){return rt(t).sort((function(e,t){return y(e,t,{searchValue:J})})).map((function(t){return Array.isArray(t.options)?Y(Y({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},xe=o.useMemo((function(){return y?ye(be):be}),[be,y,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=Eh(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:Sh(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:Sh(t,r.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),r}(xe,{fieldNames:Q,childrenAsData:X})}),[xe,Q,X]),we=function(e){var t=ie(e);if(le(t),B&&(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=z?t:t.map((function(e){return e.value})),o=t.map((function(e){return Oh(fe(e.value))}));B(W?n:n[0],W?o:o[0])}},Se=ht(o.useState(null),2),ke=Se[0],Ee=Se[1],Oe=ht(o.useState(0),2),$e=Oe[0],Ne=Oe[1],Me=void 0!==E?E:"combobox"!==r,Ie=o.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;Ne(t),s&&"combobox"===r&&null!==e&&"keyboard"===o&&Ee(String(e))}),[s,r]),Pe=function(e,t,n){var o=function(){var t,n=fe(e);return[z?{label:null==n?void 0:n[Q.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Oh(n)]};if(t&&h){var r=ht(o(),2),i=r[0],a=r[1];h(i,a)}else if(!t&&g&&"clear"!==n){var s=ht(o(),2),l=s[0],c=s[1];g(l,c)}},Le=ug((function(e,t){var n,o=!W||t.selected;n=o?W?[].concat(rt(pe),[e]):[e]:pe.filter((function(t){return t.value!==e})),we(n),Pe(e,o),"combobox"===r?Ee(""):Ph&&!f||(ee(""),Ee(""))})),Ae=o.useMemo((function(){var e=!1!==$&&!1!==v;return Y(Y({},te),{},{flattenOptions:Ce,onActiveValue:Ie,defaultActiveFirstOption:Me,onSelect:Le,menuItemSelectedIcon:O,rawValues:ge,fieldNames:Q,virtual:e,direction:N,listHeight:I,listItemHeight:D,childrenAsData:X,maxCount:H,optionRender:S})}),[H,te,Ce,Ie,Me,Le,O,ge,Q,$,v,N,I,D,X,S]);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=Ph(t),b=void 0!==c?c:v||"combobox"===t,y=n||cg(r);if(K("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)&&K(!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`."),K("combobox"!==t||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),K("combobox"===t||!i,"`backfill` only works with `combobox` mode."),K("combobox"===t||!l,"`getInputElement` only work with `combobox` mode."),q("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&&K(!1,"`onSearch` should work with `showSearch` instead of use alone."),q(!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=Ff(h);K(!f||x.every((function(e){return"object"===A(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),K(!v||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var C=null;_(r).some((function(e){if(!o.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!_(e.props.children).every((function(t){return!(o.isValidElement(t)&&e.type&&!t.type.isSelectOption&&(C=t.type,1))})):(C=t,!0))})),C&&K(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(C.displayName||C.name||C,"`.")),K(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 K(!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,Q)),o.createElement($h.Provider,{value:Ae},o.createElement(Lh,L({},F,{id:V,prefixCls:a,ref:t,omitDomProps:pg,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){Pe(e.value,!1,n)}))},direction:N,searchValue:J,onSearch:function(e,t){if(ee(e),Ee(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(rt(ge),[n])));we(o),Pe(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(rt(ge),rt(t))));we(n),n.forEach((function(e){Pe(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:ng,emptyOptions:!Ce.length,activeValue:ke,activeDescendantId:"".concat(V,"_list_").concat($e)})))}));"production"!==process.env.NODE_ENV&&(fg.displayName="Select");var hg=fg;function gg(e,t,n){return P({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}hg.Option=Dh,hg.OptGroup=Ah;const mg=(e,t)=>t||e,vg=()=>{const[,e]=Bi(),t=new Vr(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&&(vg.displayName="EmptyImage");const bg=()=>{const[,e]=Bi(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=f((()=>({borderColor:new Vr(t).onBackground(i).toHexShortString(),shadowColor:new Vr(n).onBackground(i).toHexShortString(),contentColor:new Vr(r).onBackground(i).toHexShortString()})),[t,n,r,i]);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:s,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:a},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:l}))))};"production"!==process.env.NODE_ENV&&(bg.displayName="SimpleImage");const yg=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 xg=Ui("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=Si(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[yg(r)]})),Cg=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 wg=o.createElement(vg,null),Sg=o.createElement(bg,null),kg=e=>{var{className:t,rootClassName:n,prefixCls:r,image:i=wg,description:a,children:s,imageStyle:l,style:c}=e,u=Cg(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:p,empty:f}=o.useContext(ni),h=d("empty",r),[g,m,v]=xg(h),[b]=Go("Empty"),y=void 0!==a?a:null==b?void 0:b.description,x="string"==typeof y?y:"empty";let C=null;return C="string"==typeof i?o.createElement("img",{alt:x,src:i}):i,g(o.createElement("div",Object.assign({className:P(m,v,h,null==f?void 0:f.className,{[`${h}-normal`]:i===Sg,[`${h}-rtl`]:"rtl"===p},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),c)},u),o.createElement("div",{className:`${h}-image`,style:l},C),y&&o.createElement("div",{className:`${h}-description`},y),s&&o.createElement("div",{className:`${h}-footer`},s)))};kg.PRESENTED_IMAGE_DEFAULT=wg,kg.PRESENTED_IMAGE_SIMPLE=Sg,"production"!==process.env.NODE_ENV&&(kg.displayName="Empty");const Eg=e=>{const{componentName:t}=e,{getPrefixCls:n}=s(ni),o=n("empty");switch(t){case"Table":case"List":return r.createElement(kg,{image:kg.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(kg,{image:kg.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return r.createElement(kg,null)}},Og=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,r;const{variant:i,[e]:a}=s(ni),l=s(xd),c=null==a?void 0:a.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(r=null!==(o=null!=l?l:c)&&void 0!==o?o:i)&&void 0!==r?r:"outlined";return[u,ti.includes(u)]};function $g(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 Ng=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"}},Mg=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({},Vi(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:yp},[`\n ${r}${s}topLeft,\n ${i}${s}topLeft,\n ${r}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:Cp},[`${a}${s}bottomLeft`]:{animationName:xp},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:wp},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},Ng(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"},Fi),"&-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({},Ng(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Np(e,"slide-up"),Np(e,"slide-down"),bp(e,"move-up"),bp(e,"move-down")]},Ig=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}})}}}},Pg=(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:Xt(t),itemLineHeight:Xt(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},Ig(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:`${Xt(o)} 0`,lineHeight:Xt(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Xt(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:Xt(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 Lg(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[Pg(e,t),r]}const Ag=e=>{const{componentCls:t}=e,n=Si(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=Si(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Lg(e),Lg(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Lg(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({},Vi(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:Xt(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 ${Xt(o)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Xt(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 ${Xt(o)}`,"&:after":{display:"none"}}}}}}}function Tg(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Dg(e),Dg(Si(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 ${Xt(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(Si(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const jg=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Xt(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 ${Xt(r)} ${t.activeShadowColor}`,outline:0}}}},Rg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},jg(e,t))}),_g=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},jg(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),Rg(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),Rg(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:`${Xt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),zg=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Xt(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}}}},Bg=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},zg(e,t))}),Hg=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},zg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),Bg(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Bg(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:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Fg=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:`${Xt(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}}}}),Vg=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},_g(e)),Hg(e)),Fg(e))}),Wg=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"}}}},Kg=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"}}}},qg=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},Vi(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Wg(e)),Kg(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Fi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Fi),{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()}}}},Xg=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},qg(e),Tg(e),Ag(e),Mg(e),{[`${t}-rtl`]:{direction:"rtl"}},Oc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var Ug=Ui("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=Si(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Xg(o),Vg(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}}),Gg={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"},Yg=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:Gg}))},Qg=o.forwardRef(Yg);"production"!==process.env.NODE_ENV&&(Qg.displayName="CheckOutlined");var Zg={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"},Jg=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:Zg}))},em=o.forwardRef(Jg);"production"!==process.env.NODE_ENV&&(em.displayName="DownOutlined");var tm={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"},nm=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:tm}))},om=o.forwardRef(nm);"production"!==process.env.NODE_ENV&&(om.displayName="SearchOutlined");var rm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const im="SECRET_COMBOBOX_MODE_DO_NOT_USE",am=(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:f,size:h,disabled:g,notFoundContent:m,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:C,style:w,allowClear:S,variant:k,dropdownStyle:E,transitionName:O,tagRender:$,maxCount:N}=e,M=rm(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:I,getPrefixCls:L,renderEmpty:A,direction:D,virtual:T,popupMatchSelectWidth:j,popupOverflow:R,select:_}=o.useContext(ni),[,z]=Bi(),B=null!=f?f:null==z?void 0:z.controlHeight,H=L("select",r),F=L(),V=null!=C?C:D,{compactSize:W,compactItemClassnames:K}=Rl(H,V),[q,X]=Og("select",k,i),U=Fs(H),[G,Y,Q]=Ug(H,U),Z=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===im?"combobox":t}),[e.mode]),J="multiple"===Z||"tags"===Z,ee=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),te=null!==(n=null!=x?x:y)&&void 0!==n?n:j,{status:ne,hasFeedback:oe,isFormItemInput:re,feedbackIcon:ie}=o.useContext(bd),ae=mg(ne,v);let se;se=void 0!==m?m:"combobox"===Z?null:(null==A?void 0:A("Select"))||o.createElement(Eg,{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&&To(f).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const h=null!=n?n:o.createElement(Ss,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(qs,{spin:!0}));else{const e=`${c}-suffix`;m=t=>{let{open:n,showSearch:r}=t;return g(n&&r?o.createElement(om,{className:e}):o.createElement(em,{className:e}))}}let v=null;v=void 0!==r?r:s?o.createElement(Qg,null):null;let b=null;return b=void 0!==i?i:o.createElement(Os,null),{clearIcon:h,suffixIcon:m,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},M),{multiple:J,hasFeedback:oe,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:H,componentName:"Select"})),pe=!0===S?{clearIcon:de}:S,fe=et(M,["suffixIcon","itemIcon"]),he=P(c||u,{[`${H}-dropdown-${V}`]:"rtl"===V},s,Q,U,Y),ge=Il((e=>{var t;return null!==(t=null!=h?h:W)&&void 0!==t?t:e})),me=o.useContext(ii),ve=null!=g?g:me,be=P({[`${H}-lg`]:"large"===ge,[`${H}-sm`]:"small"===ge,[`${H}-rtl`]:"rtl"===V,[`${H}-${q}`]:X,[`${H}-in-form-item`]:re},gg(H,ae,oe),K,null==_?void 0:_.className,a,s,Q,U,Y),ye=o.useMemo((()=>void 0!==p?p:"rtl"===V?"bottomRight":"bottomLeft"),[p,V]);if("production"!==process.env.NODE_ENV){const t=To("Select");t.deprecated(!u,"dropdownClassName","popupClassName"),t.deprecated(void 0===y,"dropdownMatchSelectWidth","popupMatchSelectWidth"),"production"!==process.env.NODE_ENV&&t(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),t.deprecated(!("bordered"in e),"bordered","variant"),"production"!==process.env.NODE_ENV&&t(!(void 0!==N&&!J),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[xe]=Qs("SelectLike",null==E?void 0:E.zIndex);return G(o.createElement(hg,Object.assign({ref:t,virtual:T,showSearch:null==_?void 0:_.showSearch},fe,{style:Object.assign(Object.assign({},null==_?void 0:_.style),w),dropdownMatchSelectWidth:te,transitionName:yl(F,"slide-up",O),builtinPlacements:$g(b,R),listHeight:d,listItemHeight:B,mode:Z,prefixCls:H,placement:ye,direction:V,suffixIcon:le,menuItemSelectedIcon:ce,removeIcon:ue,allowClear:pe,notFoundContent:se,className:be,getPopupContainer:l||I,dropdownClassName:he,disabled:ve,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:xe}),maxCount:J?N:void 0,tagRender:J?$:void 0})))};"production"!==process.env.NODE_ENV&&(am.displayName="Select");const sm=o.forwardRef(am),lm=vf(sm);sm.SECRET_COMBOBOX_MODE_DO_NOT_USE=im,sm.Option=Dh,sm.OptGroup=Ah,sm._InternalPanelDoNotUseOrYouWillBeFired=lm,"production"!==process.env.NODE_ENV&&(sm.displayName="Select");const cm=["xxl","xl","lg","md","sm","xs"];function um(){const[,e]=Bi(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(cm).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})(e));return r.useMemo((()=>{const e=new Map;let n=-1,o={};return{matchHandlers:{},dispatch:t=>(o=t,e.forEach((e=>e(o))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(n);i.addListener(r),this.matchHandlers[n]={mql:i,listener:r},r(i)}))},responsiveMap:t}}),[e])}function dm(){const[,e]=o.useReducer((e=>e+1),0);return e}function pm(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=c({}),n=dm(),o=um();return Jt((()=>{const r=o.subscribe((o=>{t.current=o,e&&n()}));return()=>o.unsubscribe(r)}),[]),t.current}const fm=o.createContext({}),hm=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({},Vi(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${Xt(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"}})}},gm=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 mm=Ui("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=Si(e,{avatarBg:n,avatarColor:t});return[hm(o),gm(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}})),vm=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 bm=(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=le(t,c),{getPrefixCls:p,avatar:f}=o.useContext(ni),h=o.useContext(fm),g=()=>{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(g,[e.gap]);const m=()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&l(!1)},{prefixCls:v,shape:b,size:y,src:x,srcSet:C,icon:w,className:S,rootClassName:k,alt:E,draggable:O,children:$,crossOrigin:N}=e,M=vm(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),I=Il((e=>{var t,n;return null!==(n=null!==(t=null!=y?y:null==h?void 0:h.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),L=pm(Object.keys("object"==typeof I&&I||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),A=o.useMemo((()=>{if("object"!=typeof I)return{};const e=cm.find((e=>L[e])),t=I[e];return t?{width:t,height:t,fontSize:t&&(w||$)?t/2:18}:{}}),[L,I]);if("production"!==process.env.NODE_ENV){const e=To("Avatar");"production"!==process.env.NODE_ENV&&e(!("string"==typeof w&&w.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${w}\` at https://ant.design/components/icon`)}const D=p("avatar",v),T=Fs(D),[j,R,_]=mm(D,T),z=P({[`${D}-lg`]:"large"===I,[`${D}-sm`]:"small"===I}),B=o.isValidElement(x),H=b||(null==h?void 0:h.shape)||"circle",F=P(D,z,null==f?void 0:f.className,`${D}-${H}`,{[`${D}-image`]:B||x&&s,[`${D}-icon`]:!!w},_,T,S,k,R),V="number"==typeof I?{width:I,height:I,fontSize:w?I/2:18}:{};let W;if("string"==typeof x&&s)W=o.createElement("img",{src:x,draggable:O,srcSet:C,onError:m,alt:E,crossOrigin:N});else if(B)W=x;else if(w)W=w;else if(i||1!==n){const e=`scale(${n})`,t={msTransform:e,WebkitTransform:e,transform:e};W=o.createElement(Je,{onResize:g},o.createElement("span",{className:`${D}-string`,ref:u,style:Object.assign({},t)},$))}else W=o.createElement("span",{className:`${D}-string`,style:{opacity:0},ref:u},$);return delete M.onError,delete M.gap,j(o.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},V),A),null==f?void 0:f.style),M.style),className:F,ref:d}),W))},ym=o.forwardRef(bm);"production"!==process.env.NODE_ENV&&(ym.displayName="Avatar");const xm=e=>e?"function"==typeof e?e():e:null;function Cm(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:P("".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 wm={shiftX:64,adjustY:1},Sm={adjustX:1,shiftY:!0},km=[0,0],Em={left:{points:["cr","cl"],overflow:Sm,offset:[-4,0],targetOffset:km},right:{points:["cl","cr"],overflow:Sm,offset:[4,0],targetOffset:km},top:{points:["bc","tc"],overflow:wm,offset:[0,-4],targetOffset:km},bottom:{points:["tc","bc"],overflow:wm,offset:[0,4],targetOffset:km},topLeft:{points:["bl","tl"],overflow:wm,offset:[0,-4],targetOffset:km},leftTop:{points:["tr","tl"],overflow:Sm,offset:[-4,0],targetOffset:km},topRight:{points:["br","tr"],overflow:wm,offset:[0,-4],targetOffset:km},rightTop:{points:["tl","tr"],overflow:Sm,offset:[4,0],targetOffset:km},bottomRight:{points:["tr","br"],overflow:wm,offset:[0,4],targetOffset:km},rightBottom:{points:["bl","br"],overflow:Sm,offset:[4,0],targetOffset:km},bottomLeft:{points:["tl","bl"],overflow:wm,offset:[0,4],targetOffset:km},leftBottom:{points:["br","bl"],overflow:Sm,offset:[-4,0],targetOffset:km}},Om=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],$m=function(e,t){var n=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,a=e.mouseEnterDelay,s=void 0===a?0:a,l=e.mouseLeaveDelay,u=void 0===l?.1:l,d=e.overlayStyle,p=e.prefixCls,f=void 0===p?"rc-tooltip":p,h=e.children,g=e.onVisibleChange,m=e.afterVisibleChange,v=e.transitionName,y=e.animation,x=e.motion,C=e.placement,w=void 0===C?"right":C,S=e.align,k=void 0===S?{}:S,E=e.destroyTooltipOnHide,O=void 0!==E&&E,$=e.defaultVisible,N=e.getTooltipContainer,M=e.overlayInnerStyle;e.arrowContent;var I=e.overlay,P=e.id,A=e.showArrow,D=void 0===A||A,T=Nt(e,Om),j=c(null);b(t,(function(){return j.current}));var R=Y({},T);"visible"in e&&(R.popupVisible=e.visible);return o.createElement(yh,L({popupClassName:n,prefixCls:f,popup:function(){return o.createElement(Cm,{key:"content",prefixCls:f,id:P,overlayInnerStyle:M},I)},action:i,builtinPlacements:Em,popupPlacement:w,ref:j,popupAlign:k,getPopupContainer:N,onPopupVisibleChange:g,afterPopupVisibleChange:m,popupTransitionName:v,popupAnimation:y,popupMotion:x,defaultPopupVisible:$,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:D},R),h)},Nm=p($m);function Mm(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 Im=(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 ${Xt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Pm(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function Lm(e,t){return e?t:{}}function Am(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}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Im(e,t,r)),{"&:before":{background:t}})]},Lm(!!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% - ${Xt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Lm(!!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% - ${Xt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Lm(!!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}})),Lm(!!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 Dm={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"]}},Tm={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"]}},jm=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Rm(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Dm).forEach((e=>{const c=o&&Tm[e]||Dm[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,jm.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=Pm({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 _m=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({},Vi(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:`${Xt(e.calc(c).div(2).equal())} ${Xt(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,8)}},[`${t}-content`]:{position:"relative"}}),Qi(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},Am(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},zm=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Pm({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Mm(Si(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var Bm=function(e){const t=Ui("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=Si(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[_m(r),jp(e,"zoom-big-fast")]}),zm,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Hm=Ii.map((e=>`${e}-inverse`)),Fm=["success","processing","error","default","warning"];function Vm(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(rt(Hm),rt(Ii)).includes(e):Ii.includes(e)}function Wm(e,t){const n=Vm(t),o=P({[`${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 Km=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=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:f,destroyTooltipOnHide:h,arrow:g=!0,title:m,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=e,C=!!g,[,w]=Bi(),{getPopupContainer:S,getPrefixCls:k,direction:E}=o.useContext(ni),O=To("Tooltip"),$=o.useRef(null),N=()=>{var e;null===(e=$.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>{var e;return{forceAlign:N,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),N()},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;O.deprecated(!(n in e),n,o)})),"production"!==process.env.NODE_ENV&&O(!h||"boolean"==typeof h,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&O(!g||"boolean"==typeof g||!("arrowPointAtCenter"in g),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[M,I]=yi(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),L=!m&&!v&&0!==m,A=o.useMemo((()=>{var e,t;let n=y;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:y),b||Rm({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:C?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})}),[y,g,b,w]),D=o.useMemo((()=>0===m?m:v||m||""),[v,m]),T=o.createElement(Cd,{space:!0},"function"==typeof D?D():D),{getPopupContainer:j,placement:R="top",mouseEnterDelay:_=.1,mouseLeaveDelay:z=.1,overlayStyle:B,rootClassName:H}=e,F=Km(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),V=k("tooltip",i),W=k(),K=e["data-popover-inject"];let q=M;"open"in e||"visible"in e||!L||(q=!1);const X=o.isValidElement(d)&&!js(d)?d:o.createElement("span",null,d),U=X.props,G=U.className&&"string"!=typeof U.className?U.className:P(U.className,a||`${V}-open`),[Y,Q,Z]=Bm(V,!K),J=Wm(V,c),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=P(l,{[`${V}-rtl`]:"rtl"===E},J.className,H,Q,Z),[oe,re]=Qs("Tooltip",F.zIndex),ie=o.createElement(Nm,Object.assign({},F,{zIndex:oe,showArrow:C,placement:R,mouseEnterDelay:_,mouseLeaveDelay:z,prefixCls:V,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),B),getTooltipContainer:j||s||S,ref:$,builtinPlacements:A,overlay:T,visible:q,onVisibleChange:t=>{var n,o;I(!L&&t),L||(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:f,overlayInnerStyle:te,arrowContent:o.createElement("span",{className:`${V}-arrow-content`}),motion:{motionName:yl(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),q?_s(X,{className:G}):X);return Y(o.createElement(Xs.Provider,{value:re},ie))})),Xm=qm;"production"!==process.env.NODE_ENV&&(Xm.displayName="Tooltip"),Xm._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=o.useContext(ni),c=l("tooltip",t),[u,d,p]=Bm(c),f=Wm(c,a),h=f.arrowStyle,g=Object.assign(Object.assign({},s),f.overlayStyle),m=P(d,p,c,`${c}-pure`,`${c}-placement-${r}`,n,f.className);return u(o.createElement("div",{className:m,style:h},o.createElement("div",{className:`${c}-arrow`}),o.createElement(Cm,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:g}),i)))};const Um=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({},Vi(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}})},Am(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Gm=e=>{const{componentCls:t}=e;return{[t]:Ii.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}};var Ym=Ui("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,o=Si(e,{popoverBg:t,popoverColor:n});return[Um(o),Gm(o),jp(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},Mm(e)),Pm({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"]]}),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 Zm=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},Jm=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:s,content:l,children:c}=e,u=xm(s),d=xm(l),p=P(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return o.createElement("div",{className:p,style:i},o.createElement("div",{className:`${n}-arrow`}),o.createElement(Cm,Object.assign({},e,{className:t,prefixCls:n}),c||o.createElement(Zm,{prefixCls:n,title:u,content:d})))};var ev=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 tv=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:f=.1,onOpenChange:h,overlayStyle:g={}}=e,m=ev(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:v}=o.useContext(ni),b=v("popover",i),[y,x,C]=Ym(b),w=v(),S=P(l,x,C),[k,E]=yi(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),O=(e,t)=>{E(e,!0),null==h||h(e,t)},$=xm(a),N=xm(s);return y(o.createElement(Xm,Object.assign({placement:c,trigger:u,mouseEnterDelay:p,mouseLeaveDelay:f,overlayStyle:g},m,{prefixCls:b,overlayClassName:S,ref:t,open:k,onOpenChange:e=>{O(e)},overlay:$||N?o.createElement(Zm,{prefixCls:b,title:$,content:N}):null,transitionName:yl(w,"zoom-big",m.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===Vs.ESC&&O(!1,e)})(e)}})))}));tv._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n}=e,r=Qm(e,["prefixCls","className"]),{getPrefixCls:i}=o.useContext(ni),a=i("popover",t),[s,l,c]=Ym(a);return s(o.createElement(Jm,Object.assign({},r,{prefixCls:a,hashId:l,className:P(n,c)})))},"production"!==process.env.NODE_ENV&&(tv.displayName="Popover");const nv=e=>{const{size:t,shape:n}=o.useContext(fm),r=o.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return o.createElement(fm.Provider,{value:r},e.children)},ov=ym;ov.Group=e=>{var t,n,r;const{getPrefixCls:i,direction:a}=o.useContext(ni),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:p,size:f,shape:h,maxPopoverPlacement:g,maxPopoverTrigger:m,children:v,max:b}=e;if("production"!==process.env.NODE_ENV){const e=To("Avatar.Group");e.deprecated(!d,"maxCount","max={{ count: number }}"),e.deprecated(!p,"maxStyle","max={{ style: CSSProperties }}"),e.deprecated(!g,"maxPopoverPlacement","max={{ popover: PopoverProps }}"),e.deprecated(!m,"maxPopoverTrigger","max={{ popover: PopoverProps }}")}const y=i("avatar",s),x=`${y}-group`,C=Fs(y),[w,S,k]=mm(y,C),E=P(x,{[`${x}-rtl`]:"rtl"===a},k,C,l,c,S),O=_(v).map(((e,t)=>_s(e,{key:`avatar-key-${t}`}))),$=(null==b?void 0:b.count)||d,N=O.length;if($&&$<N){const e=O.slice(0,$),i=O.slice($,N),a=(null==b?void 0:b.style)||p,s=(null===(t=null==b?void 0:b.popover)||void 0===t?void 0:t.trigger)||m||"hover",l=(null===(n=null==b?void 0:b.popover)||void 0===n?void 0:n.placement)||g||"top",c=Object.assign(Object.assign({content:i},null==b?void 0:b.popover),{overlayClassName:P(`${x}-popover`,null===(r=null==b?void 0:b.popover)||void 0===r?void 0:r.overlayClassName),placement:l,trigger:s});return e.push(o.createElement(tv,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},c),o.createElement(ym,{style:a},"+"+(N-$)))),w(o.createElement(nv,{shape:h,size:f},o.createElement("div",{className:E,style:u},e)))}return w(o.createElement(nv,{shape:h,size:f},o.createElement("div",{className:E,style:u},O)))};var rv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},iv=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:rv}))},av=o.forwardRef(iv);"production"!==process.env.NODE_ENV&&(av.displayName="VerticalAlignTopOutlined");const sv=new Co("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),lv=new Co("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),cv=new Co("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),uv=new Co("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),dv=new Co("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),pv=new Co("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),fv=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return Si(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%)"})},hv=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 gv=Ui("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=Qi(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({},Vi(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:Xt(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(d).div(2).equal(),boxShadow:`0 0 0 ${Xt(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:Xt(p),borderRadius:h(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Xt(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 ${Xt(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:pv,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:sv,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:lv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:cv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:uv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:dv,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%)"}}})}})(fv(e))),hv);var mv=Ui(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Qi(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({},Vi(e)),{position:"absolute",top:o,padding:`0 ${Xt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Xt(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:`${Xt(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"}})}})(fv(e))),hv);const vv=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(ni),p=u("ribbon",n),f=`${p}-wrapper`,[h,g,m]=mv(p,f),v=Vm(i,!1),b=P(p,`${p}-placement-${l}`,{[`${p}-rtl`]:"rtl"===d,[`${p}-color-${i}`]:v},t),y={},x={};return i&&!v&&(y.background=i,x.color=i),h(o.createElement("div",{className:P(f,c,g,m)},a,o.createElement("div",{className:P(b,g),style:Object.assign(Object.assign({},y),r)},o.createElement("span",{className:`${p}-text`},s),o.createElement("div",{className:`${p}-corner`,style:x}))))};"production"!==process.env.NODE_ENV&&(vv.displayName="Ribbon");const bv=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:P(`${t}-only-unit`,{current:r})},n)};function yv(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const xv=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(bv,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(bv,Object.assign({},e,{key:t,value:i,offset:n-r,current:n===r}))}));f={transform:`translateY(${-yv(s,i,c<a?1:-1)}00%)`}}return o.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:d},p)};var Cv=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 wv=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=Cv(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=o.useContext(ni),h=f("scroll-number",n),g=Object.assign(Object.assign({},p),{"data-show":c,style:s,className:P(h,i,a),title:l});let m=r;if(r&&Number(r)%1==0){const e=String(r).split("");m=o.createElement("bdi",null,e.map(((t,n)=>o.createElement(xv,{prefixCls:h,count:Number(r),value:t,key:e.length-n}))))}return(null==s?void 0:s.borderColor)&&(g.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?_s(d,(e=>({className:P(`${h}-custom-component`,null==e?void 0:e.className,a)}))):o.createElement(u,Object.assign({},g,{ref:t}),m)}));var Sv=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 kv=o.forwardRef(((e,t)=>{var n,r,i,a,s;const{prefixCls:l,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:S,rootClassName:k,classNames:E,styles:O,showZero:$=!1}=e,N=Sv(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:I,badge:L}=o.useContext(ni),A=M("badge",l),[D,T,j]=gv(A),R=m>v?`${v}+`:m,_="0"===R||0===R,z=(null!=p||null!=g)&&(null===m||_&&!$),B=b&&!_,H=B?"":R,F=f((()=>(null==H||""===H||_&&!$)&&!B),[H,_,$,B]),V=c(m);F||(V.current=m);const W=V.current,K=c(H);F||(K.current=H);const q=K.current,X=c(B);F||(X.current=B);const U=f((()=>{if(!C)return Object.assign(Object.assign({},null==L?void 0:L.style),w);const e={marginTop:C[1]};return"rtl"===I?e.left=parseInt(C[0],10):e.right=-parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},e),null==L?void 0:L.style),w)}),[I,C,w,null==L?void 0:L.style]),G=null!=x?x:"string"==typeof W||"number"==typeof W?W:void 0,Y=F||!h?null:o.createElement("span",{className:`${A}-status-text`},h),Q=W&&"object"==typeof W?_s(W,(e=>({style:Object.assign(Object.assign({},U),e.style)}))):void 0,Z=Vm(g,!1),J=P(null==E?void 0:E.indicator,null===(n=null==L?void 0:L.classNames)||void 0===n?void 0:n.indicator,{[`${A}-status-dot`]:z,[`${A}-status-${p}`]:!!p,[`${A}-color-${g}`]:Z}),ee={};g&&!Z&&(ee.color=g,ee.background=g);const te=P(A,{[`${A}-status`]:z,[`${A}-not-a-wrapper`]:!d,[`${A}-rtl`]:"rtl"===I},S,k,null==L?void 0:L.className,null===(r=null==L?void 0:L.classNames)||void 0===r?void 0:r.root,null==E?void 0:E.root,T,j);if(!d&&z){const e=U.color;return D(o.createElement("span",Object.assign({},N,{className:te,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(i=null==L?void 0:L.styles)||void 0===i?void 0:i.root),U)}),o.createElement("span",{className:J,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(a=null==L?void 0:L.styles)||void 0===a?void 0:a.indicator),ee)}),h&&o.createElement("span",{style:{color:e},className:`${A}-status-text`},h)))}return D(o.createElement("span",Object.assign({ref:t},N,{className:te,style:Object.assign(Object.assign({},null===(s=null==L?void 0:L.styles)||void 0===s?void 0:s.root),null==O?void 0:O.root)}),d,o.createElement(Da,{visible:!F,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t}=e;var n,r;const i=M("scroll-number",u),a=X.current,s=P(null==E?void 0:E.indicator,null===(n=null==L?void 0:L.classNames)||void 0===n?void 0:n.indicator,{[`${A}-dot`]:a,[`${A}-count`]:!a,[`${A}-count-sm`]:"small"===y,[`${A}-multiple-words`]:!a&&q&&q.toString().length>1,[`${A}-status-${p}`]:!!p,[`${A}-color-${g}`]:Z});let l=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(r=null==L?void 0:L.styles)||void 0===r?void 0:r.indicator),U);return g&&!Z&&(l=l||{},l.background=g),o.createElement(wv,{prefixCls:i,show:!F,motionClassName:t,className:s,count:q,title:G,style:l,key:"scrollNumber"},Q)})),Y))})),Ev=kv;Ev.Ribbon=vv,"production"!==process.env.NODE_ENV&&(Ev.displayName="Badge");var Ov={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"},$v=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:Ov}))},Nv=o.forwardRef($v);"production"!==process.env.NODE_ENV&&(Nv.displayName="RightOutlined");var Mv=Vs.ESC,Iv=Vs.TAB;var Pv=p((function(e,t){var n=e.overlay,o=e.arrow,i=e.prefixCls,a=f((function(){return"function"==typeof n?n():n}),[n]),s=le(t,pe(a));return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:"".concat(i,"-arrow")}),r.cloneElement(a,{ref:ue(a)?s:void 0}))})),Lv={adjustX:1,adjustY:1},Av=[0,0],Dv={topLeft:{points:["bl","tl"],overflow:Lv,offset:[0,-4],targetOffset:Av},top:{points:["bc","tc"],overflow:Lv,offset:[0,-4],targetOffset:Av},topRight:{points:["br","tr"],overflow:Lv,offset:[0,-4],targetOffset:Av},bottomLeft:{points:["tl","bl"],overflow:Lv,offset:[0,4],targetOffset:Av},bottom:{points:["tc","bc"],overflow:Lv,offset:[0,4],targetOffset:Av},bottomRight:{points:["tr","br"],overflow:Lv,offset:[0,4],targetOffset:Av}},Tv=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function jv(e,t){var n,i=e.arrow,a=void 0!==i&&i,s=e.prefixCls,l=void 0===s?"rc-dropdown":s,c=e.transitionName,u=e.animation,d=e.align,p=e.placement,f=void 0===p?"bottomLeft":p,h=e.placements,g=void 0===h?Dv:h,m=e.getPopupContainer,v=e.showAction,b=e.hideAction,y=e.overlayClassName,x=e.overlayStyle,C=e.visible,w=e.trigger,S=void 0===w?["hover"]:w,k=e.autoFocus,E=e.overlay,O=e.children,$=e.onVisibleChange,N=Nt(e,Tv),M=ht(r.useState(),2),I=M[0],A=M[1],D="visible"in e?C:I,T=r.useRef(null),j=r.useRef(null),R=r.useRef(null);r.useImperativeHandle(t,(function(){return T.current}));var _=function(e){A(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 Mv: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&&ut(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[t])}({visible:D,triggerRef:R,onVisibleChange:_,autoFocus:k,overlayRef:j});var z,B,H,F=function(){return r.createElement(Pv,{ref:j,overlay:E,prefixCls:l,arrow:a})},V=r.cloneElement(O,{className:P(null===(n=O.props)||void 0===n?void 0:n.className,D&&(z=e.openClassName,void 0!==z?z:"".concat(l,"-open"))),ref:ue(O)?le(R,pe(O)):void 0}),W=b;return W||-1===S.indexOf("contextMenu")||(W=["click"]),r.createElement(yh,L({builtinPlacements:g},N,{prefixCls:l,ref:T,popupClassName:P(y,U({},"".concat(l,"-show-arrow"),a)),popupStyle:x,action:S,showAction:v,hideAction:W,popupPlacement:f,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:D,stretch:(B=e.minOverlayWidthMatchTrigger,H=e.alignPoint,("minOverlayWidthMatchTrigger"in e?B:!H)?"minWidth":""),popup:"function"==typeof E?F:F(),onPopupVisibleChange:_,onPopupClick:function(t){var n=e.onOverlayClick;A(!1),n&&n(t)},getPopupContainer:m}),V)}var Rv=r.forwardRef(jv),_v=o.createContext(null);function zv(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Bv(e){return zv(o.useContext(_v),e)}var Hv=["children","locked"],Fv=o.createContext(null);function Vv(e){var t=e.children,n=e.locked,r=Nt(e,Hv),i=o.useContext(Fv),a=ie((function(){return function(e,t){var n=Y({},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]&&Mt(e[1],t[1],!0))}));return o.createElement(Fv.Provider,{value:a},t)}var Wv=[],Kv=o.createContext(null);function qv(){return o.useContext(Kv)}var Xv=o.createContext(Wv);function Uv(e){var t=o.useContext(Xv);return o.useMemo((function(){return void 0!==e?[].concat(rt(t),[e]):t}),[t,e])}var Gv=o.createContext(null),Yv=o.createContext({});function Qv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(xl(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 Zv=Vs.LEFT,Jv=Vs.RIGHT,eb=Vs.UP,tb=Vs.DOWN,nb=Vs.ENTER,ob=Vs.ESC,rb=Vs.HOME,ib=Vs.END,ab=[eb,tb,Zv,Jv];function sb(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=rt(e.querySelectorAll("*")).filter((function(e){return Qv(e,t)}));return Qv(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function lb(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=sb(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 cb=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(zv(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function ub(e,t,n,r,i,a,s,l,c,u){var d=o.useRef(),p=o.useRef();p.current=t;var f=function(){ut.cancel(d.current)};return o.useEffect((function(){return function(){f()}}),[]),function(o){var h=o.which;if([].concat(ab,[nb,ob,rb,ib]).includes(h)){var g=a(),m=cb(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),S=function(e,t,n,o){var r,i,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&o===nb)return{inlineTrigger:!0};var p=(U(r={},eb,l),U(r,tb,c),r),f=(U(i={},Zv,n?c:l),U(i,Jv,n?l:c),U(i,tb,u),U(i,nb,u),i),h=(U(a={},eb,l),U(a,tb,c),U(a,nb,u),U(a,ob,d),U(a,Zv,n?u:d),U(a,Jv,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(!S&&h!==rb&&h!==ib)return;(ab.includes(h)||[rb,ib].includes(h))&&o.preventDefault();var k=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=ut((function(){p.current===o&&t.focus()}))}};if([rb,ib].includes(h)||S.sibling||!C){var E,O,$=sb(E=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===rb?$[0]:h===ib?$[$.length-1]:lb(E,b,C,S.offset),k(O)}else if(S.inlineTrigger)c(w);else if(S.offset>0)c(w,!0),f(),d.current=ut((function(){m=cb(g,r);var e=C.getAttribute("aria-controls"),t=lb(document.getElementById(e),m.elements);k(t)}),5);else if(S.offset<0){var N=s(w,!0),M=N[N.length-2],I=y.get(M);c(M,!1),k(I)}}null==u||u(o)}}var db="__RC_UTIL_PATH_SPLIT__",pb=function(e){return e.join(db)},fb="rc-menu-more";function hb(){var e=ht(o.useState({}),2)[1],t=c(new Map),n=c(new Map),r=ht(o.useState([]),2),i=r[0],a=r[1],s=c(0),l=c(!1),u=v((function(o,r){"production"!==process.env.NODE_ENV&&K(!t.current.has(o),"Duplicated key '".concat(o,"' used in Menu by path [").concat(r.join(" > "),"]"));var i=pb(r);n.current.set(i,o),t.current.set(o,i),s.current+=1;var a=s.current;!function(e){Promise.resolve().then(e)}((function(){a===s.current&&(l.current||e({}))}))}),[]),d=v((function(e,o){var r=pb(o);n.current.delete(r),t.current.delete(e)}),[]),p=v((function(e){a(e)}),[]),f=v((function(e,n){var o=t.current.get(e)||"",r=o.split(db);return n&&i.includes(r[0])&&r.unshift(fb),r}),[i]),h=v((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),g=v((function(e){var o="".concat(t.current.get(e)).concat(db),r=new Set;return rt(n.current.keys()).forEach((function(e){e.startsWith(o)&&r.add(n.current.get(e))})),r}),[]);return o.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:p,isSubPathKey:h,getKeyPath:f,getKeys:function(){var e=rt(t.current.keys());return i.length&&e.push(fb),e},getSubPathKeys:g}}function gb(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 mb=Math.random().toFixed(5).toString().slice(2),vb=0;function bb(e,t,n,r){var i=o.useContext(Fv),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 yb(e){var t=o.useContext(Fv),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}function xb(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,Y({},r)):"boolean"!=typeof n&&(t=n),t||i||null)}var Cb=["item"];function wb(e){var t=e.item,n=Nt(e,Cb);return Object.defineProperty(n,"item",{get:function(){return K(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Sb=["title","attribute","elementRef"],kb=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Eb=["active"],Ob=function(){Ve(t,o.Component);var e=Ue(t);function t(){return ze(this,t),e.apply(this,arguments)}return He(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=et(Nt(e,Sb),["eventKey","popupClassName","popupOffset","onTitleClick"]);return K(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(zf.Item,L({},n,{title:"string"==typeof t?t:void 0},i,{ref:r}))}}]),t}(),$b=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,f=e.onMouseLeave,h=e.onClick,g=e.onKeyDown,m=e.onFocus,v=Nt(e,kb),b=Bv(a),y=o.useContext(Fv),x=y.prefixCls,C=y.onItemClick,w=y.disabled,S=y.overflowDisabled,k=y.itemIcon,E=y.selectedKeys,O=y.onActive,$=o.useContext(Yv)._internalRenderMenuItem,N="".concat(x,"-item"),M=o.useRef(),I=o.useRef(),A=w||l,D=ce(t,I),T=Uv(a);"production"!==process.env.NODE_ENV&&s&&K(!1,"MenuItem should not leave undefined `key`.");var j=function(e){return{key:a,keyPath:rt(T).reverse(),item:M.current,domEvent:e}},R=c||k,_=bb(a,A,p,f),z=_.active,B=Nt(_,Eb),H=E.includes(a),F=yb(T.length),V={};"option"===e.role&&(V["aria-selected"]=H);var W=o.createElement(Ob,L({ref:M,elementRef:D,role:null===d?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":S&&b?null:b},v,B,V,{component:"li","aria-disabled":l,style:Y(Y({},F),r),className:P(N,(n={},U(n,"".concat(N,"-active"),z),U(n,"".concat(N,"-selected"),H),U(n,"".concat(N,"-disabled"),A),n),i),onClick:function(e){if(!A){var t=j(e);null==h||h(wb(t)),C(t)}},onKeyDown:function(e){if(null==g||g(e),e.which===Vs.ENTER){var t=j(e);null==h||h(wb(t)),C(t)}},onFocus:function(e){O(a),null==m||m(e)}}),u,o.createElement(xb,{props:Y(Y({},e),{},{isSelected:H}),icon:R}));return $&&(W=$(W,e,{selected:H})),W}));function Nb(e,t){var n=e.eventKey,r=qv(),i=Uv(n);return o.useEffect((function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}}),[i]),r?null:o.createElement($b,L({},e,{ref:t}))}var Mb=o.forwardRef(Nb),Ib=["className","children"],Pb=function(e,t){var n=e.className,r=e.children,i=Nt(e,Ib),a=o.useContext(Fv),s=a.prefixCls,l=a.mode,c=a.rtl;return o.createElement("ul",L({className:P(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)},Lb=o.forwardRef(Pb);function Ab(e,t){return _(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(rt(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}))}Lb.displayName="SubMenuList";var Db={adjustX:1,adjustY:1},Tb={topLeft:{points:["bl","tl"],overflow:Db},topRight:{points:["br","tr"],overflow:Db},bottomLeft:{points:["tl","bl"],overflow:Db},bottomRight:{points:["tr","br"],overflow:Db},leftTop:{points:["tr","tl"],overflow:Db},leftBottom:{points:["br","bl"],overflow:Db},rightTop:{points:["tl","tr"],overflow:Db},rightBottom:{points:["bl","br"],overflow:Db}},jb={topLeft:{points:["bl","tl"],overflow:Db},topRight:{points:["br","tr"],overflow:Db},bottomLeft:{points:["tl","bl"],overflow:Db},bottomRight:{points:["tr","br"],overflow:Db},rightTop:{points:["tr","tl"],overflow:Db},rightBottom:{points:["br","bl"],overflow:Db},leftTop:{points:["tl","tr"],overflow:Db},leftBottom:{points:["bl","br"],overflow:Db}};function Rb(e,t,n){return t||(n?n[e]||n.other:void 0)}var _b={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function zb(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(Fv),f=p.getPopupContainer,h=p.rtl,g=p.subMenuOpenDelay,m=p.subMenuCloseDelay,v=p.builtinPlacements,b=p.triggerSubMenuAction,y=p.forceSubMenuRender,x=p.rootClassName,C=p.motion,w=p.defaultMotions,S=ht(o.useState(!1),2),k=S[0],E=S[1],O=Y(Y({},h?jb:Tb),v),$=_b[u],N=Rb(u,C,w),M=o.useRef(N);"inline"!==u&&(M.current=N);var I=Y(Y({},M.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=o.useRef();return o.useEffect((function(){return L.current=ut((function(){E(n)})),function(){ut.cancel(L.current)}}),[n]),o.createElement(yh,{prefixCls:t,popupClassName:P("".concat(t,"-popup"),U({},"".concat(t,"-rtl"),h),s,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:f,builtinPlacements:O,popupPlacement:$,popupVisible:k,popup:i,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:m,onPopupVisibleChange:d,forceRender:y,popupMotion:I,fresh:!0},r)}function Bb(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",s=o.useContext(Fv),l=s.prefixCls,c=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,p=s.mode,f=o.useRef(!1);f.current=p===a;var h=ht(o.useState(!f.current),2),g=h[0],m=h[1],v=!!f.current&&n;o.useEffect((function(){f.current&&m(!1)}),[p]);var b=Y({},Rb(a,u,d));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||m(!0),null==y?void 0:y(e)},g?null:o.createElement(Vv,{mode:a,locked:!f.current},o.createElement(Da,L({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return o.createElement(Lb,{id:t,className:n,style:r},i)})))}var Hb=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Fb=["active"],Vb=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,f=e.expandIcon,h=e.popupClassName,g=e.popupOffset,m=e.popupStyle,v=e.onClick,b=e.onMouseEnter,y=e.onMouseLeave,x=e.onTitleClick,C=e.onTitleMouseEnter,w=e.onTitleMouseLeave,S=Nt(e,Hb),k=Bv(s),E=o.useContext(Fv),O=E.prefixCls,$=E.mode,N=E.openKeys,M=E.disabled,I=E.overflowDisabled,A=E.activeKey,D=E.selectedKeys,T=E.itemIcon,j=E.expandIcon,R=E.onItemClick,_=E.onOpenChange,z=E.onActive,B=o.useContext(Yv)._internalRenderSubMenuItem,H=o.useContext(Gv).isSubPathKey,F=Uv(),V="".concat(O,"-submenu"),W=M||c,q=o.useRef(),X=o.useRef();"production"!==process.env.NODE_ENV&&l&&K(!1,"SubMenu should not leave undefined `key`.");var G=null!=p?p:T,Q=null!=f?f:j,Z=N.includes(s),J=!I&&Z,ee=H(D,s),te=bb(s,W,C,w),ne=te.active,oe=Nt(te,Fb),re=ht(o.useState(!1),2),ie=re[0],ae=re[1],se=function(e){W||ae(e)},le=o.useMemo((function(){return ne||"inline"!==$&&(ie||H([A],s))}),[$,ne,A,ie,s,H]),ce=yb(F.length),ue=gb((function(e){null==v||v(wb(e)),R(e)})),de=k&&"".concat(k,"-popup"),pe=o.createElement("div",L({role:"menuitem",style:ce,className:"".concat(V,"-title"),tabIndex:W?null:-1,ref:q,title:"string"==typeof a?a:null,"data-menu-id":I&&k?null:k,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":W,onClick:function(e){W||(null==x||x({key:s,domEvent:e}),"inline"===$&&_(s,!Z))},onFocus:function(){z(s)}},oe),a,o.createElement(xb,{icon:"horizontal"!==$?Q:void 0,props:Y(Y({},e),{},{isOpen:J,isSubMenu:!0})},o.createElement("i",{className:"".concat(V,"-arrow")}))),fe=o.useRef($);if("inline"!==$&&F.length>1?fe.current="vertical":fe.current=$,!I){var he=fe.current;pe=o.createElement(zb,{mode:he,prefixCls:V,visible:!u&&J&&"inline"!==$,popupClassName:h,popupOffset:g,popupStyle:m,popup:o.createElement(Vv,{mode:"horizontal"===he?"vertical":he},o.createElement(Lb,{id:de,ref:X},d)),disabled:W,onVisibleChange:function(e){"inline"!==$&&_(s,e)}},pe)}var ge=o.createElement(zf.Item,L({ref:t,role:"none"},S,{component:"li",style:r,className:P(V,"".concat(V,"-").concat($),i,(n={},U(n,"".concat(V,"-open"),J),U(n,"".concat(V,"-active"),le),U(n,"".concat(V,"-selected"),ee),U(n,"".concat(V,"-disabled"),W),n)),onMouseEnter:function(e){se(!0),null==b||b({key:s,domEvent:e})},onMouseLeave:function(e){se(!1),null==y||y({key:s,domEvent:e})}}),pe,!I&&o.createElement(Bb,{id:de,open:J,keyPath:F},d));return B&&(ge=B(ge,e,{selected:ee,active:le,open:J,disabled:W})),o.createElement(Vv,{onItemClick:ue,mode:"horizontal"===$?"vertical":$,itemIcon:G,expandIcon:Q},ge)})),Wb=o.forwardRef((function(e,t){var n,r=e.eventKey,i=e.children,a=Uv(r),s=Ab(i,a),l=qv();return o.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),n=l?s:o.createElement(Vb,L({ref:t},e),s),o.createElement(Xv.Provider,{value:a},n)}));function Kb(e){var t=e.className,n=e.style,r=o.useContext(Fv).prefixCls;return qv()?null:o.createElement("li",{role:"separator",className:P("".concat(r,"-item-divider"),t),style:n})}"production"!==process.env.NODE_ENV&&(Wb.displayName="SubMenu");var qb=["className","title","eventKey","children"],Xb=o.forwardRef((function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=Nt(e,qb),s=o.useContext(Fv).prefixCls,l="".concat(s,"-item-group");return o.createElement("li",L({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:P(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))})),Ub=o.forwardRef((function(e,t){var n=e.eventKey,r=Ab(e.children,Uv(n));return qv()?r:o.createElement(Xb,L({ref:t},et(e,["warnKey"])),r)}));"production"!==process.env.NODE_ENV&&(Ub.displayName="MenuItemGroup");var Gb=["label","children","key","type"];function Yb(e,t){var n=t.item,r=t.group,i=t.submenu,a=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===A(e)){var l=e,c=l.label,u=l.children,d=l.key,p=l.type,f=Nt(l,Gb),h=null!=d?d:"tmp-".concat(s);return u||"group"===p?"group"===p?o.createElement(r,L({key:h},f,{title:c}),Yb(u,t)):o.createElement(i,L({key:h},f,{title:c}),Yb(u,t)):"divider"===p?o.createElement(a,L({key:h},f)):o.createElement(n,L({key:h},f),c)}return null})).filter((function(e){return e}))}function Qb(e,t,n,o){var r=e,i=Y({divider:Kb,item:Mb,group:Ub,submenu:Wb},o);return t&&(r=Yb(t,i)),Ab(r,n)}var Zb=["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"],Jb=[],ey=o.forwardRef((function(e,t){var n,r,i=e,a=i.prefixCls,s=void 0===a?"rc-menu":a,l=i.rootClassName,c=i.style,u=i.className,d=i.tabIndex,p=void 0===d?0:d,f=i.items,h=i.children,g=i.direction,m=i.id,v=i.mode,y=void 0===v?"vertical":v,x=i.inlineCollapsed,C=i.disabled,w=i.disabledOverflow,S=i.subMenuOpenDelay,k=void 0===S?.1:S,E=i.subMenuCloseDelay,$=void 0===E?.1:E,N=i.forceSubMenuRender,M=i.defaultOpenKeys,I=i.openKeys,A=i.activeKey,D=i.defaultActiveFirst,T=i.selectable,j=void 0===T||T,R=i.multiple,_=void 0!==R&&R,z=i.defaultSelectedKeys,B=i.selectedKeys,H=i.onSelect,F=i.onDeselect,V=i.inlineIndent,W=void 0===V?24:V,q=i.motion,X=i.defaultMotions,G=i.triggerSubMenuAction,Q=void 0===G?"hover":G,Z=i.builtinPlacements,J=i.itemIcon,ee=i.expandIcon,te=i.overflowedIndicator,ne=void 0===te?"...":te,oe=i.overflowedIndicatorPopupClassName,re=i.getPopupContainer,ie=i.onClick,ae=i.onOpenChange,se=i.onKeyDown,le=i.openAnimation,ce=i.openTransitionName,ue=i._internalRenderMenuItem,de=i._internalRenderSubMenuItem,pe=i._internalComponents,fe=Nt(i,Zb),he=ht(o.useMemo((function(){return[Qb(h,f,Jb,pe),Qb(h,f,Jb,{})]}),[h,f,pe]),2),ge=he[0],me=he[1],ve=ht(o.useState(!1),2),be=ve[0],ye=ve[1],xe=o.useRef(),Ce=function(e){var t=ht(yi(e,{value:e}),2),n=t[0],r=t[1];return o.useEffect((function(){vb+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(mb,"-").concat(vb);r("rc-menu-uuid-".concat(e))}),[]),n}(m),we="rtl"===g;"production"!==process.env.NODE_ENV&&K(!le&&!ce,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Se=yi(M,{value:I,postState:function(e){return e||Jb}}),ke=ht(Se,2),Ee=ke[0],Oe=ke[1],$e=function(e){function t(){Oe(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?O(t):t()},Ne=ht(o.useState(Ee),2),Me=Ne[0],Ie=Ne[1],Pe=o.useRef(!1),Le=ht(o.useMemo((function(){return"inline"!==y&&"vertical"!==y||!x?[y,!1]:["vertical",x]}),[y,x]),2),Ae=Le[0],De=Le[1],Te="inline"===Ae,je=ht(o.useState(Ae),2),Re=je[0],_e=je[1],ze=ht(o.useState(De),2),Be=ze[0],He=ze[1];o.useEffect((function(){_e(Ae),He(De),Pe.current&&(Te?Oe(Me):$e(Jb))}),[Ae,De]);var Fe=ht(o.useState(0),2),Ve=Fe[0],We=Fe[1],Ke=Ve>=ge.length-1||"horizontal"!==Re||w;o.useEffect((function(){Te&&Ie(Ee)}),[Ee]),o.useEffect((function(){return Pe.current=!0,function(){Pe.current=!1}}),[]);var qe=hb(),Xe=qe.registerPath,Ue=qe.unregisterPath,Ge=qe.refreshOverflowKeys,Ye=qe.isSubPathKey,Qe=qe.getKeyPath,Ze=qe.getKeys,Je=qe.getSubPathKeys,et=o.useMemo((function(){return{registerPath:Xe,unregisterPath:Ue}}),[Xe,Ue]),tt=o.useMemo((function(){return{isSubPathKey:Ye}}),[Ye]);o.useEffect((function(){Ge(Ke?Jb:ge.slice(Ve+1).map((function(e){return e.key})))}),[Ve,Ke]);var nt=ht(yi(A||D&&(null===(n=ge[0])||void 0===n?void 0:n.key),{value:A}),2),ot=nt[0],it=nt[1],at=gb((function(e){it(e)})),st=gb((function(){it(void 0)}));b(t,(function(){return{list:xe.current,focus:function(e){var t,n,o=Ze(),r=cb(o,Ce),i=r.elements,a=r.key2element,s=r.element2key,l=sb(xe.current,i),c=null!=ot?ot: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 lt=yi(z||[],{value:B,postState:function(e){return Array.isArray(e)?e:null==e?Jb:[e]}}),ct=ht(lt,2),ut=ct[0],dt=ct[1],pt=gb((function(e){null==ie||ie(wb(e)),function(e){if(j){var t,n=e.key,o=ut.includes(n);t=_?o?ut.filter((function(e){return e!==n})):[].concat(rt(ut),[n]):[n],dt(t);var r=Y(Y({},e),{},{selectedKeys:t});o?null==F||F(r):null==H||H(r)}!_&&Ee.length&&"inline"!==Re&&$e(Jb)}(e)})),ft=gb((function(e,t){var n=Ee.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var o=Je(e);n=n.filter((function(e){return!o.has(e)}))}Mt(Ee,n,!0)||$e(n,!0)})),gt=ub(Re,ot,we,Ce,xe,Ze,Qe,it,(function(e,t){var n=null!=t?t:!Ee.includes(e);ft(e,n)}),se);o.useEffect((function(){ye(!0)}),[]);var mt=o.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),vt="horizontal"!==Re||w?ge:ge.map((function(e,t){return o.createElement(Vv,{key:e.key,overflowDisabled:t>Ve},e)})),bt=o.createElement(zf,L({id:m,ref:xe,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Mb,className:P(s,"".concat(s,"-root"),"".concat(s,"-").concat(Re),u,(r={},U(r,"".concat(s,"-inline-collapsed"),Be),U(r,"".concat(s,"-rtl"),we),r),l),dir:g,style:c,role:"menu",tabIndex:p,data:vt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ge.slice(-t):null;return o.createElement(Wb,{eventKey:fb,title:ne,disabled:Ke,internalPopupClose:0===t,popupClassName:oe},n)},maxCount:"horizontal"!==Re||w?zf.INVALIDATE:zf.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){We(e)},onKeyDown:gt},fe));return o.createElement(Yv.Provider,{value:mt},o.createElement(_v.Provider,{value:Ce},o.createElement(Vv,{prefixCls:s,rootClassName:l,mode:Re,openKeys:Ee,rtl:we,disabled:C,motion:be?q:null,defaultMotions:be?X:null,activeKey:ot,onActive:at,onInactive:st,selectedKeys:ut,inlineIndent:W,subMenuOpenDelay:k,subMenuCloseDelay:$,forceSubMenuRender:N,builtinPlacements:Z,triggerSubMenuAction:Q,getPopupContainer:re,itemIcon:J,expandIcon:ee,onItemClick:pt,onOpenChange:ft},o.createElement(Gv.Provider,{value:tt},bt),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(Kv.Provider,{value:et},me)))))})),ty=ey;ty.Item=Mb,ty.SubMenu=Wb,ty.ItemGroup=Ub,ty.Divider=Kb;var ny={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"},oy=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:ny}))},ry=o.forwardRef(oy);"production"!==process.env.NODE_ENV&&(ry.displayName="BarsOutlined");var iy={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"},ay=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:iy}))},sy=o.forwardRef(ay);"production"!==process.env.NODE_ENV&&(sy.displayName="LeftOutlined");const ly=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var cy=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 uy={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},dy=o.createContext({}),py=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),fy=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:l=!1,theme:u="dark",style:p={},collapsible:f=!1,reverseArrow:g=!1,width:m=200,collapsedWidth:v=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:x,onBreakpoint:C}=e,w=cy(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=s(ly),[k,E]=h("collapsed"in e?e.collapsed:l),[O,$]=h(!1);d((()=>{"collapsed"in e&&E(e.collapsed)}),[e.collapsed]);const N=(t,n)=>{"collapsed"in e||E(t),null==x||x(t,n)},M=c();M.current=e=>{$(e.matches),null==C||C(e.matches),k!==e.matches&&N(e.matches,"responsive")},d((()=>{function e(e){return M.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&y&&y in uy){t=n(`screen and (max-width: ${uy[y]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[y]),d((()=>{const e=py("ant-sider-");return S.addSider(e),()=>S.removeSider(e)}),[]);const I=()=>{N(!k,"clickTrigger")},{getPrefixCls:L}=s(ni),A=o.useMemo((()=>({siderCollapsed:k})),[k]);return o.createElement(dy.Provider,{value:A},(()=>{const e=L("layout-sider",n),s=et(w,["collapsed"]),l=k?v:m,c=(d=l,!isNaN(parseFloat(d))&&isFinite(d)?`${l}px`:String(l));var d;const h=0===parseFloat(String(v||0))?o.createElement("span",{onClick:I,className:P(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${g?"right":"left"}`),style:b},i||o.createElement(ry,null)):null,y={expanded:g?o.createElement(Nv,null):o.createElement(sy,null),collapsed:g?o.createElement(sy,null):o.createElement(Nv,null)}[k?"collapsed":"expanded"],x=null!==i?h||o.createElement("div",{className:`${e}-trigger`,onClick:I,style:{width:c}},i||y):null,C=Object.assign(Object.assign({},p),{flex:`0 0 ${c}`,maxWidth:c,minWidth:c,width:c}),S=P(e,`${e}-${u}`,{[`${e}-collapsed`]:!!k,[`${e}-has-trigger`]:f&&null!==i&&!h,[`${e}-below`]:!!O,[`${e}-zero-width`]:0===parseFloat(c)},r);return o.createElement("aside",Object.assign({className:S},s,{style:C,ref:t}),o.createElement("div",{className:`${e}-children`},a),f||O&&h?x:null)})())}));"production"!==process.env.NODE_ENV&&(fy.displayName="Sider");var hy={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"},gy=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:hy}))},my=o.forwardRef(gy);"production"!==process.env.NODE_ENV&&(my.displayName="EllipsisOutlined");const vy=l({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var by=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 yy=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=by(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=o.useContext(ni),s=a("menu",t),l=P({[`${s}-item-divider-dashed`]:!!r},n);return o.createElement(Kb,Object.assign({className:l},i))},xy=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(vy),{siderCollapsed:f}=o.useContext(dy);let h=a;void 0===a?h=c?r:"":!1===a&&(h="");const g={title:h};f||p||(g.title=null,g.open=!1);const m=_(r).length;let v=o.createElement(Mb,Object.assign({},et(e,["title","icon","danger"]),{className:P({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(i?m+1:m)},n),title:"string"==typeof a?a:void 0}),_s(i,{className:P(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||(v=o.createElement(Xm,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),v)),v};var Cy=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 wy=o.createContext(null),Sy=o.forwardRef(((e,t)=>{const{children:n}=e,r=Cy(e,["children"]),i=o.useContext(wy),a=o.useMemo((()=>Object.assign(Object.assign({},i),r)),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=function(e){return de(e)&&ue(e)}(n),l=ce(t,s?n.ref:null);return o.createElement(wy.Provider,{value:a},o.createElement(Cd,{space:!0},s?o.cloneElement(n,{ref:l}):n))})),ky=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:`${Xt(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"}}}},Ey=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(${Xt(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Xt(n)})`}}}}},Oy=e=>Object.assign({},Ki(e)),$y=(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:S,dangerItemActiveBg:k,dangerItemSelectedBg:E,popupBg:O,itemHoverBg:$,itemActiveBg:N,menuSubMenuBg:M,horizontalItemSelectedColor:I,horizontalItemSelectedBg:P,horizontalItemBorderRadius:L,horizontalItemHoverBg:A}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Oy(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({},Oy(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}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${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:L,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Xt(c)} solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:c,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Xt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Xt(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(",")}}}}}},Ny=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:Xt(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Xt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},My=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:Xt(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Ny(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Ny(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Xt(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% - ${Xt(e.calc(d).div(2).equal())} - ${Xt(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:Xt(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({},Fi),{paddingInline:f})}}]},Iy=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"}}}},Py=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(${Xt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Xt(a)})`}}}}},Ly=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({},Vi(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:`${Xt(s)} ${Xt(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"}}}),Iy(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Xt(e.calc(o).mul(2).equal())} ${Xt(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},Iy(e)),Py(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}}}),Py(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Xt(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Xt(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Xt(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Xt(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Xt(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:S,fontSizeLG:k,colorTextLightSolid:E,colorErrorHover:O}=e,$=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,M=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,I=new Vr(E).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:N,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:C,horizontalLineHeight:1.15*v+"px",iconSize:w,iconMarginInlineEnd:S-w,collapsedIconSize:k,groupTitleFontSize:w,darkItemDisabledColor:new Vr(E).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:E,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:$?`calc(100% + ${N}px)`:`calc(100% - ${2*M}px)`}};const Dy=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,s=o.useContext(vy),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=Uv();let p;if(r){const e=o.isValidElement(i)&&"span"===i.type;p=o.createElement(o.Fragment,null,_s(r,{className:P(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 f=o.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[h]=Qs("Menu");return o.createElement(vy.Provider,{value:f},o.createElement(Wb,Object.assign({},et(e,["icon"]),{title:p,popupClassName:P(l,n,`${l}-${a||u}`),popupStyle:{zIndex:h}})))};var Ty=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 jy(e){return null===e||!1===e}const Ry={item:xy,submenu:Dy,divider:yy},_y=p(((e,t)=>{var n;const r=o.useContext(wy),i=r||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=o.useContext(ni),u=a(),{prefixCls:d,className:p,style:f,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:x,selectable:C,onClick:w,overflowedIndicatorPopupClassName:S}=e,k=et(Ty(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const t=To("Menu");"production"!==process.env.NODE_ENV&&t(!("inlineCollapsed"in e&&"inline"!==x),"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:x});const E=mi((function(){var e;null==w||w.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,$=null!=C?C:i.selectable,N=o.useMemo((()=>void 0!==b?b:v),[v,b]),M={horizontal:{motionName:`${u}-slide-up`},inline:bl(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||i.prefixCls),L=Fs(I),[A,D,T]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Ui("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=Si(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=Si(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[Ly(C),ky(C),My(C),$y(C,"light"),$y(w,"dark"),Ey(C),rp(C),Np(C,"slide-up"),Np(C,"slide-down"),jp(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)}(I,L,!r),j=P(`${I}-${h}`,null==c?void 0:c.className,p),R=o.useMemo((()=>{var e,t;if("function"==typeof g||jy(g))return g||null;if("function"==typeof i.expandIcon||jy(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||jy(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const n=null!==(e=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==c?void 0:c.expandIcon;return _s(n,{className:P(`${I}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,I]),_=o.useMemo((()=>({prefixCls:I,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:h,mode:O,disableMenuItemTitleTooltip:m})),[I,N,l,m,h]);return A(o.createElement(wy.Provider,{value:null},o.createElement(vy.Provider,{value:_},o.createElement(ty,Object.assign({getPopupContainer:s,overflowedIndicator:o.createElement(my,null),overflowedIndicatorPopupClassName:P(I,`${I}-${h}`,S),mode:O,selectable:$,onClick:E},k,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:j,prefixCls:I,direction:l,defaultMotions:M,expandIcon:R,ref:t,rootClassName:P(y,D,i.rootClassName,T,L),_internalComponents:Ry})))))})),zy=p(((e,t)=>{const n=c(null),r=o.useContext(dy);return b(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),o.createElement(_y,Object.assign({ref:n},e,r))}));zy.Item=xy,zy.SubMenu=Dy,zy.Divider=yy,zy.ItemGroup=Ub,"production"!==process.env.NODE_ENV&&(zy.displayName="Menu");const By=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},Hy=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:h,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:f},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:yp},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Cp},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:xp},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:wp}}},Am(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Vi(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},qi(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Xt(c)} ${Xt(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Xt(c)} ${Xt(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},qi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Xt(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Xt(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Np(e,"slide-up"),Np(e,"slide-down"),bp(e,"move-up"),bp(e,"move-down"),jp(e,"zoom-big")]]};var Fy=Ui("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,i=Si(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[Hy(i),By(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Pm({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Mm(e))),{resetStyle:!1});const Vy=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:s,disabled:l,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:p,overlayStyle:f,open:h,onOpenChange:g,visible:m,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:x=!0,placement:C="",overlay:w,transitionName:S}=e,{getPopupContainer:k,getPrefixCls:E,direction:O,dropdown:$}=o.useContext(ni),N=To("Dropdown");"production"!==process.env.NODE_ENV&&([["visible","open"],["onVisibleChange","onOpenChange"]].forEach((t=>{let[n,o]=t;N.deprecated(!(n in e),n,o)})),N.deprecated(!("overlay"in e),"overlay","menu"));const M=o.useMemo((()=>{const e=E();return void 0!==S?S:C.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[E,C,S]),I=o.useMemo((()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:"rtl"===O?"bottomRight":"bottomLeft"),[C,O]);if("production"!==process.env.NODE_ENV){if(C.includes("Center")){const e=C.slice(0,C.indexOf("Center"));"production"!==process.env.NODE_ENV&&N(!C.includes("Center"),"deprecated",`You are using '${C}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach((t=>{let[n,o]=t;N.deprecated(!(n in e),n,o)}))}const L=E("dropdown",i),A=Fs(L),[D,T,j]=Fy(L,A),[,R]=Bi(),_=o.Children.only(a),z=_s(_,{className:P(`${L}-trigger`,{[`${L}-rtl`]:"rtl"===O},_.props.className),disabled:null!==(t=_.props.disabled)&&void 0!==t?t:l}),B=l?[]:s,H=!!(null==B?void 0:B.includes("contextMenu")),[F,V]=yi(!1,{value:null!=h?h:m}),W=mi((e=>{null==g||g(e,{source:"trigger"}),null==v||v(e),V(e)})),K=P(d,p,T,j,A,null==$?void 0:$.className,{[`${L}-rtl`]:"rtl"===O}),q=Rm({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:x,offset:R.marginXXS,arrowWidth:r?R.sizePopupArrow:0,borderRadius:R.borderRadius}),X=o.useCallback((()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==g||g(!1,{source:"menu"}),V(!1))}),[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[U,G]=Qs("Dropdown",null==f?void 0:f.zIndex);let Y=o.createElement(Rv,Object.assign({alignPoint:H},et(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:F,builtinPlacements:q,arrow:!!r,overlayClassName:K,prefixCls:L,getPopupContainer:u||k,transitionName:M,trigger:B,overlay:()=>{let e;return e=(null==n?void 0:n.items)?o.createElement(zy,Object.assign({},n)):"function"==typeof w?w():w,c&&(e=c(e)),e=o.Children.only("string"==typeof e?o.createElement("span",null,e):e),o.createElement(Sy,{prefixCls:`${L}-menu`,rootClassName:P(j,A),expandIcon:o.createElement("span",{className:`${L}-menu-submenu-arrow`},o.createElement(Nv,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:e=>{let{mode:t}=e;"production"!==process.env.NODE_ENV&&N(!t||"vertical"===t,"usage",`mode="${t}" is not supported for Dropdown's Menu.`)}},e)},placement:I,onVisibleChange:W,overlayStyle:Object.assign(Object.assign(Object.assign({},null==$?void 0:$.style),f),{zIndex:U})}),z);return U&&(Y=o.createElement(Xs.Provider,{value:G},Y)),D(Y)};const Wy=vf(Vy,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Vy._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(Wy,Object.assign({},e),o.createElement("span",null)),"production"!==process.env.NODE_ENV&&(Vy.displayName="Dropdown");const Ky=e=>{let{children:t}=e;const{getPrefixCls:n}=o.useContext(ni),r=n("breadcrumb");return o.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};Ky.__ANT_BREADCRUMB_SEPARATOR=!0;var qy=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 Xy(e,t,n,r){if(null==n)return null;const{className:i,onClick:a}=t,s=qy(t,["className","onClick"]),l=Object.assign(Object.assign({},Ts(s,{data:!0,aria:!0})),{onClick:a});return void 0!==r?o.createElement("a",Object.assign({},l,{className:P(`${e}-link`,i),href:r}),n):o.createElement("span",Object.assign({},l,{className:P(`${e}-link`,i)}),n)}function Uy(e,t){return(n,o,r,i,a)=>{if(t)return t(n,o,r,i);const s=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,o);return Xy(e,n,s,a)}}var Gy=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 Yy=e=>{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:a,dropdownProps:s,href:l}=e;if("production"!==process.env.NODE_ENV){To("Breadcrumb.Item").deprecated(!("overlay"in e),"overlay","menu")}const c=(e=>{if(i||a){const n=Object.assign({},s);if(i){const e=i||{},{items:t}=e,r=Gy(e,["items"]);n.menu=Object.assign(Object.assign({},r),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:r,label:i,path:a}=e,s=Gy(e,["key","title","label","path"]);let c=null!=i?i:r;return a&&(c=o.createElement("a",{href:`${l}${a}`},c)),Object.assign(Object.assign({},s),{key:null!=n?n:t,label:c})}))})}else a&&(n.overlay=a);return o.createElement(Vy,Object.assign({placement:"bottom"},n),o.createElement("span",{className:`${t}-overlay-link`},e,o.createElement(em,null)))}return e})(r);return null!=c?o.createElement(o.Fragment,null,o.createElement("li",null,c),n&&o.createElement(Ky,null,n)):null},Qy=e=>{const{prefixCls:t,children:n,href:r}=e,i=Gy(e,["prefixCls","children","href"]),{getPrefixCls:a}=o.useContext(ni),s=a("breadcrumb",t);return o.createElement(Yy,Object.assign({},i,{prefixCls:s}),Xy(s,i,n,r))};Qy.__ANT_BREADCRUMB_ITEM=!0;var Zy=Qy;var Jy=Ui("Breadcrumb",(e=>(e=>{const{componentCls:t,iconCls:n,calc:o}=e;return{[t]:Object.assign(Object.assign({},Vi(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${Xt(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:o(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},qi(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${Xt(e.paddingXXS)}`,marginInline:o(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}})(Si(e,{}))),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),ex=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 tx(e){const{breadcrumbName:t,children:n}=e,o=ex(e,["breadcrumbName","children"]),r=Object.assign({title:t},o);return n&&(r.menu={items:n.map((e=>{var{breadcrumbName:t}=e,n=ex(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),r}var nx=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 ox=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:a,routes:s,items:l,children:c,itemRender:u,params:d={}}=e,p=nx(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:h,direction:g,breadcrumb:m}=o.useContext(ni);let v;const b=h("breadcrumb",t),[y,x,C]=Jy(b),w=function(e,t){return f((()=>e||(t?t.map(tx):null)),[e,t])}(l,s);if("production"!==process.env.NODE_ENV){const e=To("Breadcrumb");if(e.deprecated(!s,"routes","items"),!w||0===w.length){const t=_(c);e.deprecated(0===t.length,"Breadcrumb.Item and Breadcrumb.Separator","items"),t.forEach((t=>{t&&"production"!==process.env.NODE_ENV&&e(t.type&&(!0===t.type.__ANT_BREADCRUMB_ITEM||!0===t.type.__ANT_BREADCRUMB_SEPARATOR),"usage","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children")}))}}const S=Uy(b,u);if(w&&w.length>0){const e=[],t=l||s;v=w.map(((r,i)=>{const{path:a,key:s,type:l,menu:c,overlay:u,onClick:p,className:f,separator:h,dropdownProps:g}=r,m=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(d,a);void 0!==m&&e.push(m);const v=null!=s?s:i;if("separator"===l)return o.createElement(Ky,{key:v},h);const y={},x=i===w.length-1;c?y.menu=c:u&&(y.overlay=u);let{href:C}=r;return e.length&&void 0!==m&&(C=`#/${e.join("/")}`),o.createElement(Yy,Object.assign({key:v},y,Ts(r,{data:!0,aria:!0}),{className:f,dropdownProps:g,href:C,separator:x?"":n,onClick:p,prefixCls:b}),S(r,d,t,e,C))}))}else if(c){const e=_(c).length;v=_(c).map(((t,o)=>{if(!t)return t;return _s(t,{separator:o===e-1?"":n,key:o})}))}const k=P(b,null==m?void 0:m.className,{[`${b}-rtl`]:"rtl"===g},i,a,x,C),E=Object.assign(Object.assign({},null==m?void 0:m.style),r);return y(o.createElement("nav",Object.assign({className:k,style:E},p),o.createElement("ol",null,v)))};ox.Item=Zy,ox.Separator=Ky,"production"!==process.env.NODE_ENV&&(ox.displayName="Breadcrumb");const rx=o.createContext(null),ix=rx.Provider,ax=o.createContext(null),sx=ax.Provider;var lx=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],cx=p((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-checkbox":n,i=e.className,a=e.style,s=e.checked,l=e.disabled,u=e.defaultChecked,d=void 0!==u&&u,p=e.type,f=void 0===p?"checkbox":p,h=e.title,g=e.onChange,m=Nt(e,lx),v=c(null),y=c(null),x=ht(yi(d,{value:s}),2),C=x[0],w=x[1];b(t,(function(){return{focus:function(e){var t;null===(t=v.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=v.current)||void 0===e||e.blur()},input:v.current,nativeElement:y.current}}));var S=P(r,i,U(U({},"".concat(r,"-checked"),C),"".concat(r,"-disabled"),l));return o.createElement("span",{className:S,title:h,style:a,ref:y},o.createElement("input",L({},m,{className:"".concat(r,"-input"),ref:v,onChange:function(t){l||("checked"in e||w(t.target.checked),null==g||g({target:Y(Y({},e),{},{type:f,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:l,checked:!!C,type:f})),o.createElement("span",{className:"".concat(r,"-inner")}))}));const ux=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},Vi(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},dx=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:p,paddingXS:f,dotColorDisabled:h,lineType:g,radioColor:m,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(r).sub(b(4).mul(2)),C=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Vi(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Xt(u)} ${g} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Vi(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Ki(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:b(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}})}},px=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:p,controlHeightLG:f,controlHeightSM:h,paddingXS:g,borderRadius:m,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:w,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:k,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:$,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:I,calc:P}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Xt(P(n).sub(P(r).mul(2)).equal()),background:d,border:`${Xt(r)} ${i} ${a}`,borderBlockStartWidth:P(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:P(r).mul(-1).equal(),insetInlineStart:P(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Xt(r)} ${i} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${o}-group-large &`]:{height:f,fontSize:p,lineHeight:Xt(P(f).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:h,paddingInline:P(g).sub(r).equal(),paddingBlock:0,lineHeight:Xt(P(h).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Ki(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:x,background:N,borderColor:N,"&:hover":{color:x,background:M,borderColor:M},"&:active":{color:x,background:I,borderColor:I}},"&-disabled":{color:C,backgroundColor:w,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:w,borderColor:a}},[`&-disabled${o}-button-wrapper-checked`]:{color:k,backgroundColor:S,borderColor:a,boxShadow:"none"}}}};var fx=Ui("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${Xt(n)} ${t}`,r=Si(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[ux(r),dx(r),px(r)]}),(e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:p,colorPrimaryActive:f,colorWhite:h}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+r),dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:f,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?d:h,radioBgColor:t?s:d}}),{unitless:{radioSize:!0,dotSize:!0}}),hx=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 gx=(e,t)=>{var n,r;const i=o.useContext(rx),a=o.useContext(ax),{getPrefixCls:s,direction:l,radio:c}=o.useContext(ni),u=o.useRef(null),d=le(t,u),{isFormItemInput:p}=o.useContext(bd);if("production"!==process.env.NODE_ENV){const t=To("Radio");"production"!==process.env.NODE_ENV&&t(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const f=t=>{var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null==i?void 0:i.onChange)||void 0===o||o.call(i,t)},{prefixCls:h,className:g,rootClassName:m,children:v,style:b,title:y}=e,x=hx(e,["prefixCls","className","rootClassName","children","style","title"]),C=s("radio",h),w="button"===((null==i?void 0:i.optionType)||a),S=w?`${C}-button`:C,k=Fs(C),[E,O,$]=fx(C,k),N=Object.assign({},x),M=o.useContext(ii);i&&(N.name=i.name,N.onChange=f,N.checked=e.value===i.value,N.disabled=null!==(n=N.disabled)&&void 0!==n?n:i.disabled),N.disabled=null!==(r=N.disabled)&&void 0!==r?r:M;const I=P(`${S}-wrapper`,{[`${S}-wrapper-checked`]:N.checked,[`${S}-wrapper-disabled`]:N.disabled,[`${S}-wrapper-rtl`]:"rtl"===l,[`${S}-wrapper-in-form-item`]:p},null==c?void 0:c.className,g,m,O,$,k);return E(o.createElement(Ml,{component:"Radio",disabled:N.disabled},o.createElement("label",{className:I,style:Object.assign(Object.assign({},null==c?void 0:c.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},o.createElement(cx,Object.assign({},N,{className:P(N.className,{[Sl]:!w}),type:"radio",prefixCls:S,ref:d})),void 0!==v?o.createElement("span",null,v):null)))},mx=o.forwardRef(gx);"production"!==process.env.NODE_ENV&&(mx.displayName="Radio");const vx=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(ni),[i,a]=yi(e.defaultValue,{value:e.value}),{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:p,children:f,size:h,style:g,id:m,onMouseEnter:v,onMouseLeave:b,onFocus:y,onBlur:x}=e,C=n("radio",s),w=`${C}-group`,S=Fs(C),[k,E,O]=fx(C,S);let $=f;u&&u.length>0&&($=u.map((e=>"string"==typeof e||"number"==typeof e?o.createElement(mx,{key:e.toString(),prefixCls:C,disabled:p,value:e,checked:i===e},e):o.createElement(mx,{key:`radio-group-value-options-${e.value}`,prefixCls:C,disabled:e.disabled||p,value:e.value,checked:i===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const N=Il(h),M=P(w,`${w}-${d}`,{[`${w}-${N}`]:N,[`${w}-rtl`]:"rtl"===r},l,c,E,O,S);return k(o.createElement("div",Object.assign({},Ts(e,{aria:!0,data:!0}),{className:M,style:g,onMouseEnter:v,onMouseLeave:b,onFocus:y,onBlur:x,id:m,ref:t}),o.createElement(ix,{value:{onChange:t=>{const n=i,o=t.target.value;"value"in e||a(o);const{onChange:r}=e;r&&o!==n&&r(t)},value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},$)))}));var bx=o.memo(vx),yx=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 xx=(e,t)=>{const{getPrefixCls:n}=o.useContext(ni),{prefixCls:r}=e,i=yx(e,["prefixCls"]),a=n("radio",r);return o.createElement(sx,{value:"button"},o.createElement(mx,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))};var Cx=o.forwardRef(xx);const wx=mx;function Sx(e){return Si(e,{inputAffixPadding:e.paddingXXS})}wx.Button=Cx,wx.Group=bx,wx.__ANT_RADIO=!0;const kx=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}},Ex=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ox=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({},Ex(Si(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),$x=(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}}),Nx=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$x(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Mx=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$x(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ox(e))}),Nx(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Nx(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Ix=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Px=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Ix(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Ix(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ox(e))}})}),Lx=(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)}},Ax=(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}}),Dx=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ax(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Tx=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ax(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ox(e))}),Dx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Dx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),jx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Rx=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:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},jx(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),jx(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:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),_x=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Xt(t)} ${Xt(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},zx=e=>({padding:`${Xt(e.paddingBlockSM)} ${Xt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Bx=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Xt(e.paddingBlock)} ${Xt(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({},_x(e)),"&-sm":Object.assign({},zx(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Hx=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},_x(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},zx(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 ${Xt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Xt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Xt(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:`${Xt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Xt(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}}}})}},Fx=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({},Vi(e)),Bx(e)),Mx(e)),Tx(e)),Lx(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"}})}},Vx=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 ${Xt(e.inputAffixPadding)}`}}}},Wx=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({},Bx(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}}}),Vx(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}})}},Kx=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Vi(e)),Hx(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}}},Px(e)),Rx(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}}})})}},qx=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}}}}},Xx=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}}}}}},Ux=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var Gx=Ui("Input",(e=>{const t=Si(e,Sx(e));return[Fx(t),Xx(t),Wx(t),Kx(t),qx(t),Ux(t),Oc(t)]}),kx,{resetFont:!1}),Yx={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"},Qx=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:Yx}))},Zx=o.forwardRef(Qx);"production"!==process.env.NODE_ENV&&(Zx.displayName="PlusOutlined");var Jx=l(null),eC={width:0,height:0,left:0,top:0};function tC(e,t){var n=o.useRef(e),r=ht(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 nC=Math.pow(.995,20);function oC(e){var t=ht(h(0),2),n=t[0],o=t[1],r=c(0),i=c();return i.current=e,en((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){r.current===n&&(r.current+=1,o(r.current))}}var rC={width:0,height:0,left:0,top:0,right:0};function iC(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function aC(e){return String(e).replace(/"/g,"TABS_DQ")}function sC(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var lC=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})),cC=o.forwardRef((function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==A(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&&(cC.displayName="ExtraContent");var uC=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,s=e.mobile,l=e.more,c=void 0===l?{}:l,u=e.style,p=e.className,f=e.editable,g=e.tabBarGutter,m=e.rtl,v=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,x=e.popupClassName,C=ht(h(!1),2),w=C[0],S=C[1],k=ht(h(null),2),E=k[0],O=k[1],$=c.icon,N=void 0===$?"More":$,M="".concat(r,"-more-popup"),I="".concat(n,"-dropdown"),A=null!==E?"".concat(M,"-").concat(E):null,D=null==a?void 0:a.dropdownAriaLabel;var T=o.createElement(ty,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),S(!1)},prefixCls:"".concat(I,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[E],"aria-label":void 0!==D?D:"expanded dropdown"},i.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,s=e.label,l=sC(t,i,f,n);return o.createElement(Mb,{key:a,id:"".concat(M,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},o.createElement("span",null,s),l&&o.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,a)}},i||f.removeIcon||"×"))})));function j(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,o=t.length,r=0;r<o;r+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void O(a.key)}}d((function(){var e=document.getElementById(A);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[E]),d((function(){w||O(null)}),[w]);var R=U({},m?"marginRight":"marginLeft",g);i.length||(R.visibility="hidden",R.order=1);var _=P(U({},"".concat(I,"-rtl"),m)),z=s?null:o.createElement(Rv,L({prefixCls:I,overlay:T,visible:!!i.length&&w,onVisibleChange:S,overlayClassName:P(_,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},c),o.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case Vs.UP:j(-1),e.preventDefault();break;case Vs.DOWN:j(1),e.preventDefault();break;case Vs.ESC:S(!1);break;case Vs.SPACE:case Vs.ENTER:null!==E&&b(E,e)}else[Vs.DOWN,Vs.SPACE,Vs.ENTER].includes(t)&&(S(!0),e.preventDefault())}},N));return o.createElement("div",{className:P("".concat(n,"-nav-operations"),p),style:u,ref:t},z,o.createElement(lC,{prefixCls:n,locale:a,editable:f}))})),dC=o.memo(uC,(function(e,t){return t.tabMoving})),pC=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,f=e.removeAriaLabel,h=e.editable,g=e.onClick,m=e.onFocus,v=e.style,b="".concat(t,"-tab"),y=sC(d,c,h,l);function x(e){l||g(e)}var C=o.useMemo((function(){return u&&"string"==typeof s?o.createElement("span",null,s):s}),[s,u]),w=o.createElement("div",{key:a,"data-node-key":aC(a),className:P(b,U(U(U({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),r),"".concat(b,"-disabled"),l)),style:v,onClick:x},o.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[Vs.SPACE,Vs.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:m},u&&o.createElement("span",{className:"".concat(b,"-icon")},u),s&&C),y&&o.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:a,event:t})}},c||h.removeIcon||"×"));return p?p(w):w},fC=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]},hC=function(e,t){return e[t?0:1]},gC=o.forwardRef((function(e,t){var n,i,a,s,l,u=e.className,p=e.style,g=e.id,m=e.animated,v=e.activeKey,b=e.rtl,y=e.extra,x=e.editable,C=e.locale,w=e.tabPosition,S=e.tabBarGutter,k=e.children,E=e.onTabClick,O=e.onTabScroll,$=e.indicator,N=o.useContext(Jx),M=N.prefixCls,I=N.tabs,A=c(null),D=c(null),T=c(null),j=c(null),R=c(null),_=c(null),z=c(null),B="top"===w||"bottom"===w,H=tC(0,(function(e,t){B&&O&&O({direction:e>t?"left":"right"})})),F=ht(H,2),V=F[0],W=F[1],K=tC(0,(function(e,t){!B&&O&&O({direction:e>t?"top":"bottom"})})),q=ht(K,2),X=q[0],G=q[1],Q=ht(h([0,0]),2),Z=Q[0],J=Q[1],ee=ht(h([0,0]),2),te=ee[0],ne=ee[1],oe=ht(h([0,0]),2),re=oe[0],ie=oe[1],ae=ht(h([0,0]),2),se=ae[0],le=ae[1],ue=(n=new Map,i=c([]),a=ht(h({}),2)[1],s=c("function"==typeof n?n():n),l=oC((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()}]),de=ht(ue,2),pe=de[0],fe=de[1],he=function(e,t,n){return f((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||eC,i=r.left+r.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||eC);var u=o.get(l)||Y({},c);u.right=i-u.left-u.width,o.set(l,u)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(I,pe,te[0]),ge=hC(Z,B),me=hC(te,B),ve=hC(re,B),be=hC(se,B),ye=ge<me+ve,xe=ye?ge-be:ge-ve,Ce="".concat(M,"-nav-operations-hidden"),we=0,Se=0;function ke(e){return e<we?we:e>Se?Se:e}B&&b?(we=0,Se=Math.max(0,me-xe)):(we=Math.min(0,xe-me),Se=0);var Ee=c(null),Oe=ht(h(),2),$e=Oe[0],Ne=Oe[1];function Me(){Ne(Date.now())}function Ie(){Ee.current&&clearTimeout(Ee.current)}!function(e,t){var n=ht(h(),2),r=n[0],i=n[1],a=ht(h(0),2),s=a[0],l=a[1],u=ht(h(0),2),d=u[0],p=u[1],f=ht(h(),2),g=f[0],m=f[1],v=c(),b=c(),y=c(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;i({x:n,y:o}),window.clearInterval(v.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],o=n.screenX,a=n.screenY;i({x:o,y:a});var c=o-r.x,u=a-r.y;t(c,u);var d=Date.now();l(d),p(d-s),m({x:c,y:u})}},onTouchEnd:function(){if(r&&(i(null),m(null),g)){var e=g.x/d,n=g.y/d,o=Math.abs(e),a=Math.abs(n);if(Math.max(o,a)<.1)return;var s=e,l=n;v.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(v.current):t(20*(s*=nC),20*(l*=nC))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,i=Math.abs(n),a=Math.abs(o);i===a?r="x"===b.current?n:o:i>a?(r=n,b.current="x"):(r=o,b.current="y"),t(-r,-r)&&e.preventDefault()}},o.useEffect((function(){function t(e){y.current.onTouchMove(e)}function n(e){y.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){y.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){y.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(j,(function(e,t){function n(e,t){e((function(e){return ke(e+t)}))}return!!ye&&(B?n(W,e):n(G,t),Ie(),Me(),!0)})),d((function(){return Ie(),$e&&(Ee.current=setTimeout((function(){Ne(0)}),100)),Ie}),[$e]);var Pe=function(e,t,n,o,r,i,a){var s,l,c,u=a.tabs,d=a.tabPosition,p=a.rtl;return["top","bottom"].includes(d)?(s="width",l=p?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),f((function(){if(!u.length)return[0,0];for(var n=u.length,o=n,r=0;r<n;r+=1){var i=e.get(u[r].key)||rC;if(i[l]+i[s]>c+t){o=r-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||rC)[l]<c){a=d+1;break}return a>=o?[0,0]:[a,o]}),[e,t,o,r,i,c,d,u.map((function(e){return e.key})).join("_"),p])}(he,xe,B?V:X,me,ve,be,Y(Y({},e),{},{tabs:I})),Le=ht(Pe,2),Ae=Le[0],De=Le[1],Te=mi((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=he.get(e)||{width:0,height:0,left:0,right:0,top:0};if(B){var n=V;b?t.right<V?n=t.right:t.right+t.width>V+xe&&(n=t.right+t.width-xe):t.left<-V?n=-t.left:t.left+t.width>-V+xe&&(n=-(t.left+t.width-xe)),G(0),W(ke(n))}else{var o=X;t.top<-X?o=-t.top:t.top+t.height>-X+xe&&(o=-(t.top+t.height-xe)),W(0),G(ke(o))}})),je={};"top"===w||"bottom"===w?je[b?"marginRight":"marginLeft"]=S:je.marginTop=S;var Re=I.map((function(e,t){var n=e.key;return o.createElement(pC,{id:g,prefixCls:M,key:n,tab:e,style:0===t?void 0:je,closable:e.closable,editable:x,active:n===v,renderWrapper:k,removeAriaLabel:null==C?void 0:C.removeAriaLabel,onClick:function(e){E(n,e)},onFocus:function(){Te(n),Me(),j.current&&(b||(j.current.scrollLeft=0),j.current.scrollTop=0)}})})),_e=function(){return fe((function(){var e,t=new Map,n=null===(e=R.current)||void 0===e?void 0:e.getBoundingClientRect();return I.forEach((function(e){var o,r=e.key,i=null===(o=R.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(aC(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=ht(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}))};d((function(){_e()}),[I.map((function(e){return e.key})).join("_")]);var ze=oC((function(){var e=fC(A),t=fC(D),n=fC(T);J([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=fC(z);ie(o);var r=fC(_);le(r);var i=fC(R);ne([i[0]-o[0],i[1]-o[1]]),_e()})),Be=I.slice(0,Ae),He=I.slice(De+1),Fe=[].concat(rt(Be),rt(He)),Ve=he.get(v),We=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,s=a.size,l=a.align,u=void 0===l?"center":l,p=ht(h(),2),f=p[0],g=p[1],m=c(),v=r.useCallback((function(e){return"function"==typeof s?s(e):"number"==typeof s?s:e}),[s]);function b(){ut.cancel(m.current)}return d((function(){var e={};if(t)if(n){e.width=v(t.width);var r=o?"right":"left";"start"===u&&(e[r]=t[r]),"center"===u&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===u&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=v(t.height),"start"===u&&(e.top=t.top),"center"===u&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===u&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return b(),m.current=ut((function(){g(e)})),b}),[t,n,o,u,v]),{style:f}}({activeTabOffset:Ve,horizontal:B,indicator:$,rtl:b}),Ke=We.style;d((function(){Te()}),[v,we,Se,iC(Ve),iC(he),B]),d((function(){ze()}),[b]);var qe,Xe,Ue,Ge,Ye=!!Fe.length,Qe="".concat(M,"-nav-wrap");return B?b?(Xe=V>0,qe=V!==Se):(qe=V<0,Xe=V!==we):(Ue=X<0,Ge=X!==we),o.createElement(Je,{onResize:ze},o.createElement("div",{ref:ce(t,A),role:"tablist",className:P("".concat(M,"-nav"),u),style:p,onKeyDown:function(){Me()}},o.createElement(cC,{ref:D,position:"left",extra:y,prefixCls:M}),o.createElement(Je,{onResize:ze},o.createElement("div",{className:P(Qe,U(U(U(U({},"".concat(Qe,"-ping-left"),qe),"".concat(Qe,"-ping-right"),Xe),"".concat(Qe,"-ping-top"),Ue),"".concat(Qe,"-ping-bottom"),Ge)),ref:j},o.createElement(Je,{onResize:ze},o.createElement("div",{ref:R,className:"".concat(M,"-nav-list"),style:{transform:"translate(".concat(V,"px, ").concat(X,"px)"),transition:$e?"none":void 0}},Re,o.createElement(lC,{ref:z,prefixCls:M,locale:C,editable:x,style:Y(Y({},0===Re.length?void 0:je),{},{visibility:Ye?"hidden":null})}),o.createElement("div",{className:P("".concat(M,"-ink-bar"),U({},"".concat(M,"-ink-bar-animated"),m.inkBar)),style:Ke}))))),o.createElement(dC,L({},e,{removeAriaLabel:null==C?void 0:C.removeAriaLabel,ref:_,prefixCls:M,tabs:Fe,className:!Ye&&Ce,tabMoving:!!$e})),o.createElement(cC,{ref:T,position:"right",extra:y,prefixCls:M})))})),mC=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:P(n,s&&"".concat(n,"-active"),r),ref:t},c)}));"production"!==process.env.NODE_ENV&&(mC.displayName="TabPane");var vC=["renderTabBar"],bC=["label","key"],yC=function(e){var t=e.renderTabBar,n=Nt(e,vC),r=o.useContext(Jx).tabs;return t?t(Y(Y({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Nt(e,bC);return o.createElement(mC,L({tab:t,key:n,tabKey:n},r))}))}),gC):o.createElement(gC,n)};"production"!==process.env.NODE_ENV&&(yC.displayName="TabNavListWrapper");var xC=["key","forceRender","style","className","destroyInactiveTabPane"],CC=function(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,s=o.useContext(Jx),l=s.prefixCls,c=s.tabs,u=r.tabPane,d="".concat(l,"-tabpane");return o.createElement("div",{className:P("".concat(l,"-content-holder"))},o.createElement("div",{className:P("".concat(l,"-content"),"".concat(l,"-content-").concat(i),U({},"".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,f=Nt(e,xC),h=i===n;return o.createElement(Da,L({key:i,visible:h,forceRender:s,removeOnLeave:!(!a&&!p),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,a=e.className;return o.createElement(mC,L({},f,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:Y(Y({},l),r),className:P(c,a),ref:n}))}))}))))};var wC=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],SC=0,kC=o.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,i=void 0===r?"rc-tabs":r,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,p=e.editable,f=e.animated,g=e.tabPosition,m=void 0===g?"top":g,v=e.tabBarGutter,b=e.tabBarStyle,y=e.tabBarExtraContent,x=e.locale,C=e.more,w=e.destroyInactiveTabPane,S=e.renderTabBar,k=e.onChange,E=e.onTabClick,O=e.onTabScroll,$=e.getPopupContainer,N=e.popupClassName,M=e.indicator,I=Nt(e,wC),D=o.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===A(e)&&"key"in e}))}),[s]),T="rtl"===l,j=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Y({inkBar:!0},"object"===A(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&K(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(f),R=ht(h(!1),2),_=R[0],z=R[1];d((function(){z(bf())}),[]);var B=ht(yi((function(){var e;return null===(e=D[0])||void 0===e?void 0:e.key}),{value:c,defaultValue:u}),2),H=B[0],F=B[1],V=ht(h((function(){return D.findIndex((function(e){return e.key===H}))})),2),W=V[0],q=V[1];d((function(){var e,t=D.findIndex((function(e){return e.key===H}));-1===t&&(t=Math.max(0,Math.min(W,D.length-1)),F(null===(e=D[t])||void 0===e?void 0:e.key));q(t)}),[D.map((function(e){return e.key})).join("_"),H,W]);var X=ht(yi(null,{value:n}),2),G=X[0],Q=X[1];d((function(){n||(Q("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":SC)),SC+=1)}),[]);var Z={id:G,activeKey:H,animated:j,tabPosition:m,rtl:T,mobile:_},J=Y(Y({},Z),{},{editable:p,locale:x,more:C,tabBarGutter:v,onTabClick:function(e,t){null==E||E(e,t);var n=e!==H;F(e),n&&(null==k||k(e))},onTabScroll:O,extra:y,style:b,panes:null,getPopupContainer:$,popupClassName:N,indicator:M});return o.createElement(Jx.Provider,{value:{tabs:D,prefixCls:i}},o.createElement("div",L({ref:t,id:n,className:P(i,"".concat(i,"-").concat(m),U(U(U({},"".concat(i,"-mobile"),_),"".concat(i,"-editable"),p),"".concat(i,"-rtl"),T),a)},I),o.createElement(yC,L({},J,{renderTabBar:S})),o.createElement(CC,L({destroyInactiveTabPane:w},Z,{animated:j}))))}));"production"!==process.env.NODE_ENV&&(kC.displayName="Tabs");const EC={motionAppear:!1,motionEnter:!0,motionLeave:!0};var OC=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 $C=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}`}}}}},[Np(e,"slide-up"),Np(e,"slide-down")]]},NC=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:`${Xt(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:Xt(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Xt(e.borderRadiusLG)} ${Xt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Xt(e.borderRadiusLG)} ${Xt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Xt(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Xt(e.borderRadiusLG)} 0 0 ${Xt(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 ${Xt(e.borderRadiusLG)} ${Xt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},MC=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Vi(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:`${Xt(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({},Fi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Xt(e.paddingXXS)} ${Xt(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"}}})}})}},IC=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:`${Xt(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:Xt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Xt(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:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},PC=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 ${Xt(e.borderRadius)} ${Xt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Xt(e.borderRadius)} ${Xt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Xt(e.borderRadius)} ${Xt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Xt(e.borderRadius)} 0 0 ${Xt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},LC=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}},qi(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}}}},AC=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:Xt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Xt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Xt(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"}}}}},DC=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({},Vi(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 ${Xt(e.paddingXS)}`,background:"transparent",border:`${Xt(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Xt(e.borderRadiusLG)} ${Xt(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}},qi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),LC(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 TC=Ui("Tabs",(e=>{const t=Si(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Xt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Xt(e.horizontalItemGutter)}`});return[PC(t),AC(t),IC(t),MC(t),NC(t),DC(t),$C(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 jC=()=>null;"production"!==process.env.NODE_ENV&&(jC.displayName="DeprecatedTabPane");var RC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const _C=e=>{var t,n,r,i,a,s,l,c,u,d,p;const{type:f,className:h,rootClassName:g,size:m,onEdit:v,hideAdd:b,centered:y,addIcon:x,removeIcon:C,moreIcon:w,more:S,popupClassName:k,children:E,items:O,animated:$,style:N,indicatorSize:M,indicator:I}=e,L=RC(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:A}=L,{direction:D,tabs:T,getPrefixCls:j,getPopupContainer:R}=o.useContext(ni),z=j("tabs",A),B=Fs(z),[H,F,V]=TC(z,B);let W;"editable-card"===f&&(W={onEdit:(e,t)=>{let{key:n,event:o}=t;null==v||v("add"===e?o:n,e)},removeIcon:null!==(t=null!=C?C:null==T?void 0:T.removeIcon)&&void 0!==t?t:o.createElement(Os,null),addIcon:(null!=x?x:null==T?void 0:T.addIcon)||o.createElement(Zx,null),showAdd:!0!==b});const K=j();if("production"!==process.env.NODE_ENV){const t=To("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(!(M||(null==T?void 0:T.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const q=Il(m),X=function(e,t){"production"!==process.env.NODE_ENV&&To("Tabs").deprecated(!t,"Tabs.TabPane","items");if(e)return e;const n=_(t).map((e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=OC(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(n)}(O,E),U=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({},EC),{motionName:yl(e,"switch")})),t}(z,$),G=Object.assign(Object.assign({},null==T?void 0:T.style),N),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:M)&&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(kC,Object.assign({direction:D,getPopupContainer:R},L,{items:X,className:P({[`${z}-${q}`]:q,[`${z}-card`]:["card","editable-card"].includes(f),[`${z}-editable-card`]:"editable-card"===f,[`${z}-centered`]:y},null==T?void 0:T.className,h,g,F,V,B),popupClassName:P(k,F,V,B),style:G,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:w)&&void 0!==p?p:o.createElement(my,null),transitionName:`${K}-slide-up`},S),prefixCls:z,animated:U,indicator:Y})))};_C.TabPane=jC,"production"!==process.env.NODE_ENV&&(_C.displayName="Tabs");var zC=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 BC=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=zC(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=o.useContext(ni),s=a("card",t),l=P(`${s}-grid`,n,{[`${s}-grid-hoverable`]:r});return o.createElement("div",Object.assign({},i,{className:l}))},HC=e=>{const{antCls:t,componentCls:n,headerHeight:o,cardPaddingBase:r,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${Xt(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Xt(e.borderRadiusLG)} ${Xt(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Fi),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},FC=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Xt(r)} 0 0 0 ${n},\n 0 ${Xt(r)} 0 0 ${n},\n ${Xt(r)} ${Xt(r)} 0 0 ${n},\n ${Xt(r)} 0 0 0 ${n} inset,\n 0 ${Xt(r)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},VC=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Xt(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Xt(e.borderRadiusLG)} ${Xt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Xt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:Xt(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Xt(e.lineWidth)} ${e.lineType} ${i}`}}})},WC=e=>Object.assign(Object.assign({margin:`${Xt(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Fi),"&-description":{color:e.colorTextDescription}}),KC=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${Xt(n)}`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Xt(e.padding)} ${Xt(n)}`}}},qC=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},XC=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadowTertiary:i,cardPaddingBase:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Vi(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:HC(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Xt(e.borderRadiusLG)} ${Xt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:FC(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Xt(e.borderRadiusLG)} ${Xt(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:VC(e),[`${t}-meta`]:WC(e)}),[`${t}-bordered`]:{border:`${Xt(e.lineWidth)} ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Xt(e.borderRadiusLG)} ${Xt(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:KC(e),[`${t}-loading`]:qC(e),[`${t}-rtl`]:{direction:"rtl"}}},UC=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:o,headerFontSizeSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${Xt(n)}`,fontSize:r,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}};var GC=Ui("Card",(e=>{const t=Si(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[XC(t),UC(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}))),YC=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 QC=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return o.createElement("ul",{className:t,style:r},n.map(((e,t)=>{const r=`action-${t}`;return o.createElement("li",{style:{width:100/n.length+"%"},key:r},o.createElement("span",null,e))})))},ZC=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:s,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:p=!0,size:f,type:h,cover:g,actions:m,tabList:v,children:b,activeTabKey:y,defaultActiveTabKey:x,tabBarExtraContent:C,hoverable:w,tabProps:S={},classNames:k,styles:E}=e,O=YC(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:$,direction:N,card:M}=o.useContext(ni);if("production"!==process.env.NODE_ENV){const t=To("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach((n=>{let[o,r]=n;t.deprecated(!(o in e),o,r)}))}const I=e=>{var t;return P(null===(t=null==M?void 0:M.classNames)||void 0===t?void 0:t[e],null==k?void 0:k[e])},L=e=>{var t;return Object.assign(Object.assign({},null===(t=null==M?void 0:M.styles)||void 0===t?void 0:t[e]),null==E?void 0:E[e])},A=o.useMemo((()=>{let e=!1;return o.Children.forEach(b,(t=>{(null==t?void 0:t.type)===BC&&(e=!0)})),e}),[b]),D=$("card",n),[T,j,R]=GC(D),_=o.createElement(Qd,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),z=void 0!==y,B=Object.assign(Object.assign({},S),{[z?"activeKey":"defaultActiveKey"]:z?y:x,tabBarExtraContent:C});let H;const F=Il(f),V=F&&"default"!==F?F:"large",W=v?o.createElement(_C,Object.assign({size:V},B,{className:`${D}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:v.map((e=>{var{tab:t}=e,n=YC(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||s||W){const e=P(`${D}-head`,I("header")),t=P(`${D}-head-title`,I("title")),n=P(`${D}-extra`,I("extra")),r=Object.assign(Object.assign({},l),L("header"));H=o.createElement("div",{className:e,style:r},o.createElement("div",{className:`${D}-head-wrapper`},u&&o.createElement("div",{className:t,style:L("title")},u),s&&o.createElement("div",{className:n,style:L("extra")},s)),W)}const K=P(`${D}-cover`,I("cover")),q=g?o.createElement("div",{className:K,style:L("cover")},g):null,X=P(`${D}-body`,I("body")),U=Object.assign(Object.assign({},c),L("body")),G=o.createElement("div",{className:X,style:U},d?_:b),Y=P(`${D}-actions`,I("actions")),Q=(null==m?void 0:m.length)?o.createElement(QC,{actionClasses:Y,actionStyle:L("actions"),actions:m}):null,Z=et(O,["onTabChange"]),J=P(D,null==M?void 0:M.className,{[`${D}-loading`]:d,[`${D}-bordered`]:p,[`${D}-hoverable`]:w,[`${D}-contain-grid`]:A,[`${D}-contain-tabs`]:null==v?void 0:v.length,[`${D}-${F}`]:F,[`${D}-type-${h}`]:!!h,[`${D}-rtl`]:"rtl"===N},r,i,j,R),ee=Object.assign(Object.assign({},null==M?void 0:M.style),a);return T(o.createElement("div",Object.assign({ref:t},Z,{className:J,style:ee}),H,q,G,Q))}));var JC=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 ew=ZC;ew.Grid=BC,ew.Meta=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,s=JC(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=o.useContext(ni),c=l("card",t),u=P(`${c}-meta`,n),d=r?o.createElement("div",{className:`${c}-meta-avatar`},r):null,p=i?o.createElement("div",{className:`${c}-meta-title`},i):null,f=a?o.createElement("div",{className:`${c}-meta-description`},a):null,h=p||f?o.createElement("div",{className:`${c}-meta-detail`},p,f):null;return o.createElement("div",Object.assign({},s,{className:u}),d,h)},"production"!==process.env.NODE_ENV&&(ew.displayName="Card");var tw={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function nw(e,t,n){var o={}.atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,a=void 0!==i&&i,s=r.noLeading,l=void 0!==s&&s,c=r.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function f(){o&&clearTimeout(o)}function h(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var s=this,c=Date.now()-p;function h(){p=Date.now(),t.apply(s,r)}function g(){o=void 0}d||(l||!u||o||h(),f(),void 0===u&&c>e?l?(p=Date.now(),a||(o=setTimeout(u?g:h,e))):h():!0!==a&&(o=setTimeout(u?g:h,void 0===u?e-c:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}var ow={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function rw(e,t,n){return Math.max(t,Math.min(e,n))}var iw=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},aw=function(e){for(var t=[],n=sw(e),o=lw(e),r=n;r<o;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t},sw=function(e){return e.currentSlide-cw(e)},lw=function(e){return e.currentSlide+uw(e)},cw=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},uw=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},dw=function(e){return e&&e.offsetWidth||0},pw=function(e){return e&&e.offsetHeight||0},fw=function(e){var t,n,o,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,o=Math.atan2(n,t),(r=Math.round(180*o/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===i?r>=35&&r<=135?"up":"down":"vertical"},hw=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},gw=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},mw=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0,r=[];n<t;)r.push(n),n=o+e.slidesToScroll,o+=Math.min(e.slidesToScroll,e.slidesToShow);return r}(e),o=0;if(t>n[n.length-1])t=n[n.length-1];else for(var r in n){if(t<n[r]){t=o;break}o=n[r]}return t},vw=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every((function(o){if(e.vertical){if(o.offsetTop+pw(o)/2>-1*e.swipeLeft)return n=o,!1}else if(o.offsetLeft-t+dw(o)/2>-1*e.swipeLeft)return n=o,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},bw=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},yw=function(e){var t,n;(bw(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=kw(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var r=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=Y(Y({},o),{},{WebkitTransform:r,transform:i,msTransform:a})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},xw=function(e){bw(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=yw(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Cw=function(e){if(e.unslick)return 0;bw(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,o=e.slideIndex,r=e.trackRef,i=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,p=e.variableWidth,f=e.slideHeight,h=e.fade,g=e.vertical;if(h||1===e.slideCount)return 0;var m=0;if(i?(m=-ww(e),s%c!=0&&o+c>s&&(m=-(o>s?l-(o-s):s%c)),a&&(m+=parseInt(l/2))):(s%c!=0&&o+c>s&&(m=l-s%c),a&&(m=parseInt(l/2))),t=g?o*f*-1+m*f:o*u*-1+m*u,!0===p){var v,b=r&&r.node;if(v=o+ww(e),t=(n=b&&b.childNodes[v])?-1*n.offsetLeft:0,!0===a){v=i?o+ww(e):o,n=b&&b.children[v],t=0;for(var y=0;y<v;y++)t-=b&&b.children[y]&&b.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},ww=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},Sw=function(e){return e.unslick||!e.infinite?0:e.slideCount},kw=function(e){return 1===e.slideCount?1:ww(e)+e.slideCount+Sw(e)},Ew=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+Ow(e)?"left":"right":e.targetSlide<e.currentSlide-$w(e)?"right":"left"},Ow=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o&&t%2==0&&(i+=1),i}return o?0:t-1},$w=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o||t%2!=0||(i+=1),i}return o?t-1:0},Nw=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},Mw=Object.keys(ow);var Iw=function(e){var t,n,o,r,i;return o=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-r-1&&i<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":o,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},Pw=function(e,t){return e.key+"-"+t},Lw=function(e){var t,n=[],o=[],i=[],a=r.Children.count(e.children),s=sw(e),l=lw(e);return r.Children.forEach(e.children,(function(c,u){var d,p={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};d=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?c:r.createElement("div",null);var f=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(Y(Y({},e),{},{index:u})),h=d.props.className||"",g=Iw(Y(Y({},e),{},{index:u}));if(n.push(r.cloneElement(d,{key:"original"+Pw(d,u),"data-index":u,className:P(g,h),tabIndex:"-1","aria-hidden":!g["slick-active"],style:Y(Y({outline:"none"},d.props.style||{}),f),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&a>1&&!1===e.fade&&!e.unslick){var m=a-u;m<=ww(e)&&((t=-m)>=s&&(d=c),g=Iw(Y(Y({},e),{},{index:t})),o.push(r.cloneElement(d,{key:"precloned"+Pw(d,t),"data-index":t,tabIndex:"-1",className:P(g,h),"aria-hidden":!g["slick-active"],style:Y(Y({},d.props.style||{}),f),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),(t=a+u)<l&&(d=c),g=Iw(Y(Y({},e),{},{index:t})),i.push(r.cloneElement(d,{key:"postcloned"+Pw(d,t),"data-index":t,tabIndex:"-1",className:P(g,h),"aria-hidden":!g["slick-active"],style:Y(Y({},d.props.style||{}),f),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))}})),e.rtl?o.concat(n,i).reverse():o.concat(n,i)},Aw=function(){function e(){var t,n,o,r;ze(this,e);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=this,o=e,r=[].concat(a),o=We(o),U(t=Xe(n,Ke()?Reflect.construct(o,r||[],We(n).constructor):o.apply(n,r)),"node",null),U(t,"handleRef",(function(e){t.node=e})),t}return Ve(e,r.PureComponent),He(e,[{key:"render",value:function(){var e=Lw(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return r.createElement("div",L({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])}();var Dw=function(){function e(){return ze(this,e),t=this,o=arguments,n=We(n=e),Xe(t,Ke()?Reflect.construct(n,o||[],We(t).constructor):n.apply(t,o));var t,n,o}return Ve(e,r.PureComponent),He(e,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,o=t.onMouseOver,i=t.onMouseLeave,a=t.infinite,s=t.slidesToScroll,l=t.slidesToShow,c=t.slideCount,u=t.currentSlide,d=(e={slideCount:c,slidesToScroll:s,slidesToShow:l,infinite:a}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,p={onMouseEnter:n,onMouseOver:o,onMouseLeave:i},f=[],h=0;h<d;h++){var g=(h+1)*s-1,m=a?g:rw(g,0,c-1),v=m-(s-1),b=a?v:rw(v,0,c-1),y=P({"slick-active":a?u>=b&&u<=m:u===b}),x={message:"dots",index:h,slidesToScroll:s,currentSlide:u},C=this.clickHandler.bind(this,x);f=f.concat(r.createElement("li",{key:h,className:y},r.cloneElement(this.props.customPaging(h),{onClick:C})))}return r.cloneElement(this.props.appendDots(f),Y({className:this.props.dotsClass},p))}}])}();function Tw(e,t,n){return t=We(t),Xe(e,Ke()?Reflect.construct(t,n||[],We(e).constructor):t.apply(e,n))}var jw=function(){function e(){return ze(this,e),Tw(this,e,arguments)}return Ve(e,r.PureComponent),He(e,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:P(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?r.cloneElement(this.props.prevArrow,Y(Y({},n),o)):r.createElement("button",L({key:"0",type:"button"},n)," ","Previous")}}])}(),Rw=function(){function e(){return ze(this,e),Tw(this,e,arguments)}return Ve(e,r.PureComponent),He(e,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});hw(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:P(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?r.cloneElement(this.props.nextArrow,Y(Y({},n),o)):r.createElement("button",L({key:"1",type:"button"},n)," ","Next")}}])}(),_w=["animating"];var zw=function(){function e(t){var n,o,i,a;ze(this,e),o=this,a=[t],i=We(i=e),U(n=Xe(o,Ke()?Reflect.construct(i,a||[],We(o).constructor):i.apply(o,a)),"listRefHandler",(function(e){return n.list=e})),U(n,"trackRefHandler",(function(e){return n.track=e})),U(n,"adaptHeight",(function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=pw(e)+"px"}})),U(n,"componentDidMount",(function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=aw(Y(Y({},n.props),n.state));e.length>0&&(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=Y({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,(function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")})),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new Te((function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout((function(){return n.onWindowResized()}),n.props.speed))):n.onWindowResized()})),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)})),U(n,"componentWillUnmount",(function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach((function(e){return clearTimeout(e)})),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()})),U(n,"componentDidUpdate",(function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=aw(Y(Y({},n.props),n.state));t.length>0&&(n.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var o=Y(Y({listRef:n.list,trackRef:n.track},n.props),n.state),i=n.didPropsChange(e);i&&n.updateState(o,i,(function(){n.state.currentSlide>=r.Children.count(n.props.children)&&n.changeSlide({message:"index",index:r.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))}))})),U(n,"onWindowResized",(function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=nw(50,(function(){return n.resizeWindow(e)})),n.debouncedResize()})),U(n,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(n.track&&n.track.node)){var t=Y(Y({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(t,e,(function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")})),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}})),U(n,"updateState",(function(e,t,o){var i=function(e){var t,n=r.Children.count(e.children),o=e.listRef,i=Math.ceil(dw(o)),a=e.trackRef&&e.trackRef.node,s=Math.ceil(dw(a));if(e.vertical)t=i;else{var l=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(l*=i/100),t=Math.ceil((i-l)/e.slidesToShow)}var c=o&&pw(o.querySelector('[data-index="0"]')),u=c*e.slidesToShow,d=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(d=n-1-e.initialSlide);var p=e.lazyLoadedList||[],f=aw(Y(Y({},e),{},{currentSlide:d,lazyLoadedList:p})),h={slideCount:n,slideWidth:t,listWidth:i,trackWidth:s,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:p=p.concat(f)};return null===e.autoplaying&&e.autoplay&&(h.autoplaying="playing"),h}(e);e=Y(Y(Y({},e),i),{},{slideIndex:i.currentSlide});var a=Cw(e);e=Y(Y({},e),{},{left:a});var s=yw(e);(t||r.Children.count(n.props.children)!==r.Children.count(e.children))&&(i.trackStyle=s),n.setState(i,o)})),U(n,"ssrInit",(function(){if(n.props.variableWidth){var e=0,t=0,o=[],i=ww(Y(Y(Y({},n.props),n.state),{},{slideCount:n.props.children.length})),a=Sw(Y(Y(Y({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach((function(t){o.push(t.props.style.width),e+=t.props.style.width}));for(var s=0;s<i;s++)t+=o[o.length-1-s],e+=o[o.length-1-s];for(var l=0;l<a;l++)e+=o[l];for(var c=0;c<n.state.currentSlide;c++)t+=o[c];var u={width:e+"px",left:-t+"px"};if(n.props.centerMode){var d="".concat(o[n.state.currentSlide],"px");u.left="calc(".concat(u.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:u}}var p=r.Children.count(n.props.children),f=Y(Y(Y({},n.props),n.state),{},{slideCount:p}),h=ww(f)+Sw(f)+p,g=100/n.props.slidesToShow*h,m=100/h,v=-m*(ww(f)+n.state.currentSlide)*g/100;return n.props.centerMode&&(v+=(100-m*g/100)/2),{slideWidth:m+"%",trackStyle:{width:g+"%",left:v+"%"}}})),U(n,"checkImagesLoad",(function(){var e=n.list&&n.list.querySelectorAll&&n.list.querySelectorAll(".slick-slide img")||[],t=e.length,o=0;Array.prototype.forEach.call(e,(function(e){var r=function(){return++o&&o>=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=r,e.onerror=function(){r(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))}))})),U(n,"progressiveLazyLoad",(function(){for(var e=[],t=Y(Y({},n.props),n.state),o=n.state.currentSlide;o<n.state.slideCount+Sw(t);o++)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}for(var r=n.state.currentSlide-1;r>=-ww(t);r--)if(n.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)})),U(n,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=n.props,r=o.asNavFor,i=o.beforeChange,a=o.onLazyLoad,s=o.speed,l=o.afterChange,c=n.state.currentSlide,u=function(e){var t=e.waitForAnimate,n=e.animating,o=e.fade,r=e.infinite,i=e.index,a=e.slideCount,s=e.lazyLoad,l=e.currentSlide,c=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,p=e.useCSS,f=e.lazyLoadedList;if(t&&n)return{};var h,g,m,v=i,b={},y={},x=r?i:rw(i,0,a-1);if(o){if(!r&&(i<0||i>=a))return{};i<0?v=i+a:i>=a&&(v=i-a),s&&f.indexOf(v)<0&&(f=f.concat(v)),b={animating:!0,currentSlide:v,lazyLoadedList:f,targetSlide:v},y={animating:!1,targetSlide:v}}else h=v,v<0?(h=v+a,r?a%u!=0&&(h=a-a%u):h=0):!hw(e)&&v>l?v=h=l:c&&v>=a?(v=r?a:a-1,h=r?0:a-1):v>=a&&(h=v-a,r?a%u!=0&&(h=0):h=a-d),!r&&v+d>=a&&(h=a-d),g=Cw(Y(Y({},e),{},{slideIndex:v})),m=Cw(Y(Y({},e),{},{slideIndex:h})),r||(g===m&&(v=h),g=m),s&&(f=f.concat(aw(Y(Y({},e),{},{currentSlide:v})))),p?(b={animating:!0,currentSlide:h,trackStyle:xw(Y(Y({},e),{},{left:g})),lazyLoadedList:f,targetSlide:x},y={animating:!1,currentSlide:h,trackStyle:yw(Y(Y({},e),{},{left:m})),swipeLeft:null,targetSlide:x}):b={currentSlide:h,trackStyle:yw(Y(Y({},e),{},{left:m})),lazyLoadedList:f,targetSlide:x};return{state:b,nextState:y}}(Y(Y(Y({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),d=u.state,p=u.nextState;if(d){i&&i(c,d.currentSlide);var f=d.lazyLoadedList.filter((function(e){return n.state.lazyLoadedList.indexOf(e)<0}));a&&f.length>0&&a(f),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),l&&l(c),delete n.animationEndCallback),n.setState(d,(function(){r&&n.asNavForIndex!==e&&(n.asNavForIndex=e,r.innerSlider.slideHandler(e)),p&&(n.animationEndCallback=setTimeout((function(){var e=p.animating,t=Nt(p,_w);n.setState(t,(function(){n.callbackTimers.push(setTimeout((function(){return n.setState({animating:e})}),10)),l&&l(d.currentSlide),delete n.animationEndCallback}))}),s))}))}})),U(n,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=function(e,t){var n,o,r,i,a=e.slidesToScroll,s=e.slidesToShow,l=e.slideCount,c=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,p=e.infinite;if(n=l%a!=0?0:(l-c)%a,"previous"===t.message)i=c-(r=0===n?a:s-n),d&&!p&&(i=-1==(o=c-r)?l-1:o),p||(i=u-a);else if("next"===t.message)i=c+(r=0===n?a:n),d&&!p&&(i=(c+a)%l+n),p||(i=u+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,p){var f=Ew(Y(Y({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===f?i-=l:i<t.currentSlide&&"right"===f&&(i+=l)}}else"index"===t.message&&(i=Number(t.index));return i}(Y(Y({},n.props),n.state),e);if((0===o||o)&&(!0===t?n.slideHandler(o,t):n.slideHandler(o),n.props.autoplay&&n.autoPlay("update"),n.props.focusOnSelect)){var r=n.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}})),U(n,"clickHandler",(function(e){!1===n.clickable&&(e.stopPropagation(),e.preventDefault()),n.clickable=!0})),U(n,"keyHandler",(function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,n.props.accessibility,n.props.rtl);""!==t&&n.changeSlide({message:t})})),U(n,"selectHandler",(function(e){n.changeSlide(e)})),U(n,"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),U(n,"enableBodyScroll",(function(){window.ontouchmove=null})),U(n,"swipeStart",(function(e){n.props.verticalSwiping&&n.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&iw(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,n.props.swipe,n.props.draggable);""!==t&&n.setState(t)})),U(n,"swipeMove",(function(e){var t=function(e,t){var n=t.scrolling,o=t.animating,r=t.vertical,i=t.swipeToSlide,a=t.verticalSwiping,s=t.rtl,l=t.currentSlide,c=t.edgeFriction,u=t.edgeDragged,d=t.onEdge,p=t.swiped,f=t.swiping,h=t.slideCount,g=t.slidesToScroll,m=t.infinite,v=t.touchObject,b=t.swipeEvent,y=t.listHeight,x=t.listWidth;if(!n){if(o)return iw(e);r&&i&&a&&iw(e);var C,w={},S=Cw(t);v.curX=e.touches?e.touches[0].pageX:e.clientX,v.curY=e.touches?e.touches[0].pageY:e.clientY,v.swipeLength=Math.round(Math.sqrt(Math.pow(v.curX-v.startX,2)));var k=Math.round(Math.sqrt(Math.pow(v.curY-v.startY,2)));if(!a&&!f&&k>10)return{scrolling:!0};a&&(v.swipeLength=k);var E=(s?-1:1)*(v.curX>v.startX?1:-1);a&&(E=v.curY>v.startY?1:-1);var O=Math.ceil(h/g),$=fw(t.touchObject,a),N=v.swipeLength;return m||(0===l&&("right"===$||"down"===$)||l+1>=O&&("left"===$||"up"===$)||!hw(t)&&("left"===$||"up"===$))&&(N=v.swipeLength*c,!1===u&&d&&(d($),w.edgeDragged=!0)),!p&&b&&(b($),w.swiped=!0),C=r?S+N*(y/x)*E:s?S-N*E:S+N*E,a&&(C=S+N*E),w=Y(Y({},w),{},{touchObject:v,swipeLeft:C,trackStyle:yw(Y(Y({},t),{},{left:C}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)||v.swipeLength>10&&(w.swiping=!0,iw(e)),w}}(e,Y(Y(Y({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))})),U(n,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,o=t.swipe,r=t.touchObject,i=t.listWidth,a=t.touchThreshold,s=t.verticalSwiping,l=t.listHeight,c=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,p=t.targetSlide,f=t.currentSlide,h=t.infinite;if(!n)return o&&iw(e),{};var g=s?l/a:i/a,m=fw(r,s),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return v;if(!r.swipeLength)return v;if(r.swipeLength>g){var b,y;iw(e),d&&d(m);var x=h?f:p;switch(m){case"left":case"up":y=x+vw(t),b=c?mw(t,y):y,v.currentDirection=0;break;case"right":case"down":y=x-vw(t),b=c?mw(t,y):y,v.currentDirection=1;break;default:b=x}v.triggerSlideHandler=b}else{var C=Cw(t);v.trackStyle=xw(Y(Y({},t),{},{left:C}))}return v}(e,Y(Y(Y({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var o=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==o&&(n.slideHandler(o),n.props.verticalSwiping&&n.enableBodyScroll())}})),U(n,"touchEnd",(function(e){n.swipeEnd(e),n.clickable=!0})),U(n,"slickPrev",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"previous"})}),0))})),U(n,"slickNext",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"next"})}),0))})),U(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)}),0))})),U(n,"play",(function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!hw(Y(Y({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)})),U(n,"autoPlay",(function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})})),U(n,"pause",(function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})})),U(n,"onDotsOver",(function(){return n.props.autoplay&&n.pause("hovered")})),U(n,"onDotsLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),U(n,"onTrackOver",(function(){return n.props.autoplay&&n.pause("hovered")})),U(n,"onTrackLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),U(n,"onSlideFocus",(function(){return n.props.autoplay&&n.pause("focused")})),U(n,"onSlideBlur",(function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")})),U(n,"render",(function(){var e,t,o,i=P("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),a=Y(Y({},n.props),n.state),s=gw(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),l=n.props.pauseOnHover;if(s=Y(Y({},s),{},{onMouseEnter:l?n.onTrackOver:null,onMouseLeave:l?n.onTrackLeave:null,onMouseOver:l?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var c=gw(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),u=n.props.pauseOnDotsHover;c=Y(Y({},c),{},{clickHandler:n.changeSlide,onMouseEnter:u?n.onDotsLeave:null,onMouseOver:u?n.onDotsOver:null,onMouseLeave:u?n.onDotsLeave:null}),e=r.createElement(Dw,c)}var d=gw(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);d.clickHandler=n.changeSlide,n.props.arrows&&(t=r.createElement(jw,d),o=r.createElement(Rw,d));var p=null;n.props.vertical&&(p={height:n.state.listHeight});var f=null;!1===n.props.vertical?!0===n.props.centerMode&&(f={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(f={padding:n.props.centerPadding+" 0px"});var h=Y(Y({},p),f),g=n.props.touchMove,m={className:"slick-list",style:h,onClick:n.clickHandler,onMouseDown:g?n.swipeStart:null,onMouseMove:n.state.dragging&&g?n.swipeMove:null,onMouseUp:g?n.swipeEnd:null,onMouseLeave:n.state.dragging&&g?n.swipeEnd:null,onTouchStart:g?n.swipeStart:null,onTouchMove:n.state.dragging&&g?n.swipeMove:null,onTouchEnd:g?n.touchEnd:null,onTouchCancel:n.state.dragging&&g?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},v={className:i,dir:"ltr",style:n.props.style};return n.props.unslick&&(m={className:"slick-list"},v={className:i,style:n.props.style}),r.createElement("div",v,n.props.unslick?"":t,r.createElement("div",L({ref:n.listRefHandler},m),r.createElement(Aw,L({ref:n.trackRefHandler},s),n.props.children)),n.props.unslick?"":o,n.props.unslick?"":e)})),n.list=null,n.track=null,n.state=Y(Y({},tw),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:r.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var s=n.ssrInit();return n.state=Y(Y({},n.state),s),n}return Ve(e,r.Component),He(e,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n<o.length;n++){var i=o[n];if(!e.hasOwnProperty(i)){t=!0;break}if("object"!==A(e[i])&&"function"!=typeof e[i]&&!isNaN(e[i])&&e[i]!==this.props[i]){t=!0;break}}return t||r.Children.count(this.props.children)!==r.Children.count(e.children)}}])}(),Bw=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()},Hw=Bw,Fw=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,r){var i=e[o];(function(e){return/[height|width]$/.test(e)})(o=Hw(o))&&"number"==typeof i&&(i+="px"),t+=!0===i?o:!1===i?"not "+o:"("+o+": "+i+")",r<n.length-1&&(t+=" and ")})),t},Vw=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,o){t+=Fw(n),o<e.length-1&&(t+=", ")})),t):Fw(e)},Ww=M(Vw);var Kw=function(){function e(t){var n,o,r,i;return ze(this,e),o=this,i=[t],r=We(r=e),U(n=Xe(o,Ke()?Reflect.construct(r,i||[],We(o).constructor):r.apply(o,i)),"innerSliderRefHandler",(function(e){return n.innerSlider=e})),U(n,"slickPrev",(function(){return n.innerSlider.slickPrev()})),U(n,"slickNext",(function(){return n.innerSlider.slickNext()})),U(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)})),U(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),U(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return Ve(e,r.Component),He(e,[{key:"media",value:function(e,t){var n=window.matchMedia(e),o=function(e){e.matches&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,o){var r;r=Ww(0===o?{minWidth:0,maxWidth:n}:{minWidth:t[o-1]+1,maxWidth:n}),Nw()&&e.media(r,(function(){e.setState({breakpoint:n})}))}));var n=Ww({minWidth:t.slice(-1)[0]});Nw()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":Y(Y(Y({},ow),this.props),t[0].settings):Y(Y({},ow),this.props)).centerMode&&(e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(e.slidesToScroll)),e.slidesToScroll=1),e.fade&&(e.slidesToShow>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(e.slidesToShow)),e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(e.slidesToScroll)),e.slidesToShow=1,e.slidesToScroll=1);var o=r.Children.toArray(this.props.children);o=o.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],a=null,s=0;s<o.length;s+=e.rows*e.slidesPerRow){for(var l=[],c=s;c<s+e.rows*e.slidesPerRow;c+=e.slidesPerRow){for(var u=[],d=c;d<c+e.slidesPerRow&&(e.variableWidth&&o[d].props.style&&(a=o[d].props.style.width),!(d>=o.length));d+=1)u.push(r.cloneElement(o[d],{key:100*s+10*c+d,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));l.push(r.createElement("div",{key:10*s+c},u))}e.variableWidth?i.push(r.createElement("div",{key:s,style:{width:a}},l)):i.push(r.createElement("div",{key:s},l))}if("unslick"===e){var p="regular slider "+(this.props.className||"");return r.createElement("div",{className:p},o)}return i.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),r.createElement(zw,L({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return Mw.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}(e)),i)}}])}();const qw=e=>{const{componentCls:t,antCls:n}=e;return{[t]:Object.assign(Object.assign({},Vi(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},Xw=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:o,arrowOffset:r}=e,i=e.calc(o).div(Math.SQRT2).equal();return[{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:o,height:o,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${n}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(o).sub(i).div(2).equal(),insetInlineStart:e.calc(o).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:r,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:r,"&::after":{transform:"rotate(135deg)"}}}}]},Uw=e=>{const{componentCls:t,dotOffset:n,dotWidth:o,dotHeight:r,dotGap:i,colorBgContainer:a,motionDurationSlow:s}=e;return[{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:o,height:r,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${s}`,button:{position:"relative",display:"block",width:"100%",height:r,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:r,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${s}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:a,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},Gw=e=>{const{componentCls:t,dotOffset:n,arrowOffset:o,marginXXS:r}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:o,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:o,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},i),{margin:`${Xt(r)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":Object.assign(Object.assign({},i),{button:i})})}}}},Yw=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]};var Qw=Ui("Carousel",(e=>[qw(e),Xw(e),Uw(e),Gw(e),Yw(e)]),(e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),Zw=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="slick-dots",eS=e=>{var t=Zw(e,["currentSlide","slideCount"]);return o.createElement("button",Object.assign({type:"button"},t))},tS=o.forwardRef(((e,t)=>{const{dots:n=!0,arrows:r=!1,prevArrow:i=o.createElement(eS,{"aria-label":"prev"}),nextArrow:a=o.createElement(eS,{"aria-label":"next"}),draggable:s=!1,waitForAnimate:l=!1,dotPosition:c="bottom",vertical:u="left"===c||"right"===c,rootClassName:d,className:p,style:f,id:h}=e,g=Zw(e,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:m,direction:v,carousel:b}=o.useContext(ni),y=o.useRef(),x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y.current.slickGoTo(e,t)};o.useImperativeHandle(t,(()=>({goTo:x,autoPlay:y.current.innerSlider.autoPlay,innerSlider:y.current.innerSlider,prev:y.current.slickPrev,next:y.current.slickNext})),[y.current]);const C=o.useRef(o.Children.count(e.children));o.useEffect((()=>{C.current!==o.Children.count(e.children)&&(x(e.initialSlide||0,!1),C.current=o.Children.count(e.children))}),[e.children]);const w=Object.assign({vertical:u,className:P(p,null==b?void 0:b.className),style:Object.assign(Object.assign({},null==b?void 0:b.style),f)},g);"fade"===w.effect&&(w.fade=!0);const S=m("carousel",w.prefixCls),k=!!n,E=P(Jw,`${Jw}-${c}`,"boolean"!=typeof n&&(null==n?void 0:n.className)),[O,$,N]=Qw(S),M=P(S,{[`${S}-rtl`]:"rtl"===v,[`${S}-vertical`]:w.vertical},$,N,d);return O(o.createElement("div",{className:M,id:h},o.createElement(Kw,Object.assign({ref:y},w,{dots:k,dotsClass:E,arrows:r,prevArrow:i,nextArrow:a,draggable:s,verticalSwiping:u,waitForAnimate:l}))))}));function nS(e,t){return e[t]}"production"!==process.env.NODE_ENV&&(tS.displayName="Carousel");var oS=["children"];function rS(e,t){return"".concat(e,"-").concat(t)}function iS(e,t){return null!=e?e:t}function aS(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function sS(e){return function e(t){return _(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return K(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,r=o.children,i=Y({key:n},Nt(o,oS)),a=e(r);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e)}function lS(e,t,n){var o=aS(n),r=o._title,i=o.key,a=o.children,s=new Set(!0===t?[]:t),l=[];return function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(c,u){for(var d,p=rS(o?o.pos:"0",u),f=iS(c[i],p),h=0;h<r.length;h+=1){var g=r[h];if(void 0!==c[g]){d=c[g];break}}var m=Object.assign(et(c,[].concat(rt(r),[i,a])),{title:d,key:f,parent:o,pos:p,children:null,data:c,isStart:[].concat(rt(o?o.isStart:[]),[0===u]),isEnd:[].concat(rt(o?o.isEnd:[]),[u===n.length-1])});return l.push(m),!0===t||s.has(f)?m.children=e(c[a]||[],m):m.children=[],m}))}(e),l}function cS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,o=t.processEntity,r=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=i||(arguments.length>2?arguments[2]:void 0),c={},u={},d={posEntities:c,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var o,r=("object"===A(n)?n:{externalGetKey:n})||{},i=r.childrenPropName,a=r.externalGetKey,s=aS(r.fieldNames),l=s.key,c=s.children,u=i||c;a?"string"==typeof a?o=function(e){return e[a]}:"function"==typeof a&&(o=function(e){return a(e)}):o=function(e,t){return iS(e[l],t)},function n(r,i,a,s){var l=r?r[u]:e,c=r?rS(a.pos,i):"0",d=r?[].concat(rt(s),[r]):[];if(r){var p=o(r,c),f={node:r,index:i,pos:c,key:p,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(f)}l&&l.forEach((function(e,t){n(e,t,{node:r,pos:c,level:a?a.level+1:-1},d)}))}(null)}(e,(function(e){var t=e.node,n=e.index,r=e.pos,i=e.key,a=e.parentPos,s=e.level,l={node:t,nodes:e.nodes,index:n,key:i,pos:r,level:s},p=iS(i,r);c[r]=l,u[p]=l,l.parent=c[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),o&&o(l,d)}),{externalGetKey:l,childrenPropName:a,fieldNames:s}),r&&r(d),d}function uS(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=nS(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function dS(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,p=e.active,f=e.eventKey,h=Y(Y({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,key:f});return"props"in h||Object.defineProperty(h,"props",{get:function(){return K(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function pS(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function fS(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!(!n&&!o)||!1===r}function hS(e,t,n,o){var r,i=[];r=o||fS;var a,s=new Set(e.filter((function(e){var t=!!nS(n,e);return t||i.push(e),t}))),l=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],o=t.level,r=l.get(o);r||(r=new Set,l.set(o,r)),r.add(t),c=Math.max(c,o)})),K(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,o){for(var r=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;r.has(t)&&!o(n)&&a.filter((function(e){return!o(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var s=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!s.has(e.parent.key))if(o(e.parent.node))s.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),l||!n&&!i.has(t)||(l=!0)})),a&&r.add(t.key),l&&i.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(pS(i,r))}}(s,l,c,r):function(e,t,n,o,r){for(var i=new Set(e),a=new Set(t),s=0;s<=o;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,s=void 0===o?[]:o;i.has(t)||a.has(t)||r(n)||s.filter((function(e){return!r(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var l=new Set,c=o;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var o=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),s||!n&&!a.has(t)||(s=!0)})),o||i.delete(t.key),s&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(pS(a,i))}}(s,t.halfCheckedKeys,l,c,r),a}const gS=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Vi(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Vi(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({},Vi(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({},Ki(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Xt(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:`${Xt(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 mS(e,t){const n=Si(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[gS(n)]}var vS=Ui("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[mS(n,e)]}));const bS=r.createContext(null);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=(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:f}=e,h=yS(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:m,checkbox:v}=o.useContext(ni),b=o.useContext(bS),{isFormItemInput:y}=o.useContext(bd),x=o.useContext(ii),C=null!==(n=(null==b?void 0:b.disabled)||f)&&void 0!==n?n:x,w=o.useRef(h.value);if("production"!==process.env.NODE_ENV){const e=To("Checkbox");"production"!==process.env.NODE_ENV&&e("checked"in h||!!b||!("value"in h),"usage","`value` is not a valid prop, do you mean `checked`?")}o.useEffect((()=>{null==b||b.registerValue(h.value)}),[]),o.useEffect((()=>{if(!p)return h.value!==w.current&&(null==b||b.cancelValue(w.current),null==b||b.registerValue(h.value),w.current=h.value),()=>null==b?void 0:b.cancelValue(h.value)}),[h.value]);const S=g("checkbox",r),k=Fs(S),[E,O,$]=vS(S,k),N=Object.assign({},h);b&&!p&&(N.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:s,value:h.value})},N.name=b.name,N.checked=b.value.includes(h.value));const M=P(`${S}-wrapper`,{[`${S}-rtl`]:"rtl"===m,[`${S}-wrapper-checked`]:N.checked,[`${S}-wrapper-disabled`]:C,[`${S}-wrapper-in-form-item`]:y},null==v?void 0:v.className,i,a,$,k,O),I=P({[`${S}-indeterminate`]:l},Sl,O),L=l?"mixed":void 0;return E(o.createElement(Ml,{component:"Checkbox",disabled:C},o.createElement("label",{className:M,style:Object.assign(Object.assign({},null==v?void 0:v.style),c),onMouseEnter:u,onMouseLeave:d},o.createElement(cx,Object.assign({"aria-checked":L},N,{prefixCls:S,className:I,disabled:C,ref:t})),void 0!==s&&o.createElement("span",null,s))))},CS=o.forwardRef(xS);"production"!==process.env.NODE_ENV&&(CS.displayName="Checkbox");var wS=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{defaultValue:n,children:r,options:i=[],prefixCls:a,className:s,rootClassName:l,style:c,onChange:u}=e,d=wS(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:f}=o.useContext(ni),[h,g]=o.useState(d.value||n||[]),[m,v]=o.useState([]);o.useEffect((()=>{"value"in d&&g(d.value||[])}),[d.value]);const b=o.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),y=p("checkbox",a),x=`${y}-group`,C=Fs(y),[w,S,k]=vS(y,C),E=et(d,["value","disabled"]),O=i.length?b.map((e=>o.createElement(CS,{prefixCls:y,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:h.includes(e.value),onChange:e.onChange,className:`${x}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,$={toggleOption:e=>{const t=h.indexOf(e.value),n=rt(h);-1===t?n.push(e.value):n.splice(t,1),"value"in d||g(n),null==u||u(n.filter((e=>m.includes(e))).sort(((e,t)=>b.findIndex((t=>t.value===e))-b.findIndex((e=>e.value===t)))))},value:h,disabled:d.disabled,name:d.name,registerValue:e=>{v((t=>[].concat(rt(t),[e])))},cancelValue:e=>{v((t=>t.filter((t=>t!==e))))}},N=P(x,{[`${x}-rtl`]:"rtl"===f},s,l,k,C,S);return w(o.createElement("div",Object.assign({className:N,style:c},E,{ref:t}),o.createElement(bS.Provider,{value:$},O)))})),kS=CS;kS.Group=SS,kS.__ANT_CHECKBOX=!0,"production"!==process.env.NODE_ENV&&(kS.displayName="Checkbox");const ES=l({}),OS=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},$S=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:o,gridColumns:r}=e,i={};for(let e=r;e>=0;e--)0===e?(i[`${o}${t}-${e}`]={display:"none"},i[`${o}-push-${e}`]={insetInlineStart:"auto"},i[`${o}-pull-${e}`]={insetInlineEnd:"auto"},i[`${o}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${o}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${o}${t}-offset-${e}`]={marginInlineStart:0},i[`${o}${t}-order-${e}`]={order:0}):(i[`${o}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/r*100}%`,maxWidth:e/r*100+"%"}],i[`${o}${t}-push-${e}`]={insetInlineStart:e/r*100+"%"},i[`${o}${t}-pull-${e}`]={insetInlineEnd:e/r*100+"%"},i[`${o}${t}-offset-${e}`]={marginInlineStart:e/r*100+"%"},i[`${o}${t}-order-${e}`]={order:e});return i[`${o}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),NS=Ui("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),MS=Ui("Grid",(e=>{const t=Si(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[OS(t),$S(t,""),$S(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Xt(t)})`]:Object.assign({},$S(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var IS=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 PS(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const LS=["xs","sm","md","lg","xl","xxl"],AS=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(ni),{gutter:i,wrap:a}=o.useContext(ES),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:p,className:f,children:h,flex:g,style:m}=e,v=IS(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",s),[y,x,C]=MS(b),w={};let S={};LS.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete v[t],S=Object.assign(Object.assign({},S),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-rtl`]:"rtl"===r}),n.flex&&(S[`${b}-${t}-flex`]=!0,w[`--${b}-${t}-flex`]=PS(n.flex))}));const k=P(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${p}`]:p},f,S,x,C),E={};if(i&&i[0]>0){const e=i[0]/2;E.paddingLeft=e,E.paddingRight=e}return g&&(E.flex=PS(g),!1!==a||E.minWidth||(E.minWidth=0)),y(o.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),m),w),className:k,ref:t}),h))}));"production"!==process.env.NODE_ENV&&(AS.displayName="Col");var DS=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 TS(e,t){const[n,r]=o.useState("string"==typeof e?e:"");return o.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<cm.length;n++){const o=cm[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}const jS=o.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:s,children:l,gutter:c=0,wrap:u}=e,d=DS(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:f}=o.useContext(ni),[h,g]=o.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,v]=o.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=TS(i,m),y=TS(r,m),x=o.useRef(c),C=um();o.useEffect((()=>{const e=C.subscribe((e=>{v(e);const t=x.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&g(e)}));return()=>C.unsubscribe(e)}),[]);const w=p("row",n),[S,k,E]=NS(w),O=(()=>{const e=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let o=0;o<cm.length;o++){const r=cm[o];if(h[r]&&void 0!==t[r]){e[n]=t[r];break}}else e[n]=t})),e})(),$=P(w,{[`${w}-no-wrap`]:!1===u,[`${w}-${y}`]:y,[`${w}-${b}`]:b,[`${w}-rtl`]:"rtl"===f},a,k,E),N={},M=null!=O[0]&&O[0]>0?O[0]/-2:void 0;M&&(N.marginLeft=M,N.marginRight=M);const[I,L]=O;N.rowGap=L;const A=o.useMemo((()=>({gutter:[I,L],wrap:u})),[I,L,u]);return S(o.createElement(ES.Provider,{value:A},o.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},N),s),ref:t}),l)))}));"production"!==process.env.NODE_ENV&&(jS.displayName="Row");var RS=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=ht(r.useState(l||o),2),d=u[0],p=u[1];return r.useEffect((function(){(o||l)&&p(!0)}),[o,l]),d?r.createElement("div",{ref:t,className:P("".concat(n,"-content"),U(U({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),i),style:a,role:c},r.createElement("div",{className:"".concat(n,"-content-box")},s)):null}));RS.displayName="PanelContent";var _S=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],zS=r.forwardRef((function(e,t){var n=e.showArrow,o=void 0===n||n,i=e.headerClass,a=e.isActive,s=e.onItemClick,l=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,p=e.accordion,f=e.panelKey,h=e.extra,g=e.header,m=e.expandIcon,v=e.openMotion,b=e.destroyInactivePanel,y=e.children,x=Nt(e,_S),C="disabled"===d,w="header"===d,S="icon"===d,k=null!=h&&"boolean"!=typeof h,E=function(){null==s||s(f)},O="function"==typeof m?m(e):r.createElement("i",{className:"arrow"});O&&(O=r.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?E:void 0},O));var $=P(U(U(U({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),C),c),N={className:P(i,U(U(U({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),w),"".concat(u,"-icon-collapsible-only"),S)),"aria-expanded":a,"aria-disabled":C,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==Vs.ENTER&&e.which!==Vs.ENTER||E()}};return w||S||(N.onClick=E,N.role=p?"tab":"button",N.tabIndex=C?-1:0),r.createElement("div",L({},x,{ref:t,className:$}),r.createElement("div",N,o&&O,r.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===d?E:void 0},g),k&&r.createElement("div",{className:"".concat(u,"-extra")},h)),r.createElement(Da,L({visible:a,leavedClassName:"".concat(u,"-content-hidden")},v,{forceRender:l,removeOnLeave:b}),(function(e,t){var n=e.className,o=e.style;return r.createElement(RS,{ref:t,prefixCls:u,className:n,style:o,isActive:a,forceRender:l,role:p?"tabpanel":void 0},y)})))})),BS=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function HS(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,o=t.accordion,i=t.collapsible,a=t.destroyInactivePanel,s=t.onItemClick,l=t.activeKey,c=t.openMotion,u=t.expandIcon;return e.map((function(e,t){var d=e.children,p=e.label,f=e.key,h=e.collapsible,g=e.onItemClick,m=e.destroyInactivePanel,v=Nt(e,BS),b=String(null!=f?f:t),y=null!=h?h:i,x=null!=m?m:a,C=!1;return C=o?l[0]===b:l.indexOf(b)>-1,r.createElement(zS,L({},v,{prefixCls:n,key:b,panelKey:b,isActive:C,accordion:o,openMotion:c,expandIcon:u,header:p,collapsible:y,onItemClick:function(e){"disabled"!==y&&(s(e),null==g||g(e))},destroyInactivePanel:x}),d)}))}(e,n):_(t).map((function(e,t){return function(e,t,n){if(!e)return null;var o=n.prefixCls,i=n.accordion,a=n.collapsible,s=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon,p=e.key||String(t),f=e.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:o,destroyInactivePanel:null!=m?m:s,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(l(e),null==b||b(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(C).forEach((function(e){void 0===C[e]&&delete C[e]})),r.cloneElement(e,C))}(e,t,n)}))}function FS(e){var t=e;if(!Array.isArray(t)){var n=A(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var VS=r.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-collapse":n,i=e.destroyInactivePanel,a=void 0!==i&&i,s=e.style,l=e.accordion,c=e.className,u=e.children,d=e.collapsible,p=e.openMotion,f=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,m=e.onChange,v=e.items,b=P(o,c),y=ht(yi([],{value:h,onChange:function(e){return null==m?void 0:m(e)},defaultValue:g,postState:FS}),2),x=y[0],C=y[1];K(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=HS(v,u,{prefixCls:o,accordion:l,openMotion:p,expandIcon:f,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return C((function(){return l?x[0]===e?[]:[e]:x.indexOf(e)>-1?x.filter((function(t){return t!==e})):[].concat(rt(x),[e])}))},activeKey:x});return r.createElement("div",L({ref:t,className:b,style:s,role:l?"tablist":void 0},Ts(e,{aria:!0,data:!0})),w)})),WS=Object.assign(VS,{Panel:zS});WS.Panel;const KS=o.forwardRef(((e,t)=>{if("production"!==process.env.NODE_ENV){To("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"')}const{getPrefixCls:n}=o.useContext(ni),{prefixCls:r,className:i,showArrow:a=!0}=e,s=n("collapse",r),l=P({[`${s}-no-arrow`]:!a},i);return o.createElement(WS.Panel,Object.assign({ref:t},e,{prefixCls:s,className:l}))})),qS=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:S,contentPadding:k,fontHeight:E,fontHeightLG:O}=e,$=`${Xt(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},Vi(e)),{backgroundColor:r,border:$,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Xt(l)} ${Xt(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:E,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:S,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:k},"&-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 ${Xt(l)} ${Xt(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}}}}})}},XS=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},US=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}}}},GS=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 YS=Ui("Collapse",(e=>{const t=Si(e,{collapseHeaderPaddingSM:`${Xt(e.paddingXS)} ${Xt(e.paddingSM)}`,collapseHeaderPaddingLG:`${Xt(e.padding)} ${Xt(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[qS(t),US(t),GS(t),XS(t),rp(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const QS=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=o.useContext(ni),{prefixCls:a,className:s,rootClassName:l,style:c,bordered:u=!0,ghost:d,size:p,expandIconPosition:f="start",children:h,expandIcon:g}=e,m=Il((e=>{var t;return null!==(t=null!=p?p:e)&&void 0!==t?t:"middle"})),v=n("collapse",a),b=n(),[y,x,C]=YS(v);if("production"!==process.env.NODE_ENV){const e=To("Collapse");"production"!==process.env.NODE_ENV&&e("left"!==f&&"right"!==f,"deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.")}const w=o.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),S=null!=g?g:null==i?void 0:i.expandIcon,k=o.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"==typeof S?S(e):o.createElement(Nv,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return _s(t,(()=>{var e;return{className:P(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${v}-arrow`)}}))}),[S,v]),E=P(`${v}-icon-position-${w}`,{[`${v}-borderless`]:!u,[`${v}-rtl`]:"rtl"===r,[`${v}-ghost`]:!!d,[`${v}-${m}`]:"middle"!==m},null==i?void 0:i.className,s,l,x,C),O=Object.assign(Object.assign({},bl(b)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),$=o.useMemo((()=>h?_(h).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({},et(e.props,["disabled"])),{key:n,collapsible:null!=i?i:r?"disabled":void 0}))}return e})):null),[h]);return y(o.createElement(WS,Object.assign({ref:t,openMotion:O},et(e,["rootClassName"]),{expandIcon:k,prefixCls:v,className:E,style:Object.assign(Object.assign({},null==i?void 0:i.style),c)}),$))}));"production"!==process.env.NODE_ENV&&(QS.displayName="Collapse");var ZS=Object.assign(QS,{Panel:KS});const JS=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Vi(e)),{borderBlockStart:`${Xt(r)} solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Xt(r)} solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Xt(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Xt(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Xt(r)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${Xt(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:o,borderStyle:"dotted",borderWidth:`${Xt(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var ek=Ui("Divider",(e=>{const t=Si(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[JS(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}}),tk=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 nk=e=>{const{getPrefixCls:t,direction:n,divider:r}=o.useContext(ni),{prefixCls:i,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:p,variant:f="solid",plain:h,style:g}=e,m=tk(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",i),[b,y,x]=ek(v),C=!!d,w="left"===s&&null!=l,S="right"===s&&null!=l,k=P(v,null==r?void 0:r.className,y,x,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text-${s}`]:C,[`${v}-dashed`]:!!p,[`${v}-${f}`]:"solid"!==f,[`${v}-plain`]:!!h,[`${v}-rtl`]:"rtl"===n,[`${v}-no-default-orientation-margin-left`]:w,[`${v}-no-default-orientation-margin-right`]:S},c,u),E=o.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),O=Object.assign(Object.assign({},w&&{marginLeft:E}),S&&{marginRight:E});if("production"!==process.env.NODE_ENV){const e=To("Divider");"production"!==process.env.NODE_ENV&&e(!d||"vertical"!==a,"usage","`children` not working in `vertical` mode.")}return b(o.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==r?void 0:r.style),g)},m,{role:"separator"}),d&&"vertical"!==a&&o.createElement("span",{className:`${v}-inner-text`,style:O},d)))};function ok(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 rk(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=ok(t,e,o)):n(r=ok(t,e,""))}}"production"!==process.env.NODE_ENV&&(nk.displayName="Divider");var ik=r.forwardRef((function(e,t){var n,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,u=e.suffix,d=e.addonBefore,p=e.addonAfter,f=e.className,h=e.style,g=e.disabled,m=e.readOnly,v=e.focused,b=e.triggerFocus,x=e.allowClear,C=e.value,w=e.handleReset,S=e.hidden,k=e.classes,E=e.classNames,O=e.dataAttrs,$=e.styles,N=e.components,M=e.onClear,I=null!=a?a:i,D=(null==N?void 0:N.affixWrapper)||"span",T=(null==N?void 0:N.groupWrapper)||"span",j=(null==N?void 0:N.wrapper)||"span",R=(null==N?void 0:N.groupAddon)||"span",_=c(null),z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),B=y(I,{value:C,className:P(I.props.className,!z&&(null==E?void 0:E.variant))||null}),H=c(null);if(r.useImperativeHandle(t,(function(){return{nativeElement:H.current||_.current}})),z){var F=null;if(x){var V=!g&&!m&&C,W="".concat(s,"-clear-icon"),K="object"===A(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";F=r.createElement("span",{onClick:function(e){null==w||w(e),null==M||M()},onMouseDown:function(e){return e.preventDefault()},className:P(W,U(U({},"".concat(W,"-hidden"),!V),"".concat(W,"-has-suffix"),!!u)),role:"button",tabIndex:-1},K)}var q="".concat(s,"-affix-wrapper"),X=P(q,U(U(U(U(U({},"".concat(s,"-disabled"),g),"".concat(q,"-disabled"),g),"".concat(q,"-focused"),v),"".concat(q,"-readonly"),m),"".concat(q,"-input-with-clear-btn"),u&&x&&C),null==k?void 0:k.affixWrapper,null==E?void 0:E.affixWrapper,null==E?void 0:E.variant),G=(u||x)&&r.createElement("span",{className:P("".concat(s,"-suffix"),null==E?void 0:E.suffix),style:null==$?void 0:$.suffix},F,u);B=r.createElement(D,L({className:X,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=_.current)&&void 0!==t&&t.contains(e.target)&&(null==b||b())}},null==O?void 0:O.affixWrapper,{ref:_}),l&&r.createElement("span",{className:P("".concat(s,"-prefix"),null==E?void 0:E.prefix),style:null==$?void 0:$.prefix},l),B,G)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var Q="".concat(s,"-group"),Z="".concat(Q,"-addon"),J="".concat(Q,"-wrapper"),ee=P("".concat(s,"-wrapper"),Q,null==k?void 0:k.wrapper,null==E?void 0:E.wrapper),te=P(J,U({},"".concat(J,"-disabled"),g),null==k?void 0:k.group,null==E?void 0:E.groupWrapper);B=r.createElement(T,{className:te,ref:H},r.createElement(j,{className:ee},d&&r.createElement(R,{className:Z},d),B,p&&r.createElement(R,{className:Z},p)))}return r.cloneElement(B,{className:P(null===(n=B.props)||void 0===n?void 0:n.className,f)||null,style:Y(Y({},null===(o=B.props)||void 0===o?void 0:o.style),h),hidden:S})})),ak=["show"];function sk(e,t){return o.useMemo((function(){var n={};t&&(n.show="object"===A(t)&&t.formatter?t.formatter:!!t);var o=n=Y(Y({},n),e),r=o.show,i=Nt(o,ak);return Y(Y({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var lk=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],ck=p((function(e,t){var n=e.autoComplete,o=e.onChange,i=e.onFocus,a=e.onBlur,s=e.onPressEnter,l=e.onKeyDown,u=e.onKeyUp,p=e.prefixCls,f=void 0===p?"rc-input":p,g=e.disabled,m=e.htmlSize,v=e.className,y=e.maxLength,x=e.suffix,C=e.showCount,w=e.count,S=e.type,k=void 0===S?"text":S,E=e.classes,O=e.classNames,$=e.styles,N=e.onCompositionStart,M=e.onCompositionEnd,I=Nt(e,lk),A=ht(h(!1),2),D=A[0],T=A[1],j=c(!1),R=c(!1),_=c(null),z=c(null),B=function(e){_.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)}}}}(_.current,e)},H=ht(yi(e.defaultValue,{value:e.value}),2),F=H[0],V=H[1],W=null==F?"":String(F),K=ht(h(null),2),q=K[0],X=K[1],G=sk(w,C),Q=G.max||y,Z=G.strategy(W),J=!!Q&&Z>Q;b(t,(function(){var e;return{focus:B,blur:function(){var e;null===(e=_.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=_.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=_.current)||void 0===e||e.select()},input:_.current,nativeElement:(null===(e=z.current)||void 0===e?void 0:e.nativeElement)||_.current}})),d((function(){R.current&&(R.current=!1),T((function(e){return(!e||!g)&&e}))}),[g]);var ee=function(e,t,n){var r,i,a=t;if(!j.current&&G.exceedFormatter&&G.max&&G.strategy(t)>G.max)t!==(a=G.exceedFormatter(t,{max:G.max}))&&X([(null===(r=_.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=_.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;V(a),_.current&&rk(_.current,e,o,a)};d((function(){var e;q&&(null===(e=_.current)||void 0===e||e.setSelectionRange.apply(e,rt(q)))}),[q]);var te,ne=function(e){ee(e,e.target.value,{source:"change"})},oe=function(e){j.current=!1,ee(e,e.currentTarget.value,{source:"compositionEnd"}),null==M||M(e)},re=function(e){s&&"Enter"===e.key&&!R.current&&(R.current=!0,s(e)),null==l||l(e)},ie=function(e){"Enter"===e.key&&(R.current=!1),null==u||u(e)},ae=function(e){T(!0),null==i||i(e)},se=function(e){R.current&&(R.current=!1),T(!1),null==a||a(e)},le=J&&"".concat(f,"-out-of-range");return r.createElement(ik,L({},I,{prefixCls:f,className:P(v,le),handleReset:function(e){V(""),B(),_.current&&rk(_.current,e,o)},value:W,focused:D,triggerFocus:B,suffix:function(){var e=Number(Q)>0;if(x||G.show){var t=G.showFormatter?G.showFormatter({value:W,count:Z,maxLength:Q}):"".concat(Z).concat(e?" / ".concat(Q):"");return r.createElement(r.Fragment,null,G.show&&r.createElement("span",{className:P("".concat(f,"-show-count-suffix"),U({},"".concat(f,"-show-count-has-suffix"),!!x),null==O?void 0:O.count),style:Y({},null==$?void 0:$.count)},t),x)}return null}(),disabled:g,classes:E,classNames:O,styles:$}),(te=et(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),r.createElement("input",L({autoComplete:n},te,{onChange:ne,onFocus:ae,onBlur:se,onKeyDown:re,onKeyUp:ie,className:P(f,U({},"".concat(f,"-disabled"),g),null==O?void 0:O.input),style:null==$?void 0:$.input,ref:_,size:m,type:k,onCompositionStart:function(e){j.current=!0,null==N||N(e)},onCompositionEnd:oe}))))}));const uk=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r.createElement(Ss,null)}),t};function dk(e,t){const n=c([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return d((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var pk=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 fk=p(((e,t)=>{var n;const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:u,onBlur:p,onFocus:f,suffix:h,allowClear:g,addonAfter:m,addonBefore:v,className:b,style:y,styles:x,rootClassName:C,onChange:w,classNames:S,variant:k}=e,E=pk(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=To("Input");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:O,direction:$,input:N}=r.useContext(ni),M=O("input",o),I=c(null),L=Fs(M),[A,D,T]=Gx(M,L),{compactSize:j,compactItemClassnames:R}=Rl(M,$),_=Il((e=>{var t;return null!==(t=null!=l?l:j)&&void 0!==t?t:e})),z=r.useContext(ii),B=null!=u?u:z,{status:H,hasFeedback:F,feedbackIcon:V}=s(bd),W=mg(H,a),K=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!F,q=c(K);if("production"!==process.env.NODE_ENV){const e=To("Input");d((()=>{var t;K&&!q.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===(null===(t=I.current)||void 0===t?void 0:t.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),q.current=K}),[K])}const X=dk(I,!0),U=(F||h)&&r.createElement(r.Fragment,null,h,F&&V),G=uk(null!=g?g:null==N?void 0:N.allowClear),[Y,Q]=Og("input",k,i);return A(r.createElement(ck,Object.assign({ref:le(t,I),prefixCls:M,autoComplete:null==N?void 0:N.autoComplete},E,{disabled:B,onBlur:e=>{X(),null==p||p(e)},onFocus:e=>{X(),null==f||f(e)},style:Object.assign(Object.assign({},null==N?void 0:N.style),y),styles:Object.assign(Object.assign({},null==N?void 0:N.styles),x),suffix:U,allowClear:G,className:P(b,C,T,L,R,null==N?void 0:N.className),onChange:e=>{X(),null==w||w(e)},addonBefore:v&&r.createElement(Cd,{form:!0,space:!0},v),addonAfter:m&&r.createElement(Cd,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},S),null==N?void 0:N.classNames),{input:P({[`${M}-sm`]:"small"===_,[`${M}-lg`]:"large"===_,[`${M}-rtl`]:"rtl"===$},null==S?void 0:S.input,null===(n=null==N?void 0:N.classNames)||void 0===n?void 0:n.input,D),variant:P({[`${M}-${Y}`]:Q},gg(M,W)),affixWrapper:P({[`${M}-affix-wrapper-sm`]:"small"===_,[`${M}-affix-wrapper-lg`]:"large"===_,[`${M}-affix-wrapper-rtl`]:"rtl"===$},D),wrapper:P({[`${M}-group-rtl`]:"rtl"===$},D),groupWrapper:P({[`${M}-group-wrapper-sm`]:"small"===_,[`${M}-group-wrapper-lg`]:"large"===_,[`${M}-group-wrapper-rtl`]:"rtl"===$,[`${M}-group-wrapper-${Y}`]:Q},gg(`${M}-group-wrapper`,W,F),D)})})))}));"production"!==process.env.NODE_ENV&&(fk.displayName="Input");const hk=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 gk=Ui(["Input","OTP"],(e=>{const t=Si(e,Sx(e));return[hk(t)]}),kx),mk=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 vk=o.forwardRef(((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:a,mask:s}=e,l=mk(e,["value","onChange","onActiveChange","index","mask"]),c=n&&"string"==typeof s?s:n,u=o.useRef(null);o.useImperativeHandle(t,(()=>u.current));const d=()=>{ut((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return o.createElement(fk,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 bk=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 yk(e){return(e||"").split("")}const xk=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:f,mask:h}=e,g=bk(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if("production"!==process.env.NODE_ENV){const e=To("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof h&&h.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:m,direction:v}=o.useContext(ni),b=m("otp",n),y=Ts(g,{aria:!0,data:!0,attr:!0}),x=Fs(b),[C,w,S]=gk(b,x),k=Il((e=>null!=i?i:e)),E=o.useContext(bd),O=mg(E.status,p),$=o.useMemo((()=>Object.assign(Object.assign({},E),{status:O,hasFeedback:!1,feedbackIcon:null})),[E,O]),N=o.useRef(null),M=o.useRef({});o.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=M.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=M.current[t])||void 0===e||e.blur()},nativeElement:N.current})));const I=e=>c?c(e):e,[L,A]=o.useState(yk(I(a||"")));o.useEffect((()=>{void 0!==s&&A(yk(s))}),[s]);const D=mi((e=>{A(e),l&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>L[t]!==e))&&l(e.join(""))})),T=mi(((e,t)=>{let n=rt(L);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(yk(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const o=I(n.map((e=>e||" ")).join(""));return n=yk(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),j=(e,t)=>{var n;const o=T(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=M.current[i])||void 0===n||n.focus()),D(o)},R=e=>{var t;null===(t=M.current[e])||void 0===t||t.focus()},_={variant:u,disabled:d,status:O,mask:h};return C(o.createElement("div",Object.assign({},y,{ref:N,className:P(b,{[`${b}-sm`]:"small"===k,[`${b}-lg`]:"large"===k,[`${b}-rtl`]:"rtl"===v},S,w)}),o.createElement(bd.Provider,{value:$},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,r=L[t]||"";return o.createElement(vk,Object.assign({ref:e=>{M.current[t]=e},key:n,index:t,size:k,htmlSize:1,className:`${b}-input`,onChange:j,value:r,onActiveChange:R,autoFocus:0===t&&f},_))})))))}));var Ck={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"},wk=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:Ck}))},Sk=o.forwardRef(wk);"production"!==process.env.NODE_ENV&&(Sk.displayName="EyeInvisibleOutlined");var kk={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"},Ek=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:kk}))},Ok=o.forwardRef(Ek);"production"!==process.env.NODE_ENV&&(Ok.displayName="EyeOutlined");var $k=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 Nk=e=>e?o.createElement(Ok,null):o.createElement(Sk,null),Mk={click:"onClick",hover:"onMouseOver"},Ik=o.forwardRef(((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=Nk}=e,s="object"==typeof i&&void 0!==i.visible,[l,u]=h((()=>!!s&&i.visible)),d=c(null);o.useEffect((()=>{s&&u(i.visible)}),[s,i]);const p=dk(d),f=()=>{n||(l&&p(),u((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:g,prefixCls:m,inputPrefixCls:v,size:b}=e,y=$k(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=o.useContext(ni),C=x("input",v),w=x("input-password",m),S=i&&(e=>{const t=Mk[r]||"",n=a(l),i={[t]:f,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),i)})(w),k=P(w,g,{[`${w}-${b}`]:!!b}),E=Object.assign(Object.assign({},et(y,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:k,prefixCls:C,suffix:S});return b&&(E.size=b),o.createElement(fk,Object.assign({ref:le(t,d)},E))}));"production"!==process.env.NODE_ENV&&(Ik.displayName="Input.Password");var Pk=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 Lk=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:f,onCompositionStart:h,onCompositionEnd:g}=e,m=Pk(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=o.useContext(ni),y=o.useRef(!1),x=v("input-search",n),C=v("input",r),{compactSize:w}=Rl(x,b),S=Il((e=>{var t;return null!==(t=null!=a?a:w)&&void 0!==t?t:e})),k=o.useRef(null),E=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=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"})},$="boolean"==typeof l?o.createElement(om,null):null,N=`${x}-button`;let M;const I=l||{},L=I.type&&!0===I.type.__ANT_BUTTON;M=L||"button"===I.type?_s(I,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==I?void 0:I.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},L?{className:N,size:S}:{})):o.createElement(Ac,{className:N,type:l?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:E,onClick:O,loading:u,icon:$},l),c&&(M=[M,_s(c,{key:"addonAfter"})]);const A=P(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!l},i);return o.createElement(fk,Object.assign({ref:le(k,t),onPressEnter:e=>{y.current||u||O(e)}},m,{size:S,onCompositionStart:e=>{y.current=!0,null==h||h(e)},onCompositionEnd:e=>{y.current=!1,null==g||g(e)},prefixCls:C,addonAfter:M,suffix:s,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),null==f||f(e)},className:A,disabled:d}))}));"production"!==process.env.NODE_ENV&&(Lk.displayName="Search");var Ak,Dk=["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"],Tk={};function jk(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;Ak||((Ak=document.createElement("textarea")).setAttribute("tab-index","-1"),Ak.setAttribute("aria-hidden","true"),Ak.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ak)),e.getAttribute("wrap")?Ak.setAttribute("wrap",e.getAttribute("wrap")):Ak.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&&Tk[n])return Tk[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:Dk.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(Tk[n]=s),s}(e,t),i=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;Ak.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")),Ak.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,p=Ak.scrollHeight;if("border-box"===s?p+=a:"content-box"===s&&(p-=i),null!==n||null!==o){Ak.value=" ";var f=Ak.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 Rk=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_k=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,f=n.onInternalAutoSize,h=Nt(n,Rk),g=ht(yi(i,{value:a,postState:function(e){return null!=e?e:""}}),2),m=g[0],v=g[1],b=o.useRef();o.useImperativeHandle(t,(function(){return{textArea:b.current}}));var y=ht(o.useMemo((function(){return s&&"object"===A(s)?[s.minRows,s.maxRows]:[]}),[s]),2),x=y[0],C=y[1],w=!!s,S=ht(o.useState(2),2),k=S[0],E=S[1],O=ht(o.useState(),2),$=O[0],N=O[1],M=function(){E(0),"test"===process.env.NODE_ENV&&(null==f||f())};Jt((function(){w&&M()}),[a,x,C,w]),Jt((function(){if(0===k)E(1);else if(1===k){var e=jk(b.current,!1,x,C);E(2),N(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=o}}catch(e){}}()}),[k]);var I=o.useRef(),D=function(){ut.cancel(I.current)};o.useEffect((function(){return D}),[]);var T=w?$:null,j=Y(Y({},u),T);return 0!==k&&1!==k||(j.overflowY="hidden",j.overflowX="hidden"),o.createElement(Je,{onResize:function(e){2===k&&(null==l||l(e),s&&(D(),I.current=ut((function(){M()}))))},disabled:!(s||l)},o.createElement("textarea",L({},h,{ref:b,style:j,className:P(r,c,U({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:function(e){v(e.target.value),null==p||p(e)}})))})),zk=["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"],Bk=r.forwardRef((function(e,t){var n,o=e.defaultValue,i=e.value,a=e.onFocus,s=e.onBlur,l=e.onChange,u=e.allowClear,p=e.maxLength,f=e.onCompositionStart,h=e.onCompositionEnd,g=e.suffix,m=e.prefixCls,v=void 0===m?"rc-textarea":m,y=e.showCount,x=e.count,C=e.className,w=e.style,S=e.disabled,k=e.hidden,E=e.classNames,O=e.styles,$=e.onResize,N=e.onClear,M=e.onPressEnter,I=e.readOnly,A=e.autoSize,D=e.onKeyDown,T=Nt(e,zk),j=ht(yi(o,{value:i,defaultValue:o}),2),R=j[0],_=j[1],z=null==R?"":String(R),B=ht(r.useState(!1),2),H=B[0],F=B[1],V=r.useRef(!1),W=ht(r.useState(null),2),K=W[0],q=W[1],X=c(null),G=c(null),Q=function(){var e;return null===(e=G.current)||void 0===e?void 0:e.textArea},Z=function(){Q().focus()};b(t,(function(){var e;return{resizableTextArea:G.current,focus:Z,blur:function(){Q().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||Q()}})),d((function(){F((function(e){return!S&&e}))}),[S]);var J=ht(r.useState(null),2),ee=J[0],te=J[1];r.useEffect((function(){var e;ee&&(e=Q()).setSelectionRange.apply(e,rt(ee))}),[ee]);var ne,oe=sk(x,y),re=null!==(n=oe.max)&&void 0!==n?n:p,ie=Number(re)>0,ae=oe.strategy(z),se=!!re&&ae>re,le=function(e,t){var n=t;!V.current&&oe.exceedFormatter&&oe.max&&oe.strategy(t)>oe.max&&t!==(n=oe.exceedFormatter(t,{max:oe.max}))&&te([Q().selectionStart||0,Q().selectionEnd||0]),_(n),rk(e.currentTarget,e,l,n)},ce=g;oe.show&&(ne=oe.showFormatter?oe.showFormatter({value:z,count:ae,maxLength:re}):"".concat(ae).concat(ie?" / ".concat(re):""),ce=r.createElement(r.Fragment,null,ce,r.createElement("span",{className:P("".concat(v,"-data-count"),null==E?void 0:E.count),style:null==O?void 0:O.count},ne)));var ue=!A&&!y&&!u;return r.createElement(ik,{ref:X,value:z,allowClear:u,handleReset:function(e){_(""),Z(),rk(Q(),e,l)},suffix:ce,prefixCls:v,classNames:Y(Y({},E),{},{affixWrapper:P(null==E?void 0:E.affixWrapper,U(U({},"".concat(v,"-show-count"),y),"".concat(v,"-textarea-allow-clear"),u))}),disabled:S,focused:H,className:P(C,se&&"".concat(v,"-out-of-range")),style:Y(Y({},w),K&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ne?ne:void 0}},hidden:k,readOnly:I,onClear:N},r.createElement(_k,L({},T,{autoSize:A,maxLength:p,onKeyDown:function(e){"Enter"===e.key&&M&&M(e),null==D||D(e)},onChange:function(e){le(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){V.current=!0,null==f||f(e)},onCompositionEnd:function(e){V.current=!1,le(e,e.currentTarget.value),null==h||h(e)},className:P(null==E?void 0:E.textarea),style:Y(Y({},null==O?void 0:O.textarea),{},{resize:null==w?void 0:w.resize}),disabled:S,prefixCls:v,onResize:function(e){var t;null==$||$(e),null!==(t=Q())&&void 0!==t&&t.style.height&&q(!0)},ref:G,readOnly:I})))})),Hk=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 Fk=p(((e,t)=>{var n,r;const{prefixCls:i,bordered:a=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:p,className:f,style:h,styles:g,variant:m}=e,v=Hk(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=To("TextArea");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:x}=o.useContext(ni),C=Il(s),w=o.useContext(ii),S=null!=l?l:w,{status:k,hasFeedback:E,feedbackIcon:O}=o.useContext(bd),$=mg(k,c),N=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=N.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}}));const M=b("input",i),I=Fs(M),[L,A,D]=Gx(M,I),[T,j]=Og("textArea",m,a),R=uk(null!=u?u:null==x?void 0:x.allowClear);return L(o.createElement(Bk,Object.assign({autoComplete:null==x?void 0:x.autoComplete},v,{style:Object.assign(Object.assign({},null==x?void 0:x.style),h),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:S,allowClear:R,className:P(D,I,f,p,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:P({[`${M}-sm`]:"small"===C,[`${M}-lg`]:"large"===C},A,null==d?void 0:d.textarea,null===(n=null==x?void 0:x.classNames)||void 0===n?void 0:n.textarea),variant:P({[`${M}-${T}`]:j},gg(M,$)),affixWrapper:P(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:"rtl"===y,[`${M}-affix-wrapper-sm`]:"small"===C,[`${M}-affix-wrapper-lg`]:"large"===C,[`${M}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},A)}),prefixCls:M,suffix:E&&o.createElement("span",{className:`${M}-textarea-suffix`},O),ref:N})))})),Vk=fk;function Wk(e){return["small","middle","large"].includes(e)}function Kk(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}Vk.Group=e=>{const{getPrefixCls:t,direction:n}=s(ni),{prefixCls:r,className:i}=e,a=t("input-group",r),l=t("input"),[c,u]=Gx(l),d=P(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===n},u,i),p=s(bd),h=f((()=>Object.assign(Object.assign({},p),{isFormItemInput:!1})),[p]);if("production"!==process.env.NODE_ENV){To("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return c(o.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(bd.Provider,{value:h},e.children)))},Vk.Search=Lk,Vk.TextArea=Fk,Vk.Password=Ik,Vk.OTP=xk;const qk=r.createContext({latestIndex:0}),Xk=qk.Provider,Uk=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:s}=o.useContext(qk);return null==r?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:a},r),n<s&&i&&o.createElement("span",{className:`${t}-split`},i))};var Gk=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 Yk=o.forwardRef(((e,t)=>{var n,r,i;const{getPrefixCls:a,space:s,direction:l}=o.useContext(ni),{size:c=(null!==(n=null==s?void 0:s.size)&&void 0!==n?n:"small"),align:u,className:d,rootClassName:p,children:f,direction:h="horizontal",prefixCls:g,split:m,style:v,wrap:b=!1,classNames:y,styles:x}=e,C=Gk(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,S]=Array.isArray(c)?c:[c,c],k=Wk(S),E=Wk(w),O=Kk(S),$=Kk(w),N=_(f,{keepEmpty:!0}),M=void 0===u&&"horizontal"===h?"center":u,I=a("space",g),[L,A,D]=Dl(I),T=P(I,null==s?void 0:s.className,A,`${I}-${h}`,{[`${I}-rtl`]:"rtl"===l,[`${I}-align-${M}`]:M,[`${I}-gap-row-${S}`]:k,[`${I}-gap-col-${w}`]:E},d,p,D),j=P(`${I}-item`,null!==(r=null==y?void 0:y.item)&&void 0!==r?r:null===(i=null==s?void 0:s.classNames)||void 0===i?void 0:i.item);let R=0;const z=N.map(((e,t)=>{var n,r;null!=e&&(R=t);const i=(null==e?void 0:e.key)||`${j}-${t}`;return o.createElement(Uk,{className:j,key:i,index:t,split:m,style:null!==(n=null==x?void 0:x.item)&&void 0!==n?n:null===(r=null==s?void 0:s.styles)||void 0===r?void 0:r.item},e)})),B=o.useMemo((()=>({latestIndex:R})),[R]);if(0===N.length)return null;const H={};return b&&(H.flexWrap="wrap"),!E&&$&&(H.columnGap=w),!k&&O&&(H.rowGap=S),L(o.createElement("div",Object.assign({ref:t,className:T,style:Object.assign(Object.assign(Object.assign({},H),null==s?void 0:s.style),v)},C),o.createElement(Xk,{value:B},z)))})),Qk=Yk;Qk.Compact=e=>{const{getPrefixCls:t,direction:n}=o.useContext(ni),{size:r,direction:i,block:a,prefixCls:s,className:l,rootClassName:c,children:u}=e,d=Tl(e,["size","direction","block","prefixCls","className","rootClassName","children"]),p=Il((e=>null!=r?r:e)),f=t("space-compact",s),[h,g]=Dl(f),m=P(f,g,{[`${f}-rtl`]:"rtl"===n,[`${f}-block`]:a,[`${f}-vertical`]:"vertical"===i},l,c),v=o.useContext(jl),b=_(u),y=o.useMemo((()=>b.map(((e,t)=>{const n=(null==e?void 0:e.key)||`${f}-item-${t}`;return o.createElement(zl,{key:n,compactSize:p,compactDirection:i,isFirstItem:0===t&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:t===b.length-1&&(!v||(null==v?void 0:v.isLastItem))},e)}))),[r,b,v]);return 0===b.length?null:h(o.createElement("div",Object.assign({className:m},d),y))},"production"!==process.env.NODE_ENV&&(Qk.displayName="Space");var Zk=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 Jk=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(ni),{prefixCls:i,type:a="default",danger:s,disabled:l,loading:c,onClick:u,htmlType:d,children:p,className:f,menu:h,arrow:g,autoFocus:m,overlay:v,trigger:b,align:y,open:x,onOpenChange:C,placement:w,getPopupContainer:S,href:k,icon:E=o.createElement(my,null),title:O,buttonsRender:$=e=>e,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:L,destroyPopupOnHide:A,dropdownRender:D}=e,T=Zk(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),j=n("dropdown",i),R=`${j}-button`,_={menu:h,arrow:g,autoFocus:m,align:y,disabled:l,trigger:l?[]:b,onOpenChange:C,getPopupContainer:S||t,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:L,destroyPopupOnHide:A,dropdownRender:D},{compactSize:z,compactItemClassnames:B}=Rl(j,r),H=P(R,B,f);"overlay"in e&&(_.overlay=v),"open"in e&&(_.open=x),_.placement="placement"in e?w:"rtl"===r?"bottomLeft":"bottomRight";const F=o.createElement(Ac,{type:a,danger:s,disabled:l,loading:c,onClick:u,htmlType:d,href:k,title:O},p),V=o.createElement(Ac,{type:a,danger:s,icon:E}),[W,K]=$([F,V]);return o.createElement(Qk.Compact,Object.assign({className:H,size:z,block:!0},T),W,o.createElement(Vy,Object.assign({},_),K))};Jk.__ANT_BUTTON=!0;const eE=Vy;eE.Button=Jk;const tE=r.createContext(void 0),{Provider:nE}=tE;var oE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},rE=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:oE}))},iE=o.forwardRef(rE);"production"!==process.env.NODE_ENV&&(iE.displayName="FileTextOutlined");var aE=x((e=>{const{icon:t,description:n,prefixCls:o,className:i}=e,a=r.createElement("div",{className:`${o}-icon`},r.createElement(iE,null));return r.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:P(i,`${o}-content`)},t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-icon`},t),n&&r.createElement("div",{className:`${o}-description`},n)):a)}));const sE=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),lE=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,i=`${t}-group`,a=new Co("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${Xt(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new Co("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${Xt(n)}, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:Object.assign({},sp(`${i}-wrap`,a,s,o,!0))},{[`${i}-wrap`]:{[`\n &${i}-wrap-enter,\n &${i}-wrap-appear\n `]:{opacity:0,animationTimingFunction:r},[`&${i}-wrap-leave`]:{animationTimingFunction:r}}}]},cE=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:s,floatButtonBodyPadding:l,calc:c}=e,u=`${n}-group`;return{[u]:Object.assign(Object.assign({},Vi(e)),{zIndex:e.zIndexPopupBase,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${u}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${u}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${u}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${u}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${u}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:c(c(l).add(s)).mul(-1).equal(),insetInlineEnd:c(c(l).add(s)).mul(-1).equal()}}},[`${u}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:l,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${u}-circle-shadow`]:{boxShadow:"none"},[`${u}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},uE=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:a,badgeOffset:s,dotOffsetInSquare:l,dotOffsetInCircle:c,calc:u}=e;return{[n]:Object.assign(Object.assign({},Vi(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:e.zIndexPopupBase,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:u(s).mul(-1).equal(),insetInlineEnd:u(s).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${Xt(u(o).div(2).equal())} ${Xt(o)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:l,insetInlineEnd:l}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:Xt(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:Xt(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var dE=Ui("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:a,fontSizeIcon:s,controlItemBgHover:l,paddingXXS:c,calc:u}=e,d=Si(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:l,floatButtonFontSize:a,floatButtonIconSize:u(s).mul(1.5).equal(),floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:u(o).sub(u(c).mul(2)).equal(),floatButtonBodyPadding:c,badgeOffset:u(c).mul(1.5).equal()});return[cE(d),uE(d),up(e),lE(d)]}),(e=>({dotOffsetInCircle:sE(e.controlHeightLG/2),dotOffsetInSquare:sE(e.borderRadiusLG)}))),pE=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 fE="float-btn",hE=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,type:a="default",shape:l="circle",icon:c,description:u,tooltip:d,badge:p={}}=e,h=pE(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:g,direction:m}=s(ni),v=s(tE),b=g(fE,n),y=Fs(b),[x,C,w]=dE(b,y),S=P(C,w,y,b,o,i,`${b}-${a}`,`${b}-${v||l}`,{[`${b}-rtl`]:"rtl"===m}),k=f((()=>et(p,["title","children","status","text"])),[p]),E=f((()=>({prefixCls:b,description:u,icon:c,type:a})),[b,u,c,a]);let O=r.createElement("div",{className:`${b}-body`},r.createElement(aE,Object.assign({},E)));if("badge"in e&&(O=r.createElement(Ev,Object.assign({},k),O)),"tooltip"in e&&(O=r.createElement(Xm,{title:d,placement:"rtl"===m?"right":"left"},O)),"production"!==process.env.NODE_ENV){const e=To("FloatButton");"production"!==process.env.NODE_ENV&&e(!("circle"===l&&u),"usage","supported only when `shape` is `square`. Due to narrow space for text, short sentence is recommended.")}return x(e.href?r.createElement("a",Object.assign({ref:t},h,{className:S}),O):r.createElement("button",Object.assign({ref:t},h,{className:S,type:"button"}),O))})),gE=hE;"production"!==process.env.NODE_ENV&&(gE.displayName="FloatButton");var mE=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 vE=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,type:i="default",shape:a="circle",visibilityHeight:l=400,icon:c=r.createElement(av,null),target:u,onClick:p,duration:f=450}=e,g=mE(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[m,v]=h(0===l),b=r.useRef(null);r.useImperativeHandle(t,(()=>({nativeElement:b.current})));const y=()=>{var e;return(null===(e=b.current)||void 0===e?void 0:e.ownerDocument)||window},x=dt((e=>{const t=Bs(e.target);v(t>=l)}));d((()=>{const e=(u||y)();return x({target:e}),null==e||e.addEventListener("scroll",x),()=>{x.cancel(),null==e||e.removeEventListener("scroll",x)}}),[u]);const C=e=>{Hs(0,{getContainer:u||y,duration:f}),null==p||p(e)},{getPrefixCls:w}=s(ni),S=w(fE,n),k=w(),E=s(tE)||a,O=Object.assign({prefixCls:S,icon:c,type:i,shape:E},g);return r.createElement(Da,{visible:m,motionName:`${k}-fade`},((e,t)=>{let{className:n}=e;return r.createElement(gE,Object.assign({ref:le(b,t)},O,{onClick:C,className:P(o,n)}))}))}));"production"!==process.env.NODE_ENV&&(vE.displayName="BackTop");var bE=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 yE=e=>{var t;const{prefixCls:n,className:o,style:i,shape:a="circle",type:l="default",icon:c=r.createElement(iE,null),closeIcon:u,description:d,trigger:p,children:f,onOpenChange:h,open:g,onClick:m}=e,v=bE(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:b,getPrefixCls:y,floatButtonGroup:x}=s(ni),C=null!==(t=null!=u?u:null==x?void 0:x.closeIcon)&&void 0!==t?t:r.createElement(Os,null),w=y(fE,n),S=Fs(w),[k,E,O]=dE(w,S),$=`${w}-group`,N=P($,E,O,S,o,{[`${$}-rtl`]:"rtl"===b,[`${$}-${a}`]:a,[`${$}-${a}-shadow`]:!p}),M=P(E,`${$}-wrap`),[I,L]=yi(!1,{value:g}),A=r.useRef(null),D="hover"===p,T="click"===p,j=mi((e=>{I!==e&&(L(e),null==h||h(e))}));if(r.useEffect((()=>{if(T){const e=e=>{var t;(null===(t=A.current)||void 0===t?void 0:t.contains(e.target))||j(!1)};return document.addEventListener("click",e,{capture:!0}),()=>{document.removeEventListener("click",e,{capture:!0})}}}),[T]),"production"!==process.env.NODE_ENV){const t=To("FloatButton.Group");"production"!==process.env.NODE_ENV&&t(!("open"in e)||!!p,"usage","`open` need to be used together with `trigger`")}return k(r.createElement(nE,{value:a},r.createElement("div",{ref:A,className:N,style:i,onMouseEnter:()=>{D&&j(!0)},onMouseLeave:()=>{D&&j(!1)}},p&&["click","hover"].includes(p)?r.createElement(r.Fragment,null,r.createElement(Da,{visible:I,motionName:`${$}-wrap`},(e=>{let{className:t}=e;return r.createElement("div",{className:P(t,M)},f)})),r.createElement(gE,Object.assign({type:l,icon:I?C:c,description:d,"aria-label":e["aria-label"],className:`${$}-trigger`,onClick:e=>{T&&j(!I),null==m||m(e)}},v))):f)))};var xE=x(yE),CE=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=e=>{var{backTop:t}=e,n=CE(e,["backTop"]);return t?o.createElement(vE,Object.assign({},n,{visibilityHeight:0})):o.createElement(gE,Object.assign({},n))};function SE(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function kE(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function EE(e,t,n,o){var r=S.unstable_batchedUpdates?function(e){S.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,r,o)}}}gE.BackTop=vE,gE.Group=xE,gE._InternalPanelDoNotUseOrYouWillBeFired=e=>{var{className:t,items:n}=e,r=CE(e,["className","items"]);const{prefixCls:i}=r,{getPrefixCls:a}=o.useContext(ni),s=`${a(fE,i)}-pure`;return n?o.createElement(xE,Object.assign({className:P(t,s)},r),n.map(((e,t)=>o.createElement(wE,Object.assign({key:t},e))))):o.createElement(wE,Object.assign({className:P(t,s)},r))};var OE=o.createContext(null),$E=function(e){var t=e.visible,n=e.maskTransitionName,r=e.getContainer,i=e.prefixCls,a=e.rootClassName,l=e.icons,c=e.countRender,u=e.showSwitch,d=e.showProgress,p=e.current,f=e.transform,h=e.count,g=e.scale,m=e.minScale,v=e.maxScale,b=e.closeIcon,y=e.onSwitchLeft,x=e.onSwitchRight,C=e.onClose,w=e.onZoomIn,S=e.onZoomOut,k=e.onRotateRight,E=e.onRotateLeft,O=e.onFlipX,$=e.onFlipY,N=e.onReset,M=e.toolbarRender,I=e.zIndex,L=e.image,A=s(OE),D=l.rotateLeft,T=l.rotateRight,j=l.zoomIn,R=l.zoomOut,_=l.close,z=l.left,B=l.right,H=l.flipX,F=l.flipY,V="".concat(i,"-operations-operation");o.useEffect((function(){var e=function(e){e.keyCode===Vs.ESC&&C()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var W=[{icon:F,onClick:$,type:"flipY"},{icon:H,onClick:O,type:"flipX"},{icon:D,onClick:E,type:"rotateLeft"},{icon:T,onClick:k,type:"rotateRight"},{icon:R,onClick:S,type:"zoomOut",disabled:g<=m},{icon:j,onClick:w,type:"zoomIn",disabled:g===v}].map((function(e){var t,n=e.icon,r=e.onClick,a=e.type,s=e.disabled;return o.createElement("div",{className:P(V,(t={},U(t,"".concat(i,"-operations-operation-").concat(a),!0),U(t,"".concat(i,"-operations-operation-disabled"),!!s),t)),onClick:r,key:a},n)})),K=o.createElement("div",{className:"".concat(i,"-operations")},W);return o.createElement(Da,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return o.createElement(Yc,{open:!0,getContainer:null!=r?r:document.body},o.createElement("div",{className:P("".concat(i,"-operations-wrapper"),t,a),style:Y(Y({},n),{},{zIndex:I})},null===b?null:o.createElement("button",{className:"".concat(i,"-close"),onClick:C},b||_),u&&o.createElement(o.Fragment,null,o.createElement("div",{className:P("".concat(i,"-switch-left"),U({},"".concat(i,"-switch-left-disabled"),0===p)),onClick:y},z),o.createElement("div",{className:P("".concat(i,"-switch-right"),U({},"".concat(i,"-switch-right-disabled"),p===h-1)),onClick:x},B)),o.createElement("div",{className:"".concat(i,"-footer")},d&&o.createElement("div",{className:"".concat(i,"-progress")},c?c(p+1,h):"".concat(p+1," / ").concat(h)),M?M(K,Y(Y({icons:{flipYIcon:W[0],flipXIcon:W[1],rotateLeftIcon:W[2],rotateRightIcon:W[3],zoomOutIcon:W[4],zoomInIcon:W[5]},actions:{onFlipY:$,onFlipX:O,onRotateLeft:E,onRotateRight:k,onZoomOut:S,onZoomIn:w,onReset:N,onClose:C},transform:f},A?{current:p,total:h}:{}),{},{image:L})):K)))}))},NE={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function ME(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return U({},e,i);if(t<0&&r<o)return U({},e,-i)}else if(t<0||r>o)return U({},e,t<0?i:-i);return{}}function IE(e,t,n,o){var r=SE(),i=r.width,a=r.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=Y(Y({},ME("x",n,e,i)),ME("y",o,t,a))),s}function PE(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,r=ht(h(n?"loading":"normal"),2),i=r[0],a=r[1],s=c(!1),l="error"===i;d((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&a("error")})),function(){e=!1}}),[t]),d((function(){n&&!s.current?a("loading"):l&&a("normal")}),[t]);var u=function(){a("normal")};return[function(e){s.current=!1,"loading"===i&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(s.current=!0,u())},l&&o?{src:o}:{onLoad:u,src:t},i]}function LE(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function AE(e,t,n,o,r,i,a){var s=r.rotate,l=r.scale,u=r.x,p=r.y,f=ht(h(!1),2),g=f[0],m=f[1],v=c({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),b=function(e){v.current=Y(Y({},v.current),e)};return d((function(){var e;return n&&t&&(e=EE(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:g,onTouchStart:function(e){if(t){e.stopPropagation(),m(!0);var n=e.touches,o=void 0===n?[]:n;o.length>1?b({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):b({point1:{x:o[0].clientX-u,y:o[0].clientY-p},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=v.current,r=o.point1,s=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=LE(e,n),i=LE(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,s,c,u),p=ht(d,2),f=p[0],h=p[1],g=LE(c,u)/LE(r,s);a(g,"touchZoom",f,h,!0),b({point1:c,point2:u,eventType:"touchZoom"})}else"move"===l&&(i({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),b({eventType:"move"}))},onTouchEnd:function(){if(n){if(g&&m(!1),b({eventType:"none"}),o>l)return i({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*l,r=e.current.offsetHeight*l,a=e.current.getBoundingClientRect(),c=a.left,u=a.top,d=s%180!=0,p=IE(d?r:t,d?t:r,c,u);p&&i(Y({},p),"dragRebound")}}}}var DE=["fallback","src","imgRef"],TE=["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"],jE=function(e){var t=e.fallback,n=e.src,o=e.imgRef,i=Nt(e,DE),a=ht(PE({src:n,fallback:t}),2),s=a[0],l=a[1];return r.createElement("img",L({ref:function(e){o.current=e,s(e)}},i,l))},RE=function(e){var t=e.prefixCls,n=e.src,o=e.alt,i=e.imageInfo,a=e.fallback,l=e.movable,u=void 0===l||l,p=e.onClose,f=e.visible,g=e.icons,m=void 0===g?{}:g,v=e.rootClassName,b=e.closeIcon,y=e.getContainer,x=e.current,C=void 0===x?0:x,w=e.count,S=void 0===w?1:w,k=e.countRender,E=e.scaleStep,O=void 0===E?.5:E,$=e.minScale,N=void 0===$?1:$,M=e.maxScale,I=void 0===M?50:M,A=e.transitionName,D=void 0===A?"zoom":A,T=e.maskTransitionName,j=void 0===T?"fade":T,R=e.imageRender,_=e.imgCommonProps,z=e.toolbarRender,B=e.onTransform,F=e.onChange,V=Nt(e,TE),W=c(),K=s(OE),q=K&&S>1,X=K&&S>=1,G=ht(h(!0),2),Q=G[0],Z=G[1],J=function(e,t,n,o){var r=c(null),i=c([]),a=ht(h(NE),2),s=a[0],l=a[1],u=function(e,t){null===r.current&&(i.current=[],r.current=ut((function(){l((function(e){var n=e;return i.current.forEach((function(e){n=Y(Y({},n),e)})),r.current=null,null==o||o({transform:n,action:t}),n}))}))),i.current.push(Y(Y({},s),e))};return{transform:s,resetTransform:function(e){l(NE),Mt(NE,s)||null==o||o({transform:NE,action:e})},updateTransform:u,dispatchZoomChange:function(o,r,i,a,l){var c=e.current,d=c.width,p=c.height,f=c.offsetWidth,h=c.offsetHeight,g=c.offsetLeft,m=c.offsetTop,v=o,b=s.scale*o;b>n?(b=n,v=n/s.scale):b<t&&(v=(b=l?b:t)/s.scale);var y=null!=i?i:innerWidth/2,x=null!=a?a:innerHeight/2,C=v-1,w=C*d*.5,S=C*p*.5,k=C*(y-s.x-g),E=C*(x-s.y-m),O=s.x-(k-w),$=s.y-(E-S);if(o<1&&1===b){var N=f*b,M=h*b,I=SE(),P=I.width,L=I.height;N<=P&&M<=L&&(O=0,$=0)}u({x:O,y:$,scale:b},r)}}}(W,N,I,B),ee=J.transform,te=J.resetTransform,ne=J.updateTransform,oe=J.dispatchZoomChange,re=function(e,t,n,o,r,i,a){var s=r.rotate,l=r.scale,u=r.x,p=r.y,f=ht(h(!1),2),g=f[0],m=f[1],v=c({diffX:0,diffY:0,transformX:0,transformY:0}),b=function(e){n&&g&&i({x:e.pageX-v.current.diffX,y:e.pageY-v.current.diffY},"move")},y=function(){if(n&&g){m(!1);var t=v.current,o=t.transformX,r=t.transformY;if(u===o||p===r)return;var a=e.current.offsetWidth*l,c=e.current.offsetHeight*l,d=e.current.getBoundingClientRect(),f=d.left,h=d.top,b=s%180!=0,y=IE(b?c:a,b?a:c,f,h);y&&i(Y({},y),"dragRebound")}};return d((function(){var e,n,o,r;if(t){o=EE(window,"mouseup",y,!1),r=EE(window,"mousemove",b,!1);try{window.top!==window.self&&(e=EE(window.top,"mouseup",y,!1),n=EE(window.top,"mousemove",b,!1))}catch(e){H(!1,"[rc-image] ".concat(e))}}return function(){var t,i,a,s;null===(t=o)||void 0===t||t.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(s=n)||void 0===s||s.remove()}}),[n,g,u,p,s,t]),{isMoving:g,onMouseDown:function(e){t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),v.current={diffX:e.pageX-u,diffY:e.pageY-p,transformX:u,transformY:p},m(!0))},onMouseMove:b,onMouseUp:y,onWheel:function(e){if(n&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),r=1+Math.min(t,1)*o;e.deltaY>0&&(r=1/r),a(r,"wheel",e.clientX,e.clientY)}}}}(W,u,f,O,ee,ne,oe),ie=re.isMoving,ae=re.onMouseDown,se=re.onWheel,le=AE(W,u,f,N,ee,ne,oe),ce=le.isTouching,ue=le.onTouchStart,de=le.onTouchMove,pe=le.onTouchEnd,fe=ee.rotate,he=ee.scale,ge=P(U({},"".concat(t,"-moving"),ie));d((function(){Q||Z(!0)}),[Q]);var me=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),C>0&&(Z(!1),te("prev"),null==F||F(C-1,C))},ve=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),C<S-1&&(Z(!1),te("next"),null==F||F(C+1,C))},be=function(e){f&&q&&(e.keyCode===Vs.LEFT?me():e.keyCode===Vs.RIGHT&&ve())};d((function(){var e=EE(window,"keydown",be,!1);return function(){e.remove()}}),[f,q,C]);var ye=r.createElement(jE,L({},_,{width:e.width,height:e.height,imgRef:W,className:"".concat(t,"-img"),alt:o,style:{transform:"translate3d(".concat(ee.x,"px, ").concat(ee.y,"px, 0) scale3d(").concat(ee.flipX?"-":"").concat(he,", ").concat(ee.flipY?"-":"").concat(he,", 1) rotate(").concat(fe,"deg)"),transitionDuration:(!Q||ce)&&"0s"},fallback:a,src:n,onWheel:se,onMouseDown:ae,onDoubleClick:function(e){f&&(1!==he?ne({x:0,y:0,scale:1},"doubleClick"):oe(1+O,"doubleClick",e.clientX,e.clientY))},onTouchStart:ue,onTouchMove:de,onTouchEnd:pe,onTouchCancel:pe})),xe=Y({url:n,alt:o},i);return r.createElement(r.Fragment,null,r.createElement(uu,L({transitionName:D,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:t,onClose:p,visible:f,classNames:{wrapper:ge},rootClassName:v,getContainer:y},V,{afterClose:function(){te("close")}}),r.createElement("div",{className:"".concat(t,"-img-wrapper")},R?R(ye,Y({transform:ee,image:xe},K?{current:C}:{})):ye)),r.createElement($E,{visible:f,transform:ee,maskTransitionName:j,closeIcon:b,getContainer:y,prefixCls:t,rootClassName:v,icons:m,countRender:k,showSwitch:q,showProgress:X,current:C,count:S,scale:he,minScale:N,maxScale:I,toolbarRender:z,onSwitchLeft:me,onSwitchRight:ve,onZoomIn:function(){oe(1+O,"zoomIn")},onZoomOut:function(){oe(1/(1+O),"zoomOut")},onRotateRight:function(){ne({rotate:fe+90},"rotateRight")},onRotateLeft:function(){ne({rotate:fe-90},"rotateLeft")},onFlipX:function(){ne({flipX:!ee.flipX},"flipX")},onFlipY:function(){ne({flipY:!ee.flipY},"flipY")},onClose:p,onReset:function(){te("reset")},zIndex:void 0!==V.zIndex?V.zIndex+1:void 0,image:xe}))},_E=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var zE=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],BE=["src"],HE=0;var FE=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],VE=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],WE=function(e){var t=e.src,n=e.alt,r=e.onPreviewClose,i=e.prefixCls,a=void 0===i?"rc-image":i,l=e.previewPrefixCls,c=void 0===l?"".concat(a,"-preview"):l,u=e.placeholder,d=e.fallback,p=e.width,g=e.height,m=e.style,v=e.preview,b=void 0===v||v,y=e.className,x=e.onClick,C=e.onError,w=e.wrapperClassName,S=e.wrapperStyle,k=e.rootClassName,E=Nt(e,FE),O=u&&!0!==u,$="object"===A(b)?b:{},N=$.src,M=$.visible,I=void 0===M?void 0:M,D=$.onVisibleChange,T=void 0===D?r:D,j=$.getContainer,R=void 0===j?void 0:j,_=$.mask,z=$.maskClassName,B=$.movable,H=$.icons,F=$.scaleStep,V=$.minScale,W=$.maxScale,K=$.imageRender,q=$.toolbarRender,X=Nt($,VE),G=null!=N?N:t,Q=ht(yi(!!I,{value:I,onChange:T}),2),Z=Q[0],J=Q[1],ee=ht(PE({src:t,isCustomPlaceholder:O,fallback:d}),3),te=ee[0],ne=ee[1],oe=ee[2],re=ht(h(null),2),ie=re[0],ae=re[1],se=s(OE),le=!!b,ce=P(a,w,k,U({},"".concat(a,"-error"),"error"===oe)),ue=f((function(){var t={};return _E.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),_E.map((function(t){return e[t]}))),de=function(e,t){var n=ht(o.useState((function(){return String(HE+=1)})),1)[0],r=o.useContext(OE),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}(le,f((function(){return Y(Y({},ue),{},{src:G})}),[G,ue]));return o.createElement(o.Fragment,null,o.createElement("div",L({},E,{className:ce,onClick:le?function(e){var t=kE(e.target),n=t.left,o=t.top;se?se.onPreview(de,G,n,o):(ae({x:n,y:o}),J(!0)),null==x||x(e)}:x,style:Y({width:p,height:g},S)}),o.createElement("img",L({},ue,{className:P("".concat(a,"-img"),U({},"".concat(a,"-img-placeholder"),!0===u),y),style:Y({height:g},m),ref:te},ne,{width:p,height:g,onError:C})),"loading"===oe&&o.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},u),_&&le&&o.createElement("div",{className:P("".concat(a,"-mask"),z),style:{display:"none"===(null==m?void 0:m.display)?"none":void 0}},_)),!se&&le&&o.createElement(RE,L({"aria-hidden":!Z,visible:Z,prefixCls:c,onClose:function(){J(!1),ae(null)},mousePosition:ie,src:G,alt:n,imageInfo:{width:p,height:g},fallback:d,getContainer:R,icons:H,movable:B,scaleStep:F,minScale:V,maxScale:W,rootClassName:k,imageRender:K,imgCommonProps:ue,toolbarRender:q},X)))};WE.PreviewGroup=function(e){var t,n=e.previewPrefixCls,r=void 0===n?"rc-image-preview":n,i=e.children,a=e.icons,s=void 0===a?{}:a,l=e.items,c=e.preview,u=e.fallback,d="object"===A(c)?c:{},p=d.visible,f=d.onVisibleChange,g=d.getContainer,m=d.current,v=d.movable,b=d.minScale,y=d.maxScale,x=d.countRender,C=d.closeIcon,w=d.onChange,S=d.onTransform,k=d.toolbarRender,E=d.imageRender,O=Nt(d,zE),$=function(e){var t=ht(o.useState({}),2),n=t[0],r=t[1],i=o.useCallback((function(e,t){return r((function(n){return Y(Y({},n),{},U({},e,t))})),function(){r((function(t){var n=Y({},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(rt(_E)).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]}(l),N=ht($,3),M=N[0],I=N[1],P=N[2],D=ht(yi(0,{value:m}),2),T=D[0],j=D[1],R=ht(h(!1),2),_=R[0],z=R[1],B=(null===(t=M[T])||void 0===t?void 0:t.data)||{},H=B.src,F=Nt(B,BE),V=ht(yi(!!p,{value:p,onChange:function(e,t){null==f||f(e,t,T)}}),2),W=V[0],K=V[1],q=ht(h(null),2),X=q[0],G=q[1],Q=o.useCallback((function(e,t,n,o){var r=P?M.findIndex((function(e){return e.data.src===t})):M.findIndex((function(t){return t.id===e}));j(r<0?0:r),K(!0),G({x:n,y:o}),z(!0)}),[M,P]);o.useEffect((function(){W?_||j(0):z(!1)}),[W]);var Z=o.useMemo((function(){return{register:I,onPreview:Q}}),[I,Q]);return o.createElement(OE.Provider,{value:Z},i,o.createElement(RE,L({"aria-hidden":!W,movable:v,visible:W,prefixCls:r,closeIcon:C,onClose:function(){K(!1),G(null)},mousePosition:X,imgCommonProps:F,src:H,fallback:u,icons:s,minScale:b,maxScale:y,getContainer:g,current:T,count:M.length,countRender:x,onTransform:S,toolbarRender:k,imageRender:E,onChange:function(e,t){j(e),null==w||w(e,t)}},O)))},"production"!==process.env.NODE_ENV&&(WE.displayName="Image");var KE={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"},qE=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:KE}))},XE=o.forwardRef(qE);"production"!==process.env.NODE_ENV&&(XE.displayName="RotateLeftOutlined");var UE={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"},GE=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:UE}))},YE=o.forwardRef(GE);"production"!==process.env.NODE_ENV&&(YE.displayName="RotateRightOutlined");var QE={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"},ZE=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:QE}))},JE=o.forwardRef(ZE);"production"!==process.env.NODE_ENV&&(JE.displayName="SwapOutlined");var eO={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"},tO=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:eO}))},nO=o.forwardRef(tO);"production"!==process.env.NODE_ENV&&(nO.displayName="ZoomInOutlined");var oO={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"},rO=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:oO}))},iO=o.forwardRef(rO);"production"!==process.env.NODE_ENV&&(iO.displayName="ZoomOutOutlined");const aO=e=>({position:e||"absolute",inset:0}),sO=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 Vr("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Fi),{padding:`0 ${Xt(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},lO=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 Vr(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 ${Xt(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}}}}},cO=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,s=new Vr(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}}},uO=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({},aO()),{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({},aO()),{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()},"&":[lO(e),cO(e)]}]},dO=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({},sO(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},aO())}}},pO=e=>{const{previewCls:t}=e;return{[`${t}-root`]:jp(e,"zoom"),"&":up(e,!0)}};var fO=Ui("Image",(e=>{const t=`${e.componentCls}-preview`,n=Si(e,{previewCls:t,modalMaskBg:new Vr("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[dO(n),uO(n),_p(Si(n,{componentCls:t})),pO(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Vr(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Vr(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Vr(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),hO=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 gO={rotateLeft:o.createElement(XE,null),rotateRight:o.createElement(YE,null),zoomIn:o.createElement(nO,null),zoomOut:o.createElement(iO,null),close:o.createElement(Os,null),left:o.createElement(sy,null),right:o.createElement(Nv,null),flipX:o.createElement(JE,null),flipY:o.createElement(JE,{rotate:90})};var mO=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 vO=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:a,style:s}=e,l=mO(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=Vo,getPopupContainer:d,image:p}=o.useContext(ni),f=c("image",n),h=c(),g=u.Image||Vo.Image,m=Fs(f),[v,b,y]=fO(f,m),x=P(a,b,y,m),C=P(i,b,null==p?void 0:p.className),[w]=Qs("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=mO(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${f}-mask-info`},o.createElement(Ok,null),null==g?void 0:g.preview),icons:gO},a),{getContainer:null!=n?n:d,transitionName:yl(h,"zoom",t.transitionName),maskTransitionName:yl(h,"fade",t.maskTransitionName),zIndex:w,closeIcon:null!=i?i:null===(e=null==p?void 0:p.preview)||void 0===e?void 0:e.closeIcon})}),[r,g,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 v(o.createElement(WE,Object.assign({prefixCls:f,preview:S,rootClassName:x,className:C,style:k},l)))};vO.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,r=hO(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=o.useContext(ni),a=i("image",t),s=`${a}-preview`,l=i(),c=Fs(a),[u,d,p]=fO(a,c),[f]=Qs("ImagePreview","object"==typeof n?n.zIndex:void 0),h=o.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},o=P(d,p,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:yl(l,"zoom",t.transitionName),maskTransitionName:yl(l,"fade",t.maskTransitionName),rootClassName:o,zIndex:f})}),[n]);return u(o.createElement(WE.PreviewGroup,Object.assign({preview:h,previewPrefixCls:s,icons:gO},r)))},"production"!==process.env.NODE_ENV&&(vO.displayName="Image");const bO=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}}}},yO=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:Xt(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}}}}},bO(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Xt(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 xO=Ui("Layout",(e=>[yO(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"]]}),CO=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 wO(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 SO=o.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,s=CO(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=o.useContext(ni),c=l("layout",n),[u,d,p]=xO(c),f=r?`${c}-${r}`:c;return u(o.createElement(a,Object.assign({className:P(n||f,i,d,p),ref:t},s)))})),kO=o.forwardRef(((e,t)=>{const{direction:n}=o.useContext(ni),[r,i]=o.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:p}=e,f=et(CO(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,layout:g}=o.useContext(ni),m=h("layout",a),v=function(e,t,n){return"boolean"==typeof n?n:!!e.length||_(t).some((e=>e.type===fy))}(r,c,u),[b,y,x]=xO(m),C=P(m,{[`${m}-has-sider`]:v,[`${m}-rtl`]:"rtl"===n},null==g?void 0:g.className,s,l,y,x),w=o.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(rt(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return b(o.createElement(ly.Provider,{value:w},o.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},null==g?void 0:g.style),p)},f),c)))})),EO=wO({tagName:"div",displayName:"Layout"})(kO),OO=wO({suffixCls:"header",tagName:"header",displayName:"Header"})(SO),$O=wO({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(SO),NO=wO({suffixCls:"content",tagName:"main",displayName:"Content"})(SO),MO=EO;MO.Header=OO,MO.Footer=$O,MO.Content=NO,MO.Sider=fy,MO._InternalSiderContext=dy;const IO=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const o=n[t];void 0!==o&&(e[t]=o)}))}return e};var PO={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"},LO=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:PO}))},AO=o.forwardRef(LO);"production"!==process.env.NODE_ENV&&(AO.displayName="DoubleLeftOutlined");var DO={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"},TO=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:DO}))},jO=o.forwardRef(TO);"production"!==process.env.NODE_ENV&&(jO.displayName="DoubleRightOutlined");var RO={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:"页码"},_O=["10","20","50","100"],zO=function(e){var t=e.pageSizeOptions,n=void 0===t?_O:t,o=e.locale,i=e.changeSize,a=e.pageSize,s=e.goButton,l=e.quickGo,c=e.rootPrefixCls,u=e.selectComponentClass,d=e.selectPrefixCls,p=e.disabled,f=e.buildOptionText,h=ht(r.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(o.items_per_page)},y=function(e){""!==g&&(e.keyCode!==Vs.ENTER&&"click"!==e.type||(m(""),null==l||l(v())))},x="".concat(c,"-options");if(!i&&!l)return null;var C=null,w=null,S=null;if(i&&u){var k=(n.some((function(e){return e.toString()===a.toString()}))?n:n.concat([a.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return r.createElement(u.Option,{key:t,value:e.toString()},b(e))}));C=r.createElement(u,{disabled:p,prefixCls:d,showSearch:!1,className:"".concat(x,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||n[0]).toString(),onChange:function(e){null==i||i(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":o.page_size,defaultOpen:!1},k)}return l&&(s&&(S="boolean"==typeof s?r.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:p,className:"".concat(x,"-quick-jumper-button")},o.jump_to_confirm):r.createElement("span",{onClick:y,onKeyUp:y},s)),w=r.createElement("div",{className:"".concat(x,"-quick-jumper")},o.jump_to,r.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":o.page}),o.page,S)),r.createElement("li",{className:x},C,w)};"production"!==process.env.NODE_ENV&&(zO.displayName="Options");var BO=function(e){var t,n=e.rootPrefixCls,o=e.page,i=e.active,a=e.className,s=e.showTitle,l=e.onClick,c=e.onKeyPress,u=e.itemRender,d="".concat(n,"-item"),p=P(d,"".concat(d,"-").concat(o),(U(t={},"".concat(d,"-active"),i),U(t,"".concat(d,"-disabled"),!o),t),a),f=u(o,"page",r.createElement("a",{rel:"nofollow"},o));return f?r.createElement("li",{title:s?String(o):null,className:p,onClick:function(){l(o)},onKeyDown:function(e){c(e,l,o)},tabIndex:0},f):null};"production"!==process.env.NODE_ENV&&(BO.displayName="Pager");var HO=function(e,t,n){return n};function FO(){}function VO(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function WO(e,t,n){var o=void 0===e?t:e;return Math.floor((n-1)/o)+1}var KO=function(e){var t,n=e.prefixCls,o=void 0===n?"rc-pagination":n,i=e.selectPrefixCls,a=void 0===i?"rc-select":i,s=e.className,l=e.selectComponentClass,c=e.current,u=e.defaultCurrent,p=void 0===u?1:u,f=e.total,h=void 0===f?0:f,g=e.pageSize,m=e.defaultPageSize,v=void 0===m?10:m,b=e.onChange,y=void 0===b?FO:b,x=e.hideOnSinglePage,C=e.align,w=e.showPrevNextJumpers,S=void 0===w||w,k=e.showQuickJumper,E=e.showLessItems,O=e.showTitle,$=void 0===O||O,N=e.onShowSizeChange,M=void 0===N?FO:N,I=e.locale,D=void 0===I?RO:I,T=e.style,j=e.totalBoundaryShowSizeChanger,R=void 0===j?50:j,_=e.disabled,z=e.simple,B=e.showTotal,H=e.showSizeChanger,F=e.pageSizeOptions,V=e.itemRender,W=void 0===V?HO:V,q=e.jumpPrevIcon,X=e.jumpNextIcon,G=e.prevIcon,Q=e.nextIcon,Z=r.useRef(null),J=ht(yi(10,{value:g,defaultValue:v}),2),ee=J[0],te=J[1],ne=ht(yi(1,{value:c,defaultValue:p,postState:function(e){return Math.max(1,Math.min(e,WO(void 0,ee,h)))}}),2),oe=ne[0],re=ne[1],ie=ht(r.useState(oe),2),ae=ie[0],se=ie[1];d((function(){se(oe)}),[oe]);var le=y!==FO,ce="current"in e;"production"!==process.env.NODE_ENV&&K(!ce||le,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ue=Math.max(1,oe-(E?3:5)),de=Math.min(WO(void 0,ee,h),oe+(E?3:5));function pe(t,n){var i=t||r.createElement("button",{type:"button","aria-label":n,className:"".concat(o,"-item-link")});return"function"==typeof t&&(i=r.createElement(t,Y({},e))),i}function fe(e){var t=e.target.value,n=WO(void 0,ee,h);return""===t?t:Number.isNaN(Number(t))?ae:t>=n?n:Number(t)}var he=h>ee&&k;function ge(e){var t=fe(e);switch(t!==ae&&se(t),e.keyCode){case Vs.ENTER:me(t);break;case Vs.UP:me(t-1);break;case Vs.DOWN:me(t+1)}}function me(e){if(function(e){return VO(e)&&e!==oe&&VO(h)&&h>0}(e)&&!_){var t=WO(void 0,ee,h),n=e;return e>t?n=t:e<1&&(n=1),n!==ae&&se(n),re(n),null==y||y(n,ee),n}return oe}var ve=oe>1,be=oe<WO(void 0,ee,h),ye=null!=H?H:h>R;function xe(){ve&&me(oe-1)}function Ce(){be&&me(oe+1)}function we(){me(ue)}function Se(){me(de)}function ke(e,t){if("Enter"===e.key||e.charCode===Vs.ENTER||e.keyCode===Vs.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 Ee(e){"click"!==e.type&&e.keyCode!==Vs.ENTER||me(ae)}var Oe=null,$e=Ts(e,{aria:!0,data:!0}),Ne=B&&r.createElement("li",{className:"".concat(o,"-total-text")},B(h,[0===h?0:(oe-1)*ee+1,oe*ee>h?h:oe*ee])),Me=null,Ie=WO(void 0,ee,h);if(x&&h<=ee)return null;var Pe=[],Le={rootPrefixCls:o,onClick:me,onKeyPress:ke,showTitle:$,itemRender:W,page:-1},Ae=oe-1>0?oe-1:0,De=oe+1<Ie?oe+1:Ie,Te=k&&k.goButton,je="object"===A(z)?z.readOnly:!z,Re=Te,_e=null;z&&(Te&&(Re="boolean"==typeof Te?r.createElement("button",{type:"button",onClick:Ee,onKeyUp:Ee},D.jump_to_confirm):r.createElement("span",{onClick:Ee,onKeyUp:Ee},Te),Re=r.createElement("li",{title:$?"".concat(D.jump_to).concat(oe,"/").concat(Ie):null,className:"".concat(o,"-simple-pager")},Re)),_e=r.createElement("li",{title:$?"".concat(oe,"/").concat(Ie):null,className:"".concat(o,"-simple-pager")},je?ae:r.createElement("input",{type:"text",value:ae,disabled:_,onKeyDown:function(e){e.keyCode!==Vs.UP&&e.keyCode!==Vs.DOWN||e.preventDefault()},onKeyUp:ge,onChange:ge,onBlur:function(e){me(fe(e))},size:3}),r.createElement("span",{className:"".concat(o,"-slash")},"/"),Ie));var ze=E?1:2;if(Ie<=3+2*ze){Ie||Pe.push(r.createElement(BO,L({},Le,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var Be=1;Be<=Ie;Be+=1)Pe.push(r.createElement(BO,L({},Le,{key:Be,page:Be,active:oe===Be})))}else{var He=E?D.prev_3:D.prev_5,Fe=E?D.next_3:D.next_5,Ve=W(ue,"jump-prev",pe(q,"prev page")),We=W(de,"jump-next",pe(X,"next page"));S&&(Oe=Ve?r.createElement("li",{title:$?He:null,key:"prev",onClick:we,tabIndex:0,onKeyDown:function(e){ke(e,we)},className:P("".concat(o,"-jump-prev"),U({},"".concat(o,"-jump-prev-custom-icon"),!!q))},Ve):null,Me=We?r.createElement("li",{title:$?Fe:null,key:"next",onClick:Se,tabIndex:0,onKeyDown:function(e){ke(e,Se)},className:P("".concat(o,"-jump-next"),U({},"".concat(o,"-jump-next-custom-icon"),!!X))},We):null);var Ke=Math.max(1,oe-ze),qe=Math.min(oe+ze,Ie);oe-1<=ze&&(qe=1+2*ze),Ie-oe<=ze&&(Ke=Ie-2*ze);for(var Xe=Ke;Xe<=qe;Xe+=1)Pe.push(r.createElement(BO,L({},Le,{key:Xe,page:Xe,active:oe===Xe})));if(oe-1>=2*ze&&3!==oe&&(Pe[0]=r.cloneElement(Pe[0],{className:P("".concat(o,"-item-after-jump-prev"),Pe[0].props.className)}),Pe.unshift(Oe)),Ie-oe>=2*ze&&oe!==Ie-2){var Ue=Pe[Pe.length-1];Pe[Pe.length-1]=r.cloneElement(Ue,{className:P("".concat(o,"-item-before-jump-next"),Ue.props.className)}),Pe.push(Me)}1!==Ke&&Pe.unshift(r.createElement(BO,L({},Le,{key:1,page:1}))),qe!==Ie&&Pe.push(r.createElement(BO,L({},Le,{key:Ie,page:Ie})))}var Ge=function(e){var t=W(e,"prev",pe(G,"prev page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!ve}):t}(Ae);if(Ge){var Ye=!ve||!Ie;Ge=r.createElement("li",{title:$?D.prev_page:null,onClick:xe,tabIndex:Ye?null:0,onKeyDown:function(e){ke(e,xe)},className:P("".concat(o,"-prev"),U({},"".concat(o,"-disabled"),Ye)),"aria-disabled":Ye},Ge)}var Qe,Ze,Je=function(e){var t=W(e,"next",pe(Q,"next page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!be}):t}(De);Je&&(z?(Qe=!be,Ze=ve?0:null):Ze=(Qe=!be||!Ie)?null:0,Je=r.createElement("li",{title:$?D.next_page:null,onClick:Ce,tabIndex:Ze,onKeyDown:function(e){ke(e,Ce)},className:P("".concat(o,"-next"),U({},"".concat(o,"-disabled"),Qe)),"aria-disabled":Qe},Je));var et=P(o,s,(U(t={},"".concat(o,"-start"),"start"===C),U(t,"".concat(o,"-center"),"center"===C),U(t,"".concat(o,"-end"),"end"===C),U(t,"".concat(o,"-simple"),z),U(t,"".concat(o,"-disabled"),_),t));return r.createElement("ul",L({className:et,style:T,ref:Z},$e),Ne,Ge,z?_e:Pe,Je,r.createElement(zO,{locale:D,rootPrefixCls:o,disabled:_,selectComponentClass:l,selectPrefixCls:a,changeSize:ye?function(e){var t=WO(e,ee,h),n=oe>t&&0!==t?t:oe;te(e),se(n),null==M||M(oe,e),re(n),null==y||y(n,e)}:null,pageSize:ee,pageSizeOptions:F,quickGo:he?me:null,goButton:Re}))};"production"!==process.env.NODE_ENV&&(KO.displayName="Pagination");const qO=e=>o.createElement(sm,Object.assign({},e,{showSearch:!0,size:"small"})),XO=e=>o.createElement(sm,Object.assign({},e,{showSearch:!0,size:"middle"}));qO.Option=sm.Option,XO.Option=sm.Option;const UO=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"}}}}}},GO=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Xt(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Xt(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:Xt(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:Xt(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Xt(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Xt(e.itemSizeSM),input:Object.assign(Object.assign({},zx(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},YO=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:Xt(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:Xt(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Xt(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Xt(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:`${Xt(e.inputOutlineOffset)} 0 ${Xt(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},QO=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:Xt(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:`${Xt(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:Xt(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Bx(e)),$x(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Ox(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},ZO=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Xt(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Xt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Xt(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}}}}},JO=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vi(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:Xt(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ZO(e)),QO(e)),YO(e)),GO(e)),UO(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"}}},e$=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},qi(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ki(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Ki(e))}}}},t$=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},kx(e)),n$=e=>Si(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"},Sx(e));var o$=Ui("Pagination",(e=>{const t=n$(e);return[JO(t),e$(t)]}),t$);const r$=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:`${Xt(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 i$=Yi(["Pagination","bordered"],(e=>{const t=n$(e);return[r$(t)]}),t$),a$=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 s$=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,f=a$(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:h}=pm(d),[,g]=Bi(),{getPrefixCls:m,direction:v,pagination:b={}}=o.useContext(ni),y=m("pagination",n),[x,C,w]=o$(y),S=null!=p?p:b.showSizeChanger,k=o.useMemo((()=>{const e=o.createElement("span",{className:`${y}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?o.createElement(Nv,null):o.createElement(sy,null)),nextIcon:o.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?o.createElement(sy,null):o.createElement(Nv,null)),jumpPrevIcon:o.createElement("a",{className:`${y}-item-link`},o.createElement("div",{className:`${y}-item-container`},"rtl"===v?o.createElement(jO,{className:`${y}-item-link-icon`}):o.createElement(AO,{className:`${y}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${y}-item-link`},o.createElement("div",{className:`${y}-item-container`},"rtl"===v?o.createElement(AO,{className:`${y}-item-link-icon`}):o.createElement(jO,{className:`${y}-item-link-icon`}),e))}}),[v,y]),[E]=Go("Pagination",_o),O=Object.assign(Object.assign({},E),c),$=Il(l),N="small"===$||!(!h||$||!d),M=m("select",r),I=P({[`${y}-${t}`]:!!t,[`${y}-mini`]:N,[`${y}-rtl`]:"rtl"===v,[`${y}-bordered`]:g.wireframe},null==b?void 0:b.className,i,a,C,w),L=Object.assign(Object.assign({},null==b?void 0:b.style),s);return x(o.createElement(o.Fragment,null,g.wireframe&&o.createElement(i$,{prefixCls:y}),o.createElement(KO,Object.assign({},k,f,{style:L,prefixCls:y,selectPrefixCls:M,className:I,selectComponentClass:u||(N?qO:XO),locale:O,showSizeChanger:S}))))};"production"!==process.env.NODE_ENV&&(s$.displayName="Pagination");const l$=80*Math.PI,c$=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return o.createElement("circle",{className:P(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},u$=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[s,l]=o.useState(!1);Jt((()=>{0!==t&&l(!0)}),[0!==t]);const c=Math.max(Math.min(t,100),0);if(!s)return null;const u={strokeDashoffset:""+l$/4,strokeDasharray:`${l$*c/100} ${l$*(100-c)/100}`};return o.createElement("span",{className:P(i,`${r}-progress`,c<=0&&a)},o.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},o.createElement(c$,{dotClassName:r,hasCircleCls:!0}),o.createElement(c$,{dotClassName:r,style:u})))};function d$(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return o.createElement(o.Fragment,null,o.createElement("span",{className:P(i,n>0&&a)},o.createElement("span",{className:P(r,`${t}-dot-spin`)},[1,2,3,4].map((e=>o.createElement("i",{className:`${t}-dot-item`,key:e}))))),o.createElement(u$,{prefixCls:t,percent:n}))}function p$(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&o.isValidElement(n)?_s(n,{className:P(n.props.className,i),percent:r}):o.createElement(d$,{prefixCls:t,percent:r})}const f$=new Co("antSpinMove",{to:{opacity:1}}),h$=new Co("antRotate",{to:{transform:"rotate(405deg)"}}),g$=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Vi(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:f$,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:h$,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}};var m$=Ui("Spin",(e=>{const t=Si(e,{spinDotDefault:e.colorTextDescription});return[g$(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));const v$=[[30,.05],[70,.03],[96,.01]];var b$=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 y$;const x$=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:s,size:l="default",tip:c,wrapperClassName:u,style:d,children:p,fullscreen:f=!1,indicator:h,percent:g}=e,m=b$(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:b,spin:y}=o.useContext(ni),x=v("spin",n),[C,w,S]=m$(x),[k,E]=o.useState((()=>r&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(r,i))),O=function(e,t){const[n,r]=o.useState(0),i=o.useRef(),a="auto"===t;return o.useEffect((()=>(a&&e&&(r(0),i.current=setInterval((()=>{r((e=>{const t=100-e;for(let n=0;n<v$.length;n+=1){const[o,r]=v$[n];if(e<=o)return e+t*r}return e}))}),200)),()=>{clearInterval(i.current)})),[a,e]),a?n:t}(k,g);o.useEffect((()=>{if(r){const e=nw(i,(()=>{E(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}E(!1)}),[i,r]);const $=o.useMemo((()=>void 0!==p&&!f),[p,f]);if("production"!==process.env.NODE_ENV){const e=To("Spin");"production"!==process.env.NODE_ENV&&e(!c||$||f,"usage","`tip` only work in nest or fullscreen pattern.")}const N=P(x,null==y?void 0:y.className,{[`${x}-sm`]:"small"===l,[`${x}-lg`]:"large"===l,[`${x}-spinning`]:k,[`${x}-show-text`]:!!c,[`${x}-rtl`]:"rtl"===b},a,!f&&s,w,S),M=P(`${x}-container`,{[`${x}-blur`]:k}),I=null!==(t=null!=h?h:null==y?void 0:y.indicator)&&void 0!==t?t:y$,L=Object.assign(Object.assign({},null==y?void 0:y.style),d),A=o.createElement("div",Object.assign({},m,{style:L,className:N,"aria-live":"polite","aria-busy":k}),o.createElement(p$,{prefixCls:x,indicator:I,percent:O}),c&&($||f)?o.createElement("div",{className:`${x}-text`},c):null);return C($?o.createElement("div",Object.assign({},m,{className:P(`${x}-nested-loading`,u,w,S)}),k&&o.createElement("div",{key:"loading"},A),o.createElement("div",{className:M,key:"container"},p)):f?o.createElement("div",{className:P(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:k},s,w,S)},A):A)};x$.setDefaultIndicator=e=>{y$=e},"production"!==process.env.NODE_ENV&&(x$.displayName="Spin");const C$=r.createContext({});C$.Consumer;var w$=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 S$=r.forwardRef(((e,t)=>{const{prefixCls:n,children:o,actions:i,extra:a,styles:l,className:c,classNames:u,colStyle:d}=e,p=w$(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:h}=s(C$),{getPrefixCls:m,list:v}=s(ni),b=e=>{var t,n;return P(null===(n=null===(t=null==v?void 0:v.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null==u?void 0:u[e])},y=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null==v?void 0:v.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null==l?void 0:l[e])},x=m("list",n),C=i&&i.length>0&&r.createElement("ul",{className:P(`${x}-item-action`,b("actions")),key:"actions",style:y("actions")},i.map(((e,t)=>r.createElement("li",{key:`${x}-item-action-${t}`},e,t!==i.length-1&&r.createElement("em",{className:`${x}-item-action-split`}))))),w=f?"div":"li",S=r.createElement(w,Object.assign({},p,f?{}:{ref:t},{className:P(`${x}-item`,{[`${x}-item-no-flex`]:!("vertical"===h?a:!(()=>{let e=!1;return g.forEach(o,(t=>{"string"==typeof t&&(e=!0)})),e&&g.count(o)>1})())},c)}),"vertical"===h&&a?[r.createElement("div",{className:`${x}-item-main`,key:"content"},o,C),r.createElement("div",{className:P(`${x}-item-extra`,b("extra")),key:"extra",style:y("extra")},a)]:[o,C,_s(a,{key:"extra"})]);return f?r.createElement(AS,{ref:t,flex:1,style:d},S):S}));S$.Meta=e=>{var{prefixCls:t,className:n,avatar:o,title:i,description:a}=e,l=w$(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:c}=s(ni),u=c("list",t),d=P(`${u}-item-meta`,n),p=r.createElement("div",{className:`${u}-item-meta-content`},i&&r.createElement("h4",{className:`${u}-item-meta-title`},i),a&&r.createElement("div",{className:`${u}-item-meta-description`},a));return r.createElement("div",Object.assign({},l,{className:d}),o&&r.createElement("div",{className:`${u}-item-meta-avatar`},o),(i||a)&&p)};const k$=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,itemPaddingSM:i,itemPaddingLG:a,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${Xt(r)} ${Xt(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},E$=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${o}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Xt(a)}`}}}}}},O$=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:a,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:d,paddingXS:p,margin:f,colorText:h,colorTextDescription:g,motionDurationSlow:m,lineWidth:v,headerBg:b,footerBg:y,emptyTextPadding:x,metaMarginBottom:C,avatarMarginRight:w,titleMarginBottom:S,descriptionFontSize:k}=e;return{[t]:Object.assign(Object.assign({},Vi(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:w},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${Xt(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${m}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:k,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Xt(p)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Xt(s)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:C,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:S,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Xt(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}};var $$=Ui("List",(e=>{const t=Si(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[O$(t),k$(t),E$(t)]}),(e=>({contentWidth:220,itemPadding:`${Xt(e.paddingContentVertical)} 0`,itemPaddingSM:`${Xt(e.paddingContentVerticalSM)} ${Xt(e.paddingContentHorizontal)}`,itemPaddingLG:`${Xt(e.paddingContentVerticalLG)} ${Xt(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}))),N$=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 M$(e){var{pagination:t=!1,prefixCls:n,bordered:r=!1,split:i=!0,className:a,rootClassName:s,style:l,children:c,itemLayout:u,loadMore:d,grid:p,dataSource:f=[],size:h,header:g,footer:m,loading:v=!1,rowKey:b,renderItem:y,locale:x}=e,C=N$(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const w=t&&"object"==typeof t?t:{},[S,k]=o.useState(w.defaultCurrent||1),[E,O]=o.useState(w.defaultPageSize||10),{getPrefixCls:$,renderEmpty:N,direction:M,list:I}=o.useContext(ni),L=e=>(n,o)=>{var r;k(n),O(o),t&&(null===(r=null==t?void 0:t[e])||void 0===r||r.call(t,n,o))},A=L("onChange"),D=L("onShowSizeChange"),T=$("list",n),[j,R,_]=$$(T);let z=v;"boolean"==typeof z&&(z={spinning:z});const B=!!(null==z?void 0:z.spinning);let H="";switch(Il(h)){case"large":H="lg";break;case"small":H="sm"}const F=P(T,{[`${T}-vertical`]:"vertical"===u,[`${T}-${H}`]:H,[`${T}-split`]:i,[`${T}-bordered`]:r,[`${T}-loading`]:B,[`${T}-grid`]:!!p,[`${T}-something-after-last-item`]:!!(d||t||m),[`${T}-rtl`]:"rtl"===M},null==I?void 0:I.className,a,s,R,_),V=IO({current:1,total:0},{total:f.length,current:S,pageSize:E},t||{}),W=Math.ceil(V.total/V.pageSize);V.current>W&&(V.current=W);const K=t&&o.createElement("div",{className:P(`${T}-pagination`)},o.createElement(s$,Object.assign({align:"end"},V,{onChange:A,onShowSizeChange:D})));let q=rt(f);t&&f.length>(V.current-1)*V.pageSize&&(q=rt(f).splice((V.current-1)*V.pageSize,V.pageSize));const X=pm(Object.keys(p||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),U=o.useMemo((()=>{for(let e=0;e<cm.length;e+=1){const t=cm[e];if(X[t])return t}}),[X]),G=o.useMemo((()=>{if(!p)return;const e=U&&p[U]?p[U]:p.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0}),[JSON.stringify(p),U]);let Y=B&&o.createElement("div",{style:{minHeight:53}});if(q.length>0){const e=q.map(((e,t)=>((e,t)=>{if(!y)return null;let n;return n="function"==typeof b?b(e):b?e[b]:e.key,n||(n=`list-item-${t}`),o.createElement(o.Fragment,{key:n},y(e,t))})(e,t)));Y=p?o.createElement(jS,{gutter:p.gutter},o.Children.map(e,(e=>o.createElement("div",{key:null==e?void 0:e.key,style:G},e)))):o.createElement("ul",{className:`${T}-items`},e)}else c||B||(Y=o.createElement("div",{className:`${T}-empty-text`},(null==x?void 0:x.emptyText)||(null==N?void 0:N("List"))||o.createElement(Eg,{componentName:"List"})));const Q=V.position||"bottom",Z=o.useMemo((()=>({grid:p,itemLayout:u})),[JSON.stringify(p),u]);return j(o.createElement(C$.Provider,{value:Z},o.createElement("div",Object.assign({style:Object.assign(Object.assign({},null==I?void 0:I.style),l),className:F},C),("top"===Q||"both"===Q)&&K,g&&o.createElement("div",{className:`${T}-header`},g),o.createElement(x$,Object.assign({},z),Y,c),m&&o.createElement("div",{className:`${T}-footer`},m),d||("bottom"===Q||"both"===Q)&&K)))}"production"!==process.env.NODE_ENV&&(M$.displayName="List"),M$.Item=S$;var 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};var P$=mf((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:s,children:l,footer:c}=e,u=I$(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=o.useContext(ni),p=d(),f=t||d("modal"),h=Fs(p),[g,m,v]=Vp(f,h),b=`${f}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:o.createElement(Qp,Object.assign({},e,{prefixCls:f,confirmPrefixCls:b,rootPrefixCls:p,content:l}))}:{closable:null==i||i,title:s,footer:null!==c&&o.createElement(op,Object.assign({},e)),children:l},g(o.createElement(au,Object.assign({prefixCls:f,className:P(m,`${f}-pure-panel`,a&&b,a&&`${b}-${a}`,n,v,h)},u,{closeIcon:np(f,r),closable:i},y)))}));function L$(e){return rf(af(e))}const A$=Xp;A$.useModal=function(){const e=o.useRef(null),[t,n]=o.useState([]);o.useEffect((()=>{if(t.length){rt(t).forEach((e=>{e()})),n([])}}),[t]);const r=o.useCallback((t=>function(r){var i;hf+=1;const a=o.createRef();let s;const l=new Promise((e=>{s=e}));let c,u=!1;const d=o.createElement(ff,{key:`modal-${hf}`,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&&ef.push(c);const p={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(rt(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(rt(e),[t])))},then:e=>(u=!0,l.then(e))};return p}),[]);return[o.useMemo((()=>({info:r(sf),success:r(lf),error:r(cf),warning:r(af),confirm:r(uf)})),[]),o.createElement(gf,{key:"modal-holder",ref:e})]},A$.info=function(e){return rf(sf(e))},A$.success=function(e){return rf(lf(e))},A$.error=function(e){return rf(cf(e))},A$.warning=L$,A$.warn=L$,A$.confirm=function(e){return rf(uf(e))},A$.destroyAll=function(){for(;ef.length;){const e=ef.pop();e&&e()}},A$.config=function(e){let{rootPrefixCls:t}=e;"production"!==process.env.NODE_ENV&&jo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),tf=t},A$._InternalPanelDoNotUseOrYouWillBeFired=P$,"production"!==process.env.NODE_ENV&&(A$.displayName="Modal");var D$={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"};process.env.NODE_ENV;var T$=0,j$="test"!==process.env.NODE_ENV&&mt();var R$=function(e){var t=ht(o.useState(),2),n=t[0],r=t[1];return o.useEffect((function(){var e;r("rc_progress_".concat((j$?(e=T$,T$+=1):e="TEST_OR_SSR",e)))}),[]),e||n},_$=function(e){var t=e.bg,n=e.children;return o.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function z$(e,t){return Object.keys(e).map((function(n){var o=parseFloat(n),r="".concat(Math.floor(o*t),"%");return"".concat(e[n]," ").concat(r)}))}var B$=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,s=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,p=e.gapDegree,f=r&&"object"===A(r),h=f?"#FFF":void 0,g=d/2,m=o.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:g,cy:g,stroke:h,strokeLinecap:c,strokeWidth:u,opacity:0===l?0:1,style:s,ref:t});if(!f)return m;var v="".concat(i,"-conic"),b=p?"".concat(180+p/2,"deg"):"0deg",y=z$(r,(360-p)/360),x=z$(r,1),C="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),w="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(x.join(", "),")");return o.createElement(o.Fragment,null,o.createElement("mask",{id:v},m),o.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(v,")")},o.createElement(_$,{bg:w},o.createElement(_$,{bg:C}))))}));"production"!==process.env.NODE_ENV&&(B$.displayName="PtgCircle");var H$=100,F$=function(e,t,n,o,r,i,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),p=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-o)/100*t;"round"===l&&100!==o&&(f+=c/2)>=t&&(f=t-.01);return{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+u,transform:"rotate(".concat(r+d+p,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},V$=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function W$(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var K$=function(e){var t,n,r,i,a,s=Y(Y({},D$),e),l=s.id,u=s.prefixCls,p=s.steps,f=s.strokeWidth,h=s.trailWidth,g=s.gapDegree,m=void 0===g?0:g,v=s.gapPosition,b=s.trailColor,y=s.strokeLinecap,x=s.style,C=s.className,w=s.strokeColor,S=s.percent,k=Nt(s,V$),E=R$(l),O="".concat(E,"-gradient"),$=50-f/2,N=2*Math.PI*$,M=m>0?90+m/2:-90,I=N*((360-m)/360),D="object"===A(p)?p:{count:p,gap:2},T=D.count,j=D.gap,R=W$(S),_=W$(w),z=_.find((function(e){return e&&"object"===A(e)})),B=z&&"object"===A(z)?"butt":y,H=F$(N,I,0,100,M,m,v,b,B,f),F=(t=c([]),n=c(null),d((function(){var e=Date.now(),o=!1;t.current.forEach((function(t){if(t){o=!0;var r=t.style;r.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(r.transitionDuration="0s, 0s")}})),o&&(n.current=Date.now())})),t.current);return o.createElement("svg",L({className:P("".concat(u,"-circle"),C),viewBox:"0 0 ".concat(H$," ").concat(H$),style:x,id:l,role:"presentation"},k),!T&&o.createElement("circle",{className:"".concat(u,"-circle-trail"),r:$,cx:50,cy:50,stroke:b,strokeLinecap:B,strokeWidth:h||f,style:H}),T?(r=Math.round(T*(R[0]/100)),i=100/T,a=0,new Array(T).fill(null).map((function(e,t){var n=t<=r-1?_[0]:b,s=n&&"object"===A(n)?"url(#".concat(O,")"):void 0,l=F$(N,I,a,i,M,m,v,n,"butt",f,j);return a+=100*(I-l.strokeDashoffset+j)/I,o.createElement("circle",{key:t,className:"".concat(u,"-circle-path"),r:$,cx:50,cy:50,stroke:s,strokeWidth:f,opacity:1,style:l,ref:function(e){F[t]=e}})}))):function(){var e=0;return R.map((function(t,n){var r=_[n]||_[_.length-1],i=F$(N,I,e,t,M,m,v,r,B,f);return e+=t,o.createElement(B$,{key:n,color:r,ptg:t,radius:$,prefixCls:u,gradientId:O,style:i,strokeLinecap:B,strokeWidth:f,gapDegree:m,ref:function(e){F[n]=e},size:H$})})).reverse()}())};function q$(e){return!e||e<0?0:e>100?100:e}function X$(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}"production"!==process.env.NODE_ENV&&(K$.displayName="Circle");const U$=(e,t,n)=>{var o,r,i,a;let s=-1,l=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=o?o:8):"number"==typeof e?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?l=t||("small"===e?6:8):"number"==typeof e?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:Array.isArray(e)&&(s=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,l=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[s,l]},G$=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:s=120,type:l,children:c,success:u,size:d=s,steps:p}=e,[f,h]=U$(d,"circle");let{strokeWidth:g}=e;void 0===g&&(g=Math.max((e=>3/e*100)(f),6));const m={width:f,height:h,fontSize:.15*f+6},v=o.useMemo((()=>a||0===a?a:"dashboard"===l?75:void 0),[a,l]),b=(e=>{let{percent:t,success:n,successPercent:o}=e;const r=q$(X$({success:n,successPercent:o}));return[r,q$(q$(t)-r)]})(e),y=i||"dashboard"===l&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(e.strokeColor),C=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||lr.green,n||null]})({success:u,strokeColor:e.strokeColor}),w=P(`${t}-inner`,{[`${t}-circle-gradient`]:x}),S=o.createElement(K$,{steps:p,percent:p?b[1]:b,strokeWidth:g,trailWidth:g,strokeColor:p?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:y}),k=f<=20,E=o.createElement("div",{className:w,style:m},S,!k&&c);return k?o.createElement(Xm,{title:c},E):E},Y$="--progress-line-stroke-color",Q$="--progress-percent",Z$=e=>{const t=e?"100%":"-100%";return new Co(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},J$=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Vi(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Y$})`]},height:"100%",width:`calc(1 / var(${Q$}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Xt(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Z$(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Z$(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},eN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},tN=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},nN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}};var oN=Ui("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Si(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[J$(n),eN(n),tN(n),nN(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}))),rN=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 iN=(e,t)=>{const{from:n=lr.blue,to:o=lr.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=rN(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${r}, ${(e=>{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i)})`;return{background:e,[Y$]:e}}const a=`linear-gradient(${r}, ${n}, ${o})`;return{background:a,[Y$]:a}},aN=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:s,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:p}=e,{align:f,type:h}=d,g=s&&"string"!=typeof s?iN(s,n):{[Y$]:s,background:s},m="square"===l||"butt"===l?0:void 0,v=null!=i?i:[-1,a||("small"===i?6:8)],[b,y]=U$(v,"line",{strokeWidth:a});if("production"!==process.env.NODE_ENV){To("Progress").deprecated(!("strokeWidth"in e),"strokeWidth","size")}const x={backgroundColor:u||void 0,borderRadius:m},C=Object.assign(Object.assign({width:`${q$(r)}%`,height:y,borderRadius:m},g),{[Q$]:q$(r)/100}),w=X$(e),S={width:`${q$(w)}%`,height:y,borderRadius:m,backgroundColor:null==p?void 0:p.strokeColor},k={width:b<0?"100%":b},E=o.createElement("div",{className:`${t}-inner`,style:x},o.createElement("div",{className:P(`${t}-bg`,`${t}-bg-${h}`),style:C},"inner"===h&&c),void 0!==w&&o.createElement("div",{className:`${t}-success-bg`,style:S})),O="outer"===h&&"start"===f,$="outer"===h&&"end"===f;return"outer"===h&&"center"===f?o.createElement("div",{className:`${t}-layout-bottom`},E,c):o.createElement("div",{className:`${t}-outer`,style:k},O&&c,E,$&&c)},sN=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=Math.round(n*(r/100)),d=null!=t?t:["small"===t?2:14,i],[p,f]=U$(d,"step",{steps:n,strokeWidth:i}),h=p/n,g=new Array(n);for(let e=0;e<n;e++){const t=Array.isArray(a)?a[e]:a;g[e]=o.createElement("div",{key:e,className:P(`${l}-steps-item`,{[`${l}-steps-item-active`]:e<=u-1}),style:{backgroundColor:e<=u-1?t:s,width:h,height:f}})}return o.createElement("div",{className:`${l}-steps-outer`},g,c)};var lN=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 cN=["normal","exception","active","success"],uN=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:s,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:p,format:f,style:h,percentPosition:g={}}=e,m=lN(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:b="outer"}=g,y=Array.isArray(s)?s[0]:s,x="string"==typeof s||Array.isArray(s)?s:void 0,C=o.useMemo((()=>{if(y){const e="string"==typeof y?y:Object.values(y)[0];return new Vr(e).isLight()}return!1}),[s]),w=o.useMemo((()=>{var t,n;const o=X$(e);return parseInt(void 0!==o?null===(t=null!=o?o:0)||void 0===t?void 0:t.toString():null===(n=null!=l?l:0)||void 0===n?void 0:n.toString(),10)}),[l,e.success,e.successPercent]),S=o.useMemo((()=>!cN.includes(p)&&w>=100?"success":p||"normal"),[p,w]),{getPrefixCls:k,direction:E,progress:O}=o.useContext(ni),$=k("progress",n),[N,M,I]=oN($),L="line"===d,A=L&&!a,D=o.useMemo((()=>{if(!u)return null;const t=X$(e);let n;const r=f||(e=>`${e}%`),i=L&&C&&"inner"===b;return"inner"===b||f||"exception"!==S&&"success"!==S?n=r(q$(l),q$(t)):"exception"===S?n=L?o.createElement(Ss,null):o.createElement(Os,null):"success"===S&&(n=L?o.createElement(xs,null):o.createElement(Qg,null)),o.createElement("span",{className:P(`${$}-text`,{[`${$}-text-bright`]:i,[`${$}-text-${v}`]:A,[`${$}-text-${b}`]:A}),title:"string"==typeof n?n:void 0},n)}),[u,l,w,S,d,$,f]);if("production"!==process.env.NODE_ENV){const t=To("Progress");t.deprecated(!("successPercent"in e),"successPercent","success.percent"),t.deprecated(!("width"in e),"width","size"),"circle"!==d&&"dashboard"!==d||(Array.isArray(c)?"production"!==process.env.NODE_ENV&&t(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):"object"==typeof c&&"production"!==process.env.NODE_ENV&&t(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),e.success&&"progress"in e.success&&t.deprecated(!1,"success.progress","success.percent")}let T;"line"===d?T=a?o.createElement(sN,Object.assign({},e,{strokeColor:x,prefixCls:$,steps:"object"==typeof a?a.count:a}),D):o.createElement(aN,Object.assign({},e,{strokeColor:y,prefixCls:$,direction:E,percentPosition:{align:v,type:b}}),D):"circle"!==d&&"dashboard"!==d||(T=o.createElement(G$,Object.assign({},e,{strokeColor:y,prefixCls:$,progressStatus:S}),D));const j=P($,`${$}-status-${S}`,{[`${$}-${"dashboard"===d?"circle":d}`]:"line"!==d,[`${$}-inline-circle`]:"circle"===d&&U$(c,"circle")[0]<=20,[`${$}-line`]:A,[`${$}-line-align-${v}`]:A,[`${$}-line-position-${b}`]:A,[`${$}-steps`]:a,[`${$}-show-info`]:u,[`${$}-${c}`]:"string"==typeof c,[`${$}-rtl`]:"rtl"===E},null==O?void 0:O.className,r,i,M,I);return N(o.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==O?void 0:O.style),h),className:j,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},et(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),T))}));"production"!==process.env.NODE_ENV&&(uN.displayName="Progress");var dN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},pN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:dN}))},fN=o.forwardRef(pN);"production"!==process.env.NODE_ENV&&(fN.displayName="CaretDownFilled");var hN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},gN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:hN}))},mN=o.forwardRef(gN);"production"!==process.env.NODE_ENV&&(mN.displayName="CaretDownOutlined");var vN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},bN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:vN}))},yN=o.forwardRef(bN);"production"!==process.env.NODE_ENV&&(yN.displayName="CaretUpOutlined");var xN={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"},CN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:xN}))},wN=o.forwardRef(CN);"production"!==process.env.NODE_ENV&&(wN.displayName="CopyOutlined");var SN={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"},kN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:SN}))},EN=o.forwardRef(kN);"production"!==process.env.NODE_ENV&&(EN.displayName="EditOutlined");var ON={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"},$N=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:ON}))},NN=o.forwardRef($N);"production"!==process.env.NODE_ENV&&(NN.displayName="EnterOutlined");var MN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},IN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:MN}))},PN=o.forwardRef(IN);"production"!==process.env.NODE_ENV&&(PN.displayName="FileOutlined");var LN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},AN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:LN}))},DN=o.forwardRef(AN);"production"!==process.env.NODE_ENV&&(DN.displayName="FilterFilled");var TN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},jN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:TN}))},RN=o.forwardRef(jN);"production"!==process.env.NODE_ENV&&(RN.displayName="FolderOpenOutlined");var _N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},zN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:_N}))},BN=o.forwardRef(zN);"production"!==process.env.NODE_ENV&&(BN.displayName="FolderOutlined");var HN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},FN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:HN}))},VN=o.forwardRef(FN);"production"!==process.env.NODE_ENV&&(VN.displayName="HolderOutlined");var WN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},KN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:WN}))},qN=o.forwardRef(KN);"production"!==process.env.NODE_ENV&&(qN.displayName="MinusSquareOutlined");var XN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},UN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:XN}))},GN=o.forwardRef(UN);"production"!==process.env.NODE_ENV&&(GN.displayName="PlusSquareOutlined");var YN={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"},QN=function(e,t){return o.createElement(bs,L({},e,{ref:t,icon:YN}))},ZN=o.forwardRef(QN);"production"!==process.env.NODE_ENV&&(ZN.displayName="UserOutlined");var JN=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],eM=o.forwardRef((function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-switch":r,a=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,p=e.unCheckedChildren,f=e.onClick,h=e.onChange,g=e.onKeyDown,m=Nt(e,JN),v=ht(yi(!1,{value:s,defaultValue:l}),2),b=v[0],y=v[1];function x(e,t){var n=b;return c||(y(n=e),null==h||h(n,t)),n}var C=P(i,a,(U(n={},"".concat(i,"-checked"),b),U(n,"".concat(i,"-disabled"),c),n));return o.createElement("button",L({},m,{type:"button",role:"switch","aria-checked":b,disabled:c,className:C,ref:t,onKeyDown:function(e){e.which===Vs.LEFT?x(!1,e):e.which===Vs.RIGHT&&x(!0,e),null==g||g(e)},onClick:function(e){var t=x(!b,e);null==f||f(t,e)}}),u,o.createElement("span",{className:"".concat(i,"-inner")},o.createElement("span",{className:"".concat(i,"-inner-checked")},d),o.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))}));eM.displayName="Switch";const tM=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:o,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Xt(l(s).add(l(o).mul(2)).equal()),d=Xt(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:Xt(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Xt(l(s).add(o).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},nM=e=>{const{componentCls:t,handleSize:n,calc:o}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:o(o(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},oM=e=>{const{componentCls:t,trackPadding:n,handleBg:o,handleShadow:r,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a(i).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Xt(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},rM=e=>{const{componentCls:t,trackHeight:n,trackPadding:o,innerMinMargin:r,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=Xt(s(a).add(s(o).mul(2)).equal()),u=Xt(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(o).mul(2).equal(),marginInlineEnd:s(o).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(o).mul(-1).mul(2).equal(),marginInlineEnd:s(o).mul(2).equal()}}}}}},iM=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vi(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:o,height:n,lineHeight:Xt(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),qi(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var aM=Ui("Switch",(e=>{const t=Si(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[iM(t),rM(t),oM(t),nM(t),tM(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,colorWhite:r}=e,i=t*n,a=o/2,s=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:r,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new Vr("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}})),sM=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)=>{const{prefixCls:n,size:r,disabled:i,loading:a,className:s,rootClassName:l,style:c,checked:u,value:d,defaultChecked:p,defaultValue:f,onChange:h}=e,g=sM(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,v]=yi(!1,{value:null!=u?u:d,defaultValue:null!=p?p:f}),{getPrefixCls:b,direction:y,switch:x}=o.useContext(ni),C=o.useContext(ii),w=(null!=i?i:C)||a,S=b("switch",n),k=o.createElement("div",{className:`${S}-handle`},a&&o.createElement(qs,{className:`${S}-loading-icon`})),[E,O,$]=aM(S),N=Il(r),M=P(null==x?void 0:x.className,{[`${S}-small`]:"small"===N,[`${S}-loading`]:a,[`${S}-rtl`]:"rtl"===y},s,l,O,$),I=Object.assign(Object.assign({},null==x?void 0:x.style),c);return E(o.createElement(Ml,{component:"Switch"},o.createElement(eM,Object.assign({},g,{checked:m,onChange:function(){v(arguments.length<=0?void 0:arguments[0]),null==h||h.apply(void 0,arguments)},prefixCls:S,className:M,style:I,disabled:w,ref:t,loadingIcon:k}))))})),cM=lM;cM.__ANT_SWITCH=!0,"production"!==process.env.NODE_ENV&&(cM.displayName="Switch");var uM={},dM="rc-table-internal-hook";function pM(e){var t=o.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,i=o.useRef(n);i.current=n;var a=ht(o.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),1)[0];return Jt((function(){E((function(){a.listeners.forEach((function(e){e(n)}))}))}),[n]),o.createElement(t.Provider,{value:a},r)},defaultValue:e}}function fM(e,t){var n=mi("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=o.useContext(null==e?void 0:e.Context),i=r||{},a=i.listeners,s=i.getValue,l=o.useRef();l.current=n(r?s():null==e?void 0:e.defaultValue);var c=ht(o.useState({}),2)[1];return Jt((function(){if(r)return a.add(e),function(){a.delete(e)};function e(e){var t=n(e);Mt(l.current,t,!0)||c({})}}),[r]),l.current}var hM=function(){var e=o.createContext(null);function t(){return o.useContext(e)}return{makeImmutable:function(n,r){var i=ue(n),a=function(a,s){var l=i?{ref:s}:{},c=o.useRef(0),u=o.useRef(a);return null!==t()?o.createElement(n,L({},a,l)):(r&&!r(u.current,a)||(c.current+=1),u.current=a,o.createElement(e.Provider,{value:c.current},o.createElement(n,L({},a,l))))};return"production"!==process.env.NODE_ENV&&(a.displayName="ImmutableRoot(".concat(n.displayName||n.name,")")),i?o.forwardRef(a):a},responseImmutable:function(e,n){var r=ue(e),i=function(n,i){var a=r?{ref:i}:{};return t(),o.createElement(e,L({},n,a))};return"production"!==process.env.NODE_ENV&&(i.displayName="ImmutableResponse(".concat(e.displayName||e.name,")")),r?o.memo(o.forwardRef(i),n):o.memo(i,n)},useImmutableMark:t}}(),gM=hM.makeImmutable,mM=hM.responseImmutable,vM=hM.useImmutableMark,bM=pM();function yM(e,t){var n=o.useRef(0);n.current+=1;var r=o.useRef(e),i=[];Object.keys(e||{}).map((function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&i.push(t)})),r.current=e;var a=o.useRef([]);return i.length&&(a.current=i),o.useDebugValue(n.current),o.useDebugValue(a.current.join(", ")),t&&console.log("".concat(t,":"),n.current,a.current),n.current}var xM="production"!==process.env.NODE_ENV?yM:function(){},CM=o.memo((function(){var e=yM();return o.createElement("h1",null,"Render Times: ",e)}));"production"!==process.env.NODE_ENV&&(CM.displayName="RenderBlock");var wM=o.createContext({renderWithProps:!1});function SM(e){var t=[],n={};return e.forEach((function(e){for(var o,r=e||{},i=r.key,a=r.dataIndex,s=i||(o=a,null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)})),t}function kM(e){return null!=e}function EM(e,t,n,r,i,a){var s=o.useContext(wM),l=ie((function(){if(kM(r))return[r];var a,l=null==t||""===t?[]:Array.isArray(t)?t:[t],c=Eo(e,l),u=c,d=void 0;if(i){var p=i(c,e,n);!(a=p)||"object"!==A(a)||Array.isArray(a)||o.isValidElement(a)?u=p:("production"!==process.env.NODE_ENV&&K(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),u=p.children,d=p.props,s.renderWithProps=!0)}return[u,d]}),[vM(),e,r,t,i,n],(function(e,t){if(a){var n=ht(e,2)[1],o=ht(t,2)[1];return a(o,n)}return!!s.renderWithProps||!Mt(e,t,!0)}));return l}function OM(e){var t,n,r,i,a,s,l,c;"production"!==process.env.NODE_ENV&&xM(e);var u=e.component,d=e.children,p=e.ellipsis,f=e.scope,h=e.prefixCls,g=e.className,m=e.align,v=e.record,b=e.render,y=e.dataIndex,x=e.renderIndex,C=e.shouldCellUpdate,w=e.index,S=e.rowType,k=e.colSpan,E=e.rowSpan,O=e.fixLeft,$=e.fixRight,N=e.firstFixLeft,M=e.lastFixLeft,I=e.firstFixRight,D=e.lastFixRight,T=e.appendNode,j=e.additionalProps,R=void 0===j?{}:j,_=e.isSticky,z="".concat(h,"-cell"),B=fM(bM,["supportSticky","allColumnsFixedLeft","rowHoverable"]),H=B.supportSticky,F=B.allColumnsFixedLeft,V=B.rowHoverable,W=ht(EM(v,y,x,d,b,C),2),K=W[0],q=W[1],X={},G="number"==typeof O&&H,Q="number"==typeof $&&H;G&&(X.position="sticky",X.left=O),Q&&(X.position="sticky",X.right=$);var Z=null!==(t=null!==(n=null!==(r=null==q?void 0:q.colSpan)&&void 0!==r?r:R.colSpan)&&void 0!==n?n:k)&&void 0!==t?t:1,J=null!==(i=null!==(a=null!==(s=null==q?void 0:q.rowSpan)&&void 0!==s?s:R.rowSpan)&&void 0!==a?a:E)&&void 0!==i?i:1,ee=function(e,t){return fM(bM,(function(n){var o,r,i,a;return[(o=e,r=t||1,i=n.hoverStartRow,a=n.hoverEndRow,o<=a&&o+r-1>=i),n.onHover]}))}(w,J),te=ht(ee,2),ne=te[0],oe=te[1],re=mi((function(e){var t;v&&oe(w,w+J-1),null==R||null===(t=R.onMouseEnter)||void 0===t||t.call(R,e)})),ie=mi((function(e){var t;v&&oe(-1,-1),null==R||null===(t=R.onMouseLeave)||void 0===t||t.call(R,e)}));if(0===Z||0===J)return null;var ae=null!==(l=R.title)&&void 0!==l?l:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?t=i.toString():o.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:S,ellipsis:p,children:K}),se=P(z,g,(U(c={},"".concat(z,"-fix-left"),G&&H),U(c,"".concat(z,"-fix-left-first"),N&&H),U(c,"".concat(z,"-fix-left-last"),M&&H),U(c,"".concat(z,"-fix-left-all"),M&&F&&H),U(c,"".concat(z,"-fix-right"),Q&&H),U(c,"".concat(z,"-fix-right-first"),I&&H),U(c,"".concat(z,"-fix-right-last"),D&&H),U(c,"".concat(z,"-ellipsis"),p),U(c,"".concat(z,"-with-append"),T),U(c,"".concat(z,"-fix-sticky"),(G||Q)&&_&&H),U(c,"".concat(z,"-row-hover"),!q&&ne),c),R.className,null==q?void 0:q.className),le={};m&&(le.textAlign=m);var ce=Y(Y(Y(Y({},X),R.style),le),null==q?void 0:q.style),ue=K;return"object"!==A(ue)||Array.isArray(ue)||o.isValidElement(ue)||(ue=null),p&&(M||I)&&(ue=o.createElement("span",{className:"".concat(z,"-content")},ue)),o.createElement(u,L({},q,R,{className:se,style:ce,title:ae,scope:f,onMouseEnter:V?re:void 0,onMouseLeave:V?ie:void 0,colSpan:1!==Z?Z:null,rowSpan:1!==J?J:null}),T,ue)}var $M=o.memo(OM);function NM(e,t,n,o,r){var i,a,s=n[e]||{},l=n[t]||{};"left"===s.fixed?i=o.left["rtl"===r?t:e]:"right"===l.fixed&&(a=o.right["rtl"===r?e:t]);var c=!1,u=!1,d=!1,p=!1,f=n[t+1],h=n[e-1],g=f&&!f.fixed||h&&!h.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===r){if(void 0!==i)p=!(h&&"left"===h.fixed)&&g;else if(void 0!==a){d=!(f&&"right"===f.fixed)&&g}}else if(void 0!==i){c=!(f&&"left"===f.fixed)&&g}else if(void 0!==a){u=!(h&&"right"===h.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:p,isSticky:o.isSticky}}var MM=o.createContext({});var IM=["children"];function PM(e){return e.children}PM.Row=function(e){var t=e.children,n=Nt(e,IM);return o.createElement("tr",n,t)},PM.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=void 0===i?1:i,s=e.rowSpan,l=e.align,c=fM(bM,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,p=o.useContext(MM),f=p.scrollColumnIndex,h=p.stickyOffsets,g=n+a-1+1===f?a+1:a,m=NM(n,n+g-1,p.flattenColumns,h,d);return o.createElement($M,L({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:g,rowSpan:s,render:function(){return r}},m))};var LM=mM((function(e){"production"!==process.env.NODE_ENV&&xM(e);var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=fM(bM,"prefixCls"),a=r.length-1,s=r[a],l=o.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=s&&s.scrollbar?a:null}}),[s,r,a,n]);return o.createElement(MM.Provider,{value:l},o.createElement("tfoot",{className:"".concat(i,"-summary")},t))})),AM=PM;function DM(e,t,n,o,r,i,a){e.push({record:t,indent:n,index:a});var s=i(t),l=null==r?void 0:r.has(s);if(t&&Array.isArray(t[o])&&l)for(var c=0;c<t[o].length;c+=1)DM(e,t[o][c],n+1,o,r,i,c)}function TM(e,t,n,r){var i=o.useMemo((function(){if(null!=n&&n.size){for(var o=[],i=0;i<(null==e?void 0:e.length);i+=1){DM(o,e[i],0,t,n,r,i)}return o}return null==e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,r]);return i}function jM(e,t,n,o){var r,i=fM(bM,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,s=i.expandableType,l=i.expandedKeys,c=i.childrenColumnName,u=i.onTriggerExpand,d=i.rowExpandable,p=i.onRow,f=i.expandRowByClick,h=i.rowClassName,g="nest"===s,m="row"===s&&(!d||d(e)),v=m||g,b=l&&l.has(t),y=c&&e&&e[c],x=mi(u),C=null==p?void 0:p(e,n),w=null==C?void 0:C.onClick;"string"==typeof h?r=h:"function"==typeof h&&(r=h(e,n,o));var S=SM(a);return Y(Y({},i),{},{columnsKey:S,nestExpandable:g,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:x,rowSupportExpand:m,expandable:v,rowProps:Y(Y({},C),{},{className:P(r,null==C?void 0:C.className),onClick:function(t){f&&v&&u(e,t);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null==w||w.apply(void 0,[t].concat(o))}})})}function RM(e){"production"!==process.env.NODE_ENV&&xM(e);var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,a=e.className,s=e.expanded,l=e.colSpan,c=e.isEmpty,u=fM(bM,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,p=u.fixHeader,f=u.fixColumn,h=u.componentWidth,g=u.horizonScroll,m=n;return(c?g&&h:f)&&(m=o.createElement("div",{style:{width:h-(p?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},m)),o.createElement(r,{className:a,style:{display:s?null:"none"}},o.createElement($M,{component:i,prefixCls:t,colSpan:l},m))}function _M(e,t,n,r,i){var a,s,l=e.record,c=e.prefixCls,u=e.columnsKey,d=e.fixedInfoList,p=e.expandIconColumnIndex,f=e.nestExpandable,h=e.indentSize,g=e.expandIcon,m=e.expanded,v=e.hasNestChildren,b=e.onTriggerExpand,y=u[n],x=d[n];return n===(p||0)&&f&&(a=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(c,"-row-indent indent-level-").concat(r)}),g({prefixCls:c,expanded:m,expandable:v,record:l,onExpand:b}))),t.onCell&&(s=t.onCell(l,i)),{key:y,fixedInfo:x,appendCellNode:a,additionalCellProps:s||{}}}function zM(e){"production"!==process.env.NODE_ENV&&xM(e);var t=e.className,n=e.style,r=e.record,i=e.index,a=e.renderIndex,s=e.rowKey,l=e.indent,c=void 0===l?0:l,u=e.rowComponent,d=e.cellComponent,p=e.scopeCellComponent,f=jM(r,s,i,c),h=f.prefixCls,g=f.flattenColumns,m=f.expandedRowClassName,v=f.expandedRowRender,b=f.rowProps,y=f.expanded,x=f.rowSupportExpand,C=o.useRef(!1);C.current||(C.current=y),"production"!==process.env.NODE_ENV&&xM(e);var w,S=m&&m(r,i,c),k=o.createElement(u,L({},b,{"data-row-key":s,className:P(t,"".concat(h,"-row"),"".concat(h,"-row-level-").concat(c),null==b?void 0:b.className,c>=1?S:""),style:Y(Y({},n),null==b?void 0:b.style)}),g.map((function(e,t){var n=e.render,s=e.dataIndex,l=e.className,u=_M(f,e,t,c,i),g=u.key,m=u.fixedInfo,v=u.appendCellNode,b=u.additionalCellProps;return o.createElement($M,L({className:l,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:d,prefixCls:h,key:g,record:r,index:i,renderIndex:a,dataIndex:s,render:n,shouldCellUpdate:e.shouldCellUpdate},m,{appendNode:v,additionalProps:b}))})));if(x&&(C.current||y)){var E=v(r,i,c+1,y);w=o.createElement(RM,{expanded:y,className:P("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(c+1),S),prefixCls:h,component:u,cellComponent:d,colSpan:g.length,isEmpty:!1},E)}return o.createElement(o.Fragment,null,k,w)}"production"!==process.env.NODE_ENV&&(zM.displayName="BodyRow");var BM=mM(zM);function HM(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return o.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),o.createElement(Je,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function FM(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},o.createElement(Je.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return o.createElement(HM,{key:e,columnKey:e,onColumnResize:r})}))))}function VM(e){"production"!==process.env.NODE_ENV&&xM(e);var t,n=e.data,r=e.measureColumnWidth,i=fM(bM,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,s=i.getComponent,l=i.onColumnResize,c=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,p=i.childrenColumnName,f=i.emptyNode,h=TM(n,p,d,u),g=o.useRef({renderWithProps:!1}),m=s(["body","wrapper"],"tbody"),v=s(["body","row"],"tr"),b=s(["body","cell"],"td"),y=s(["body","cell"],"th");t=n.length?h.map((function(e,t){var n=e.record,r=e.indent,i=e.index,a=u(n,t);return o.createElement(BM,{key:a,rowKey:a,record:n,index:t,renderIndex:i,rowComponent:v,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:r})})):o.createElement(RM,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:v,cellComponent:b,colSpan:c.length,isEmpty:!0},f);var x=SM(c);return o.createElement(wM.Provider,{value:g.current},o.createElement(m,{className:"".concat(a,"-tbody")},r&&o.createElement(FM,{prefixCls:a,columnsKey:x,onColumnResize:l}),t))}"production"!==process.env.NODE_ENV&&(VM.displayName="Body");var WM=mM(VM),KM=["expandable"],qM="RC_TABLE_INTERNAL_COL_DEFINE";var XM=["columnType"];function UM(e){for(var t=e.colWidths,n=e.columns,r=[],i=!1,a=(e.columCount||n.length)-1;a>=0;a-=1){var s=t[a],l=n&&n[a],c=l&&l[qM];if(s||c||i){var u=c||{};u.columnType;var d=Nt(u,XM);r.unshift(o.createElement("col",L({key:a,style:{width:s}},d))),i=!0}}return o.createElement("colgroup",null,r)}var GM=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var YM=o.forwardRef((function(e,t){"production"!==process.env.NODE_ENV&&xM(e);var n=e.className,r=e.noData,i=e.columns,a=e.flattenColumns,s=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,d=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,g=e.stickyClassName,m=e.onScroll,v=e.maxContentScroll,b=e.children,y=Nt(e,GM),x=fM(bM,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=x.prefixCls,w=x.scrollbarSize,S=x.isSticky,k=(0,x.getComponent)(["header","table"],"table"),E=S&&!d?0:w,O=o.useRef(null),$=o.useCallback((function(e){se(t,e),se(O,e)}),[]);o.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(m({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var N=o.useMemo((function(){return a.every((function(e){return e.width}))}),[a]),M=a[a.length-1],I={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},L=f((function(){return E?[].concat(rt(i),[I]):i}),[E,i]),A=f((function(){return E?[].concat(rt(a),[I]):a}),[E,a]),D=f((function(){var e=c.right,t=c.left;return Y(Y({},c),{},{left:"rtl"===u?[].concat(rt(t.map((function(e){return e+E}))),[0]):t,right:"rtl"===u?e:[].concat(rt(e.map((function(e){return e+E}))),[0]),isSticky:S})}),[E,c,S]),T=function(e,t){return f((function(){for(var n=[],o=0;o<t;o+=1){var r=e[o];if(void 0===r)return null;n[o]=r}return n}),[e.join("_"),t])}(s,l);return o.createElement("div",{style:Y({overflow:"hidden"},S?{top:p,bottom:h}:{}),ref:$,className:P(n,U({},g,!!g))},o.createElement(k,{style:{tableLayout:"fixed",visibility:r||T?null:"hidden"}},(!r||!v||N)&&o.createElement(UM,{colWidths:T?[].concat(rt(T),[E]):[],columCount:l+1,columns:A}),b(Y(Y({},y),{},{stickyOffsets:D,columns:L,flattenColumns:A}))))}));"production"!==process.env.NODE_ENV&&(YM.displayName="FixedHolder");var QM=o.memo(YM),ZM=function(e){var t,n=e.cells,r=e.stickyOffsets,i=e.flattenColumns,a=e.rowComponent,s=e.cellComponent,l=e.onHeaderRow,c=e.index,u=fM(bM,["prefixCls","direction"]),d=u.prefixCls,p=u.direction;l&&(t=l(n.map((function(e){return e.column})),c));var f=SM(n.map((function(e){return e.column})));return o.createElement(a,t,n.map((function(e,t){var n,a=e.column,l=NM(e.colStart,e.colEnd,i,r,p);return a&&a.onHeaderCell&&(n=e.column.onHeaderCell(a)),o.createElement($M,L({},e,{scope:a.title?e.colSpan>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:s,prefixCls:d,key:f[t]},l,{additionalProps:n,rowType:"header"}))})))};"production"!==process.env.NODE_ENV&&(ZM.displayName="HeaderRow");var JM=mM((function(e){"production"!==process.env.NODE_ENV&&xM(e);var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,a=fM(bM,["prefixCls","getComponent"]),s=a.prefixCls,l=a.getComponent,c=o.useMemo((function(){return function(e){var t=[];!function e(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var i=o,a=n.filter(Boolean).map((function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,s=n.children;return s&&s.length>0&&(a=e(s,i,r+1).reduce((function(e,t){return e+t}),0),o.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=a,o.colEnd=o.colStart+a-1,t[r].push(o),i+=a,a}));return a}(e,0);for(var n=t.length,o=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r<n;r+=1)o(r);return t}(n)}),[n]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),p=l(["header","cell"],"th");return o.createElement(u,{className:"".concat(s,"-thead")},c.map((function(e,n){return o.createElement(ZM,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:p,onHeaderRow:i,index:n})})))}));function eI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var tI=["children"],nI=["fixed"];function oI(e){return _(e).filter((function(e){return o.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,o=n.children,r=Y({key:t},Nt(n,tI));return o&&(r.children=oI(o)),r}))}function rI(e){return e.filter((function(e){return e&&"object"===A(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?Y(Y({},e),{},{children:rI(t)}):e}))}function iI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===A(e)})).reduce((function(e,n,o){var r=n.fixed,i=!0===r?"left":r,a="".concat(t,"-").concat(o),s=n.children;return s&&s.length>0?[].concat(rt(e),rt(iI(s,a).map((function(e){return Y({fixed:i},e)})))):[].concat(rt(e),[Y(Y({key:a},n),{},{fixed:i})])}),[])}function aI(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,s=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,p=e.rowExpandable,f=e.expandIconColumnIndex,h=e.direction,g=e.expandRowByClick,m=e.columnWidth,v=e.fixed,b=e.scrollWidth,y=e.clientWidth,x=o.useMemo((function(){return rI((r||oI(i)||[]).slice())}),[r,i]),C=o.useMemo((function(){if(a){var e,t=x.slice();if("production"!==process.env.NODE_ENV&&f>=0&&K(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!t.includes(uM)){var r=f||0;r>=0&&t.splice(r,0,uM)}"production"!==process.env.NODE_ENV&&t.filter((function(e){return e===uM})).length>1&&K(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");var i=t.indexOf(uM);t=t.filter((function(e,t){return e!==uM||t===i}));var h,b=x[i];h="left"!==v&&!v||f?"right"!==v&&!v||f!==x.length?b?b.fixed:null:"right":"left";var y=(U(e={},qM,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),U(e,"title",l),U(e,"fixed",h),U(e,"className","".concat(n,"-row-expand-icon-cell")),U(e,"width",m),U(e,"render",(function(e,t,r){var i=c(t,r),a=s.has(i),l=!p||p(t),f=d({prefixCls:n,expanded:a,expandable:l,record:t,onExpand:u});return g?o.createElement("span",{onClick:function(e){return e.stopPropagation()}},f):f})),e);return t.map((function(e){return e===uM?y:e}))}return"production"!==process.env.NODE_ENV&&x.includes(uM)&&K(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),x.filter((function(e){return e!==uM}))}),[a,x,c,s,d,h]),w=o.useMemo((function(){var e=C;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,C,h]),S=o.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),Y({fixed:n},Nt(e,nI))}))}(iI(w)):iI(w)}),[w,h,b]),k=o.useMemo((function(){for(var e=-1,t=S.length-1;t>=0;t-=1){var n=S[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var o=0;o<=e;o+=1){var r=S[o].fixed;if("left"!==r&&!0!==r)return!0}var i=S.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a<S.length;a+=1){if("right"!==S[a].fixed)return!0}return!1}),[S]),E=function(e,t,n){return o.useMemo((function(){if(t&&t>0){var o=0,r=0;e.forEach((function(e){var n=eI(t,e.width);n?o+=n:r+=1}));var i=Math.max(t,n),a=Math.max(i-o,r),s=r,l=a/r,c=0,u=e.map((function(e){var n=Y({},e),o=eI(t,n.width);if(o)n.width=o;else{var r=Math.floor(l);n.width=1===s?a:r,a-=r,s-=1}return c+=n.width,n}));if(c<i){var d=i/c;a=i,u.forEach((function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?a:n,a-=n}))}return[u,Math.max(c,i)]}return[e,t]}),[e,t,n])}(S,b,y),O=ht(E,2),$=O[0],N=O[1];return[w,$,N,k]}function sI(e){var t,n=e.prefixCls,r=e.record,i=e.onExpand,a=e.expanded,s=e.expandable,l="".concat(n,"-row-expand-icon");if(!s)return o.createElement("span",{className:P(l,"".concat(n,"-row-spaced"))});return o.createElement("span",{className:P(l,(t={},U(t,"".concat(n,"-row-expanded"),a),U(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:function(e){i(r,e),e.stopPropagation()}})}function lI(e,t,n){var r=function(e){var t,n=e.expandable,o=Nt(e,KM);return"expandable"in e?t=Y(Y({},o),n):("production"!==process.env.NODE_ENV&&["indentSize","expandedRowKeys","defaultExpandedRowKeys","defaultExpandAllRows","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","expandedRowClassName","expandIconColumnIndex","showExpandColumn","title"].some((function(t){return t in e}))&&K(!1,"expanded related props have been moved into `expandable`."),t=o),!1===t.showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),i=r.expandIcon,a=r.expandedRowKeys,s=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,p=i||sI,f=r.childrenColumnName||"children",h=o.useMemo((function(){return c?"row":!!(e.expandable&&e.internalHooks===dM&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===A(e)&&e[f]})))&&"nest"}),[!!c,t]),g=o.useState((function(){return s||(l?function(e,t,n){var o=[];return function e(r){(r||[]).forEach((function(r,i){o.push(t(r,i)),e(r[n])}))}(e),o}(t,n,f):[])})),m=ht(g,2),v=m[0],b=m[1],y=o.useMemo((function(){return new Set(a||v||[])}),[a,v]),x=o.useCallback((function(e){var o,r=n(e,t.indexOf(e)),i=y.has(r);i?(y.delete(r),o=rt(y)):o=[].concat(rt(y),[r]),b(o),u&&u(!i,e),d&&d(o)}),[n,y,t,u,d]);return"production"!==process.env.NODE_ENV&&c&&t.some((function(e){return Array.isArray(null==e?void 0:e[f])}))&&K(!1,"`expandedRowRender` should not use with nested Table"),[r,h,y,p,f,x]}function cI(e){var t=c(e),n=ht(h({}),2)[1],o=c(null),r=c([]);return d((function(){return function(){o.current=null}}),[]),[t.current,function(e){r.current.push(e);var i=Promise.resolve();o.current=i,i.then((function(){if(o.current===i){var e=r.current,a=t.current;r.current=[],e.forEach((function(e){t.current=e(t.current)})),o.current=null,a!==t.current&&n({})}}))}]}var uI=mt()?window:null;function dI(e){var t=e.className,n=e.children;return o.createElement("div",{className:t},n)}var pI=function(e,t){var n,r,i=e.scrollBodyRef,a=e.onScroll,s=e.offsetScroll,l=e.container,c=fM(bM,"prefixCls"),u=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,d=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,p=u&&d*(d/u),f=o.useRef(),h=ht(cI({scrollLeft:0,isHiddenScrollBar:!1}),2),g=h[0],m=h[1],v=o.useRef({delta:0,x:0}),b=ht(o.useState(!1),2),y=b[0],x=b[1],C=o.useRef(null);o.useEffect((function(){return function(){ut.cancel(C.current)}}),[]);var w=function(){x(!1)},S=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(y&&0!==n){var o=v.current.x+e.pageX-v.current.x-v.current.delta;o<=0&&(o=0),o+p>=d&&(o=d-p),a({scrollLeft:o/d*(u+2)}),v.current.x=e.pageX}else y&&x(!1)},k=function(){C.current=ut((function(){if(i.current){var e=kE(i.current).top,t=e+i.current.offsetHeight,n=l===window?document.documentElement.scrollTop+window.innerHeight:kE(l).top+l.clientHeight;t-Wc()<=n||e>=n-s?m((function(e){return Y(Y({},e),{},{isHiddenScrollBar:!0})})):m((function(e){return Y(Y({},e),{},{isHiddenScrollBar:!1})}))}}))},E=function(e){m((function(t){return Y(Y({},t),{},{scrollLeft:e/u*d||0})}))};return o.useImperativeHandle(t,(function(){return{setScrollLeft:E,checkScrollBarVisible:k}})),o.useEffect((function(){var e=EE(document.body,"mouseup",w,!1),t=EE(document.body,"mousemove",S,!1);return k(),function(){e.remove(),t.remove()}}),[p,y]),o.useEffect((function(){var e=EE(l,"scroll",k,!1),t=EE(window,"resize",k,!1);return function(){e.remove(),t.remove()}}),[l]),o.useEffect((function(){g.isHiddenScrollBar||m((function(e){var t=i.current;return t?Y(Y({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[g.isHiddenScrollBar]),u<=d||!p||g.isHiddenScrollBar?null:o.createElement("div",{style:{height:Wc(),width:d,bottom:s},className:"".concat(c,"-sticky-scroll")},o.createElement("div",{onMouseDown:function(e){e.persist(),v.current.delta=e.pageX-g.scrollLeft,v.current.x=0,x(!0),e.preventDefault()},ref:f,className:P("".concat(c,"-sticky-scroll-bar"),U({},"".concat(c,"-sticky-scroll-bar-active"),y)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(g.scrollLeft,"px, 0, 0)")}}))},fI=o.forwardRef(pI),hI="rc-table",gI=[],mI={};function vI(){return"No Data"}function bI(e,t){var n,r=Y({rowKey:"key",prefixCls:hI,emptyText:vI},e),i=r.prefixCls,a=r.className,s=r.rowClassName,l=r.style,u=r.data,p=r.rowKey,h=r.scroll,g=r.tableLayout,m=r.direction,v=r.title,b=r.footer,y=r.summary,x=r.caption,C=r.id,w=r.showHeader,S=r.components,k=r.emptyText,E=r.onRow,O=r.onHeaderRow,$=r.onScroll,N=r.internalHooks,M=r.transformColumns,I=r.internalRefs,D=r.tailor,T=r.getContainerWidth,j=r.sticky,R=r.rowHoverable,_=void 0===R||R,z=u||gI,B=!!z.length,H=N===dM;"production"!==process.env.NODE_ENV&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach((function(e){K(void 0===r[e],"`".concat(e,"` is removed, please use `onRow` instead."))})),K(!("getBodyWrapper"in r),"`getBodyWrapper` is deprecated, please use custom `components` instead."));var F=o.useCallback((function(e,t){return Eo(S,e)||t}),[S]),V=o.useMemo((function(){return"function"==typeof p?p:function(e){var t=e&&e[p];return"production"!==process.env.NODE_ENV&&K(void 0!==t,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),t}}),[p]),W=F(["body"]),q=function(){var e=ht(o.useState(-1),2),t=e[0],n=e[1],r=ht(o.useState(-1),2),i=r[0],a=r[1];return[t,i,o.useCallback((function(e,t){n(e),a(t)}),[])]}(),X=ht(q,3),G=X[0],Q=X[1],Z=X[2],J=ht(lI(r,z,V),6),ee=J[0],te=J[1],ne=J[2],oe=J[3],re=J[4],ae=J[5],se=null==h?void 0:h.x,le=ht(o.useState(0),2),ce=le[0],ue=le[1],de=ht(aI(Y(Y(Y({},r),ee),{},{expandable:!!ee.expandedRowRender,columnTitle:ee.columnTitle,expandedKeys:ne,getRowKey:V,onTriggerExpand:ae,expandIcon:oe,expandIconColumnIndex:ee.expandIconColumnIndex,direction:m,scrollWidth:H&&D&&"number"==typeof se?se:null,clientWidth:ce}),H?M:null),4),pe=de[0],fe=de[1],he=de[2],ge=de[3],me=null!=he?he:se,ve=o.useMemo((function(){return{columns:pe,flattenColumns:fe}}),[pe,fe]),be=o.useRef(),ye=o.useRef(),xe=o.useRef(),Ce=o.useRef();o.useImperativeHandle(t,(function(){return{nativeElement:be.current,scrollTo:function(e){var t;if(xe.current instanceof HTMLElement){var n=e.index,o=e.top,r=e.key;if(o){var i;null===(i=xe.current)||void 0===i||i.scrollTo({top:o})}else{var a,s=null!=r?r:V(z[n]);null===(a=xe.current.querySelector('[data-row-key="'.concat(s,'"]')))||void 0===a||a.scrollIntoView()}}else null!==(t=xe.current)&&void 0!==t&&t.scrollTo&&xe.current.scrollTo(e)}}}));var we,Se,ke,Ee=o.useRef(),Oe=ht(o.useState(!1),2),$e=Oe[0],Ne=Oe[1],Me=ht(o.useState(!1),2),Ie=Me[0],Pe=Me[1],Le=ht(cI(new Map),2),Ae=Le[0],De=Le[1],Te=SM(fe).map((function(e){return Ae.get(e)})),je=o.useMemo((function(){return Te}),[Te.join("_")]),Re=function(e,t,n){var o=f((function(){var o=t.length,r=function(n,o,r){for(var i=[],a=0,s=n;s!==o;s+=r)i.push(a),t[s].fixed&&(a+=e[s]||0);return i},i=r(0,o,1),a=r(o-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}}),[e,t,n]);return o}(je,fe,m),_e=h&&kM(h.y),ze=h&&kM(me)||Boolean(ee.fixed),Be=ze&&fe.some((function(e){return e.fixed})),He=o.useRef(),Fe=function(e,t){var n="object"===A(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,a=n.offsetSummary,s=void 0===a?0:a,l=n.offsetScroll,c=void 0===l?0:l,u=n.getContainer,d=(void 0===u?function(){return uI}:u)()||uI;return o.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:s,offsetScroll:c,container:d}}),[c,i,s,t,d])}(j,i),Ve=Fe.isSticky,We=Fe.offsetHeader,Ke=Fe.offsetSummary,qe=Fe.offsetScroll,Xe=Fe.stickyClassName,Ue=Fe.container,Ge=o.useMemo((function(){return null==y?void 0:y(z)}),[y,z]),Ye=(_e||Ve)&&o.isValidElement(Ge)&&Ge.type===PM&&Ge.props.fixed;_e&&(Se={overflowY:"scroll",maxHeight:h.y}),ze&&(we={overflowX:"auto"},_e||(Se={overflowY:"hidden"}),ke={width:!0===me?"auto":me,minWidth:"100%"});var Qe=o.useCallback((function(e,t){xl(be.current)&&De((function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n}))}),[]),Ze=ht(function(){var e=c(null),t=c();function n(){window.clearTimeout(t.current)}return d((function(){return n}),[]),[function(o){e.current=o,n(),t.current=window.setTimeout((function(){e.current=null,t.current=void 0}),100)},function(){return e.current}]}(),2),et=Ze[0],tt=Ze[1];function nt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var ot=mi((function(e){var t,n=e.currentTarget,o=e.scrollLeft,r="rtl"===m,i="number"==typeof o?o:n.scrollLeft,a=n||mI;tt()&&tt()!==a||(et(a),nt(i,ye.current),nt(i,xe.current),nt(i,Ee.current),nt(i,null===(t=He.current)||void 0===t?void 0:t.setScrollLeft));var s=n||ye.current;if(s){var l=s.scrollWidth,c=s.clientWidth;if(l===c)return Ne(!1),void Pe(!1);r?(Ne(-i<l-c),Pe(-i>0)):(Ne(i>0),Pe(i<l-c))}})),rt=mi((function(e){ot(e),null==$||$(e)})),it=function(){ze&&xe.current?ot({currentTarget:xe.current}):(Ne(!1),Pe(!1))},at=o.useRef(!1);o.useEffect((function(){at.current&&it()}),[ze,u,pe.length]),o.useEffect((function(){at.current=!0}),[]);var st=ht(o.useState(0),2),lt=st[0],ct=st[1],ut=ht(o.useState(!0),2),dt=ut[0],pt=ut[1];o.useEffect((function(){D&&H||(xe.current instanceof Element?ct(Kc(xe.current).width):ct(Kc(Ce.current).width)),pt(Nd("position","sticky"))}),[]),o.useEffect((function(){H&&I&&(I.body.current=xe.current)}));var ft,gt=o.useCallback((function(e){return o.createElement(o.Fragment,null,o.createElement(JM,e),"top"===Ye&&o.createElement(LM,e,Ge))}),[Ye,Ge]),mt=o.useCallback((function(e){return o.createElement(LM,e,Ge)}),[Ge]),vt=F(["table"],"table"),bt=o.useMemo((function(){return g||(Be?"max-content"===me?"auto":"fixed":_e||Ve||fe.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[_e,Be,fe,g,Ve]),yt={colWidths:je,columCount:fe.length,stickyOffsets:Re,onHeaderRow:O,fixHeader:_e,scroll:h},xt=o.useMemo((function(){return B?null:"function"==typeof k?k():k}),[B,k]),Ct=o.createElement(WM,{data:z,measureColumnWidth:_e||ze||Ve}),wt=o.createElement(UM,{colWidths:fe.map((function(e){return e.width})),columns:fe}),St=null!=x?o.createElement("caption",{className:"".concat(i,"-caption")},x):void 0,kt=Ts(r,{data:!0}),Et=Ts(r,{aria:!0});if(_e||Ve){var Ot;"function"==typeof W?(Ot=W(z,{scrollbarSize:lt,ref:xe,onScroll:ot}),yt.colWidths=fe.map((function(e,t){var n=e.width,o=t===fe.length-1?n-lt:n;return"number"!=typeof o||Number.isNaN(o)?("production"!==process.env.NODE_ENV&&K(0===r.columns.length,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):o}))):Ot=o.createElement("div",{style:Y(Y({},we),Se),onScroll:rt,ref:xe,className:P("".concat(i,"-body"))},o.createElement(vt,L({style:Y(Y({},ke),{},{tableLayout:bt})},Et),St,wt,Ct,!Ye&&Ge&&o.createElement(LM,{stickyOffsets:Re,flattenColumns:fe},Ge)));var $t=Y(Y(Y({noData:!z.length,maxContentScroll:ze&&"max-content"===me},yt),ve),{},{direction:m,stickyClassName:Xe,onScroll:ot});ft=o.createElement(o.Fragment,null,!1!==w&&o.createElement(QM,L({},$t,{stickyTopOffset:We,className:"".concat(i,"-header"),ref:ye}),gt),Ot,Ye&&"top"!==Ye&&o.createElement(QM,L({},$t,{stickyBottomOffset:Ke,className:"".concat(i,"-summary"),ref:Ee}),mt),Ve&&xe.current&&xe.current instanceof Element&&o.createElement(fI,{ref:He,offsetScroll:qe,scrollBodyRef:xe,onScroll:ot,container:Ue}))}else ft=o.createElement("div",{style:Y(Y({},we),Se),className:P("".concat(i,"-content")),onScroll:ot,ref:xe},o.createElement(vt,L({style:Y(Y({},ke),{},{tableLayout:bt})},Et),St,wt,!1!==w&&o.createElement(JM,L({},yt,ve)),Ct,Ge&&o.createElement(LM,{stickyOffsets:Re,flattenColumns:fe},Ge)));var Nt=o.createElement("div",L({className:P(i,a,(n={},U(n,"".concat(i,"-rtl"),"rtl"===m),U(n,"".concat(i,"-ping-left"),$e),U(n,"".concat(i,"-ping-right"),Ie),U(n,"".concat(i,"-layout-fixed"),"fixed"===g),U(n,"".concat(i,"-fixed-header"),_e),U(n,"".concat(i,"-fixed-column"),Be),U(n,"".concat(i,"-fixed-column-gapped"),Be&&ge),U(n,"".concat(i,"-scroll-horizontal"),ze),U(n,"".concat(i,"-has-fix-left"),fe[0]&&fe[0].fixed),U(n,"".concat(i,"-has-fix-right"),fe[fe.length-1]&&"right"===fe[fe.length-1].fixed),n)),style:l,id:C,ref:be},kt),v&&o.createElement(dI,{className:"".concat(i,"-title")},v(z)),o.createElement("div",{ref:Ce,className:"".concat(i,"-container")},ft),b&&o.createElement(dI,{className:"".concat(i,"-footer")},b(z)));ze&&(Nt=o.createElement(Je,{onResize:function(e){var t,n=e.width;null===(t=He.current)||void 0===t||t.checkScrollBarVisible();var o=be.current?be.current.offsetWidth:n;H&&T&&be.current&&(o=T(be.current,o)||o),o!==ce&&(it(),ue(o))}},Nt));var It=function(e,t,n){var o=e.map((function(o,r){return NM(r,r,e,t,n)}));return ie((function(){return o}),[o],(function(e,t){return!Mt(e,t)}))}(fe,Re,m),Pt=o.useMemo((function(){return{scrollX:me,prefixCls:i,getComponent:F,scrollbarSize:lt,direction:m,fixedInfoList:It,isSticky:Ve,supportSticky:dt,componentWidth:ce,fixHeader:_e,fixColumn:Be,horizonScroll:ze,tableLayout:bt,rowClassName:s,expandedRowClassName:ee.expandedRowClassName,expandIcon:oe,expandableType:te,expandRowByClick:ee.expandRowByClick,expandedRowRender:ee.expandedRowRender,onTriggerExpand:ae,expandIconColumnIndex:ee.expandIconColumnIndex,indentSize:ee.indentSize,allColumnsFixedLeft:fe.every((function(e){return"left"===e.fixed})),emptyNode:xt,columns:pe,flattenColumns:fe,onColumnResize:Qe,hoverStartRow:G,hoverEndRow:Q,onHover:Z,rowExpandable:ee.rowExpandable,onRow:E,getRowKey:V,expandedKeys:ne,childrenColumnName:re,rowHoverable:_}}),[me,i,F,lt,m,It,Ve,dt,ce,_e,Be,ze,bt,s,ee.expandedRowClassName,oe,te,ee.expandRowByClick,ee.expandedRowRender,ae,ee.expandIconColumnIndex,ee.indentSize,xt,pe,fe,Qe,G,Q,Z,ee.rowExpandable,E,V,ne,re,_]);return o.createElement(bM.Provider,{value:Pt},Nt)}var yI=o.forwardRef(bI);function xI(e){return gM(yI,e)}"production"!==process.env.NODE_ENV&&(yI.displayName="Table");var CI=xI();CI.EXPAND_COLUMN=uM,CI.INTERNAL_HOOKS=dM,CI.Column=function(e){return null},CI.ColumnGroup=function(e){return null},CI.Summary=AM;var wI=pM(null),SI=pM(null);function kI(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,a=e.index,s=e.component,l=e.renderIndex,c=e.record,u=e.style,d=e.className,p=e.inverse,f=e.getHeight,h=n.render,g=n.dataIndex,m=n.className,v=n.width,b=fM(SI,["columnsOffset"]).columnsOffset,y=_M(t,n,r,i,a),x=y.key,C=y.fixedInfo,w=y.appendCellNode,S=y.additionalCellProps,k=S.style,E=S.colSpan,O=void 0===E?1:E,$=S.rowSpan,N=void 0===$?1:$,M=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,O,b),I=O>1?v-M:0,A=Y(Y(Y({},k),u),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:I,pointerEvents:"auto"}),D=o.useMemo((function(){return p?N<=1:0===O||0===N||N>1}),[N,O,p]);D?A.visibility="hidden":p&&(A.height=null==f?void 0:f(N));var T=D?function(){return null}:h,j={};return 0!==N&&0!==O||(j.rowSpan=1,j.colSpan=1),o.createElement($M,L({className:P(m,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:s,prefixCls:t.prefixCls,key:x,record:c,index:a,renderIndex:l,dataIndex:g,render:T,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:w,additionalProps:Y(Y({},S),{},{style:A},j)}))}var EI=["data","index","className","rowKey","style","extra","getHeight"],OI=o.forwardRef((function(e,t){var n,r=e.data,i=e.index,a=e.className,s=e.rowKey,l=e.style,c=e.extra,u=e.getHeight,d=Nt(e,EI),p=r.record,f=r.indent,h=r.index,g=fM(bM,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=g.scrollX,v=g.flattenColumns,b=g.prefixCls,y=g.fixColumn,x=g.componentWidth,C=fM(wI,["getComponent"]).getComponent,w=jM(p,s,i,f),S=C(["body","row"],"div"),k=C(["body","cell"],"div"),E=w.rowSupportExpand,O=w.expanded,$=w.rowProps,N=w.expandedRowRender,M=w.expandedRowClassName;if(E&&O){var I=N(p,i,f+1,O),A=null==M?void 0:M(p,i,f),D={};y&&(D={style:U({},"--virtual-width","".concat(x,"px"))});var T="".concat(b,"-expanded-row-cell");n=o.createElement(S,{className:P("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(f+1),A)},o.createElement($M,{component:k,prefixCls:b,className:P(T,U({},"".concat(T,"-fixed"),y)),additionalProps:D},I))}var j=Y(Y({},l),{},{width:m});c&&(j.position="absolute",j.pointerEvents="none");var R=o.createElement(S,L({},$,d,{"data-row-key":s,ref:E?null:t,className:P(a,"".concat(b,"-row"),null==$?void 0:$.className,U({},"".concat(b,"-row-extra"),c)),style:Y(Y({},j),null==$?void 0:$.style)}),v.map((function(e,t){return o.createElement(kI,{key:t,component:k,rowInfo:w,column:e,colIndex:t,indent:f,index:i,renderIndex:h,record:p,inverse:c,getHeight:u})})));return E?o.createElement("div",{ref:t},R,n):R})),$I=mM(OI);"production"!==process.env.NODE_ENV&&($I.displayName="BodyLine");var NI=o.forwardRef((function(e,t){var n=e.data,r=e.onScroll,i=fM(bM,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=i.flattenColumns,s=i.onColumnResize,l=i.getRowKey,c=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,p=i.emptyNode,f=i.scrollX,h=fM(wI),g=h.sticky,m=h.scrollY,v=h.listItemHeight,b=h.getComponent,y=h.onScroll,x=o.useRef(),C=TM(n,d,c,l),w=o.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),S=o.useMemo((function(){return w.map((function(e){return e[2]}))}),[w]);o.useEffect((function(){w.forEach((function(e){var t=ht(e,2),n=t[0],o=t[1];s(n,o)}))}),[w]),o.useImperativeHandle(t,(function(){var e={scrollTo:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo(e)}};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),e}));var k,E=function(e,t){var n,o=null===(n=C[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var i,a=r(o,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},O=o.useMemo((function(){return{columnsOffset:S}}),[S]),$="".concat(u,"-tbody"),N=b(["body","wrapper"]),M=b(["body","row"],"div"),I=b(["body","cell"],"div");if(C.length){var L={};g&&(L.position="sticky",L.bottom=0,"object"===A(g)&&g.offsetScroll&&(L.bottom=g.offsetScroll)),k=o.createElement(Zh,{fullHeight:!1,ref:x,prefixCls:"".concat($,"-virtual"),styles:{horizontalScrollBar:L},className:$,height:m,itemHeight:v||24,data:C,itemKey:function(e){return l(e.record)},component:N,scrollWidth:f,onVirtualScroll:function(e){var t=e.x;r({scrollLeft:t})},onScroll:y,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,i=e.offsetY;if(n<0)return null;for(var s=a.filter((function(e){return 0===E(e,t)})),c=t,u=function(e){if(s=s.filter((function(t){return 0===E(t,e)})),!s.length)return c=e,1},d=t;d>=0&&!u(d);d-=1);for(var p=a.filter((function(e){return 1!==E(e,n)})),f=n,h=function(e){if(p=p.filter((function(t){return 1!==E(t,e)})),!p.length)return f=Math.max(e-1,n),1},g=n;g<C.length&&!h(g);g+=1);for(var m=[],v=function(e){if(!C[e])return 1;a.some((function(t){return E(t,e)>1}))&&m.push(e)},b=c;b<=f;b+=1)v(b);var y=m.map((function(e){var t=C[e],n=l(t.record,e),a=r(n);return o.createElement($I,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var o=e+t-1,i=l(C[o].record,o),a=r(n,i);return a.bottom-a.top}})}));return y}},(function(e,t,n){var r=l(e.record,t);return o.createElement($I,{data:e,rowKey:r,index:t,style:n.style})}))}else k=o.createElement(M,{className:P("".concat(u,"-placeholder"))},o.createElement($M,{component:I,prefixCls:u},p));return o.createElement(SI.Provider,{value:O},k)})),MI=mM(NI);"production"!==process.env.NODE_ENV&&(MI.displayName="ResponseGrid");var II=function(e,t){var n=t.ref,r=t.onScroll;return o.createElement(MI,{ref:n,data:e,onScroll:r})};function PI(e,t){var n=e.columns,r=e.scroll,i=e.sticky,a=e.prefixCls,s=void 0===a?hI:a,l=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,p=r||{},f=p.x,h=p.y;"number"!=typeof f&&("production"!==process.env.NODE_ENV&&K(!f,"`scroll.x` in virtual table must be number."),f=1),"number"!=typeof h&&(h=500,"production"!==process.env.NODE_ENV&&K(!1,"`scroll.y` in virtual table must be number."));var g=mi((function(e,t){return Eo(u,e)||t})),m=mi(d),v=o.useMemo((function(){return{sticky:i,scrollY:h,listItemHeight:c,getComponent:g,onScroll:m}}),[i,h,c,g,m]);return o.createElement(wI.Provider,{value:v},o.createElement(CI,L({},e,{className:P(l,"".concat(s,"-virtual")),scroll:Y(Y({},r),{},{x:f}),components:Y(Y({},u),{},{body:II}),columns:n,internalHooks:dM,tailor:!0,ref:t})))}var LI=o.forwardRef(PI);function AI(e){return gM(LI,e)}"production"!==process.env.NODE_ENV&&(LI.displayName="VirtualTable"),AI();var DI=o.createContext(null),TI=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),s=[],l=0;l<n;l+=1)s.push(o.createElement("span",{key:l,className:P(a,U(U({},"".concat(a,"-start"),r[l]),"".concat(a,"-end"),i[l]))}));return o.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},s)},jI=o.memo(TI),RI=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],_I="open",zI="close",BI=function(){Ve(t,o.Component);var e=Ue(t);function t(){var n;ze(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return U(qe(n=e.call.apply(e,[this].concat(i))),"state",{dragNodeHighlight:!1}),U(qe(n),"selectHandle",void 0),U(qe(n),"cacheIndent",void 0),U(qe(n),"onSelectorClick",(function(e){(0,n.props.context.onNodeClick)(e,dS(n.props)),n.isSelectable()?n.onSelect(e):n.onCheck(e)})),U(qe(n),"onSelectorDoubleClick",(function(e){(0,n.props.context.onNodeDoubleClick)(e,dS(n.props))})),U(qe(n),"onSelect",(function(e){n.isDisabled()||(0,n.props.context.onNodeSelect)(e,dS(n.props))})),U(qe(n),"onCheck",(function(e){if(!n.isDisabled()){var t=n.props,o=t.disableCheckbox,r=t.checked,i=n.props.context.onNodeCheck;if(n.isCheckable()&&!o){var a=!r;i(e,dS(n.props),a)}}})),U(qe(n),"onMouseEnter",(function(e){(0,n.props.context.onNodeMouseEnter)(e,dS(n.props))})),U(qe(n),"onMouseLeave",(function(e){(0,n.props.context.onNodeMouseLeave)(e,dS(n.props))})),U(qe(n),"onContextMenu",(function(e){(0,n.props.context.onNodeContextMenu)(e,dS(n.props))})),U(qe(n),"onDragStart",(function(e){var t=n.props.context.onNodeDragStart;e.stopPropagation(),n.setState({dragNodeHighlight:!0}),t(e,qe(n));try{e.dataTransfer.setData("text/plain","")}catch(e){}})),U(qe(n),"onDragEnter",(function(e){var t=n.props.context.onNodeDragEnter;e.preventDefault(),e.stopPropagation(),t(e,qe(n))})),U(qe(n),"onDragOver",(function(e){var t=n.props.context.onNodeDragOver;e.preventDefault(),e.stopPropagation(),t(e,qe(n))})),U(qe(n),"onDragLeave",(function(e){var t=n.props.context.onNodeDragLeave;e.stopPropagation(),t(e,qe(n))})),U(qe(n),"onDragEnd",(function(e){var t=n.props.context.onNodeDragEnd;e.stopPropagation(),n.setState({dragNodeHighlight:!1}),t(e,qe(n))})),U(qe(n),"onDrop",(function(e){var t=n.props.context.onNodeDrop;e.preventDefault(),e.stopPropagation(),n.setState({dragNodeHighlight:!1}),t(e,qe(n))})),U(qe(n),"onExpand",(function(e){var t=n.props,o=t.loading,r=t.context.onNodeExpand;o||r(e,dS(n.props))})),U(qe(n),"setSelectHandle",(function(e){n.selectHandle=e})),U(qe(n),"getNodeState",(function(){var e=n.props.expanded;return n.isLeaf()?null:e?_I:zI})),U(qe(n),"hasChildren",(function(){var e=n.props.eventKey;return!!((nS(n.props.context.keyEntities,e)||{}).children||[]).length})),U(qe(n),"isLeaf",(function(){var e=n.props,t=e.isLeaf,o=e.loaded,r=n.props.context.loadData,i=n.hasChildren();return!1!==t&&(t||!r&&!i||r&&o&&!i)})),U(qe(n),"isDisabled",(function(){var e=n.props.disabled;return!(!n.props.context.disabled&&!e)})),U(qe(n),"isCheckable",(function(){var e=n.props.checkable,t=n.props.context.checkable;return!(!t||!1===e)&&t})),U(qe(n),"syncLoadData",(function(e){var t=e.expanded,o=e.loading,r=e.loaded,i=n.props.context,a=i.loadData,s=i.onNodeLoad;o||a&&t&&!n.isLeaf()&&!r&&s(dS(n.props))})),U(qe(n),"isDraggable",(function(){var e=n.props,t=e.data,o=e.context.draggable;return!(!o||o.nodeDraggable&&!o.nodeDraggable(t))})),U(qe(n),"renderDragHandler",(function(){var e=n.props.context,t=e.draggable,r=e.prefixCls;return null!=t&&t.icon?o.createElement("span",{className:"".concat(r,"-draggable-icon")},t.icon):null})),U(qe(n),"renderSwitcherIconDom",(function(e){var t=n.props.switcherIcon,o=n.props.context.switcherIcon,r=t||o;return"function"==typeof r?r(Y(Y({},n.props),{},{isLeaf:e})):r})),U(qe(n),"renderSwitcher",(function(){var e=n.props.expanded,t=n.props.context.prefixCls;if(n.isLeaf()){var r=n.renderSwitcherIconDom(!0);return!1!==r?o.createElement("span",{className:P("".concat(t,"-switcher"),"".concat(t,"-switcher-noop"))},r):null}var i=P("".concat(t,"-switcher"),"".concat(t,"-switcher_").concat(e?_I:zI)),a=n.renderSwitcherIconDom(!1);return!1!==a?o.createElement("span",{onClick:n.onExpand,className:i},a):null})),U(qe(n),"renderCheckbox",(function(){var e=n.props,t=e.checked,r=e.halfChecked,i=e.disableCheckbox,a=n.props.context.prefixCls,s=n.isDisabled(),l=n.isCheckable();if(!l)return null;var c="boolean"!=typeof l?l:null;return o.createElement("span",{className:P("".concat(a,"-checkbox"),t&&"".concat(a,"-checkbox-checked"),!t&&r&&"".concat(a,"-checkbox-indeterminate"),(s||i)&&"".concat(a,"-checkbox-disabled")),onClick:n.onCheck},c)})),U(qe(n),"renderIcon",(function(){var e=n.props.loading,t=n.props.context.prefixCls;return o.createElement("span",{className:P("".concat(t,"-iconEle"),"".concat(t,"-icon__").concat(n.getNodeState()||"docu"),e&&"".concat(t,"-icon_loading"))})})),U(qe(n),"renderSelector",(function(){var e,t,r=n.state.dragNodeHighlight,i=n.props,a=i.title,s=void 0===a?"---":a,l=i.selected,c=i.icon,u=i.loading,d=i.data,p=n.props.context,f=p.prefixCls,h=p.showIcon,g=p.icon,m=p.loadData,v=p.titleRender,b=n.isDisabled(),y="".concat(f,"-node-content-wrapper");if(h){var x=c||g;e=x?o.createElement("span",{className:P("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"==typeof x?x(n.props):x):n.renderIcon()}else m&&u&&(e=n.renderIcon());t="function"==typeof s?s(d):v?v(d):s;var C=o.createElement("span",{className:"".concat(f,"-title")},t);return o.createElement("span",{ref:n.setSelectHandle,title:"string"==typeof s?s:"",className:P("".concat(y),"".concat(y,"-").concat(n.getNodeState()||"normal"),!b&&(l||r)&&"".concat(f,"-node-selected")),onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,onContextMenu:n.onContextMenu,onClick:n.onSelectorClick,onDoubleClick:n.onSelectorDoubleClick},e,C,n.renderDropIndicator())})),U(qe(n),"renderDropIndicator",(function(){var e=n.props,t=e.disabled,o=e.eventKey,r=n.props.context,i=r.draggable,a=r.dropLevelOffset,s=r.dropPosition,l=r.prefixCls,c=r.indent,u=r.dropIndicatorRender,d=r.dragOverNodeKey,p=r.direction,f=!t&&!!i&&d===o,h=null!=c?c:n.cacheIndent;return n.cacheIndent=c,f?u({dropPosition:s,dropLevelOffset:a,indent:h,prefixCls:l,direction:p}):null})),n}return He(t,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,r=t.className,i=t.style,a=t.dragOver,s=t.dragOverGapTop,l=t.dragOverGapBottom,c=t.isLeaf,u=t.isStart,d=t.isEnd,p=t.expanded,f=t.selected,h=t.checked,g=t.halfChecked,m=t.loading,v=t.domRef,b=t.active;t.data;var y=t.onMouseMove,x=t.selectable,C=Nt(t,RI),w=this.props.context,S=w.prefixCls,k=w.filterTreeNode,E=w.keyEntities,O=w.dropContainerKey,$=w.dropTargetKey,N=w.draggingNodeKey,M=this.isDisabled(),I=Ts(C,{aria:!0,data:!0}),A=(nS(E,n)||{}).level,D=d[d.length-1],T=this.isDraggable(),j=!M&&T,R=N===n,_=void 0!==x?{"aria-selected":!!x}:void 0;return o.createElement("div",L({ref:v,className:P(r,"".concat(S,"-treenode"),(e={},U(U(U(U(U(U(U(U(U(U(e,"".concat(S,"-treenode-disabled"),M),"".concat(S,"-treenode-switcher-").concat(p?"open":"close"),!c),"".concat(S,"-treenode-checkbox-checked"),h),"".concat(S,"-treenode-checkbox-indeterminate"),g),"".concat(S,"-treenode-selected"),f),"".concat(S,"-treenode-loading"),m),"".concat(S,"-treenode-active"),b),"".concat(S,"-treenode-leaf-last"),D),"".concat(S,"-treenode-draggable"),T),"dragging",R),U(U(U(U(U(U(e,"drop-target",$===n),"drop-container",O===n),"drag-over",!M&&a),"drag-over-gap-top",!M&&s),"drag-over-gap-bottom",!M&&l),"filter-node",k&&k(dS(this.props))))),style:i,draggable:j,"aria-grabbed":R,onDragStart:j?this.onDragStart:void 0,onDragEnter:T?this.onDragEnter:void 0,onDragOver:T?this.onDragOver:void 0,onDragLeave:T?this.onDragLeave:void 0,onDrop:T?this.onDrop:void 0,onDragEnd:T?this.onDragEnd:void 0,onMouseMove:y},_,I),o.createElement(jI,{prefixCls:S,level:A,isStart:u,isEnd:d}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),t}(),HI=function(e){return o.createElement(DI.Consumer,null,(function(t){return o.createElement(BI,L({},e,{context:t}))}))};function FI(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function VI(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function WI(e){return e.split("-")}function KI(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var o=t.key,r=t.children;n.push(o),e(r)}))}(nS(t,e).children),n}function qI(e){if(e.parent){var t=WI(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function XI(e,t,n,o,r,i,a,s,l,c){var u,d=e.clientX,p=e.clientY,f=e.target.getBoundingClientRect(),h=f.top,g=f.height,m=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/o,v=l.filter((function(e){var t;return null===(t=s[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=nS(s,n.props.eventKey);if(p<h+g/2){var y=a.findIndex((function(e){return e.key===b.key})),x=a[y<=0?0:y-1].key;b=nS(s,x)}var C=b.key,w=b,S=b.key,k=0,E=0;if(!v.includes(C))for(var O=0;O<m&&qI(b);O+=1)b=b.parent,E+=1;var $,N=t.props.data,M=b.node,I=!0;return $=WI(b.pos),0===Number($[$.length-1])&&0===b.level&&p<h+g/2&&i({dragNode:N,dropNode:M,dropPosition:-1})&&b.key===n.props.eventKey?k=-1:(w.children||[]).length&&v.includes(S)?i({dragNode:N,dropNode:M,dropPosition:0})?k=0:I=!1:0===E?m>-1.5?i({dragNode:N,dropNode:M,dropPosition:1})?k=1:I=!1:i({dragNode:N,dropNode:M,dropPosition:0})?k=0:i({dragNode:N,dropNode:M,dropPosition:1})?k=1:I=!1:i({dragNode:N,dropNode:M,dropPosition:1})?k=1:I=!1,{dropPosition:k,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:S,dropContainerKey:0===k?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:I}}function UI(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function GI(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==A(e))return K(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function YI(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=nS(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach((function(e){o(e)})),rt(n)}HI.displayName="TreeNode",HI.isTreeNode=1;const QI={},ZI="SELECT_ALL",JI="SELECT_INVERT",eP="SELECT_NONE",tP=[],nP=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat(rt(n),rt(nP(e,t[e]))))})),n},oP=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:p,columnWidth:g,type:m,selections:b,fixed:y,renderCell:x,hideSelectAll:C,checkStrictly:w=!0}=t||{},{prefixCls:S,data:k,pageData:E,getRecordByKey:O,getRowKey:$,expandType:N,childrenColumnName:M,locale:I,getPopupContainer:L}=e,A=To("Table"),[D,T]=function(e){const[t,n]=h(null);return[v(((o,r,i)=>{const a=null!=t?t:o,s=Math.min(a||0,o),l=Math.max(a||0,o),c=r.slice(s,l+1).map((t=>e(t))),u=c.some((e=>!i.has(e))),d=[];return c.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?l:null),d}),[t]),e=>{n(e)}]}((e=>e)),[j,R]=yi(r||i||tP,{value:r}),_=o.useRef(new Map),z=v((e=>{if(n){const t=new Map;e.forEach((e=>{let n=O(e);!n&&_.current.has(e)&&(n=_.current.get(e)),t.set(e,n)})),_.current=t}}),[O,n]);o.useEffect((()=>{z(j)}),[j]);const{keyEntities:B}=f((()=>{if(w)return{keyEntities:null};let e=k;if(n){const t=new Set(k.map(((e,t)=>$(e,t)))),n=Array.from(_.current).reduce(((e,n)=>{let[o,r]=n;return t.has(o)?e:e.concat(r)}),[]);e=[].concat(rt(e),rt(n))}return cS(e,{externalGetKey:$,childrenPropName:M})}),[k,$,w,M,n]),H=f((()=>nP(M,E)),[M,E]),F=f((()=>{const e=new Map;return H.forEach(((t,n)=>{const o=$(t,n),r=(a?a(t):null)||{};e.set(o,r),"production"!==process.env.NODE_ENV&&A(!("checked"in r||"defaultChecked"in r),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")})),e}),[H,$,a]),V=v((e=>{var t;return!!(null===(t=F.get($(e)))||void 0===t?void 0:t.disabled)}),[F,$]),[W,K]=f((()=>{if(w)return[j||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=hS(j,!0,B,V);return[e||[],t]}),[j,w,B,V]),q=f((()=>{const e="radio"===m?W.slice(0,1):W;return new Set(e)}),[W,m]),X=f((()=>"radio"===m?new Set:new Set(K)),[K,m]);o.useEffect((()=>{t||R(tP)}),[!!t]);const U=v(((e,t)=>{let o,r;z(e),n?(o=e,r=e.map((e=>_.current.get(e)))):(o=[],r=[],e.forEach((e=>{const t=O(e);void 0!==t&&(o.push(e),r.push(t))}))),R(o),null==s||s(o,r,{type:t})}),[R,O,s,n]),G=v(((e,t,n,o)=>{if(l){const r=n.map((e=>O(e)));l(O(e),t,r,o)}U(n,"single")}),[l,O,U]),Y=f((()=>{if(!b||C)return null;return(!0===b?[ZI,JI,eP]:b).map((e=>e===ZI?{key:"all",text:I.selectionAll,onSelect(){U(k.map(((e,t)=>$(e,t))).filter((e=>{const t=F.get(e);return!(null==t?void 0:t.disabled)||q.has(e)})),"all")}}:e===JI?{key:"invert",text:I.selectInvert,onSelect(){const e=new Set(q);E.forEach(((t,n)=>{const o=$(t,n),r=F.get(o);(null==r?void 0:r.disabled)||(e.has(o)?e.delete(o):e.add(o))}));const t=Array.from(e);u&&(A.deprecated(!1,"onSelectInvert","onChange"),u(t)),U(t,"invert")}}:e===eP?{key:"none",text:I.selectNone,onSelect(){null==d||d(),U(Array.from(q).filter((e=>{const t=F.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(r)),T(null)}})))}),[b,q,E,$,u,U]),Q=v((e=>{var n;if(!t)return"production"!==process.env.NODE_ENV&&A(!e.includes(QI),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),e.filter((e=>e!==QI));let r=rt(e);const i=new Set(q),a=H.map($).filter((e=>!F.get(e).disabled)),s=a.every((e=>i.has(e))),l=a.some((e=>i.has(e))),u=()=>{const e=[];s?a.forEach((t=>{i.delete(t),e.push(t)})):a.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==c||c(!s,t.map((e=>O(e))),e.map((e=>O(e)))),U(t,"all"),T(null)};let d,f,h;if("radio"!==m){let e;if(Y){const t={getPopupContainer:L,items:Y.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:null!=n?n:t,onClick:()=>{null==r||r(a)},label:o}}))};e=o.createElement("div",{className:`${S}-selection-extra`},o.createElement(eE,{menu:t,getPopupContainer:L},o.createElement("span",null,o.createElement(em,null))))}const t=H.map(((e,t)=>{const n=$(e,t),o=F.get(n)||{};return Object.assign({checked:i.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===H.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),c=n&&t.some((e=>{let{checked:t}=e;return t}));f=o.createElement(kS,{checked:n?r:!!H.length&&s,indeterminate:n?!r&&c:!s&&l,onChange:u,disabled:0===H.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),d=!C&&o.createElement("div",{className:`${S}-selection`},f,e)}h="radio"===m?(e,t,n)=>{const r=$(t,n),a=i.has(r);return{node:o.createElement(wx,Object.assign({},F.get(r),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(r)||G(r,!0,[r],e.nativeEvent)}})),checked:a}}:(e,t,n)=>{var r;const s=$(t,n),l=i.has(s),c=X.has(s),u=F.get(s);let d;return"nest"===N?(d=c,"production"!==process.env.NODE_ENV&&A("boolean"!=typeof(null==u?void 0:u.indeterminate),"usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):d=null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:c,{node:o.createElement(kS,Object.assign({},u,{indeterminate:d,checked:l,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,o=a.findIndex((e=>e===s)),r=W.some((e=>a.includes(e)));if(n&&w&&r){const e=D(o,a,i),t=Array.from(i);null==p||p(!l,t.map((e=>O(e))),e.map((e=>O(e)))),U(t,"multiple")}else{const e=W;if(w){const n=l?FI(e,s):VI(e,s);G(s,!l,n,t)}else{const n=hS([].concat(rt(e),[s]),!0,B,V),{checkedKeys:o,halfCheckedKeys:r}=n;let i=o;if(l){const e=new Set(o);e.delete(s),i=hS(Array.from(e),{checked:!1,halfCheckedKeys:r},B,V).checkedKeys}G(s,!l,i,t)}}T(l?null:o)}})),checked:l}};if(!r.includes(QI))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[qM])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,QI].concat(rt(t))}else r=[QI].concat(rt(r));const v=r.indexOf(QI);"production"!==process.env.NODE_ENV&&A(r.filter((e=>e===QI)).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),r=r.filter(((e,t)=>e!==QI||t===v));const k=r[v-1],E=r[v+1];let M=y;void 0===M&&(void 0!==(null==E?void 0:E.fixed)?M=E.fixed:void 0!==(null==k?void 0:k.fixed)&&(M=k.fixed)),M&&k&&"EXPAND_COLUMN"===(null===(n=k[qM])||void 0===n?void 0:n.columnType)&&void 0===k.fixed&&(k.fixed=M);const I=P(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:b&&"checkbox"===m}),j={fixed:M,width:g,className:`${S}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(f):t.columnTitle:d,render:(e,t,n)=>{const{node:o,checked:r}=h(e,t,n);return x?x(r,t,n,o):o},onCell:t.onCell,[qM]:{className:I}};return r.map((e=>e===QI?j:e))}),[$,H,t,W,q,X,g,Y,N,F,p,G,V]);return[Q,q]};function rP(e,t){return b(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(r=e,(o=n)._antProxy=o._antProxy||{},Object.keys(r).forEach((e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}})),o);var o,r}))}const iP=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function aP(e,t){return t?`${t}-${e}`:`${e}`}const sP=(e,t)=>"function"==typeof e?e(t):e;function lP(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var cP=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],uP=function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,s=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,p=Nt(e,cP),f=ht(o.useState(!0),2),h=f[0],g=f[1],m=o.useContext(DI).prefixCls,v=a&&"hide"!==s;Jt((function(){a&&v!==h&&g(v)}),[a]);var b=o.useRef(!1),y=function(){a&&!b.current&&(b.current=!0,c())};!function(e,t){var n=ht(o.useState(!1),2),r=n[0],i=n[1];Jt((function(){if(r)return e(),function(){t()}}),[r]),Jt((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&l()}),y);return a?o.createElement(Da,L({ref:t,visible:h},i,{motionAppear:"show"===s,onVisibleChanged:function(e){v===e&&y()}}),(function(e,t){var n=e.className,r=e.style;return o.createElement("div",{ref:t,className:P("".concat(m,"-treenode-motion"),n),style:r},a.map((function(e){var t=Object.assign({},(lP(e.data),e.data)),n=e.title,r=e.key,i=e.isStart,a=e.isEnd;delete t.children;var s=uS(r,d);return o.createElement(HI,L({},t,s,{title:n,active:u,data:e.data,key:r,isStart:i,isEnd:a}))})))})):o.createElement(HI,L({domRef:t,className:n,style:r},p,{active:u}))};uP.displayName="MotionTreeNode";var dP=o.forwardRef(uP);function pP(e,t,n){var o=e.findIndex((function(e){return e.key===n})),r=e[o+1],i=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(i+1,a)}return t.slice(i+1)}var fP=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],hP={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},gP=function(){},mP="RC_TREE_MOTION_".concat(Math.random()),vP={key:mP},bP={key:mP,level:0,index:0,pos:"0",node:vP,nodes:[vP]},yP={parent:null,children:[],pos:bP.pos,data:vP,title:null,key:mP,isStart:[],isEnd:[]};function xP(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function CP(e){return iS(e.key,e.pos)}var wP=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,s=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,p=e.disabled,f=e.dragging,h=e.dragOverNodeKey,g=e.dropPosition,m=e.motion,v=e.height,b=e.itemHeight,y=e.virtual,x=e.focusable,C=e.activeItem,w=e.focused,S=e.tabIndex,k=e.onKeyDown,E=e.onFocus,O=e.onBlur,$=e.onActiveChange,N=e.onListChangeStart,M=e.onListChangeEnd,I=Nt(e,fP),P=o.useRef(null),A=o.useRef(null);o.useImperativeHandle(t,(function(){return{scrollTo:function(e){P.current.scrollTo(e)},getIndentWidth:function(){return A.current.offsetWidth}}}));var D=ht(o.useState(i),2),T=D[0],j=D[1],R=ht(o.useState(r),2),_=R[0],z=R[1],B=ht(o.useState(r),2),H=B[0],F=B[1],V=ht(o.useState([]),2),W=V[0],K=V[1],q=ht(o.useState(null),2),X=q[0],U=q[1],G=o.useRef(r);function Y(){var e=G.current;z(e),F(e),K([]),U(null),M()}G.current=r,Jt((function(){j(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(T,i);if(null!==e.key)if(e.add){var t=_.findIndex((function(t){return t.key===e.key})),n=xP(pP(_,r,e.key),y,v,b),o=_.slice();o.splice(t+1,0,yP),F(o),K(n),U("show")}else{var a=r.findIndex((function(t){return t.key===e.key})),s=xP(pP(r,_,e.key),y,v,b),l=r.slice();l.splice(a+1,0,yP),F(l),K(s),U("hide")}else _!==r&&(z(r),F(r))}),[i,r]),o.useEffect((function(){f||Y()}),[f]);var Q=m?H:r,Z={expandedKeys:i,selectedKeys:a,loadedKeys:l,loadingKeys:c,checkedKeys:s,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:g,keyEntities:d};return o.createElement(o.Fragment,null,w&&C&&o.createElement("span",{style:hP,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(C)),o.createElement("div",null,o.createElement("input",{style:hP,disabled:!1===x||p,tabIndex:!1!==x?S:null,onKeyDown:k,onFocus:E,onBlur:O,value:"",onChange:gP,"aria-label":"for screen reader"})),o.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:"".concat(n,"-indent")},o.createElement("div",{ref:A,className:"".concat(n,"-indent-unit")}))),o.createElement(Zh,L({},I,{data:Q,itemKey:CP,height:v,fullHeight:!1,virtual:y,itemHeight:b,prefixCls:"".concat(n,"-list"),ref:P,onVisibleChange:function(e){e.every((function(e){return CP(e)!==mP}))&&Y()}}),(function(e){var t=e.pos,n=Object.assign({},(lP(e.data),e.data)),r=e.title,i=e.key,a=e.isStart,s=e.isEnd,l=iS(i,t);delete n.key,delete n.children;var c=uS(l,Z);return o.createElement(dP,L({},n,c,{title:r,active:!!C&&i===C.key,pos:t,data:e.data,isStart:a,isEnd:s,motion:m,motionNodes:i===mP?W:null,motionType:X,onMotionStart:N,onMotionEnd:Y,treeNodeRequiredProps:Z,onMouseMove:function(){$(null)}}))})))}));wP.displayName="NodeList";var SP=function(){Ve(t,o.Component);var e=Ue(t);function t(){var n;ze(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return U(qe(n=e.call.apply(e,[this].concat(i))),"destroyed",!1),U(qe(n),"delayedDragEnterLogic",void 0),U(qe(n),"loadingRetryTimes",{}),U(qe(n),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:aS()}),U(qe(n),"dragStartMousePosition",null),U(qe(n),"dragNode",void 0),U(qe(n),"currentMouseOverDroppableNodeKey",null),U(qe(n),"listRef",o.createRef()),U(qe(n),"onNodeDragStart",(function(e,t){var o=n.state,r=o.expandedKeys,i=o.keyEntities,a=n.props.onDragStart,s=t.props.eventKey;n.dragNode=t,n.dragStartMousePosition={x:e.clientX,y:e.clientY};var l=FI(r,s);n.setState({draggingNodeKey:s,dragChildrenKeys:KI(s,i),indent:n.listRef.current.getIndentWidth()}),n.setExpandedKeys(l),window.addEventListener("dragend",n.onWindowDragEnd),null==a||a({event:e,node:dS(t.props)})})),U(qe(n),"onNodeDragEnter",(function(e,t){var o=n.state,r=o.expandedKeys,i=o.keyEntities,a=o.dragChildrenKeys,s=o.flattenNodes,l=o.indent,c=n.props,u=c.onDragEnter,d=c.onExpand,p=c.allowDrop,f=c.direction,h=t.props,g=h.pos,m=h.eventKey,v=qe(n).dragNode;if(n.currentMouseOverDroppableNodeKey!==m&&(n.currentMouseOverDroppableNodeKey=m),v){var b=XI(e,v,t,l,n.dragStartMousePosition,p,s,i,r,f),y=b.dropPosition,x=b.dropLevelOffset,C=b.dropTargetKey,w=b.dropContainerKey,S=b.dropTargetPos,k=b.dropAllowed,E=b.dragOverNodeKey;-1===a.indexOf(C)&&k?(n.delayedDragEnterLogic||(n.delayedDragEnterLogic={}),Object.keys(n.delayedDragEnterLogic).forEach((function(e){clearTimeout(n.delayedDragEnterLogic[e])})),v.props.eventKey!==t.props.eventKey&&(e.persist(),n.delayedDragEnterLogic[g]=window.setTimeout((function(){if(null!==n.state.draggingNodeKey){var o=rt(r),a=nS(i,t.props.eventKey);a&&(a.children||[]).length&&(o=VI(r,t.props.eventKey)),"expandedKeys"in n.props||n.setExpandedKeys(o),null==d||d(o,{node:dS(t.props),expanded:!0,nativeEvent:e.nativeEvent})}}),800)),v.props.eventKey!==C||0!==x?(n.setState({dragOverNodeKey:E,dropPosition:y,dropLevelOffset:x,dropTargetKey:C,dropContainerKey:w,dropTargetPos:S,dropAllowed:k}),null==u||u({event:e,node:dS(t.props),expandedKeys:r})):n.resetDragState()):n.resetDragState()}else n.resetDragState()})),U(qe(n),"onNodeDragOver",(function(e,t){var o=n.state,r=o.dragChildrenKeys,i=o.flattenNodes,a=o.keyEntities,s=o.expandedKeys,l=o.indent,c=n.props,u=c.onDragOver,d=c.allowDrop,p=c.direction,f=qe(n).dragNode;if(f){var h=XI(e,f,t,l,n.dragStartMousePosition,d,i,a,s,p),g=h.dropPosition,m=h.dropLevelOffset,v=h.dropTargetKey,b=h.dropContainerKey,y=h.dropAllowed,x=h.dropTargetPos,C=h.dragOverNodeKey;-1===r.indexOf(v)&&y&&(f.props.eventKey===v&&0===m?null===n.state.dropPosition&&null===n.state.dropLevelOffset&&null===n.state.dropTargetKey&&null===n.state.dropContainerKey&&null===n.state.dropTargetPos&&!1===n.state.dropAllowed&&null===n.state.dragOverNodeKey||n.resetDragState():g===n.state.dropPosition&&m===n.state.dropLevelOffset&&v===n.state.dropTargetKey&&b===n.state.dropContainerKey&&x===n.state.dropTargetPos&&y===n.state.dropAllowed&&C===n.state.dragOverNodeKey||n.setState({dropPosition:g,dropLevelOffset:m,dropTargetKey:v,dropContainerKey:b,dropTargetPos:x,dropAllowed:y,dragOverNodeKey:C}),null==u||u({event:e,node:dS(t.props)}))}})),U(qe(n),"onNodeDragLeave",(function(e,t){n.currentMouseOverDroppableNodeKey!==t.props.eventKey||e.currentTarget.contains(e.relatedTarget)||(n.resetDragState(),n.currentMouseOverDroppableNodeKey=null);var o=n.props.onDragLeave;null==o||o({event:e,node:dS(t.props)})})),U(qe(n),"onWindowDragEnd",(function(e){n.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",n.onWindowDragEnd)})),U(qe(n),"onNodeDragEnd",(function(e,t){var o=n.props.onDragEnd;n.setState({dragOverNodeKey:null}),n.cleanDragState(),null==o||o({event:e,node:dS(t.props)}),n.dragNode=null,window.removeEventListener("dragend",n.onWindowDragEnd)})),U(qe(n),"onNodeDrop",(function(e,t){var o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n.state,a=i.dragChildrenKeys,s=i.dropPosition,l=i.dropTargetKey,c=i.dropTargetPos;if(i.dropAllowed){var u=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),null!==l){var d=Y(Y({},uS(l,n.getTreeNodeRequiredProps())),{},{active:(null===(o=n.getActiveItem())||void 0===o?void 0:o.key)===l,data:nS(n.state.keyEntities,l).node});K(!(-1!==a.indexOf(l)),"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=WI(c),f={event:e,node:dS(d),dragNode:n.dragNode?dS(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(a),dropToGap:0!==s,dropPosition:s+Number(p[p.length-1])};r||null==u||u(f),n.dragNode=null}}})),U(qe(n),"cleanDragState",(function(){null!==n.state.draggingNodeKey&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null})),U(qe(n),"triggerExpandActionExpand",(function(e,t){var o=n.state,r=o.expandedKeys,i=o.flattenNodes,a=t.expanded,s=t.key;if(!(t.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey)){var l=i.filter((function(e){return e.key===s}))[0],c=dS(Y(Y({},uS(s,n.getTreeNodeRequiredProps())),{},{data:l.data}));n.setExpandedKeys(a?FI(r,s):VI(r,s)),n.onNodeExpand(e,c)}})),U(qe(n),"onNodeClick",(function(e,t){var o=n.props,r=o.onClick;"click"===o.expandAction&&n.triggerExpandActionExpand(e,t),null==r||r(e,t)})),U(qe(n),"onNodeDoubleClick",(function(e,t){var o=n.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&n.triggerExpandActionExpand(e,t),null==r||r(e,t)})),U(qe(n),"onNodeSelect",(function(e,t){var o=n.state.selectedKeys,r=n.state,i=r.keyEntities,a=r.fieldNames,s=n.props,l=s.onSelect,c=s.multiple,u=t.selected,d=t[a.key],p=!u,f=(o=p?c?VI(o,d):[d]:FI(o,d)).map((function(e){var t=nS(i,e);return t?t.node:null})).filter((function(e){return e}));n.setUncontrolledState({selectedKeys:o}),null==l||l(o,{event:"select",selected:p,node:t,selectedNodes:f,nativeEvent:e.nativeEvent})})),U(qe(n),"onNodeCheck",(function(e,t,o){var r,i=n.state,a=i.keyEntities,s=i.checkedKeys,l=i.halfCheckedKeys,c=n.props,u=c.checkStrictly,d=c.onCheck,p=t.key,f={event:"check",node:t,checked:o,nativeEvent:e.nativeEvent};if(u){var h=o?VI(s,p):FI(s,p);r={checked:h,halfChecked:FI(l,p)},f.checkedNodes=h.map((function(e){return nS(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),n.setUncontrolledState({checkedKeys:h})}else{var g=hS([].concat(rt(s),[p]),!0,a),m=g.checkedKeys,v=g.halfCheckedKeys;if(!o){var b=new Set(m);b.delete(p);var y=hS(Array.from(b),{checked:!1,halfCheckedKeys:v},a);m=y.checkedKeys,v=y.halfCheckedKeys}r=m,f.checkedNodes=[],f.checkedNodesPositions=[],f.halfCheckedKeys=v,m.forEach((function(e){var t=nS(a,e);if(t){var n=t.node,o=t.pos;f.checkedNodes.push(n),f.checkedNodesPositions.push({node:n,pos:o})}})),n.setUncontrolledState({checkedKeys:m},!1,{halfCheckedKeys:v})}null==d||d(r,f)})),U(qe(n),"onNodeLoad",(function(e){var t,o=e.key,r=nS(n.state.keyEntities,o);if(null==r||null===(t=r.children)||void 0===t||!t.length){var i=new Promise((function(t,r){n.setState((function(i){var a=i.loadedKeys,s=void 0===a?[]:a,l=i.loadingKeys,c=void 0===l?[]:l,u=n.props,d=u.loadData,p=u.onLoad;return d&&-1===s.indexOf(o)&&-1===c.indexOf(o)?(d(e).then((function(){var r=VI(n.state.loadedKeys,o);null==p||p(r,{event:"load",node:e}),n.setUncontrolledState({loadedKeys:r}),n.setState((function(e){return{loadingKeys:FI(e.loadingKeys,o)}})),t()})).catch((function(e){if(n.setState((function(e){return{loadingKeys:FI(e.loadingKeys,o)}})),n.loadingRetryTimes[o]=(n.loadingRetryTimes[o]||0)+1,n.loadingRetryTimes[o]>=10){var i=n.state.loadedKeys;K(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:VI(i,o)}),t()}r(e)})),{loadingKeys:VI(c,o)}):null}))}));return i.catch((function(){})),i}})),U(qe(n),"onNodeMouseEnter",(function(e,t){var o=n.props.onMouseEnter;null==o||o({event:e,node:t})})),U(qe(n),"onNodeMouseLeave",(function(e,t){var o=n.props.onMouseLeave;null==o||o({event:e,node:t})})),U(qe(n),"onNodeContextMenu",(function(e,t){var o=n.props.onRightClick;o&&(e.preventDefault(),o({event:e,node:t}))})),U(qe(n),"onFocus",(function(){var e=n.props.onFocus;n.setState({focused:!0});for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];null==e||e.apply(void 0,o)})),U(qe(n),"onBlur",(function(){var e=n.props.onBlur;n.setState({focused:!1}),n.onActiveChange(null);for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];null==e||e.apply(void 0,o)})),U(qe(n),"getTreeNodeRequiredProps",(function(){var e=n.state;return{expandedKeys:e.expandedKeys||[],selectedKeys:e.selectedKeys||[],loadedKeys:e.loadedKeys||[],loadingKeys:e.loadingKeys||[],checkedKeys:e.checkedKeys||[],halfCheckedKeys:e.halfCheckedKeys||[],dragOverNodeKey:e.dragOverNodeKey,dropPosition:e.dropPosition,keyEntities:e.keyEntities}})),U(qe(n),"setExpandedKeys",(function(e){var t=n.state,o=lS(t.treeData,e,t.fieldNames);n.setUncontrolledState({expandedKeys:e,flattenNodes:o},!0)})),U(qe(n),"onNodeExpand",(function(e,t){var o=n.state.expandedKeys,r=n.state,i=r.listChanging,a=r.fieldNames,s=n.props,l=s.onExpand,c=s.loadData,u=t.expanded,d=t[a.key];if(!i){var p=o.indexOf(d),f=!u;if(K(u&&-1!==p||!u&&-1===p,"Expand state not sync with index check"),o=f?VI(o,d):FI(o,d),n.setExpandedKeys(o),null==l||l(o,{node:t,expanded:f,nativeEvent:e.nativeEvent}),f&&c){var h=n.onNodeLoad(t);h&&h.then((function(){var e=lS(n.state.treeData,o,a);n.setUncontrolledState({flattenNodes:e})})).catch((function(){var e=FI(n.state.expandedKeys,d);n.setExpandedKeys(e)}))}}})),U(qe(n),"onListChangeStart",(function(){n.setUncontrolledState({listChanging:!0})})),U(qe(n),"onListChangeEnd",(function(){setTimeout((function(){n.setUncontrolledState({listChanging:!1})}))})),U(qe(n),"onActiveChange",(function(e){var t=n.state.activeKey,o=n.props,r=o.onActiveChange,i=o.itemScrollOffset,a=void 0===i?0:i;t!==e&&(n.setState({activeKey:e}),null!==e&&n.scrollTo({key:e,offset:a}),null==r||r(e))})),U(qe(n),"getActiveItem",(function(){var e=n.state,t=e.activeKey,o=e.flattenNodes;return null===t?null:o.find((function(e){return e.key===t}))||null})),U(qe(n),"offsetActiveKey",(function(e){var t=n.state,o=t.flattenNodes,r=t.activeKey,i=o.findIndex((function(e){return e.key===r}));-1===i&&e<0&&(i=o.length);var a=o[i=(i+e+o.length)%o.length];if(a){var s=a.key;n.onActiveChange(s)}else n.onActiveChange(null)})),U(qe(n),"onKeyDown",(function(e){var t=n.state,o=t.activeKey,r=t.expandedKeys,i=t.checkedKeys,a=t.fieldNames,s=n.props,l=s.onKeyDown,c=s.checkable,u=s.selectable;switch(e.which){case Vs.UP:n.offsetActiveKey(-1),e.preventDefault();break;case Vs.DOWN:n.offsetActiveKey(1),e.preventDefault()}var d=n.getActiveItem();if(d&&d.data){var p=n.getTreeNodeRequiredProps(),f=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,h=dS(Y(Y({},uS(o,p)),{},{data:d.data,active:!0}));switch(e.which){case Vs.LEFT:f&&r.includes(o)?n.onNodeExpand({},h):d.parent&&n.onActiveChange(d.parent.key),e.preventDefault();break;case Vs.RIGHT:f&&!r.includes(o)?n.onNodeExpand({},h):d.children&&d.children.length&&n.onActiveChange(d.children[0].key),e.preventDefault();break;case Vs.ENTER:case Vs.SPACE:!c||h.disabled||!1===h.checkable||h.disableCheckbox?c||!u||h.disabled||!1===h.selectable||n.onNodeSelect({},h):n.onNodeCheck({},h,!i.includes(o))}}null==l||l(e)})),U(qe(n),"setUncontrolledState",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!n.destroyed){var r=!1,i=!0,a={};Object.keys(e).forEach((function(t){t in n.props?i=!1:(r=!0,a[t]=e[t])})),!r||t&&!i||n.setState(Y(Y({},a),o))}})),U(qe(n),"scrollTo",(function(e){n.listRef.current.scrollTo(e)})),n}return He(t,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,o=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,i=t.keyEntities,a=t.draggingNodeKey,s=t.activeKey,l=t.dropLevelOffset,c=t.dropContainerKey,u=t.dropTargetKey,d=t.dropPosition,p=t.dragOverNodeKey,f=t.indent,h=this.props,g=h.prefixCls,m=h.className,v=h.style,b=h.showLine,y=h.focusable,x=h.tabIndex,C=void 0===x?0:x,w=h.selectable,S=h.showIcon,k=h.icon,E=h.switcherIcon,O=h.draggable,$=h.checkable,N=h.checkStrictly,M=h.disabled,I=h.motion,D=h.loadData,T=h.filterTreeNode,j=h.height,R=h.itemHeight,_=h.virtual,z=h.titleRender,B=h.dropIndicatorRender,H=h.onContextMenu,F=h.onScroll,V=h.direction,W=h.rootClassName,K=h.rootStyle,q=Ts(this.props,{aria:!0,data:!0});return O&&(e="object"===A(O)?O:"function"==typeof O?{nodeDraggable:O}:{}),o.createElement(DI.Provider,{value:{prefixCls:g,selectable:w,showIcon:S,icon:k,switcherIcon:E,draggable:e,draggingNodeKey:a,checkable:$,checkStrictly:N,disabled:M,keyEntities:i,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:p,indent:f,direction:V,dropIndicatorRender:B,loadData:D,filterTreeNode:T,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},o.createElement("div",{role:"tree",className:P(g,m,W,U(U(U({},"".concat(g,"-show-line"),b),"".concat(g,"-focused"),n),"".concat(g,"-active-focused"),null!==s)),style:K},o.createElement(wP,L({ref:this.listRef,prefixCls:g,style:v,data:r,disabled:M,selectable:w,checkable:!!$,motion:I,dragging:null!==a,height:j,itemHeight:R,virtual:_,focusable:y,focused:n,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:F},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r={prevProps:e};function i(t){return!o&&t in e||o&&o[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=aS(e.fieldNames),r.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(K(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=sS(e.children)),n){r.treeData=n;var s=cS(n,{fieldNames:a});r.keyEntities=Y(U({},mP,bP),s.keyEntities),"production"!==process.env.NODE_ENV&&function(e,t){var n=new Map;!function e(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(o||[]).forEach((function(o){var i=o[t.key],a=o[t.children];K(null!=i,"Tree node must have a certain key: [".concat(r).concat(i,"]"));var s=String(i);K(!n.has(s)||null==i,"Same 'key' exist in the Tree: ".concat(s)),n.set(s,!0),e(a,"".concat(r).concat(s," > "))}))}(e)}(n,a)}var l,c=r.keyEntities||t.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?YI(e.expandedKeys,c):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=Y({},c);delete u[mP];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),r.expandedKeys=d}else!o&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?YI(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var p=lS(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=p}if((e.selectable&&(i("selectedKeys")?r.selectedKeys=UI(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(r.selectedKeys=UI(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?l=GI(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?l=GI(e.defaultCheckedKeys)||{}:n&&(l=GI(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),l)){var f=l,h=f.checkedKeys,g=void 0===h?[]:h,m=f.halfCheckedKeys,v=void 0===m?[]:m;if(!e.checkStrictly){var b=hS(g,!0,c);g=b.checkedKeys,v=b.halfCheckedKeys}r.checkedKeys=g,r.halfCheckedKeys=v}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),t}();U(SP,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return o.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),U(SP,"TreeNode",HI);const kP=new Co("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),EP=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),OP=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Xt(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),$P=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:s}=t,l=t.paddingXS;return{[n]:Object.assign(Object.assign({},Vi(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Ki(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:kP,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[o]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Xt(r)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:Xt(i),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},EP(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:Xt(i),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:l,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${Xt(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:Xt(i),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:Xt(i),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:Xt(i),userSelect:"none"},OP(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Xt(t.calc(i).div(2).equal())} !important`}}}}})}},NP=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:r},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},MP=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.calc(t.paddingXS).div(2).equal(),i=Si(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r});return[$P(e,i),NP(i)]};var IP=Ui("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:mS(`${n}-checkbox`,e)},MP(n,e),rp(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function PP(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:i,direction:a="ltr"}=e,s="ltr"===a?"left":"right",l="ltr"===a?"right":"left",c={[s]:-n*i+4,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[s]=i+4}return r.createElement("div",{style:c,className:`${o}-drop-indicator`})}const LP=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:s,expanded:l,loading:c}=r;if(c)return o.isValidElement(a)?a:o.createElement(qs,{className:`${t}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),s){if(!i)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(r):u,n=`${t}-switcher-line-custom-icon`;return o.isValidElement(e)?_s(e,{className:P(e.props.className||"",n)}):e}return u?o.createElement(PN,{className:`${t}-switcher-line-icon`}):o.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,p="function"==typeof n?n(r):n;return o.isValidElement(p)?_s(p,{className:P(p.props.className||"",d)}):void 0!==p?p:i?l?o.createElement(qN,{className:`${t}-switcher-line-icon`}):o.createElement(GN,{className:`${t}-switcher-line-icon`}):o.createElement(fN,{className:d})},AP=r.forwardRef(((e,t)=>{var n;const{getPrefixCls:o,direction:i,virtual:a,tree:s}=r.useContext(ni),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:p,switcherLoadingIcon:f,blockNode:h=!1,children:g,checkable:m=!1,selectable:v=!0,draggable:b,motion:y,style:x}=e,C=o("tree",l),w=o(),S=null!=y?y:Object.assign(Object.assign({},bl(w)),{motionAppear:!1}),k=Object.assign(Object.assign({},e),{checkable:m,selectable:v,showIcon:u,motion:S,blockNode:h,showLine:Boolean(d),dropIndicatorRender:PP}),[E,O,$]=IP(C),[,N]=Bi(),M=N.paddingXS/2+((null===(n=N.Tree)||void 0===n?void 0:n.titleHeight)||N.controlHeightSM),I=r.useMemo((()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||r.createElement(VN,null)),e}),[b]);return E(r.createElement(SP,Object.assign({itemHeight:M,ref:t,virtual:a},k,{style:Object.assign(Object.assign({},null==s?void 0:s.style),x),prefixCls:C,className:P({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:h,[`${C}-unselectable`]:!v,[`${C}-rtl`]:"rtl"===i},null==s?void 0:s.className,c,O,$),direction:i,checkable:m?r.createElement("span",{className:`${C}-checkbox-inner`}):m,selectable:v,switcherIcon:e=>r.createElement(LP,{prefixCls:C,switcherIcon:p,switcherLoadingIcon:f,treeNodeProps:e,showLine:d}),draggable:I}),g))}));"production"!==process.env.NODE_ENV&&(AP.displayName="Tree");function DP(e,t,n){const{key:o,children:r}=n;e.forEach((function(e){const i=e[o],a=e[r];!1!==t(i,e)&&DP(a||[],t,n)}))}function TP(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r,fieldNames:i}=e;const a=[];let s=0;if(o&&o===r)return[o];if(!o||!r)return[];return DP(t,(e=>{if(2===s)return!1;if(function(e){return e===o||e===r}(e)){if(a.push(e),0===s)s=1;else if(1===s)return s=2,!1}else 1===s&&a.push(e);return n.includes(e)}),aS(i)),a}function jP(e,t,n){const o=rt(t),r=[];return DP(e,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length}),aS(n)),r}var RP=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function _P(e){const{isLeaf:t,expanded:n}=e;return t?o.createElement(PN,null):n?o.createElement(RN,null):o.createElement(BN,null)}function zP(e){let{treeData:t,children:n}=e;return t||sS(n)}const BP=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=RP(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const s=o.useRef(),l=o.useRef(),[c,u]=o.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,p]=o.useState((()=>(()=>{const{keyEntities:e}=cS(zP(a));let t;return t=n?Object.keys(e):r?YI(a.expandedKeys||i||[],e):a.expandedKeys||i||[],t})()));o.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),o.useEffect((()=>{"expandedKeys"in a&&p(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:f,direction:h}=o.useContext(ni),{prefixCls:g,className:m,showIcon:v=!0,expandAction:b="click"}=a,y=RP(a,["prefixCls","className","showIcon","expandAction"]),x=f("tree",g),C=P(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===h},m);return o.createElement(AP,Object.assign({icon:_P,ref:t,blockNode:!0},y,{showIcon:v,expandAction:b,prefixCls:x,className:C,expandedKeys:d,selectedKeys:c,onSelect:(e,t)=>{var n;const{multiple:o,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:p=""}=i,f=zP(a),h=Object.assign(Object.assign({},t),{selected:!0}),g=(null==c?void 0:c.ctrlKey)||(null==c?void 0:c.metaKey),m=null==c?void 0:c.shiftKey;let v;o&&g?(v=e,s.current=p,l.current=v,h.selectedNodes=jP(f,v,r)):o&&m?(v=Array.from(new Set([].concat(rt(l.current||[]),rt(TP({treeData:f,expandedKeys:d,startKey:p,endKey:s.current,fieldNames:r}))))),h.selectedNodes=jP(f,v,r)):(v=[p],s.current=p,l.current=v,h.selectedNodes=jP(f,v,r)),null===(n=a.onSelect)||void 0===n||n.call(a,v,h),"selectedKeys"in a||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||p(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))},HP=o.forwardRef(BP);"production"!==process.env.NODE_ENV&&(HP.displayName="DirectoryTree");const FP=AP;FP.DirectoryTree=HP,FP.TreeNode=HI;const VP=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?o.createElement("div",{className:`${r}-filter-dropdown-search`},o.createElement(Vk,{prefix:o.createElement(om,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},WP=e=>{const{keyCode:t}=e;t===Vs.ENTER&&e.stopPropagation()},KP=o.forwardRef(((e,t)=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:WP,ref:t},e.children)));function qP(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[].concat(rt(t),rt(qP(o))))})),t}function XP(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function UP(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:s}=e;return t.map(((e,t)=>{const l=String(e.value);if(e.children)return{key:l||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:UP({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:s})};const c=i?kS:wx,u={key:void 0!==e.value?l:t,label:o.createElement(o.Fragment,null,o.createElement(c,{checked:r.includes(l)}),o.createElement("span",null,e.text))};return a.trim()?"function"==typeof s?s(a,e)?u:null:XP(a,e.text)?u:null:u}))}function GP(e){return e||[]}"production"!==process.env.NODE_ENV&&(KP.displayName="FilterDropdownMenuWrapper");const YP=e=>{var t,n;const{tablePrefixCls:r,prefixCls:i,column:a,dropdownPrefixCls:s,columnKey:l,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:p=!1,filterState:f,triggerFilter:h,locale:g,children:m,getPopupContainer:v,rootClassName:b}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:x,filterResetToDefaultFilteredValue:C,defaultFilteredValue:w,filterDropdownVisible:S,onFilterDropdownVisibleChange:k}=a,[E,O]=o.useState(!1),$=!(!f||!(null===(t=f.filteredKeys)||void 0===t?void 0:t.length)&&!f.forceFiltered),N=e=>{O(e),null==x||x(e),null==k||k(e)};if("production"!==process.env.NODE_ENV){const e=To("Table");[["filterDropdownVisible","filterDropdownOpen",S],["onFilterDropdownVisibleChange","onFilterDropdownOpenChange",k]].forEach((t=>{let[n,o,r]=t;e.deprecated(null==r,n,o)}))}const M=null!==(n=null!=y?y:S)&&void 0!==n?n:E,I=null==f?void 0:f.filteredKeys,[L,A]=function(e){const t=o.useRef(e),n=dm();return[()=>t.current,e=>{t.current=e,n()}]}(GP(I)),D=e=>{let{selectedKeys:t}=e;A(t)},T=(e,t)=>{let{node:n,checked:o}=t;D(u?{selectedKeys:e}:{selectedKeys:o&&n.key?[n.key]:[]})};o.useEffect((()=>{E&&D({selectedKeys:GP(I)})}),[I]);const[j,R]=o.useState([]),_=e=>{R(e)},[z,B]=o.useState(""),H=e=>{const{value:t}=e.target;B(t)};o.useEffect((()=>{E||B("")}),[E]);const F=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||f&&f.filteredKeys?Mt(t,null==f?void 0:f.filteredKeys,!0)?null:void h({column:a,key:l,filteredKeys:t}):null},V=()=>{N(!1),F(L())},W=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&F([]),t&&N(!1),B(""),A(C?(w||[]).map((e=>String(e))):[])},K=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&N(!1),F(L())},q=P({[`${s}-menu-without-submenu`]:(X=a.filters||[],!X.some((e=>{let{children:t}=e;return t})))});var X;const U=e=>{if(e.target.checked){const e=qP(null==a?void 0:a.filters).map((e=>String(e)));A(e)}else A([])},G=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=G({filters:e.children})),o}))},Y=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Y(e))))||[]})};let Q;const{direction:Z,renderEmpty:J}=o.useContext(ni);if("function"==typeof a.filterDropdown)Q=a.filterDropdown({prefixCls:`${s}-custom`,setSelectedKeys:e=>D({selectedKeys:e}),selectedKeys:L(),confirm:K,clearFilters:W,filters:a.filters,visible:M,close:()=>{N(!1)}});else if(a.filterDropdown)Q=a.filterDropdown;else{const e=L()||[],t=()=>{var t;const n=null!==(t=null==J?void 0:J("Table.filter"))&&void 0!==t?t:o.createElement(kg,{image:kg.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(a.filters||[]).length)return n;if("tree"===d)return o.createElement(o.Fragment,null,o.createElement(VP,{filterSearch:p,value:z,onChange:H,tablePrefixCls:r,locale:g}),o.createElement("div",{className:`${r}-filter-dropdown-tree`},u?o.createElement(kS,{checked:e.length===qP(a.filters).length,indeterminate:e.length>0&&e.length<qP(a.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:U},g.filterCheckall):null,o.createElement(FP,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:`${s}-menu`,onCheck:T,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:G({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:z.trim()?e=>"function"==typeof p?p(z,Y(e)):XP(z,e.title):void 0})));const l=UP({filters:a.filters||[],filterSearch:p,prefixCls:i,filteredKeys:L(),filterMultiple:u,searchValue:z}),c=l.every((e=>null===e));return o.createElement(o.Fragment,null,o.createElement(VP,{filterSearch:p,value:z,onChange:H,tablePrefixCls:r,locale:g}),c?n:o.createElement(zy,{selectable:!0,multiple:u,prefixCls:`${s}-menu`,className:q,onSelect:D,onDeselect:D,selectedKeys:e,getPopupContainer:v,openKeys:j,onOpenChange:_,items:l}))},n=()=>C?Mt((w||[]).map((e=>String(e))),e,!0):0===e.length;Q=o.createElement(o.Fragment,null,t(),o.createElement("div",{className:`${i}-dropdown-btns`},o.createElement(Ac,{type:"link",size:"small",disabled:n(),onClick:()=>W()},g.filterReset),o.createElement(Ac,{type:"primary",size:"small",onClick:V},g.filterConfirm)))}a.filterDropdown&&(Q=o.createElement(Sy,{selectable:void 0},Q));let ee;return ee="function"==typeof a.filterIcon?a.filterIcon($):a.filterIcon?a.filterIcon:o.createElement(DN,null),o.createElement("div",{className:`${i}-column`},o.createElement("span",{className:`${r}-column-title`},m),o.createElement(eE,{dropdownRender:()=>o.createElement(KP,{className:`${i}-dropdown`},Q),trigger:["click"],open:M,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==I&&A(GP(I)),N(e),e||a.filterDropdown||!c||V())},getPopupContainer:v,placement:"rtl"===Z?"bottomLeft":"bottomRight",rootClassName:b},o.createElement("span",{role:"button",tabIndex:-1,className:P(`${i}-trigger`,{active:$}),onClick:e=>{e.stopPropagation()}},ee)))},QP=(e,t,n)=>{let o=[];return(e||[]).forEach(((e,r)=>{var i;const a=aP(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:iP(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:iP(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat(rt(o),rt(QP(e.children,t,a))))})),o};function ZP(e,t,n,r,i,a,s,l,c){return n.map(((n,u)=>{const d=aP(u,l),{filterOnClose:p=!0,filterMultiple:f=!0,filterMode:h,filterSearch:g}=n;let m=n;if(m.filters||m.filterDropdown){const l=iP(m,d),u=r.find((e=>{let{key:t}=e;return l===t}));m=Object.assign(Object.assign({},m),{title:r=>o.createElement(YP,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:l,filterState:u,filterOnClose:p,filterMultiple:f,filterMode:h,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:s,rootClassName:c},sP(n.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:ZP(e,t,m.children,r,i,a,s,d,c)})),m}))}const JP=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;const i=n,{filters:a,filterDropdown:s}=r;if(s)t[i]=o||null;else if(Array.isArray(o)){const e=qP(a);t[i]=e.filter((e=>o.includes(String(e))))}else t[i]=null})),t},eL=(e,t,n)=>{const o=t.reduce(((e,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:a}=o;return r&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((o=>{const a=qP(i),s=a.findIndex((e=>String(e)===String(o))),l=-1!==s?a[s]:o;return e[n]&&(e[n]=eL(e[n],t,n)),r(l,e)})))):e}),e);return o},tL=e=>e.flatMap((e=>"children"in e?[e].concat(rt(tL(e.children||[]))):[e])),nL=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:s,rootClassName:l}=e,c=To("Table"),u=o.useMemo((()=>tL(r||[])),[r]),[d,p]=o.useState((()=>QP(u,!0))),f=o.useMemo((()=>{const e=QP(u,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(u||[]).map(((e,t)=>iP(e,aP(t))));return d.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=u[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return"production"!==process.env.NODE_ENV&&c(n,"usage","Columns should all contain `filteredValue` or not contain `filteredValue`."),e}),[u,d]),h=o.useMemo((()=>JP(f)),[f]),g=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),p(t),i(JP(t),t)};return[e=>ZP(t,n,e,f,s,g,a,void 0,l),f,h]};var oL=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 rL=10;const iL="ascend",aL="descend",sL=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,lL=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,cL=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:iP(e,t),multiplePriority:sL(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=aP(i,n);e.children?("sortOrder"in e&&r(e,a),o=[].concat(rt(o),rt(cL(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&o.push({column:e,key:iP(e,a),multiplePriority:sL(e),sortOrder:e.defaultSortOrder}))})),o},uL=(e,t,n,r,i,a,s,l)=>{const c=(t||[]).map(((t,c)=>{const u=aP(c,l);let d=t;if(d.sorter){const l=d.sortDirections||i,c=void 0===d.showSorterTooltip?s:d.showSorterTooltip,p=iP(d,u),f=n.find((e=>{let{key:t}=e;return t===p})),h=f?f.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(l,h);let m;if(t.sortIcon)m=t.sortIcon({sortOrder:h});else{const t=l.includes(iL)&&o.createElement(yN,{className:P(`${e}-column-sorter-up`,{active:h===iL})}),n=l.includes(aL)&&o.createElement(mN,{className:P(`${e}-column-sorter-down`,{active:h===aL})});m=o.createElement("span",{className:P(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:b,triggerDesc:y}=a||{};let x=v;g===aL?x=y:g===iL&&(x=b);const C="object"==typeof c?Object.assign({title:x},c):{title:x};d=Object.assign(Object.assign({},d),{className:P(d.className,{[`${e}-column-sort`]:h}),title:n=>{const r=`${e}-column-sorters`,i=o.createElement("span",{className:`${e}-column-title`},sP(t.title,n)),a=o.createElement("div",{className:r},i,m);return c?"boolean"!=typeof c&&"sorter-icon"===(null==c?void 0:c.target)?o.createElement("div",{className:`${r} ${e}-column-sorters-tooltip-target-sorter`},i,o.createElement(Xm,Object.assign({},C),m)):o.createElement(Xm,Object.assign({},C),a):a},onHeaderCell:n=>{var o;const i=(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,n))||{},a=i.onClick,s=i.onKeyDown;i.onClick=e=>{r({column:t,key:p,sortOrder:g,multiplePriority:sL(t)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===Vs.ENTER&&(r({column:t,key:p,sortOrder:g,multiplePriority:sL(t)}),null==s||s(e))};const l=((e,t)=>{const n=sP(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),c=null==l?void 0:l.toString();return h?i["aria-sort"]="ascend"===h?"ascending":"descending":i["aria-label"]=c||"",i.className=P(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!=l?l:"").toString()),i}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:uL(e,d.children,n,r,i,a,s,u)})),d}));return c},dL=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},pL=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(dL);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},dL(e[t])),{column:void 0})}return t.length<=1?t[0]||{}:t},fL=(e,t,n)=>{const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return lL(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n<i.length;n+=1){const o=i[n],{column:{sorter:r},sortOrder:a}=o,s=lL(r);if(s&&a){const n=s(e,t,a);if(0!==n)return a===iL?n:-n}}return 0})).map((e=>{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:fL(o,t,n)}):e})):r},hL=(e,t)=>{const n=e.map((e=>{const n=Object.assign({},e);return n.title=sP(e.title,t),"children"in n&&(n.children=hL(n.children,t)),n}));return n},gL=xI(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),mL=AI(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),vL=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${Xt(n)} ${o} ${r}`,u=(e,o,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Xt(l(o).mul(-1).equal())}\n ${Xt(l(l(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Xt(l(a).mul(-1).equal())} ${Xt(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Xt(n)} 0 ${Xt(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},bL=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Fi),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},yL=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},xL=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:p,tableExpandedRowBg:f,paddingXXS:h,expandIconMarginTop:g,expandIconSize:m,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${Xt(r)} ${a} ${s}`,C=y(h).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Hi(e)),{position:"relative",float:"left",boxSizing:"border-box",width:m,height:m,padding:0,color:"inherit",lineHeight:Xt(m),background:l,border:x,borderRadius:u,transform:`scale(${b})`,transition:`all ${o}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:r},"&::after":{top:C,bottom:C,insetInlineStart:v,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Xt(y(d).mul(-1).equal())} ${Xt(y(p).mul(-1).equal())}`,padding:`${Xt(d)} ${Xt(p)}`}}}},CL=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:p,fontSizeSM:f,tablePaddingHorizontal:h,borderRadius:g,motionDurationSlow:m,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:w,controlItemBgHover:S,controlItemBgActive:k,boxShadowSecondary:E,filterDropdownMenuBg:O,calc:$}=e,N=`${n}-dropdown`,M=`${t}-filter-dropdown`,I=`${n}-tree`,P=`${Xt(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(a).mul(-1).equal(),marginInline:`${Xt(a)} ${Xt($(h).div(2).mul(-1).equal())}`,padding:`0 ${Xt(a)}`,color:p,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},Vi(e)),{minWidth:r,backgroundColor:C,borderRadius:g,boxShadow:E,overflow:"hidden",[`${N}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:O,"&:empty::after":{display:"block",padding:`${Xt(s)} 0`,color:x,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${Xt(s)} 0`,paddingInline:s,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:S},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${M}-search`]:{padding:s,borderBottom:P,"&-input":{input:{minWidth:i},[o]:{color:x}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Xt($(s).sub(c).equal())} ${Xt(s)}`,overflow:"hidden",borderTop:P}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},wL=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=o;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},SL=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Xt(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},kL=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Xt(n)} ${Xt(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Xt(n)} ${Xt(n)}`}}}}},EL=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},OL=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:i,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:p,tablePaddingHorizontal:f,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(r).add(h(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(c).add(h(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(r).add(h(i).div(4)).add(h(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:Xt(h(f).div(4).equal()),[o]:{color:s,fontSize:r,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},$L=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${Xt(r)} ${Xt(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Xt(o(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Xt(o(r).mul(-1).equal())} ${Xt(o(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Xt(o(r).mul(-1).equal()),marginInline:`${Xt(o(n).sub(i).equal())} ${Xt(o(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Xt(o(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},NL=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},ML=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:d}=e,p=`${Xt(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Xt(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},IL=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,i=`${Xt(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${Xt(r(n).mul(-1).equal())} 0 ${o}`}}}},PL=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:i,calc:a}=e,s=`${Xt(o)} ${r} ${i}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Xt(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(o).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},LL=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:i,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:p,motionDurationMid:f,tableHeaderBg:h,tableHeaderCellSplitColor:g,tableFooterTextColor:m,tableFooterBg:v,calc:b}=e,y=`${Xt(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},Vi(e)),{fontSize:c,background:u,borderRadius:`${Xt(d)} ${Xt(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Xt(d)} ${Xt(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${Xt(o)} ${Xt(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Xt(o)} ${Xt(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:Xt(b(o).mul(-1).equal()),marginInline:`${Xt(b(i).sub(r).equal())}\n ${Xt(b(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${Xt(o)} ${Xt(r)}`,color:m,background:v}})}};var AL=Ui("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:i,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:p,rowExpandedBg:f,cellPaddingBlock:h,cellPaddingInline:g,cellPaddingBlockMD:m,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:C,footerColor:w,headerBorderRadius:S,cellFontSize:k,cellFontSizeMD:E,cellFontSizeSM:O,headerSplitColor:$,fixedHeaderSortActiveBg:N,headerFilterHoverBg:M,filterDropdownBg:I,expandIconBg:P,selectionColumnWidth:L,stickyScrollBarBg:A,calc:D}=e,T=Si(e,{tableFontSize:k,tableBg:o,tableRadius:S,tablePaddingVertical:h,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:m,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:w,tableFooterBg:C,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:I,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:p,zIndexTableFixed:2,zIndexTableSticky:D(2).add(1).equal({unit:!1}),tableFontSizeMiddle:E,tableFontSizeSmall:O,tableSelectionColumnWidth:L,tableExpandIconBg:P,tableExpandColumnWidth:D(r).add(D(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:A,tableScrollThumbBgHover:t,tableScrollBg:n});return[LL(T),SL(T),IL(T),NL(T),CL(T),vL(T),kL(T),xL(T),IL(T),yL(T),OL(T),wL(T),ML(T),bL(T),$L(T),EL(T),PL(T)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:p,controlHeight:f,colorTextPlaceholder:h,fontSize:g,fontSizeSM:m,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:C,controlInteractiveSize:w}=e,S=new Vr(r).onBackground(n).toHexShortString(),k=new Vr(i).onBackground(n).toHexShortString(),E=new Vr(t).onBackground(n).toHexShortString(),O=new Vr(y),$=new Vr(x),N=w/2-b,M=2*N+3*b;return{headerBg:E,headerColor:o,headerSortActiveBg:S,headerSortHoverBg:k,bodySortBg:E,rowHoverBg:E,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:p,footerBg:E,footerColor:o,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:S,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:f,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*m-3*b)/2),headerIconColor:O.clone().setAlpha(O.getAlpha()*C).toRgbString(),headerIconHoverColor:$.clone().setAlpha($.getAlpha()*C).toRgbString(),expandIconHalfInner:N,expandIconSize:M,expandIconScale:w/M}}),{unitless:{expandIconScale:!0}});const DL=[],TL=(e,t)=>{var n,r;const{prefixCls:i,className:a,rootClassName:s,style:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:p,pagination:f,rowSelection:g,rowKey:m="key",rowClassName:v,columns:b,children:y,childrenColumnName:x,onChange:C,getPopupContainer:w,loading:S,expandIcon:k,expandable:E,expandedRowRender:O,expandIconColumnIndex:$,indentSize:N,scroll:M,sortDirections:I,locale:L,showSorterTooltip:A={target:"full-header"},virtual:D}=e,T=To("Table");"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&T(!("function"==typeof m&&m.length>1),"usage","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");const j=o.useMemo((()=>b||oI(y)),[b,y]),R=pm(o.useMemo((()=>j.some((e=>e.responsive))),[j])),_=o.useMemo((()=>{const e=new Set(Object.keys(R).filter((e=>R[e])));return j.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[j,R]),z=et(e,["className","style","columns"]),{locale:B=Vo,direction:H,table:F,renderEmpty:V,getPrefixCls:W,getPopupContainer:K}=o.useContext(ni),q=Il(c),X=Object.assign(Object.assign({},B.Table),L),U=p||DL,G=W("table",i),Y=W("dropdown",d),[,Q]=Bi(),Z=Fs(G),[J,ee,te]=AL(G,Z),ne=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:$},E),{expandIcon:null!==(n=null==E?void 0:E.expandIcon)&&void 0!==n?n:null===(r=null==F?void 0:F.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:oe="children"}=ne,re=o.useMemo((()=>U.some((e=>null==e?void 0:e[oe]))?"nest":O||(null==E?void 0:E.expandedRowRender)?"row":null),[U]),ie={body:o.useRef()},ae=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let r=n;if(o){const e=getComputedStyle(o);r=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(G),se=o.useRef(null),le=o.useRef(null);rP(t,(()=>Object.assign(Object.assign({},le.current),{nativeElement:se.current})));const ce=o.useMemo((()=>"function"==typeof m?m:e=>null==e?void 0:e[m]),[m]),[ue]=((e,t,n)=>{const r=o.useRef({});return[function(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function s(e){e.forEach(((e,o)=>{const r=n(e,o);a.set(r,e),e&&"object"==typeof e&&t in e&&s(e[t]||[])}))}s(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(o)}]})(U,oe,ce),de={},pe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var o,r,i,a;const s=Object.assign(Object.assign({},de),e);n&&(null===(o=de.resetPagination)||void 0===o||o.call(de),(null===(r=s.pagination)||void 0===r?void 0:r.current)&&(s.pagination.current=1),f&&(null===(i=f.onChange)||void 0===i||i.call(f,1,null===(a=s.pagination)||void 0===a?void 0:a.pageSize))),M&&!1!==M.scrollToFirstRowOnChange&&ie.body.current&&Hs(0,{getContainer:()=>ie.body.current}),null==C||C(s.pagination,s.filters,s.sorter,{currentDataSource:eL(fL(U,s.sorterStates,oe),s.filterStates,oe),action:t})},[fe,he,ge,me]=(e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:s}=e,[l,c]=o.useState(cL(n,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,o)=>{const r=aP(o,t);if(n.push(iP(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,rt(t))}})),n},d=o.useMemo((()=>{let e=!0;const t=cL(n,!1);if(!t.length){const e=u(n);return l.filter((t=>{let{key:n}=t;return e.includes(n)}))}const o=[];function r(t){e?o.push(t):o.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),o}),[n,l]),p=o.useMemo((()=>{var e,t;const n=d.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[d]),f=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(rt(d.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],c(t),s(pL(t),t)};return[e=>uL(t,e,d,f,r,i,a),d,p,()=>pL(d)]})({prefixCls:G,mergedColumns:_,onSorterChange:(e,t)=>{pe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:I||["ascend","descend"],tableLocale:X,showSorterTooltip:A}),ve=o.useMemo((()=>fL(U,he,oe)),[U,he]);de.sorter=me(),de.sorterStates=he;const[be,ye,xe]=nL({prefixCls:G,locale:X,dropdownPrefixCls:Y,mergedColumns:_,onFilterChange:(e,t)=>{pe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:w||K,rootClassName:P(s,Z)}),Ce=eL(ve,ye,oe);de.filters=xe,de.filterStates=ye;const we=o.useMemo((()=>{const e={};return Object.keys(xe).forEach((t=>{null!==xe[t]&&(e[t]=xe[t])})),Object.assign(Object.assign({},ge),{filters:e})}),[ge,xe]),[Se]=(e=>[o.useCallback((t=>hL(t,e)),[e])])(we),[ke,Ee]=function(e,t,n){const o=n&&"object"==typeof n?n:{},{total:r=0}=o,i=oL(o,["total"]),[a,s]=h((()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:rL}))),l=IO(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(e,t)=>{s({current:null!=e?e:1,pageSize:t||l.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:(e,o)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,o)),u(e,o),t(e,o||(null==l?void 0:l.pageSize))}}),u]}(Ce.length,((e,t)=>{pe({pagination:Object.assign(Object.assign({},de.pagination),{current:e,pageSize:t})},"paginate")}),f);de.pagination=!1===f?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)})),n}(ke,f),de.resetPagination=Ee;const Oe=o.useMemo((()=>{if(!1===f||!ke.pageSize)return Ce;const{current:e=1,total:t,pageSize:n=rL}=ke;return"production"!==process.env.NODE_ENV&&T(e>0,"usage","`current` should be positive number."),Ce.length<t?Ce.length>n?("production"!==process.env.NODE_ENV&&T(!1,"usage","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Ce.slice((e-1)*n,e*n)):Ce:Ce.slice((e-1)*n,e*n)}),[!!f,Ce,null==ke?void 0:ke.current,null==ke?void 0:ke.pageSize,null==ke?void 0:ke.total]),[$e,Ne]=oP({prefixCls:G,data:Ce,pageData:Oe,getRowKey:ce,getRecordByKey:ue,expandType:re,childrenColumnName:oe,locale:X,getPopupContainer:w||K},g);ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||k||function(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:s}=t,l=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:P(l,{[`${l}-spaced`]:!s,[`${l}-expanded`]:s&&a,[`${l}-collapsed`]:s&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}(X),"nest"===re&&void 0===ne.expandIconColumnIndex?ne.expandIconColumnIndex=g?1:0:ne.expandIconColumnIndex>0&&g&&(ne.expandIconColumnIndex-=1),"number"!=typeof ne.indentSize&&(ne.indentSize="number"==typeof N?N:15);const Me=o.useCallback((e=>Se($e(be(fe(e))))),[fe,be,$e]);let Ie,Pe,Le;if(!1!==f&&(null==ke?void 0:ke.total)){let e;e=ke.size?ke.size:"small"===q||"middle"===q?"small":void 0;const t=t=>o.createElement(s$,Object.assign({},ke,{className:P(`${G}-pagination ${G}-pagination-${t}`,ke.className),size:e})),n="rtl"===H?"left":"right",{position:r}=ke;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),o=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||o||i||(Pe=t(n)),e&&(Ie=t(e.toLowerCase().replace("top",""))),o&&(Pe=t(o.toLowerCase().replace("bottom","")))}else Pe=t(n)}"boolean"==typeof S?Le={spinning:S}:"object"==typeof S&&(Le=Object.assign({spinning:!0},S));const Ae=P(te,Z,`${G}-wrapper`,null==F?void 0:F.className,{[`${G}-wrapper-rtl`]:"rtl"===H},a,s,ee),De=Object.assign(Object.assign({},null==F?void 0:F.style),l),Te=void 0!==(null==L?void 0:L.emptyText)?L.emptyText:(null==V?void 0:V("Table"))||o.createElement(Eg,{componentName:"Table"}),je=D?mL:gL,Re={},_e=o.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:o,paddingSM:r}=Q,i=Math.floor(e*t);switch(q){case"large":return 2*n+i;case"small":return 2*o+i;default:return 2*r+i}}),[Q,q]);return D&&(Re.listItemHeight=_e),J(o.createElement("div",{ref:se,className:Ae,style:De},o.createElement(x$,Object.assign({spinning:!1},Le),Ie,o.createElement(je,Object.assign({},Re,z,{ref:le,columns:_,direction:H,expandable:ne,prefixCls:G,className:P({[`${G}-middle`]:"middle"===q,[`${G}-small`]:"small"===q,[`${G}-bordered`]:u,[`${G}-empty`]:0===U.length},te,Z,ee),data:Oe,rowKey:ce,rowClassName:(e,t,n)=>{let o;return o=P("function"==typeof v?v(e,t,n):v),P({[`${G}-row-selected`]:Ne.has(ce(e,t))},o)},emptyText:Te,internalHooks:dM,internalRefs:ie,transformColumns:Me,getContainerWidth:ae})),Pe)))};var jL=o.forwardRef(TL);const RL=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(jL,Object.assign({},e,{ref:t,_renderTimes:n.current}))},_L=o.forwardRef(RL);_L.SELECTION_COLUMN=QI,_L.EXPAND_COLUMN=uM,_L.SELECTION_ALL=ZI,_L.SELECTION_INVERT=JI,_L.SELECTION_NONE=eP,_L.Column=e=>null,_L.ColumnGroup=e=>null,_L.Summary=AM,"production"!==process.env.NODE_ENV&&(_L.displayName="Table");const zL=e=>{const{lineWidth:t,fontSizeIcon:n,calc:o}=e,r=e.fontSizeSM;return Si(e,{tagFontSize:r,tagLineHeight:Xt(o(e.lineHeightSM).mul(r).equal()),tagIconSize:o(n).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},BL=e=>({defaultBg:new Vr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var HL=Ui("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r,calc:i}=e,a=i(o).sub(n).equal(),s=i(t).sub(n).equal();return{[r]:Object.assign(Object.assign({},Vi(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Xt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(zL(e))),BL),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 VL=o.forwardRef(((e,t)=>{const{prefixCls:n,style:r,className:i,checked:a,onChange:s,onClick:l}=e,c=FL(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=o.useContext(ni),p=u("tag",n),[f,h,g]=HL(p),m=P(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},null==d?void 0:d.className,i,h,g);return f(o.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),null==d?void 0:d.style),className:m,onClick:e=>{null==s||s(!a),null==l||l(e)}})))}));var WL=Yi(["Tag","preset"],(e=>(e=>Qi(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(zL(e))),BL);const KL=(e,t,n)=>{const o="string"!=typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var qL=Yi(["Tag","status"],(e=>{const t=zL(e);return[KL(t,"success","Success"),KL(t,"processing","Info"),KL(t,"error","Error"),KL(t,"warning","Warning")]}),BL),XL=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 UL=o.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,children:s,icon:l,color:c,onClose:u,bordered:d=!0,visible:p}=e,f=XL(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:g,tag:m}=o.useContext(ni),[v,b]=o.useState(!0),y=et(f,["closeIcon","closable"]);if("production"!==process.env.NODE_ENV){To("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />")}o.useEffect((()=>{void 0!==p&&b(p)}),[p]);const x=Vm(c),C=function(e){return Fm.includes(e)}(c),w=x||C,S=Object.assign(Object.assign({backgroundColor:c&&!w?c:void 0},null==m?void 0:m.style),a),k=h("tag",n),[E,O,$]=HL(k),N=P(k,null==m?void 0:m.className,{[`${k}-${c}`]:w,[`${k}-has-color`]:c&&!w,[`${k}-hidden`]:!v,[`${k}-rtl`]:"rtl"===g,[`${k}-borderless`]:!d},r,i,O,$),M=e=>{e.stopPropagation(),null==u||u(e),e.defaultPrevented||b(!1)},[,I]=Od(wd(e),wd(m),{closable:!1,closeIconRender:e=>Rs(e,o.createElement("span",{className:`${k}-close-icon`,onClick:M},e),(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),M(t)},className:P(null==e?void 0:e.className,`${k}-close-icon`)})))}),L="function"==typeof f.onClick||s&&"a"===s.type,A=l||null,D=A?o.createElement(o.Fragment,null,A,s&&o.createElement("span",null,s)):s,T=o.createElement("span",Object.assign({},y,{ref:t,className:N,style:S}),D,I,x&&o.createElement(WL,{key:"preset",prefixCls:k}),C&&o.createElement(qL,{key:"status",prefixCls:k}));return E(L?o.createElement(Ml,{component:"Tag"},T):T)})),GL=UL;"production"!==process.env.NODE_ENV&&(GL.displayName="Tag"),GL.CheckableTag=VL;var YL=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 QL={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},ZL=o.forwardRef(((e,t)=>{const{style:n,noStyle:r,disabled:i,tabIndex:a=0}=e,s=YL(e,["style","noStyle","disabled","tabIndex"]);let l={};return r||(l=Object.assign({},QL)),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===Vs.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===Vs.ENTER&&o&&o()},style:l}))})),JL=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},eA=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Hi(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"}}})}},tA=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:pr[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}}),nA=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 - ${Xt(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"}}}},oA=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),rA=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"}},JL(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}}}),tA(e)),eA(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},Hi(e)),{marginInlineStart:e.marginXXS})}),nA(e)),oA(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 iA=Ui("Typography",(e=>[rA(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const aA=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:f,enterIcon:h=o.createElement(NN,null)}=e,g=o.useRef(null),m=o.useRef(!1),v=o.useRef(),[b,y]=o.useState(c);o.useEffect((()=>{y(c)}),[c]),o.useEffect((()=>{var e;if(null===(e=g.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=g.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const x=()=>{u(b.trim())},[C,w,S]=iA(t),k=P(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===a,[`${t}-${f}`]:!!f},r,w,S);return C(o.createElement("div",{className:k,style:i},o.createElement(Fk,{ref:g,maxLength:s,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;m.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;v.current!==t||m.current||n||o||r||i||(t===Vs.ENTER?(x(),null==p||p()):t===Vs.ESC&&d())},onCompositionStart:()=>{m.current=!0},onCompositionEnd:()=>{m.current=!1},onBlur:()=>{x()},"aria-label":n,rows:1,autoSize:l}),null!==h?_s(h,{className:`${t}-edit-content-confirm`}):null))};var sA=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()}},lA={"text/plain":"Text","text/html":"Url",default:"Text"};var cA=function(e,t){var n,o,r,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(r=sA(),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=lA[t.format]||lA.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},uA=M(cA),dA=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 pA(e,t){return o.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}var fA=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 hA=o.forwardRef(((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:s,children:l,direction:c,style:u}=e,d=fA(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:f,typography:h}=o.useContext(ni),g=null!=c?c:f,m=s?le(t,s):t,v=p("typography",n);if("production"!==process.env.NODE_ENV){To("Typography").deprecated(!s,"setContentRef","ref")}const[b,y,x]=iA(v),C=P(v,null==h?void 0:h.className,{[`${v}-rtl`]:"rtl"===g},i,a,y,x),w=Object.assign(Object.assign({},null==h?void 0:h.style),u);return b(o.createElement(r,Object.assign({className:C,style:w,ref:m},d),l))}));function gA(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function mA(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(hA.displayName="Typography");const vA=e=>["string","number"].includes(typeof e),bA=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:s,tabIndex:l,onCopy:c,loading:u}=e;const d=gA(a),p=gA(s),{copied:f,copy:h}=null!=r?r:{},g=n?f:h,m=mA(d[n?1:0],g),v="string"==typeof m?m:g;return o.createElement(Xm,{title:m},o.createElement(ZL,{className:P(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":v,tabIndex:l},n?mA(p[1],o.createElement(Qg,null),!0):mA(p[0],u?o.createElement(qs,null):o.createElement(wN,null),!0)))},yA=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 xA(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+(vA(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 CA=0,wA=4,SA={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function kA(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:s,miscDeps:l,onEllipsis:c}=e,u=o.useMemo((()=>_(r)),[r]),d=o.useMemo((()=>(e=>e.reduce(((e,t)=>e+(vA(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,C]=o.useState(!1),[w,S]=o.useState(CA),[k,E]=o.useState(0),[O,$]=o.useState(null);Jt((()=>{S(t&&n&&d?1:CA)}),[n,r,a,t,u]),Jt((()=>{var e,t,n,o;if(1===w){S(2);const e=m.current&&getComputedStyle(m.current).whiteSpace;$(e)}else if(2===w){const r=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());S(r?3:wA),h(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);E(u+1),c(r)}}),[w]);const N=f?Math.ceil((f[0]+f[1])/2):0;Jt((()=>{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;n-t==1&&(r=o?t:n),h(o?[t,r]:[r,n])}}),[f,N]);const M=o.useMemo((()=>{if(!t)return i(u,!1);if(3!==w||!f||f[0]!==f[1]){const e=i(u,!1);return[wA,CA].includes(w)?e:o.createElement("span",{style:Object.assign(Object.assign({},SA),{WebkitLineClamp:a})},e)}return i(s?u:xA(u,f[0]),x)}),[s,w,f,u].concat(rt(l))),I={width:n,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return o.createElement(o.Fragment,null,M,2===w&&o.createElement(o.Fragment,null,o.createElement(yA,{style:Object.assign(Object.assign(Object.assign({},I),SA),{WebkitLineClamp:a}),ref:v},p),o.createElement(yA,{style:Object.assign(Object.assign(Object.assign({},I),SA),{WebkitLineClamp:a-1}),ref:b},p),o.createElement(yA,{style:Object.assign(Object.assign(Object.assign({},I),SA),{WebkitLineClamp:1}),ref:y},i([],!0))),3===w&&f&&f[0]!==f[1]&&o.createElement(yA,{style:Object.assign(Object.assign({},I),{top:400}),ref:g},i(xA(u,N),!0)),1===w&&o.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const EA=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?o.createElement(Xm,Object.assign({open:!!n&&void 0},i),r):r};"production"!==process.env.NODE_ENV&&(EA.displayName="EllipsisTooltip");var OA=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 $A=o.forwardRef(((e,t)=>{var n;const{prefixCls:r,className:i,style:s,type:l,disabled:u,children:p,ellipsis:h,editable:g,copyable:m,component:v,title:b}=e,y=OA(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:C}=o.useContext(ni),[w]=Go("Text"),S=o.useRef(null),k=o.useRef(null),E=x("typography",r),O=et(y,["mark","code","delete","underline","strong","keyboard","italic"]),[$,N]=pA(g),[M,I]=yi(!1,{value:N.editing}),{triggerType:L=["icon"]}=N,A=e=>{var t;e&&(null===(t=N.onStart)||void 0===t||t.call(N)),I(e)},D=(e=>{const t=c();return d((()=>{t.current=e})),t.current})(M);Jt((()=>{var e;!M&&D&&(null===(e=k.current)||void 0===e||e.focus())}),[M]);const T=e=>{null==e||e.preventDefault(),A(!0)},j=e=>{var t;null===(t=N.onChange)||void 0===t||t.call(N,e),A(!1)},R=()=>{var e;null===(e=N.onCancel)||void 0===e||e.call(N),A(!1)},[z,B]=pA(m),{copied:H,copyLoading:F,onClick:V}=(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:mi((e=>dA(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;uA(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:B,children:p}),[W,K]=o.useState(!1),[q,X]=o.useState(!1),[U,G]=o.useState(!1),[Y,Q]=o.useState(!1),[Z,J]=o.useState(!0),[ee,te]=pA(h,{expandable:!1,symbol:e=>e?null==w?void 0:w.collapse:null==w?void 0:w.expand}),[ne,oe]=yi(te.defaultExpanded||!1,{value:te.expanded}),re=ee&&(!ne||"collapsible"===te.expandable),{rows:ie=1}=te,ae=o.useMemo((()=>re&&(void 0!==te.suffix||te.onEllipsis||te.expandable||$||z)),[re,te,$,z]);Jt((()=>{ee&&!ae&&(K(Nd("webkitLineClamp")),X(Nd("textOverflow")))}),[ae,ee]);const[se,ce]=o.useState(re),ue=o.useMemo((()=>!ae&&(1===ie?q:W)),[ae,q,W]);Jt((()=>{ce(ue&&re)}),[ue,re]);const de=re&&(se?Y:U),pe=re&&1===ie&&se,fe=re&&ie>1&&se,[he,ge]=o.useState(0),me=e=>{var t;G(e),U!==e&&(null===(t=te.onEllipsis)||void 0===t||t.call(te,e))};o.useEffect((()=>{const e=S.current;if(ee&&se&&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&&Q(t)}}),[ee,se,p,fe,Z,he]),o.useEffect((()=>{const e=S.current;if("undefined"==typeof IntersectionObserver||!e||!se||!re)return;const t=new IntersectionObserver((()=>{J(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[se,re]);const ve=((e,t,n)=>f((()=>!0===e?{title:null!=t?t:n}:a(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e}),[e,t,n]))(te.tooltip,N.text,p),be=o.useMemo((()=>{if(ee&&!se)return[N.text,p,b,ve.title].find(vA)}),[ee,se,b,ve.title,de]);if(M)return o.createElement(aA,{value:null!==(n=N.text)&&void 0!==n?n:"string"==typeof p?p:"",onSave:j,onCancel:R,onEnd:N.onEnd,prefixCls:E,className:i,style:s,direction:C,component:v,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const ye=()=>{const{expandable:e,symbol:t}=te;return e?o.createElement(ZL,{key:"expand",className:`${E}-${ne?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;oe(t.expanded),null===(n=te.onExpand)||void 0===n||n.call(te,e,t)})(e,{expanded:!ne}),"aria-label":ne?w.collapse:null==w?void 0:w.expand},"function"==typeof t?t(ne):t):null},xe=()=>{if(!$)return;const{icon:e,tooltip:t,tabIndex:n}=N,r=_(t)[0]||(null==w?void 0:w.edit),i="string"==typeof r?r:"";return L.includes("icon")?o.createElement(Xm,{key:"edit",title:!1===t?"":r},o.createElement(ZL,{ref:k,className:`${E}-edit`,onClick:T,"aria-label":i,tabIndex:n},e||o.createElement(EN,{role:"button"}))):null},Ce=e=>[e&&ye(),xe(),z?o.createElement(bA,Object.assign({key:"copy"},B,{prefixCls:E,copied:H,locale:w,onCopy:V,loading:F,iconOnly:null==p})):null];return o.createElement(Je,{onResize:e=>{let{offsetWidth:t}=e;ge(t)},disabled:!re},(n=>o.createElement(EA,{tooltipProps:ve,enableEllipsis:re,isEllipsis:de},o.createElement(hA,Object.assign({className:P({[`${E}-${l}`]:l,[`${E}-disabled`]:u,[`${E}-ellipsis`]:ee,[`${E}-ellipsis-single-line`]:pe,[`${E}-ellipsis-multiple-line`]:fe},i),prefixCls:r,style:Object.assign(Object.assign({},s),{WebkitLineClamp:fe?ie:void 0}),component:v,ref:le(n,S,t),direction:C,onClick:L.includes("text")?T:void 0,"aria-label":null==be?void 0:be.toString(),title:b},O),o.createElement(kA,{enableMeasure:re&&!se,text:p,rows:ie,width:he,onEllipsis:me,expanded:ne,miscDeps:[H,ne,F,$,z]},((t,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}(e,o.createElement(o.Fragment,null,t.length>0&&n&&!ne&&be?o.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!ne&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),te.suffix,Ce(e)])(n)))))))))}));var NA=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 MA=o.forwardRef(((e,t)=>{var{ellipsis:n,rel:r}=e,i=NA(e,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=To("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($A,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))})),IA=o.forwardRef(((e,t)=>o.createElement($A,Object.assign({ref:t},e,{component:"div"}))));var PA=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 LA=(e,t)=>{var{ellipsis:n}=e,r=PA(e,["ellipsis"]);const i=o.useMemo((()=>n&&"object"==typeof n?et(n,["expandable","rows"]):n),[n]);if("production"!==process.env.NODE_ENV){const e=To("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($A,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))};var AA=o.forwardRef(LA),DA=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 TA=[1,2,3,4,5],jA=o.forwardRef(((e,t)=>{const{level:n=1}=e,r=DA(e,["level"]);if("production"!==process.env.NODE_ENV){const e=To("Typography.Title");"production"!==process.env.NODE_ENV&&e(TA.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=TA.includes(n)?`h${n}`:"h1";return o.createElement($A,Object.assign({ref:t},r,{component:i}))})),RA=hA;function _A(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))}}RA.Text=AA,RA.Link=MA,RA.Title=jA,RA.Paragraph=IA;_A(".placeHolder {\n line-height: normal;\n position: absolute;\n bottom: 50%;\n transform: translateY(50%);\n left: 11px;\n color: #000000;\n z-index: 1 !important;\n}\n.requiredText {\n opacity: 60%;\n color: #686869 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n}\n.star {\n color: rgba(255, 40, 25, 1);\n display: inline-block;\n transform: translateX(1.5px);\n}\n\n.appInput {\n font-size: var(--font-14);\n font-weight: 500;\n position: relative;\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\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.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var zA=function(n){var o=n.className,r=n.label,i=n.name,a=n.value,s=n.dataTestId,l=n.type,u=n.id,p=n.disabled,f=n.handleChange,g=n.onClick,m=n.defaultValue,v=n.onPressEnter,b=n.isAutoFocus,y=n.triggerFocus,x=n.isOptional,C=n.errorMessage,w=n.suffixIcon,S=n.prefixIcon,k=n.required,E=N(n,["className","label","name","value","dataTestId","type","id","disabled","handleChange","onClick","defaultValue","onPressEnter","isAutoFocus","triggerFocus","isOptional","errorMessage","suffixIcon","prefixIcon","required"]),O=c(null),M=h(a||""),I=M[0],P=M[1],L=h(!1),A=L[0],D=L[1];d((function(){b&&O.current&&O.current.focus()}),[y,b]),d((function(){void 0!==a&&P(a)}),[a]);var T=x?"".concat(r," (optional)"):r;return e("div",{className:"appInput ".concat(o),children:[k&&!A&&!I&&e("div",{className:"placeHolder",onClick:function(){var e;return null===(e=O.current)||void 0===e?void 0:e.focus()},children:[t("label",{className:"requiredText",htmlFor:u,children:T}),t("span",{className:"star",children:"*"})]}),t(Vk,$({type:l,"data-test-id":s,id:u,disabled:p,name:i,className:"input",value:I,onChange:function(e){P(e.target.value),D(e.target.value.length>0),null==f||f(e)},onClick:g,defaultValue:m,onPressEnter:v,placeholder:"".concat(k?"":T),ref:O,prefix:S&&S,suffix:w&&w},E)),C&&t("div",{className:"error",children:C})]})};_A(".appButton {\n width: max-content;\n\n .ant-btn {\n padding: 12px;\n height: unset;\n &:hover {\n border-color: transparent !important;\n outline: unset !important;\n box-shadow: unset !important;\n }\n }\n}\n");var BA=function(e){var n=e.type,o=e.size,r=e.className,i=e.handleClick,a=e.icon,s=e.text,l=e.disabled,c=e.iconPosition,u=e.isLoading;return t("div",{className:"appButton ".concat(r),children:t(Ac,{disabled:l,type:n,className:["customBtn",a?"btn-icon":"","right"===c?"iconRight":""].join(" "),size:o,onClick:i,icon:a,loading:u,children:s})})};_A('.sideBar {\n height: 100vh;\n width: max-content;\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 &::after {\n display: none;\n }\n &::before {\n display: none;\n }\n }\n }\n }\n}\n\n.sideBarHead {\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 HA=MO.Sider,FA=function(n){var o=n.links,r=n.sideBarHead,i=n.footerLinks,a=n.className,s=n.activeLink,l=function(e){e&&(window.location.href=e)},c=o.map((function(n){return{key:n.path||n.label,icon:n.path===s&&n.activeIcon?n.activeIcon:n.icon,className:n.path===s?"active":"",label:e("span",{onClick:function(){return function(e,t){t?t():l(e)}(n.path,n.onClick)},children:[t("span",{children:n.label}),n.tag&&t("span",{className:"tag",children:n.tag})]})}})),u=null==i?void 0:i.map((function(e){return{key:e.path,icon:e.path===s&&e.activeIcon?e.activeIcon:e.icon,className:e.path===s?"active":"",label:t("span",{onClick:function(){return l(e.path)},children:e.label})}}));return t("div",{className:"sideBar ".concat(a),children:e(HA,{className:"sider",children:[t("div",{className:"sideBarHead",children:r}),t(zy,{mode:"inline",className:"menu",items:c}),i&&t("div",{className:"footer",children:t(zy,{mode:"inline",items:u})})]})})};_A(".appTextArea {\n .ant-input-outlined {\n border-color: #bfbebe;\n &:hover {\n border-color: #bfbebe;\n }\n }\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var VA=function(n){var o=n.id,r=n.placeholder,i=n.name,a=n.value,s=n.dataTestId,l=n.defaultValue,c=n.onPressEnter,u=n.handleChange,d=n.rows,p=n.cols,f=n.className,h=n.error;return e("div",{className:"appTextArea ".concat(f),children:[t(Vk.TextArea,{"data-test-id":s,id:o,name:i,placeholder:r,value:a,className:"textArea",onChange:u,defaultValue:l,onPressEnter:c,rows:d,cols:p}),h&&t("div",{className:"error",children:h})]})};_A(".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 WA=function(e){var n=e.className,o=e.items,r=e.handleChange,i=e.defaultActiveKey,a=e.activeKey;return t("div",{className:"appTab ".concat(n),children:t(_C,{defaultActiveKey:i,activeKey:a,items:o,onChange:r,className:"tab"})})},KA={searchIcon:e("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:t("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("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:t("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("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:e("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:e("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),t("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"}),t("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"}),t("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:t("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("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"})}),iconHiddenIcon:e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M23.0139 11.7722C22.982 11.6991 22.202 9.96938 20.4601 8.2275C18.8439 6.61313 16.067 4.6875 12.0001 4.6875C7.93323 4.6875 5.15636 6.61313 3.54011 8.2275C1.79823 9.96938 1.01823 11.6962 0.986357 11.7722C0.954306 11.8442 0.937744 11.9221 0.937744 12.0009C0.937744 12.0798 0.954306 12.1577 0.986357 12.2297C1.01823 12.3019 1.79823 14.0316 3.54011 15.7734C5.15636 17.3878 7.93323 19.3125 12.0001 19.3125C16.067 19.3125 18.8439 17.3878 20.4601 15.7734C22.202 14.0316 22.982 12.3047 23.0139 12.2297C23.0459 12.1577 23.0625 12.0798 23.0625 12.0009C23.0625 11.9221 23.0459 11.8442 23.0139 11.7722ZM12.0001 18.1875C9.05823 18.1875 6.48948 17.1169 4.36417 15.0066C3.47324 14.1211 2.71933 13.1078 2.12729 12C2.71916 10.8924 3.47309 9.87932 4.36417 8.99438C6.48948 6.88313 9.05823 5.8125 12.0001 5.8125C14.942 5.8125 17.5107 6.88313 19.636 8.99438C20.5271 9.87932 21.2811 10.8924 21.8729 12C21.2757 13.1447 18.2814 18.1875 12.0001 18.1875ZM12.0001 7.6875C11.1472 7.6875 10.3134 7.94042 9.60421 8.41429C8.89502 8.88815 8.34228 9.56167 8.01588 10.3497C7.68947 11.1377 7.60407 12.0048 7.77047 12.8413C7.93687 13.6779 8.3476 14.4463 8.95071 15.0494C9.55382 15.6525 10.3222 16.0632 11.1588 16.2296C11.9953 16.396 12.8624 16.3106 13.6504 15.9842C14.4384 15.6578 15.112 15.1051 15.5858 14.3959C16.0597 13.6867 16.3126 12.8529 16.3126 12C16.3111 10.8567 15.8563 9.76067 15.0479 8.95225C14.2394 8.14382 13.1434 7.68899 12.0001 7.6875ZM12.0001 15.1875C11.3697 15.1875 10.7534 15.0006 10.2292 14.6503C9.70505 14.3001 9.2965 13.8022 9.05524 13.2198C8.81399 12.6374 8.75086 11.9965 8.87385 11.3781C8.99684 10.7598 9.30042 10.1919 9.7462 9.7461C10.192 9.30032 10.7599 8.99674 11.3783 8.87375C11.9966 8.75076 12.6375 8.81388 13.2199 9.05513C13.8023 9.29639 14.3002 9.70494 14.6504 10.2291C15.0007 10.7533 15.1876 11.3696 15.1876 12C15.1876 12.8454 14.8518 13.6561 14.254 14.2539C13.6562 14.8517 12.8455 15.1875 12.0001 15.1875Z",fill:"black"}),t("path",{d:"M21 3L3 21",stroke:"black","stroke-linecap":"round"})]})};_A(".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 qA=function(n){var o=n.text,r=void 0===o?"Back":o,i=n.href,a=n.className,s=n.backIcon,l=n.onClick;return e("div",{className:"backArrow ".concat(a),onClick:function(e){l?l(e):i&&(window.location.href=i)},children:[t("span",{className:"icon",children:s||KA.backArrow}),r&&t("span",{className:"text",children:r})]})};_A(".appBadge {\n .ribbonWrapper {\n .ant-ribbon-wrapper {\n position: relative;\n .ant-ribbon {\n position: absolute;\n top: 0;\n }\n }\n }\n}\n");var XA=function(e){var n=e.content,o=e.children,r=e.className,i=e.ribbon,a=N(e,["content","children","className","ribbon"]);return t("div",{className:"appBadge ".concat(r),children:t(Ev,$({count:n},a,{children:i?t("div",{className:"ribbonWrapper",children:t(Ev.Ribbon,{text:i.text,color:i.color,placement:i.placement,children:o})}):o}))})};_A(".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: normal;\n }\n}\n"),RA.Text;var UA=function(n){var o=n.className,r=n.text,i=n.number,a=void 0!==i?i.toString().padStart(2,"0"):"";return e("div",{className:"overViewCard ".concat(o),children:[t("span",{className:"text",children:r}),t("span",{children:a})]})};
|
17
|
-
/*!
|
18
|
-
* @kurkle/color v0.3.4
|
19
|
-
* https://github.com/kurkle/color#readme
|
20
|
-
* (c) 2024 Jukka Kurkela
|
21
|
-
* Released under the MIT License
|
22
|
-
*/function GA(e){return e+.5|0}const YA=(e,t,n)=>Math.max(Math.min(e,n),t);function QA(e){return YA(GA(2.55*e),0,255)}function ZA(e){return YA(GA(255*e),0,255)}function JA(e){return YA(GA(e/2.55)/100,0,1)}function eD(e){return YA(GA(100*e),0,100)}const tD={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},nD=[..."0123456789ABCDEF"],oD=e=>nD[15&e],rD=e=>nD[(240&e)>>4]+nD[15&e],iD=e=>(240&e)>>4==(15&e);function aD(e){var t=(e=>iD(e.r)&&iD(e.g)&&iD(e.b)&&iD(e.a))(e)?oD:rD;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const sD=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function lD(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 cD(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 uD(e,t,n){const o=lD(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 dD(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 pD(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(ZA)}function fD(e,t,n){return pD(lD,e,t,n)}function hD(e){return(e%360+360)%360}function gD(e){const t=sD.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?QA(+t[5]):ZA(+t[5]));const r=hD(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return pD(uD,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return pD(cD,e,t,n)}(r,i,a):fD(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}const mD={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"},vD={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 bD;function yD(e){bD||(bD=function(){const e={},t=Object.keys(vD),n=Object.keys(mD);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,mD[i]);i=parseInt(vD[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),bD.transparent=[0,0,0,0]);const t=bD[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const xD=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const CD=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,wD=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function SD(e,t,n){if(e){let o=dD(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=fD(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function kD(e,t){return e?Object.assign(t||{},e):e}function ED(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=ZA(e[3]))):(t=kD(e,{r:0,g:0,b:0,a:1})).a=ZA(t.a),t}function OD(e){return"r"===e.charAt(0)?function(e){const t=xD.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?QA(e):YA(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?QA(n):YA(n,0,255)),o=255&(t[4]?QA(o):YA(o,0,255)),r=255&(t[6]?QA(r):YA(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):gD(e)}class $D{constructor(e){if(e instanceof $D)return e;const t=typeof e;let n;var o,r,i;"object"===t?n=ED(e):"string"===t&&(i=(o=e).length,"#"===o[0]&&(4===i||5===i?r={r:255&17*tD[o[1]],g:255&17*tD[o[2]],b:255&17*tD[o[3]],a:5===i?17*tD[o[4]]:255}:7!==i&&9!==i||(r={r:tD[o[1]]<<4|tD[o[2]],g:tD[o[3]]<<4|tD[o[4]],b:tD[o[5]]<<4|tD[o[6]],a:9===i?tD[o[7]]<<4|tD[o[8]]:255})),n=r||yD(e)||OD(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=kD(this._rgb);return e&&(e.a=JA(e.a)),e}set rgb(e){this._rgb=ED(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${JA(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?aD(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=dD(e),n=t[0],o=eD(t[1]),r=eD(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${r}%, ${JA(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=wD(JA(e.r)),r=wD(JA(e.g)),i=wD(JA(e.b));return{r:ZA(CD(o+n*(wD(JA(t.r))-o))),g:ZA(CD(r+n*(wD(JA(t.g))-r))),b:ZA(CD(i+n*(wD(JA(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new $D(this.rgb)}alpha(e){return this._rgb.a=ZA(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=GA(.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 SD(this._rgb,2,e),this}darken(e){return SD(this._rgb,2,-e),this}saturate(e){return SD(this._rgb,1,e),this}desaturate(e){return SD(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=dD(e);n[0]=hD(n[0]+t),n=fD(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}
|
23
|
-
/*!
|
24
|
-
* Chart.js v4.4.4
|
25
|
-
* https://www.chartjs.org
|
26
|
-
* (c) 2024 Chart.js Contributors
|
27
|
-
* Released under the MIT License
|
28
|
-
*/function ND(){}const MD=(()=>{let e=0;return()=>e++})();function ID(e){return null==e}function PD(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 LD(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function AD(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function DD(e,t){return AD(e)?e:t}function TD(e,t){return void 0===e?t:e}const jD=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function RD(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function _D(e,t,n,o){let r,i,a;if(PD(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(LD(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function zD(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 BD(e){if(PD(e))return e.map(BD);if(LD(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=BD(e[n[r]]);return t}return e}function HD(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function FD(e,t,n,o){if(!HD(e))return;const r=t[e],i=n[e];LD(r)&&LD(i)?VD(r,i,o):t[e]=BD(i)}function VD(e,t,n){const o=PD(t)?t:[t],r=o.length;if(!LD(e))return e;const i=(n=n||{}).merger||FD;let a;for(let t=0;t<r;++t){if(a=o[t],!LD(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 WD(e,t){return VD(e,t,{merger:KD})}function KD(e,t,n){if(!HD(e))return;const o=t[e],r=n[e];LD(o)&&LD(r)?WD(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=BD(r))}const qD={"":e=>e,x:e=>e.x,y:e=>e.y};function XD(e,t){const n=qD[t]||(qD[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 UD(e){return e.charAt(0).toUpperCase()+e.slice(1)}const GD=e=>void 0!==e,YD=e=>"function"==typeof e,QD=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const ZD=Math.PI,JD=2*ZD,eT=JD+ZD,tT=Number.POSITIVE_INFINITY,nT=ZD/180,oT=ZD/2,rT=ZD/4,iT=2*ZD/3,aT=Math.log10,sT=Math.sign;function lT(e,t,n){return Math.abs(e-t)<n}function cT(e){const t=Math.round(e);e=lT(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(aT(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function uT(e){return!isNaN(parseFloat(e))&&isFinite(e)}function dT(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 pT(e){return e*(ZD/180)}function fT(e){return e*(180/ZD)}function hT(e){if(!AD(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function gT(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*ZD&&(i+=JD),{angle:i,distance:r}}function mT(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function vT(e,t){return(e-t+eT)%JD-ZD}function bT(e){return(e%JD+JD)%JD}function yT(e,t,n,o){const r=bT(e),i=bT(t),a=bT(n),s=bT(i-r),l=bT(a-r),c=bT(r-i),u=bT(r-a);return r===i||r===a||o&&i===a||s>l&&c<u}function xT(e,t,n){return Math.max(t,Math.min(n,e))}function CT(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function wT(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 ST=(e,t,n,o)=>wT(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),kT=(e,t,n)=>wT(e,n,(o=>e[o][t]>=n));const ET=["push","pop","shift","splice","unshift"];function OT(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||(ET.forEach((t=>{delete e[t]})),delete e._chartjs)}function $T(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const NT="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function MT(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,NT.call(window,(()=>{o=!1,e.apply(t,n)})))}}const IT=e=>"start"===e?"left":"end"===e?"right":"center",PT=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const LT=e=>0===e||1===e,AT=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*JD/n),DT=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*JD/n)+1,TT={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*oT),easeOutSine:e=>Math.sin(e*oT),easeInOutSine:e=>-.5*(Math.cos(ZD*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=>LT(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=>LT(e)?e:AT(e,.075,.3),easeOutElastic:e=>LT(e)?e:DT(e,.075,.3),easeInOutElastic(e){const t=.1125;return LT(e)?e:e<.5?.5*AT(2*e,t,.45):.5+.5*DT(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-TT.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*TT.easeInBounce(2*e):.5*TT.easeOutBounce(2*e-1)+.5};function jT(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function RT(e){return jT(e)?e:new $D(e)}function _T(e){return jT(e)?e:new $D(e).saturate(.5).darken(.1).hexString()}const zT=["x","y","borderWidth","radius","tension"],BT=["color","borderColor","backgroundColor"];const HT=new Map;function FT(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=HT.get(n);return o||(o=new Intl.NumberFormat(e,t),HT.set(n,o)),o}(t,n).format(e)}const VT={values:e=>PD(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=aT(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),FT(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(aT(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?VT.numeric.call(this,e,t,n):""}};var WT={formatters:VT};const KT=Object.create(null),qT=Object.create(null);function XT(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 UT(e,t,n){return"string"==typeof t?VD(XT(e,t),n):VD(XT(e,""),t)}class GT{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)=>_T(t.backgroundColor),this.hoverBorderColor=(e,t)=>_T(t.borderColor),this.hoverColor=(e,t)=>_T(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 UT(this,e,t)}get(e){return XT(this,e)}describe(e,t){return UT(qT,e,t)}override(e,t){return UT(KT,e,t)}route(e,t,n,o){const r=XT(this,e),i=XT(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 LD(e)?Object.assign({},t,e):TD(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var YT=new GT({_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:BT},numbers:{type:"number",properties:zT}}),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:WT.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 QT(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 ZT(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 JT(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function ej(e,t,n,o){tj(e,t,n,o,null)}function tj(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)*nT;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,JD):e.arc(n,o,g,0,JD),e.closePath();break;case"triangle":u=r?r/2:g,e.moveTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=iT,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=iT,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+rT)*l,d=Math.cos(m+rT)*(r?r/2-c:l),s=Math.sin(m+rT)*l,p=Math.sin(m+rT)*(r?r/2-c:l),e.arc(n-d,o-s,c,m-ZD,m-oT),e.arc(n+p,o-a,c,m-oT,m),e.arc(n+d,o+s,c,m,m+oT),e.arc(n-p,o+a,c,m+oT,m+ZD),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+=rT;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+=rT;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+=rT,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 nj(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 oj(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function rj(e){e.restore()}function ij(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 aj(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 sj(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 lj(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function cj(e,t,n,o,r,i={}){const a=PD(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]),ID(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&&lj(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),ID(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),sj(e,n,o,c,i),o+=Number(r.lineHeight);e.restore()}function uj(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*ZD,ZD,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,ZD,oT,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,oT,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-oT,!0),e.lineTo(n+a.topLeft,o)}const dj=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,pj=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function fj(e,t){const n=(""+e).match(dj);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}function hj(e,t){const n={},o=LD(t),r=o?Object.keys(t):t,i=LD(e)?o?n=>TD(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=+i(e)||0;return n}function gj(e){return hj(e,{top:"y",right:"x",bottom:"y",left:"x"})}function mj(e){return hj(e,["topLeft","topRight","bottomLeft","bottomRight"])}function vj(e){const t=gj(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function bj(e,t){e=e||{},t=t||YT.font;let n=TD(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=TD(e.style,t.style);o&&!(""+o).match(pj)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:TD(e.family,t.family),lineHeight:fj(TD(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:TD(e.weight,t.weight),string:""};return r.string=function(e){return!e||ID(e.size)||ID(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function yj(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 xj(e,t){return Object.assign(Object.create(e),t)}function Cj(e,t=[""],n,o,r=()=>e[0]){const i=n||e;void 0===o&&(o=Lj("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:n=>Cj([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)=>Oj(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=Lj(kj(i,e),n),void 0!==r)return Ej(e,r)?Ij(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)=>Aj(e).includes(t),ownKeys:e=>Aj(e),set(e,t,n){const o=e._storage||(e._storage=r());return e[t]=o[t]=n,delete e._keys,!0}})}function wj(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Sj(e,o),setContext:t=>wj(e,t,n,o),override:r=>wj(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Oj(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let s=o[t];YD(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),Ej(e,l)&&(l=Ij(r._scopes,r,e,l));return l}(t,s,e,n));PD(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(LD(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=Ij(o,r,e,l);t.push(wj(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));Ej(t,s)&&(s=wj(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 Sj(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:YD(n)?n:()=>n,isIndexable:YD(o)?o:()=>o}}const kj=(e,t)=>e?e+UD(t):t,Ej=(e,t)=>LD(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Oj(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const o=n();return e[t]=o,o}function $j(e,t,n){return YD(e)?e(t,n):e}const Nj=(e,t)=>!0===e?t:"string"==typeof e?XD(t,e):void 0;function Mj(e,t,n,o,r){for(const i of t){const t=Nj(n,i);if(t){e.add(t);const i=$j(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 Ij(e,t,n,o){const r=t._rootScopes,i=$j(t._fallback,n,o),a=[...e,...r],s=new Set;s.add(o);let l=Pj(s,a,n,i||n,o);return null!==l&&((void 0===i||i===n||(l=Pj(s,a,i,l,o),null!==l))&&Cj(Array.from(s),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];if(PD(r)&&LD(n))return n;return r||{}}(t,n,o))))}function Pj(e,t,n,o,r){for(;n;)n=Mj(e,t,n,o,r);return n}function Lj(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function Aj(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 Dj=Number.EPSILON||1e-14,Tj=(e,t)=>t<e.length&&!e[t].skip&&e[t],jj=e=>"x"===e?"y":"x";function Rj(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,s=mT(i,r),l=mT(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 _j(e,t="x"){const n=jj(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,s,l,c=Tj(e,0);for(a=0;a<o;++a)if(s=l,l=c,c=Tj(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?sT(r[a-1])!==sT(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=Tj(e,0);for(let u=0;u<o-1;++u)l=c,c=Tj(e,u+1),l&&c&&(lT(t[u],0,Dj)?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=jj(n),r=e.length;let i,a,s,l=Tj(e,0);for(let c=0;c<r;++c){if(a=s,s=l,l=Tj(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 zj(e,t,n){return Math.max(Math.min(e,n),t)}function Bj(e,t,n,o,r){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)_j(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=Rj(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=nj(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=s,s=n<o-1&&nj(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=zj(r.cp1x,t.left,t.right),r.cp1y=zj(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=zj(r.cp2x,t.left,t.right),r.cp2y=zj(r.cp2y,t.top,t.bottom)))}(e,n)}function Hj(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Fj(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function Vj(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 Wj=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const Kj=["top","right","bottom","left"];function qj(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=Kj[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}function Xj(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=Wj(n),i="border-box"===r.boxSizing,a=qj(r,"padding"),s=qj(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(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(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 Uj=e=>Math.round(10*e)/10;function Gj(e,t,n,o){const r=Wj(e),i=qj(r,"margin"),a=Vj(r.maxWidth,e,"clientWidth")||tT,s=Vj(r.maxHeight,e,"clientHeight")||tT,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=e&&Fj(e);if(i){const e=i.getBoundingClientRect(),a=Wj(i),s=qj(a,"border","width"),l=qj(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=Vj(a.maxWidth,i,"clientWidth"),r=Vj(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||tT,maxHeight:r||tT}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=qj(r,"border","width"),t=qj(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=Uj(Math.min(c,a,l.maxWidth)),u=Uj(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Uj(c/2));return(void 0!==t||void 0!==n)&&o&&l.height&&u>l.height&&(u=l.height,c=Uj(Math.floor(u*o))),{width:c,height:u}}function Yj(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 Qj=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Hj()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function Zj(e,t){const n=function(e,t){return Wj(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function Jj(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function eR(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 tR(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=Jj(e,r,n),s=Jj(r,i,n),l=Jj(i,t,n),c=Jj(a,s,n),u=Jj(s,l,n);return Jj(c,u,n)}function nR(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 oR(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 rR(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function iR(e){return"angle"===e?{between:yT,compare:vT,normalize:bT}:{between:CT,compare:(e,t)=>e-t,normalize:e=>e}}function aR({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 sR(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=iR(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}=iR(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(aR({start:y,end:e,loop:p,count:a,style:f})),y=null),n=e,v=g));return null!==y&&h.push(aR({start:y,end:d,loop:p,count:a,style:f})),h}function lR(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=cR(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=cR(o.setContext(xj(r,{type:"segment",p0:i,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),uR(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 cR(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function uR(e,t){if(!t)return!1;const n=[],o=function(e,t){return jT(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}
|
29
|
-
/*!
|
30
|
-
* Chart.js v4.4.4
|
31
|
-
* https://www.chartjs.org
|
32
|
-
* (c) 2024 Chart.js Contributors
|
33
|
-
* Released under the MIT License
|
34
|
-
*/class dR{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=NT.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 pR=new dR;const fR="transparent",hR={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=RT(e||fR),r=o.valid&&RT(t||fR);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class gR{constructor(e,t,n,o){const r=t[n];o=yj([e.to,o,r,e.from]);const i=yj([e.from,r,o]);this._active=!0,this._fn=e.fn||hR[e.type||typeof i],this._easing=TT[e.easing]||TT.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=yj([e.to,t,o,e.from]),this._from=yj([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 mR{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!LD(e))return;const t=Object.keys(YT.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!LD(r))return;const i={};for(const e of t)i[e]=r[e];(PD(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 gR(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?(pR.add(this._chart,n),!0):void 0}}function vR(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 bR(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 yR(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],AD(c)&&(i||0===t||sT(t)===sT(c))&&(t+=c)}return t}}function xR(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function CR(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function wR(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 SR(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]=CR(r,u,i),p[s]=d,p._top=wR(p,a,!0,o.type),p._bottom=wR(p,a,!1,o.type);(p._visualValues||(p._visualValues={}))[s]=d}}function kR(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function ER(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 OR=e=>"reset"===e||"none"===e,$R=(e,t)=>t?e:Object.assign({},e);class NR{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=xR(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&&ER(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=TD(n.xAxisID,kR(e,"x")),i=t.yAxisID=TD(n.yAxisID,kR(e,"y")),a=t.rAxisID=TD(n.rAxisID,kR(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&&OT(this._data,this),e._stacked&&ER(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(LD(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){OT(n,this);const e=this._cachedMeta;ER(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]}}),ET.forEach((t=>{const n="_onData"+UD(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=xR(t.vScale,t),t.stack!==n.stack&&(o=!0,ER(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&SR(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=PD(o[e])?this.parseArrayData(n,o,e,t):LD(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&&SR(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(XD(p,a),d),y:i.parse(XD(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 yR({keys:bR(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=yR(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:bR(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!AD(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],AD(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 LD(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}}(TD(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=vR(e,n),r=vR(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 xj(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 xj(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&&GD(n);if(a)return $R(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(YT.elements[e]),f=l.resolveNamedOptions(d,p,(()=>this.getContext(n,o,t)),u);return f.$shared&&(f.$shared=s,r[i]=Object.freeze($R(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 mR(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||OR(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){OR(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!OR(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&&ER(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 MR(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=$T(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&&(GD(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 IR(e,t,n,o){return PD(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 PR(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(IR(p,d,i,c));return l}function LR(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function AR(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[DR(u,a,s,l)]=!0,r=c)),i[DR(r,a,s,l)]=!0,e.borderSkipped=i}function DR(e,t,n,o){var r,i,a;return o?(a=n,e=TR(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=TR(e,t,n),e}function TR(e,t,n){return"start"===e?t:"end"===e?n:e}function jR(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class RR extends NR{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 PR(e,t,n,o)}parseArrayData(e,t,n,o){return PR(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(XD(h,l),d),u.push(IR(XD(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=LR(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||ID(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||LR(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;AR(g,m,h,i),jR(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(ID(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||MR(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=LR(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&&sT(p)!==sT(l.barEnd)&&(f=0),f+=p);const g=ID(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?sT(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=sT(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=TD(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 ID(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 _R extends NR{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(LD(n[e])){const{key:e="value"}=this._parsing;a=t=>+XD(n[t],e)}for(r=e,i=e+t;r<i;++r)o._parsed[r]=a(r)}}_getRotation(){return pT(this.options.rotation-90)}_getCircumference(){return pT(this.options.circumference)}_getRotationExtents(){let e=JD,t=-JD;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<JD){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)=>yT(e,s,l,!0)?1:Math.max(t,t*n,o,o*n),h=(e,t,o)=>yT(e,s,l,!0)?-1:Math.min(t,t*n,o,o*n),g=f(0,c,d),m=f(oT,u,p),v=h(ZD,c,d),b=h(ZD+oT,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=jD(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/JD)}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)?JD*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=FT(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(TD(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class zR extends NR{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=xT(Math.min(ST(s,l,c).lo,n?o:ST(t,l,a.getPixelForValue(c)).lo),0,o-1)),i=p?xT(Math.max(ST(s,a.axis,u,!0).hi+1,n?0:ST(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=uT(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=ID(x[p]),w=b[d]=i.getPixelForValue(x[d],n),S=b[p]=r||C?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[p],n);b.skip=isNaN(w)||isNaN(S)||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 BR extends _R{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function HR(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?kT:ST;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 FR(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}=HR(i[e],t,a,r);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function VR(e,t,n,o,r){const i=[];if(!r&&!e.isPointInArea(t))return i;return FR(e,n,t,(function(n,a,s){(r||nj(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function WR(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 FR(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 KR(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?WR(e,t,n,o,r,i):function(e,t,n,o){let r=[];return FR(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=gT(e,{x:t.x,y:t.y});yT(l,a,s)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function qR(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return FR(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 XR={evaluateInteractionItems:FR,modes:{index(e,t,n,o){const r=Xj(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?VR(e,r,i,o,a):KR(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=Xj(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?VR(e,r,i,o,a):KR(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)=>VR(e,Xj(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=Xj(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return KR(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>qR(e,Xj(t,e),"x",n.intersect,o),y:(e,t,n,o)=>qR(e,Xj(t,e),"y",n.intersect,o)}};const UR=["left","top","right","bottom"];function GR(e,t){return e.filter((e=>e.pos===t))}function YR(e,t){return e.filter((e=>-1===UR.indexOf(e.pos)&&e.box.axis===t))}function QR(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 ZR(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!UR.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 JR(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function e_(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 t_(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!LD(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&&e_(a,i.getPadding());const s=Math.max(0,t.outerWidth-JR(a,e,"left","right")),l=Math.max(0,t.outerHeight-JR(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 n_(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 o_(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,n_(s.horizontal,t));const{same:a,other:d}=t_(t,n,s,o);c|=a&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&o_(r,t,n,o)||u}function r_(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 i_(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;GD(l.start)&&(a=l.start),e.fullSize?r_(e,r.left,a,n.outerWidth-r.right-r.left,i):r_(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;GD(l.start)&&(i=l.start),e.fullSize?r_(e,i,r.top,a,n.outerHeight-r.bottom-r.top):r_(e,i,t.top+l.placed,a,o),l.start=i,l.placed+=o,i=e.right}}t.x=i,t.y=a}var a_={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=vj(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=QR(t.filter((e=>e.box.fullSize)),!0),o=QR(GR(t,"left"),!0),r=QR(GR(t,"right")),i=QR(GR(t,"top"),!0),a=QR(GR(t,"bottom")),s=YR(t,"x"),l=YR(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:GR(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;_D(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);e_(p,vj(o));const f=Object.assign({maxPadding:p,w:i,h:a,x:r.left,y:r.top},r),h=ZR(l.concat(c),d);o_(s.fullSize,f,d,h),o_(l,f,d,h),o_(c,f,d,h)&&o_(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),i_(s.leftAndTop,f,d,h),f.x+=f.w,f.y+=f.h,i_(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},_D(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 s_{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 l_ extends s_{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const c_="$chartjs",u_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},d_=e=>null===e||""===e;const p_=!!Qj&&{passive:!0};function f_(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,p_)}function h_(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function g_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||h_(n.addedNodes,o),t=t&&!h_(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function m_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||h_(n.removedNodes,o),t=t&&!h_(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const v_=new Map;let b_=0;function y_(){const e=window.devicePixelRatio;e!==b_&&(b_=e,v_.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function x_(e,t,n){const o=e.canvas,r=o&&Fj(o);if(!r)return;const i=MT(((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){v_.size||window.addEventListener("resize",y_),v_.set(e,t)}(e,i),a}function C_(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){v_.delete(e),v_.size||window.removeEventListener("resize",y_)}(e)}function w_(e,t,n){const o=e.canvas,r=MT((t=>{null!==e.ctx&&n(function(e,t){const n=u_[e.type]||e.type,{x:o,y:r}=Xj(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,p_)}(o,t,r),r}class S_ extends s_{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[c_]={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",d_(r)){const t=Zj(e,"width");void 0!==t&&(e.width=t)}if(d_(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=Zj(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[c_])return!1;const n=t[c_].initial;["height","width"].forEach((e=>{const o=n[e];ID(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[c_],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:g_,detach:m_,resize:x_}[t]||w_;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];if(!o)return;({attach:C_,detach:C_,resize:C_}[t]||f_)(e,t,o),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return Gj(e,t,n,o)}isAttached(e){const t=e&&Fj(e);return!(!t||!t.isConnected)}}let k_=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 uT(this.x)&&uT(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 E_(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(O_(t,c,u,ID(o)?0:s-o,s),e=0,n=a-1;e<n;e++)O_(t,c,u,i[e],i[e+1]);return O_(t,c,u,l,ID(o)?t.length:l+o),c}return O_(t,c,u),c}function O_(e,t,n,o,r){const i=TD(o,0),a=Math.min(TD(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 $_=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,N_=(e,t)=>Math.min(t||e,e);function M_(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 I_(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 P_(e){return e.drawTicks?e.tickLength:0}function L_(e,t){if(!e.display)return 0;const n=bj(e.font,t),o=vj(e.padding);return(PD(e.text)?e.text.length:1)*n.lineHeight+o.height}function A_(e,t,n){let o=IT(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class D_ extends k_{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=DD(e,Number.POSITIVE_INFINITY),t=DD(t,Number.NEGATIVE_INFINITY),n=DD(n,Number.POSITIVE_INFINITY),o=DD(o,Number.NEGATIVE_INFINITY),{min:DD(e,n),max:DD(t,o),minDefined:AD(e),maxDefined:AD(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:DD(n,DD(o,n)),max:DD(o,DD(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(){RD(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=jD(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?M_(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=E_(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(){RD(this.options.afterUpdate,[this])}beforeSetDimensions(){RD(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(){RD(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),RD(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){RD(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=RD(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){RD(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){RD(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=N_(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=xT(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-P_(e.grid)-t.padding-L_(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=fT(Math.min(Math.asin(xT((c.highest.height+6)/i,-1,1)),Math.asin(xT(a/s,-1,1))-Math.asin(xT(d/s,-1,1)))),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){RD(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){RD(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=L_(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=P_(r)+i):(e.height=this.maxHeight,e.width=P_(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=pT(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(){RD(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++)ID(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=M_(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/N_(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,ID(d)||PD(d)){if(PD(d))for(c=0,u=d.length;c<u;++c)b=d[c],ID(b)||PD(b)||(m=QT(o,h.data,h.gc,m,b),v+=g)}else m=QT(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){_D(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),S=e=>({width:i[e]||0,height:a[e]||0});return{first:S(0),last:S(t-1),widest:S(C),highest:S(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 xT(this._alignToPixels?ZT(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 xj(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=xj(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=pT(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=P_(r),d=[],p=a.setContext(this.getContext()),f=p.display?p.width:0,h=f/2,g=function(e){return ZT(n,e,f)};let m,v,b,y,x,C,w,S,k,E,O,$;if("top"===i)m=g(this.bottom),C=this.bottom-u,S=m-h,E=g(e.top)+h,$=e.bottom;else if("bottom"===i)m=g(this.top),E=e.top,$=g(e.bottom)-h,C=m+h,S=this.top+u;else if("left"===i)m=g(this.right),x=this.right-u,w=m-h,k=g(e.left)+h,O=e.right;else if("right"===i)m=g(this.left),k=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(LD(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}E=e.top,$=e.bottom,C=m+h,S=C+u}else if("y"===t){if("center"===i)m=g((e.left+e.right)/2);else if(LD(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}x=m-h,w=x-u,k=e.left,O=e.right}const N=TD(o.ticks.maxTicksLimit,c),M=Math.max(1,Math.ceil(c/N));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||[],p=o.dashOffset,f=t.tickWidth,h=t.tickColor,g=t.tickBorderDash||[],m=t.tickBorderDashOffset;b=I_(this,v,s),void 0!==b&&(y=ZT(n,b,i),l?x=w=k=O=y:C=S=E=$=y,d.push({tx1:x,ty1:C,tx2:w,ty2:S,x1:k,y1:E,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=P_(n.grid),p=d+c,f=u?-c:p,h=-pT(this.labelRotation),g=[];let m,v,b,y,x,C,w,S,k,E,O,$,N="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(LD(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(LD(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?N="top":"end"===s&&(N="bottom"));const M=this._getLabelSizes();for(m=0,v=a.length;m<v;++m){b=a[m],y=b.label;const e=r.setContext(this.getContext(m));S=this.getPixelForTick(m)+r.labelOffset,k=this._resolveTickFontOptions(m),E=k.lineHeight,O=PD(y)?y.length:1;const t=O/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,p=w;if(i?(x=S,"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*E+E/2:"center"===l?-M.highest.height/2-t*E+E:-M.highest.height+E/2:"near"===l||0!==h?E/2:"center"===l?M.highest.height/2-t*E:M.highest.height-O*E,u&&($*=-1),0===h||e.showLabelBackdrop||(x+=E/2*Math.sin(h))):(C=S,$=(1-O)*E/2),e.showLabelBackdrop){const t=vj(e.backdropPadding),n=M.heights[m],o=M.widths[m];let r=$-t.top,i=0-t.left;switch(N){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:k,textOffset:$,options:{rotation:h,color:n,strokeColor:s,strokeWidth:c,textAlign:p,textBaseline:N,translation:[x,C],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-pT(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=ZT(e,this.left,i)-i/2,c=ZT(e,this.right,a)+a/2,u=d=s):(u=ZT(e,this.top,i)-i/2,d=ZT(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&&oj(t,n);const o=this.getLabelItems(e);for(const e of o){const n=e.options,o=e.font;cj(t,e.label,0,e.textOffset,o,n)}n&&rj(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=bj(n.font),i=vj(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||LD(t)?(s+=i.bottom,PD(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=PT(o,i,s),LD(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:$_(e,n,t);d=s-i}else{if(LD(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:$_(e,n,t);f=PT(o,a,r),h="left"===n?-oT:oT}return{titleX:p,titleY:f,maxWidth:d,rotation:h}}(this,s,t,a);cj(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:A_(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=TD(e.grid&&e.grid.z,-1),o=TD(e.border&&e.border.z,0);return this._isVisible()&&this.draw===D_.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 bj(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class T_{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=VD(Object.create(null),[n?YT.get(n):{},YT.get(t),e.defaults]);YT.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(".");YT.route(i,r,l,s)}))}(t,e.defaultRoutes);e.descriptors&&YT.describe(t,e.descriptors)}(e,i,n),this.override&&YT.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 YT[o]&&(delete YT[o][n],this.override&&delete KT[n])}}class j_{constructor(){this.controllers=new T_(NR,"datasets",!0),this.elements=new T_(k_,"elements"),this.plugins=new T_(Object,"plugins"),this.scales=new T_(D_,"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):_D(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=UD(e);RD(n["before"+o],[],n),t[e](n),RD(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 R_=new j_;class __{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===RD(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){ID(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=TD(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(R_.plugins.items);for(let e=0;e<o.length;e++)n.push(R_.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=z_(o[t],r);null!==l&&i.push({plugin:s,options:B_(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 z_(e,t){return t||!1!==e?!0===e?{}:e:null}function B_(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 H_(e,t){const n=YT.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function F_(e){if("x"===e||"y"===e||"r"===e)return e}function V_(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function W_(e,...t){if(F_(e))return e;for(const n of t){const t=n.axis||V_(n.position)||e.length>1&&F_(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function K_(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function q_(e,t){const n=KT[e.type]||{scales:{}},o=t.scales||{},r=H_(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!LD(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=W_(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 K_(e,"x",n[0])||K_(e,"y",n[0])}return{}}(t,e),YT.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};i[t]=WD(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||H_(r,t),s=(KT[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),WD(i[r],[{axis:t},o[r],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];WD(t,[YT.scales[t.type],YT.scale])})),i}function X_(e){const t=e.options||(e.options={});t.plugins=TD(t.plugins,{}),t.scales=q_(e,t)}function U_(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const G_=new Map,Y_=new Set;function Q_(e,t){let n=G_.get(e);return n||(n=t(),G_.set(e,n),Y_.add(n)),n}const Z_=(e,t,n)=>{const o=XD(t,n);void 0!==o&&e.add(o)};class J_{constructor(e){this._config=function(e){return(e=e||{}).data=U_(e.data),X_(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=U_(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(),X_(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Q_(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Q_(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Q_(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Q_(`${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=>Z_(s,e,t)))),t.forEach((e=>Z_(s,o,e))),t.forEach((e=>Z_(s,KT[r]||{},e))),t.forEach((e=>Z_(s,YT,e))),t.forEach((e=>Z_(s,qT,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Y_.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,KT[t]||{},YT.datasets[t]||{},{type:t},YT,qT]}resolveNamedOptions(e,t,n,o=[""]){const r={$shared:!0},{resolver:i,subPrefixes:a}=ez(this._resolverCache,e,o);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:o}=Sj(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&(YD(a)||tz(a))||i&&PD(a))return!0}return!1}(i,t)){r.$shared=!1;s=wj(i,n=YD(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}=ez(this._resolverCache,e,n);return LD(t)?wj(r,t,void 0,o):r}}function ez(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:Cj(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)}return i}const tz=e=>LD(e)&&Object.getOwnPropertyNames(e).some((t=>YD(e[t])));const nz=["top","bottom","left","right","chartArea"];function oz(e,t){return"top"===e||"bottom"===e||-1===nz.indexOf(e)&&"x"===t}function rz(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function iz(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),RD(n&&n.onComplete,[e],t)}function az(e){const t=e.chart,n=t.options.animation;RD(n&&n.onProgress,[e],t)}function sz(e){return Hj()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const lz={},cz=e=>{const t=sz(e);return Object.values(lz).filter((e=>e.canvas===t)).pop()};function uz(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 dz(e,t,n){return e.options.clip?e[n]:t[n]}let pz=class{static defaults=YT;static instances=lz;static overrides=KT;static registry=R_;static version="4.4.4";static getChart=cz;static register(...e){R_.add(...e),fz()}static unregister(...e){R_.remove(...e),fz()}constructor(e,t){const n=this.config=new J_(t),o=sz(e),r=cz(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!Hj()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?l_:S_}(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=MD(),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 __,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=[],lz[this.id]=this,a&&s?(pR.listen(this,"complete",iz),pR.listen(this,"progress",az),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 ID(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 R_}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Yj(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return JT(this.canvas,this.ctx),this}stop(){return pR.stop(this),this}resize(e,t){pR.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,Yj(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),RD(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){_D(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=W_(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),_D(r,(t=>{const r=t.options,i=r.id,a=W_(i,r),s=TD(r.type,t.dtype);void 0!==r.position&&oz(r.position,a)===oz(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(R_.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),_D(o,((e,t)=>{e||delete n[t]})),_D(n,(e=>{a_.configure(this,e,e.options),a_.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(rz("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||H_(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=R_.getController(i),{datasetElementType:o,dataElementType:a}=YT.datasets[i];Object.assign(t,{dataElementType:R_.getElement(a),datasetElementType:o&&R_.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){_D(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||_D(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(rz("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_D(this.scales,(e=>{a_.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);QD(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){uz(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(!QD(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;a_.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],_D(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,YD(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})&&(pR.has(this)?this.attached&&!pR.running(this)&&pR.start(this):(this.draw(),iz({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:dz(n,t,"left"),right:dz(n,t,"right"),top:dz(o,t,"top"),bottom:dz(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&oj(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&&rj(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return nj(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=XR.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=xj(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);GD(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(),pR.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(),JT(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete lz[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)};_D(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(){_D(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},_D(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}}));!zD(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,RD(r.onHover,[e,a,this],this),s&&RD(r.onClick,[e,a,this],this));const c=!zD(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 fz(){return _D(pz.instances,(e=>e._plugins.invalidate()))}function hz(e,t,n,o){const r=hj(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 xT(e,0,Math.min(i,t))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:xT(r.innerStart,0,a),innerEnd:xT(r.innerEnd,0,a)}}function gz(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function mz(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/ZD)/d)/2,m=l+g+f,v=r-g-f,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:C}=hz(t,p,d,v-m),w=d-b,S=d-y,k=m+b/w,E=v-y/S,O=p+x,$=p+C,N=m+x/O,M=v-C/$;if(e.beginPath(),i){const t=(k+E)/2;if(e.arc(a,s,d,k,t),e.arc(a,s,d,t,E),y>0){const t=gz(S,E,a,s);e.arc(t.x,t.y,y,E,v+oT)}const n=gz($,v,a,s);if(e.lineTo(n.x,n.y),C>0){const t=gz($,M,a,s);e.arc(t.x,t.y,C,v+oT,M+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=gz(O,N,a,s);e.arc(t.x,t.y,x,N+Math.PI,m-oT)}const r=gz(w,m,a,s);if(e.lineTo(r.x,r.y),b>0){const t=gz(w,k,a,s);e.arc(t.x,t.y,b,m-oT,k)}}else{e.moveTo(a,s);const t=Math.cos(k)*d+a,n=Math.sin(k)*d+s;e.lineTo(t,n);const o=Math.cos(E)*d+a,r=Math.sin(E)*d+s;e.lineTo(o,r)}e.closePath()}function vz(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){mz(e,t,n,o,h,r);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(h=a+(s%JD||JD))}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+oT,o-oT),e.closePath(),e.clip()}(e,t,h),i||(mz(e,t,n,o,h,r),e.stroke())}function bz(e,t,n=t){e.lineCap=TD(n.borderCapStyle,t.borderCapStyle),e.setLineDash(TD(n.borderDash,t.borderDash)),e.lineDashOffset=TD(n.borderDashOffset,t.borderDashOffset),e.lineJoin=TD(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=TD(n.borderWidth,t.borderWidth),e.strokeStyle=TD(n.borderColor,t.borderColor)}function yz(e,t,n){e.lineTo(n.x,n.y)}function xz(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 Cz(e,t,n,o){const{points:r,options:i}=t,{count:a,start:s,loop:l,ilen:c}=xz(r,n,o),u=function(e){return e.stepped?ij:e.tension||"monotone"===e.cubicInterpolationMode?aj:yz}(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 wz(e,t,n,o){const r=t.points,{count:i,start:a,ilen:s}=xz(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 Sz(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?wz:Cz}const kz="function"==typeof Path2D;function Ez(e,t,n,o){kz&&!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()),bz(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=Sz(t);for(const s of r)bz(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 Oz(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}function $z(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 Nz(e,t,n,o){return e?0:xT(t,n,o)}function Mz(e){const t=$z(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=gj(o);return{t:Nz(r.top,i.top,0,n),r:Nz(r.right,i.right,0,t),b:Nz(r.bottom,i.bottom,0,n),l:Nz(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=mj(r),a=Math.min(t,n),s=e.borderSkipped,l=o||LD(r);return{topLeft:Nz(!l||s.top||s.left,i.topLeft,0,a),topRight:Nz(!l||s.top||s.right,i.topRight,0,a),bottomLeft:Nz(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:Nz(!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 Iz(e,t,n,o){const r=null===t,i=null===n,a=e&&!(r&&i)&&$z(e,o);return a&&(r||CT(t,a.left,a.right))&&(i||CT(n,a.top,a.bottom))}function Pz(e,t){e.rect(t.x,t.y,t.w,t.h)}function Lz(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 Az=(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 Dz extends k_{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=RD(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=bj(n.font),r=o.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=Az(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=Tz(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=nR(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=PT(n,this.left+o,this.right-this.lineWidths[r]);for(const s of t)r!==s.row&&(r=s.row,a=PT(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=PT(n,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const s of t)s.col!==r&&(r=s.col,a=PT(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;oj(e,this),this._draw(),rj(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:r,labels:i}=e,a=YT.color,s=nR(e.rtl,this.left,this.width),l=bj(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}=Az(i,u),m=this.isHorizontal(),v=this._computeTitleHeight();p=m?{x:PT(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:PT(r,this.top+v+c,this.bottom-t[0].height),line:0},oR(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)),S=f+d+C;let k=p.x,E=p.y;s.setWidth(this.width),m?x>0&&k+S+c>this.right&&(E=p.y+=b,p.line++,k=p.x=PT(r,this.left+c,this.right-n[p.line])):x>0&&E+b>this.bottom&&(k=p.x=k+t[p.line].width+c,p.line++,E=p.y=PT(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=TD(n.lineWidth,1);if(o.fillStyle=TD(n.fillStyle,a),o.lineCap=TD(n.lineCap,"butt"),o.lineDashOffset=TD(n.lineDashOffset,0),o.lineJoin=TD(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=TD(n.strokeStyle,a),o.setLineDash(TD(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);tj(o,a,l,t+d,i.pointStyleWidth&&f)}else{const i=t+Math.max((u-h)/2,0),a=s.leftForLtr(e,f),l=mj(n.borderRadius);o.beginPath(),Object.values(l).some((e=>0!==e))?uj(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(k),E,y),k=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(w,k+f+d,m?k+S:this.right,e.rtl),function(e,t,n){cj(o,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(k),E,y),m)p.x+=S+c;else if("string"!=typeof y.text){const e=l.lineHeight;p.y+=Tz(y,e)+c}else p.y+=b})),rR(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=bj(t.font),o=vj(t.padding);if(!t.display)return;const r=nR(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=PT(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+PT(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=PT(a,u,u+d);i.textAlign=r.textAlign(IT(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,cj(i,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=bj(e.font),n=vj(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,r;if(CT(e,this.left,this.right)&&CT(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],CT(e,o.left,o.left+o.width)&&CT(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&&RD(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&RD(t.onHover,[e,n,this],this)}else n&&RD(t.onClick,[e,n,this],this);var o,r}}function Tz(e,t){return t*(e.text?e.text.length:0)}var jz={id:"legend",_element:Dz,start(e,t,n){const o=e.legend=new Dz({ctx:e.ctx,options:n,chart:e});a_.configure(e,o,n),a_.addBox(e,o)},stop(e){a_.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;a_.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=vj(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)}}};let Rz=class extends k_{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=PD(n.text)?n.text.length:1;this._padding=vj(n.padding);const r=o*bj(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=PT(a,n,r),c=t+e,s=r-n):("left"===i.position?(l=n+e,c=PT(a,o,t),u=-.5*ZD):(l=r-e,c=PT(a,t,o),u=.5*ZD),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=bj(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(o);cj(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:IT(t.align),textBaseline:"middle",translation:[r,i]})}};var _z={id:"title",_element:Rz,start(e,t,n){!function(e,t){const n=new Rz({ctx:e.ctx,options:t,chart:e});a_.configure(e,n,t),a_.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;a_.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;a_.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 zz={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=mT(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 Bz(e,t){return t&&(PD(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Hz(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Fz(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 Vz(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=bj(t.bodyFont),c=bj(t.titleFont),u=bj(t.footerFont),d=i.length,p=r.length,f=o.length,h=vj(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,_D(e.title,y),n.font=l.string,_D(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,_D(o,(e=>{_D(e.before,y),_D(e.lines,y),_D(e.after,y)})),b=0,n.font=u.string,_D(e.footer,y),n.restore(),m+=h.width,{width:m,height:g}}function Wz(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 Kz(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||Wz(e,t,n,o),yAlign:o}}function qz(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}=mj(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:xT(h,0,o.width-t.width),y:xT(g,0,o.height-t.height)}}function Xz(e,t,n){const o=vj(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function Uz(e){return Bz([],Hz(e))}function Gz(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Yz={beforeTitle:ND,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:ND,beforeBody:ND,beforeLabel:ND,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 ID(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:ND,afterBody:ND,beforeFooter:ND,footer:ND,afterFooter:ND};function Qz(e,t,n,o){const r=e[t].call(n,o);return void 0===r?Yz[t].call(n,o):r}class Zz extends k_{static positioners=zz;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 mR(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,xj(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,o=Qz(n,"beforeTitle",this,e),r=Qz(n,"title",this,e),i=Qz(n,"afterTitle",this,e);let a=[];return a=Bz(a,Hz(o)),a=Bz(a,Hz(r)),a=Bz(a,Hz(i)),a}getBeforeBody(e,t){return Uz(Qz(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return _D(e,(e=>{const t={before:[],lines:[],after:[]},r=Gz(n,e);Bz(t.before,Hz(Qz(r,"beforeLabel",this,e))),Bz(t.lines,Qz(r,"label",this,e)),Bz(t.after,Hz(Qz(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return Uz(Qz(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=Qz(n,"beforeFooter",this,e),r=Qz(n,"footer",this,e),i=Qz(n,"afterFooter",this,e);let a=[];return a=Bz(a,Hz(o)),a=Bz(a,Hz(r)),a=Bz(a,Hz(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(Fz(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)))),_D(l,(t=>{const n=Gz(e.callbacks,t);o.push(Qz(n,"labelColor",this,t)),r.push(Qz(n,"labelPointStyle",this,t)),i.push(Qz(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=zz[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=Vz(this,n),a=Object.assign({},e,t),s=Kz(this.chart,n,a),l=qz(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}=mj(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=nR(n.rtl,this.x,this.width);for(e.x=Xz(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=bj(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=bj(r.bodyFont),u=Xz(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,ej(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,ej(e,t,n,c)}else{e.lineWidth=LD(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=mj(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,uj(e,{x:t,y:f,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),uj(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=bj(n.bodyFont);let d=u.lineHeight,p=0;const f=nR(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=Xz(this,g,n),t.fillStyle=n.bodyColor,_D(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,_D(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;_D(m.after,h)}p=0,d=u.lineHeight,_D(this.afterBody,h),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const s=nR(n.rtl,this.x,this.width);for(e.x=Xz(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=bj(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}=mj(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=zz[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=Vz(this,e),a=Object.assign({},n,this._size),s=Kz(t,e,a),l=qz(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=vj(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),oR(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),rR(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=!zD(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||!zD(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=zz[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}var Jz={id:"tooltip",_element:Zz,positioners:zz,afterInit(e,t,n){n&&(e.tooltip=new Zz({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:Yz},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 eB(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 tB(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function nB(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=!ID(i),v=!ID(a),b=!ID(l),y=(g-h)/(u+1);let x,C,w,S,k=cT((g-h)/f/p)*p;if(k<1e-14&&!m&&!v)return[{value:h},{value:g}];S=Math.ceil(g/k)-Math.floor(h/k),S>f&&(k=cT(S*k/f/p)*p),ID(s)||(x=Math.pow(10,s),k=Math.ceil(k*x)/x),"ticks"===o?(C=Math.floor(h/k)*k,w=Math.ceil(g/k)*k):(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,k/1e3)?(S=Math.round(Math.min((a-i)/k,c)),k=(a-i)/S,C=i,w=a):b?(C=m?i:C,w=v?a:w,S=l-1,k=(w-C)/S):(S=(w-C)/k,S=lT(S,Math.round(S),k/1e3)?Math.round(S):Math.ceil(S));const E=Math.max(hT(k),hT(C));x=Math.pow(10,ID(s)?E: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++,lT(Math.round((C+O*k)*x)/x,i,oB(i,y,e))&&O++):C<i&&O++);O<S;++O){const e=Math.round((C+O*k)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&w!==a?n.length&&lT(n[n.length-1].value,a,oB(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&w!==a||n.push({value:w}),n}function oB(e,t,{horizontal:n,minRotation:o}){const r=pT(o),i=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class rB extends D_{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 ID(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=sT(o),t=sT(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=nB({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&&dT(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 FT(e,this.chart.options.locale,this.options.ticks.format)}}class iB extends rB{static id="linear";static defaults={ticks:{callback:WT.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=AD(e)?e:0,this.max=AD(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=pT(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}}WT.formatters.logarithmic;WT.formatters.numeric;const aB="label";function sB(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function lB(e,t){e.labels=t}function cB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:aB;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 uB(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aB;const n={labels:[],datasets:[]};return lB(n,e.labels),cB(n,e.datasets,t),n}function dB(e,t){const{height:n=150,width:o=300,redraw:i=!1,datasetIdKey:a,type:s,data:l,options:u,plugins:p=[],fallbackContent:f,updateMode:h,...g}=e,m=c(null),v=c(),b=()=>{m.current&&(v.current=new pz(m.current,{type:s,data:uB(l,a),options:u&&{...u},plugins:p}),sB(t,v.current))},y=()=>{sB(t,null),v.current&&(v.current.destroy(),v.current=null)};return d((()=>{!i&&v.current&&u&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(v.current,u)}),[i,u]),d((()=>{!i&&v.current&&lB(v.current.config.data,l.labels)}),[i,l.labels]),d((()=>{!i&&v.current&&l.datasets&&cB(v.current.config.data,l.datasets,a)}),[i,l.datasets]),d((()=>{v.current&&(i?(y(),setTimeout(b)):v.current.update(h))}),[i,u,l.labels,l.datasets,h]),d((()=>{v.current&&(y(),setTimeout(b))}),[s]),d((()=>(b(),()=>y())),[]),r.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:o},g),f)}const pB=p(dB);function fB(e,t){return pz.register(t),p(((t,n)=>r.createElement(pB,Object.assign({},t,{ref:n,type:e}))))}const hB=fB("line",zR),gB=fB("bar",RR),mB=fB("doughnut",_R),vB=fB("pie",BR);_A(".appChart {\n & > canvas {\n height: 100% !important;\n width: 100% !important;\n }\n}\n"),pz.register(class extends D_{static id="category";static defaults={ticks:{callback:tB}};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(ID(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:xT(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:eB(n,e,TD(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 tB.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}},iB,class extends k_{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}=Mz(this),a=function(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}(i.radius)?uj:Pz;e.save(),i.w===r.w&&i.h===r.h||(e.beginPath(),a(e,Lz(i,t,r)),e.clip(),a(e,Lz(r,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,Lz(r,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return Iz(this,e,t,n)}inXRange(e,t){return Iz(this,e,null,t)}inYRange(e,t){return Iz(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 k_{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;Bj(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 lR(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=sR(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?eR:e.tension||"monotone"===e.cubicInterpolationMode?tR:Jj}(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 Sz(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=Sz(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(),Ez(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends k_{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 Oz(this,e,"x",t)}inYRange(e,t){return Oz(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||!nj(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,ej(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}},class extends k_{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}=gT(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=TD(u,s-a),f=yT(r,a,s)&&a!==s,h=p>=JD||f,g=CT(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>JD?Math.floor(n/JD):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(ZD,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){mz(e,t,n,o,l,r);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%JD||JD))}mz(e,t,n,o,l,r),e.fill()}(e,this,s,r,i),vz(e,this,s,r,i),e.restore()}},_z,Jz,jz);var bB=function(e){var n=e.type,o=e.data,r=e.options,i=e.className,a=e.height,s=void 0===a?400:a,l=e.width,c=void 0===l?600:l;N(e,["type","data","options","className","height","width"]);return t("div",{style:{height:s,width:c},className:"appChart ".concat(i),children:function(){switch(n){case"bar":return t(gB,{data:o,options:r,className:i});case"line":return t(hB,{data:o,options:r,className:i});case"pie":return t(vB,{data:o,options:r,className:i});case"doughnut":return t(mB,{data:o,options:r,className:i});default:return null}}()})};_A(".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: normal;\n color: #000000;\n }\n}\n");var yB=function(n){var o=n.width,r=void 0===o?100:o,i=n.height,a=void 0===i?100:i,s=n.text,l=n.image,c=n.className,u=n.handleClick;return e("div",{className:"appImageBox ".concat(c),onClick:u,children:[t(vO,{preview:!1,width:r,height:a,src:l.src,alt:s}),s&&t("span",{className:"text",dangerouslySetInnerHTML:{__html:s}})]})},xB=function(e){var n=e.src,o=e.fallbackIcon,r=void 0===o?t(ZN,{}):o,i=e.className,a=N(e,["src","fallbackIcon","className"]);return t("div",{className:i,children:t(ov,$({src:n,icon:n?void 0:r},a))})};_A(".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");var CB=function(e){var n=e.text,o=e.checked,r=e.handleChange,i=e.className;return t("div",{className:"appCheckboxText ".concat(i),children:t(kS,{className:"checkboxText",checked:o,onChange:r,children:t("span",{dangerouslySetInnerHTML:{__html:n}})})})};ZS.Panel;var wB=function(e){var n=e.panels,o=void 0===n?[]:n,r=e.defaultActiveKey,i=e.onChange,a=e.expandIconPosition,s=e.ghost,l=e.accordion,c=e.expandIcon,u=e.size,d=e.bordered,p=e.activeKey,f=e.className,h=N(e,["panels","defaultActiveKey","onChange","expandIconPosition","ghost","accordion","expandIcon","size","bordered","activeKey","className"]),g=o.map((function(e){return{key:e.key,label:e.header,children:e.content,collapsible:e.collapsible}}));return t("div",{className:f,children:t(ZS,$({defaultActiveKey:r,onChange:i,expandIconPosition:a,ghost:s,accordion:l,expandIcon:c,size:u,bordered:d,activeKey:p,items:g},h))})};_A('.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 SB=function(n){var o=n.className;return t("div",{className:"wrapper ".concat(o),children:e("div",{className:"loader",children:[t("span",{}),t("span",{}),t("span",{}),t("span",{}),t("span",{}),t("span",{}),t("span",{}),t("span",{})]})})},kB=function(e,t){return kB=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])},kB(e,t)};
|
35
|
-
/*! *****************************************************************************
|
36
|
-
Copyright (c) Microsoft Corporation.
|
37
|
-
|
38
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
39
|
-
purpose with or without fee is hereby granted.
|
40
|
-
|
41
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
42
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
43
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
44
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
45
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
46
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
47
|
-
PERFORMANCE OF THIS SOFTWARE.
|
48
|
-
***************************************************************************** */function EB(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}kB(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var OB=function(){return OB=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},OB.apply(this,arguments)};function $B(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 NB(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 MB(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 IB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var PB=process.env.NODE_ENV,LB=function(e,t,n,o,r,i,a,s){if("production"!==PB&&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}},AB=IB(LB),DB=l(null);function TB(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 jB(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 RB(e){google.maps.event.removeListener(e)}function _B(e){void 0===e&&(e=[]),e.forEach(RB)}function zB(e){var t=e.updaterMap,n=e.eventMap,o=e.prevProps,r=e.nextProps,i=e.instance,a=jB(r,i,n);return TB(t,o,r,i),a}var BB={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"},HB={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)}};x((function(e){var n=e.children,o=e.options,r=e.id,i=e.mapContainerStyle,a=e.mapContainerClassName,s=e.center,l=e.onClick,u=e.onDblClick,p=e.onDrag,f=e.onDragEnd,g=e.onDragStart,m=e.onMouseMove,v=e.onMouseOut,b=e.onMouseOver,y=e.onMouseDown,x=e.onMouseUp,C=e.onRightClick,w=e.onCenterChanged,S=e.onLoad,k=e.onUnmount,E=h(null),O=E[0],$=E[1],N=c(null),M=h(null),I=M[0],P=M[1],L=h(null),A=L[0],D=L[1],T=h(null),j=T[0],R=T[1],_=h(null),z=_[0],B=_[1],H=h(null),F=H[0],V=H[1],W=h(null),K=W[0],q=W[1],X=h(null),U=X[0],G=X[1],Y=h(null),Q=Y[0],Z=Y[1],J=h(null),ee=J[0],te=J[1],ne=h(null),oe=ne[0],re=ne[1],ie=h(null),ae=ie[0],se=ie[1],le=h(null),ce=le[0],ue=le[1];return d((function(){o&&null!==O&&O.setOptions(o)}),[O,o]),d((function(){null!==O&&void 0!==s&&O.setCenter(s)}),[O,s]),d((function(){O&&u&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener(O,"dblclick",u)))}),[u]),d((function(){O&&f&&(null!==j&&google.maps.event.removeListener(j),R(google.maps.event.addListener(O,"dragend",f)))}),[f]),d((function(){O&&g&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(O,"dragstart",g)))}),[g]),d((function(){O&&y&&(null!==F&&google.maps.event.removeListener(F),V(google.maps.event.addListener(O,"mousedown",y)))}),[y]),d((function(){O&&m&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener(O,"mousemove",m)))}),[m]),d((function(){O&&v&&(null!==U&&google.maps.event.removeListener(U),G(google.maps.event.addListener(O,"mouseout",v)))}),[v]),d((function(){O&&b&&(null!==Q&&google.maps.event.removeListener(Q),Z(google.maps.event.addListener(O,"mouseover",b)))}),[b]),d((function(){O&&x&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(O,"mouseup",x)))}),[x]),d((function(){O&&C&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener(O,"rightclick",C)))}),[C]),d((function(){O&&l&&(null!==ae&&google.maps.event.removeListener(ae),se(google.maps.event.addListener(O,"click",l)))}),[l]),d((function(){O&&p&&(null!==ce&&google.maps.event.removeListener(ce),ue(google.maps.event.addListener(O,"drag",p)))}),[p]),d((function(){O&&w&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(O,"center_changed",w)))}),[l]),d((function(){var e=null===N.current?null:new google.maps.Map(N.current,o);return $(e),null!==e&&S&&S(e),function(){null!==e&&k&&k(e)}}),[]),t("div",{id:r,ref:N,style:i,className:a,children:t(DB.Provider,{value:O,children:null!==O?n:null})})}));var FB=function(e){function n(){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 EB(n,e),n.prototype.componentDidMount=function(){var e=this.getInstance();this.registeredEvents=zB({updaterMap:HB,eventMap:BB,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{map:e}}),this.setMapCallback)},n.prototype.componentDidUpdate=function(e){null!==this.state.map&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:HB,eventMap:BB,prevProps:e,nextProps:this.props,instance:this.state.map}))},n.prototype.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),_B(this.registeredEvents))},n.prototype.render=function(){return t("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:t(DB.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:null})})},n}(C),VB="undefined"!=typeof document;function WB(e){var t=e.url,n=e.id,o=e.nonce;return VB?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 KB(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 qB(){var e=document.getElementsByTagName("head")[0];if(e){var t=e.insertBefore.bind(e);e.insertBefore=function(n,o){return KB(n)||Reflect.apply(t,e,[n,o]),n};var n=e.appendChild.bind(e);e.appendChild=function(t){return KB(t)||Reflect.apply(n,e,[t]),t}}}function XB(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 AB(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 UB=!1;function GB(){return t("div",{children:"Loading..."})}var YB,QB={id:"script-loader",version:"weekly"},ZB=function(o){function r(){var e=null!==o&&o.apply(this,arguments)||this;return e.check=m(),e.state={loaded:!1},e.cleanupCallback=function(){delete window.google.maps,e.injectScript()},e.isCleaningUp=function(){return NB(e,0,void 0,(function(){function e(e){if(UB){if(VB)var t=window.setInterval((function(){UB||(window.clearInterval(t),e())}),1)}else e()}return MB(this,(function(t){return[2,new Promise(e)]}))}))},e.cleanup=function(){UB=!0;var t=document.getElementById(e.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),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)}))},e.injectScript=function(){e.props.preventGoogleFontsLoading&&qB(),AB(!!e.props.id,'LoadScript requires "id" prop to be a string: %s',e.props.id),WB({id:e.props.id,nonce:e.props.nonce,url:XB(e.props)}).then((function(){e.props.onLoad&&e.props.onLoad(),e.setState((function(){return{loaded:!0}}))})).catch((function(t){e.props.onError&&e.props.onError(t),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(e.props.googleMapsApiKey||"-",") or Client ID (").concat(e.props.googleMapsClientId||"-",") to <LoadScript />\n Otherwise it is a Network issue.\n "))}))},e}return EB(r,o),r.prototype.componentDidMount=function(){if(VB){if(window.google&&window.google.maps&&!UB)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)}))}},r.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"),VB&&e.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))},r.prototype.componentWillUnmount=function(){var e=this;if(VB){this.cleanup();window.setTimeout((function(){e.check.current||(delete window.google,UB=!1)}),1),this.props.onUnmount&&this.props.onUnmount()}},r.prototype.render=function(){return e(n,{children:[t("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||t(GB,{})]})},r.defaultProps=QB,r}(C);var JB,eH=t(GB,{});x((function(e){var t=e.loadingElement,n=e.onLoad,o=e.onError,r=e.onUnmount,i=e.children,a=function(e){var t=e.id,n=void 0===t?QB.id:t,o=e.version,r=void 0===o?QB.version:o,i=e.nonce,a=e.googleMapsApiKey,s=e.googleMapsClientId,l=e.language,u=e.region,p=e.libraries,f=e.preventGoogleFontsLoading,g=e.channel,m=e.mapIds,v=e.authReferrerPolicy,b=c(!1),y=h(!1),x=y[0],C=y[1],w=h(void 0),S=w[0],k=w[1];d((function(){return b.current=!0,function(){b.current=!1}}),[]),d((function(){VB&&f&&qB()}),[f]),d((function(){x&&AB(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[x]);var E=XB({version:r,googleMapsApiKey:a,googleMapsClientId:s,language:l,region:u,libraries:p,channel:g,mapIds:m,authReferrerPolicy:v});d((function(){function e(){b.current&&(C(!0),YB=E)}VB&&(window.google&&window.google.maps&&YB===E?e():WB({id:n,url:E,nonce:i}).then(e).catch((function(e){b.current&&k(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(a||"-",") or Client ID (").concat(s||"-",")\n Otherwise it is a Network issue.\n ")),console.error(e)})))}),[n,E,i]);var O=c();return d((function(){O.current&&p!==O.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"),O.current=p}),[p]),{isLoaded:x,loadError:S,url:E}}($B(e,["loadingElement","onLoad","onError","onUnmount","children"])),s=a.isLoaded,l=a.loadError;return d((function(){s&&"function"==typeof n&&n()}),[s,n]),d((function(){l&&"function"==typeof o&&o(l)}),[l,o]),d((function(){return function(){r&&r()}}),[r]),s?i:t||eH})),function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(JB||(JB={}));var tH={},nH={options:function(e,t){e.setOptions(t)}};x((function(e){var t=e.options,n=e.onLoad,o=e.onUnmount,r=s(DB),i=h(null),a=i[0],l=i[1];return d((function(){null!==a&&a.setMap(r)}),[r]),d((function(){t&&null!==a&&a.setOptions(t)}),[a,t]),d((function(){var e=new google.maps.TrafficLayer(OB(OB({},t||{}),{map:r}));return l(e),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={trafficLayer:null},t.setTrafficLayerCallback=function(){null!==t.state.trafficLayer&&t.props.onLoad&&t.props.onLoad(t.state.trafficLayer)},t.registeredEvents=[],t}EB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.TrafficLayer(OB(OB({},this.props.options||{}),{map:this.context}));this.registeredEvents=zB({updaterMap:nH,eventMap:tH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{trafficLayer:e}}),this.setTrafficLayerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.trafficLayer&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:nH,eventMap:tH,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),_B(this.registeredEvents),this.state.trafficLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=DB}(C),x((function(e){var t=e.onLoad,n=e.onUnmount,o=s(DB),r=h(null),i=r[0],a=r[1];return d((function(){null!==i&&i.setMap(o)}),[o]),d((function(){var e=new google.maps.BicyclingLayer;return a(e),e.setMap(o),t&&t(e),function(){null!==e&&(n&&n(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}EB(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=DB}(C),x((function(e){var t=e.onLoad,n=e.onUnmount,o=s(DB),r=h(null),i=r[0],a=r[1];return d((function(){null!==i&&i.setMap(o)}),[o]),d((function(){var e=new google.maps.TransitLayer;return a(e),e.setMap(o),t&&t(e),function(){null!==i&&(n&&n(i),i.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}EB(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=DB}(C);var oH={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},rH={drawingMode:function(e,t){e.setDrawingMode(t)},options:function(e,t){e.setOptions(t)}};x((function(e){var t=e.options,n=e.drawingMode,o=e.onCircleComplete,r=e.onMarkerComplete,i=e.onOverlayComplete,a=e.onPolygonComplete,l=e.onPolylineComplete,c=e.onRectangleComplete,u=e.onLoad,p=e.onUnmount,f=s(DB),g=h(null),m=g[0],v=g[1],b=h(null),y=b[0],x=b[1],C=h(null),w=C[0],S=C[1],k=h(null),E=k[0],O=k[1],$=h(null),N=$[0],M=$[1],I=h(null),P=I[0],L=I[1],A=h(null),D=A[0],T=A[1];return d((function(){null!==m&&m.setMap(f)}),[f]),d((function(){t&&null!==m&&m.setOptions(t)}),[m,t]),d((function(){null!==m&&m.setDrawingMode(null!=n?n:null)}),[m,n]),d((function(){m&&o&&(null!==y&&google.maps.event.removeListener(y),x(google.maps.event.addListener(m,"circlecomplete",o)))}),[m,o]),d((function(){m&&r&&(null!==w&&google.maps.event.removeListener(w),S(google.maps.event.addListener(m,"markercomplete",r)))}),[m,r]),d((function(){m&&i&&(null!==E&&google.maps.event.removeListener(E),O(google.maps.event.addListener(m,"overlaycomplete",i)))}),[m,i]),d((function(){m&&a&&(null!==N&&google.maps.event.removeListener(N),M(google.maps.event.addListener(m,"polygoncomplete",a)))}),[m,a]),d((function(){m&&l&&(null!==P&&google.maps.event.removeListener(P),L(google.maps.event.addListener(m,"polylinecomplete",l)))}),[m,l]),d((function(){m&&c&&(null!==D&&google.maps.event.removeListener(D),T(google.maps.event.addListener(m,"rectanglecomplete",c)))}),[m,c]),d((function(){AB(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var e=new google.maps.drawing.DrawingManager(OB(OB({},t||{}),{map:f}));return n&&e.setDrawingMode(n),o&&x(google.maps.event.addListener(e,"circlecomplete",o)),r&&S(google.maps.event.addListener(e,"markercomplete",r)),i&&O(google.maps.event.addListener(e,"overlaycomplete",i)),a&&M(google.maps.event.addListener(e,"polygoncomplete",a)),l&&L(google.maps.event.addListener(e,"polylinecomplete",l)),c&&T(google.maps.event.addListener(e,"rectanglecomplete",c)),v(e),u&&u(e),function(){null!==m&&(y&&google.maps.event.removeListener(y),w&&google.maps.event.removeListener(w),E&&google.maps.event.removeListener(E),N&&google.maps.event.removeListener(N),P&&google.maps.event.removeListener(P),D&&google.maps.event.removeListener(D),p&&p(m),m.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)},AB(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),n}EB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.drawing.DrawingManager(OB(OB({},this.props.options||{}),{map:this.context}));this.registeredEvents=zB({updaterMap:rH,eventMap:oH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{drawingManager:e}}),this.setDrawingManagerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.drawingManager&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:rH,eventMap:oH,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),_B(this.registeredEvents),this.state.drawingManager.setMap(null))},t.prototype.render=function(){return null},t.contextType=DB}(C);var iH={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"},aH={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)}},sH={};x((function(e){var o=e.position,r=e.options,i=e.clusterer,l=e.noClustererRedraw,c=e.children,u=e.draggable,p=e.visible,m=e.animation,v=e.clickable,b=e.cursor,x=e.icon,C=e.label,w=e.opacity,S=e.shape,k=e.title,E=e.zIndex,O=e.onClick,$=e.onDblClick,N=e.onDrag,M=e.onDragEnd,I=e.onDragStart,P=e.onMouseOut,L=e.onMouseOver,A=e.onMouseUp,D=e.onMouseDown,T=e.onRightClick,j=e.onClickableChanged,R=e.onCursorChanged,_=e.onAnimationChanged,z=e.onDraggableChanged,B=e.onFlatChanged,H=e.onIconChanged,F=e.onPositionChanged,V=e.onShapeChanged,W=e.onTitleChanged,K=e.onVisibleChanged,q=e.onZindexChanged,X=e.onLoad,U=e.onUnmount,G=s(DB),Y=h(null),Q=Y[0],Z=Y[1],J=h(null),ee=J[0],te=J[1],ne=h(null),oe=ne[0],re=ne[1],ie=h(null),ae=ie[0],se=ie[1],le=h(null),ce=le[0],ue=le[1],de=h(null),pe=de[0],fe=de[1],he=h(null),ge=he[0],me=he[1],ve=h(null),be=ve[0],ye=ve[1],xe=h(null),Ce=xe[0],we=xe[1],Se=h(null),ke=Se[0],Ee=Se[1],Oe=h(null),$e=Oe[0],Ne=Oe[1],Me=h(null),Ie=Me[0],Pe=Me[1],Le=h(null),Ae=Le[0],De=Le[1],Te=h(null),je=Te[0],Re=Te[1],_e=h(null),ze=_e[0],Be=_e[1],He=h(null),Fe=He[0],Ve=He[1],We=h(null),Ke=We[0],qe=We[1],Xe=h(null),Ue=Xe[0],Ge=Xe[1],Ye=h(null),Qe=Ye[0],Ze=Ye[1],Je=h(null),et=Je[0],tt=Je[1],nt=h(null),ot=nt[0],rt=nt[1],it=h(null),at=it[0],st=it[1];d((function(){null!==Q&&Q.setMap(G)}),[G]),d((function(){void 0!==r&&null!==Q&&Q.setOptions(r)}),[Q,r]),d((function(){void 0!==u&&null!==Q&&Q.setDraggable(u)}),[Q,u]),d((function(){o&&null!==Q&&Q.setPosition(o)}),[Q,o]),d((function(){void 0!==p&&null!==Q&&Q.setVisible(p)}),[Q,p]),d((function(){null==Q||Q.setAnimation(m)}),[Q,m]),d((function(){Q&&void 0!==v&&Q.setClickable(v)}),[Q,v]),d((function(){Q&&void 0!==b&&Q.setCursor(b)}),[Q,b]),d((function(){Q&&void 0!==x&&Q.setIcon(x)}),[Q,x]),d((function(){Q&&void 0!==C&&Q.setLabel(C)}),[Q,C]),d((function(){Q&&void 0!==w&&Q.setOpacity(w)}),[Q,w]),d((function(){Q&&void 0!==S&&Q.setShape(S)}),[Q,S]),d((function(){Q&&void 0!==k&&Q.setTitle(k)}),[Q,k]),d((function(){Q&&void 0!==E&&Q.setZIndex(E)}),[Q,E]),d((function(){Q&&$&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(Q,"dblclick",$)))}),[$]),d((function(){Q&&M&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener(Q,"dragend",M)))}),[M]),d((function(){Q&&I&&(null!==ae&&google.maps.event.removeListener(ae),se(google.maps.event.addListener(Q,"dragstart",I)))}),[I]),d((function(){Q&&D&&(null!==ce&&google.maps.event.removeListener(ce),ue(google.maps.event.addListener(Q,"mousedown",D)))}),[D]),d((function(){Q&&P&&(null!==pe&&google.maps.event.removeListener(pe),fe(google.maps.event.addListener(Q,"mouseout",P)))}),[P]),d((function(){Q&&L&&(null!==ge&&google.maps.event.removeListener(ge),me(google.maps.event.addListener(Q,"mouseover",L)))}),[L]),d((function(){Q&&A&&(null!==be&&google.maps.event.removeListener(be),ye(google.maps.event.addListener(Q,"mouseup",A)))}),[A]),d((function(){Q&&T&&(null!==Ce&&google.maps.event.removeListener(Ce),we(google.maps.event.addListener(Q,"rightclick",T)))}),[T]),d((function(){Q&&O&&(null!==ke&&google.maps.event.removeListener(ke),Ee(google.maps.event.addListener(Q,"click",O)))}),[O]),d((function(){Q&&N&&(null!==$e&&google.maps.event.removeListener($e),Ne(google.maps.event.addListener(Q,"drag",N)))}),[N]),d((function(){Q&&j&&(null!==Ie&&google.maps.event.removeListener(Ie),Pe(google.maps.event.addListener(Q,"clickable_changed",j)))}),[j]),d((function(){Q&&R&&(null!==Ae&&google.maps.event.removeListener(Ae),De(google.maps.event.addListener(Q,"cursor_changed",R)))}),[R]),d((function(){Q&&_&&(null!==je&&google.maps.event.removeListener(je),Re(google.maps.event.addListener(Q,"animation_changed",_)))}),[_]),d((function(){Q&&z&&(null!==ze&&google.maps.event.removeListener(ze),Be(google.maps.event.addListener(Q,"draggable_changed",z)))}),[z]),d((function(){Q&&B&&(null!==Fe&&google.maps.event.removeListener(Fe),Ve(google.maps.event.addListener(Q,"flat_changed",B)))}),[B]),d((function(){Q&&H&&(null!==Ke&&google.maps.event.removeListener(Ke),qe(google.maps.event.addListener(Q,"icon_changed",H)))}),[H]),d((function(){Q&&F&&(null!==Ue&&google.maps.event.removeListener(Ue),Ge(google.maps.event.addListener(Q,"position_changed",F)))}),[F]),d((function(){Q&&V&&(null!==Qe&&google.maps.event.removeListener(Qe),Ze(google.maps.event.addListener(Q,"shape_changed",V)))}),[V]),d((function(){Q&&W&&(null!==et&&google.maps.event.removeListener(et),tt(google.maps.event.addListener(Q,"title_changed",W)))}),[W]),d((function(){Q&&K&&(null!==ot&&google.maps.event.removeListener(ot),rt(google.maps.event.addListener(Q,"visible_changed",K)))}),[K]),d((function(){Q&&q&&(null!==at&&google.maps.event.removeListener(at),st(google.maps.event.addListener(Q,"zindex_changed",q)))}),[q]),d((function(){var e=OB(OB(OB({},r||sH),i?sH:{map:G}),{position:o}),t=new google.maps.Marker(e);return i?i.addMarker(t,!!l):t.setMap(G),o&&t.setPosition(o),void 0!==p&&t.setVisible(p),void 0!==u&&t.setDraggable(u),void 0!==v&&t.setClickable(v),"string"==typeof b&&t.setCursor(b),x&&t.setIcon(x),void 0!==C&&t.setLabel(C),void 0!==w&&t.setOpacity(w),S&&t.setShape(S),"string"==typeof k&&t.setTitle(k),"number"==typeof E&&t.setZIndex(E),$&&te(google.maps.event.addListener(t,"dblclick",$)),M&&re(google.maps.event.addListener(t,"dragend",M)),I&&se(google.maps.event.addListener(t,"dragstart",I)),D&&ue(google.maps.event.addListener(t,"mousedown",D)),P&&fe(google.maps.event.addListener(t,"mouseout",P)),L&&me(google.maps.event.addListener(t,"mouseover",L)),A&&ye(google.maps.event.addListener(t,"mouseup",A)),T&&we(google.maps.event.addListener(t,"rightclick",T)),O&&Ee(google.maps.event.addListener(t,"click",O)),N&&Ne(google.maps.event.addListener(t,"drag",N)),j&&Pe(google.maps.event.addListener(t,"clickable_changed",j)),R&&De(google.maps.event.addListener(t,"cursor_changed",R)),_&&Re(google.maps.event.addListener(t,"animation_changed",_)),z&&Be(google.maps.event.addListener(t,"draggable_changed",z)),B&&Ve(google.maps.event.addListener(t,"flat_changed",B)),H&&qe(google.maps.event.addListener(t,"icon_changed",H)),F&&Ge(google.maps.event.addListener(t,"position_changed",F)),V&&Ze(google.maps.event.addListener(t,"shape_changed",V)),W&&tt(google.maps.event.addListener(t,"title_changed",W)),K&&rt(google.maps.event.addListener(t,"visible_changed",K)),q&&st(google.maps.event.addListener(t,"zindex_changed",q)),Z(t),X&&X(t),function(){null!==ee&&google.maps.event.removeListener(ee),null!==oe&&google.maps.event.removeListener(oe),null!==ae&&google.maps.event.removeListener(ae),null!==ce&&google.maps.event.removeListener(ce),null!==pe&&google.maps.event.removeListener(pe),null!==ge&&google.maps.event.removeListener(ge),null!==be&&google.maps.event.removeListener(be),null!==Ce&&google.maps.event.removeListener(Ce),null!==ke&&google.maps.event.removeListener(ke),null!==Ie&&google.maps.event.removeListener(Ie),null!==Ae&&google.maps.event.removeListener(Ae),null!==je&&google.maps.event.removeListener(je),null!==ze&&google.maps.event.removeListener(ze),null!==Fe&&google.maps.event.removeListener(Fe),null!==Ke&&google.maps.event.removeListener(Ke),null!==Ue&&google.maps.event.removeListener(Ue),null!==et&&google.maps.event.removeListener(et),null!==ot&&google.maps.event.removeListener(ot),null!==at&&google.maps.event.removeListener(at),U&&U(t),i?i.removeMarker(t,!!l):t&&t.setMap(null)}}),[]);var lt=f((function(){return c?g.map(c,(function(e){return a(e)?y(e,{anchor:Q}):e})):null}),[c,Q]);return t(n,{children:lt})||null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t}EB(t,e),t.prototype.componentDidMount=function(){var e=OB(OB(OB({},this.props.options||sH),this.props.clusterer?sH:{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=zB({updaterMap:aH,eventMap:iH,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},t.prototype.componentDidUpdate=function(e){this.marker&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:aH,eventMap:iH,prevProps:e,nextProps:this.props,instance:this.marker}))},t.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),_B(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},t.prototype.render=function(){var e=this,t=null;return this.props.children&&(t=g.map(this.props.children,(function(t){return a(t)?y(t,{anchor:e.marker}):t}))),t||null},t.contextType=DB}(C);var lH=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}(),cH=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 lH(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 uH(e,t){var n=e.length,o=n.toString().length,r=Math.min(o,t);return{text:n.toString(),index:r,title:""}}var dH=[53,56,66,78,90],pH=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||dH,this.calculator=o.calculator||uH,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 cH(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}(),fH={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},hH={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)}},gH={};function mH(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}x((function(e){var t=e.children,n=e.options,o=e.averageCenter,r=e.batchSizeIE,i=e.calculator,a=e.clusterClass,l=e.enableRetinaIcons,c=e.gridSize,u=e.ignoreHidden,p=e.imageExtension,f=e.imagePath,g=e.imageSizes,m=e.maxZoom,v=e.minimumClusterSize,b=e.styles,y=e.title,x=e.zoomOnClick,C=e.onClick,w=e.onClusteringBegin,S=e.onClusteringEnd,k=e.onMouseOver,E=e.onMouseOut,O=e.onLoad,$=e.onUnmount,N=h(null),M=N[0],I=N[1],P=s(DB),L=h(null),A=L[0],D=L[1],T=h(null),j=T[0],R=T[1],_=h(null),z=_[0],B=_[1],H=h(null),F=H[0],V=H[1],W=h(null),K=W[0],q=W[1];return d((function(){M&&E&&(null!==F&&google.maps.event.removeListener(F),V(google.maps.event.addListener(M,fH.onMouseOut,E)))}),[E]),d((function(){M&&k&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener(M,fH.onMouseOver,k)))}),[k]),d((function(){M&&C&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener(M,fH.onClick,C)))}),[C]),d((function(){M&&w&&(null!==j&&google.maps.event.removeListener(j),R(google.maps.event.addListener(M,fH.onClusteringBegin,w)))}),[w]),d((function(){M&&S&&(null!==z&&google.maps.event.removeListener(z),R(google.maps.event.addListener(M,fH.onClusteringEnd,S)))}),[S]),d((function(){void 0!==o&&null!==M&&hH.averageCenter(M,o)}),[M,o]),d((function(){void 0!==r&&null!==M&&hH.batchSizeIE(M,r)}),[M,r]),d((function(){void 0!==i&&null!==M&&hH.calculator(M,i)}),[M,i]),d((function(){void 0!==a&&null!==M&&hH.clusterClass(M,a)}),[M,a]),d((function(){void 0!==l&&null!==M&&hH.enableRetinaIcons(M,l)}),[M,l]),d((function(){void 0!==c&&null!==M&&hH.gridSize(M,c)}),[M,c]),d((function(){void 0!==u&&null!==M&&hH.ignoreHidden(M,u)}),[M,u]),d((function(){void 0!==p&&null!==M&&hH.imageExtension(M,p)}),[M,p]),d((function(){void 0!==f&&null!==M&&hH.imagePath(M,f)}),[M,f]),d((function(){void 0!==g&&null!==M&&hH.imageSizes(M,g)}),[M,g]),d((function(){void 0!==m&&null!==M&&hH.maxZoom(M,m)}),[M,m]),d((function(){void 0!==v&&null!==M&&hH.minimumClusterSize(M,v)}),[M,v]),d((function(){void 0!==b&&null!==M&&hH.styles(M,b)}),[M,b]),d((function(){void 0!==y&&null!==M&&hH.title(M,y)}),[M,y]),d((function(){void 0!==x&&null!==M&&hH.zoomOnClick(M,x)}),[M,x]),d((function(){if(P){var e=OB({},n||gH),t=new pH(P,[],e);return o&&hH.averageCenter(t,o),r&&hH.batchSizeIE(t,r),i&&hH.calculator(t,i),a&&hH.clusterClass(t,a),l&&hH.enableRetinaIcons(t,l),c&&hH.gridSize(t,c),u&&hH.ignoreHidden(t,u),p&&hH.imageExtension(t,p),f&&hH.imagePath(t,f),g&&hH.imageSizes(t,g),m&&hH.maxZoom(t,m),v&&hH.minimumClusterSize(t,v),b&&hH.styles(t,b),y&&hH.title(t,y),x&&hH.zoomOnClick(t,x),E&&V(google.maps.event.addListener(t,fH.onMouseOut,E)),k&&q(google.maps.event.addListener(t,fH.onMouseOver,k)),C&&D(google.maps.event.addListener(t,fH.onClick,C)),w&&R(google.maps.event.addListener(t,fH.onClusteringBegin,w)),S&&B(google.maps.event.addListener(t,fH.onClusteringEnd,S)),I(t),O&&O(t),function(){null!==F&&google.maps.event.removeListener(F),null!==K&&google.maps.event.removeListener(K),null!==A&&google.maps.event.removeListener(A),null!==j&&google.maps.event.removeListener(j),null!==z&&google.maps.event.removeListener(z),$&&$(t)}}}),[]),null!==M&&t(M)||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}EB(t,e),t.prototype.componentDidMount=function(){if(this.context){var e=new pH(this.context,[],this.props.options);this.registeredEvents=zB({updaterMap:hH,eventMap:fH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{markerClusterer:e}}),this.setClustererCallback)}},t.prototype.componentDidUpdate=function(e){this.state.markerClusterer&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:hH,eventMap:fH,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),_B(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=DB}(C);var vH=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,mH))}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||mH(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}(),bH={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},yH={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)}},xH={};x((function(e){var t=e.children,n=e.anchor,o=e.options,r=e.position,i=e.zIndex,a=e.onCloseClick,l=e.onDomReady,u=e.onContentChanged,p=e.onPositionChanged,f=e.onZindexChanged,m=e.onLoad,v=e.onUnmount,b=s(DB),y=h(null),x=y[0],C=y[1],w=h(null),S=w[0],E=w[1],O=h(null),$=O[0],N=O[1],M=h(null),I=M[0],P=M[1],L=h(null),A=L[0],D=L[1],T=h(null),j=T[0],R=T[1],_=c(null);return d((function(){b&&null!==x&&(x.close(),n?x.open(b,n):x.getPosition()&&x.open(b))}),[b,x,n]),d((function(){o&&null!==x&&x.setOptions(o)}),[x,o]),d((function(){if(r&&null!==x){var e=r instanceof google.maps.LatLng?r:new google.maps.LatLng(r.lat,r.lng);x.setPosition(e)}}),[r]),d((function(){"number"==typeof i&&null!==x&&x.setZIndex(i)}),[i]),d((function(){x&&a&&(null!==S&&google.maps.event.removeListener(S),E(google.maps.event.addListener(x,"closeclick",a)))}),[a]),d((function(){x&&l&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(x,"domready",l)))}),[l]),d((function(){x&&u&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(x,"content_changed",u)))}),[u]),d((function(){x&&p&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener(x,"position_changed",p)))}),[p]),d((function(){x&&f&&(null!==j&&google.maps.event.removeListener(j),R(google.maps.event.addListener(x,"zindex_changed",f)))}),[f]),d((function(){if(b){var e=o||xH,t=e.position,r=$B(e,["position"]),i=void 0;!t||t instanceof google.maps.LatLng||(i=new google.maps.LatLng(t.lat,t.lng));var s=new vH(OB(OB({},r),i?{position:i}:{}));_.current=document.createElement("div"),C(s),a&&E(google.maps.event.addListener(s,"closeclick",a)),l&&N(google.maps.event.addListener(s,"domready",l)),u&&P(google.maps.event.addListener(s,"content_changed",u)),p&&D(google.maps.event.addListener(s,"position_changed",p)),f&&R(google.maps.event.addListener(s,"zindex_changed",f)),s.setContent(_.current),n?s.open(b,n):s.getPosition()?s.open(b):AB(!1,"You must provide either an anchor or a position prop for <InfoBox>."),m&&m(s)}return function(){null!==x&&(S&&google.maps.event.removeListener(S),I&&google.maps.event.removeListener(I),$&&google.maps.event.removeListener($),A&&google.maps.event.removeListener(A),j&&google.maps.event.removeListener(j),v&&v(x),x.close())}}),[]),_.current?k(g.only(t),_.current):null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=null,t.state={infoBox:null},t.open=function(e,n){n?null!==t.context&&e.open(t.context,n):e.getPosition()?null!==t.context&&e.open(t.context):AB(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},t.setInfoBoxCallback=function(){null!==t.state.infoBox&&null!==t.containerElement&&(t.state.infoBox.setContent(t.containerElement),t.open(t.state.infoBox,t.props.anchor),t.props.onLoad&&t.props.onLoad(t.state.infoBox))},t}EB(t,e),t.prototype.componentDidMount=function(){var e,t=this.props.options||{},n=t.position,o=$B(t,["position"]);!n||n instanceof google.maps.LatLng||(e=new google.maps.LatLng(n.lat,n.lng));var r=new vH(OB(OB({},o),e?{position:e}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=zB({updaterMap:yH,eventMap:bH,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)},t.prototype.componentDidUpdate=function(e){var t=this.state.infoBox;null!==t&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:yH,eventMap:bH,prevProps:e,nextProps:this.props,instance:t}))},t.prototype.componentWillUnmount=function(){var e=this.props.onUnmount,t=this.state.infoBox;null!==t&&(e&&e(t),_B(this.registeredEvents),t.close())},t.prototype.render=function(){return this.containerElement?k(g.only(this.props.children),this.containerElement):null},t.contextType=DB}(C);var CH=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},wH=IB(CH);const SH=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class kH{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=SH[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 kH(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=SH.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 EH(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++)MH(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];MH(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 EH(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;OH(e,t,a,o,r,i),EH(e,t,n,o,a-1,1-i),EH(e,t,n,a+1,r,1-i)}function OH(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);OH(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($H(e,t,o,n),t[2*r+i]>a&&$H(e,t,o,r);s<l;){for($H(e,t,s,l),s++,l--;t[2*s+i]<a;)s++;for(;t[2*l+i]>a;)l--}t[2*o+i]===a?$H(e,t,o,l):(l++,$H(e,t,l,r)),l<=n&&(o=l+1),n<=l&&(r=l-1)}}function $H(e,t,n,o){NH(e,n,o),NH(t,2*n,2*o),NH(t,2*n+1,2*o+1)}function NH(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function MH(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const IH={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},PH=Math.fround||(LH=new Float32Array(1),e=>(LH[0]=+e,LH[0]));var LH;class AH{constructor(e){this.options=Object.assign(Object.create(IH),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=PH(jH(o)),s=PH(RH(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(jH(n),RH(i),jH(r),RH(o)),l=a.data,c=[];for(const e of s){const t=this.stride*e;c.push(l[t+5]>1?DH(l,t,this.clusterProps):this.points[l[t+3]])}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+5]>1?DH(i,n,this.clusterProps):this.points[i[n+3]])}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 kH(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+5]>1;let l,c,u;if(s)l=TH(t,e,this.clusterProps),c=t[e],u=t[e+1];else{const n=this.points[t[e+3]];l=n.properties;const[o,r]=n.geometry.coordinates;c=jH(o),u=RH(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+3]:this.points[t[e+3]].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+5];let f=p;for(const e of d){const n=e*c;s[n+2]>t&&(f+=s[n+5])}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+5];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+5]>1){const o=this.clusterProps[e[t+6]];return n?Object.assign({},o):o}const o=this.points[e[t+3]].properties,r=this.options.map(o);return n&&r===o?Object.assign({},r):r}}function DH(e,t,n){return{type:"Feature",id:e[t+3],properties:TH(e,t,n),geometry:{type:"Point",coordinates:[(o=e[t],360*(o-.5)),_H(e[t+1])]}};var o}function TH(e,t,n){const o=e[t+5],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?Math.round(o/100)/10+"k":o,i=e[t+6],a=-1===i?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+3],point_count:o,point_count_abbreviated:r})}function jH(e){return e/360+.5}function RH(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 _H(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}
|
49
|
-
/*! *****************************************************************************
|
50
|
-
Copyright (c) Microsoft Corporation.
|
51
|
-
|
52
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
53
|
-
purpose with or without fee is hereby granted.
|
54
|
-
|
55
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
56
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
57
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
58
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
59
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
60
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
61
|
-
PERFORMANCE OF THIS SOFTWARE.
|
62
|
-
***************************************************************************** */class zH{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 BH{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(zH.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>zH.getVisible(e))).length}push(e){this.markers.push(e)}delete(){this.marker&&(zH.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class HH{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return FH(e)}}const FH=e=>e.map((e=>new BH({position:zH.getPosition(e),markers:[e]})));class VH extends HH{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 AH(Object.assign({maxZoom:this.maxZoom,radius:n},o))}calculate(e){let t=!1;const n={zoom:e.map.getZoom()};if(!wH(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const n=this.markers.map((e=>{const t=zH.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=!wH(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 BH({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 BH({markers:[o],position:zH.getPosition(o)})}}class WH{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 KH{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(zH.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 qH{constructor(){!function(e,t){for(let n in t.prototype)e.prototype[n]=t.prototype[n]}(qH,google.maps.OverlayView)}}var XH;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(XH||(XH={}));const UH=(e,t,n)=>{n.fitBounds(t.bounds)};class GH extends qH{constructor({map:e,markers:t=[],algorithmOptions:n={},algorithm:o=new VH(n),renderer:r=new KH,onClusterClick:i=UH}){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&&(zH.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,XH.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)||zH.setMap(t.marker,null):n.push(t.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame((()=>n.forEach((e=>zH.setMap(e,null)))))}google.maps.event.trigger(this,XH.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=>zH.setMap(e,null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const e=new WH(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=>zH.setMap(e,null))),this.onClusterClick&&n.marker.addListener("click",(e=>{google.maps.event.trigger(this,XH.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)}))),zH.setMap(n.marker,t)}))}}function YH(e){var t=function(){AB(!!s,"useGoogleMap is React hook and requires React version 16.8+");var e=s(DB);return AB(!!e,"useGoogleMap needs a GoogleMap available up in the tree"),e}(),n=h(null),o=n[0],r=n[1];return d((function(){if(t&&null===o){var n=new GH(OB(OB({},e),{map:t}));r(n)}}),[t]),o}x((function(e){var t=e.children,n=YH(e.options);return null!==n?t(n):null}));var QH={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},ZH={options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},zIndex:function(e,t){e.setZIndex(t)}};x((function(e){var t=e.children,n=e.anchor,o=e.options,r=e.position,i=e.zIndex,a=e.onCloseClick,l=e.onDomReady,u=e.onContentChanged,p=e.onPositionChanged,f=e.onZindexChanged,m=e.onLoad,v=e.onUnmount,b=s(DB),y=h(null),x=y[0],C=y[1],w=h(null),S=w[0],E=w[1],O=h(null),$=O[0],N=O[1],M=h(null),I=M[0],P=M[1],L=h(null),A=L[0],D=L[1],T=h(null),j=T[0],R=T[1],_=c(null);return d((function(){null!==x&&(x.close(),n?x.open(b,n):x.getPosition()&&x.open(b))}),[b,x,n]),d((function(){o&&null!==x&&x.setOptions(o)}),[x,o]),d((function(){r&&null!==x&&x.setPosition(r)}),[r]),d((function(){"number"==typeof i&&null!==x&&x.setZIndex(i)}),[i]),d((function(){x&&a&&(null!==S&&google.maps.event.removeListener(S),E(google.maps.event.addListener(x,"closeclick",a)))}),[a]),d((function(){x&&l&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(x,"domready",l)))}),[l]),d((function(){x&&u&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(x,"content_changed",u)))}),[u]),d((function(){x&&p&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener(x,"position_changed",p)))}),[p]),d((function(){x&&f&&(null!==j&&google.maps.event.removeListener(j),R(google.maps.event.addListener(x,"zindex_changed",f)))}),[f]),d((function(){var e=new google.maps.InfoWindow(OB({},o||{}));return C(e),_.current=document.createElement("div"),a&&E(google.maps.event.addListener(e,"closeclick",a)),l&&N(google.maps.event.addListener(e,"domready",l)),u&&P(google.maps.event.addListener(e,"content_changed",u)),p&&D(google.maps.event.addListener(e,"position_changed",p)),f&&R(google.maps.event.addListener(e,"zindex_changed",f)),e.setContent(_.current),r&&e.setPosition(r),i&&e.setZIndex(i),n?e.open(b,n):e.getPosition()?e.open(b):AB(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),m&&m(e),function(){S&&google.maps.event.removeListener(S),I&&google.maps.event.removeListener(I),$&&google.maps.event.removeListener($),A&&google.maps.event.removeListener(A),j&&google.maps.event.removeListener(j),v&&v(e),e.close()}}),[]),_.current?k(g.only(t),_.current):null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=null,t.state={infoWindow:null},t.open=function(e,n){n?e.open(t.context,n):e.getPosition()?e.open(t.context):AB(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},t.setInfoWindowCallback=function(){null!==t.state.infoWindow&&null!==t.containerElement&&(t.state.infoWindow.setContent(t.containerElement),t.open(t.state.infoWindow,t.props.anchor),t.props.onLoad&&t.props.onLoad(t.state.infoWindow))},t}EB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.InfoWindow(OB({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=zB({updaterMap:ZH,eventMap:QH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{infoWindow:e}}),this.setInfoWindowCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.infoWindow&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:ZH,eventMap:QH,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))},t.prototype.componentWillUnmount=function(){null!==this.state.infoWindow&&(_B(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},t.prototype.render=function(){return this.containerElement?k(g.only(this.props.children),this.containerElement):null},t.contextType=DB}(C);var JH={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},eF={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)}},tF={};x((function(e){var t=e.options,n=e.draggable,o=e.editable,r=e.visible,i=e.path,a=e.onDblClick,l=e.onDragEnd,c=e.onDragStart,u=e.onMouseDown,p=e.onMouseMove,f=e.onMouseOut,g=e.onMouseOver,m=e.onMouseUp,v=e.onRightClick,b=e.onClick,y=e.onDrag,x=e.onLoad,C=e.onUnmount,w=s(DB),S=h(null),k=S[0],E=S[1],O=h(null),$=O[0],N=O[1],M=h(null),I=M[0],P=M[1],L=h(null),A=L[0],D=L[1],T=h(null),j=T[0],R=T[1],_=h(null),z=_[0],B=_[1],H=h(null),F=H[0],V=H[1],W=h(null),K=W[0],q=W[1],X=h(null),U=X[0],G=X[1],Y=h(null),Q=Y[0],Z=Y[1],J=h(null),ee=J[0],te=J[1],ne=h(null),oe=ne[0],re=ne[1];return d((function(){null!==k&&k.setMap(w)}),[w]),d((function(){void 0!==t&&null!==k&&k.setOptions(t)}),[k,t]),d((function(){void 0!==n&&null!==k&&k.setDraggable(n)}),[k,n]),d((function(){void 0!==o&&null!==k&&k.setEditable(o)}),[k,o]),d((function(){void 0!==r&&null!==k&&k.setVisible(r)}),[k,r]),d((function(){void 0!==i&&null!==k&&k.setPath(i)}),[k,i]),d((function(){k&&a&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(k,"dblclick",a)))}),[a]),d((function(){k&&l&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(k,"dragend",l)))}),[l]),d((function(){k&&c&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener(k,"dragstart",c)))}),[c]),d((function(){k&&u&&(null!==j&&google.maps.event.removeListener(j),R(google.maps.event.addListener(k,"mousedown",u)))}),[u]),d((function(){k&&p&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(k,"mousemove",p)))}),[p]),d((function(){k&&f&&(null!==F&&google.maps.event.removeListener(F),V(google.maps.event.addListener(k,"mouseout",f)))}),[f]),d((function(){k&&g&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener(k,"mouseover",g)))}),[g]),d((function(){k&&m&&(null!==U&&google.maps.event.removeListener(U),G(google.maps.event.addListener(k,"mouseup",m)))}),[m]),d((function(){k&&v&&(null!==Q&&google.maps.event.removeListener(Q),Z(google.maps.event.addListener(k,"rightclick",v)))}),[v]),d((function(){k&&b&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(k,"click",b)))}),[b]),d((function(){k&&y&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener(k,"drag",y)))}),[y]),d((function(){var e=new google.maps.Polyline(OB(OB({},t||tF),{map:w}));return i&&e.setPath(i),void 0!==r&&e.setVisible(r),void 0!==o&&e.setEditable(o),void 0!==n&&e.setDraggable(n),a&&N(google.maps.event.addListener(e,"dblclick",a)),l&&P(google.maps.event.addListener(e,"dragend",l)),c&&D(google.maps.event.addListener(e,"dragstart",c)),u&&R(google.maps.event.addListener(e,"mousedown",u)),p&&B(google.maps.event.addListener(e,"mousemove",p)),f&&V(google.maps.event.addListener(e,"mouseout",f)),g&&q(google.maps.event.addListener(e,"mouseover",g)),m&&G(google.maps.event.addListener(e,"mouseup",m)),v&&Z(google.maps.event.addListener(e,"rightclick",v)),b&&te(google.maps.event.addListener(e,"click",b)),y&&re(google.maps.event.addListener(e,"drag",y)),E(e),x&&x(e),function(){null!==$&&google.maps.event.removeListener($),null!==I&&google.maps.event.removeListener(I),null!==A&&google.maps.event.removeListener(A),null!==j&&google.maps.event.removeListener(j),null!==z&&google.maps.event.removeListener(z),null!==F&&google.maps.event.removeListener(F),null!==K&&google.maps.event.removeListener(K),null!==U&&google.maps.event.removeListener(U),null!==Q&&google.maps.event.removeListener(Q),null!==ee&&google.maps.event.removeListener(ee),C&&C(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}EB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Polyline(OB(OB({},this.props.options||{}),{map:this.context}));this.registeredEvents=zB({updaterMap:eF,eventMap:JH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polyline:e}}),this.setPolylineCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.polyline&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:eF,eventMap:JH,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),_B(this.registeredEvents),this.state.polyline.setMap(null))},t.prototype.render=function(){return null},t.contextType=DB}(C);var nF={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},oF={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)}};x((function(e){var t=e.options,n=e.draggable,o=e.editable,r=e.visible,i=e.path,a=e.paths,l=e.onDblClick,c=e.onDragEnd,u=e.onDragStart,p=e.onMouseDown,f=e.onMouseMove,g=e.onMouseOut,m=e.onMouseOver,v=e.onMouseUp,b=e.onRightClick,y=e.onClick,x=e.onDrag,C=e.onLoad,w=e.onUnmount,S=e.onEdit,k=s(DB),E=h(null),O=E[0],$=E[1],N=h(null),M=N[0],I=N[1],P=h(null),L=P[0],A=P[1],D=h(null),T=D[0],j=D[1],R=h(null),_=R[0],z=R[1],B=h(null),H=B[0],F=B[1],V=h(null),W=V[0],K=V[1],q=h(null),X=q[0],U=q[1],G=h(null),Y=G[0],Q=G[1],Z=h(null),J=Z[0],ee=Z[1],te=h(null),ne=te[0],oe=te[1],re=h(null),ie=re[0],ae=re[1];return d((function(){null!==O&&O.setMap(k)}),[k]),d((function(){void 0!==t&&null!==O&&O.setOptions(t)}),[O,t]),d((function(){void 0!==n&&null!==O&&O.setDraggable(n)}),[O,n]),d((function(){void 0!==o&&null!==O&&O.setEditable(o)}),[O,o]),d((function(){void 0!==r&&null!==O&&O.setVisible(r)}),[O,r]),d((function(){void 0!==i&&null!==O&&O.setPath(i)}),[O,i]),d((function(){void 0!==a&&null!==O&&O.setPaths(a)}),[O,a]),d((function(){O&&l&&(null!==M&&google.maps.event.removeListener(M),I(google.maps.event.addListener(O,"dblclick",l)))}),[l]),d((function(){O&&(google.maps.event.addListener(O.getPath(),"insert_at",(function(){null==S||S(O)})),google.maps.event.addListener(O.getPath(),"set_at",(function(){null==S||S(O)})))}),[O,S]),d((function(){O&&c&&(null!==L&&google.maps.event.removeListener(L),A(google.maps.event.addListener(O,"dragend",c)))}),[c]),d((function(){O&&u&&(null!==T&&google.maps.event.removeListener(T),j(google.maps.event.addListener(O,"dragstart",u)))}),[u]),d((function(){O&&p&&(null!==_&&google.maps.event.removeListener(_),z(google.maps.event.addListener(O,"mousedown",p)))}),[p]),d((function(){O&&f&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(O,"mousemove",f)))}),[f]),d((function(){O&&g&&(null!==W&&google.maps.event.removeListener(W),K(google.maps.event.addListener(O,"mouseout",g)))}),[g]),d((function(){O&&m&&(null!==X&&google.maps.event.removeListener(X),U(google.maps.event.addListener(O,"mouseover",m)))}),[m]),d((function(){O&&v&&(null!==Y&&google.maps.event.removeListener(Y),Q(google.maps.event.addListener(O,"mouseup",v)))}),[v]),d((function(){O&&b&&(null!==J&&google.maps.event.removeListener(J),ee(google.maps.event.addListener(O,"rightclick",b)))}),[b]),d((function(){O&&y&&(null!==ne&&google.maps.event.removeListener(ne),oe(google.maps.event.addListener(O,"click",y)))}),[y]),d((function(){O&&x&&(null!==ie&&google.maps.event.removeListener(ie),ae(google.maps.event.addListener(O,"drag",x)))}),[x]),d((function(){var e=new google.maps.Polygon(OB(OB({},t||{}),{map:k}));return i&&e.setPath(i),a&&e.setPaths(a),void 0!==r&&e.setVisible(r),void 0!==o&&e.setEditable(o),void 0!==n&&e.setDraggable(n),l&&I(google.maps.event.addListener(e,"dblclick",l)),c&&A(google.maps.event.addListener(e,"dragend",c)),u&&j(google.maps.event.addListener(e,"dragstart",u)),p&&z(google.maps.event.addListener(e,"mousedown",p)),f&&F(google.maps.event.addListener(e,"mousemove",f)),g&&K(google.maps.event.addListener(e,"mouseout",g)),m&&U(google.maps.event.addListener(e,"mouseover",m)),v&&Q(google.maps.event.addListener(e,"mouseup",v)),b&&ee(google.maps.event.addListener(e,"rightclick",b)),y&&oe(google.maps.event.addListener(e,"click",y)),x&&ae(google.maps.event.addListener(e,"drag",x)),$(e),C&&C(e),function(){null!==M&&google.maps.event.removeListener(M),null!==L&&google.maps.event.removeListener(L),null!==T&&google.maps.event.removeListener(T),null!==_&&google.maps.event.removeListener(_),null!==H&&google.maps.event.removeListener(H),null!==W&&google.maps.event.removeListener(W),null!==X&&google.maps.event.removeListener(X),null!==Y&&google.maps.event.removeListener(Y),null!==J&&google.maps.event.removeListener(J),null!==ne&&google.maps.event.removeListener(ne),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={polygon:null},t.setPolygonCallback=function(){null!==t.state.polygon&&t.props.onLoad&&t.props.onLoad(t.state.polygon)},t}EB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Polygon(OB(OB({},this.props.options||{}),{map:this.context}));this.registeredEvents=zB({updaterMap:oF,eventMap:nF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polygon:e}}),this.setPolygonCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.polygon&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:oF,eventMap:nF,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),_B(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},t.prototype.render=function(){return null},t.contextType=DB}(C);var rF={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"},iF={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)}};x((function(e){var t=e.options,n=e.bounds,o=e.draggable,r=e.editable,i=e.visible,a=e.onDblClick,l=e.onDragEnd,c=e.onDragStart,u=e.onMouseDown,p=e.onMouseMove,f=e.onMouseOut,g=e.onMouseOver,m=e.onMouseUp,v=e.onRightClick,b=e.onClick,y=e.onDrag,x=e.onBoundsChanged,C=e.onLoad,w=e.onUnmount,S=s(DB),k=h(null),E=k[0],O=k[1],$=h(null),N=$[0],M=$[1],I=h(null),P=I[0],L=I[1],A=h(null),D=A[0],T=A[1],j=h(null),R=j[0],_=j[1],z=h(null),B=z[0],H=z[1],F=h(null),V=F[0],W=F[1],K=h(null),q=K[0],X=K[1],U=h(null),G=U[0],Y=U[1],Q=h(null),Z=Q[0],J=Q[1],ee=h(null),te=ee[0],ne=ee[1],oe=h(null),re=oe[0],ie=oe[1],ae=h(null),se=ae[0],le=ae[1];return d((function(){null!==E&&E.setMap(S)}),[S]),d((function(){void 0!==t&&null!==E&&E.setOptions(t)}),[E,t]),d((function(){void 0!==o&&null!==E&&E.setDraggable(o)}),[E,o]),d((function(){void 0!==r&&null!==E&&E.setEditable(r)}),[E,r]),d((function(){void 0!==i&&null!==E&&E.setVisible(i)}),[E,i]),d((function(){void 0!==n&&null!==E&&E.setBounds(n)}),[E,n]),d((function(){E&&a&&(null!==N&&google.maps.event.removeListener(N),M(google.maps.event.addListener(E,"dblclick",a)))}),[a]),d((function(){E&&l&&(null!==P&&google.maps.event.removeListener(P),L(google.maps.event.addListener(E,"dragend",l)))}),[l]),d((function(){E&&c&&(null!==D&&google.maps.event.removeListener(D),T(google.maps.event.addListener(E,"dragstart",c)))}),[c]),d((function(){E&&u&&(null!==R&&google.maps.event.removeListener(R),_(google.maps.event.addListener(E,"mousedown",u)))}),[u]),d((function(){E&&p&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(E,"mousemove",p)))}),[p]),d((function(){E&&f&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener(E,"mouseout",f)))}),[f]),d((function(){E&&g&&(null!==q&&google.maps.event.removeListener(q),X(google.maps.event.addListener(E,"mouseover",g)))}),[g]),d((function(){E&&m&&(null!==G&&google.maps.event.removeListener(G),Y(google.maps.event.addListener(E,"mouseup",m)))}),[m]),d((function(){E&&v&&(null!==Z&&google.maps.event.removeListener(Z),J(google.maps.event.addListener(E,"rightclick",v)))}),[v]),d((function(){E&&b&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(E,"click",b)))}),[b]),d((function(){E&&y&&(null!==re&&google.maps.event.removeListener(re),ie(google.maps.event.addListener(E,"drag",y)))}),[y]),d((function(){E&&x&&(null!==se&&google.maps.event.removeListener(se),le(google.maps.event.addListener(E,"bounds_changed",x)))}),[x]),d((function(){var e=new google.maps.Rectangle(OB(OB({},t||{}),{map:S}));return void 0!==i&&e.setVisible(i),void 0!==r&&e.setEditable(r),void 0!==o&&e.setDraggable(o),void 0!==n&&e.setBounds(n),a&&M(google.maps.event.addListener(e,"dblclick",a)),l&&L(google.maps.event.addListener(e,"dragend",l)),c&&T(google.maps.event.addListener(e,"dragstart",c)),u&&_(google.maps.event.addListener(e,"mousedown",u)),p&&H(google.maps.event.addListener(e,"mousemove",p)),f&&W(google.maps.event.addListener(e,"mouseout",f)),g&&X(google.maps.event.addListener(e,"mouseover",g)),m&&Y(google.maps.event.addListener(e,"mouseup",m)),v&&J(google.maps.event.addListener(e,"rightclick",v)),b&&ne(google.maps.event.addListener(e,"click",b)),y&&ie(google.maps.event.addListener(e,"drag",y)),x&&le(google.maps.event.addListener(e,"bounds_changed",x)),O(e),C&&C(e),function(){null!==N&&google.maps.event.removeListener(N),null!==P&&google.maps.event.removeListener(P),null!==D&&google.maps.event.removeListener(D),null!==R&&google.maps.event.removeListener(R),null!==B&&google.maps.event.removeListener(B),null!==V&&google.maps.event.removeListener(V),null!==q&&google.maps.event.removeListener(q),null!==G&&google.maps.event.removeListener(G),null!==Z&&google.maps.event.removeListener(Z),null!==te&&google.maps.event.removeListener(te),null!==re&&google.maps.event.removeListener(re),null!==se&&google.maps.event.removeListener(se),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={rectangle:null},t.setRectangleCallback=function(){null!==t.state.rectangle&&t.props.onLoad&&t.props.onLoad(t.state.rectangle)},t}EB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Rectangle(OB(OB({},this.props.options||{}),{map:this.context}));this.registeredEvents=zB({updaterMap:iF,eventMap:rF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{rectangle:e}}),this.setRectangleCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.rectangle&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:iF,eventMap:rF,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),_B(this.registeredEvents),this.state.rectangle.setMap(null))},t.prototype.render=function(){return null},t.contextType=DB}(C);var aF={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"},sF={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)}},lF={};x((function(e){var t=e.options,n=e.center,o=e.radius,r=e.draggable,i=e.editable,a=e.visible,l=e.onDblClick,c=e.onDragEnd,u=e.onDragStart,p=e.onMouseDown,f=e.onMouseMove,g=e.onMouseOut,m=e.onMouseOver,v=e.onMouseUp,b=e.onRightClick,y=e.onClick,x=e.onDrag,C=e.onCenterChanged,w=e.onRadiusChanged,S=e.onLoad,k=e.onUnmount,E=s(DB),O=h(null),$=O[0],N=O[1],M=h(null),I=M[0],P=M[1],L=h(null),A=L[0],D=L[1],T=h(null),j=T[0],R=T[1],_=h(null),z=_[0],B=_[1],H=h(null),F=H[0],V=H[1],W=h(null),K=W[0],q=W[1],X=h(null),U=X[0],G=X[1],Y=h(null),Q=Y[0],Z=Y[1],J=h(null),ee=J[0],te=J[1],ne=h(null),oe=ne[0],re=ne[1],ie=h(null),ae=ie[0],se=ie[1],le=h(null),ce=le[0],ue=le[1],de=h(null),pe=de[0],fe=de[1];return d((function(){null!==$&&$.setMap(E)}),[E]),d((function(){void 0!==t&&null!==$&&$.setOptions(t)}),[$,t]),d((function(){void 0!==r&&null!==$&&$.setDraggable(r)}),[$,r]),d((function(){void 0!==i&&null!==$&&$.setEditable(i)}),[$,i]),d((function(){void 0!==a&&null!==$&&$.setVisible(a)}),[$,a]),d((function(){"number"==typeof o&&null!==$&&$.setRadius(o)}),[$,o]),d((function(){void 0!==n&&null!==$&&$.setCenter(n)}),[$,n]),d((function(){$&&l&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener($,"dblclick",l)))}),[l]),d((function(){$&&c&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener($,"dragend",c)))}),[c]),d((function(){$&&u&&(null!==j&&google.maps.event.removeListener(j),R(google.maps.event.addListener($,"dragstart",u)))}),[u]),d((function(){$&&p&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener($,"mousedown",p)))}),[p]),d((function(){$&&f&&(null!==F&&google.maps.event.removeListener(F),V(google.maps.event.addListener($,"mousemove",f)))}),[f]),d((function(){$&&g&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener($,"mouseout",g)))}),[g]),d((function(){$&&m&&(null!==U&&google.maps.event.removeListener(U),G(google.maps.event.addListener($,"mouseover",m)))}),[m]),d((function(){$&&v&&(null!==Q&&google.maps.event.removeListener(Q),Z(google.maps.event.addListener($,"mouseup",v)))}),[v]),d((function(){$&&b&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener($,"rightclick",b)))}),[b]),d((function(){$&&y&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener($,"click",y)))}),[y]),d((function(){$&&x&&(null!==ae&&google.maps.event.removeListener(ae),se(google.maps.event.addListener($,"drag",x)))}),[x]),d((function(){$&&C&&(null!==ce&&google.maps.event.removeListener(ce),ue(google.maps.event.addListener($,"center_changed",C)))}),[y]),d((function(){$&&w&&(null!==pe&&google.maps.event.removeListener(pe),fe(google.maps.event.addListener($,"radius_changed",w)))}),[w]),d((function(){var e=new google.maps.Circle(OB(OB({},t||lF),{map:E}));return"number"==typeof o&&e.setRadius(o),void 0!==n&&e.setCenter(n),"number"==typeof o&&e.setRadius(o),void 0!==a&&e.setVisible(a),void 0!==i&&e.setEditable(i),void 0!==r&&e.setDraggable(r),l&&P(google.maps.event.addListener(e,"dblclick",l)),c&&D(google.maps.event.addListener(e,"dragend",c)),u&&R(google.maps.event.addListener(e,"dragstart",u)),p&&B(google.maps.event.addListener(e,"mousedown",p)),f&&V(google.maps.event.addListener(e,"mousemove",f)),g&&q(google.maps.event.addListener(e,"mouseout",g)),m&&G(google.maps.event.addListener(e,"mouseover",m)),v&&Z(google.maps.event.addListener(e,"mouseup",v)),b&&te(google.maps.event.addListener(e,"rightclick",b)),y&&re(google.maps.event.addListener(e,"click",y)),x&&se(google.maps.event.addListener(e,"drag",x)),C&&ue(google.maps.event.addListener(e,"center_changed",C)),w&&fe(google.maps.event.addListener(e,"radius_changed",w)),N(e),S&&S(e),function(){null!==I&&google.maps.event.removeListener(I),null!==A&&google.maps.event.removeListener(A),null!==j&&google.maps.event.removeListener(j),null!==z&&google.maps.event.removeListener(z),null!==F&&google.maps.event.removeListener(F),null!==K&&google.maps.event.removeListener(K),null!==U&&google.maps.event.removeListener(U),null!==Q&&google.maps.event.removeListener(Q),null!==ee&&google.maps.event.removeListener(ee),null!==oe&&google.maps.event.removeListener(oe),null!==ce&&google.maps.event.removeListener(ce),null!==pe&&google.maps.event.removeListener(pe),k&&k(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}EB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Circle(OB(OB({},this.props.options||{}),{map:this.context}));this.registeredEvents=zB({updaterMap:sF,eventMap:aF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{circle:e}}),this.setCircleCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.circle&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:sF,eventMap:aF,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),_B(this.registeredEvents),null===(e=this.state.circle)||void 0===e||e.setMap(null))},t.prototype.render=function(){return null},t.contextType=DB}(C);var cF={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},uF={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)}};x((function(e){var t=e.options,n=e.onClick,o=e.onDblClick,r=e.onMouseDown,i=e.onMouseMove,a=e.onMouseOut,l=e.onMouseOver,c=e.onMouseUp,u=e.onRightClick,p=e.onAddFeature,f=e.onRemoveFeature,g=e.onRemoveProperty,m=e.onSetGeometry,v=e.onSetProperty,b=e.onLoad,y=e.onUnmount,x=s(DB),C=h(null),w=C[0],S=C[1],k=h(null),E=k[0],O=k[1],$=h(null),N=$[0],M=$[1],I=h(null),P=I[0],L=I[1],A=h(null),D=A[0],T=A[1],j=h(null),R=j[0],_=j[1],z=h(null),B=z[0],H=z[1],F=h(null),V=F[0],W=F[1],K=h(null),q=K[0],X=K[1],U=h(null),G=U[0],Y=U[1],Q=h(null),Z=Q[0],J=Q[1],ee=h(null),te=ee[0],ne=ee[1],oe=h(null),re=oe[0],ie=oe[1],ae=h(null),se=ae[0],le=ae[1];return d((function(){null!==w&&w.setMap(x)}),[x]),d((function(){w&&o&&(null!==E&&google.maps.event.removeListener(E),O(google.maps.event.addListener(w,"dblclick",o)))}),[o]),d((function(){w&&r&&(null!==N&&google.maps.event.removeListener(N),M(google.maps.event.addListener(w,"mousedown",r)))}),[r]),d((function(){w&&i&&(null!==P&&google.maps.event.removeListener(P),L(google.maps.event.addListener(w,"mousemove",i)))}),[i]),d((function(){w&&a&&(null!==D&&google.maps.event.removeListener(D),T(google.maps.event.addListener(w,"mouseout",a)))}),[a]),d((function(){w&&l&&(null!==R&&google.maps.event.removeListener(R),_(google.maps.event.addListener(w,"mouseover",l)))}),[l]),d((function(){w&&c&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(w,"mouseup",c)))}),[c]),d((function(){w&&u&&(null!==V&&google.maps.event.removeListener(V),W(google.maps.event.addListener(w,"rightclick",u)))}),[u]),d((function(){w&&n&&(null!==q&&google.maps.event.removeListener(q),X(google.maps.event.addListener(w,"click",n)))}),[n]),d((function(){w&&p&&(null!==G&&google.maps.event.removeListener(G),Y(google.maps.event.addListener(w,"addfeature",p)))}),[p]),d((function(){w&&f&&(null!==Z&&google.maps.event.removeListener(Z),J(google.maps.event.addListener(w,"removefeature",f)))}),[f]),d((function(){w&&g&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(w,"removeproperty",g)))}),[g]),d((function(){w&&m&&(null!==re&&google.maps.event.removeListener(re),ie(google.maps.event.addListener(w,"setgeometry",m)))}),[m]),d((function(){w&&v&&(null!==se&&google.maps.event.removeListener(se),le(google.maps.event.addListener(w,"setproperty",v)))}),[v]),d((function(){if(null!==x){var e=new google.maps.Data(OB(OB({},t||{}),{map:x}));o&&O(google.maps.event.addListener(e,"dblclick",o)),r&&M(google.maps.event.addListener(e,"mousedown",r)),i&&L(google.maps.event.addListener(e,"mousemove",i)),a&&T(google.maps.event.addListener(e,"mouseout",a)),l&&_(google.maps.event.addListener(e,"mouseover",l)),c&&H(google.maps.event.addListener(e,"mouseup",c)),u&&W(google.maps.event.addListener(e,"rightclick",u)),n&&X(google.maps.event.addListener(e,"click",n)),p&&Y(google.maps.event.addListener(e,"addfeature",p)),f&&J(google.maps.event.addListener(e,"removefeature",f)),g&&ne(google.maps.event.addListener(e,"removeproperty",g)),m&&ie(google.maps.event.addListener(e,"setgeometry",m)),v&&le(google.maps.event.addListener(e,"setproperty",v)),S(e),b&&b(e)}return function(){w&&(null!==E&&google.maps.event.removeListener(E),null!==N&&google.maps.event.removeListener(N),null!==P&&google.maps.event.removeListener(P),null!==D&&google.maps.event.removeListener(D),null!==R&&google.maps.event.removeListener(R),null!==B&&google.maps.event.removeListener(B),null!==V&&google.maps.event.removeListener(V),null!==q&&google.maps.event.removeListener(q),null!==G&&google.maps.event.removeListener(G),null!==Z&&google.maps.event.removeListener(Z),null!==te&&google.maps.event.removeListener(te),null!==re&&google.maps.event.removeListener(re),null!==se&&google.maps.event.removeListener(se),y&&y(w),w.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}EB(t,e),t.prototype.componentDidMount=function(){if(null!==this.context){var e=new google.maps.Data(OB(OB({},this.props.options||{}),{map:this.context}));this.registeredEvents=zB({updaterMap:uF,eventMap:cF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{data:e}}),this.setDataCallback)}},t.prototype.componentDidUpdate=function(e){null!==this.state.data&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:uF,eventMap:cF,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),_B(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},t.prototype.render=function(){return null},t.contextType=DB}(C);var dF={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},pF={options:function(e,t){e.setOptions(t)},url:function(e,t){e.setUrl(t)},zIndex:function(e,t){e.setZIndex(t)}};function fF(e,t){return"function"==typeof t?t(e.offsetWidth,e.offsetHeight):{x:0,y:0}}function hF(e,t){return new t(e.lat,e.lng)}function gF(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 mF(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,gF)):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,hF))}function vF(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function bF(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 yF(){}!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}EB(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.KmlLayer(OB(OB({},this.props.options),{map:this.context}));this.registeredEvents=zB({updaterMap:pF,eventMap:dF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{kmlLayer:e}}),this.setKmlLayerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.kmlLayer&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:pF,eventMap:dF,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),_B(this.registeredEvents),this.state.kmlLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=DB}(C),x((function(e){var t=e.position,n=e.bounds,o=e.mapPaneName,r=e.zIndex,i=e.onLoad,a=e.onUnmount,l=e.getPixelPositionOffset,c=e.children,u=s(DB),p=f((function(){var e=document.createElement("div");return e.style.position="absolute",e}),[]),h=f((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 EB(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=mF(this.getProjection(),OB({},this.container?fF(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,o,t,n,l)}),[p,o,t,n]);return d((function(){return null==i||i(h),null==h||h.setMap(u),function(){null==a||a(h),null==h||h.setMap(null)}}),[u,h]),d((function(){p.style.zIndex="".concat(r)}),[r,p]),w.createPortal(c,p)})),function(e){function n(t){var n=e.call(this,t)||this;n.state={paneEl:null,containerStyle:{position:"absolute"}},n.updatePane=function(){var e=n.props.mapPaneName,t=n.overlayView.getPanes();AB(!!e,"OverlayView requires props.mapPaneName but got %s",e),t?n.setState({paneEl:t[e]}):n.setState({paneEl:null})},n.onAdd=function(){var e,t;n.updatePane(),null===(t=(e=n.props).onLoad)||void 0===t||t.call(e,n.overlayView)},n.onPositionElement=function(){var e,t,o=mF(n.overlayView.getProjection(),OB({x:0,y:0},n.containerRef.current?fF(n.containerRef.current,n.props.getPixelPositionOffset):{}),n.props.bounds,n.props.position),r=n.state.containerStyle,i=r.left,a=r.top,s=r.width,l=r.height;t={left:i,top:a,width:s,height:l},((e=o).left!==t.left||e.top!==t.top||e.width!==t.height||e.height!==t.height)&&n.setState({containerStyle:{top:o.top||0,left:o.left||0,width:o.width||0,height:o.height||0,position:"absolute"}})},n.draw=function(){n.onPositionElement()},n.onRemove=function(){var e,t;n.setState((function(){return{paneEl:null}})),null===(t=(e=n.props).onUnmount)||void 0===t||t.call(e,n.overlayView)},n.containerRef=m();var o=new google.maps.OverlayView;return o.onAdd=n.onAdd,o.draw=n.draw,o.onRemove=n.onRemove,n.overlayView=o,n}EB(n,e),n.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},n.prototype.componentDidUpdate=function(e){var t=vF(e.position),n=vF(this.props.position),o=bF(e.bounds),r=bF(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 e=this.state.paneEl;return e?w.createPortal(t("div",{ref:this.containerRef,style:this.state.containerStyle,children:g.only(this.props.children)}),e):null},n.FLOAT_PANE="floatPane",n.MAP_PANE="mapPane",n.MARKER_LAYER="markerLayer",n.OVERLAY_LAYER="overlayLayer",n.OVERLAY_MOUSE_TARGET="overlayMouseTarget",n.contextType=DB}(C);var xF={onDblClick:"dblclick",onClick:"click"},CF={opacity:function(e,t){e.setOpacity(t)}};x((function(e){var t=e.url,n=e.bounds,o=e.options,r=e.visible,i=s(DB),a=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east)),l=f((function(){return new google.maps.GroundOverlay(t,a,OB({},o))}),[]);return d((function(){null!==l&&l.setMap(i)}),[i]),d((function(){void 0!==t&&null!==l&&(l.set("url",t),l.setMap(i))}),[l,t]),d((function(){void 0!==r&&null!==l&&l.setOpacity(r?1:0)}),[l,r]),d((function(){var e=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east));void 0!==n&&null!==l&&(l.set("bounds",e),l.setMap(i))}),[l,n]),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}EB(t,e),t.prototype.componentDidMount=function(){AB(!!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,OB(OB({},this.props.options),{map:this.context}));this.registeredEvents=zB({updaterMap:CF,eventMap:xF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{groundOverlay:e}}),this.setGroundOverlayCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.groundOverlay&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:CF,eventMap:xF,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:yF},t.contextType=DB}(C);var wF={},SF={data:function(e,t){e.setData(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)}};x((function(e){var t=e.data,n=e.onLoad,o=e.onUnmount,r=e.options,i=s(DB),a=h(null),l=a[0],c=a[1];return d((function(){google.maps.visualization||AB(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)}),[]),d((function(){AB(!!t,"data property is required in HeatmapLayer %s",t)}),[t]),d((function(){null!==l&&l.setMap(i)}),[i]),d((function(){r&&null!==l&&l.setOptions(r)}),[l,r]),d((function(){var e=new google.maps.visualization.HeatmapLayer(OB(OB({},r||{}),{data:t,map:i}));return c(e),n&&n(e),function(){null!==l&&(o&&o(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}EB(t,e),t.prototype.componentDidMount=function(){AB(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),AB(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var e=new google.maps.visualization.HeatmapLayer(OB(OB({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=zB({updaterMap:SF,eventMap:wF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{heatmapLayer:e}}),this.setHeatmapLayerCallback)},t.prototype.componentDidUpdate=function(e){_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:SF,eventMap:wF,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),_B(this.registeredEvents),this.state.heatmapLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=DB}(C);var kF={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},EF={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}EB(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=zB({updaterMap:EF,eventMap:kF,prevProps:{},nextProps:this.props,instance:n}),this.setState((function(){return{streetViewPanorama:n}}),this.setStreetViewPanoramaCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.streetViewPanorama&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:EF,eventMap:kF,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),_B(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},t.prototype.render=function(){return null},t.contextType=DB}(C),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}EB(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=DB}(C),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}EB(t,e),t.prototype.componentDidMount=function(){AB(!!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}}(C);var OF={onDirectionsChanged:"directions_changed"},$F={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 o(){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}EB(o,e),o.prototype.componentDidMount=function(){var e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=zB({updaterMap:$F,eventMap:OF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{directionsRenderer:e}}),this.setDirectionsRendererCallback)},o.prototype.componentDidUpdate=function(e){null!==this.state.directionsRenderer&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:$F,eventMap:OF,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))},o.prototype.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),_B(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},o.prototype.render=function(){return t(n,{})},o.contextType=DB}(C),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}EB(t,e),t.prototype.componentDidMount=function(){AB(!!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}}(C);var NF={onPlacesChanged:"places_changed"},MF={bounds:function(e,t){e.setBounds(t)}};!function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=m(),t.state={searchBox:null},t.setSearchBoxCallback=function(){null!==t.state.searchBox&&t.props.onLoad&&t.props.onLoad(t.state.searchBox)},t}EB(n,e),n.prototype.componentDidMount=function(){if(AB(!!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=zB({updaterMap:MF,eventMap:NF,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{searchBox:t}}),this.setSearchBoxCallback)}}},n.prototype.componentDidUpdate=function(e){null!==this.state.searchBox&&(_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:MF,eventMap:NF,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),_B(this.registeredEvents))},n.prototype.render=function(){return t("div",{ref:this.containerElement,children:g.only(this.props.children)})},n.contextType=DB}(C);var IF={onPlaceChanged:"place_changed"},PF={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(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=m(),t.state={autocomplete:null},t.setAutocompleteCallback=function(){null!==t.state.autocomplete&&t.props.onLoad&&t.props.onLoad(t.state.autocomplete)},t}EB(n,e),n.prototype.componentDidMount=function(){var e;AB(!!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=zB({updaterMap:PF,eventMap:IF,prevProps:{},nextProps:this.props,instance:n}),this.setState((function(){return{autocomplete:n}}),this.setAutocompleteCallback)}},n.prototype.componentDidUpdate=function(e){_B(this.registeredEvents),this.registeredEvents=zB({updaterMap:PF,eventMap:IF,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})},n.prototype.componentWillUnmount=function(){null!==this.state.autocomplete&&_B(this.registeredEvents)},n.prototype.render=function(){return t("div",{ref:this.containerElement,className:this.props.className,children:g.only(this.props.children)})},n.defaultProps={className:""},n.contextType=DB}(C);_A(".appLocationMap {\n width: max-content;\n height: max-content;\n}\n");var LF=function(e){var n=e.cityId,o=e.className,r=e.containerStyle,i=e.clickableIcons,a=e.zoom,s=void 0===a?10:a,l=e.mapKey,c=h(null),u=c[0],p=c[1];return d((function(){n?p(n):navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){p({lat:e.coords.latitude,lng:e.coords.longitude})}))}),[n]),t("div",{className:"appLocationMap ".concat(o),children:t(ZB,{googleMapsApiKey:l,children:t("div",{style:r,children:u&&t(FB,{mapContainerStyle:r,center:u,clickableIcons:i,zoom:s})})})})};_A(".header {\n width: 100%;\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 AF=function(n){var o=n.visible,r=n.onClose,i=n.title,a=n.description,s=n.children,l=n.footerButtons,c=n.alignTitleLeft,u=void 0!==c&&c,d=n.className,p=n.closeIcon,f=n.width;return t("div",{children:e(A$,{open:o,width:f,onCancel:r,footer:null,closeIcon:p||t(Os,{}),className:d,children:[e("div",{className:"header",children:[i&&t("div",{className:u?"titleLeft":"title",children:i}),a&&t("div",{className:u?"descriptionLeft":"description",children:a})]}),t("div",{className:"body",children:s}),l&&t("div",{className:"footer",children:l})]})})},DF=function(e){return"object"==typeof e&&null!==e},TF=function(e){var t=e.value,n=void 0===t?"":t,o=e.numInputs,i=void 0===o?4:o,a=e.onChange,s=e.onPaste,l=e.renderInput,c=e.shouldAutoFocus,u=void 0!==c&&c,d=e.inputType,p=void 0===d?"text":d,f=e.renderSeparator,h=e.placeholder,g=e.containerStyle,m=e.inputStyle,v=e.skipDefaultStyles,b=void 0!==v&&v,y=r.useState(0),x=y[0],C=y[1],w=r.useRef([]),S=function(){return n?n.toString().split(""):[]},k="number"===p||"tel"===p;r.useEffect((function(){w.current=w.current.slice(0,i)}),[i]),r.useEffect((function(){var e;u&&(null===(e=w.current[0])||void 0===e||e.focus())}),[u]);var E=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(k?!isNaN(Number(e)):"string"==typeof e)&&1===e.trim().length},$=function(e){var t=e.target.value;O(t)&&(L(t),P(x+1))},N=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)}))||(A(n.split("")),P(i-1));null===t.data&&"deleteContentBackward"===t.inputType&&(e.preventDefault(),L(""),P(x-1)),e.target.value=""}},M=function(){C(x-1)},I=function(e){var t=S();[e.code,e.key].includes("Backspace")?(e.preventDefault(),L(""),P(x-1)):"Delete"===e.code?(e.preventDefault(),L("")):"ArrowLeft"===e.code?(e.preventDefault(),P(x-1)):"ArrowRight"===e.code||e.key===t[x]?(e.preventDefault(),P(x+1)):"Spacebar"!==e.code&&"Space"!==e.code&&"ArrowUp"!==e.code&&"ArrowDown"!==e.code||e.preventDefault()},P=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))},L=function(e){var t=S();t[x]=e[0],A(t)},A=function(e){var t=e.join("");a(t)},D=function(e){var t;e.preventDefault();var n=S(),o=x,r=e.clipboardData.getData("text/plain").slice(0,i-x).split("");if(!k||!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++);P(o),A(n)}};return r.createElement("div",{style:Object.assign({display:"flex",alignItems:"center"},DF(g)&&g),className:"string"==typeof g?g:void 0,onPaste:s},Array.from({length:i},(function(e,t){return t})).map((function(e){var t,n,o;return r.createElement(r.Fragment,{key:e},l({value:null!==(t=S()[e])&&void 0!==t?t:"",placeholder:null!==(o=null===(n=E())||void 0===n?void 0:n[e])&&void 0!==o?o:void 0,ref:function(t){return w.current[e]=t},onChange:$,onFocus:function(t){return function(e){return function(t){C(t),e.target.select()}}(t)(e)},onBlur:M,onKeyDown:I,onPaste:D,autoComplete:"off","aria-label":"Please enter OTP character ".concat(e+1),style:Object.assign(b?{}:{width:"1em",textAlign:"center"},DF(m)?m:{}),className:"string"==typeof m?m:void 0,type:p,inputMode:k?"numeric":"text",onInput:N},e),e<i-1&&("function"==typeof f?f(e):f))})))};_A(".appOtpField {\n .otpInputStyle {\n gap: 0.5rem;\n & input {\n margin: 0 5px;\n font-size: 24px;\n border-radius: 10px;\n border-color: #f6f7f9;\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");var jF=function(n){var o=n.otp,r=n.onChange,i=n.numInputs,a=void 0===i?4:i,s=n.otpError,l=n.resendTimeout,c=n.onResendOtp,u=n.setResendTimeout,p=n.className,f=n.resendTxt,h=n.resendTime;return d((function(){if(l&&l>0){var e=setTimeout((function(){u(l-1)}),1e3);return function(){return clearTimeout(e)}}}),[l,u]),e("div",{className:"appOtpField ".concat(p),children:[t(TF,{value:o,onChange:r,numInputs:a,containerStyle:"otpInputStyle",renderSeparator:t("span",{children:"-"}),renderInput:function(e){return t("input",$({},e))}}),s&&t("p",{className:"error",children:s})," ",t("div",{className:"resendWrap",children:void 0!==l&&t("span",{className:"forgotPassword",children:l>0?t("span",{className:"resendTimer",children:h}):c&&t("span",{className:"resendBtn",onClick:function(){return c()},children:f})})})]})},RF=function(e){var n=e.total,o=e.currentPage,r=e.pageSize,i=void 0===r?10:r,a=e.onPageChange,s=e.showGotoBox,l=void 0!==s&&s,c=e.sizeChanger,u=void 0===c||c,d=e.className,p=N(e,["total","currentPage","pageSize","onPageChange","showGotoBox","sizeChanger","className"]);return t("div",{className:d,children:t(s$,$({current:o,pageSize:i,total:n,onChange:a,showSizeChanger:u,showQuickJumper:l},p))})};_A(".appPasswordInput {\n font-size: var(--font-14);\n font-weight: 500;\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 height: 40px;\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: normal;\n \n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var _F=function(n){var o=n.label,r=n.name,i=n.value,a=n.dataTestId,s=n.id,l=n.disabled,c=n.handleChange,u=n.onClick,d=n.defaultValue,p=n.onPressEnter,f=n.className,g=n.errorMessage,m=n.isAutoFocus;n.triggerFocus;var v=n.autoComplete,b=void 0===v?"new-password":v,y=n.icon,x=n.hiddenIcon,C=n.showIcon,w=void 0===C||C,S=h(!1),k=S[0],E=S[1];return e("div",{className:"appPasswordInput ".concat(f),children:[e("div",{className:"position-relative w-100",children:[t(Vk,{type:k?"text":"password",className:"inputPassword","data-test-id":a,id:s,disabled:l,name:r,value:i,onChange:c,onClick:u,defaultValue:d,onPressEnter:p,placeholder:o,autoFocus:m,autoComplete:b}),w&&t("span",{className:"icon",onClick:function(){E(!k)},children:k?x||KA.eyePassword:y||KA.iconHiddenIcon})]}),g&&t("div",{className:"error",children:g})]})};_A(".titleComponent {\n span {\n color: #000;\n text-align: center;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n }\n .subText {\n font-size: 1rem !important;\n }\n}\n");var zF=RA.Title,BF=RA.Text,HF=function(n){var o=n.mainText,r=n.className,i=void 0===r?"":r,a=n.subText,s=n.level,l=void 0===s?1:s;return e("div",{className:"titleComponent ".concat(i),children:[t(zF,{level:l,children:o}),a&&t(BF,{className:"subText",children:a})]})};_A(".toggleContainer {\n display: flex;\n align-items: center;\n .ant-switch {\n height: 16px;\n position: relative;\n .ant-switch-handle {\n top: 50%;\n bottom: 50%;\n transform: translateY(-50%);\n }\n }\n &:not(.ant-switch.ant-switch-checked .ant-switch-handle) {\n inset-inline-start: 0px;\n }\n & .ant-switch.ant-switch-checked .ant-switch-handle {\n inset-inline-start: calc(100% - 18px);\n }\n}\n\n.switch {\n margin-right: 0.5rem;\n}\n\n.label {\n font-size: 1rem;\n}\n");var FF=function(n){var o=n.initialChecked,r=void 0!==o&&o,i=n.onChange,a=n.checkedLabel,s=n.uncheckedLabel,l=n.className,c=h(r),u=c[0],d=c[1];return e("div",{className:"toggleContainer ".concat(l),children:[t(cM,{checked:u,onChange:function(e){d(e),i&&i(e)},className:"switch"}),t("span",{className:"label",children:u?a:s})]})};_A(".profileImageContainer {\n display: flex;\n align-items: center;\n gap: 2rem;\n}\n\n.altTextWrapper {\n font-size: 0.8rem;\n text-align: center;\n img {\n border-radius: 0;\n }\n}\n\n.profileImage {\n width: 100px;\n height: 100px;\n border-radius: 50%;\n object-fit: cover;\n position: relative;\n font-size: 0.8rem;\n}\n\n.fileInput {\n display: none;\n}\n");var VF=function(n){var o=n.className,r=n.uploadIcon,i=n.value,a=void 0===i?"":i,s=n.text,l=void 0===s?"Upload Image":s,u=n.onFileChange,d=n.alertMessages,p=void 0===d?{invalidType:"You can only upload JPG/PNG/SVG file!",sizeExceed:"Image must be smaller than 2MB!"}:d,f=n.acceptedFormats,g=void 0===f?["image/jpeg","image/png","image/svg+xml"]:f,m=n.maxSizeMb,v=void 0===m?2:m,b=n.altText,y=void 0===b?"Profile Image":b,x=h(a),C=x[0],w=x[1],S=c(null);return e("div",{className:"profileImageContainer ".concat(o),children:[t("div",{className:""===C?"altTextWrapper":"",children:t("img",{className:"profileImage",src:C,alt:y})}),e("button",{className:"uploadButton",onClick:function(){var e;null===(e=S.current)||void 0===e||e.click()},children:[t("span",{children:r||KA.uploadIcon}),l]}),t("input",{type:"file",accept:g.join(","),className:"fileInput",ref:S,onChange:function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n){var o=g.includes(n.type),r=n.size/1024/1024<v;if(!o)return void alert(p.invalidType);if(!r)return void alert(p.sizeExceed);var i=new FileReader;i.onloadend=function(){w(i.result),u&&u(n)},i.readAsDataURL(n)}else u&&u(null)}})]})};_A(".appRadioGroup {\n .radioGroup {\n display: flex;\n align-items: center;\n }\n}\n");var WF=function(e){var n=e.options,o=e.selectedValue,r=e.onChange,i=e.className;return t("div",{className:"appRadioGroup ".concat(i),children:t(wx.Group,{className:"radioGroup",onChange:function(e){r(e.target.value)},value:o,children:n.map((function(e){return t(wx,{value:e.value,children:e.text},e.value)}))})})};_A(".appselect {\n font-weight: 500;\n font-size: var(--font-14);\n position: relative;\n *:focus,\n *:active,\n *:focus-within {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n .ant-select {\n width: 100%;\n height: 40px;\n .ant-select-selector {\n .ant-select-selection-placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n }\n }\n &:hover {\n .ant-select-selector {\n border-color: #d9d9d9 !important;\n }\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n\n.placeHolder {\n line-height: normal;\n position: absolute;\n bottom: 50%;\n transform: translateY(50%);\n left: 11px;\n z-index: 1 !important;\n}\n.requiredText {\n opacity: 60%;\n color: #686869 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n}\n.star {\n color: rgba(255, 40, 25, 1);\n display: inline-block;\n transform: translateX(1.5px);\n}\n");var KF=function(o){var r=o.value,i=o.handleChange,a=o.options,s=o.disabled,l=o.placeholder,u=o.className,p=o.errorMessage,f=o.showSearch,g=o.required,m=N(o,["value","handleChange","options","disabled","placeholder","className","errorMessage","showSearch","required"]),v=c(null),b=h(r||null),y=b[0],x=b[1];d((function(){void 0!==r&&x(r)}),[r]);return e("div",{className:"appselect ".concat(u),ref:v,children:[g&&!y&&e("div",{className:"placeHolder",onClick:function(){var e,t=null===(e=v.current)||void 0===e?void 0:e.querySelector(".ant-select-selector");t&&(t.click(),setTimeout((function(){t.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0}))}),0))},children:[t("label",{className:"requiredText",htmlFor:m.id,children:l}),t("span",{className:"star",children:"*"})]}),t(sm,$({className:"select",showSearch:f,disabled:s,value:y||null,placeholder:"".concat(g?"":l),onChange:function(e){x(e?String(e):null),null==i||i(e)},filterOption:function(e,t){return((null==t?void 0:t.label)||"").toString().toLowerCase().includes(e.toLowerCase())},options:null==a?void 0:a.map((function(o){var r=o.value,i=o.label,a=o.flag;return{label:t(n,{children:a?e("div",{style:{display:"grid",alignItems:"center",gridTemplateColumns:"0.2fr 1fr",gap:12},children:[t("img",{src:a,alt:i,style:{width:32,height:20}}),t("span",{children:i})]}):t("span",{children:i})}),value:r}}))},m)),p&&t("div",{className:"error",children:p})]})};_A(".appSelectAdd {\n *:focus,\n *:active,\n *:focus-within {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n .ant-select {\n &:hover {\n .ant-select-selector {\n border-color: #d9d9d9 !important;\n }\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var qF=function(e){var n=e.options,o=void 0===n?[]:n,r=e.placeholder,i=void 0===r?"Tags Mode":r,a=e.onChange,s=e.className,l=N(e,["options","placeholder","onChange","className"]);return t("div",{className:"appSelectAdd ".concat(s),children:t(sm,$({mode:"tags",style:{width:"100%"},placeholder:i,onChange:a,options:o},l))})};_A(".appTab {\n width: max-content;\n .ant-tag {\n display: flex;\n align-items: center;\n margin: 0;\n border-radius: 8px;\n padding: 4px 8px;\n line-height: normal;\n }\n}\n");var XF=function(e){var n=e.color,o=e.closable,r=void 0!==o&&o,i=e.onClick,a=e.style,s=e.className,l=e.children,c=e.closeIcon,u=h(!0),d=u[0],p=u[1];return d?t("div",{className:"appTab ".concat(s),children:t(GL,{color:n,closable:r,onClose:function(){p(!1)},onClick:i,style:a,closeIcon:c,children:l})}):null},UF=function(e){var n=e.renderItem,o=e.dataSource,r=e.className,i=N(e,["renderItem","dataSource","className"]);return t("div",{className:r,children:t(M$,$({dataSource:o,renderItem:function(e,t){return n(e,t)}},i))})};_A(".loader {\n width: 100vw;\n height: 100vh;\n display: grid;\n place-items: center;\n\n position: fixed;\n top: 0;\n left: 0;\n background-color: (0, 0, 0, 0.3);\n backdrop-filter: blur(10px);\n z-index: 99;\n * {\n transform: scale(1.5);\n }\n}\n");var GF=function(e){var n=e.type,o=e.customLoader,r=e.className;switch(o?"custom":n||"spinner"){case"spinner":default:return t(x$,{className:"loader ".concat(r)});case"skeleton":return t(Qd,{active:!0,className:"loader ".concat(r)});case"custom":return o||t(x$,{className:"loader ".concat(r)})}},YF=function(e){var n=e.className,o=N(e,["className"]);return t("div",{className:n,children:t(nk,$({},o))})};_A(".label {\n display: inline-block;\n font-weight: 500;\n margin-bottom: 0.5rem;\n}\n");var QF=function(e){var n=e.text,o=e.htmlFor,r=e.color,i=void 0===r?"inherit":r,a=e.fontSize,s=void 0===a?"inherit":a,l=e.className,c={color:i,fontSize:s};return t("label",{htmlFor:o,className:"label ".concat(l),style:c,children:n})},ZF=function(e){var n=e.className,o=N(e,["className"]);return t("div",{className:n,children:t(ox,$({},o))})};_A(".borderless {\n border: none !important;\n box-shadow: none !important;\n & * {\n border: none !important;\n box-shadow: none !important;\n }\n}\n");var JF=function(e){var n=e.title,o=e.extra,r=e.cover,i=e.hoverable,a=void 0!==i&&i,s=e.actions,l=e.className,c=e.borderless,u=N(e,["title","extra","cover","hoverable","actions","className","borderless"]);return t("div",{className:"appCard ".concat(l),children:t(ew,$({title:n,extra:o,cover:r,hoverable:a,className:"".concat(c?"borderless":""),actions:s},u,{children:u.children}))})};_A(".appCarousel {\n position: relative;\n width: 100%;\n\n .ant-carousel .slick-slide {\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n\n .slick-dots {\n gap: 0.5rem;\n align-items: center;\n li {\n width: 6px !important;\n border-radius: 50%;\n margin: 0;\n button {\n height: 6px;\n }\n }\n }\n}\n\n.carouselItem {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n img {\n max-width: 100%;\n max-height: 100%;\n object-fit: cover;\n }\n}\n\n.prevArrow,\n.nextArrow {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n border: none;\n color: rgb(0, 0, 0);\n font-size: 1.5rem;\n cursor: pointer;\n z-index: 1;\n display: flex;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\n.prevArrow {\n left: 10px;\n}\n\n.nextArrow {\n right: 10px;\n}\n\n.carouselLines {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 10px;\n}\n");var eV=function(o){var r=o.items,i=o.className,a=o.nxtIcon,s=o.prevIcon,l=o.showIcon,u=o.showDots,d=void 0===u||u,p=o.autoplay,f=N(o,["items","className","nxtIcon","prevIcon","showIcon","showDots","autoplay"]),h=c(null);return e("div",{className:"appCarousel ".concat(i),children:[l&&e(n,{children:[t("span",{className:"prevArrow",onClick:function(){var e;null===(e=h.current)||void 0===e||e.prev()},children:s||t(sy,{})}),t("span",{className:"nextArrow",onClick:function(){var e;null===(e=h.current)||void 0===e||e.next()},children:a||t(Nv,{})})]}),t(tS,$({autoplay:p,ref:h,dots:d},f,{children:r.map((function(e,n){return t("div",{className:"carouselItem",children:e},n)}))}))]})},tV=function(e){var n=e.columns,o=e.dataSource,r=e.rowKey,i=e.bordered,a=void 0!==i&&i,s=e.pagination,l=void 0===s?{pageSize:10}:s,c=e.size,u=void 0===c?"middle":c,d=e.scroll,p=e.className,f=N(e,["columns","dataSource","rowKey","bordered","pagination","size","scroll","className"]);return t("div",{className:p,children:t(_L,$({columns:n,dataSource:o,rowKey:r,bordered:a,pagination:l,size:u,scroll:d},f))})},nV=function(e){var n=e.percent,o=e.type,r=void 0===o?"line":o,i=e.strokeColor,a=e.trailColor,s=e.size,l=void 0===s?"default":s,c=e.status,u=e.showInfo,d=void 0===u||u,p=e.className;return t("div",{className:p,children:t(uN,{percent:n,type:r,strokeColor:i,trailColor:a,size:l,status:c,showInfo:d})})};_A(".appPopover {\n .popoverComponent {\n width: max-content;\n }\n}\n");var oV=function(e){var n=e.content,o=e.title,r=e.children,i=e.bgColor,a=e.color,s=e.triggerType,l=void 0===s?"hover":s,c=e.className,u=N(e,["content","title","children","bgColor","color","triggerType","className"]),d={color:null!=a?a:"inherit"};return t("div",{className:"appPopover ".concat(c),children:t(tv,$({color:i,content:t("div",{style:d,children:n}),title:o?t("div",{style:d,children:o}):null,trigger:l,overlayClassName:c},u,{children:t("div",{className:"popoverComponent",children:r})}))})},rV=function(e){var n=e.className,o=e.onClick,r=e.onMouseEnter,i=N(e,["className","onClick","onMouseEnter"]);return t("div",{className:n,children:t(gE,$({},i,{onClick:o,onMouseEnter:r}))})};_A(".react-tel-input{font-family:'Roboto',sans-serif;font-size:15px;position:relative;width:100%}.react-tel-input :disabled{cursor:not-allowed}.react-tel-input .flag{width:16px;height:11px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAACmCAMAAAACnqETAAADAFBMVEUAAAD30gQCKn0GJJ4MP4kMlD43WGf9/f329vcBAQHhAADx8vHvAwL8AQL7UlL4RUUzqDP2MjLp6un2Jyj0Ghn2PTr9fHvi5OJYuln7Xl75+UPpNzXUAQH29jH6cXC+AAIAJwBNtE/23Ff5aGdDr0TJAQHsZV3qR0IAOQB3x3fdRD/Z2NvuWFLkcG7fVlH4kI4AAlXO0M8BATsdS6MCagIBfQEASgPoKSc4VKL442q4xeQAigD46eetAABYd9jvf3nZMiwAAoD30zz55X5ng9tPbKZnwGXz8x77+lY7OTjzzikABGsenh72pKNPldEAWgHgGBgAACH88/Gqt95JR0OWAwP3uLd/qdr53kMBBJJ3d3XMPTpWer8NnAwABKPH1O1VVFIuLSz13NtZnlf2kEh9keLn7vfZ4vNkZGHzvwJIXZRfZLuDwfv4y8tvk79LlUblzsxorGcCBusFKuYCCcdmfq5jqvlxt/tzktEABLb8/HL2tlTAw8SLlMFpj/ZlpNhBZ81BYbQcGxuToN9SYdjXY2Lz7lD0dCQ6S9Dm0EUCYPdDlvWWvd2AnviXqc11eMZTqPc3cPMCRev16ZrRUE0Hf/tNT7HIJyTptDVTffSsTkvhtgQ0T4jigoFUx/g+hsX9/QUHzQY1dbJ7sHV02Pduvd0leiK1XmaTrfpCQPgELrrdsrY1NamgyPrh03iPxosvX92ysbCgoZzk5kP1YD7t6AILnu+45LykNS40qvXDdHnR6tBennz6u3TSxU1Or9Swz6wqzCsPZKzglJbIqEY8hDhyAgFzbJxuOC+Li4d9sJLFsnhwbvH2d1A3kzAqPZQITsN76nq2dzaZdKJf4F6RJkb078YFiM+tnWZGh2F+dDibykYoMcsnekdI1UhCAwWb25qVkEq43km9yBrclQMGwfyZ3/zZ2QK9gJxsJWCBUk32QwqOSYKRxh6Xdm3B4oMW22EPZzawnR72kgZltCqPxrdH1dkBkqDdWwwMwMO9O2sqKXHvipPGJkzlRVLhJjVIs9KrAAAAB3RSTlMA/v3+/Pn9Fk05qAAAUU9JREFUeNp0nAlYVNcVxzHazoroGBkXhAgCCjMsroDoKIgKdFABBwQUnSAoCqLRFBfcCBIM4kbqShO1hlSrCJqQQmNssVFqjBarsdjFJWlMTOLXJDZt8/X7+j/n3pk3vNq/bb8+3nbP79137/+dd954qTVt8uTJL73OMhqNer03ady4cWOhWbNmjV+0FfKGjMb36Y9/1fXUst9cb2y8/lpb797z5k2dOjXVD9Ljn59fcHBwQEDAgGch3l9on6feeeedn0r9kvT222+/sErRgvcDArwV8f5tN/rcvPnMZ22pqVFRSVGjR38k9Rsp9fLql/MXLj20VGjt2rVeak2Og/auI/kHBQ3We/tCo0ZNhwYNGj58/NaWlpbOyMhIX1//2/jTrICvckhXruQsWbJw4cL3tzhPORynSk5lZWVtglL9IkmdDQ05NqvVGhLwbKSUL+Tvb9yH/2sj+eN0IZZ3fvq3Hnp71ZtCOyofdnTYSzq9xX7UtsF9+/Y1FpeZT54sc2aUlq6Jy89YM/qj2oZaoeOkMR8dV/Tee++NWb04rrA5MRYKDAyc/NKCpwDIyKhE9LEzZ/r4DLQAAE6EyEeM6AcNH7m1pTMnB+fHX7tG9Bs0Xt+GwM/frqm5tz950aKDk6rsiA0xbUrbRAii/BDeV9bGhQsPRlyOCAuZ9GykZwT++n2RHPnVYQU+oaFDPQD8jEQAPiDdaLPaHGVXbn/O7YHQuIH9B/gYgzts1iqrtSopKWlNRkzS6I8arFaOFvTfew8AfiYil/rN6sWTKwtbArOzExISUl7+vwCuQNt8Bg71AQCcTwNpWeFbW3IIQEmJr08XgIzX2xDcvZrs7Jru5EWXwwKSwh2RkQ77w7Q0bXp6YRoDaKO+kZl8MCwsYpJ3pEf8liAAoPhDhqUMQ/wAkF+oqKiosJYA7HxotdnTtVe6Pr/S0h+AI90QffU3T9obGuwdD5PqkmJiMtbM+ajWI/60TX0COhoarAAE1dfXV80FgMmLi1oSKP7/B6ASAGyBV4YM7D/Bx8/bF7g5fgmgEwCCSiJtJQRgxEi9zZqVdYUu9pW0tLCIgOvxdR0dpxx5aWl7EzV7CYDV+tXnCzMzkzMvE4AFlTuhZaSf/OQny1L32RC+JcHikzJ06NAJoe+YNKRbsbG3xPlWZTxssNmdOP/J27ffudLJ60V7DAaT1lxRVvfwYe3Jlrq4uJiKjAwAcIWP+BkAhV/i7HA0uAG8BAIUf8qfzvwvgJcQf+XMK4GWi8OGTpgQ6uftzwC0LIM2WgcASwaXOBwlA7v6/YgAhFRt2pRGeu0/UyImbal77eHDo2kVAJAeKwE0fl6P63/5nSlTAKBCiR8AovbZEL9lf8I5AMD5booAE7OzY8X5fhGJi0/nTzTcMh+80iIBaF0APqvIu3EjqfRGcV3S4aSKYk8AaW4ADU4gOFlfn8sAXnoJBDpTCMDL87zU2kwATl+x1Nw+P2HChKHBBMDHFT8DwGjX11FSYu/f/aMf9XtOjwAacf2hmxRg7ywXDrr30kb7NVhDquo/z0y+nJs7ZUoYA5DxM4BFmcnJyV93PzjbvQhK3urqAYF7xflWVT5ssDaU4Ox7T9+6Ei4BaN0AUkvXJEExMTGHD9cdFgA2yfgZQAP1f0dJw0lrfS4BmIb4z5yZBgL/H8DibbehGROenQ0AQRhvZPwQAGDQ8wlqsFkmdP9ofr/n/OgK2ml1xxQECAAy/tdee++91wCA1mfWJy/KXUTr536T+O67764X2r9//T+3JkPdDx50f7qItDXfff+zeAxY1lYV0VCmPV1Ts5fGAGUYDbHpo0qT6vKTignAtWvXiuf0StwGZZPQybMPAYC8/xF/bj0AUPwvvzytKCdl6dMAvJxRuXjxkCHnL86YMXs2A8B4m4yWQTrdIp0uByMajcATJrwzXwCIiIjAFSrbJwGI+FlH00YH8/rQy5enQPsYgBK/BLCI1c0Afonhn/XjH8MNLP9o1Y4Pfg795N9hYQ23bt1q4fb07z+A/ITR2J8AFJnqOP7iuj7Fc35TK+9/bkPaM+NGiSnsB6wRIwGA4n/5T5Pzc5aeeAqAP1VCM4niWRqVgr1p1sEYlskNJQC4BQZbLJi0MAgCgBUKqYo3VEVEhIWFTZqXtYmVxiIAtB4QeDUAvMuSFBgAJCkwAKHlLAKw4wMIFG5URVgdLdwedEq6BuCgj1qzpi4uiVScYa6I0fWKJQVC2aRDY0eNWrlyECwMMIDDc2vZ6UF0F7z8tB5w4kTvtZ+ygklGkk4lvZ6sne45SDg8aJIQ2z+4Mmg0qcfauXPnfvPNN9XV/1S0VSWyf1Ls4FZ5aIHu/blGKb2UOM0ckq4PmsZ2b8yYMb2l4FbhX8ePHwmhuSPXkhaQ5q0tXzBvntdUUq9eSyFu9njXxpA74Leg198yktRWVI4OkAkymw2Q3WO90+nnN3u2H0QkHI6JpHHj2GvTYdsupd68GfVZ4yTJqJeUaNKhQ+rzCUvOMXEr//4vD3333XdLe+rRJx4iqumDnT2O5zW1HII1hPLy8pJGjz9GWgk9D61Al4fWkWay9VRbUa1GEVCYDRoonu0dr++n0ZQ0dMCNdDRYHVrtuImjWHQ80lvfl4WfhJetw1CFm6h+rkazd28iJHvyIe/IHt7ZOBY7o4GPH4smPqf7nRwz/sH6bmmi2HtvYiBUYPxEcZakt701PdsPAIhb3DBbYmIIAOK+F9HXJ6z7t799AwDI48+cOQRi66m2ogoAYVwIQEkQb8DrJza1azRWq9NpjUjXtg+aNXHU9EEQHW/YsGFD3toHMFZbgzUsDNPkPgAgpScG1vA4TgB8PZATAAoc6IasWPHhhwCQkyNCdwMIJCVqDabA8+cAAJFLYVD92dvpjvQe7ZcA7p0/350dEzNmy+iRAHBPrO9+AwB41Of4h2HoFdZYhsfL7ej7QmbSBdED/GkDXv+ju9Pv4i9mM+g09Rs1duKoQSQR/4whb7msbFhufHy8M2xup6AZ3sHzWOChaveIWQCtn00A7s/84MDuD4bd+fBDcYEukrVna5fwMQPAsqnQZOqqLtBzezysvHd6z/YLANndUELMGAmgXqzPfeON3+IE8PHbuL2YegYCAO+/fz/io2VMM+5HpR/BGXIPGCzix3oAaBo13aApK9Mahg8fNAo9ANsPGi7iB4BLZRUPH9advJGb6zx+3Jk7FwFtCNekNzQUabW3cAv0Ek9uUA0U+PGsY4NmzrxQVBS3e82wGQDA7bvI8SsAsgNP7y26HV4GALyeJzGaY5J18fZ4GT+3DwBK8/K2ZF/s7v46ZYwEsMJHrJ/gApBJ8QPAs9gh2BYBnT077OwUnvcBwB0/nCEAQPFBdADefv5dPEu3p2u18e39Bg2aPou2h9wNmP3wi7bGL9qsuVOcizoBgM/X0BBtamggK2wGABn+WSLw8awm9P4Du3ecys+aMWPGt6J9medF/EsBIBbxJxSFm4vM5moJAOGL+AHAO90jfglgy5bshO7uFAIQM2fkyhUr6sX6fW+MJQDYX1wvWI/+uOIc79mziJec4ESxDPGy6AF9RfzYHgBw02s7yswNhf1GDJ8+lvcfPgKrxfoAa0S9uP9HTV95LHdur8TzuF7W5OSqDdEGAFiaiIjk9U8hAMdw+1Ts3r37VPOMGR/K9l3k+CUA9P9b4c6y8LKC6upqAiDj3wpxD1Dix/m9Uku3KAD6xMx5DgC6xfrLYwnAEuw/jOJnAMHjpnvECwA8aK5YseK3EA2aogf0pQNIAIOaXI8S0/sBAPaHaLUEIOJHPmjUsWACACN7/qLVmoz2Zjabv3x8X+oBdP/DWeih94d9sHv3BzO+fOOND6l9C93xL00BgOy97dHo/ZHm6EcAwM8OHlZ+YLpFtF9eQAGA9+81pg8DQCzdU3D9Ef/YN3AC8OP4Z5D1DBg7XYmfAKitqYl7AA8AvDxxVLtGW1VVVhYRZjC0jhg/Tuzv3j6gCuEjfghGYd/cXrFk5BNqai4K633k938h/Zp15C8Tx68E7X7Dtm2b8QZEAH743j8gYQQwC8TGlp08Z7ZWC+k/4eFf6pc//Sje3+TZ/pFeqXkQ7hoIhhoAnve8ogRgCQZBMQsgTgBgXykpAoDKmpoIuJP/wMvzwaOKHkisVfUnDYZZ2J/k3n4ST/94UiHt2/d+Lx7yttFAXnP+60W6+X9ggQFzGDdeOJT791fQNAgAv/qHFFMAAJou7AWQBCAkKXzknW71bD96APnWQ4c+hthRsv1Ty2WNA4InwYYpzhJSW1MT+lmkxx9awyfNhQVmvf9+c9M4kVt1by8tsmuLub3I/in6er7URGkh1SZ1znfk/xR9o2oP7F8Pax1vbO8RgJcwhYp8BvpMcD1t+0GffPJ7xUo+CA54Yc+DPXv2vGA0vkBavfqIW+xeH3kr8iJ9QxJegQNpu/TMzZupnzXOkQ7+OkumeCCOU+Si2Sr7kR6RkQZ/iA0y62PWVKlUiLy8fsz1MSd6s+YhLz1vu0t7ILS4T1Rqn2cU9fF6YQdpMZIAG6dNmzZ5bX+7PZKGsXi0CM9xwZ+0DmuVnejxsHMDJu3Zu24vkrT+QTtYq4/8nvWHPzyeCa2HUySRbzMKAO9CGhZ15Pku67uGlaS7frzoeFat26uY2CpzijiIrbKfLdH2buy7eKLkR8oAaXWhQNLH8+qEKirKy0tLS6O8bXVZQpvg8dPmbV/O+jH0IvRClLY06hkPAcBGqLa19ckBzC0HVg+0R9rQFpqFtWER1oBPhr3+eutPocevPzIaBwTseTORAu/rQ7sd2AgA4g69T1PlfmGVsX9fn8ESALk4ER5Gsb/Mny2tbzGkPQwASH1s2iTDBwC2yhYeVdgq+yXODAwpCCzAozT7Dml12fqR8VGcOMtk9A0pkUvsI7YvR+DQrl2vQLtWpdbFPAVAq8lgMrcygKEEoKQsJKTMYQgLDQn4ZN3r60T43ngSrH5g1rBcWaINAoCMX1plXq8GoBUAXNYX4RcfPqzVXa8tqk3bpATAVtnCVpytsp8tsCBifcJVil8BoFhfu7OE5RCyGn0HWxweQLYvf/HF2tp1T568IgD0Gf2MJilKBSCrPf5Cc3h76e4zuwmAv8ZqQ5cLMwwNA4DWn+IfwoeqX3/8kQvAQC2rGQCU+NkqywuiAqAVACa6rO/hYsR/uBi3wKZd7wGA1gPAcEvfhAQAmEEA4DwLEgo4/tmzwyYdYqurWF+9zWKxhCKlTjnV2WEBxkhHX5/G8jSZEZoKALWJWbuyYgWBVRgA6vqk9hgDNh54YtI2t2jbn5wBgAl2m1XTYAmxhFoNU5DG/uRnHuG/d/yjEa0X7kID+99tgu6OxTytxK8A0KoAaCGexz+rWHPpUtKaG4e1hwnAhhNZlLtMhwyG+HhDGVvl0PXZ2fv7w3oMe8vPijuf4of2AQCyutDmzWdI1zcv0Psr8SOFF2As0Th8Qr84CiEzcjSKni09b4l5C+al4r9uAcCBA1nthuYKc3spA4i0hWgNdFazgbK8n3iEjzct380S1rd/f+mkAECJH87O21/2v76eALQM4MiRX0+MKqXsFXSYAei8/d3WXLHaoQNTUga4AYSGiesPTSEASvwEwCrin4D4GYAv4m9MS5M5yalGX1uixccntCDwKqf5n5FSboGNBw4caG03m1tbz5zZs3v1bAAAKvtJDAuzAeD1c0r4DEBY4f4DKH4C8AclfgYQxFl0etRWAAj+RwjA6DUyfuoC3xt02F6JnwDQ8UNpeQAB+DTY6op/HxJLU+au3jj5JYRPwvR5ZoFN3v12oVxjkE+oXbG+4o71WH5dJa9VALD7wBPMArvP7AEAfaTVgm3NZkzcszHoBCvhM4BvhTcfMOCB8OZH/sDxp0hrCwA8PvKjNqkaAPaL80sAyvU3fF+sU1tptspDaRkA3gKAEIoforwaAPhZ3f2de4RWeUvAARqDKH65ZDKE7/nxriexm17ZtO0JxvhXX1n1Q5UAYCMQTCsvn7ybEuYL9JE2q9jfZJoSBgADEP5xt757MJM0xMcHUUOfzr9Pywlua+vtThhJAOvdPYDc/LjRayC+CxiDTm2l2SpbeJmPHywzyhLDXH1ICI96wEAcAlIr4ABKSThuXt4c75ByyJ2Zj9qDWbD2SSJmAdaqBSp5CdPoB5frx9LDdEVDG6C5cKnB/xz1kdB3rAcP2Bb7+X0q9GtOXirWU7HGEgBSwI/CoehosrIT2f7pFKmtNFvlYF4W/jvAI6kMoX2y1kBIZKBHu1PDwfNI7A1ZbP+UIgPMAn08hFnAIOROal3P6pnlzSQlK8pHf4F2s+AwjSRNvDsCadl76bQif9tbqDBdNvzPfxcy8+nCw1OULDDrOukEi7PXnngo+IDLY8UZZMmGOmsMn09yPTI8VwjhWEUkXIY4mYVu2/7qq9tJXuqsLoxJj+XMZqEWUmdnskabf8olWOI9Rl9Ik07vqeh1id/EpqZRUGKOhksqxveuZGm0Idx3g//+BPrd734n793wXnuFEoUOXc+ClJcrC4wiI8rv0On4GNUbbh8TBRtwDOPVWerxv2P9SuiPukKcBwd0xRPusuLSH+/xUmd1r9dm5XsuZzZ35kBLxCt+ANBoihA5CY6YAODEmnS8KRpIr7cBgJp2uyDkahcmi+EAUE7SpvPQFRrw9yfcvk5nPHUyApDokQWPBQCOXN7DafPo+ABH1RN8fL0t6OrVq1X3eC7C8dVZ6vHu2P/4xz//WQDAQ44rnmhXFlrYYxeAW+mJ6bcSEyUAEFCyqJdPfkX6HLp8+fJXBEBTyAR2uAD0tWjSfbh9BGAUxX/1zi8HVXcpAHZq03m9BNBptXY4ET8DUOKXANJk/AxAFETYbO/ayJ3aACAwcH3gep/Qru4PUZ8w/nW8X9gWOMSdZR7bRG81jkOU1XjeDUArFOey4i++WFW1vr4NAMTLaFjLvekuAJvylYKIXIcvFcQItzLB9o5G44CzylcA+Pe1+GjS+fojwGDO4hbcOfuXX35bnZ0deIgB7Nyp1QqrygB+1Wb9lbOBAUQTAOV1XuwhdRZXI7Q3UVplfSKS45aEc0MH9p/yTveKkQCw7WrIXneWmYDMrD3++Mnx47x8Iqt8GiTs4+bJ8y6V3Xj4sOLkjV27qjA9AYCBvGJsQkLgXraKBAAEOsCdZPfLdbjjRwQAUOJvxy7t/BK+NKuPhqVYTX6PEHJ101+qq8MWLcrUqdf/ne5Pa+OvMLPRPB3dBw+ychaDSkers7gaFiAliv31sSHr14euv0o8n322XoeAHXhwOyuydsMYwJDax0+ePD5OywCA8NM4fAIwdWfdtIqKvKyMXbuKDPWFRS8wAG3r3lvtF0RBAveANuqv7K2Dc+3K9Z/g7gGtlKRja9sjPjSQF6/eqc7+9ttztKz3Z6uarl22BcqL+jvdo1URvyqzGbSUpOTX6XlkW0mvpaqzuBLA6dOxOD4DKMA7koRzaMyUf3+xczUCvlVgic+m+CWAIUNqjz95vEkBwJdfAniVhj6+/xuRjGyTAO42XRjVxJMfACjxE4CuveRlC2SO7d13NJD59yJFSQD0QRj+tPHu7flhpqv6y+pv/9lF7wn0QexZ4g1bBIBZBCAnIsJaEm+QAJT4f/Naqrmndd2wCFMPhuHTp3OWQDk6vS1hfcL+6v6I/iU8vgPAkAs1+5vPIn62zt6+56AsdNChjx49OqcvwsEQPx2OjwcAIv5d+YW5hfkSgNZ814wNGADHP0HEo58Q8PXe2Fjx/JkCxd7T8uXn+CUA3P4AILcPFu8NuqrDziF+lND4hfCjigAQsywKozQN0Esc8eJ89LTHLk8+7ZmV+LnBnJX2KNAA8KvVQ//9xWTYkDNnJq9VW2m5XF8vl2lSx/X3AMDhU35kee7yXS94mfh8St78RNZDOetAEwBAmaRjoS6t4a7M0TKFcWxNtfE+cvvgsWKCjs3U8jwFAGxd0w150DIAkHO0QSjaSPM3Pa6BI+RnVtojAPAErBRo6AeHtN1YDP8uRra1aiutXgYALTZ1H287pn+SxAAA0pFB0aQT7wuzKbOQwV93kfC/Qt13j/TI0k5kg2Yqox1YY0VBwlKdWXgx6VvLzKlRrPEjRU53Q7QQdpenE/bW7G7JBpZOpUmfLVi9arXQWkhtpdXLZP8WzFsQFx3Hh2vm/CjrBZaX9UbvmzenotZWWmpZ3AOJUgvCtkq/2u2Vy0lmbiOfZhxLqSWuyC/FpS5qbCyiW/6LUm/om2rv6mrvR9VGyCRkNErs6uOprS2bcpaZ91Bbd0CTmsTiPd/i8gtuzxGVPpoIebTY61qJ+aT9pJOytEnQ6NfiSBlxcbWsMTRG7LBtdFvJ8nxI9FAyKEhgkJRa4jqHpigjQxMZqamry/fV1Hk3eWRx198zmjTpmEZovSbe7tRGq4+ntraGnlY9nJfT47Wu5YAGVIKSZIEF7y8KOrg9R5C++r2iI6/W9myvF2p3/YNwyqQYcl/Fc14TkcNAk+r60AkPhBzg0wkA4GNi2fyDCMAg5VURKkfz4uwOzWJN0GBNuR0Qrnk3jTrrqlh68O1wvDlyNCBp6R+k0Tqq7ACgOp7K2koA6b7xSgFGeuTgvkElWBYAEDgidxVY8P5c0DGMrbLTgx908tVTPdo73uumw+4baW94WByTlp+fFuMCkJGhBqD1ACCeFP2pTg/WVzkgTpiXUV6GtCCeD4Li82N29vYGoDs1/Lrvy379ngcADaWtg0JwMAe8ufp46gIM+brdYnEKL4/lSF5fItqjFE6ms6/g/UVBB18Qb1xgeno4x7qqf/XUKdr81i2ZIfJaU1LR0YEsbUxMWmnFUQEgP5/sYFxceXlWn1XIGR6w0JzDWosGZ2SIBgeFwJvDeBBvtxWVz5Ior2Xle486i4KIO1fP3aEXkiv0QQ47pa9CQoTTnP304227d08ejwMsszRaylwAZIGDvwCw/RQ8ObRRaBUXcIiCDpwPAN6NvQoN5vgHngOA5XT7NDVJa+31WUXSjRsxa27EXEuLawGAo3HU/+OysnBjlpdmPeNnExkYV16+HO3NEKMQJjgrGizjl1a0MTLI4xL2vek9KrBg+IiuhBRUFhMAfrojiae74Kcf715m8j0+ngDgj/vBR9QOAyArUmj2njc5cJmkOLCKa5u5PTO4YMM7cR0REPELAMtxxA0bpDX3SsXYFwNdu5bWmZN0bc7RjNraOMSPHpBRCgCrKWcYKq//njNrp4kGmyCQCQlGg5X40WDZA3z6u3vAnUEjRtw5d+5LAJi/Qm9xcOstFht9JxHp9/TjDeteKJyd7AFhuVPKhFX39vcXXd4hssjbuQO4IGxkAD6iPZy1Rg9Yj/g5/IGPAGD58kJ42Q0bwnE8AUDG39mZl5eToyMAiL62Fok2AkD34O7QM26jlIcG14oui6sYEjymrpxeyuUJlaZuqViWnz5Y0x8AQpt7J6V6Hxs+4k4N2chD386f/6EeRseB9lso89oBY6I+3lhVAQYDSHfud5qEkUEWGftj574ii2xWUqJyPTqfKOjg/WlQ5P7v4wJwSguhoJEV7hW1huOHKO1xDQD45aJWWyoAUAPOhBEAgwtAbZ2YhC2haDA/bbkfNvKmxmRobJF5mgEDNL/Q2EPKU72nD7rPPhq5rwf9CIDdageAUK2hod4GAKrj/U8BRiQ/ju8/R/7UJ4Ssbl9HutbpL63uUws2RH/k5bKe1vrKq8td1nsflDsXAES5OXQY9da639SS6uQswAC0ByyTlR6QAQkbEgIBQNbicggY8qCpdRpb3M6dNAguS4rTWC4ZjwVCXIABCitgdZ2RGNBDMAs4bSUAoDre/xRgsCFYvx5hkbkVVjfIv6/L6j61YIMLOs7ysuvttdSRV+vcnqEecycAiFpbFtUbiEpbzpiy6NKsDlhL/pS1ZQuq6TZwkjCYJOtuSVNJpZ8nIQeaf/NmPlKyz9R+b4T++cj46JF+9iM9JK2un5+0uurjkX2T5Qsso5Df/7O6smCj5/a93oI+5eUjKu0JVpLMJK/r18PDZRaWq4i3k0ykcHbLKmcqaoVlCvcQtGjEjyZ6emF1Fre3CpDa6vKZhbHn8wdLueytnqU8n7CTFSllugeMik0WaJd6CrUZDTfmwep/cY3S5M/hmqjP73V9Mj0uKjnA7ZQtFebiRWiVt8x/yrHW6GE1SYf8Hraa2psUa2m0QWRlQ0QWd8FiUrkrL5XK+ytm13iiUog3mzZtQbANsrpL7CfpySCz+G8BXEChYRVAxj1vSsmCDVUBxTfFTq3zpDO+Li5/Q9OFlrg6tdX2MovZCn6MtXM7PS8LAPQ+HQA48IcPeardqFesJtf6HvL2bby97tat9unCCQIAz/ORkWKeBwB3PgafKWxOFVYXCYvjwuqe4NAlnpcIgIhcFkQAAAfOfwwNIwAALR4IkKEpMJp6ZrWj1QUUgx2Yde32G/hIB+VVx6LUVlsCcF2Dyt4MQBzvFQgAKP62pvA2CUBaTZmF/RjLEV+dn7nuVvuo4fQRFQBYoHRH31DKAgdX5EMSb0ZGXIy0uiU+JcLqEoBprvgZgBK/BKDEHxYBAIMEAG16NQDoJYAdO7QCQAKnL043N5+mbpB4qNEZ77CXlFRk5FMJfFOd/OyOxJ/deZ1A99+8Weue5gjALphFLL+yezcB2AhZmy5Y2Wnh9feSCGE1ET8DAM2D3WeHDKFuMGi80R/hl+CjqvgSBsBlc5V0vMpCqigRF4viN7AVXV252B3+S8jaKtdTZoH5q7IIaUUjJnEBhYHWxysA3ty4482Nb2r5+KyMuvw64fQqnBknT2aU7aQe0PX8MqoXaKUsaCvivWvQmiQA7qHQ5t7bkSt5RctWYzcD2MEAwsNDJICvFi7sewf6knRnIltPn8vdxGNYvGkcAPj42OPt9hJfTqpyAws1GRnaImRBXQAQf4mBG7i2snwnaxlp51R1FjnEYRfqgBo69nHO0YD1ngAKNxbiP7S9BFAXV1EhnN7D8KLw5riiirq4lXUHK47VIf6mC63tTU3trU3T78IJilJSpQcAwK5XeLlQAXCg6oMbVYife8DCep8RSqkpACD+e0hL70UPGD5S70/pLXQ6pyhY4BzfYi20uNDgBoD4Bxi4gQyQZnVZPK3OMquXOecIdgQA0vMGuPwbD+yg9RIA4o8T20+tAFvxlV59Te6y0Vh5wWQytLYaTOgBAFCp3KNiEPzxrldUADD8VV06/wUWfw4AZDUVqzoSy2GXHwyZiTGgHwGhLHGoj7Mk0jmUAVS4D54BxcVcr90E5fUfkJTGb36ox4gSDwg9hkthP4RQCDtu3Ic6dYEDF1CYPAHweowBwgqPbVoJyXJXfFCxrCgjDv8Jr4urO51bk1GBLDOUQ+IssxesKKlSqveeH7+iBnAAqo/YTTogsq49rOfB7m23brUOp2UGQNH4DJ1gEVnledP47pKvfLdEqd/9occo8TMAJX4CoFXilwBg+lQA5HoFAIcvviiZWsHXH4q5nVDzk9HqLLNXUaFLJlORqahuz4uQOCDPAkblUYvkx1bTw3oGt3Xi4ivLsoDBnVWeygNc3mYSsoQA4PnyFwDIMCglD8EjXc3/kAQAPbPE4Wx9PW6BF6RDkW1ci2+K+JsngQE9AB2QOwEudGNdRoU6y+zl/ohMmjWyf6uiyfduWEVSnJ0wZLw4UvkMTaebCCuqLOtVFQxKGasQdwSYZdcZPWweSykFFuKwlZxoOBdQXIiGmvUkVxJ5g5TaSivnHs3SqeQ1UZUl7Q1p9Bp3kQWvFicXNvvQfGX7cR8fmqs6oPozOp1KAqgClSyw1AKSnqVA/PbTXj3E7RWnn/81jrcb4loHme7+n/Pz5krWuu3GM5+hVnmOfAICAFVWtzdVE9g05VApHvNTPawnW8fLiYmPeXvofmCNztv2lRxRuG/p1AUXOl6rrDd6WFGyyqsXQ4oXnKe3sRIT2f5YAsY2PV4nNJPUS2nv/a9wQJ3yewPiW2OcP3wDN8LQvIHP3zO+7/kXJ8IvrYGuJBUDgEhqyruaAJSXa0I0eaSjRwGA1otw2DrqOs8HBt6hzb+tSbi4RAdn17jE/UI7UwJw+Po6xLOFjmsroj//fEMmr+eCCovl6lUfeqHu47d2scsG0WA5eSqMj1AovM/QiAB8JXZnnRvBul6u9k4/v9Ccmbzwn8ZIgROwwDPET6sxdeaEa5xOTfiSnHA+//OeWetce0cDVAzl5BwGgNb29lb570L73fZ+AFCqsWg4fgCIYuspLidbVxzwNgggzZOQ0o2AyNpG2JWHKQZgJ6sdycvR3CGdDbYyE6kFABD/+uyEgoFcUBHQEAHVV1XxZyNhcwUAy/r1FP+UiIBZo0zmY+2etcQc//3uzE5T54P1evSokvj4SB/w7I/jAUB4Z3N6ZF8f3/TmJRsYwMILraQLUOvwz8ocHR2ODlSo5V65sg8ANKx0B7IsJGGtLaraXXF+Nir0/r77fPb58wkXM1HAAACUpbZjvQJAfJY00EnLRt8gdPXPIyIuiwoRLqi4mlBQkFI9gQFQUWpDhNNZbwWAXADg+AMD9w8dOmVKaMAsg2FQ+3BYFs/2TL+/EIN4Z8qjgXqjf4kdpoP7kwCgMWkdMGNDI03hOD+11+xhrWWt8uHiwyfbGk+6AdjtjkhhPV3Fx2F0/tnyszixP9cCy8/UshP2y8/Q7Brg9sHeImvLX42JlLADy+E4HrxxZlhY8gSuEGGrjOrnagAg4wMA9RH4lCu+w5lLADpQ+mlxxm8LvFUytKTEcnCWofV5fOVzzAmVlDk7yAneP4/4M79GcSoBcJb4l8SHIH4+Hj8oNoeGLtv8kNojASjWGlnwS5eK16BMM6eidMlhFwBtpK/Bw3qGqqyn2J+SkASAPtM6fz7l62QG4O8RvwQQL95qOGnZDeCyLGaGVeYesL8ayxKANl6Lt125+/DV2CVTZZGzcrHZPDmvbPLm8O/RA4a39+uux+WQF2T6/ZZMxJ/yDbcHPcBGPYDjFwBM2lPL8jafyTCF4/zUXrOHlY7iStXDEDlUAPCNdzgdeHqz8z9Hwzx8SQoAR4/S6/yYo1FsPbUKADipewnZeMvxZcrS7q2LuNY3TMYPAQAUSfHbeDma/1xmtdIYYMYYQE5yYEFKyjdoLwMIC4sHAPzHSQAqKovi8L5w2uT8yrz8uPLiWStN7Su60COnkADg8fkWU2dmZkr/ZwWAoCCMAUEU/7M4np9BE57TrM3avLm8sHnhBkM0ffbX4S4mdoSNXiPiv3b7ypIlt2/rvNjaYnwXFQb99QRAO5QB4Fvio6PZeor4OAury7mYXfMtWeFvD/X6OpNqfbtkXpYLIkTBhX1w30gDA6D9Mfp2d/cTn6kZg7gQoLpaFlQsKH/J9Sj6p1/8Yktq76LFIDAtP39yXn5dXv4zs5DFqFB06Us8jYZn7v/GVRCBW4qrC4aKMQA9wJyzJFqbn2+IXrgkmgHkDqRV8nwE4DDU53DO7dt0C6gLCqZi+tdatHlyGhjN1lPL4vVbAwPvu2aVOyn7dd4h92ReVhREqAsuxk6XqyFplT0LMILXyklQUpiaVJlfWRkXt7g8P6M8I2Na1KyVpTt2vPjiRgjO/MAq3RKopsDd3lNFbuVDWTj/hmYTj3ctzQYCEIFRVzkfirUheRdcAwB1lpXsnyHAFOVyj2w9hdPk9UsPjVM+Oxv/9cdzx49VliF1wcVY1S84eBg9JavMLlyqeOrhw6mpl4qjooqfiSruM+sErLmHYP7++sijvduVYgfa7gX1+XV6Y48TzoF6WOFPDilfxZHUWWB1VlY+Fe12qTe0wCOIQKkE+SaAQcp6E1JvlZRSYaH+AyCPn1sTnxMqmq2SOsurXl5L6vUWnYFb4KXWJ3v39viFBXXWVFpT/EFY0wOiSjg//03Wmd5ZdRcSL9SJdyN4MRK4cuX69bHvtjWyLn4claHNqFCssfN/ACSSlF+MGKC8+fSFjHPbWOJ4Bw/+1VsldXvVy2sXQ+ug2Fgy108DwIHXPr4gfmHhs4fQDegL0g2dPhI20/2ISwA4B52fv5EeQncAwGk0/HReHj/u5qUGrny+oCBWNPhg48GuKK3GcMkKcR2DddI8IfQYIffvA8hfjEDBBklG4A8AHDj0DnTwr656mAApdZZXvcxWe+bM27e3bQujn/J6CoDH/FFkQs1dBnCiklL4izERbebSUmEMTE3HzOIzOQaw42+dnX/bCBGAFjS/heNXADQ27u+6eLHrIABkGOouKVmdsgyhiooMoU/58/ga1vnzNV/j9beUqB94v02JnwDopFxPzOqCCvUyAZi8rQa/d5f9fwAkcg/APXteApgGFWq0hZM9ANx9fkWTJ4CizOQiAWDBYnR8cf1BYHNq4PMAEAgACfsPgkBXVMWlS+gBso6lapJGqKVFI6T+BQpTz6ywuSzeKVVG6tCxtrZsdQPgeLu65C9W8LLyCxEAgFlm2+2IiHsAMOWpAKgHXKAe8AQE3j5BxMrp/NO4tJQBtFOKpp2sJAPYsTwuOTnuRQbwfcWNG5eEMLdc0kkABxMu7t+f0nWzK75nlrdMxpe8SAGgxA8fYVJlhf+nFpkVvUSn6RQAOCtd39WVi3gJQKS4f0R9bxAATAaAewUFADDlqQD+W9y1hkVRRmGyy+6ygrYleMVCM4sQoRvQKiFSBlG56CZiYYigEIgFlcJWhIJ0YUuUCLMbT1mhS4ClaRJPEQRElhbhpRD1qSyhInvq6f6e832zMzta/arebm4zOzvnnW9n3j3fOe9H8f/gev6HH57vpPZyMAbK0pESpAfz/YKA5YuWvb9skdnMBGCq6PO2lpbMz6l19pWhUZdg8h1ljvLHSOCiZUxASxyw/eM9F7Cbn1LHNGWugYHyv3pJgIcDhSRAla5B/zQCZNvdnj2y7U73/lAiYFVJ3/33980jJXkqAsDA84e+aaorq5MEYCaLlBjiVwgw73z//eadZgAEIAV3O6YB9qN4CASQ1t/KMkP82BEE4Mu/5+ieoyDA6pnVzd3G6Ni3r0P8aVqwNA94nJDcetfnWyRuB7Z80rqDvv8MPA+36y1M9W13escIEACVNW9eX9+8vyIghr0Fnq/r/IEdFnq/xP1fwbHjprFqZyYCvHDaYzRXGBkHJAoCArby5qtJa4KAGctAwIzqTR9/vP3j7Xu20whQ69gwAs7UgbPIfGyRRUYxs1LMCzy6tnWTGj8R8CkDnUfyDyc5WOiyxCtmQmTOGxcXd20cm7mdTIALI4DwvHBYGOopjceO9czaggDcA0TBA+4BIGCSsp1mr8YIAgKrqqs/BrbvOWr1lMa5egJ0WWQQAIhqXgAEqE9BQu+3OuilvL7W+FZKOAmHvYuBkwl4rV81WCB4CmNtgncag+XfKyr0bWyiq7kK2MDQdb2dPALUtzPWywznWolWoFcD/fv1Ul6pE1DKjVmkiloGPgMvPTh/qpGOWjsGoPeZUlF9+ypv//pVTspyLe5S3n/paR5YynvfweDt+qzzEAn5CWhkdySGR2NKMD4+1oH/c5WAsv9lO9qSqJZ5k5LbNgukKuerrxUmKrSXzyTQ2moSuJEgiiouIKBfAPBTpWO0IzJS9rAsWNAWPLR0ZQw9VyIisH1UQcnXnJVdSYjg/U/Twcdvl5/fewzejv0ZSlZ2SDmhsLs7t5w+I2yIozwjwwGxjFcZkflh+iz1L7VBtW+jzc3pzM8CwoyGUM7hBcjz5YIKqTSBaWrWWbTxcVZ6IHhgYNMAZ6Vv7ADEk4J9jgUBE1TpiConQzls5WJji2IHStN+8vErCEzzpSqlEVtnVG0dylnZEioQmMf7y7jnzXMTEDjBF/aHAG/n/YHD54us8xDE7WjurLVXuPDDlAjIiUzPyTcY8ImRKSBAZH0PHJAFF4+/jfDwd2wl5c5jw8xB9cSAzVeeL0tleZ8gpYik6yRlQp0KMSkrXb3uq2EXvpv8LmWluWNFEIAqBDcBqnSMTiQCEH7R/D2lu1ItkJZdBWm+aWkj0qq2YjtnZbkKawbvf4TQ39/d3d/Pf/TZFVjg+xID22l/jv6aiyYOP4DECBNQX9HgKMx3VRAB0Q5k9nNiiYCUICaA4p84ejTCp/25zQ21zCCgvHxmJUZAoYEJkOcLLzQMDE5fsRcaLDQ+BA5to8IwImCA4qcn7cePX6cSAG8zI0nj8WJ6fJQqHeMdiZH5dPk3IXyjOf/rkC5fhF9QUFp69jkoNOSsLBdIzOD9ScGcf+gio/GiQ+dfjxcYMV2SAN6O/YGJzcaJQuoSARXfFDkiwztiYjPzw8opNZcSaTBGRpYnwhwT+59/WEijfux/heI4URk+8+aamZWzzTKNPUyebxKZwRURwskLbSqatCj+nTsPCQJ8/Dyn35kAY27nV7VaAiZdDAjT03gUfdLl79rVbcxw5M+mvjykMEePSyutikPpKkvXEtkxzwQA2wzANv6jT0RBYJcggLfT/ofroKK2NSOi4ZOHOEBAaE650VEUkwkC+LGNf5SkJRFwzWiaGm08QbW+xxxZe/dWOvdmhs901EzP1BAgpO9UR74U4sBZbSYm4KNtOz8iIAlLSlGVSgoB/vUDQWb+bSAIGMnnTlL0ivgcXP62Tbu6zZE54bDW+toPI6CrNC6utPQcGgEsXRE/CGDlxe1Tt8Ay8NAtz9KffWBmtpXCv/NO1RFip9G80+hfh+MTAfmFFbGO0AUdMZnhsbPLUzLSMQjQ05kY5J8YGUv7L2scfaB/XOMLtH+8MysWU9tAT0tfX7gkwGgdIaWvvlZZEPAhj4DPQIDOoYIJ2GdsQFkiDDLcBJyvFjzE5+Dmtys7qDwW1ZIgAFJza0HaCIRf+v3XisMD1+IKAoRIsaRmp2/nP/pEzPAkgM3TcAecOFwc35Gf73C5CuubY9rDQQCMkVPgCms04kVkfvhs3v/9/nHj+hE/E1CE+LmYt69vtyQAOWSY1UkCZPyybQ7KkupCP9yG+ImAG2vUyXYyiLyCCfBvaPDXEGA8Xy14iM9v67Tj4u++dPduJiCgYF7p2WdXVZ177tenfT9CODzw58Wx9OQMlq/9ppvsvufSn/EVmAECKEGnOkIMP7TN/9A1fHwiIL+jor4+ph7FuUxAeUo+EwBvcBDA+7//Pp8PEyDiZ4AAPl8iQErfE4cPc8GSBNr4hDK/Wrb9ieOp8YGAffvEF078NmDpeI1a4DC1vjYxJ5YQDuArMCuwC4MItjaY7Kq6lmtz5VOApScr2DE3QcvjP4APPZ9fYpyyljdetMkWFnJ2lghIsVgc+UYjnoL+QeGz9ftP5cd/bCxYIJhk1tn6F7XC+qzzeP32K94ABAEXAyCApOONkwGRtT1rSLxaPQzAP4qwdKk34wvOEn/xKnDUmzBGB9477w4gj7frfX01hg8MvMbfYRZLmHAX4/35DfyOydjbo5pZJn1zvSXUUmEBVb4L6D+f/yMKQKYRvPKSBgeTUKp7gdT0c3XSNSlaZqzjo4upse0DAVFcDHytgmt3rwDqLNQXbekwAaLAwky1x3w8ofRVua/P4iImwwcGNQ198OBBLy2mMlQSnQGLF/vOnD5scyCjTPEpVnZhFjRtdkrbHX8U4JVUUVFfUeF4z2wjWHN9NtZ5SNFop8PBZXzF6dmjID0/ePjh4vLyYsXn4davd0mI/uKh8CWm2Wwz5uN2ki8xS1tRsMDHQy2ytnfzTn3tMLLQhocNAcETpOPEwaHeBz0IQLM5Q5ixzX4iIzVjZUZ2yr0ls8gQvEw6RNCdZm8+vmLjbXZjsGfbnTGdunBEgYa31/6KehdKS9dMkVlfH79JfdousCSnK7ANPviRlgBIz4TmDx7+xlUyq6T+vpkzUeM0EwSkKSil2l2y2AQBNTWoxiSLTZa2ggA+HipRAf65DxABOBN3HpMImGS42cClc+w4sXmoNfVlDwI4cDm7Ezt7UmpMQkRIRMLqEkYZHCJYOmeGH99xfDcISDWkTvHwPU7npplhskADBDhcaE5fY7EycimrmqvxCU5yBoIAZ0YqbEKH5W678VgFcsz7R4/u3MsIy7ZZFaQCtZMFAYsWGY3bXmACRgoCjGaWtg8h06Ma3N3+4Dlau/xRAd6CAJmCIQJsqanW0zUE5GjihxvdsOyYkEC/iLensB98SZl0iNiLG+bx3cczZ4832g1TZPxyBKRsYTM04XiBr0CM0+VyrrmYSwKmjB+6o2CS77qFC5WSl2hnW1tloiUE99yQoIuoDW3WrP19eAYMGwY16uuN2IDsXbtkSQwREGrYtuydDiLgHZNa22tmKawYQsRUiIIFs2cWOMgA3Ky+tuy2W63eY4d4jgCKX5qxPZFhD5oVaX9xeiPiBwGKQ0T4pszdxzcdnz0+WG2rpPoD5fMofiYgz4HLDygjYKhrfqDvsGTFwQEEVGbh8o84e5h950RuQ5vVtx8MjEP8RIA4YEJX6S7hQEG+xKGGmnfeWW5sJgLU2l4LZX0VApo3SkcIszZ+aeCw+D5gJq8Qcesv3t6bdyN9oBCwocKloKmpyTW4KmHx4mGLnVOyED9QdmxvZlvbk20gYNPu3cfDmQAZPxOwfosYfTTbRZ4kXhdQ/z6AEUfCYLz3QGDwsGS+/A8IAootCfh2+gUdIqlMI2B0H+KfQfFTZ6c6AjgLS77Eoc3L33lnUUcz+RKrtb0Wer86AmKE9jfrsrj06j5NQcMvYzdu5OsvQStKuGd3z8g0Bc7CzY/RyASobYAQckPCTdK3mJukqP6A70G4Aymf52W1EZRvsTWXtHM20hUSndEZVrQt4vKPFFJ58jdNfXPm9I07wZnJfaZt8maxU6D5PCKgbhkufkcz+RKTtJUE8PvlPeD55/kxcPfa0++RM/EA2d9ByRnuY8cV4RU2NSo1dcpULQHlhoxYEf4ZggAZ/jyE31g1NV+N/9iQ3aZp5Fs8nCDOn9sBRDl0SBSyxl5jgy/RZnWnQfunwdWcgPRG3NEgKviZkNs8XErJyW8coJo4jh+pWZNH29pVw88jX2I00eBGENRMvsQsRQUB/H4qxmasB2BuFp0jg+dmrefCxk4iAjhLTO5x08JgTD9pWpibAHiRWSIRvyDgSRDA8SN8ip8IcMdfXX0MBJBvscZHGN5iiJ8IyL5wTDYISLUB6n28FtpftrkxC0d98JCy+9e5peR57FEk8SkI0ElN8iVGaVxNjdFcCF9isV0QwNvXqklvgAjIkUOAAQImGW82KlVaIOACOKmOBwMqATnKUwA8yBEgKWACshQdn3kcbYDsW6w5v7UYeQSaqU6lEUBunLUCbxOGfr90A5qtjiqAYuqsu0yVkqjj9YBeatLmGmRlC4NCF7m3hwbR/zmPtq8FtPZm0bpaXsg/88sWNcuJ/81QGFCW01DA8k+iCsD+HrtwOhonqIh9pZgCYpghfIXF1RcNegLu1rVeb0+p2pDkmTcmWenO4QI2BXJIXRYVdUWS5h1508aqWXZAX2sszNDUz1uvgvXzKZf40MwX6R0puCXvVeC009T0uSZGL5aimlrgsbq2NdPARqFSAgp4++juYqdmsawwesRrpbPNs1Y4NcpiycbuLqcLv7OzKqfe8d6XG0UWF4Djg77WGFIaULPU6kQJpm0efXTtqZf4GFD8vkx6RwquRdYsEeI9aRSyppw2JYwHATiQphZ4rK5tDVnV6kt8gbQZcVuxHQEmInBgMyAIuIZqd6Ujg00bPhPgb8/KaiqrbGrLbNkNApAvp/dI5OprjSGllx9oKiiQWV8QgMB/+OabH14ngIBTLfGB0IXXGQjQOVLk0WSvcJTg/b1HjRmT3NWVfDWDCcDxNLXAcqkrV0y3UGKUVv4KS06k4a5IvsFGg82W4pTxny4IQPzI+E1sngil5yZABvhCtr2msrKsrL2sJbNpSWwYCHjpvQx1u77WGAQ0lXVtLaiSWV8i4BCmYcYJBtby8ckugn1ozf5iBHD8TIDekSKPJns1S4SMRU3pxStXagkAnZpaYNGuHjElLcIqCVhY2DCnetjWrajuRUbI2L1ypc3s3Mzxn75ZElDnP3L4yJ3NUHoKAcoVDsKZVFa2tcMvP65lScvUOx5JwdpRe1ezozwmS30CRslaY5WArtTcLrmEBxMw7hmgkVYgen2tCDg1JCRVU5w9wPEzAXpHCnah1SwRMgQP3ITkZDseusBz8V6cNVVrgQUBFYGrdwRWSHO0woVz6ue8m3z2OaVLUZxs6541q9uwsuH4McJxk5l+506sI9P+kcNJKofILyjPWI7CXB0IaI/tmUEE7G8JuyPSkIFs0XEpTVuJAG2tsSAgI7iKs54gAN/9ZwjjBAHpQnnWObOF9BZKEvFLAvSOFAoBSOLheIIAFDFnX6olQK4mp86vm8v37i2HYwET0DBnznx8P7efc24ptmMEVNhsIe4sKxFw/sSLzIdkgYM+CxtKBLS0NM3vw11uMBNfgUhaNkuugLYaI0CNX0rpAy1dUWVx4v0g4NFHrxUj4DUQcKcgIDUqCgSYFQIGZPyt75r0jhRUIHF/ibpECBEA45mNl3KPPAgQq8npCDBmwARItKlRre2cBvpl0Ps4B2zrtmVPkPFJApBTbTbX1TWPBAH6goWhWI+wMhMFUC0tRwaXbAYBuP4Z6nS5rtaYf0scaKqqKsX7FQLoHnBtx2uCAGVPbvNKZwKMRhl+77smvSPFipmo9OD4BQFGIDk7N5mPgQssaoU1tcB6H18QUN9O8QNzh3LACcPUggQmgB4AdTv9rxl+1clLbnh3pq3bvHl+S8sgsGTzbBCwyuJu6zHX6muNJ9MSH+/jAPx+IgC3vh8OH0b8TADf1QFaLg1marcyAQNMQG8rCNA7UqygUieO/1U+Ht+YduzINQv4i1phtRYYBEzx8PFFbW77EqXN7N2rva/tDtEvqWH+uyU3QMDqrErG5vDNRMBe7ZoarfpaY7HEh/r+9fT4B15nEAGA6LYGmACcungMAia9IwXXInMWex4fz6wWTwgChhJyGd6EC7QqDTB5ojVNV5BAVN+od3AANJP0c8NUeTo7r3U8jqsuqaGrNZZaW33/ep37WR5B02amb03TO1LQXis2cIGEPF8mxw0vo4TSO6lRngycm8f6c3mL895Tz2D7IGRuUvQR8i6Tvr46qXoGgAINLomYCgz19qw/GeMMv2l8uPNxxQhZ3/ZmtCkwQ1pbLM+6cQvDKODuHLuccBrjlFL6KkDbR6f3Fc5YzwVaAi7X3WshTRmyE9NUbFxsSHwPwJewweXaHw2dW78SSBPS9Ko6T6l6BrLHqATOEXg6zDvbZseyvAEy6zu2MiElISTFnuh0kt1g1lSeKFXPx6Jvw4MpitYW5Rb9+bO5GytfIX3VeISPsFqwIXyJ9b7C/kgZKVnrzrIyFwhwNyPj7rTMlFecQrGvATrLmpYhY5SV5YLUTGNpSgURNVqpCgJycvCDTVr0gQCbPcAOF6ULpZMUChsnTAAdYoa/CATgt4Z6PhabgWtm+bUgQLPuDlas0J0/CEBgmtXx1HiEj7BnBsq80+slt0cwrW35yB14g7L/fU1N5SBgUd225prmZvzT8QIIWJyBq4/w9zaVHXiBCWgX8Z+tFEQs12QYckHADcgv5CN+SUDqJVi2WcQPAi5IwHjxi9pRVNQCFE2FoUIGtxKuIkxPeiUxalSq36jixYziFZ9tOwQoo+DDZyUBLpdRIQAXViN9RTx3bdnyKKUh7lrrE8J1pAUFUqh54bHEEBO6L92xXsaP3ekNdxIBzc11zXUdy5mANcZVxmJx+V9A3osIcLnjv8SeS1ng5WrbSOhS/ZIYdlsCHtDSIv/C8UUJiVEbEzc6isKZgLAVM+1m+xrCQWBNdN4jAci8+zqJEJTu3qp+PTRSuK4C+dHl/BoE0Fp2Bw4I6QsCEM2WlIwMUPDoQyCACyZm4IRYamsJoCzFS3dgvh1QZpxLvkCWt3lnc0dH3aLlNcsQcF7kquJVuPxNB16QBLTL+M+eYIew4CzwIqVSDwREqPETAUNxBTTl9xfMjSzescNZviM8fMCR4ggHAZhtUOJ/GQQsDh6VGuI7cxURsMZNgHL8IL5gD3f+8ENPA7JMd93Jnz8aNSaHxep44oLiB3IK4gcBomAibdy4UsSvJ+AOEKAvOJisLqbGAa/A+HfSt5/iv4wIcHH8IwKy3W12y/3l+TEBFL+6GpzNMwucixHEX38QMLBsERGAG4wHAaHOmc7a6Rw/E6B9vyRgeWddTc+yh4gAWcDR3y+lr/ARvj09/faHeLuQ3jNQyS1Xm5u28WfCbwI/t+oLDkiaNjMKmwUBaxo6cfk5fiKggeIfRj/OcEtpvhxZ4EWaR23hkJynn0b80qP0uTAmQOMHEO1E/JVU4VS0bFlReNjcL38W+Jjwc+/4jW/nTg/FuuF8fuvmHpSOQwC7zrBP8H03d7bcdwNPtbEZm0b6Ch9h3Ai2KFNxbqXGaX0vvXRFAB7L0REBYt21ukV0xfPqcfkXyfiR9Y12pQ3zTbCiBubQRcOx/+XXLJqjdWgAAc/h+iN+JmC2TY2fgBGgVHjtxlK54WGn8AkOsEepr1es4tEB5AEHo0Wef0ts7O0iQM5Sq6vjgQB1KpK2mw3ysy2M0JPa5k7K8roNKd4hmOZ0lnVqV6ML2+Vn99/ZXDdyotj/suWeDg1UEIG7AB4CjNlmXe1wvJPL3ABRkPFPPsG3riIo3xEQIGcZRZhEgPoUoP312y93t/HJ1eZOMifTFRwAJi2ODr7g8frdd9+/6jLs7y5AMHmC5B+yzO4SB5Jz0gwil0ACkHPCEv/kE6zvslOFsgCXVyAHitU5dFJabscO2iy211kmT4zXFUioApyxoiF4UrCKKVfrs7TwRvFwJt7Rdvqxj4cc26Skvrm0gl0hNrAWlu+9SpGm+uONB7T11nkEFvj4B2jV7T958uPT5k4+7zvluumPZxZQzdSefEVncRHlKRXvhLXMI8WPKHeeFfWpU66+2I2bxuuztDeopjkPA2+dIWt9xSIwsWFsniYW1SA5PFYWSLg/T18wofcN5l+D5JPlqidtkGTq3OXx+ZM7MLkB++7QDp7BMZ3sU5zqB6td5TUIeH29RyelT9QkjfEuCPDw+gIBWEYZi2lLPL5dn6X9vkK7uvqun0St78bg2KL89vZYIgB5e9EoCCFABCRkB4waFSgelWVy9ThVCut9gykfkJ7TiQVPmnqK1tyfZJrfE9ilfj4I2LFxdce+jn3+b/ASG3x+2Zj/svtJn+JRtByesj8IwK+kyFSLgoU+fl1pJcDoRrqTNvanpKutuUBxvXVXdwgYUAjQL2xMxcvrqhcutNqruc3tmFzSIraoKbCqpWg2ETBTNEqyEPLB9Ugd5et2f6tkSyMH4AQc0eK5H1NREWHj43OOL316J9DUfpAIWNJXUqDWOk/uwFjZV7gv1PLGp5IAX7vdzzfAHjJB+BRnj4Kxsbrw8hkPbXvo0ewQBe9CKnaljR5dMoj4B68dfcTgqbUt9fVL2g3Z5yhfKzYsMDaT+dghiyQgrQWPgVBrbkvuu9W9+bLWt6ioottNADu9BUIOEwF2q93X94QEapI4feLOOhs5/u6KCmuMQkBDw/T0+9e0d7b3HLw/2tQQtHB/ybw0WTsMAlZvWr3vDf+gjn1MAElfu1+C1c8vdQJtlxdMXXj5jIefKXxw/c8+Er1QSl1bYex73eC4/bcNjpMEpNTUpIiChvr65x21BssxBXRArK6N+M+/iKRv647OzoUNDXMKl7TX7tmDEeBYwKvLhYe3NLWAAG7MdHG36BgmIISywr7utrloJ8evpt0pfuSpkaN2kfSFUnQ1dC5Ys6aop70FvxVMFqyEg4qVNFkLfB4TsG/fGxQ/pu9J+dl9rX7D7NZRtF1XOwwCHq149MEv8UoABPAIaBwcd+2rg9cyAXyNm2XBQkPnlztiUqBZBIbwCGCLjzp/MxPgKK+GCij0r9/elrO9N56qLlnptBw4MBg+m5e8cFH8IECt5j7BGH7iininev1PT9osa4PxiypGSGsQ0NlQ1g4CsEY6pDKPgMZ5aUoW+rw3Vg+sw7y1nL4XBASEWBP8Un1puz5r7XXWaw8+mNJtVbDQZ8LWNEUJv/pqY3+k+v0X94DumApHtLpiob5NjdvcPr7utsJaavOSBIQTAZktLWeFzz6dZmpcFH8ZF0EtjaCeYVmQgIWTk4o1M4+VWVPNuuODgPbOpibcAfct20cEzJ+zv0TMoigEVK/m+CUByDonJEwYAWfJS2i7LmsNAh5c/60GV/gEY4EkjVsc33SgvbDEHdTXqlvxFFgQPUSF3pzse9z+GVWEgp9AgIj/0ieBcNPp90xfsMDF/cJXEgEbIsoA8l0mxA3qzdN4Ieh3VOmNLG9WT1N7T0/PvmUvEwFL+maUqtIZBLy9eqMIXxKAeO2pVmvCKN6ul9pev6z/9lktAd471BwtcF6e6vIEHkBAyu54TfzxenMyOFMzygWGTOXHP0HU+t56j3ITdF0IoJbX8/N88MiWE0sEb/1C0LfiPJwNrsCypvY3yHHC1FMwSiOVQQAeg7J8AzD9g7TGCPiOcYWCabqCB9XxVqAt3mPR1l9MOkD+aZ2Jz9CW+tL205OAQV43mBPQemmql776haClFI6Pjxbo1e1vMs31qDn4J2ntpZeKVgzkB6y+7tetEr2M7b0vM2B6JrerWdbLTxzBB+qzynqCshT4BfAMvX7JjPjElKypUxMdiZI3xV3CIrPEdDlOkyDmXj1yhMsfFOxou/XYx0mQ3sBUQH98fbxeeql4jq1h/vwGm1153bpDwaZO16ae3pdp4QG4aSvb3W1uFzWW9KHAAQUNgFrQYFINHAmmLMMW+sv4ovimN5htFVjj62HCzcDp8UYkiOm2K+6Cs3k1OpRVKlnhvPe43oHTvlSQ8X7UykPyNWFpkpDexe4CjgqrrbvCUIG/u7u7K1z6eEWBREKC6sBgt7UvXDjfliBf66XpyzcXw4UX5dlyu2JudrgR1lq37R+k6WwOXRY0cIpN9SF+NWuLdCDBrDD8xqZYUHpbwfe8dEJkfEa6IyMyIzIofDM1SIAAIRttstY3773pq5TjkTna+4unf6M5/lLZZrfaXcBRERGD6CNKbLaIwLLGTindu7oUKcxS0Wq1qw4MCWBgznxriHgNy1as2vQmgMLNuI4hgoDp0y9Us8Bk7tXYuB/3wMHGfhCgncpae5pYKFlK3XlHs7YYHzM+Zn5sPY3LWeZCEFCyEi1jW7bwyh5vtX6ptAF+DFSblMXYbObuzs5uKwhYtQrF2qNJqpOP8WlEsOpzvEFI7417Kzcvwn0QBEBDlJQsdux9zzXuSFl3EMULFMxQpDCEiJ/Nb1jACOswxYEhwTZ/DjHAr/F+Q4qM/+mON0EA1ieFR+aFQkoyAbj8TXPQlHek8dAHTMBTMn5MZgqhk91gtIv9s7Y8Rlj/li8oP8dvndkaE2M1SpdReIzqsr6FICCCYMzo6Ww6UiEIOHzg8OETh6+l2uM8nqVIxwDiLHJSFknv4tq9mzfvq2letjnMaQx1BZY4sVNZo6sisZDPZ96M0aPj4s5mKQxlZLdhPCOppUhFMICCgCXWEHptaG7GIBDxPx3XEX36zewRugBnL9vi6PL34RnY19j45utrP3n4ecKbEpdCGAHGhiVGaoDfjnsALr/lQf8P+L6UXm+hiSCcvkShrna4cKkwWcFPIXNPj9koCDgwsbFxeP+1JJ3xGvEXrzlYnIEs2ZqkY85KVHdnEQF1ze+AgIxIgyHCFpy7uqy5OAMEsI0vjZcROH8mAPEGQCj5ZZ/rlooh1iW33bbEGoXXMRUx3Rkcf08cLWV98kLJB+jyX4fLX0fT16d5ZpVp/UASxsaL68XqcTwCHnzrg5eZQb/qG1J4+Ct4K10bv4YAY4WrtrY+NHSFGAEnTvQfuZZylnjN8R8EA5QjjHZL6X3LQMDs4sgUw7JAIqAx0uEPAvj8S5EWl1KYpKEd9Xw0Ia9KRTDwwAMLU6PO9jZ0d3P4lOmJewME6KTkVa6SPmigvsbDb74mCFDjJwIGXU3AEQX70Umi+qQGpba/fLNqsksE97KUdsO0IUa47GCuqbbWbAmlgFHwcWI4jk6lt71uvwdRshOfpfyU6Ozra9rMXWaNByqaWppccUGQ0uL8x20dgaSxJIDiDaH4tVIxxLrwgQfmpIZ466WpXkp+4VooLj8qWCQBavyvjtvwjOfrL/yy/ahVW3yDfAKqM/j+z4Crr6VQ5yvMBAQCZloMGgFQVrgEXYX9OBoRoD8fECB/SvUAggBzs6UszlVcaGYCeK0KavbD/kzAqaUixsB1ty1J9e5Vbsp7qvYgw3GStCQp3NdY8vzrDBCgPvUIG3y6BLYKeAepbFrS/f27XlZshm9gRF/h6SsMAuRTgN7DBOArII7feKqCjHihH+QwYAL487qRpmMC9FL4r6Virgmo7WVAYP7Ue0ppif+1/4sTH7izrm5jsA0C+v2nELhEpJrhr1teTilEUCCOcvRortxpxYqkJOXopyrI0LflWdxrTwicJIUf2GCaq5WGSTC4nzZtndvyIgzgo2G7B2SNw1VXjQw9R/N+/epzQZM1OWZgnhszGJfq8MckTbGtbdIfXv82TD0xAzs00jDJiaxncIIsY1s3Nyy/PMgRCTsouR0ODVF+qpPt2P66ukOWBPX9l9cp6CkoaEk7z2io+YaADlfCVaNHqEBKqErGHa4QkD3l92xeZZWqAX+fku31b8M0vy8QpbCKFGYCVq97e906tvYhAiLb2spRmy+2gwBEfoni4njJ2MGYi5ZftDNhgnw/CLhIunuPXJ6WVjMZN9FOrRSeN8LdIgkwAUVFOQtynAvuKSrCC4Ph1z9+tRm6ugw2/MFg8Pq3QVnVsq+q3VlSImAdCEhel2tMTU5uRYNCZnkbehPk9pBsuwLy6LzQ1BlxzfKROy3yfweDAMR/jSwrWT7ZuDLBMCBvgj/9tHU8CKDoq6q8CRczAU6MAAyBBQvwgi/879lRUfRvw39BgCuwqa9MWeh4jkkSkJycm1yLv0BAZmI59WZI6asvUKC8PFWLi6zGyCtAgDR3H3PObQ+keUfFzAqJql5XnZzMbnCt80Yg/LRzq6puSsPEEAgQGOjJFH8wEH4dExx8MS7/f0JA55KyOftlv8WGsj3JYi2L5GRj7eNvm0FAW2Ybxf+LlL46qUq+vX2B15xPFilw9Zl43uV1irm9IMAeMmuW3Sj5hRIUBFS99VZV2lg3AZkopJQMSJ/jm25KMPxHBPS0NO0vk+eHE5wWLK29UpPffhwjQC999W1uuIeU1cD1REwlnT8ZBMjhf+W5D4AAc8isAnM1H5L79ogA79KqHxdV/aQSgPjBQLgkgG8D+Ps/ImAJrv+c990LKU9bLU82udZci2puvfRtL9Sux19/namzERUFO/3FdGBklljiYqRKAHyWv8Is4k8//cQNGCDAG6iqajmGphVJQHgPCBhQRkAqf/v/s3vAEjV+QQDHT0DG7vFWvdTEkFduGDxiBiOoXWLxGqVgQV3i4qZzHzCVggBzzziNFJ43huMvrfqpCk07IICR2TMwHwNAfQoA/9VToM+15HzNQspz8fgHkiUNraeQvu48MGDqp6fgYnfFQrS6xMWFY667rdTbaK45wBBGF5fNGKN1uU0GAYz5bh1wCS484T/TAUdNk7ULKSuFvK0SJ0lfHS677MzyFZrV1NQlLi6Aj9dYb3+T55IXM9CxogAcV/3vSvC/Bj1utPD6n/EnnaQbrf6BCX0AAAAASUVORK5CYII=)}.react-tel-input .ad{background-position:-16px 0}.react-tel-input .ae{background-position:-32px 0}.react-tel-input .af{background-position:-48px 0}.react-tel-input .ag{background-position:-64px 0}.react-tel-input .ai{background-position:-80px 0}.react-tel-input .al{background-position:-96px 0}.react-tel-input .am{background-position:-112px 0}.react-tel-input .ao{background-position:-128px 0}.react-tel-input .ar{background-position:-144px 0}.react-tel-input .as{background-position:-160px 0}.react-tel-input .at{background-position:-176px 0}.react-tel-input .au{background-position:-192px 0}.react-tel-input .aw{background-position:-208px 0}.react-tel-input .az{background-position:-224px 0}.react-tel-input .ba{background-position:-240px 0}.react-tel-input .bb{background-position:0 -11px}.react-tel-input .bd{background-position:-16px -11px}.react-tel-input .be{background-position:-32px -11px}.react-tel-input .bf{background-position:-48px -11px}.react-tel-input .bg{background-position:-64px -11px}.react-tel-input .bh{background-position:-80px -11px}.react-tel-input .bi{background-position:-96px -11px}.react-tel-input .bj{background-position:-112px -11px}.react-tel-input .bm{background-position:-128px -11px}.react-tel-input .bn{background-position:-144px -11px}.react-tel-input .bo{background-position:-160px -11px}.react-tel-input .br{background-position:-176px -11px}.react-tel-input .bs{background-position:-192px -11px}.react-tel-input .bt{background-position:-208px -11px}.react-tel-input .bw{background-position:-224px -11px}.react-tel-input .by{background-position:-240px -11px}.react-tel-input .bz{background-position:0 -22px}.react-tel-input .ca{background-position:-16px -22px}.react-tel-input .cd{background-position:-32px -22px}.react-tel-input .cf{background-position:-48px -22px}.react-tel-input .cg{background-position:-64px -22px}.react-tel-input .ch{background-position:-80px -22px}.react-tel-input .ci{background-position:-96px -22px}.react-tel-input .ck{background-position:-112px -22px}.react-tel-input .cl{background-position:-128px -22px}.react-tel-input .cm{background-position:-144px -22px}.react-tel-input .cn{background-position:-160px -22px}.react-tel-input .co{background-position:-176px -22px}.react-tel-input .cr{background-position:-192px -22px}.react-tel-input .cu{background-position:-208px -22px}.react-tel-input .cv{background-position:-224px -22px}.react-tel-input .cw{background-position:-240px -22px}.react-tel-input .cy{background-position:0 -33px}.react-tel-input .cz{background-position:-16px -33px}.react-tel-input .de{background-position:-32px -33px}.react-tel-input .dj{background-position:-48px -33px}.react-tel-input .dk{background-position:-64px -33px}.react-tel-input .dm{background-position:-80px -33px}.react-tel-input .do{background-position:-96px -33px}.react-tel-input .dz{background-position:-112px -33px}.react-tel-input .ec{background-position:-128px -33px}.react-tel-input .ee{background-position:-144px -33px}.react-tel-input .eg{background-position:-160px -33px}.react-tel-input .er{background-position:-176px -33px}.react-tel-input .es{background-position:-192px -33px}.react-tel-input .et{background-position:-208px -33px}.react-tel-input .fi{background-position:-224px -33px}.react-tel-input .fj{background-position:-240px -33px}.react-tel-input .fk{background-position:0 -44px}.react-tel-input .fm{background-position:-16px -44px}.react-tel-input .fo{background-position:-32px -44px}.react-tel-input .fr,.react-tel-input .bl,.react-tel-input .mf{background-position:-48px -44px}.react-tel-input .ga{background-position:-64px -44px}.react-tel-input .gb{background-position:-80px -44px}.react-tel-input .gd{background-position:-96px -44px}.react-tel-input .ge{background-position:-112px -44px}.react-tel-input .gf{background-position:-128px -44px}.react-tel-input .gh{background-position:-144px -44px}.react-tel-input .gi{background-position:-160px -44px}.react-tel-input .gl{background-position:-176px -44px}.react-tel-input .gm{background-position:-192px -44px}.react-tel-input .gn{background-position:-208px -44px}.react-tel-input .gp{background-position:-224px -44px}.react-tel-input .gq{background-position:-240px -44px}.react-tel-input .gr{background-position:0 -55px}.react-tel-input .gt{background-position:-16px -55px}.react-tel-input .gu{background-position:-32px -55px}.react-tel-input .gw{background-position:-48px -55px}.react-tel-input .gy{background-position:-64px -55px}.react-tel-input .hk{background-position:-80px -55px}.react-tel-input .hn{background-position:-96px -55px}.react-tel-input .hr{background-position:-112px -55px}.react-tel-input .ht{background-position:-128px -55px}.react-tel-input .hu{background-position:-144px -55px}.react-tel-input .id{background-position:-160px -55px}.react-tel-input .ie{background-position:-176px -55px}.react-tel-input .il{background-position:-192px -55px}.react-tel-input .in{background-position:-208px -55px}.react-tel-input .io{background-position:-224px -55px}.react-tel-input .iq{background-position:-240px -55px}.react-tel-input .ir{background-position:0 -66px}.react-tel-input .is{background-position:-16px -66px}.react-tel-input .it{background-position:-32px -66px}.react-tel-input .je{background-position:-144px -154px}.react-tel-input .jm{background-position:-48px -66px}.react-tel-input .jo{background-position:-64px -66px}.react-tel-input .jp{background-position:-80px -66px}.react-tel-input .ke{background-position:-96px -66px}.react-tel-input .kg{background-position:-112px -66px}.react-tel-input .kh{background-position:-128px -66px}.react-tel-input .ki{background-position:-144px -66px}.react-tel-input .xk{background-position:-128px -154px}.react-tel-input .km{background-position:-160px -66px}.react-tel-input .kn{background-position:-176px -66px}.react-tel-input .kp{background-position:-192px -66px}.react-tel-input .kr{background-position:-208px -66px}.react-tel-input .kw{background-position:-224px -66px}.react-tel-input .ky{background-position:-240px -66px}.react-tel-input .kz{background-position:0 -77px}.react-tel-input .la{background-position:-16px -77px}.react-tel-input .lb{background-position:-32px -77px}.react-tel-input .lc{background-position:-48px -77px}.react-tel-input .li{background-position:-64px -77px}.react-tel-input .lk{background-position:-80px -77px}.react-tel-input .lr{background-position:-96px -77px}.react-tel-input .ls{background-position:-112px -77px}.react-tel-input .lt{background-position:-128px -77px}.react-tel-input .lu{background-position:-144px -77px}.react-tel-input .lv{background-position:-160px -77px}.react-tel-input .ly{background-position:-176px -77px}.react-tel-input .ma{background-position:-192px -77px}.react-tel-input .mc{background-position:-208px -77px}.react-tel-input .md{background-position:-224px -77px}.react-tel-input .me{background-position:-112px -154px;height:12px}.react-tel-input .mg{background-position:0 -88px}.react-tel-input .mh{background-position:-16px -88px}.react-tel-input .mk{background-position:-32px -88px}.react-tel-input .ml{background-position:-48px -88px}.react-tel-input .mm{background-position:-64px -88px}.react-tel-input .mn{background-position:-80px -88px}.react-tel-input .mo{background-position:-96px -88px}.react-tel-input .mp{background-position:-112px -88px}.react-tel-input .mq{background-position:-128px -88px}.react-tel-input .mr{background-position:-144px -88px}.react-tel-input .ms{background-position:-160px -88px}.react-tel-input .mt{background-position:-176px -88px}.react-tel-input .mu{background-position:-192px -88px}.react-tel-input .mv{background-position:-208px -88px}.react-tel-input .mw{background-position:-224px -88px}.react-tel-input .mx{background-position:-240px -88px}.react-tel-input .my{background-position:0 -99px}.react-tel-input .mz{background-position:-16px -99px}.react-tel-input .na{background-position:-32px -99px}.react-tel-input .nc{background-position:-48px -99px}.react-tel-input .ne{background-position:-64px -99px}.react-tel-input .nf{background-position:-80px -99px}.react-tel-input .ng{background-position:-96px -99px}.react-tel-input .ni{background-position:-112px -99px}.react-tel-input .nl,.react-tel-input .bq{background-position:-128px -99px}.react-tel-input .no{background-position:-144px -99px}.react-tel-input .np{background-position:-160px -99px}.react-tel-input .nr{background-position:-176px -99px}.react-tel-input .nu{background-position:-192px -99px}.react-tel-input .nz{background-position:-208px -99px}.react-tel-input .om{background-position:-224px -99px}.react-tel-input .pa{background-position:-240px -99px}.react-tel-input .pe{background-position:0 -110px}.react-tel-input .pf{background-position:-16px -110px}.react-tel-input .pg{background-position:-32px -110px}.react-tel-input .ph{background-position:-48px -110px}.react-tel-input .pk{background-position:-64px -110px}.react-tel-input .pl{background-position:-80px -110px}.react-tel-input .pm{background-position:-96px -110px}.react-tel-input .pr{background-position:-112px -110px}.react-tel-input .ps{background-position:-128px -110px}.react-tel-input .pt{background-position:-144px -110px}.react-tel-input .pw{background-position:-160px -110px}.react-tel-input .py{background-position:-176px -110px}.react-tel-input .qa{background-position:-192px -110px}.react-tel-input .re{background-position:-208px -110px}.react-tel-input .ro{background-position:-224px -110px}.react-tel-input .rs{background-position:-240px -110px}.react-tel-input .ru{background-position:0 -121px}.react-tel-input .rw{background-position:-16px -121px}.react-tel-input .sa{background-position:-32px -121px}.react-tel-input .sb{background-position:-48px -121px}.react-tel-input .sc{background-position:-64px -121px}.react-tel-input .sd{background-position:-80px -121px}.react-tel-input .se{background-position:-96px -121px}.react-tel-input .sg{background-position:-112px -121px}.react-tel-input .sh{background-position:-128px -121px}.react-tel-input .si{background-position:-144px -121px}.react-tel-input .sk{background-position:-160px -121px}.react-tel-input .sl{background-position:-176px -121px}.react-tel-input .sm{background-position:-192px -121px}.react-tel-input .sn{background-position:-208px -121px}.react-tel-input .so{background-position:-224px -121px}.react-tel-input .sr{background-position:-240px -121px}.react-tel-input .ss{background-position:0 -132px}.react-tel-input .st{background-position:-16px -132px}.react-tel-input .sv{background-position:-32px -132px}.react-tel-input .sx{background-position:-48px -132px}.react-tel-input .sy{background-position:-64px -132px}.react-tel-input .sz{background-position:-80px -132px}.react-tel-input .tc{background-position:-96px -132px}.react-tel-input .td{background-position:-112px -132px}.react-tel-input .tg{background-position:-128px -132px}.react-tel-input .th{background-position:-144px -132px}.react-tel-input .tj{background-position:-160px -132px}.react-tel-input .tk{background-position:-176px -132px}.react-tel-input .tl{background-position:-192px -132px}.react-tel-input .tm{background-position:-208px -132px}.react-tel-input .tn{background-position:-224px -132px}.react-tel-input .to{background-position:-240px -132px}.react-tel-input .tr{background-position:0 -143px}.react-tel-input .tt{background-position:-16px -143px}.react-tel-input .tv{background-position:-32px -143px}.react-tel-input .tw{background-position:-48px -143px}.react-tel-input .tz{background-position:-64px -143px}.react-tel-input .ua{background-position:-80px -143px}.react-tel-input .ug{background-position:-96px -143px}.react-tel-input .us{background-position:-112px -143px}.react-tel-input .uy{background-position:-128px -143px}.react-tel-input .uz{background-position:-144px -143px}.react-tel-input .va{background-position:-160px -143px}.react-tel-input .vc{background-position:-176px -143px}.react-tel-input .ve{background-position:-192px -143px}.react-tel-input .vg{background-position:-208px -143px}.react-tel-input .vi{background-position:-224px -143px}.react-tel-input .vn{background-position:-240px -143px}.react-tel-input .vu{background-position:0 -154px}.react-tel-input .wf{background-position:-16px -154px}.react-tel-input .ws{background-position:-32px -154px}.react-tel-input .ye{background-position:-48px -154px}.react-tel-input .za{background-position:-64px -154px}.react-tel-input .zm{background-position:-80px -154px}.react-tel-input .zw{background-position:-96px -154px}.react-tel-input *{box-sizing:border-box;-moz-box-sizing:border-box}.react-tel-input .hide{display:none}.react-tel-input .v-hide{visibility:hidden}.react-tel-input .form-control{position:relative;font-size:14px;letter-spacing:.01rem;margin-top:0 !important;margin-bottom:0 !important;padding-left:48px;margin-left:0;background:#FFFFFF;border:1px solid #CACACA;border-radius:5px;line-height:25px;height:35px;width:300px;outline:none}.react-tel-input .form-control.invalid-number{border:1px solid #d79f9f;background-color:#FAF0F0;border-left-color:#cacaca}.react-tel-input .form-control.invalid-number:focus{border:1px solid #d79f9f;border-left-color:#cacaca;background-color:#FAF0F0}.react-tel-input .flag-dropdown{position:absolute;top:0;bottom:0;padding:0;background-color:#f5f5f5;border:1px solid #cacaca;border-radius:3px 0 0 3px}.react-tel-input .flag-dropdown:hover,.react-tel-input .flag-dropdown:focus{cursor:pointer}.react-tel-input .flag-dropdown.invalid-number{border-color:#d79f9f}.react-tel-input .flag-dropdown.open{z-index:2;background:#fff;border-radius:3px 0 0 0}.react-tel-input .flag-dropdown.open .selected-flag{background:#fff;border-radius:3px 0 0 0}.react-tel-input input[disabled]+.flag-dropdown:hover{cursor:default}.react-tel-input input[disabled]+.flag-dropdown:hover .selected-flag{background-color:transparent}.react-tel-input .selected-flag{outline:none;position:relative;width:38px;height:100%;padding:0 0 0 8px;border-radius:3px 0 0 3px}.react-tel-input .selected-flag:hover,.react-tel-input .selected-flag:focus{background-color:#fff}.react-tel-input .selected-flag .flag{position:absolute;top:50%;margin-top:-5px}.react-tel-input .selected-flag .arrow{position:relative;top:50%;margin-top:-2px;left:20px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #555}.react-tel-input .selected-flag .arrow.up{border-top:none;border-bottom:4px solid #555}.react-tel-input .country-list{outline:none;z-index:1;list-style:none;position:absolute;padding:0;margin:10px 0 10px -1px;box-shadow:1px 2px 10px rgba(0,0,0,0.35);background-color:white;width:300px;max-height:200px;overflow-y:scroll;border-radius:0 0 3px 3px}.react-tel-input .country-list .flag{display:inline-block}.react-tel-input .country-list .divider{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #ccc}.react-tel-input .country-list .country{padding:7px 9px}.react-tel-input .country-list .country .dial-code{color:#6b6b6b}.react-tel-input .country-list .country:hover{background-color:#f1f1f1}.react-tel-input .country-list .country.highlight{background-color:#f1f1f1}.react-tel-input .country-list .flag{margin-right:7px;margin-top:2px}.react-tel-input .country-list .country-name{margin-right:6px}.react-tel-input .country-list .search{position:sticky;top:0;background-color:#fff;padding:10px 0 6px 10px}.react-tel-input .country-list .search-emoji{font-size:15px}.react-tel-input .country-list .search-box{border:1px solid #cacaca;border-radius:3px;font-size:15px;line-height:15px;margin-left:6px;padding:3px 8px 5px;outline:none}.react-tel-input .country-list .no-entries-message{padding:7px 10px 11px;opacity:.7}.react-tel-input .invalid-number-message{position:absolute;z-index:1;font-size:13px;left:46px;top:-8px;background:#fff;padding:0 2px;color:#de0000}.react-tel-input .special-label{display:none;position:absolute;z-index:1;font-size:13px;left:46px;top:-8px;background:#fff;padding:0 2px;white-space:nowrap}");var iV=M(function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t){e.exports=r},function(e,t,n){var o;
|
63
|
-
/*!
|
64
|
-
Copyright (c) 2017 Jed Watson.
|
65
|
-
Licensed under the MIT License (MIT), see
|
66
|
-
http://jedwatson.github.io/classnames
|
67
|
-
*/!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===i)for(var s in o)n.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=c.Symbol,p=d?d.prototype:void 0,f=p?p.toString:void 0;function h(e){if("string"==typeof e)return e;if(m(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}function v(e){return e?(e=function(e){if("number"==typeof e)return e;if(m(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=r.test(e);return s||i.test(e)?a(e.slice(2),s?2:8):o.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}e.exports=function(e,t,n){var o,r,i;return e=null==(o=e)?"":h(o),r=function(e){var t=v(e),n=t%1;return t==t?n?t-n:t:0}(n),i=e.length,r==r&&(void 0!==i&&(r=r<=i?r:i),r=r>=0?r:0),n=r,t=h(t),e.slice(n,n+t.length)==t}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n,o=/^\[object .+?Constructor\]$/,r="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")(),s=Array.prototype,l=Function.prototype,c=Object.prototype,u=a["__core-js_shared__"],d=(n=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",p=l.toString,f=c.hasOwnProperty,h=c.toString,g=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=s.splice,v=E(a,"Map"),b=E(Object,"create");function y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function w(e,t){for(var n,o,r=e.length;r--;)if((n=e[r][0])===(o=t)||n!=n&&o!=o)return r;return-1}function S(e){return!(!$(e)||(t=e,d&&d in t))&&(function(e){var t=$(e)?h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?g:o).test(function(e){if(null!=e){try{return p.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function k(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function E(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return S(n)?n:void 0}function O(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a),a};return n.cache=new(O.Cache||C),n}function $(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}y.prototype.clear=function(){this.__data__=b?b(null):{}},y.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},y.prototype.get=function(e){var t=this.__data__;if(b){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return f.call(t,e)?t[e]:void 0},y.prototype.has=function(e){var t=this.__data__;return b?void 0!==t[e]:f.call(t,e)},y.prototype.set=function(e,t){return this.__data__[e]=b&&void 0===t?"__lodash_hash_undefined__":t,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(e){var t=this.__data__,n=w(t,e);return!(n<0||(n==t.length-1?t.pop():m.call(t,n,1),0))},x.prototype.get=function(e){var t=this.__data__,n=w(t,e);return n<0?void 0:t[n][1]},x.prototype.has=function(e){return w(this.__data__,e)>-1},x.prototype.set=function(e,t){var n=this.__data__,o=w(n,e);return o<0?n.push([e,t]):n[o][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new y,map:new(v||x),string:new y}},C.prototype.delete=function(e){return k(this,e).delete(e)},C.prototype.get=function(e){return k(this,e).get(e)},C.prototype.has=function(e){return k(this,e).has(e)},C.prototype.set=function(e,t){return k(this,e).set(e,t),this},O.Cache=C,e.exports=O}).call(this,n(3))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=r.test(e);return s||i.test(e)?a(e.slice(2),s?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var o,r,i,a,s,l,c=0,u=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=o,i=r;return o=r=void 0,c=t,a=e.apply(i,n)}function y(e){var n=e-l;return void 0===l||n>=t||n<0||m&&e-c>=i}function x(){var e=f();if(y(e))return C(e);s=setTimeout(x,function(e){var n=t-(e-l);return m?p(n,i-(e-c)):n}(e))}function C(e){return s=void 0,v&&o?b(e):(o=r=void 0,a)}function w(){var e=f(),n=y(e);if(o=arguments,r=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(x,t),u?b(e):a}(l);if(m)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=g(t)||0,h(n)&&(u=!!n.leading,i=(m="maxWait"in n)?d(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},w.flush=function(){return void 0===s?a:C(f())},w}}).call(this,n(3))},function(e,t,n){(function(e,n){var o="[object Arguments]",r="[object Map]",i="[object Object]",a="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,c=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[o]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[r]=h["[object Number]"]=h[i]=h["[object RegExp]"]=h[a]=h["[object String]"]=h["[object WeakMap]"]=!1;var g="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,v=g||m||Function("return this")(),b=t&&!t.nodeType&&t,y=b&&"object"==typeof n&&n&&!n.nodeType&&n,x=y&&y.exports===b&&g.process,C=function(){try{return x&&x.binding("util")}catch(e){}}(),w=C&&C.isTypedArray;function S(e,t,n,o){var r=-1,i=e?e.length:0;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function k(e,t){for(var n=-1,o=e?e.length:0;++n<o;)if(t(e[n],n,e))return!0;return!1}function E(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}function O(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var M,I,P,L=Array.prototype,A=Function.prototype,D=Object.prototype,T=v["__core-js_shared__"],j=(M=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",R=A.toString,_=D.hasOwnProperty,z=D.toString,B=RegExp("^"+R.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=v.Symbol,F=v.Uint8Array,V=D.propertyIsEnumerable,W=L.splice,K=(I=Object.keys,P=Object,function(e){return I(P(e))}),q=Ce(v,"DataView"),X=Ce(v,"Map"),U=Ce(v,"Promise"),G=Ce(v,"Set"),Y=Ce(v,"WeakMap"),Q=Ce(Object,"create"),Z=Me(q),J=Me(X),ee=Me(U),te=Me(G),ne=Me(Y),oe=H?H.prototype:void 0,re=oe?oe.valueOf:void 0,ie=oe?oe.toString:void 0;function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function le(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new le;++t<n;)this.add(e[t])}function ue(e){this.__data__=new se(e)}function de(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}ae.prototype.clear=function(){this.__data__=Q?Q(null):{}},ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ae.prototype.get=function(e){var t=this.__data__;if(Q){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _.call(t,e)?t[e]:void 0},ae.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:_.call(t,e)},ae.prototype.set=function(e,t){return this.__data__[e]=Q&&void 0===t?"__lodash_hash_undefined__":t,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(e){var t=this.__data__,n=de(t,e);return!(n<0||(n==t.length-1?t.pop():W.call(t,n,1),0))},se.prototype.get=function(e){var t=this.__data__,n=de(t,e);return n<0?void 0:t[n][1]},se.prototype.has=function(e){return de(this.__data__,e)>-1},se.prototype.set=function(e,t){var n=this.__data__,o=de(n,e);return o<0?n.push([e,t]):n[o][1]=t,this},le.prototype.clear=function(){this.__data__={hash:new ae,map:new(X||se),string:new ae}},le.prototype.delete=function(e){return xe(this,e).delete(e)},le.prototype.get=function(e){return xe(this,e).get(e)},le.prototype.has=function(e){return xe(this,e).has(e)},le.prototype.set=function(e,t){return xe(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.clear=function(){this.__data__=new se},ue.prototype.delete=function(e){return this.__data__.delete(e)},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var n=this.__data__;if(n instanceof se){var o=n.__data__;if(!X||o.length<199)return o.push([e,t]),this;n=this.__data__=new le(o)}return n.set(e,t),this};var pe,fe=(pe=function(e,t){return e&&he(e,t,He)},function(e,t){if(null==e)return e;if(!De(e))return pe(e,t);for(var n=e.length,o=-1,r=Object(e);++o<n&&!1!==t(r[o],o,r););return e}),he=function(e,t,n){for(var o=-1,r=Object(e),i=n(e),a=i.length;a--;){var s=i[++o];if(!1===t(r[s],s,r))break}return e};function ge(e,t){for(var n=0,o=(t=ke(t,e)?[t]:be(t)).length;null!=e&&n<o;)e=e[Ne(t[n++])];return n&&n==o?e:void 0}function me(e,t){return null!=e&&t in Object(e)}function ve(e,t,n,s,l){return e===t||(null==e||null==t||!Re(e)&&!_e(t)?e!=e&&t!=t:function(e,t,n,s,l,c){var u=Ae(e),d=Ae(t),p="[object Array]",f="[object Array]";u||(p=(p=we(e))==o?i:p),d||(f=(f=we(t))==o?i:f);var h=p==i&&!O(e),g=f==i&&!O(t),m=p==f;if(m&&!h)return c||(c=new ue),u||Be(e)?ye(e,t,n,s,l,c):function(e,t,n,o,i,s,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new F(e),new F(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Pe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case r:var c=$;case a:var u=2&s;if(c||(c=N),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;s|=1,l.set(e,t);var p=ye(c(e),c(t),o,i,s,l);return l.delete(e),p;case"[object Symbol]":if(re)return re.call(e)==re.call(t)}return!1}(e,t,p,n,s,l,c);if(!(2&l)){var v=h&&_.call(e,"__wrapped__"),b=g&&_.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,x=b?t.value():t;return c||(c=new ue),n(y,x,s,l,c)}}return!!m&&(c||(c=new ue),function(e,t,n,o,r,i){var a=2&r,s=He(e),l=s.length;if(l!=He(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:_.call(t,u)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);for(var f=a;++c<l;){var h=e[u=s[c]],g=t[u];if(o)var m=a?o(g,h,u,t,e,i):o(h,g,u,e,t,i);if(!(void 0===m?h===g||n(h,g,o,r,i):m)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,s,l,c))}(e,t,ve,n,s,l))}function be(e){return Ae(e)?e:$e(e)}function ye(e,t,n,o,r,i){var a=2&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=1&r?new ce:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var f=e[u],h=t[u];if(o)var g=a?o(h,f,u,t,e,i):o(f,h,u,e,t,i);if(void 0!==g){if(g)continue;d=!1;break}if(p){if(!k(t,(function(e,t){if(!p.has(t)&&(f===e||n(f,e,o,r,i)))return p.add(t)}))){d=!1;break}}else if(f!==h&&!n(f,h,o,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function xe(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ce(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Re(e)||function(e){return!!j&&j in e}(e))&&(Te(e)||O(e)?B:p).test(Me(e))}(n)?n:void 0}var we=function(e){return z.call(e)};function Se(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&e<t}function ke(e,t){if(Ae(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ze(e))||l.test(e)||!s.test(e)||null!=t&&e in Object(t)}function Ee(e){return e==e&&!Re(e)}function Oe(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(q&&"[object DataView]"!=we(new q(new ArrayBuffer(1)))||X&&we(new X)!=r||U&&"[object Promise]"!=we(U.resolve())||G&&we(new G)!=a||Y&&"[object WeakMap]"!=we(new Y))&&(we=function(e){var t=z.call(e),n=t==i?e.constructor:void 0,o=n?Me(n):void 0;if(o)switch(o){case Z:return"[object DataView]";case J:return r;case ee:return"[object Promise]";case te:return a;case ne:return"[object WeakMap]"}return t});var $e=Ie((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ze(e))return ie?ie.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(u,(function(e,t,o,r){n.push(o?r.replace(d,"$1"):t||e)})),n}));function Ne(e){if("string"==typeof e||ze(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Me(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ie(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a),a};return n.cache=new(Ie.Cache||le),n}function Pe(e,t){return e===t||e!=e&&t!=t}function Le(e){return function(e){return _e(e)&&De(e)}(e)&&_.call(e,"callee")&&(!V.call(e,"callee")||z.call(e)==o)}Ie.Cache=le;var Ae=Array.isArray;function De(e){return null!=e&&je(e.length)&&!Te(e)}function Te(e){var t=Re(e)?z.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Re(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _e(e){return!!e&&"object"==typeof e}function ze(e){return"symbol"==typeof e||_e(e)&&"[object Symbol]"==z.call(e)}var Be=w?function(e){return function(t){return e(t)}}(w):function(e){return _e(e)&&je(e.length)&&!!h[z.call(e)]};function He(e){return De(e)?function(e){var t=Ae(e)||Le(e)?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],n=t.length,o=!!n;for(var r in e)!_.call(e,r)||o&&("length"==r||Se(r,n))||t.push(r);return t}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||D))return K(e);var t,n,o=[];for(var r in Object(e))_.call(e,r)&&"constructor"!=r&&o.push(r);return o}(e)}function Fe(e){return e}n.exports=function(e,t,n){var o=Ae(e)?S:E,r=arguments.length<3;return o(e,function(e){return"function"==typeof e?e:null==e?Fe:"object"==typeof e?Ae(e)?function(e,t){return ke(e)&&Ee(t)?Oe(Ne(e),t):function(n){var o=function(e,t){var n=null==e?void 0:ge(e,t);return void 0===n?void 0:n}(n,e);return void 0===o&&o===t?function(e,t){return null!=e&&function(e,t,n){for(var o,r=-1,i=(t=ke(t,e)?[t]:be(t)).length;++r<i;){var a=Ne(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||!!(i=e?e.length:0)&&je(i)&&Se(a,i)&&(Ae(e)||Le(e))}(e,t,me)}(n,e):ve(t,o,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=He(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,Ee(r)]}return t}(e);return 1==t.length&&t[0][2]?Oe(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n){var o=n.length,r=o;if(null==e)return!r;for(e=Object(e);o--;){var i=n[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<r;){var a=(i=n[o])[0],s=e[a],l=i[1];if(i[2]){if(void 0===s&&!(a in e))return!1}else if(!ve(l,s,void 0,3,new ue))return!1}return!0}(n,0,t)}}(e):ke(t=e)?(n=Ne(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return ge(t,e)}}(t);var t,n}(t),n,r,fe)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},function(e,t,n){function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){if(Array.isArray(e))return e}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){return(c="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})(e)}function u(e){return(u="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(e){return c(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":c(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t);var h=n(0),g=n.n(h),m=n(5),v=n.n(m),b=n(4),y=n.n(b),x=n(6),C=n.n(x),w=n(2),S=n.n(w),k=n(1),E=n.n(k);function O(e,t){return a(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||s()}n(8);var $=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],N=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function M(e,t,n,o,r){return!n||r?e+"".padEnd(t.length,".")+" "+o:e+"".padEnd(t.length,".")+" "+n}function I(e,t,n,r,a){var s,l,c=[];return l=!0===t,[(s=[]).concat.apply(s,i(e.map((function(e){var i={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:M(n,e[3],e[4],r,a),priority:e[5]||0},s=[];return e[6]&&e[6].map((function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}({},i);n.dialCode=e[3]+t,n.isAreaCode=!0,n.areaCodeLength=t.length,s.push(n)})),s.length>0?(i.mainCode=!0,l||"Array"===t.constructor.name&&t.includes(e[2])?(i.hasAreaCodes=!0,[i].concat(s)):(c=c.concat(s),[i])):[i]})))),c]}function P(e,t,n,o){if(null!==n){var r=Object.keys(n),i=Object.values(n);r.forEach((function(n,r){if(o)return e.push([n,i[r]]);var a=e.findIndex((function(e){return e[0]===n}));if(-1===a){var s=[n];s[t]=i[r],e.push(s)}else e[a][t]=i[r]}))}}function L(e,t){return 0===t.length?e:e.map((function(e){var n=t.findIndex((function(t){return t[0]===e[2]}));if(-1===n)return e;var o=t[n];return o[1]&&(e[4]=o[1]),o[3]&&(e[5]=o[3]),o[2]&&(e[6]=o[2]),e}))}var A=function e(t,n,o,r,a,s,c,u,d,p,f,h,g,m){l(this,e),this.filterRegions=function(e,t){if("string"==typeof e){var n=e;return t.filter((function(e){return e.regions.some((function(e){return e===n}))}))}return t.filter((function(t){return e.map((function(e){return t.regions.some((function(t){return t===e}))})).some((function(e){return e}))}))},this.sortTerritories=function(e,t){var n=[].concat(i(e),i(t));return n.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),n},this.getFilteredCountryList=function(e,t,n){return 0===e.length?t:n?e.map((function(e){var n=t.find((function(t){return t.iso2===e}));if(n)return n})).filter((function(e){return e})):t.filter((function(t){return e.some((function(e){return e===t.iso2}))}))},this.localizeCountries=function(e,t,n){for(var o=0;o<e.length;o++)void 0!==t[e[o].iso2]?e[o].localName=t[e[o].iso2]:void 0!==t[e[o].name]&&(e[o].localName=t[e[o].name]);return n||e.sort((function(e,t){return e.localName<t.localName?-1:e.localName>t.localName?1:0})),e},this.getCustomAreas=function(e,t){for(var n=[],o=0;o<t.length;o++){var r=JSON.parse(JSON.stringify(e));r.dialCode+=t[o],n.push(r)}return n},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter((function(e){return!t.includes(e.iso2)}))};var v=function(e,t,n){var o=[];return P(o,1,e,!0),P(o,3,t),P(o,2,n),o}(u,d,p),b=L(JSON.parse(JSON.stringify($)),v),y=L(JSON.parse(JSON.stringify(N)),v),x=O(I(b,t,h,g,m),2),C=x[0],w=x[1];if(n){var S=O(I(y,t,h,g,m),2),k=S[0];S[1],C=this.sortTerritories(k,C)}o&&(C=this.filterRegions(o,C)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(r,C,c.includes("onlyCountries")),s),f,c.includes("onlyCountries")),this.preferredCountries=0===a.length?[]:this.localizeCountries(this.getFilteredCountryList(a,C,c.includes("preferredCountries")),f,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(r,w),s)},D=function(e){function t(e){var n;l(this,t),(n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?d(e):t}(this,p(t).call(this,e))).getProbableCandidate=y()((function(e){return e&&0!==e.length?n.state.onlyCountries.filter((function(t){return S()(t.name.toLowerCase(),e.toLowerCase())}),d(d(n)))[0]:null})),n.guessSelectedCountry=y()((function(e,t,o,r){var i;if(!1===n.props.enableAreaCodes&&(r.some((function(t){if(S()(e,t.dialCode))return o.some((function(e){if(t.iso2===e.iso2&&e.mainCode)return i=e,!0})),!0})),i))return i;var a=o.find((function(e){return e.iso2==t}));if(""===e.trim())return a;var s=o.reduce((function(t,n){if(S()(e,n.dialCode)){if(n.dialCode.length>t.dialCode.length)return n;if(n.dialCode.length===t.dialCode.length&&n.priority<t.priority)return n}return t}),{dialCode:"",priority:10001},d(d(n)));return s.name?s:a})),n.updateCountry=function(e){var t,o=n.state.onlyCountries;(t=e.indexOf(0)>="0"&&e.indexOf(0)<="9"?o.find((function(t){return t.dialCode==+e})):o.find((function(t){return t.iso2==e})))&&t.dialCode&&n.setState({selectedCountry:t,formattedNumber:n.props.disableCountryCode?"":n.formatNumber(t.dialCode,t)})},n.scrollTo=function(e,t){if(e){var o=n.dropdownRef;if(o&&document.body){var r=o.offsetHeight,i=o.getBoundingClientRect().top+document.body.scrollTop,a=i+r,s=e,l=s.getBoundingClientRect(),c=s.offsetHeight,u=l.top+document.body.scrollTop,d=u+c,p=u-i+o.scrollTop,f=r/2-c/2;if(n.props.enableSearch?u<i+32:u<i)t&&(p-=f),o.scrollTop=p;else if(d>a){t&&(p+=f);var h=r-c;o.scrollTop=p-h}}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){if(!t)return e;var o,i=t.format,l=n.props,c=l.disableCountryCode,u=l.enableAreaCodeStretch,d=l.enableLongNumbers,p=l.autoFormat;if(c?((o=i.split(" ")).shift(),o=o.join(" ")):u&&t.isAreaCode?((o=i.split(" "))[1]=o[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),o=o.join(" ")):o=i,!e||0===e.length)return c?"":n.props.prefix;if(e&&e.length<2||!o||!p)return c?e:n.props.prefix+e;var f,h=C()(o,(function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n,o=a(n=e.remainingText)||r(n)||s(),i=o[0],l=o.slice(1);return{formattedText:e.formattedText+i,remainingText:l}}),{formattedText:"",remainingText:e.split("")});return(f=d?h.formattedText+h.remainingText.join(""):h.formattedText).includes("(")&&!f.includes(")")&&(f+=")"),f},n.cursorToEnd=function(){var e=n.numberInputRef;if(document.activeElement===e){e.focus();var t=e.value.length;")"===e.value.charAt(t-1)&&(t-=1),e.setSelectionRange(t,t)}},n.getElement=function(e){return n["flag_no_".concat(e)]},n.getCountryData=function(){return n.state.selectedCountry?{name:n.state.selectedCountry.name||"",dialCode:n.state.selectedCountry.dialCode||"",countryCode:n.state.selectedCountry.iso2||"",format:n.state.selectedCountry.format||""}:{}},n.handleFlagDropdownClick=function(e){if(e.preventDefault(),n.state.showDropdown||!n.props.disabled){var t=n.state,o=t.preferredCountries,r=t.onlyCountries,i=t.selectedCountry,a=n.concatPreferredCountries(o,r).findIndex((function(e){return e.dialCode===i.dialCode&&e.iso2===i.iso2}));n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:a},(function(){n.state.showDropdown&&n.scrollTo(n.getElement(n.state.highlightCountryIndex))}))}},n.handleInput=function(e){var t=e.target.value,o=n.props,r=o.prefix,i=o.onChange,a=n.props.disableCountryCode?"":r,s=n.state.selectedCountry,l=n.state.freezeSelection;if(!n.props.countryCodeEditable){var c=r+(s.hasAreaCodes?n.state.onlyCountries.find((function(e){return e.iso2===s.iso2&&e.mainCode})).dialCode:s.dialCode);if(t.slice(0,c.length)!==c)return}if(t===r)return i&&i("",n.getCountryData(),e,""),n.setState({formattedNumber:""});if(t.replace(/\D/g,"").length>15){if(!1===n.props.enableLongNumbers)return;if("number"==typeof n.props.enableLongNumbers&&t.replace(/\D/g,"").length>n.props.enableLongNumbers)return}if(t!==n.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var u=n.props.country,d=n.state,p=d.onlyCountries,f=d.selectedCountry,h=d.hiddenAreaCodes;if(i&&e.persist(),t.length>0){var g=t.replace(/\D/g,"");(!n.state.freezeSelection||f&&f.dialCode.length>g.length)&&(s=n.props.disableCountryGuess?f:n.guessSelectedCountry(g.substring(0,6),u,p,h)||f,l=!1),a=n.formatNumber(g,s),s=s.dialCode?s:f}var m=e.target.selectionStart,v=e.target.selectionStart,b=n.state.formattedNumber,y=a.length-b.length;n.setState({formattedNumber:a,freezeSelection:l,selectedCountry:s},(function(){y>0&&(v-=y),")"==a.charAt(a.length-1)?n.numberInputRef.setSelectionRange(a.length-1,a.length-1):v>0&&b.length>=a.length?n.numberInputRef.setSelectionRange(v,v):m<b.length&&n.numberInputRef.setSelectionRange(m,m),i&&i(a.replace(/[^0-9]+/g,""),n.getCountryData(),e,a)}))}},n.handleInputClick=function(e){n.setState({showDropdown:!1}),n.props.onClick&&n.props.onClick(e,n.getCountryData())},n.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},n.handleFlagItemClick=function(e,t){var o=n.state.selectedCountry,r=n.state.onlyCountries.find((function(t){return t==e}));if(r){var i=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),a=i.length>1?i.replace(o.dialCode,r.dialCode):r.dialCode,s=n.formatNumber(a.replace(/\D/g,""),r);n.setState({showDropdown:!1,selectedCountry:r,freezeSelection:!0,formattedNumber:s,searchValue:""},(function(){n.cursorToEnd(),n.props.onChange&&n.props.onChange(s.replace(/[^0-9]+/g,""),n.getCountryData(),t,s)}))}},n.handleInputFocus=function(e){n.numberInputRef&&n.numberInputRef.value===n.props.prefix&&n.state.selectedCountry&&!n.props.disableCountryCode&&n.setState({formattedNumber:n.props.prefix+n.state.selectedCountry.dialCode},(function(){n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)})),n.setState({placeholder:""}),n.props.onFocus&&n.props.onFocus(e,n.getCountryData()),n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)},n.handleInputBlur=function(e){e.target.value||n.setState({placeholder:n.props.placeholder}),n.props.onBlur&&n.props.onBlur(e,n.getCountryData())},n.handleInputCopy=function(e){if(n.props.copyNumbersOnly){var t=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},n.getHighlightCountryIndex=function(e){var t=n.state.highlightCountryIndex+e;return t<0||t>=n.state.onlyCountries.length+n.state.preferredCountries.length?t-e:n.props.enableSearch&&t>n.getSearchFilteredCountries().length?0:t},n.searchCountry=function(){var e=n.getProbableCandidate(n.state.queryString)||n.state.onlyCountries[0],t=n.state.onlyCountries.findIndex((function(t){return t==e}))+n.state.preferredCountries.length;n.scrollTo(n.getElement(t),!0),n.setState({queryString:"",highlightCountryIndex:t})},n.handleKeydown=function(e){var t=n.props.keys,o=e.target.className;if(o.includes("selected-flag")&&e.which===t.ENTER&&!n.state.showDropdown)return n.handleFlagDropdownClick(e);if(o.includes("form-control")&&(e.which===t.ENTER||e.which===t.ESC))return e.target.blur();if(n.state.showDropdown&&!n.props.disabled&&(!o.includes("search-box")||e.which===t.UP||e.which===t.DOWN||e.which===t.ENTER||e.which===t.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var r=function(e){n.setState({highlightCountryIndex:n.getHighlightCountryIndex(e)},(function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)}))};switch(e.which){case t.DOWN:r(1);break;case t.UP:r(-1);break;case t.ENTER:n.props.enableSearch?n.handleFlagItemClick(n.getSearchFilteredCountries()[n.state.highlightCountryIndex]||n.getSearchFilteredCountries()[0],e):n.handleFlagItemClick([].concat(i(n.state.preferredCountries),i(n.state.onlyCountries))[n.state.highlightCountryIndex],e);break;case t.ESC:case t.TAB:n.setState({showDropdown:!1},n.cursorToEnd);break;default:(e.which>=t.A&&e.which<=t.Z||e.which===t.SPACE)&&n.setState({queryString:n.state.queryString+String.fromCharCode(e.which)},n.state.debouncedQueryStingSearcher)}}},n.handleInputKeyDown=function(e){var t=n.props,o=t.keys,r=t.onEnterKeyPress,i=t.onKeyDown;e.which===o.ENTER&&r&&r(e),i&&i(e)},n.handleClickOutside=function(e){n.dropdownRef&&!n.dropdownContainerRef.contains(e.target)&&n.state.showDropdown&&n.setState({showDropdown:!1})},n.handleSearchChange=function(e){var t=e.currentTarget.value,o=n.state,r=o.preferredCountries,i=o.selectedCountry,a=0;if(""===t&&i){var s=n.state.onlyCountries;a=n.concatPreferredCountries(r,s).findIndex((function(e){return e==i})),setTimeout((function(){return n.scrollTo(n.getElement(a))}),100)}n.setState({searchValue:t,highlightCountryIndex:a})},n.concatPreferredCountries=function(e,t){return e.length>0?i(new Set(e.concat(t))):t},n.getDropdownCountryName=function(e){return e.localName||e.name},n.getSearchFilteredCountries=function(){var e=n.state,t=e.preferredCountries,o=e.onlyCountries,r=e.searchValue,a=n.props.enableSearch,s=n.concatPreferredCountries(t,o),l=r.trim().toLowerCase().replace("+","");if(a&&l){if(/^\d+$/.test(l))return s.filter((function(e){var t=e.dialCode;return["".concat(t)].some((function(e){return e.toLowerCase().includes(l)}))}));var c=s.filter((function(e){var t=e.iso2;return["".concat(t)].some((function(e){return e.toLowerCase().includes(l)}))})),u=s.filter((function(e){var t=e.name,n=e.localName;return e.iso2,["".concat(t),"".concat(n||"")].some((function(e){return e.toLowerCase().includes(l)}))}));return n.scrollToTop(),i(new Set([].concat(c,u)))}return s},n.getCountryDropdownList=function(){var e=n.state,t=e.preferredCountries,r=e.highlightCountryIndex,i=e.showDropdown,a=e.searchValue,s=n.props,l=s.disableDropdown,c=s.prefix,u=n.props,d=u.enableSearch,p=u.searchNotFound,f=u.disableSearchIcon,h=u.searchClass,m=u.searchStyle,v=u.searchPlaceholder,b=u.autocompleteSearch,y=n.getSearchFilteredCountries().map((function(e,t){var o=r===t,i=E()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:o}),a="flag ".concat(e.iso2);return g.a.createElement("li",Object.assign({ref:function(e){return n["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:i,"data-dial-code":"1",tabIndex:l?"-1":"0","data-country-code":e.iso2,onClick:function(t){return n.handleFlagItemClick(e,t)},role:"option"},o?{"aria-selected":!0}:{}),g.a.createElement("div",{className:a}),g.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),g.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):c+e.dialCode))})),x=g.a.createElement("li",{key:"dashes",className:"divider"});t.length>0&&(!d||d&&!a.trim())&&y.splice(t.length,0,x);var C=E()(o({"country-list":!0,hide:!i},n.props.dropdownClass,!0));return g.a.createElement("ul",{ref:function(e){return!d&&e&&e.focus(),n.dropdownRef=e},className:C,style:n.props.dropdownStyle,role:"listbox",tabIndex:"0"},d&&g.a.createElement("li",{className:E()(o({search:!0},h,h))},!f&&g.a.createElement("span",{className:E()(o({"search-emoji":!0},"".concat(h,"-emoji"),h)),role:"img","aria-label":"Magnifying glass"},"🔎"),g.a.createElement("input",{className:E()(o({"search-box":!0},"".concat(h,"-box"),h)),style:m,type:"search",placeholder:v,autoFocus:!0,autoComplete:b?"on":"off",value:a,onChange:n.handleSearchChange})),y.length>0?y:g.a.createElement("li",{className:"no-entries-message"},g.a.createElement("span",null,p)))};var c,f=new A(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),h=f.onlyCountries,m=f.preferredCountries,b=f.hiddenAreaCodes,x=e.value?e.value.replace(/\D/g,""):"";c=e.disableInitialCountryGuess?0:x.length>1?n.guessSelectedCountry(x.substring(0,6),e.country,h,b)||0:e.country&&h.find((function(t){return t.iso2==e.country}))||0;var w,k=x.length<2&&c&&!S()(x,c.dialCode)?c.dialCode:"";w=""===x&&0===c?"":n.formatNumber((e.disableCountryCode?"":k)+x,c.name?c:void 0);var O=h.findIndex((function(e){return e==c}));return n.state={showDropdown:e.showDropdown,formattedNumber:w,onlyCountries:h,preferredCountries:m,hiddenAreaCodes:b,selectedCountry:c,highlightCountryIndex:O,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:v()(n.searchCountry,250),searchValue:""},n}var n;return function(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}}),t&&f(e,t)}(t,e),(n=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(e,t,n){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,n=t.onlyCountries,o=t.selectedCountry,r=t.hiddenAreaCodes,i=this.props,a=i.country,s=i.prefix;if(""===e)return this.setState({selectedCountry:o,formattedNumber:""});var l,c,u=e.replace(/\D/g,"");if(o&&S()(e,s+o.dialCode))c=this.formatNumber(u,o),this.setState({formattedNumber:c});else{var d=(l=this.props.disableCountryGuess?o:this.guessSelectedCountry(u.substring(0,6),a,n,r)||o)&&S()(u,s+l.dialCode)?l.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":d)+u,l||void 0),this.setState({selectedCountry:l,formattedNumber:c})}}},{key:"render",value:function(){var e,t,n,r=this,i=this.state,a=i.onlyCountries,s=i.selectedCountry,l=i.showDropdown,c=i.formattedNumber,u=i.hiddenAreaCodes,d=this.props,p=d.disableDropdown,f=d.renderStringAsFlag,h=d.isValid,m=d.defaultErrorMessage,v=d.specialLabel;if("boolean"==typeof h)t=h;else{var b=h(c.replace(/\D/g,""),s,a,u);"boolean"==typeof b?!1===(t=b)&&(n=m):(t=!1,n=b)}var y=E()((o(e={},this.props.containerClass,!0),o(e,"react-tel-input",!0),e)),x=E()({arrow:!0,up:l}),C=E()(o({"form-control":!0,"invalid-number":!t,open:l},this.props.inputClass,!0)),w=E()({"selected-flag":!0,open:l}),S=E()(o({"flag-dropdown":!0,"invalid-number":!t,open:l},this.props.buttonClass,!0)),k="flag ".concat(s&&s.iso2);return g.a.createElement("div",{className:"".concat(y," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},v&&g.a.createElement("div",{className:"special-label"},v),n&&g.a.createElement("div",{className:"invalid-number-message"},n),g.a.createElement("input",Object.assign({className:C,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:c,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(e){r.numberInputRef=e,"function"==typeof r.props.inputProps.ref?r.props.inputProps.ref(e):"object"==typeof r.props.inputProps.ref&&(r.props.inputProps.ref.current=e)}})),g.a.createElement("div",{className:S,style:this.props.buttonStyle,ref:function(e){return r.dropdownContainerRef=e}},f?g.a.createElement("div",{className:w},f):g.a.createElement("div",{onClick:p?void 0:this.handleFlagDropdownClick,className:w,title:s?"".concat(s.localName||s.name,": + ").concat(s.dialCode):"",tabIndex:p?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!l||void 0},g.a.createElement("div",{className:k},!p&&g.a.createElement("div",{className:x}))),l&&this.getCountryDropdownList()))}}])&&function(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,o.key,o)}}(t.prototype,n),t}(g.a.Component);D.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=D}]));_A(".inputContainer {\n .react-tel-input .flag-dropdown {\n height: 40px !important;\n background-color: unset;\n border: unset;\n }\n .react-tel-input .form-control {\n height: 40px !important;\n width: 100%;\n padding-left: 40px;\n }\n}\n");var aV=function(e){var n=e.handleChange,o=e.countryCode,r=e.phone,i=e.className,a=e.id,s=c(null);return d((function(){if(s.current){var e=s.current.querySelector("input");e&&(e.id=a)}}),[a]),t("div",{className:i,children:t("div",{className:"inputContainer",ref:s,children:t(iV,{value:"+".concat(o).concat(r),country:o&&r||""!=o&&""!=r?"":"us",countryCodeEditable:!1,onChange:function(e,t){n(e.replace(t.dialCode,""),t.dialCode,t.countryCode)},enableSearch:!0,inputProps:{required:!0}})})})};export{xB as AppAvatar,qA as AppBackArrow,XA as AppBadge,ZF as AppBreadcrumb,BA as AppButton,JF as AppCard,eV as AppCarousel,bB as AppChart,CB as AppCheckboxText,wB as AppCollapse,SB as AppCustomLoader,YF as AppDivider,rV as AppFloatButton,yB as AppImageBox,zA as AppInput,QF as AppLabel,UF as AppList,GF as AppLoader,LF as AppLocationMap,AF as AppModal,jF as AppOtpField,RF as AppPagination,_F as AppPasswordInput,aV as AppPhoneInput,oV as AppPopover,nV as AppProgress,WF as AppRadioGroup,KF as AppSelect,qF as AppSelectAdd,FA as AppSidebar,WA as AppTab,tV as AppTable,XF as AppTag,VA as AppTextarea,HF as AppTitle,FF as AppToggleButton,VF as AppUploadImage,UA as OverViewCard};
|
68
|
-
//# sourceMappingURL=index.mjs.map
|