gf-components 0.1.27 → 0.1.29
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.cjs.js +202 -117
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +30828 -14415
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/index.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react"),Rt=require("styled-components"),vi=require("react-dom");function HS(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=HS($),tT=HS(vi);var ql=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vh={exports:{}},Jo={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var w0;function nT(){if(w0)return Jo;w0=1;var e=$,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,c){var u,d={},f=null,h=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)r.call(l,u)&&!a.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:f,ref:h,props:d,_owner:i.current}}return Jo.Fragment=n,Jo.jsx=o,Jo.jsxs=o,Jo}var es={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var $0;function rT(){return $0||($0=1,process.env.NODE_ENV!=="production"&&function(){var e=$,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=Symbol.iterator,m="@@iterator";function v(G){if(G===null||typeof G!="object")return null;var oe=p&&G[p]||G[m];return typeof oe=="function"?oe:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(G){{for(var oe=arguments.length,le=new Array(oe>1?oe-1:0),_e=1;_e<oe;_e++)le[_e-1]=arguments[_e];x("error",G,le)}}function x(G,oe,le){{var _e=y.ReactDebugCurrentFrame,Ke=_e.getStackAddendum();Ke!==""&&(oe+="%s",le=le.concat([Ke]));var et=le.map(function(Ze){return String(Ze)});et.unshift("Warning: "+oe),Function.prototype.apply.call(console[G],console,et)}}var C=!1,S=!1,w=!1,O=!1,E=!1,_;_=Symbol.for("react.module.reference");function T(G){return!!(typeof G=="string"||typeof G=="function"||G===r||G===a||E||G===i||G===c||G===u||O||G===h||C||S||w||typeof G=="object"&&G!==null&&(G.$$typeof===f||G.$$typeof===d||G.$$typeof===o||G.$$typeof===s||G.$$typeof===l||G.$$typeof===_||G.getModuleId!==void 0))}function R(G,oe,le){var _e=G.displayName;if(_e)return _e;var Ke=oe.displayName||oe.name||"";return Ke!==""?le+"("+Ke+")":le}function F(G){return G.displayName||"Context"}function I(G){if(G==null)return null;if(typeof G.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof G=="function")return G.displayName||G.name||null;if(typeof G=="string")return G;switch(G){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof G=="object")switch(G.$$typeof){case s:var oe=G;return F(oe)+".Consumer";case o:var le=G;return F(le._context)+".Provider";case l:return R(G,G.render,"ForwardRef");case d:var _e=G.displayName||null;return _e!==null?_e:I(G.type)||"Memo";case f:{var Ke=G,et=Ke._payload,Ze=Ke._init;try{return I(Ze(et))}catch{return null}}}return null}var P=Object.assign,k=0,A,M,N,j,D,V,X;function q(){}q.__reactDisabledLog=!0;function Z(){{if(k===0){A=console.log,M=console.info,N=console.warn,j=console.error,D=console.group,V=console.groupCollapsed,X=console.groupEnd;var G={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:G,log:G,warn:G,error:G,group:G,groupCollapsed:G,groupEnd:G})}k++}}function J(){{if(k--,k===0){var G={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},G,{value:A}),info:P({},G,{value:M}),warn:P({},G,{value:N}),error:P({},G,{value:j}),group:P({},G,{value:D}),groupCollapsed:P({},G,{value:V}),groupEnd:P({},G,{value:X})})}k<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=y.ReactCurrentDispatcher,K;function Y(G,oe,le){{if(K===void 0)try{throw Error()}catch(Ke){var _e=Ke.stack.trim().match(/\n( *(at )?)/);K=_e&&_e[1]||""}return`
|
|
18
|
+
`+K+G}}var W=!1,H;{var U=typeof WeakMap=="function"?WeakMap:Map;H=new U}function z(G,oe){if(!G||W)return"";{var le=H.get(G);if(le!==void 0)return le}var _e;W=!0;var Ke=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var et;et=Q.current,Q.current=null,Z();try{if(oe){var Ze=function(){throw Error()};if(Object.defineProperty(Ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ze,[])}catch(St){_e=St}Reflect.construct(G,[],Ze)}else{try{Ze.call()}catch(St){_e=St}G.call(Ze.prototype)}}else{try{throw Error()}catch(St){_e=St}G()}}catch(St){if(St&&_e&&typeof St.stack=="string"){for(var it=St.stack.split(`
|
|
19
|
+
`),Re=_e.stack.split(`
|
|
20
|
+
`),Pe=it.length-1,ze=Re.length-1;Pe>=1&&ze>=0&&it[Pe]!==Re[ze];)ze--;for(;Pe>=1&&ze>=0;Pe--,ze--)if(it[Pe]!==Re[ze]){if(Pe!==1||ze!==1)do if(Pe--,ze--,ze<0||it[Pe]!==Re[ze]){var ft=`
|
|
21
|
+
`+it[Pe].replace(" at new "," at ");return G.displayName&&ft.includes("<anonymous>")&&(ft=ft.replace("<anonymous>",G.displayName)),typeof G=="function"&&H.set(G,ft),ft}while(Pe>=1&&ze>=0);break}}}finally{W=!1,Q.current=et,J(),Error.prepareStackTrace=Ke}var Nt=G?G.displayName||G.name:"",Wt=Nt?Y(Nt):"";return typeof G=="function"&&H.set(G,Wt),Wt}function ne(G,oe,le){return z(G,!1)}function B(G){var oe=G.prototype;return!!(oe&&oe.isReactComponent)}function re(G,oe,le){if(G==null)return"";if(typeof G=="function")return z(G,B(G));if(typeof G=="string")return Y(G);switch(G){case c:return Y("Suspense");case u:return Y("SuspenseList")}if(typeof G=="object")switch(G.$$typeof){case l:return ne(G.render);case d:return re(G.type,oe,le);case f:{var _e=G,Ke=_e._payload,et=_e._init;try{return re(et(Ke),oe,le)}catch{}}}return""}var ie=Object.prototype.hasOwnProperty,ue={},me=y.ReactDebugCurrentFrame;function ve(G){if(G){var oe=G._owner,le=re(G.type,G._source,oe?oe.type:null);me.setExtraStackFrame(le)}else me.setExtraStackFrame(null)}function be(G,oe,le,_e,Ke){{var et=Function.call.bind(ie);for(var Ze in G)if(et(G,Ze)){var it=void 0;try{if(typeof G[Ze]!="function"){var Re=Error((_e||"React class")+": "+le+" type `"+Ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof G[Ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Re.name="Invariant Violation",Re}it=G[Ze](oe,Ze,_e,le,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Pe){it=Pe}it&&!(it instanceof Error)&&(ve(Ke),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",_e||"React class",le,Ze,typeof it),ve(null)),it instanceof Error&&!(it.message in ue)&&(ue[it.message]=!0,ve(Ke),b("Failed %s type: %s",le,it.message),ve(null))}}}var Ce=Array.isArray;function ge(G){return Ce(G)}function fe(G){{var oe=typeof Symbol=="function"&&Symbol.toStringTag,le=oe&&G[Symbol.toStringTag]||G.constructor.name||"Object";return le}}function se(G){try{return xe(G),!1}catch{return!0}}function xe(G){return""+G}function ce(G){if(se(G))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fe(G)),xe(G)}var Ne=y.ReactCurrentOwner,Me={key:!0,ref:!0,__self:!0,__source:!0},Ie,je,He;He={};function Xe(G){if(ie.call(G,"ref")){var oe=Object.getOwnPropertyDescriptor(G,"ref").get;if(oe&&oe.isReactWarning)return!1}return G.ref!==void 0}function ke(G){if(ie.call(G,"key")){var oe=Object.getOwnPropertyDescriptor(G,"key").get;if(oe&&oe.isReactWarning)return!1}return G.key!==void 0}function Oe(G,oe){if(typeof G.ref=="string"&&Ne.current&&oe&&Ne.current.stateNode!==oe){var le=I(Ne.current.type);He[le]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',I(Ne.current.type),G.ref),He[le]=!0)}}function nt(G,oe){{var le=function(){Ie||(Ie=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",oe))};le.isReactWarning=!0,Object.defineProperty(G,"key",{get:le,configurable:!0})}}function We(G,oe){{var le=function(){je||(je=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",oe))};le.isReactWarning=!0,Object.defineProperty(G,"ref",{get:le,configurable:!0})}}var Be=function(G,oe,le,_e,Ke,et,Ze){var it={$$typeof:t,type:G,key:oe,ref:le,props:Ze,_owner:et};return it._store={},Object.defineProperty(it._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(it,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.defineProperty(it,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ke}),Object.freeze&&(Object.freeze(it.props),Object.freeze(it)),it};function Se(G,oe,le,_e,Ke){{var et,Ze={},it=null,Re=null;le!==void 0&&(ce(le),it=""+le),ke(oe)&&(ce(oe.key),it=""+oe.key),Xe(oe)&&(Re=oe.ref,Oe(oe,Ke));for(et in oe)ie.call(oe,et)&&!Me.hasOwnProperty(et)&&(Ze[et]=oe[et]);if(G&&G.defaultProps){var Pe=G.defaultProps;for(et in Pe)Ze[et]===void 0&&(Ze[et]=Pe[et])}if(it||Re){var ze=typeof G=="function"?G.displayName||G.name||"Unknown":G;it&&nt(Ze,ze),Re&&We(Ze,ze)}return Be(G,it,Re,Ke,_e,Ne.current,Ze)}}var Fe=y.ReactCurrentOwner,ot=y.ReactDebugCurrentFrame;function ct(G){if(G){var oe=G._owner,le=re(G.type,G._source,oe?oe.type:null);ot.setExtraStackFrame(le)}else ot.setExtraStackFrame(null)}var De;De=!1;function qe(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function Qe(){{if(Fe.current){var G=I(Fe.current.type);if(G)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+G+"`."}return""}}function Je(G){return""}var rt={};function Ve(G){{var oe=Qe();if(!oe){var le=typeof G=="string"?G:G.displayName||G.name;le&&(oe=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+le+">.")}return oe}}function Te(G,oe){{if(!G._store||G._store.validated||G.key!=null)return;G._store.validated=!0;var le=Ve(oe);if(rt[le])return;rt[le]=!0;var _e="";G&&G._owner&&G._owner!==Fe.current&&(_e=" It was passed a child from "+I(G._owner.type)+"."),ct(G),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',le,_e),ct(null)}}function st(G,oe){{if(typeof G!="object")return;if(ge(G))for(var le=0;le<G.length;le++){var _e=G[le];qe(_e)&&Te(_e,oe)}else if(qe(G))G._store&&(G._store.validated=!0);else if(G){var Ke=v(G);if(typeof Ke=="function"&&Ke!==G.entries)for(var et=Ke.call(G),Ze;!(Ze=et.next()).done;)qe(Ze.value)&&Te(Ze.value,oe)}}}function mt(G){{var oe=G.type;if(oe==null||typeof oe=="string")return;var le;if(typeof oe=="function")le=oe.propTypes;else if(typeof oe=="object"&&(oe.$$typeof===l||oe.$$typeof===d))le=oe.propTypes;else return;if(le){var _e=I(oe);be(le,G.props,"prop",_e,G)}else if(oe.PropTypes!==void 0&&!De){De=!0;var Ke=I(oe);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ke||"Unknown")}typeof oe.getDefaultProps=="function"&&!oe.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ee(G){{for(var oe=Object.keys(G.props),le=0;le<oe.length;le++){var _e=oe[le];if(_e!=="children"&&_e!=="key"){ct(G),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_e),ct(null);break}}G.ref!==null&&(ct(G),b("Invalid attribute `ref` supplied to `React.Fragment`."),ct(null))}}var he={};function we(G,oe,le,_e,Ke,et){{var Ze=T(G);if(!Ze){var it="";(G===void 0||typeof G=="object"&&G!==null&&Object.keys(G).length===0)&&(it+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Re=Je();Re?it+=Re:it+=Qe();var Pe;G===null?Pe="null":ge(G)?Pe="array":G!==void 0&&G.$$typeof===t?(Pe="<"+(I(G.type)||"Unknown")+" />",it=" Did you accidentally export a JSX literal instead of a component?"):Pe=typeof G,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Pe,it)}var ze=Se(G,oe,le,Ke,et);if(ze==null)return ze;if(Ze){var ft=oe.children;if(ft!==void 0)if(_e)if(ge(ft)){for(var Nt=0;Nt<ft.length;Nt++)st(ft[Nt],G);Object.freeze&&Object.freeze(ft)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else st(ft,G)}if(ie.call(oe,"key")){var Wt=I(G),St=Object.keys(oe).filter(function(Ht){return Ht!=="key"}),Cn=St.length>0?"{key: someKey, "+St.join(": ..., ")+": ...}":"{key: someKey}";if(!he[Wt+Cn]){var fn=St.length>0?"{"+St.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,Cn,Wt,fn,Wt),he[Wt+Cn]=!0}}return G===r?Ee(ze):mt(ze),ze}}function Le(G,oe,le){return we(G,oe,le,!0)}function tt(G,oe,le){return we(G,oe,le,!1)}var Ue=tt,at=Le;es.Fragment=r,es.jsx=Ue,es.jsxs=at}()),es}process.env.NODE_ENV==="production"?Vh.exports=nT():Vh.exports=rT();var L=Vh.exports;const On=Rt.createGlobalStyle`
|
|
31
31
|
:root {
|
|
32
32
|
/* colors */
|
|
33
33
|
--gf-color-bg-base: #FFFFFF;
|
|
@@ -82,11 +82,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
82
82
|
padding: 4px 0px;
|
|
83
83
|
margin: 0px;
|
|
84
84
|
}
|
|
85
|
-
`;var
|
|
85
|
+
`;var US={exports:{}};/*!
|
|
86
86
|
Copyright (c) 2018 Jed Watson.
|
|
87
87
|
Licensed under the MIT License (MIT), see
|
|
88
88
|
http://jedwatson.github.io/classnames
|
|
89
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function
|
|
89
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(US);var iT=US.exports;const pe=rn(iT);function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ye.apply(null,arguments)}var Wh={exports:{}},Ft={};/**
|
|
90
90
|
* @license React
|
|
91
91
|
* react-is.production.min.js
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
94
94
|
*
|
|
95
95
|
* This source code is licensed under the MIT license found in the
|
|
96
96
|
* LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/var
|
|
97
|
+
*/var _0;function aT(){if(_0)return Ft;_0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p;p=Symbol.for("react.module.reference");function m(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case n:case i:case r:case c:case u:return v;default:switch(v=v&&v.$$typeof,v){case s:case o:case l:case f:case d:case a:return v;default:return y}}case t:return y}}}return Ft.ContextConsumer=o,Ft.ContextProvider=a,Ft.Element=e,Ft.ForwardRef=l,Ft.Fragment=n,Ft.Lazy=f,Ft.Memo=d,Ft.Portal=t,Ft.Profiler=i,Ft.StrictMode=r,Ft.Suspense=c,Ft.SuspenseList=u,Ft.isAsyncMode=function(){return!1},Ft.isConcurrentMode=function(){return!1},Ft.isContextConsumer=function(v){return m(v)===o},Ft.isContextProvider=function(v){return m(v)===a},Ft.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Ft.isForwardRef=function(v){return m(v)===l},Ft.isFragment=function(v){return m(v)===n},Ft.isLazy=function(v){return m(v)===f},Ft.isMemo=function(v){return m(v)===d},Ft.isPortal=function(v){return m(v)===t},Ft.isProfiler=function(v){return m(v)===i},Ft.isStrictMode=function(v){return m(v)===r},Ft.isSuspense=function(v){return m(v)===c},Ft.isSuspenseList=function(v){return m(v)===u},Ft.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===i||v===r||v===c||v===u||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===d||v.$$typeof===a||v.$$typeof===o||v.$$typeof===l||v.$$typeof===p||v.getModuleId!==void 0)},Ft.typeOf=m,Ft}var zt={};/**
|
|
98
98
|
* @license React
|
|
99
99
|
* react-is.development.js
|
|
100
100
|
*
|
|
@@ -102,18 +102,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
102
102
|
*
|
|
103
103
|
* This source code is licensed under the MIT license found in the
|
|
104
104
|
* LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/var Ll;function tg(){return Ll||(Ll=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=!1,p=!1,g=!1,C=!1,m=!1,y;y=Symbol.for("react.module.reference");function x(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||m||B===n||B===u||B===d||C||B===b||h||p||g||typeof B=="object"&&B!==null&&(B.$$typeof===v||B.$$typeof===f||B.$$typeof===o||B.$$typeof===i||B.$$typeof===l||B.$$typeof===y||B.getModuleId!==void 0))}function S(B){if(typeof B=="object"&&B!==null){var ue=B.$$typeof;switch(ue){case e:var le=B.type;switch(le){case r:case a:case n:case u:case d:return le;default:var Ee=le&&le.$$typeof;switch(Ee){case s:case i:case l:case v:case f:case o:return Ee;default:return ue}}case t:return ue}}}var E=i,R=o,w=e,$=l,T=r,M=v,F=f,A=t,_=a,k=n,N=u,O=d,j=!1,z=!1;function V(B){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(B){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(B){return S(B)===i}function W(B){return S(B)===o}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Y(B){return S(B)===l}function J(B){return S(B)===r}function ee(B){return S(B)===v}function te(B){return S(B)===f}function oe(B){return S(B)===t}function ve(B){return S(B)===a}function fe(B){return S(B)===n}function ge(B){return S(B)===u}function Oe(B){return S(B)===d}dt.ContextConsumer=E,dt.ContextProvider=R,dt.Element=w,dt.ForwardRef=$,dt.Fragment=T,dt.Lazy=M,dt.Memo=F,dt.Portal=A,dt.Profiler=_,dt.StrictMode=k,dt.Suspense=N,dt.SuspenseList=O,dt.isAsyncMode=V,dt.isConcurrentMode=H,dt.isContextConsumer=K,dt.isContextProvider=W,dt.isElement=q,dt.isForwardRef=Y,dt.isFragment=J,dt.isLazy=ee,dt.isMemo=te,dt.isPortal=oe,dt.isProfiler=ve,dt.isStrictMode=fe,dt.isSuspense=ge,dt.isSuspenseList=Oe,dt.isValidElementType=x,dt.typeOf=S}()),dt}process.env.NODE_ENV==="production"?Hi.exports=eg():Hi.exports=tg();var ua=Hi.exports;function Rr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return P.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Rr(n)):ua.isFragment(n)&&n.props?r=r.concat(Rr(n.props.children,t)):r.push(n))}),r}var Wi={},Zs=[],rg=function(t){Zs.push(t)};function jn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Zs.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function ng(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Zs.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Fu(){Wi={}}function Lu(e,t,r){!t&&!Wi[r]&&(e(!1,r),Wi[r]=!0)}function st(e,t){Lu(jn,e,t)}function ag(e,t){Lu(ng,e,t)}st.preMessage=rg;st.resetWarned=Fu;st.noteOnce=ag;function Ie(e){"@babel/helpers - typeof";return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(e)}function og(e,t){if(Ie(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ie(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Du(e){var t=og(e,"string");return Ie(t)=="symbol"?t:t+""}function L(e,t,r){return(t=Du(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dl(Object(r),!0).forEach(function(n){L(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ma(e){return e instanceof HTMLElement||e instanceof SVGElement}function ig(e){return e&&Ie(e)==="object"&&ma(e.nativeElement)?e.nativeElement:ma(e)?e:null}function vo(e){var t=ig(e);if(t)return t;if(e instanceof P.Component){var r;return(r=Mn.findDOMNode)===null||r===void 0?void 0:r.call(Mn,e)}return null}function zo(e,t,r){var n=c.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Qs=function(t,r){typeof t=="function"?t(r):Ie(t)==="object"&&t&&"current"in t&&(t.current=r)},yr=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(o){r.forEach(function(i){Qs(i,o)})}},Na=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zo(function(){return yr.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},cn=function(t){var r,n,a=ua.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==ua.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==ua.ForwardRef)};function zl(e){return P.isValidElement(e)&&!ua.isFragment(e)}Number(P.version.split(".")[0])>=19;var Gi=c.createContext(null);function sg(e){var t=e.children,r=e.onBatchResize,n=c.useRef(0),a=c.useRef([]),o=c.useContext(Gi),i=c.useCallback(function(s,l,u){n.current+=1;var d=n.current;a.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){d===n.current&&(r==null||r(a.current),a.current=[])}),o==null||o(s,l,u)},[r,o]);return c.createElement(Gi.Provider,{value:i},t)}var zu=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,o){return a[0]===r?(n=o,!0):!1}),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(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,o=this.__entries__;a<o.length;a++){var i=o[a];r.call(n,i[1],i[0])}},t}()}(),Ui=typeof window<"u"&&typeof document<"u"&&window.document===document,wo=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),lg=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(wo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),cg=2;function ug(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&s()}function i(){lg(o)}function s(){var l=Date.now();if(r){if(l-a<cg)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=l}return s}var dg=20,fg=["top","right","bottom","left","width","height","size","weight"],vg=typeof MutationObserver<"u",gg=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ug(this.refresh.bind(this),dg)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ui||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vg?(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(){!Ui||!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(t){var r=t.propertyName,n=r===void 0?"":r,a=fg.some(function(o){return!!~n.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ku=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},An=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||wo},Vu=ko(0,0,0,0);function $o(e){return parseFloat(e)||0}function kl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var o=e["border-"+a+"-width"];return n+$o(o)},0)}function mg(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var o=a[n],i=e["padding-"+o];r[o]=$o(i)}return r}function pg(e){var t=e.getBBox();return ko(0,0,t.width,t.height)}function hg(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Vu;var n=An(e).getComputedStyle(e),a=mg(n),o=a.left+a.right,i=a.top+a.bottom,s=$o(n.width),l=$o(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=kl(n,"left","right")+o),Math.round(l+i)!==r&&(l-=kl(n,"top","bottom")+i)),!yg(e)){var u=Math.round(s+o)-t,d=Math.round(l+i)-r;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(l-=d)}return ko(a.left,a.top,s,l)}var bg=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof An(e).SVGGraphicsElement}:function(e){return e instanceof An(e).SVGElement&&typeof e.getBBox=="function"}}();function yg(e){return e===An(e).document.documentElement}function Cg(e){return Ui?bg(e)?pg(e):hg(e):Vu}function Sg(e){var t=e.x,r=e.y,n=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return ku(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function ko(e,t,r,n){return{x:e,y:t,width:r,height:n}}var xg=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ko(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Cg(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Eg=function(){function e(t,r){var n=Sg(r);ku(this,{target:t,contentRect:n})}return e}(),wg=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new zu,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof An(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new xg(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof An(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Eg(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Bu=typeof WeakMap<"u"?new WeakMap:new zu,Hu=function(){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 r=gg.getInstance(),n=new wg(t,r,this);Bu.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Hu.prototype[e]=function(){var t;return(t=Bu.get(this))[e].apply(t,arguments)}});var $g=function(){return typeof wo.ResizeObserver<"u"?wo.ResizeObserver:Hu}(),Fr=new Map;function Wu(e){e.forEach(function(t){var r,n=t.target;(r=Fr.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var Gu=new $g(Wu);process.env.NODE_ENV;process.env.NODE_ENV;function Og(e,t){Fr.has(e)||(Fr.set(e,new Set),Gu.observe(e)),Fr.get(e).add(t)}function Rg(e,t){Fr.has(e)&&(Fr.get(e).delete(t),Fr.get(e).size||(Gu.unobserve(e),Fr.delete(e)))}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Du(n.key),n)}}function Dt(e,t,r){return t&&Vl(e.prototype,t),r&&Vl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pa(e,t){return pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},pa(e,t)}function Zr(e,t){if(typeof t!="function"&&t!==null)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&&pa(e,t)}function ha(e){return ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ha(e)}function Js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Js=function(){return!!e})()}function Ge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pg(e,t){if(t&&(Ie(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ge(e)}function Qr(e){var t=Js();return function(){var r,n=ha(e);if(t){var a=ha(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Pg(this,r)}}var _g=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function Tg(e,t){var r=e.children,n=e.disabled,a=c.useRef(null),o=c.useRef(null),i=c.useContext(Gi),s=typeof r=="function",l=s?r(a):r,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&c.isValidElement(l)&&cn(l),f=d?l.ref:null,v=Na(f,a),b=function(){var C;return vo(a.current)||(a.current&&Ie(a.current)==="object"?vo((C=a.current)===null||C===void 0?void 0:C.nativeElement):null)||vo(o.current)};c.useImperativeHandle(t,function(){return b()});var h=c.useRef(e);h.current=e;var p=c.useCallback(function(g){var C=h.current,m=C.onResize,y=C.data,x=g.getBoundingClientRect(),S=x.width,E=x.height,R=g.offsetWidth,w=g.offsetHeight,$=Math.floor(S),T=Math.floor(E);if(u.current.width!==$||u.current.height!==T||u.current.offsetWidth!==R||u.current.offsetHeight!==w){var M={width:$,height:T,offsetWidth:R,offsetHeight:w};u.current=M;var F=R===Math.round(S)?S:R,A=w===Math.round(E)?E:w,_=D(D({},M),{},{offsetWidth:F,offsetHeight:A});i==null||i(_,g,y),m&&Promise.resolve().then(function(){m(_,g)})}},[]);return c.useEffect(function(){var g=b();return g&&!n&&Og(g,p),function(){return Rg(g,p)}},[a.current,n]),c.createElement(_g,{ref:o},d?c.cloneElement(l,{ref:v}):l)}var Uu=c.forwardRef(Tg);process.env.NODE_ENV!=="production"&&(Uu.displayName="SingleObserver");var Ng="rc-observer-key";function Ig(e,t){var r=e.children,n=typeof r=="function"?[r]:Rr(r);return process.env.NODE_ENV!=="production"&&(n.length>1?jn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&jn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(Ng,"-").concat(o);return c.createElement(Uu,xe({},e,{key:i,ref:o===0?t:void 0}),a)})}var mr=c.forwardRef(Ig);process.env.NODE_ENV!=="production"&&(mr.displayName="ResizeObserver");mr.Collection=sg;function Cr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Ki(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Mg(e){if(Array.isArray(e))return Ki(e)}function Ku(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function el(e,t){if(e){if(typeof e=="string")return Ki(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ki(e,t):void 0}}function jg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
106
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
107
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return Zu(e)||Ag(e,t)||el(e,t)||Qu()}function ba(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Xt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Fg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Hl="data-rc-order",Wl="data-rc-priority",Lg="rc-util-key",qi=new Map;function Ju(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Lg}function Bo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Dg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function tl(e){return Array.from((qi.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ed(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Xt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=Dg(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Hl,i),s&&o&&l.setAttribute(Wl,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=Bo(t),d=u.firstChild;if(n){if(s){var f=(t.styles||tl(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Hl)))return!1;var b=Number(v.getAttribute(Wl)||0);return o>=b});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function td(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Bo(t);return(t.styles||tl(r)).find(function(n){return n.getAttribute(Ju(t))===e})}function ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=td(e,t);if(r){var n=Bo(t);n.removeChild(r)}}function zg(e,t){var r=qi.get(e);if(!r||!Fg(document,r)){var n=ed("",t),a=n.parentNode;qi.set(e,a),e.removeChild(n)}}function Lr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Bo(r),a=tl(n),o=D(D({},r),{},{styles:a});zg(n,o);var i=td(t,o);if(i){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=ed(e,o);return d.setAttribute(Ju(o),t),d}function kg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Je(e,t){if(e==null)return{};var r,n,a=kg(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Ca(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(st(!l,"Warning: There may be circular references"),l)return!1;if(o===i)return!0;if(r&&s>1)return!1;n.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d<o.length;d++)if(!a(o[d],i[d],u))return!1;return!0}if(o&&i&&Ie(o)==="object"&&Ie(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(v){return a(o[v],i[v],u)})}return!1}return a(e,t)}var Vg="%";function Xi(e){return e.join(Vg)}var Bg=function(){function e(t){Lt(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return Dt(e,[{key:"get",value:function(r){return this.opGet(Xi(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Xi(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),o=n(a);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),Fn="data-token-hash",pr="data-css-hash",Hg="data-cache-path",qr="__cssinjs_instance__";function Wg(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(pr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[qr]=a[qr]||e,a[qr]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(pr,"]"))).forEach(function(a){var o=a.getAttribute(pr);if(n[o]){if(a[qr]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new Bg(e)}var Ho=c.createContext({hashPriority:"low",cache:Wg(),defaultCache:!0});function Gg(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var rl=function(){function e(){Lt(this,e),L(this,"cache",void 0),L(this,"keys",void 0),L(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Dt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=U(u,2),v=f[1];return a.internalGet(d)[1]<v?[d,a.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=U(o,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(u,d){if(d===r.length-1)l.set(u,{value:[n,a.cacheCallTimes++]});else{var f=l.get(u);f?f.map||(f.map=new Map):l.set(u,{map:new Map}),l=l.get(u).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var o;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Gg(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();L(rl,"MAX_CACHE_SIZE",20);L(rl,"MAX_CACHE_OFFSET",5);var Gl=0,rd=function(){function e(t){Lt(this,e),L(this,"derivatives",void 0),L(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Gl,t.length===0&&jn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Gl+=1}return Dt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),ci=new rl;function Yi(e){var t=Array.isArray(e)?e:[e];return ci.has(t)||ci.set(t,new rd(t)),ci.get(t)}var Ug=new WeakMap,ui={};function Kg(e,t){for(var r=Ug,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(ui)||r.set(ui,e()),r.get(ui)}var Ul=new WeakMap;function da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ul.get(e)||"";return r||(Object.keys(e).forEach(function(n){var a=e[n];r+=n,a instanceof rd?r+=a.id:a&&Ie(a)==="object"?r+=da(a,t):r+=a}),t&&(r=ba(r)),Ul.set(e,r)),r}function Kl(e,t){return ba("".concat(t,"_").concat(da(e,!0)))}var Zi=Xt();function Q(e){return typeof e=="number"?"".concat(e,"px"):e}function Oo(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=D(D({},n),{},L(L({},Fn,t),pr,r)),i=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var go=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).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()},qg=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var o=U(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},nd=function(t,r,n){var a={},o={};return Object.entries(t).forEach(function(i){var s,l,u=U(i,2),d=u[0],f=u[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[d])){var v,b=go(d,n==null?void 0:n.prefix);a[b]=typeof f=="number"&&!(n!=null&&(v=n.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(b,")")}}),[o,qg(a,r,{scope:n==null?void 0:n.scope})]},ql=process.env.NODE_ENV!=="test"&&Xt()?c.useLayoutEffect:c.useEffect,St=function(t,r){var n=c.useRef(!0);ql(function(){return t(n.current)},r),ql(function(){return n.current=!1,function(){n.current=!0}},[])},Qi=function(t,r){St(function(n){if(!n)return t()},r)},Xg=D({},c),Xl=Xg.useInsertionEffect,Yg=function(t,r,n){c.useMemo(t,n),St(function(){return r(!0)},n)},Zg=Xl?function(e,t,r){return Xl(function(){return e(),t()},r)}:Yg,Qg=D({},c),Jg=Qg.useInsertionEffect,em=function(t){var r=[],n=!1;function a(o){if(n){process.env.NODE_ENV!=="production"&&jn(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(o)}return c.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),a},tm=function(){return function(t){t()}},rm=typeof Jg<"u"?em:tm;function nm(){return!1}var Ji=!1;function am(){return Ji}const om=process.env.NODE_ENV==="production"?nm:am;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var di=window;if(typeof di.webpackHotUpdate=="function"){var im=di.webpackHotUpdate;di.webpackHotUpdate=function(){return Ji=!0,setTimeout(function(){Ji=!1},0),im.apply(void 0,arguments)}}}function nl(e,t,r,n,a){var o=c.useContext(Ho),i=o.cache,s=[e].concat(Ce(t)),l=Xi(s),u=rm([l]),d=om(),f=function(p){i.opUpdate(l,function(g){var C=g||[void 0,void 0],m=U(C,2),y=m[0],x=y===void 0?0:y,S=m[1],E=S;process.env.NODE_ENV!=="production"&&S&&d&&(n==null||n(E,d),E=null);var R=E||r(),w=[x,R];return p?p(w):w})};c.useMemo(function(){f()},[l]);var v=i.opGet(l);process.env.NODE_ENV!=="production"&&!v&&(f(),v=i.opGet(l));var b=v[1];return Zg(function(){a==null||a(b)},function(h){return f(function(p){var g=U(p,2),C=g[0],m=g[1];return h&&C===0&&(a==null||a(b)),[C+1,m]}),function(){i.opUpdate(l,function(p){var g=p||[],C=U(g,2),m=C[0],y=m===void 0?0:m,x=C[1],S=y-1;return S===0?(u(function(){(h||!i.opGet(l))&&(n==null||n(x,!1))}),null):[y-1,x]})}},[l]),b}var sm={},lm=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",nn=new Map;function cm(e){nn.set(e,(nn.get(e)||0)+1)}function um(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Fn,'="').concat(e,'"]'));r.forEach(function(n){if(n[qr]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var dm=0;function fm(e,t){nn.set(e,(nn.get(e)||0)-1);var r=Array.from(nn.keys()),n=r.filter(function(a){var o=nn.get(a)||0;return o<=0});r.length-n.length>dm&&n.forEach(function(a){um(a,t),nn.delete(a)})}var vm=function(t,r,n,a){var o=n.getDerivativeToken(t),i=D(D({},o),r);return a&&(i=a(i)),i},ad="token";function gm(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=P.useContext(Ho),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,u=l===void 0?sm:l,d=r.formatToken,f=r.getComputedToken,v=r.cssVar,b=Kg(function(){return Object.assign.apply(Object,[{}].concat(Ce(t)))},t),h=da(b),p=da(u),g=v?da(v):"",C=nl(ad,[s,e.id,h,p,g],function(){var m,y=f?f(b,u,e):vm(b,u,e,d),x=D({},y),S="";if(v){var E=nd(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),R=U(E,2);y=R[0],S=R[1]}var w=Kl(y,s);y._tokenKey=w,x._tokenKey=Kl(x,s);var $=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:w;y._themeKey=$,cm($);var T="".concat(lm,"-").concat(ba(w));return y._hashId=T,[y,T,x,S,(v==null?void 0:v.key)||""]},function(m){fm(m[0]._themeKey,a)},function(m){var y=U(m,4),x=y[0],S=y[3];if(v&&S){var E=Lr(S,ba("css-variables-".concat(x._themeKey)),{mark:pr,prepend:"queue",attachTo:o,priority:-999});E[qr]=a,E.setAttribute(Fn,x._themeKey)}});return C}var mm=function(t,r,n){var a=U(t,5),o=a[2],i=a[3],s=a[4],l=n||{},u=l.plain;if(!i)return null;var d=o._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=Oo(i,s,d,v,u);return[f,d,b]},pm={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},od="comm",id="rule",sd="decl",hm="@import",bm="@keyframes",ym="@layer",ld=Math.abs,al=String.fromCharCode;function cd(e){return e.trim()}function mo(e,t,r){return e.replace(t,r)}function Cm(e,t,r){return e.indexOf(t,r)}function Sa(e,t){return e.charCodeAt(t)|0}function Ln(e,t,r){return e.slice(t,r)}function $r(e){return e.length}function Sm(e){return e.length}function Xa(e,t){return t.push(e),e}var Wo=1,Dn=1,ud=0,sr=0,Rt=0,Hn="";function ol(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Wo,column:Dn,length:i,return:"",siblings:s}}function xm(){return Rt}function Em(){return Rt=sr>0?Sa(Hn,--sr):0,Dn--,Rt===10&&(Dn=1,Wo--),Rt}function hr(){return Rt=sr<ud?Sa(Hn,sr++):0,Dn++,Rt===10&&(Dn=1,Wo++),Rt}function Xr(){return Sa(Hn,sr)}function po(){return sr}function Go(e,t){return Ln(Hn,e,t)}function xa(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 wm(e){return Wo=Dn=1,ud=$r(Hn=e),sr=0,[]}function $m(e){return Hn="",e}function fi(e){return cd(Go(sr-1,es(e===91?e+2:e===40?e+1:e)))}function Om(e){for(;(Rt=Xr())&&Rt<33;)hr();return xa(e)>2||xa(Rt)>3?"":" "}function Rm(e,t){for(;--t&&hr()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return Go(e,po()+(t<6&&Xr()==32&&hr()==32))}function es(e){for(;hr();)switch(Rt){case e:return sr;case 34:case 39:e!==34&&e!==39&&es(Rt);break;case 40:e===41&&es(e);break;case 92:hr();break}return sr}function Pm(e,t){for(;hr()&&e+Rt!==57;)if(e+Rt===84&&Xr()===47)break;return"/*"+Go(t,sr-1)+"*"+al(e===47?e:hr())}function _m(e){for(;!xa(Xr());)hr();return Go(e,sr)}function Tm(e){return $m(ho("",null,null,null,[""],e=wm(e),0,[0],e))}function ho(e,t,r,n,a,o,i,s,l){for(var u=0,d=0,f=i,v=0,b=0,h=0,p=1,g=1,C=1,m=0,y="",x=a,S=o,E=n,R=y;g;)switch(h=m,m=hr()){case 40:if(h!=108&&Sa(R,f-1)==58){Cm(R+=mo(fi(m),"&","&\f"),"&\f",ld(u?s[u-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:R+=fi(m);break;case 9:case 10:case 13:case 32:R+=Om(h);break;case 92:R+=Rm(po()-1,7);continue;case 47:switch(Xr()){case 42:case 47:Xa(Nm(Pm(hr(),po()),t,r,l),l),(xa(h||1)==5||xa(Xr()||1)==5)&&$r(R)&&Ln(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*p:s[u++]=$r(R)*C;case 125*p:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+d:C==-1&&(R=mo(R,/\f/g,"")),b>0&&($r(R)-f||p===0&&h===47)&&Xa(b>32?Zl(R+";",n,r,f-1,l):Zl(mo(R," ","")+";",n,r,f-2,l),l);break;case 59:R+=";";default:if(Xa(E=Yl(R,t,r,u,d,a,s,y,x=[],S=[],f,o),o),m===123)if(d===0)ho(R,t,E,E,x,o,f,s,S);else switch(v===99&&Sa(R,3)===110?100:v){case 100:case 108:case 109:case 115:ho(e,E,E,n&&Xa(Yl(e,E,E,0,0,a,s,y,a,x=[],f,S),S),a,S,f,s,n?x:S);break;default:ho(R,E,E,E,[""],S,0,s,S)}}u=d=b=0,p=C=1,y=R="",f=i;break;case 58:f=1+$r(R),b=h;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&Em()==125)continue}switch(R+=al(m),m*p){case 38:C=d>0?1:(R+="\f",-1);break;case 44:s[u++]=($r(R)-1)*C,C=1;break;case 64:Xr()===45&&(R+=fi(hr())),v=Xr(),d=f=$r(y=R+=_m(po())),m++;break;case 45:h===45&&$r(R)==2&&(p=0)}}return o}function Yl(e,t,r,n,a,o,i,s,l,u,d,f){for(var v=a-1,b=a===0?o:[""],h=Sm(b),p=0,g=0,C=0;p<n;++p)for(var m=0,y=Ln(e,v+1,v=ld(g=i[p])),x=e;m<h;++m)(x=cd(g>0?b[m]+" "+y:mo(y,/&\f/g,b[m])))&&(l[C++]=x);return ol(e,t,r,a===0?id:s,l,u,d,f)}function Nm(e,t,r,n){return ol(e,t,r,od,al(xm()),Ln(e,2,-2),0,n)}function Zl(e,t,r,n,a){return ol(e,t,r,sd,Ln(e,0,n),Ln(e,n+1,-1),n,a)}function ts(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Im(e,t,r,n){switch(e.type){case ym:if(e.children.length)break;case hm:case sd:return e.return=e.return||e.value;case od:return"";case bm:return e.return=e.value+"{"+ts(e.children,n)+"}";case id:if(!$r(e.value=e.props.join(",")))return""}return $r(r=ts(e.children,n))?e.return=e.value+"{"+r+"}":""}function dd(e,t){var r=t.path,n=t.parentSelectors;st(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var Mm=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof r!="string"||o.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&dd("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},jm=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&dd("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Ql="data-ant-cssinjs-cache-path",fd="_FILE_STYLE__",sn,vd=!0;function Am(){if(!sn&&(sn={},Xt())){var e=document.createElement("div");e.className=Ql,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(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=U(o,2),s=i[0],l=i[1];sn[s]=l});var r=document.querySelector("style[".concat(Ql,"]"));if(r){var n;vd=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Fm(e){return Am(),!!sn[e]}function Lm(e){var t=sn[e],r=null;if(t&&Xt())if(vd)r=fd;else{var n=document.querySelector("style[".concat(pr,'="').concat(sn[e],'"]'));n?r=n.innerHTML:delete sn[e]}return[r,t]}var gd="_skip_check_",md="_multi_value_";function bo(e){var t=ts(Tm(e),Im);return t.replace(/\{%%%\:[^;];}/g,";")}function Dm(e){return Ie(e)==="object"&&e&&(gd in e||md in e)}function Jl(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),u=l[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(a).concat(u.slice(d.length)),[u].concat(Ce(l.slice(1))).join(" ")});return o.join(",")}var zm=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,o=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer,u=r.path,d=r.hashPriority,f=r.transformers,v=f===void 0?[]:f,b=r.linters,h=b===void 0?[]:b,p="",g={};function C(x){var S=x.getName(s);if(!g[S]){var E=e(x.style,r,{root:!1,parentSelectors:i}),R=U(E,1),w=R[0];g[S]="@keyframes ".concat(x.getName(s)).concat(w)}}function m(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(E){Array.isArray(E)?m(E,S):E&&S.push(E)}),S}var y=m(Array.isArray(t)?t:[t]);return y.forEach(function(x){var S=typeof x=="string"&&!a?{}:x;if(typeof S=="string")p+="".concat(S,`
|
|
108
|
-
`);else if(S._keyframe)
|
|
109
|
-
`))):p="{".concat(p,"}"),[p,g]};function pd(e,t){return ba("".concat(e.join("%")).concat(t))}function km(){return null}var hd="style";function rs(e,t){var r=e.token,n=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,d=c.useContext(Ho),f=d.autoClear,v=d.mock,b=d.defaultCache,h=d.hashPriority,p=d.container,g=d.ssrInline,C=d.transformers,m=d.linters,y=d.cache,x=d.layer,S=r._tokenKey,E=[S];x&&E.push("layer"),E.push.apply(E,Ce(n));var R=Zi;process.env.NODE_ENV!=="production"&&v!==void 0&&(R=v==="client");var w=nl(hd,E,function(){var A=E.join("|");if(Fm(A)){var _=Lm(A),k=U(_,2),N=k[0],O=k[1];if(N)return[N,S,O,{},s,u]}var j=t(),z=zm(j,{hashId:a,hashPriority:h,layer:x?o:void 0,path:n.join("-"),transformers:C,linters:m}),V=U(z,2),H=V[0],K=V[1],W=bo(H),q=pd(E,W);return[W,S,q,K,s,u]},function(A,_){var k=U(A,3),N=k[2];(_||f)&&Zi&&ya(N,{mark:pr})},function(A){var _=U(A,4),k=_[0];_[1];var N=_[2],O=_[3];if(R&&k!==fd){var j={mark:pr,prepend:x?!1:"queue",attachTo:p,priority:u},z=typeof i=="function"?i():i;z&&(j.csp={nonce:z});var V=[],H=[];Object.keys(O).forEach(function(W){W.startsWith("@layer")?V.push(W):H.push(W)}),V.forEach(function(W){Lr(bo(O[W]),"_layer-".concat(W),D(D({},j),{},{prepend:!0}))});var K=Lr(k,N,j);K[qr]=y.instanceId,K.setAttribute(Fn,S),process.env.NODE_ENV!=="production"&&K.setAttribute(Hg,E.join("|")),H.forEach(function(W){Lr(bo(O[W]),"_effect-".concat(W),j)})}}),$=U(w,3),T=$[0],M=$[1],F=$[2];return function(A){var _;return!g||R||!b?_=c.createElement(km,null):_=c.createElement("style",xe({},L(L({},Fn,M),pr,F),{dangerouslySetInnerHTML:{__html:T}})),c.createElement(c.Fragment,null,_,A)}}var Vm=function(t,r,n){var a=U(t,6),o=a[0],i=a[1],s=a[2],l=a[3],u=a[4],d=a[5],f=n||{},v=f.plain;if(u)return null;var b=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return b=Oo(o,i,s,h,v),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var g=bo(l[p]),C=Oo(g,i,"_effect-".concat(p),h,v);p.startsWith("@layer")?b=C+b:b+=C}}),[d,s,b]},bd="cssVar",Bm=function(t,r){var n=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,d=P.useContext(Ho),f=d.cache.instanceId,v=d.container,b=s._tokenKey,h=[].concat(Ce(t.path),[n,u,b]),p=nl(bd,h,function(){var g=r(),C=nd(g,n,{prefix:a,unitless:o,ignore:i,scope:u}),m=U(C,2),y=m[0],x=m[1],S=pd(h,x);return[y,x,S,n]},function(g){var C=U(g,3),m=C[2];Zi&&ya(m,{mark:pr})},function(g){var C=U(g,3),m=C[1],y=C[2];if(m){var x=Lr(m,y,{mark:pr,prepend:"queue",attachTo:v,priority:-999});x[qr]=f,x.setAttribute(Fn,n)}});return p},Hm=function(t,r,n){var a=U(t,4),o=a[1],i=a[2],s=a[3],l=n||{},u=l.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=Oo(o,s,i,f,u);return[d,i,v]};L(L(L({},hd,Vm),ad,mm),bd,Hm);var Ot=function(){function e(t,r){Lt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=r}return Dt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function hn(e){return e.notSplit=!0,e}hn(["borderTop","borderBottom"]),hn(["borderTop"]),hn(["borderBottom"]),hn(["borderLeft","borderRight"]),hn(["borderLeft"]),hn(["borderRight"]);var il=P.createContext({});function Wm(e){return Zu(e)||Ku(e)||el(e)||Qu()}function Or(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function yd(e,t,r,n){if(!t.length)return r;var a=Wm(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=Ce(e):s=D({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=yd(s[o],i,r,n),s}function vr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Or(e,t.slice(0,-1))?e:yd(e,t,r,n)}function Gm(e){return Ie(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ec(e){return Array.isArray(e)?[]:{}}var Um=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Pn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=ec(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),u=Or(a,i),d=Array.isArray(u);if(d||Gm(u)){if(!l.has(u)){l.add(u);var f=Or(n,i);d?n=vr(n,i,[]):(!f||Ie(f)!=="object")&&(n=vr(n,i,ec(u))),Um(u).forEach(function(v){o([].concat(Ce(i),[v]),l)})}}else n=vr(n,i,u)}o([])}),n}function Cd(){}let Ar=null;function Km(){Ar=null,Fu()}let Wn=Cd;process.env.NODE_ENV!=="production"&&(Wn=(e,t,r)=>{st(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Km()});const Sd=c.createContext({}),Nt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(Sd),r=(n,a,o)=>{if(!n)if(t===!1&&a==="deprecated"){const i=Ar;Ar||(Ar={}),Ar[e]=Ar[e]||[],Ar[e].includes(o||"")||Ar[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Ar)}else process.env.NODE_ENV!=="production"&&Wn(n,e,o)};return r.deprecated=(n,a,o,i)=>{r(n,"deprecated",`\`${a}\` is deprecated. Please use \`${o}\` instead.${i?` ${i}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=Cd,e},qm=P.createContext(void 0);var Xm={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"},Ym={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Zm=D(D({},Ym),{},{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 xd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},tc={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"]},Zm),timePickerLocale:Object.assign({},xd)},Qt="${label} is not a valid ${type}",zn={locale:"en",Pagination:Xm,DatePicker:tc,TimePicker:xd,Calendar:tc,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:Qt,method:Qt,array:Qt,object:Qt,number:Qt,date:Qt,boolean:Qt,integer:Qt,float:Qt,regexp:Qt,email:Qt,url:Qt,hex:Qt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},zn.Modal);let yo=[];const rc=()=>yo.reduce((e,t)=>Object.assign(Object.assign({},e),t),zn.Modal);function Qm(e){if(e){const t=Object.assign({},e);return yo.push(t),rc(),()=>{yo=yo.filter(r=>r!==t),rc()}}Object.assign({},zn.Modal)}const sl=P.createContext(void 0),Jm=(e,t)=>{const r=c.useContext(sl),n=c.useMemo(()=>{var o;const i=zn[e],s=(o=r==null?void 0:r[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),a=c.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?zn.locale:o},[r]);return[n,a]},Ed="internalMark",wd=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=Nt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===Ed,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>Qm(t==null?void 0:t.Modal),[t]);const a=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(sl.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(wd.displayName="LocaleProvider");function Ft(e,t){ep(e)&&(e="100%");var r=tp(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ya(e){return Math.min(1,Math.max(0,e))}function ep(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function tp(e){return typeof e=="string"&&e.indexOf("%")!==-1}function $d(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Za(e){return e<=1?"".concat(Number(e)*100,"%"):e}function an(e){return e.length===1?"0"+e:String(e)}function rp(e,t,r){return{r:Ft(e,255)*255,g:Ft(t,255)*255,b:Ft(r,255)*255}}function nc(e,t,r){e=Ft(e,255),t=Ft(t,255),r=Ft(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=0,s=(n+a)/2;if(n===a)i=0,o=0;else{var l=n-a;switch(i=s>.5?l/(2-n-a):l/(n+a),n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s:i,l:s}}function vi(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function np(e,t,r){var n,a,o;if(e=Ft(e,360),t=Ft(t,100),r=Ft(r,100),t===0)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=vi(s,i,e+1/3),a=vi(s,i,e),o=vi(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function ns(e,t,r){e=Ft(e,255),t=Ft(t,255),r=Ft(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,l=n===0?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:i}}function ap(e,t,r){e=Ft(e,360)*6,t=Ft(t,100),r=Ft(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),i=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,u=[r,i,o,o,s,r][l],d=[s,r,r,i,o,o][l],f=[o,o,s,r,r,i][l];return{r:u*255,g:d*255,b:f*255}}function as(e,t,r,n){var a=[an(Math.round(e).toString(16)),an(Math.round(t).toString(16)),an(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function op(e,t,r,n,a){var o=[an(Math.round(e).toString(16)),an(Math.round(t).toString(16)),an(Math.round(r).toString(16)),an(ip(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function ip(e){return Math.round(parseFloat(e)*255).toString(16)}function ac(e){return er(e)/255}function er(e){return parseInt(e,16)}function sp(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var os={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 Rn(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=up(e)),typeof e=="object"&&(Mr(e.r)&&Mr(e.g)&&Mr(e.b)?(t=rp(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Mr(e.h)&&Mr(e.s)&&Mr(e.v)?(n=Za(e.s),a=Za(e.v),t=ap(e.h,n,a),i=!0,s="hsv"):Mr(e.h)&&Mr(e.s)&&Mr(e.l)&&(n=Za(e.s),o=Za(e.l),t=np(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=$d(r),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var lp="[-\\+]?\\d+%?",cp="[-\\+]?\\d*\\.\\d+%?",Yr="(?:".concat(cp,")|(?:").concat(lp,")"),gi="[\\s|\\(]+(".concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")\\s*\\)?"),mi="[\\s|\\(]+(".concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")[,|\\s]+(").concat(Yr,")\\s*\\)?"),fr={CSS_UNIT:new RegExp(Yr),rgb:new RegExp("rgb"+gi),rgba:new RegExp("rgba"+mi),hsl:new RegExp("hsl"+gi),hsla:new RegExp("hsla"+mi),hsv:new RegExp("hsv"+gi),hsva:new RegExp("hsva"+mi),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 up(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(os[e])e=os[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=fr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=fr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=fr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=fr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=fr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=fr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=fr.hex8.exec(e),r?{r:er(r[1]),g:er(r[2]),b:er(r[3]),a:ac(r[4]),format:t?"name":"hex8"}:(r=fr.hex6.exec(e),r?{r:er(r[1]),g:er(r[2]),b:er(r[3]),format:t?"name":"hex"}:(r=fr.hex4.exec(e),r?{r:er(r[1]+r[1]),g:er(r[2]+r[2]),b:er(r[3]+r[3]),a:ac(r[4]+r[4]),format:t?"name":"hex8"}:(r=fr.hex3.exec(e),r?{r:er(r[1]+r[1]),g:er(r[2]+r[2]),b:er(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Mr(e){return!!fr.CSS_UNIT.exec(String(e))}var tr=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=sp(t)),this.originalInput=t;var a=Rn(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.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=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=$d(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=ns(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=ns(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=nc(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=nc(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),as(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),op(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},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 t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Ft(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Ft(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+as(this.r,this.g,this.b,!1),r=0,n=Object.entries(os);r<n.length;r++){var a=n[r],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,o=!r&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},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){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Ya(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Ya(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Ya(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Ya(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),o=r/100,i={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,o=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(n+i*o)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Qa=2,oc=.16,dp=.05,fp=.05,vp=.15,Od=5,Rd=4,gp=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function ic(e){var t=e.r,r=e.g,n=e.b,a=ns(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Ja(e){var t=e.r,r=e.g,n=e.b;return"#".concat(as(t,r,n,!1))}function mp(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function sc(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Qa*t:Math.round(e.h)+Qa*t:n=r?Math.round(e.h)+Qa*t:Math.round(e.h)-Qa*t,n<0?n+=360:n>=360&&(n-=360),n}function lc(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-oc*t:t===Rd?n=e.s+oc:n=e.s+dp*t,n>1&&(n=1),r&&t===Od&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function cc(e,t,r){var n;return r?n=e.v+fp*t:n=e.v-vp*t,n>1&&(n=1),Number(n.toFixed(2))}function Ea(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Rn(e),a=Od;a>0;a-=1){var o=ic(n),i=Ja(Rn({h:sc(o,a,!0),s:lc(o,a,!0),v:cc(o,a,!0)}));r.push(i)}r.push(Ja(n));for(var s=1;s<=Rd;s+=1){var l=ic(n),u=Ja(Rn({h:sc(l,s),s:lc(l,s),v:cc(l,s)}));r.push(u)}return t.theme==="dark"?gp.map(function(d){var f=d.index,v=d.opacity,b=Ja(mp(Rn(t.backgroundColor||"#141414"),Rn(r[f]),v*100));return b}):r}var pi={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"},is=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];is.primary=is[5];var ss=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ss.primary=ss[5];var ls=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ls.primary=ls[5];var Ro=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ro.primary=Ro[5];var cs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];cs.primary=cs[5];var us=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];us.primary=us[5];var ds=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ds.primary=ds[5];var fs=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];fs.primary=fs[5];var Po=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Po.primary=Po[5];var vs=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];vs.primary=vs[5];var gs=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];gs.primary=gs[5];var ms=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ms.primary=ms[5];var ps=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ps.primary=ps[5];var hi={red:is,volcano:ss,orange:ls,gold:Ro,yellow:cs,lime:us,green:ds,cyan:fs,blue:Po,geekblue:vs,purple:gs,magenta:ms,grey:ps};const Pd={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"},wa=Object.assign(Object.assign({},Pd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
105
|
+
*/var E0;function oT(){return E0||(E0=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=!1,m=!1,v=!1,y=!1,b=!1,x;x=Symbol.for("react.module.reference");function C(B){return!!(typeof B=="string"||typeof B=="function"||B===n||B===i||b||B===r||B===c||B===u||y||B===h||p||m||v||typeof B=="object"&&B!==null&&(B.$$typeof===f||B.$$typeof===d||B.$$typeof===a||B.$$typeof===o||B.$$typeof===l||B.$$typeof===x||B.getModuleId!==void 0))}function S(B){if(typeof B=="object"&&B!==null){var re=B.$$typeof;switch(re){case e:var ie=B.type;switch(ie){case n:case i:case r:case c:case u:return ie;default:var ue=ie&&ie.$$typeof;switch(ue){case s:case o:case l:case f:case d:case a:return ue;default:return re}}case t:return re}}}var w=o,O=a,E=e,_=l,T=n,R=f,F=d,I=t,P=i,k=r,A=c,M=u,N=!1,j=!1;function D(B){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(B){return j||(j=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(B){return S(B)===o}function q(B){return S(B)===a}function Z(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function J(B){return S(B)===l}function Q(B){return S(B)===n}function K(B){return S(B)===f}function Y(B){return S(B)===d}function W(B){return S(B)===t}function H(B){return S(B)===i}function U(B){return S(B)===r}function z(B){return S(B)===c}function ne(B){return S(B)===u}zt.ContextConsumer=w,zt.ContextProvider=O,zt.Element=E,zt.ForwardRef=_,zt.Fragment=T,zt.Lazy=R,zt.Memo=F,zt.Portal=I,zt.Profiler=P,zt.StrictMode=k,zt.Suspense=A,zt.SuspenseList=M,zt.isAsyncMode=D,zt.isConcurrentMode=V,zt.isContextConsumer=X,zt.isContextProvider=q,zt.isElement=Z,zt.isForwardRef=J,zt.isFragment=Q,zt.isLazy=K,zt.isMemo=Y,zt.isPortal=W,zt.isProfiler=H,zt.isStrictMode=U,zt.isSuspense=z,zt.isSuspenseList=ne,zt.isValidElementType=C,zt.typeOf=S}()),zt}process.env.NODE_ENV==="production"?Wh.exports=aT():Wh.exports=oT();var Ms=Wh.exports;function cr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return $.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cr(r)):Ms.isFragment(r)&&r.props?n=n.concat(cr(r.props.children,t)):n.push(r))}),n}var Hh={},Gg=[],sT=function(t){Gg.push(t)};function da(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Gg.reduce(function(r,i){return i(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function lT(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Gg.reduce(function(r,i){return i(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function GS(){Hh={}}function qS(e,t,n){!t&&!Hh[n]&&(e(!1,n),Hh[n]=!0)}function yt(e,t){qS(da,e,t)}function Uh(e,t){qS(lT,e,t)}yt.preMessage=sT;yt.resetWarned=GS;yt.noteOnce=Uh;function ut(e){"@babel/helpers - typeof";return ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ut(e)}function cT(e,t){if(ut(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ut(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KS(e){var t=cT(e,"string");return ut(t)=="symbol"?t:t+""}function ee(e,t,n){return(t=KS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O0(Object(n),!0).forEach(function(r){ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ds(e){return e instanceof HTMLElement||e instanceof SVGElement}function uT(e){return e&&ut(e)==="object"&&Ds(e.nativeElement)?e.nativeElement:Ds(e)?e:null}function Ts(e){var t=uT(e);if(t)return t;if(e instanceof $.Component){var n;return(n=vi.findDOMNode)===null||n===void 0?void 0:n.call(vi,e)}return null}function yl(e,t,n){var r=g.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var qg=function(t,n){typeof t=="function"?t(n):ut(t)==="object"&&t&&"current"in t&&(t.current=n)},Er=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(a){n.forEach(function(o){qg(o,a)})}},Ro=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yl(function(){return Er.apply(void 0,n)},n,function(i,a){return i.length!==a.length||i.every(function(o,s){return o!==a[s]})})},ya=function(t){var n,r,i=Ms.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==Ms.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Ms.ForwardRef)};function M0(e){return $.isValidElement(e)&&!Ms.isFragment(e)}Number($.version.split(".")[0])>=19;var Gh=g.createContext(null);function dT(e){var t=e.children,n=e.onBatchResize,r=g.useRef(0),i=g.useRef([]),a=g.useContext(Gh),o=g.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(s,l,c)},[n,a]);return g.createElement(Gh.Provider,{value:o},t)}var YS=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}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(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];n.call(r,o[1],o[0])}},t}()}(),qh=typeof window<"u"&&typeof document<"u"&&window.document===document,Bc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),fT=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Bc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),hT=2;function vT(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){fT(a)}function s(){var l=Date.now();if(n){if(l-i<hT)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=l}return s}var gT=20,mT=["top","right","bottom","left","width","height","size","weight"],pT=typeof MutationObserver<"u",bT=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=vT(this.refresh.bind(this),gT)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!qh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),pT?(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(){!qh||!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(t){var n=t.propertyName,r=n===void 0?"":n,i=mT.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),XS=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},fo=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Bc},ZS=ju(0,0,0,0);function Vc(e){return parseFloat(e)||0}function T0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+Vc(a)},0)}function yT(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=Vc(o)}return n}function xT(e){var t=e.getBBox();return ju(0,0,t.width,t.height)}function ST(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ZS;var r=fo(e).getComputedStyle(e),i=yT(r),a=i.left+i.right,o=i.top+i.bottom,s=Vc(r.width),l=Vc(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=T0(r,"left","right")+a),Math.round(l+o)!==n&&(l-=T0(r,"top","bottom")+o)),!wT(e)){var c=Math.round(s+a)-t,u=Math.round(l+o)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return ju(i.left,i.top,s,l)}var CT=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof fo(e).SVGGraphicsElement}:function(e){return e instanceof fo(e).SVGElement&&typeof e.getBBox=="function"}}();function wT(e){return e===fo(e).document.documentElement}function $T(e){return qh?CT(e)?xT(e):ST(e):ZS}function _T(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return XS(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function ju(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ET=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ju(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=$T(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),OT=function(){function e(t,n){var r=_T(n);XS(this,{target:t,contentRect:r})}return e}(),MT=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new YS,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof fo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ET(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof fo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new OT(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),QS=typeof WeakMap<"u"?new WeakMap:new YS,JS=function(){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=bT.getInstance(),r=new MT(t,n,this);QS.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){JS.prototype[e]=function(){var t;return(t=QS.get(this))[e].apply(t,arguments)}});var TT=function(){return typeof Bc.ResizeObserver<"u"?Bc.ResizeObserver:JS}(),li=new Map;function eC(e){e.forEach(function(t){var n,r=t.target;(n=li.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var tC=new TT(eC);process.env.NODE_ENV;process.env.NODE_ENV;function RT(e,t){li.has(e)||(li.set(e,new Set),tC.observe(e)),li.get(e).add(t)}function PT(e,t){li.has(e)&&(li.get(e).delete(t),li.get(e).size||(tC.unobserve(e),li.delete(e)))}function Mn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KS(r.key),r)}}function Tn(e,t,n){return t&&R0(e.prototype,t),n&&R0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fs(e,t){return Fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Fs(e,t)}function zi(e,t){if(typeof t!="function"&&t!==null)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&&Fs(e,t)}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zs(e)}function Kg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kg=function(){return!!e})()}function Et(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IT(e,t){if(t&&(ut(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Et(e)}function Bi(e){var t=Kg();return function(){var n,r=zs(e);if(t){var i=zs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return IT(this,n)}}var AT=function(e){zi(n,e);var t=Bi(n);function n(){return Mn(this,n),t.apply(this,arguments)}return Tn(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component);function NT(e,t){var n=e.children,r=e.disabled,i=g.useRef(null),a=g.useRef(null),o=g.useContext(Gh),s=typeof n=="function",l=s?n(i):n,c=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&g.isValidElement(l)&&ya(l),d=u?l.ref:null,f=Ro(d,i),h=function(){var y;return Ts(i.current)||(i.current&&ut(i.current)==="object"?Ts((y=i.current)===null||y===void 0?void 0:y.nativeElement):null)||Ts(a.current)};g.useImperativeHandle(t,function(){return h()});var p=g.useRef(e);p.current=e;var m=g.useCallback(function(v){var y=p.current,b=y.onResize,x=y.data,C=v.getBoundingClientRect(),S=C.width,w=C.height,O=v.offsetWidth,E=v.offsetHeight,_=Math.floor(S),T=Math.floor(w);if(c.current.width!==_||c.current.height!==T||c.current.offsetWidth!==O||c.current.offsetHeight!==E){var R={width:_,height:T,offsetWidth:O,offsetHeight:E};c.current=R;var F=O===Math.round(S)?S:O,I=E===Math.round(w)?w:E,P=te(te({},R),{},{offsetWidth:F,offsetHeight:I});o==null||o(P,v,x),b&&Promise.resolve().then(function(){b(P,v)})}},[]);return g.useEffect(function(){var v=h();return v&&!r&&RT(v,m),function(){return PT(v,m)}},[i.current,r]),g.createElement(AT,{ref:a},u?g.cloneElement(l,{ref:f}):l)}var nC=g.forwardRef(NT);process.env.NODE_ENV!=="production"&&(nC.displayName="SingleObserver");var kT="rc-observer-key";function jT(e,t){var n=e.children,r=typeof n=="function"?[n]:cr(n);return process.env.NODE_ENV!=="production"&&(r.length>1?da(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&da(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(i,a){var o=(i==null?void 0:i.key)||"".concat(kT,"-").concat(a);return g.createElement(nC,Ye({},e,{key:o,ref:a===0?t:void 0}),i)})}var sr=g.forwardRef(jT);process.env.NODE_ENV!=="production"&&(sr.displayName="ResizeObserver");sr.Collection=dT;function hr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Kh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function LT(e){if(Array.isArray(e))return Kh(e)}function rC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yg(e,t){if(e){if(typeof e=="string")return Kh(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kh(e,t):void 0}}function DT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
106
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ge(e){return LT(e)||rC(e)||Yg(e)||DT()}var iC=function(t){return+setTimeout(t,16)},aC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(iC=function(t){return window.requestAnimationFrame(t)},aC=function(t){return window.cancelAnimationFrame(t)});var P0=0,Lu=new Map;function oC(e){Lu.delete(e)}var qt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;P0+=1;var r=P0;function i(a){if(a===0)oC(r),t();else{var o=iC(function(){i(a-1)});Lu.set(r,o)}}return i(n),r};qt.cancel=function(e){var t=Lu.get(e);return oC(e),aC(t)};process.env.NODE_ENV!=="production"&&(qt.ids=function(){return Lu});function sC(e){if(Array.isArray(e))return e}function FT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function lC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
107
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(e,t){return sC(e)||FT(e,t)||Yg(e,t)||lC()}function Bs(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Hn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zT(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}var I0="data-rc-order",A0="data-rc-priority",BT="rc-util-key",Yh=new Map;function cC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):BT}function Du(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function VT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Xg(e){return Array.from((Yh.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function uC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Hn())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=VT(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(I0,o),s&&a&&l.setAttribute(A0,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Du(t),u=c.firstChild;if(r){if(s){var d=(t.styles||Xg(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(I0)))return!1;var h=Number(f.getAttribute(A0)||0);return a>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function dC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Du(t);return(t.styles||Xg(n)).find(function(r){return r.getAttribute(cC(t))===e})}function Vs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=dC(e,t);if(n){var r=Du(t);r.removeChild(n)}}function WT(e,t){var n=Yh.get(e);if(!n||!zT(document,n)){var r=uC("",t),i=r.parentNode;Yh.set(e,i),e.removeChild(r)}}function di(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Du(n),i=Xg(r),a=te(te({},n),{},{styles:i});WT(r,a);var o=dC(t,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=uC(e,a);return u.setAttribute(cC(a),t),u}function HT(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function wt(e,t){if(e==null)return{};var n,r,i=HT(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ws(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(yt(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var u=0;u<a.length;u++)if(!i(a[u],o[u],c))return!1;return!0}if(a&&o&&ut(a)==="object"&&ut(o)==="object"){var d=Object.keys(a);return d.length!==Object.keys(o).length?!1:d.every(function(f){return i(a[f],o[f],c)})}return!1}return i(e,t)}var UT="%";function Xh(e){return e.join(UT)}var GT=function(){function e(t){Mn(this,e),ee(this,"instanceId",void 0),ee(this,"cache",new Map),this.instanceId=t}return Tn(e,[{key:"get",value:function(n){return this.opGet(Xh(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Xh(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),a=r(i);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),ho="data-token-hash",Dr="data-css-hash",qT="data-cache-path",Oi="__cssinjs_instance__";function KT(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Dr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[Oi]=i[Oi]||e,i[Oi]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Dr,"]"))).forEach(function(i){var a=i.getAttribute(Dr);if(r[a]){if(i[Oi]===e){var o;(o=i.parentNode)===null||o===void 0||o.removeChild(i)}}else r[a]=!0})}return new GT(e)}var Fu=g.createContext({hashPriority:"low",cache:KT(),defaultCache:!0});function YT(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}var Zg=function(){function e(){Mn(this,e),ee(this,"cache",void 0),ee(this,"keys",void 0),ee(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Tn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var d=ae(c,2),f=d[1];return i.internalGet(u)[1]<f?[u,i.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),o=ae(a,1),s=o[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,i.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var a;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var o=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),o}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!YT(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();ee(Zg,"MAX_CACHE_SIZE",20);ee(Zg,"MAX_CACHE_OFFSET",5);var N0=0,fC=function(){function e(t){Mn(this,e),ee(this,"derivatives",void 0),ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=N0,t.length===0&&da(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),N0+=1}return Tn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),yf=new Zg;function Zh(e){var t=Array.isArray(e)?e:[e];return yf.has(t)||yf.set(t,new fC(t)),yf.get(t)}var XT=new WeakMap,xf={};function ZT(e,t){for(var n=XT,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(xf)||n.set(xf,e()),n.get(xf)}var k0=new WeakMap;function Rs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=k0.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof fC?n+=i.id:i&&ut(i)==="object"?n+=Rs(i,t):n+=i}),t&&(n=Bs(n)),k0.set(e,n)),n}function j0(e,t){return Bs("".concat(t,"_").concat(Rs(e,!0)))}var Qh=Hn();function ye(e){return typeof e=="number"?"".concat(e,"px"):e}function Wc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=te(te({},r),{},ee(ee({},ho,t),Dr,n)),o=Object.keys(a).map(function(s){var l=a[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Ec=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).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()},QT=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=ae(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},hC=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var s,l,c=ae(o,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])a[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var f,h=Ec(u,r==null?void 0:r.prefix);i[h]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),a[u]="var(".concat(h,")")}}),[a,QT(i,n,{scope:r==null?void 0:r.scope})]},L0=process.env.NODE_ENV!=="test"&&Hn()?g.useLayoutEffect:g.useEffect,Gt=function(t,n){var r=g.useRef(!0);L0(function(){return t(r.current)},n),L0(function(){return r.current=!1,function(){r.current=!0}},[])},Jh=function(t,n){Gt(function(r){if(!r)return t()},n)},JT=te({},g),D0=JT.useInsertionEffect,eR=function(t,n,r){g.useMemo(t,r),Gt(function(){return n(!0)},r)},tR=D0?function(e,t,n){return D0(function(){return e(),t()},n)}:eR,nR=te({},g),rR=nR.useInsertionEffect,iR=function(t){var n=[],r=!1;function i(a){if(r){process.env.NODE_ENV!=="production"&&da(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(a)}return g.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},aR=function(){return function(t){t()}},oR=typeof rR<"u"?iR:aR;function sR(){return!1}var ev=!1;function lR(){return ev}const cR=process.env.NODE_ENV==="production"?sR:lR;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Sf=window;if(typeof Sf.webpackHotUpdate=="function"){var uR=Sf.webpackHotUpdate;Sf.webpackHotUpdate=function(){return ev=!0,setTimeout(function(){ev=!1},0),uR.apply(void 0,arguments)}}}function Qg(e,t,n,r,i){var a=g.useContext(Fu),o=a.cache,s=[e].concat(Ge(t)),l=Xh(s),c=oR([l]),u=cR(),d=function(m){o.opUpdate(l,function(v){var y=v||[void 0,void 0],b=ae(y,2),x=b[0],C=x===void 0?0:x,S=b[1],w=S;process.env.NODE_ENV!=="production"&&S&&u&&(r==null||r(w,u),w=null);var O=w||n(),E=[C,O];return m?m(E):E})};g.useMemo(function(){d()},[l]);var f=o.opGet(l);process.env.NODE_ENV!=="production"&&!f&&(d(),f=o.opGet(l));var h=f[1];return tR(function(){i==null||i(h)},function(p){return d(function(m){var v=ae(m,2),y=v[0],b=v[1];return p&&y===0&&(i==null||i(h)),[y+1,b]}),function(){o.opUpdate(l,function(m){var v=m||[],y=ae(v,2),b=y[0],x=b===void 0?0:b,C=y[1],S=x-1;return S===0?(c(function(){(p||!o.opGet(l))&&(r==null||r(C,!1))}),null):[x-1,C]})}},[l]),h}var dR={},fR=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Zi=new Map;function hR(e){Zi.set(e,(Zi.get(e)||0)+1)}function vR(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ho,'="').concat(e,'"]'));n.forEach(function(r){if(r[Oi]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var gR=0;function mR(e,t){Zi.set(e,(Zi.get(e)||0)-1);var n=Array.from(Zi.keys()),r=n.filter(function(i){var a=Zi.get(i)||0;return a<=0});n.length-r.length>gR&&r.forEach(function(i){vR(i,t),Zi.delete(i)})}var pR=function(t,n,r,i){var a=r.getDerivativeToken(t),o=te(te({},a),n);return i&&(o=i(o)),o},vC="token";function bR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=$.useContext(Fu),i=r.cache.instanceId,a=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?dR:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,h=ZT(function(){return Object.assign.apply(Object,[{}].concat(Ge(t)))},t),p=Rs(h),m=Rs(c),v=f?Rs(f):"",y=Qg(vC,[s,e.id,p,m,v],function(){var b,x=d?d(h,c,e):pR(h,c,e,u),C=te({},x),S="";if(f){var w=hC(x,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),O=ae(w,2);x=O[0],S=O[1]}var E=j0(x,s);x._tokenKey=E,C._tokenKey=j0(C,s);var _=(b=f==null?void 0:f.key)!==null&&b!==void 0?b:E;x._themeKey=_,hR(_);var T="".concat(fR,"-").concat(Bs(E));return x._hashId=T,[x,T,C,S,(f==null?void 0:f.key)||""]},function(b){mR(b[0]._themeKey,i)},function(b){var x=ae(b,4),C=x[0],S=x[3];if(f&&S){var w=di(S,Bs("css-variables-".concat(C._themeKey)),{mark:Dr,prepend:"queue",attachTo:a,priority:-999});w[Oi]=i,w.setAttribute(ho,C._themeKey)}});return y}var yR=function(t,n,r){var i=ae(t,5),a=i[2],o=i[3],s=i[4],l=r||{},c=l.plain;if(!o)return null;var u=a._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},h=Wc(o,s,u,f,c);return[d,u,h]},xR={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},gC="comm",mC="rule",pC="decl",SR="@import",CR="@keyframes",wR="@layer",bC=Math.abs,Jg=String.fromCharCode;function yC(e){return e.trim()}function Oc(e,t,n){return e.replace(t,n)}function $R(e,t,n){return e.indexOf(t,n)}function Hs(e,t){return e.charCodeAt(t)|0}function vo(e,t,n){return e.slice(t,n)}function Gr(e){return e.length}function _R(e){return e.length}function Kl(e,t){return t.push(e),e}var zu=1,go=1,xC=0,$r=0,mn=0,Po="";function em(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:zu,column:go,length:o,return:"",siblings:s}}function ER(){return mn}function OR(){return mn=$r>0?Hs(Po,--$r):0,go--,mn===10&&(go=1,zu--),mn}function Fr(){return mn=$r<xC?Hs(Po,$r++):0,go++,mn===10&&(go=1,zu++),mn}function Mi(){return Hs(Po,$r)}function Mc(){return $r}function Bu(e,t){return vo(Po,e,t)}function Us(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 MR(e){return zu=go=1,xC=Gr(Po=e),$r=0,[]}function TR(e){return Po="",e}function Cf(e){return yC(Bu($r-1,tv(e===91?e+2:e===40?e+1:e)))}function RR(e){for(;(mn=Mi())&&mn<33;)Fr();return Us(e)>2||Us(mn)>3?"":" "}function PR(e,t){for(;--t&&Fr()&&!(mn<48||mn>102||mn>57&&mn<65||mn>70&&mn<97););return Bu(e,Mc()+(t<6&&Mi()==32&&Fr()==32))}function tv(e){for(;Fr();)switch(mn){case e:return $r;case 34:case 39:e!==34&&e!==39&&tv(mn);break;case 40:e===41&&tv(e);break;case 92:Fr();break}return $r}function IR(e,t){for(;Fr()&&e+mn!==57;)if(e+mn===84&&Mi()===47)break;return"/*"+Bu(t,$r-1)+"*"+Jg(e===47?e:Fr())}function AR(e){for(;!Us(Mi());)Fr();return Bu(e,$r)}function NR(e){return TR(Tc("",null,null,null,[""],e=MR(e),0,[0],e))}function Tc(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,d=o,f=0,h=0,p=0,m=1,v=1,y=1,b=0,x="",C=i,S=a,w=r,O=x;v;)switch(p=b,b=Fr()){case 40:if(p!=108&&Hs(O,d-1)==58){$R(O+=Oc(Cf(b),"&","&\f"),"&\f",bC(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:O+=Cf(b);break;case 9:case 10:case 13:case 32:O+=RR(p);break;case 92:O+=PR(Mc()-1,7);continue;case 47:switch(Mi()){case 42:case 47:Kl(kR(IR(Fr(),Mc()),t,n,l),l),(Us(p||1)==5||Us(Mi()||1)==5)&&Gr(O)&&vo(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*m:s[c++]=Gr(O)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(O=Oc(O,/\f/g,"")),h>0&&(Gr(O)-d||m===0&&p===47)&&Kl(h>32?z0(O+";",r,n,d-1,l):z0(Oc(O," ","")+";",r,n,d-2,l),l);break;case 59:O+=";";default:if(Kl(w=F0(O,t,n,c,u,i,s,x,C=[],S=[],d,a),a),b===123)if(u===0)Tc(O,t,w,w,C,a,d,s,S);else switch(f===99&&Hs(O,3)===110?100:f){case 100:case 108:case 109:case 115:Tc(e,w,w,r&&Kl(F0(e,w,w,0,0,i,s,x,i,C=[],d,S),S),i,S,d,s,r?C:S);break;default:Tc(O,w,w,w,[""],S,0,s,S)}}c=u=h=0,m=y=1,x=O="",d=o;break;case 58:d=1+Gr(O),h=p;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&OR()==125)continue}switch(O+=Jg(b),b*m){case 38:y=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(Gr(O)-1)*y,y=1;break;case 64:Mi()===45&&(O+=Cf(Fr())),f=Mi(),u=d=Gr(x=O+=AR(Mc())),b++;break;case 45:p===45&&Gr(O)==2&&(m=0)}}return a}function F0(e,t,n,r,i,a,o,s,l,c,u,d){for(var f=i-1,h=i===0?a:[""],p=_R(h),m=0,v=0,y=0;m<r;++m)for(var b=0,x=vo(e,f+1,f=bC(v=o[m])),C=e;b<p;++b)(C=yC(v>0?h[b]+" "+x:Oc(x,/&\f/g,h[b])))&&(l[y++]=C);return em(e,t,n,i===0?mC:s,l,c,u,d)}function kR(e,t,n,r){return em(e,t,n,gC,Jg(ER()),vo(e,2,-2),0,r)}function z0(e,t,n,r,i){return em(e,t,n,pC,vo(e,0,r),vo(e,r+1,-1),r,i)}function nv(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function jR(e,t,n,r){switch(e.type){case wR:if(e.children.length)break;case SR:case pC:return e.return=e.return||e.value;case gC:return"";case CR:return e.return=e.value+"{"+nv(e.children,r)+"}";case mC:if(!Gr(e.value=e.props.join(",")))return""}return Gr(n=nv(e.children,r))?e.return=e.value+"{"+n+"}":""}function SC(e,t){var n=t.path,r=t.parentSelectors;yt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var LR=function(t,n,r){if(t==="content"){var i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof n!="string"||a.indexOf(n)===-1&&!i.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&SC("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},DR=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&SC("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},B0="data-ant-cssinjs-cache-path",CC="_FILE_STYLE__",sa,wC=!0;function FR(){if(!sa&&(sa={},Hn())){var e=document.createElement("div");e.className=B0,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(/"$/,""),t.split(";").forEach(function(i){var a=i.split(":"),o=ae(a,2),s=o[0],l=o[1];sa[s]=l});var n=document.querySelector("style[".concat(B0,"]"));if(n){var r;wC=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function zR(e){return FR(),!!sa[e]}function BR(e){var t=sa[e],n=null;if(t&&Hn())if(wC)n=CC;else{var r=document.querySelector("style[".concat(Dr,'="').concat(sa[e],'"]'));r?n=r.innerHTML:delete sa[e]}return[n,t]}var $C="_skip_check_",_C="_multi_value_";function Rc(e){var t=nv(NR(e),jR);return t.replace(/\{%%%\:[^;];}/g,";")}function VR(e){return ut(e)==="object"&&e&&($C in e||_C in e)}function V0(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(o){var s,l=o.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(Ge(l.slice(1))).join(" ")});return a.join(",")}var WR=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d,h=n.linters,p=h===void 0?[]:h,m="",v={};function y(C){var S=C.getName(s);if(!v[S]){var w=e(C.style,n,{root:!1,parentSelectors:o}),O=ae(w,1),E=O[0];v[S]="@keyframes ".concat(C.getName(s)).concat(E)}}function b(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(w){Array.isArray(w)?b(w,S):w&&S.push(w)}),S}var x=b(Array.isArray(t)?t:[t]);return x.forEach(function(C){var S=typeof C=="string"&&!i?{}:C;if(typeof S=="string")m+="".concat(S,`
|
|
108
|
+
`);else if(S._keyframe)y(S);else{var w=f.reduce(function(O,E){var _;return(E==null||(_=E.visit)===null||_===void 0?void 0:_.call(E,O))||O},S);Object.keys(w).forEach(function(O){var E=w[O];if(ut(E)==="object"&&E&&(O!=="animationName"||!E._keyframe)&&!VR(E)){var _=!1,T=O.trim(),R=!1;(i||a)&&s?T.startsWith("@")?_=!0:T==="&"?T=V0("",s,u):T=V0(O,s,u):i&&!s&&(T==="&"||T==="")&&(T="",R=!0);var F=e(E,n,{root:R,injectHash:_,parentSelectors:[].concat(Ge(o),[T])}),I=ae(F,2),P=I[0],k=I[1];v=te(te({},v),k),m+="".concat(T).concat(P)}else{let N=function(j,D){process.env.NODE_ENV!=="production"&&(ut(E)!=="object"||!(E!=null&&E[$C]))&&[LR,DR].concat(Ge(p)).forEach(function(q){return q(j,D,{path:c,hashId:s,parentSelectors:o})});var V=j.replace(/[A-Z]/g,function(q){return"-".concat(q.toLowerCase())}),X=D;!xR[j]&&typeof X=="number"&&X!==0&&(X="".concat(X,"px")),j==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(y(D),X=D.getName(s)),m+="".concat(V,":").concat(X,";")};var A,M=(A=E==null?void 0:E.value)!==null&&A!==void 0?A:E;ut(E)==="object"&&E!==null&&E!==void 0&&E[_C]&&Array.isArray(M)?M.forEach(function(j){N(O,j)}):N(O,M)}})}}),i?l&&(m="@layer ".concat(l.name," {").concat(m,"}"),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(l.name,";")}).join(`
|
|
109
|
+
`))):m="{".concat(m,"}"),[m,v]};function EC(e,t){return Bs("".concat(e.join("%")).concat(t))}function HR(){return null}var OC="style";function rv(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=g.useContext(Fu),d=u.autoClear,f=u.mock,h=u.defaultCache,p=u.hashPriority,m=u.container,v=u.ssrInline,y=u.transformers,b=u.linters,x=u.cache,C=u.layer,S=n._tokenKey,w=[S];C&&w.push("layer"),w.push.apply(w,Ge(r));var O=Qh;process.env.NODE_ENV!=="production"&&f!==void 0&&(O=f==="client");var E=Qg(OC,w,function(){var I=w.join("|");if(zR(I)){var P=BR(I),k=ae(P,2),A=k[0],M=k[1];if(A)return[A,S,M,{},s,c]}var N=t(),j=WR(N,{hashId:i,hashPriority:p,layer:C?a:void 0,path:r.join("-"),transformers:y,linters:b}),D=ae(j,2),V=D[0],X=D[1],q=Rc(V),Z=EC(w,q);return[q,S,Z,X,s,c]},function(I,P){var k=ae(I,3),A=k[2];(P||d)&&Qh&&Vs(A,{mark:Dr})},function(I){var P=ae(I,4),k=P[0];P[1];var A=P[2],M=P[3];if(O&&k!==CC){var N={mark:Dr,prepend:C?!1:"queue",attachTo:m,priority:c},j=typeof o=="function"?o():o;j&&(N.csp={nonce:j});var D=[],V=[];Object.keys(M).forEach(function(q){q.startsWith("@layer")?D.push(q):V.push(q)}),D.forEach(function(q){di(Rc(M[q]),"_layer-".concat(q),te(te({},N),{},{prepend:!0}))});var X=di(k,A,N);X[Oi]=x.instanceId,X.setAttribute(ho,S),process.env.NODE_ENV!=="production"&&X.setAttribute(qT,w.join("|")),V.forEach(function(q){di(Rc(M[q]),"_effect-".concat(q),N)})}}),_=ae(E,3),T=_[0],R=_[1],F=_[2];return function(I){var P;return!v||O||!h?P=g.createElement(HR,null):P=g.createElement("style",Ye({},ee(ee({},ho,R),Dr,F),{dangerouslySetInnerHTML:{__html:T}})),g.createElement(g.Fragment,null,P,I)}}var UR=function(t,n,r){var i=ae(t,6),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=r||{},f=d.plain;if(c)return null;var h=a,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=Wc(a,o,s,p,f),l&&Object.keys(l).forEach(function(m){if(!n[m]){n[m]=!0;var v=Rc(l[m]),y=Wc(v,o,"_effect-".concat(m),p,f);m.startsWith("@layer")?h=y+h:h+=y}}),[u,s,h]},MC="cssVar",GR=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=$.useContext(Fu),d=u.cache.instanceId,f=u.container,h=s._tokenKey,p=[].concat(Ge(t.path),[r,c,h]),m=Qg(MC,p,function(){var v=n(),y=hC(v,r,{prefix:i,unitless:a,ignore:o,scope:c}),b=ae(y,2),x=b[0],C=b[1],S=EC(p,C);return[x,C,S,r]},function(v){var y=ae(v,3),b=y[2];Qh&&Vs(b,{mark:Dr})},function(v){var y=ae(v,3),b=y[1],x=y[2];if(b){var C=di(b,x,{mark:Dr,prepend:"queue",attachTo:f,priority:-999});C[Oi]=d,C.setAttribute(ho,r)}});return m},qR=function(t,n,r){var i=ae(t,4),a=i[1],o=i[2],s=i[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=Wc(a,s,o,d,c);return[u,o,f]};ee(ee(ee({},OC,UR),vC,yR),MC,qR);var Kt=function(){function e(t,n){Mn(this,e),ee(this,"name",void 0),ee(this,"style",void 0),ee(this,"_keyframe",!0),this.name=t,this.style=n}return Tn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function ka(e){return e.notSplit=!0,e}ka(["borderTop","borderBottom"]),ka(["borderTop"]),ka(["borderBottom"]),ka(["borderLeft","borderRight"]),ka(["borderLeft"]),ka(["borderRight"]);var tm=$.createContext({});function TC(e){return sC(e)||rC(e)||Yg(e)||lC()}function Kr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function RC(e,t,n,r){if(!t.length)return n;var i=TC(t),a=i[0],o=i.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Ge(e):s=te({},e),r&&n===void 0&&o.length===1?delete s[a][o[0]]:s[a]=RC(s[a],o,n,r),s}function Ar(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Kr(e,t.slice(0,-1))?e:RC(e,t,n,r)}function KR(e){return ut(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function W0(e){return Array.isArray(e)?[]:{}}var YR=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ja(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=W0(t[0]);return t.forEach(function(i){function a(o,s){var l=new Set(s),c=Kr(i,o),u=Array.isArray(c);if(u||KR(c)){if(!l.has(c)){l.add(c);var d=Kr(r,o);u?r=Ar(r,o,[]):(!d||ut(d)!=="object")&&(r=Ar(r,o,W0(c))),YR(c).forEach(function(f){a([].concat(Ge(o),[f]),l)})}}else r=Ar(r,o,c)}a([])}),r}function PC(){}let oi=null;function XR(){oi=null,GS()}let Io=PC;process.env.NODE_ENV!=="production"&&(Io=(e,t,n)=>{yt(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&XR()});const IC=g.createContext({}),dn=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=g.useContext(IC),n=(r,i,a)=>{if(!r)if(t===!1&&i==="deprecated"){const o=oi;oi||(oi={}),oi[e]=oi[e]||[],oi[e].includes(a||"")||oi[e].push(a||""),o||console.warn("[antd] There exists deprecated usage in your code:",oi)}else process.env.NODE_ENV!=="production"&&Io(r,e,a)};return n.deprecated=(r,i,a,o)=>{n(r,"deprecated",`\`${i}\` is deprecated. Please use \`${a}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=PC,e},ZR=$.createContext(void 0);var QR={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"},JR={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},e3=te(te({},JR),{},{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 AC={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},H0={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"]},e3),timePickerLocale:Object.assign({},AC)},rr="${label} is not a valid ${type}",mo={locale:"en",Pagination:QR,DatePicker:H0,TimePicker:AC,Calendar:H0,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:rr,method:rr,array:rr,object:rr,number:rr,date:rr,boolean:rr,integer:rr,float:rr,regexp:rr,email:rr,url:rr,hex:rr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},mo.Modal);let Pc=[];const U0=()=>Pc.reduce((e,t)=>Object.assign(Object.assign({},e),t),mo.Modal);function t3(e){if(e){const t=Object.assign({},e);return Pc.push(t),U0(),()=>{Pc=Pc.filter(n=>n!==t),U0()}}Object.assign({},mo.Modal)}const nm=$.createContext(void 0),NC=(e,t)=>{const n=g.useContext(nm),r=g.useMemo(()=>{var a;const o=mo[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),i=g.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?mo.locale:a},[n]);return[r,i]},kC="internalMark",jC=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const a=dn("LocaleProvider");process.env.NODE_ENV!=="production"&&a(r===kC,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}g.useEffect(()=>t3(t==null?void 0:t.Modal),[t]);const i=g.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return g.createElement(nm.Provider,{value:i},n)};process.env.NODE_ENV!=="production"&&(jC.displayName="LocaleProvider");function jn(e,t){n3(e)&&(e="100%");var n=r3(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Yl(e){return Math.min(1,Math.max(0,e))}function n3(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function r3(e){return typeof e=="string"&&e.indexOf("%")!==-1}function LC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Xl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ji(e){return e.length===1?"0"+e:String(e)}function i3(e,t,n){return{r:jn(e,255)*255,g:jn(t,255)*255,b:jn(n,255)*255}}function G0(e,t,n){e=jn(e,255),t=jn(t,255),n=jn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s:o,l:s}}function wf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function a3(e,t,n){var r,i,a;if(e=jn(e,360),t=jn(t,100),n=jn(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=wf(s,o,e+1/3),i=wf(s,o,e),a=wf(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function iv(e,t,n){e=jn(e,255),t=jn(t,255),n=jn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6}return{h:a,s:l,v:o}}function o3(e,t,n){e=jn(e,360)*6,t=jn(t,100),n=jn(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,o,a,a,s,n][l],u=[s,n,n,o,a,a][l],d=[a,a,s,n,n,o][l];return{r:c*255,g:u*255,b:d*255}}function av(e,t,n,r){var i=[Ji(Math.round(e).toString(16)),Ji(Math.round(t).toString(16)),Ji(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function s3(e,t,n,r,i){var a=[Ji(Math.round(e).toString(16)),Ji(Math.round(t).toString(16)),Ji(Math.round(n).toString(16)),Ji(l3(r))];return i&&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("")}function l3(e){return Math.round(parseFloat(e)*255).toString(16)}function q0(e){return ar(e)/255}function ar(e){return parseInt(e,16)}function c3(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ov={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 Za(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=f3(e)),typeof e=="object"&&(ii(e.r)&&ii(e.g)&&ii(e.b)?(t=i3(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ii(e.h)&&ii(e.s)&&ii(e.v)?(r=Xl(e.s),i=Xl(e.v),t=o3(e.h,r,i),o=!0,s="hsv"):ii(e.h)&&ii(e.s)&&ii(e.l)&&(r=Xl(e.s),a=Xl(e.l),t=a3(e.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=LC(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var u3="[-\\+]?\\d+%?",d3="[-\\+]?\\d*\\.\\d+%?",Ti="(?:".concat(d3,")|(?:").concat(u3,")"),$f="[\\s|\\(]+(".concat(Ti,")[,|\\s]+(").concat(Ti,")[,|\\s]+(").concat(Ti,")\\s*\\)?"),_f="[\\s|\\(]+(".concat(Ti,")[,|\\s]+(").concat(Ti,")[,|\\s]+(").concat(Ti,")[,|\\s]+(").concat(Ti,")\\s*\\)?"),Ir={CSS_UNIT:new RegExp(Ti),rgb:new RegExp("rgb"+$f),rgba:new RegExp("rgba"+_f),hsl:new RegExp("hsl"+$f),hsla:new RegExp("hsla"+_f),hsv:new RegExp("hsv"+$f),hsva:new RegExp("hsva"+_f),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 f3(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ov[e])e=ov[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ir.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ir.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ir.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ir.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ir.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ir.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ir.hex8.exec(e),n?{r:ar(n[1]),g:ar(n[2]),b:ar(n[3]),a:q0(n[4]),format:t?"name":"hex8"}:(n=Ir.hex6.exec(e),n?{r:ar(n[1]),g:ar(n[2]),b:ar(n[3]),format:t?"name":"hex"}:(n=Ir.hex4.exec(e),n?{r:ar(n[1]+n[1]),g:ar(n[2]+n[2]),b:ar(n[3]+n[3]),a:q0(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ir.hex3.exec(e),n?{r:ar(n[1]+n[1]),g:ar(n[2]+n[2]),b:ar(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ii(e){return!!Ir.CSS_UNIT.exec(String(e))}var kn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=c3(t)),this.originalInput=t;var i=Za(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=LC(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=iv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=iv(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=G0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=G0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),av(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),s3(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},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 t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(jn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(jn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+av(this.r,this.g,this.b,!1),n=0,r=Object.entries(ov);n<r.length;n++){var i=r[n],a=i[0],o=i[1];if(t===o)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,i=this.a<1&&this.a>=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},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){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Yl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Yl(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Yl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Yl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o<t;o++)i.push(new e({h:(r+o*a)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Zl=2,K0=.16,h3=.05,v3=.05,g3=.15,DC=5,FC=4,m3=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Y0(e){var t=e.r,n=e.g,r=e.b,i=iv(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function Ql(e){var t=e.r,n=e.g,r=e.b;return"#".concat(av(t,n,r,!1))}function p3(e,t,n){var r=n/100,i={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return i}function X0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Zl*t:Math.round(e.h)+Zl*t:r=n?Math.round(e.h)+Zl*t:Math.round(e.h)-Zl*t,r<0?r+=360:r>=360&&(r-=360),r}function Z0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-K0*t:t===FC?r=e.s+K0:r=e.s+h3*t,r>1&&(r=1),n&&t===DC&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Q0(e,t,n){var r;return n?r=e.v+v3*t:r=e.v-g3*t,r>1&&(r=1),Number(r.toFixed(2))}function Gs(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Za(e),i=DC;i>0;i-=1){var a=Y0(r),o=Ql(Za({h:X0(a,i,!0),s:Z0(a,i,!0),v:Q0(a,i,!0)}));n.push(o)}n.push(Ql(r));for(var s=1;s<=FC;s+=1){var l=Y0(r),c=Ql(Za({h:X0(l,s),s:Z0(l,s),v:Q0(l,s)}));n.push(c)}return t.theme==="dark"?m3.map(function(u){var d=u.index,f=u.opacity,h=Ql(p3(Za(t.backgroundColor||"#141414"),Za(n[d]),f*100));return h}):n}var Ef={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"},sv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];sv.primary=sv[5];var lv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];lv.primary=lv[5];var cv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];cv.primary=cv[5];var Hc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Hc.primary=Hc[5];var uv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];uv.primary=uv[5];var dv=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];dv.primary=dv[5];var fv=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];fv.primary=fv[5];var hv=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];hv.primary=hv[5];var Uc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Uc.primary=Uc[5];var vv=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];vv.primary=vv[5];var gv=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];gv.primary=gv[5];var mv=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];mv.primary=mv[5];var pv=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];pv.primary=pv[5];var Of={red:sv,volcano:lv,orange:cv,gold:Hc,yellow:uv,lime:dv,green:fv,cyan:hv,blue:Uc,geekblue:vv,purple:gv,magenta:mv,grey:pv};const zC={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"},qs=Object.assign(Object.assign({},zC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
110
110
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
111
|
-
'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
|
|
111
|
+
'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 b3(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(i),h=n(a),p=n(o),m=n(s),v=r(c,u),y=e.colorLink||e.colorInfo,b=n(y);return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new kn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const y3=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function x3(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},y3(r))}const S3=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Ic(e){return(e+8)/e}function C3(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Ic(n)}))}const w3=e=>{const t=C3(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,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*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function $3(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const ai=(e,t)=>new kn(e).setAlpha(t).toRgbString(),ts=(e,t)=>new kn(e).darken(t).toHexString(),_3=e=>{const t=Gs(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]}},E3=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ai(r,.88),colorTextSecondary:ai(r,.65),colorTextTertiary:ai(r,.45),colorTextQuaternary:ai(r,.25),colorFill:ai(r,.15),colorFillSecondary:ai(r,.06),colorFillTertiary:ai(r,.04),colorFillQuaternary:ai(r,.02),colorBgLayout:ts(n,4),colorBgContainer:ts(n,0),colorBgElevated:ts(n,0),colorBgSpotlight:ai(r,.85),colorBgBlur:"transparent",colorBorder:ts(n,15),colorBorderSecondary:ts(n,6)}};function O3(e){Ef.pink=Ef.magenta,Of.pink=Of.magenta;const t=Object.keys(zC).map(n=>{const r=e[n]===Ef[n]?Of[n]:Gs(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i[`${n}${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),b3(e,{generateColorPalettes:_3,generateNeutralColorPalettes:E3})),w3(e.fontSize)),$3(e)),S3(e)),x3(e))}const BC=Zh(O3),bv={token:qs,override:{override:qs},hashed:!0},VC=$.createContext(bv),Gc="ant",WC="anticon",M3=["outlined","borderless","filled"],T3=(e,t)=>t||(e?`${Gc}-${e}`:Gc),Tt=g.createContext({getPrefixCls:T3,iconPrefixCls:WC}),R3=`-ant-${Date.now()}-${Math.random()}`;function P3(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new kn(o),c=Gs(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new kn(t.primaryColor),s=Gs(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setAlpha(c.getAlpha()*.12));const l=new kn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
|
112
112
|
:root {
|
|
113
|
-
${Object.keys(
|
|
113
|
+
${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(`
|
|
114
114
|
`)}
|
|
115
115
|
}
|
|
116
|
-
`.trim()}function Tp(e,t){const r=_p(e,t);Xt()?Lr(r,`${Pp}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Wn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ln=c.createContext(!1),Np=e=>{let{children:t,disabled:r}=e;const n=c.useContext(ln);return c.createElement(ln.Provider,{value:r??n},t)},kn=c.createContext(void 0),Ip=e=>{let{children:t,size:r}=e;const n=c.useContext(kn);return c.createElement(kn.Provider,{value:r||n},t)};function Mp(){const e=P.useContext(ln),t=P.useContext(kn);return{componentDisabled:e,componentSize:t}}var Id=Dt(function e(){Lt(this,e)}),Md="CALC_UNIT",jp=new RegExp(Md,"g");function bi(e){return typeof e=="number"?"".concat(e).concat(Md):e}var Ap=function(e){Zr(r,e);var t=Qr(r);function r(n,a){var o;Lt(this,r),o=t.call(this),L(Ge(o),"result",""),L(Ge(o),"unitlessCssVar",void 0),L(Ge(o),"lowPriority",void 0);var i=Ie(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=bi(n):i==="string"&&(o.result=n),o}return Dt(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(bi(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(bi(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(l=!1),this.result=this.result.replace(jp,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Id),Fp=function(e){Zr(r,e);var t=Qr(r);function r(n){var a;return Lt(this,r),a=t.call(this),L(Ge(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Dt(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(Id),Lp=function(t,r){var n=t==="css"?Ap:Fp;return function(a){return new n(a,r)}},uc=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ht(e){var t=c.useRef();t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function $a(e){var t=c.useRef(!1),r=c.useState(e),n=U(r,2),a=n[0],o=n[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||o(s)}return[a,i]}function yi(e){return e!==void 0}function Zt(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=$a(function(){return yi(a)?a:yi(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=U(s,2),u=l[0],d=l[1],f=a!==void 0?a:u,v=i?i(f):f,b=Ht(o),h=$a([f]),p=U(h,2),g=p[0],C=p[1];Qi(function(){var y=g[0];u!==y&&b(u,y)},[g]),Qi(function(){yi(a)||d(a)},[a]);var m=Ht(function(y,x){d(y,x),C([f],x)});return[v,m]}function dc(e,t,r,n){var a=D({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var l=U(s,2),u=l[0],d=l[1];if(process.env.NODE_ENV!=="production"&&st(!(a!=null&&a[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),a!=null&&a[u]||a!=null&&a[d]){var f;(f=a[d])!==null&&f!==void 0||(a[d]=a==null?void 0:a[u])}})}var i=D(D({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var jd=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",bs=!0;function jt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!jd)return Object.assign.apply(Object,[{}].concat(t));bs=!1;var n={};return t.forEach(function(a){if(Ie(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),bs=!0,n}var fc={};function Dp(){}var zp=function(t){var r,n=t,a=Dp;return jd&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){return bs&&r.add(s),i[s]}}),a=function(i,s){var l;fc[i]={global:Array.from(r),component:D(D({},(l=fc[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function vc(e,t,r){if(typeof r=="function"){var n;return r(jt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function kp(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(o){return Q(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(o){return Q(o)}).join(","),")")}}}var Vp=1e3*60*10,Bp=function(){function e(){Lt(this,e),L(this,"map",new Map),L(this,"objectIDMap",new WeakMap),L(this,"nextID",0),L(this,"lastAccessBeat",new Map),L(this,"accessBeat",0)}return Dt(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(o){return o&&Ie(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Ie(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,o){n-a>Vp&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),gc=new Bp;function Hp(e,t){return P.useMemo(function(){var r=gc.get(t);if(r)return r;var n=e();return gc.set(t,n),n},t)}var Wp=function(){return{}};function Gp(e){var t=e.useCSP,r=t===void 0?Wp:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,b,h,p){var g=Array.isArray(v)?v[0]:v;function C(w){return"".concat(String(g)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var m=(p==null?void 0:p.unitless)||{},y=typeof s=="function"?s(v):{},x=D(D({},y),{},L({},C("zIndexPopup"),!0));Object.keys(m).forEach(function(w){x[C(w)]=m[w]});var S=D(D({},p),{},{unitless:x,prefixToken:C}),E=d(v,b,h,S),R=u(g,h,S);return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,T=E(w,$),M=U(T,2),F=M[1],A=R($),_=U(A,2),k=_[0],N=_[1];return[k,F,N]}}function u(v,b,h){var p=h.unitless,g=h.injectStyle,C=g===void 0?!0:g,m=h.prefixToken,y=h.ignore,x=function(R){var w=R.rootCls,$=R.cssVar,T=$===void 0?{}:$,M=n(),F=M.realToken;return Bm({path:[v],prefix:T.prefix,key:T.key,unitless:p,ignore:y,token:F,scope:w},function(){var A=vc(v,F,b),_=dc(v,F,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(k){_[m(k)]=_[k],delete _[k]}),_}),null},S=function(R){var w=n(),$=w.cssVar;return[function(T){return C&&$?P.createElement(P.Fragment,null,P.createElement(x,{rootCls:R,cssVar:$,component:v}),T):T},$==null?void 0:$.key]};return S}function d(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(v)?v:[v,v],C=U(g,1),m=C[0],y=g.join("-");return function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,E=n(),R=E.theme,w=E.realToken,$=E.hashId,T=E.token,M=E.cssVar,F=a(),A=F.rootPrefixCls,_=F.iconPrefixCls,k=r(),N=M?"css":"js",O=Hp(function(){var W=new Set;return M&&Object.keys(p.unitless||{}).forEach(function(q){W.add(go(q,M.prefix)),W.add(go(q,uc(m,M.prefix)))}),Lp(N,W)},[N,m,M==null?void 0:M.prefix]),j=kp(N),z=j.max,V=j.min,H={theme:R,token:T,hashId:$,nonce:function(){return k.nonce},clientOnly:p.clientOnly,layer:{name:"antd"},order:p.order||-999};rs(D(D({},H),{},{clientOnly:!1,path:["Shared",A]}),function(){return typeof o=="function"?o(T):[]});var K=rs(D(D({},H),{},{path:[y,x,_]}),function(){if(p.injectStyle===!1)return[];var W=zp(T),q=W.token,Y=W.flush,J=vc(m,w,h),ee=".".concat(x),te=dc(m,w,J,{deprecatedTokens:p.deprecatedTokens});M&&Ie(J)==="object"&&Object.keys(J).forEach(function(ge){J[ge]="var(".concat(go(ge,uc(m,M.prefix)),")")});var oe=jt(q,{componentCls:ee,prefixCls:x,iconCls:".".concat(_),antCls:".".concat(A),calc:O,max:z,min:V},M?J:te),ve=b(oe,{hashId:$,prefixCls:x,rootPrefixCls:A,iconPrefixCls:_});Y(m,te);var fe=typeof i=="function"?i(oe,x,S,p.resetFont):null;return[p.resetStyle===!1?null:fe,ve]});return[K,$]}}function f(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(v,b,h,D({resetStyle:!1,order:-998},p)),C=function(y){var x=y.prefixCls,S=y.rootCls,E=S===void 0?x:S;return g(x,E),null};return process.env.NODE_ENV!=="production"&&(C.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),C}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const To=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Up="5.20.3";function Ci(e){return e>=0&&e<=255}function eo(e,t){const{r,g:n,b:a,a:o}=new tr(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new tr(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-i*(1-u))/u),f=Math.round((n-s*(1-u))/u),v=Math.round((a-l*(1-u))/u);if(Ci(d)&&Ci(f)&&Ci(v))return new tr({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new tr({r,g:n,b:a,a:1}).toRgbString()}var Kp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Ad(e){const{override:t}=e,r=Kp(e,["override"]),n=Object.assign({},t);Object.keys(wa).forEach(v=>{delete n[v]});const a=Object.assign(Object.assign({},r),n),o=480,i=576,s=768,l=992,u=1200,d=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:eo(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:eo(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:eo(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:eo(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
116
|
+
`.trim()}function I3(e,t){const n=P3(e,t);Hn()?di(n,`${R3}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Io(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Ai=g.createContext(!1),A3=e=>{let{children:t,disabled:n}=e;const r=g.useContext(Ai);return g.createElement(Ai.Provider,{value:n??r},t)},po=g.createContext(void 0),N3=e=>{let{children:t,size:n}=e;const r=g.useContext(po);return g.createElement(po.Provider,{value:n||r},t)};function k3(){const e=$.useContext(Ai),t=$.useContext(po);return{componentDisabled:e,componentSize:t}}var HC=Tn(function e(){Mn(this,e)}),UC="CALC_UNIT",j3=new RegExp(UC,"g");function Mf(e){return typeof e=="number"?"".concat(e).concat(UC):e}var L3=function(e){zi(n,e);var t=Bi(n);function n(r,i){var a;Mn(this,n),a=t.call(this),ee(Et(a),"result",""),ee(Et(a),"unitlessCssVar",void 0),ee(Et(a),"lowPriority",void 0);var o=ut(r);return a.unitlessCssVar=i,r instanceof n?a.result="(".concat(r.result,")"):o==="number"?a.result=Mf(r):o==="string"&&(a.result=r),a}return Tn(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Mf(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Mf(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,o=i||{},s=o.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(j3,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(HC),D3=function(e){zi(n,e);var t=Bi(n);function n(r){var i;return Mn(this,n),i=t.call(this),ee(Et(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Tn(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(HC),F3=function(t,n){var r=t==="css"?L3:D3;return function(i){return new r(i,n)}},J0=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function $n(e){var t=g.useRef();t.current=e;var n=g.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Ks(e){var t=g.useRef(!1),n=g.useState(e),r=ae(n,2),i=r[0],a=r[1];g.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,l){l&&t.current||a(s)}return[i,o]}function Tf(e){return e!==void 0}function _n(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,o=n.postState,s=Ks(function(){return Tf(i)?i:Tf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=ae(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,f=o?o(d):d,h=$n(a),p=Ks([d]),m=ae(p,2),v=m[0],y=m[1];Jh(function(){var x=v[0];c!==x&&h(c,x)},[v]),Jh(function(){Tf(i)||u(i)},[i]);var b=$n(function(x,C){u(x,C),y([d],C)});return[f,b]}function eb(e,t,n,r){var i=te({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var l=ae(s,2),c=l[0],u=l[1];if(process.env.NODE_ENV!=="production"&&yt(!(i!=null&&i[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),i!=null&&i[c]||i!=null&&i[u]){var d;(d=i[u])!==null&&d!==void 0||(i[u]=i==null?void 0:i[c])}})}var o=te(te({},n),i);return Object.keys(o).forEach(function(s){o[s]===t[s]&&delete o[s]}),o}var GC=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",yv=!0;function nn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!GC)return Object.assign.apply(Object,[{}].concat(t));yv=!1;var r={};return t.forEach(function(i){if(ut(i)==="object"){var a=Object.keys(i);a.forEach(function(o){Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:function(){return i[o]}})})}}),yv=!0,r}var tb={};function z3(){}var B3=function(t){var n,r=t,i=z3;return GC&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(o,s){return yv&&n.add(s),o[s]}}),i=function(o,s){var l;tb[o]={global:Array.from(n),component:te(te({},(l=tb[o])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:i}};function nb(e,t,n){if(typeof n=="function"){var r;return n(nn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function V3(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(a){return ye(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(a){return ye(a)}).join(","),")")}}}var W3=1e3*60*10,H3=function(){function e(){Mn(this,e),ee(this,"map",new Map),ee(this,"objectIDMap",new WeakMap),ee(this,"nextID",0),ee(this,"lastAccessBeat",new Map),ee(this,"accessBeat",0)}return Tn(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(a){return a&&ut(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(ut(a),"_").concat(a)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>W3&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),rb=new H3;function U3(e,t){return $.useMemo(function(){var n=rb.get(t);if(n)return n;var r=e();return rb.set(t,r),r},t)}var G3=function(){return{}};function q3(e){var t=e.useCSP,n=t===void 0?G3:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(f,h,p,m){var v=Array.isArray(f)?f[0]:f;function y(E){return"".concat(String(v)).concat(E.slice(0,1).toUpperCase()).concat(E.slice(1))}var b=(m==null?void 0:m.unitless)||{},x=typeof s=="function"?s(f):{},C=te(te({},x),{},ee({},y("zIndexPopup"),!0));Object.keys(b).forEach(function(E){C[y(E)]=b[E]});var S=te(te({},m),{},{unitless:C,prefixToken:y}),w=u(f,h,p,S),O=c(v,p,S);return function(E){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,T=w(E,_),R=ae(T,2),F=R[1],I=O(_),P=ae(I,2),k=P[0],A=P[1];return[k,F,A]}}function c(f,h,p){var m=p.unitless,v=p.injectStyle,y=v===void 0?!0:v,b=p.prefixToken,x=p.ignore,C=function(O){var E=O.rootCls,_=O.cssVar,T=_===void 0?{}:_,R=r(),F=R.realToken;return GR({path:[f],prefix:T.prefix,key:T.key,unitless:m,ignore:x,token:F,scope:E},function(){var I=nb(f,F,h),P=eb(f,F,I,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(I).forEach(function(k){P[b(k)]=P[k],delete P[k]}),P}),null},S=function(O){var E=r(),_=E.cssVar;return[function(T){return y&&_?$.createElement($.Fragment,null,$.createElement(C,{rootCls:O,cssVar:_,component:f}),T):T},_==null?void 0:_.key]};return S}function u(f,h,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(f)?f:[f,f],y=ae(v,1),b=y[0],x=v.join("-");return function(C){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,w=r(),O=w.theme,E=w.realToken,_=w.hashId,T=w.token,R=w.cssVar,F=i(),I=F.rootPrefixCls,P=F.iconPrefixCls,k=n(),A=R?"css":"js",M=U3(function(){var q=new Set;return R&&Object.keys(m.unitless||{}).forEach(function(Z){q.add(Ec(Z,R.prefix)),q.add(Ec(Z,J0(b,R.prefix)))}),F3(A,q)},[A,b,R==null?void 0:R.prefix]),N=V3(A),j=N.max,D=N.min,V={theme:O,token:T,hashId:_,nonce:function(){return k.nonce},clientOnly:m.clientOnly,layer:{name:"antd"},order:m.order||-999};rv(te(te({},V),{},{clientOnly:!1,path:["Shared",I]}),function(){return typeof a=="function"?a(T):[]});var X=rv(te(te({},V),{},{path:[x,C,P]}),function(){if(m.injectStyle===!1)return[];var q=B3(T),Z=q.token,J=q.flush,Q=nb(b,E,p),K=".".concat(C),Y=eb(b,E,Q,{deprecatedTokens:m.deprecatedTokens});R&&ut(Q)==="object"&&Object.keys(Q).forEach(function(z){Q[z]="var(".concat(Ec(z,J0(b,R.prefix)),")")});var W=nn(Z,{componentCls:K,prefixCls:C,iconCls:".".concat(P),antCls:".".concat(I),calc:M,max:j,min:D},R?Q:Y),H=h(W,{hashId:_,prefixCls:C,rootPrefixCls:I,iconPrefixCls:P});J(b,Y);var U=typeof o=="function"?o(W,C,S,m.resetFont):null;return[m.resetStyle===!1?null:U,H]});return[X,_]}}function d(f,h,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(f,h,p,te({resetStyle:!1,order:-998},m)),y=function(x){var C=x.prefixCls,S=x.rootCls,w=S===void 0?C:S;return v(C,w),null};return process.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(f)?f.join("."):f))),y}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const qc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],K3="5.20.3";function Rf(e){return e>=0&&e<=255}function Jl(e,t){const{r:n,g:r,b:i,a}=new kn(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new kn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((i-l*(1-c))/c);if(Rf(u)&&Rf(d)&&Rf(f))return new kn({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new kn({r:n,g:r,b:i,a:1}).toRgbString()}var Y3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function qC(e){const{override:t}=e,n=Y3(e,["override"]),r=Object.assign({},t);Object.keys(qs).forEach(f=>{delete r[f]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const f="0s";i.motionDurationFast=f,i.motionDurationMid=f,i.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Jl(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Jl(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Jl(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Jl(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
117
117
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
118
118
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
119
119
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -125,10 +125,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
125
125
|
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
126
126
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
127
127
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
128
|
-
`,screenXS:
|
|
129
|
-
0 1px 2px -2px ${new
|
|
130
|
-
0 3px 6px 0 ${new
|
|
131
|
-
0 5px 12px 4px ${new
|
|
128
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
129
|
+
0 1px 2px -2px ${new kn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
130
|
+
0 3px 6px 0 ${new kn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
131
|
+
0 5px 12px 4px ${new kn("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
132
132
|
`,boxShadowDrawerRight:`
|
|
133
133
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
134
134
|
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
@@ -145,7 +145,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
145
145
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
146
146
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
147
147
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
148
|
-
`,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)"}),n)}var mc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Fd={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},qp={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},Xp={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},Ld=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=mc(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=Ad(i),o&&Object.entries(o).forEach(s=>{let[l,u]=s;const{theme:d}=u,f=mc(u,["theme"]);let v=f;d&&(v=Ld(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Vr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=P.useContext(Td),o=`${Up}-${t||""}`,i=r||_d,[s,l,u]=gm(i,[wa,e],{salt:o,override:n,getComputedToken:Ld,formatToken:Ad,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Fd,ignore:qp,preserve:Xp}});return[i,u,t?l:"",s,a]}const Dd=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ll={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!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}},Yp=()=>({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"}}),Ia=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Zp=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"}}}),Qp=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},cl=e=>({outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ul=e=>({"&:focus-visible":Object.assign({},cl(e))}),zd=(e,t)=>{const[r,n]=Vr();return rs({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},Yp()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:lr,genComponentStyleHook:Jp,genSubStyleComponent:eh}=Gp({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=P.useContext(nt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Vr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=P.useContext(nt);return zd(t,e),e??{}},getResetStyles:e=>[{"&":Zp(e)}],getCommonStyle:Qp,getCompUnitless:()=>Fd});function th(e,t){return To.reduce((r,n)=>{const a=e[`${n}1`],o=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const rh=Object.assign({},c),{useId:pc}=rh,nh=()=>"",ah=typeof pc>"u"?nh:pc;function oh(e,t,r){var n,a;const o=Nt("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},hs),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:hs.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=ah();if(process.env.NODE_ENV!=="production"){const u=i.cssVar||s.cssVar,d=!!(typeof i.cssVar=="object"&&(!((a=i.cssVar)===null||a===void 0)&&a.key)||l);process.env.NODE_ENV!=="production"&&o(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return zo(()=>{var u,d;if(!e)return t;const f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const v=`css-var-${l.replace(/:/g,"")}`,b=((u=i.cssVar)!==null&&u!==void 0?u:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((d=i.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},s),i),{token:Object.assign(Object.assign({},s.token),i.token),components:f,cssVar:b})},[i,s],(u,d)=>u.some((f,v)=>{const b=d[v];return!Ca(f,b,!0)}))}var ih=["children"],kd=c.createContext({});function sh(e){var t=e.children,r=Je(e,ih);return c.createElement(kd.Provider,{value:r},t)}var lh=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function ch(e){var t=c.useReducer(function(s){return s+1},0),r=U(t,2),n=r[1],a=c.useRef(e),o=Ht(function(){return a.current}),i=Ht(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var Kr="none",to="appear",ro="enter",no="leave",hc="none",gr="prepare",_n="start",Tn="active",dl="end",Vd="prepared";function bc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function uh(e,t){var r={animationend:bc("Animation","AnimationEnd"),transitionend:bc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var dh=uh(Xt(),typeof window<"u"?window:{}),Bd={};if(Xt()){var fh=document.createElement("div");Bd=fh.style}var ao={};function Hd(e){if(ao[e])return ao[e];var t=dh[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var o=r[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Bd)return ao[e]=t[o],ao[e]}return""}var Wd=Hd("animationend"),Gd=Hd("transitionend"),Ud=!!(Wd&&Gd),yc=Wd||"animationend",Cc=Gd||"transitionend";function Sc(e,t){if(!e)return null;if(Ie(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const vh=function(e){var t=P.useRef();function r(a){a&&(a.removeEventListener(Cc,e),a.removeEventListener(yc,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(Cc,e),a.addEventListener(yc,e),t.current=a)}return c.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Kd=Xt()?P.useLayoutEffect:P.useEffect;const gh=function(){var e=c.useRef(null);function t(){Tt.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Tt(function(){a<=1?n({isCanceled:function(){return o!==e.current}}):r(n,a-1)});e.current=o}return c.useEffect(function(){return function(){t()}},[]),[r,t]};var mh=[gr,_n,Tn,dl],ph=[gr,Vd],qd=!1,hh=!0;function Xd(e){return e===Tn||e===dl}const bh=function(e,t,r){var n=$a(hc),a=U(n,2),o=a[0],i=a[1],s=gh(),l=U(s,2),u=l[0],d=l[1];function f(){i(gr,!0)}var v=t?ph:mh;return Kd(function(){if(o!==hc&&o!==dl){var b=v.indexOf(o),h=v[b+1],p=r(o);p===qd?i(h,!0):h&&u(function(g){function C(){g.isCanceled()||i(h,!0)}p===!0?C():Promise.resolve(p).then(C)})}},[e,o]),c.useEffect(function(){return function(){d()}},[]),[f,o]};function yh(e,t,r,n){var a=n.motionEnter,o=a===void 0?!0:a,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,u=l===void 0?!0:l,d=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,b=n.onEnterPrepare,h=n.onLeavePrepare,p=n.onAppearStart,g=n.onEnterStart,C=n.onLeaveStart,m=n.onAppearActive,y=n.onEnterActive,x=n.onLeaveActive,S=n.onAppearEnd,E=n.onEnterEnd,R=n.onLeaveEnd,w=n.onVisibleChanged,$=$a(),T=U($,2),M=T[0],F=T[1],A=ch(Kr),_=U(A,2),k=_[0],N=_[1],O=$a(null),j=U(O,2),z=j[0],V=j[1],H=k(),K=P.useRef(!1),W=P.useRef(null);function q(){return r()}var Y=P.useRef(!1);function J(){N(Kr),V(null,!0)}var ee=Ht(function(me){var $e=k();if($e!==Kr){var je=q();if(!(me&&!me.deadline&&me.target!==je)){var ie=Y.current,ne;$e===to&&ie?ne=S==null?void 0:S(je,me):$e===ro&&ie?ne=E==null?void 0:E(je,me):$e===no&&ie&&(ne=R==null?void 0:R(je,me)),ie&&ne!==!1&&J()}}}),te=vh(ee),oe=U(te,1),ve=oe[0],fe=function($e){switch($e){case to:return L(L(L({},gr,v),_n,p),Tn,m);case ro:return L(L(L({},gr,b),_n,g),Tn,y);case no:return L(L(L({},gr,h),_n,C),Tn,x);default:return{}}},ge=c.useMemo(function(){return fe(H)},[H]),Oe=bh(H,!e,function(me){if(me===gr){var $e=ge[gr];return $e?$e(q()):qd}if(le in ge){var je;V(((je=ge[le])===null||je===void 0?void 0:je.call(ge,q(),null))||null)}return le===Tn&&H!==Kr&&(ve(q()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){ee({deadline:!0})},d))),le===Vd&&J(),hh}),B=U(Oe,2),ue=B[0],le=B[1],Ee=Xd(le);Y.current=Ee,Kd(function(){F(t);var me=K.current;K.current=!0;var $e;!me&&t&&s&&($e=to),me&&t&&o&&($e=ro),(me&&!t&&u||!me&&f&&!t&&u)&&($e=no);var je=fe($e);$e&&(e||je[gr])?(N($e),ue()):N(Kr)},[t]),P.useEffect(function(){(H===to&&!s||H===ro&&!o||H===no&&!u)&&N(Kr)},[s,o,u]),P.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var he=c.useRef(!1);P.useEffect(function(){M&&(he.current=!0),M!==void 0&&H===Kr&&((he.current||M)&&(w==null||w(M)),he.current=!0)},[M,H]);var ae=z;return ge[gr]&&le===_n&&(ae=D({transition:"none"},ae)),[H,le,ae,M??t]}function Ch(e){var t=e;Ie(e)==="object"&&(t=e.transitionSupport);function r(a,o){return!!(a.motionName&&t&&o!==!1)}var n=c.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,l=a.removeOnLeave,u=l===void 0?!0:l,d=a.forceRender,f=a.children,v=a.motionName,b=a.leavedClassName,h=a.eventProps,p=c.useContext(kd),g=p.motion,C=r(a,g),m=P.useRef(),y=P.useRef();function x(){try{return m.current instanceof HTMLElement?m.current:vo(y.current)}catch{return null}}var S=yh(C,s,x,a),E=U(S,4),R=E[0],w=E[1],$=E[2],T=E[3],M=c.useRef(T);T&&(M.current=!0);var F=c.useCallback(function(z){m.current=z,Qs(o,z)},[o]),A,_=D(D({},h),{},{visible:s});if(!f)A=null;else if(R===Kr)T?A=f(D({},_),F):!u&&M.current&&b?A=f(D(D({},_),{},{className:b}),F):d||!u&&!b?A=f(D(D({},_),{},{style:{display:"none"}}),F):A=null;else{var k;w===gr?k="prepare":Xd(w)?k="active":w===_n&&(k="start");var N=Sc(v,"".concat(R,"-").concat(k));A=f(D(D({},_),{},{className:Z(Sc(v,R),L(L({},N,N&&k),v,typeof v=="string")),style:$}),F)}if(c.isValidElement(A)&&cn(A)){var O=A,j=O.ref;j||(A=c.cloneElement(A,{ref:F}))}return c.createElement(lh,{ref:y},A)});return n.displayName="CSSMotion",n}const un=Ch(Ud);var ys="add",Cs="keep",Ss="remove",Si="removed";function Sh(e){var t;return e&&Ie(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function xs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Sh)}function xh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,o=xs(e),i=xs(t);o.forEach(function(u){for(var d=!1,f=n;f<a;f+=1){var v=i[f];if(v.key===u.key){n<f&&(r=r.concat(i.slice(n,f).map(function(b){return D(D({},b),{},{status:ys})})),n=f),r.push(D(D({},v),{},{status:Cs})),n+=1,d=!0;break}}d||r.push(D(D({},u),{},{status:Ss}))}),n<a&&(r=r.concat(i.slice(n).map(function(u){return D(D({},u),{},{status:ys})})));var s={};r.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(u){return s[u]>1});return l.forEach(function(u){r=r.filter(function(d){var f=d.key,v=d.status;return f!==u||v!==Ss}),r.forEach(function(d){d.key===u&&(d.status=Cs)})}),r}var Eh=["component","children","onVisibleChanged","onAllRemoved"],wh=["status"],$h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Oh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:un,r=function(n){Zr(o,n);var a=Qr(o);function o(){var i;Lt(this,o);for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return i=a.call.apply(a,[this].concat(l)),L(Ge(i),"state",{keyEntities:[]}),L(Ge(i),"removeKey",function(d){var f=i.state.keyEntities,v=f.map(function(b){return b.key!==d?b:D(D({},b),{},{status:Si})});return i.setState({keyEntities:v}),v.filter(function(b){var h=b.status;return h!==Si}).length}),i}return Dt(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,u=this.props,d=u.component,f=u.children,v=u.onVisibleChanged,b=u.onAllRemoved,h=Je(u,Eh),p=d||c.Fragment,g={};return $h.forEach(function(C){g[C]=h[C],delete h[C]}),delete h.keys,c.createElement(p,h,l.map(function(C,m){var y=C.status,x=Je(C,wh),S=y===ys||y===Cs;return c.createElement(t,xe({},g,{key:x.key,visible:S,eventProps:x,onVisibleChanged:function(R){if(v==null||v(R,{key:x.key}),!R){var w=s.removeKey(x.key);w===0&&b&&b()}}}),function(E,R){return f(D(D({},E),{},{index:m}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=xs(u),v=xh(d,f);return{keyEntities:v.filter(function(b){var h=d.find(function(p){var g=p.key;return b.key===g});return!(h&&h.status===Si&&b.status===Ss)})}}}]),o}(c.Component);return L(r,"defaultProps",{component:"div"}),r}Oh(Ud);function Rh(e){const{children:t}=e,[,r]=Vr(),{motion:n}=r,a=c.useRef(!1);return a.current=a.current||n===!1,a.current?c.createElement(sh,{motion:n},t):t}const Yd=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Nt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(Yd.displayName="PropWarning");const Ph=process.env.NODE_ENV!=="production"?Yd:()=>null;var _h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};let Es=!1;process.env.NODE_ENV;const Th=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Zd;function Nh(){return Zd||_o}function Ih(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Mh=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Zd=t),n&&Ih(n)&&(process.env.NODE_ENV!=="production"&&Wn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Tp(Nh(),n))},jh=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:o,form:i,locale:s,componentSize:l,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:b,popupOverflow:h,legacyLocale:p,parentContext:g,iconPrefixCls:C,theme:m,componentDisabled:y,segmented:x,statistic:S,spin:E,calendar:R,carousel:w,cascader:$,collapse:T,typography:M,checkbox:F,descriptions:A,divider:_,drawer:k,skeleton:N,steps:O,image:j,layout:z,list:V,mentions:H,modal:K,progress:W,result:q,slider:Y,breadcrumb:J,menu:ee,pagination:te,input:oe,textArea:ve,empty:fe,badge:ge,radio:Oe,rate:B,switch:ue,transfer:le,avatar:Ee,message:he,tag:ae,table:me,card:$e,tabs:je,timeline:ie,timePicker:ne,upload:pe,notification:be,tree:at,colorPicker:Xe,datePicker:Ae,rangePicker:Ke,flex:Ye,wave:et,dropdown:Le,warning:Ne,tour:lt,floatButtonGroup:Ze,variant:De,inputNumber:de,treeSelect:we}=e,qe=c.useCallback((He,We)=>{const{prefixCls:ct}=e;if(We)return We;const yt=ct||g.getPrefixCls("");return He?`${yt}-${He}`:yt},[g.getPrefixCls,e.prefixCls]),ot=C||g.iconPrefixCls||Nd,Ct=r||g.csp;zd(ot,Ct);const ft=oh(m,g.theme,{prefixCls:qe("")});process.env.NODE_ENV!=="production"&&(Es=Es||!!ft);const Be={csp:Ct,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:h,getPrefixCls:qe,iconPrefixCls:ot,theme:ft,segmented:x,statistic:S,spin:E,calendar:R,carousel:w,cascader:$,collapse:T,typography:M,checkbox:F,descriptions:A,divider:_,drawer:k,skeleton:N,steps:O,image:j,input:oe,textArea:ve,layout:z,list:V,mentions:H,modal:K,progress:W,result:q,slider:Y,breadcrumb:J,menu:ee,pagination:te,empty:fe,badge:ge,radio:Oe,rate:B,switch:ue,transfer:le,avatar:Ee,message:he,tag:ae,table:me,card:$e,tabs:je,timeline:ie,timePicker:ne,upload:pe,notification:be,tree:at,colorPicker:Xe,datePicker:Ae,rangePicker:Ke,flex:Ye,wave:et,dropdown:Le,warning:Ne,tour:lt,floatButtonGroup:Ze,variant:De,inputNumber:de,treeSelect:we};process.env.NODE_ENV!=="production"&&Nt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ve=Object.assign({},g);Object.keys(Be).forEach(He=>{Be[He]!==void 0&&(Ve[He]=Be[He])}),Th.forEach(He=>{const We=e[He];We&&(Ve[He]=We)}),typeof n<"u"&&(Ve.button=Object.assign({autoInsertSpace:n},Ve.button));const ze=zo(()=>Ve,Ve,(He,We)=>{const ct=Object.keys(He),yt=Object.keys(We);return ct.length!==yt.length||ct.some(Pt=>He[Pt]!==We[Pt])}),Pe=c.useMemo(()=>({prefixCls:ot,csp:Ct}),[ot,Ct]);let ye=c.createElement(c.Fragment,null,c.createElement(Ph,{dropdownMatchSelectWidth:v}),t);const Ue=c.useMemo(()=>{var He,We,ct,yt;return Pn(((He=zn.Form)===null||He===void 0?void 0:He.defaultValidateMessages)||{},((ct=(We=ze.locale)===null||We===void 0?void 0:We.Form)===null||ct===void 0?void 0:ct.defaultValidateMessages)||{},((yt=ze.form)===null||yt===void 0?void 0:yt.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ze,i==null?void 0:i.validateMessages]);Object.keys(Ue).length>0&&(ye=c.createElement(qm.Provider,{value:Ue},ye)),s&&(ye=c.createElement(wd,{locale:s,_ANT_MARK__:Ed},ye)),(ot||Ct)&&(ye=c.createElement(il.Provider,{value:Pe},ye)),l&&(ye=c.createElement(Ip,{size:l},ye)),ye=c.createElement(Rh,null,ye);const bt=c.useMemo(()=>{const He=ft||{},{algorithm:We,token:ct,components:yt,cssVar:Pt}=He,kt=_h(He,["algorithm","token","components","cssVar"]),Wt=We&&(!Array.isArray(We)||We.length>0)?Yi(We):_d,I={};Object.entries(yt||{}).forEach(X=>{let[se,_e]=X;const Re=Object.assign({},_e);"algorithm"in Re&&(Re.algorithm===!0?Re.theme=Wt:(Array.isArray(Re.algorithm)||typeof Re.algorithm=="function")&&(Re.theme=Yi(Re.algorithm)),delete Re.algorithm),I[se]=Re});const G=Object.assign(Object.assign({},wa),ct);return Object.assign(Object.assign({},kt),{theme:Wt,token:G,components:I,override:Object.assign({override:G},I),cssVar:Pt})},[ft]);return m&&(ye=c.createElement(Td.Provider,{value:bt},ye)),ze.warning&&(ye=c.createElement(Sd.Provider,{value:ze.warning},ye)),y!==void 0&&(ye=c.createElement(Np,{disabled:y},ye)),c.createElement(nt.Provider,{value:ze},ye)},dn=e=>{const t=c.useContext(nt),r=c.useContext(sl);return c.createElement(jh,Object.assign({parentContext:t,legacyLocale:r},e))};dn.ConfigContext=nt;dn.SizeContext=kn;dn.config=Mh;dn.useConfig=Mp;Object.defineProperty(dn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Wn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),kn)});process.env.NODE_ENV!=="production"&&(dn.displayName="ConfigProvider");function Qd(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ah(e){return Qd(e)instanceof ShadowRoot}function No(e){return Ah(e)?Qd(e):null}function Fh(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Lh(e,t){st(e,"[@ant-design/icons] ".concat(t))}function xc(e){return Ie(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ie(e.icon)==="object"||typeof e.icon=="function")}function Ec(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Fh(r)]=n}return t},{})}function ws(e,t,r){return r?P.createElement(e.tag,D(D({key:t},Ec(e.attrs)),r),(e.children||[]).map(function(n,a){return ws(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):P.createElement(e.tag,D({key:t},Ec(e.attrs)),(e.children||[]).map(function(n,a){return ws(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Jd(e){return Ea(e)[0]}function ef(e){return e?Array.isArray(e)?e:[e]:[]}var Dh=`
|
|
148
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ib=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const KC={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},X3={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},Z3={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},YC=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,a=ib(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=qC(o),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=ib(c,["theme"]);let f=d;u&&(f=YC(Object.assign(Object.assign({},o),d),{override:d},u)),o[l]=f}),o};function Or(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=$.useContext(VC),a=`${K3}-${t||""}`,o=n||BC,[s,l,c]=bR(o,[qs,e],{salt:a,override:r,getComputedToken:YC,formatToken:qC,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:KC,ignore:X3,preserve:Z3}});return[o,c,t?l:"",s,i]}const XC=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),bo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},_r=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!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}},rm=()=>({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"}}),xl=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Q3=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"}}}),J3=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},im=e=>({outline:`${ye(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),am=e=>({"&:focus-visible":Object.assign({},im(e))}),ZC=(e,t)=>{const[n,r]=Or();return rv({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},rm()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:er,genComponentStyleHook:e5,genSubStyleComponent:t5}=q3({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=$.useContext(Tt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Or();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=$.useContext(Tt);return ZC(t,e),e??{}},getResetStyles:e=>[{"&":Q3(e)}],getCommonStyle:J3,getCompUnitless:()=>KC});function n5(e,t){return qc.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const r5=Object.assign({},g),{useId:ab}=r5,i5=()=>"",a5=typeof ab>"u"?i5:ab;function o5(e,t,n){var r,i;const a=dn("ConfigProvider"),o=e||{},s=o.inherit===!1||!t?Object.assign(Object.assign({},bv),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:bv.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=a5();if(process.env.NODE_ENV!=="production"){const c=o.cssVar||s.cssVar,u=!!(typeof o.cssVar=="object"&&(!((i=o.cssVar)===null||i===void 0)&&i.key)||l);process.env.NODE_ENV!=="production"&&a(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return yl(()=>{var c,u;if(!e)return t;const d=Object.assign({},s.components);Object.keys(e.components||{}).forEach(p=>{d[p]=Object.assign(Object.assign({},d[p]),e.components[p])});const f=`css-var-${l.replace(/:/g,"")}`,h=((c=o.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((u=o.cssVar)===null||u===void 0?void 0:u.key)||f});return Object.assign(Object.assign(Object.assign({},s),o),{token:Object.assign(Object.assign({},s.token),o.token),components:d,cssVar:h})},[o,s],(c,u)=>c.some((d,f)=>{const h=u[f];return!Ws(d,h,!0)}))}var s5=["children"],QC=g.createContext({});function l5(e){var t=e.children,n=wt(e,s5);return g.createElement(QC.Provider,{value:n},t)}var c5=function(e){zi(n,e);var t=Bi(n);function n(){return Mn(this,n),t.apply(this,arguments)}return Tn(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component);function u5(e){var t=g.useReducer(function(s){return s+1},0),n=ae(t,2),r=n[1],i=g.useRef(e),a=$n(function(){return i.current}),o=$n(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[a,o]}var _i="none",ec="appear",tc="enter",nc="leave",ob="none",Nr="prepare",eo="start",to="active",om="end",JC="prepared";function sb(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}function d5(e,t){var n={animationend:sb("Animation","AnimationEnd"),transitionend:sb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var f5=d5(Hn(),typeof window<"u"?window:{}),e2={};if(Hn()){var h5=document.createElement("div");e2=h5.style}var rc={};function t2(e){if(rc[e])return rc[e];var t=f5[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in e2)return rc[e]=t[a],rc[e]}return""}var n2=t2("animationend"),r2=t2("transitionend"),i2=!!(n2&&r2),lb=n2||"animationend",cb=r2||"transitionend";function ub(e,t){if(!e)return null;if(ut(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const v5=function(e){var t=$.useRef();function n(i){i&&(i.removeEventListener(cb,e),i.removeEventListener(lb,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(cb,e),i.addEventListener(lb,e),t.current=i)}return g.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var a2=Hn()?$.useLayoutEffect:$.useEffect;const g5=function(){var e=g.useRef(null);function t(){qt.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=qt(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return g.useEffect(function(){return function(){t()}},[]),[n,t]};var m5=[Nr,eo,to,om],p5=[Nr,JC],o2=!1,b5=!0;function s2(e){return e===to||e===om}const y5=function(e,t,n){var r=Ks(ob),i=ae(r,2),a=i[0],o=i[1],s=g5(),l=ae(s,2),c=l[0],u=l[1];function d(){o(Nr,!0)}var f=t?p5:m5;return a2(function(){if(a!==ob&&a!==om){var h=f.indexOf(a),p=f[h+1],m=n(a);m===o2?o(p,!0):p&&c(function(v){function y(){v.isCanceled()||o(p,!0)}m===!0?y():Promise.resolve(m).then(y)})}},[e,a]),g.useEffect(function(){return function(){u()}},[]),[d,a]};function x5(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,h=r.onEnterPrepare,p=r.onLeavePrepare,m=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,x=r.onEnterActive,C=r.onLeaveActive,S=r.onAppearEnd,w=r.onEnterEnd,O=r.onLeaveEnd,E=r.onVisibleChanged,_=Ks(),T=ae(_,2),R=T[0],F=T[1],I=u5(_i),P=ae(I,2),k=P[0],A=P[1],M=Ks(null),N=ae(M,2),j=N[0],D=N[1],V=k(),X=$.useRef(!1),q=$.useRef(null);function Z(){return n()}var J=$.useRef(!1);function Q(){A(_i),D(null,!0)}var K=$n(function(be){var Ce=k();if(Ce!==_i){var ge=Z();if(!(be&&!be.deadline&&be.target!==ge)){var fe=J.current,se;Ce===ec&&fe?se=S==null?void 0:S(ge,be):Ce===tc&&fe?se=w==null?void 0:w(ge,be):Ce===nc&&fe&&(se=O==null?void 0:O(ge,be)),fe&&se!==!1&&Q()}}}),Y=v5(K),W=ae(Y,1),H=W[0],U=function(Ce){switch(Ce){case ec:return ee(ee(ee({},Nr,f),eo,m),to,b);case tc:return ee(ee(ee({},Nr,h),eo,v),to,x);case nc:return ee(ee(ee({},Nr,p),eo,y),to,C);default:return{}}},z=g.useMemo(function(){return U(V)},[V]),ne=y5(V,!e,function(be){if(be===Nr){var Ce=z[Nr];return Ce?Ce(Z()):o2}if(ie in z){var ge;D(((ge=z[ie])===null||ge===void 0?void 0:ge.call(z,Z(),null))||null)}return ie===to&&V!==_i&&(H(Z()),u>0&&(clearTimeout(q.current),q.current=setTimeout(function(){K({deadline:!0})},u))),ie===JC&&Q(),b5}),B=ae(ne,2),re=B[0],ie=B[1],ue=s2(ie);J.current=ue,a2(function(){F(t);var be=X.current;X.current=!0;var Ce;!be&&t&&s&&(Ce=ec),be&&t&&a&&(Ce=tc),(be&&!t&&c||!be&&d&&!t&&c)&&(Ce=nc);var ge=U(Ce);Ce&&(e||ge[Nr])?(A(Ce),re()):A(_i)},[t]),$.useEffect(function(){(V===ec&&!s||V===tc&&!a||V===nc&&!c)&&A(_i)},[s,a,c]),$.useEffect(function(){return function(){X.current=!1,clearTimeout(q.current)}},[]);var me=g.useRef(!1);$.useEffect(function(){R&&(me.current=!0),R!==void 0&&V===_i&&((me.current||R)&&(E==null||E(R)),me.current=!0)},[R,V]);var ve=j;return z[Nr]&&ie===eo&&(ve=te({transition:"none"},ve)),[V,ie,ve,R??t]}function S5(e){var t=e;ut(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=g.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,f=i.motionName,h=i.leavedClassName,p=i.eventProps,m=g.useContext(QC),v=m.motion,y=n(i,v),b=$.useRef(),x=$.useRef();function C(){try{return b.current instanceof HTMLElement?b.current:Ts(x.current)}catch{return null}}var S=x5(y,s,C,i),w=ae(S,4),O=w[0],E=w[1],_=w[2],T=w[3],R=g.useRef(T);T&&(R.current=!0);var F=g.useCallback(function(j){b.current=j,qg(a,j)},[a]),I,P=te(te({},p),{},{visible:s});if(!d)I=null;else if(O===_i)T?I=d(te({},P),F):!c&&R.current&&h?I=d(te(te({},P),{},{className:h}),F):u||!c&&!h?I=d(te(te({},P),{},{style:{display:"none"}}),F):I=null;else{var k;E===Nr?k="prepare":s2(E)?k="active":E===eo&&(k="start");var A=ub(f,"".concat(O,"-").concat(k));I=d(te(te({},P),{},{className:pe(ub(f,O),ee(ee({},A,A&&k),f,typeof f=="string")),style:_}),F)}if(g.isValidElement(I)&&ya(I)){var M=I,N=M.ref;N||(I=g.cloneElement(I,{ref:F}))}return g.createElement(c5,{ref:x},I)});return r.displayName="CSSMotion",r}const xa=S5(i2);var xv="add",Sv="keep",Cv="remove",Pf="removed";function C5(e){var t;return e&&ut(e)==="object"&&"key"in e?t=e:t={key:e},te(te({},t),{},{key:String(t.key)})}function wv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(C5)}function w5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=wv(e),o=wv(t);a.forEach(function(c){for(var u=!1,d=r;d<i;d+=1){var f=o[d];if(f.key===c.key){r<d&&(n=n.concat(o.slice(r,d).map(function(h){return te(te({},h),{},{status:xv})})),r=d),n.push(te(te({},f),{},{status:Sv})),r+=1,u=!0;break}}u||n.push(te(te({},c),{},{status:Cv}))}),r<i&&(n=n.concat(o.slice(r).map(function(c){return te(te({},c),{},{status:xv})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==Cv}),n.forEach(function(u){u.key===c&&(u.status=Sv)})}),n}var $5=["component","children","onVisibleChanged","onAllRemoved"],_5=["status"],E5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function O5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xa,n=function(r){zi(a,r);var i=Bi(a);function a(){var o;Mn(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=i.call.apply(i,[this].concat(l)),ee(Et(o),"state",{keyEntities:[]}),ee(Et(o),"removeKey",function(u){var d=o.state.keyEntities,f=d.map(function(h){return h.key!==u?h:te(te({},h),{},{status:Pf})});return o.setState({keyEntities:f}),f.filter(function(h){var p=h.status;return p!==Pf}).length}),o}return Tn(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged,h=c.onAllRemoved,p=wt(c,$5),m=u||g.Fragment,v={};return E5.forEach(function(y){v[y]=p[y],delete p[y]}),delete p.keys,g.createElement(m,p,l.map(function(y,b){var x=y.status,C=wt(y,_5),S=x===xv||x===Sv;return g.createElement(t,Ye({},v,{key:C.key,visible:S,eventProps:C,onVisibleChanged:function(O){if(f==null||f(O,{key:C.key}),!O){var E=s.removeKey(C.key);E===0&&h&&h()}}}),function(w,O){return d(te(te({},w),{},{index:b}),O)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=wv(c),f=w5(u,d);return{keyEntities:f.filter(function(h){var p=u.find(function(m){var v=m.key;return h.key===v});return!(p&&p.status===Pf&&h.status===Cv)})}}}]),a}(g.Component);return ee(n,"defaultProps",{component:"div"}),n}O5(i2);function M5(e){const{children:t}=e,[,n]=Or(),{motion:r}=n,i=g.useRef(!1);return i.current=i.current||r===!1,i.current?g.createElement(l5,{motion:r},t):t}const l2=g.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return dn("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(l2.displayName="PropWarning");const T5=process.env.NODE_ENV!=="production"?l2:()=>null;var R5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let $v=!1;process.env.NODE_ENV;const P5=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let c2;function I5(){return c2||Gc}function A5(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const N5=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(c2=t),r&&A5(r)&&(process.env.NODE_ENV!=="production"&&Io(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),I3(I5(),r))},k5=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:h,popupOverflow:p,legacyLocale:m,parentContext:v,iconPrefixCls:y,theme:b,componentDisabled:x,segmented:C,statistic:S,spin:w,calendar:O,carousel:E,cascader:_,collapse:T,typography:R,checkbox:F,descriptions:I,divider:P,drawer:k,skeleton:A,steps:M,image:N,layout:j,list:D,mentions:V,modal:X,progress:q,result:Z,slider:J,breadcrumb:Q,menu:K,pagination:Y,input:W,textArea:H,empty:U,badge:z,radio:ne,rate:B,switch:re,transfer:ie,avatar:ue,message:me,tag:ve,table:be,card:Ce,tabs:ge,timeline:fe,timePicker:se,upload:xe,notification:ce,tree:Ne,colorPicker:Me,datePicker:Ie,rangePicker:je,flex:He,wave:Xe,dropdown:ke,warning:Oe,tour:nt,floatButtonGroup:We,variant:Be,inputNumber:Se,treeSelect:Fe}=e,ot=g.useCallback((Ee,he)=>{const{prefixCls:we}=e;if(he)return he;const Le=we||v.getPrefixCls("");return Ee?`${Le}-${Ee}`:Le},[v.getPrefixCls,e.prefixCls]),ct=y||v.iconPrefixCls||WC,De=n||v.csp;ZC(ct,De);const qe=o5(b,v.theme,{prefixCls:ot("")});process.env.NODE_ENV!=="production"&&($v=$v||!!qe);const Qe={csp:De,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:s||m,direction:c,space:u,virtual:d,popupMatchSelectWidth:h??f,popupOverflow:p,getPrefixCls:ot,iconPrefixCls:ct,theme:qe,segmented:C,statistic:S,spin:w,calendar:O,carousel:E,cascader:_,collapse:T,typography:R,checkbox:F,descriptions:I,divider:P,drawer:k,skeleton:A,steps:M,image:N,input:W,textArea:H,layout:j,list:D,mentions:V,modal:X,progress:q,result:Z,slider:J,breadcrumb:Q,menu:K,pagination:Y,empty:U,badge:z,radio:ne,rate:B,switch:re,transfer:ie,avatar:ue,message:me,tag:ve,table:be,card:Ce,tabs:ge,timeline:fe,timePicker:se,upload:xe,notification:ce,tree:Ne,colorPicker:Me,datePicker:Ie,rangePicker:je,flex:He,wave:Xe,dropdown:ke,warning:Oe,tour:nt,floatButtonGroup:We,variant:Be,inputNumber:Se,treeSelect:Fe};process.env.NODE_ENV!=="production"&&dn("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Je=Object.assign({},v);Object.keys(Qe).forEach(Ee=>{Qe[Ee]!==void 0&&(Je[Ee]=Qe[Ee])}),P5.forEach(Ee=>{const he=e[Ee];he&&(Je[Ee]=he)}),typeof r<"u"&&(Je.button=Object.assign({autoInsertSpace:r},Je.button));const rt=yl(()=>Je,Je,(Ee,he)=>{const we=Object.keys(Ee),Le=Object.keys(he);return we.length!==Le.length||we.some(tt=>Ee[tt]!==he[tt])}),Ve=g.useMemo(()=>({prefixCls:ct,csp:De}),[ct,De]);let Te=g.createElement(g.Fragment,null,g.createElement(T5,{dropdownMatchSelectWidth:f}),t);const st=g.useMemo(()=>{var Ee,he,we,Le;return Ja(((Ee=mo.Form)===null||Ee===void 0?void 0:Ee.defaultValidateMessages)||{},((we=(he=rt.locale)===null||he===void 0?void 0:he.Form)===null||we===void 0?void 0:we.defaultValidateMessages)||{},((Le=rt.form)===null||Le===void 0?void 0:Le.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[rt,o==null?void 0:o.validateMessages]);Object.keys(st).length>0&&(Te=g.createElement(ZR.Provider,{value:st},Te)),s&&(Te=g.createElement(jC,{locale:s,_ANT_MARK__:kC},Te)),(ct||De)&&(Te=g.createElement(tm.Provider,{value:Ve},Te)),l&&(Te=g.createElement(N3,{size:l},Te)),Te=g.createElement(M5,null,Te);const mt=g.useMemo(()=>{const Ee=qe||{},{algorithm:he,token:we,components:Le,cssVar:tt}=Ee,Ue=R5(Ee,["algorithm","token","components","cssVar"]),at=he&&(!Array.isArray(he)||he.length>0)?Zh(he):BC,G={};Object.entries(Le||{}).forEach(le=>{let[_e,Ke]=le;const et=Object.assign({},Ke);"algorithm"in et&&(et.algorithm===!0?et.theme=at:(Array.isArray(et.algorithm)||typeof et.algorithm=="function")&&(et.theme=Zh(et.algorithm)),delete et.algorithm),G[_e]=et});const oe=Object.assign(Object.assign({},qs),we);return Object.assign(Object.assign({},Ue),{theme:at,token:oe,components:G,override:Object.assign({override:oe},G),cssVar:tt})},[qe]);return b&&(Te=g.createElement(VC.Provider,{value:mt},Te)),rt.warning&&(Te=g.createElement(IC.Provider,{value:rt.warning},Te)),x!==void 0&&(Te=g.createElement(A3,{disabled:x},Te)),g.createElement(Tt.Provider,{value:rt},Te)},Vi=e=>{const t=g.useContext(Tt),n=g.useContext(nm);return g.createElement(k5,Object.assign({parentContext:t,legacyLocale:n},e))};Vi.ConfigContext=Tt;Vi.SizeContext=po;Vi.config=N5;Vi.useConfig=k3;Object.defineProperty(Vi,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Io(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),po)});process.env.NODE_ENV!=="production"&&(Vi.displayName="ConfigProvider");function u2(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function j5(e){return u2(e)instanceof ShadowRoot}function Kc(e){return j5(e)?u2(e):null}function L5(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function D5(e,t){yt(e,"[@ant-design/icons] ".concat(t))}function db(e){return ut(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ut(e.icon)==="object"||typeof e.icon=="function")}function fb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[L5(n)]=r}return t},{})}function _v(e,t,n){return n?$.createElement(e.tag,te(te({key:t},fb(e.attrs)),n),(e.children||[]).map(function(r,i){return _v(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):$.createElement(e.tag,te({key:t},fb(e.attrs)),(e.children||[]).map(function(r,i){return _v(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function d2(e){return Gs(e)[0]}function f2(e){return e?Array.isArray(e)?e:[e]:[]}var F5=`
|
|
149
149
|
.anticon {
|
|
150
150
|
display: inline-flex;
|
|
151
151
|
align-items: center;
|
|
@@ -200,7 +200,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
200
200
|
transform: rotate(360deg);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
203
|
+
`,z5=function(t){var n=$.useContext(tm),r=n.csp,i=n.prefixCls,a=F5;i&&(a=a.replace(/anticon/g,i)),$.useEffect(function(){var o=t.current,s=Kc(o);di(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},B5=["icon","className","onClick","style","primaryColor","secondaryColor"],Ps={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function V5(e){var t=e.primaryColor,n=e.secondaryColor;Ps.primaryColor=t,Ps.secondaryColor=n||d2(t),Ps.calculated=!!n}function W5(){return te({},Ps)}var Ao=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,s=t.secondaryColor,l=wt(t,B5),c=g.useRef(),u=Ps;if(o&&(u={primaryColor:o,secondaryColor:s||d2(o)}),z5(c),D5(db(n),"icon should be icon definiton, but got ".concat(n)),!db(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=te(te({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),_v(d.icon,"svg-".concat(d.name),te(te({className:r,onClick:i,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Ao.displayName="IconReact";Ao.getTwoToneColors=W5;Ao.setTwoToneColors=V5;function h2(e){var t=f2(e),n=ae(t,2),r=n[0],i=n[1];return Ao.setTwoToneColors({primaryColor:r,secondaryColor:i})}function H5(){var e=Ao.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var U5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];h2(Uc.primary);var Rn=g.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=wt(e,U5),u=g.useContext(tm),d=u.prefixCls,f=d===void 0?"anticon":d,h=u.rootClassName,p=pe(h,f,ee(ee({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||r.name==="loading"),n),m=o;m===void 0&&s&&(m=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=f2(l),b=ae(y,2),x=b[0],C=b[1];return g.createElement("span",Ye({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:s,className:p}),g.createElement(Ao,{icon:r,primaryColor:x,secondaryColor:C,style:v}))});Rn.displayName="AntdIcon";Rn.getTwoToneColor=H5;Rn.setTwoToneColor=h2;var G5={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"},q5=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:G5}))},sm=g.forwardRef(q5);process.env.NODE_ENV!=="production"&&(sm.displayName="CloseCircleFilled");var K5={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"},Y5=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:K5}))},lm=g.forwardRef(Y5);process.env.NODE_ENV!=="production"&&(lm.displayName="CloseOutlined");var X5=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
204
204
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
205
205
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
206
206
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
@@ -211,70 +211,98 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
211
211
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
212
212
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
213
213
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
214
|
-
summary tabIndex target title type useMap value width wmode wrap`,
|
|
214
|
+
summary tabIndex target title type useMap value width wmode wrap`,Z5=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
215
215
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
216
216
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
217
217
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
218
218
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
219
219
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
220
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Zh="".concat(Xh," ").concat(Yh).split(/[\s\n]+/),Qh="aria-",Jh="data-";function wc(e,t){return e.indexOf(t)===0}function e0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=D({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||wc(a,Qh))||r.data&&wc(a,Jh)||r.attr&&Zh.includes(a))&&(n[a]=e[a])}),n}function af(e){return e&&P.isValidElement(e)&&e.type===P.Fragment}const t0=(e,t,r)=>P.isValidElement(e)?P.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Uo(e,t){return t0(e,e,t)}const Ma=e=>{const[,,,,t]=Vr();return t?`${e}-css-var`:""};var ce={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(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=ce.F1&&r<=ce.F12)return!1;switch(r){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},r0={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"},n0=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:r0}))},fl=c.forwardRef(n0);process.env.NODE_ENV!=="production"&&(fl.displayName="LoadingOutlined");const vl=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(vl.displayName="zIndexContext");const rn=100,a0=10,o0=rn*a0,of={Modal:rn,Drawer:rn,Popover:rn,Popconfirm:rn,Tooltip:rn,Tour:rn},i0={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function s0(e){return e in of}function l0(e,t){const[,r]=Vr(),n=P.useContext(vl),a=s0(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+of[e]:i+=i0[e],o=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=Nt(e),s=r.zIndexPopupBase+o0,l=o[0]||0;process.env.NODE_ENV!=="production"&&i(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o}function Yt(){Yt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(N,O,j){N[O]=j.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(N,O,j){return Object.defineProperty(N,O,{value:j,enumerable:!0,configurable:!0,writable:!0}),N[O]}try{u({},"")}catch{u=function(j,z,V){return j[z]=V}}function d(N,O,j,z){var V=O&&O.prototype instanceof C?O:C,H=Object.create(V.prototype),K=new _(z||[]);return a(H,"_invoke",{value:T(N,j,K)}),H}function f(N,O,j){try{return{type:"normal",arg:N.call(O,j)}}catch(z){return{type:"throw",arg:z}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",h="executing",p="completed",g={};function C(){}function m(){}function y(){}var x={};u(x,i,function(){return this});var S=Object.getPrototypeOf,E=S&&S(S(k([])));E&&E!==r&&n.call(E,i)&&(x=E);var R=y.prototype=C.prototype=Object.create(x);function w(N){["next","throw","return"].forEach(function(O){u(N,O,function(j){return this._invoke(O,j)})})}function $(N,O){function j(V,H,K,W){var q=f(N[V],N,H);if(q.type!=="throw"){var Y=q.arg,J=Y.value;return J&&Ie(J)=="object"&&n.call(J,"__await")?O.resolve(J.__await).then(function(ee){j("next",ee,K,W)},function(ee){j("throw",ee,K,W)}):O.resolve(J).then(function(ee){Y.value=ee,K(Y)},function(ee){return j("throw",ee,K,W)})}W(q.arg)}var z;a(this,"_invoke",{value:function(H,K){function W(){return new O(function(q,Y){j(H,K,q,Y)})}return z=z?z.then(W,W):W()}})}function T(N,O,j){var z=v;return function(V,H){if(z===h)throw Error("Generator is already running");if(z===p){if(V==="throw")throw H;return{value:e,done:!0}}for(j.method=V,j.arg=H;;){var K=j.delegate;if(K){var W=M(K,j);if(W){if(W===g)continue;return W}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(z===v)throw z=p,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);z=h;var q=f(N,O,j);if(q.type==="normal"){if(z=j.done?p:b,q.arg===g)continue;return{value:q.arg,done:j.done}}q.type==="throw"&&(z=p,j.method="throw",j.arg=q.arg)}}}function M(N,O){var j=O.method,z=N.iterator[j];if(z===e)return O.delegate=null,j==="throw"&&N.iterator.return&&(O.method="return",O.arg=e,M(N,O),O.method==="throw")||j!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+j+"' method")),g;var V=f(z,N.iterator,O.arg);if(V.type==="throw")return O.method="throw",O.arg=V.arg,O.delegate=null,g;var H=V.arg;return H?H.done?(O[N.resultName]=H.value,O.next=N.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,g):H:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,g)}function F(N){var O={tryLoc:N[0]};1 in N&&(O.catchLoc=N[1]),2 in N&&(O.finallyLoc=N[2],O.afterLoc=N[3]),this.tryEntries.push(O)}function A(N){var O=N.completion||{};O.type="normal",delete O.arg,N.completion=O}function _(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(F,this),this.reset(!0)}function k(N){if(N||N===""){var O=N[i];if(O)return O.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var j=-1,z=function V(){for(;++j<N.length;)if(n.call(N,j))return V.value=N[j],V.done=!1,V;return V.value=e,V.done=!0,V};return z.next=z}}throw new TypeError(Ie(N)+" is not iterable")}return m.prototype=y,a(R,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(N){var O=typeof N=="function"&&N.constructor;return!!O&&(O===m||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,y):(N.__proto__=y,u(N,l,"GeneratorFunction")),N.prototype=Object.create(R),N},t.awrap=function(N){return{__await:N}},w($.prototype),u($.prototype,s,function(){return this}),t.AsyncIterator=$,t.async=function(N,O,j,z,V){V===void 0&&(V=Promise);var H=new $(d(N,O,j,z),V);return t.isGeneratorFunction(O)?H:H.next().then(function(K){return K.done?K.value:H.next()})},w(R),u(R,l,"Generator"),u(R,i,function(){return this}),u(R,"toString",function(){return"[object Generator]"}),t.keys=function(N){var O=Object(N),j=[];for(var z in O)j.push(z);return j.reverse(),function V(){for(;j.length;){var H=j.pop();if(H in O)return V.value=H,V.done=!1,V}return V.done=!0,V}},t.values=k,_.prototype={constructor:_,reset:function(O){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(A),!O)for(var j in this)j.charAt(0)==="t"&&n.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=e)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var j=this;function z(Y,J){return K.type="throw",K.arg=O,j.next=Y,J&&(j.method="next",j.arg=e),!!J}for(var V=this.tryEntries.length-1;V>=0;--V){var H=this.tryEntries[V],K=H.completion;if(H.tryLoc==="root")return z("end");if(H.tryLoc<=this.prev){var W=n.call(H,"catchLoc"),q=n.call(H,"finallyLoc");if(W&&q){if(this.prev<H.catchLoc)return z(H.catchLoc,!0);if(this.prev<H.finallyLoc)return z(H.finallyLoc)}else if(W){if(this.prev<H.catchLoc)return z(H.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return z(H.finallyLoc)}}}},abrupt:function(O,j){for(var z=this.tryEntries.length-1;z>=0;--z){var V=this.tryEntries[z];if(V.tryLoc<=this.prev&&n.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var H=V;break}}H&&(O==="break"||O==="continue")&&H.tryLoc<=j&&j<=H.finallyLoc&&(H=null);var K=H?H.completion:{};return K.type=O,K.arg=j,H?(this.method="next",this.next=H.finallyLoc,g):this.complete(K)},complete:function(O,j){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&j&&(this.next=j),g},finish:function(O){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.finallyLoc===O)return this.complete(z.completion,z.afterLoc),A(z),g}},catch:function(O){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.tryLoc===O){var V=z.completion;if(V.type==="throw"){var H=V.arg;A(z)}return H}}throw Error("illegal catch attempt")},delegateYield:function(O,j,z){return this.delegate={iterator:k(O),resultName:j,nextLoc:z},this.method==="next"&&(this.arg=e),g}},t}function $c(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,a)}function fn(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){$c(o,n,a,i,s,"next",l)}function s(l){$c(o,n,a,i,s,"throw",l)}i(void 0)})}}var ja=D({},Yv),c0=ja.version,u0=ja.render,d0=ja.unmountComponentAtNode,Ko;try{var f0=Number((c0||"").split(".")[0]);f0>=18&&(Ko=ja.createRoot)}catch{}function Oc(e){var t=ja.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ie(t)==="object"&&(t.usingClientEntryPoint=e)}var Io="__rc_react_root__";function v0(e,t){Oc(!0);var r=t[Io]||Ko(t);Oc(!1),r.render(e),t[Io]=r}function g0(e,t){u0(e,t)}function m0(e,t){if(Ko){v0(e,t);return}g0(e,t)}function p0(e){return $s.apply(this,arguments)}function $s(){return $s=fn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Io])===null||a===void 0||a.unmount(),delete t[Io]}));case 1:case"end":return n.stop()}},e)})),$s.apply(this,arguments)}function h0(e){d0(e)}function b0(e){return Os.apply(this,arguments)}function Os(){return Os=fn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Ko===void 0){n.next=2;break}return n.abrupt("return",p0(t));case 2:h0(t);case 3:case"end":return n.stop()}},e)})),Os.apply(this,arguments)}const sf=(e,t,r)=>r!==void 0?r:`${e}-${t}`,gl=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},y0=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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(",")}}}}},C0=Jp("Wave",e=>[y0(e)]),ml=`${_o}-wave-target`;function S0(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]):!0}function xi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&S0(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function x0(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return xi(t)?t:xi(r)?r:xi(n)?n:null}function Ei(e){return Number.isNaN(e)?0:e}const E0=e=>{const{className:t,target:r,component:n}=e,a=c.useRef(null),[o,i]=c.useState(null),[s,l]=c.useState([]),[u,d]=c.useState(0),[f,v]=c.useState(0),[b,h]=c.useState(0),[p,g]=c.useState(0),[C,m]=c.useState(!1),y={left:u,top:f,width:b,height:p,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(y["--wave-color"]=o);function x(){const E=getComputedStyle(r);i(x0(r));const R=E.position==="static",{borderLeftWidth:w,borderTopWidth:$}=E;d(R?r.offsetLeft:Ei(-parseFloat(w))),v(R?r.offsetTop:Ei(-parseFloat($))),h(r.offsetWidth),g(r.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:M,borderBottomLeftRadius:F,borderBottomRightRadius:A}=E;l([T,M,A,F].map(_=>Ei(parseFloat(_))))}if(c.useEffect(()=>{if(r){const E=Tt(()=>{x(),m(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(r)),()=>{Tt.cancel(E),R==null||R.disconnect()}}},[]),!C)return null;const S=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(ml));return c.createElement(un,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,R)=>{var w;if(R.deadline||R.propertyName==="opacity"){const $=(w=a.current)===null||w===void 0?void 0:w.parentElement;b0($).then(()=>{$==null||$.remove()})}return!1}},(E,R)=>{let{className:w}=E;return c.createElement("div",{ref:yr(a,R),className:Z(t,w,{"wave-quick":S}),style:y})})},w0=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),m0(c.createElement(E0,Object.assign({},t,{target:e})),a)},$0=(e,t,r)=>{const{wave:n}=c.useContext(nt),[,a,o]=Vr(),i=Ht(u=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${ml}`)||d,{showEffect:v}=n||{};(v||w0)(f,{className:t,token:a,component:r,event:u,hashId:o})}),s=c.useRef();return u=>{Tt.cancel(s.current),s.current=Tt(()=>{i(u)})}},pl=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=P.useContext(nt),o=P.useRef(null),i=a("wave"),[,s]=C0(i),l=$0(o,Z(i,s),n);if(P.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const f=v=>{!gl(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!P.isValidElement(t))return t??null;const u=cn(t)?yr(t.ref,o):o;return Uo(t,{ref:u})};process.env.NODE_ENV!=="production"&&(pl.displayName="Wave");const vn=e=>{const t=P.useContext(kn);return P.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},O0=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},R0=e=>{const{componentCls:t,antCls:r}=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 > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},P0=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}}}},lf=lr("Space",e=>{const t=jt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[R0(t),P0(t),O0(t)]},()=>({}),{resetStyle:!1});var cf=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const qo=c.createContext(null),uf=(e,t)=>{const r=c.useContext(qo),n=c.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=r,s=a==="vertical"?"-vertical-":"-";return Z(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},_0=e=>{let{children:t}=e;return c.createElement(qo.Provider,{value:null},t)},T0=e=>{var{children:t}=e,r=cf(e,["children"]);return c.createElement(qo.Provider,{value:r},t)},N0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(nt),{size:n,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:u}=e,d=cf(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=vn(y=>n??y),v=t("space-compact",i),[b,h]=lf(v),p=Z(v,h,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),g=c.useContext(qo),C=Rr(u),m=c.useMemo(()=>C.map((y,x)=>{const S=(y==null?void 0:y.key)||`${v}-item-${x}`;return c.createElement(T0,{key:S,compactSize:f,compactDirection:a,isFirstItem:x===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:x===C.length-1&&(!g||(g==null?void 0:g.isLastItem))},y)}),[n,C,g]);return C.length===0?null:b(c.createElement("div",Object.assign({className:p},d),m))},I0=N0;var M0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const df=c.createContext(void 0),j0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(nt),{prefixCls:n,size:a,className:o}=e,i=M0(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Vr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=Nt("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=Z(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:r==="rtl"},o,l);return c.createElement(df.Provider,{value:a},c.createElement("div",Object.assign({},i,{className:d})))},Rc=/^[\u4e00-\u9fa5]{2}$/,Rs=Rc.test.bind(Rc);function Pc(e){return typeof e=="string"}function oo(e){return e==="text"||e==="link"}function A0(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Pc(e.type)&&Rs(e.props.children)?Uo(e,{children:e.props.children.split("").join(r)}):Pc(e)?Rs(e)?P.createElement("span",null,e.split("").join(r)):P.createElement("span",null,e):af(e)?P.createElement("span",null,e):e}function F0(e,t){let r=!1;const n=[];return P.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${a}`}else n.push(a);r=i}),P.Children.map(n,a=>A0(a,t))}const ff=P.forwardRef((e,t)=>{const{className:r,style:n,children:a,prefixCls:o}=e,i=Z(`${o}-icon`,r);return P.createElement("span",{ref:t,className:i,style:n},a)}),_c=P.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:o}=e,i=Z(`${r}-loading-icon`,n);return P.createElement(ff,{prefixCls:r,className:i,style:a,ref:t},P.createElement(fl,{className:o}))}),wi=()=>({width:0,opacity:0,transform:"scale(0)"}),$i=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),L0=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:o}=e,i=!!r;return n?P.createElement(_c,{prefixCls:t,className:a,style:o}):P.createElement(un,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:wi,onAppearActive:$i,onEnterStart:wi,onEnterActive:$i,onLeaveStart:$i,onLeaveActive:wi},(s,l)=>{let{className:u,style:d}=s;return P.createElement(_c,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:u})})},Tc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),D0=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:a,colorErrorHover:o}=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(n).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:r}},Tc(`${t}-primary`,a),Tc(`${t}-danger`,o)]}},vf=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return jt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},gf=e=>{var t,r,n,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,u=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:Co(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:Co(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Co(u);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:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*v)/2-e.lineWidth,0)}},z0=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Q(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({},ul(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},kr=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),k0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),V0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),B0=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Oa=(e,t,r,n,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},kr(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),hl=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},B0(e))}),mf=e=>Object.assign({},hl(e)),Mo=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),pf=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mf(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),kr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Oa(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},kr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Oa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),hl(e))}),H0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mf(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),kr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Oa(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},kr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Oa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hl(e))}),W0=e=>Object.assign(Object.assign({},pf(e)),{borderStyle:"dashed"}),G0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},kr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Mo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},kr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Mo(e))}),U0=e=>Object.assign(Object.assign(Object.assign({},kr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Mo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Mo(e)),kr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),K0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:pf(e),[`${t}-primary`]:H0(e),[`${t}-dashed`]:W0(e),[`${t}-link`]:G0(e),[`${t}-text`]:U0(e),[`${t}-ghost`]:Oa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},bl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u}=e,d=`${r}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:n,padding:`${Q(u)} ${Q(s)}`,borderRadius:i,[`&${d}`]:{width:n,paddingInline:0,[`&${r}-compact-item`]:{flex:"none"},[`&${r}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:k0(e)},{[`${r}${r}-round${t}`]:V0(e)}]},q0=e=>{const t=jt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return bl(t,e.componentCls)},X0=e=>{const t=jt(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 bl(t,`${e.componentCls}-sm`)},Y0=e=>{const t=jt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return bl(t,`${e.componentCls}-lg`)},Z0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Q0=lr("Button",e=>{const t=vf(e);return[z0(t),q0(t),X0(t),Y0(t),Z0(t),K0(t),D0(t)]},gf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function J0(e,t,r){const{focusElCls:n,focus:a,borderElCls:o}=r,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function eb(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function hf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},J0(e,n,t)),eb(r,n,t))}}function tb(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 rb(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function nb(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},tb(e,t)),rb(e.componentCls,t))}}const ab=e=>{const{componentCls:t,calc:r}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Q(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:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Q(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},ob=eh(["Button","compact"],e=>{const t=vf(e);return[hf(t),nb(t),ab(t)]},gf);var ib=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function sb(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const lb=P.forwardRef((e,t)=>{var r,n,a;const{loading:o=!1,prefixCls:i,type:s,danger:l=!1,shape:u="default",size:d,styles:f,disabled:v,className:b,rootClassName:h,children:p,icon:g,iconPosition:C="start",ghost:m=!1,block:y=!1,htmlType:x="button",classNames:S,style:E={},autoInsertSpace:R}=e,w=ib(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),$=s||"default",{getPrefixCls:T,direction:M,button:F}=P.useContext(nt),A=(r=R??(F==null?void 0:F.autoInsertSpace))!==null&&r!==void 0?r:!0,_=T("btn",i),[k,N,O]=Q0(_),j=P.useContext(ln),z=v??j,V=P.useContext(df),H=P.useMemo(()=>sb(o),[o]),[K,W]=P.useState(H.loading),[q,Y]=P.useState(!1),ee=yr(t,P.createRef()),te=P.Children.count(p)===1&&!g&&!oo($);P.useEffect(()=>{let ne=null;H.delay>0?ne=setTimeout(()=>{ne=null,W(!0)},H.delay):W(H.loading);function pe(){ne&&(clearTimeout(ne),ne=null)}return pe},[H]),P.useEffect(()=>{if(!ee||!ee.current||!A)return;const ne=ee.current.textContent;te&&Rs(ne)?q||Y(!0):q&&Y(!1)},[ee]);const oe=ne=>{const{onClick:pe}=e;if(K||z){ne.preventDefault();return}pe==null||pe(ne)};if(process.env.NODE_ENV!=="production"){const ne=Nt("Button");process.env.NODE_ENV!=="production"&&ne(!(typeof g=="string"&&g.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&ne(!(m&&oo($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ve,compactItemClassnames:fe}=uf(_,M),ge={large:"lg",small:"sm",middle:void 0},Oe=vn(ne=>{var pe,be;return(be=(pe=d??ve)!==null&&pe!==void 0?pe:V)!==null&&be!==void 0?be:ne}),B=Oe&&ge[Oe]||"",ue=K?"loading":g,le=Cr(w,["navigate"]),Ee=Z(_,N,O,{[`${_}-${u}`]:u!=="default"&&u,[`${_}-${$}`]:$,[`${_}-${B}`]:B,[`${_}-icon-only`]:!p&&p!==0&&!!ue,[`${_}-background-ghost`]:m&&!oo($),[`${_}-loading`]:K,[`${_}-two-chinese-chars`]:q&&A&&!K,[`${_}-block`]:y,[`${_}-dangerous`]:l,[`${_}-rtl`]:M==="rtl",[`${_}-icon-end`]:C==="end"},fe,b,h,F==null?void 0:F.className),he=Object.assign(Object.assign({},F==null?void 0:F.style),E),ae=Z(S==null?void 0:S.icon,(n=F==null?void 0:F.classNames)===null||n===void 0?void 0:n.icon),me=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=F==null?void 0:F.styles)===null||a===void 0?void 0:a.icon)||{}),$e=g&&!K?P.createElement(ff,{prefixCls:_,className:ae,style:me},g):P.createElement(L0,{existIcon:!!g,prefixCls:_,loading:K}),je=p||p===0?F0(p,te&&A):null;if(le.href!==void 0)return k(P.createElement("a",Object.assign({},le,{className:Z(Ee,{[`${_}-disabled`]:z}),href:z?void 0:le.href,style:he,onClick:oe,ref:ee,tabIndex:z?-1:0}),$e,je));let ie=P.createElement("button",Object.assign({},w,{type:x,className:Ee,style:he,onClick:oe,disabled:z,ref:ee}),$e,je,!!fe&&P.createElement(ob,{key:"compact",prefixCls:_}));return oo($)||(ie=P.createElement(pl,{component:"Button",disabled:K},ie)),k(ie)}),Aa=lb;Aa.Group=j0;Aa.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(Aa.displayName="Button");var bf=c.createContext(null),Nc=[];function cb(e,t){var r=c.useState(function(){if(!Xt())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),n=U(r,1),a=n[0],o=c.useRef(!1),i=c.useContext(bf),s=c.useState(Nc),l=U(s,2),u=l[0],d=l[1],f=i||(o.current?void 0:function(h){d(function(p){var g=[h].concat(Ce(p));return g})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function b(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return St(function(){return e?i?i(v):v():b(),b},[e]),St(function(){u.length&&(u.forEach(function(h){return h()}),d(Nc))},[u]),[a,f]}function ub(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";Lr(`
|
|
220
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Q5="".concat(X5," ").concat(Z5).split(/[\s\n]+/),J5="aria-",e6="data-";function hb(e,t){return e.indexOf(t)===0}function Ys(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=te({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||hb(i,J5))||n.data&&hb(i,e6)||n.attr&&Q5.includes(i))&&(r[i]=e[i])}),r}function v2(e){return e&&$.isValidElement(e)&&e.type===$.Fragment}const t6=(e,t,n)=>$.isValidElement(e)?$.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Vu(e,t){return t6(e,e,t)}const No=e=>{const[,,,,t]=Or();return t?`${e}-css-var`:""};var $e={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(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=$e.F1&&n<=$e.F12)return!1;switch(n){case $e.ALT:case $e.CAPS_LOCK:case $e.CONTEXT_MENU:case $e.CTRL:case $e.DOWN:case $e.END:case $e.ESC:case $e.HOME:case $e.INSERT:case $e.LEFT:case $e.MAC_FF_META:case $e.META:case $e.NUMLOCK:case $e.NUM_CENTER:case $e.PAGE_DOWN:case $e.PAGE_UP:case $e.PAUSE:case $e.PRINT_SCREEN:case $e.RIGHT:case $e.SHIFT:case $e.UP:case $e.WIN_KEY:case $e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=$e.ZERO&&t<=$e.NINE||t>=$e.NUM_ZERO&&t<=$e.NUM_MULTIPLY||t>=$e.A&&t<=$e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case $e.SPACE:case $e.QUESTION_MARK:case $e.NUM_PLUS:case $e.NUM_MINUS:case $e.NUM_PERIOD:case $e.NUM_DIVISION:case $e.SEMICOLON:case $e.DASH:case $e.EQUALS:case $e.COMMA:case $e.PERIOD:case $e.SLASH:case $e.APOSTROPHE:case $e.SINGLE_QUOTE:case $e.OPEN_SQUARE_BRACKET:case $e.BACKSLASH:case $e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},n6={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"},r6=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:n6}))},Wu=g.forwardRef(r6);process.env.NODE_ENV!=="production"&&(Wu.displayName="LoadingOutlined");const cm=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(cm.displayName="zIndexContext");const Ki=100,i6=10,a6=Ki*i6,g2={Modal:Ki,Drawer:Ki,Popover:Ki,Popconfirm:Ki,Tooltip:Ki,Tour:Ki},o6={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function s6(e){return e in g2}function m2(e,t){const[,n]=Or(),r=$.useContext(cm),i=s6(e);let a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+g2[e]:o+=o6[e],a=[r===void 0?t:o,o]}if(process.env.NODE_ENV!=="production"){const o=dn(e),s=n.zIndexPopupBase+a6,l=a[0]||0;process.env.NODE_ENV!=="production"&&o(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a}function Zn(){Zn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(A,M,N){A[M]=N.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(A,M,N){return Object.defineProperty(A,M,{value:N,enumerable:!0,configurable:!0,writable:!0}),A[M]}try{c({},"")}catch{c=function(N,j,D){return N[j]=D}}function u(A,M,N,j){var D=M&&M.prototype instanceof y?M:y,V=Object.create(D.prototype),X=new P(j||[]);return i(V,"_invoke",{value:T(A,N,X)}),V}function d(A,M,N){try{return{type:"normal",arg:A.call(M,N)}}catch(j){return{type:"throw",arg:j}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",v={};function y(){}function b(){}function x(){}var C={};c(C,o,function(){return this});var S=Object.getPrototypeOf,w=S&&S(S(k([])));w&&w!==n&&r.call(w,o)&&(C=w);var O=x.prototype=y.prototype=Object.create(C);function E(A){["next","throw","return"].forEach(function(M){c(A,M,function(N){return this._invoke(M,N)})})}function _(A,M){function N(D,V,X,q){var Z=d(A[D],A,V);if(Z.type!=="throw"){var J=Z.arg,Q=J.value;return Q&&ut(Q)=="object"&&r.call(Q,"__await")?M.resolve(Q.__await).then(function(K){N("next",K,X,q)},function(K){N("throw",K,X,q)}):M.resolve(Q).then(function(K){J.value=K,X(J)},function(K){return N("throw",K,X,q)})}q(Z.arg)}var j;i(this,"_invoke",{value:function(V,X){function q(){return new M(function(Z,J){N(V,X,Z,J)})}return j=j?j.then(q,q):q()}})}function T(A,M,N){var j=f;return function(D,V){if(j===p)throw Error("Generator is already running");if(j===m){if(D==="throw")throw V;return{value:e,done:!0}}for(N.method=D,N.arg=V;;){var X=N.delegate;if(X){var q=R(X,N);if(q){if(q===v)continue;return q}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(j===f)throw j=m,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);j=p;var Z=d(A,M,N);if(Z.type==="normal"){if(j=N.done?m:h,Z.arg===v)continue;return{value:Z.arg,done:N.done}}Z.type==="throw"&&(j=m,N.method="throw",N.arg=Z.arg)}}}function R(A,M){var N=M.method,j=A.iterator[N];if(j===e)return M.delegate=null,N==="throw"&&A.iterator.return&&(M.method="return",M.arg=e,R(A,M),M.method==="throw")||N!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+N+"' method")),v;var D=d(j,A.iterator,M.arg);if(D.type==="throw")return M.method="throw",M.arg=D.arg,M.delegate=null,v;var V=D.arg;return V?V.done?(M[A.resultName]=V.value,M.next=A.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,v):V:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,v)}function F(A){var M={tryLoc:A[0]};1 in A&&(M.catchLoc=A[1]),2 in A&&(M.finallyLoc=A[2],M.afterLoc=A[3]),this.tryEntries.push(M)}function I(A){var M=A.completion||{};M.type="normal",delete M.arg,A.completion=M}function P(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(F,this),this.reset(!0)}function k(A){if(A||A===""){var M=A[o];if(M)return M.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var N=-1,j=function D(){for(;++N<A.length;)if(r.call(A,N))return D.value=A[N],D.done=!1,D;return D.value=e,D.done=!0,D};return j.next=j}}throw new TypeError(ut(A)+" is not iterable")}return b.prototype=x,i(O,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=c(x,l,"GeneratorFunction"),t.isGeneratorFunction=function(A){var M=typeof A=="function"&&A.constructor;return!!M&&(M===b||(M.displayName||M.name)==="GeneratorFunction")},t.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,x):(A.__proto__=x,c(A,l,"GeneratorFunction")),A.prototype=Object.create(O),A},t.awrap=function(A){return{__await:A}},E(_.prototype),c(_.prototype,s,function(){return this}),t.AsyncIterator=_,t.async=function(A,M,N,j,D){D===void 0&&(D=Promise);var V=new _(u(A,M,N,j),D);return t.isGeneratorFunction(M)?V:V.next().then(function(X){return X.done?X.value:V.next()})},E(O),c(O,l,"Generator"),c(O,o,function(){return this}),c(O,"toString",function(){return"[object Generator]"}),t.keys=function(A){var M=Object(A),N=[];for(var j in M)N.push(j);return N.reverse(),function D(){for(;N.length;){var V=N.pop();if(V in M)return D.value=V,D.done=!1,D}return D.done=!0,D}},t.values=k,P.prototype={constructor:P,reset:function(M){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(I),!M)for(var N in this)N.charAt(0)==="t"&&r.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=e)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var N=this;function j(J,Q){return X.type="throw",X.arg=M,N.next=J,Q&&(N.method="next",N.arg=e),!!Q}for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D],X=V.completion;if(V.tryLoc==="root")return j("end");if(V.tryLoc<=this.prev){var q=r.call(V,"catchLoc"),Z=r.call(V,"finallyLoc");if(q&&Z){if(this.prev<V.catchLoc)return j(V.catchLoc,!0);if(this.prev<V.finallyLoc)return j(V.finallyLoc)}else if(q){if(this.prev<V.catchLoc)return j(V.catchLoc,!0)}else{if(!Z)throw Error("try statement without catch or finally");if(this.prev<V.finallyLoc)return j(V.finallyLoc)}}}},abrupt:function(M,N){for(var j=this.tryEntries.length-1;j>=0;--j){var D=this.tryEntries[j];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var V=D;break}}V&&(M==="break"||M==="continue")&&V.tryLoc<=N&&N<=V.finallyLoc&&(V=null);var X=V?V.completion:{};return X.type=M,X.arg=N,V?(this.method="next",this.next=V.finallyLoc,v):this.complete(X)},complete:function(M,N){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&N&&(this.next=N),v},finish:function(M){for(var N=this.tryEntries.length-1;N>=0;--N){var j=this.tryEntries[N];if(j.finallyLoc===M)return this.complete(j.completion,j.afterLoc),I(j),v}},catch:function(M){for(var N=this.tryEntries.length-1;N>=0;--N){var j=this.tryEntries[N];if(j.tryLoc===M){var D=j.completion;if(D.type==="throw"){var V=D.arg;I(j)}return V}}throw Error("illegal catch attempt")},delegateYield:function(M,N,j){return this.delegate={iterator:k(M),resultName:N,nextLoc:j},this.method==="next"&&(this.arg=e),v}},t}function vb(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function Sa(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(l){vb(a,r,i,o,s,"next",l)}function s(l){vb(a,r,i,o,s,"throw",l)}o(void 0)})}}var Sl=te({},tT),l6=Sl.version,c6=Sl.render,u6=Sl.unmountComponentAtNode,Hu;try{var d6=Number((l6||"").split(".")[0]);d6>=18&&(Hu=Sl.createRoot)}catch{}function gb(e){var t=Sl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ut(t)==="object"&&(t.usingClientEntryPoint=e)}var Yc="__rc_react_root__";function f6(e,t){gb(!0);var n=t[Yc]||Hu(t);gb(!1),n.render(e),t[Yc]=n}function h6(e,t){c6(e,t)}function v6(e,t){if(Hu){f6(e,t);return}h6(e,t)}function g6(e){return Ev.apply(this,arguments)}function Ev(){return Ev=Sa(Zn().mark(function e(t){return Zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[Yc])===null||i===void 0||i.unmount(),delete t[Yc]}));case 1:case"end":return r.stop()}},e)})),Ev.apply(this,arguments)}function m6(e){u6(e)}function p6(e){return Ov.apply(this,arguments)}function Ov(){return Ov=Sa(Zn().mark(function e(t){return Zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Hu===void 0){r.next=2;break}return r.abrupt("return",g6(t));case 2:m6(t);case 3:case"end":return r.stop()}},e)})),Ov.apply(this,arguments)}const um=(e,t,n)=>n!==void 0?n:`${e}-${t}`,dm=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},b6=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(",")}}}}},y6=e5("Wave",e=>[b6(e)]),fm=`${Gc}-wave-target`;function x6(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]):!0}function If(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&x6(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function S6(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return If(t)?t:If(n)?n:If(r)?r:null}function Af(e){return Number.isNaN(e)?0:e}const C6=e=>{const{className:t,target:n,component:r}=e,i=g.useRef(null),[a,o]=g.useState(null),[s,l]=g.useState([]),[c,u]=g.useState(0),[d,f]=g.useState(0),[h,p]=g.useState(0),[m,v]=g.useState(0),[y,b]=g.useState(!1),x={left:c,top:d,width:h,height:m,borderRadius:s.map(w=>`${w}px`).join(" ")};a&&(x["--wave-color"]=a);function C(){const w=getComputedStyle(n);o(S6(n));const O=w.position==="static",{borderLeftWidth:E,borderTopWidth:_}=w;u(O?n.offsetLeft:Af(-parseFloat(E))),f(O?n.offsetTop:Af(-parseFloat(_))),p(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:R,borderBottomLeftRadius:F,borderBottomRightRadius:I}=w;l([T,R,I,F].map(P=>Af(parseFloat(P))))}if(g.useEffect(()=>{if(n){const w=qt(()=>{C(),b(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(C),O.observe(n)),()=>{qt.cancel(w),O==null||O.disconnect()}}},[]),!y)return null;const S=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(fm));return g.createElement(xa,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,O)=>{var E;if(O.deadline||O.propertyName==="opacity"){const _=(E=i.current)===null||E===void 0?void 0:E.parentElement;p6(_).then(()=>{_==null||_.remove()})}return!1}},(w,O)=>{let{className:E}=w;return g.createElement("div",{ref:Er(i,O),className:pe(t,E,{"wave-quick":S}),style:x})})},w6=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild),v6(g.createElement(C6,Object.assign({},t,{target:e})),i)},$6=(e,t,n)=>{const{wave:r}=g.useContext(Tt),[,i,a]=Or(),o=$n(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${fm}`)||u,{showEffect:f}=r||{};(f||w6)(d,{className:t,token:i,component:n,event:c,hashId:a})}),s=g.useRef();return c=>{qt.cancel(s.current),s.current=qt(()=>{o(c)})}},hm=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=$.useContext(Tt),a=$.useRef(null),o=i("wave"),[,s]=y6(o),l=$6(a,pe(o,s),r);if($.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!dm(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!$.isValidElement(t))return t??null;const c=ya(t)?Er(t.ref,a):a;return Vu(t,{ref:c})};process.env.NODE_ENV!=="production"&&(hm.displayName="Wave");const Wi=e=>{const t=$.useContext(po);return $.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},_6=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},E6=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"}}}},O6=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}}}},p2=er("Space",e=>{const t=nn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[E6(t),O6(t),_6(t)]},()=>({}),{resetStyle:!1});var b2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Uu=g.createContext(null),vm=(e,t)=>{const n=g.useContext(Uu),r=g.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return pe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},M6=e=>{let{children:t}=e;return g.createElement(Uu.Provider,{value:null},t)},T6=e=>{var{children:t}=e,n=b2(e,["children"]);return g.createElement(Uu.Provider,{value:n},t)},R6=e=>{const{getPrefixCls:t,direction:n}=g.useContext(Tt),{size:r,direction:i,block:a,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=b2(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Wi(x=>r??x),f=t("space-compact",o),[h,p]=p2(f),m=pe(f,p,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:a,[`${f}-vertical`]:i==="vertical"},s,l),v=g.useContext(Uu),y=cr(c),b=g.useMemo(()=>y.map((x,C)=>{const S=(x==null?void 0:x.key)||`${f}-item-${C}`;return g.createElement(T6,{key:S,compactSize:d,compactDirection:i,isFirstItem:C===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:C===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},x)}),[r,y,v]);return y.length===0?null:h(g.createElement("div",Object.assign({className:m},u),b))},P6=R6;var I6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const y2=g.createContext(void 0),A6=e=>{const{getPrefixCls:t,direction:n}=g.useContext(Tt),{prefixCls:r,size:i,className:a}=e,o=I6(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Or();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}if(process.env.NODE_ENV!=="production"){const d=dn("Button.Group");process.env.NODE_ENV!=="production"&&d(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const u=pe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return g.createElement(y2.Provider,{value:i},g.createElement("div",Object.assign({},o,{className:u})))},mb=/^[\u4e00-\u9fa5]{2}$/,Mv=mb.test.bind(mb);function pb(e){return typeof e=="string"}function ic(e){return e==="text"||e==="link"}function N6(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&pb(e.type)&&Mv(e.props.children)?Vu(e,{children:e.props.children.split("").join(n)}):pb(e)?Mv(e)?$.createElement("span",null,e.split("").join(n)):$.createElement("span",null,e):v2(e)?$.createElement("span",null,e):e}function k6(e,t){let n=!1;const r=[];return $.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=o}),$.Children.map(r,i=>N6(i,t))}const x2=$.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=pe(`${a}-icon`,n);return $.createElement("span",{ref:t,className:o,style:r},i)}),bb=$.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=pe(`${n}-loading-icon`,r);return $.createElement(x2,{prefixCls:n,className:o,style:i,ref:t},$.createElement(Wu,{className:a}))}),Nf=()=>({width:0,opacity:0,transform:"scale(0)"}),kf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),j6=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a}=e,o=!!n;return r?$.createElement(bb,{prefixCls:t,className:i,style:a}):$.createElement(xa,{visible:o,motionName:`${t}-loading-icon-motion`,motionLeave:o,removeOnLeave:!0,onAppearStart:Nf,onAppearActive:kf,onEnterStart:Nf,onEnterActive:kf,onLeaveStart:kf,onLeaveActive:Nf},(s,l)=>{let{className:c,style:u}=s;return $.createElement(bb,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),u),ref:l,iconClassName:c})})},yb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),L6=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},yb(`${t}-primary`,i),yb(`${t}-danger`,a)]}},S2=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return nn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},C2=e=>{var t,n,r,i,a,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:Ic(s),d=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:Ic(l),f=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:Ic(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},D6=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ye(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({},am(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"}}}},gi=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),F6=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),z6=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),B6=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Xs=(e,t,n,r,i,a,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},gi(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),gm=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},B6(e))}),w2=e=>Object.assign({},gm(e)),Xc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),$2=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},w2(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),gi(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Xs(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},gi(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Xs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),gm(e))}),V6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},w2(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),gi(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Xs(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},gi(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Xs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gm(e))}),W6=e=>Object.assign(Object.assign({},$2(e)),{borderStyle:"dashed"}),H6=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},gi(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Xc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},gi(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Xc(e))}),U6=e=>Object.assign(Object.assign(Object.assign({},gi(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Xc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Xc(e)),gi(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),G6=e=>{const{componentCls:t}=e;return{[`${t}-default`]:$2(e),[`${t}-primary`]:V6(e),[`${t}-dashed`]:W6(e),[`${t}-link`]:H6(e),[`${t}-text`]:U6(e),[`${t}-ghost`]:Xs(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},mm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:a,borderRadius:o,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:i,lineHeight:a,height:r,padding:`${ye(c)} ${ye(s)}`,borderRadius:o,[`&${u}`]:{width:r,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}`]:F6(e)},{[`${n}${n}-round${t}`]:z6(e)}]},q6=e=>{const t=nn(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return mm(t,e.componentCls)},K6=e=>{const t=nn(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 mm(t,`${e.componentCls}-sm`)},Y6=e=>{const t=nn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return mm(t,`${e.componentCls}-lg`)},X6=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Z6=er("Button",e=>{const t=S2(e);return[D6(t),q6(t),K6(t),Y6(t),X6(t),G6(t),L6(t)]},C2,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Q6(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function J6(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function pm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Q6(e,r,t)),J6(n,r,t))}}function e4(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 t4(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function n4(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},e4(e,t)),t4(e.componentCls,t))}}const r4=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% + ${ye(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% + ${ye(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},i4=t5(["Button","compact"],e=>{const t=S2(e);return[pm(t),n4(t),r4(t)]},C2);var a4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function o4(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const s4=$.forwardRef((e,t)=>{var n,r,i;const{loading:a=!1,prefixCls:o,type:s,danger:l=!1,shape:c="default",size:u,styles:d,disabled:f,className:h,rootClassName:p,children:m,icon:v,iconPosition:y="start",ghost:b=!1,block:x=!1,htmlType:C="button",classNames:S,style:w={},autoInsertSpace:O}=e,E=a4(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),_=s||"default",{getPrefixCls:T,direction:R,button:F}=$.useContext(Tt),I=(n=O??(F==null?void 0:F.autoInsertSpace))!==null&&n!==void 0?n:!0,P=T("btn",o),[k,A,M]=Z6(P),N=$.useContext(Ai),j=f??N,D=$.useContext(y2),V=$.useMemo(()=>o4(a),[a]),[X,q]=$.useState(V.loading),[Z,J]=$.useState(!1),K=Er(t,$.createRef()),Y=$.Children.count(m)===1&&!v&&!ic(_);$.useEffect(()=>{let se=null;V.delay>0?se=setTimeout(()=>{se=null,q(!0)},V.delay):q(V.loading);function xe(){se&&(clearTimeout(se),se=null)}return xe},[V]),$.useEffect(()=>{if(!K||!K.current||!I)return;const se=K.current.textContent;Y&&Mv(se)?Z||J(!0):Z&&J(!1)},[K]);const W=se=>{const{onClick:xe}=e;if(X||j){se.preventDefault();return}xe==null||xe(se)};if(process.env.NODE_ENV!=="production"){const se=dn("Button");process.env.NODE_ENV!=="production"&&se(!(typeof v=="string"&&v.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${v}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&se(!(b&&ic(_)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:H,compactItemClassnames:U}=vm(P,R),z={large:"lg",small:"sm",middle:void 0},ne=Wi(se=>{var xe,ce;return(ce=(xe=u??H)!==null&&xe!==void 0?xe:D)!==null&&ce!==void 0?ce:se}),B=ne&&z[ne]||"",re=X?"loading":v,ie=hr(E,["navigate"]),ue=pe(P,A,M,{[`${P}-${c}`]:c!=="default"&&c,[`${P}-${_}`]:_,[`${P}-${B}`]:B,[`${P}-icon-only`]:!m&&m!==0&&!!re,[`${P}-background-ghost`]:b&&!ic(_),[`${P}-loading`]:X,[`${P}-two-chinese-chars`]:Z&&I&&!X,[`${P}-block`]:x,[`${P}-dangerous`]:l,[`${P}-rtl`]:R==="rtl",[`${P}-icon-end`]:y==="end"},U,h,p,F==null?void 0:F.className),me=Object.assign(Object.assign({},F==null?void 0:F.style),w),ve=pe(S==null?void 0:S.icon,(r=F==null?void 0:F.classNames)===null||r===void 0?void 0:r.icon),be=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((i=F==null?void 0:F.styles)===null||i===void 0?void 0:i.icon)||{}),Ce=v&&!X?$.createElement(x2,{prefixCls:P,className:ve,style:be},v):$.createElement(j6,{existIcon:!!v,prefixCls:P,loading:X}),ge=m||m===0?k6(m,Y&&I):null;if(ie.href!==void 0)return k($.createElement("a",Object.assign({},ie,{className:pe(ue,{[`${P}-disabled`]:j}),href:j?void 0:ie.href,style:me,onClick:W,ref:K,tabIndex:j?-1:0}),Ce,ge));let fe=$.createElement("button",Object.assign({},E,{type:C,className:ue,style:me,onClick:W,disabled:j,ref:K}),Ce,ge,!!U&&$.createElement(i4,{key:"compact",prefixCls:P}));return ic(_)||(fe=$.createElement(hm,{component:"Button",disabled:X},fe)),k(fe)}),Cl=s4;Cl.Group=A6;Cl.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(Cl.displayName="Button");var _2=g.createContext(null),xb=[];function l4(e,t){var n=g.useState(function(){if(!Hn())return null;var p=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&p.setAttribute("data-debug",t),p}),r=ae(n,1),i=r[0],a=g.useRef(!1),o=g.useContext(_2),s=g.useState(xb),l=ae(s,2),c=l[0],u=l[1],d=o||(a.current?void 0:function(p){u(function(m){var v=[p].concat(Ge(m));return v})});function f(){i.parentElement||document.body.appendChild(i),a.current=!0}function h(){var p;(p=i.parentElement)===null||p===void 0||p.removeChild(i),a.current=!1}return Gt(function(){return e?o?o(f):f():h(),h},[e]),Gt(function(){c.length&&(c.forEach(function(p){return p()}),u(xb))},[c]),[i,d]}function c4(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.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,";"):"";di(`
|
|
221
221
|
#`.concat(t,`::-webkit-scrollbar {
|
|
222
|
+
`).concat(u,`
|
|
222
223
|
`).concat(d,`
|
|
223
|
-
`).concat(
|
|
224
|
-
}`),t)}catch(h){console.error(h),a=l,o=u}}document.body.appendChild(r);var v=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,b=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),ya(t),{width:v,height:b}}function db(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:ub(e)}function fb(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var vb="rc-util-locker-".concat(Date.now()),Ic=0;function gb(e){var t=!!e,r=c.useState(function(){return Ic+=1,"".concat(vb,"_").concat(Ic)}),n=U(r,1),a=n[0];St(function(){if(t){var o=db(document.body).width,i=fb();Lr(`
|
|
224
|
+
}`),t)}catch(p){console.error(p),i=l,a=c}}document.body.appendChild(n);var f=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,h=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Vs(t),{width:f,height:h}}function u4(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:c4(e)}function d4(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var f4="rc-util-locker-".concat(Date.now()),Sb=0;function h4(e){var t=!!e,n=g.useState(function(){return Sb+=1,"".concat(f4,"_").concat(Sb)}),r=ae(n,1),i=r[0];Gt(function(){if(t){var a=u4(document.body).width,o=d4();di(`
|
|
225
225
|
html body {
|
|
226
226
|
overflow-y: hidden;
|
|
227
|
-
`.concat(
|
|
228
|
-
}`),a)}else ya(a);return function(){ya(a)}},[t,a])}var mb=!1;function pb(e){return mb}var Mc=function(t){return t===!1?!1:!Xt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},yl=c.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer,o=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,u=c.useState(r),d=U(u,2),f=d[0],v=d[1],b=f||r;process.env.NODE_ENV!=="production"&&st(Xt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(s||r)&&v(r)},[r,s]);var h=c.useState(function(){return Mc(a)}),p=U(h,2),g=p[0],C=p[1];c.useEffect(function(){var F=Mc(a);C(F??null)});var m=cb(b&&!g,o),y=U(m,2),x=y[0],S=y[1],E=g??x;gb(n&&r&&Xt()&&(E===x||E===document.body));var R=null;if(l&&cn(l)&&t){var w=l;R=w.ref}var $=Na(R,t);if(!b||!Xt()||g===void 0)return null;var T=E===!1||pb(),M=l;return t&&(M=c.cloneElement(l,{ref:$})),c.createElement(bf.Provider,{value:S},T?M:Mn.createPortal(M,E))});process.env.NODE_ENV!=="production"&&(yl.displayName="Portal");function hb(){var e=D({},c);return e.useId}var jc=0,Ac=hb();const bb=Ac?function(t){var r=Ac();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=c.useState("ssr-id"),n=U(r,2),a=n[0],o=n[1];return c.useEffect(function(){var i=jc;jc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var on="RC_FORM_INTERNAL_HOOKS",gt=function(){st(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Vn=c.createContext({getFieldValue:gt,getFieldsValue:gt,getFieldError:gt,getFieldWarning:gt,getFieldsError:gt,isFieldsTouched:gt,isFieldTouched:gt,isFieldValidating:gt,isFieldsValidating:gt,resetFields:gt,setFields:gt,setFieldValue:gt,setFieldsValue:gt,validateFields:gt,submit:gt,getInternalHooks:function(){return gt(),{dispatch:gt,initEntityValue:gt,registerField:gt,useSubscribe:gt,setInitialValues:gt,destroyForm:gt,setCallbacks:gt,registerWatch:gt,getFields:gt,setValidateMessages:gt,setPreserve:gt,getInitialValue:gt}}}),jo=c.createContext(null);function Ps(e){return e==null?[]:Array.isArray(e)?e:[e]}function yb(e){return e&&!!e._init}function _s(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ts=_s();function Cb(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Sb(e,t,r){if(Js())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&pa(a,r.prototype),a}function Ns(e){var t=typeof Map=="function"?new Map:void 0;return Ns=function(n){if(n===null||!Cb(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Sb(n,arguments,ha(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),pa(a,n)},Ns(e)}var xb=/%[sdj%]/g,yf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(yf=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function Is(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function rr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(xb,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Eb(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function It(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Eb(t)&&typeof e=="string"&&!e)}function wb(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,Ce(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function Fc(e,t,r){var n=0,a=e.length;function o(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<a?t(e[s],o):r([])}o([])}function $b(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Ce(e[r]||[]))}),t}var Lc=function(e){Zr(r,e);var t=Qr(r);function r(n,a){var o;return Lt(this,r),o=t.call(this,"Async Validation Error"),L(Ge(o),"errors",void 0),L(Ge(o),"fields",void 0),o.errors=n,o.fields=a,o}return Dt(r)}(Ns(Error));function Ob(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(C){return n(C),C.length?b(new Lc(C,Is(C))):v(a)},p=$b(e);Fc(p,r,h)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],f=new Promise(function(v,b){var h=function(g){if(d.push.apply(d,g),u++,u===l)return n(d),d.length?b(new Lc(d,Is(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?Fc(g,r,h):wb(g,r,h)})});return f.catch(function(v){return v}),f}function Rb(e){return!!(e&&e.message!==void 0)}function Pb(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Dc(e,t){return function(r){var n;return e.fullFields?n=Pb(t,e.fullFields):n=t[r.field||e.fullField],Rb(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function zc(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ie(n)==="object"&&Ie(e[r])==="object"?e[r]=D(D({},e[r]),n):e[r]=n}}return e}var bn="enum",_b=function(t,r,n,a,o){t[bn]=Array.isArray(t[bn])?t[bn]:[],t[bn].indexOf(r)===-1&&a.push(rr(o.messages[bn],t.fullField,t[bn].join(", ")))},Tb=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(rr(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(rr(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Nb=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",b=typeof r=="string",h=Array.isArray(r);if(v?f="number":b?f="string":h&&(f="array"),!f)return!1;h&&(d=r.length),b&&(d=r.replace(u,"_").length),i?d!==t.len&&a.push(rr(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(rr(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(rr(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(rr(o.messages[f].range,t.fullField,t.min,t.max))},Cf=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||It(r,i||t.type))&&a.push(rr(o.messages.required,t.fullField))},io;const Ib=function(){if(io)return io;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(i).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,h=d.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(g).concat(C,")").concat(m).concat(y);return io=new RegExp("(?:^".concat(x,"$)"),"i"),io};var kc={email:/^(([^<>()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},sa={integer:function(t){return sa.number(t)&&parseInt(t,10)===t},float:function(t){return sa.number(t)&&!sa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Ie(t)==="object"&&!sa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(kc.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ib())},hex:function(t){return typeof t=="string"&&!!t.match(kc.hex)}},Mb=function(t,r,n,a,o){if(t.required&&r===void 0){Cf(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?sa[s](r)||a.push(rr(o.messages.types[s],t.fullField,t.type)):s&&Ie(r)!==t.type&&a.push(rr(o.messages.types[s],t.fullField,t.type))},jb=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(rr(o.messages.whitespace,t.fullField))};const Qe={required:Cf,whitespace:jb,type:Mb,range:Nb,enum:_b,pattern:Tb};var Ab=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o)}n(i)},Fb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Qe.required(t,r,a,i,o,"array"),r!=null&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Lb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Db=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!It(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Qe.type(t,l,a,i,o),l&&Qe.range(t,l.getTime(),a,i,o)}}n(i)},zb="enum",kb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[zb](t,r,a,i,o)}n(i)},Vb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Bb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Hb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Wb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Gb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Ub=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),It(r,"string")||Qe.pattern(t,r,a,i,o)}n(i)},Kb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r)&&!t.required)return n();Qe.required(t,r,a,i,o),It(r)||Qe.type(t,r,a,i,o)}n(i)},qb=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Ie(r);Qe.required(t,r,a,i,o,s),n(i)},Xb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(It(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),It(r,"string")||(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o),Qe.pattern(t,r,a,i,o),t.whitespace===!0&&Qe.whitespace(t,r,a,i,o))}n(i)},Oi=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(It(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),It(r,i)||Qe.type(t,r,a,s,o)}n(s)};const va={string:Xb,method:Hb,number:Wb,boolean:Lb,regexp:Kb,integer:Bb,float:Vb,array:Fb,object:Gb,enum:kb,pattern:Ub,date:Db,url:Oi,hex:Oi,email:Oi,required:qb,any:Ab};var Fa=function(){function e(t){Lt(this,e),L(this,"rules",null),L(this,"_messages",Ts),this.define(t)}return Dt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ie(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=zc(_s(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function u(h){var p=[],g={};function C(y){if(Array.isArray(y)){var x;p=(x=p).concat.apply(x,Ce(y))}else p.push(y)}for(var m=0;m<h.length;m++)C(h[m]);p.length?(g=Is(p),l(p,g)):l(null,i)}if(s.messages){var d=this.messages();d===Ts&&(d=_s()),zc(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(h){var p=n.rules[h],g=i[h];p.forEach(function(C){var m=C;typeof m.transform=="function"&&(i===r&&(i=D({},i)),g=i[h]=m.transform(g),g!=null&&(m.type=m.type||(Array.isArray(g)?"array":Ie(g)))),typeof m=="function"?m={validator:m}:m=D({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=h,m.fullField=m.fullField||h,m.type=n.getType(m),f[h]=f[h]||[],f[h].push({rule:m,value:g,source:i,field:h}))})});var b={};return Ob(f,s,function(h,p){var g=h.rule,C=(g.type==="object"||g.type==="array")&&(Ie(g.fields)==="object"||Ie(g.defaultField)==="object");C=C&&(g.required||!g.required&&h.value),g.field=h.field;function m(R,w){return D(D({},w),{},{fullField:"".concat(g.fullField,".").concat(R),fullFields:g.fullFields?[].concat(Ce(g.fullFields),[R]):[R]})}function y(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(R)?R:[R];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&g.message!==void 0&&(w=[].concat(g.message));var $=w.map(Dc(g,i));if(s.first&&$.length)return b[g.field]=1,p($);if(!C)p($);else{if(g.required&&!h.value)return g.message!==void 0?$=[].concat(g.message).map(Dc(g,i)):s.error&&($=[s.error(g,rr(s.messages.required,g.field))]),p($);var T={};g.defaultField&&Object.keys(h.value).map(function(A){T[A]=g.defaultField}),T=D(D({},T),h.rule.fields);var M={};Object.keys(T).forEach(function(A){var _=T[A],k=Array.isArray(_)?_:[_];M[A]=k.map(m.bind(null,A))});var F=new e(M);F.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),F.validate(h.value,h.rule.options||s,function(A){var _=[];$&&$.length&&_.push.apply(_,Ce($)),A&&A.length&&_.push.apply(_,Ce(A)),p(_.length?_:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,h.value,y,h.source,s);else if(g.validator){try{x=g.validator(g,h.value,y,h.source,s)}catch(R){var S,E;(S=(E=console).error)===null||S===void 0||S.call(E,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}x===!0?y():x===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):x instanceof Array?y(x):x instanceof Error&&y(x.message)}x&&x.then&&x.then(function(){return y()},function(R){return y(R)})},function(h){u(h)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!va.hasOwnProperty(r.type))throw new Error(rr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?va.required:va[this.getType(r)]||void 0}}]),e}();L(Fa,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");va[t]=r});L(Fa,"warning",yf);L(Fa,"messages",Ts);L(Fa,"validators",va);var Jt="'${name}' is not a valid ${type}",Sf={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:Jt,method:Jt,array:Jt,object:Jt,number:Jt,date:Jt,boolean:Jt,integer:Jt,float:Jt,regexp:Jt,email:Jt,url:Jt,hex:Jt},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}"}},Vc=Fa;function Yb(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Bc="CODE_LOGIC_ERROR";function Ms(e,t,r,n,a){return js.apply(this,arguments)}function js(){return js=fn(Yt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return Yt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=D({},n),delete i.ruleIndex,Vc.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(Bc)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Vc(L({},t,[i])),d=Pn(Sf,a.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(L({},t,r),D({},a)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(C,m){var y=C.message,x=y===Bc?d.default:y;return c.isValidElement(x)?c.cloneElement(x,{key:"error_".concat(m)}):x}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(C,m){return Ms("".concat(t,".").concat(m),C,l,a,o)}));case 21:return v=g.sent,g.abrupt("return",v.reduce(function(C,m){return[].concat(Ce(C),Ce(m))},[]));case 23:return b=D(D({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(C){return typeof C=="string"?Yb(C,b):C}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),js.apply(this,arguments)}function Zb(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=D(D({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,p,g){var C=!1,m=function(){for(var S=arguments.length,E=new Array(S),R=0;R<S;R++)E[R]=arguments[R];Promise.resolve().then(function(){st(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||g.apply(void 0,E)})},y=v(h,p,m);C=y&&typeof y.then=="function"&&typeof y.catch=="function",st(C,"`callback` is deprecated. Please return a promise instead."),C&&y.then(function(){g()}).catch(function(x){g(x||" ")})}),b}).sort(function(d,f){var v=d.warningOnly,b=d.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!v==!!h?b-p:v?1:-1}),l;if(a===!0)l=new Promise(function(){var d=fn(Yt().mark(function f(v,b){var h,p,g;return Yt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return p=s[h],m.next=5,Ms(i,t,p,n,o);case 5:if(g=m.sent,!g.length){m.next=9;break}return b([{errors:g,rule:p}]),m.abrupt("return");case 9:h+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return Ms(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Jb(u):Qb(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function Qb(e){return As.apply(this,arguments)}function As(){return As=fn(Yt().mark(function e(t){return Yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,Ce(a));return i}));case 1:case"end":return n.stop()}},e)})),As.apply(this,arguments)}function Jb(e){return Fs.apply(this,arguments)}function Fs(){return Fs=fn(Yt().mark(function e(t){var r;return Yt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),Fs.apply(this,arguments)}function $t(e){return Ps(e)}function Hc(e,t){var r={};return t.forEach(function(n){var a=Or(e,n);r=vr(r,n,a)}),r}function Nn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return xf(t,n,r)})}function xf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function ey(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ie(e)!=="object"||Ie(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return Ce(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function ty(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ie(t.target)==="object"&&e in t.target?t.target[e]:t}function Wc(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(Ce(e.slice(0,r)),[a],Ce(e.slice(r,t)),Ce(e.slice(t+1,n))):o<0?[].concat(Ce(e.slice(0,t)),Ce(e.slice(t+1,r+1)),[a],Ce(e.slice(r+1,n))):e}var ry=["name"],ar=[];function Ri(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var Cl=function(e){Zr(r,e);var t=Qr(r);function r(n){var a;if(Lt(this,r),a=t.call(this,n),L(Ge(a),"state",{resetCount:0}),L(Ge(a),"cancelRegisterFunc",null),L(Ge(a),"mounted",!1),L(Ge(a),"touched",!1),L(Ge(a),"dirty",!1),L(Ge(a),"validatePromise",void 0),L(Ge(a),"prevValidating",void 0),L(Ge(a),"errors",ar),L(Ge(a),"warnings",ar),L(Ge(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,$t(f)),a.cancelRegisterFunc=null}),L(Ge(a),"getNamePath",function(){var l=a.props,u=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return u!==void 0?[].concat(Ce(v),Ce(u)):[]}),L(Ge(a),"getRules",function(){var l=a.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),L(Ge(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(Ge(a),"metaCache",null),L(Ge(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=D(D({},a.getMeta()),{},{destroy:l});Ca(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),L(Ge(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,g=d.store,C=a.getNamePath(),m=a.getValue(l),y=a.getValue(g),x=u&&Nn(u,C);switch(d.type==="valueUpdate"&&d.source==="external"&&!Ca(m,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=ar,a.warnings=ar,a.triggerMetaEvent()),d.type){case"reset":if(!u||x){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=ar,a.warnings=ar,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&Ri(v,l,g,m,y,d)){a.reRender();return}break}case"setField":{var S=d.data;if(x){"touched"in S&&(a.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(a.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(a.errors=S.errors||ar),"warnings"in S&&(a.warnings=S.warnings||ar),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in S&&Nn(u,C,!0)){a.reRender();return}if(v&&!C.length&&Ri(v,l,g,m,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map($t);if(E.some(function(R){return Nn(d.relatedFields,R)})){a.reRender();return}break}default:if(x||(!h.length||C.length||v)&&Ri(v,l,g,m,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(Ge(a),"validateRules",function(l){var u=a.getNamePath(),d=a.getValue(),f=l||{},v=f.triggerName,b=f.validateOnly,h=b===void 0?!1:b,p=Promise.resolve().then(fn(Yt().mark(function g(){var C,m,y,x,S,E,R;return Yt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(C=a.props,m=C.validateFirst,y=m===void 0?!1:m,x=C.messageVariables,S=C.validateDebounce,E=a.getRules(),v&&(E=E.filter(function(T){return T}).filter(function(T){var M=T.validateTrigger;if(!M)return!0;var F=Ps(M);return F.includes(v)})),!(S&&v)){$.next=10;break}return $.next=8,new Promise(function(T){setTimeout(T,S)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=Zb(u,d,E,l,y,x),R.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ar;if(a.validatePromise===p){var M;a.validatePromise=null;var F=[],A=[];(M=T.forEach)===null||M===void 0||M.call(T,function(_){var k=_.rule.warningOnly,N=_.errors,O=N===void 0?ar:N;k?A.push.apply(A,Ce(O)):F.push.apply(F,Ce(O))}),a.errors=F,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",R);case 13:case"end":return $.stop()}},g)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=ar,a.warnings=ar,a.triggerMetaEvent(),a.reRender()),p}),L(Ge(a),"isFieldValidating",function(){return!!a.validatePromise}),L(Ge(a),"isFieldTouched",function(){return a.touched}),L(Ge(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,u=l.getInternalHooks(on),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),L(Ge(a),"getErrors",function(){return a.errors}),L(Ge(a),"getWarnings",function(){return a.warnings}),L(Ge(a),"isListField",function(){return a.props.isListField}),L(Ge(a),"isList",function(){return a.props.isList}),L(Ge(a),"isPreserve",function(){return a.props.preserve}),L(Ge(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),L(Ge(a),"getOnlyChild",function(l){if(typeof l=="function"){var u=a.getMeta();return D(D({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=Rr(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Ge(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Or(l||u(!0),d)}),L(Ge(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,v=u.validateTrigger,b=u.getValueFromEvent,h=u.normalize,p=u.valuePropName,g=u.getValueProps,C=u.fieldContext,m=v!==void 0?v:C.validateTrigger,y=a.getNamePath(),x=C.getInternalHooks,S=C.getFieldsValue,E=x(on),R=E.dispatch,w=a.getValue(),$=g||function(_){return L({},p,_)},T=l[f],M=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&M&&Object.keys(M).forEach(function(_){st(typeof M[_]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(_,")"))});var F=D(D({},l),M);F[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var _,k=arguments.length,N=new Array(k),O=0;O<k;O++)N[O]=arguments[O];b?_=b.apply(void 0,N):_=ty.apply(void 0,[p].concat(N)),h&&(_=h(_,w,S(!0))),R({type:"updateValue",namePath:y,value:_}),T&&T.apply(void 0,N)};var A=Ps(m||[]);return A.forEach(function(_){var k=F[_];F[_]=function(){k&&k.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&R({type:"validateField",namePath:y,triggerName:_})}}),F}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(on),s=i.initEntityValue;s(Ge(a))}return a}return Dt(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(on),u=l.registerField;this.cancelRegisterFunc=u(this)}o===!0&&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 a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,l=i.isFunction,u;return l?u=s:c.isValidElement(s)?u=c.cloneElement(s,this.getControlled(s.props)):(st(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(Cl,"contextType",Vn);L(Cl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Ef(e){var t=e.name,r=Je(e,ry),n=c.useContext(Vn),a=c.useContext(jo),o=t!==void 0?$t(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&r.isListField&&o.length<=1&&st(!1,"`preserve` should not apply on Form.List fields."),c.createElement(Cl,xe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function ny(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(Vn),l=c.useContext(jo),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=$t(s.prefixName)||[];return[].concat(Ce(p),Ce($t(t)))},[s.prefixName,t]),v=c.useMemo(function(){return D(D({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(g){var C=f.length,m=g[C];return[d.keys[m],g.slice(C+1)]}}},[f]);if(typeof n!="function")return st(!1,"Form.List only accepts function as children."),null;var h=function(g,C,m){var y=m.source;return y==="internal"?!1:g!==C};return c.createElement(jo.Provider,{value:b},c.createElement(Vn.Provider,{value:v},c.createElement(Ef,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,g){var C=p.value,m=C===void 0?[]:C,y=p.onChange,x=s.getFieldValue,S=function(){var $=x(f||[]);return $||[]},E={add:function($,T){var M=S();T>=0&&T<=M.length?(d.keys=[].concat(Ce(d.keys.slice(0,T)),[d.id],Ce(d.keys.slice(T))),y([].concat(Ce(M.slice(0,T)),[$],Ce(M.slice(T))))):(process.env.NODE_ENV!=="production"&&(T<0||T>M.length)&&st(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(Ce(d.keys),[d.id]),y([].concat(Ce(M),[$]))),d.id+=1},remove:function($){var T=S(),M=new Set(Array.isArray($)?$:[$]);M.size<=0||(d.keys=d.keys.filter(function(F,A){return!M.has(A)}),y(T.filter(function(F,A){return!M.has(A)})))},move:function($,T){if($!==T){var M=S();$<0||$>=M.length||T<0||T>=M.length||(d.keys=Wc(d.keys,$,T),y(Wc(M,$,T)))}}},R=m||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&st(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(R.map(function(w,$){var T=d.keys[$];return T===void 0&&(d.keys[$]=d.id,T=d.keys[$],d.id+=1),{name:$,key:T,isListField:!0}}),E,g)})))}function ay(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),a(n))})})}):Promise.resolve([])}var wf="__@field_split__";function Pi(e){return e.map(function(t){return"".concat(Ie(t),":").concat(t)}).join(wf)}var yn=function(){function e(){Lt(this,e),L(this,"kvs",new Map)}return Dt(e,[{key:"set",value:function(r,n){this.kvs.set(Pi(r),n)}},{key:"get",value:function(r){return this.kvs.get(Pi(r))}},{key:"update",value:function(r,n){var a=this.get(r),o=n(a);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Pi(r))}},{key:"map",value:function(r){return Ce(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(wf);return r({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),d=U(u,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,o=n.value;return r[a.join(".")]=o,null}),r}}]),e}(),oy=["name"],iy=Dt(function e(t){var r=this;Lt(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),L(this,"getInternalHooks",function(n){return n===on?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(st(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(n){r.subscribable=n}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=Pn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=vr(i,l,Or(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new yn;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),L(this,"getInitialValue",function(n){var a=Or(r.initialValues,n);return n.length?Pn(a):a}),L(this,"setCallbacks",function(n){r.callbacks=n}),L(this,"setValidateMessages",function(n){r.validateMessages=n}),L(this,"setPreserve",function(n){r.preserve=n}),L(this,"watchList",[]),L(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),L(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||st(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),L(this,"updateStore",function(n){r.store=n}),L(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),L(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new yn;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),L(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=$t(o);return a.get(i)||{INVALIDATE_NAME_PATH:$t(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Ie(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(d){var f,v,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,p;if((h=(p=d).isList)!==null&&h!==void 0&&h.call(p))return}else if(!o&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)u.push(b);else{var g="getMeta"in d?d.getMeta():null;i(g)&&u.push(b)}}),Hc(r.store,u.map($t))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=$t(n);return Or(r.store,a)}),L(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:$t(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=$t(n),o=r.getFieldsError([a])[0];return o.warnings}),L(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,u=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map($t),u=!1):(l=null,u=i):(l=i.map($t),u=s);var d=r.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return u?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new yn;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var g=p.getNamePath();l.forEach(function(C){C.every(function(m,y){return g[y]===m})&&v.update(C,function(m){return[].concat(Ce(m),[p])})})});var b=function(g){return g.some(f)},h=v.map(function(p){var g=p.value;return g});return u?h.every(b):h.some(b)}),L(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),L(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map($t);return a.some(function(i){var s=i.getNamePath();return Nn(o,s)&&i.isFieldValidating()})}),L(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),L(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new yn,o=r.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:l,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),b=r.getInitialValue(v);if(b!==void 0)st(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var h=a.get(v);if(h&&h.size>1)st(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=r.getFieldValue(v),g=d.isListField();!g&&(!n.skipExist||p===void 0)&&r.updateStore(vr(r.store,v,Ce(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var u=a.get(l);if(u){var d;(d=s).push.apply(d,Ce(Ce(u).map(function(f){return f.entity})))}})):s=o,i(s)}),L(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(Pn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map($t);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(vr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),L(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=Je(i,oy),u=$t(s);o.push(u),"value"in l&&r.updateStore(vr(r.store,u,l.value)),r.notifyObservers(a,[u],{type:"setField",data:i})}),r.notifyWatch(o)}),L(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=D(D({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),L(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=Or(r.store,o);i===void 0&&r.updateStore(vr(r.store,o,a))}}),L(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),L(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var u=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==u&&r.fieldEntities.every(function(f){return!xf(f.getNamePath(),a)})){var d=r.store;r.updateStore(vr(d,a,u,!0)),r.notifyObservers(d,[a],{type:"remove"}),r.triggerDependenciesUpdate(d,a)}}r.notifyWatch([a])}}),L(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),L(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=D(D({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,i)})}else r.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Ce(o))}),o}),L(this,"updateValue",function(n,a){var o=$t(n),i=r.store;r.updateStore(vr(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),l=r.callbacks.onValuesChange;if(l){var u=Hc(r.store,[o]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(Ce(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=Pn(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),L(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),L(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new yn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=$t(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),l(v))}})};return s(n),o}),L(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new yn;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=i.filter(function(u){var d=u.name;return Nn(n,d)});l.length&&o(l,i)}}),L(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,l=s?o.map($t):[],u=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,h=v.dirty;r.getFieldEntities(!0).forEach(function(m){if(s||l.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var y=m.getNamePath();if(f.add(y.join(d)),!s||Nn(l,y,b)){var x=m.validateRules(D({validateMessages:D(D({},Sf),r.validateMessages)},i));u.push(x.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(S){var E,R=[],w=[];return(E=S.forEach)===null||E===void 0||E.call(S,function($){var T=$.rule.warningOnly,M=$.errors;T?w.push.apply(w,Ce(M)):R.push.apply(R,Ce(M))}),R.length?Promise.reject({name:y,errors:R,warnings:w}):{name:y,errors:R,warnings:w}}))}}});var p=ay(u);r.lastValidatePromise=p,p.catch(function(m){return m}).then(function(m){var y=m.map(function(x){var S=x.name;return S});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var g=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var y=m.filter(function(x){return x&&x.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});g.catch(function(m){return m});var C=l.filter(function(m){return f.has(m.join(d))});return r.triggerOnFieldsChange(C),g}),L(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function $f(e){var t=c.useRef(),r=c.useState({}),n=U(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new iy(o);t.current=i.getForm()}return[t.current]}var Ls=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sy=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(Ls),s=c.useRef({});return c.createElement(Ls.Provider,{value:D(D({},i),{},{validateMessages:D(D({},i.validateMessages),r),triggerFormChange:function(u,d){n&&n(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=D(D({},s.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=D({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},ly=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],cy=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,l=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,v=t.validateTrigger,b=v===void 0?"onChange":v,h=t.onValuesChange,p=t.onFieldsChange,g=t.onFinish,C=t.onFinishFailed,m=t.clearOnDestroy,y=Je(t,ly),x=c.useRef(null),S=c.useContext(Ls),E=$f(i),R=U(E,1),w=R[0],$=w.getInternalHooks(on),T=$.useSubscribe,M=$.setInitialValues,F=$.setCallbacks,A=$.setValidateMessages,_=$.setPreserve,k=$.destroyForm;c.useImperativeHandle(r,function(){return D(D({},w),{},{nativeElement:x.current})}),c.useEffect(function(){return S.registerForm(n,w),function(){S.unregisterForm(n)}},[S,w,n]),A(D(D({},S.validateMessages),f)),F({onValuesChange:h,onFieldsChange:function(q){if(S.triggerFormChange(n,q),p){for(var Y=arguments.length,J=new Array(Y>1?Y-1:0),ee=1;ee<Y;ee++)J[ee-1]=arguments[ee];p.apply(void 0,[q].concat(J))}},onFinish:function(q){S.triggerFormFinish(n,q),g&&g(q)},onFinishFailed:C}),_(s);var N=c.useRef(null);M(a,!N.current),N.current||(N.current=!0),c.useEffect(function(){return function(){return k(m)}},[]);var O,j=typeof l=="function";if(j){var z=w.getFieldsValue(!0);O=l(z,w)}else O=l;T(!j);var V=c.useRef();c.useEffect(function(){ey(V.current||[],o||[])||w.setFields(o||[]),V.current=o},[o,w]);var H=c.useMemo(function(){return D(D({},w),{},{validateTrigger:b})},[w,b]),K=c.createElement(jo.Provider,{value:null},c.createElement(Vn.Provider,{value:H},O));return d===!1?K:c.createElement(d,xe({},y,{ref:x,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Y;q.preventDefault(),w.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,q)}}),K)};function Gc(e){try{return JSON.stringify(e)}catch{return Math.random()}}var uy=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);st(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function dy(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],o=a===void 0?{}:a,i=yb(o)?{form:o}:o,s=i.form,l=P.useState(),u=U(l,2),d=u[0],f=u[1],v=P.useMemo(function(){return Gc(d)},[d]),b=P.useRef(v);b.current=v;var h=P.useContext(Vn),p=s||h,g=p&&p._init;process.env.NODE_ENV!=="production"&&st(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var C=$t(n),m=P.useRef(C);return m.current=C,uy(C),P.useEffect(function(){if(g){var y=p.getFieldsValue,x=p.getInternalHooks,S=x(on),E=S.registerWatch,R=function(M,F){var A=i.preserve?F:M;return typeof n=="function"?n(A):Or(A,m.current)},w=E(function(T,M){var F=R(T,M),A=Gc(F);b.current!==A&&(b.current=A,f(F))}),$=R(y(),y(!0));return d!==$&&f($),w}},[g]),d}var fy=c.forwardRef(cy),La=fy;La.FormProvider=sy;La.Field=Ef;La.List=ny;La.useForm=$f;La.useWatch=dy;const Bn=c.createContext({});process.env.NODE_ENV!=="production"&&(Bn.displayName="FormItemInputContext");const vy=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext(Bn),o=P.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return c.createElement(Bn.Provider,{value:o},t)},gy=P.createContext(void 0),Ds=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=P.createElement(vy,{override:!0,status:!0},a)),t&&(a=P.createElement(_0,null,a)),a};var Of=function(t){if(Xt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},my=function(t,r){if(!Of(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Uc(e,t){return!Array.isArray(e)&&t!==void 0?my(e,t):Of(e)}const Xo=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:o}=e,i=Z({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=Z({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=c.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return c.createElement("span",{className:Z(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},py=new Ot("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Yo=e=>({height:e,lineHeight:Q(e)}),In=e=>Object.assign({width:e},Yo(e)),hy=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:py,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),_i=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Yo(e)),by=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},In(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},In(a)),[`${t}${t}-sm`]:Object.assign({},In(o))}},yy=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:r},_i(t,s)),[`${n}-lg`]:Object.assign({},_i(a,s)),[`${n}-sm`]:Object.assign({},_i(o,s))}},Kc=e=>Object.assign({width:e},Yo(e)),Cy=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:a},Kc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Kc(r)),{maxWidth:o(r).mul(4).equal(),maxHeight:o(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Ti=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},Ni=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Yo(e)),Sy=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},Ni(n,s))},Ti(e,n,r)),{[`${r}-lg`]:Object.assign({},Ni(a,s))}),Ti(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},Ni(o,s))}),Ti(e,o,`${r}-sm`))},xy=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:b,borderRadius:h,titleHeight:p,blockRadius:g,paragraphLiHeight:C,controlHeightXS:m,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},In(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},In(u)),[`${r}-sm`]:Object.assign({},In(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:m}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Sy(e)),by(e)),yy(e)),Cy(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
229
|
-
${n},
|
|
230
|
-
${a} > li,
|
|
227
|
+
`.concat(o?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
228
|
+
}`),i)}else Vs(i);return function(){Vs(i)}},[t,i])}var v4=!1;function g4(e){return v4}var Cb=function(t){return t===!1?!1:!Hn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},bm=g.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,a=e.debug,o=e.autoDestroy,s=o===void 0?!0:o,l=e.children,c=g.useState(n),u=ae(c,2),d=u[0],f=u[1],h=d||n;process.env.NODE_ENV!=="production"&&yt(Hn()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),g.useEffect(function(){(s||n)&&f(n)},[n,s]);var p=g.useState(function(){return Cb(i)}),m=ae(p,2),v=m[0],y=m[1];g.useEffect(function(){var F=Cb(i);y(F??null)});var b=l4(h&&!v,a),x=ae(b,2),C=x[0],S=x[1],w=v??C;h4(r&&n&&Hn()&&(w===C||w===document.body));var O=null;if(l&&ya(l)&&t){var E=l;O=E.ref}var _=Ro(O,t);if(!h||!Hn()||v===void 0)return null;var T=w===!1||g4(),R=l;return t&&(R=g.cloneElement(l,{ref:_})),g.createElement(_2.Provider,{value:S},T?R:vi.createPortal(R,w))});process.env.NODE_ENV!=="production"&&(bm.displayName="Portal");function m4(){var e=te({},g);return e.useId}var wb=0,$b=m4();const p4=$b?function(t){var n=$b();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=g.useState("ssr-id"),r=ae(n,2),i=r[0],a=r[1];return g.useEffect(function(){var o=wb;wb+=1,a("rc_unique_".concat(o))},[]),t||(process.env.NODE_ENV==="test"?"test-id":i)};var ea="RC_FORM_INTERNAL_HOOKS",Yt=function(){yt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},yo=g.createContext({getFieldValue:Yt,getFieldsValue:Yt,getFieldError:Yt,getFieldWarning:Yt,getFieldsError:Yt,isFieldsTouched:Yt,isFieldTouched:Yt,isFieldValidating:Yt,isFieldsValidating:Yt,resetFields:Yt,setFields:Yt,setFieldValue:Yt,setFieldsValue:Yt,validateFields:Yt,submit:Yt,getInternalHooks:function(){return Yt(),{dispatch:Yt,initEntityValue:Yt,registerField:Yt,useSubscribe:Yt,setInitialValues:Yt,destroyForm:Yt,setCallbacks:Yt,registerWatch:Yt,getFields:Yt,setValidateMessages:Yt,setPreserve:Yt,getInitialValue:Yt}}}),Zc=g.createContext(null);function Tv(e){return e==null?[]:Array.isArray(e)?e:[e]}function b4(e){return e&&!!e._init}function Rv(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Pv=Rv();function y4(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function x4(e,t,n){if(Kg())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Fs(i,n.prototype),i}function Iv(e){var t=typeof Map=="function"?new Map:void 0;return Iv=function(r){if(r===null||!y4(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return x4(r,arguments,zs(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Fs(i,r)},Iv(e)}var S4=/%[sdj%]/g,E2=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(E2=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Av(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function or(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var o=e.replace(S4,function(s){if(s==="%%")return"%";if(i>=a)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function C4(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function yn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||C4(t)&&typeof e=="string"&&!e)}function w4(e,t,n){var r=[],i=0,a=e.length;function o(s){r.push.apply(r,Ge(s||[])),i++,i===a&&n(r)}e.forEach(function(s){t(s,o)})}function _b(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<i?t(e[s],a):n([])}a([])}function $4(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ge(e[n]||[]))}),t}var Eb=function(e){zi(n,e);var t=Bi(n);function n(r,i){var a;return Mn(this,n),a=t.call(this,"Async Validation Error"),ee(Et(a),"errors",void 0),ee(Et(a),"fields",void 0),a.errors=r,a.fields=i,a}return Tn(n)}(Iv(Error));function _4(e,t,n,r,i){if(t.first){var a=new Promise(function(f,h){var p=function(y){return r(y),y.length?h(new Eb(y,Av(y))):f(i)},m=$4(e);_b(m,n,p)});return a.catch(function(f){return f}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,h){var p=function(v){if(u.push.apply(u,v),c++,c===l)return r(u),u.length?h(new Eb(u,Av(u))):f(i)};s.length||(r(u),f(i)),s.forEach(function(m){var v=e[m];o.indexOf(m)!==-1?_b(v,n,p):w4(v,n,p)})});return d.catch(function(f){return f}),d}function E4(e){return!!(e&&e.message!==void 0)}function O4(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Ob(e,t){return function(n){var r;return e.fullFields?r=O4(t,e.fullFields):r=t[n.field||e.fullField],E4(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Mb(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ut(r)==="object"&&ut(e[n])==="object"?e[n]=te(te({},e[n]),r):e[n]=r}}return e}var ja="enum",M4=function(t,n,r,i,a){t[ja]=Array.isArray(t[ja])?t[ja]:[],t[ja].indexOf(n)===-1&&i.push(or(a.messages[ja],t.fullField,t[ja].join(", ")))},T4=function(t,n,r,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(or(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||i.push(or(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},R4=function(t,n,r,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",h=typeof n=="string",p=Array.isArray(n);if(f?d="number":h?d="string":p&&(d="array"),!d)return!1;p&&(u=n.length),h&&(u=n.replace(c,"_").length),o?u!==t.len&&i.push(or(a.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?i.push(or(a.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?i.push(or(a.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&i.push(or(a.messages[d].range,t.fullField,t.min,t.max))},O2=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||yn(n,o||t.type))&&i.push(or(a.messages.required,t.fullField))},ac;const P4=function(){if(ac)return ac;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(o).concat(t(w),")"),"g")};u.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(n).concat(t(S)),"g")},u.v6=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(o).concat(t(S)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,p=u.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',C="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(h,"|").concat(p,"|").concat(m).concat(v).concat(y,")").concat(b).concat(x);return ac=new RegExp("(?:^".concat(C,"$)"),"i"),ac};var Tb={email:/^(([^<>()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ws={integer:function(t){return ws.number(t)&&parseInt(t,10)===t},float:function(t){return ws.number(t)&&!ws.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ut(t)==="object"&&!ws.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Tb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(P4())},hex:function(t){return typeof t=="string"&&!!t.match(Tb.hex)}},I4=function(t,n,r,i,a){if(t.required&&n===void 0){O2(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?ws[s](n)||i.push(or(a.messages.types[s],t.fullField,t.type)):s&&ut(n)!==t.type&&i.push(or(a.messages.types[s],t.fullField,t.type))},A4=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(or(a.messages.whitespace,t.fullField))};const Pt={required:O2,whitespace:A4,type:I4,range:R4,enum:M4,pattern:T4};var N4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,i,o,a)}r(o)},k4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Pt.required(t,n,i,o,a,"array"),n!=null&&(Pt.type(t,n,i,o,a),Pt.range(t,n,i,o,a))}r(o)},j4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,i,o,a),n!==void 0&&Pt.type(t,n,i,o,a)}r(o)},L4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n,"date")&&!t.required)return r();if(Pt.required(t,n,i,o,a),!yn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Pt.type(t,l,i,o,a),l&&Pt.range(t,l.getTime(),i,o,a)}}r(o)},D4="enum",F4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,i,o,a),n!==void 0&&Pt[D4](t,n,i,o,a)}r(o)},z4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,i,o,a),n!==void 0&&(Pt.type(t,n,i,o,a),Pt.range(t,n,i,o,a))}r(o)},B4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,i,o,a),n!==void 0&&(Pt.type(t,n,i,o,a),Pt.range(t,n,i,o,a))}r(o)},V4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,i,o,a),n!==void 0&&Pt.type(t,n,i,o,a)}r(o)},W4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),yn(n)&&!t.required)return r();Pt.required(t,n,i,o,a),n!==void 0&&(Pt.type(t,n,i,o,a),Pt.range(t,n,i,o,a))}r(o)},H4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,i,o,a),n!==void 0&&Pt.type(t,n,i,o,a)}r(o)},U4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n,"string")&&!t.required)return r();Pt.required(t,n,i,o,a),yn(n,"string")||Pt.pattern(t,n,i,o,a)}r(o)},G4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n)&&!t.required)return r();Pt.required(t,n,i,o,a),yn(n)||Pt.type(t,n,i,o,a)}r(o)},q4=function(t,n,r,i,a){var o=[],s=Array.isArray(n)?"array":ut(n);Pt.required(t,n,i,o,a,s),r(o)},K4=function(t,n,r,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(yn(n,"string")&&!t.required)return r();Pt.required(t,n,i,o,a,"string"),yn(n,"string")||(Pt.type(t,n,i,o,a),Pt.range(t,n,i,o,a),Pt.pattern(t,n,i,o,a),t.whitespace===!0&&Pt.whitespace(t,n,i,o,a))}r(o)},jf=function(t,n,r,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yn(n,o)&&!t.required)return r();Pt.required(t,n,i,s,a,o),yn(n,o)||Pt.type(t,n,i,s,a)}r(s)};const Is={string:K4,method:V4,number:W4,boolean:j4,regexp:G4,integer:B4,float:z4,array:k4,object:H4,enum:F4,pattern:U4,date:L4,url:jf,hex:jf,email:jf,required:q4,any:N4};var wl=function(){function e(t){Mn(this,e),ee(this,"rules",null),ee(this,"_messages",Pv),this.define(t)}return Tn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ut(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=Mb(Rv(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=i,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(p){var m=[],v={};function y(x){if(Array.isArray(x)){var C;m=(C=m).concat.apply(C,Ge(x))}else m.push(x)}for(var b=0;b<p.length;b++)y(p[b]);m.length?(v=Av(m),l(m,v)):l(null,o)}if(s.messages){var u=this.messages();u===Pv&&(u=Rv()),Mb(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},f=s.keys||Object.keys(this.rules);f.forEach(function(p){var m=r.rules[p],v=o[p];m.forEach(function(y){var b=y;typeof b.transform=="function"&&(o===n&&(o=te({},o)),v=o[p]=b.transform(v),v!=null&&(b.type=b.type||(Array.isArray(v)?"array":ut(v)))),typeof b=="function"?b={validator:b}:b=te({},b),b.validator=r.getValidationMethod(b),b.validator&&(b.field=p,b.fullField=b.fullField||p,b.type=r.getType(b),d[p]=d[p]||[],d[p].push({rule:b,value:v,source:o,field:p}))})});var h={};return _4(d,s,function(p,m){var v=p.rule,y=(v.type==="object"||v.type==="array")&&(ut(v.fields)==="object"||ut(v.defaultField)==="object");y=y&&(v.required||!v.required&&p.value),v.field=p.field;function b(O,E){return te(te({},E),{},{fullField:"".concat(v.fullField,".").concat(O),fullFields:v.fullFields?[].concat(Ge(v.fullFields),[O]):[O]})}function x(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(O)?O:[O];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&v.message!==void 0&&(E=[].concat(v.message));var _=E.map(Ob(v,o));if(s.first&&_.length)return h[v.field]=1,m(_);if(!y)m(_);else{if(v.required&&!p.value)return v.message!==void 0?_=[].concat(v.message).map(Ob(v,o)):s.error&&(_=[s.error(v,or(s.messages.required,v.field))]),m(_);var T={};v.defaultField&&Object.keys(p.value).map(function(I){T[I]=v.defaultField}),T=te(te({},T),p.rule.fields);var R={};Object.keys(T).forEach(function(I){var P=T[I],k=Array.isArray(P)?P:[P];R[I]=k.map(b.bind(null,I))});var F=new e(R);F.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),F.validate(p.value,p.rule.options||s,function(I){var P=[];_&&_.length&&P.push.apply(P,Ge(_)),I&&I.length&&P.push.apply(P,Ge(I)),m(P.length?P:null)})}}var C;if(v.asyncValidator)C=v.asyncValidator(v,p.value,x,p.source,s);else if(v.validator){try{C=v.validator(v,p.value,x,p.source,s)}catch(O){var S,w;(S=(w=console).error)===null||S===void 0||S.call(w,O),s.suppressValidatorError||setTimeout(function(){throw O},0),x(O.message)}C===!0?x():C===!1?x(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):C instanceof Array?x(C):C instanceof Error&&x(C.message)}C&&C.then&&C.then(function(){return x()},function(O){return x(O)})},function(p){c(p)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Is.hasOwnProperty(n.type))throw new Error(or("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Is.required:Is[this.getType(n)]||void 0}}]),e}();ee(wl,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Is[t]=n});ee(wl,"warning",E2);ee(wl,"messages",Pv);ee(wl,"validators",Is);var ir="'${name}' is not a valid ${type}",M2={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:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},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}"}},Rb=wl;function Y4(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Pb="CODE_LOGIC_ERROR";function Nv(e,t,n,r,i){return kv.apply(this,arguments)}function kv(){return kv=Sa(Zn().mark(function e(t,n,r,i,a){var o,s,l,c,u,d,f,h,p;return Zn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=te({},r),delete o.ruleIndex,Rb.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(Pb)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new Rb(ee({},t,[o])),u=Ja(M2,i.validateMessages),c.messages(u),d=[],v.prev=10,v.next=13,Promise.resolve(c.validate(ee({},t,n),te({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(d=v.t0.errors.map(function(y,b){var x=y.message,C=x===Pb?u.default:x;return g.isValidElement(C)?g.cloneElement(C,{key:"error_".concat(b)}):C}));case 18:if(!(!d.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,b){return Nv("".concat(t,".").concat(b),y,l,i,a)}));case 21:return f=v.sent,v.abrupt("return",f.reduce(function(y,b){return[].concat(Ge(y),Ge(b))},[]));case 23:return h=te(te({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),p=d.map(function(y){return typeof y=="string"?Y4(y,h):y}),v.abrupt("return",p);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),kv.apply(this,arguments)}function X4(e,t,n,r,i,a){var o=e.join("."),s=n.map(function(u,d){var f=u.validator,h=te(te({},u),{},{ruleIndex:d});return f&&(h.validator=function(p,m,v){var y=!1,b=function(){for(var S=arguments.length,w=new Array(S),O=0;O<S;O++)w[O]=arguments[O];Promise.resolve().then(function(){yt(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,w)})},x=f(p,m,b);y=x&&typeof x.then=="function"&&typeof x.catch=="function",yt(y,"`callback` is deprecated. Please return a promise instead."),y&&x.then(function(){v()}).catch(function(C){v(C||" ")})}),h}).sort(function(u,d){var f=u.warningOnly,h=u.ruleIndex,p=d.warningOnly,m=d.ruleIndex;return!!f==!!p?h-m:f?1:-1}),l;if(i===!0)l=new Promise(function(){var u=Sa(Zn().mark(function d(f,h){var p,m,v;return Zn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:p=0;case 1:if(!(p<s.length)){b.next=12;break}return m=s[p],b.next=5,Nv(o,t,m,r,a);case 5:if(v=b.sent,!v.length){b.next=9;break}return h([{errors:v,rule:m}]),b.abrupt("return");case 9:p+=1,b.next=1;break;case 12:f([]);case 13:case"end":return b.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return Nv(o,t,u,r,a).then(function(d){return{errors:d,rule:u}})});l=(i?Q4(c):Z4(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function Z4(e){return jv.apply(this,arguments)}function jv(){return jv=Sa(Zn().mark(function e(t){return Zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var a,o=(a=[]).concat.apply(a,Ge(i));return o}));case 1:case"end":return r.stop()}},e)})),jv.apply(this,arguments)}function Q4(e){return Lv.apply(this,arguments)}function Lv(){return Lv=Sa(Zn().mark(function e(t){var n;return Zn().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(a){t.forEach(function(o){o.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return i.stop()}},e)})),Lv.apply(this,arguments)}function un(e){return Tv(e)}function Ib(e,t){var n={};return t.forEach(function(r){var i=Kr(e,r);n=Ar(n,r,i)}),n}function ao(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return T2(t,r,n)})}function T2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function J4(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ut(e)!=="object"||ut(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Ge(i).every(function(a){var o=e[a],s=t[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function eP(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ut(t.target)==="object"&&e in t.target?t.target[e]:t}function Ab(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(Ge(e.slice(0,n)),[i],Ge(e.slice(n,t)),Ge(e.slice(t+1,r))):a<0?[].concat(Ge(e.slice(0,t)),Ge(e.slice(t+1,n+1)),[i],Ge(e.slice(n+1,r))):e}var tP=["name"],gr=[];function Lf(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var ym=function(e){zi(n,e);var t=Bi(n);function n(r){var i;if(Mn(this,n),i=t.call(this,r),ee(Et(i),"state",{resetCount:0}),ee(Et(i),"cancelRegisterFunc",null),ee(Et(i),"mounted",!1),ee(Et(i),"touched",!1),ee(Et(i),"dirty",!1),ee(Et(i),"validatePromise",void 0),ee(Et(i),"prevValidating",void 0),ee(Et(i),"errors",gr),ee(Et(i),"warnings",gr),ee(Et(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,un(d)),i.cancelRegisterFunc=null}),ee(Et(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(Ge(f),Ge(c)):[]}),ee(Et(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),ee(Et(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ee(Et(i),"metaCache",null),ee(Et(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=te(te({},i.getMeta()),{},{destroy:l});Ws(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),ee(Et(i),"onStoreChange",function(l,c,u){var d=i.props,f=d.shouldUpdate,h=d.dependencies,p=h===void 0?[]:h,m=d.onReset,v=u.store,y=i.getNamePath(),b=i.getValue(l),x=i.getValue(v),C=c&&ao(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!Ws(b,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=gr,i.warnings=gr,i.triggerMetaEvent()),u.type){case"reset":if(!c||C){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=gr,i.warnings=gr,i.triggerMetaEvent(),m==null||m(),i.refresh();return}break;case"remove":{if(f&&Lf(f,l,v,b,x,u)){i.reRender();return}break}case"setField":{var S=u.data;if(C){"touched"in S&&(i.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(i.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(i.errors=S.errors||gr),"warnings"in S&&(i.warnings=S.warnings||gr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in S&&ao(c,y,!0)){i.reRender();return}if(f&&!y.length&&Lf(f,l,v,b,x,u)){i.reRender();return}break}case"dependenciesUpdate":{var w=p.map(un);if(w.some(function(O){return ao(u.relatedFields,O)})){i.reRender();return}break}default:if(C||(!p.length||y.length||f)&&Lf(f,l,v,b,x,u)){i.reRender();return}break}f===!0&&i.reRender()}),ee(Et(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),d=l||{},f=d.triggerName,h=d.validateOnly,p=h===void 0?!1:h,m=Promise.resolve().then(Sa(Zn().mark(function v(){var y,b,x,C,S,w,O;return Zn().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(i.mounted){_.next=2;break}return _.abrupt("return",[]);case 2:if(y=i.props,b=y.validateFirst,x=b===void 0?!1:b,C=y.messageVariables,S=y.validateDebounce,w=i.getRules(),f&&(w=w.filter(function(T){return T}).filter(function(T){var R=T.validateTrigger;if(!R)return!0;var F=Tv(R);return F.includes(f)})),!(S&&f)){_.next=10;break}return _.next=8,new Promise(function(T){setTimeout(T,S)});case 8:if(i.validatePromise===m){_.next=10;break}return _.abrupt("return",[]);case 10:return O=X4(c,u,w,l,x,C),O.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gr;if(i.validatePromise===m){var R;i.validatePromise=null;var F=[],I=[];(R=T.forEach)===null||R===void 0||R.call(T,function(P){var k=P.rule.warningOnly,A=P.errors,M=A===void 0?gr:A;k?I.push.apply(I,Ge(M)):F.push.apply(F,Ge(M))}),i.errors=F,i.warnings=I,i.triggerMetaEvent(),i.reRender()}}),_.abrupt("return",O);case 13:case"end":return _.stop()}},v)})));return p||(i.validatePromise=m,i.dirty=!0,i.errors=gr,i.warnings=gr,i.triggerMetaEvent(),i.reRender()),m}),ee(Et(i),"isFieldValidating",function(){return!!i.validatePromise}),ee(Et(i),"isFieldTouched",function(){return i.touched}),ee(Et(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(ea),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),ee(Et(i),"getErrors",function(){return i.errors}),ee(Et(i),"getWarnings",function(){return i.warnings}),ee(Et(i),"isListField",function(){return i.props.isListField}),ee(Et(i),"isList",function(){return i.props.isList}),ee(Et(i),"isPreserve",function(){return i.props.preserve}),ee(Et(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),ee(Et(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return te(te({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=cr(l);return u.length!==1||!g.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ee(Et(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Kr(l||c(!0),u)}),ee(Et(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,d=c.trigger,f=c.validateTrigger,h=c.getValueFromEvent,p=c.normalize,m=c.valuePropName,v=c.getValueProps,y=c.fieldContext,b=f!==void 0?f:y.validateTrigger,x=i.getNamePath(),C=y.getInternalHooks,S=y.getFieldsValue,w=C(ea),O=w.dispatch,E=i.getValue(),_=v||function(P){return ee({},m,P)},T=l[d],R=u!==void 0?_(E):{};process.env.NODE_ENV!=="production"&&R&&Object.keys(R).forEach(function(P){yt(typeof R[P]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(P,")"))});var F=te(te({},l),R);F[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var P,k=arguments.length,A=new Array(k),M=0;M<k;M++)A[M]=arguments[M];h?P=h.apply(void 0,A):P=eP.apply(void 0,[m].concat(A)),p&&(P=p(P,E,S(!0))),O({type:"updateValue",namePath:x,value:P}),T&&T.apply(void 0,A)};var I=Tv(b||[]);return I.forEach(function(P){var k=F[P];F[P]=function(){k&&k.apply(void 0,arguments);var A=i.props.rules;A&&A.length&&O({type:"validateField",namePath:x,triggerName:P})}}),F}),r.fieldContext){var a=r.fieldContext.getInternalHooks,o=a(ea),s=o.initEntityValue;s(Et(i))}return i}return Tn(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,o=i.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,l=s(ea),c=l.registerField;this.cancelRegisterFunc=c(this)}a===!0&&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 i=this.state.resetCount,a=this.props.children,o=this.getOnlyChild(a),s=o.child,l=o.isFunction,c;return l?c=s:g.isValidElement(s)?c=g.cloneElement(s,this.getControlled(s.props)):(yt(!s,"`children` of Field is not validate ReactElement."),c=s),g.createElement(g.Fragment,{key:i},c)}}]),n}(g.Component);ee(ym,"contextType",yo);ee(ym,"defaultProps",{trigger:"onChange",valuePropName:"value"});function R2(e){var t=e.name,n=wt(e,tP),r=g.useContext(yo),i=g.useContext(Zc),a=t!==void 0?un(t):void 0,o="keep";return n.isListField||(o="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&a.length<=1&&yt(!1,"`preserve` should not apply on Form.List fields."),g.createElement(ym,Ye({key:o,name:a,isListField:!!i},n,{fieldContext:r}))}function nP(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,o=e.isListField,s=g.useContext(yo),l=g.useContext(Zc),c=g.useRef({keys:[],id:0}),u=c.current,d=g.useMemo(function(){var m=un(s.prefixName)||[];return[].concat(Ge(m),Ge(un(t)))},[s.prefixName,t]),f=g.useMemo(function(){return te(te({},s),{},{prefixName:d})},[s,d]),h=g.useMemo(function(){return{getKey:function(v){var y=d.length,b=v[y];return[u.keys[b],v.slice(y+1)]}}},[d]);if(typeof r!="function")return yt(!1,"Form.List only accepts function as children."),null;var p=function(v,y,b){var x=b.source;return x==="internal"?!1:v!==y};return g.createElement(Zc.Provider,{value:h},g.createElement(yo.Provider,{value:f},g.createElement(R2,{name:[],shouldUpdate:p,rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:o??!!l},function(m,v){var y=m.value,b=y===void 0?[]:y,x=m.onChange,C=s.getFieldValue,S=function(){var _=C(d||[]);return _||[]},w={add:function(_,T){var R=S();T>=0&&T<=R.length?(u.keys=[].concat(Ge(u.keys.slice(0,T)),[u.id],Ge(u.keys.slice(T))),x([].concat(Ge(R.slice(0,T)),[_],Ge(R.slice(T))))):(process.env.NODE_ENV!=="production"&&(T<0||T>R.length)&&yt(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Ge(u.keys),[u.id]),x([].concat(Ge(R),[_]))),u.id+=1},remove:function(_){var T=S(),R=new Set(Array.isArray(_)?_:[_]);R.size<=0||(u.keys=u.keys.filter(function(F,I){return!R.has(I)}),x(T.filter(function(F,I){return!R.has(I)})))},move:function(_,T){if(_!==T){var R=S();_<0||_>=R.length||T<0||T>=R.length||(u.keys=Ab(u.keys,_,T),x(Ab(R,_,T)))}}},O=b||[];return Array.isArray(O)||(O=[],process.env.NODE_ENV!=="production"&&yt(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(O.map(function(E,_){var T=u.keys[_];return T===void 0&&(u.keys[_]=u.id,T=u.keys[_],u.id+=1),{name:_,key:T,isListField:!0}}),w,v)})))}function rP(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var P2="__@field_split__";function Df(e){return e.map(function(t){return"".concat(ut(t),":").concat(t)}).join(P2)}var La=function(){function e(){Mn(this,e),ee(this,"kvs",new Map)}return Tn(e,[{key:"set",value:function(n,r){this.kvs.set(Df(n),r)}},{key:"get",value:function(n){return this.kvs.get(Df(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Df(n))}},{key:"map",value:function(n){return Ge(this.kvs.entries()).map(function(r){var i=ae(r,2),a=i[0],o=i[1],s=a.split(P2);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=ae(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),iP=["name"],aP=Tn(function e(t){var n=this;Mn(this,e),ee(this,"formHooked",!1),ee(this,"forceRootUpdate",void 0),ee(this,"subscribable",!0),ee(this,"store",{}),ee(this,"fieldEntities",[]),ee(this,"initialValues",{}),ee(this,"callbacks",{}),ee(this,"validateMessages",null),ee(this,"preserve",null),ee(this,"lastValidatePromise",null),ee(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}}),ee(this,"getInternalHooks",function(r){return r===ea?(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}):(yt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ee(this,"useSubscribe",function(r){n.subscribable=r}),ee(this,"prevWithoutPreserves",null),ee(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=Ja(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;o=Ar(o,l,Kr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),ee(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new La;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),ee(this,"getInitialValue",function(r){var i=Kr(n.initialValues,r);return r.length?Ja(i):i}),ee(this,"setCallbacks",function(r){n.callbacks=r}),ee(this,"setValidateMessages",function(r){n.validateMessages=r}),ee(this,"setPreserve",function(r){n.preserve=r}),ee(this,"watchList",[]),ee(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),ee(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),ee(this,"timeoutId",null),ee(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||yt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),ee(this,"updateStore",function(r){n.store=r}),ee(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),ee(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new La;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),ee(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=un(a);return i.get(o)||{INVALIDATE_NAME_PATH:un(a)}})}),ee(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,s;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&ut(r)==="object"&&(s=r.strict,o=r.filter),a===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var d,f,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var p,m;if((p=(m=u).isList)!==null&&p!==void 0&&p.call(m))return}else if(!a&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!o)c.push(h);else{var v="getMeta"in u?u.getMeta():null;o(v)&&c.push(h)}}),Ib(n.store,c.map(un))}),ee(this,"getFieldValue",function(r){n.warningUnhooked();var i=un(r);return Kr(n.store,i)}),ee(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:un(r[o]),errors:[],warnings:[]}})}),ee(this,"getFieldError",function(r){n.warningUnhooked();var i=un(r),a=n.getFieldsError([i])[0];return a.errors}),ee(this,"getFieldWarning",function(r){n.warningUnhooked();var i=un(r),a=n.getFieldsError([i])[0];return a.warnings}),ee(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i[0],s=i[1],l,c=!1;i.length===0?l=null:i.length===1?Array.isArray(o)?(l=o.map(un),c=!1):(l=null,c=o):(l=o.map(un),c=s);var u=n.getFieldEntities(!0),d=function(v){return v.isFieldTouched()};if(!l)return c?u.every(function(m){return d(m)||m.isList()}):u.some(d);var f=new La;l.forEach(function(m){f.set(m,[])}),u.forEach(function(m){var v=m.getNamePath();l.forEach(function(y){y.every(function(b,x){return v[x]===b})&&f.update(y,function(b){return[].concat(Ge(b),[m])})})});var h=function(v){return v.some(d)},p=f.map(function(m){var v=m.value;return v});return c?p.every(h):p.some(h)}),ee(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ee(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(o){return o.isFieldValidating()});var a=r.map(un);return i.some(function(o){var s=o.getNamePath();return ao(a,s)&&o.isFieldValidating()})}),ee(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ee(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new La,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=i.get(u)||new Set;d.add({entity:l,value:c}),i.set(u,d)}});var o=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),h=n.getInitialValue(f);if(h!==void 0)yt(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var p=i.get(f);if(p&&p.size>1)yt(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var m=n.getFieldValue(f),v=u.isListField();!v&&(!r.skipExist||m===void 0)&&n.updateStore(Ar(n.store,f,Ge(p)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,Ge(Ge(c).map(function(d){return d.entity})))}})):s=a,o(s)}),ee(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Ja(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(un);a.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(Ar(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),ee(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var s=o.name,l=wt(o,iP),c=un(s);a.push(c),"value"in l&&n.updateStore(Ar(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:o})}),n.notifyWatch(a)}),ee(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),s=a.getMeta(),l=te(te({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),ee(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Kr(n.store,a);o===void 0&&n.updateStore(Ar(n.store,a,i))}}),ee(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),ee(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(d){return!T2(d.getNamePath(),i)})){var u=n.store;n.updateStore(Ar(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),ee(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),ee(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=te(te({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,o)})}else n.forceRootUpdate()}),ee(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(Ge(a))}),a}),ee(this,"updateValue",function(r,i){var a=un(r),o=n.store;n.updateStore(Ar(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(o,a),l=n.callbacks.onValuesChange;if(l){var c=Ib(n.store,[a]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(Ge(s)))}),ee(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=Ja(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ee(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),ee(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new La;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=un(u);o.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(a.push(f),l(f))}})};return s(r),a}),ee(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var s=new La;i.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return ao(r,u)});l.length&&a(l,o)}}),ee(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var s=!!a,l=s?a.map(un):[],c=[],u=String(Date.now()),d=new Set,f=o||{},h=f.recursive,p=f.dirty;n.getFieldEntities(!0).forEach(function(b){if(s||l.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(p&&!b.isFieldDirty())){var x=b.getNamePath();if(d.add(x.join(u)),!s||ao(l,x,h)){var C=b.validateRules(te({validateMessages:te(te({},M2),n.validateMessages)},o));c.push(C.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var w,O=[],E=[];return(w=S.forEach)===null||w===void 0||w.call(S,function(_){var T=_.rule.warningOnly,R=_.errors;T?E.push.apply(E,Ge(R)):O.push.apply(O,Ge(R))}),O.length?Promise.reject({name:x,errors:O,warnings:E}):{name:x,errors:O,warnings:E}}))}}});var m=rP(c);n.lastValidatePromise=m,m.catch(function(b){return b}).then(function(b){var x=b.map(function(C){var S=C.name;return S});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,b)});var v=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(b){var x=b.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==m})});v.catch(function(b){return b});var y=l.filter(function(b){return d.has(b.join(u))});return n.triggerOnFieldsChange(y),v}),ee(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function I2(e){var t=g.useRef(),n=g.useState({}),r=ae(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new aP(a);t.current=o.getForm()}return[t.current]}var Dv=g.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),oP=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=g.useContext(Dv),s=g.useRef({});return g.createElement(Dv.Provider,{value:te(te({},o),{},{validateMessages:te(te({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=te(te({},s.current),{},ee({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=te({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},a)},sP=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],lP=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,h=f===void 0?"onChange":f,p=t.onValuesChange,m=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,b=t.clearOnDestroy,x=wt(t,sP),C=g.useRef(null),S=g.useContext(Dv),w=I2(o),O=ae(w,1),E=O[0],_=E.getInternalHooks(ea),T=_.useSubscribe,R=_.setInitialValues,F=_.setCallbacks,I=_.setValidateMessages,P=_.setPreserve,k=_.destroyForm;g.useImperativeHandle(n,function(){return te(te({},E),{},{nativeElement:C.current})}),g.useEffect(function(){return S.registerForm(r,E),function(){S.unregisterForm(r)}},[S,E,r]),I(te(te({},S.validateMessages),d)),F({onValuesChange:p,onFieldsChange:function(Z){if(S.triggerFormChange(r,Z),m){for(var J=arguments.length,Q=new Array(J>1?J-1:0),K=1;K<J;K++)Q[K-1]=arguments[K];m.apply(void 0,[Z].concat(Q))}},onFinish:function(Z){S.triggerFormFinish(r,Z),v&&v(Z)},onFinishFailed:y}),P(s);var A=g.useRef(null);R(i,!A.current),A.current||(A.current=!0),g.useEffect(function(){return function(){return k(b)}},[]);var M,N=typeof l=="function";if(N){var j=E.getFieldsValue(!0);M=l(j,E)}else M=l;T(!N);var D=g.useRef();g.useEffect(function(){J4(D.current||[],a||[])||E.setFields(a||[]),D.current=a},[a,E]);var V=g.useMemo(function(){return te(te({},E),{},{validateTrigger:h})},[E,h]),X=g.createElement(Zc.Provider,{value:null},g.createElement(yo.Provider,{value:V},M));return u===!1?X:g.createElement(u,Ye({},x,{ref:C,onSubmit:function(Z){Z.preventDefault(),Z.stopPropagation(),E.submit()},onReset:function(Z){var J;Z.preventDefault(),E.resetFields(),(J=x.onReset)===null||J===void 0||J.call(x,Z)}}),X)};function Nb(e){try{return JSON.stringify(e)}catch{return Math.random()}}var cP=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=$.useRef(t);yt(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function uP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=i===void 0?{}:i,o=b4(a)?{form:a}:a,s=o.form,l=$.useState(),c=ae(l,2),u=c[0],d=c[1],f=$.useMemo(function(){return Nb(u)},[u]),h=$.useRef(f);h.current=f;var p=$.useContext(yo),m=s||p,v=m&&m._init;process.env.NODE_ENV!=="production"&&yt(t.length===2?s?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");var y=un(r),b=$.useRef(y);return b.current=y,cP(y),$.useEffect(function(){if(v){var x=m.getFieldsValue,C=m.getInternalHooks,S=C(ea),w=S.registerWatch,O=function(R,F){var I=o.preserve?F:R;return typeof r=="function"?r(I):Kr(I,b.current)},E=w(function(T,R){var F=O(T,R),I=Nb(F);h.current!==I&&(h.current=I,d(F))}),_=O(x(),x(!0));return u!==_&&d(_),E}},[v]),u}var dP=g.forwardRef(lP),$l=dP;$l.FormProvider=oP;$l.Field=R2;$l.List=nP;$l.useForm=I2;$l.useWatch=uP;const fa=g.createContext({});process.env.NODE_ENV!=="production"&&(fa.displayName="FormItemInputContext");const fP=e=>{let{children:t,status:n,override:r}=e;const i=$.useContext(fa),a=$.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return g.createElement(fa.Provider,{value:a},t)},hP=$.createContext(void 0),Fv=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=$.createElement(fP,{override:!0,status:!0},i)),t&&(i=$.createElement(M6,null,i)),i};var A2=function(t){if(Hn()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},vP=function(t,n){if(!A2(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function kb(e,t){return!Array.isArray(e)&&t!==void 0?vP(e,t):A2(e)}const Gu=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=pe({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=pe({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),l=g.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return g.createElement("span",{className:pe(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},gP=new Kt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),qu=e=>({height:e,lineHeight:ye(e)}),oo=e=>Object.assign({width:e},qu(e)),mP=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:gP,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ff=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},qu(e)),pP=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},oo(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},oo(i)),[`${t}${t}-sm`]:Object.assign({},oo(a))}},bP=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},Ff(t,s)),[`${r}-lg`]:Object.assign({},Ff(i,s)),[`${r}-sm`]:Object.assign({},Ff(a,s))}},jb=e=>Object.assign({width:e},qu(e)),yP=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:i},jb(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},jb(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},zf=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Bf=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},qu(e)),xP=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Bf(r,s))},zf(e,r,n)),{[`${n}-lg`]:Object.assign({},Bf(i,s))}),zf(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Bf(a,s))}),zf(e,a,`${n}-sm`))},SP=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:h,borderRadius:p,titleHeight:m,blockRadius:v,paragraphLiHeight:y,controlHeightXS:b,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},oo(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},oo(c)),[`${n}-sm`]:Object.assign({},oo(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:m,background:d,borderRadius:v,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:v,"+ li":{marginBlockStart:b}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},xP(e)),pP(e)),bP(e)),yP(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
231
229
|
${r},
|
|
230
|
+
${i} > li,
|
|
231
|
+
${n},
|
|
232
|
+
${a},
|
|
232
233
|
${o},
|
|
233
|
-
${i},
|
|
234
234
|
${s}
|
|
235
|
-
`]:Object.assign({},
|
|
236
|
-
${
|
|
237
|
-
${
|
|
238
|
-
`]:Object.assign(Object.assign({},
|
|
239
|
-
${
|
|
240
|
-
${
|
|
241
|
-
`]:{animationName:t,animationPlayState:"running"},[`${
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_f=function(){if(typeof navigator>"u"||typeof window>"u")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(e==null?void 0:e.substr(0,4))};var sC=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Cn=void 0;function lC(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,b=e.display,h=e.order,p=e.component,g=p===void 0?"div":p,C=Je(e,sC),m=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var x=o&&a!==Cn?o(a):v,S;n||(S={opacity:m?0:1,height:m?0:Cn,overflowY:m?"hidden":Cn,order:i?h:Cn,pointerEvents:m?"none":Cn,position:m?"absolute":Cn});var E={};m&&(E["aria-hidden"]=!0);var R=c.createElement(g,xe({className:Z(!n&&r,d),style:D(D({},S),f)},E,C,{ref:t}),x);return i&&(R=c.createElement(mr,{onResize:function($){var T=$.offsetWidth;y(T)},disabled:s},R)),R}var ga=c.forwardRef(lC);ga.displayName="Item";function cC(e){if(typeof MessageChannel>"u")Tt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function uC(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],cC(function(){Mn.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function na(e,t){var r=c.useState(t),n=U(r,2),a=n[0],o=n[1],i=Ht(function(s){e(function(){o(s)})});return[a,i]}var Ao=P.createContext(null),dC=["component"],fC=["className"],vC=["className"],gC=function(t,r){var n=c.useContext(Ao);if(!n){var a=t.component,o=a===void 0?"div":a,i=Je(t,dC);return c.createElement(o,xe({},i,{ref:r}))}var s=n.className,l=Je(n,fC),u=t.className,d=Je(t,vC);return c.createElement(Ao.Provider,{value:null},c.createElement(ga,xe({ref:r,className:Z(s,u)},l,d)))},Tf=c.forwardRef(gC);Tf.displayName="RawItem";var mC=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Nf="responsive",If="invalidate";function pC(e){return"+ ".concat(e.length," ...")}function hC(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,b=e.className,h=e.maxCount,p=e.renderRest,g=e.renderRawRest,C=e.suffix,m=e.component,y=m===void 0?"div":m,x=e.itemComponent,S=e.onVisibleChange,E=Je(e,mC),R=f==="full",w=uC(),$=na(w,null),T=U($,2),M=T[0],F=T[1],A=M||0,_=na(w,new Map),k=U(_,2),N=k[0],O=k[1],j=na(w,0),z=U(j,2),V=z[0],H=z[1],K=na(w,0),W=U(K,2),q=W[0],Y=W[1],J=na(w,0),ee=U(J,2),te=ee[0],oe=ee[1],ve=P.useState(null),fe=U(ve,2),ge=fe[0],Oe=fe[1],B=P.useState(null),ue=U(B,2),le=ue[0],Ee=ue[1],he=c.useMemo(function(){return le===null&&R?Number.MAX_SAFE_INTEGER:le||0},[le,M]),ae=P.useState(!1),me=U(ae,2),$e=me[0],je=me[1],ie="".concat(n,"-item"),ne=Math.max(V,q),pe=h===Nf,be=o.length&&pe,at=h===If,Xe=be||typeof h=="number"&&o.length>h,Ae=P.useMemo(function(){var Pe=o;return be?M===null&&R?Pe=o:Pe=o.slice(0,Math.min(o.length,A/d)):typeof h=="number"&&(Pe=o.slice(0,h)),Pe},[o,d,M,h,be]),Ke=P.useMemo(function(){return be?o.slice(he+1):o.slice(Ae.length)},[o,Ae,be,he]),Ye=P.useCallback(function(Pe,ye){var Ue;return typeof l=="function"?l(Pe):(Ue=l&&(Pe==null?void 0:Pe[l]))!==null&&Ue!==void 0?Ue:ye},[l]),et=P.useCallback(i||function(Pe){return Pe},[i]);function Le(Pe,ye,Ue){le===Pe&&(ye===void 0||ye===ge)||(Ee(Pe),Ue||(je(Pe<o.length-1),S==null||S(Pe)),ye!==void 0&&Oe(ye))}function Ne(Pe,ye){F(ye.clientWidth)}function lt(Pe,ye){O(function(Ue){var bt=new Map(Ue);return ye===null?bt.delete(Pe):bt.set(Pe,ye),bt})}function Ze(Pe,ye){Y(ye),H(q)}function De(Pe,ye){oe(ye)}function de(Pe){return N.get(Ye(Ae[Pe],Pe))}St(function(){if(A&&typeof ne=="number"&&Ae){var Pe=te,ye=Ae.length,Ue=ye-1;if(!ye){Le(0,null);return}for(var bt=0;bt<ye;bt+=1){var He=de(bt);if(R&&(He=He||0),He===void 0){Le(bt-1,void 0,!0);break}if(Pe+=He,Ue===0&&Pe<=A||bt===Ue-1&&Pe+de(Ue)<=A){Le(Ue,null);break}else if(Pe+ne>A){Le(bt-1,Pe-He-te+q);break}}C&&de(0)+te>A&&Oe(null)}},[A,N,q,te,Ye,Ae]);var we=$e&&!!Ke.length,qe={};ge!==null&&be&&(qe={position:"absolute",left:ge,top:0});var ot={prefixCls:ie,responsive:be,component:x,invalidate:at},Ct=s?function(Pe,ye){var Ue=Ye(Pe,ye);return c.createElement(Ao.Provider,{key:Ue,value:D(D({},ot),{},{order:ye,item:Pe,itemKey:Ue,registerSize:lt,display:ye<=he})},s(Pe,ye))}:function(Pe,ye){var Ue=Ye(Pe,ye);return c.createElement(ga,xe({},ot,{order:ye,key:Ue,item:Pe,renderItem:et,itemKey:Ue,registerSize:lt,display:ye<=he}))},ft,Be={order:we?he:Number.MAX_SAFE_INTEGER,className:"".concat(ie,"-rest"),registerSize:Ze,display:we};if(g)g&&(ft=c.createElement(Ao.Provider,{value:D(D({},ot),Be)},g(Ke)));else{var Ve=p||pC;ft=c.createElement(ga,xe({},ot,Be),typeof Ve=="function"?Ve(Ke):Ve)}var ze=c.createElement(y,xe({className:Z(!at&&n,b),style:v,ref:t},E),Ae.map(Ct),Xe?ft:null,C&&c.createElement(ga,xe({},ot,{responsive:pe,responsiveDisabled:!be,order:he,className:"".concat(ie,"-suffix"),registerSize:De,display:!0,style:qe}),C));return pe&&(ze=c.createElement(mr,{onResize:Ne,disabled:!be},ze)),ze}var Dr=c.forwardRef(hC);Dr.displayName="Overflow";Dr.Item=Tf;Dr.RESPONSIVE=Nf;Dr.INVALIDATE=If;function bC(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,l=a.x,u=l===void 0?0:l,d=a.y,f=d===void 0?0:d,v=c.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],p=r.points[1],g=h[0],C=h[1],m=p[0],y=p[1];g===m||!["t","b"].includes(g)?b.top=f:g==="t"?b.top=0:b.bottom=0,C===y||!["l","r"].includes(C)?b.left=u:C==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Z("".concat(t,"-arrow"),i),style:b},s)}function yC(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(un,xe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Z("".concat(t,"-mask"),s)})}):null}var Mf=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Mf.displayName="PopupContent");var jf=c.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,b=e.arrow,h=e.arrowPos,p=e.align,g=e.motion,C=e.maskMotion,m=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,S=e.portal,E=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,T=e.ready,M=e.offsetX,F=e.offsetY,A=e.offsetR,_=e.offsetB,k=e.onAlign,N=e.onPrepare,O=e.stretch,j=e.targetWidth,z=e.targetHeight,V=typeof r=="function"?r():r,H=l||u,K=(y==null?void 0:y.length)>0,W=c.useState(!y||!K),q=U(W,2),Y=q[0],J=q[1];if(St(function(){!Y&&K&&i&&J(!0)},[Y,K,i]),!Y)return null;var ee="auto",te={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(T||!l){var oe,ve=p.points,fe=p.dynamicInset||((oe=p._experimental)===null||oe===void 0?void 0:oe.dynamicInset),ge=fe&&ve[0][1]==="r",Oe=fe&&ve[0][0]==="b";ge?(te.right=A,te.left=ee):(te.left=M,te.right=ee),Oe?(te.bottom=_,te.top=ee):(te.top=F,te.bottom=ee)}var B={};return O&&(O.includes("height")&&z?B.height=z:O.includes("minHeight")&&z&&(B.minHeight=z),O.includes("width")&&j?B.width=j:O.includes("minWidth")&&j&&(B.minWidth=j)),l||(B.pointerEvents="none"),c.createElement(S,{open:m||H,getContainer:y&&function(){return y(i)},autoDestroy:x},c.createElement(yC,{prefixCls:a,open:l,zIndex:E,mask:v,motion:C}),c.createElement(mr,{onResize:k,disabled:!l},function(ue){return c.createElement(un,xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(Ee){var he;g==null||(he=g.onVisibleChanged)===null||he===void 0||he.call(g,Ee),s(Ee)}}),function(le,Ee){var he=le.className,ae=le.style,me=Z(a,he,n);return c.createElement("div",{ref:yr(ue,t,Ee),className:me,style:D(D(D(D({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),B),ae),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(bC,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement(Mf,{cache:!l&&!d},V))})}))});process.env.NODE_ENV!=="production"&&(jf.displayName="Popup");var Af=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=cn(r),o=c.useCallback(function(s){Qs(t,n?n(s):s)},[n]),i=Na(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(Af.displayName="TriggerWrapper");var Zc=c.createContext(null);function Qc(e){return e?Array.isArray(e)?e:[e]:[]}function CC(e,t,r,n){return c.useMemo(function(){var a=Qc(r??t),o=Qc(n??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function SC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function xC(e,t,r,n){for(var a=r.points,o=Object.keys(e),i=0;i<o.length;i+=1){var s,l=o[i];if(SC((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function Jc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Da(e){return e.ownerDocument.defaultView}function zs(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=Da(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Ra(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function aa(e){return Ra(parseFloat(e),0)}function eu(e,t){var r=D({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=Da(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,b=n.clientHeight,h=n.offsetWidth,p=n.clientWidth,g=aa(s),C=aa(l),m=aa(u),y=aa(d),x=Ra(Math.round(f.width/h*1e3)/1e3),S=Ra(Math.round(f.height/v*1e3)/1e3),E=(h-p-m-y)*x,R=(v-b-g-C)*S,w=g*S,$=C*S,T=m*x,M=y*x,F=0,A=0;if(o==="clip"){var _=aa(i);F=_*x,A=_*S}var k=f.x+T-F,N=f.y+w-A,O=k+f.width+2*F-T-M-E,j=N+f.height+2*A-w-$-R;r.left=Math.max(r.left,k),r.top=Math.max(r.top,N),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,j)}}),r}function tu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function ru(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[tu(e.width,a),tu(e.height,o)]}function nu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Sn(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Ur(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function EC(e,t,r,n,a,o,i){var s=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),l=U(s,2),u=l[0],d=l[1],f=c.useRef(0),v=c.useMemo(function(){return t?zs(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=Ht(function(){if(t&&r&&e){let Kt=function(qt,dr){var Gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,pn=V.x+qt,Qn=V.y+dr,Jn=pn+oe,Ua=Qn+te,ai=Math.max(pn,Gr.left),oi=Math.max(Qn,Gr.top),ii=Math.min(Jn,Gr.right),si=Math.min(Ua,Gr.bottom);return Math.max(0,(ii-ai)*(si-oi))},en=function(){I=V.y+Ve,G=I+te,X=V.x+Be,se=X+oe};var m,y,x=t,S=x.ownerDocument,E=Da(x),R=E.getComputedStyle(x),w=R.width,$=R.height,T=R.position,M=x.style.left,F=x.style.top,A=x.style.right,_=x.style.bottom,k=x.style.overflow,N=D(D({},a[n]),o),O=S.createElement("div");(m=x.parentElement)===null||m===void 0||m.appendChild(O),O.style.left="".concat(x.offsetLeft,"px"),O.style.top="".concat(x.offsetTop,"px"),O.style.position=T,O.style.height="".concat(x.offsetHeight,"px"),O.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var j;if(Array.isArray(r))j={x:r[0],y:r[1],width:0,height:0};else{var z=r.getBoundingClientRect();j={x:z.x,y:z.y,width:z.width,height:z.height}}var V=x.getBoundingClientRect(),H=S.documentElement,K=H.clientWidth,W=H.clientHeight,q=H.scrollWidth,Y=H.scrollHeight,J=H.scrollTop,ee=H.scrollLeft,te=V.height,oe=V.width,ve=j.height,fe=j.width,ge={left:0,top:0,right:K,bottom:W},Oe={left:-ee,top:-J,right:q-ee,bottom:Y-J},B=N.htmlRegion,ue="visible",le="visibleFirst";B!=="scroll"&&B!==le&&(B=ue);var Ee=B===le,he=eu(Oe,v),ae=eu(ge,v),me=B===ue?ae:he,$e=Ee?ae:me;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var je=x.getBoundingClientRect();x.style.left=M,x.style.top=F,x.style.right=A,x.style.bottom=_,x.style.overflow=k,(y=x.parentElement)===null||y===void 0||y.removeChild(O);var ie=Ra(Math.round(oe/parseFloat(w)*1e3)/1e3),ne=Ra(Math.round(te/parseFloat($)*1e3)/1e3);if(ie===0||ne===0||ma(r)&&!gl(r))return;var pe=N.offset,be=N.targetOffset,at=ru(V,pe),Xe=U(at,2),Ae=Xe[0],Ke=Xe[1],Ye=ru(j,be),et=U(Ye,2),Le=et[0],Ne=et[1];j.x-=Le,j.y-=Ne;var lt=N.points||[],Ze=U(lt,2),De=Ze[0],de=Ze[1],we=nu(de),qe=nu(De),ot=Sn(j,we),Ct=Sn(V,qe),ft=D({},N),Be=ot.x-Ct.x+Ae,Ve=ot.y-Ct.y+Ke,ze=Kt(Be,Ve),Pe=Kt(Be,Ve,ae),ye=Sn(j,["t","l"]),Ue=Sn(V,["t","l"]),bt=Sn(j,["b","r"]),He=Sn(V,["b","r"]),We=N.overflow||{},ct=We.adjustX,yt=We.adjustY,Pt=We.shiftX,kt=We.shiftY,Wt=function(dr){return typeof dr=="boolean"?dr:dr>=0},I,G,X,se;en();var _e=Wt(yt),Re=qe[0]===we[0];if(_e&&qe[0]==="t"&&(G>$e.bottom||b.current.bt)){var Te=Ve;Re?Te-=te-ve:Te=ye.y-He.y-Ke;var Me=Kt(Be,Te),mt=Kt(Be,Te,ae);Me>ze||Me===ze&&(!Ee||mt>=Pe)?(b.current.bt=!0,Ve=Te,Ke=-Ke,ft.points=[Ur(qe,0),Ur(we,0)]):b.current.bt=!1}if(_e&&qe[0]==="b"&&(I<$e.top||b.current.tb)){var rt=Ve;Re?rt+=te-ve:rt=bt.y-Ue.y-Ke;var ke=Kt(Be,rt),wt=Kt(Be,rt,ae);ke>ze||ke===ze&&(!Ee||wt>=Pe)?(b.current.tb=!0,Ve=rt,Ke=-Ke,ft.points=[Ur(qe,0),Ur(we,0)]):b.current.tb=!1}var Gt=Wt(ct),Vt=qe[1]===we[1];if(Gt&&qe[1]==="l"&&(se>$e.right||b.current.rl)){var pt=Be;Vt?pt-=oe-fe:pt=ye.x-He.x-Ae;var Sr=Kt(pt,Ve),Br=Kt(pt,Ve,ae);Sr>ze||Sr===ze&&(!Ee||Br>=Pe)?(b.current.rl=!0,Be=pt,Ae=-Ae,ft.points=[Ur(qe,1),Ur(we,1)]):b.current.rl=!1}if(Gt&&qe[1]==="r"&&(X<$e.left||b.current.lr)){var Ut=Be;Vt?Ut+=oe-fe:Ut=bt.x-Ue.x-Ae;var Hr=Kt(Ut,Ve),Kn=Kt(Ut,Ve,ae);Hr>ze||Hr===ze&&(!Ee||Kn>=Pe)?(b.current.lr=!0,Be=Ut,Ae=-Ae,ft.points=[Ur(qe,1),Ur(we,1)]):b.current.lr=!1}en();var nr=Pt===!0?0:Pt;typeof nr=="number"&&(X<ae.left&&(Be-=X-ae.left-Ae,j.x+fe<ae.left+nr&&(Be+=j.x-ae.left+fe-nr)),se>ae.right&&(Be-=se-ae.right-Ae,j.x>ae.right-nr&&(Be+=j.x-ae.right+nr)));var cr=kt===!0?0:kt;typeof cr=="number"&&(I<ae.top&&(Ve-=I-ae.top-Ke,j.y+ve<ae.top+cr&&(Ve+=j.y-ae.top+ve-cr)),G>ae.bottom&&(Ve-=G-ae.bottom-Ke,j.y>ae.bottom-cr&&(Ve+=j.y-ae.bottom+cr)));var Wr=V.x+Be,Tr=Wr+oe,xr=V.y+Ve,Nr=xr+te,Jr=j.x,Ir=Jr+fe,ur=j.y,qn=ur+ve,Xn=Math.max(Wr,Jr),Yn=Math.min(Tr,Ir),mn=(Xn+Yn)/2,ht=mn-Wr,it=Math.max(xr,ur),vt=Math.min(Nr,qn),Mt=(it+vt)/2,At=Mt-xr;i==null||i(t,ft);var Er=je.right-V.x-(Be+V.width),wr=je.bottom-V.y-(Ve+V.height);ie===1&&(Be=Math.round(Be),Er=Math.round(Er)),ne===1&&(Ve=Math.round(Ve),wr=Math.round(wr));var Zn={ready:!0,offsetX:Be/ie,offsetY:Ve/ne,offsetR:Er/ie,offsetB:wr/ne,arrowX:ht/ie,arrowY:At/ne,scaleX:ie,scaleY:ne,align:ft};d(Zn)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},C=function(){d(function(y){return D(D({},y),{},{ready:!1})})};return St(C,[n]),St(function(){e||C()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function wC(e,t,r,n,a){St(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=zs(o),l=zs(i),u=Da(i),d=new Set([u].concat(Ce(s),Ce(l)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,r])}function $C(e,t,r,n,a,o,i,s){var l=c.useRef(e);l.current=e,c.useEffect(function(){if(t&&n&&(!a||o)){var u=function(C){var m;l.current&&!i(((m=C.composedPath)===null||m===void 0||(m=m.call(C))===null||m===void 0?void 0:m[0])||C.target)&&s(!1)},d=Da(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=No(r);if(f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var v,b,h=r==null||(v=r.getRootNode)===null||v===void 0?void 0:v.call(r),p=(b=n.getRootNode)===null||b===void 0?void 0:b.call(n);jn(h===p,"trigger element and popup element should in same shadow root.")}return function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,r,n,a,o])}var OC=["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"];function RC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yl,t=c.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,l=s===void 0?"hover":s,u=r.showAction,d=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,b=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,p=r.mouseEnterDelay,g=r.mouseLeaveDelay,C=g===void 0?.1:g,m=r.focusDelay,y=r.blurDelay,x=r.mask,S=r.maskClosable,E=S===void 0?!0:S,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,T=r.destroyPopupOnHide,M=r.popup,F=r.popupClassName,A=r.popupStyle,_=r.popupPlacement,k=r.builtinPlacements,N=k===void 0?{}:k,O=r.popupAlign,j=r.zIndex,z=r.stretch,V=r.getPopupClassNameFromAlign,H=r.fresh,K=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Y=r.arrow,J=r.popupMotion,ee=r.maskMotion,te=r.popupTransitionName,oe=r.popupAnimation,ve=r.maskTransitionName,fe=r.maskAnimation,ge=r.className,Oe=r.getTriggerDOMNode,B=Je(r,OC),ue=$||T||!1,le=c.useState(!1),Ee=U(le,2),he=Ee[0],ae=Ee[1];St(function(){ae(_f())},[]);var me=c.useRef({}),$e=c.useContext(Zc),je=c.useMemo(function(){return{registerSubPopup:function(Fe,xt){me.current[Fe]=xt,$e==null||$e.registerSubPopup(Fe,xt)}}},[$e]),ie=bb(),ne=c.useState(null),pe=U(ne,2),be=pe[0],at=pe[1],Xe=c.useRef(null),Ae=Ht(function(Se){Xe.current=Se,ma(Se)&&be!==Se&&at(Se),$e==null||$e.registerSubPopup(ie,Se)}),Ke=c.useState(null),Ye=U(Ke,2),et=Ye[0],Le=Ye[1],Ne=c.useRef(null),lt=Ht(function(Se){ma(Se)&&et!==Se&&(Le(Se),Ne.current=Se)}),Ze=c.Children.only(i),De=(Ze==null?void 0:Ze.props)||{},de={},we=Ht(function(Se){var Fe,xt,_t=et;return(_t==null?void 0:_t.contains(Se))||((Fe=No(_t))===null||Fe===void 0?void 0:Fe.host)===Se||Se===_t||(be==null?void 0:be.contains(Se))||((xt=No(be))===null||xt===void 0?void 0:xt.host)===Se||Se===be||Object.values(me.current).some(function(Et){return(Et==null?void 0:Et.contains(Se))||Se===Et})}),qe=Jc(o,J,oe,te),ot=Jc(o,ee,fe,ve),Ct=c.useState(v||!1),ft=U(Ct,2),Be=ft[0],Ve=ft[1],ze=f??Be,Pe=Ht(function(Se){f===void 0&&Ve(Se)});St(function(){Ve(f||!1)},[f]);var ye=c.useRef(ze);ye.current=ze;var Ue=c.useRef([]);Ue.current=[];var bt=Ht(function(Se){var Fe;Pe(Se),((Fe=Ue.current[Ue.current.length-1])!==null&&Fe!==void 0?Fe:ze)!==Se&&(Ue.current.push(Se),b==null||b(Se))}),He=c.useRef(),We=function(){clearTimeout(He.current)},ct=function(Fe){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),xt===0?bt(Fe):He.current=setTimeout(function(){bt(Fe)},xt*1e3)};c.useEffect(function(){return We},[]);var yt=c.useState(!1),Pt=U(yt,2),kt=Pt[0],Wt=Pt[1];St(function(Se){(!Se||ze)&&Wt(!0)},[ze]);var I=c.useState(null),G=U(I,2),X=G[0],se=G[1],_e=c.useState([0,0]),Re=U(_e,2),Te=Re[0],Me=Re[1],mt=function(Fe){Me([Fe.clientX,Fe.clientY])},rt=EC(ze,be,K?Te:et,_,N,O,q),ke=U(rt,11),wt=ke[0],Gt=ke[1],Vt=ke[2],pt=ke[3],Sr=ke[4],Br=ke[5],Ut=ke[6],Hr=ke[7],Kn=ke[8],nr=ke[9],cr=ke[10],Wr=CC(he,l,u,d),Tr=U(Wr,2),xr=Tr[0],Nr=Tr[1],Jr=xr.has("click"),Ir=Nr.has("click")||Nr.has("contextMenu"),ur=Ht(function(){kt||cr()}),qn=function(){ye.current&&K&&Ir&&ct(!1)};wC(ze,et,be,ur,qn),St(function(){ur()},[Te,_]),St(function(){ze&&!(N!=null&&N[_])&&ur()},[JSON.stringify(O)]);var Xn=c.useMemo(function(){var Se=xC(N,o,nr,K);return Z(Se,V==null?void 0:V(nr))},[nr,V,N,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Ne.current,popupElement:Xe.current,forceAlign:ur}});var Yn=c.useState(0),mn=U(Yn,2),ht=mn[0],it=mn[1],vt=c.useState(0),Mt=U(vt,2),At=Mt[0],Er=Mt[1],wr=function(){if(z&&et){var Fe=et.getBoundingClientRect();it(Fe.width),Er(Fe.height)}},Zn=function(){wr(),ur()},Kt=function(Fe){Wt(!1),cr(),h==null||h(Fe)},en=function(){return new Promise(function(Fe){wr(),se(function(){return Fe})})};St(function(){X&&(cr(),X(),se(null))},[X]);function qt(Se,Fe,xt,_t){de[Se]=function(Et){var Ka;_t==null||_t(Et),ct(Fe,xt);for(var li=arguments.length,Ml=new Array(li>1?li-1:0),qa=1;qa<li;qa++)Ml[qa-1]=arguments[qa];(Ka=De[Se])===null||Ka===void 0||Ka.call.apply(Ka,[De,Et].concat(Ml))}}(Jr||Ir)&&(de.onClick=function(Se){var Fe;ye.current&&Ir?ct(!1):!ye.current&&Jr&&(mt(Se),ct(!0));for(var xt=arguments.length,_t=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)_t[Et-1]=arguments[Et];(Fe=De.onClick)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(_t))}),$C(ze,Ir,et,be,x,E,we,ct);var dr=xr.has("hover"),Gr=Nr.has("hover"),pn,Qn;dr&&(qt("onMouseEnter",!0,p,function(Se){mt(Se)}),qt("onPointerEnter",!0,p,function(Se){mt(Se)}),pn=function(Fe){(ze||kt)&&be!==null&&be!==void 0&&be.contains(Fe.target)&&ct(!0,p)},K&&(de.onMouseMove=function(Se){var Fe;(Fe=De.onMouseMove)===null||Fe===void 0||Fe.call(De,Se)})),Gr&&(qt("onMouseLeave",!1,C),qt("onPointerLeave",!1,C),Qn=function(){ct(!1,C)}),xr.has("focus")&&qt("onFocus",!0,m),Nr.has("focus")&&qt("onBlur",!1,y),xr.has("contextMenu")&&(de.onContextMenu=function(Se){var Fe;ye.current&&Nr.has("contextMenu")?ct(!1):(mt(Se),ct(!0)),Se.preventDefault();for(var xt=arguments.length,_t=new Array(xt>1?xt-1:0),Et=1;Et<xt;Et++)_t[Et-1]=arguments[Et];(Fe=De.onContextMenu)===null||Fe===void 0||Fe.call.apply(Fe,[De,Se].concat(_t))}),ge&&(de.className=Z(De.className,ge));var Jn=D(D({},De),de),Ua={},ai=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ai.forEach(function(Se){B[Se]&&(Ua[Se]=function(){for(var Fe,xt=arguments.length,_t=new Array(xt),Et=0;Et<xt;Et++)_t[Et]=arguments[Et];(Fe=Jn[Se])===null||Fe===void 0||Fe.call.apply(Fe,[Jn].concat(_t)),B[Se].apply(B,_t)})});var oi=c.cloneElement(Ze,D(D({},Jn),Ua)),ii={x:Br,y:Ut},si=Y?D({},Y!==!0?Y:{}):null;return c.createElement(c.Fragment,null,c.createElement(mr,{disabled:!ze,ref:lt,onResize:Zn},c.createElement(Af,{getTriggerDOMNode:Oe},oi)),c.createElement(Zc.Provider,{value:je},c.createElement(jf,{portal:e,ref:Ae,prefixCls:o,popup:M,className:Z(F,Xn),style:A,target:et,onMouseEnter:pn,onMouseLeave:Qn,onPointerEnter:pn,zIndex:j,open:ze,keepDom:kt,fresh:H,onClick:W,mask:x,motion:qe,maskMotion:ot,onVisibleChanged:Kt,onPrepare:en,forceRender:w,autoDestroy:ue,getPopupContainer:R,align:nr,arrow:si,arrowPos:ii,ready:wt,offsetX:Gt,offsetY:Vt,offsetR:pt,offsetB:Sr,onAlign:ur,stretch:z,targetWidth:ht/Hr,targetHeight:At/Kn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const Sl=RC(yl);function ks(e,t,r){return Z({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Ff=(e,t)=>t||e,Lf=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:o,[e]:i}=P.useContext(nt),s=P.useContext(gy),l=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:r===!1?u="borderless":u=(a=(n=s??l)!==null&&n!==void 0?n:o)!==null&&a!==void 0?a:"outlined";const d=Op.includes(u);return[u,d]};var PC={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"},_C=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:PC}))},Df=c.forwardRef(_C);process.env.NODE_ENV!=="production"&&(Df.displayName="CheckOutlined");var TC={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"},NC=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:TC}))},zf=c.forwardRef(NC);process.env.NODE_ENV!=="production"&&(zf.displayName="DownOutlined");const Pa=["xxl","xl","lg","md","sm","xs"],IC=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)`}),MC=e=>{const t=e,r=[].concat(Pa).reverse();return r.forEach((n,a)=>{const o=n.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a<r.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[a+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};function jC(){const[,e]=Vr(),t=IC(MC(e));return P.useMemo(()=>{const r=new Map;let n=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,r.forEach(i=>i(a)),r.size>=1},subscribe(o){return r.size||this.register(),n+=1,r.set(n,o),o(a),n},unsubscribe(o){r.delete(o),r.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function kf(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return c.createElement("div",{className:Z("".concat(r,"-content"),o),style:i},c.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var xn={shiftX:64,adjustY:1},En={adjustX:1,shiftY:!0},or=[0,0],AC={left:{points:["cr","cl"],overflow:En,offset:[-4,0],targetOffset:or},right:{points:["cl","cr"],overflow:En,offset:[4,0],targetOffset:or},top:{points:["bc","tc"],overflow:xn,offset:[0,-4],targetOffset:or},bottom:{points:["tc","bc"],overflow:xn,offset:[0,4],targetOffset:or},topLeft:{points:["bl","tl"],overflow:xn,offset:[0,-4],targetOffset:or},leftTop:{points:["tr","tl"],overflow:En,offset:[-4,0],targetOffset:or},topRight:{points:["br","tr"],overflow:xn,offset:[0,-4],targetOffset:or},rightTop:{points:["tl","tr"],overflow:En,offset:[4,0],targetOffset:or},bottomRight:{points:["tr","br"],overflow:xn,offset:[0,4],targetOffset:or},rightBottom:{points:["bl","br"],overflow:En,offset:[4,0],targetOffset:or},bottomLeft:{points:["tl","bl"],overflow:xn,offset:[0,4],targetOffset:or},leftBottom:{points:["br","bl"],overflow:En,offset:[-4,0],targetOffset:or}},FC=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],LC=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,u=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,b=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,g=t.transitionName,C=t.animation,m=t.motion,y=t.placement,x=y===void 0?"right":y,S=t.align,E=S===void 0?{}:S,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,T=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var F=t.overlay,A=t.id,_=t.showArrow,k=_===void 0?!0:_,N=Je(t,FC),O=P.useRef(null);P.useImperativeHandle(r,function(){return O.current});var j=D({},N);"visible"in t&&(j.popupVisible=t.visible);var z=function(){return c.createElement(kf,{key:"content",prefixCls:v,id:A,overlayInnerStyle:M},F)};return c.createElement(Sl,xe({popupClassName:n,prefixCls:v,popup:z,action:o,builtinPlacements:AC,popupPlacement:x,ref:O,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:C,popupMotion:m,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:k},j),b)};const DC=P.forwardRef(LC);function zC(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),u=a-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-u,v=d,b=2*a-s,h=l,p=2*a-o,g=i,C=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),y=`polygon(${m}px 100%, 50% ${m}px, ${2*a-m}px 100%, ${m}px 100%)`,x=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${b} ${h} A ${n} ${n} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:C,arrowPath:x,arrowPolygon:y}}const kC=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Q(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Vf=8;function Bf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Vf:n}}function so(e,t){return e?t:{}}function VC(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},kC(e,t,a)),{"&:before":{background:t}})]},so(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Q(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),so(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Q(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),so(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),so(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function BC(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const au={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"]}},HC={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"]}},WC=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function GC(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(au).forEach(u=>{const d=n&&HC[u]||au[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,WC.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const v=Bf({contentRadius:o,limitVerticalRadius:!0});if(n)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal*2-s;break}f.overflow=BC(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const UC=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zr(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,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":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Q(e.calc(u).div(2).equal())} ${Q(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,Vf)}},[`${t}-content`]:{position:"relative"}}),th(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},VC(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},KC=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Bf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),zC(jt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Hf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return lr("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=jt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[UC(s),iC(n,"zoom-big-fast")]},KC,{resetStyle:!1,injectStyle:t})(e)},qC=To.map(e=>`${e}-inverse`);function XC(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ce(qC),Ce(To)).includes(e):To.includes(e)}function Wf(e,t){const r=XC(t),n=Z({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const YC=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(nt),l=s("tooltip",t),[u,d,f]=Hf(l),v=Wf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Z(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return u(c.createElement("div",{className:p,style:b},c.createElement("div",{className:`${l}-arrow`}),c.createElement(kf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var ZC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const QC=c.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:b,arrow:h=!0,title:p,overlay:g,builtinPlacements:C,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,x=!!h,[,S]=Vr(),{getPopupContainer:E,getPrefixCls:R,direction:w}=c.useContext(nt),$=Nt("Tooltip"),T=c.useRef(null),M=()=>{var ie;(ie=T.current)===null||ie===void 0||ie.forceAlign()};c.useImperativeHandle(t,()=>{var ie;return{forceAlign:M,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),M()},nativeElement:(ie=T.current)===null||ie===void 0?void 0:ie.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ie=>{let[ne,pe]=ie;$.deprecated(!(ne in e),ne,pe)}),process.env.NODE_ENV!=="production"&&$(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&$(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[F,A]=Zt(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),_=!p&&!g&&p!==0,k=ie=>{var ne,pe;A(_?!1:ie),_||((ne=e.onOpenChange)===null||ne===void 0||ne.call(e,ie),(pe=e.onVisibleChange)===null||pe===void 0||pe.call(e,ie))},N=c.useMemo(()=>{var ie,ne;let pe=m;return typeof h=="object"&&(pe=(ne=(ie=h.pointAtCenter)!==null&&ie!==void 0?ie:h.arrowPointAtCenter)!==null&&ne!==void 0?ne:m),C||GC({arrowPointAtCenter:pe,autoAdjustOverflow:y,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[m,h,C,S]),O=c.useMemo(()=>p===0?p:g||p||"",[g,p]),j=c.createElement(Ds,{space:!0},typeof O=="function"?O():O),{getPopupContainer:z,placement:V="top",mouseEnterDelay:H=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Y=ZC(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),J=R("tooltip",a),ee=R(),te=e["data-popover-inject"];let oe=F;!("open"in e)&&!("visible"in e)&&_&&(oe=!1);const ve=c.isValidElement(d)&&!af(d)?d:c.createElement("span",null,d),fe=ve.props,ge=!fe.className||typeof fe.className=="string"?Z(fe.className,o||`${J}-open`):fe.className,[Oe,B,ue]=Hf(J,!te),le=Wf(J,l),Ee=le.arrowStyle,he=Object.assign(Object.assign({},u),le.overlayStyle),ae=Z(s,{[`${J}-rtl`]:w==="rtl"},le.className,q,B,ue),[me,$e]=l0("Tooltip",Y.zIndex),je=c.createElement(DC,Object.assign({},Y,{zIndex:me,showArrow:x,placement:V,mouseEnterDelay:H,mouseLeaveDelay:K,prefixCls:J,overlayClassName:ae,overlayStyle:Object.assign(Object.assign({},Ee),W),getTooltipContainer:z||i||E,ref:T,builtinPlacements:N,overlay:j,visible:oe,onVisibleChange:k,afterVisibleChange:f??v,overlayInnerStyle:he,arrowContent:c.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:sf(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),oe?Uo(ve,{className:ge}):ve);return Oe(c.createElement(vl.Provider,{value:$e},je))}),za=QC;process.env.NODE_ENV!=="production"&&(za.displayName="Tooltip");za._InternalPanelDoNotUseOrYouWillBeFired=YC;var JC=ce.ESC,eS=ce.TAB;function tS(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=c.useRef(!1),s=function(){if(t){var f,v;(f=r.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),n==null||n(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case JC:s();break;case eS:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Tt(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var rS=P.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,a=e.prefixCls,o=P.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),i=yr(t,o==null?void 0:o.ref);return P.createElement(P.Fragment,null,n&&P.createElement("div",{className:"".concat(a,"-arrow")}),P.cloneElement(o,{ref:cn(o)?i:void 0}))}),wn={adjustX:1,adjustY:1},$n=[0,0],nS={topLeft:{points:["bl","tl"],overflow:wn,offset:[0,-4],targetOffset:$n},top:{points:["bc","tc"],overflow:wn,offset:[0,-4],targetOffset:$n},topRight:{points:["br","tr"],overflow:wn,offset:[0,-4],targetOffset:$n},bottomLeft:{points:["tl","bl"],overflow:wn,offset:[0,4],targetOffset:$n},bottom:{points:["tc","bc"],overflow:wn,offset:[0,4],targetOffset:$n},bottomRight:{points:["tr","br"],overflow:wn,offset:[0,4],targetOffset:$n}},aS=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function oS(e,t){var r,n=e.arrow,a=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,b=v===void 0?nS:v,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,C=e.overlayClassName,m=e.overlayStyle,y=e.visible,x=e.trigger,S=x===void 0?["hover"]:x,E=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,T=Je(e,aS),M=P.useState(),F=U(M,2),A=F[0],_=F[1],k="visible"in e?y:A,N=P.useRef(null),O=P.useRef(null),j=P.useRef(null);P.useImperativeHandle(t,function(){return N.current});var z=function(te){_(te),$==null||$(te)};tS({visible:k,triggerRef:j,onVisibleChange:z,autoFocus:E,overlayRef:O});var V=function(te){var oe=e.onOverlayClick;_(!1),oe&&oe(te)},H=function(){return P.createElement(rS,{ref:O,overlay:R,prefixCls:i,arrow:a})},K=function(){return typeof R=="function"?H:H()},W=function(){var te=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!oe},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(i,"-open")},Y=P.cloneElement(w,{className:Z((r=w.props)===null||r===void 0?void 0:r.className,k&&q()),ref:cn(w)?yr(j,w.ref):void 0}),J=g;return!J&&S.indexOf("contextMenu")!==-1&&(J=["click"]),P.createElement(Sl,xe({builtinPlacements:b},T,{prefixCls:i,ref:N,popupClassName:Z(C,L({},"".concat(i,"-show-arrow"),a)),popupStyle:m,action:S,showAction:p,hideAction:J,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:k,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:z,onPopupClick:V,getPopupContainer:h}),Y)}const iS=P.forwardRef(oS);var Gf=c.createContext(null);function Uf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Kf(e){var t=c.useContext(Gf);return Uf(t,e)}var sS=["children","locked"],br=c.createContext(null);function lS(e,t){var r=D({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function _a(e){var t=e.children,r=e.locked,n=Je(e,sS),a=c.useContext(br),o=zo(function(){return lS(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!Ca(i[1],s[1],!0))});return c.createElement(br.Provider,{value:o},t)}var cS=[],qf=c.createContext(null);function Zo(){return c.useContext(qf)}var Xf=c.createContext(cS);function ka(e){var t=c.useContext(Xf);return c.useMemo(function(){return e!==void 0?[].concat(Ce(t),[e]):t},[t,e])}var Yf=c.createContext(null),xl=c.createContext({});function ou(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(gl(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:n&&i===null&&(i=0),n&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function uS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ce(e.querySelectorAll("*")).filter(function(n){return ou(n,t)});return ou(e,t)&&r.unshift(e),r}var Vs=ce.LEFT,Bs=ce.RIGHT,Hs=ce.UP,So=ce.DOWN,xo=ce.ENTER,Zf=ce.ESC,oa=ce.HOME,ia=ce.END,iu=[Hs,So,Vs,Bs];function dS(e,t,r,n){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&n===xo)return{inlineTrigger:!0};var v=(a={},L(a,Hs,l),L(a,So,u),a),b=(o={},L(o,Vs,r?u:l),L(o,Bs,r?l:u),L(o,So,d),L(o,xo,d),o),h=(i={},L(i,Hs,l),L(i,So,u),L(i,xo,d),L(i,Zf,f),L(i,Vs,r?d:f),L(i,Bs,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},g=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function fS(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function vS(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function El(e,t){var r=uS(e,!0);return r.filter(function(n){return t.has(n)})}function su(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=El(e,t),o=a.length,i=a.findIndex(function(s){return r===s});return n<0?i===-1?i=o-1:i-=1:n>0&&(i+=1),i=(i+o)%o,a[i]}var Ws=function(t,r){var n=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(Uf(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function gS(e,t,r,n,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){Tt.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(iu,[xo,Zf,oa,ia]).includes(h)){var p=o(),g=Ws(p,n),C=g,m=C.elements,y=C.key2element,x=C.element2key,S=y.get(t),E=vS(S,m),R=x.get(E),w=dS(e,i(R,!0).length===1,r,h);if(!w&&h!==oa&&h!==ia)return;(iu.includes(h)||[oa,ia].includes(h))&&b.preventDefault();var $=function(O){if(O){var j=O,z=O.querySelector("a");z!=null&&z.getAttribute("href")&&(j=z);var V=x.get(O);s(V),v(),d.current=Tt(function(){f.current===V&&j.focus()})}};if([oa,ia].includes(h)||w.sibling||!E){var T;!E||e==="inline"?T=a.current:T=fS(E);var M,F=El(T,m);h===oa?M=F[0]:h===ia?M=F[F.length-1]:M=su(T,m,E,w.offset),$(M)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=Tt(function(){g=Ws(p,n);var N=E.getAttribute("aria-controls"),O=document.getElementById(N),j=su(O,g.elements);$(j)},5);else if(w.offset<0){var A=i(R,!0),_=A[A.length-2],k=y.get(_);l(_,!1),$(k)}}u==null||u(b)}}function mS(e){Promise.resolve().then(e)}var wl="__RC_UTIL_PATH_SPLIT__",lu=function(t){return t.join(wl)},pS=function(t){return t.split(wl)},Gs="rc-menu-more";function hS(){var e=c.useState({}),t=U(e,2),r=t[1],n=P.useRef(new Map),a=P.useRef(new Map),o=c.useState([]),i=U(o,2),s=i[0],l=i[1],u=P.useRef(0),d=P.useRef(!1),f=function(){d.current||r({})},v=P.useCallback(function(y,x){process.env.NODE_ENV!=="production"&&st(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(x.join(" > "),"]"));var S=lu(x);a.current.set(S,y),n.current.set(y,S),u.current+=1;var E=u.current;mS(function(){E===u.current&&f()})},[]),b=P.useCallback(function(y,x){var S=lu(x);a.current.delete(S),n.current.delete(y)},[]),h=P.useCallback(function(y){l(y)},[]),p=P.useCallback(function(y,x){var S=n.current.get(y)||"",E=pS(S);return x&&s.includes(E[0])&&E.unshift(Gs),E},[s]),g=P.useCallback(function(y,x){return y.filter(function(S){return S!==void 0}).some(function(S){var E=p(S,!0);return E.includes(x)})},[p]),C=function(){var x=Ce(n.current.keys());return s.length&&x.push(Gs),x},m=P.useCallback(function(y){var x="".concat(n.current.get(y)).concat(wl),S=new Set;return Ce(a.current.keys()).forEach(function(E){E.startsWith(x)&&S.add(a.current.get(E))}),S},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:C,getSubPathKeys:m}}function la(e){var t=c.useRef(e);t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var bS=Math.random().toFixed(5).toString().slice(2),cu=0;function yS(e){var t=Zt(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){cu+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(bS,"-").concat(cu);a("rc-menu-uuid-".concat(o))},[]),n}function Qf(e,t,r,n){var a=c.useContext(br),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),i(e)},l.onMouseLeave=function(u){n==null||n({key:e,domEvent:u}),s(e)}),l}function Jf(e){var t=c.useContext(br),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*a}:{paddingLeft:o*a}}function ev(e){var t=e.icon,r=e.props,n=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=c.createElement(t,D({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var CS=["item"];function Fo(e){var t=e.item,r=Je(e,CS);return Object.defineProperty(r,"item",{get:function(){return st(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var SS=["title","attribute","elementRef"],xS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ES=["active"],wS=function(e){Zr(r,e);var t=Qr(r);function r(){return Lt(this,r),t.apply(this,arguments)}return Dt(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Je(a,SS),u=Cr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return st(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(Dr.Item,xe({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),$S=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.eventKey,i=e.warnKey,s=e.disabled,l=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,b=e.onClick,h=e.onKeyDown,p=e.onFocus,g=Je(e,xS),C=Kf(o),m=c.useContext(br),y=m.prefixCls,x=m.onItemClick,S=m.disabled,E=m.overflowDisabled,R=m.itemIcon,w=m.selectedKeys,$=m.onActive,T=c.useContext(xl),M=T._internalRenderMenuItem,F="".concat(y,"-item"),A=c.useRef(),_=c.useRef(),k=S||s,N=Na(t,_),O=ka(o);process.env.NODE_ENV!=="production"&&i&&st(!1,"MenuItem should not leave undefined `key`.");var j=function(fe){return{key:o,keyPath:Ce(O).reverse(),item:A.current,domEvent:fe}},z=l||R,V=Qf(o,k,f,v),H=V.active,K=Je(V,ES),W=w.includes(o),q=Jf(O.length),Y=function(fe){if(!k){var ge=j(fe);b==null||b(Fo(ge)),x(ge)}},J=function(fe){if(h==null||h(fe),fe.which===ce.ENTER){var ge=j(fe);b==null||b(Fo(ge)),x(ge)}},ee=function(fe){$(o),p==null||p(fe)},te={};e.role==="option"&&(te["aria-selected"]=W);var oe=c.createElement(wS,xe({ref:A,elementRef:N,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":E&&C?null:C},g,K,te,{component:"li","aria-disabled":s,style:D(D({},q),n),className:Z(F,(r={},L(r,"".concat(F,"-active"),H),L(r,"".concat(F,"-selected"),W),L(r,"".concat(F,"-disabled"),k),r),a),onClick:Y,onKeyDown:J,onFocus:ee}),u,c.createElement(ev,{props:D(D({},e),{},{isSelected:W}),icon:z}));return M&&(oe=M(oe,e,{selected:W})),oe});function OS(e,t){var r=e.eventKey,n=Zo(),a=ka(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement($S,xe({},e,{ref:t}))}const Qo=c.forwardRef(OS);var RS=["className","children"],PS=function(t,r){var n=t.className,a=t.children,o=Je(t,RS),i=c.useContext(br),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",xe({className:Z(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),a)},$l=c.forwardRef(PS);$l.displayName="SubMenuList";function Ol(e,t){return Rr(e).map(function(r,n){if(c.isValidElement(r)){var a,o,i=r.key,s=(a=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:i,l=s==null;l&&(s="tmp_key-".concat([].concat(Ce(t),[n]).join("-")));var u={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(u.warnKey=!0),c.cloneElement(r,u)}return r})}var Bt={adjustX:1,adjustY:1},_S={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},leftTop:{points:["tr","tl"],overflow:Bt},leftBottom:{points:["br","bl"],overflow:Bt},rightTop:{points:["tl","tr"],overflow:Bt},rightBottom:{points:["bl","br"],overflow:Bt}},TS={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},rightTop:{points:["tr","tl"],overflow:Bt},rightBottom:{points:["br","bl"],overflow:Bt},leftTop:{points:["tl","tr"],overflow:Bt},leftBottom:{points:["bl","br"],overflow:Bt}};function tv(e,t,r){if(t)return t;if(r)return r[e]||r.other}var NS={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function IS(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,o=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(br),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,C=f.triggerSubMenuAction,m=f.forceSubMenuRender,y=f.rootClassName,x=f.motion,S=f.defaultMotions,E=c.useState(!1),R=U(E,2),w=R[0],$=R[1],T=D(b?D({},TS):D({},_S),g),M=NS[u],F=tv(u,x,S),A=c.useRef(F);u!=="inline"&&(A.current=F);var _=D(D({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),k=c.useRef();return c.useEffect(function(){return k.current=Tt(function(){$(r)}),function(){Tt.cancel(k.current)}},[r]),c.createElement(Sl,{prefixCls:t,popupClassName:Z("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:T,popupPlacement:M,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[C],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:m,popupMotion:_,fresh:!0},n)}function MS(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(br),s=i.prefixCls,l=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,v=c.useRef(!1);v.current=f===o;var b=c.useState(!v.current),h=U(b,2),p=h[0],g=h[1],C=v.current?r:!1;c.useEffect(function(){v.current&&g(!1)},[f]);var m=D({},tv(o,u,d));n.length>1&&(m.motionAppear=!1);var y=m.onVisibleChanged;return m.onVisibleChanged=function(x){return!v.current&&!x&&g(!0),y==null?void 0:y(x)},p?null:c.createElement(_a,{mode:o,locked:!v.current},c.createElement(un,xe({visible:C},m,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var S=x.className,E=x.style;return c.createElement($l,{id:t,className:S,style:E},a)}))}var jS=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],AS=["active"],FS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.title,i=e.eventKey,s=e.warnKey,l=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,b=e.popupClassName,h=e.popupOffset,p=e.popupStyle,g=e.onClick,C=e.onMouseEnter,m=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,S=e.onTitleMouseLeave,E=Je(e,jS),R=Kf(i),w=c.useContext(br),$=w.prefixCls,T=w.mode,M=w.openKeys,F=w.disabled,A=w.overflowDisabled,_=w.activeKey,k=w.selectedKeys,N=w.itemIcon,O=w.expandIcon,j=w.onItemClick,z=w.onOpenChange,V=w.onActive,H=c.useContext(xl),K=H._internalRenderSubMenuItem,W=c.useContext(Yf),q=W.isSubPathKey,Y=ka(),J="".concat($,"-submenu"),ee=F||l,te=c.useRef(),oe=c.useRef();process.env.NODE_ENV!=="production"&&s&&st(!1,"SubMenu should not leave undefined `key`.");var ve=f??N,fe=v??O,ge=M.includes(i),Oe=!A&&ge,B=q(k,i),ue=Qf(i,ee,x,S),le=ue.active,Ee=Je(ue,AS),he=c.useState(!1),ae=U(he,2),me=ae[0],$e=ae[1],je=function(De){ee||$e(De)},ie=function(De){je(!0),C==null||C({key:i,domEvent:De})},ne=function(De){je(!1),m==null||m({key:i,domEvent:De})},pe=c.useMemo(function(){return le||(T!=="inline"?me||q([_],i):!1)},[T,le,_,me,i,q]),be=Jf(Y.length),at=function(De){ee||(y==null||y({key:i,domEvent:De}),T==="inline"&&z(i,!ge))},Xe=la(function(Ze){g==null||g(Fo(Ze)),j(Ze)}),Ae=function(De){T!=="inline"&&z(i,De)},Ke=function(){V(i)},Ye=R&&"".concat(R,"-popup"),et=c.createElement("div",xe({role:"menuitem",style:be,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:te,title:typeof o=="string"?o:null,"data-menu-id":A&&R?null:R,"aria-expanded":Oe,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":ee,onClick:at,onFocus:Ke},Ee),o,c.createElement(ev,{icon:T!=="horizontal"?fe:void 0,props:D(D({},e),{},{isOpen:Oe,isSubMenu:!0})},c.createElement("i",{className:"".concat(J,"-arrow")}))),Le=c.useRef(T);if(T!=="inline"&&Y.length>1?Le.current="vertical":Le.current=T,!A){var Ne=Le.current;et=c.createElement(IS,{mode:Ne,prefixCls:J,visible:!u&&Oe&&T!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(_a,{mode:Ne==="horizontal"?"vertical":Ne},c.createElement($l,{id:Ye,ref:oe},d)),disabled:ee,onVisibleChange:Ae},et)}var lt=c.createElement(Dr.Item,xe({ref:t,role:"none"},E,{component:"li",style:n,className:Z(J,"".concat(J,"-").concat(T),a,(r={},L(r,"".concat(J,"-open"),Oe),L(r,"".concat(J,"-active"),pe),L(r,"".concat(J,"-selected"),B),L(r,"".concat(J,"-disabled"),ee),r)),onMouseEnter:ie,onMouseLeave:ne}),et,!A&&c.createElement(MS,{id:Ye,open:Oe,keyPath:Y},d));return K&&(lt=K(lt,e,{selected:B,active:pe,open:Oe,disabled:ee})),c.createElement(_a,{onItemClick:Xe,mode:T==="horizontal"?"vertical":T,itemIcon:ve,expandIcon:fe},lt)}),Jo=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=ka(r),o=Ol(n,a),i=Zo();c.useEffect(function(){if(i)return i.registerPath(r,a),function(){i.unregisterPath(r,a)}},[a]);var s;return i?s=o:s=c.createElement(FS,xe({ref:t},e),o),c.createElement(Xf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Jo.displayName="SubMenu");function rv(e){var t=e.className,r=e.style,n=c.useContext(br),a=n.prefixCls,o=Zo();return o?null:c.createElement("li",{role:"separator",className:Z("".concat(a,"-item-divider"),t),style:r})}var LS=["className","title","eventKey","children"],DS=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=Je(e,LS),i=c.useContext(br),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",xe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Z(l,r)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),Rl=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=ka(r),o=Ol(n,a),i=Zo();return i?o:c.createElement(DS,xe({ref:t},Cr(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(Rl.displayName="MenuItemGroup");var zS=["label","children","key","type"];function Us(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Ie(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=Je(l,zS),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,xe({key:h},b,{title:u}),Us(d,t)):c.createElement(a,xe({key:h},b,{title:u}),Us(d,t)):v==="divider"?c.createElement(o,xe({key:h},b)):c.createElement(r,xe({key:h},b),u)}return null}).filter(function(i){return i})}function uu(e,t,r,n){var a=e,o=D({divider:rv,item:Qo,group:Rl,submenu:Jo},n);return t&&(a=Us(t,o)),Ol(a,r)}var kS=["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"],tn=[],VS=c.forwardRef(function(e,t){var r,n,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,l=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,v=a.items,b=a.children,h=a.direction,p=a.id,g=a.mode,C=g===void 0?"vertical":g,m=a.inlineCollapsed,y=a.disabled,x=a.disabledOverflow,S=a.subMenuOpenDelay,E=S===void 0?.1:S,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,T=a.defaultOpenKeys,M=a.openKeys,F=a.activeKey,A=a.defaultActiveFirst,_=a.selectable,k=_===void 0?!0:_,N=a.multiple,O=N===void 0?!1:N,j=a.defaultSelectedKeys,z=a.selectedKeys,V=a.onSelect,H=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Y=a.defaultMotions,J=a.triggerSubMenuAction,ee=J===void 0?"hover":J,te=a.builtinPlacements,oe=a.itemIcon,ve=a.expandIcon,fe=a.overflowedIndicator,ge=fe===void 0?"...":fe,Oe=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ue=a.onClick,le=a.onOpenChange,Ee=a.onKeyDown,he=a.openAnimation,ae=a.openTransitionName,me=a._internalRenderMenuItem,$e=a._internalRenderSubMenuItem,je=a._internalComponents,ie=Je(a,kS),ne=c.useMemo(function(){return[uu(b,v,tn,je),uu(b,v,tn,{})]},[b,v,je]),pe=U(ne,2),be=pe[0],at=pe[1],Xe=c.useState(!1),Ae=U(Xe,2),Ke=Ae[0],Ye=Ae[1],et=c.useRef(),Le=yS(p),Ne=h==="rtl";process.env.NODE_ENV!=="production"&&st(!he&&!ae,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var lt=Zt(T,{value:M,postState:function(it){return it||tn}}),Ze=U(lt,2),De=Ze[0],de=Ze[1],we=function(it){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Mt(){de(it),le==null||le(it)}vt?Mn.flushSync(Mt):Mt()},qe=c.useState(De),ot=U(qe,2),Ct=ot[0],ft=ot[1],Be=c.useRef(!1),Ve=c.useMemo(function(){return(C==="inline"||C==="vertical")&&m?["vertical",m]:[C,!1]},[C,m]),ze=U(Ve,2),Pe=ze[0],ye=ze[1],Ue=Pe==="inline",bt=c.useState(Pe),He=U(bt,2),We=He[0],ct=He[1],yt=c.useState(ye),Pt=U(yt,2),kt=Pt[0],Wt=Pt[1];c.useEffect(function(){ct(Pe),Wt(ye),Be.current&&(Ue?de(Ct):we(tn))},[Pe,ye]);var I=c.useState(0),G=U(I,2),X=G[0],se=G[1],_e=X>=be.length-1||We!=="horizontal"||x;c.useEffect(function(){Ue&&ft(De)},[De]),c.useEffect(function(){return Be.current=!0,function(){Be.current=!1}},[]);var Re=hS(),Te=Re.registerPath,Me=Re.unregisterPath,mt=Re.refreshOverflowKeys,rt=Re.isSubPathKey,ke=Re.getKeyPath,wt=Re.getKeys,Gt=Re.getSubPathKeys,Vt=c.useMemo(function(){return{registerPath:Te,unregisterPath:Me}},[Te,Me]),pt=c.useMemo(function(){return{isSubPathKey:rt}},[rt]);c.useEffect(function(){mt(_e?tn:be.slice(X+1).map(function(ht){return ht.key}))},[X,_e]);var Sr=Zt(F||A&&((r=be[0])===null||r===void 0?void 0:r.key),{value:F}),Br=U(Sr,2),Ut=Br[0],Hr=Br[1],Kn=la(function(ht){Hr(ht)}),nr=la(function(){Hr(void 0)});P.useImperativeHandle(t,function(){return{list:et.current,focus:function(it){var vt,Mt=wt(),At=Ws(Mt,Le),Er=At.elements,wr=At.key2element,Zn=At.element2key,Kt=El(et.current,Er),en=Ut??(Kt[0]?Zn.get(Kt[0]):(vt=be.find(function(Gr){return!Gr.props.disabled}))===null||vt===void 0?void 0:vt.key),qt=wr.get(en);if(en&&qt){var dr;qt==null||(dr=qt.focus)===null||dr===void 0||dr.call(qt,it)}}}});var cr=Zt(j||[],{value:z,postState:function(it){return Array.isArray(it)?it:it==null?tn:[it]}}),Wr=U(cr,2),Tr=Wr[0],xr=Wr[1],Nr=function(it){if(k){var vt=it.key,Mt=Tr.includes(vt),At;O?Mt?At=Tr.filter(function(wr){return wr!==vt}):At=[].concat(Ce(Tr),[vt]):At=[vt],xr(At);var Er=D(D({},it),{},{selectedKeys:At});Mt?H==null||H(Er):V==null||V(Er)}!O&&De.length&&We!=="inline"&&we(tn)},Jr=la(function(ht){ue==null||ue(Fo(ht)),Nr(ht)}),Ir=la(function(ht,it){var vt=De.filter(function(At){return At!==ht});if(it)vt.push(ht);else if(We!=="inline"){var Mt=Gt(ht);vt=vt.filter(function(At){return!Mt.has(At)})}Ca(De,vt,!0)||we(vt,!0)}),ur=function(it,vt){var Mt=vt??!De.includes(it);Ir(it,Mt)},qn=gS(We,Ut,Ne,Le,et,wt,ke,Hr,ur,Ee);c.useEffect(function(){Ye(!0)},[]);var Xn=c.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:$e}},[me,$e]),Yn=We!=="horizontal"||x?be:be.map(function(ht,it){return c.createElement(_a,{key:ht.key,overflowDisabled:it>X},ht)}),mn=c.createElement(Dr,xe({id:p,ref:et,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Qo,className:Z(i,"".concat(i,"-root"),"".concat(i,"-").concat(We),u,(n={},L(n,"".concat(i,"-inline-collapsed"),kt),L(n,"".concat(i,"-rtl"),Ne),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:Yn,renderRawItem:function(it){return it},renderRawRest:function(it){var vt=it.length,Mt=vt?be.slice(-vt):null;return c.createElement(Jo,{eventKey:Gs,title:ge,disabled:_e,internalPopupClose:vt===0,popupClassName:Oe},Mt)},maxCount:We!=="horizontal"||x?Dr.INVALIDATE:Dr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(it){se(it)},onKeyDown:qn},ie));return c.createElement(xl.Provider,{value:Xn},c.createElement(Gf.Provider,{value:Le},c.createElement(_a,{prefixCls:i,rootClassName:s,mode:We,openKeys:De,rtl:Ne,disabled:y,motion:Ke?q:null,defaultMotions:Ke?Y:null,activeKey:Ut,onActive:Kn,onInactive:nr,selectedKeys:Tr,inlineIndent:W,subMenuOpenDelay:E,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:ee,getPopupContainer:B,itemIcon:oe,expandIcon:ve,onItemClick:Jr,onOpenChange:Ir},c.createElement(Yf.Provider,{value:pt},mn),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(qf.Provider,{value:Vt},at)))))}),Va=VS;Va.Item=Qo;Va.SubMenu=Jo;Va.ItemGroup=Rl;Va.Divider=rv;var BS={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"},HS=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:BS}))},nv=c.forwardRef(HS);process.env.NODE_ENV!=="production"&&(nv.displayName="EllipsisOutlined");const av=c.createContext(null),WS=av.Provider,ov=c.createContext(null),GS=ov.Provider;var US=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],KS=P.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,a=e.className,o=e.style,i=e.checked,s=e.disabled,l=e.defaultChecked,u=l===void 0?!1:l,d=e.type,f=d===void 0?"checkbox":d,v=e.title,b=e.onChange,h=Je(e,US),p=P.useRef(null),g=P.useRef(null),C=Zt(u,{value:i}),m=U(C,2),y=m[0],x=m[1];P.useImperativeHandle(t,function(){return{focus:function(w){var $;($=p.current)===null||$===void 0||$.focus(w)},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur()},input:p.current,nativeElement:g.current}});var S=Z(n,a,L(L({},"".concat(n,"-checked"),y),"".concat(n,"-disabled"),s)),E=function(w){s||("checked"in e||x(w.target.checked),b==null||b({target:D(D({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return c.createElement("span",{className:S,title:v,style:o,ref:g},c.createElement("input",xe({},h,{className:"".concat(n,"-input"),ref:p,onChange:E,disabled:s,checked:!!y,type:f})),c.createElement("span",{className:"".concat(n,"-inner")}))});const qS=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},zr(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},XS=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:v,paddingXS:b,dotColorDisabled:h,lineType:p,radioColor:g,radioBgColor:C,calc:m}=e,y=`${t}-inner`,S=m(a).sub(m(4).mul(2)),E=m(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},zr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,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:`${Q(d)} ${p} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},zr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
248
|
-
&:hover ${y}`]:{borderColor:n},[`${t}-input:focus-visible + ${y}`]:Object.assign({},cl(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:E,height:E,marginBlockStart:m(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:m(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:l,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:n,backgroundColor:C,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${m(S).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:b,paddingInlineEnd:b}})}},YS=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:v,controlHeightLG:b,controlHeightSM:h,paddingXS:p,borderRadius:g,borderRadiusSM:C,borderRadiusLG:m,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:S,colorBgContainerDisabled:E,buttonCheckedBgDisabled:R,buttonCheckedColorDisabled:w,colorPrimary:$,colorPrimaryHover:T,colorPrimaryActive:M,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:A,buttonSolidCheckedActiveBg:_,calc:k}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:Q(k(r).sub(k(a).mul(2)).equal()),background:f,border:`${Q(a)} ${o} ${i}`,borderBlockStartWidth:k(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:k(a).mul(-1).equal(),insetInlineStart:k(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Q(a)} ${o} ${i}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${n}-group-large &`]:{height:b,fontSize:v,lineHeight:Q(k(b).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m}},[`${n}-group-small &`]:{height:h,paddingInline:k(p).sub(a).equal(),paddingBlock:0,lineHeight:Q(k(h).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},cl(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:x,background:F,borderColor:F,"&:hover":{color:x,background:A,borderColor:A},"&:active":{color:x,background:_,borderColor:_}},"&-disabled":{color:S,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:E,borderColor:i}},[`&-disabled${n}-button-wrapper-checked`]:{color:w,backgroundColor:R,borderColor:i,boxShadow:"none"}}}},ZS=e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:v,colorPrimaryActive:b,colorWhite:h}=e,p=4,g=o,C=t?g-p*2:g-(p+a)*2;return{radioSize:g,dotSize:C,dotColorDisabled:l,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:v,buttonSolidCheckedActiveBg:b,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:l,buttonPaddingInline:r-a,wrapperMarginInlineEnd:n,radioColor:t?f:h,radioBgColor:t?s:f}},iv=lr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${Q(r)} ${t}`,o=jt(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[qS(o),XS(o),YS(o)]},ZS,{unitless:{radioSize:!0,dotSize:!0}});var QS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const JS=(e,t)=>{var r,n;const a=c.useContext(av),o=c.useContext(ov),{getPrefixCls:i,direction:s,radio:l}=c.useContext(nt),u=c.useRef(null),d=yr(t,u),{isFormItemInput:f}=c.useContext(Bn);if(process.env.NODE_ENV!=="production"){const _=Nt("Radio");process.env.NODE_ENV!=="production"&&_(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const v=_=>{var k,N;(k=e.onChange)===null||k===void 0||k.call(e,_),(N=a==null?void 0:a.onChange)===null||N===void 0||N.call(a,_)},{prefixCls:b,className:h,rootClassName:p,children:g,style:C,title:m}=e,y=QS(e,["prefixCls","className","rootClassName","children","style","title"]),x=i("radio",b),S=((a==null?void 0:a.optionType)||o)==="button",E=S?`${x}-button`:x,R=Ma(x),[w,$,T]=iv(x,R),M=Object.assign({},y),F=c.useContext(ln);a&&(M.name=a.name,M.onChange=v,M.checked=e.value===a.value,M.disabled=(r=M.disabled)!==null&&r!==void 0?r:a.disabled),M.disabled=(n=M.disabled)!==null&&n!==void 0?n:F;const A=Z(`${E}-wrapper`,{[`${E}-wrapper-checked`]:M.checked,[`${E}-wrapper-disabled`]:M.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f},l==null?void 0:l.className,h,p,$,T,R);return w(c.createElement(pl,{component:"Radio",disabled:M.disabled},c.createElement("label",{className:A,style:Object.assign(Object.assign({},l==null?void 0:l.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:m},c.createElement(KS,Object.assign({},M,{className:Z(M.className,{[ml]:!S}),type:"radio",prefixCls:E,ref:d})),g!==void 0?c.createElement("span",null,g):null)))},Ta=c.forwardRef(JS);process.env.NODE_ENV!=="production"&&(Ta.displayName="Radio");const ex=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(nt),[a,o]=Zt(e.defaultValue,{value:e.value}),i=_=>{const k=a,N=_.target.value;"value"in e||o(N);const{onChange:O}=e;O&&N!==k&&O(_)},{prefixCls:s,className:l,rootClassName:u,options:d,buttonStyle:f="outline",disabled:v,children:b,size:h,style:p,id:g,onMouseEnter:C,onMouseLeave:m,onFocus:y,onBlur:x}=e,S=r("radio",s),E=`${S}-group`,R=Ma(S),[w,$,T]=iv(S,R);let M=b;d&&d.length>0&&(M=d.map(_=>typeof _=="string"||typeof _=="number"?c.createElement(Ta,{key:_.toString(),prefixCls:S,disabled:v,value:_,checked:a===_},_):c.createElement(Ta,{key:`radio-group-value-options-${_.value}`,prefixCls:S,disabled:_.disabled||v,value:_.value,checked:a===_.value,title:_.title,style:_.style,id:_.id,required:_.required},_.label)));const F=vn(h),A=Z(E,`${E}-${f}`,{[`${E}-${F}`]:F,[`${E}-rtl`]:n==="rtl"},l,u,$,T,R);return w(c.createElement("div",Object.assign({},e0(e,{aria:!0,data:!0}),{className:A,style:p,onMouseEnter:C,onMouseLeave:m,onFocus:y,onBlur:x,id:g,ref:t}),c.createElement(WS,{value:{onChange:i,value:a,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))}),tx=c.memo(ex);var rx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const nx=(e,t)=>{const{getPrefixCls:r}=c.useContext(nt),{prefixCls:n}=e,a=rx(e,["prefixCls"]),o=r("radio",n);return c.createElement(GS,{value:"button"},c.createElement(Ta,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},ax=c.forwardRef(nx),Ba=Ta;Ba.Button=ax;Ba.Group=tx;Ba.__ANT_RADIO=!0;function ox(e){return jt(e,{inputAffixPadding:e.paddingXXS})}const ix=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:b,colorPrimary:h,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:C,colorWarningOutline:m,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:h,hoverBorderColor:b,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${C}`,warningActiveShadow:`0 0 0 ${p}px ${m}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},sx=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Pl=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({},sx(jt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),sv=(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}}),du=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),lx=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Pl(e))}),du(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),du(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),fu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),cx=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},fu(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),fu(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Pl(e))}})}),ux=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},lv=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),vu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lv(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),dx=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Pl(e))}),vu(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),vu(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),gu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),fx=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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},gu(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),gu(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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),vx=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),cv=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${Q(t)} ${Q(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},uv=e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),dv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Q(e.paddingBlock)} ${Q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},vx(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({},cv(e)),"&-sm":Object.assign({},uv(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),gx=e=>{const{componentCls:t,antCls:r}=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({},cv(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},uv(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${Q(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},Ia()),{[`${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},[`
|
|
235
|
+
`]:Object.assign({},mP(e))}}},CP=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},ko=er("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=nn(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[SP(r)]},CP,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),wP=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:o="default"}=e,{getPrefixCls:s}=g.useContext(Tt),l=s("skeleton",t),[c,u,d]=ko(l),f=hr(e,["prefixCls","className"]),h=pe(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return c(g.createElement("div",{className:h},g.createElement(Gu,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:o},f))))},$P=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:o="default"}=e,{getPrefixCls:s}=g.useContext(Tt),l=s("skeleton",t),[c,u,d]=ko(l),f=hr(e,["prefixCls"]),h=pe(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,d);return c(g.createElement("div",{className:h},g.createElement(Gu,Object.assign({prefixCls:`${l}-button`,size:o},f))))},_P="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",EP=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:o}=g.useContext(Tt),s=o("skeleton",t),[l,c,u]=ko(s),d=pe(s,`${s}-element`,{[`${s}-active`]:a},n,r,c,u);return l(g.createElement("div",{className:d},g.createElement("div",{className:pe(`${s}-image`,n),style:i},g.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},g.createElement("title",null,"Image placeholder"),g.createElement("path",{d:_P,className:`${s}-image-path`})))))},OP=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:o="default"}=e,{getPrefixCls:s}=g.useContext(Tt),l=s("skeleton",t),[c,u,d]=ko(l),f=hr(e,["prefixCls"]),h=pe(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:a},n,r,u,d);return c(g.createElement("div",{className:h},g.createElement(Gu,Object.assign({prefixCls:`${l}-input`,size:o},f))))};var MP={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"},TP=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:MP}))},N2=g.forwardRef(TP);process.env.NODE_ENV!=="production"&&(N2.displayName="DotChartOutlined");const RP=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:o}=e,{getPrefixCls:s}=g.useContext(Tt),l=s("skeleton",t),[c,u,d]=ko(l),f=pe(l,`${l}-element`,{[`${l}-active`]:a},u,n,r,d),h=o??g.createElement(N2,null);return c(g.createElement("div",{className:f},g.createElement("div",{className:pe(`${l}-image`,n),style:i},h)))},PP=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},IP=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,a=Ge(Array(i)).map((o,s)=>g.createElement("li",{key:s,style:{width:PP(s,e)}}));return g.createElement("ul",{className:pe(t,n),style:r},a)},AP=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return g.createElement("h3",{className:pe(t,n),style:Object.assign({width:r},i)})};function Vf(e){return e&&typeof e=="object"?e:{}}function NP(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function kP(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function jP(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ca=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:h,skeleton:p}=g.useContext(Tt),m=f("skeleton",t),[v,y,b]=ko(m);if(n||!("loading"in e)){const x=!!s,C=!!l,S=!!c;let w;if(x){const _=Object.assign(Object.assign({prefixCls:`${m}-avatar`},NP(C,S)),Vf(s));w=g.createElement("div",{className:`${m}-header`},g.createElement(Gu,Object.assign({},_)))}let O;if(C||S){let _;if(C){const R=Object.assign(Object.assign({prefixCls:`${m}-title`},kP(x,S)),Vf(l));_=g.createElement(AP,Object.assign({},R))}let T;if(S){const R=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},jP(x,C)),Vf(c));T=g.createElement(IP,Object.assign({},R))}O=g.createElement("div",{className:`${m}-content`},_,T)}const E=pe(m,{[`${m}-with-avatar`]:x,[`${m}-active`]:u,[`${m}-rtl`]:h==="rtl",[`${m}-round`]:d},p==null?void 0:p.className,r,i,y,b);return v(g.createElement("div",{className:E,style:Object.assign(Object.assign({},p==null?void 0:p.style),a)},w,O))}return o??null};Ca.Button=$P;Ca.Avatar=wP;Ca.Input=OP;Ca.Image=EP;Ca.Node=RP;process.env.NODE_ENV!=="production"&&(Ca.displayName="Skeleton");const LP=e=>({animationDuration:e,animationFillMode:"both"}),DP=e=>({animationDuration:e,animationFillMode:"both"}),xm=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
236
|
+
${a}${e}-enter,
|
|
237
|
+
${a}${e}-appear
|
|
238
|
+
`]:Object.assign(Object.assign({},LP(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},DP(r)),{animationPlayState:"paused"}),[`
|
|
239
|
+
${a}${e}-enter${e}-enter-active,
|
|
240
|
+
${a}${e}-appear${e}-appear-active
|
|
241
|
+
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},FP=new Kt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zP=new Kt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),BP=new Kt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),VP=new Kt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),WP=new Kt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),HP=new Kt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),UP=new Kt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),GP=new Kt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),qP={"move-up":{inKeyframes:UP,outKeyframes:GP},"move-down":{inKeyframes:FP,outKeyframes:zP},"move-left":{inKeyframes:BP,outKeyframes:VP},"move-right":{inKeyframes:WP,outKeyframes:HP}},Lb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=qP[t];return[xm(r,i,a,e.motionDurationMid),{[`
|
|
242
|
+
${r}-enter,
|
|
243
|
+
${r}-appear
|
|
244
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},k2=new Kt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),j2=new Kt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),L2=new Kt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),D2=new Kt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),KP=new Kt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),YP=new Kt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),XP=new Kt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ZP=new Kt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),QP={"slide-up":{inKeyframes:k2,outKeyframes:j2},"slide-down":{inKeyframes:L2,outKeyframes:D2},"slide-left":{inKeyframes:KP,outKeyframes:YP},"slide-right":{inKeyframes:XP,outKeyframes:ZP}},Qc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=QP[t];return[xm(r,i,a,e.motionDurationMid),{[`
|
|
245
|
+
${r}-enter,
|
|
246
|
+
${r}-appear
|
|
247
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},JP=new Kt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),eI=new Kt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Db=new Kt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Fb=new Kt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),tI=new Kt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),nI=new Kt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),rI=new Kt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),iI=new Kt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),aI=new Kt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),oI=new Kt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),sI=new Kt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),lI=new Kt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),cI={zoom:{inKeyframes:JP,outKeyframes:eI},"zoom-big":{inKeyframes:Db,outKeyframes:Fb},"zoom-big-fast":{inKeyframes:Db,outKeyframes:Fb},"zoom-left":{inKeyframes:rI,outKeyframes:iI},"zoom-right":{inKeyframes:aI,outKeyframes:oI},"zoom-up":{inKeyframes:tI,outKeyframes:nI},"zoom-down":{inKeyframes:sI,outKeyframes:lI}},uI=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=cI[t];return[xm(r,i,a,e.motionDurationFast),{[`
|
|
248
|
+
${r}-enter,
|
|
249
|
+
${r}-appear
|
|
250
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function dI(e){return t=>g.createElement(Vi,{theme:{token:{motion:!1,zIndexPopupBase:0}}},g.createElement(e,Object.assign({},t)))}const fI=(e,t,n,r)=>dI(a=>{const{prefixCls:o,style:s}=a,l=g.useRef(null),[c,u]=g.useState(0),[d,f]=g.useState(0),[h,p]=_n(!1,{value:a.open}),{getPrefixCls:m}=g.useContext(Tt),v=m("select",o);g.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(S=>{const w=S[0].target;u(w.offsetHeight+8),f(w.offsetWidth)}),C=setInterval(()=>{var S;const w=`.${v}-dropdown`,O=(S=l.current)===null||S===void 0?void 0:S.querySelector(w);O&&(clearInterval(C),x.observe(O))},10);return()=>{clearInterval(C),x.disconnect()}}},[]);let y=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});const b={paddingBottom:c,position:"relative",minWidth:d};return g.createElement("div",{ref:l,style:b},g.createElement(e,Object.assign({},y)))}),Sm=function(){if(typeof navigator>"u"||typeof window>"u")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(e==null?void 0:e.substr(0,4))};var Ku=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return g.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:g.createElement("span",{className:pe(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},hI=function(t,n,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=$.useMemo(function(){if(ut(i)==="object")return i.clearIcon;if(a)return a},[i,a]),u=$.useMemo(function(){return!!(!o&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,o,r.length,s,l]);return{allowClear:u,clearIcon:$.createElement(Ku,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},F2=g.createContext(null);function vI(){return g.useContext(F2)}function gI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=g.useState(!1),n=ae(t,2),r=n[0],i=n[1],a=g.useRef(null),o=function(){window.clearTimeout(a.current)};g.useEffect(function(){return o},[]);var s=function(c,u){o(),a.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,o]}function z2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=g.useRef(null),n=g.useRef(null);g.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function mI(e,t,n,r){var i=g.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},g.useEffect(function(){function a(o){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function pI(e){return![$e.ESC,$e.SHIFT,$e.BACKSPACE,$e.TAB,$e.WIN_KEY,$e.ALT,$e.META,$e.WIN_KEY_RIGHT,$e.CTRL,$e.SEMICOLON,$e.EQUALS,$e.CAPS_LOCK,$e.CONTEXT_MENU,$e.F1,$e.F2,$e.F3,$e.F4,$e.F5,$e.F6,$e.F7,$e.F8,$e.F9,$e.F10,$e.F11,$e.F12].includes(e)}var bI=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Da=void 0;function yI(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,h=e.display,p=e.order,m=e.component,v=m===void 0?"div":m,y=wt(e,bI),b=o&&!h;function x(E){l(c,E)}g.useEffect(function(){return function(){x(null)}},[]);var C=a&&i!==Da?a(i):f,S;r||(S={opacity:b?0:1,height:b?0:Da,overflowY:b?"hidden":Da,order:o?p:Da,pointerEvents:b?"none":Da,position:b?"absolute":Da});var w={};b&&(w["aria-hidden"]=!0);var O=g.createElement(v,Ye({className:pe(!r&&n,u),style:te(te({},S),d)},w,y,{ref:t}),C);return o&&(O=g.createElement(sr,{onResize:function(_){var T=_.offsetWidth;x(T)},disabled:s},O)),O}var As=g.forwardRef(yI);As.displayName="Item";function xI(e){if(typeof MessageChannel>"u")qt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function SI(){var e=g.useRef(null),t=function(r){e.current||(e.current=[],xI(function(){vi.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function ns(e,t){var n=g.useState(t),r=ae(n,2),i=r[0],a=r[1],o=$n(function(s){e(function(){a(s)})});return[i,o]}var Jc=$.createContext(null),CI=["component"],wI=["className"],$I=["className"],_I=function(t,n){var r=g.useContext(Jc);if(!r){var i=t.component,a=i===void 0?"div":i,o=wt(t,CI);return g.createElement(a,Ye({},o,{ref:n}))}var s=r.className,l=wt(r,wI),c=t.className,u=wt(t,$I);return g.createElement(Jc.Provider,{value:null},g.createElement(As,Ye({ref:n,className:pe(s,c)},l,u)))},B2=g.forwardRef(_I);B2.displayName="RawItem";var EI=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],V2="responsive",W2="invalidate";function OI(e){return"+ ".concat(e.length," ...")}function MI(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,f=e.style,h=e.className,p=e.maxCount,m=e.renderRest,v=e.renderRawRest,y=e.suffix,b=e.component,x=b===void 0?"div":b,C=e.itemComponent,S=e.onVisibleChange,w=wt(e,EI),O=d==="full",E=SI(),_=ns(E,null),T=ae(_,2),R=T[0],F=T[1],I=R||0,P=ns(E,new Map),k=ae(P,2),A=k[0],M=k[1],N=ns(E,0),j=ae(N,2),D=j[0],V=j[1],X=ns(E,0),q=ae(X,2),Z=q[0],J=q[1],Q=ns(E,0),K=ae(Q,2),Y=K[0],W=K[1],H=$.useState(null),U=ae(H,2),z=U[0],ne=U[1],B=$.useState(null),re=ae(B,2),ie=re[0],ue=re[1],me=g.useMemo(function(){return ie===null&&O?Number.MAX_SAFE_INTEGER:ie||0},[ie,R]),ve=$.useState(!1),be=ae(ve,2),Ce=be[0],ge=be[1],fe="".concat(r,"-item"),se=Math.max(D,Z),xe=p===V2,ce=a.length&&xe,Ne=p===W2,Me=ce||typeof p=="number"&&a.length>p,Ie=$.useMemo(function(){var Ve=a;return ce?R===null&&O?Ve=a:Ve=a.slice(0,Math.min(a.length,I/u)):typeof p=="number"&&(Ve=a.slice(0,p)),Ve},[a,u,R,p,ce]),je=$.useMemo(function(){return ce?a.slice(me+1):a.slice(Ie.length)},[a,Ie,ce,me]),He=$.useCallback(function(Ve,Te){var st;return typeof l=="function"?l(Ve):(st=l&&(Ve==null?void 0:Ve[l]))!==null&&st!==void 0?st:Te},[l]),Xe=$.useCallback(o||function(Ve){return Ve},[o]);function ke(Ve,Te,st){ie===Ve&&(Te===void 0||Te===z)||(ue(Ve),st||(ge(Ve<a.length-1),S==null||S(Ve)),Te!==void 0&&ne(Te))}function Oe(Ve,Te){F(Te.clientWidth)}function nt(Ve,Te){M(function(st){var mt=new Map(st);return Te===null?mt.delete(Ve):mt.set(Ve,Te),mt})}function We(Ve,Te){J(Te),V(Z)}function Be(Ve,Te){W(Te)}function Se(Ve){return A.get(He(Ie[Ve],Ve))}Gt(function(){if(I&&typeof se=="number"&&Ie){var Ve=Y,Te=Ie.length,st=Te-1;if(!Te){ke(0,null);return}for(var mt=0;mt<Te;mt+=1){var Ee=Se(mt);if(O&&(Ee=Ee||0),Ee===void 0){ke(mt-1,void 0,!0);break}if(Ve+=Ee,st===0&&Ve<=I||mt===st-1&&Ve+Se(st)<=I){ke(st,null);break}else if(Ve+se>I){ke(mt-1,Ve-Ee-Y+Z);break}}y&&Se(0)+Y>I&&ne(null)}},[I,A,Z,Y,He,Ie]);var Fe=Ce&&!!je.length,ot={};z!==null&&ce&&(ot={position:"absolute",left:z,top:0});var ct={prefixCls:fe,responsive:ce,component:C,invalidate:Ne},De=s?function(Ve,Te){var st=He(Ve,Te);return g.createElement(Jc.Provider,{key:st,value:te(te({},ct),{},{order:Te,item:Ve,itemKey:st,registerSize:nt,display:Te<=me})},s(Ve,Te))}:function(Ve,Te){var st=He(Ve,Te);return g.createElement(As,Ye({},ct,{order:Te,key:st,item:Ve,renderItem:Xe,itemKey:st,registerSize:nt,display:Te<=me}))},qe,Qe={order:Fe?me:Number.MAX_SAFE_INTEGER,className:"".concat(fe,"-rest"),registerSize:We,display:Fe};if(v)v&&(qe=g.createElement(Jc.Provider,{value:te(te({},ct),Qe)},v(je)));else{var Je=m||OI;qe=g.createElement(As,Ye({},ct,Qe),typeof Je=="function"?Je(je):Je)}var rt=g.createElement(x,Ye({className:pe(!Ne&&r,h),style:f,ref:t},w),Ie.map(De),Me?qe:null,y&&g.createElement(As,Ye({},ct,{responsive:xe,responsiveDisabled:!ce,order:me,className:"".concat(fe,"-suffix"),registerSize:Be,display:!0,style:ot}),y));return xe&&(rt=g.createElement(sr,{onResize:Oe,disabled:!ce},rt)),rt}var Xr=g.forwardRef(MI);Xr.displayName="Overflow";Xr.Item=B2;Xr.RESPONSIVE=V2;Xr.INVALIDATE=W2;var TI=function(t,n){var r,i=t.prefixCls,a=t.id,o=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,h=t.value,p=t.maxLength,m=t.onKeyDown,v=t.onMouseDown,y=t.onChange,b=t.onPaste,x=t.onCompositionStart,C=t.onCompositionEnd,S=t.open,w=t.attrs,O=o||g.createElement("input",null),E=O,_=E.ref,T=E.props,R=T.onKeyDown,F=T.onChange,I=T.onMouseDown,P=T.onCompositionStart,k=T.onCompositionEnd,A=T.style;return da(!("maxLength"in O.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),O=g.cloneElement(O,te(te(te({type:"search"},T),{},{id:a,ref:Er(n,_),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:pe("".concat(i,"-selection-search-input"),(r=O)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":S?f:void 0},w),{},{value:d?h:"",maxLength:p,readOnly:!d,unselectable:d?null:"on",style:te(te({},A),{},{opacity:d?null:0}),onKeyDown:function(N){m(N),R&&R(N)},onMouseDown:function(N){v(N),I&&I(N)},onChange:function(N){y(N),F&&F(N)},onCompositionStart:function(N){x(N),P&&P(N)},onCompositionEnd:function(N){C(N),k&&k(N)},onPaste:b})),O},Cm=g.forwardRef(TI);process.env.NODE_ENV!=="production"&&(Cm.displayName="Input");function wm(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var RI=typeof window<"u"&&window.document&&window.document.documentElement,PI=process.env.NODE_ENV!=="test"&&RI;function II(e){return e!=null}function AI(e){return!e&&e!==0}function zb(e){return["string","number"].includes(ut(e))}function H2(e){var t=void 0;return e&&(zb(e.title)?t=e.title.toString():zb(e.label)&&(t=e.label.toString())),t}function NI(e,t){PI?g.useLayoutEffect(e,t):g.useEffect(e,t)}function kI(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Bb=function(t){t.preventDefault(),t.stopPropagation()},jI=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,f=t.showSearch,h=t.autoFocus,p=t.autoComplete,m=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,x=t.maxTagTextLength,C=t.maxTagPlaceholder,S=C===void 0?function(ne){return"+ ".concat(ne.length," ...")}:C,w=t.tagRender,O=t.onToggleOpen,E=t.onRemove,_=t.onInputChange,T=t.onInputPaste,R=t.onInputKeyDown,F=t.onInputMouseDown,I=t.onInputCompositionStart,P=t.onInputCompositionEnd,k=g.useRef(null),A=$.useState(0),M=ae(A,2),N=M[0],j=M[1],D=$.useState(!1),V=ae(D,2),X=V[0],q=V[1],Z="".concat(r,"-selection"),J=a||d==="multiple"&&s===!1||d==="tags"?o:"",Q=d==="tags"||d==="multiple"&&s===!1||f&&(a||X);NI(function(){j(k.current.scrollWidth)},[J]);var K=function(B,re,ie,ue,me){return g.createElement("span",{title:H2(B),className:pe("".concat(Z,"-item"),ee({},"".concat(Z,"-item-disabled"),ie))},g.createElement("span",{className:"".concat(Z,"-item-content")},re),ue&&g.createElement(Ku,{className:"".concat(Z,"-item-remove"),onMouseDown:Bb,onClick:me,customizeIcon:y},"×"))},Y=function(B,re,ie,ue,me,ve){var be=function(ge){Bb(ge),O(!a)};return g.createElement("span",{onMouseDown:be},w({label:re,value:B,disabled:ie,closable:ue,onClose:me,isMaxTag:!!ve}))},W=function(B){var re=B.disabled,ie=B.label,ue=B.value,me=!u&&!re,ve=ie;if(typeof x=="number"&&(typeof ie=="string"||typeof ie=="number")){var be=String(ve);be.length>x&&(ve="".concat(be.slice(0,x),"..."))}var Ce=function(fe){fe&&fe.stopPropagation(),E(B)};return typeof w=="function"?Y(ue,ve,re,me,Ce):K(B,ve,re,me,Ce)},H=function(B){var re=typeof S=="function"?S(B):S;return typeof w=="function"?Y(void 0,re,!1,!1,void 0,!0):K({title:re},re,!1)},U=g.createElement("div",{className:"".concat(Z,"-search"),style:{width:N},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},g.createElement(Cm,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:p,editable:Q,activeDescendantId:m,value:J,onKeyDown:R,onMouseDown:F,onChange:_,onPaste:T,onCompositionStart:I,onCompositionEnd:P,tabIndex:v,attrs:Ys(t,!0)}),g.createElement("span",{ref:k,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},J," ")),z=g.createElement(Xr,{prefixCls:"".concat(Z,"-overflow"),data:i,renderItem:W,renderRest:H,suffix:U,itemKey:kI,maxCount:b});return g.createElement(g.Fragment,null,z,!i.length&&!J&&g.createElement("span",{className:"".concat(Z,"-placeholder")},c))},LI=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,h=t.placeholder,p=t.tabIndex,m=t.showSearch,v=t.searchValue,y=t.activeValue,b=t.maxLength,x=t.onInputKeyDown,C=t.onInputMouseDown,S=t.onInputChange,w=t.onInputPaste,O=t.onInputCompositionStart,E=t.onInputCompositionEnd,_=t.title,T=g.useState(!1),R=ae(T,2),F=R[0],I=R[1],P=u==="combobox",k=P||m,A=f[0],M=v||"";P&&y&&!F&&(M=y),g.useEffect(function(){P&&I(!1)},[P,y]);var N=u!=="combobox"&&!d&&!m?!1:!!M,j=_===void 0?H2(A):_,D=g.useMemo(function(){return A?null:g.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},h)},[A,N,h,r]);return g.createElement(g.Fragment,null,g.createElement("span",{className:"".concat(r,"-selection-search")},g.createElement(Cm,{ref:a,prefixCls:r,id:i,open:d,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:k,activeDescendantId:c,value:M,onKeyDown:x,onMouseDown:C,onChange:function(X){I(!0),S(X)},onPaste:w,onCompositionStart:O,onCompositionEnd:E,tabIndex:p,attrs:Ys(t,!0),maxLength:P?b:void 0})),!P&&A?g.createElement("span",{className:"".concat(r,"-selection-item"),title:j,style:N?{visibility:"hidden"}:void 0},A.label):null,D)},DI=function(t,n){var r=$.useRef(null),i=$.useRef(!1),a=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.autoClearSearchValue,f=t.onSearch,h=t.onSearchSubmit,p=t.onToggleOpen,m=t.onInputKeyDown,v=t.domRef;g.useImperativeHandle(n,function(){return{focus:function(N){r.current.focus(N)},blur:function(){r.current.blur()}}});var y=z2(0),b=ae(y,2),x=b[0],C=b[1],S=function(N){var j=N.which;(j===$e.UP||j===$e.DOWN)&&N.preventDefault(),m&&m(N),j===$e.ENTER&&s==="tags"&&!i.current&&!o&&(h==null||h(N.target.value)),pI(j)&&p(!0)},w=function(){C(!0)},O=$.useRef(null),E=function(N){f(N,!0,i.current)!==!1&&p(!0)},_=function(){i.current=!0},T=function(N){i.current=!1,s!=="combobox"&&E(N.target.value)},R=function(N){var j=N.target.value;if(c&&O.current&&/[\r\n]/.test(O.current)){var D=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");j=j.replace(D,O.current)}O.current=null,E(j)},F=function(N){var j=N.clipboardData,D=j==null?void 0:j.getData("text");O.current=D||""},I=function(N){var j=N.target;if(j!==r.current){var D=document.body.style.msTouchAction!==void 0;D?setTimeout(function(){r.current.focus()}):r.current.focus()}},P=function(N){var j=x();N.target!==r.current&&!j&&!(s==="combobox"&&u)&&N.preventDefault(),(s!=="combobox"&&(!l||!j)||!o)&&(o&&d!==!1&&f("",!0,!1),p())},k={inputRef:r,onInputKeyDown:S,onInputMouseDown:w,onInputChange:R,onInputPaste:F,onInputCompositionStart:_,onInputCompositionEnd:T},A=s==="multiple"||s==="tags"?g.createElement(jI,Ye({},t,k)):g.createElement(LI,Ye({},t,k));return g.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:I,onMouseDown:P},A)},U2=g.forwardRef(DI);process.env.NODE_ENV!=="production"&&(U2.displayName="Selector");function FI(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,l=i.x,c=l===void 0?0:l,u=i.y,d=u===void 0?0:u,f=g.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],m=n.points[1],v=p[0],y=p[1],b=m[0],x=m[1];v===b||!["t","b"].includes(v)?h.top=d:v==="t"?h.top=0:h.bottom=0,y===x||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0}return g.createElement("div",{ref:f,className:pe("".concat(t,"-arrow"),o),style:h},s)}function zI(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?g.createElement(xa,Ye({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return g.createElement("div",{style:{zIndex:r},className:pe("".concat(t,"-mask"),s)})}):null}var G2=g.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(G2.displayName="PopupContent");var q2=g.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,h=e.arrow,p=e.arrowPos,m=e.align,v=e.motion,y=e.maskMotion,b=e.forceRender,x=e.getPopupContainer,C=e.autoDestroy,S=e.portal,w=e.zIndex,O=e.onMouseEnter,E=e.onMouseLeave,_=e.onPointerEnter,T=e.ready,R=e.offsetX,F=e.offsetY,I=e.offsetR,P=e.offsetB,k=e.onAlign,A=e.onPrepare,M=e.stretch,N=e.targetWidth,j=e.targetHeight,D=typeof n=="function"?n():n,V=l||c,X=(x==null?void 0:x.length)>0,q=g.useState(!x||!X),Z=ae(q,2),J=Z[0],Q=Z[1];if(Gt(function(){!J&&X&&o&&Q(!0)},[J,X,o]),!J)return null;var K="auto",Y={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(T||!l){var W,H=m.points,U=m.dynamicInset||((W=m._experimental)===null||W===void 0?void 0:W.dynamicInset),z=U&&H[0][1]==="r",ne=U&&H[0][0]==="b";z?(Y.right=I,Y.left=K):(Y.left=R,Y.right=K),ne?(Y.bottom=P,Y.top=K):(Y.top=F,Y.bottom=K)}var B={};return M&&(M.includes("height")&&j?B.height=j:M.includes("minHeight")&&j&&(B.minHeight=j),M.includes("width")&&N?B.width=N:M.includes("minWidth")&&N&&(B.minWidth=N)),l||(B.pointerEvents="none"),g.createElement(S,{open:b||V,getContainer:x&&function(){return x(o)},autoDestroy:C},g.createElement(zI,{prefixCls:i,open:l,zIndex:w,mask:f,motion:y}),g.createElement(sr,{onResize:k,disabled:!l},function(re){return g.createElement(xa,Ye({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:A,onEnterPrepare:A,visible:l,onVisibleChanged:function(ue){var me;v==null||(me=v.onVisibleChanged)===null||me===void 0||me.call(v,ue),s(ue)}}),function(ie,ue){var me=ie.className,ve=ie.style,be=pe(i,me,r);return g.createElement("div",{ref:Er(re,t,ue),className:be,style:te(te(te(te({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},Y),B),ve),{},{boxSizing:"border-box",zIndex:w},a),onMouseEnter:O,onMouseLeave:E,onPointerEnter:_,onClick:d},h&&g.createElement(FI,{prefixCls:i,arrow:h,arrowPos:p,align:m}),g.createElement(G2,{cache:!l&&!u},D))})}))});process.env.NODE_ENV!=="production"&&(q2.displayName="Popup");var K2=g.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=ya(n),a=g.useCallback(function(s){qg(t,r?r(s):s)},[r]),o=Ro(a,n.ref);return i?g.cloneElement(n,{ref:o}):n});process.env.NODE_ENV!=="production"&&(K2.displayName="TriggerWrapper");var Vb=g.createContext(null);function Wb(e){return e?Array.isArray(e)?e:[e]:[]}function BI(e,t,n,r){return g.useMemo(function(){var i=Wb(n??t),a=Wb(r??t),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function VI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function WI(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o<a.length;o+=1){var s,l=a[o];if(VI((s=e[l])===null||s===void 0?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function Hb(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function _l(e){return e.ownerDocument.defaultView}function zv(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=_l(n).getComputedStyle(n),a=i.overflowX,o=i.overflowY,s=i.overflow;[a,o,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function Zs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function rs(e){return Zs(parseFloat(e),0)}function Ub(e,t){var n=te({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=_l(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,h=r.clientHeight,p=r.offsetWidth,m=r.clientWidth,v=rs(s),y=rs(l),b=rs(c),x=rs(u),C=Zs(Math.round(d.width/p*1e3)/1e3),S=Zs(Math.round(d.height/f*1e3)/1e3),w=(p-m-b-x)*C,O=(f-h-v-y)*S,E=v*S,_=y*S,T=b*C,R=x*C,F=0,I=0;if(a==="clip"){var P=rs(o);F=P*C,I=P*S}var k=d.x+T-F,A=d.y+E-I,M=k+d.width+2*F-T-R-w,N=A+d.height+2*I-E-_-O;n.left=Math.max(n.left,k),n.top=Math.max(n.top,A),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,N)}}),n}function Gb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function qb(e,t){var n=t||[],r=ae(n,2),i=r[0],a=r[1];return[Gb(e.width,i),Gb(e.height,a)]}function Kb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Fa(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function Ci(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function HI(e,t,n,r,i,a,o){var s=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=ae(s,2),c=l[0],u=l[1],d=g.useRef(0),f=g.useMemo(function(){return t?zv(t):[]},[t]),h=g.useRef({}),p=function(){h.current={}};e||p();var m=$n(function(){if(t&&n&&e){let gn=function(qn,Pr){var Si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:be,Na=D.x+qn,Zo=D.y+Pr,Qo=Na+W,Hl=Zo+Y,vf=Math.max(Na,Si.left),gf=Math.max(Zo,Si.top),mf=Math.min(Qo,Si.right),pf=Math.min(Hl,Si.bottom);return Math.max(0,(mf-vf)*(pf-gf))},Ui=function(){G=D.y+Je,oe=G+Y,le=D.x+Qe,_e=le+W};var b,x,C=t,S=C.ownerDocument,w=_l(C),O=w.getComputedStyle(C),E=O.width,_=O.height,T=O.position,R=C.style.left,F=C.style.top,I=C.style.right,P=C.style.bottom,k=C.style.overflow,A=te(te({},i[r]),a),M=S.createElement("div");(b=C.parentElement)===null||b===void 0||b.appendChild(M),M.style.left="".concat(C.offsetLeft,"px"),M.style.top="".concat(C.offsetTop,"px"),M.style.position=T,M.style.height="".concat(C.offsetHeight,"px"),M.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var N;if(Array.isArray(n))N={x:n[0],y:n[1],width:0,height:0};else{var j=n.getBoundingClientRect();N={x:j.x,y:j.y,width:j.width,height:j.height}}var D=C.getBoundingClientRect(),V=S.documentElement,X=V.clientWidth,q=V.clientHeight,Z=V.scrollWidth,J=V.scrollHeight,Q=V.scrollTop,K=V.scrollLeft,Y=D.height,W=D.width,H=N.height,U=N.width,z={left:0,top:0,right:X,bottom:q},ne={left:-K,top:-Q,right:Z-K,bottom:J-Q},B=A.htmlRegion,re="visible",ie="visibleFirst";B!=="scroll"&&B!==ie&&(B=re);var ue=B===ie,me=Ub(ne,f),ve=Ub(z,f),be=B===re?ve:me,Ce=ue?ve:be;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var ge=C.getBoundingClientRect();C.style.left=R,C.style.top=F,C.style.right=I,C.style.bottom=P,C.style.overflow=k,(x=C.parentElement)===null||x===void 0||x.removeChild(M);var fe=Zs(Math.round(W/parseFloat(E)*1e3)/1e3),se=Zs(Math.round(Y/parseFloat(_)*1e3)/1e3);if(fe===0||se===0||Ds(n)&&!dm(n))return;var xe=A.offset,ce=A.targetOffset,Ne=qb(D,xe),Me=ae(Ne,2),Ie=Me[0],je=Me[1],He=qb(N,ce),Xe=ae(He,2),ke=Xe[0],Oe=Xe[1];N.x-=ke,N.y-=Oe;var nt=A.points||[],We=ae(nt,2),Be=We[0],Se=We[1],Fe=Kb(Se),ot=Kb(Be),ct=Fa(N,Fe),De=Fa(D,ot),qe=te({},A),Qe=ct.x-De.x+Ie,Je=ct.y-De.y+je,rt=gn(Qe,Je),Ve=gn(Qe,Je,ve),Te=Fa(N,["t","l"]),st=Fa(D,["t","l"]),mt=Fa(N,["b","r"]),Ee=Fa(D,["b","r"]),he=A.overflow||{},we=he.adjustX,Le=he.adjustY,tt=he.shiftX,Ue=he.shiftY,at=function(Pr){return typeof Pr=="boolean"?Pr:Pr>=0},G,oe,le,_e;Ui();var Ke=at(Le),et=ot[0]===Fe[0];if(Ke&&ot[0]==="t"&&(oe>Ce.bottom||h.current.bt)){var Ze=Je;et?Ze-=Y-H:Ze=Te.y-Ee.y-je;var it=gn(Qe,Ze),Re=gn(Qe,Ze,ve);it>rt||it===rt&&(!ue||Re>=Ve)?(h.current.bt=!0,Je=Ze,je=-je,qe.points=[Ci(ot,0),Ci(Fe,0)]):h.current.bt=!1}if(Ke&&ot[0]==="b"&&(G<Ce.top||h.current.tb)){var Pe=Je;et?Pe+=Y-H:Pe=mt.y-st.y-je;var ze=gn(Qe,Pe),ft=gn(Qe,Pe,ve);ze>rt||ze===rt&&(!ue||ft>=Ve)?(h.current.tb=!0,Je=Pe,je=-je,qe.points=[Ci(ot,0),Ci(Fe,0)]):h.current.tb=!1}var Nt=at(we),Wt=ot[1]===Fe[1];if(Nt&&ot[1]==="l"&&(_e>Ce.right||h.current.rl)){var St=Qe;Wt?St-=W-U:St=Te.x-Ee.x-Ie;var Cn=gn(St,Je),fn=gn(St,Je,ve);Cn>rt||Cn===rt&&(!ue||fn>=Ve)?(h.current.rl=!0,Qe=St,Ie=-Ie,qe.points=[Ci(ot,1),Ci(Fe,1)]):h.current.rl=!1}if(Nt&&ot[1]==="r"&&(le<Ce.left||h.current.lr)){var Ht=Qe;Wt?Ht+=W-U:Ht=mt.x-st.x-Ie;var An=gn(Ht,Je),Rr=gn(Ht,Je,ve);An>rt||An===rt&&(!ue||Rr>=Ve)?(h.current.lr=!0,Qe=Ht,Ie=-Ie,qe.points=[Ci(ot,1),Ci(Fe,1)]):h.current.lr=!1}Ui();var ln=tt===!0?0:tt;typeof ln=="number"&&(le<ve.left&&(Qe-=le-ve.left-Ie,N.x+U<ve.left+ln&&(Qe+=N.x-ve.left+U-ln)),_e>ve.right&&(Qe-=_e-ve.right-Ie,N.x>ve.right-ln&&(Qe+=N.x-ve.right+ln)));var Ln=Ue===!0?0:Ue;typeof Ln=="number"&&(G<ve.top&&(Je-=G-ve.top-je,N.y+H<ve.top+Ln&&(Je+=N.y-ve.top+H-Ln)),oe>ve.bottom&&(Je-=oe-ve.bottom-je,N.y>ve.bottom-Ln&&(Je+=N.y-ve.bottom+Ln)));var pn=D.x+Qe,nr=pn+W,hn=D.y+Je,Un=hn+Y,ri=N.x,vr=ri+U,Gn=N.y,_t=Gn+H,gt=Math.max(pn,ri),vn=Math.min(nr,vr),cn=(gt+vn)/2,pt=cn-pn,vt=Math.max(hn,Gn),Ot=Math.min(Un,_t),Ut=(vt+Ot)/2,Jt=Ut-hn;o==null||o(t,qe);var Nn=ge.right-D.x-(Qe+D.width),wn=ge.bottom-D.y-(Je+D.height);fe===1&&(Qe=Math.round(Qe),Nn=Math.round(Nn)),se===1&&(Je=Math.round(Je),wn=Math.round(wn));var Hr={ready:!0,offsetX:Qe/fe,offsetY:Je/se,offsetR:Nn/fe,offsetB:wn/se,arrowX:pt/fe,arrowY:Jt/se,scaleX:fe,scaleY:se,align:qe};u(Hr)}}),v=function(){d.current+=1;var x=d.current;Promise.resolve().then(function(){d.current===x&&m()})},y=function(){u(function(x){return te(te({},x),{},{ready:!1})})};return Gt(y,[r]),Gt(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function UI(e,t,n,r,i){Gt(function(){if(e&&t&&n){let d=function(){r(),i()};var a=t,o=n,s=zv(a),l=zv(o),c=_l(o),u=new Set([c].concat(Ge(s),Ge(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function GI(e,t,n,r,i,a,o,s){var l=g.useRef(e);l.current=e,g.useEffect(function(){if(t&&r&&(!i||a)){var c=function(y){var b;l.current&&!o(((b=y.composedPath)===null||b===void 0||(b=b.call(y))===null||b===void 0?void 0:b[0])||y.target)&&s(!1)},u=_l(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var d=Kc(n);if(d&&(d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0)),process.env.NODE_ENV!=="production"){var f,h,p=n==null||(f=n.getRootNode)===null||f===void 0?void 0:f.call(n),m=(h=r.getRootNode)===null||h===void 0?void 0:h.call(r);da(p===m,"trigger element and popup element should in same shadow root.")}return function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),d&&(d.removeEventListener("mousedown",c,!0),d.removeEventListener("contextmenu",c,!0))}}},[t,n,r,i,a])}var qI=["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"];function KI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bm,t=g.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,h=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,m=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,b=n.focusDelay,x=n.blurDelay,C=n.mask,S=n.maskClosable,w=S===void 0?!0:S,O=n.getPopupContainer,E=n.forceRender,_=n.autoDestroy,T=n.destroyPopupOnHide,R=n.popup,F=n.popupClassName,I=n.popupStyle,P=n.popupPlacement,k=n.builtinPlacements,A=k===void 0?{}:k,M=n.popupAlign,N=n.zIndex,j=n.stretch,D=n.getPopupClassNameFromAlign,V=n.fresh,X=n.alignPoint,q=n.onPopupClick,Z=n.onPopupAlign,J=n.arrow,Q=n.popupMotion,K=n.maskMotion,Y=n.popupTransitionName,W=n.popupAnimation,H=n.maskTransitionName,U=n.maskAnimation,z=n.className,ne=n.getTriggerDOMNode,B=wt(n,qI),re=_||T||!1,ie=g.useState(!1),ue=ae(ie,2),me=ue[0],ve=ue[1];Gt(function(){ve(Sm())},[]);var be=g.useRef({}),Ce=g.useContext(Vb),ge=g.useMemo(function(){return{registerSubPopup:function(bt,an){be.current[bt]=an,Ce==null||Ce.registerSubPopup(bt,an)}}},[Ce]),fe=p4(),se=g.useState(null),xe=ae(se,2),ce=xe[0],Ne=xe[1],Me=g.useRef(null),Ie=$n(function(lt){Me.current=lt,Ds(lt)&&ce!==lt&&Ne(lt),Ce==null||Ce.registerSubPopup(fe,lt)}),je=g.useState(null),He=ae(je,2),Xe=He[0],ke=He[1],Oe=g.useRef(null),nt=$n(function(lt){Ds(lt)&&Xe!==lt&&(ke(lt),Oe.current=lt)}),We=g.Children.only(o),Be=(We==null?void 0:We.props)||{},Se={},Fe=$n(function(lt){var bt,an,bn=Xe;return(bn==null?void 0:bn.contains(lt))||((bt=Kc(bn))===null||bt===void 0?void 0:bt.host)===lt||lt===bn||(ce==null?void 0:ce.contains(lt))||((an=Kc(ce))===null||an===void 0?void 0:an.host)===lt||lt===ce||Object.values(be.current).some(function(on){return(on==null?void 0:on.contains(lt))||lt===on})}),ot=Hb(a,Q,W,Y),ct=Hb(a,K,U,H),De=g.useState(f||!1),qe=ae(De,2),Qe=qe[0],Je=qe[1],rt=d??Qe,Ve=$n(function(lt){d===void 0&&Je(lt)});Gt(function(){Je(d||!1)},[d]);var Te=g.useRef(rt);Te.current=rt;var st=g.useRef([]);st.current=[];var mt=$n(function(lt){var bt;Ve(lt),((bt=st.current[st.current.length-1])!==null&&bt!==void 0?bt:rt)!==lt&&(st.current.push(lt),h==null||h(lt))}),Ee=g.useRef(),he=function(){clearTimeout(Ee.current)},we=function(bt){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;he(),an===0?mt(bt):Ee.current=setTimeout(function(){mt(bt)},an*1e3)};g.useEffect(function(){return he},[]);var Le=g.useState(!1),tt=ae(Le,2),Ue=tt[0],at=tt[1];Gt(function(lt){(!lt||rt)&&at(!0)},[rt]);var G=g.useState(null),oe=ae(G,2),le=oe[0],_e=oe[1],Ke=g.useState([0,0]),et=ae(Ke,2),Ze=et[0],it=et[1],Re=function(bt){it([bt.clientX,bt.clientY])},Pe=HI(rt,ce,X?Ze:Xe,P,A,M,Z),ze=ae(Pe,11),ft=ze[0],Nt=ze[1],Wt=ze[2],St=ze[3],Cn=ze[4],fn=ze[5],Ht=ze[6],An=ze[7],Rr=ze[8],ln=ze[9],Ln=ze[10],pn=BI(me,l,c,u),nr=ae(pn,2),hn=nr[0],Un=nr[1],ri=hn.has("click"),vr=Un.has("click")||Un.has("contextMenu"),Gn=$n(function(){Ue||Ln()}),_t=function(){Te.current&&X&&vr&&we(!1)};UI(rt,Xe,ce,Gn,_t),Gt(function(){Gn()},[Ze,P]),Gt(function(){rt&&!(A!=null&&A[P])&&Gn()},[JSON.stringify(M)]);var gt=g.useMemo(function(){var lt=WI(A,a,ln,X);return pe(lt,D==null?void 0:D(ln))},[ln,D,A,a,X]);g.useImperativeHandle(r,function(){return{nativeElement:Oe.current,popupElement:Me.current,forceAlign:Gn}});var vn=g.useState(0),cn=ae(vn,2),pt=cn[0],vt=cn[1],Ot=g.useState(0),Ut=ae(Ot,2),Jt=Ut[0],Nn=Ut[1],wn=function(){if(j&&Xe){var bt=Xe.getBoundingClientRect();vt(bt.width),Nn(bt.height)}},Hr=function(){wn(),Gn()},gn=function(bt){at(!1),Ln(),p==null||p(bt)},Ui=function(){return new Promise(function(bt){wn(),_e(function(){return bt})})};Gt(function(){le&&(Ln(),le(),_e(null))},[le]);function qn(lt,bt,an,bn){Se[lt]=function(on){var Ul;bn==null||bn(on),we(bt,an);for(var bf=arguments.length,C0=new Array(bf>1?bf-1:0),Gl=1;Gl<bf;Gl++)C0[Gl-1]=arguments[Gl];(Ul=Be[lt])===null||Ul===void 0||Ul.call.apply(Ul,[Be,on].concat(C0))}}(ri||vr)&&(Se.onClick=function(lt){var bt;Te.current&&vr?we(!1):!Te.current&&ri&&(Re(lt),we(!0));for(var an=arguments.length,bn=new Array(an>1?an-1:0),on=1;on<an;on++)bn[on-1]=arguments[on];(bt=Be.onClick)===null||bt===void 0||bt.call.apply(bt,[Be,lt].concat(bn))}),GI(rt,vr,Xe,ce,C,w,Fe,we);var Pr=hn.has("hover"),Si=Un.has("hover"),Na,Zo;Pr&&(qn("onMouseEnter",!0,m,function(lt){Re(lt)}),qn("onPointerEnter",!0,m,function(lt){Re(lt)}),Na=function(bt){(rt||Ue)&&ce!==null&&ce!==void 0&&ce.contains(bt.target)&&we(!0,m)},X&&(Se.onMouseMove=function(lt){var bt;(bt=Be.onMouseMove)===null||bt===void 0||bt.call(Be,lt)})),Si&&(qn("onMouseLeave",!1,y),qn("onPointerLeave",!1,y),Zo=function(){we(!1,y)}),hn.has("focus")&&qn("onFocus",!0,b),Un.has("focus")&&qn("onBlur",!1,x),hn.has("contextMenu")&&(Se.onContextMenu=function(lt){var bt;Te.current&&Un.has("contextMenu")?we(!1):(Re(lt),we(!0)),lt.preventDefault();for(var an=arguments.length,bn=new Array(an>1?an-1:0),on=1;on<an;on++)bn[on-1]=arguments[on];(bt=Be.onContextMenu)===null||bt===void 0||bt.call.apply(bt,[Be,lt].concat(bn))}),z&&(Se.className=pe(Be.className,z));var Qo=te(te({},Be),Se),Hl={},vf=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];vf.forEach(function(lt){B[lt]&&(Hl[lt]=function(){for(var bt,an=arguments.length,bn=new Array(an),on=0;on<an;on++)bn[on]=arguments[on];(bt=Qo[lt])===null||bt===void 0||bt.call.apply(bt,[Qo].concat(bn)),B[lt].apply(B,bn)})});var gf=g.cloneElement(We,te(te({},Qo),Hl)),mf={x:fn,y:Ht},pf=J?te({},J!==!0?J:{}):null;return g.createElement(g.Fragment,null,g.createElement(sr,{disabled:!rt,ref:nt,onResize:Hr},g.createElement(K2,{getTriggerDOMNode:ne},gf)),g.createElement(Vb.Provider,{value:ge},g.createElement(q2,{portal:e,ref:Ie,prefixCls:a,popup:R,className:pe(F,gt),style:I,target:Xe,onMouseEnter:Na,onMouseLeave:Zo,onPointerEnter:Na,zIndex:N,open:rt,keepDom:Ue,fresh:V,onClick:q,mask:C,motion:ot,maskMotion:ct,onVisibleChanged:gn,onPrepare:Ui,forceRender:E,autoDestroy:re,getPopupContainer:O,align:ln,arrow:pf,arrowPos:mf,ready:ft,offsetX:Nt,offsetY:Wt,offsetR:St,offsetB:Cn,onAlign:Gn,stretch:j,targetWidth:pt/An,targetHeight:Jt/Rr})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const Yu=KI(bm);var YI=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],XI=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},ZI=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,a=t.children,o=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,f=d===void 0?"ltr":d,h=t.placement,p=t.builtinPlacements,m=t.dropdownMatchSelectWidth,v=t.dropdownRender,y=t.dropdownAlign,b=t.getPopupContainer,x=t.empty,C=t.getTriggerDOMNode,S=t.onPopupVisibleChange,w=t.onPopupMouseEnter,O=wt(t,YI),E="".concat(r,"-dropdown"),_=o;v&&(_=v(o));var T=g.useMemo(function(){return p||XI(m)},[p,m]),R=s?"".concat(E,"-").concat(s):l,F=typeof m=="number",I=g.useMemo(function(){return F?null:m===!1?"minWidth":"width"},[m,F]),P=c;F&&(P=te(te({},P),{},{width:m}));var k=g.useRef(null);return g.useImperativeHandle(n,function(){return{getPopupElement:function(){var M;return(M=k.current)===null||M===void 0?void 0:M.popupElement}}}),g.createElement(Yu,Ye({},O,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:h||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:E,popupTransitionName:R,popup:g.createElement("div",{onMouseEnter:w},_),ref:k,stretch:I,popupAlign:y,popupVisible:i,getPopupContainer:b,popupClassName:pe(u,ee({},"".concat(E,"-empty"),x)),popupStyle:P,getTriggerDOMNode:C,onPopupVisibleChange:S}),a)},Y2=g.forwardRef(ZI);process.env.NODE_ENV!=="production"&&(Y2.displayName="SelectTrigger");function Yb(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Bv(e){return typeof e<"u"&&!Number.isNaN(e)}function X2(e,t){var n=e||{},r=n.label,i=n.value,a=n.options,o=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:i||"value",options:a||"options",groupLabel:o||s}}function QI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=X2(n,!1),o=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(d,f){Array.isArray(d)&&d.forEach(function(h){if(f||!(l in h)){var p=h[s];i.push({key:Yb(h,i.length),groupOption:f,data:h,label:h[o],value:p})}else{var m=h[c];m===void 0&&r&&(m=h.label),i.push({key:Yb(h,i.length),group:!0,data:h,label:m}),u(h[l],!0)}})}return u(e,!1),i}function Vv(e){var t=te({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return yt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var JI=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function s(l,c){var u=TC(c),d=u[0],f=u.slice(1);if(!d)return[l];var h=l.split(d);return i=i||h.length>1,h.reduce(function(p,m){return[].concat(Ge(p),Ge(s(m,f)))},[]).filter(Boolean)},o=a(t,n);return i?typeof r<"u"?o.slice(0,r):o:null},$m=g.createContext(null);function e8(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return g.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,o=i.value;return["number","string"].includes(ut(a))?a:o}).join(", ")),n.length>r?", ...":null)}var t8=["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"],n8=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],eu=function(t){return t==="tags"||t==="multiple"},Z2=g.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,h=e.notFoundContent,p=h===void 0?"Not Found":h,m=e.onClear,v=e.mode,y=e.disabled,b=e.loading,x=e.getInputElement,C=e.getRawInputElement,S=e.open,w=e.defaultOpen,O=e.onDropdownVisibleChange,E=e.activeValue,_=e.onActiveValueChange,T=e.activeDescendantId,R=e.searchValue,F=e.autoClearSearchValue,I=e.onSearch,P=e.onSearchSplit,k=e.tokenSeparators,A=e.allowClear,M=e.suffixIcon,N=e.clearIcon,j=e.OptionList,D=e.animation,V=e.transitionName,X=e.dropdownStyle,q=e.dropdownClassName,Z=e.dropdownMatchSelectWidth,J=e.dropdownRender,Q=e.dropdownAlign,K=e.placement,Y=e.builtinPlacements,W=e.getPopupContainer,H=e.showAction,U=H===void 0?[]:H,z=e.onFocus,ne=e.onBlur,B=e.onKeyUp,re=e.onKeyDown,ie=e.onMouseDown,ue=wt(e,t8),me=eu(v),ve=(o!==void 0?o:me)||v==="combobox",be=te({},ue);n8.forEach(function(_t){delete be[_t]}),c==null||c.forEach(function(_t){delete be[_t]});var Ce=g.useState(!1),ge=ae(Ce,2),fe=ge[0],se=ge[1];g.useEffect(function(){se(Sm())},[]);var xe=g.useRef(null),ce=g.useRef(null),Ne=g.useRef(null),Me=g.useRef(null),Ie=g.useRef(null),je=g.useRef(!1),He=gI(),Xe=ae(He,3),ke=Xe[0],Oe=Xe[1],nt=Xe[2];g.useImperativeHandle(t,function(){var _t,gt;return{focus:(_t=Me.current)===null||_t===void 0?void 0:_t.focus,blur:(gt=Me.current)===null||gt===void 0?void 0:gt.blur,scrollTo:function(cn){var pt;return(pt=Ie.current)===null||pt===void 0?void 0:pt.scrollTo(cn)},nativeElement:xe.current||ce.current}});var We=g.useMemo(function(){var _t;if(v!=="combobox")return R;var gt=(_t=u[0])===null||_t===void 0?void 0:_t.value;return typeof gt=="string"||typeof gt=="number"?String(gt):""},[R,v,u]),Be=v==="combobox"&&typeof x=="function"&&x()||null,Se=typeof C=="function"&&C(),Fe=Ro(ce,Se==null||(n=Se.props)===null||n===void 0?void 0:n.ref),ot=g.useState(!1),ct=ae(ot,2),De=ct[0],qe=ct[1];Gt(function(){qe(!0)},[]);var Qe=_n(!1,{defaultValue:w,value:S}),Je=ae(Qe,2),rt=Je[0],Ve=Je[1],Te=De?rt:!1,st=!p&&f;(y||st&&Te&&v==="combobox")&&(Te=!1);var mt=st?!1:Te,Ee=g.useCallback(function(_t){var gt=_t!==void 0?_t:!Te;y||(Ve(gt),Te!==gt&&(O==null||O(gt)))},[y,Te,Ve,O]),he=g.useMemo(function(){return(k||[]).some(function(_t){return[`
|
|
251
|
+
`,`\r
|
|
252
|
+
`].includes(_t)})},[k]),we=g.useContext($m)||{},Le=we.maxCount,tt=we.rawValues,Ue=function(gt,vn,cn){if(!(me&&Bv(Le)&&(tt==null?void 0:tt.size)>=Le)){var pt=!0,vt=gt;_==null||_(null);var Ot=JI(gt,k,Bv(Le)?Le-tt.size:void 0),Ut=cn?null:Ot;return v!=="combobox"&&Ut&&(vt="",P==null||P(Ut),Ee(!1),pt=!1),I&&We!==vt&&I(vt,{source:vn?"typing":"effect"}),pt}},at=function(gt){!gt||!gt.trim()||I(gt,{source:"submit"})};g.useEffect(function(){!Te&&!me&&v!=="combobox"&&Ue("",!1,!1)},[Te]),g.useEffect(function(){rt&&y&&Ve(!1),y&&!je.current&&Oe(!1)},[y]);var G=z2(),oe=ae(G,2),le=oe[0],_e=oe[1],Ke=g.useRef(!1),et=function(gt){var vn=le(),cn=gt.key,pt=cn==="Enter";if(pt&&(v!=="combobox"&>.preventDefault(),Te||Ee(!0)),_e(!!We),cn==="Backspace"&&!vn&&me&&!We&&u.length){for(var vt=Ge(u),Ot=null,Ut=vt.length-1;Ut>=0;Ut-=1){var Jt=vt[Ut];if(!Jt.disabled){vt.splice(Ut,1),Ot=Jt;break}}Ot&&d(vt,{type:"remove",values:[Ot]})}for(var Nn=arguments.length,wn=new Array(Nn>1?Nn-1:0),Hr=1;Hr<Nn;Hr++)wn[Hr-1]=arguments[Hr];if(Te&&(!pt||!Ke.current)){var gn;(gn=Ie.current)===null||gn===void 0||gn.onKeyDown.apply(gn,[gt].concat(wn))}pt&&(Ke.current=!0),re==null||re.apply(void 0,[gt].concat(wn))},Ze=function(gt){for(var vn=arguments.length,cn=new Array(vn>1?vn-1:0),pt=1;pt<vn;pt++)cn[pt-1]=arguments[pt];if(Te){var vt;(vt=Ie.current)===null||vt===void 0||vt.onKeyUp.apply(vt,[gt].concat(cn))}gt.key==="Enter"&&(Ke.current=!1),B==null||B.apply(void 0,[gt].concat(cn))},it=function(gt){var vn=u.filter(function(cn){return cn!==gt});d(vn,{type:"remove",values:[gt]})},Re=g.useRef(!1),Pe=function(){Oe(!0),y||(z&&!Re.current&&z.apply(void 0,arguments),U.includes("focus")&&Ee(!0)),Re.current=!0},ze=function(){je.current=!0,Oe(!1,function(){Re.current=!1,je.current=!1,Ee(!1)}),!y&&(We&&(v==="tags"?I(We,{source:"submit"}):v==="multiple"&&I("",{source:"blur"})),ne&&ne.apply(void 0,arguments))},ft=[];g.useEffect(function(){return function(){ft.forEach(function(_t){return clearTimeout(_t)}),ft.splice(0,ft.length)}},[]);var Nt=function(gt){var vn,cn=gt.target,pt=(vn=Ne.current)===null||vn===void 0?void 0:vn.getPopupElement();if(pt&&pt.contains(cn)){var vt=setTimeout(function(){var Nn=ft.indexOf(vt);if(Nn!==-1&&ft.splice(Nn,1),nt(),!fe&&!pt.contains(document.activeElement)){var wn;(wn=Me.current)===null||wn===void 0||wn.focus()}});ft.push(vt)}for(var Ot=arguments.length,Ut=new Array(Ot>1?Ot-1:0),Jt=1;Jt<Ot;Jt++)Ut[Jt-1]=arguments[Jt];ie==null||ie.apply(void 0,[gt].concat(Ut))},Wt=g.useState({}),St=ae(Wt,2),Cn=St[1];function fn(){Cn({})}var Ht;Se&&(Ht=function(gt){Ee(gt)}),mI(function(){var _t;return[xe.current,(_t=Ne.current)===null||_t===void 0?void 0:_t.getPopupElement()]},mt,Ee,!!Se);var An=g.useMemo(function(){return te(te({},e),{},{notFoundContent:p,open:Te,triggerOpen:mt,id:r,showSearch:ve,multiple:me,toggleOpen:Ee})},[e,p,mt,Te,r,ve,me,Ee]),Rr=!!M||b,ln;Rr&&(ln=g.createElement(Ku,{className:pe("".concat(i,"-arrow"),ee({},"".concat(i,"-arrow-loading"),b)),customizeIcon:M,customizeIconProps:{loading:b,searchValue:We,open:Te,focused:ke,showSearch:ve}}));var Ln=function(){var gt;m==null||m(),(gt=Me.current)===null||gt===void 0||gt.focus(),d([],{type:"clear",values:u}),Ue("",!1,!1)},pn=hI(i,Ln,u,A,N,y,We,v),nr=pn.allowClear,hn=pn.clearIcon,Un=g.createElement(j,{ref:Ie}),ri=pe(i,a,ee(ee(ee(ee(ee(ee(ee(ee(ee(ee({},"".concat(i,"-focused"),ke),"".concat(i,"-multiple"),me),"".concat(i,"-single"),!me),"".concat(i,"-allow-clear"),A),"".concat(i,"-show-arrow"),Rr),"".concat(i,"-disabled"),y),"".concat(i,"-loading"),b),"".concat(i,"-open"),Te),"".concat(i,"-customize-input"),Be),"".concat(i,"-show-search"),ve)),vr=g.createElement(Y2,{ref:Ne,disabled:y,prefixCls:i,visible:mt,popupElement:Un,animation:D,transitionName:V,dropdownStyle:X,dropdownClassName:q,direction:l,dropdownMatchSelectWidth:Z,dropdownRender:J,dropdownAlign:Q,placement:K,builtinPlacements:Y,getPopupContainer:W,empty:f,getTriggerDOMNode:function(gt){return ce.current||gt},onPopupVisibleChange:Ht,onPopupMouseEnter:fn},Se?g.cloneElement(Se,{ref:Fe}):g.createElement(U2,Ye({},e,{domRef:ce,prefixCls:i,inputElement:Be,ref:Me,id:r,showSearch:ve,autoClearSearchValue:F,mode:v,activeDescendantId:T,tagRender:s,values:u,open:Te,onToggleOpen:Ee,activeValue:E,searchValue:We,onSearch:Ue,onSearchSubmit:at,onRemove:it,tokenWithEnter:he}))),Gn;return Se?Gn=vr:Gn=g.createElement("div",Ye({className:ri},be,{ref:xe,onMouseDown:Nt,onKeyDown:et,onKeyUp:Ze,onFocus:Pe,onBlur:ze}),g.createElement(e8,{visible:ke&&!Te,values:u}),vr,ln,nr&&hn),g.createElement(F2.Provider,{value:An},Gn)});process.env.NODE_ENV!=="production"&&(Z2.displayName="BaseSelect");var _m=function(){return null};_m.isSelectOptGroup=!0;var Em=function(){return null};Em.isSelectOption=!0;var Q2=g.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,a=e.children,o=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return r!==void 0&&(d={height:n,position:"relative",overflow:"hidden"},f=te(te({},f),{},ee(ee(ee(ee(ee({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),g.createElement("div",{style:d},g.createElement(sr,{onResize:function(p){var m=p.offsetHeight;m&&s&&s()}},g.createElement("div",Ye({style:f,className:pe(ee({},"".concat(o,"-holder-inner"),o)),ref:t},l),a,u)))});Q2.displayName="Filler";function r8(e){var t=e.children,n=e.setRef,r=g.useCallback(function(i){n(i)},[]);return g.cloneElement(t,{ref:r})}function i8(e,t,n,r,i,a,o,s){var l=s.getKey;return e.slice(t,n+1).map(function(c,u){var d=t+u,f=o(c,d,{style:{width:r},offsetX:i}),h=l(c);return g.createElement(r8,{key:h,setRef:function(m){return a(c,m)}},f)})}function a8(e,t,n){var r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r<i?(a=e,o=t):(a=t,o=e);var s={__EMPTY_ITEM__:!0};function l(p){return p!==void 0?n(p):s}for(var c=null,u=Math.abs(r-i)!==1,d=0;d<o.length;d+=1){var f=l(a[d]),h=l(o[d]);if(f!==h){c=d,u=u||f!==l(o[d+1]);break}}return c===null?null:{index:c,multiple:u}}function o8(e,t,n){var r=g.useState(e),i=ae(r,2),a=i[0],o=i[1],s=g.useState(null),l=ae(s,2),c=l[0],u=l[1];return g.useEffect(function(){var d=a8(a||[],e||[],t);(d==null?void 0:d.index)!==void 0&&u(e[d.index]),o(e)},[e]),[c]}var Xb=(typeof navigator>"u"?"undefined":ut(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const J2=function(e,t,n,r){var i=$.useRef(!1),a=$.useRef(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var s=$.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&d?(clearTimeout(a.current),i.current=!1):(!d||i.current)&&o(),!i.current&&d}};function s8(e,t,n,r,i,a,o){var s=$.useRef(0),l=$.useRef(null),c=$.useRef(null),u=$.useRef(!1),d=J2(t,n,r,i);function f(b,x){qt.cancel(l.current),s.current+=x,c.current=x,!d(!1,x)&&(Xb||b.preventDefault(),l.current=qt(function(){var C=u.current?10:1;o(s.current*C),s.current=0}))}function h(b,x){o(x,!0),Xb||b.preventDefault()}var p=$.useRef(null),m=$.useRef(null);function v(b){if(e){qt.cancel(m.current),m.current=qt(function(){p.current=null},2);var x=b.deltaX,C=b.deltaY,S=b.shiftKey,w=x,O=C;(p.current==="sx"||!p.current&&S&&C&&!x)&&(w=C,O=0,p.current="sx");var E=Math.abs(w),_=Math.abs(O);p.current===null&&(p.current=a&&E>_?"x":"y"),p.current==="y"?f(b,O):h(b,w)}}function y(b){e&&(u.current=b.detail===c.current)}return[v,y]}function l8(e,t,n,r){var i=g.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=ae(i,2),o=a[0],s=a[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=o.get(u),h=o.get(d);if(f===void 0||h===void 0)for(var p=e.length,m=s.length;m<p;m+=1){var v,y=e[m],b=t(y);o.set(b,m);var x=(v=n.get(b))!==null&&v!==void 0?v:r;if(s[m]=(s[m-1]||0)+x,b===u&&(f=m),b===d&&(h=m),f!==void 0&&h!==void 0)break}return{top:s[f-1]||0,bottom:s[h]}};return l}var c8=function(){function e(){Mn(this,e),ee(this,"maps",void 0),ee(this,"id",0),this.maps=Object.create(null)}return Tn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function u8(e,t,n){var r=g.useState(0),i=ae(r,2),a=i[0],o=i[1],s=$.useRef(new Map),l=$.useRef(new c8),c=$.useRef();function u(){qt.cancel(c.current)}function d(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var p=function(){s.current.forEach(function(v,y){if(v&&v.offsetParent){var b=Ts(v),x=b.offsetHeight;l.current.get(y)!==x&&l.current.set(y,b.offsetHeight)}}),o(function(v){return v+1})};h?p():c.current=qt(p)}function f(h,p){var m=e(h);s.current.get(m),p?(s.current.set(m,p),d()):s.current.delete(m)}return $.useEffect(function(){return u},[]),[f,d,l.current,a]}var Zb=14/15;function d8(e,t,n){var r=$.useRef(!1),i=$.useRef(0),a=$.useRef(0),o=$.useRef(null),s=$.useRef(null),l,c=function(h){if(r.current){var p=Math.ceil(h.touches[0].pageX),m=Math.ceil(h.touches[0].pageY),v=i.current-p,y=a.current-m,b=Math.abs(v)>Math.abs(y);b?i.current=p:a.current=m,n(b,b?v:y)&&h.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){b?v*=Zb:y*=Zb;var x=Math.floor(b?v:y);(!n(b,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16)}},u=function(){r.current=!1,l()},d=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(h.touches[0].pageX),a.current=Math.ceil(h.touches[0].pageY),o.current=h.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},Gt(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[e])}var Qb=10;function f8(e,t,n,r,i,a,o,s){var l=g.useRef(),c=g.useState(null),u=ae(c,2),d=u[0],f=u[1];return Gt(function(){if(d&&d.times<Qb){if(!e.current){f(function(j){return te({},j)});return}a();var h=d.targetAlign,p=d.originAlign,m=d.index,v=d.offset,y=e.current.clientHeight,b=!1,x=h,C=null;if(y){for(var S=h||p,w=0,O=0,E=0,_=Math.min(t.length-1,m),T=0;T<=_;T+=1){var R=i(t[T]);O=w;var F=n.get(R);E=O+(F===void 0?r:F),w=E}for(var I=S==="top"?v:y-v,P=_;P>=0;P-=1){var k=i(t[P]),A=n.get(k);if(A===void 0){b=!0;break}if(I-=A,I<=0)break}switch(S){case"top":C=O-v;break;case"bottom":C=E-y+v;break;default:{var M=e.current.scrollTop,N=M+y;O<M?x="top":E>N&&(x="bottom")}}C!==null&&o(C),C!==d.lastTop&&(b=!0)}b&&f(te(te({},d),{},{times:d.times+1,targetAlign:x,lastTop:C}))}else process.env.NODE_ENV!=="production"&&(d==null?void 0:d.times)===Qb&&yt(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[d,e.current]),function(h){if(h==null){s();return}if(qt.cancel(l.current),typeof h=="number")o(h);else if(h&&ut(h)==="object"){var p,m=h.align;"index"in h?p=h.index:p=t.findIndex(function(b){return i(b)===h.key});var v=h.offset,y=v===void 0?0:v;f({times:0,index:p,offset:y,originAlign:m})}}}function Jb(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var Wv=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,h=e.thumbStyle,p=g.useState(!1),m=ae(p,2),v=m[0],y=m[1],b=g.useState(null),x=ae(b,2),C=x[0],S=x[1],w=g.useState(null),O=ae(w,2),E=O[0],_=O[1],T=!r,R=g.useRef(),F=g.useRef(),I=g.useState(!1),P=ae(I,2),k=P[0],A=P[1],M=g.useRef(),N=function(){clearTimeout(M.current),A(!0),M.current=setTimeout(function(){A(!1)},3e3)},j=a-d||0,D=d-u||0,V=g.useMemo(function(){if(i===0||j===0)return 0;var H=i/j;return H*D},[i,j,D]),X=function(U){U.stopPropagation(),U.preventDefault()},q=g.useRef({top:V,dragging:v,pageY:C,startTop:E});q.current={top:V,dragging:v,pageY:C,startTop:E};var Z=function(U){y(!0),S(Jb(U,c)),_(q.current.top),o(),U.stopPropagation(),U.preventDefault()};g.useEffect(function(){var H=function(B){B.preventDefault()},U=R.current,z=F.current;return U.addEventListener("touchstart",H,{passive:!1}),z.addEventListener("touchstart",Z,{passive:!1}),function(){U.removeEventListener("touchstart",H),z.removeEventListener("touchstart",Z)}},[]);var J=g.useRef();J.current=j;var Q=g.useRef();Q.current=D,g.useEffect(function(){if(v){var H,U=function(B){var re=q.current,ie=re.dragging,ue=re.pageY,me=re.startTop;qt.cancel(H);var ve=R.current.getBoundingClientRect(),be=d/(c?ve.width:ve.height);if(ie){var Ce=(Jb(B,c)-ue)*be,ge=me;!T&&c?ge-=Ce:ge+=Ce;var fe=J.current,se=Q.current,xe=se?ge/se:0,ce=Math.ceil(xe*fe);ce=Math.max(ce,0),ce=Math.min(ce,fe),H=qt(function(){l(ce,c)})}},z=function(){y(!1),s()};return window.addEventListener("mousemove",U,{passive:!0}),window.addEventListener("touchmove",U,{passive:!0}),window.addEventListener("mouseup",z,{passive:!0}),window.addEventListener("touchend",z,{passive:!0}),function(){window.removeEventListener("mousemove",U),window.removeEventListener("touchmove",U),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),qt.cancel(H)}}},[v]),g.useEffect(function(){return N(),function(){clearTimeout(M.current)}},[i]),g.useImperativeHandle(t,function(){return{delayHidden:N}});var K="".concat(n,"-scrollbar"),Y={position:"absolute",visibility:k?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,W.height="100%",W.width=u,T?W.left=V:W.right=V):(Y.width=8,Y.top=0,Y.bottom=0,T?Y.right=0:Y.left=0,W.width="100%",W.height=u,W.top=V),g.createElement("div",{ref:R,className:pe(K,ee(ee(ee({},"".concat(K,"-horizontal"),c),"".concat(K,"-vertical"),!c),"".concat(K,"-visible"),k)),style:te(te({},Y),f),onMouseDown:X,onMouseMove:N},g.createElement("div",{ref:F,className:pe("".concat(K,"-thumb"),ee({},"".concat(K,"-thumb-moving"),v)),style:te(te({},W),h),onMouseDown:Z}))});process.env.NODE_ENV!=="production"&&(Wv.displayName="ScrollBar");var h8=20;function ey(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,h8),Math.floor(n)}var v8=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],g8=[],m8={overflowY:"auto",overflowAnchor:"none"};function p8(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,f=e.itemKey,h=e.virtual,p=e.direction,m=e.scrollWidth,v=e.component,y=v===void 0?"div":v,b=e.onScroll,x=e.onVirtualScroll,C=e.onVisibleChange,S=e.innerProps,w=e.extraRender,O=e.styles,E=wt(e,v8),_=g.useCallback(function(Re){return typeof f=="function"?f(Re):Re==null?void 0:Re[f]},[f]),T=u8(_),R=ae(T,4),F=R[0],I=R[1],P=R[2],k=R[3],A=!!(h!==!1&&a&&o),M=g.useMemo(function(){return Object.values(P.maps).reduce(function(Re,Pe){return Re+Pe},0)},[P.id,P.maps]),N=A&&u&&(Math.max(o*u.length,M)>a||!!m),j=p==="rtl",D=pe(r,ee({},"".concat(r,"-rtl"),j),i),V=u||g8,X=$.useRef(),q=$.useRef(),Z=$.useRef(),J=$.useState(0),Q=ae(J,2),K=Q[0],Y=Q[1],W=$.useState(0),H=ae(W,2),U=H[0],z=H[1],ne=$.useState(!1),B=ae(ne,2),re=B[0],ie=B[1],ue=function(){ie(!0)},me=function(){ie(!1)},ve={getKey:_};function be(Re){Y(function(Pe){var ze;typeof Re=="function"?ze=Re(Pe):ze=Re;var ft=De(ze);return X.current.scrollTop=ft,ft})}var Ce=$.useRef({start:0,end:V.length}),ge=$.useRef(),fe=o8(V,_),se=ae(fe,1),xe=se[0];ge.current=xe;var ce=g.useMemo(function(){if(!A)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};if(!N){var Re;return{scrollHeight:((Re=q.current)===null||Re===void 0?void 0:Re.offsetHeight)||0,start:0,end:V.length-1,offset:void 0}}for(var Pe=0,ze,ft,Nt,Wt=V.length,St=0;St<Wt;St+=1){var Cn=V[St],fn=_(Cn),Ht=P.get(fn),An=Pe+(Ht===void 0?o:Ht);An>=K&&ze===void 0&&(ze=St,ft=Pe),An>K+a&&Nt===void 0&&(Nt=St),Pe=An}return ze===void 0&&(ze=0,ft=0,Nt=Math.ceil(a/o)),Nt===void 0&&(Nt=V.length-1),Nt=Math.min(Nt+1,V.length-1),{scrollHeight:Pe,start:ze,end:Nt,offset:ft}},[N,A,K,V,k,a]),Ne=ce.scrollHeight,Me=ce.start,Ie=ce.end,je=ce.offset;Ce.current.start=Me,Ce.current.end=Ie;var He=g.useState({width:0,height:a}),Xe=ae(He,2),ke=Xe[0],Oe=Xe[1],nt=function(Pe){Oe({width:Pe.offsetWidth,height:Pe.offsetHeight})},We=$.useRef(),Be=$.useRef(),Se=g.useMemo(function(){return ey(ke.width,m)},[ke.width,m]),Fe=g.useMemo(function(){return ey(ke.height,Ne)},[ke.height,Ne]),ot=Ne-a,ct=$.useRef(ot);ct.current=ot;function De(Re){var Pe=Re;return Number.isNaN(ct.current)||(Pe=Math.min(Pe,ct.current)),Pe=Math.max(Pe,0),Pe}var qe=K<=0,Qe=K>=ot,Je=U<=0,rt=U>=m,Ve=J2(qe,Qe,Je,rt),Te=function(){return{x:j?-U:U,y:K}},st=$.useRef(Te()),mt=$n(function(Re){if(x){var Pe=te(te({},Te()),Re);(st.current.x!==Pe.x||st.current.y!==Pe.y)&&(x(Pe),st.current=Pe)}});function Ee(Re,Pe){var ze=Re;Pe?(vi.flushSync(function(){z(ze)}),mt()):be(ze)}function he(Re){var Pe=Re.currentTarget.scrollTop;Pe!==K&&be(Pe),b==null||b(Re),mt()}var we=function(Pe){var ze=Pe,ft=m?m-ke.width:0;return ze=Math.max(ze,0),ze=Math.min(ze,ft),ze},Le=$n(function(Re,Pe){Pe?(vi.flushSync(function(){z(function(ze){var ft=ze+(j?-Re:Re);return we(ft)})}),mt()):be(function(ze){var ft=ze+Re;return ft})}),tt=s8(A,qe,Qe,Je,rt,!!m,Le),Ue=ae(tt,2),at=Ue[0],G=Ue[1];d8(A,X,function(Re,Pe,ze){return Ve(Re,Pe,ze)?!1:(at({preventDefault:function(){},deltaX:Re?Pe:0,deltaY:Re?0:Pe}),!0)}),Gt(function(){function Re(ze){A&&ze.preventDefault()}var Pe=X.current;return Pe.addEventListener("wheel",at,{passive:!1}),Pe.addEventListener("DOMMouseScroll",G,{passive:!0}),Pe.addEventListener("MozMousePixelScroll",Re,{passive:!1}),function(){Pe.removeEventListener("wheel",at),Pe.removeEventListener("DOMMouseScroll",G),Pe.removeEventListener("MozMousePixelScroll",Re)}},[A]),Gt(function(){if(m){var Re=we(U);z(Re),mt({x:Re})}},[ke.width,m]);var oe=function(){var Pe,ze;(Pe=We.current)===null||Pe===void 0||Pe.delayHidden(),(ze=Be.current)===null||ze===void 0||ze.delayHidden()},le=f8(X,V,P,o,_,function(){return I(!0)},be,oe);g.useImperativeHandle(t,function(){return{nativeElement:Z.current,getScrollInfo:Te,scrollTo:function(Pe){function ze(ft){return ft&&ut(ft)==="object"&&("left"in ft||"top"in ft)}ze(Pe)?(Pe.left!==void 0&&z(we(Pe.left)),le(Pe.top)):le(Pe)}}}),Gt(function(){if(C){var Re=V.slice(Me,Ie+1);C(Re,V)}},[Me,Ie,V]);var _e=l8(V,_,P,o),Ke=w==null?void 0:w({start:Me,end:Ie,virtual:N,offsetX:U,offsetY:je,rtl:j,getSize:_e}),et=i8(V,Me,Ie,m,U,F,d,ve),Ze=null;a&&(Ze=te(ee({},l?"height":"maxHeight",a),m8),A&&(Ze.overflowY="hidden",m&&(Ze.overflowX="hidden"),re&&(Ze.pointerEvents="none")));var it={};return j&&(it.dir="rtl"),g.createElement("div",Ye({ref:Z,style:te(te({},c),{},{position:"relative"}),className:D},it,E),g.createElement(sr,{onResize:nt},g.createElement(y,{className:"".concat(r,"-holder"),style:Ze,ref:X,onScroll:he,onMouseEnter:oe},g.createElement(Q2,{prefixCls:r,height:Ne,offsetX:U,offsetY:je,scrollWidth:m,onInnerResize:I,ref:q,innerProps:S,rtl:j,extra:Ke},et))),N&&Ne>a&&g.createElement(Wv,{ref:We,prefixCls:r,scrollOffset:K,scrollRange:Ne,rtl:j,onScroll:Ee,onStartMove:ue,onStopMove:me,spinSize:Fe,containerSize:ke.height,style:O==null?void 0:O.verticalScrollBar,thumbStyle:O==null?void 0:O.verticalScrollBarThumb}),N&&m>ke.width&&g.createElement(Wv,{ref:Be,prefixCls:r,scrollOffset:U,scrollRange:m,rtl:j,onScroll:Ee,onStartMove:ue,onStopMove:me,spinSize:Se,containerSize:ke.width,horizontal:!0,style:O==null?void 0:O.horizontalScrollBar,thumbStyle:O==null?void 0:O.horizontalScrollBarThumb}))}var ew=g.forwardRef(p8);ew.displayName="List";function b8(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var y8=["disabled","title","children","style","className"];function ty(e){return typeof e=="string"||typeof e=="number"}var x8=function(t,n){var r=vI(),i=r.prefixCls,a=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,h=g.useContext($m),p=h.maxCount,m=h.flattenOptions,v=h.onActiveValue,y=h.defaultActiveFirstOption,b=h.onSelect,x=h.menuItemSelectedIcon,C=h.rawValues,S=h.fieldNames,w=h.virtual,O=h.direction,E=h.listHeight,_=h.listItemHeight,T=h.optionRender,R="".concat(i,"-item"),F=yl(function(){return m},[o,m],function(H,U){return U[0]&&H[1]!==U[1]}),I=g.useRef(null),P=g.useMemo(function(){return s&&Bv(p)&&(C==null?void 0:C.size)>=p},[s,p,C==null?void 0:C.size]),k=function(U){U.preventDefault()},A=function(U){var z;(z=I.current)===null||z===void 0||z.scrollTo(typeof U=="number"?{index:U}:U)},M=function(U){for(var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ne=F.length,B=0;B<ne;B+=1){var re=(U+B*z+ne)%ne,ie=F[re]||{},ue=ie.group,me=ie.data;if(!ue&&!(me!=null&&me.disabled)&&!P)return re}return-1},N=g.useState(function(){return M(0)}),j=ae(N,2),D=j[0],V=j[1],X=function(U){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;V(U);var ne={source:z?"keyboard":"mouse"},B=F[U];if(!B){v(null,-1,ne);return}v(B.value,U,ne)};$.useEffect(function(){X(y!==!1?M(0):-1)},[F.length,c]);var q=g.useCallback(function(H){return C.has(H)&&l!=="combobox"},[l,Ge(C).toString(),C.size]);$.useEffect(function(){var H=setTimeout(function(){if(!s&&o&&C.size===1){var z=Array.from(C)[0],ne=F.findIndex(function(B){var re=B.data;return re.value===z});ne!==-1&&(X(ne),A(ne))}});if(o){var U;(U=I.current)===null||U===void 0||U.scrollTo(void 0)}return function(){return clearTimeout(H)}},[o,c]);var Z=function(U){U!==void 0&&b(U,{selected:!C.has(U)}),s||u(!1)};if(g.useImperativeHandle(n,function(){return{onKeyDown:function(U){var z=U.which,ne=U.ctrlKey;switch(z){case $e.N:case $e.P:case $e.UP:case $e.DOWN:{var B=0;if(z===$e.UP?B=-1:z===$e.DOWN?B=1:b8()&&ne&&(z===$e.N?B=1:z===$e.P&&(B=-1)),B!==0){var re=M(D+B,B);A(re),X(re,!0)}break}case $e.ENTER:{var ie,ue=F[D];ue&&!(ue!=null&&(ie=ue.data)!==null&&ie!==void 0&&ie.disabled)&&!P?Z(ue.value):Z(void 0),o&&U.preventDefault();break}case $e.ESC:u(!1),o&&U.stopPropagation()}},onKeyUp:function(){},scrollTo:function(U){A(U)}}}),F.length===0)return g.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(R,"-empty"),onMouseDown:k},d);var J=Object.keys(S).map(function(H){return S[H]}),Q=function(U){return U.label};function K(H,U){var z=H.group;return{role:z?"presentation":"option",id:"".concat(a,"_list_").concat(U)}}var Y=function(U){var z=F[U];if(!z)return null;var ne=z.data||{},B=ne.value,re=z.group,ie=Ys(ne,!0),ue=Q(z);return z?g.createElement("div",Ye({"aria-label":typeof ue=="string"&&!re?ue:null},ie,{key:U},K(z,U),{"aria-selected":q(B)}),B):null},W={role:"listbox",id:"".concat(a,"_list")};return g.createElement(g.Fragment,null,w&&g.createElement("div",Ye({},W,{style:{height:0,width:0,overflow:"hidden"}}),Y(D-1),Y(D),Y(D+1)),g.createElement(ew,{itemKey:"key",ref:I,data:F,height:E,itemHeight:_,fullHeight:!1,onMouseDown:k,onScroll:f,virtual:w,direction:O,innerProps:w?null:W},function(H,U){var z=H.group,ne=H.groupOption,B=H.data,re=H.label,ie=H.value,ue=B.key;if(z){var me,ve=(me=B.title)!==null&&me!==void 0?me:ty(re)?re.toString():void 0;return g.createElement("div",{className:pe(R,"".concat(R,"-group"),B.className),title:ve},re!==void 0?re:ue)}var be=B.disabled,Ce=B.title;B.children;var ge=B.style,fe=B.className,se=wt(B,y8),xe=hr(se,J),ce=q(ie),Ne=be||!ce&&P,Me="".concat(R,"-option"),Ie=pe(R,Me,fe,ee(ee(ee(ee({},"".concat(Me,"-grouped"),ne),"".concat(Me,"-active"),D===U&&!Ne),"".concat(Me,"-disabled"),Ne),"".concat(Me,"-selected"),ce)),je=Q(H),He=!x||typeof x=="function"||ce,Xe=typeof je=="number"?je:je||ie,ke=ty(Xe)?Xe.toString():void 0;return Ce!==void 0&&(ke=Ce),g.createElement("div",Ye({},Ys(xe),w?{}:K(H,U),{"aria-selected":ce,className:Ie,title:ke,onMouseMove:function(){D===U||Ne||X(U)},onClick:function(){Ne||Z(ie)},style:ge}),g.createElement("div",{className:"".concat(Me,"-content")},typeof T=="function"?T(H,{index:U}):Xe),g.isValidElement(x)||ce,He&&g.createElement(Ku,{className:"".concat(R,"-option-state"),customizeIcon:x,customizeIconProps:{value:ie,disabled:Ne,isSelected:ce}},ce?"✓":null))}))},tw=g.forwardRef(x8);process.env.NODE_ENV!=="production"&&(tw.displayName="OptionList");const S8=function(e,t){var n=g.useRef({values:new Map,options:new Map}),r=g.useMemo(function(){var a=n.current,o=a.values,s=a.options,l=e.map(function(d){if(d.label===void 0){var f;return te(te({},d),{},{label:(f=o.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=g.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]};function Wf(e,t){return wm(e).join("").toUpperCase().includes(t)}const C8=function(e,t,n,r,i){return g.useMemo(function(){if(!n||r===!1)return e;var a=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(h,p){return i?Wf(p[i],u):p[a]?Wf(p[o!=="children"?o:"label"],u):Wf(p[s],u)},f=c?function(h){return Vv(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var p=d(n,f(h));if(p)l.push(h);else{var m=h[a].filter(function(v){return d(n,f(v))});m.length&&l.push(te(te({},h),{},ee({},a,m)))}return}d(n,f(h))&&l.push(h)}),l},[e,r,i,n,t])};var ny=0,w8=process.env.NODE_ENV!=="test"&&Hn();function $8(){var e;return w8?(e=ny,ny+=1):e="TEST_OR_SSR",e}function _8(e){var t=g.useState(),n=ae(t,2),r=n[0],i=n[1];return g.useEffect(function(){i("rc_select_".concat($8()))},[]),e||r}var E8=["children","value"],O8=["children"];function M8(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,o=wt(r,E8);return te({key:n,value:a!==void 0?a:n,children:i},o)}function Om(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return cr(e).map(function(n,r){if(!g.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,o=i.key,s=i.props,l=s.children,c=wt(s,O8);return t||!a?M8(n):te(te({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:Om(l)})}).filter(function(n){return n})}var T8=function(t,n,r,i,a){return g.useMemo(function(){var o=t,s=!t;s&&(o=Om(n));var l=new Map,c=new Map,u=function(h,p,m){m&&typeof m=="string"&&h.set(p[m],p)},d=function f(h){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m<h.length;m+=1){var v=h[m];!v[r.options]||p?(l.set(v[r.value],v),u(c,v,r.label),u(c,v,i),u(c,v,a)):f(v[r.options],!0)}};return d(o),{options:o,valueOptions:l,labelOptions:c}},[t,n,r,i,a])};function ry(e){var t=g.useRef();t.current=e;var n=g.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function R8(e){var t=e.mode,n=e.options,r=e.children,i=e.backfill,a=e.allowClear,o=e.placeholder,s=e.getInputElement,l=e.showSearch,c=e.onSearch,u=e.defaultOpen,d=e.autoFocus,f=e.labelInValue,h=e.value,p=e.inputValue,m=e.optionLabelProp,v=eu(t),y=l!==void 0?l:v||t==="combobox",b=n||Om(r);if(yt(t!=="tags"||b.every(function(w){return!w.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var x=b.some(function(w){return w.options?w.options.some(function(O){return typeof("value"in O?O.value:O.key)=="number"}):typeof("value"in w?w.value:w.key)=="number"});yt(!x,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(yt(t!=="combobox"||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),yt(t==="combobox"||!i,"`backfill` only works with `combobox` mode."),yt(t==="combobox"||!s,"`getInputElement` only work with `combobox` mode."),Uh(t!=="combobox"||!s||!a||!o,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),c&&!y&&t!=="combobox"&&t!=="tags"&&yt(!1,"`onSearch` should work with `showSearch` instead of use alone."),Uh(!u||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),h!=null){var C=wm(h);yt(!f||C.every(function(w){return ut(w)==="object"&&("key"in w||"value"in w)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),yt(!v||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var S=null;cr(r).some(function(w){if(!g.isValidElement(w)||!w.type)return!1;var O=w,E=O.type;if(E.isSelectOption)return!1;if(E.isSelectOptGroup){var _=cr(w.props.children).every(function(T){return!g.isValidElement(T)||!w.type||T.type.isSelectOption?!0:(S=T.type,!1)});return!_}return S=E,!0}),S&&yt(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(S.displayName||S.name||S,"`.")),yt(p===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function P8(e,t){if(e){var n=function r(i){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=0;o<i.length;o++){var s=i[o];if(s[t==null?void 0:t.value]===null)return yt(!1,"`value` in Select options should not be `null`."),!0;if(!a&&Array.isArray(s[t==null?void 0:t.options])&&r(s[t==null?void 0:t.options],!0))break}};n(e)}}var I8=["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"],A8=["inputValue"];function N8(e){return!e||ut(e)!=="object"}var nw=g.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,a=i===void 0?"rc-select":i,o=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=d===void 0?!0:d,h=e.onSelect,p=e.onDeselect,m=e.dropdownMatchSelectWidth,v=m===void 0?!0:m,y=e.filterOption,b=e.filterSort,x=e.optionFilterProp,C=e.optionLabelProp,S=e.options,w=e.optionRender,O=e.children,E=e.defaultActiveFirstOption,_=e.menuItemSelectedIcon,T=e.virtual,R=e.direction,F=e.listHeight,I=F===void 0?200:F,P=e.listItemHeight,k=P===void 0?20:P,A=e.labelRender,M=e.value,N=e.defaultValue,j=e.labelInValue,D=e.onChange,V=e.maxCount,X=wt(e,I8),q=_8(n),Z=eu(r),J=!!(!S&&O),Q=g.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),K=g.useMemo(function(){return X2(s,J)},[JSON.stringify(s),J]),Y=_n("",{value:c!==void 0?c:l,postState:function(he){return he||""}}),W=ae(Y,2),H=W[0],U=W[1],z=T8(S,O,K,x,C),ne=z.valueOptions,B=z.labelOptions,re=z.options,ie=g.useCallback(function(Ee){var he=wm(Ee);return he.map(function(we){var Le,tt,Ue,at,G;if(N8(we))Le=we;else{var oe;Ue=we.key,tt=we.label,Le=(oe=we.value)!==null&&oe!==void 0?oe:Ue}var le=ne.get(Le);if(le){var _e;if(tt===void 0&&(tt=le==null?void 0:le[C||K.label]),Ue===void 0&&(Ue=(_e=le==null?void 0:le.key)!==null&&_e!==void 0?_e:Le),at=le==null?void 0:le.disabled,G=le==null?void 0:le.title,process.env.NODE_ENV!=="production"&&!C){var Ke=le==null?void 0:le[K.label];Ke!==void 0&&!g.isValidElement(Ke)&&!g.isValidElement(tt)&&Ke!==tt&&yt(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:tt,value:Le,key:Ue,disabled:at,title:G}})},[K,C,ne]),ue=_n(N,{value:M}),me=ae(ue,2),ve=me[0],be=me[1],Ce=g.useMemo(function(){var Ee,he=Z&&ve===null?[]:ve,we=ie(he);return r==="combobox"&&AI((Ee=we[0])===null||Ee===void 0?void 0:Ee.value)?[]:we},[ve,ie,r,Z]),ge=S8(Ce,ne),fe=ae(ge,2),se=fe[0],xe=fe[1],ce=g.useMemo(function(){if(!r&&se.length===1){var Ee=se[0];if(Ee.value===null&&(Ee.label===null||Ee.label===void 0))return[]}return se.map(function(he){var we;return te(te({},he),{},{label:(we=typeof A=="function"?A(he):he.label)!==null&&we!==void 0?we:he.value})})},[r,se,A]),Ne=g.useMemo(function(){return new Set(se.map(function(Ee){return Ee.value}))},[se]);g.useEffect(function(){if(r==="combobox"){var Ee,he=(Ee=se[0])===null||Ee===void 0?void 0:Ee.value;U(II(he)?String(he):"")}},[se]);var Me=ry(function(Ee,he){var we=he??Ee;return ee(ee({},K.value,Ee),K.label,we)}),Ie=g.useMemo(function(){if(r!=="tags")return re;var Ee=Ge(re),he=function(Le){return ne.has(Le)};return Ge(se).sort(function(we,Le){return we.value<Le.value?-1:1}).forEach(function(we){var Le=we.value;he(Le)||Ee.push(Me(Le,we.label))}),Ee},[Me,re,ne,se,r]),je=C8(Ie,K,H,Q,x),He=g.useMemo(function(){return r!=="tags"||!H||je.some(function(Ee){return Ee[x||"value"]===H})||je.some(function(Ee){return Ee[K.value]===H})?je:[Me(H)].concat(Ge(je))},[Me,x,r,je,H,K]),Xe=g.useMemo(function(){return b?Ge(He).sort(function(Ee,he){return b(Ee,he,{searchValue:H})}):He},[He,b,H]),ke=g.useMemo(function(){return QI(Xe,{fieldNames:K,childrenAsData:J})},[Xe,K,J]),Oe=function(he){var we=ie(he);if(be(we),D&&(we.length!==se.length||we.some(function(Ue,at){var G;return((G=se[at])===null||G===void 0?void 0:G.value)!==(Ue==null?void 0:Ue.value)}))){var Le=j?we:we.map(function(Ue){return Ue.value}),tt=we.map(function(Ue){return Vv(xe(Ue.value))});D(Z?Le:Le[0],Z?tt:tt[0])}},nt=g.useState(null),We=ae(nt,2),Be=We[0],Se=We[1],Fe=g.useState(0),ot=ae(Fe,2),ct=ot[0],De=ot[1],qe=E!==void 0?E:r!=="combobox",Qe=g.useCallback(function(Ee,he){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Le=we.source,tt=Le===void 0?"keyboard":Le;De(he),o&&r==="combobox"&&Ee!==null&&tt==="keyboard"&&Se(String(Ee))},[o,r]),Je=function(he,we,Le){var tt=function(){var it,Re=xe(he);return[j?{label:Re==null?void 0:Re[K.label],value:he,key:(it=Re==null?void 0:Re.key)!==null&&it!==void 0?it:he}:he,Vv(Re)]};if(we&&h){var Ue=tt(),at=ae(Ue,2),G=at[0],oe=at[1];h(G,oe)}else if(!we&&p&&Le!=="clear"){var le=tt(),_e=ae(le,2),Ke=_e[0],et=_e[1];p(Ke,et)}},rt=ry(function(Ee,he){var we,Le=Z?he.selected:!0;Le?we=Z?[].concat(Ge(se),[Ee]):[Ee]:we=se.filter(function(tt){return tt.value!==Ee}),Oe(we),Je(Ee,Le),r==="combobox"?Se(""):(!eu||f)&&(U(""),Se(""))}),Ve=function(he,we){Oe(he);var Le=we.type,tt=we.values;(Le==="remove"||Le==="clear")&&tt.forEach(function(Ue){Je(Ue.value,!1,Le)})},Te=function(he,we){if(U(he),Se(null),we.source==="submit"){var Le=(he||"").trim();if(Le){var tt=Array.from(new Set([].concat(Ge(Ne),[Le])));Oe(tt),Je(Le,!0),U("")}return}we.source!=="blur"&&(r==="combobox"&&Oe(he),u==null||u(he))},st=function(he){var we=he;r!=="tags"&&(we=he.map(function(tt){var Ue=B.get(tt);return Ue==null?void 0:Ue.value}).filter(function(tt){return tt!==void 0}));var Le=Array.from(new Set([].concat(Ge(Ne),Ge(we))));Oe(Le),Le.forEach(function(tt){Je(tt,!0)})},mt=g.useMemo(function(){var Ee=T!==!1&&v!==!1;return te(te({},z),{},{flattenOptions:ke,onActiveValue:Qe,defaultActiveFirstOption:qe,onSelect:rt,menuItemSelectedIcon:_,rawValues:Ne,fieldNames:K,virtual:Ee,direction:R,listHeight:I,listItemHeight:k,childrenAsData:J,maxCount:V,optionRender:w})},[V,z,ke,Qe,qe,rt,_,Ne,K,T,v,R,I,k,J,w]);return process.env.NODE_ENV!=="production"&&(R8(e),P8(re,K)),g.createElement($m.Provider,{value:mt},g.createElement(Z2,Ye({},X,{id:q,prefixCls:a,ref:t,omitDomProps:A8,mode:r,displayValues:ce,onDisplayValuesChange:Ve,direction:R,searchValue:H,onSearch:Te,autoClearSearchValue:f,onSearchSplit:st,dropdownMatchSelectWidth:v,OptionList:tw,emptyOptions:!ke.length,activeValue:Be,activeDescendantId:"".concat(q,"_list_").concat(ct)})))});process.env.NODE_ENV!=="production"&&(nw.displayName="Select");var Mm=nw;Mm.Option=Em;Mm.OptGroup=_m;function tu(e,t,n){return pe({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Tm=(e,t)=>t||e,rw=()=>{const[,e]=Or(),n=new kn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return g.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},g.createElement("title",null,"empty image"),g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(24 31.67)"},g.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),g.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"}),g.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)"}),g.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"}),g.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"})),g.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"}),g.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},g.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),g.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(rw.displayName="EmptyImage");const iw=()=>{const[,e]=Or(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:a,shadowColor:o,contentColor:s}=$.useMemo(()=>({borderColor:new kn(t).onBackground(i).toHexShortString(),shadowColor:new kn(n).onBackground(i).toHexShortString(),contentColor:new kn(r).onBackground(i).toHexShortString()}),[t,n,r,i]);return g.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},g.createElement("title",null,"Simple Empty"),g.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},g.createElement("ellipse",{fill:o,cx:"32",cy:"33",rx:"32",ry:"7"}),g.createElement("g",{fillRule:"nonzero",stroke:a},g.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"}),g.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:s}))))};process.env.NODE_ENV!=="production"&&(iw.displayName="SimpleImage");const k8=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},j8=er("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=nn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[k8(i)]});var L8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const aw=g.createElement(rw,null),ow=g.createElement(iw,null),Ei=e=>{var{className:t,rootClassName:n,prefixCls:r,image:i=aw,description:a,children:o,imageStyle:s,style:l}=e,c=L8(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=g.useContext(Tt),h=u("empty",r),[p,m,v]=j8(h),[y]=NC("Empty"),b=typeof a<"u"?a:y==null?void 0:y.description,x=typeof b=="string"?b:"empty";let C=null;return typeof i=="string"?C=g.createElement("img",{alt:x,src:i}):C=i,p(g.createElement("div",Object.assign({className:pe(m,v,h,f==null?void 0:f.className,{[`${h}-normal`]:i===ow,[`${h}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},f==null?void 0:f.style),l)},c),g.createElement("div",{className:`${h}-image`,style:s},C),b&&g.createElement("div",{className:`${h}-description`},b),o&&g.createElement("div",{className:`${h}-footer`},o)))};Ei.PRESENTED_IMAGE_DEFAULT=aw;Ei.PRESENTED_IMAGE_SIMPLE=ow;process.env.NODE_ENV!=="production"&&(Ei.displayName="Empty");const D8=e=>{const{componentName:t}=e,{getPrefixCls:n}=$.useContext(Tt),r=n("empty");switch(t){case"Table":case"List":return $.createElement(Ei,{image:Ei.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return $.createElement(Ei,{image:Ei.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return $.createElement(Ei,null)}},Rm=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:a,[e]:o}=$.useContext(Tt),s=$.useContext(hP),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const u=M3.includes(c);return[c,u]},F8=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function z8(e,t){return e||F8(t)}const iy=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},B8=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},_r(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,[`
|
|
253
|
+
${i}${s}bottomLeft,
|
|
254
|
+
${a}${s}bottomLeft
|
|
255
|
+
`]:{animationName:k2},[`
|
|
256
|
+
${i}${s}topLeft,
|
|
257
|
+
${a}${s}topLeft,
|
|
258
|
+
${i}${s}topRight,
|
|
259
|
+
${a}${s}topRight
|
|
260
|
+
`]:{animationName:L2},[`${o}${s}bottomLeft`]:{animationName:j2},[`
|
|
261
|
+
${o}${s}topLeft,
|
|
262
|
+
${o}${s}topRight
|
|
263
|
+
`]:{animationName:D2},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},iy(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"},bo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-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({},iy(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Qc(e,"slide-up"),Qc(e,"slide-down"),Lb(e,"move-up"),Lb(e,"move-down")]},V8=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:o,itemHeight:ye(t),itemLineHeight:ye(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},W8=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},H8=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{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:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},rm()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},U8=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,o=W8(e),s=t?`${n}-${t}`:"",l=V8(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},H8(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:`${ye(r)} 0`,lineHeight:ye(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:ye(l.itemLineHeight)},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${i}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:ye(a),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 Hf(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
264
|
+
&${n}-show-arrow ${n}-selector,
|
|
265
|
+
&${n}-allow-clear ${n}-selector
|
|
266
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[U8(e,t),i]}const G8=e=>{const{componentCls:t}=e,n=nn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=nn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Hf(e),Hf(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Hf(r,"lg")]};function Uf(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},_r(e,!0)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
267
|
+
${n}-selection-item,
|
|
268
|
+
${n}-selection-placeholder
|
|
269
|
+
`]:{padding:0,lineHeight:ye(a),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"'}}),[`
|
|
270
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
271
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
272
|
+
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${ye(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:ye(a)}}},[`&${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 ${ye(r)}`,"&:after":{display:"none"}}}}}}}function q8(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Uf(e),Uf(nn(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 ${ye(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
273
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
274
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
275
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Uf(nn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const K8=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:h,colorBgContainer:p,colorFillSecondary:m,colorBgContainerDisabled:v,colorTextDisabled:y}=e,b=s*2,x=r*2,C=Math.min(i-b,i-x),S=Math.min(a-b,a-x),w=Math.min(o-b,o-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:h,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:p,clearBg:p,singleItemHeightLG:o,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:S,multipleItemHeightLG:w,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},sw=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ye(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ye(i)} ${t.activeShadowColor}`,outline:0}}}},ay=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},sw(e,t))}),Y8=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},sw(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),ay(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),ay(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:`${ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),lw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ye(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},oy=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},lw(e,t))}),X8=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},lw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),oy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),oy(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:`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Z8=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:`${ye(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}}}}),Q8=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Y8(e)),X8(e)),Z8(e))}),J8=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"}}}},e7=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"}}}},t7=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},_r(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},J8(e)),e7(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},bo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},bo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},rm()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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`,[i]:{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:r,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(r).add(e.fontSize).add(e.paddingXS).equal()}}}},n7=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},t7(e),q8(e),G8(e),B8(e),{[`${t}-rtl`]:{direction:"rtl"}},pm(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},r7=er("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=nn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[n7(r),Q8(r)]},K8,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var i7={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"},a7=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:i7}))},Pm=g.forwardRef(a7);process.env.NODE_ENV!=="production"&&(Pm.displayName="CheckOutlined");var o7={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"},s7=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:o7}))},Im=g.forwardRef(s7);process.env.NODE_ENV!=="production"&&(Im.displayName="DownOutlined");var l7={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"},c7=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:l7}))},cw=g.forwardRef(c7);process.env.NODE_ENV!=="production"&&(cw.displayName="SearchOutlined");function u7(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:o,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;process.env.NODE_ENV!=="production"&&dn(f).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const h=n??g.createElement(sm,null),p=b=>t===null&&!s&&!d?null:g.createElement(g.Fragment,null,c!==!1&&b,s&&u);let m=null;if(t!==void 0)m=p(t);else if(a)m=p(g.createElement(Wu,{spin:!0}));else{const b=`${l}-suffix`;m=x=>{let{open:C,showSearch:S}=x;return p(C&&S?g.createElement(cw,{className:b}):g.createElement(Im,{className:b}))}}let v=null;r!==void 0?v=r:o?v=g.createElement(Pm,null):v=null;let y=null;return i!==void 0?y=i:y=g.createElement(lm,null),{clearIcon:h,suffixIcon:m,itemIcon:v,removeIcon:y}}function d7(e,t){return t!==void 0?t:e!==null}var f7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const uw="SECRET_COMBOBOX_MODE_DO_NOT_USE",dw=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:o,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:f,size:h,disabled:p,notFoundContent:m,status:v,builtinPlacements:y,dropdownMatchSelectWidth:b,popupMatchSelectWidth:x,direction:C,style:S,allowClear:w,variant:O,dropdownStyle:E,transitionName:_,tagRender:T,maxCount:R}=e,F=f7(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:P,renderEmpty:k,direction:A,virtual:M,popupMatchSelectWidth:N,popupOverflow:j,select:D}=g.useContext(Tt),[,V]=Or(),X=f??(V==null?void 0:V.controlHeight),q=P("select",r),Z=P(),J=C??A,{compactSize:Q,compactItemClassnames:K}=vm(q,J),[Y,W]=Rm("select",O,i),H=No(q),[U,z,ne]=r7(q,H),B=g.useMemo(()=>{const{mode:Be}=e;if(Be!=="combobox")return Be===uw?"combobox":Be},[e.mode]),re=B==="multiple"||B==="tags",ie=d7(e.suffixIcon,e.showArrow),ue=(n=x??b)!==null&&n!==void 0?n:N,{status:me,hasFeedback:ve,isFormItemInput:be,feedbackIcon:Ce}=g.useContext(fa),ge=Tm(me,v);let fe;m!==void 0?fe=m:B==="combobox"?fe=null:fe=(k==null?void 0:k("Select"))||g.createElement(D8,{componentName:"Select"});const{suffixIcon:se,itemIcon:xe,removeIcon:ce,clearIcon:Ne}=u7(Object.assign(Object.assign({},F),{multiple:re,hasFeedback:ve,feedbackIcon:Ce,showSuffixIcon:ie,prefixCls:q,componentName:"Select"})),Me=w===!0?{clearIcon:Ne}:w,Ie=hr(F,["suffixIcon","itemIcon"]),je=pe(l||c,{[`${q}-dropdown-${J}`]:J==="rtl"},o,ne,H,z),He=Wi(Be=>{var Se;return(Se=h??Q)!==null&&Se!==void 0?Se:Be}),Xe=g.useContext(Ai),ke=p??Xe,Oe=pe({[`${q}-lg`]:He==="large",[`${q}-sm`]:He==="small",[`${q}-rtl`]:J==="rtl",[`${q}-${Y}`]:W,[`${q}-in-form-item`]:be},tu(q,ge,ve),K,D==null?void 0:D.className,a,o,ne,H,z),nt=g.useMemo(()=>d!==void 0?d:J==="rtl"?"bottomRight":"bottomLeft",[d,J]);if(process.env.NODE_ENV!=="production"){const Be=dn("Select");Be.deprecated(!c,"dropdownClassName","popupClassName"),Be.deprecated(b===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&Be(!("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."),Be.deprecated(!("bordered"in e),"bordered","variant"),process.env.NODE_ENV!=="production"&&Be(!(typeof R<"u"&&!re),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[We]=m2("SelectLike",E==null?void 0:E.zIndex);return U(g.createElement(Mm,Object.assign({ref:t,virtual:M,showSearch:D==null?void 0:D.showSearch},Ie,{style:Object.assign(Object.assign({},D==null?void 0:D.style),S),dropdownMatchSelectWidth:ue,transitionName:um(Z,"slide-up",_),builtinPlacements:z8(y,j),listHeight:u,listItemHeight:X,mode:B,prefixCls:q,placement:nt,direction:J,suffixIcon:se,menuItemSelectedIcon:xe,removeIcon:ce,allowClear:Me,notFoundContent:fe,className:Oe,getPopupContainer:s||I,dropdownClassName:je,disabled:ke,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:We}),maxCount:re?R:void 0,tagRender:re?T:void 0})))};process.env.NODE_ENV!=="production"&&(dw.displayName="Select");const Ni=g.forwardRef(dw),h7=fI(Ni);Ni.SECRET_COMBOBOX_MODE_DO_NOT_USE=uw;Ni.Option=Em;Ni.OptGroup=_m;Ni._InternalPanelDoNotUseOrYouWillBeFired=h7;process.env.NODE_ENV!=="production"&&(Ni.displayName="Select");const Qs=["xxl","xl","lg","md","sm","xs"],v7=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)`}),g7=e=>{const t=e,n=[].concat(Qs).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),o=`screen${a}Min`,s=`screen${a}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(i<n.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[i+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function m7(){const[,e]=Or(),t=v7(g7(e));return $.useMemo(()=>{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[a]:u}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function fw(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,o=e.style;return g.createElement("div",{className:pe("".concat(n,"-content"),a),style:o},g.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var za={shiftX:64,adjustY:1},Ba={adjustX:1,shiftY:!0},mr=[0,0],p7={left:{points:["cr","cl"],overflow:Ba,offset:[-4,0],targetOffset:mr},right:{points:["cl","cr"],overflow:Ba,offset:[4,0],targetOffset:mr},top:{points:["bc","tc"],overflow:za,offset:[0,-4],targetOffset:mr},bottom:{points:["tc","bc"],overflow:za,offset:[0,4],targetOffset:mr},topLeft:{points:["bl","tl"],overflow:za,offset:[0,-4],targetOffset:mr},leftTop:{points:["tr","tl"],overflow:Ba,offset:[-4,0],targetOffset:mr},topRight:{points:["br","tr"],overflow:za,offset:[0,-4],targetOffset:mr},rightTop:{points:["tl","tr"],overflow:Ba,offset:[4,0],targetOffset:mr},bottomRight:{points:["tr","br"],overflow:za,offset:[0,4],targetOffset:mr},rightBottom:{points:["bl","br"],overflow:Ba,offset:[4,0],targetOffset:mr},bottomLeft:{points:["tl","bl"],overflow:za,offset:[0,4],targetOffset:mr},leftBottom:{points:["br","bl"],overflow:Ba,offset:[-4,0],targetOffset:mr}},b7=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],y7=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,h=t.children,p=t.onVisibleChange,m=t.afterVisibleChange,v=t.transitionName,y=t.animation,b=t.motion,x=t.placement,C=x===void 0?"right":x,S=t.align,w=S===void 0?{}:S,O=t.destroyTooltipOnHide,E=O===void 0?!1:O,_=t.defaultVisible,T=t.getTooltipContainer,R=t.overlayInnerStyle;t.arrowContent;var F=t.overlay,I=t.id,P=t.showArrow,k=P===void 0?!0:P,A=wt(t,b7),M=$.useRef(null);$.useImperativeHandle(n,function(){return M.current});var N=te({},A);"visible"in t&&(N.popupVisible=t.visible);var j=function(){return g.createElement(fw,{key:"content",prefixCls:f,id:I,overlayInnerStyle:R},F)};return g.createElement(Yu,Ye({popupClassName:r,prefixCls:f,popup:j,action:a,builtinPlacements:p7,popupPlacement:C,ref:M,popupAlign:w,getPopupContainer:T,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:v,popupAnimation:y,popupMotion:b,defaultPopupVisible:_,autoDestroy:E,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:k},N),h)};const x7=$.forwardRef(y7);function S7(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*i-c,f=u,h=2*i-s,p=l,m=2*i-a,v=o,y=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),x=`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,C=`path('M ${a} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${f} L ${h} ${p} A ${r} ${r} 0 0 0 ${m} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:C,arrowPolygon:x}}const C7=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ye(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},hw=8;function vw(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?hw:r}}function oc(e,t){return e?t:{}}function w7(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},C7(e,t,i)),{"&:before":{background:t}})]},oc(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ye(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),oc(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ye(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),oc(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),oc(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function $7(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const sy={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"]}},_7={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"]}},E7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function O7(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,l={};return Object.keys(sy).forEach(c=>{const u=r&&_7[c]||sy[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,E7.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}const f=vw({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=f.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.arrowOffsetHorizontal*2-s;break}d.overflow=$7(c,f,t,n),o&&(d.htmlRegion="visibleFirst")}),l}const M7=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:o,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},_r(e)),{position:"absolute",zIndex:o,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":i,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${ye(e.calc(c).div(2).equal())} ${ye(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,hw)}},[`${t}-content`]:{position:"relative"}}),n5(e,(d,f)=>{let{darkColor:h}=f;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},w7(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},T7=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},vw({contentRadius:e.borderRadius,limitVerticalRadius:!0})),S7(nn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),gw=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return er("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,s=nn(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[M7(s),uI(r,"zoom-big-fast")]},T7,{resetStyle:!1,injectStyle:t})(e)},R7=qc.map(e=>`${e}-inverse`);function P7(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ge(R7),Ge(qc)).includes(e):qc.includes(e)}function mw(e,t){const n=P7(t),r=pe({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const I7=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=g.useContext(Tt),l=s("tooltip",t),[c,u,d]=gw(l),f=mw(l,a),h=f.arrowStyle,p=Object.assign(Object.assign({},o),f.overlayStyle),m=pe(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(g.createElement("div",{className:m,style:h},g.createElement("div",{className:`${l}-arrow`}),g.createElement(fw,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),i)))};var A7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const N7=g.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:o,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:p=!0,title:m,overlay:v,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:x=!0}=e,C=!!p,[,S]=Or(),{getPopupContainer:w,getPrefixCls:O,direction:E}=g.useContext(Tt),_=dn("Tooltip"),T=g.useRef(null),R=()=>{var fe;(fe=T.current)===null||fe===void 0||fe.forceAlign()};g.useImperativeHandle(t,()=>{var fe;return{forceAlign:R,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),R()},nativeElement:(fe=T.current)===null||fe===void 0?void 0:fe.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(fe=>{let[se,xe]=fe;_.deprecated(!(se in e),se,xe)}),process.env.NODE_ENV!=="production"&&_(!h||typeof h=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&_(!p||typeof p=="boolean"||!("arrowPointAtCenter"in p),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[F,I]=_n(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=!m&&!v&&m!==0,k=fe=>{var se,xe;I(P?!1:fe),P||((se=e.onOpenChange)===null||se===void 0||se.call(e,fe),(xe=e.onVisibleChange)===null||xe===void 0||xe.call(e,fe))},A=g.useMemo(()=>{var fe,se;let xe=b;return typeof p=="object"&&(xe=(se=(fe=p.pointAtCenter)!==null&&fe!==void 0?fe:p.arrowPointAtCenter)!==null&&se!==void 0?se:b),y||O7({arrowPointAtCenter:xe,autoAdjustOverflow:x,arrowWidth:C?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[b,p,y,S]),M=g.useMemo(()=>m===0?m:v||m||"",[v,m]),N=g.createElement(Fv,{space:!0},typeof M=="function"?M():M),{getPopupContainer:j,placement:D="top",mouseEnterDelay:V=.1,mouseLeaveDelay:X=.1,overlayStyle:q,rootClassName:Z}=e,J=A7(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Q=O("tooltip",i),K=O(),Y=e["data-popover-inject"];let W=F;!("open"in e)&&!("visible"in e)&&P&&(W=!1);const H=g.isValidElement(u)&&!v2(u)?u:g.createElement("span",null,u),U=H.props,z=!U.className||typeof U.className=="string"?pe(U.className,a||`${Q}-open`):U.className,[ne,B,re]=gw(Q,!Y),ie=mw(Q,l),ue=ie.arrowStyle,me=Object.assign(Object.assign({},c),ie.overlayStyle),ve=pe(s,{[`${Q}-rtl`]:E==="rtl"},ie.className,Z,B,re),[be,Ce]=m2("Tooltip",J.zIndex),ge=g.createElement(x7,Object.assign({},J,{zIndex:be,showArrow:C,placement:D,mouseEnterDelay:V,mouseLeaveDelay:X,prefixCls:Q,overlayClassName:ve,overlayStyle:Object.assign(Object.assign({},ue),q),getTooltipContainer:j||o||w,ref:T,builtinPlacements:A,overlay:N,visible:W,onVisibleChange:k,afterVisibleChange:d??f,overlayInnerStyle:me,arrowContent:g.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:um(K,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),W?Vu(H,{className:z}):H);return ne(g.createElement(cm.Provider,{value:Ce},ge))}),El=N7;process.env.NODE_ENV!=="production"&&(El.displayName="Tooltip");El._InternalPanelDoNotUseOrYouWillBeFired=I7;var k7=$e.ESC,j7=$e.TAB;function L7(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,o=g.useRef(!1),s=function(){if(t){var d,f;(d=n.current)===null||d===void 0||(f=d.focus)===null||f===void 0||f.call(d),r==null||r(!1)}},l=function(){var d;return(d=a.current)!==null&&d!==void 0&&d.focus?(a.current.focus(),o.current=!0,!0):!1},c=function(d){switch(d.keyCode){case k7:s();break;case j7:{var f=!1;o.current||(f=l()),f?d.preventDefault():s();break}}};g.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&qt(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var D7=$.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=$.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),o=Er(t,a==null?void 0:a.ref);return $.createElement($.Fragment,null,r&&$.createElement("div",{className:"".concat(i,"-arrow")}),$.cloneElement(a,{ref:ya(a)?o:void 0}))}),Va={adjustX:1,adjustY:1},Wa=[0,0],F7={topLeft:{points:["bl","tl"],overflow:Va,offset:[0,-4],targetOffset:Wa},top:{points:["bc","tc"],overflow:Va,offset:[0,-4],targetOffset:Wa},topRight:{points:["br","tr"],overflow:Va,offset:[0,-4],targetOffset:Wa},bottomLeft:{points:["tl","bl"],overflow:Va,offset:[0,4],targetOffset:Wa},bottom:{points:["tc","bc"],overflow:Va,offset:[0,4],targetOffset:Wa},bottomRight:{points:["tr","br"],overflow:Va,offset:[0,4],targetOffset:Wa}},z7=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function B7(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,o=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,f=e.placements,h=f===void 0?F7:f,p=e.getPopupContainer,m=e.showAction,v=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,x=e.visible,C=e.trigger,S=C===void 0?["hover"]:C,w=e.autoFocus,O=e.overlay,E=e.children,_=e.onVisibleChange,T=wt(e,z7),R=$.useState(),F=ae(R,2),I=F[0],P=F[1],k="visible"in e?x:I,A=$.useRef(null),M=$.useRef(null),N=$.useRef(null);$.useImperativeHandle(t,function(){return A.current});var j=function(Y){P(Y),_==null||_(Y)};L7({visible:k,triggerRef:N,onVisibleChange:j,autoFocus:w,overlayRef:M});var D=function(Y){var W=e.onOverlayClick;P(!1),W&&W(Y)},V=function(){return $.createElement(D7,{ref:M,overlay:O,prefixCls:o,arrow:i})},X=function(){return typeof O=="function"?V:V()},q=function(){var Y=e.minOverlayWidthMatchTrigger,W=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!W},Z=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(o,"-open")},J=$.cloneElement(E,{className:pe((n=E.props)===null||n===void 0?void 0:n.className,k&&Z()),ref:ya(E)?Er(N,E.ref):void 0}),Q=v;return!Q&&S.indexOf("contextMenu")!==-1&&(Q=["click"]),$.createElement(Yu,Ye({builtinPlacements:h},T,{prefixCls:o,ref:A,popupClassName:pe(y,ee({},"".concat(o,"-show-arrow"),i)),popupStyle:b,action:S,showAction:m,hideAction:Q,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:k,stretch:q()?"minWidth":"",popup:X(),onPopupVisibleChange:j,onPopupClick:D,getPopupContainer:p}),J)}const V7=$.forwardRef(B7);var pw=g.createContext(null);function bw(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function yw(e){var t=g.useContext(pw);return bw(t,e)}var W7=["children","locked"],zr=g.createContext(null);function H7(e,t){var n=te({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function Js(e){var t=e.children,n=e.locked,r=wt(e,W7),i=g.useContext(zr),a=yl(function(){return H7(i,r)},[i,r],function(o,s){return!n&&(o[0]!==s[0]||!Ws(o[1],s[1],!0))});return g.createElement(zr.Provider,{value:a},t)}var U7=[],xw=g.createContext(null);function Xu(){return g.useContext(xw)}var Sw=g.createContext(U7);function Ol(e){var t=g.useContext(Sw);return g.useMemo(function(){return e!==void 0?[].concat(Ge(t),[e]):t},[t,e])}var Cw=g.createContext(null),Am=g.createContext({});function ly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(dm(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function G7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ge(e.querySelectorAll("*")).filter(function(r){return ly(r,t)});return ly(e,t)&&n.unshift(e),n}var Hv=$e.LEFT,Uv=$e.RIGHT,Gv=$e.UP,Ac=$e.DOWN,Nc=$e.ENTER,ww=$e.ESC,is=$e.HOME,as=$e.END,cy=[Gv,Ac,Hv,Uv];function q7(e,t,n,r){var i,a,o,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Nc)return{inlineTrigger:!0};var f=(i={},ee(i,Gv,l),ee(i,Ac,c),i),h=(a={},ee(a,Hv,n?c:l),ee(a,Uv,n?l:c),ee(a,Ac,u),ee(a,Nc,u),a),p=(o={},ee(o,Gv,l),ee(o,Ac,c),ee(o,Nc,u),ee(o,ww,d),ee(o,Hv,n?u:d),ee(o,Uv,n?d:u),o),m={inline:f,horizontal:h,vertical:p,inlineSub:f,horizontalSub:p,verticalSub:p},v=(s=m["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(v){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}}function K7(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Y7(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Nm(e,t){var n=G7(e,!0);return n.filter(function(r){return t.has(r)})}function uy(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Nm(e,t),a=i.length,o=i.findIndex(function(s){return n===s});return r<0?o===-1?o=a-1:o-=1:r>0&&(o+=1),o=(o+a)%a,i[o]}var qv=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(bw(n,o),"']"));s&&(r.add(s),a.set(s,o),i.set(o,s))}),{elements:r,key2element:i,element2key:a}};function X7(e,t,n,r,i,a,o,s,l,c){var u=g.useRef(),d=g.useRef();d.current=t;var f=function(){qt.cancel(u.current)};return g.useEffect(function(){return function(){f()}},[]),function(h){var p=h.which;if([].concat(cy,[Nc,ww,is,as]).includes(p)){var m=a(),v=qv(m,r),y=v,b=y.elements,x=y.key2element,C=y.element2key,S=x.get(t),w=Y7(S,b),O=C.get(w),E=q7(e,o(O,!0).length===1,n,p);if(!E&&p!==is&&p!==as)return;(cy.includes(p)||[is,as].includes(p))&&h.preventDefault();var _=function(M){if(M){var N=M,j=M.querySelector("a");j!=null&&j.getAttribute("href")&&(N=j);var D=C.get(M);s(D),f(),u.current=qt(function(){d.current===D&&N.focus()})}};if([is,as].includes(p)||E.sibling||!w){var T;!w||e==="inline"?T=i.current:T=K7(w);var R,F=Nm(T,b);p===is?R=F[0]:p===as?R=F[F.length-1]:R=uy(T,b,w,E.offset),_(R)}else if(E.inlineTrigger)l(O);else if(E.offset>0)l(O,!0),f(),u.current=qt(function(){v=qv(m,r);var A=w.getAttribute("aria-controls"),M=document.getElementById(A),N=uy(M,v.elements);_(N)},5);else if(E.offset<0){var I=o(O,!0),P=I[I.length-2],k=x.get(P);l(P,!1),_(k)}}c==null||c(h)}}function Z7(e){Promise.resolve().then(e)}var km="__RC_UTIL_PATH_SPLIT__",dy=function(t){return t.join(km)},Q7=function(t){return t.split(km)},Kv="rc-menu-more";function J7(){var e=g.useState({}),t=ae(e,2),n=t[1],r=$.useRef(new Map),i=$.useRef(new Map),a=g.useState([]),o=ae(a,2),s=o[0],l=o[1],c=$.useRef(0),u=$.useRef(!1),d=function(){u.current||n({})},f=$.useCallback(function(x,C){process.env.NODE_ENV!=="production"&&yt(!r.current.has(x),"Duplicated key '".concat(x,"' used in Menu by path [").concat(C.join(" > "),"]"));var S=dy(C);i.current.set(S,x),r.current.set(x,S),c.current+=1;var w=c.current;Z7(function(){w===c.current&&d()})},[]),h=$.useCallback(function(x,C){var S=dy(C);i.current.delete(S),r.current.delete(x)},[]),p=$.useCallback(function(x){l(x)},[]),m=$.useCallback(function(x,C){var S=r.current.get(x)||"",w=Q7(S);return C&&s.includes(w[0])&&w.unshift(Kv),w},[s]),v=$.useCallback(function(x,C){return x.filter(function(S){return S!==void 0}).some(function(S){var w=m(S,!0);return w.includes(C)})},[m]),y=function(){var C=Ge(r.current.keys());return s.length&&C.push(Kv),C},b=$.useCallback(function(x){var C="".concat(r.current.get(x)).concat(km),S=new Set;return Ge(i.current.keys()).forEach(function(w){w.startsWith(C)&&S.add(i.current.get(w))}),S},[]);return g.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:f,unregisterPath:h,refreshOverflowKeys:p,isSubPathKey:v,getKeyPath:m,getKeys:y,getSubPathKeys:b}}function $s(e){var t=g.useRef(e);t.current=e;var n=g.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var eA=Math.random().toFixed(5).toString().slice(2),fy=0;function tA(e){var t=_n(e,{value:e}),n=ae(t,2),r=n[0],i=n[1];return g.useEffect(function(){fy+=1;var a=process.env.NODE_ENV==="test"?"test":"".concat(eA,"-").concat(fy);i("rc-menu-uuid-".concat(a))},[]),r}function $w(e,t,n,r){var i=g.useContext(zr),a=i.activeKey,o=i.onActive,s=i.onInactive,l={active:a===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),o(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}function _w(e){var t=g.useContext(zr),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*i}:{paddingLeft:a*i}}function Ew(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=g.createElement(t,te({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var nA=["item"];function nu(e){var t=e.item,n=wt(e,nA);return Object.defineProperty(n,"item",{get:function(){return yt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var rA=["title","attribute","elementRef"],iA=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],aA=["active"],oA=function(e){zi(n,e);var t=Bi(n);function n(){return Mn(this,n),t.apply(this,arguments)}return Tn(n,[{key:"render",value:function(){var i=this.props,a=i.title,o=i.attribute,s=i.elementRef,l=wt(i,rA),c=hr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return yt(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),g.createElement(Xr.Item,Ye({},o,{title:typeof a=="string"?a:void 0},c,{ref:s}))}}]),n}(g.Component),sA=g.forwardRef(function(e,t){var n,r=e.style,i=e.className,a=e.eventKey,o=e.warnKey,s=e.disabled,l=e.itemIcon,c=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,h=e.onClick,p=e.onKeyDown,m=e.onFocus,v=wt(e,iA),y=yw(a),b=g.useContext(zr),x=b.prefixCls,C=b.onItemClick,S=b.disabled,w=b.overflowDisabled,O=b.itemIcon,E=b.selectedKeys,_=b.onActive,T=g.useContext(Am),R=T._internalRenderMenuItem,F="".concat(x,"-item"),I=g.useRef(),P=g.useRef(),k=S||s,A=Ro(t,P),M=Ol(a);process.env.NODE_ENV!=="production"&&o&&yt(!1,"MenuItem should not leave undefined `key`.");var N=function(U){return{key:a,keyPath:Ge(M).reverse(),item:I.current,domEvent:U}},j=l||O,D=$w(a,k,d,f),V=D.active,X=wt(D,aA),q=E.includes(a),Z=_w(M.length),J=function(U){if(!k){var z=N(U);h==null||h(nu(z)),C(z)}},Q=function(U){if(p==null||p(U),U.which===$e.ENTER){var z=N(U);h==null||h(nu(z)),C(z)}},K=function(U){_(a),m==null||m(U)},Y={};e.role==="option"&&(Y["aria-selected"]=q);var W=g.createElement(oA,Ye({ref:I,elementRef:A,role:u===null?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":w&&y?null:y},v,X,Y,{component:"li","aria-disabled":s,style:te(te({},Z),r),className:pe(F,(n={},ee(n,"".concat(F,"-active"),V),ee(n,"".concat(F,"-selected"),q),ee(n,"".concat(F,"-disabled"),k),n),i),onClick:J,onKeyDown:Q,onFocus:K}),c,g.createElement(Ew,{props:te(te({},e),{},{isSelected:q}),icon:j}));return R&&(W=R(W,e,{selected:q})),W});function lA(e,t){var n=e.eventKey,r=Xu(),i=Ol(n);return g.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:g.createElement(sA,Ye({},e,{ref:t}))}const Zu=g.forwardRef(lA);var cA=["className","children"],uA=function(t,n){var r=t.className,i=t.children,a=wt(t,cA),o=g.useContext(zr),s=o.prefixCls,l=o.mode,c=o.rtl;return g.createElement("ul",Ye({className:pe(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),i)},jm=g.forwardRef(uA);jm.displayName="SubMenuList";function Lm(e,t){return cr(e).map(function(n,r){if(g.isValidElement(n)){var i,a,o=n.key,s=(i=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&i!==void 0?i:o,l=s==null;l&&(s="tmp_key-".concat([].concat(Ge(t),[r]).join("-")));var c={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(c.warnKey=!0),g.cloneElement(n,c)}return n})}var Vn={adjustX:1,adjustY:1},dA={topLeft:{points:["bl","tl"],overflow:Vn},topRight:{points:["br","tr"],overflow:Vn},bottomLeft:{points:["tl","bl"],overflow:Vn},bottomRight:{points:["tr","br"],overflow:Vn},leftTop:{points:["tr","tl"],overflow:Vn},leftBottom:{points:["br","bl"],overflow:Vn},rightTop:{points:["tl","tr"],overflow:Vn},rightBottom:{points:["bl","br"],overflow:Vn}},fA={topLeft:{points:["bl","tl"],overflow:Vn},topRight:{points:["br","tr"],overflow:Vn},bottomLeft:{points:["tl","bl"],overflow:Vn},bottomRight:{points:["tr","br"],overflow:Vn},rightTop:{points:["tr","tl"],overflow:Vn},rightBottom:{points:["br","bl"],overflow:Vn},leftTop:{points:["tl","tr"],overflow:Vn},leftBottom:{points:["bl","br"],overflow:Vn}};function Ow(e,t,n){if(t)return t;if(n)return n[e]||n.other}var hA={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vA(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,a=e.popupStyle,o=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=g.useContext(zr),f=d.getPopupContainer,h=d.rtl,p=d.subMenuOpenDelay,m=d.subMenuCloseDelay,v=d.builtinPlacements,y=d.triggerSubMenuAction,b=d.forceSubMenuRender,x=d.rootClassName,C=d.motion,S=d.defaultMotions,w=g.useState(!1),O=ae(w,2),E=O[0],_=O[1],T=te(h?te({},fA):te({},dA),v),R=hA[c],F=Ow(c,C,S),I=g.useRef(F);c!=="inline"&&(I.current=F);var P=te(te({},I.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),k=g.useRef();return g.useEffect(function(){return k.current=qt(function(){_(n)}),function(){qt.cancel(k.current)}},[n]),g.createElement(Yu,{prefixCls:t,popupClassName:pe("".concat(t,"-popup"),ee({},"".concat(t,"-rtl"),h),o,x),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:T,popupPlacement:R,popupVisible:E,popup:i,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[y],mouseEnterDelay:p,mouseLeaveDelay:m,onPopupVisibleChange:u,forceRender:b,popupMotion:P,fresh:!0},r)}function gA(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",o=g.useContext(zr),s=o.prefixCls,l=o.forceSubMenuRender,c=o.motion,u=o.defaultMotions,d=o.mode,f=g.useRef(!1);f.current=d===a;var h=g.useState(!f.current),p=ae(h,2),m=p[0],v=p[1],y=f.current?n:!1;g.useEffect(function(){f.current&&v(!1)},[d]);var b=te({},Ow(a,c,u));r.length>1&&(b.motionAppear=!1);var x=b.onVisibleChanged;return b.onVisibleChanged=function(C){return!f.current&&!C&&v(!0),x==null?void 0:x(C)},m?null:g.createElement(Js,{mode:a,locked:!f.current},g.createElement(xa,Ye({visible:y},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var S=C.className,w=C.style;return g.createElement(jm,{id:t,className:S,style:w},i)}))}var mA=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],pA=["active"],bA=g.forwardRef(function(e,t){var n,r=e.style,i=e.className,a=e.title,o=e.eventKey,s=e.warnKey,l=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,h=e.popupClassName,p=e.popupOffset,m=e.popupStyle,v=e.onClick,y=e.onMouseEnter,b=e.onMouseLeave,x=e.onTitleClick,C=e.onTitleMouseEnter,S=e.onTitleMouseLeave,w=wt(e,mA),O=yw(o),E=g.useContext(zr),_=E.prefixCls,T=E.mode,R=E.openKeys,F=E.disabled,I=E.overflowDisabled,P=E.activeKey,k=E.selectedKeys,A=E.itemIcon,M=E.expandIcon,N=E.onItemClick,j=E.onOpenChange,D=E.onActive,V=g.useContext(Am),X=V._internalRenderSubMenuItem,q=g.useContext(Cw),Z=q.isSubPathKey,J=Ol(),Q="".concat(_,"-submenu"),K=F||l,Y=g.useRef(),W=g.useRef();process.env.NODE_ENV!=="production"&&s&&yt(!1,"SubMenu should not leave undefined `key`.");var H=d??A,U=f??M,z=R.includes(o),ne=!I&&z,B=Z(k,o),re=$w(o,K,C,S),ie=re.active,ue=wt(re,pA),me=g.useState(!1),ve=ae(me,2),be=ve[0],Ce=ve[1],ge=function(Be){K||Ce(Be)},fe=function(Be){ge(!0),y==null||y({key:o,domEvent:Be})},se=function(Be){ge(!1),b==null||b({key:o,domEvent:Be})},xe=g.useMemo(function(){return ie||(T!=="inline"?be||Z([P],o):!1)},[T,ie,P,be,o,Z]),ce=_w(J.length),Ne=function(Be){K||(x==null||x({key:o,domEvent:Be}),T==="inline"&&j(o,!z))},Me=$s(function(We){v==null||v(nu(We)),N(We)}),Ie=function(Be){T!=="inline"&&j(o,Be)},je=function(){D(o)},He=O&&"".concat(O,"-popup"),Xe=g.createElement("div",Ye({role:"menuitem",style:ce,className:"".concat(Q,"-title"),tabIndex:K?null:-1,ref:Y,title:typeof a=="string"?a:null,"data-menu-id":I&&O?null:O,"aria-expanded":ne,"aria-haspopup":!0,"aria-controls":He,"aria-disabled":K,onClick:Ne,onFocus:je},ue),a,g.createElement(Ew,{icon:T!=="horizontal"?U:void 0,props:te(te({},e),{},{isOpen:ne,isSubMenu:!0})},g.createElement("i",{className:"".concat(Q,"-arrow")}))),ke=g.useRef(T);if(T!=="inline"&&J.length>1?ke.current="vertical":ke.current=T,!I){var Oe=ke.current;Xe=g.createElement(vA,{mode:Oe,prefixCls:Q,visible:!c&&ne&&T!=="inline",popupClassName:h,popupOffset:p,popupStyle:m,popup:g.createElement(Js,{mode:Oe==="horizontal"?"vertical":Oe},g.createElement(jm,{id:He,ref:W},u)),disabled:K,onVisibleChange:Ie},Xe)}var nt=g.createElement(Xr.Item,Ye({ref:t,role:"none"},w,{component:"li",style:r,className:pe(Q,"".concat(Q,"-").concat(T),i,(n={},ee(n,"".concat(Q,"-open"),ne),ee(n,"".concat(Q,"-active"),xe),ee(n,"".concat(Q,"-selected"),B),ee(n,"".concat(Q,"-disabled"),K),n)),onMouseEnter:fe,onMouseLeave:se}),Xe,!I&&g.createElement(gA,{id:He,open:ne,keyPath:J},u));return X&&(nt=X(nt,e,{selected:B,active:xe,open:ne,disabled:K})),g.createElement(Js,{onItemClick:Me,mode:T==="horizontal"?"vertical":T,itemIcon:H,expandIcon:U},nt)}),Qu=g.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Ol(n),a=Lm(r,i),o=Xu();g.useEffect(function(){if(o)return o.registerPath(n,i),function(){o.unregisterPath(n,i)}},[i]);var s;return o?s=a:s=g.createElement(bA,Ye({ref:t},e),a),g.createElement(Sw.Provider,{value:i},s)});process.env.NODE_ENV!=="production"&&(Qu.displayName="SubMenu");function Mw(e){var t=e.className,n=e.style,r=g.useContext(zr),i=r.prefixCls,a=Xu();return a?null:g.createElement("li",{role:"separator",className:pe("".concat(i,"-item-divider"),t),style:n})}var yA=["className","title","eventKey","children"],xA=g.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=wt(e,yA),o=g.useContext(zr),s=o.prefixCls,l="".concat(s,"-item-group");return g.createElement("li",Ye({ref:t,role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:pe(l,n)}),g.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),g.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),Dm=g.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Ol(n),a=Lm(r,i),o=Xu();return o?a:g.createElement(xA,Ye({ref:t},hr(e,["warnKey"])),a)});process.env.NODE_ENV!=="production"&&(Dm.displayName="MenuItemGroup");var SA=["label","children","key","type"];function Yv(e,t){var n=t.item,r=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(o,s){if(o&&ut(o)==="object"){var l=o,c=l.label,u=l.children,d=l.key,f=l.type,h=wt(l,SA),p=d??"tmp-".concat(s);return u||f==="group"?f==="group"?g.createElement(r,Ye({key:p},h,{title:c}),Yv(u,t)):g.createElement(i,Ye({key:p},h,{title:c}),Yv(u,t)):f==="divider"?g.createElement(a,Ye({key:p},h)):g.createElement(n,Ye({key:p},h),c)}return null}).filter(function(o){return o})}function hy(e,t,n,r){var i=e,a=te({divider:Mw,item:Zu,group:Dm,submenu:Qu},r);return t&&(i=Yv(t,a)),Lm(i,n)}var CA=["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"],Gi=[],wA=g.forwardRef(function(e,t){var n,r,i=e,a=i.prefixCls,o=a===void 0?"rc-menu":a,s=i.rootClassName,l=i.style,c=i.className,u=i.tabIndex,d=u===void 0?0:u,f=i.items,h=i.children,p=i.direction,m=i.id,v=i.mode,y=v===void 0?"vertical":v,b=i.inlineCollapsed,x=i.disabled,C=i.disabledOverflow,S=i.subMenuOpenDelay,w=S===void 0?.1:S,O=i.subMenuCloseDelay,E=O===void 0?.1:O,_=i.forceSubMenuRender,T=i.defaultOpenKeys,R=i.openKeys,F=i.activeKey,I=i.defaultActiveFirst,P=i.selectable,k=P===void 0?!0:P,A=i.multiple,M=A===void 0?!1:A,N=i.defaultSelectedKeys,j=i.selectedKeys,D=i.onSelect,V=i.onDeselect,X=i.inlineIndent,q=X===void 0?24:X,Z=i.motion,J=i.defaultMotions,Q=i.triggerSubMenuAction,K=Q===void 0?"hover":Q,Y=i.builtinPlacements,W=i.itemIcon,H=i.expandIcon,U=i.overflowedIndicator,z=U===void 0?"...":U,ne=i.overflowedIndicatorPopupClassName,B=i.getPopupContainer,re=i.onClick,ie=i.onOpenChange,ue=i.onKeyDown,me=i.openAnimation,ve=i.openTransitionName,be=i._internalRenderMenuItem,Ce=i._internalRenderSubMenuItem,ge=i._internalComponents,fe=wt(i,CA),se=g.useMemo(function(){return[hy(h,f,Gi,ge),hy(h,f,Gi,{})]},[h,f,ge]),xe=ae(se,2),ce=xe[0],Ne=xe[1],Me=g.useState(!1),Ie=ae(Me,2),je=Ie[0],He=Ie[1],Xe=g.useRef(),ke=tA(m),Oe=p==="rtl";process.env.NODE_ENV!=="production"&&yt(!me&&!ve,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var nt=_n(T,{value:R,postState:function(vt){return vt||Gi}}),We=ae(nt,2),Be=We[0],Se=We[1],Fe=function(vt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ut(){Se(vt),ie==null||ie(vt)}Ot?vi.flushSync(Ut):Ut()},ot=g.useState(Be),ct=ae(ot,2),De=ct[0],qe=ct[1],Qe=g.useRef(!1),Je=g.useMemo(function(){return(y==="inline"||y==="vertical")&&b?["vertical",b]:[y,!1]},[y,b]),rt=ae(Je,2),Ve=rt[0],Te=rt[1],st=Ve==="inline",mt=g.useState(Ve),Ee=ae(mt,2),he=Ee[0],we=Ee[1],Le=g.useState(Te),tt=ae(Le,2),Ue=tt[0],at=tt[1];g.useEffect(function(){we(Ve),at(Te),Qe.current&&(st?Se(De):Fe(Gi))},[Ve,Te]);var G=g.useState(0),oe=ae(G,2),le=oe[0],_e=oe[1],Ke=le>=ce.length-1||he!=="horizontal"||C;g.useEffect(function(){st&&qe(Be)},[Be]),g.useEffect(function(){return Qe.current=!0,function(){Qe.current=!1}},[]);var et=J7(),Ze=et.registerPath,it=et.unregisterPath,Re=et.refreshOverflowKeys,Pe=et.isSubPathKey,ze=et.getKeyPath,ft=et.getKeys,Nt=et.getSubPathKeys,Wt=g.useMemo(function(){return{registerPath:Ze,unregisterPath:it}},[Ze,it]),St=g.useMemo(function(){return{isSubPathKey:Pe}},[Pe]);g.useEffect(function(){Re(Ke?Gi:ce.slice(le+1).map(function(pt){return pt.key}))},[le,Ke]);var Cn=_n(F||I&&((n=ce[0])===null||n===void 0?void 0:n.key),{value:F}),fn=ae(Cn,2),Ht=fn[0],An=fn[1],Rr=$s(function(pt){An(pt)}),ln=$s(function(){An(void 0)});$.useImperativeHandle(t,function(){return{list:Xe.current,focus:function(vt){var Ot,Ut=ft(),Jt=qv(Ut,ke),Nn=Jt.elements,wn=Jt.key2element,Hr=Jt.element2key,gn=Nm(Xe.current,Nn),Ui=Ht??(gn[0]?Hr.get(gn[0]):(Ot=ce.find(function(Si){return!Si.props.disabled}))===null||Ot===void 0?void 0:Ot.key),qn=wn.get(Ui);if(Ui&&qn){var Pr;qn==null||(Pr=qn.focus)===null||Pr===void 0||Pr.call(qn,vt)}}}});var Ln=_n(N||[],{value:j,postState:function(vt){return Array.isArray(vt)?vt:vt==null?Gi:[vt]}}),pn=ae(Ln,2),nr=pn[0],hn=pn[1],Un=function(vt){if(k){var Ot=vt.key,Ut=nr.includes(Ot),Jt;M?Ut?Jt=nr.filter(function(wn){return wn!==Ot}):Jt=[].concat(Ge(nr),[Ot]):Jt=[Ot],hn(Jt);var Nn=te(te({},vt),{},{selectedKeys:Jt});Ut?V==null||V(Nn):D==null||D(Nn)}!M&&Be.length&&he!=="inline"&&Fe(Gi)},ri=$s(function(pt){re==null||re(nu(pt)),Un(pt)}),vr=$s(function(pt,vt){var Ot=Be.filter(function(Jt){return Jt!==pt});if(vt)Ot.push(pt);else if(he!=="inline"){var Ut=Nt(pt);Ot=Ot.filter(function(Jt){return!Ut.has(Jt)})}Ws(Be,Ot,!0)||Fe(Ot,!0)}),Gn=function(vt,Ot){var Ut=Ot??!Be.includes(vt);vr(vt,Ut)},_t=X7(he,Ht,Oe,ke,Xe,ft,ze,An,Gn,ue);g.useEffect(function(){He(!0)},[]);var gt=g.useMemo(function(){return{_internalRenderMenuItem:be,_internalRenderSubMenuItem:Ce}},[be,Ce]),vn=he!=="horizontal"||C?ce:ce.map(function(pt,vt){return g.createElement(Js,{key:pt.key,overflowDisabled:vt>le},pt)}),cn=g.createElement(Xr,Ye({id:m,ref:Xe,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Zu,className:pe(o,"".concat(o,"-root"),"".concat(o,"-").concat(he),c,(r={},ee(r,"".concat(o,"-inline-collapsed"),Ue),ee(r,"".concat(o,"-rtl"),Oe),r),s),dir:p,style:l,role:"menu",tabIndex:d,data:vn,renderRawItem:function(vt){return vt},renderRawRest:function(vt){var Ot=vt.length,Ut=Ot?ce.slice(-Ot):null;return g.createElement(Qu,{eventKey:Kv,title:z,disabled:Ke,internalPopupClose:Ot===0,popupClassName:ne},Ut)},maxCount:he!=="horizontal"||C?Xr.INVALIDATE:Xr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(vt){_e(vt)},onKeyDown:_t},fe));return g.createElement(Am.Provider,{value:gt},g.createElement(pw.Provider,{value:ke},g.createElement(Js,{prefixCls:o,rootClassName:s,mode:he,openKeys:Be,rtl:Oe,disabled:x,motion:je?Z:null,defaultMotions:je?J:null,activeKey:Ht,onActive:Rr,onInactive:ln,selectedKeys:nr,inlineIndent:q,subMenuOpenDelay:w,subMenuCloseDelay:E,forceSubMenuRender:_,builtinPlacements:Y,triggerSubMenuAction:K,getPopupContainer:B,itemIcon:W,expandIcon:H,onItemClick:ri,onOpenChange:vr},g.createElement(Cw.Provider,{value:St},cn),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(xw.Provider,{value:Wt},Ne)))))}),Ml=wA;Ml.Item=Zu;Ml.SubMenu=Qu;Ml.ItemGroup=Dm;Ml.Divider=Mw;var $A={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"},_A=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:$A}))},Tw=g.forwardRef(_A);process.env.NODE_ENV!=="production"&&(Tw.displayName="EllipsisOutlined");const Rw=g.createContext(null),EA=Rw.Provider,Pw=g.createContext(null),OA=Pw.Provider;var MA=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],TA=$.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,f=e.title,h=e.onChange,p=wt(e,MA),m=$.useRef(null),v=$.useRef(null),y=_n(c,{value:o}),b=ae(y,2),x=b[0],C=b[1];$.useImperativeHandle(t,function(){return{focus:function(E){var _;(_=m.current)===null||_===void 0||_.focus(E)},blur:function(){var E;(E=m.current)===null||E===void 0||E.blur()},input:m.current,nativeElement:v.current}});var S=pe(r,i,ee(ee({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),s)),w=function(E){s||("checked"in e||C(E.target.checked),h==null||h({target:te(te({},e),{},{type:d,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return g.createElement("span",{className:S,title:f,style:a,ref:v},g.createElement("input",Ye({},p,{className:"".concat(r,"-input"),ref:m,onChange:w,disabled:s,checked:!!x,type:d})),g.createElement("span",{className:"".concat(r,"-inner")}))});const RA=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},_r(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},PA=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:h,dotColorDisabled:p,lineType:m,radioColor:v,radioBgColor:y,calc:b}=e,x=`${t}-inner`,S=b(i).sub(b(4).mul(2)),w=b(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},_r(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:`${ye(u)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},_r(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
276
|
+
&:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Object.assign({},im(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:w,height:w,marginBlockStart:b(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${b(S).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},IA=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:h,controlHeightSM:p,paddingXS:m,borderRadius:v,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:x,buttonSolidCheckedColor:C,colorTextDisabled:S,colorBgContainerDisabled:w,buttonCheckedBgDisabled:O,buttonCheckedColorDisabled:E,colorPrimary:_,colorPrimaryHover:T,colorPrimaryActive:R,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:I,buttonSolidCheckedActiveBg:P,calc:k}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:ye(k(n).sub(k(i).mul(2)).equal()),background:d,border:`${ye(i)} ${a} ${o}`,borderBlockStartWidth:k(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:k(i).mul(-1).equal(),insetInlineStart:k(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${ye(i)} ${a} ${o}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:h,fontSize:f,lineHeight:ye(k(h).sub(k(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:p,paddingInline:k(m).sub(i).equal(),paddingBlock:0,lineHeight:ye(k(p).sub(k(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:_},"&:has(:focus-visible)":Object.assign({},im(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:_,background:x,borderColor:_,"&::before":{backgroundColor:_},"&:first-child":{borderColor:_},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:F,borderColor:F,"&:hover":{color:C,background:I,borderColor:I},"&:active":{color:C,background:P,borderColor:P}},"&-disabled":{color:S,backgroundColor:w,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:w,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:O,borderColor:o,boxShadow:"none"}}}},AA=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:h,colorWhite:p}=e,m=4,v=a,y=t?v-m*2:v-(m+i)*2;return{radioSize:v,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:p,radioBgColor:t?s:d}},Iw=er("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ye(n)} ${t}`,a=nn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[RA(a),PA(a),IA(a)]},AA,{unitless:{radioSize:!0,dotSize:!0}});var NA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kA=(e,t)=>{var n,r;const i=g.useContext(Rw),a=g.useContext(Pw),{getPrefixCls:o,direction:s,radio:l}=g.useContext(Tt),c=g.useRef(null),u=Er(t,c),{isFormItemInput:d}=g.useContext(fa);if(process.env.NODE_ENV!=="production"){const P=dn("Radio");process.env.NODE_ENV!=="production"&&P(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const f=P=>{var k,A;(k=e.onChange)===null||k===void 0||k.call(e,P),(A=i==null?void 0:i.onChange)===null||A===void 0||A.call(i,P)},{prefixCls:h,className:p,rootClassName:m,children:v,style:y,title:b}=e,x=NA(e,["prefixCls","className","rootClassName","children","style","title"]),C=o("radio",h),S=((i==null?void 0:i.optionType)||a)==="button",w=S?`${C}-button`:C,O=No(C),[E,_,T]=Iw(C,O),R=Object.assign({},x),F=g.useContext(Ai);i&&(R.name=i.name,R.onChange=f,R.checked=e.value===i.value,R.disabled=(n=R.disabled)!==null&&n!==void 0?n:i.disabled),R.disabled=(r=R.disabled)!==null&&r!==void 0?r:F;const I=pe(`${w}-wrapper`,{[`${w}-wrapper-checked`]:R.checked,[`${w}-wrapper-disabled`]:R.disabled,[`${w}-wrapper-rtl`]:s==="rtl",[`${w}-wrapper-in-form-item`]:d},l==null?void 0:l.className,p,m,_,T,O);return E(g.createElement(hm,{component:"Radio",disabled:R.disabled},g.createElement("label",{className:I,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b},g.createElement(TA,Object.assign({},R,{className:pe(R.className,{[fm]:!S}),type:"radio",prefixCls:w,ref:u})),v!==void 0?g.createElement("span",null,v):null)))},el=g.forwardRef(kA);process.env.NODE_ENV!=="production"&&(el.displayName="Radio");const jA=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=g.useContext(Tt),[i,a]=_n(e.defaultValue,{value:e.value}),o=P=>{const k=i,A=P.target.value;"value"in e||a(A);const{onChange:M}=e;M&&A!==k&&M(P)},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:h,size:p,style:m,id:v,onMouseEnter:y,onMouseLeave:b,onFocus:x,onBlur:C}=e,S=n("radio",s),w=`${S}-group`,O=No(S),[E,_,T]=Iw(S,O);let R=h;u&&u.length>0&&(R=u.map(P=>typeof P=="string"||typeof P=="number"?g.createElement(el,{key:P.toString(),prefixCls:S,disabled:f,value:P,checked:i===P},P):g.createElement(el,{key:`radio-group-value-options-${P.value}`,prefixCls:S,disabled:P.disabled||f,value:P.value,checked:i===P.value,title:P.title,style:P.style,id:P.id,required:P.required},P.label)));const F=Wi(p),I=pe(w,`${w}-${d}`,{[`${w}-${F}`]:F,[`${w}-rtl`]:r==="rtl"},l,c,_,T,O);return E(g.createElement("div",Object.assign({},Ys(e,{aria:!0,data:!0}),{className:I,style:m,onMouseEnter:y,onMouseLeave:b,onFocus:x,onBlur:C,id:v,ref:t}),g.createElement(EA,{value:{onChange:o,value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},R)))}),LA=g.memo(jA);var DA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const FA=(e,t)=>{const{getPrefixCls:n}=g.useContext(Tt),{prefixCls:r}=e,i=DA(e,["prefixCls"]),a=n("radio",r);return g.createElement(OA,{value:"button"},g.createElement(el,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},zA=g.forwardRef(FA),Tl=el;Tl.Button=zA;Tl.Group=LA;Tl.__ANT_RADIO=!0;function BA(e){return nn(e,{inputAffixPadding:e.paddingXXS})}const VA=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:m,controlOutline:v,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${m}px ${v}`,errorActiveShadow:`0 0 0 ${m}px ${y}`,warningActiveShadow:`0 0 0 ${m}px ${b}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},WA=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Fm=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({},WA(nn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Aw=(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}}),vy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Aw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),HA=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Aw(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Fm(e))}),vy(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),vy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),gy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),UA=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},gy(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),gy(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Fm(e))}})}),GA=(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)}},Nw=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),my=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Nw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),qA=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Fm(e))}),my(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),my(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),py=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),KA=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:`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},py(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),py(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:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),YA=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),kw=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${ye(t)} ${ye(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},jw=e=>({padding:`${ye(e.paddingBlockSM)} ${ye(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Lw=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ye(e.paddingBlock)} ${ye(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},YA(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({},kw(e)),"&-sm":Object.assign({},jw(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),XA=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({},kw(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},jw(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 ${ye(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ye(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ye(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:`${ye(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${ye(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"},xl()),{[`${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},[`
|
|
249
277
|
& > ${t}-affix-wrapper,
|
|
250
278
|
& > ${t}-number-affix-wrapper,
|
|
251
|
-
& > ${
|
|
252
|
-
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${
|
|
253
|
-
& > ${
|
|
254
|
-
& > ${
|
|
255
|
-
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${
|
|
256
|
-
& > ${
|
|
257
|
-
& > ${
|
|
258
|
-
& > ${
|
|
259
|
-
& > ${
|
|
260
|
-
& > ${
|
|
261
|
-
& > ${
|
|
279
|
+
& > ${n}-picker-range
|
|
280
|
+
`]:{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,
|
|
281
|
+
& > ${n}-select-auto-complete ${t},
|
|
282
|
+
& > ${n}-cascader-picker ${t},
|
|
283
|
+
& > ${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,
|
|
284
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
285
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
286
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
287
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
288
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
289
|
+
& > ${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}}}})}},ZA=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_r(e)),Lw(e)),HA(e)),qA(e)),GA(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},QA=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 ${ye(e.inputAffixPadding)}`}}}},JA=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},Lw(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),QA(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}})}},eN=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},_r(e)),XA(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},UA(e)),KA(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}}})})}},tN=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
262
290
|
> ${t},
|
|
263
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},
|
|
291
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},nN=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
264
292
|
&-allow-clear > ${t},
|
|
265
|
-
&-affix-wrapper${
|
|
266
|
-
`]:{paddingInlineEnd:r},[`&-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},[`${n}-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}}}}}},Sx=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},fv=lr("Input",e=>{const t=jt(e,ox(e));return[mx(t),Cx(t),hx(t),bx(t),yx(t),Sx(t),hf(t)]},ix,{resetFont:!1});var xx={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"},Ex=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:xx}))},vv=c.forwardRef(Ex);process.env.NODE_ENV!=="production"&&(vv.displayName="PlusOutlined");const ei=P.createContext(null);var wx=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,l=i.align,u=l===void 0?"center":l,d=P.useState(),f=U(d,2),v=f[0],b=f[1],h=P.useRef(),p=P.useCallback(function(C){return typeof s=="function"?s(C):typeof s=="number"?s:C},[s]);function g(){Tt.cancel(h.current)}return P.useEffect(function(){var C={};if(r)if(n){C.width=p(r.width);var m=a?"right":"left";u==="start"&&(C[m]=r[m]),u==="center"&&(C[m]=r[m]+r.width/2,C.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(C[m]=r[m]+r.width,C.transform="translateX(-100%)")}else C.height=p(r.height),u==="start"&&(C.top=r.top),u==="center"&&(C.top=r.top+r.height/2,C.transform="translateY(-50%)"),u==="end"&&(C.top=r.top+r.height,C.transform="translateY(-100%)");return g(),h.current=Tt(function(){b(C)}),g},[r,n,a,u,p]),{style:v}},mu={width:0,height:0,left:0,top:0};function $x(e,t,r){return P.useMemo(function(){for(var n,a=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||mu,i=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,u=t.get(l);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||mu}var f=a.get(l)||D({},u);f.right=i-f.left-f.width,a.set(l,f)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function pu(e,t){var r=c.useRef(e),n=c.useState({}),a=U(n,2),o=a[1];function i(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,o({})}return[r.current,i]}var Ox=.1,hu=.01,Eo=20,bu=Math.pow(.995,Eo);function Rx(e,t){var r=P.useState(),n=U(r,2),a=n[0],o=n[1],i=P.useState(0),s=U(i,2),l=s[0],u=s[1],d=P.useState(0),f=U(d,2),v=f[0],b=f[1],h=P.useState(),p=U(h,2),g=p[0],C=p[1],m=P.useRef();function y($){var T=$.touches[0],M=T.screenX,F=T.screenY;o({x:M,y:F}),window.clearInterval(m.current)}function x($){if(a){$.preventDefault();var T=$.touches[0],M=T.screenX,F=T.screenY;o({x:M,y:F});var A=M-a.x,_=F-a.y;t(A,_);var k=Date.now();u(k),b(k-l),C({x:A,y:_})}}function S(){if(a&&(o(null),C(null),g)){var $=g.x/v,T=g.y/v,M=Math.abs($),F=Math.abs(T);if(Math.max(M,F)<Ox)return;var A=$,_=T;m.current=window.setInterval(function(){if(Math.abs(A)<hu&&Math.abs(_)<hu){window.clearInterval(m.current);return}A*=bu,_*=bu,t(A*Eo,_*Eo)},Eo)}}var E=P.useRef();function R($){var T=$.deltaX,M=$.deltaY,F=0,A=Math.abs(T),_=Math.abs(M);A===_?F=E.current==="x"?T:M:A>_?(F=T,E.current="x"):(F=M,E.current="y"),t(-F,-F)&&$.preventDefault()}var w=P.useRef(null);w.current={onTouchStart:y,onTouchMove:x,onTouchEnd:S,onWheel:R},c.useEffect(function(){function $(A){w.current.onTouchStart(A)}function T(A){w.current.onTouchMove(A)}function M(A){w.current.onTouchEnd(A)}function F(A){w.current.onWheel(A)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",F,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",M)}},[])}function gv(e){var t=P.useState(0),r=U(t,2),n=r[0],a=r[1],o=P.useRef(0),i=P.useRef();return i.current=e,Qi(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[n]),function(){o.current===n&&(o.current+=1,a(o.current))}}function Px(e){var t=P.useRef([]),r=P.useState({}),n=U(r,2),a=n[1],o=P.useRef(typeof e=="function"?e():e),i=gv(function(){var l=o.current;t.current.forEach(function(u){l=u(l)}),t.current=[],o.current=l,a({})});function s(l){t.current.push(l),i()}return[o.current,s]}var yu={width:0,height:0,left:0,top:0,right:0};function _x(e,t,r,n,a,o,i){var s=i.tabs,l=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",v=Math.abs(r)):(d="height",f="top",v=-r),P.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,h=b,p=0;p<b;p+=1){var g=e.get(s[p].key)||yu;if(g[f]+g[d]>v+t){h=p-1;break}}for(var C=0,m=b-1;m>=0;m-=1){var y=e.get(s[m].key)||yu;if(y[f]<v){C=m+1;break}}return C>=h?[0,0]:[C,h]},[e,t,n,a,o,v,l,s.map(function(b){return b.key}).join("_"),u])}function Cu(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var Tx="TABS_DQ";function mv(e){return String(e).replace(/"/g,Tx)}function pv(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var hv=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,o=e.style;return!n||n.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),Ks=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Ie(a)==="object"&&!c.isValidElement(a)?i=a:i.right=a,r==="right"&&(o=i.right),r==="left"&&(o=i.left),o?c.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null});process.env.NODE_ENV!=="production"&&(Ks.displayName="ExtraContent");var Nx=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,l=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,g=e.getPopupContainer,C=e.popupClassName,m=P.useState(!1),y=U(m,2),x=y[0],S=y[1],E=P.useState(null),R=U(E,2),w=R[0],$=R[1],T=l.icon,M=T===void 0?"More":T,F="".concat(n,"-more-popup"),A="".concat(r,"-dropdown"),_=w!==null?"".concat(F,"-").concat(w):null,k=o==null?void 0:o.dropdownAriaLabel;function N(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var O=c.createElement(Va,{onClick:function(q){var Y=q.key,J=q.domEvent;p(Y,J),S(!1)},prefixCls:"".concat(A,"-menu"),id:F,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[w],"aria-label":k!==void 0?k:"expanded dropdown"},a.map(function(W){var q=W.closable,Y=W.disabled,J=W.closeIcon,ee=W.key,te=W.label,oe=pv(q,J,f,Y);return c.createElement(Qo,{key:ee,id:"".concat(F,"-").concat(ee),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(ee),disabled:Y},c.createElement("span",null,te),oe&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(fe){fe.stopPropagation(),N(fe,ee)}},J||f.removeIcon||"×"))}));function j(W){for(var q=a.filter(function(oe){return!oe.disabled}),Y=q.findIndex(function(oe){return oe.key===w})||0,J=q.length,ee=0;ee<J;ee+=1){Y=(Y+W+J)%J;var te=q[Y];if(!te.disabled){$(te.key);return}}}function z(W){var q=W.which;if(!x){[ce.DOWN,ce.SPACE,ce.ENTER].includes(q)&&(S(!0),W.preventDefault());return}switch(q){case ce.UP:j(-1),W.preventDefault();break;case ce.DOWN:j(1),W.preventDefault();break;case ce.ESC:S(!1);break;case ce.SPACE:case ce.ENTER:w!==null&&p(w,W);break}}P.useEffect(function(){var W=document.getElementById(_);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),P.useEffect(function(){x||$(null)},[x]);var V=L({},b?"marginRight":"marginLeft",v);a.length||(V.visibility="hidden",V.order=1);var H=Z(L({},"".concat(A,"-rtl"),b)),K=i?null:c.createElement(iS,xe({prefixCls:A,overlay:O,visible:a.length?x:!1,onVisibleChange:S,overlayClassName:Z(H,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),c.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:V,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":F,id:"".concat(n,"-more"),"aria-expanded":x,onKeyDown:z},M));return c.createElement("div",{className:Z("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(hv,{prefixCls:r,locale:o,editable:f}))});const Ix=c.memo(Nx,function(e,t){return t.tabMoving});var Mx=function(t){var r=t.prefixCls,n=t.id,a=t.active,o=t.tab,i=o.key,s=o.label,l=o.disabled,u=o.closeIcon,d=o.icon,f=t.closable,v=t.renderWrapper,b=t.removeAriaLabel,h=t.editable,p=t.onClick,g=t.onFocus,C=t.style,m="".concat(r,"-tab"),y=pv(f,u,h,l);function x(w){l||p(w)}function S(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var E=c.useMemo(function(){return d&&typeof s=="string"?c.createElement("span",null,s):s},[s,d]),R=c.createElement("div",{key:i,"data-node-key":mv(i),className:Z(m,L(L(L({},"".concat(m,"-with-remove"),y),"".concat(m,"-active"),a),"".concat(m,"-disabled"),l)),style:C,onClick:x},c.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(m,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),x($)},onKeyDown:function($){[ce.SPACE,ce.ENTER].includes($.which)&&($.preventDefault(),x($))},onFocus:g},d&&c.createElement("span",{className:"".concat(m,"-icon")},d),s&&E),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function($){$.stopPropagation(),S($)}},u||h.removeIcon||"×"));return v?v(R):R},jx=function(t,r){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,u=s.height,d=s.x,f=s.y;return Math.abs(l-n)<1?[l,u,d-r.x,f-r.y]:[n,a,i,o]},On=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,o=r.offsetHeight,i=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,u=s.height;if(Math.abs(l-a)<1)return[l,u]}return[a,i]},lo=function(t,r){return t[r?0:1]},Su=c.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.id,o=e.animated,i=e.activeKey,s=e.rtl,l=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,b=e.children,h=e.onTabClick,p=e.onTabScroll,g=e.indicator,C=c.useContext(ei),m=C.prefixCls,y=C.tabs,x=P.useRef(null),S=P.useRef(null),E=P.useRef(null),R=P.useRef(null),w=P.useRef(null),$=P.useRef(null),T=P.useRef(null),M=f==="top"||f==="bottom",F=pu(0,function(G,X){M&&p&&p({direction:G>X?"left":"right"})}),A=U(F,2),_=A[0],k=A[1],N=pu(0,function(G,X){!M&&p&&p({direction:G>X?"top":"bottom"})}),O=U(N,2),j=O[0],z=O[1],V=P.useState([0,0]),H=U(V,2),K=H[0],W=H[1],q=P.useState([0,0]),Y=U(q,2),J=Y[0],ee=Y[1],te=P.useState([0,0]),oe=U(te,2),ve=oe[0],fe=oe[1],ge=P.useState([0,0]),Oe=U(ge,2),B=Oe[0],ue=Oe[1],le=Px(new Map),Ee=U(le,2),he=Ee[0],ae=Ee[1],me=$x(y,he,J[0]),$e=lo(K,M),je=lo(J,M),ie=lo(ve,M),ne=lo(B,M),pe=$e<je+ie,be=pe?$e-ne:$e-ie,at="".concat(m,"-nav-operations-hidden"),Xe=0,Ae=0;M&&s?(Xe=0,Ae=Math.max(0,je-be)):(Xe=Math.min(0,be-je),Ae=0);function Ke(G){return G<Xe?Xe:G>Ae?Ae:G}var Ye=P.useRef(null),et=P.useState(),Le=U(et,2),Ne=Le[0],lt=Le[1];function Ze(){lt(Date.now())}function De(){Ye.current&&clearTimeout(Ye.current)}Rx(R,function(G,X){function se(_e,Re){_e(function(Te){var Me=Ke(Te+Re);return Me})}return pe?(M?se(k,G):se(z,X),De(),Ze(),!0):!1}),P.useEffect(function(){return De(),Ne&&(Ye.current=setTimeout(function(){lt(0)},100)),De},[Ne]);var de=_x(me,be,M?_:j,je,ie,ne,D(D({},e),{},{tabs:y})),we=U(de,2),qe=we[0],ot=we[1],Ct=Ht(function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,X=me.get(G)||{width:0,height:0,left:0,right:0,top:0};if(M){var se=_;s?X.right<_?se=X.right:X.right+X.width>_+be&&(se=X.right+X.width-be):X.left<-_?se=-X.left:X.left+X.width>-_+be&&(se=-(X.left+X.width-be)),z(0),k(Ke(se))}else{var _e=j;X.top<-j?_e=-X.top:X.top+X.height>-j+be&&(_e=-(X.top+X.height-be)),k(0),z(Ke(_e))}}),ft={};f==="top"||f==="bottom"?ft[s?"marginRight":"marginLeft"]=v:ft.marginTop=v;var Be=y.map(function(G,X){var se=G.key;return c.createElement(Mx,{id:a,prefixCls:m,key:se,tab:G,style:X===0?void 0:ft,closable:G.closable,editable:u,active:se===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(Re){h(se,Re)},onFocus:function(){Ct(se),Ze(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),Ve=function(){return ae(function(){var X,se=new Map,_e=(X=w.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function(Re){var Te,Me=Re.key,mt=(Te=w.current)===null||Te===void 0?void 0:Te.querySelector('[data-node-key="'.concat(mv(Me),'"]'));if(mt){var rt=jx(mt,_e),ke=U(rt,4),wt=ke[0],Gt=ke[1],Vt=ke[2],pt=ke[3];se.set(Me,{width:wt,height:Gt,left:Vt,top:pt})}}),se})};P.useEffect(function(){Ve()},[y.map(function(G){return G.key}).join("_")]);var ze=gv(function(){var G=On(x),X=On(S),se=On(E);W([G[0]-X[0]-se[0],G[1]-X[1]-se[1]]);var _e=On(T);fe(_e);var Re=On($);ue(Re);var Te=On(w);ee([Te[0]-_e[0],Te[1]-_e[1]]),Ve()}),Pe=y.slice(0,qe),ye=y.slice(ot+1),Ue=[].concat(Ce(Pe),Ce(ye)),bt=me.get(i),He=wx({activeTabOffset:bt,horizontal:M,indicator:g,rtl:s}),We=He.style;P.useEffect(function(){Ct()},[i,Xe,Ae,Cu(bt),Cu(me),M]),P.useEffect(function(){ze()},[s]);var ct=!!Ue.length,yt="".concat(m,"-nav-wrap"),Pt,kt,Wt,I;return M?s?(kt=_>0,Pt=_!==Ae):(Pt=_<0,kt=_!==Xe):(Wt=j<0,I=j!==Xe),c.createElement(mr,{onResize:ze},c.createElement("div",{ref:Na(t,x),role:"tablist",className:Z("".concat(m,"-nav"),r),style:n,onKeyDown:function(){Ze()}},c.createElement(Ks,{ref:S,position:"left",extra:l,prefixCls:m}),c.createElement(mr,{onResize:ze},c.createElement("div",{className:Z(yt,L(L(L(L({},"".concat(yt,"-ping-left"),Pt),"".concat(yt,"-ping-right"),kt),"".concat(yt,"-ping-top"),Wt),"".concat(yt,"-ping-bottom"),I)),ref:R},c.createElement(mr,{onResize:ze},c.createElement("div",{ref:w,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(j,"px)"),transition:Ne?"none":void 0}},Be,c.createElement(hv,{ref:T,prefixCls:m,locale:d,editable:u,style:D(D({},Be.length===0?void 0:ft),{},{visibility:ct?"hidden":null})}),c.createElement("div",{className:Z("".concat(m,"-ink-bar"),L({},"".concat(m,"-ink-bar-animated"),o.inkBar)),style:We}))))),c.createElement(Ix,xe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:m,tabs:Ue,className:!ct&&at,tabMoving:!!Ne})),c.createElement(Ks,{ref:E,position:"right",extra:l,prefixCls:m})))}),_l=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,l=e.children;return c.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:Z(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(_l.displayName="TabPane");var Ax=["renderTabBar"],Fx=["label","key"],bv=function(t){var r=t.renderTabBar,n=Je(t,Ax),a=c.useContext(ei),o=a.tabs;if(r){var i=D(D({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=Je(s,Fx);return c.createElement(_l,xe({tab:l,key:u,tabKey:u},d))})});return r(i,Su)}return c.createElement(Su,n)};process.env.NODE_ENV!=="production"&&(bv.displayName="TabNavListWrapper");var Lx=["key","forceRender","style","className","destroyInactiveTabPane"],Dx=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(ei),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Z("".concat(l,"-content-holder"))},c.createElement("div",{className:Z("".concat(l,"-content"),"".concat(l,"-content-").concat(o),L({},"".concat(l,"-content-animated"),d))},u.map(function(v){var b=v.key,h=v.forceRender,p=v.style,g=v.className,C=v.destroyInactiveTabPane,m=Je(v,Lx),y=b===n;return c.createElement(un,xe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||C),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(x,S){var E=x.style,R=x.className;return c.createElement(_l,xe({},m,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:D(D({},p),E),className:Z(g,R),ref:S}))})})))};function zx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=D({inkBar:!0},Ie(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&st(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var kx=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],xu=0,yv=c.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,o=e.className,i=e.items,s=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,b=v===void 0?"top":v,h=e.tabBarGutter,p=e.tabBarStyle,g=e.tabBarExtraContent,C=e.locale,m=e.more,y=e.destroyInactiveTabPane,x=e.renderTabBar,S=e.onChange,E=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,T=e.indicator,M=Je(e,kx),F=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Ie(B)==="object"&&"key"in B})},[i]),A=s==="rtl",_=zx(f),k=P.useState(!1),N=U(k,2),O=N[0],j=N[1];P.useEffect(function(){j(_f())},[]);var z=Zt(function(){var B;return(B=F[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:u}),V=U(z,2),H=V[0],K=V[1],W=P.useState(function(){return F.findIndex(function(B){return B.key===H})}),q=U(W,2),Y=q[0],J=q[1];P.useEffect(function(){var B=F.findIndex(function(le){return le.key===H});if(B===-1){var ue;B=Math.max(0,Math.min(Y,F.length-1)),K((ue=F[B])===null||ue===void 0?void 0:ue.key)}J(B)},[F.map(function(B){return B.key}).join("_"),H,Y]);var ee=Zt(null,{value:r}),te=U(ee,2),oe=te[0],ve=te[1];P.useEffect(function(){r||(ve("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":xu)),xu+=1)},[]);function fe(B,ue){E==null||E(B,ue);var le=B!==H;K(B),le&&(S==null||S(B))}var ge={id:oe,activeKey:H,animated:_,tabPosition:b,rtl:A,mobile:O},Oe=D(D({},ge),{},{editable:d,locale:C,more:m,tabBarGutter:h,onTabClick:fe,onTabScroll:R,extra:g,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:T});return c.createElement(ei.Provider,{value:{tabs:F,prefixCls:a}},c.createElement("div",xe({ref:t,id:r,className:Z(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},M),c.createElement(bv,xe({},Oe,{renderTabBar:x})),c.createElement(Dx,xe({destroyInactiveTabPane:y},ge,{animated:_}))))});process.env.NODE_ENV!=="production"&&(yv.displayName="Tabs");const Vx={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Bx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},Vx),{motionName:sf(e,"switch")})),r}var Hx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Wx(e){return e.filter(t=>t)}function Gx(e,t){if(process.env.NODE_ENV!=="production"&&Nt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=Rr(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=Hx(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return Wx(r)}const Ux=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[qc(e,"slide-up"),qc(e,"slide-down")]]},Kx=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${Q(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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:Q(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Q(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadiusLG)} 0 0 ${Q(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 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},qx=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},zr(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:`${Q(n)} 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({},ll),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Q(e.paddingXXS)} ${Q(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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Xx=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
293
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
294
|
+
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},rN=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Dw=er("Input",e=>{const t=nn(e,BA(e));return[ZA(t),nN(t),JA(t),eN(t),tN(t),rN(t),pm(t)]},VA,{resetFont:!1});var iN={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"},aN=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:iN}))},Fw=g.forwardRef(aN);process.env.NODE_ENV!=="production"&&(Fw.displayName="PlusOutlined");const Ju=$.createContext(null);var oN=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,o=a===void 0?{}:a,s=o.size,l=o.align,c=l===void 0?"center":l,u=$.useState(),d=ae(u,2),f=d[0],h=d[1],p=$.useRef(),m=$.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function v(){qt.cancel(p.current)}return $.useEffect(function(){var y={};if(n)if(r){y.width=m(n.width);var b=i?"right":"left";c==="start"&&(y[b]=n[b]),c==="center"&&(y[b]=n[b]+n.width/2,y.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[b]=n[b]+n.width,y.transform="translateX(-100%)")}else y.height=m(n.height),c==="start"&&(y.top=n.top),c==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),p.current=qt(function(){h(y)}),v},[n,r,i,c,m]),{style:f}},by={width:0,height:0,left:0,top:0};function sN(e,t,n){return $.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||by,o=a.left+a.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||by}var d=i.get(l)||te({},c);d.right=o-d.left-d.width,i.set(l,d)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function yy(e,t){var n=g.useRef(e),r=g.useState({}),i=ae(r,2),a=i[1];function o(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,a({})}return[n.current,o]}var lN=.1,xy=.01,kc=20,Sy=Math.pow(.995,kc);function cN(e,t){var n=$.useState(),r=ae(n,2),i=r[0],a=r[1],o=$.useState(0),s=ae(o,2),l=s[0],c=s[1],u=$.useState(0),d=ae(u,2),f=d[0],h=d[1],p=$.useState(),m=ae(p,2),v=m[0],y=m[1],b=$.useRef();function x(_){var T=_.touches[0],R=T.screenX,F=T.screenY;a({x:R,y:F}),window.clearInterval(b.current)}function C(_){if(i){_.preventDefault();var T=_.touches[0],R=T.screenX,F=T.screenY;a({x:R,y:F});var I=R-i.x,P=F-i.y;t(I,P);var k=Date.now();c(k),h(k-l),y({x:I,y:P})}}function S(){if(i&&(a(null),y(null),v)){var _=v.x/f,T=v.y/f,R=Math.abs(_),F=Math.abs(T);if(Math.max(R,F)<lN)return;var I=_,P=T;b.current=window.setInterval(function(){if(Math.abs(I)<xy&&Math.abs(P)<xy){window.clearInterval(b.current);return}I*=Sy,P*=Sy,t(I*kc,P*kc)},kc)}}var w=$.useRef();function O(_){var T=_.deltaX,R=_.deltaY,F=0,I=Math.abs(T),P=Math.abs(R);I===P?F=w.current==="x"?T:R:I>P?(F=T,w.current="x"):(F=R,w.current="y"),t(-F,-F)&&_.preventDefault()}var E=$.useRef(null);E.current={onTouchStart:x,onTouchMove:C,onTouchEnd:S,onWheel:O},g.useEffect(function(){function _(I){E.current.onTouchStart(I)}function T(I){E.current.onTouchMove(I)}function R(I){E.current.onTouchEnd(I)}function F(I){E.current.onWheel(I)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",R,{passive:!0}),e.current.addEventListener("touchstart",_,{passive:!0}),e.current.addEventListener("wheel",F,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",R)}},[])}function zw(e){var t=$.useState(0),n=ae(t,2),r=n[0],i=n[1],a=$.useRef(0),o=$.useRef();return o.current=e,Jh(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function uN(e){var t=$.useRef([]),n=$.useState({}),r=ae(n,2),i=r[1],a=$.useRef(typeof e=="function"?e():e),o=zw(function(){var l=a.current;t.current.forEach(function(c){l=c(l)}),t.current=[],a.current=l,i({})});function s(l){t.current.push(l),o()}return[a.current,s]}var Cy={width:0,height:0,left:0,top:0,right:0};function dN(e,t,n,r,i,a,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,d,f;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),$.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,p=h,m=0;m<h;m+=1){var v=e.get(s[m].key)||Cy;if(v[d]+v[u]>f+t){p=m-1;break}}for(var y=0,b=h-1;b>=0;b-=1){var x=e.get(s[b].key)||Cy;if(x[d]<f){y=b+1;break}}return y>=p?[0,0]:[y,p]},[e,t,r,i,a,f,l,s.map(function(h){return h.key}).join("_"),c])}function wy(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var fN="TABS_DQ";function Bw(e){return String(e).replace(/"/g,fN)}function Vw(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Ww=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:g.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),Xv=g.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,o={};return ut(i)==="object"&&!g.isValidElement(i)?o=i:o.right=i,n==="right"&&(a=o.right),n==="left"&&(a=o.left),a?g.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null});process.env.NODE_ENV!=="production"&&(Xv.displayName="ExtraContent");var hN=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,d=e.editable,f=e.tabBarGutter,h=e.rtl,p=e.removeAriaLabel,m=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,b=$.useState(!1),x=ae(b,2),C=x[0],S=x[1],w=$.useState(null),O=ae(w,2),E=O[0],_=O[1],T=l.icon,R=T===void 0?"More":T,F="".concat(r,"-more-popup"),I="".concat(n,"-dropdown"),P=E!==null?"".concat(F,"-").concat(E):null,k=a==null?void 0:a.dropdownAriaLabel;function A(q,Z){q.preventDefault(),q.stopPropagation(),d.onEdit("remove",{key:Z,event:q})}var M=g.createElement(Ml,{onClick:function(Z){var J=Z.key,Q=Z.domEvent;m(J,Q),S(!1)},prefixCls:"".concat(I,"-menu"),id:F,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[E],"aria-label":k!==void 0?k:"expanded dropdown"},i.map(function(q){var Z=q.closable,J=q.disabled,Q=q.closeIcon,K=q.key,Y=q.label,W=Vw(Z,Q,d,J);return g.createElement(Zu,{key:K,id:"".concat(F,"-").concat(K),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(K),disabled:J},g.createElement("span",null,Y),W&&g.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(U){U.stopPropagation(),A(U,K)}},Q||d.removeIcon||"×"))}));function N(q){for(var Z=i.filter(function(W){return!W.disabled}),J=Z.findIndex(function(W){return W.key===E})||0,Q=Z.length,K=0;K<Q;K+=1){J=(J+q+Q)%Q;var Y=Z[J];if(!Y.disabled){_(Y.key);return}}}function j(q){var Z=q.which;if(!C){[$e.DOWN,$e.SPACE,$e.ENTER].includes(Z)&&(S(!0),q.preventDefault());return}switch(Z){case $e.UP:N(-1),q.preventDefault();break;case $e.DOWN:N(1),q.preventDefault();break;case $e.ESC:S(!1);break;case $e.SPACE:case $e.ENTER:E!==null&&m(E,q);break}}$.useEffect(function(){var q=document.getElementById(P);q&&q.scrollIntoView&&q.scrollIntoView(!1)},[E]),$.useEffect(function(){C||_(null)},[C]);var D=ee({},h?"marginRight":"marginLeft",f);i.length||(D.visibility="hidden",D.order=1);var V=pe(ee({},"".concat(I,"-rtl"),h)),X=o?null:g.createElement(V7,Ye({prefixCls:I,overlay:M,visible:i.length?C:!1,onVisibleChange:S,overlayClassName:pe(V,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},l),g.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":F,id:"".concat(r,"-more"),"aria-expanded":C,onKeyDown:j},R));return g.createElement("div",{className:pe("".concat(n,"-nav-operations"),u),style:c,ref:t},X,g.createElement(Ww,{prefixCls:n,locale:a,editable:d}))});const vN=g.memo(hN,function(e,t){return t.tabMoving});var gN=function(t){var n=t.prefixCls,r=t.id,i=t.active,a=t.tab,o=a.key,s=a.label,l=a.disabled,c=a.closeIcon,u=a.icon,d=t.closable,f=t.renderWrapper,h=t.removeAriaLabel,p=t.editable,m=t.onClick,v=t.onFocus,y=t.style,b="".concat(n,"-tab"),x=Vw(d,c,p,l);function C(E){l||m(E)}function S(E){E.preventDefault(),E.stopPropagation(),p.onEdit("remove",{key:o,event:E})}var w=g.useMemo(function(){return u&&typeof s=="string"?g.createElement("span",null,s):s},[s,u]),O=g.createElement("div",{key:o,"data-node-key":Bw(o),className:pe(b,ee(ee(ee({},"".concat(b,"-with-remove"),x),"".concat(b,"-active"),i),"".concat(b,"-disabled"),l)),style:y,onClick:C},g.createElement("div",{role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(o),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(o),"aria-disabled":l,tabIndex:l?null:0,onClick:function(_){_.stopPropagation(),C(_)},onKeyDown:function(_){[$e.SPACE,$e.ENTER].includes(_.which)&&(_.preventDefault(),C(_))},onFocus:v},u&&g.createElement("span",{className:"".concat(b,"-icon")},u),s&&w),x&&g.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(_){_.stopPropagation(),S(_)}},c||p.removeIcon||"×"));return f?f(O):O},mN=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,a=t.offsetTop,o=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.x,d=s.y;return Math.abs(l-r)<1?[l,c,u-n.x,d-n.y]:[r,i,o,a]},Ha=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,a=n.offsetHeight,o=a===void 0?0:a;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-i)<1)return[l,c]}return[i,o]},sc=function(t,n){return t[n?0:1]},$y=g.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,a=e.animated,o=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,u=e.locale,d=e.tabPosition,f=e.tabBarGutter,h=e.children,p=e.onTabClick,m=e.onTabScroll,v=e.indicator,y=g.useContext(Ju),b=y.prefixCls,x=y.tabs,C=$.useRef(null),S=$.useRef(null),w=$.useRef(null),O=$.useRef(null),E=$.useRef(null),_=$.useRef(null),T=$.useRef(null),R=d==="top"||d==="bottom",F=yy(0,function(oe,le){R&&m&&m({direction:oe>le?"left":"right"})}),I=ae(F,2),P=I[0],k=I[1],A=yy(0,function(oe,le){!R&&m&&m({direction:oe>le?"top":"bottom"})}),M=ae(A,2),N=M[0],j=M[1],D=$.useState([0,0]),V=ae(D,2),X=V[0],q=V[1],Z=$.useState([0,0]),J=ae(Z,2),Q=J[0],K=J[1],Y=$.useState([0,0]),W=ae(Y,2),H=W[0],U=W[1],z=$.useState([0,0]),ne=ae(z,2),B=ne[0],re=ne[1],ie=uN(new Map),ue=ae(ie,2),me=ue[0],ve=ue[1],be=sN(x,me,Q[0]),Ce=sc(X,R),ge=sc(Q,R),fe=sc(H,R),se=sc(B,R),xe=Ce<ge+fe,ce=xe?Ce-se:Ce-fe,Ne="".concat(b,"-nav-operations-hidden"),Me=0,Ie=0;R&&s?(Me=0,Ie=Math.max(0,ge-ce)):(Me=Math.min(0,ce-ge),Ie=0);function je(oe){return oe<Me?Me:oe>Ie?Ie:oe}var He=$.useRef(null),Xe=$.useState(),ke=ae(Xe,2),Oe=ke[0],nt=ke[1];function We(){nt(Date.now())}function Be(){He.current&&clearTimeout(He.current)}cN(O,function(oe,le){function _e(Ke,et){Ke(function(Ze){var it=je(Ze+et);return it})}return xe?(R?_e(k,oe):_e(j,le),Be(),We(),!0):!1}),$.useEffect(function(){return Be(),Oe&&(He.current=setTimeout(function(){nt(0)},100)),Be},[Oe]);var Se=dN(be,ce,R?P:N,ge,fe,se,te(te({},e),{},{tabs:x})),Fe=ae(Se,2),ot=Fe[0],ct=Fe[1],De=$n(function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,le=be.get(oe)||{width:0,height:0,left:0,right:0,top:0};if(R){var _e=P;s?le.right<P?_e=le.right:le.right+le.width>P+ce&&(_e=le.right+le.width-ce):le.left<-P?_e=-le.left:le.left+le.width>-P+ce&&(_e=-(le.left+le.width-ce)),j(0),k(je(_e))}else{var Ke=N;le.top<-N?Ke=-le.top:le.top+le.height>-N+ce&&(Ke=-(le.top+le.height-ce)),k(0),j(je(Ke))}}),qe={};d==="top"||d==="bottom"?qe[s?"marginRight":"marginLeft"]=f:qe.marginTop=f;var Qe=x.map(function(oe,le){var _e=oe.key;return g.createElement(gN,{id:i,prefixCls:b,key:_e,tab:oe,style:le===0?void 0:qe,closable:oe.closable,editable:c,active:_e===o,renderWrapper:h,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(et){p(_e,et)},onFocus:function(){De(_e),We(),O.current&&(s||(O.current.scrollLeft=0),O.current.scrollTop=0)}})}),Je=function(){return ve(function(){var le,_e=new Map,Ke=(le=E.current)===null||le===void 0?void 0:le.getBoundingClientRect();return x.forEach(function(et){var Ze,it=et.key,Re=(Ze=E.current)===null||Ze===void 0?void 0:Ze.querySelector('[data-node-key="'.concat(Bw(it),'"]'));if(Re){var Pe=mN(Re,Ke),ze=ae(Pe,4),ft=ze[0],Nt=ze[1],Wt=ze[2],St=ze[3];_e.set(it,{width:ft,height:Nt,left:Wt,top:St})}}),_e})};$.useEffect(function(){Je()},[x.map(function(oe){return oe.key}).join("_")]);var rt=zw(function(){var oe=Ha(C),le=Ha(S),_e=Ha(w);q([oe[0]-le[0]-_e[0],oe[1]-le[1]-_e[1]]);var Ke=Ha(T);U(Ke);var et=Ha(_);re(et);var Ze=Ha(E);K([Ze[0]-Ke[0],Ze[1]-Ke[1]]),Je()}),Ve=x.slice(0,ot),Te=x.slice(ct+1),st=[].concat(Ge(Ve),Ge(Te)),mt=be.get(o),Ee=oN({activeTabOffset:mt,horizontal:R,indicator:v,rtl:s}),he=Ee.style;$.useEffect(function(){De()},[o,Me,Ie,wy(mt),wy(be),R]),$.useEffect(function(){rt()},[s]);var we=!!st.length,Le="".concat(b,"-nav-wrap"),tt,Ue,at,G;return R?s?(Ue=P>0,tt=P!==Ie):(tt=P<0,Ue=P!==Me):(at=N<0,G=N!==Me),g.createElement(sr,{onResize:rt},g.createElement("div",{ref:Ro(t,C),role:"tablist",className:pe("".concat(b,"-nav"),n),style:r,onKeyDown:function(){We()}},g.createElement(Xv,{ref:S,position:"left",extra:l,prefixCls:b}),g.createElement(sr,{onResize:rt},g.createElement("div",{className:pe(Le,ee(ee(ee(ee({},"".concat(Le,"-ping-left"),tt),"".concat(Le,"-ping-right"),Ue),"".concat(Le,"-ping-top"),at),"".concat(Le,"-ping-bottom"),G)),ref:O},g.createElement(sr,{onResize:rt},g.createElement("div",{ref:E,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(N,"px)"),transition:Oe?"none":void 0}},Qe,g.createElement(Ww,{ref:T,prefixCls:b,locale:u,editable:c,style:te(te({},Qe.length===0?void 0:qe),{},{visibility:we?"hidden":null})}),g.createElement("div",{className:pe("".concat(b,"-ink-bar"),ee({},"".concat(b,"-ink-bar-animated"),a.inkBar)),style:he}))))),g.createElement(vN,Ye({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:_,prefixCls:b,tabs:st,className:!we&&Ne,tabMoving:!!Oe})),g.createElement(Xv,{ref:w,position:"right",extra:l,prefixCls:b})))}),zm=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,o=e.active,s=e.tabKey,l=e.children;return g.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!o,style:i,className:pe(n,o&&"".concat(n,"-active"),r),ref:t},l)});process.env.NODE_ENV!=="production"&&(zm.displayName="TabPane");var pN=["renderTabBar"],bN=["label","key"],Hw=function(t){var n=t.renderTabBar,r=wt(t,pN),i=g.useContext(Ju),a=i.tabs;if(n){var o=te(te({},r),{},{panes:a.map(function(s){var l=s.label,c=s.key,u=wt(s,bN);return g.createElement(zm,Ye({tab:l,key:c,tabKey:c},u))})});return n(o,$y)}return g.createElement($y,r)};process.env.NODE_ENV!=="production"&&(Hw.displayName="TabNavListWrapper");var yN=["key","forceRender","style","className","destroyInactiveTabPane"],xN=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,o=t.destroyInactiveTabPane,s=g.useContext(Ju),l=s.prefixCls,c=s.tabs,u=i.tabPane,d="".concat(l,"-tabpane");return g.createElement("div",{className:pe("".concat(l,"-content-holder"))},g.createElement("div",{className:pe("".concat(l,"-content"),"".concat(l,"-content-").concat(a),ee({},"".concat(l,"-content-animated"),u))},c.map(function(f){var h=f.key,p=f.forceRender,m=f.style,v=f.className,y=f.destroyInactiveTabPane,b=wt(f,yN),x=h===r;return g.createElement(xa,Ye({key:h,visible:x,forceRender:p,removeOnLeave:!!(o||y),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),function(C,S){var w=C.style,O=C.className;return g.createElement(zm,Ye({},b,{prefixCls:d,id:n,tabKey:h,animated:u,active:x,style:te(te({},m),w),className:pe(v,O),ref:S}))})})))};function SN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=te({inkBar:!0},ut(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&yt(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var CN=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],_y=0,Uw=g.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,h=f===void 0?"top":f,p=e.tabBarGutter,m=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,b=e.more,x=e.destroyInactiveTabPane,C=e.renderTabBar,S=e.onChange,w=e.onTabClick,O=e.onTabScroll,E=e.getPopupContainer,_=e.popupClassName,T=e.indicator,R=wt(e,CN),F=g.useMemo(function(){return(o||[]).filter(function(B){return B&&ut(B)==="object"&&"key"in B})},[o]),I=s==="rtl",P=SN(d),k=$.useState(!1),A=ae(k,2),M=A[0],N=A[1];$.useEffect(function(){N(Sm())},[]);var j=_n(function(){var B;return(B=F[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:c}),D=ae(j,2),V=D[0],X=D[1],q=$.useState(function(){return F.findIndex(function(B){return B.key===V})}),Z=ae(q,2),J=Z[0],Q=Z[1];$.useEffect(function(){var B=F.findIndex(function(ie){return ie.key===V});if(B===-1){var re;B=Math.max(0,Math.min(J,F.length-1)),X((re=F[B])===null||re===void 0?void 0:re.key)}Q(B)},[F.map(function(B){return B.key}).join("_"),V,J]);var K=_n(null,{value:n}),Y=ae(K,2),W=Y[0],H=Y[1];$.useEffect(function(){n||(H("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":_y)),_y+=1)},[]);function U(B,re){w==null||w(B,re);var ie=B!==V;X(B),ie&&(S==null||S(B))}var z={id:W,activeKey:V,animated:P,tabPosition:h,rtl:I,mobile:M},ne=te(te({},z),{},{editable:u,locale:y,more:b,tabBarGutter:p,onTabClick:U,onTabScroll:O,extra:v,style:m,panes:null,getPopupContainer:E,popupClassName:_,indicator:T});return g.createElement(Ju.Provider,{value:{tabs:F,prefixCls:i}},g.createElement("div",Ye({ref:t,id:n,className:pe(i,"".concat(i,"-").concat(h),ee(ee(ee({},"".concat(i,"-mobile"),M),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),I),a)},R),g.createElement(Hw,Ye({},ne,{renderTabBar:C})),g.createElement(xN,Ye({destroyInactiveTabPane:x},z,{animated:P}))))});process.env.NODE_ENV!=="production"&&(Uw.displayName="Tabs");const wN={motionAppear:!1,motionEnter:!0,motionLeave:!0};function $N(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},wN),{motionName:um(e,"switch")})),n}var _N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function EN(e){return e.filter(t=>t)}function ON(e,t){if(process.env.NODE_ENV!=="production"&&dn("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=cr(t).map(r=>{if(g.isValidElement(r)){const{key:i,props:a}=r,o=a||{},{tab:s}=o,l=_N(o,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return EN(n)}const MN=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}`}}}}},[Qc(e,"slide-up"),Qc(e,"slide-down")]]},TN=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ye(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,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:ye(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ye(e.borderRadiusLG)} ${ye(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ye(e.borderRadiusLG)} ${ye(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ye(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ye(e.borderRadiusLG)} 0 0 ${ye(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 ${ye(e.borderRadiusLG)} ${ye(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},RN=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},_r(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:`${ye(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},bo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ye(e.paddingXXS)} ${ye(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"}}})}})}},PN=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ye(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
267
295
|
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,
|
|
268
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,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:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:Q(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Q(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:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Yx=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadius)} ${Q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Q(e.borderRadius)} ${Q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadius)} ${Q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadius)} 0 0 ${Q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},Zx=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},ul(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-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:n},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},Qx=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Q(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Q(e.marginXS)},marginLeft:{_skip_check_:!0,value:Q(o(e.marginXXS).mul(-1).equal())},[n]:{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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Jx=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zr(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:r,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:n,minHeight:n,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${Q(e.paddingXS)}`,background:"transparent",border:`${Q(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},ul(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Zx(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"}}}}}},e1=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:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}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}},t1=lr("Tabs",e=>{const t=jt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Q(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Q(e.horizontalItemGutter)}`});return[Yx(t),Qx(t),Xx(t),qx(t),Kx(t),Jx(t),Ux(t)]},e1),Cv=()=>null;process.env.NODE_ENV!=="production"&&(Cv.displayName="DeprecatedTabPane");var r1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Tl=e=>{var t,r,n,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:h,size:p,onEdit:g,hideAdd:C,centered:m,addIcon:y,removeIcon:x,moreIcon:S,more:E,popupClassName:R,children:w,items:$,animated:T,style:M,indicatorSize:F,indicator:A}=e,_=r1(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k}=_,{direction:N,tabs:O,getPrefixCls:j,getPopupContainer:z}=c.useContext(nt),V=j("tabs",k),H=Ma(V),[K,W,q]=t1(V,H);let Y;v==="editable-card"&&(Y={onEdit:(ge,Oe)=>{let{key:B,event:ue}=Oe;g==null||g(ge==="add"?ue:B,ge)},removeIcon:(t=x??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(nf,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(vv,null),showAdd:C!==!0});const J=j();if(process.env.NODE_ENV!=="production"){const ge=Nt("Tabs");process.env.NODE_ENV!=="production"&&ge(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&ge(!(F||O!=null&&O.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const ee=vn(p),te=Gx($,w),oe=Bx(V,T),ve=Object.assign(Object.assign({},O==null?void 0:O.style),M),fe={align:(r=A==null?void 0:A.align)!==null&&r!==void 0?r:(n=O==null?void 0:O.indicator)===null||n===void 0?void 0:n.align,size:(s=(o=(a=A==null?void 0:A.size)!==null&&a!==void 0?a:F)!==null&&o!==void 0?o:(i=O==null?void 0:O.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:O==null?void 0:O.indicatorSize};return K(c.createElement(yv,Object.assign({direction:N,getPopupContainer:z},_,{items:te,className:Z({[`${V}-${ee}`]:ee,[`${V}-card`]:["card","editable-card"].includes(v),[`${V}-editable-card`]:v==="editable-card",[`${V}-centered`]:m},O==null?void 0:O.className,b,h,W,q,H),popupClassName:Z(R,W,q,H),style:ve,editable:Y,more:Object.assign({icon:(f=(d=(u=(l=O==null?void 0:O.more)===null||l===void 0?void 0:l.icon)!==null&&u!==void 0?u:O==null?void 0:O.moreIcon)!==null&&d!==void 0?d:S)!==null&&f!==void 0?f:c.createElement(nv,null),transitionName:`${J}-slide-up`},E),prefixCls:V,animated:oe,indicator:fe})))};Tl.TabPane=Cv;process.env.NODE_ENV!=="production"&&(Tl.displayName="Tabs");var n1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Sv=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=n1(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(nt),i=o("card",t),s=Z(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return c.createElement("div",Object.assign({},a,{className:s}))},a1=e=>{const{antCls:t,componentCls:r,headerHeight:n,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${Q(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`},Ia()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ll),{[`
|
|
269
|
-
> ${
|
|
270
|
-
> ${
|
|
271
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:
|
|
272
|
-
${
|
|
273
|
-
0 ${
|
|
274
|
-
${
|
|
275
|
-
${
|
|
276
|
-
0 ${
|
|
277
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},i1=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},Ia()),{"& > li":{margin:n,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), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:Q(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${o}`}}})},s1=e=>Object.assign(Object.assign({margin:`${Q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ia()),{"&-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},ll),"&-description":{color:e.colorTextDescription}}),l1=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:n}=e;return{[`${t}-head`]:{padding:`0 ${Q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Q(e.padding)} ${Q(r)}`}}},c1=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},u1=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},zr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:a1(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},Ia()),[`${t}-grid`]:o1(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:i1(e),[`${t}-meta`]:s1(e)}),[`${t}-bordered`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${a}`,[`${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:r}},[`${t}-contain-grid`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(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:n}}},[`${t}-type-inner`]:l1(e),[`${t}-loading`]:c1(e),[`${t}-rtl`]:{direction:"rtl"}}},d1=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${Q(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},f1=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),v1=lr("Card",e=>{const t=jt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[u1(t),d1(t)]},f1);var Eu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const g1=e=>{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return c.createElement("ul",{className:t,style:n},r.map((a,o)=>{const i=`action-${o}`;return c.createElement("li",{style:{width:`${100/r.length}%`},key:i},c.createElement("span",null,a))}))},m1=c.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:l={},title:u,loading:d,bordered:f=!0,size:v,type:b,cover:h,actions:p,tabList:g,children:C,activeTabKey:m,defaultActiveTabKey:y,tabBarExtraContent:x,hoverable:S,tabProps:E={},classNames:R,styles:w}=e,$=Eu(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:T,direction:M,card:F}=c.useContext(nt);if(process.env.NODE_ENV!=="production"){const he=Nt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ae=>{let[me,$e]=ae;he.deprecated(!(me in e),me,$e)})}const A=he=>{var ae;(ae=e.onTabChange)===null||ae===void 0||ae.call(e,he)},_=he=>{var ae;return Z((ae=F==null?void 0:F.classNames)===null||ae===void 0?void 0:ae[he],R==null?void 0:R[he])},k=he=>{var ae;return Object.assign(Object.assign({},(ae=F==null?void 0:F.styles)===null||ae===void 0?void 0:ae[he]),w==null?void 0:w[he])},N=c.useMemo(()=>{let he=!1;return c.Children.forEach(C,ae=>{(ae==null?void 0:ae.type)===Sv&&(he=!0)}),he},[C]),O=T("card",r),[j,z,V]=v1(O),H=c.createElement(gn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),K=m!==void 0,W=Object.assign(Object.assign({},E),{[K?"activeKey":"defaultActiveKey"]:K?m:y,tabBarExtraContent:x});let q;const Y=vn(v),J=!Y||Y==="default"?"large":Y,ee=g?c.createElement(Tl,Object.assign({size:J},W,{className:`${O}-head-tabs`,onChange:A,items:g.map(he=>{var{tab:ae}=he,me=Eu(he,["tab"]);return Object.assign({label:ae},me)})})):null;if(u||i||ee){const he=Z(`${O}-head`,_("header")),ae=Z(`${O}-head-title`,_("title")),me=Z(`${O}-extra`,_("extra")),$e=Object.assign(Object.assign({},s),k("header"));q=c.createElement("div",{className:he,style:$e},c.createElement("div",{className:`${O}-head-wrapper`},u&&c.createElement("div",{className:ae,style:k("title")},u),i&&c.createElement("div",{className:me,style:k("extra")},i)),ee)}const te=Z(`${O}-cover`,_("cover")),oe=h?c.createElement("div",{className:te,style:k("cover")},h):null,ve=Z(`${O}-body`,_("body")),fe=Object.assign(Object.assign({},l),k("body")),ge=c.createElement("div",{className:ve,style:fe},d?H:C),Oe=Z(`${O}-actions`,_("actions")),B=p!=null&&p.length?c.createElement(g1,{actionClasses:Oe,actionStyle:k("actions"),actions:p}):null,ue=Cr($,["onTabChange"]),le=Z(O,F==null?void 0:F.className,{[`${O}-loading`]:d,[`${O}-bordered`]:f,[`${O}-hoverable`]:S,[`${O}-contain-grid`]:N,[`${O}-contain-tabs`]:g==null?void 0:g.length,[`${O}-${Y}`]:Y,[`${O}-type-${b}`]:!!b,[`${O}-rtl`]:M==="rtl"},n,a,z,V),Ee=Object.assign(Object.assign({},F==null?void 0:F.style),o);return j(c.createElement("div",Object.assign({ref:t},ue,{className:le,style:Ee}),q,oe,ge,B))});var p1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const h1=e=>{const{prefixCls:t,className:r,avatar:n,title:a,description:o}=e,i=p1(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(nt),l=s("card",t),u=Z(`${l}-meta`,r),d=n?c.createElement("div",{className:`${l}-meta-avatar`},n):null,f=a?c.createElement("div",{className:`${l}-meta-title`},a):null,v=o?c.createElement("div",{className:`${l}-meta-description`},o):null,b=f||v?c.createElement("div",{className:`${l}-meta-detail`},f,v):null;return c.createElement("div",Object.assign({},i,{className:u}),d,b)},ti=m1;ti.Grid=Sv;ti.Meta=h1;process.env.NODE_ENV!=="production"&&(ti.displayName="Card");const xv=P.createContext({}),b1=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"}}}},y1=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},C1=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${n}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${n}${t}-order-${i}`]={order:i});return o[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},o},qs=(e,t)=>C1(e,t),S1=(e,t,r)=>({[`@media (min-width: ${Q(t)})`]:Object.assign({},qs(e,r))}),x1=()=>({}),E1=()=>({}),w1=lr("Grid",b1,x1),$1=lr("Grid",e=>{const t=jt(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[y1(t),qs(t,""),qs(t,"-xs"),Object.keys(r).map(n=>S1(t,r[n],n)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},E1);var O1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function wu(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const R1=["xs","sm","md","lg","xl","xxl"],ca=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(nt),{gutter:a,wrap:o}=c.useContext(xv),{prefixCls:i,span:s,order:l,offset:u,push:d,pull:f,className:v,children:b,flex:h,style:p}=e,g=O1(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=r("col",i),[m,y,x]=$1(C),S={};let E={};R1.forEach($=>{let T={};const M=e[$];typeof M=="number"?T.span=M:typeof M=="object"&&(T=M||{}),delete g[$],E=Object.assign(Object.assign({},E),{[`${C}-${$}-${T.span}`]:T.span!==void 0,[`${C}-${$}-order-${T.order}`]:T.order||T.order===0,[`${C}-${$}-offset-${T.offset}`]:T.offset||T.offset===0,[`${C}-${$}-push-${T.push}`]:T.push||T.push===0,[`${C}-${$}-pull-${T.pull}`]:T.pull||T.pull===0,[`${C}-rtl`]:n==="rtl"}),T.flex&&(E[`${C}-${$}-flex`]=!0,S[`--${C}-${$}-flex`]=wu(T.flex))});const R=Z(C,{[`${C}-${s}`]:s!==void 0,[`${C}-order-${l}`]:l,[`${C}-offset-${u}`]:u,[`${C}-push-${d}`]:d,[`${C}-pull-${f}`]:f},v,E,y,x),w={};if(a&&a[0]>0){const $=a[0]/2;w.paddingLeft=$,w.paddingRight=$}return h&&(w.flex=wu(h),o===!1&&!w.minWidth&&(w.minWidth=0)),m(c.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},w),p),S),className:R,ref:t}),b))});process.env.NODE_ENV!=="production"&&(ca.displayName="Col");var P1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function $u(e,t){const[r,n]=c.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let o=0;o<Pa.length;o++){const i=Pa[o];if(!t[i])continue;const s=e[i];if(s!==void 0){n(s);return}}};return c.useEffect(()=>{a()},[JSON.stringify(e),t]),r}const Xs=c.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:o,style:i,children:s,gutter:l=0,wrap:u}=e,d=P1(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(nt),[b,h]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[p,g]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=$u(a,p),m=$u(n,p),y=c.useRef(l),x=jC();c.useEffect(()=>{const O=x.subscribe(j=>{g(j);const z=y.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&h(j)});return()=>x.unsubscribe(O)},[]);const S=()=>{const O=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((z,V)=>{if(typeof z=="object")for(let H=0;H<Pa.length;H++){const K=Pa[H];if(b[K]&&z[K]!==void 0){O[V]=z[K];break}}else O[V]=z}),O},E=f("row",r),[R,w,$]=w1(E),T=S(),M=Z(E,{[`${E}-no-wrap`]:u===!1,[`${E}-${m}`]:m,[`${E}-${C}`]:C,[`${E}-rtl`]:v==="rtl"},o,w,$),F={},A=T[0]!=null&&T[0]>0?T[0]/-2:void 0;A&&(F.marginLeft=A,F.marginRight=A);const[_,k]=T;F.rowGap=k;const N=c.useMemo(()=>({gutter:[_,k],wrap:u}),[_,k,u]);return R(c.createElement(xv.Provider,{value:N},c.createElement("div",Object.assign({},d,{className:M,style:Object.assign(Object.assign({},F),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(Xs.displayName="Row");var _1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},T1=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:_1}))},Ev=c.forwardRef(T1);process.env.NODE_ENV!=="production"&&(Ev.displayName="UpOutlined");function N1(e){return!!(e.addonBefore||e.addonAfter)}function I1(e){return!!(e.prefix||e.suffix||e.allowClear)}function Ou(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Lo(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=Ou(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=Ou(t,e,n),r(a);return}r(a)}}function M1(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var wv=P.forwardRef(function(e,t){var r,n,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,l=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,v=e.style,b=e.disabled,h=e.readOnly,p=e.focused,g=e.triggerFocus,C=e.allowClear,m=e.value,y=e.handleReset,x=e.hidden,S=e.classes,E=e.classNames,R=e.dataAttrs,w=e.styles,$=e.components,T=e.onClear,M=o??a,F=($==null?void 0:$.affixWrapper)||"span",A=($==null?void 0:$.groupWrapper)||"span",_=($==null?void 0:$.wrapper)||"span",k=($==null?void 0:$.groupAddon)||"span",N=P.useRef(null),O=function(B){var ue;(ue=N.current)!==null&&ue!==void 0&&ue.contains(B.target)&&(g==null||g())},j=I1(e),z=P.cloneElement(M,{value:m,className:Z(M.props.className,!j&&(E==null?void 0:E.variant))||null}),V=P.useRef(null);if(P.useImperativeHandle(t,function(){return{nativeElement:V.current||N.current}}),j){var H=null;if(C){var K=!b&&!h&&m,W="".concat(i,"-clear-icon"),q=Ie(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";H=P.createElement("span",{onClick:function(B){y==null||y(B),T==null||T()},onMouseDown:function(B){return B.preventDefault()},className:Z(W,L(L({},"".concat(W,"-hidden"),!K),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var Y="".concat(i,"-affix-wrapper"),J=Z(Y,L(L(L(L(L({},"".concat(i,"-disabled"),b),"".concat(Y,"-disabled"),b),"".concat(Y,"-focused"),p),"".concat(Y,"-readonly"),h),"".concat(Y,"-input-with-clear-btn"),l&&C&&m),S==null?void 0:S.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),ee=(l||C)&&P.createElement("span",{className:Z("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:w==null?void 0:w.suffix},H,l);z=P.createElement(F,xe({className:J,style:w==null?void 0:w.affixWrapper,onClick:O},R==null?void 0:R.affixWrapper,{ref:N}),s&&P.createElement("span",{className:Z("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:w==null?void 0:w.prefix},s),z,ee)}if(N1(e)){var te="".concat(i,"-group"),oe="".concat(te,"-addon"),ve="".concat(te,"-wrapper"),fe=Z("".concat(i,"-wrapper"),te,S==null?void 0:S.wrapper,E==null?void 0:E.wrapper),ge=Z(ve,L({},"".concat(ve,"-disabled"),b),S==null?void 0:S.group,E==null?void 0:E.groupWrapper);z=P.createElement(A,{className:ge,ref:V},P.createElement(_,{className:fe},u&&P.createElement(k,{className:oe},u),z,d&&P.createElement(k,{className:oe},d)))}return P.cloneElement(z,{className:Z((r=z.props)===null||r===void 0?void 0:r.className,f)||null,style:D(D({},(n=z.props)===null||n===void 0?void 0:n.style),v),hidden:x})}),j1=["show"];function $v(e,t){return c.useMemo(function(){var r={};t&&(r.show=Ie(t)==="object"&&t.formatter?t.formatter:!!t),r=D(D({},r),e);var n=r,a=n.show,o=Je(n,j1);return D(D({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var A1=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],F1=P.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,v=e.htmlSize,b=e.className,h=e.maxLength,p=e.suffix,g=e.showCount,C=e.count,m=e.type,y=m===void 0?"text":m,x=e.classes,S=e.classNames,E=e.styles,R=e.onCompositionStart,w=e.onCompositionEnd,$=Je(e,A1),T=P.useState(!1),M=U(T,2),F=M[0],A=M[1],_=P.useRef(!1),k=P.useRef(!1),N=P.useRef(null),O=P.useRef(null),j=function(ne){N.current&&M1(N.current,ne)},z=Zt(e.defaultValue,{value:e.value}),V=U(z,2),H=V[0],K=V[1],W=H==null?"":String(H),q=P.useState(null),Y=U(q,2),J=Y[0],ee=Y[1],te=$v(C,g),oe=te.max||h,ve=te.strategy(W),fe=!!oe&&ve>oe;P.useImperativeHandle(t,function(){var ie;return{focus:j,blur:function(){var pe;(pe=N.current)===null||pe===void 0||pe.blur()},setSelectionRange:function(pe,be,at){var Xe;(Xe=N.current)===null||Xe===void 0||Xe.setSelectionRange(pe,be,at)},select:function(){var pe;(pe=N.current)===null||pe===void 0||pe.select()},input:N.current,nativeElement:((ie=O.current)===null||ie===void 0?void 0:ie.nativeElement)||N.current}}),P.useEffect(function(){A(function(ie){return ie&&f?!1:ie})},[f]);var ge=function(ne,pe,be){var at=pe;if(!_.current&&te.exceedFormatter&&te.max&&te.strategy(pe)>te.max){if(at=te.exceedFormatter(pe,{max:te.max}),pe!==at){var Xe,Ae;ee([((Xe=N.current)===null||Xe===void 0?void 0:Xe.selectionStart)||0,((Ae=N.current)===null||Ae===void 0?void 0:Ae.selectionEnd)||0])}}else if(be.source==="compositionEnd")return;K(at),N.current&&Lo(N.current,ne,n,at)};P.useEffect(function(){if(J){var ie;(ie=N.current)===null||ie===void 0||ie.setSelectionRange.apply(ie,Ce(J))}},[J]);var Oe=function(ne){ge(ne,ne.target.value,{source:"change"})},B=function(ne){_.current=!1,ge(ne,ne.currentTarget.value,{source:"compositionEnd"}),w==null||w(ne)},ue=function(ne){i&&ne.key==="Enter"&&!k.current&&(k.current=!0,i(ne)),s==null||s(ne)},le=function(ne){ne.key==="Enter"&&(k.current=!1),l==null||l(ne)},Ee=function(ne){A(!0),a==null||a(ne)},he=function(ne){A(!1),o==null||o(ne)},ae=function(ne){K(""),j(),N.current&&Lo(N.current,ne,n)},me=fe&&"".concat(d,"-out-of-range"),$e=function(){var ne=Cr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return P.createElement("input",xe({autoComplete:r},ne,{onChange:Oe,onFocus:Ee,onBlur:he,onKeyDown:ue,onKeyUp:le,className:Z(d,L({},"".concat(d,"-disabled"),f),S==null?void 0:S.input),style:E==null?void 0:E.input,ref:N,size:v,type:y,onCompositionStart:function(be){_.current=!0,R==null||R(be)},onCompositionEnd:B}))},je=function(){var ne=Number(oe)>0;if(p||te.show){var pe=te.showFormatter?te.showFormatter({value:W,count:ve,maxLength:oe}):"".concat(ve).concat(ne?" / ".concat(oe):"");return P.createElement(P.Fragment,null,te.show&&P.createElement("span",{className:Z("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!p),S==null?void 0:S.count),style:D({},E==null?void 0:E.count)},pe),p)}return null};return P.createElement(wv,xe({},$,{prefixCls:d,className:Z(b,me),handleReset:ae,value:W,focused:F,triggerFocus:j,suffix:je(),disabled:f,classes:x,classNames:S,styles:E}),$e())});const Ov=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:P.createElement(rf,null)}),t};function L1(e,t){const r=P.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return P.useEffect(()=>(n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function D1(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var z1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function k1(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}const V1=P.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:a=!0,status:o,size:i,disabled:s,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:v,addonBefore:b,className:h,style:p,styles:g,rootClassName:C,onChange:m,classNames:y,variant:x}=e,S=z1(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:B}=Nt("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:R,input:w}=P.useContext(nt),$=E("input",n),T=P.useRef(null),M=Ma($),[F,A,_]=fv($,M),{compactSize:k,compactItemClassnames:N}=uf($,R),O=vn(B=>{var ue;return(ue=i??k)!==null&&ue!==void 0?ue:B}),j=P.useContext(ln),z=s??j,{status:V,hasFeedback:H,feedbackIcon:K}=P.useContext(Bn),W=Ff(V,o),q=D1(e)||!!H,Y=P.useRef(q);if(process.env.NODE_ENV!=="production"){const B=Nt("Input");P.useEffect(()=>{var ue;q&&!Y.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((ue=T.current)===null||ue===void 0?void 0:ue.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"),Y.current=q},[q])}const J=L1(T),ee=B=>{J(),l==null||l(B)},te=B=>{J(),u==null||u(B)},oe=B=>{J(),m==null||m(B)},ve=(H||d)&&P.createElement(P.Fragment,null,d,H&&K),fe=Ov(f??(w==null?void 0:w.allowClear)),[ge,Oe]=Lf("input",x,a);return F(P.createElement(F1,Object.assign({ref:yr(t,T),prefixCls:$,autoComplete:w==null?void 0:w.autoComplete},S,{disabled:z,onBlur:ee,onFocus:te,style:Object.assign(Object.assign({},w==null?void 0:w.style),p),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),g),suffix:ve,allowClear:fe,className:Z(h,C,_,M,N,w==null?void 0:w.className),onChange:oe,addonBefore:b&&P.createElement(Ds,{form:!0,space:!0},b),addonAfter:v&&P.createElement(Ds,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),w==null?void 0:w.classNames),{input:Z({[`${$}-sm`]:O==="small",[`${$}-lg`]:O==="large",[`${$}-rtl`]:R==="rtl"},y==null?void 0:y.input,(r=w==null?void 0:w.classNames)===null||r===void 0?void 0:r.input,A),variant:Z({[`${$}-${ge}`]:Oe},ks($,W)),affixWrapper:Z({[`${$}-affix-wrapper-sm`]:O==="small",[`${$}-affix-wrapper-lg`]:O==="large",[`${$}-affix-wrapper-rtl`]:R==="rtl"},A),wrapper:Z({[`${$}-group-rtl`]:R==="rtl"},A),groupWrapper:Z({[`${$}-group-wrapper-sm`]:O==="small",[`${$}-group-wrapper-lg`]:O==="large",[`${$}-group-wrapper-rtl`]:R==="rtl",[`${$}-group-wrapper-${ge}`]:Oe},ks(`${$}-group-wrapper`,W,H),A)})})))});process.env.NODE_ENV!=="production"&&(V1.displayName="Input");var B1=`
|
|
296
|
+
> 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:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${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:ye(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ye(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:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},IN=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ye(e.borderRadius)} ${ye(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ye(e.borderRadius)} ${ye(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ye(e.borderRadius)} ${ye(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ye(e.borderRadius)} 0 0 ${ye(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},AN=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},am(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:r},[`&${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 ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},NN=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ye(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ye(e.marginXS)},marginLeft:{_skip_check_:!0,value:ye(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},kN=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},_r(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${ye(e.paddingXS)}`,background:"transparent",border:`${ye(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${ye(e.borderRadiusLG)} ${ye(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},am(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),AN(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"}}}}}},jN=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:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}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}},LN=er("Tabs",e=>{const t=nn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ye(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ye(e.horizontalItemGutter)}`});return[IN(t),NN(t),PN(t),RN(t),TN(t),kN(t),MN(t)]},jN),Gw=()=>null;process.env.NODE_ENV!=="production"&&(Gw.displayName="DeprecatedTabPane");var DN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Bm=e=>{var t,n,r,i,a,o,s,l,c,u,d;const{type:f,className:h,rootClassName:p,size:m,onEdit:v,hideAdd:y,centered:b,addIcon:x,removeIcon:C,moreIcon:S,more:w,popupClassName:O,children:E,items:_,animated:T,style:R,indicatorSize:F,indicator:I}=e,P=DN(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k}=P,{direction:A,tabs:M,getPrefixCls:N,getPopupContainer:j}=g.useContext(Tt),D=N("tabs",k),V=No(D),[X,q,Z]=LN(D,V);let J;f==="editable-card"&&(J={onEdit:(z,ne)=>{let{key:B,event:re}=ne;v==null||v(z==="add"?re:B,z)},removeIcon:(t=C??(M==null?void 0:M.removeIcon))!==null&&t!==void 0?t:g.createElement(lm,null),addIcon:(x??(M==null?void 0:M.addIcon))||g.createElement(Fw,null),showAdd:y!==!0});const Q=N();if(process.env.NODE_ENV!=="production"){const z=dn("Tabs");process.env.NODE_ENV!=="production"&&z(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&z(!(F||M!=null&&M.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const K=Wi(m),Y=ON(_,E),W=$N(D,T),H=Object.assign(Object.assign({},M==null?void 0:M.style),R),U={align:(n=I==null?void 0:I.align)!==null&&n!==void 0?n:(r=M==null?void 0:M.indicator)===null||r===void 0?void 0:r.align,size:(s=(a=(i=I==null?void 0:I.size)!==null&&i!==void 0?i:F)!==null&&a!==void 0?a:(o=M==null?void 0:M.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:M==null?void 0:M.indicatorSize};return X(g.createElement(Uw,Object.assign({direction:A,getPopupContainer:j},P,{items:Y,className:pe({[`${D}-${K}`]:K,[`${D}-card`]:["card","editable-card"].includes(f),[`${D}-editable-card`]:f==="editable-card",[`${D}-centered`]:b},M==null?void 0:M.className,h,p,q,Z,V),popupClassName:pe(O,q,Z,V),style:H,editable:J,more:Object.assign({icon:(d=(u=(c=(l=M==null?void 0:M.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:M==null?void 0:M.moreIcon)!==null&&u!==void 0?u:S)!==null&&d!==void 0?d:g.createElement(Tw,null),transitionName:`${Q}-slide-up`},w),prefixCls:D,animated:W,indicator:U})))};Bm.TabPane=Gw;process.env.NODE_ENV!=="production"&&(Bm.displayName="Tabs");var FN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const qw=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=FN(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=g.useContext(Tt),o=a("card",t),s=pe(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return g.createElement("div",Object.assign({},i,{className:s}))},zN=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ye(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ye(e.borderRadiusLG)} ${ye(e.borderRadiusLG)} 0 0`},xl()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},bo),{[`
|
|
297
|
+
> ${n}-typography,
|
|
298
|
+
> ${n}-typography-edit-content
|
|
299
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ye(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},BN=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
300
|
+
${ye(i)} 0 0 0 ${n},
|
|
301
|
+
0 ${ye(i)} 0 0 ${n},
|
|
302
|
+
${ye(i)} ${ye(i)} 0 0 ${n},
|
|
303
|
+
${ye(i)} 0 0 0 ${n} inset,
|
|
304
|
+
0 ${ye(i)} 0 0 ${n} inset;
|
|
305
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},VN=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${ye(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${ye(e.borderRadiusLG)} ${ye(e.borderRadiusLG)}`},xl()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ye(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:ye(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ye(e.lineWidth)} ${e.lineType} ${a}`}}})},WN=e=>Object.assign(Object.assign({margin:`${ye(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},xl()),{"&-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},bo),"&-description":{color:e.colorTextDescription}}),HN=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${ye(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ye(e.padding)} ${ye(n)}`}}},UN=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},GN=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},_r(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:zN(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:o,borderRadius:`0 0 ${ye(e.borderRadiusLG)} ${ye(e.borderRadiusLG)}`},xl()),[`${t}-grid`]:BN(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ye(e.borderRadiusLG)} ${ye(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:VN(e),[`${t}-meta`]:WN(e)}),[`${t}-bordered`]:{border:`${ye(e.lineWidth)} ${e.lineType} ${i}`,[`${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:`${ye(e.borderRadiusLG)} ${ye(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:r}}},[`${t}-type-inner`]:HN(e),[`${t}-loading`]:UN(e),[`${t}-rtl`]:{direction:"rtl"}}},qN=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${ye(n)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},KN=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),YN=er("Card",e=>{const t=nn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[GN(t),qN(t)]},KN);var Ey=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const XN=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return g.createElement("ul",{className:t,style:r},n.map((i,a)=>{const o=`action-${a}`;return g.createElement("li",{style:{width:`${100/n.length}%`},key:o},g.createElement("span",null,i))}))},ZN=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:d=!0,size:f,type:h,cover:p,actions:m,tabList:v,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:C,hoverable:S,tabProps:w={},classNames:O,styles:E}=e,_=Ey(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:T,direction:R,card:F}=g.useContext(Tt);if(process.env.NODE_ENV!=="production"){const me=dn("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ve=>{let[be,Ce]=ve;me.deprecated(!(be in e),be,Ce)})}const I=me=>{var ve;(ve=e.onTabChange)===null||ve===void 0||ve.call(e,me)},P=me=>{var ve;return pe((ve=F==null?void 0:F.classNames)===null||ve===void 0?void 0:ve[me],O==null?void 0:O[me])},k=me=>{var ve;return Object.assign(Object.assign({},(ve=F==null?void 0:F.styles)===null||ve===void 0?void 0:ve[me]),E==null?void 0:E[me])},A=g.useMemo(()=>{let me=!1;return g.Children.forEach(y,ve=>{(ve==null?void 0:ve.type)===qw&&(me=!0)}),me},[y]),M=T("card",n),[N,j,D]=YN(M),V=g.createElement(Ca,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),X=b!==void 0,q=Object.assign(Object.assign({},w),{[X?"activeKey":"defaultActiveKey"]:X?b:x,tabBarExtraContent:C});let Z;const J=Wi(f),Q=!J||J==="default"?"large":J,K=v?g.createElement(Bm,Object.assign({size:Q},q,{className:`${M}-head-tabs`,onChange:I,items:v.map(me=>{var{tab:ve}=me,be=Ey(me,["tab"]);return Object.assign({label:ve},be)})})):null;if(c||o||K){const me=pe(`${M}-head`,P("header")),ve=pe(`${M}-head-title`,P("title")),be=pe(`${M}-extra`,P("extra")),Ce=Object.assign(Object.assign({},s),k("header"));Z=g.createElement("div",{className:me,style:Ce},g.createElement("div",{className:`${M}-head-wrapper`},c&&g.createElement("div",{className:ve,style:k("title")},c),o&&g.createElement("div",{className:be,style:k("extra")},o)),K)}const Y=pe(`${M}-cover`,P("cover")),W=p?g.createElement("div",{className:Y,style:k("cover")},p):null,H=pe(`${M}-body`,P("body")),U=Object.assign(Object.assign({},l),k("body")),z=g.createElement("div",{className:H,style:U},u?V:y),ne=pe(`${M}-actions`,P("actions")),B=m!=null&&m.length?g.createElement(XN,{actionClasses:ne,actionStyle:k("actions"),actions:m}):null,re=hr(_,["onTabChange"]),ie=pe(M,F==null?void 0:F.className,{[`${M}-loading`]:u,[`${M}-bordered`]:d,[`${M}-hoverable`]:S,[`${M}-contain-grid`]:A,[`${M}-contain-tabs`]:v==null?void 0:v.length,[`${M}-${J}`]:J,[`${M}-type-${h}`]:!!h,[`${M}-rtl`]:R==="rtl"},r,i,j,D),ue=Object.assign(Object.assign({},F==null?void 0:F.style),a);return N(g.createElement("div",Object.assign({ref:t},re,{className:ie,style:ue}),Z,W,z,B))});var QN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const JN=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,o=QN(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=g.useContext(Tt),l=s("card",t),c=pe(`${l}-meta`,n),u=r?g.createElement("div",{className:`${l}-meta-avatar`},r):null,d=i?g.createElement("div",{className:`${l}-meta-title`},i):null,f=a?g.createElement("div",{className:`${l}-meta-description`},a):null,h=d||f?g.createElement("div",{className:`${l}-meta-detail`},d,f):null;return g.createElement("div",Object.assign({},o,{className:c}),u,h)},ed=ZN;ed.Grid=qw;ed.Meta=JN;process.env.NODE_ENV!=="production"&&(ed.displayName="Card");const Kw=$.createContext({}),e9=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"}}}},t9=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},n9=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let o=i;o>=0;o--)o===0?(a[`${r}${t}-${o}`]={display:"none"},a[`${r}-push-${o}`]={insetInlineStart:"auto"},a[`${r}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${o}`]={marginInlineStart:0},a[`${r}${t}-order-${o}`]={order:0}):(a[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/i*100}%`,maxWidth:`${o/i*100}%`}],a[`${r}${t}-push-${o}`]={insetInlineStart:`${o/i*100}%`},a[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/i*100}%`},a[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/i*100}%`},a[`${r}${t}-order-${o}`]={order:o});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Zv=(e,t)=>n9(e,t),r9=(e,t,n)=>({[`@media (min-width: ${ye(t)})`]:Object.assign({},Zv(e,n))}),i9=()=>({}),a9=()=>({}),o9=er("Grid",e9,i9),s9=er("Grid",e=>{const t=nn(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[t9(t),Zv(t,""),Zv(t,"-xs"),Object.keys(n).map(r=>r9(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},a9);var l9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Oy(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const c9=["xs","sm","md","lg","xl","xxl"],_s=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=g.useContext(Tt),{gutter:i,wrap:a}=g.useContext(Kw),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:d,className:f,children:h,flex:p,style:m}=e,v=l9(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",o),[b,x,C]=s9(y),S={};let w={};c9.forEach(_=>{let T={};const R=e[_];typeof R=="number"?T.span=R:typeof R=="object"&&(T=R||{}),delete v[_],w=Object.assign(Object.assign({},w),{[`${y}-${_}-${T.span}`]:T.span!==void 0,[`${y}-${_}-order-${T.order}`]:T.order||T.order===0,[`${y}-${_}-offset-${T.offset}`]:T.offset||T.offset===0,[`${y}-${_}-push-${T.push}`]:T.push||T.push===0,[`${y}-${_}-pull-${T.pull}`]:T.pull||T.pull===0,[`${y}-rtl`]:r==="rtl"}),T.flex&&(w[`${y}-${_}-flex`]=!0,S[`--${y}-${_}-flex`]=Oy(T.flex))});const O=pe(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${d}`]:d},f,w,x,C),E={};if(i&&i[0]>0){const _=i[0]/2;E.paddingLeft=_,E.paddingRight=_}return p&&(E.flex=Oy(p),a===!1&&!E.minWidth&&(E.minWidth=0)),b(g.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),m),S),className:O,ref:t}),h))});process.env.NODE_ENV!=="production"&&(_s.displayName="Col");var u9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function My(e,t){const[n,r]=g.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Qs.length;a++){const o=Qs[a];if(!t[o])continue;const s=e[o];if(s!==void 0){r(s);return}}};return g.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const Qv=g.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:l=0,wrap:c}=e,u=u9(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=g.useContext(Tt),[h,p]=g.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,v]=g.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=My(i,m),b=My(r,m),x=g.useRef(l),C=m7();g.useEffect(()=>{const M=C.subscribe(N=>{v(N);const j=x.current||0;(!Array.isArray(j)&&typeof j=="object"||Array.isArray(j)&&(typeof j[0]=="object"||typeof j[1]=="object"))&&p(N)});return()=>C.unsubscribe(M)},[]);const S=()=>{const M=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((j,D)=>{if(typeof j=="object")for(let V=0;V<Qs.length;V++){const X=Qs[V];if(h[X]&&j[X]!==void 0){M[D]=j[X];break}}else M[D]=j}),M},w=d("row",n),[O,E,_]=o9(w),T=S(),R=pe(w,{[`${w}-no-wrap`]:c===!1,[`${w}-${b}`]:b,[`${w}-${y}`]:y,[`${w}-rtl`]:f==="rtl"},a,E,_),F={},I=T[0]!=null&&T[0]>0?T[0]/-2:void 0;I&&(F.marginLeft=I,F.marginRight=I);const[P,k]=T;F.rowGap=k;const A=g.useMemo(()=>({gutter:[P,k],wrap:c}),[P,k,c]);return O(g.createElement(Kw.Provider,{value:A},g.createElement("div",Object.assign({},u,{className:R,style:Object.assign(Object.assign({},F),o),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(Qv.displayName="Row");var d9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},f9=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:d9}))},Yw=g.forwardRef(f9);process.env.NODE_ENV!=="production"&&(Yw.displayName="UpOutlined");function h9(e){return!!(e.addonBefore||e.addonAfter)}function v9(e){return!!(e.prefix||e.suffix||e.allowClear)}function Ty(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function ru(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=Ty(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=Ty(t,e,r),n(i);return}n(i)}}function g9(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var Xw=$.forwardRef(function(e,t){var n,r,i=e.inputElement,a=e.children,o=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.style,h=e.disabled,p=e.readOnly,m=e.focused,v=e.triggerFocus,y=e.allowClear,b=e.value,x=e.handleReset,C=e.hidden,S=e.classes,w=e.classNames,O=e.dataAttrs,E=e.styles,_=e.components,T=e.onClear,R=a??i,F=(_==null?void 0:_.affixWrapper)||"span",I=(_==null?void 0:_.groupWrapper)||"span",P=(_==null?void 0:_.wrapper)||"span",k=(_==null?void 0:_.groupAddon)||"span",A=$.useRef(null),M=function(B){var re;(re=A.current)!==null&&re!==void 0&&re.contains(B.target)&&(v==null||v())},N=v9(e),j=$.cloneElement(R,{value:b,className:pe(R.props.className,!N&&(w==null?void 0:w.variant))||null}),D=$.useRef(null);if($.useImperativeHandle(t,function(){return{nativeElement:D.current||A.current}}),N){var V=null;if(y){var X=!h&&!p&&b,q="".concat(o,"-clear-icon"),Z=ut(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";V=$.createElement("span",{onClick:function(B){x==null||x(B),T==null||T()},onMouseDown:function(B){return B.preventDefault()},className:pe(q,ee(ee({},"".concat(q,"-hidden"),!X),"".concat(q,"-has-suffix"),!!l)),role:"button",tabIndex:-1},Z)}var J="".concat(o,"-affix-wrapper"),Q=pe(J,ee(ee(ee(ee(ee({},"".concat(o,"-disabled"),h),"".concat(J,"-disabled"),h),"".concat(J,"-focused"),m),"".concat(J,"-readonly"),p),"".concat(J,"-input-with-clear-btn"),l&&y&&b),S==null?void 0:S.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),K=(l||y)&&$.createElement("span",{className:pe("".concat(o,"-suffix"),w==null?void 0:w.suffix),style:E==null?void 0:E.suffix},V,l);j=$.createElement(F,Ye({className:Q,style:E==null?void 0:E.affixWrapper,onClick:M},O==null?void 0:O.affixWrapper,{ref:A}),s&&$.createElement("span",{className:pe("".concat(o,"-prefix"),w==null?void 0:w.prefix),style:E==null?void 0:E.prefix},s),j,K)}if(h9(e)){var Y="".concat(o,"-group"),W="".concat(Y,"-addon"),H="".concat(Y,"-wrapper"),U=pe("".concat(o,"-wrapper"),Y,S==null?void 0:S.wrapper,w==null?void 0:w.wrapper),z=pe(H,ee({},"".concat(H,"-disabled"),h),S==null?void 0:S.group,w==null?void 0:w.groupWrapper);j=$.createElement(I,{className:z,ref:D},$.createElement(P,{className:U},c&&$.createElement(k,{className:W},c),j,u&&$.createElement(k,{className:W},u)))}return $.cloneElement(j,{className:pe((n=j.props)===null||n===void 0?void 0:n.className,d)||null,style:te(te({},(r=j.props)===null||r===void 0?void 0:r.style),f),hidden:C})}),m9=["show"];function Zw(e,t){return g.useMemo(function(){var n={};t&&(n.show=ut(t)==="object"&&t.formatter?t.formatter:!!t),n=te(te({},n),e);var r=n,i=r.show,a=wt(r,m9);return te(te({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var p9=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],b9=$.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,h=e.className,p=e.maxLength,m=e.suffix,v=e.showCount,y=e.count,b=e.type,x=b===void 0?"text":b,C=e.classes,S=e.classNames,w=e.styles,O=e.onCompositionStart,E=e.onCompositionEnd,_=wt(e,p9),T=$.useState(!1),R=ae(T,2),F=R[0],I=R[1],P=$.useRef(!1),k=$.useRef(!1),A=$.useRef(null),M=$.useRef(null),N=function(se){A.current&&g9(A.current,se)},j=_n(e.defaultValue,{value:e.value}),D=ae(j,2),V=D[0],X=D[1],q=V==null?"":String(V),Z=$.useState(null),J=ae(Z,2),Q=J[0],K=J[1],Y=Zw(y,v),W=Y.max||p,H=Y.strategy(q),U=!!W&&H>W;$.useImperativeHandle(t,function(){var fe;return{focus:N,blur:function(){var xe;(xe=A.current)===null||xe===void 0||xe.blur()},setSelectionRange:function(xe,ce,Ne){var Me;(Me=A.current)===null||Me===void 0||Me.setSelectionRange(xe,ce,Ne)},select:function(){var xe;(xe=A.current)===null||xe===void 0||xe.select()},input:A.current,nativeElement:((fe=M.current)===null||fe===void 0?void 0:fe.nativeElement)||A.current}}),$.useEffect(function(){I(function(fe){return fe&&d?!1:fe})},[d]);var z=function(se,xe,ce){var Ne=xe;if(!P.current&&Y.exceedFormatter&&Y.max&&Y.strategy(xe)>Y.max){if(Ne=Y.exceedFormatter(xe,{max:Y.max}),xe!==Ne){var Me,Ie;K([((Me=A.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((Ie=A.current)===null||Ie===void 0?void 0:Ie.selectionEnd)||0])}}else if(ce.source==="compositionEnd")return;X(Ne),A.current&&ru(A.current,se,r,Ne)};$.useEffect(function(){if(Q){var fe;(fe=A.current)===null||fe===void 0||fe.setSelectionRange.apply(fe,Ge(Q))}},[Q]);var ne=function(se){z(se,se.target.value,{source:"change"})},B=function(se){P.current=!1,z(se,se.currentTarget.value,{source:"compositionEnd"}),E==null||E(se)},re=function(se){o&&se.key==="Enter"&&!k.current&&(k.current=!0,o(se)),s==null||s(se)},ie=function(se){se.key==="Enter"&&(k.current=!1),l==null||l(se)},ue=function(se){I(!0),i==null||i(se)},me=function(se){I(!1),a==null||a(se)},ve=function(se){X(""),N(),A.current&&ru(A.current,se,r)},be=U&&"".concat(u,"-out-of-range"),Ce=function(){var se=hr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return $.createElement("input",Ye({autoComplete:n},se,{onChange:ne,onFocus:ue,onBlur:me,onKeyDown:re,onKeyUp:ie,className:pe(u,ee({},"".concat(u,"-disabled"),d),S==null?void 0:S.input),style:w==null?void 0:w.input,ref:A,size:f,type:x,onCompositionStart:function(ce){P.current=!0,O==null||O(ce)},onCompositionEnd:B}))},ge=function(){var se=Number(W)>0;if(m||Y.show){var xe=Y.showFormatter?Y.showFormatter({value:q,count:H,maxLength:W}):"".concat(H).concat(se?" / ".concat(W):"");return $.createElement($.Fragment,null,Y.show&&$.createElement("span",{className:pe("".concat(u,"-show-count-suffix"),ee({},"".concat(u,"-show-count-has-suffix"),!!m),S==null?void 0:S.count),style:te({},w==null?void 0:w.count)},xe),m)}return null};return $.createElement(Xw,Ye({},_,{prefixCls:u,className:pe(h,be),handleReset:ve,value:q,focused:F,triggerFocus:N,suffix:ge(),disabled:d,classes:C,classNames:S,styles:w}),Ce())});const Qw=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:$.createElement(sm,null)}),t};function y9(e,t){const n=$.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,s;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return $.useEffect(()=>(r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function x9(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var S9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function C9(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const w9=$.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:h,className:p,style:m,styles:v,rootClassName:y,onChange:b,classNames:x,variant:C}=e,S=S9(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:B}=dn("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:w,direction:O,input:E}=$.useContext(Tt),_=w("input",r),T=$.useRef(null),R=No(_),[F,I,P]=Dw(_,R),{compactSize:k,compactItemClassnames:A}=vm(_,O),M=Wi(B=>{var re;return(re=o??k)!==null&&re!==void 0?re:B}),N=$.useContext(Ai),j=s??N,{status:D,hasFeedback:V,feedbackIcon:X}=$.useContext(fa),q=Tm(D,a),Z=x9(e)||!!V,J=$.useRef(Z);if(process.env.NODE_ENV!=="production"){const B=dn("Input");$.useEffect(()=>{var re;Z&&!J.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((re=T.current)===null||re===void 0?void 0:re.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"),J.current=Z},[Z])}const Q=y9(T),K=B=>{Q(),l==null||l(B)},Y=B=>{Q(),c==null||c(B)},W=B=>{Q(),b==null||b(B)},H=(V||u)&&$.createElement($.Fragment,null,u,V&&X),U=Qw(d??(E==null?void 0:E.allowClear)),[z,ne]=Rm("input",C,i);return F($.createElement(b9,Object.assign({ref:Er(t,T),prefixCls:_,autoComplete:E==null?void 0:E.autoComplete},S,{disabled:j,onBlur:K,onFocus:Y,style:Object.assign(Object.assign({},E==null?void 0:E.style),m),styles:Object.assign(Object.assign({},E==null?void 0:E.styles),v),suffix:H,allowClear:U,className:pe(p,y,P,R,A,E==null?void 0:E.className),onChange:W,addonBefore:h&&$.createElement(Fv,{form:!0,space:!0},h),addonAfter:f&&$.createElement(Fv,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},x),E==null?void 0:E.classNames),{input:pe({[`${_}-sm`]:M==="small",[`${_}-lg`]:M==="large",[`${_}-rtl`]:O==="rtl"},x==null?void 0:x.input,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.input,I),variant:pe({[`${_}-${z}`]:ne},tu(_,q)),affixWrapper:pe({[`${_}-affix-wrapper-sm`]:M==="small",[`${_}-affix-wrapper-lg`]:M==="large",[`${_}-affix-wrapper-rtl`]:O==="rtl"},I),wrapper:pe({[`${_}-group-rtl`]:O==="rtl"},I),groupWrapper:pe({[`${_}-group-wrapper-sm`]:M==="small",[`${_}-group-wrapper-lg`]:M==="large",[`${_}-group-wrapper-rtl`]:O==="rtl",[`${_}-group-wrapper-${z}`]:ne},tu(`${_}-group-wrapper`,q,V),I)})})))});process.env.NODE_ENV!=="production"&&(w9.displayName="Input");var $9=`
|
|
278
306
|
min-height:0 !important;
|
|
279
307
|
max-height:none !important;
|
|
280
308
|
height:0 !important;
|
|
@@ -285,45 +313,45 @@ html body {
|
|
|
285
313
|
top:0 !important;
|
|
286
314
|
right:0 !important;
|
|
287
315
|
pointer-events: none !important;
|
|
288
|
-
`,H1=["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"],Mi={},ir;function W1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Mi[r])return Mi[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=H1.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Mi[r]=l),l}function G1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ir||(ir=document.createElement("textarea"),ir.setAttribute("tab-index","-1"),ir.setAttribute("aria-hidden","true"),document.body.appendChild(ir)),e.getAttribute("wrap")?ir.setAttribute("wrap",e.getAttribute("wrap")):ir.removeAttribute("wrap");var a=W1(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;ir.setAttribute("style","".concat(l,";").concat(B1)),ir.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=ir.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){ir.value=" ";var b=ir.scrollHeight-o;r!==null&&(u=b*r,s==="border-box"&&(u=u+o+i),v=Math.max(u,v)),n!==null&&(d=b*n,s==="border-box"&&(d=d+o+i),f=v>d?"":"hidden",v=Math.min(d,v))}var h={height:v,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var U1=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ji=0,Ai=1,Fi=2,K1=c.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,o=r.value,i=r.autoSize,s=r.onResize,l=r.className,u=r.style,d=r.disabled,f=r.onChange,v=r.onInternalAutoSize,b=Je(r,U1),h=Zt(a,{value:o,postState:function(Y){return Y??""}}),p=U(h,2),g=p[0],C=p[1],m=function(Y){C(Y.target.value),f==null||f(Y)},y=c.useRef();c.useImperativeHandle(t,function(){return{textArea:y.current}});var x=c.useMemo(function(){return i&&Ie(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=U(x,2),E=S[0],R=S[1],w=!!i,$=function(){try{if(document.activeElement===y.current){var Y=y.current,J=Y.selectionStart,ee=Y.selectionEnd,te=Y.scrollTop;y.current.setSelectionRange(J,ee),y.current.scrollTop=te}}catch{}},T=c.useState(Fi),M=U(T,2),F=M[0],A=M[1],_=c.useState(),k=U(_,2),N=k[0],O=k[1],j=function(){A(ji),process.env.NODE_ENV==="test"&&(v==null||v())};St(function(){w&&j()},[o,E,R,w]),St(function(){if(F===ji)A(Ai);else if(F===Ai){var q=G1(y.current,!1,E,R);A(Fi),O(q)}else $()},[F]);var z=c.useRef(),V=function(){Tt.cancel(z.current)},H=function(Y){F===Fi&&(s==null||s(Y),i&&(V(),z.current=Tt(function(){j()})))};c.useEffect(function(){return V},[]);var K=w?N:null,W=D(D({},u),K);return(F===ji||F===Ai)&&(W.overflowY="hidden",W.overflowX="hidden"),c.createElement(mr,{onResize:H,disabled:!(i||s)},c.createElement("textarea",xe({},b,{ref:y,style:W,className:Z(n,l,L({},"".concat(n,"-disabled"),d)),disabled:d,value:g,onChange:m})))}),q1=["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"],X1=P.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,b=e.prefixCls,h=b===void 0?"rc-textarea":b,p=e.showCount,g=e.count,C=e.className,m=e.style,y=e.disabled,x=e.hidden,S=e.classNames,E=e.styles,R=e.onResize,w=e.onClear,$=e.onPressEnter,T=e.readOnly,M=e.autoSize,F=e.onKeyDown,A=Je(e,q1),_=Zt(n,{value:a,defaultValue:n}),k=U(_,2),N=k[0],O=k[1],j=N==null?"":String(N),z=P.useState(!1),V=U(z,2),H=V[0],K=V[1],W=P.useRef(!1),q=P.useState(null),Y=U(q,2),J=Y[0],ee=Y[1],te=P.useRef(null),oe=P.useRef(null),ve=function(){var Ne;return(Ne=oe.current)===null||Ne===void 0?void 0:Ne.textArea},fe=function(){ve().focus()};P.useImperativeHandle(t,function(){var Le;return{resizableTextArea:oe.current,focus:fe,blur:function(){ve().blur()},nativeElement:((Le=te.current)===null||Le===void 0?void 0:Le.nativeElement)||ve()}}),P.useEffect(function(){K(function(Le){return!y&&Le})},[y]);var ge=P.useState(null),Oe=U(ge,2),B=Oe[0],ue=Oe[1];P.useEffect(function(){if(B){var Le;(Le=ve()).setSelectionRange.apply(Le,Ce(B))}},[B]);var le=$v(g,p),Ee=(r=le.max)!==null&&r!==void 0?r:u,he=Number(Ee)>0,ae=le.strategy(j),me=!!Ee&&ae>Ee,$e=function(Ne,lt){var Ze=lt;!W.current&&le.exceedFormatter&&le.max&&le.strategy(lt)>le.max&&(Ze=le.exceedFormatter(lt,{max:le.max}),lt!==Ze&&ue([ve().selectionStart||0,ve().selectionEnd||0])),O(Ze),Lo(Ne.currentTarget,Ne,s,Ze)},je=function(Ne){W.current=!0,d==null||d(Ne)},ie=function(Ne){W.current=!1,$e(Ne,Ne.currentTarget.value),f==null||f(Ne)},ne=function(Ne){$e(Ne,Ne.target.value)},pe=function(Ne){Ne.key==="Enter"&&$&&$(Ne),F==null||F(Ne)},be=function(Ne){K(!0),o==null||o(Ne)},at=function(Ne){K(!1),i==null||i(Ne)},Xe=function(Ne){O(""),fe(),Lo(ve(),Ne,s)},Ae=v,Ke;le.show&&(le.showFormatter?Ke=le.showFormatter({value:j,count:ae,maxLength:Ee}):Ke="".concat(ae).concat(he?" / ".concat(Ee):""),Ae=P.createElement(P.Fragment,null,Ae,P.createElement("span",{className:Z("".concat(h,"-data-count"),S==null?void 0:S.count),style:E==null?void 0:E.count},Ke)));var Ye=function(Ne){var lt;R==null||R(Ne),(lt=ve())!==null&<!==void 0&<.style.height&&ee(!0)},et=!M&&!p&&!l;return P.createElement(wv,{ref:te,value:j,allowClear:l,handleReset:Xe,suffix:Ae,prefixCls:h,classNames:D(D({},S),{},{affixWrapper:Z(S==null?void 0:S.affixWrapper,L(L({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:H,className:Z(C,me&&"".concat(h,"-out-of-range")),style:D(D({},m),J&&!et?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ke=="string"?Ke:void 0}},hidden:x,readOnly:T,onClear:w},P.createElement(K1,xe({},A,{autoSize:M,maxLength:u,onKeyDown:pe,onChange:ne,onFocus:be,onBlur:at,onCompositionStart:je,onCompositionEnd:ie,className:Z(S==null?void 0:S.textarea),style:D(D({},E==null?void 0:E.textarea),{},{resize:m==null?void 0:m.resize}),disabled:y,prefixCls:h,onResize:Ye,ref:oe,readOnly:T})))}),Y1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Z1=P.forwardRef((e,t)=>{var r,n;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:l,allowClear:u,classNames:d,rootClassName:f,className:v,style:b,styles:h,variant:p}=e,g=Y1(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:V}=Nt("TextArea");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:C,direction:m,textArea:y}=c.useContext(nt),x=vn(i),S=c.useContext(ln),E=s??S,{status:R,hasFeedback:w,feedbackIcon:$}=c.useContext(Bn),T=Ff(R,l),M=c.useRef(null);c.useImperativeHandle(t,()=>{var V;return{resizableTextArea:(V=M.current)===null||V===void 0?void 0:V.resizableTextArea,focus:H=>{var K,W;k1((W=(K=M.current)===null||K===void 0?void 0:K.resizableTextArea)===null||W===void 0?void 0:W.textArea,H)},blur:()=>{var H;return(H=M.current)===null||H===void 0?void 0:H.blur()}}});const F=C("input",a),A=Ma(F),[_,k,N]=fv(F,A),[O,j]=Lf("textArea",p,o),z=Ov(u??(y==null?void 0:y.allowClear));return _(c.createElement(X1,Object.assign({autoComplete:y==null?void 0:y.autoComplete},g,{style:Object.assign(Object.assign({},y==null?void 0:y.style),b),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),h),disabled:E,allowClear:z,className:Z(N,A,v,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:Z({[`${F}-sm`]:x==="small",[`${F}-lg`]:x==="large"},k,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:Z({[`${F}-${O}`]:j},ks(F,T)),affixWrapper:Z(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:m==="rtl",[`${F}-affix-wrapper-sm`]:x==="small",[`${F}-affix-wrapper-lg`]:x==="large",[`${F}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},k)}),prefixCls:F,suffix:w&&c.createElement("span",{className:`${F}-textarea-suffix`},$),ref:M})))});function Do(e){return["small","middle","large"].includes(e)}function Ru(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Rv=P.createContext({latestIndex:0}),Q1=Rv.Provider,J1=e=>{let{className:t,index:r,children:n,split:a,style:o}=e;const{latestIndex:i}=c.useContext(Rv);return n==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:o},n),r<i&&a&&c.createElement("span",{className:`${t}-split`},a))};var eE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const tE=c.forwardRef((e,t)=>{var r,n,a;const{getPrefixCls:o,space:i,direction:s}=c.useContext(nt),{size:l=(r=i==null?void 0:i.size)!==null&&r!==void 0?r:"small",align:u,className:d,rootClassName:f,children:v,direction:b="horizontal",prefixCls:h,split:p,style:g,wrap:C=!1,classNames:m,styles:y}=e,x=eE(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,E]=Array.isArray(l)?l:[l,l],R=Do(E),w=Do(S),$=Ru(E),T=Ru(S),M=Rr(v,{keepEmpty:!0}),F=u===void 0&&b==="horizontal"?"center":u,A=o("space",h),[_,k,N]=lf(A),O=Z(A,i==null?void 0:i.className,k,`${A}-${b}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${F}`]:F,[`${A}-gap-row-${E}`]:R,[`${A}-gap-col-${S}`]:w},d,f,N),j=Z(`${A}-item`,(n=m==null?void 0:m.item)!==null&&n!==void 0?n:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let z=0;const V=M.map((W,q)=>{var Y,J;W!=null&&(z=q);const ee=(W==null?void 0:W.key)||`${j}-${q}`;return c.createElement(J1,{className:j,key:ee,index:q,split:p,style:(Y=y==null?void 0:y.item)!==null&&Y!==void 0?Y:(J=i==null?void 0:i.styles)===null||J===void 0?void 0:J.item},W)}),H=c.useMemo(()=>({latestIndex:z}),[z]);if(M.length===0)return null;const K={};return C&&(K.flexWrap="wrap"),!w&&T&&(K.columnGap=S),!R&&$&&(K.rowGap=E),_(c.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},K),i==null?void 0:i.style),g)},x),c.createElement(Q1,{value:H},V)))}),Ha=tE;Ha.Compact=I0;process.env.NODE_ENV!=="production"&&(Ha.displayName="Space");const Pv=["wrap","nowrap","wrap-reverse"],_v=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Tv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],rE=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&Pv.includes(r)}},nE=(e,t)=>{const r={};return Tv.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},aE=(e,t)=>{const r={};return _v.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function oE(e,t){return Z(Object.assign(Object.assign(Object.assign({},rE(e,t)),nE(e,t)),aE(e,t)))}const iE=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},sE=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},lE=e=>{const{componentCls:t}=e,r={};return Pv.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},cE=e=>{const{componentCls:t}=e,r={};return Tv.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},uE=e=>{const{componentCls:t}=e,r={};return _v.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},dE=()=>({}),fE=lr("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,a=jt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[iE(a),sE(a),lE(a),cE(a),uE(a)]},dE,{resetStyle:!1});var vE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Wa=P.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:a,style:o,flex:i,gap:s,children:l,vertical:u=!1,component:d="div"}=e,f=vE(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:h}=P.useContext(nt),p=h("flex",r),[g,C,m]=fE(p),y=u??(v==null?void 0:v.vertical),x=Z(a,n,v==null?void 0:v.className,p,C,m,oE(p,e),{[`${p}-rtl`]:b==="rtl",[`${p}-gap-${s}`]:Do(s),[`${p}-vertical`]:y}),S=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(S.flex=i),s&&!Do(s)&&(S.gap=s),g(P.createElement(d,Object.assign({ref:t,className:x,style:S},Cr(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(Wa.displayName="Flex");var gE={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"},mE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:gE}))},Nv=c.forwardRef(mE);process.env.NODE_ENV!=="production"&&(Nv.displayName="CopyOutlined");var pE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},hE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:pE}))},Iv=c.forwardRef(hE);process.env.NODE_ENV!=="production"&&(Iv.displayName="DownloadOutlined");var bE={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"},yE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:bE}))},Mv=c.forwardRef(yE);process.env.NODE_ENV!=="production"&&(Mv.displayName="EditOutlined");var CE={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"},SE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:CE}))},jv=c.forwardRef(SE);process.env.NODE_ENV!=="production"&&(jv.displayName="EnterOutlined");var xE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},EE=function(t,r){return c.createElement(zt,xe({},t,{ref:r,icon:xE}))},Av=c.forwardRef(EE);process.env.NODE_ENV!=="production"&&(Av.displayName="InfoCircleOutlined");var wE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const $E={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Ys=c.forwardRef((e,t)=>{const r=d=>{const{keyCode:f}=d;f===ce.ENTER&&d.preventDefault()},n=d=>{const{keyCode:f}=d,{onClick:v}=e;f===ce.ENTER&&v&&v()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,l=wE(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},$E)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),c.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:r,onKeyUp:n,style:u}))}),OE=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},RE=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
|
|
289
|
-
h${
|
|
290
|
-
div&-h${
|
|
291
|
-
div&-h${
|
|
292
|
-
h${
|
|
293
|
-
`]=
|
|
316
|
+
`,_9=["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"],Gf={},pr;function E9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Gf[n])return Gf[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=_9.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(Gf[n]=l),l}function O9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;pr||(pr=document.createElement("textarea"),pr.setAttribute("tab-index","-1"),pr.setAttribute("aria-hidden","true"),document.body.appendChild(pr)),e.getAttribute("wrap")?pr.setAttribute("wrap",e.getAttribute("wrap")):pr.removeAttribute("wrap");var i=E9(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,l=i.sizingStyle;pr.setAttribute("style","".concat(l,";").concat($9)),pr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=pr.scrollHeight;if(s==="border-box"?f+=o:s==="content-box"&&(f-=a),n!==null||r!==null){pr.value=" ";var h=pr.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+o),f=Math.max(c,f)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+o),d=f>u?"":"hidden",f=Math.min(u,f))}var p={height:f,overflowY:d,resize:"none"};return c&&(p.minHeight=c),u&&(p.maxHeight=u),p}var M9=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],qf=0,Kf=1,Yf=2,T9=g.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange,f=n.onInternalAutoSize,h=wt(n,M9),p=_n(i,{value:a,postState:function(J){return J??""}}),m=ae(p,2),v=m[0],y=m[1],b=function(J){y(J.target.value),d==null||d(J)},x=g.useRef();g.useImperativeHandle(t,function(){return{textArea:x.current}});var C=g.useMemo(function(){return o&&ut(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),S=ae(C,2),w=S[0],O=S[1],E=!!o,_=function(){try{if(document.activeElement===x.current){var J=x.current,Q=J.selectionStart,K=J.selectionEnd,Y=J.scrollTop;x.current.setSelectionRange(Q,K),x.current.scrollTop=Y}}catch{}},T=g.useState(Yf),R=ae(T,2),F=R[0],I=R[1],P=g.useState(),k=ae(P,2),A=k[0],M=k[1],N=function(){I(qf),process.env.NODE_ENV==="test"&&(f==null||f())};Gt(function(){E&&N()},[a,w,O,E]),Gt(function(){if(F===qf)I(Kf);else if(F===Kf){var Z=O9(x.current,!1,w,O);I(Yf),M(Z)}else _()},[F]);var j=g.useRef(),D=function(){qt.cancel(j.current)},V=function(J){F===Yf&&(s==null||s(J),o&&(D(),j.current=qt(function(){N()})))};g.useEffect(function(){return D},[]);var X=E?A:null,q=te(te({},c),X);return(F===qf||F===Kf)&&(q.overflowY="hidden",q.overflowX="hidden"),g.createElement(sr,{onResize:V,disabled:!(o||s)},g.createElement("textarea",Ye({},h,{ref:x,style:q,className:pe(r,l,ee({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),R9=["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"],P9=$.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,h=e.prefixCls,p=h===void 0?"rc-textarea":h,m=e.showCount,v=e.count,y=e.className,b=e.style,x=e.disabled,C=e.hidden,S=e.classNames,w=e.styles,O=e.onResize,E=e.onClear,_=e.onPressEnter,T=e.readOnly,R=e.autoSize,F=e.onKeyDown,I=wt(e,R9),P=_n(r,{value:i,defaultValue:r}),k=ae(P,2),A=k[0],M=k[1],N=A==null?"":String(A),j=$.useState(!1),D=ae(j,2),V=D[0],X=D[1],q=$.useRef(!1),Z=$.useState(null),J=ae(Z,2),Q=J[0],K=J[1],Y=$.useRef(null),W=$.useRef(null),H=function(){var Oe;return(Oe=W.current)===null||Oe===void 0?void 0:Oe.textArea},U=function(){H().focus()};$.useImperativeHandle(t,function(){var ke;return{resizableTextArea:W.current,focus:U,blur:function(){H().blur()},nativeElement:((ke=Y.current)===null||ke===void 0?void 0:ke.nativeElement)||H()}}),$.useEffect(function(){X(function(ke){return!x&&ke})},[x]);var z=$.useState(null),ne=ae(z,2),B=ne[0],re=ne[1];$.useEffect(function(){if(B){var ke;(ke=H()).setSelectionRange.apply(ke,Ge(B))}},[B]);var ie=Zw(v,m),ue=(n=ie.max)!==null&&n!==void 0?n:c,me=Number(ue)>0,ve=ie.strategy(N),be=!!ue&&ve>ue,Ce=function(Oe,nt){var We=nt;!q.current&&ie.exceedFormatter&&ie.max&&ie.strategy(nt)>ie.max&&(We=ie.exceedFormatter(nt,{max:ie.max}),nt!==We&&re([H().selectionStart||0,H().selectionEnd||0])),M(We),ru(Oe.currentTarget,Oe,s,We)},ge=function(Oe){q.current=!0,u==null||u(Oe)},fe=function(Oe){q.current=!1,Ce(Oe,Oe.currentTarget.value),d==null||d(Oe)},se=function(Oe){Ce(Oe,Oe.target.value)},xe=function(Oe){Oe.key==="Enter"&&_&&_(Oe),F==null||F(Oe)},ce=function(Oe){X(!0),a==null||a(Oe)},Ne=function(Oe){X(!1),o==null||o(Oe)},Me=function(Oe){M(""),U(),ru(H(),Oe,s)},Ie=f,je;ie.show&&(ie.showFormatter?je=ie.showFormatter({value:N,count:ve,maxLength:ue}):je="".concat(ve).concat(me?" / ".concat(ue):""),Ie=$.createElement($.Fragment,null,Ie,$.createElement("span",{className:pe("".concat(p,"-data-count"),S==null?void 0:S.count),style:w==null?void 0:w.count},je)));var He=function(Oe){var nt;O==null||O(Oe),(nt=H())!==null&&nt!==void 0&&nt.style.height&&K(!0)},Xe=!R&&!m&&!l;return $.createElement(Xw,{ref:Y,value:N,allowClear:l,handleReset:Me,suffix:Ie,prefixCls:p,classNames:te(te({},S),{},{affixWrapper:pe(S==null?void 0:S.affixWrapper,ee(ee({},"".concat(p,"-show-count"),m),"".concat(p,"-textarea-allow-clear"),l))}),disabled:x,focused:V,className:pe(y,be&&"".concat(p,"-out-of-range")),style:te(te({},b),Q&&!Xe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof je=="string"?je:void 0}},hidden:C,readOnly:T,onClear:E},$.createElement(T9,Ye({},I,{autoSize:R,maxLength:c,onKeyDown:xe,onChange:se,onFocus:ce,onBlur:Ne,onCompositionStart:ge,onCompositionEnd:fe,className:pe(S==null?void 0:S.textarea),style:te(te({},w==null?void 0:w.textarea),{},{resize:b==null?void 0:b.resize}),disabled:x,prefixCls:p,onResize:He,ref:W,readOnly:T})))}),I9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const A9=$.forwardRef((e,t)=>{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:h,styles:p,variant:m}=e,v=I9(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:D}=dn("TextArea");D(!("bordered"in e),"bordered","variant")}const{getPrefixCls:y,direction:b,textArea:x}=g.useContext(Tt),C=Wi(o),S=g.useContext(Ai),w=s??S,{status:O,hasFeedback:E,feedbackIcon:_}=g.useContext(fa),T=Tm(O,l),R=g.useRef(null);g.useImperativeHandle(t,()=>{var D;return{resizableTextArea:(D=R.current)===null||D===void 0?void 0:D.resizableTextArea,focus:V=>{var X,q;C9((q=(X=R.current)===null||X===void 0?void 0:X.resizableTextArea)===null||q===void 0?void 0:q.textArea,V)},blur:()=>{var V;return(V=R.current)===null||V===void 0?void 0:V.blur()}}});const F=y("input",i),I=No(F),[P,k,A]=Dw(F,I),[M,N]=Rm("textArea",m,a),j=Qw(c??(x==null?void 0:x.allowClear));return P(g.createElement(P9,Object.assign({autoComplete:x==null?void 0:x.autoComplete},v,{style:Object.assign(Object.assign({},x==null?void 0:x.style),h),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),p),disabled:w,allowClear:j,className:pe(A,I,f,d,x==null?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},u),x==null?void 0:x.classNames),{textarea:pe({[`${F}-sm`]:C==="small",[`${F}-lg`]:C==="large"},k,u==null?void 0:u.textarea,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.textarea),variant:pe({[`${F}-${M}`]:N},tu(F,T)),affixWrapper:pe(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:b==="rtl",[`${F}-affix-wrapper-sm`]:C==="small",[`${F}-affix-wrapper-lg`]:C==="large",[`${F}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},k)}),prefixCls:F,suffix:E&&g.createElement("span",{className:`${F}-textarea-suffix`},_),ref:R})))});function iu(e){return["small","middle","large"].includes(e)}function Ry(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Jw=$.createContext({latestIndex:0}),N9=Jw.Provider,k9=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:o}=g.useContext(Jw);return r==null?null:g.createElement(g.Fragment,null,g.createElement("div",{className:t,style:a},r),n<o&&i&&g.createElement("span",{className:`${t}-split`},i))};var j9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const L9=g.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:a,space:o,direction:s}=g.useContext(Tt),{size:l=(n=o==null?void 0:o.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:d,children:f,direction:h="horizontal",prefixCls:p,split:m,style:v,wrap:y=!1,classNames:b,styles:x}=e,C=j9(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,w]=Array.isArray(l)?l:[l,l],O=iu(w),E=iu(S),_=Ry(w),T=Ry(S),R=cr(f,{keepEmpty:!0}),F=c===void 0&&h==="horizontal"?"center":c,I=a("space",p),[P,k,A]=p2(I),M=pe(I,o==null?void 0:o.className,k,`${I}-${h}`,{[`${I}-rtl`]:s==="rtl",[`${I}-align-${F}`]:F,[`${I}-gap-row-${w}`]:O,[`${I}-gap-col-${S}`]:E},u,d,A),N=pe(`${I}-item`,(r=b==null?void 0:b.item)!==null&&r!==void 0?r:(i=o==null?void 0:o.classNames)===null||i===void 0?void 0:i.item);let j=0;const D=R.map((q,Z)=>{var J,Q;q!=null&&(j=Z);const K=(q==null?void 0:q.key)||`${N}-${Z}`;return g.createElement(k9,{className:N,key:K,index:Z,split:m,style:(J=x==null?void 0:x.item)!==null&&J!==void 0?J:(Q=o==null?void 0:o.styles)===null||Q===void 0?void 0:Q.item},q)}),V=g.useMemo(()=>({latestIndex:j}),[j]);if(R.length===0)return null;const X={};return y&&(X.flexWrap="wrap"),!E&&T&&(X.columnGap=S),!O&&_&&(X.rowGap=w),P(g.createElement("div",Object.assign({ref:t,className:M,style:Object.assign(Object.assign(Object.assign({},X),o==null?void 0:o.style),v)},C),g.createElement(N9,{value:V},D)))}),Rl=L9;Rl.Compact=P6;process.env.NODE_ENV!=="production"&&(Rl.displayName="Space");const e$=["wrap","nowrap","wrap-reverse"],t$=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],n$=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],D9=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&e$.includes(n)}},F9=(e,t)=>{const n={};return n$.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},z9=(e,t)=>{const n={};return t$.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function B9(e,t){return pe(Object.assign(Object.assign(Object.assign({},D9(e,t)),F9(e,t)),z9(e,t)))}const V9=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},W9=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},H9=e=>{const{componentCls:t}=e,n={};return e$.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},U9=e=>{const{componentCls:t}=e,n={};return n$.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},G9=e=>{const{componentCls:t}=e,n={};return t$.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},q9=()=>({}),K9=er("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=nn(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[V9(i),W9(i),H9(i),U9(i),G9(i)]},q9,{resetStyle:!1});var Y9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const fi=$.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,children:l,vertical:c=!1,component:u="div"}=e,d=Y9(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:f,direction:h,getPrefixCls:p}=$.useContext(Tt),m=p("flex",n),[v,y,b]=K9(m),x=c??(f==null?void 0:f.vertical),C=pe(i,r,f==null?void 0:f.className,m,y,b,B9(m,e),{[`${m}-rtl`]:h==="rtl",[`${m}-gap-${s}`]:iu(s),[`${m}-vertical`]:x}),S=Object.assign(Object.assign({},f==null?void 0:f.style),a);return o&&(S.flex=o),s&&!iu(s)&&(S.gap=s),v($.createElement(u,Object.assign({ref:t,className:C,style:S},hr(d,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(fi.displayName="Flex");var X9={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"},Z9=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:X9}))},r$=g.forwardRef(Z9);process.env.NODE_ENV!=="production"&&(r$.displayName="CopyOutlined");var Q9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},J9=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:Q9}))},i$=g.forwardRef(J9);process.env.NODE_ENV!=="production"&&(i$.displayName="DownloadOutlined");var ek={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"},tk=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:ek}))},a$=g.forwardRef(tk);process.env.NODE_ENV!=="production"&&(a$.displayName="EditOutlined");var nk={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"},rk=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:nk}))},o$=g.forwardRef(rk);process.env.NODE_ENV!=="production"&&(o$.displayName="EnterOutlined");var ik={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},ak=function(t,n){return g.createElement(Rn,Ye({},t,{ref:n,icon:ik}))},s$=g.forwardRef(ak);process.env.NODE_ENV!=="production"&&(s$.displayName="InfoCircleOutlined");var ok=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const sk={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Jv=g.forwardRef((e,t)=>{const n=u=>{const{keyCode:d}=u;d===$e.ENTER&&u.preventDefault()},r=u=>{const{keyCode:d}=u,{onClick:f}=e;d===$e.ENTER&&f&&f()},{style:i,noStyle:a,disabled:o,tabIndex:s=0}=e,l=ok(e,["style","noStyle","disabled","tabIndex"]);let c={};return a||(c=Object.assign({},sk)),o&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),i),g.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:n,onKeyUp:r,style:c}))}),lk=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},ck=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
317
|
+
h${r}&,
|
|
318
|
+
div&-h${r},
|
|
319
|
+
div&-h${r} > textarea,
|
|
320
|
+
h${r}
|
|
321
|
+
`]=lk(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},uk=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},XC(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"}}})}},dk=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:Hc[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}}),fk=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ye(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},hk=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),vk=()=>({"\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"}}),gk=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"}},ck(e)),{[`
|
|
294
322
|
& + h1${t},
|
|
295
323
|
& + h2${t},
|
|
296
324
|
& + h3${t},
|
|
297
325
|
& + h4${t},
|
|
298
326
|
& + h5${t}
|
|
299
|
-
`]:{marginTop:
|
|
327
|
+
`]:{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}}}),dk(e)),uk(e)),{[`
|
|
300
328
|
${t}-expand,
|
|
301
329
|
${t}-collapse,
|
|
302
330
|
${t}-edit,
|
|
303
331
|
${t}-copy
|
|
304
|
-
`]:Object.assign(Object.assign({},Dd(e)),{marginInlineStart:e.marginXXS})}),TE(e)),NE(e)),IE()),{"&-rtl":{direction:"rtl"}})}},jE=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Fv=lr("Typography",e=>[ME(e)],jE),AE=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:o,maxLength:i,autoSize:s=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:v,enterIcon:b=c.createElement(jv,null)}=e,h=c.useRef(null),p=c.useRef(!1),g=c.useRef(),[C,m]=c.useState(l);c.useEffect(()=>{m(l)},[l]),c.useEffect(()=>{var k;if(!((k=h.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:N}=h.current.resizableTextArea;N.focus();const{length:O}=N.value;N.setSelectionRange(O,O)}},[]);const y=k=>{let{target:N}=k;m(N.value.replace(/[\n\r]/g,""))},x=()=>{p.current=!0},S=()=>{p.current=!1},E=k=>{let{keyCode:N}=k;p.current||(g.current=N)},R=()=>{u(C.trim())},w=k=>{let{keyCode:N,ctrlKey:O,altKey:j,metaKey:z,shiftKey:V}=k;g.current===N&&!p.current&&!O&&!j&&!z&&!V&&(N===ce.ENTER?(R(),f==null||f()):N===ce.ESC&&d())},$=()=>{R()},T=v?`${t}-${v}`:"",[M,F,A]=Fv(t),_=Z(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,T,F,A);return M(c.createElement("div",{className:_,style:a},c.createElement(Z1,{ref:h,maxLength:i,value:C,onChange:y,onKeyDown:E,onKeyUp:w,onCompositionStart:x,onCompositionEnd:S,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?Uo(b,{className:`${t}-edit-content-confirm`}):null))};var FE=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},LE=FE,Pu={"text/plain":"Text","text/html":"Url",default:"Text"},DE="Copy to clipboard: #{key}, Enter";function zE(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function kE(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=LE(),o=document.createRange(),i=document.getSelection(),s=document.createElement("span"),s.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(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=Pu[t.format]||Pu.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=zE("message"in t?t.message:DE),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var VE=kE;const BE=ju(VE);var HE=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(d){try{u(n.next(d))}catch(f){i(f)}}function l(d){try{u(n.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const WE=e=>{let{copyConfig:t,children:r}=e;const[n,a]=c.useState(!1),[o,i]=c.useState(!1),s=c.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),c.useEffect(()=>l,[]);const d=Ht(f=>HE(void 0,void 0,void 0,function*(){var v;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const b=typeof t.text=="function"?yield t.text():t.text;BE(b||String(r)||"",u),i(!1),a(!0),l(),s.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,f)}catch(b){throw i(!1),b}}));return{copied:n,copyLoading:o,onClick:d}};function Li(e,t){return c.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const GE=e=>{const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current},UE=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var KE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Nl=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=KE(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(nt),h=l??v;let p=t;i&&(p=yr(t,i)),process.env.NODE_ENV!=="production"&&Nt("Typography").deprecated(!i,"setContentRef","ref");const g=f("typography",r),[C,m,y]=Fv(g),x=Z(g,b==null?void 0:b.className,{[`${g}-rtl`]:h==="rtl"},a,o,m,y),S=Object.assign(Object.assign({},b==null?void 0:b.style),u);return C(c.createElement(n,Object.assign({className:x,style:S,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(Nl.displayName="Typography");function _u(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function co(e,t,r){return e===!0||e===void 0?t:e||r&&t}function qE(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),!(r.left<=n.left&&n.right<=r.right&&r.top<=n.top&&n.bottom<=r.bottom)}const XE=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=_u(o),f=_u(i),{copied:v,copy:b}=n??{},h=r?co(d[1],v):co(d[0],b),g=typeof h=="string"?h:r?v:b;return c.createElement(za,{key:"copy",title:h},c.createElement(Ys,{className:Z(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":g,tabIndex:l},r?co(f[1],c.createElement(Df,null),!0):co(f[0],s?c.createElement(fl,null):c.createElement(Nv,null),!0)))},uo=c.forwardRef((e,t)=>{let{style:r,children:n}=e;const a=c.useRef(null);return c.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),c.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function Lv(e){const t=typeof e;return t==="string"||t==="number"}function YE(e){let t=0;return e.forEach(r=>{Lv(r)?t+=String(r).length:t+=1}),t}function Tu(e,t){let r=0;const n=[];for(let a=0;a<e.length;a+=1){if(r===t)return n;const o=e[a],s=Lv(o)?String(o).length:1,l=r+s;if(l>t){const u=t-r;return n.push(String(o).slice(0,u)),n}n.push(o),r=l}return e}const Di=0,zi=1,ki=2,Vi=3,Nu=4,fo={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ZE(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>Rr(n),[n]),d=c.useMemo(()=>YE(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),g=c.useRef(null),C=c.useRef(null),m=c.useRef(null),[y,x]=c.useState(!1),[S,E]=c.useState(Di),[R,w]=c.useState(0),[$,T]=c.useState(null);St(()=>{E(t&&r&&d?zi:Di)},[r,n,o,t,u]),St(()=>{var _,k,N,O;if(S===zi){E(ki);const j=p.current&&getComputedStyle(p.current).whiteSpace;T(j)}else if(S===ki){const j=!!(!((_=g.current)===null||_===void 0)&&_.isExceed());E(j?Vi:Nu),b(j?[0,d]:null),x(j);const z=((k=g.current)===null||k===void 0?void 0:k.getHeight())||0,V=o===1?0:((N=C.current)===null||N===void 0?void 0:N.getHeight())||0,H=((O=m.current)===null||O===void 0?void 0:O.getHeight())||0,K=V+H,W=Math.max(z,K);w(W+1),l(j)}},[S]);const M=v?Math.ceil((v[0]+v[1])/2):0;St(()=>{var _;const[k,N]=v||[0,0];if(k!==N){const j=(((_=h.current)===null||_===void 0?void 0:_.getHeight())||0)>R;let z=M;N-k===1&&(z=j?k:N),b(j?[k,z]:[z,N])}},[v,M]);const F=c.useMemo(()=>{if(!t)return a(u,!1);if(S!==Vi||!v||v[0]!==v[1]){const _=a(u,!1);return S!==Nu&&S!==Di?c.createElement("span",{style:Object.assign(Object.assign({},fo),{WebkitLineClamp:o})},_):_}return a(i?u:Tu(u,v[0]),y)},[i,S,v,u].concat(Ce(s))),A={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,F,S===ki&&c.createElement(c.Fragment,null,c.createElement(uo,{style:Object.assign(Object.assign(Object.assign({},A),fo),{WebkitLineClamp:o}),ref:g},f),c.createElement(uo,{style:Object.assign(Object.assign(Object.assign({},A),fo),{WebkitLineClamp:o-1}),ref:C},f),c.createElement(uo,{style:Object.assign(Object.assign(Object.assign({},A),fo),{WebkitLineClamp:1}),ref:m},a([],!0))),S===Vi&&v&&v[0]!==v[1]&&c.createElement(uo,{style:Object.assign(Object.assign({},A),{top:400}),ref:h},a(Tu(u,M),!0)),S===zi&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const Dv=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:c.createElement(za,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(Dv.displayName="EllipsisTooltip");var QE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function JE(e,t){let{mark:r,code:n,underline:a,delete:o,strong:i,keyboard:s,italic:l}=e,u=t;function d(f,v){v&&(u=c.createElement(f,{},u))}return d("strong",i),d("u",a),d("del",o),d("code",n),d("mark",r),d("kbd",s),d("i",l),u}const ew="...",ri=c.forwardRef((e,t)=>{var r,n,a;const{prefixCls:o,className:i,style:s,type:l,disabled:u,children:d,ellipsis:f,editable:v,copyable:b,component:h,title:p}=e,g=QE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:m}=c.useContext(nt),[y]=Jm("Text"),x=c.useRef(null),S=c.useRef(null),E=C("typography",o),R=Cr(g,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=Li(v),[T,M]=Zt(!1,{value:$.editing}),{triggerType:F=["icon"]}=$,A=de=>{var we;de&&((we=$.onStart)===null||we===void 0||we.call($)),M(de)},_=GE(T);UE(()=>{var de;!T&&_&&((de=S.current)===null||de===void 0||de.focus())},[T]);const k=de=>{de==null||de.preventDefault(),A(!0)},N=de=>{var we;(we=$.onChange)===null||we===void 0||we.call($,de),A(!1)},O=()=>{var de;(de=$.onCancel)===null||de===void 0||de.call($),A(!1)},[j,z]=Li(b),{copied:V,copyLoading:H,onClick:K}=WE({copyConfig:z,children:d}),[W,q]=c.useState(!1),[Y,J]=c.useState(!1),[ee,te]=c.useState(!1),[oe,ve]=c.useState(!1),[fe,ge]=c.useState(!0),[Oe,B]=Li(f,{expandable:!1,symbol:de=>de?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ue,le]=Zt(B.defaultExpanded||!1,{value:B.expanded}),Ee=Oe&&(!ue||B.expandable==="collapsible"),{rows:he=1}=B,ae=c.useMemo(()=>Ee&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||j),[Ee,B,w,j]);St(()=>{Oe&&!ae&&(q(Uc("webkitLineClamp")),J(Uc("textOverflow")))},[ae,Oe]);const[me,$e]=c.useState(Ee),je=c.useMemo(()=>ae?!1:he===1?Y:W,[ae,Y,W]);St(()=>{$e(je&&Ee)},[je,Ee]);const ie=Ee&&(me?oe:ee),ne=Ee&&he===1&&me,pe=Ee&&he>1&&me,be=(de,we)=>{var qe;le(we.expanded),(qe=B.onExpand)===null||qe===void 0||qe.call(B,de,we)},[at,Xe]=c.useState(0),Ae=de=>{let{offsetWidth:we}=de;Xe(we)},Ke=de=>{var we;te(de),ee!==de&&((we=B.onEllipsis)===null||we===void 0||we.call(B,de))};c.useEffect(()=>{const de=x.current;if(Oe&&me&&de){const we=qE(de);oe!==we&&ve(we)}},[Oe,me,d,pe,fe,at]),c.useEffect(()=>{const de=x.current;if(typeof IntersectionObserver>"u"||!de||!me||!Ee)return;const we=new IntersectionObserver(()=>{ge(!!de.offsetParent)});return we.observe(de),()=>{we.disconnect()}},[me,Ee]);let Ye={};B.tooltip===!0?Ye={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Ye={title:B.tooltip}:typeof B.tooltip=="object"?Ye=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Ye={title:B.tooltip};const et=c.useMemo(()=>{const de=we=>["string","number"].includes(typeof we);if(!(!Oe||me)){if(de($.text))return $.text;if(de(d))return d;if(de(p))return p;if(de(Ye.title))return Ye.title}},[Oe,me,p,Ye.title,ie]);if(T)return c.createElement(AE,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:N,onCancel:O,onEnd:$.onEnd,prefixCls:E,className:i,style:s,direction:m,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Le=()=>{const{expandable:de,symbol:we}=B;return de?c.createElement(Ys,{key:"expand",className:`${E}-${ue?"collapse":"expand"}`,onClick:qe=>be(qe,{expanded:!ue}),"aria-label":ue?y.collapse:y==null?void 0:y.expand},typeof we=="function"?we(ue):we):null},Ne=()=>{if(!w)return;const{icon:de,tooltip:we,tabIndex:qe}=$,ot=Rr(we)[0]||(y==null?void 0:y.edit),Ct=typeof ot=="string"?ot:"";return F.includes("icon")?c.createElement(za,{key:"edit",title:we===!1?"":ot},c.createElement(Ys,{ref:S,className:`${E}-edit`,onClick:k,"aria-label":Ct,tabIndex:qe},de||c.createElement(Mv,{role:"button"}))):null},lt=()=>j?c.createElement(XE,Object.assign({key:"copy"},z,{prefixCls:E,copied:V,locale:y,onCopy:K,loading:H,iconOnly:d==null})):null,Ze=de=>[de&&Le(),Ne(),lt()],De=de=>[de&&!ue&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},ew),B.suffix,Ze(de)];return c.createElement(mr,{onResize:Ae,disabled:!Ee},de=>c.createElement(Dv,{tooltipProps:Ye,enableEllipsis:Ee,isEllipsis:ie},c.createElement(Nl,Object.assign({className:Z({[`${E}-${l}`]:l,[`${E}-disabled`]:u,[`${E}-ellipsis`]:Oe,[`${E}-ellipsis-single-line`]:ne,[`${E}-ellipsis-multiple-line`]:pe},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:pe?he:void 0}),component:h,ref:yr(de,x,t),direction:m,onClick:F.includes("text")?k:void 0,"aria-label":et==null?void 0:et.toString(),title:p},R),c.createElement(ZE,{enableMeasure:Ee&&!me,text:d,rows:he,width:at,onEllipsis:Ke,expanded:ue,miscDeps:[V,ue,H,w,j]},(we,qe)=>JE(e,c.createElement(c.Fragment,null,we.length>0&&qe&&!ue&&et?c.createElement("span",{key:"show-content","aria-hidden":!0},we):we,De(qe)))))))});var tw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const rw=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=tw(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=Nt("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof r!="object","usage","`ellipsis` only supports boolean value.")}const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,c.createElement(ri,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),nw=c.forwardRef((e,t)=>c.createElement(ri,Object.assign({ref:t},e,{component:"div"})));var aw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const ow=(e,t)=>{var{ellipsis:r}=e,n=aw(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?Cr(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=Nt("Typography.Text");process.env.NODE_ENV!=="production"&&o(typeof r!="object"||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return c.createElement(ri,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},iw=c.forwardRef(ow);var sw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Iu=[1,2,3,4,5],lw=c.forwardRef((e,t)=>{const{level:r=1}=e,n=sw(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=Nt("Typography.Title");process.env.NODE_ENV!=="production"&&o(Iu.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return Iu.includes(r)?a=`h${r}`:a="h1",c.createElement(ri,Object.assign({ref:t},n,{component:a}))}),_r=Nl;_r.Text=iw;_r.Link=rw;_r.Title=lw;_r.Paragraph=nw;const cw=tt(Aa)`
|
|
332
|
+
`]:Object.assign(Object.assign({},XC(e)),{marginInlineStart:e.marginXXS})}),fk(e)),hk(e)),vk()),{"&-rtl":{direction:"rtl"}})}},mk=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),l$=er("Typography",e=>[gk(e)],mk),pk=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:f,enterIcon:h=g.createElement(o$,null)}=e,p=g.useRef(null),m=g.useRef(!1),v=g.useRef(),[y,b]=g.useState(l);g.useEffect(()=>{b(l)},[l]),g.useEffect(()=>{var k;if(!((k=p.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:A}=p.current.resizableTextArea;A.focus();const{length:M}=A.value;A.setSelectionRange(M,M)}},[]);const x=k=>{let{target:A}=k;b(A.value.replace(/[\n\r]/g,""))},C=()=>{m.current=!0},S=()=>{m.current=!1},w=k=>{let{keyCode:A}=k;m.current||(v.current=A)},O=()=>{c(y.trim())},E=k=>{let{keyCode:A,ctrlKey:M,altKey:N,metaKey:j,shiftKey:D}=k;v.current===A&&!m.current&&!M&&!N&&!j&&!D&&(A===$e.ENTER?(O(),d==null||d()):A===$e.ESC&&u())},_=()=>{O()},T=f?`${t}-${f}`:"",[R,F,I]=l$(t),P=pe(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl"},r,T,F,I);return R(g.createElement("div",{className:P,style:i},g.createElement(A9,{ref:p,maxLength:o,value:y,onChange:x,onKeyDown:w,onKeyUp:E,onCompositionStart:C,onCompositionEnd:S,onBlur:_,"aria-label":n,rows:1,autoSize:s}),h!==null?Vu(h,{className:`${t}-edit-content-confirm`}):null))};var bk=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},yk=bk,Py={"text/plain":"Text","text/html":"Url",default:"Text"},xk="Copy to clipboard: #{key}, Enter";function Sk(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Ck(e,t){var n,r,i,a,o,s,l=!1;t||(t={}),n=t.debug||!1;try{i=yk(),a=document.createRange(),o=document.getSelection(),s=document.createElement("span"),s.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(u){if(u.stopPropagation(),t.format)if(u.preventDefault(),typeof u.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=Py[t.format]||Py.default;window.clipboardData.setData(d,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),o.addRange(a);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=Sk("message"in t?t.message:xk),window.prompt(r,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(a):o.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var wk=Ck;const $k=rn(wk);var _k=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const Ek=e=>{let{copyConfig:t,children:n}=e;const[r,i]=g.useState(!1),[a,o]=g.useState(!1),s=g.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),g.useEffect(()=>l,[]);const u=$n(d=>_k(void 0,void 0,void 0,function*(){var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),o(!0);try{const h=typeof t.text=="function"?yield t.text():t.text;$k(h||String(n)||"",c),o(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(f=t.onCopy)===null||f===void 0||f.call(t,d)}catch(h){throw o(!1),h}}));return{copied:r,copyLoading:a,onClick:u}};function Xf(e,t){return g.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const Ok=e=>{const t=$.useRef();return $.useEffect(()=>{t.current=e}),t.current},Mk=(e,t)=>{const n=g.useRef(!1);g.useEffect(()=>{n.current?e():n.current=!0},t)};var Tk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Vm=g.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:o,children:s,direction:l,style:c}=e,u=Tk(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,typography:h}=g.useContext(Tt),p=l??f;let m=t;o&&(m=Er(t,o)),process.env.NODE_ENV!=="production"&&dn("Typography").deprecated(!o,"setContentRef","ref");const v=d("typography",n),[y,b,x]=l$(v),C=pe(v,h==null?void 0:h.className,{[`${v}-rtl`]:p==="rtl"},i,a,b,x),S=Object.assign(Object.assign({},h==null?void 0:h.style),c);return y(g.createElement(r,Object.assign({className:C,style:S,ref:m},u),s))});process.env.NODE_ENV!=="production"&&(Vm.displayName="Typography");function Iy(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function lc(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Rk(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),!(n.left<=r.left&&r.right<=n.right&&n.top<=r.top&&r.bottom<=n.bottom)}const Pk=e=>{const{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,loading:s,tabIndex:l,onCopy:c}=e,u=Iy(a),d=Iy(o),{copied:f,copy:h}=r??{},p=n?lc(u[1],f):lc(u[0],h),v=typeof p=="string"?p:n?f:h;return g.createElement(El,{key:"copy",title:p},g.createElement(Jv,{className:pe(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":v,tabIndex:l},n?lc(d[1],g.createElement(Pm,null),!0):lc(d[0],s?g.createElement(Wu,null):g.createElement(r$,null),!0)))},cc=g.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=g.useRef(null);return g.useImperativeHandle(t,()=>({isExceed:()=>{const a=i.current;return a.scrollHeight>a.clientHeight},getHeight:()=>i.current.clientHeight})),g.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 c$(e){const t=typeof e;return t==="string"||t==="number"}function Ik(e){let t=0;return e.forEach(n=>{c$(n)?t+=String(n).length:t+=1}),t}function Ay(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const a=e[i],s=c$(a)?String(a).length:1,l=n+s;if(l>t){const c=t-n;return r.push(String(a).slice(0,c)),r}r.push(a),n=l}return e}const Zf=0,Qf=1,Jf=2,eh=3,Ny=4,uc={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Ak(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:l}=e,c=g.useMemo(()=>cr(r),[r]),u=g.useMemo(()=>Ik(c),[r]),d=g.useMemo(()=>i(c,!1),[r]),[f,h]=g.useState(null),p=g.useRef(null),m=g.useRef(null),v=g.useRef(null),y=g.useRef(null),b=g.useRef(null),[x,C]=g.useState(!1),[S,w]=g.useState(Zf),[O,E]=g.useState(0),[_,T]=g.useState(null);Gt(()=>{w(t&&n&&u?Qf:Zf)},[n,r,a,t,c]),Gt(()=>{var P,k,A,M;if(S===Qf){w(Jf);const N=m.current&&getComputedStyle(m.current).whiteSpace;T(N)}else if(S===Jf){const N=!!(!((P=v.current)===null||P===void 0)&&P.isExceed());w(N?eh:Ny),h(N?[0,u]:null),C(N);const j=((k=v.current)===null||k===void 0?void 0:k.getHeight())||0,D=a===1?0:((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,V=((M=b.current)===null||M===void 0?void 0:M.getHeight())||0,X=D+V,q=Math.max(j,X);E(q+1),l(N)}},[S]);const R=f?Math.ceil((f[0]+f[1])/2):0;Gt(()=>{var P;const[k,A]=f||[0,0];if(k!==A){const N=(((P=p.current)===null||P===void 0?void 0:P.getHeight())||0)>O;let j=R;A-k===1&&(j=N?k:A),h(N?[k,j]:[j,A])}},[f,R]);const F=g.useMemo(()=>{if(!t)return i(c,!1);if(S!==eh||!f||f[0]!==f[1]){const P=i(c,!1);return S!==Ny&&S!==Zf?g.createElement("span",{style:Object.assign(Object.assign({},uc),{WebkitLineClamp:a})},P):P}return i(o?c:Ay(c,f[0]),x)},[o,S,f,c].concat(Ge(s))),I={width:n,margin:0,padding:0,whiteSpace:_==="nowrap"?"normal":"inherit"};return g.createElement(g.Fragment,null,F,S===Jf&&g.createElement(g.Fragment,null,g.createElement(cc,{style:Object.assign(Object.assign(Object.assign({},I),uc),{WebkitLineClamp:a}),ref:v},d),g.createElement(cc,{style:Object.assign(Object.assign(Object.assign({},I),uc),{WebkitLineClamp:a-1}),ref:y},d),g.createElement(cc,{style:Object.assign(Object.assign(Object.assign({},I),uc),{WebkitLineClamp:1}),ref:b},i([],!0))),S===eh&&f&&f[0]!==f[1]&&g.createElement(cc,{style:Object.assign(Object.assign({},I),{top:400}),ref:p},i(Ay(c,R),!0)),S===Qf&&g.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const u$=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:g.createElement(El,Object.assign({open:n?void 0:!1},i),r)};process.env.NODE_ENV!=="production"&&(u$.displayName="EllipsisTooltip");var Nk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function kk(e,t){let{mark:n,code:r,underline:i,delete:a,strong:o,keyboard:s,italic:l}=e,c=t;function u(d,f){f&&(c=g.createElement(d,{},c))}return u("strong",o),u("u",i),u("del",a),u("code",r),u("mark",n),u("kbd",s),u("i",l),c}const jk="...",td=g.forwardRef((e,t)=>{var n,r,i;const{prefixCls:a,className:o,style:s,type:l,disabled:c,children:u,ellipsis:d,editable:f,copyable:h,component:p,title:m}=e,v=Nk(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:b}=g.useContext(Tt),[x]=NC("Text"),C=g.useRef(null),S=g.useRef(null),w=y("typography",a),O=hr(v,["mark","code","delete","underline","strong","keyboard","italic"]),[E,_]=Xf(f),[T,R]=_n(!1,{value:_.editing}),{triggerType:F=["icon"]}=_,I=Se=>{var Fe;Se&&((Fe=_.onStart)===null||Fe===void 0||Fe.call(_)),R(Se)},P=Ok(T);Mk(()=>{var Se;!T&&P&&((Se=S.current)===null||Se===void 0||Se.focus())},[T]);const k=Se=>{Se==null||Se.preventDefault(),I(!0)},A=Se=>{var Fe;(Fe=_.onChange)===null||Fe===void 0||Fe.call(_,Se),I(!1)},M=()=>{var Se;(Se=_.onCancel)===null||Se===void 0||Se.call(_),I(!1)},[N,j]=Xf(h),{copied:D,copyLoading:V,onClick:X}=Ek({copyConfig:j,children:u}),[q,Z]=g.useState(!1),[J,Q]=g.useState(!1),[K,Y]=g.useState(!1),[W,H]=g.useState(!1),[U,z]=g.useState(!0),[ne,B]=Xf(d,{expandable:!1,symbol:Se=>Se?x==null?void 0:x.collapse:x==null?void 0:x.expand}),[re,ie]=_n(B.defaultExpanded||!1,{value:B.expanded}),ue=ne&&(!re||B.expandable==="collapsible"),{rows:me=1}=B,ve=g.useMemo(()=>ue&&(B.suffix!==void 0||B.onEllipsis||B.expandable||E||N),[ue,B,E,N]);Gt(()=>{ne&&!ve&&(Z(kb("webkitLineClamp")),Q(kb("textOverflow")))},[ve,ne]);const[be,Ce]=g.useState(ue),ge=g.useMemo(()=>ve?!1:me===1?J:q,[ve,J,q]);Gt(()=>{Ce(ge&&ue)},[ge,ue]);const fe=ue&&(be?W:K),se=ue&&me===1&&be,xe=ue&&me>1&&be,ce=(Se,Fe)=>{var ot;ie(Fe.expanded),(ot=B.onExpand)===null||ot===void 0||ot.call(B,Se,Fe)},[Ne,Me]=g.useState(0),Ie=Se=>{let{offsetWidth:Fe}=Se;Me(Fe)},je=Se=>{var Fe;Y(Se),K!==Se&&((Fe=B.onEllipsis)===null||Fe===void 0||Fe.call(B,Se))};g.useEffect(()=>{const Se=C.current;if(ne&&be&&Se){const Fe=Rk(Se);W!==Fe&&H(Fe)}},[ne,be,u,xe,U,Ne]),g.useEffect(()=>{const Se=C.current;if(typeof IntersectionObserver>"u"||!Se||!be||!ue)return;const Fe=new IntersectionObserver(()=>{z(!!Se.offsetParent)});return Fe.observe(Se),()=>{Fe.disconnect()}},[be,ue]);let He={};B.tooltip===!0?He={title:(n=_.text)!==null&&n!==void 0?n:u}:g.isValidElement(B.tooltip)?He={title:B.tooltip}:typeof B.tooltip=="object"?He=Object.assign({title:(r=_.text)!==null&&r!==void 0?r:u},B.tooltip):He={title:B.tooltip};const Xe=g.useMemo(()=>{const Se=Fe=>["string","number"].includes(typeof Fe);if(!(!ne||be)){if(Se(_.text))return _.text;if(Se(u))return u;if(Se(m))return m;if(Se(He.title))return He.title}},[ne,be,m,He.title,fe]);if(T)return g.createElement(pk,{value:(i=_.text)!==null&&i!==void 0?i:typeof u=="string"?u:"",onSave:A,onCancel:M,onEnd:_.onEnd,prefixCls:w,className:o,style:s,direction:b,component:p,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const ke=()=>{const{expandable:Se,symbol:Fe}=B;return Se?g.createElement(Jv,{key:"expand",className:`${w}-${re?"collapse":"expand"}`,onClick:ot=>ce(ot,{expanded:!re}),"aria-label":re?x.collapse:x==null?void 0:x.expand},typeof Fe=="function"?Fe(re):Fe):null},Oe=()=>{if(!E)return;const{icon:Se,tooltip:Fe,tabIndex:ot}=_,ct=cr(Fe)[0]||(x==null?void 0:x.edit),De=typeof ct=="string"?ct:"";return F.includes("icon")?g.createElement(El,{key:"edit",title:Fe===!1?"":ct},g.createElement(Jv,{ref:S,className:`${w}-edit`,onClick:k,"aria-label":De,tabIndex:ot},Se||g.createElement(a$,{role:"button"}))):null},nt=()=>N?g.createElement(Pk,Object.assign({key:"copy"},j,{prefixCls:w,copied:D,locale:x,onCopy:X,loading:V,iconOnly:u==null})):null,We=Se=>[Se&&ke(),Oe(),nt()],Be=Se=>[Se&&!re&&g.createElement("span",{"aria-hidden":!0,key:"ellipsis"},jk),B.suffix,We(Se)];return g.createElement(sr,{onResize:Ie,disabled:!ue},Se=>g.createElement(u$,{tooltipProps:He,enableEllipsis:ue,isEllipsis:fe},g.createElement(Vm,Object.assign({className:pe({[`${w}-${l}`]:l,[`${w}-disabled`]:c,[`${w}-ellipsis`]:ne,[`${w}-ellipsis-single-line`]:se,[`${w}-ellipsis-multiple-line`]:xe},o),prefixCls:a,style:Object.assign(Object.assign({},s),{WebkitLineClamp:xe?me:void 0}),component:p,ref:Er(Se,C,t),direction:b,onClick:F.includes("text")?k:void 0,"aria-label":Xe==null?void 0:Xe.toString(),title:m},O),g.createElement(Ak,{enableMeasure:ue&&!be,text:u,rows:me,width:Ne,onEllipsis:je,expanded:re,miscDeps:[D,re,V,E,N]},(Fe,ot)=>kk(e,g.createElement(g.Fragment,null,Fe.length>0&&ot&&!re&&Xe?g.createElement("span",{key:"show-content","aria-hidden":!0},Fe):Fe,Be(ot)))))))});var Lk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Dk=g.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=Lk(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const o=dn("Typography.Link");process.env.NODE_ENV!=="production"&&o(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const a=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete a.navigate,g.createElement(td,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),Fk=g.forwardRef((e,t)=>g.createElement(td,Object.assign({ref:t},e,{component:"div"})));var zk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Bk=(e,t)=>{var{ellipsis:n}=e,r=zk(e,["ellipsis"]);const i=g.useMemo(()=>n&&typeof n=="object"?hr(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const a=dn("Typography.Text");process.env.NODE_ENV!=="production"&&a(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return g.createElement(td,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},Vk=g.forwardRef(Bk);var Wk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ky=[1,2,3,4,5],Hk=g.forwardRef((e,t)=>{const{level:n=1}=e,r=Wk(e,["level"]);let i;if(process.env.NODE_ENV!=="production"){const a=dn("Typography.Title");process.env.NODE_ENV!=="production"&&a(ky.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return ky.includes(n)?i=`h${n}`:i="h1",g.createElement(td,Object.assign({ref:t},r,{component:i}))}),ei=Vm;ei.Text=Vk;ei.Link=Dk;ei.Title=Hk;ei.Paragraph=Fk;const Uk=Rt(Cl)`
|
|
305
333
|
border-radius: var(--gf-radius-sm);
|
|
306
|
-
${e=>e.type==="primary"&&
|
|
334
|
+
${e=>e.type==="primary"&&Rt.css`
|
|
307
335
|
background: var(--gf-color-button-primary);
|
|
308
336
|
`}
|
|
309
|
-
`,
|
|
310
|
-
`,
|
|
337
|
+
`,Wm=({type:e="default",disabled:t=!1,onClick:n,...r})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx(Uk,{type:e,disabled:t,onClick:n,...r})]}),d$=({disabled:e=!1,onClick:t,...n})=>L.jsx(L.Fragment,{children:L.jsx(Wm,{type:"default",disabled:e,onClick:t,icon:L.jsx(i$,{}),iconPosition:"start",children:"Download",...n})}),f$=({disabled:e=!1,open:t,onClick:n,...r})=>L.jsx(L.Fragment,{children:L.jsx(Wm,{type:"link",disabled:e,onClick:n,icon:t?L.jsx(Yw,{}):L.jsx(Im,{}),iconPosition:"end",...r})}),Gk=Rt(Tl.Group)`
|
|
338
|
+
`,qk=Rt(Tl.Button)`
|
|
311
339
|
height: 24px;
|
|
312
340
|
font: var(--gf-label-md-default);
|
|
313
341
|
color: --gf-color-text-primary;
|
|
314
|
-
`,
|
|
342
|
+
`,Kk=({content:e,handler:t,disabled:n=!1,...r})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx(Vi,{theme:{components:{Radio:{borderRadius:2,colorBorder:"#EAECF0",colorPrimary:"#152BEE"}}},children:L.jsx(Gk,{disabled:n,onChange:t,defaultValue:0,...r,children:e.map(i=>L.jsx(qk,{value:i.key,disabled:i.disabled,children:i.label},`gf-control-button-${i.key}`))})})]}),Yk=Rt(ed)`
|
|
315
343
|
border-radius: var(--gf-radius-sm);
|
|
316
344
|
border-color: var(--gf-color-border-base);
|
|
317
|
-
${e=>e.cardtype==="default"&&
|
|
345
|
+
${e=>e.cardtype==="default"&&Rt.css`
|
|
318
346
|
background: var(--gf-color-bg-base);
|
|
319
347
|
`}
|
|
320
|
-
${e=>e.cardtype==="grey"&&
|
|
348
|
+
${e=>e.cardtype==="grey"&&Rt.css`
|
|
321
349
|
background: var(--gf-color-bg-tertiary);
|
|
322
350
|
`}
|
|
323
|
-
${e=>e.cardtype==="debug"&&
|
|
351
|
+
${e=>e.cardtype==="debug"&&Rt.css`
|
|
324
352
|
background: var(--gf-color-bg-debug);
|
|
325
353
|
`}
|
|
326
|
-
`,
|
|
354
|
+
`,jo=({cardtype:e,padding:t=32,...n})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx(Yk,{cardtype:e,styles:{header:{padding:t},body:{padding:t}},...n})]}),{Text:h$}=ei,v$=Rt(jo)`
|
|
327
355
|
&:hover {
|
|
328
356
|
cursor: pointer;
|
|
329
357
|
border: 1px solid var(--gf-color-primary-hover);
|
|
@@ -333,82 +361,139 @@ html body {
|
|
|
333
361
|
svg:hover {
|
|
334
362
|
fill: var(--gf-color-primary-hover);
|
|
335
363
|
}
|
|
336
|
-
`,
|
|
364
|
+
`,Xk=Rt(h$)`
|
|
337
365
|
font: var(--gf-header-h5);
|
|
338
|
-
${
|
|
366
|
+
${v$}:hover & {
|
|
339
367
|
color: var(--gf-color-primary-hover);
|
|
340
368
|
}
|
|
341
|
-
`,
|
|
369
|
+
`,Zk=Rt(h$)`
|
|
342
370
|
font: var(--gf-label-md-default);
|
|
343
371
|
color: var(--gf-color-text-secondary);
|
|
344
|
-
`,
|
|
372
|
+
`,Qk=({disabled:e=!1,icon:t=s$,title:n="Title",description:r,onClick:i,...a})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsxs(v$,{onClick:i,padding:24,cardtype:"default",...a,children:[L.jsxs(Qv,{gutter:16,children:[L.jsx(_s,{span:1,children:t}),L.jsx(_s,{span:23,children:L.jsx(Xk,{children:n})})]}),L.jsxs(Qv,{gutter:16,children:[L.jsx(_s,{span:1}),L.jsx(_s,{span:23,children:L.jsx(Zk,{children:r})})]})]})]}),{Text:g$}=ei,Jk=Rt(g$)`
|
|
345
373
|
color: var(--gf-color-text-primary) !important;
|
|
346
|
-
${e=>e.type==="primary"&&
|
|
374
|
+
${e=>e.type==="primary"&&Rt.css`
|
|
347
375
|
font: var(--gf-header-h2);
|
|
348
376
|
`}
|
|
349
|
-
${e=>e.type==="secondary"&&
|
|
377
|
+
${e=>e.type==="secondary"&&Rt.css`
|
|
350
378
|
font: var(--gf-header-h4);
|
|
351
379
|
`}
|
|
352
|
-
${e=>e.type==="header"&&
|
|
380
|
+
${e=>e.type==="header"&&Rt.css`
|
|
353
381
|
font: var(--gf-header-h1);
|
|
354
382
|
`}
|
|
355
|
-
`,
|
|
356
|
-
${e=>e.type==="primary"&&
|
|
383
|
+
`,ej=Rt(g$)`
|
|
384
|
+
${e=>e.type==="primary"&&Rt.css`
|
|
357
385
|
font: var(--gf-label-xl-default);
|
|
358
386
|
color: var(--gf-color-text-primary) !important;
|
|
359
387
|
`}
|
|
360
|
-
${e=>e.type==="secondary"&&
|
|
388
|
+
${e=>e.type==="secondary"&&Rt.css`
|
|
361
389
|
font: var(--gf-label-lg-default);
|
|
362
390
|
color: var(--gf-color-text-secondary) !important;
|
|
363
391
|
`}
|
|
364
|
-
${e=>e.type==="header"&&
|
|
392
|
+
${e=>e.type==="header"&&Rt.css`
|
|
365
393
|
font: var(--gf-label-xl-default);
|
|
366
394
|
color: var(--gf-color-text-secondary) !important;
|
|
367
395
|
`}
|
|
368
|
-
`,
|
|
396
|
+
`,m$=({title:e,subtitle:t,type:n="primary"})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsxs(Rl,{className:"gf-full-width",direction:"vertical",size:8,align:"start",children:[L.jsx(Jk,{type:n,children:e}),L.jsx(ej,{type:n,children:t})]})]}),{Text:tj}=ei,nj=Rt(jo)`
|
|
369
397
|
border-radius: var(--gf-radius-sm);
|
|
370
398
|
border-color: var(--gf-color-border-base);
|
|
371
|
-
${e=>e.cardtype==="default"&&
|
|
399
|
+
${e=>e.cardtype==="default"&&Rt.css`
|
|
372
400
|
background: var(--gf-color-bg-base);
|
|
373
401
|
`}
|
|
374
|
-
${e=>e.cardtype==="grey"&&
|
|
402
|
+
${e=>e.cardtype==="grey"&&Rt.css`
|
|
375
403
|
background: var(--gf-color-bg-tertiary);
|
|
376
404
|
`}
|
|
377
|
-
${e=>e.cardtype==="debug"&&
|
|
405
|
+
${e=>e.cardtype==="debug"&&Rt.css`
|
|
378
406
|
background: var(--gf-color-bg-debug);
|
|
379
407
|
`}
|
|
380
|
-
`,
|
|
408
|
+
`,rj=Rt(tj)`
|
|
381
409
|
font: var(--gf-header-h5);
|
|
382
410
|
color: var(--gf-color-text-primary);
|
|
383
411
|
font-weight: bold;
|
|
384
|
-
`,
|
|
412
|
+
`,ij=Rt(Cl)`
|
|
385
413
|
padding: 0px;
|
|
386
414
|
font: var(--gf-label-md-default);
|
|
387
415
|
color: var(--gf-color-button-primary);
|
|
388
416
|
text-decoration-line: underline;
|
|
389
|
-
`,
|
|
417
|
+
`,aj=({title:e,subtitle:t,listTitle:n,items:r,gap:i,...a})=>{const o=s=>{if(typeof s!="string"){const l=s.current.getBoundingClientRect().top+window.scrollY-(i||0);window.scroll({top:l,behavior:"smooth"})}};return L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx(nj,{cardtype:"default",title:L.jsx(m$,{title:e,subtitle:t,type:"header"}),...a,children:L.jsxs(fi,{vertical:!0,gap:8,style:{alignItems:"start"},children:[L.jsx(rj,{children:n||"Table of contents"}),r.map((s,l)=>L.jsx(ij,{type:"link",href:typeof s.href=="string"?s.href:void 0,onClick:()=>o(s.href),children:s.name},`button-select-item-${l}`))]})})]})},oj=({tabList:e,tabContent:t,expandContent:n,expandLabel:r,padding:i=24,handleDownload:a,...o})=>{var h;const[s,l]=$.useState((h=e==null?void 0:e[0])==null?void 0:h.key),[c,u]=$.useState(!1),d=p=>{l(p)},f=()=>{u(p=>!p)};return L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx(jo,{className:"gf-full-width gf-override-ant-card-actions",tabList:e,cardtype:"default",activeTabKey:s,onTabChange:d,tabBarExtraContent:L.jsx(d$,{onClick:a==null?void 0:a[s]}),actions:n!=null&&n[s]?[L.jsxs(fi,{vertical:!0,children:[L.jsx(f$,{open:c,onClick:f,children:r}),c&&(n==null?void 0:n[s])]})]:void 0,styles:{header:{padding:"0px 24px"},body:{padding:i}},...o,children:t==null?void 0:t[s]})]})},{Paragraph:sj,Text:p$}=ei,lj=Rt(jo)`
|
|
390
418
|
min-width: 226px;
|
|
391
|
-
`,
|
|
419
|
+
`,cj=Rt(p$)`
|
|
392
420
|
font: var(--gf-header-h1);
|
|
393
|
-
`,
|
|
421
|
+
`,uj=Rt(p$)`
|
|
394
422
|
font: var(--gf-label-md-italic);
|
|
395
423
|
color: var(--gf-color-text-tertiary);
|
|
396
|
-
`,
|
|
424
|
+
`,dj=Rt(sj)`
|
|
397
425
|
font: var(--gf-label-lg-default);
|
|
398
426
|
color: var(--gf-color-text-secondary);
|
|
399
|
-
`,
|
|
427
|
+
`,b$=({percent:e,cost:t,description:n,editable:r,...i})=>{const[a,o]=$.useState(n),s=r?{onChange:o}:!1;return L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx(lj,{cardtype:"grey",padding:24,...i,children:L.jsxs(fi,{vertical:!0,gap:8,children:[L.jsxs(Rl,{direction:"horizontal",size:16,align:"end",children:[L.jsx(cj,{children:e}),L.jsx(uj,{children:t})]}),L.jsx(dj,{editable:s,children:a})]})})]})},{Text:fj}=ei,hj=Rt.a`
|
|
400
428
|
text-decoration: none;
|
|
401
|
-
`,
|
|
429
|
+
`,vj=Rt(fj)`
|
|
402
430
|
font: var(--gf-label-md-default);
|
|
403
431
|
line-height: 150%;
|
|
404
432
|
color: ${e=>e.type==="light"?"white":"var(--gf-color-text-secondary)"}
|
|
405
|
-
`,
|
|
406
|
-
${e=>e.columns&&e.columns>1&&
|
|
433
|
+
`,nd=({label:e,href:t,icon:n,type:r,placement:i="left",...a})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx(hj,{href:t,...a,children:L.jsxs(Rl,{direction:"horizontal",size:8,align:"start",children:[n&&i==="left"&&n,L.jsx(vj,{type:r,children:e}),n&&i==="right"&&n]})})]}),y$=()=>L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",children:L.jsx("path",{d:"M14.1674 10.5211L11.4504 9.31407C11.1681 9.18782 10.8519 9.15859 10.5512 9.23096C10.2506 9.30332 9.98233 9.4732 9.78838 9.71407L9.00538 10.6931C7.72168 9.86934 6.62893 8.78067 5.80038 7.50007L6.77938 6.71707C7.02003 6.52318 7.18977 6.25511 7.26212 5.95466C7.33448 5.65421 7.30539 5.33826 7.17938 5.05607L5.97938 2.33207C5.84476 2.02875 5.60677 1.78311 5.30786 1.63897C5.00895 1.49482 4.66855 1.46155 4.34738 1.54507L2.04738 2.14507C1.71408 2.23182 1.42444 2.43838 1.23387 2.72526C1.04329 3.01214 0.965148 3.3592 1.01438 3.70007C1.44298 6.67478 2.82344 9.43069 4.94914 11.5553C7.07484 13.6799 9.83145 15.059 12.8064 15.4861C13.1473 15.5343 13.4941 15.4553 13.7804 15.264C14.0667 15.0726 14.2725 14.7825 14.3584 14.4491L14.9584 12.1491C15.0418 11.828 15.008 11.4876 14.863 11.1892C14.718 10.8908 14.4714 10.6539 14.1674 10.5211Z",fill:"#152BEE"})}),x$=()=>L.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsxs("g",{clipPath:"url(#clip0_907_17408)",children:[L.jsx("path",{d:"M8.93333 10.2336C8.65931 10.4212 8.33178 10.5148 8 10.5003C7.66822 10.5148 7.34069 10.4212 7.06667 10.2336L0 6.43359V13.1669C0 13.6974 0.210714 14.2061 0.585786 14.5811C0.960859 14.9562 1.46957 15.1669 2 15.1669H14C14.5304 15.1669 15.0391 14.9562 15.4142 14.5811C15.7893 14.2061 16 13.6974 16 13.1669V6.43359L8.93333 10.2336Z",fill:"#152BEE"}),L.jsx("path",{d:"M14 1.8335H2.00001C1.46958 1.8335 0.960869 2.04421 0.585796 2.41928C0.210723 2.79436 9.8296e-06 3.30306 9.8296e-06 3.8335V4.50016C-0.00062718 4.62038 0.029707 4.73873 0.0880899 4.84382C0.146473 4.94891 0.230936 5.03719 0.333343 5.10016L7.66668 9.10016C7.76904 9.15405 7.8848 9.17721 8.00001 9.16683C8.11522 9.17721 8.23098 9.15405 8.33334 9.10016L15.6667 5.10016C15.7691 5.03719 15.8535 4.94891 15.9119 4.84382C15.9703 4.73873 16.0006 4.62038 16 4.50016V3.8335C16 3.30306 15.7893 2.79436 15.4142 2.41928C15.0392 2.04421 14.5304 1.8335 14 1.8335Z",fill:"#152BEE"})]}),L.jsx("defs",{children:L.jsx("clipPath",{id:"clip0_907_17408",children:L.jsx("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})})})]}),S$=()=>L.jsx("svg",{width:"10",height:"15",viewBox:"0 0 10 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M10 5.5C10 2.74167 7.75833 0.5 5 0.5C2.24167 0.5 0 2.74167 0 5.5C0 9.25 5 14.6667 5 14.6667C5 14.6667 10 9.25 10 5.5ZM3.33333 5.5C3.33333 4.58333 4.08333 3.83333 5 3.83333C5.91667 3.83333 6.66667 4.58333 6.66667 5.5C6.66667 5.94203 6.49107 6.36595 6.17851 6.67851C5.86595 6.99107 5.44203 7.16667 5 7.16667C4.55797 7.16667 4.13405 6.99107 3.82149 6.67851C3.50893 6.36595 3.33333 5.94203 3.33333 5.5Z",fill:"#152BEE"})}),gj=({label:e,href:t,icon:n=L.jsx(x$,{}),type:r="light",placement:i="left",...a})=>L.jsx(nd,{label:e,icon:n,href:t,type:r,...a}),mj=({label:e,href:t,icon:n=L.jsx(S$,{}),type:r="light",placement:i="left",...a})=>L.jsx(nd,{label:e,icon:n,href:t,type:r,...a}),pj=({label:e,href:t,icon:n=L.jsx(y$,{}),type:r="light",placement:i="left",...a})=>L.jsx(nd,{label:e,icon:n,href:t,type:r,...a}),{Text:bj}=ei,yj=Rt.div`
|
|
434
|
+
${e=>e.columns&&e.columns>1&&Rt.css`
|
|
407
435
|
column-count: ${e.columns};
|
|
408
436
|
`}
|
|
409
437
|
text-align: ${e=>e.textalign};
|
|
410
|
-
`,
|
|
438
|
+
`,xj=Rt(bj)`
|
|
411
439
|
font: var(--gf-label-lg-default);
|
|
412
440
|
color: var(--gf-color-text-secondary) ;
|
|
413
|
-
`,
|
|
441
|
+
`,Sj=({text:e,columns:t,editable:n=!1,textalign:r="left",style:i,className:a})=>{const[o,s]=$.useState(e),l=n?{onChange:s}:!1;return L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx(yj,{columns:t,textalign:r,style:i||{},className:a||"",children:L.jsx(xj,{editable:l,children:o})})]})},Cj=({metricsData:e})=>L.jsx(fi,{gap:10,wrap:!0,children:e==null?void 0:e.map(t=>L.jsx(b$,{percent:t.percent,description:t.description,cost:t.cost,editable:t.editable}))});var wj=typeof ql=="object"&&ql&&ql.Object===Object&&ql,C$=wj,$j=C$,_j=typeof self=="object"&&self&&self.Object===Object&&self,Ej=$j||_j||Function("return this")(),ti=Ej,Oj=ti,Mj=Oj.Symbol,Lo=Mj,jy=Lo,w$=Object.prototype,Tj=w$.hasOwnProperty,Rj=w$.toString,os=jy?jy.toStringTag:void 0;function Pj(e){var t=Tj.call(e,os),n=e[os];try{e[os]=void 0;var r=!0}catch{}var i=Rj.call(e);return r&&(t?e[os]=n:delete e[os]),i}var Ij=Pj,Aj=Object.prototype,Nj=Aj.toString;function kj(e){return Nj.call(e)}var jj=kj,Ly=Lo,Lj=Ij,Dj=jj,Fj="[object Null]",zj="[object Undefined]",Dy=Ly?Ly.toStringTag:void 0;function Bj(e){return e==null?e===void 0?zj:Fj:Dy&&Dy in Object(e)?Lj(e):Dj(e)}var yi=Bj;function Vj(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ni=Vj,Wj=yi,Hj=ni,Uj="[object AsyncFunction]",Gj="[object Function]",qj="[object GeneratorFunction]",Kj="[object Proxy]";function Yj(e){if(!Hj(e))return!1;var t=Wj(e);return t==Gj||t==qj||t==Uj||t==Kj}var rd=Yj;const Hm=rn(rd);var Xj=ti,Zj=Xj["__core-js_shared__"],Qj=Zj,th=Qj,Fy=function(){var e=/[^.]+$/.exec(th&&th.keys&&th.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Jj(e){return!!Fy&&Fy in e}var eL=Jj,tL=Function.prototype,nL=tL.toString;function rL(e){if(e!=null){try{return nL.call(e)}catch{}try{return e+""}catch{}}return""}var $$=rL,iL=rd,aL=eL,oL=ni,sL=$$,lL=/[\\^$.*+?()[\]{}|]/g,cL=/^\[object .+?Constructor\]$/,uL=Function.prototype,dL=Object.prototype,fL=uL.toString,hL=dL.hasOwnProperty,vL=RegExp("^"+fL.call(hL).replace(lL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gL(e){if(!oL(e)||aL(e))return!1;var t=iL(e)?vL:cL;return t.test(sL(e))}var mL=gL;function pL(e,t){return e==null?void 0:e[t]}var bL=pL,yL=mL,xL=bL;function SL(e,t){var n=xL(e,t);return yL(n)?n:void 0}var wa=SL,CL=wa,wL=CL(Object,"create"),id=wL,zy=id;function $L(){this.__data__=zy?zy(null):{},this.size=0}var _L=$L;function EL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var OL=EL,ML=id,TL="__lodash_hash_undefined__",RL=Object.prototype,PL=RL.hasOwnProperty;function IL(e){var t=this.__data__;if(ML){var n=t[e];return n===TL?void 0:n}return PL.call(t,e)?t[e]:void 0}var AL=IL,NL=id,kL=Object.prototype,jL=kL.hasOwnProperty;function LL(e){var t=this.__data__;return NL?t[e]!==void 0:jL.call(t,e)}var DL=LL,FL=id,zL="__lodash_hash_undefined__";function BL(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=FL&&t===void 0?zL:t,this}var VL=BL,WL=_L,HL=OL,UL=AL,GL=DL,qL=VL;function Do(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Do.prototype.clear=WL;Do.prototype.delete=HL;Do.prototype.get=UL;Do.prototype.has=GL;Do.prototype.set=qL;var KL=Do;function YL(){this.__data__=[],this.size=0}var XL=YL;function ZL(e,t){return e===t||e!==e&&t!==t}var Pl=ZL,QL=Pl;function JL(e,t){for(var n=e.length;n--;)if(QL(e[n][0],t))return n;return-1}var ad=JL,eD=ad,tD=Array.prototype,nD=tD.splice;function rD(e){var t=this.__data__,n=eD(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():nD.call(t,n,1),--this.size,!0}var iD=rD,aD=ad;function oD(e){var t=this.__data__,n=aD(t,e);return n<0?void 0:t[n][1]}var sD=oD,lD=ad;function cD(e){return lD(this.__data__,e)>-1}var uD=cD,dD=ad;function fD(e,t){var n=this.__data__,r=dD(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var hD=fD,vD=XL,gD=iD,mD=sD,pD=uD,bD=hD;function Fo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fo.prototype.clear=vD;Fo.prototype.delete=gD;Fo.prototype.get=mD;Fo.prototype.has=pD;Fo.prototype.set=bD;var od=Fo,yD=wa,xD=ti,SD=yD(xD,"Map"),Um=SD,By=KL,CD=od,wD=Um;function $D(){this.size=0,this.__data__={hash:new By,map:new(wD||CD),string:new By}}var _D=$D;function ED(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var OD=ED,MD=OD;function TD(e,t){var n=e.__data__;return MD(t)?n[typeof t=="string"?"string":"hash"]:n.map}var sd=TD,RD=sd;function PD(e){var t=RD(this,e).delete(e);return this.size-=t?1:0,t}var ID=PD,AD=sd;function ND(e){return AD(this,e).get(e)}var kD=ND,jD=sd;function LD(e){return jD(this,e).has(e)}var DD=LD,FD=sd;function zD(e,t){var n=FD(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var BD=zD,VD=_D,WD=ID,HD=kD,UD=DD,GD=BD;function zo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zo.prototype.clear=VD;zo.prototype.delete=WD;zo.prototype.get=HD;zo.prototype.has=UD;zo.prototype.set=GD;var Gm=zo,qD="__lodash_hash_undefined__";function KD(e){return this.__data__.set(e,qD),this}var YD=KD;function XD(e){return this.__data__.has(e)}var ZD=XD,QD=Gm,JD=YD,eF=ZD;function au(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new QD;++t<n;)this.add(e[t])}au.prototype.add=au.prototype.push=JD;au.prototype.has=eF;var qm=au;function tF(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var nF=tF;function rF(e){return e!==e}var iF=rF;function aF(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var oF=aF,sF=nF,lF=iF,cF=oF;function uF(e,t,n){return t===t?cF(e,t,n):sF(e,lF,n)}var dF=uF,fF=dF;function hF(e,t){var n=e==null?0:e.length;return!!n&&fF(e,t,0)>-1}var _$=hF;function vF(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var E$=vF;function gF(e,t){return e.has(t)}var Km=gF,mF=wa,pF=ti,bF=mF(pF,"Set"),O$=bF;function yF(){}var xF=yF;function SF(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ym=SF,nh=O$,CF=xF,wF=Ym,$F=1/0,_F=nh&&1/wF(new nh([,-0]))[1]==$F?function(e){return new nh(e)}:CF,EF=_F,OF=qm,MF=_$,TF=E$,RF=Km,PF=EF,IF=Ym,AF=200;function NF(e,t,n){var r=-1,i=MF,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=TF;else if(a>=AF){var c=t?null:PF(e);if(c)return IF(c);o=!1,i=RF,l=new OF}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var M$=NF,kF=M$;function jF(e){return e&&e.length?kF(e):[]}var LF=jF;const eg=rn(LF);var tg={exports:{}},dc={exports:{}},Bt={};/** @license React v16.13.1
|
|
442
|
+
* react-is.production.min.js
|
|
443
|
+
*
|
|
444
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
445
|
+
*
|
|
446
|
+
* This source code is licensed under the MIT license found in the
|
|
447
|
+
* LICENSE file in the root directory of this source tree.
|
|
448
|
+
*/var Vy;function DF(){if(Vy)return Bt;Vy=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(S){if(typeof S=="object"&&S!==null){var w=S.$$typeof;switch(w){case t:switch(S=S.type,S){case l:case c:case r:case a:case i:case d:return S;default:switch(S=S&&S.$$typeof,S){case s:case u:case p:case h:case o:return S;default:return w}}case n:return w}}}function C(S){return x(S)===c}return Bt.AsyncMode=l,Bt.ConcurrentMode=c,Bt.ContextConsumer=s,Bt.ContextProvider=o,Bt.Element=t,Bt.ForwardRef=u,Bt.Fragment=r,Bt.Lazy=p,Bt.Memo=h,Bt.Portal=n,Bt.Profiler=a,Bt.StrictMode=i,Bt.Suspense=d,Bt.isAsyncMode=function(S){return C(S)||x(S)===l},Bt.isConcurrentMode=C,Bt.isContextConsumer=function(S){return x(S)===s},Bt.isContextProvider=function(S){return x(S)===o},Bt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Bt.isForwardRef=function(S){return x(S)===u},Bt.isFragment=function(S){return x(S)===r},Bt.isLazy=function(S){return x(S)===p},Bt.isMemo=function(S){return x(S)===h},Bt.isPortal=function(S){return x(S)===n},Bt.isProfiler=function(S){return x(S)===a},Bt.isStrictMode=function(S){return x(S)===i},Bt.isSuspense=function(S){return x(S)===d},Bt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===c||S===a||S===i||S===d||S===f||typeof S=="object"&&S!==null&&(S.$$typeof===p||S.$$typeof===h||S.$$typeof===o||S.$$typeof===s||S.$$typeof===u||S.$$typeof===v||S.$$typeof===y||S.$$typeof===b||S.$$typeof===m)},Bt.typeOf=x,Bt}var Vt={};/** @license React v16.13.1
|
|
449
|
+
* react-is.development.js
|
|
450
|
+
*
|
|
451
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
452
|
+
*
|
|
453
|
+
* This source code is licensed under the MIT license found in the
|
|
454
|
+
* LICENSE file in the root directory of this source tree.
|
|
455
|
+
*/var Wy;function FF(){return Wy||(Wy=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(z){return typeof z=="string"||typeof z=="function"||z===r||z===c||z===a||z===i||z===d||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===p||z.$$typeof===h||z.$$typeof===o||z.$$typeof===s||z.$$typeof===u||z.$$typeof===v||z.$$typeof===y||z.$$typeof===b||z.$$typeof===m)}function C(z){if(typeof z=="object"&&z!==null){var ne=z.$$typeof;switch(ne){case t:var B=z.type;switch(B){case l:case c:case r:case a:case i:case d:return B;default:var re=B&&B.$$typeof;switch(re){case s:case u:case p:case h:case o:return re;default:return ne}}case n:return ne}}}var S=l,w=c,O=s,E=o,_=t,T=u,R=r,F=p,I=h,P=n,k=a,A=i,M=d,N=!1;function j(z){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(z)||C(z)===l}function D(z){return C(z)===c}function V(z){return C(z)===s}function X(z){return C(z)===o}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function Z(z){return C(z)===u}function J(z){return C(z)===r}function Q(z){return C(z)===p}function K(z){return C(z)===h}function Y(z){return C(z)===n}function W(z){return C(z)===a}function H(z){return C(z)===i}function U(z){return C(z)===d}Vt.AsyncMode=S,Vt.ConcurrentMode=w,Vt.ContextConsumer=O,Vt.ContextProvider=E,Vt.Element=_,Vt.ForwardRef=T,Vt.Fragment=R,Vt.Lazy=F,Vt.Memo=I,Vt.Portal=P,Vt.Profiler=k,Vt.StrictMode=A,Vt.Suspense=M,Vt.isAsyncMode=j,Vt.isConcurrentMode=D,Vt.isContextConsumer=V,Vt.isContextProvider=X,Vt.isElement=q,Vt.isForwardRef=Z,Vt.isFragment=J,Vt.isLazy=Q,Vt.isMemo=K,Vt.isPortal=Y,Vt.isProfiler=W,Vt.isStrictMode=H,Vt.isSuspense=U,Vt.isValidElementType=x,Vt.typeOf=C}()),Vt}var Hy;function T$(){return Hy||(Hy=1,process.env.NODE_ENV==="production"?dc.exports=DF():dc.exports=FF()),dc.exports}/*
|
|
456
|
+
object-assign
|
|
457
|
+
(c) Sindre Sorhus
|
|
458
|
+
@license MIT
|
|
459
|
+
*/var rh,Uy;function zF(){if(Uy)return rh;Uy=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return rh=i()?Object.assign:function(a,o){for(var s,l=r(a),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var f=0;f<c.length;f++)n.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},rh}var ih,Gy;function Xm(){if(Gy)return ih;Gy=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ih=e,ih}var ah,qy;function R$(){return qy||(qy=1,ah=Function.call.bind(Object.prototype.hasOwnProperty)),ah}var oh,Ky;function BF(){if(Ky)return oh;Ky=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xm(),n={},r=R$();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in a)if(r(a,u)){var d;try{if(typeof a[u]!="function"){var f=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=a[u](o,u,l,s,null,t)}catch(p){d=p}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},oh=i,oh}var sh,Yy;function VF(){if(Yy)return sh;Yy=1;var e=T$(),t=zF(),n=Xm(),r=R$(),i=BF(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return sh=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(D){var V=D&&(c&&D[c]||D[u]);if(typeof V=="function")return V}var f="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:x,element:C(),elementType:S(),instanceOf:w,node:T(),objectOf:E,oneOf:O,oneOfType:_,shape:F,exact:I};function p(D,V){return D===V?D!==0||1/D===1/V:D!==D&&V!==V}function m(D,V){this.message=D,this.data=V&&typeof V=="object"?V:{},this.stack=""}m.prototype=Error.prototype;function v(D){if(process.env.NODE_ENV!=="production")var V={},X=0;function q(J,Q,K,Y,W,H,U){if(Y=Y||f,H=H||K,U!==n){if(l){var z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ne=Y+":"+K;!V[ne]&&X<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+Y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[ne]=!0,X++)}}return Q[K]==null?J?Q[K]===null?new m("The "+W+" `"+H+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new m("The "+W+" `"+H+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:D(Q,K,Y,W,H)}var Z=q.bind(null,!1);return Z.isRequired=q.bind(null,!0),Z}function y(D){function V(X,q,Z,J,Q,K){var Y=X[q],W=A(Y);if(W!==D){var H=M(Y);return new m("Invalid "+J+" `"+Q+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return v(V)}function b(){return v(o)}function x(D){function V(X,q,Z,J,Q){if(typeof D!="function")return new m("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var K=X[q];if(!Array.isArray(K)){var Y=A(K);return new m("Invalid "+J+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+Z+"`, expected an array."))}for(var W=0;W<K.length;W++){var H=D(K,W,Z,J,Q+"["+W+"]",n);if(H instanceof Error)return H}return null}return v(V)}function C(){function D(V,X,q,Z,J){var Q=V[X];if(!s(Q)){var K=A(Q);return new m("Invalid "+Z+" `"+J+"` of type "+("`"+K+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return v(D)}function S(){function D(V,X,q,Z,J){var Q=V[X];if(!e.isValidElementType(Q)){var K=A(Q);return new m("Invalid "+Z+" `"+J+"` of type "+("`"+K+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return v(D)}function w(D){function V(X,q,Z,J,Q){if(!(X[q]instanceof D)){var K=D.name||f,Y=j(X[q]);return new m("Invalid "+J+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+Z+"`, expected ")+("instance of `"+K+"`."))}return null}return v(V)}function O(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function V(X,q,Z,J,Q){for(var K=X[q],Y=0;Y<D.length;Y++)if(p(K,D[Y]))return null;var W=JSON.stringify(D,function(U,z){var ne=M(z);return ne==="symbol"?String(z):z});return new m("Invalid "+J+" `"+Q+"` of value `"+String(K)+"` "+("supplied to `"+Z+"`, expected one of "+W+"."))}return v(V)}function E(D){function V(X,q,Z,J,Q){if(typeof D!="function")return new m("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var K=X[q],Y=A(K);if(Y!=="object")return new m("Invalid "+J+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+Z+"`, expected an object."));for(var W in K)if(r(K,W)){var H=D(K,W,Z,J,Q+"."+W,n);if(H instanceof Error)return H}return null}return v(V)}function _(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var V=0;V<D.length;V++){var X=D[V];if(typeof X!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(X)+" at index "+V+"."),o}function q(Z,J,Q,K,Y){for(var W=[],H=0;H<D.length;H++){var U=D[H],z=U(Z,J,Q,K,Y,n);if(z==null)return null;z.data&&r(z.data,"expectedType")&&W.push(z.data.expectedType)}var ne=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new m("Invalid "+K+" `"+Y+"` supplied to "+("`"+Q+"`"+ne+"."))}return v(q)}function T(){function D(V,X,q,Z,J){return P(V[X])?null:new m("Invalid "+Z+" `"+J+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return v(D)}function R(D,V,X,q,Z){return new m((D||"React class")+": "+V+" type `"+X+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function F(D){function V(X,q,Z,J,Q){var K=X[q],Y=A(K);if(Y!=="object")return new m("Invalid "+J+" `"+Q+"` of type `"+Y+"` "+("supplied to `"+Z+"`, expected `object`."));for(var W in D){var H=D[W];if(typeof H!="function")return R(Z,J,Q,W,M(H));var U=H(K,W,Z,J,Q+"."+W,n);if(U)return U}return null}return v(V)}function I(D){function V(X,q,Z,J,Q){var K=X[q],Y=A(K);if(Y!=="object")return new m("Invalid "+J+" `"+Q+"` of type `"+Y+"` "+("supplied to `"+Z+"`, expected `object`."));var W=t({},X[q],D);for(var H in W){var U=D[H];if(r(D,H)&&typeof U!="function")return R(Z,J,Q,H,M(U));if(!U)return new m("Invalid "+J+" `"+Q+"` key `"+H+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(X[q],null," ")+`
|
|
460
|
+
Valid keys: `+JSON.stringify(Object.keys(D),null," "));var z=U(K,H,Z,J,Q+"."+H,n);if(z)return z}return null}return v(V)}function P(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(P);if(D===null||s(D))return!0;var V=d(D);if(V){var X=V.call(D),q;if(V!==D.entries){for(;!(q=X.next()).done;)if(!P(q.value))return!1}else for(;!(q=X.next()).done;){var Z=q.value;if(Z&&!P(Z[1]))return!1}}else return!1;return!0;default:return!1}}function k(D,V){return D==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function A(D){var V=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":k(V,D)?"symbol":V}function M(D){if(typeof D>"u"||D===null)return""+D;var V=A(D);if(V==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return V}function N(D){var V=M(D);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function j(D){return!D.constructor||!D.constructor.name?f:D.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},sh}var lh,Xy;function WF(){if(Xy)return lh;Xy=1;var e=Xm();function t(){}function n(){}return n.resetWarningCache=t,lh=function(){function r(o,s,l,c,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},lh}if(process.env.NODE_ENV!=="production"){var HF=T$(),UF=!0;tg.exports=VF()(HF.isElement,UF)}else tg.exports=WF()();var GF=tg.exports;const de=rn(GF);var Zm=Al(),Ct=e=>Il(e,Zm),Qm=Al();Ct.write=e=>Il(e,Qm);var ld=Al();Ct.onStart=e=>Il(e,ld);var Jm=Al();Ct.onFrame=e=>Il(e,Jm);var ep=Al();Ct.onFinish=e=>Il(e,ep);var so=[];Ct.setTimeout=(e,t)=>{const n=Ct.now()+t,r=()=>{const a=so.findIndex(o=>o.cancel==r);~a&&so.splice(a,1),Pi-=~a?1:0},i={time:n,handler:e,cancel:r};return so.splice(P$(n),0,i),Pi+=1,I$(),i};var P$=e=>~(~so.findIndex(t=>t.time>e)||~so.length);Ct.cancel=e=>{ld.delete(e),Jm.delete(e),ep.delete(e),Zm.delete(e),Qm.delete(e)};Ct.sync=e=>{ng=!0,Ct.batchedUpdates(e),ng=!1};Ct.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,Ct.onStart(n)}return r.handler=e,r.cancel=()=>{ld.delete(n),t=null},r};var tp=typeof window<"u"?window.requestAnimationFrame:()=>{};Ct.use=e=>tp=e;Ct.now=typeof performance<"u"?()=>performance.now():Date.now;Ct.batchedUpdates=e=>e();Ct.catch=console.error;Ct.frameLoop="always";Ct.advance=()=>{Ct.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):N$()};var Ri=-1,Pi=0,ng=!1;function Il(e,t){ng?(t.delete(e),e(0)):(t.add(e),I$())}function I$(){Ri<0&&(Ri=0,Ct.frameLoop!=="demand"&&tp(A$))}function qF(){Ri=-1}function A$(){~Ri&&(tp(A$),Ct.batchedUpdates(N$))}function N$(){const e=Ri;Ri=Ct.now();const t=P$(Ri);if(t&&(k$(so.splice(0,t),n=>n.handler()),Pi-=t),!Pi){qF();return}ld.flush(),Zm.flush(e?Math.min(64,Ri-e):16.667),Jm.flush(),Qm.flush(),ep.flush()}function Al(){let e=new Set,t=e;return{add(n){Pi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Pi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Pi-=t.size,k$(t,r=>r(n)&&e.add(r)),Pi+=e.size,t=e)}}}function k$(e,t){e.forEach(n=>{try{t(n)}catch(r){Ct.catch(r)}})}var KF=Object.defineProperty,YF=(e,t)=>{for(var n in t)KF(e,n,{get:t[n],enumerable:!0})},Br={};YF(Br,{assign:()=>ZF,colors:()=>Ii,createStringInterpolator:()=>rp,skipAnimation:()=>L$,to:()=>j$,willAdvance:()=>ip});function rg(){}var XF=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ae={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function si(e,t){if(Ae.arr(e)){if(!Ae.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var xt=(e,t)=>e.forEach(t);function Qr(e,t,n){if(Ae.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Yn=e=>Ae.und(e)?[]:Ae.arr(e)?e:[e];function Ns(e,t){if(e.size){const n=Array.from(e);e.clear(),xt(n,t)}}var Es=(e,...t)=>Ns(e,n=>n(...t)),np=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),rp,j$,Ii=null,L$=!1,ip=rg,ZF=e=>{e.to&&(j$=e.to),e.now&&(Ct.now=e.now),e.colors!==void 0&&(Ii=e.colors),e.skipAnimation!=null&&(L$=e.skipAnimation),e.createStringInterpolator&&(rp=e.createStringInterpolator),e.requestAnimationFrame&&Ct.use(e.requestAnimationFrame),e.batchedUpdates&&(Ct.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ip=e.willAdvance),e.frameLoop&&(Ct.frameLoop=e.frameLoop)},ks=new Set,yr=[],ch=[],ou=0,cd={get idle(){return!ks.size&&!yr.length},start(e){ou>e.priority?(ks.add(e),Ct.onStart(QF)):(D$(e),Ct(ig))},advance:ig,sort(e){if(ou)Ct.onFrame(()=>cd.sort(e));else{const t=yr.indexOf(e);~t&&(yr.splice(t,1),F$(e))}},clear(){yr=[],ks.clear()}};function QF(){ks.forEach(D$),ks.clear(),Ct(ig)}function D$(e){yr.includes(e)||F$(e)}function F$(e){yr.splice(JF(yr,t=>t.priority>e.priority),0,e)}function ig(e){const t=ch;for(let n=0;n<yr.length;n++){const r=yr[n];ou=r.priority,r.idle||(ip(r),r.advance(e),r.idle||t.push(r))}return ou=0,ch=yr,ch.length=0,yr=t,yr.length>0}function JF(e,t){const n=e.findIndex(t);return n<0?e.length:n}var ez=(e,t,n)=>Math.min(Math.max(n,e),t),tz={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Lr="[-+]?\\d*\\.?\\d+",su=Lr+"%";function ud(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var nz=new RegExp("rgb"+ud(Lr,Lr,Lr)),rz=new RegExp("rgba"+ud(Lr,Lr,Lr,Lr)),iz=new RegExp("hsl"+ud(Lr,su,su)),az=new RegExp("hsla"+ud(Lr,su,su,Lr)),oz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,sz=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,lz=/^#([0-9a-fA-F]{6})$/,cz=/^#([0-9a-fA-F]{8})$/;function uz(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=lz.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ii&&Ii[e]!==void 0?Ii[e]:(t=nz.exec(e))?(Ua(t[1])<<24|Ua(t[2])<<16|Ua(t[3])<<8|255)>>>0:(t=rz.exec(e))?(Ua(t[1])<<24|Ua(t[2])<<16|Ua(t[3])<<8|Jy(t[4]))>>>0:(t=oz.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=cz.exec(e))?parseInt(t[1],16)>>>0:(t=sz.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=iz.exec(e))?(Zy(Qy(t[1]),fc(t[2]),fc(t[3]))|255)>>>0:(t=az.exec(e))?(Zy(Qy(t[1]),fc(t[2]),fc(t[3]))|Jy(t[4]))>>>0:null}function uh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Zy(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=uh(i,r,e+1/3),o=uh(i,r,e),s=uh(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Ua(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Qy(e){return(parseFloat(e)%360+360)%360/360}function Jy(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function fc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function e1(e){let t=uz(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}var tl=(e,t,n)=>{if(Ae.fun(e))return e;if(Ae.arr(e))return tl({range:e,output:t,extrapolate:n});if(Ae.str(e.output[0]))return rp(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=fz(c,a);return dz(c,a[u],a[u+1],i[u],i[u+1],l,o,s,r.map)}};function dz(e,t,n,r,i,a,o,s,l){let c=l?l(e):e;if(c<t){if(o==="identity")return c;o==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=a(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function fz(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var hz=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return ez(0,1,i/e)},lu=1.70158,hc=lu*1.525,t1=lu+1,n1=2*Math.PI/3,r1=2*Math.PI/4.5,vc=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,vz={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>t1*e*e*e-lu*e*e,easeOutBack:e=>1+t1*Math.pow(e-1,3)+lu*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((hc+1)*2*e-hc)/2:(Math.pow(2*e-2,2)*((hc+1)*(e*2-2)+hc)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*n1),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*n1)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*r1))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*r1)/2+1,easeInBounce:e=>1-vc(1-e),easeOutBounce:vc,easeInOutBounce:e=>e<.5?(1-vc(1-2*e))/2:(1+vc(2*e-1))/2,steps:hz},nl=Symbol.for("FluidValue.get"),xo=Symbol.for("FluidValue.observers"),br=e=>!!(e&&e[nl]),Qn=e=>e&&e[nl]?e[nl]():e,i1=e=>e[xo]||null;function gz(e,t){e.eventObserved?e.eventObserved(t):e(t)}function rl(e,t){const n=e[xo];n&&n.forEach(r=>{gz(r,t)})}var z$=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");mz(this,e)}},mz=(e,t)=>B$(e,nl,t);function Bo(e,t){if(e[nl]){let n=e[xo];n||B$(e,xo,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function il(e,t){const n=e[xo];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[xo]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var B$=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),jc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,pz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,a1=new RegExp(`(${jc.source})(%|[a-z]+)`,"i"),bz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,dd=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,V$=e=>{const[t,n]=yz(e);if(!t||np())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&dd.test(n))return V$(n);if(n)return n}return e},yz=e=>{const t=dd.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},dh,xz=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,W$=e=>{dh||(dh=Ii?new RegExp(`(${Object.keys(Ii).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>Qn(a).replace(dd,V$).replace(pz,e1).replace(dh,e1)),n=t.map(a=>a.match(jc).map(Number)),i=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>tl({...e,output:a}));return a=>{var l;const o=!a1.test(t[0])&&((l=t.find(c=>a1.test(c)))==null?void 0:l.replace(jc,""));let s=0;return t[0].replace(jc,()=>`${i[s++](a)}${o||""}`).replace(bz,xz)}},ap="react-spring: ",H$=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${ap}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Sz=H$(console.warn);function Cz(){Sz(`${ap}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var wz=H$(console.warn);function $z(){wz(`${ap}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function fd(e){return Ae.str(e)&&(e[0]=="#"||/\d/.test(e)||!np()&&dd.test(e)||e in(Ii||{}))}var ta=np()?$.useEffect:$.useLayoutEffect,_z=()=>{const e=$.useRef(!1);return ta(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function op(){const e=$.useState()[1],t=_z();return()=>{t.current&&e(Math.random())}}function Ez(e,t){const[n]=$.useState(()=>({inputs:t,result:e()})),r=$.useRef(),i=r.current;let a=i;return a?t&&a.inputs&&Oz(t,a.inputs)||(a={inputs:t,result:e()}):a=n,$.useEffect(()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)},[a]),a.result}function Oz(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var sp=e=>$.useEffect(e,Mz),Mz=[];function ag(e){const t=$.useRef();return $.useEffect(()=>{t.current=e}),t.current}var al=Symbol.for("Animated:node"),Tz=e=>!!e&&e[al]===e,qr=e=>e&&e[al],lp=(e,t)=>XF(e,al,t),hd=e=>e&&e[al]&&e[al].getPayload(),U$=class{constructor(){lp(this,this)}getPayload(){return this.payload||[]}},Nl=class extends U${constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ae.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Nl(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ae.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ae.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},ol=class extends Nl{constructor(e){super(0),this._string=null,this._toString=tl({output:[e,e]})}static create(e){return new ol(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ae.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=tl({output:[this.getValue(),e]})),this._value=0,super.reset()}},cu={dependencies:null},vd=class extends U${constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Qr(this.source,(n,r)=>{Tz(n)?t[r]=n.getValue(e):br(n)?t[r]=Qn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&xt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Qr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){cu.dependencies&&br(e)&&cu.dependencies.add(e);const t=hd(e);t&&xt(t,n=>this.add(n))}},G$=class extends vd{constructor(e){super(e)}static create(e){return new G$(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Rz)),!0)}};function Rz(e){return(fd(e)?ol:Nl).create(e)}function og(e){const t=qr(e);return t?t.constructor:Ae.arr(e)?G$:fd(e)?ol:Nl}var o1=(e,t)=>{const n=!Ae.fun(e)||e.prototype&&e.prototype.isReactComponent;return $.forwardRef((r,i)=>{const a=$.useRef(null),o=n&&$.useCallback(p=>{a.current=Az(i,p)},[i]),[s,l]=Iz(r,t),c=op(),u=()=>{const p=a.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,s.getValue(!0)):!1)===!1&&c()},d=new Pz(u,l),f=$.useRef();ta(()=>(f.current=d,xt(l,p=>Bo(p,d)),()=>{f.current&&(xt(f.current.deps,p=>il(p,f.current)),Ct.cancel(f.current.update))})),$.useEffect(u,[]),sp(()=>()=>{const p=f.current;xt(p.deps,m=>il(m,p))});const h=t.getComponentProps(s.getValue());return g.createElement(e,{...h,ref:o})})},Pz=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Ct.write(this.update)}};function Iz(e,t){const n=new Set;return cu.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new vd(e),cu.dependencies=null,[e,n]}function Az(e,t){return e&&(Ae.fun(e)?e(t):e.current=t),t}var s1=Symbol.for("AnimatedComponent"),Nz=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new vd(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=l1(o)||"Anonymous";return Ae.str(o)?o=a[o]||(a[o]=o1(o,i)):o=o[s1]||(o[s1]=o1(o,i)),o.displayName=`Animated(${s})`,o};return Qr(e,(o,s)=>{Ae.arr(e)&&(s=l1(o)),a[s]=a(o)}),{animated:a}},l1=e=>Ae.str(e)?e:e&&Ae.str(e.displayName)?e.displayName:Ae.fun(e)&&e.name||null;function Jn(e,...t){return Ae.fun(e)?e(...t):e}var js=(e,t)=>e===!0||!!(t&&e&&(Ae.fun(e)?e(t):Yn(e).includes(t))),q$=(e,t)=>Ae.obj(e)?t&&e[t]:e,K$=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,kz=e=>e,gd=(e,t=kz)=>{let n=jz;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const a=t(e[i],i);Ae.und(a)||(r[i]=a)}return r},jz=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Lz={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Dz(e){const t={};let n=0;if(Qr(e,(r,i)=>{Lz[i]||(t[i]=r,n++)}),n)return t}function cp(e){const t=Dz(e);if(t){const n={to:t};return Qr(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function sl(e){return e=Qn(e),Ae.arr(e)?e.map(sl):fd(e)?Br.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Y$(e){for(const t in e)return!0;return!1}function sg(e){return Ae.fun(e)||Ae.arr(e)&&Ae.obj(e[0])}function lg(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function X$(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var up={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},cg={...up.default,mass:1,damping:1,easing:vz.linear,clamp:!1},Fz=class{constructor(){this.velocity=0,Object.assign(this,cg)}};function zz(e,t,n){n&&(n={...n},c1(n,t),t={...n,...t}),c1(e,t),Object.assign(e,t);for(const o in cg)e[o]==null&&(e[o]=cg[o]);let{frequency:r,damping:i}=e;const{mass:a}=e;return Ae.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r),e}function c1(e,t){if(!Ae.und(t.decay))e.duration=void 0;else{const n=!Ae.und(t.tension)||!Ae.und(t.friction);(n||!Ae.und(t.frequency)||!Ae.und(t.damping)||!Ae.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var u1=[],Bz=class{constructor(){this.changed=!1,this.values=u1,this.toValues=null,this.fromValues=u1,this.config=new Fz,this.immediate=!1}};function Z$(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,c,u=js(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{Ae.und(n.pause)||(i.paused=js(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||js(p,t)),l=Jn(n.delay||0,t),p?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-Ct.now()}function f(){l>0&&!Br.skipAnimation?(i.delayed=!0,c=Ct.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},o)}catch(p){s(p)}}})}var dp=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?lo(e.get()):t.every(n=>n.noop)?Q$(e.get()):kr(e.get(),t.every(n=>n.finished)),Q$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),kr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),lo=e=>({value:e,cancelled:!0,finished:!1});function J$(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return!a&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=gd(t,(v,y)=>y==="onRest"?void 0:v);let u,d;const f=new Promise((v,y)=>(u=v,d=y)),h=v=>{const y=i<=(n.cancelId||0)&&lo(r)||i!==n.asyncId&&kr(r,!1);if(y)throw v.result=y,d(v),v},p=(v,y)=>{const b=new d1,x=new f1;return(async()=>{if(Br.skipAnimation)throw ll(n),x.result=kr(r,!1),d(x),x;h(b);const C=Ae.obj(v)?{...v}:{...y,to:v};C.parentId=i,Qr(c,(w,O)=>{Ae.und(C[O])&&(C[O]=w)});const S=await r.start(C);return h(b),n.paused&&await new Promise(w=>{n.resumeQueue.add(w)}),S})()};let m;if(Br.skipAnimation)return ll(n),kr(r,!1);try{let v;Ae.arr(e)?v=(async y=>{for(const b of y)await p(b)})(e):v=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([v.then(u),f]),m=kr(r.get(),!0,!1)}catch(v){if(v instanceof d1)m=v.result;else if(v instanceof f1)m=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return Ae.fun(o)&&Ct.batchedUpdates(()=>{o(m,r,r.item)}),m})()}function ll(e,t){Ns(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var d1=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},f1=class extends Error{constructor(){super("SkipAnimationSignal")}},ug=e=>e instanceof fp,Vz=1,fp=class extends z${constructor(){super(...arguments),this.id=Vz++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=qr(this);return e&&e.getValue()}to(...e){return Br.to(this,e)}interpolate(...e){return Cz(),Br.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){rl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||cd.sort(this),rl(this,{type:"priority",parent:this,priority:e})}},ha=Symbol.for("SpringPhase"),e_=1,dg=2,fg=4,fh=e=>(e[ha]&e_)>0,wi=e=>(e[ha]&dg)>0,ss=e=>(e[ha]&fg)>0,h1=(e,t)=>t?e[ha]|=dg|e_:e[ha]&=~dg,v1=(e,t)=>t?e[ha]|=fg:e[ha]&=~fg,Wz=class extends fp{constructor(e,t){if(super(),this.animation=new Bz,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ae.und(e)||!Ae.und(t)){const n=Ae.obj(e)?{...e}:{...t,from:e};Ae.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(wi(this)||this._state.asyncTo)||ss(this)}get goal(){return Qn(this.animation.to)}get velocity(){const e=qr(this);return e instanceof Nl?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return fh(this)}get isAnimating(){return wi(this)}get isPaused(){return ss(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=hd(r.to);!o&&br(r.to)&&(i=Yn(Qn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==ol?1:o?o[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=c.lastPosition,a.tension<=0){c.done=!0;return}let p=c.elapsedTime+=e;const m=r.fromValues[u],v=c.v0!=null?c.v0:c.v0=Ae.arr(a.velocity)?a.velocity[u]:a.velocity;let y;const b=a.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(Ae.und(a.duration))if(a.decay){const x=a.decay===!0?.998:a.decay,C=Math.exp(-(1-x)*p);h=m+v/(1-x)*(1-C),f=Math.abs(c.lastPosition-h)<=b,y=v*C}else{y=c.lastVelocity==null?v:c.lastVelocity;const x=a.restVelocity||b/10,C=a.clamp?0:a.bounce,S=!Ae.und(C),w=m==d?c.v0>0:m<d;let O,E=!1;const _=1,T=Math.ceil(e/_);for(let R=0;R<T&&(O=Math.abs(y)>x,!(!O&&(f=Math.abs(d-h)<=b,f)));++R){S&&(E=h==d||h>d==w,E&&(y=-y*C,h=d));const F=-a.tension*1e-6*(h-d),I=-a.friction*.001*y,P=(F+I)/a.mass;y=y+P*_,h=h+y*_}}else{let x=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,c.durationProgress>0&&(c.elapsedTime=a.duration*c.durationProgress,p=c.elapsedTime+=e)),x=(a.progress||0)+p/this._memoizedDuration,x=x>1?1:x<0?0:x,c.durationProgress=x),h=m+a.easing(x)*(d-m),y=(h-c.lastPosition)/e,f=x==1}c.lastVelocity=y,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(h,a.round)&&(n=!0)});const s=qr(this),l=s.getValue();if(t){const c=Qn(r.to);(l!==c||n)&&!a.decay?(s.setValue(c),this._onChange(c)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Ct.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(wi(this)){const{to:e,config:t}=this.animation;Ct.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ae.und(e)?(n=this.queue||[],this.queue=[]):n=[Ae.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>dp(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ll(this._state,e&&this._lastCallId),Ct.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ae.obj(n)?n[t]:n,(n==null||sg(n))&&(n=void 0),r=Ae.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return fh(this)||(e.reverse&&([n,r]=[r,n]),r=Qn(r),Ae.und(r)?qr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,gd(e,(o,s)=>/^on/.test(s)?q$(o,n):o)),m1(this,e,"onProps"),cs(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Z$(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{ss(this)||(v1(this,!0),Es(a.pauseQueue),cs(this,"onPause",kr(this,ls(this,this.animation.to)),this))},resume:()=>{ss(this)&&(v1(this,!1),wi(this)&&this._resume(),Es(a.resumeQueue),cs(this,"onResume",kr(this,ls(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=t_(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(lo(this));const r=!Ae.und(e.to),i=!Ae.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(lo(this));const{key:a,defaultProps:o,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;i&&!r&&(!t.default||Ae.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!si(d,c);f&&(s.from=d),d=Qn(d);const h=!si(u,l);h&&this._focus(u);const p=sg(t.to),{config:m}=s,{decay:v,velocity:y}=m;(r||i)&&(m.velocity=0),t.config&&!p&&zz(m,Jn(t.config,a),t.config!==o.config?Jn(o.config,a):void 0);let b=qr(this);if(!b||Ae.und(u))return n(kr(this,!0));const x=Ae.und(t.reset)?i&&!t.default:!Ae.und(d)&&js(t.reset,a),C=x?d:this.get(),S=sl(u),w=Ae.num(S)||Ae.arr(S)||fd(S),O=!p&&(!w||js(o.immediate||t.immediate,a));if(h){const R=og(u);if(R!==b.constructor)if(O)b=this._set(S);else throw Error(`Cannot animate between ${b.constructor.name} and ${R.name}, as the "to" prop suggests`)}const E=b.constructor;let _=br(u),T=!1;if(!_){const R=x||!fh(this)&&f;(h||R)&&(T=si(sl(C),S),_=!T),(!si(s.immediate,O)&&!O||!si(m.decay,v)||!si(m.velocity,y))&&(_=!0)}if(T&&wi(this)&&(s.changed&&!x?_=!0:_||this._stop(l)),!p&&((_||br(l))&&(s.values=b.getPayload(),s.toValues=br(u)?null:E==ol?[1]:Yn(S)),s.immediate!=O&&(s.immediate=O,!O&&!x&&this._set(l)),_)){const{onRest:R}=s;xt(Uz,I=>m1(this,t,I));const F=kr(this,ls(this,l));Es(this._pendingCalls,F),this._pendingCalls.add(n),s.changed&&Ct.batchedUpdates(()=>{var I;s.changed=!x,R==null||R(F,this),x?Jn(o.onRest,F):(I=s.onStart)==null||I.call(s,F,this)})}x&&this._set(C),p?n(J$(t.to,t,this._state,this)):_?this._start():wi(this)&&!h?this._pendingCalls.add(n):n(Q$(C))}_focus(e){const t=this.animation;e!==t.to&&(i1(this)&&this._detach(),t.to=e,i1(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;br(t)&&(Bo(t,this),ug(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;br(e)&&il(e,this)}_set(e,t=!0){const n=Qn(e);if(!Ae.und(n)){const r=qr(this);if(!r||!si(n,r.getValue())){const i=og(n);!r||r.constructor!=i?lp(this,i.create(n)):r.setValue(n),r&&Ct.batchedUpdates(()=>{this._onChange(n,t)})}}return qr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,cs(this,"onStart",kr(this,ls(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Jn(this.animation.onChange,e,this)),Jn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;qr(this).reset(Qn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),wi(this)||(h1(this,!0),ss(this)||this._resume())}_resume(){Br.skipAnimation?this.finish():cd.start(this)}_stop(e,t){if(wi(this)){h1(this,!1);const n=this.animation;xt(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),rl(this,{type:"idle",parent:this});const r=t?lo(this.get()):kr(this.get(),ls(this,e??n.to));Es(this._pendingCalls,r),n.changed&&(n.changed=!1,cs(this,"onRest",r,this))}}};function ls(e,t){const n=sl(t),r=sl(e.get());return si(r,n)}function t_(e,t=e.loop,n=e.to){const r=Jn(t);if(r){const i=r!==!0&&cp(r),a=(i||e).reverse,o=!i||i.reset;return cl({...e,loop:t,default:!1,pause:void 0,to:!a||sg(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function cl(e){const{to:t,from:n}=e=cp(e),r=new Set;return Ae.obj(t)&&g1(t,r),Ae.obj(n)&&g1(n,r),e.keys=r.size?Array.from(r):null,e}function Hz(e){const t=cl(e);return Ae.und(t.default)&&(t.default=gd(t)),t}function g1(e,t){Qr(e,(n,r)=>n!=null&&t.add(r))}var Uz=["onStart","onRest","onChange","onPause","onResume"];function m1(e,t,n){e.animation[n]=t[n]!==K$(t,n)?q$(t[n],e.key):void 0}function cs(e,t,...n){var r,i,a,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}var Gz=["onStart","onChange","onRest"],qz=1,n_=class{constructor(e,t){this.id=qz++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ae.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(cl(e)),this}start(e){let{queue:t}=this;return e?t=Yn(e).map(cl):this.queue=[],this._flush?this._flush(this,t):(s_(this,t),hg(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;xt(Yn(t),r=>n[r].stop(!!e))}else ll(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ae.und(e))this.start({pause:!0});else{const t=this.springs;xt(Yn(e),n=>t[n].pause())}return this}resume(e){if(Ae.und(e))this.start({pause:!1});else{const t=this.springs;xt(Yn(e),n=>t[n].resume())}return this}each(e){Qr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ns(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&Ns(t,([s,l])=>{l.value=o,s(l,this,this._item)}),a&&(this._started=!1,Ns(n,([s,l])=>{l.value=o,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Ct.onFrame(this._onFrame)}};function hg(e,t){return Promise.all(t.map(n=>r_(e,n))).then(n=>dp(e,n))}async function r_(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,c=Ae.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);const u=Ae.arr(i)||Ae.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):xt(Gz,m=>{const v=t[m];if(Ae.fun(v)){const y=e._events[m];t[m]=({finished:b,cancelled:x})=>{const C=y.get(v);C?(b||(C.finished=!1),x&&(C.cancelled=!0)):y.set(v,{value:null,finished:b||!1,cancelled:x||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Es(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),h=t.cancel===!0||K$(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(Z$(++e._lastAsyncId,{props:t,state:d,actions:{pause:rg,resume:rg,start(m,v){h?(ll(d,e._lastAsyncId),v(lo(e))):(m.onRest=s,v(J$(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const p=dp(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){const m=t_(t,o,i);if(m)return s_(e,[m]),r_(e,m,!0)}return l&&Ct.batchedUpdates(()=>l(p,e,e.item)),p}function vg(e,t){const n={...e.springs};return t&&xt(Yn(t),r=>{Ae.und(r.keys)&&(r=cl(r)),Ae.obj(r.to)||(r={...r,to:void 0}),o_(n,r,i=>a_(i))}),i_(e,n),n}function i_(e,t){Qr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Bo(n,e))})}function a_(e,t){const n=new Wz;return n.key=e,t&&Bo(n,t),n}function o_(e,t,n){t.keys&&xt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function s_(e,t){xt(t,n=>{o_(e.springs,n,r=>a_(r,e))})}var kl=({children:e,...t})=>{const n=$.useContext(uu),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=Ez(()=>({pause:r,immediate:i}),[r,i]);const{Provider:a}=uu;return g.createElement(a,{value:t},e)},uu=Kz(kl,{});kl.Provider=uu.Provider;kl.Consumer=uu.Consumer;function Kz(e,t){return Object.assign(e,g.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var l_=()=>{const e=[],t=function(r){$z();const i=[];return xt(e,(a,o)=>{if(Ae.und(r))i.push(a.start());else{const s=n(r,a,o);s&&i.push(a.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return xt(e,r=>r.pause(...arguments)),this},t.resume=function(){return xt(e,r=>r.resume(...arguments)),this},t.set=function(r){xt(e,(i,a)=>{const o=Ae.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return xt(e,(a,o)=>{if(Ae.und(r))i.push(a.start());else{const s=this._getProps(r,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return xt(e,r=>r.stop(...arguments)),this},t.update=function(r){return xt(e,(i,a)=>i.update(this._getProps(r,i,a))),this};const n=function(r,i,a){return Ae.fun(r)?r(a,i):r};return t._getProps=n,t};function c_(e,t,n){const r=Ae.fun(t)&&t;r&&!n&&(n=[]);const i=$.useMemo(()=>r||arguments.length==3?l_():void 0,[]),a=$.useRef(0),o=op(),s=$.useMemo(()=>({ctrls:[],queue:[],flush(y,b){const x=vg(y,b);return a.current>0&&!s.queue.length&&!Object.keys(x).some(S=>!y.springs[S])?hg(y,b):new Promise(S=>{i_(y,x),s.queue.push(()=>{S(hg(y,b))}),o()})}}),[]),l=$.useRef([...s.ctrls]),c=[],u=ag(e)||0;$.useMemo(()=>{xt(l.current.slice(e,u),y=>{lg(y,i),y.stop(!0)}),l.current.length=e,d(u,e)},[e]),$.useMemo(()=>{d(0,Math.min(u,e))},n);function d(y,b){for(let x=y;x<b;x++){const C=l.current[x]||(l.current[x]=new n_(null,s.flush)),S=r?r(x,C):t[x];S&&(c[x]=Hz(S))}}const f=l.current.map((y,b)=>vg(y,c[b])),h=$.useContext(kl),p=ag(h),m=h!==p&&Y$(h);ta(()=>{a.current++,s.ctrls=l.current;const{queue:y}=s;y.length&&(s.queue=[],xt(y,b=>b())),xt(l.current,(b,x)=>{i==null||i.add(b),m&&b.start({default:h});const C=c[x];C&&(X$(b,C.ref),b.ref?b.queue.push(C):b.start(C))})}),sp(()=>()=>{xt(s.ctrls,y=>y.stop(!0))});const v=f.map(y=>({...y}));return i?[v,i]:v}function Mr(e,t){const n=Ae.fun(e),[[r],i]=c_(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function $a(e,t,n){const r=Ae.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=$.useMemo(()=>r||arguments.length==3?l_():void 0,[]),h=Yn(e),p=[],m=$.useRef(null),v=i?null:m.current;ta(()=>{m.current=p}),sp(()=>(xt(p,P=>{f==null||f.add(P.ctrl),P.ctrl.ref=f}),()=>{xt(m.current,P=>{P.expired&&clearTimeout(P.expirationId),lg(P.ctrl,f),P.ctrl.stop(!0)})}));const y=Xz(h,r?r():t,v),b=i&&m.current||[];ta(()=>xt(b,({ctrl:P,item:k,key:A})=>{lg(P,f),Jn(c,k,A)}));const x=[];if(v&&xt(v,(P,k)=>{P.expired?(clearTimeout(P.expirationId),b.push(P)):(k=x[k]=y.indexOf(P.key),~k&&(p[k]=P))}),xt(h,(P,k)=>{p[k]||(p[k]={key:y[k],item:P,phase:"mount",ctrl:new n_},p[k].ctrl.item=P)}),x.length){let P=-1;const{leave:k}=r?r():t;xt(x,(A,M)=>{const N=v[M];~A?(P=p.indexOf(N),p[P]={...N,item:h[A]}):k&&p.splice(++P,0,N)})}Ae.fun(a)&&p.sort((P,k)=>a(P.item,k.item));let C=-o;const S=op(),w=gd(t),O=new Map,E=$.useRef(new Map),_=$.useRef(!1);xt(p,(P,k)=>{const A=P.key,M=P.phase,N=r?r():t;let j,D;const V=Jn(N.delay||0,A);if(M=="mount")j=N.enter,D="enter";else{const J=y.indexOf(A)<0;if(M!="leave")if(J)j=N.leave,D="leave";else if(j=N.update)D="update";else return;else if(!J)j=N.enter,D="enter";else return}if(j=Jn(j,P.item,k),j=Ae.obj(j)?cp(j):{to:j},!j.config){const J=d||w.config;j.config=Jn(J,P.item,k,D)}C+=o;const X={...w,delay:V+C,ref:u,immediate:N.immediate,reset:!1,...j};if(D=="enter"&&Ae.und(X.from)){const J=r?r():t,Q=Ae.und(J.initial)||v?J.from:J.initial;X.from=Jn(Q,P.item,k)}const{onResolve:q}=X;X.onResolve=J=>{Jn(q,J);const Q=m.current,K=Q.find(Y=>Y.key===A);if(K&&!(J.cancelled&&K.phase!="update")&&K.ctrl.idle){const Y=Q.every(W=>W.ctrl.idle);if(K.phase=="leave"){const W=Jn(s,K.item);if(W!==!1){const H=W===!0?0:W;if(K.expired=!0,!Y&&H>0){H<=2147483647&&(K.expirationId=setTimeout(S,H));return}}}Y&&Q.some(W=>W.expired)&&(E.current.delete(K),l&&(_.current=!0),S())}};const Z=vg(P.ctrl,X);D==="leave"&&l?E.current.set(P,{phase:D,springs:Z,payload:X}):O.set(P,{phase:D,springs:Z,payload:X})});const T=$.useContext(kl),R=ag(T),F=T!==R&&Y$(T);ta(()=>{F&&xt(p,P=>{P.ctrl.start({default:T})})},[T]),xt(O,(P,k)=>{if(E.current.size){const A=p.findIndex(M=>M.key===k.key);p.splice(A,1)}}),ta(()=>{xt(E.current.size?E.current:O,({phase:P,payload:k},A)=>{const{ctrl:M}=A;A.phase=P,f==null||f.add(M),F&&P=="enter"&&M.start({default:T}),k&&(X$(M,k.ref),(M.ref||f)&&!_.current?M.update(k):(M.start(k),_.current&&(_.current=!1)))})},i?void 0:n);const I=P=>g.createElement(g.Fragment,null,p.map((k,A)=>{const{springs:M}=O.get(k)||k.ctrl,N=P({...M},k.item,k,A);return N&&N.type?g.createElement(N.type,{...N.props,key:Ae.str(k.key)||Ae.num(k.key)?k.key:k.ctrl.id,ref:N.ref}):N}));return f?[I,f]:I}var Yz=1;function Xz(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(a=>{const o=r&&r.find(s=>s.item===a&&s.phase!=="leave"&&!i.has(s));return o?(i.add(o),o.key):Yz++})}return Ae.und(n)?e:Ae.fun(n)?e.map(n):Yn(n)}var u_=class extends fp{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=tl(...t);const n=this._get(),r=og(n);lp(this,r.create(n))}advance(e){const t=this._get(),n=this.get();si(t,n)||(qr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&p1(this._active)&&hh(this)}_get(){const e=Ae.arr(this.source)?this.source.map(Qn):Yn(Qn(this.source));return this.calc(...e)}_start(){this.idle&&!p1(this._active)&&(this.idle=!1,xt(hd(this),e=>{e.done=!1}),Br.skipAnimation?(Ct.batchedUpdates(()=>this.advance()),hh(this)):cd.start(this))}_attach(){let e=1;xt(Yn(this.source),t=>{br(t)&&Bo(t,this),ug(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){xt(Yn(this.source),e=>{br(e)&&il(e,this)}),this._active.clear(),hh(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Yn(this.source).reduce((t,n)=>Math.max(t,(ug(n)?n.priority:0)+1),0))}};function Zz(e){return e.idle!==!1}function p1(e){return!e.size||Array.from(e).every(Zz)}function hh(e){e.idle||(e.idle=!0,xt(hd(e),t=>{t.done=!0}),rl(e,{type:"idle",parent:e}))}var ur=(e,...t)=>new u_(e,t);Br.assign({createStringInterpolator:W$,to:(e,t)=>new u_(e,t)});var d_=/^--/;function Qz(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!d_.test(e)&&!(Ls.hasOwnProperty(e)&&Ls[e])?t+"px":(""+t).trim()}var b1={};function Jz(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:b1[f]||(b1[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));a!==void 0&&(e.textContent=a);for(const f in i)if(i.hasOwnProperty(f)){const h=Qz(f,i[f]);d_.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var Ls={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eB=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),tB=["Webkit","Ms","Moz","O"];Ls=Object.keys(Ls).reduce((e,t)=>(tB.forEach(n=>e[eB(n,t)]=e[t]),e),Ls);var nB=/^(matrix|translate|scale|rotate|skew)/,rB=/^(translate)/,iB=/^(rotate|skew)/,vh=(e,t)=>Ae.num(e)&&e!==0?e+t:e,Lc=(e,t)=>Ae.arr(e)?e.every(n=>Lc(n,t)):Ae.num(e)?e===t:parseFloat(e)===t,aB=class extends vd{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>vh(s,"px")).join(",")})`,Lc(o,0)])),Qr(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(l=>[l,l===""]);else if(nB.test(s)){if(delete r[s],Ae.und(o))return;const l=rB.test(s)?"px":iB.test(s)?"deg":"";i.push(Yn(o)),a.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${vh(f,l)})`,Lc(f,0)]:c=>[`${s}(${c.map(u=>vh(u,l)).join(",")})`,Lc(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new oB(i,a)),super(r)}},oB=class extends z${constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return xt(this.inputs,(n,r)=>{const i=Qn(n[0]),[a,o]=this.transforms[r](Ae.arr(i)?i:n.map(Qn));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&xt(this.inputs,t=>xt(t,n=>br(n)&&Bo(n,this)))}observerRemoved(e){e==0&&xt(this.inputs,t=>xt(t,n=>br(n)&&il(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),rl(this,e)}},sB=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Br.assign({batchedUpdates:vi.unstable_batchedUpdates,createStringInterpolator:W$,colors:tz});var lB=Nz(sB,{applyAnimatedValues:Jz,createAnimatedStyle:e=>new aB(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Mt=lB.animated;function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},va.apply(this,arguments)}var cB={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},y1=function(e,t){return"translate("+e+"px, "+t+"px)"},f_=$.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,a=Lt(),o=Sn(),s=o.animate,l=o.config,c=sO(),u=c[0],d=c[1],f=$.useRef(!1),h=void 0,p=!1,m=d.width>0&&d.height>0,v=Math.round(n[0]),y=Math.round(n[1]);m&&(r==="top"?(v-=d.width/2,y-=d.height+14):r==="right"?(v+=14,y-=d.height/2):r==="bottom"?(v-=d.width/2,y+=14):r==="left"?(v-=d.width+14,y-=d.height/2):r==="center"&&(v-=d.width/2,y-=d.height/2),h={transform:y1(v,y)},f.current||(p=!0),f.current=[v,y]);var b=Mr({to:h,config:l,immediate:!s||p}),x=va({},cB,a.tooltip.wrapper,{transform:(t=b.transform)!=null?t:y1(v,y),opacity:b.transform?1:0});return L.jsx(Mt.div,{ref:u,style:x,children:i})});f_.displayName="TooltipWrapper";var du=$.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return L.jsx("span",{style:va({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),So=$.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,l=e.renderContent,c=Lt(),u=ji(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=L.jsxs("div",{style:c.tooltip.basic,children:[o&&L.jsx(du,{color:s,style:c.tooltip.chip}),d!==void 0?L.jsxs("span",{children:[n,": ",L.jsx("strong",{children:""+d})]}):n]})}return L.jsx("div",{style:c.tooltip.container,children:t})}),uB={width:"100%",borderCollapse:"collapse"},h_=$.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=Lt();return i.length?(t=typeof a=="function"?a():L.jsxs("div",{children:[n&&n,L.jsx("table",{style:va({},uB,o.tooltip.table),children:L.jsx("tbody",{children:i.map(function(s,l){return L.jsx("tr",{children:s.map(function(c,u){return L.jsx("td",{style:o.tooltip.tableCell,children:c},u)})},l)})})})]}),L.jsx("div",{style:o.tooltip.container,children:t})):null});h_.displayName="TableTooltip";var gg=$.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=Lt(),o=Sn(),s=o.animate,l=o.config,c=$.useMemo(function(){return va({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),u=Mr({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return L.jsx(Mt.line,va({},u,{fill:"none",style:c}))});gg.displayName="CrosshairLine";var mg=$.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a==="cross"?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a==="top"?t={x0:o,x1:o,y0:0,y1:s}:a==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a==="right"?n={x0:o,x1:r,y0:s,y1:s}:a==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a==="bottom"?t={x0:o,x1:o,y0:s,y1:i}:a==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a==="left"?n={x0:0,x1:o,y0:s,y1:s}:a==="x"?t={x0:o,x1:o,y0:0,y1:i}:a==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),L.jsxs(L.Fragment,{children:[t&&L.jsx(gg,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&L.jsx(gg,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});mg.displayName="Crosshair";var v_=$.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),pg={isVisible:!1,position:[null,null],content:null,anchor:null},g_=$.createContext(pg),dB=function(e){var t=$.useState(pg),n=t[0],r=t[1],i=$.useCallback(function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})},[r]),a=$.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in l?l.touches[0]:l,p=h.clientX,m=h.clientY,v=(p-u.left)*f,y=(m-u.top)*f;c!=="left"&&c!=="right"||(c=v<u.width/2?"right":"left"),r({isVisible:!0,position:[v,y],anchor:c,content:s})},[e,r]),o=$.useCallback(function(){r(pg)},[r]);return{actions:$.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}},[i,a,o]),state:n}},Wr=function(){var e=$.useContext(v_);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},fB=function(){var e=$.useContext(g_);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},hB=function(e){return e.isVisible},vB=function(){var e=fB();return hB(e)?L.jsx(f_,{position:e.position,anchor:e.anchor,children:e.content}):null},gB=function(e){var t=e.container,n=e.children,r=dB(t),i=r.actions,a=r.state;return L.jsx(v_.Provider,{value:i,children:L.jsx(g_.Provider,{value:a,children:n})})},mB=od;function pB(){this.__data__=new mB,this.size=0}var bB=pB;function yB(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var xB=yB;function SB(e){return this.__data__.get(e)}var CB=SB;function wB(e){return this.__data__.has(e)}var $B=wB,_B=od,EB=Um,OB=Gm,MB=200;function TB(e,t){var n=this.__data__;if(n instanceof _B){var r=n.__data__;if(!EB||r.length<MB-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new OB(r)}return n.set(e,t),this.size=n.size,this}var RB=TB,PB=od,IB=bB,AB=xB,NB=CB,kB=$B,jB=RB;function Vo(e){var t=this.__data__=new PB(e);this.size=t.size}Vo.prototype.clear=IB;Vo.prototype.delete=AB;Vo.prototype.get=NB;Vo.prototype.has=kB;Vo.prototype.set=jB;var md=Vo,LB=wa,DB=function(){try{var e=LB(Object,"defineProperty");return e({},"",{}),e}catch{}}(),m_=DB,x1=m_;function FB(e,t,n){t=="__proto__"&&x1?x1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var hp=FB,zB=hp,BB=Pl;function VB(e,t,n){(n!==void 0&&!BB(e[t],n)||n===void 0&&!(t in e))&&zB(e,t,n)}var p_=VB;function WB(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var HB=WB,UB=HB,GB=UB(),b_=GB,fu={exports:{}};fu.exports;(function(e,t){var n=ti,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l})(fu,fu.exports);var y_=fu.exports,qB=ti,KB=qB.Uint8Array,x_=KB,S1=x_;function YB(e){var t=new e.constructor(e.byteLength);return new S1(t).set(new S1(e)),t}var vp=YB,XB=vp;function ZB(e,t){var n=t?XB(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var S_=ZB;function QB(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var C_=QB,JB=ni,C1=Object.create,eV=function(){function e(){}return function(t){if(!JB(t))return{};if(C1)return C1(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tV=eV;function nV(e,t){return function(n){return e(t(n))}}var w_=nV,rV=w_,iV=rV(Object.getPrototypeOf,Object),gp=iV,aV=Object.prototype;function oV(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||aV;return e===n}var mp=oV,sV=tV,lV=gp,cV=mp;function uV(e){return typeof e.constructor=="function"&&!cV(e)?sV(lV(e)):{}}var $_=uV;function dV(e){return e!=null&&typeof e=="object"}var Tr=dV,fV=yi,hV=Tr,vV="[object Arguments]";function gV(e){return hV(e)&&fV(e)==vV}var mV=gV,w1=mV,pV=Tr,__=Object.prototype,bV=__.hasOwnProperty,yV=__.propertyIsEnumerable,xV=w1(function(){return arguments}())?w1:function(e){return pV(e)&&bV.call(e,"callee")&&!yV.call(e,"callee")},pd=xV,SV=Array.isArray,tr=SV,CV=9007199254740991;function wV(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=CV}var pp=wV,$V=rd,_V=pp;function EV(e){return e!=null&&_V(e.length)&&!$V(e)}var Wo=EV,OV=Wo,MV=Tr;function TV(e){return MV(e)&&OV(e)}var E_=TV,hu={exports:{}};function RV(){return!1}var PV=RV;hu.exports;(function(e,t){var n=ti,r=PV,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(hu,hu.exports);var bd=hu.exports,IV=yi,AV=gp,NV=Tr,kV="[object Object]",jV=Function.prototype,LV=Object.prototype,O_=jV.toString,DV=LV.hasOwnProperty,FV=O_.call(Object);function zV(e){if(!NV(e)||IV(e)!=kV)return!1;var t=AV(e);if(t===null)return!0;var n=DV.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&O_.call(n)==FV}var bp=zV;const yd=rn(bp);var BV=yi,VV=pp,WV=Tr,HV="[object Arguments]",UV="[object Array]",GV="[object Boolean]",qV="[object Date]",KV="[object Error]",YV="[object Function]",XV="[object Map]",ZV="[object Number]",QV="[object Object]",JV="[object RegExp]",eW="[object Set]",tW="[object String]",nW="[object WeakMap]",rW="[object ArrayBuffer]",iW="[object DataView]",aW="[object Float32Array]",oW="[object Float64Array]",sW="[object Int8Array]",lW="[object Int16Array]",cW="[object Int32Array]",uW="[object Uint8Array]",dW="[object Uint8ClampedArray]",fW="[object Uint16Array]",hW="[object Uint32Array]",en={};en[aW]=en[oW]=en[sW]=en[lW]=en[cW]=en[uW]=en[dW]=en[fW]=en[hW]=!0;en[HV]=en[UV]=en[rW]=en[GV]=en[iW]=en[qV]=en[KV]=en[YV]=en[XV]=en[ZV]=en[QV]=en[JV]=en[eW]=en[tW]=en[nW]=!1;function vW(e){return WV(e)&&VV(e.length)&&!!en[BV(e)]}var gW=vW;function mW(e){return function(t){return e(t)}}var Ho=mW,vu={exports:{}};vu.exports;(function(e,t){var n=C$,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(vu,vu.exports);var xd=vu.exports,pW=gW,bW=Ho,$1=xd,_1=$1&&$1.isTypedArray,yW=_1?bW(_1):pW,yp=yW;function xW(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var M_=xW,SW=hp,CW=Pl,wW=Object.prototype,$W=wW.hasOwnProperty;function _W(e,t,n){var r=e[t];(!($W.call(e,t)&&CW(r,n))||n===void 0&&!(t in e))&&SW(e,t,n)}var xp=_W,EW=xp,OW=hp;function MW(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?OW(n,s,l):EW(n,s,l)}return n}var Uo=MW;function TW(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var RW=TW,PW=9007199254740991,IW=/^(?:0|[1-9]\d*)$/;function AW(e,t){var n=typeof e;return t=t??PW,!!t&&(n=="number"||n!="symbol"&&IW.test(e))&&e>-1&&e%1==0&&e<t}var Sd=AW,NW=RW,kW=pd,jW=tr,LW=bd,DW=Sd,FW=yp,zW=Object.prototype,BW=zW.hasOwnProperty;function VW(e,t){var n=jW(e),r=!n&&kW(e),i=!n&&!r&&LW(e),a=!n&&!r&&!i&&FW(e),o=n||r||i||a,s=o?NW(e.length,String):[],l=s.length;for(var c in e)(t||BW.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||DW(c,l)))&&s.push(c);return s}var T_=VW;function WW(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var HW=WW,UW=ni,GW=mp,qW=HW,KW=Object.prototype,YW=KW.hasOwnProperty;function XW(e){if(!UW(e))return qW(e);var t=GW(e),n=[];for(var r in e)r=="constructor"&&(t||!YW.call(e,r))||n.push(r);return n}var ZW=XW,QW=T_,JW=ZW,eH=Wo;function tH(e){return eH(e)?QW(e,!0):JW(e)}var jl=tH,nH=Uo,rH=jl;function iH(e){return nH(e,rH(e))}var aH=iH,E1=p_,oH=y_,sH=S_,lH=C_,cH=$_,O1=pd,M1=tr,uH=E_,dH=bd,fH=rd,hH=ni,vH=bp,gH=yp,T1=M_,mH=aH;function pH(e,t,n,r,i,a,o){var s=T1(e,n),l=T1(t,n),c=o.get(l);if(c){E1(e,n,c);return}var u=a?a(s,l,n+"",e,t,o):void 0,d=u===void 0;if(d){var f=M1(l),h=!f&&dH(l),p=!f&&!h&&gH(l);u=l,f||h||p?M1(s)?u=s:uH(s)?u=lH(s):h?(d=!1,u=oH(l,!0)):p?(d=!1,u=sH(l,!0)):u=[]:vH(l)||O1(l)?(u=s,O1(s)?u=mH(s):(!hH(s)||fH(s))&&(u=cH(l))):d=!1}d&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),E1(e,n,u)}var bH=pH,yH=md,xH=p_,SH=b_,CH=bH,wH=ni,$H=jl,_H=M_;function R_(e,t,n,r,i){e!==t&&SH(t,function(a,o){if(i||(i=new yH),wH(a))CH(e,t,o,n,R_,r,i);else{var s=r?r(_H(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),xH(e,o,s)}},$H)}var EH=R_;function OH(e){return e}var Cd=OH;function MH(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var TH=MH,RH=TH,R1=Math.max;function PH(e,t,n){return t=R1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=R1(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),RH(e,this,s)}}var P_=PH;function IH(e){return function(){return e}}var AH=IH,NH=AH,P1=m_,kH=Cd,jH=P1?function(e,t){return P1(e,"toString",{configurable:!0,enumerable:!1,value:NH(t),writable:!0})}:kH,LH=jH,DH=800,FH=16,zH=Date.now;function BH(e){var t=0,n=0;return function(){var r=zH(),i=FH-(r-n);if(n=r,i>0){if(++t>=DH)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var VH=BH,WH=LH,HH=VH,UH=HH(WH),I_=UH,GH=Cd,qH=P_,KH=I_;function YH(e,t){return KH(qH(e,t,GH),e+"")}var Sp=YH,XH=Pl,ZH=Wo,QH=Sd,JH=ni;function eU(e,t,n){if(!JH(n))return!1;var r=typeof t;return(r=="number"?ZH(n)&&QH(t,n.length):r=="string"&&t in n)?XH(n[t],e):!1}var A_=eU,tU=Sp,nU=A_;function rU(e){return tU(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&nU(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var iU=rU,aU=EH,oU=iU,sU=oU(function(e,t,n){aU(e,t,n)}),lU=sU;const cU=rn(lU);var uU=yi,dU=Tr,fU="[object Symbol]";function hU(e){return typeof e=="symbol"||dU(e)&&uU(e)==fU}var wd=hU,vU=tr,gU=wd,mU=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pU=/^\w*$/;function bU(e,t){if(vU(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||gU(e)?!0:pU.test(e)||!mU.test(e)||t!=null&&e in Object(t)}var Cp=bU,N_=Gm,yU="Expected a function";function wp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yU);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(wp.Cache||N_),n}wp.Cache=N_;var xU=wp,SU=xU,CU=500;function wU(e){var t=SU(e,function(r){return n.size===CU&&n.clear(),r}),n=t.cache;return t}var $U=wU,_U=$U,EU=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,OU=/\\(\\)?/g,MU=_U(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(EU,function(n,r,i,a){t.push(i?a.replace(OU,"$1"):r||n)}),t}),TU=MU;function RU(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var $d=RU,I1=Lo,PU=$d,IU=tr,AU=wd,NU=1/0,A1=I1?I1.prototype:void 0,N1=A1?A1.toString:void 0;function k_(e){if(typeof e=="string")return e;if(IU(e))return PU(e,k_)+"";if(AU(e))return N1?N1.call(e):"";var t=e+"";return t=="0"&&1/e==-NU?"-0":t}var kU=k_,jU=kU;function LU(e){return e==null?"":jU(e)}var Ll=LU,DU=tr,FU=Cp,zU=TU,BU=Ll;function VU(e,t){return DU(e)?e:FU(e,t)?[e]:zU(BU(e))}var Go=VU,WU=wd,HU=1/0;function UU(e){if(typeof e=="string"||WU(e))return e;var t=e+"";return t=="0"&&1/e==-HU?"-0":t}var qo=UU,GU=Go,qU=qo;function KU(e,t){t=GU(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qU(t[n++])];return n&&n==r?e:void 0}var Dl=KU,YU=Dl;function XU(e,t,n){var r=e==null?void 0:YU(e,t);return r===void 0?n:r}var j_=XU;const Vr=rn(j_);var ZU=xp,QU=Go,JU=Sd,k1=ni,eG=qo;function tG(e,t,n,r){if(!k1(e))return e;t=QU(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=eG(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=k1(u)?u:JU(t[i+1])?[]:{})}ZU(s,l,c),s=s[l]}return e}var L_=tG,nG=L_;function rG(e,t,n){return e==null?e:nG(e,t,n)}var iG=rG;const Os=rn(iG);function _d(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $p(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ko(){}var ga=.7,Co=1/ga,co="\\s*([+-]?\\d+)\\s*",ul="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",aG=/^#([0-9a-f]{3,8})$/,oG=new RegExp(`^rgb\\(${co},${co},${co}\\)$`),sG=new RegExp(`^rgb\\(${Zr},${Zr},${Zr}\\)$`),lG=new RegExp(`^rgba\\(${co},${co},${co},${ul}\\)$`),cG=new RegExp(`^rgba\\(${Zr},${Zr},${Zr},${ul}\\)$`),uG=new RegExp(`^hsl\\(${ul},${Zr},${Zr}\\)$`),dG=new RegExp(`^hsla\\(${ul},${Zr},${Zr},${ul}\\)$`),j1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};_d(Ko,dl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:L1,formatHex:L1,formatHex8:fG,formatHsl:hG,formatRgb:D1,toString:D1});function L1(){return this.rgb().formatHex()}function fG(){return this.rgb().formatHex8()}function hG(){return F_(this).formatHsl()}function D1(){return this.rgb().formatRgb()}function dl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=aG.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?F1(t):n===3?new Wn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?gc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?gc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=oG.exec(e))?new Wn(t[1],t[2],t[3],1):(t=sG.exec(e))?new Wn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lG.exec(e))?gc(t[1],t[2],t[3],t[4]):(t=cG.exec(e))?gc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=uG.exec(e))?V1(t[1],t[2]/100,t[3]/100,1):(t=dG.exec(e))?V1(t[1],t[2]/100,t[3]/100,t[4]):j1.hasOwnProperty(e)?F1(j1[e]):e==="transparent"?new Wn(NaN,NaN,NaN,0):null}function F1(e){return new Wn(e>>16&255,e>>8&255,e&255,1)}function gc(e,t,n,r){return r<=0&&(e=t=n=NaN),new Wn(e,t,n,r)}function D_(e){return e instanceof Ko||(e=dl(e)),e?(e=e.rgb(),new Wn(e.r,e.g,e.b,e.opacity)):new Wn}function wo(e,t,n,r){return arguments.length===1?D_(e):new Wn(e,t,n,r??1)}function Wn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}_d(Wn,wo,$p(Ko,{brighter(e){return e=e==null?Co:Math.pow(Co,e),new Wn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ga:Math.pow(ga,e),new Wn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Wn(la(this.r),la(this.g),la(this.b),gu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:z1,formatHex:z1,formatHex8:vG,formatRgb:B1,toString:B1}));function z1(){return`#${na(this.r)}${na(this.g)}${na(this.b)}`}function vG(){return`#${na(this.r)}${na(this.g)}${na(this.b)}${na((isNaN(this.opacity)?1:this.opacity)*255)}`}function B1(){const e=gu(this.opacity);return`${e===1?"rgb(":"rgba("}${la(this.r)}, ${la(this.g)}, ${la(this.b)}${e===1?")":`, ${e})`}`}function gu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function la(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function na(e){return e=la(e),(e<16?"0":"")+e.toString(16)}function V1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jr(e,t,n,r)}function F_(e){if(e instanceof jr)return new jr(e.h,e.s,e.l,e.opacity);if(e instanceof Ko||(e=dl(e)),!e)return new jr;if(e instanceof jr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new jr(o,s,l,e.opacity)}function gG(e,t,n,r){return arguments.length===1?F_(e):new jr(e,t,n,r??1)}function jr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}_d(jr,gG,$p(Ko,{brighter(e){return e=e==null?Co:Math.pow(Co,e),new jr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ga:Math.pow(ga,e),new jr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Wn(gh(e>=240?e-240:e+120,i,r),gh(e,i,r),gh(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new jr(W1(this.h),mc(this.s),mc(this.l),gu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=gu(this.opacity);return`${e===1?"hsl(":"hsla("}${W1(this.h)}, ${mc(this.s)*100}%, ${mc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function W1(e){return e=(e||0)%360,e<0?e+360:e}function mc(e){return Math.max(0,Math.min(1,e||0))}function gh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const mG=Math.PI/180,pG=180/Math.PI;var z_=-.14861,_p=1.78277,Ep=-.29227,Ed=-.90649,fl=1.97294,H1=fl*Ed,U1=fl*_p,G1=_p*Ep-Ed*z_;function bG(e){if(e instanceof ca)return new ca(e.h,e.s,e.l,e.opacity);e instanceof Wn||(e=D_(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(G1*r+H1*t-U1*n)/(G1+H1-U1),a=r-i,o=(fl*(n-i)-Ep*a)/Ed,s=Math.sqrt(o*o+a*a)/(fl*i*(1-i)),l=s?Math.atan2(o,a)*pG-120:NaN;return new ca(l<0?l+360:l,s,i,e.opacity)}function Jr(e,t,n,r){return arguments.length===1?bG(e):new ca(e,t,n,r??1)}function ca(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}_d(ca,Jr,$p(Ko,{brighter(e){return e=e==null?Co:Math.pow(Co,e),new ca(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ga:Math.pow(ga,e),new ca(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*mG,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Wn(255*(t+n*(z_*r+_p*i)),255*(t+n*(Ep*r+Ed*i)),255*(t+n*(fl*r)),this.opacity)}}));function yG(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function xG(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return yG((n-r/t)*t,o,i,a,s)}}const Od=e=>()=>e;function B_(e,t){return function(n){return e+n*t}}function SG(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function CG(e,t){var n=t-e;return n?B_(e,n>180||n<-180?n-360*Math.round(n/360):n):Od(isNaN(e)?t:e)}function wG(e){return(e=+e)==1?uo:function(t,n){return n-t?SG(t,n,e):Od(isNaN(t)?n:t)}}function uo(e,t){var n=t-e;return n?B_(e,n):Od(isNaN(e)?t:e)}const q1=function e(t){var n=wG(t);function r(i,a){var o=n((i=wo(i)).r,(a=wo(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=uo(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function $G(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=wo(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=a(l),s+""}}}var _G=$G(xG);function EG(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function OG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function MG(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Op(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function TG(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function mu(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function RG(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Op(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var bg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mh=new RegExp(bg.source,"g");function PG(e){return function(){return e}}function IG(e){return function(t){return e(t)+""}}function V_(e,t){var n=bg.lastIndex=mh.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=bg.exec(e))&&(i=mh.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:mu(r,i)})),n=mh.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?IG(l[0].x):PG(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Op(e,t){var n=typeof t,r;return t==null||n==="boolean"?Od(t):(n==="number"?mu:n==="string"?(r=dl(t))?(t=r,q1):V_:t instanceof dl?q1:t instanceof Date?TG:OG(t)?EG:Array.isArray(t)?MG:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RG:mu)(e,t)}function AG(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function W_(e){return function t(n){n=+n;function r(i,a){var o=e((i=Jr(i)).h,(a=Jr(a)).h),s=uo(i.s,a.s),l=uo(i.l,a.l),c=uo(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}W_(CG);var Mp=W_(uo),NG=yi,kG=tr,jG=Tr,LG="[object String]";function DG(e){return typeof e=="string"||!kG(e)&&jG(e)&&NG(e)==LG}var FG=DG;const H_=rn(FG);function zG(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var U_=zG;const dt=rn(U_);function Dc(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function BG(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function G_(e){let t,n,r;e.length!==2?(t=Dc,n=(s,l)=>Dc(e(s),l),r=(s,l)=>e(s)-l):(t=e===Dc||e===BG?e:VG,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:o,right:a}}function VG(){return 0}function WG(e){return e===null?NaN:+e}const HG=G_(Dc),UG=HG.right;G_(WG).center;class K1 extends Map{constructor(t,n=KG){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Y1(this,t))}has(t){return super.has(Y1(this,t))}set(t,n){return super.set(GG(this,t),n)}delete(t){return super.delete(qG(this,t))}}function Y1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function GG({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function qG({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function KG(e){return e!==null&&typeof e=="object"?e.valueOf():e}const YG=Math.sqrt(50),XG=Math.sqrt(10),ZG=Math.sqrt(2);function pu(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=YG?10:a>=XG?5:a>=ZG?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?pu(e,t,n*2):[s,l,c]}function yg(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?pu(t,e,n):pu(e,t,n);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function xg(e,t,n){return t=+t,e=+e,n=+n,pu(e,t,n)[2]}function QG(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?xg(t,e,n):xg(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function JG(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function _a(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const X1=Symbol("implicit");function ra(){var e=new K1,t=[],n=[],r=X1;function i(a){let o=e.get(a);if(o===void 0){if(r!==X1)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new K1;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return ra(t,n).unknown(r)},_a.apply(i,arguments),i}function Tp(){var e=ra().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,p=h?i:r,m=h?r:i;a=(m-p)/Math.max(1,f-l+c*2),s&&(a=Math.floor(a)),p+=(m-p-a*(f-l))*u,o=a*(1-l),s&&(p=Math.round(p),o=Math.round(o));var v=JG(f).map(function(y){return p+a*y});return n(h?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return Tp(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},_a.apply(d(),arguments)}function q_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return q_(t())},e}function eq(){return q_(Tp.apply(null,arguments).paddingInner(1))}function tq(e){return function(){return e}}function nq(e){return+e}var Z1=[0,1];function no(e){return e}function Sg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:tq(isNaN(t)?NaN:.5)}function rq(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function iq(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Sg(i,r),a=n(o,a)):(r=Sg(r,i),a=n(a,o)),function(s){return a(r(s))}}function aq(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Sg(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var l=UG(e,s,1,r)-1;return a[l](i[l](s))}}function Md(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Rp(){var e=Z1,t=Z1,n=Op,r,i,a,o=no,s,l,c;function u(){var f=Math.min(e.length,t.length);return o!==no&&(o=rq(e[0],e[f-1])),s=f>2?aq:iq,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(i((c||(c=s(t,e.map(r),mu)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,nq),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=AG,u()},d.clamp=function(f){return arguments.length?(o=f?!0:no,u()):o!==no},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,h){return r=f,i=h,u()}}function K_(){return Rp()(no,no)}function oq(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function $o(e){return e=bu(Math.abs(e)),e?e[1]:NaN}function sq(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function lq(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var cq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hl(e){if(!(t=cq.exec(e)))throw new Error("invalid format: "+e);var t;return new Pp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}hl.prototype=Pp.prototype;function Pp(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Pp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function uq(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Y_;function dq(e,t){var n=bu(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Y_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+bu(e,Math.max(0,t+a-1))[0]}function Q1(e,t){var n=bu(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const J1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:oq,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Q1(e*100,t),r:Q1,s:dq,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ex(e){return e}var tx=Array.prototype.map,nx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fq(e){var t=e.grouping===void 0||e.thousands===void 0?ex:sq(tx.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?ex:lq(tx.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=hl(d);var f=d.fill,h=d.align,p=d.sign,m=d.symbol,v=d.zero,y=d.width,b=d.comma,x=d.precision,C=d.trim,S=d.type;S==="n"?(b=!0,S="g"):J1[S]||(x===void 0&&(x=12),C=!0,S="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var w=m==="$"?n:m==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",O=m==="$"?r:/[%p]/.test(S)?o:"",E=J1[S],_=/[defgprs%]/.test(S);x=x===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function T(R){var F=w,I=O,P,k,A;if(S==="c")I=E(R)+I,R="";else{R=+R;var M=R<0||1/R<0;if(R=isNaN(R)?l:E(Math.abs(R),x),C&&(R=uq(R)),M&&+R==0&&p!=="+"&&(M=!1),F=(M?p==="("?p:s:p==="-"||p==="("?"":p)+F,I=(S==="s"?nx[8+Y_/3]:"")+I+(M&&p==="("?")":""),_){for(P=-1,k=R.length;++P<k;)if(A=R.charCodeAt(P),48>A||A>57){I=(A===46?i+R.slice(P+1):R.slice(P))+I,R=R.slice(0,P);break}}}b&&!v&&(R=t(R,1/0));var N=F.length+R.length+I.length,j=N<y?new Array(y-N+1).join(f):"";switch(b&&v&&(R=t(j+R,j.length?y-I.length:1/0),j=""),h){case"<":R=F+R+I+j;break;case"=":R=F+j+R+I;break;case"^":R=j.slice(0,N=j.length>>1)+F+R+I+j.slice(N);break;default:R=j+F+R+I;break}return a(R)}return T.toString=function(){return d+""},T}function u(d,f){var h=c((d=hl(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor($o(f)/3)))*3,m=Math.pow(10,-p),v=nx[8+p/3];return function(y){return h(m*y)+v}}return{format:c,formatPrefix:u}}var pc,Ip,X_;hq({thousands:",",grouping:[3],currency:["$",""]});function hq(e){return pc=fq(e),Ip=pc.format,X_=pc.formatPrefix,pc}function vq(e){return Math.max(0,-$o(Math.abs(e)))}function gq(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($o(t)/3)))*3-$o(Math.abs(e)))}function mq(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,$o(t)-$o(e))+1}function pq(e,t,n,r){var i=QG(e,t,n),a;switch(r=hl(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=gq(i,o))&&(r.precision=a),X_(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=mq(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=vq(i))&&(r.precision=a-(r.type==="%")*2);break}}return Ip(r)}function Z_(e){var t=e.domain;return e.ticks=function(n){var r=t();return yg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return pq(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=xg(o,s,n),c===l)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Ap(){var e=K_();return e.copy=function(){return Md(e,Ap())},_a.apply(e,arguments),Z_(e)}function Q_(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function rx(e){return Math.log(e)}function ix(e){return Math.exp(e)}function bq(e){return-Math.log(-e)}function yq(e){return-Math.exp(-e)}function xq(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Sq(e){return e===10?xq:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Cq(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function ax(e){return(t,n)=>-e(-t,n)}function wq(e){const t=e(rx,ix),n=t.domain;let r=10,i,a;function o(){return i=Cq(r),a=Sq(r),n()[0]<0?(i=ax(i),a=ax(a),e(bq,yq)):e(rx,ix),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),p,m;const v=s==null?10:+s;let y=[];if(!(r%1)&&h-f<v){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(p=1;p<r;++p)if(m=f<0?p/a(-f):p*a(f),!(m<c)){if(m>u)break;y.push(m)}}else for(;f<=h;++f)for(p=r-1;p>=1;--p)if(m=f>0?p/a(-f):p*a(f),!(m<c)){if(m>u)break;y.push(m)}y.length*2<v&&(y=yg(c,u,v))}else y=yg(f,h,Math.min(h-f,v)).map(a);return d?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=hl(l)).precision==null&&(l.trim=!0),l=Ip(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(Q_(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function J_(){const e=wq(Rp()).domain([1,10]);return e.copy=()=>Md(e,J_()).base(e.base()),_a.apply(e,arguments),e}function ox(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function sx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function $q(e){var t=1,n=e(ox(t),sx(t));return n.constant=function(r){return arguments.length?e(ox(t=+r),sx(t)):t},Z_(n)}function eE(){var e=$q(Rp());return e.copy=function(){return Md(e,eE()).constant(e.constant())},_a.apply(e,arguments)}const ph=new Date,bh=new Date;function xn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>xn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(ph.setTime(+a),bh.setTime(+o),e(ph),e(bh),Math.floor(n(ph,bh))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const yu=xn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);yu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):yu);yu.range;const ci=1e3,xr=ci*60,ui=xr*60,mi=ui*24,Np=mi*7,lx=mi*30,yh=mi*365,ia=xn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ci)},(e,t)=>(t-e)/ci,e=>e.getUTCSeconds());ia.range;const kp=xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ci)},(e,t)=>{e.setTime(+e+t*xr)},(e,t)=>(t-e)/xr,e=>e.getMinutes());kp.range;const jp=xn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*xr)},(e,t)=>(t-e)/xr,e=>e.getUTCMinutes());jp.range;const Lp=xn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ci-e.getMinutes()*xr)},(e,t)=>{e.setTime(+e+t*ui)},(e,t)=>(t-e)/ui,e=>e.getHours());Lp.range;const Dp=xn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ui)},(e,t)=>(t-e)/ui,e=>e.getUTCHours());Dp.range;const Fl=xn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xr)/mi,e=>e.getDate()-1);Fl.range;const Td=xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mi,e=>e.getUTCDate()-1);Td.range;const tE=xn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mi,e=>Math.floor(e/mi));tE.range;function Ea(e){return xn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xr)/Np)}const Rd=Ea(0),xu=Ea(1),_q=Ea(2),Eq=Ea(3),_o=Ea(4),Oq=Ea(5),Mq=Ea(6);Rd.range;xu.range;_q.range;Eq.range;_o.range;Oq.range;Mq.range;function Oa(e){return xn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Np)}const Pd=Oa(0),Su=Oa(1),Tq=Oa(2),Rq=Oa(3),Eo=Oa(4),Pq=Oa(5),Iq=Oa(6);Pd.range;Su.range;Tq.range;Rq.range;Eo.range;Pq.range;Iq.range;const Fp=xn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Fp.range;const zp=xn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());zp.range;const pi=xn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});pi.range;const bi=xn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());bi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});bi.range;function xh(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Aq(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Nq(e){let t,n,r;e.length!==2?(t=xh,n=(s,l)=>xh(e(s),l),r=(s,l)=>e(s)-l):(t=e===xh||e===Aq?e:kq,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:o,right:a}}function kq(){return 0}const jq=Math.sqrt(50),Lq=Math.sqrt(10),Dq=Math.sqrt(2);function nE(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=jq?10:a>=Lq?5:a>=Dq?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?nE(e,t,n*2):[s,l,c]}function cx(e,t,n){return t=+t,e=+e,n=+n,nE(e,t,n)[2]}function ux(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?cx(t,e,n):cx(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function rE(e,t,n,r,i,a){const o=[[ia,1,ci],[ia,5,5*ci],[ia,15,15*ci],[ia,30,30*ci],[a,1,xr],[a,5,5*xr],[a,15,15*xr],[a,30,30*xr],[i,1,ui],[i,3,3*ui],[i,6,6*ui],[i,12,12*ui],[r,1,mi],[r,2,2*mi],[n,1,Np],[t,1,lx],[t,3,3*lx],[e,1,yh]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),p=h?h.range(c,+u+1):[];return f?p.reverse():p}function l(c,u,d){const f=Math.abs(u-c)/d,h=Nq(([,,v])=>v).right(o,f);if(h===o.length)return e.every(ux(c/yh,u/yh,d));if(h===0)return yu.every(Math.max(ux(c,u,d),1));const[p,m]=o[f/o[h-1][2]<o[h][2]/f?h-1:h];return p.every(m)}return[s,l]}const[Fq,zq]=rE(bi,zp,Pd,tE,Dp,jp),[Bq,Vq]=rE(pi,Fp,Rd,Fl,Lp,kp);function Sh(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ch(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function us(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Wq(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=ds(i),u=fs(i),d=ds(a),f=fs(a),h=ds(o),p=fs(o),m=ds(s),v=fs(s),y=ds(l),b=fs(l),x={a:M,A:N,b:j,B:D,c:null,d:mx,e:mx,f:fK,g:CK,G:$K,H:cK,I:uK,j:dK,L:iE,m:hK,M:vK,p:V,q:X,Q:yx,s:xx,S:gK,u:mK,U:pK,V:bK,w:yK,W:xK,x:null,X:null,y:SK,Y:wK,Z:_K,"%":bx},C={a:q,A:Z,b:J,B:Q,c:null,d:px,e:px,f:TK,g:FK,G:BK,H:EK,I:OK,j:MK,L:oE,m:RK,M:PK,p:K,q:Y,Q:yx,s:xx,S:IK,u:AK,U:NK,V:kK,w:jK,W:LK,x:null,X:null,y:DK,Y:zK,Z:VK,"%":bx},S={a:T,A:R,b:F,B:I,c:P,d:vx,e:vx,f:aK,g:hx,G:fx,H:gx,I:gx,j:tK,L:iK,m:eK,M:nK,p:_,q:Jq,Q:sK,s:lK,S:rK,u:Kq,U:Yq,V:Xq,w:qq,W:Zq,x:k,X:A,y:hx,Y:fx,Z:Qq,"%":oK};x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),C.x=w(n,C),C.X=w(r,C),C.c=w(t,C);function w(W,H){return function(U){var z=[],ne=-1,B=0,re=W.length,ie,ue,me;for(U instanceof Date||(U=new Date(+U));++ne<re;)W.charCodeAt(ne)===37&&(z.push(W.slice(B,ne)),(ue=dx[ie=W.charAt(++ne)])!=null?ie=W.charAt(++ne):ue=ie==="e"?" ":"0",(me=H[ie])&&(ie=me(U,ue)),z.push(ie),B=ne+1);return z.push(W.slice(B,ne)),z.join("")}}function O(W,H){return function(U){var z=us(1900,void 0,1),ne=E(z,W,U+="",0),B,re;if(ne!=U.length)return null;if("Q"in z)return new Date(z.Q);if("s"in z)return new Date(z.s*1e3+("L"in z?z.L:0));if(H&&!("Z"in z)&&(z.Z=0),"p"in z&&(z.H=z.H%12+z.p*12),z.m===void 0&&(z.m="q"in z?z.q:0),"V"in z){if(z.V<1||z.V>53)return null;"w"in z||(z.w=1),"Z"in z?(B=Ch(us(z.y,0,1)),re=B.getUTCDay(),B=re>4||re===0?Su.ceil(B):Su(B),B=Td.offset(B,(z.V-1)*7),z.y=B.getUTCFullYear(),z.m=B.getUTCMonth(),z.d=B.getUTCDate()+(z.w+6)%7):(B=Sh(us(z.y,0,1)),re=B.getDay(),B=re>4||re===0?xu.ceil(B):xu(B),B=Fl.offset(B,(z.V-1)*7),z.y=B.getFullYear(),z.m=B.getMonth(),z.d=B.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),re="Z"in z?Ch(us(z.y,0,1)).getUTCDay():Sh(us(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(re+5)%7:z.w+z.U*7-(re+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,Ch(z)):Sh(z)}}function E(W,H,U,z){for(var ne=0,B=H.length,re=U.length,ie,ue;ne<B;){if(z>=re)return-1;if(ie=H.charCodeAt(ne++),ie===37){if(ie=H.charAt(ne++),ue=S[ie in dx?H.charAt(ne++):ie],!ue||(z=ue(W,U,z))<0)return-1}else if(ie!=U.charCodeAt(z++))return-1}return z}function _(W,H,U){var z=c.exec(H.slice(U));return z?(W.p=u.get(z[0].toLowerCase()),U+z[0].length):-1}function T(W,H,U){var z=h.exec(H.slice(U));return z?(W.w=p.get(z[0].toLowerCase()),U+z[0].length):-1}function R(W,H,U){var z=d.exec(H.slice(U));return z?(W.w=f.get(z[0].toLowerCase()),U+z[0].length):-1}function F(W,H,U){var z=y.exec(H.slice(U));return z?(W.m=b.get(z[0].toLowerCase()),U+z[0].length):-1}function I(W,H,U){var z=m.exec(H.slice(U));return z?(W.m=v.get(z[0].toLowerCase()),U+z[0].length):-1}function P(W,H,U){return E(W,t,H,U)}function k(W,H,U){return E(W,n,H,U)}function A(W,H,U){return E(W,r,H,U)}function M(W){return o[W.getDay()]}function N(W){return a[W.getDay()]}function j(W){return l[W.getMonth()]}function D(W){return s[W.getMonth()]}function V(W){return i[+(W.getHours()>=12)]}function X(W){return 1+~~(W.getMonth()/3)}function q(W){return o[W.getUTCDay()]}function Z(W){return a[W.getUTCDay()]}function J(W){return l[W.getUTCMonth()]}function Q(W){return s[W.getUTCMonth()]}function K(W){return i[+(W.getUTCHours()>=12)]}function Y(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var H=w(W+="",x);return H.toString=function(){return W},H},parse:function(W){var H=O(W+="",!1);return H.toString=function(){return W},H},utcFormat:function(W){var H=w(W+="",C);return H.toString=function(){return W},H},utcParse:function(W){var H=O(W+="",!0);return H.toString=function(){return W},H}}}var dx={"-":"",_:" ",0:"0"},Pn=/^\s*\d+/,Hq=/^%/,Uq=/[\\^$*+?|[\]().{}]/g;function kt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Gq(e){return e.replace(Uq,"\\$&")}function ds(e){return new RegExp("^(?:"+e.map(Gq).join("|")+")","i")}function fs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function qq(e,t,n){var r=Pn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Kq(e,t,n){var r=Pn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Yq(e,t,n){var r=Pn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Xq(e,t,n){var r=Pn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Zq(e,t,n){var r=Pn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function fx(e,t,n){var r=Pn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hx(e,t,n){var r=Pn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Qq(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Jq(e,t,n){var r=Pn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function eK(e,t,n){var r=Pn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function vx(e,t,n){var r=Pn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tK(e,t,n){var r=Pn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function gx(e,t,n){var r=Pn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function nK(e,t,n){var r=Pn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function rK(e,t,n){var r=Pn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function iK(e,t,n){var r=Pn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function aK(e,t,n){var r=Pn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function oK(e,t,n){var r=Hq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function sK(e,t,n){var r=Pn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function lK(e,t,n){var r=Pn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function mx(e,t){return kt(e.getDate(),t,2)}function cK(e,t){return kt(e.getHours(),t,2)}function uK(e,t){return kt(e.getHours()%12||12,t,2)}function dK(e,t){return kt(1+Fl.count(pi(e),e),t,3)}function iE(e,t){return kt(e.getMilliseconds(),t,3)}function fK(e,t){return iE(e,t)+"000"}function hK(e,t){return kt(e.getMonth()+1,t,2)}function vK(e,t){return kt(e.getMinutes(),t,2)}function gK(e,t){return kt(e.getSeconds(),t,2)}function mK(e){var t=e.getDay();return t===0?7:t}function pK(e,t){return kt(Rd.count(pi(e)-1,e),t,2)}function aE(e){var t=e.getDay();return t>=4||t===0?_o(e):_o.ceil(e)}function bK(e,t){return e=aE(e),kt(_o.count(pi(e),e)+(pi(e).getDay()===4),t,2)}function yK(e){return e.getDay()}function xK(e,t){return kt(xu.count(pi(e)-1,e),t,2)}function SK(e,t){return kt(e.getFullYear()%100,t,2)}function CK(e,t){return e=aE(e),kt(e.getFullYear()%100,t,2)}function wK(e,t){return kt(e.getFullYear()%1e4,t,4)}function $K(e,t){var n=e.getDay();return e=n>=4||n===0?_o(e):_o.ceil(e),kt(e.getFullYear()%1e4,t,4)}function _K(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function px(e,t){return kt(e.getUTCDate(),t,2)}function EK(e,t){return kt(e.getUTCHours(),t,2)}function OK(e,t){return kt(e.getUTCHours()%12||12,t,2)}function MK(e,t){return kt(1+Td.count(bi(e),e),t,3)}function oE(e,t){return kt(e.getUTCMilliseconds(),t,3)}function TK(e,t){return oE(e,t)+"000"}function RK(e,t){return kt(e.getUTCMonth()+1,t,2)}function PK(e,t){return kt(e.getUTCMinutes(),t,2)}function IK(e,t){return kt(e.getUTCSeconds(),t,2)}function AK(e){var t=e.getUTCDay();return t===0?7:t}function NK(e,t){return kt(Pd.count(bi(e)-1,e),t,2)}function sE(e){var t=e.getUTCDay();return t>=4||t===0?Eo(e):Eo.ceil(e)}function kK(e,t){return e=sE(e),kt(Eo.count(bi(e),e)+(bi(e).getUTCDay()===4),t,2)}function jK(e){return e.getUTCDay()}function LK(e,t){return kt(Su.count(bi(e)-1,e),t,2)}function DK(e,t){return kt(e.getUTCFullYear()%100,t,2)}function FK(e,t){return e=sE(e),kt(e.getUTCFullYear()%100,t,2)}function zK(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function BK(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Eo(e):Eo.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function VK(){return"+0000"}function bx(){return"%"}function yx(e){return+e}function xx(e){return Math.floor(+e/1e3)}var Ga,lE,cE;WK({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function WK(e){return Ga=Wq(e),lE=Ga.format,Ga.parse,cE=Ga.utcFormat,Ga.utcParse,Ga}function HK(e){return new Date(e)}function UK(e){return e instanceof Date?+e:+new Date(+e)}function Bp(e,t,n,r,i,a,o,s,l,c){var u=K_(),d=u.invert,f=u.domain,h=c(".%L"),p=c(":%S"),m=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),b=c("%b %d"),x=c("%B"),C=c("%Y");function S(w){return(l(w)<w?h:s(w)<w?p:o(w)<w?m:a(w)<w?v:r(w)<w?i(w)<w?y:b:n(w)<w?x:C)(w)}return u.invert=function(w){return new Date(d(w))},u.domain=function(w){return arguments.length?f(Array.from(w,UK)):f().map(HK)},u.ticks=function(w){var O=f();return e(O[0],O[O.length-1],w??10)},u.tickFormat=function(w,O){return O==null?S:c(O)},u.nice=function(w){var O=f();return(!w||typeof w.range!="function")&&(w=t(O[0],O[O.length-1],w??10)),w?f(Q_(O,w)):u},u.copy=function(){return Md(u,Bp(e,t,n,r,i,a,o,s,l,c))},u}function GK(){return _a.apply(Bp(Bq,Vq,pi,Fp,Rd,Fl,Lp,kp,ia,lE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function qK(){return _a.apply(Bp(Fq,zq,bi,zp,Pd,Td,Dp,jp,ia,cE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $t(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const uE=$t("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),dE=$t("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),fE=$t("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),hE=$t("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),vE=$t("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),gE=$t("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),mE=$t("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),pE=$t("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Vp=$t("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),KK=$t("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Xt=e=>_G(e[e.length-1]);var Id=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($t);const YK=Xt(Id);var Ad=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($t);const XK=Xt(Ad);var Nd=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($t);const ZK=Xt(Nd);var kd=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($t);const QK=Xt(kd);var jd=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($t);const JK=Xt(jd);var Ld=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($t);const eY=Xt(Ld);var Dd=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($t);const tY=Xt(Dd);var Fd=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($t);const nY=Xt(Fd);var zd=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($t);const rY=Xt(zd);var Bd=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($t);const iY=Xt(Bd);var Vd=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($t);const aY=Xt(Vd);var Wd=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($t);const oY=Xt(Wd);var Hd=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($t);const sY=Xt(Hd);var Ud=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($t);const lY=Xt(Ud);var Gd=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($t);const cY=Xt(Gd);var qd=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($t);const uY=Xt(qd);var Kd=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($t);const dY=Xt(Kd);var Yd=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($t);const fY=Xt(Yd);var Xd=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($t);const hY=Xt(Xd);var Zd=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($t);const vY=Xt(Zd);var Qd=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($t);const gY=Xt(Qd);var Jd=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($t);const mY=Xt(Jd);var ef=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($t);const pY=Xt(ef);var tf=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($t);const bY=Xt(tf);var nf=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($t);const yY=Xt(nf);var rf=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($t);const xY=Xt(rf);var af=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($t);const SY=Xt(af);function CY(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const wY=Mp(Jr(300,.5,0),Jr(-240,.5,1));var $Y=Mp(Jr(-100,.75,.35),Jr(80,1.5,.8)),_Y=Mp(Jr(260,.75,.35),Jr(80,1.5,.8)),bc=Jr();function EY(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return bc.h=360*e-100,bc.s=1.5-1.5*t,bc.l=.8-.9*t,bc+""}var yc=wo(),OY=Math.PI/3,MY=Math.PI*2/3;function TY(e){var t;return e=(.5-e)*Math.PI,yc.r=255*(t=Math.sin(e))*t,yc.g=255*(t=Math.sin(e+OY))*t,yc.b=255*(t=Math.sin(e+MY))*t,yc+""}function RY(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function of(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const PY=of($t("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var IY=of($t("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),AY=of($t("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),NY=of($t("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),kY=qm,jY=_$,LY=E$,DY=$d,FY=Ho,zY=Km,BY=200;function VY(e,t,n,r){var i=-1,a=jY,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=DY(t,FY(n))),r?(a=LY,o=!1):t.length>=BY&&(a=zY,o=!1,t=new kY(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else a(t,d,r)||l.push(u)}return l}var WY=VY,HY=WY,UY=Sp,GY=E_,qY=UY(function(e,t){return GY(e)?HY(e,t):[]}),KY=qY;const bE=rn(KY);function At(e){return function(){return e}}const Sx=Math.abs,Dn=Math.atan2,qi=Math.cos,YY=Math.max,wh=Math.min,Ur=Math.sin,ro=Math.sqrt,Bn=1e-12,vl=Math.PI,Cu=vl/2,Fc=2*vl;function XY(e){return e>1?0:e<-1?vl:Math.acos(e)}function Cx(e){return e>=1?Cu:e<=-1?-Cu:Math.asin(e)}const Cg=Math.PI,wg=2*Cg,Yi=1e-6,ZY=wg-Yi;function yE(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function QY(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return yE;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let JY=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?yE:QY(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=r-t,c=i-n,u=o-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Yi)if(!(Math.abs(d*l-c*u)>Yi)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,p=i-s,m=l*l+c*c,v=h*h+p*p,y=Math.sqrt(m),b=Math.sqrt(f),x=a*Math.tan((Cg-Math.acos((m+f-v)/(2*y*b)))/2),C=x/b,S=x/y;Math.abs(C-1)>Yi&&this._append`L${t+C*u},${n+C*d}`,this._append`A${a},${a},0,0,${+(d*h>u*p)},${this._x1=t+S*l},${this._y1=n+S*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^o,f=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Yi||Math.abs(this._y1-u)>Yi)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%wg+wg),f>ZY?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>Yi&&this._append`A${r},${r},0,${+(f>=Cg)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Wp(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new JY(t)}function eX(e){return e.innerRadius}function tX(e){return e.outerRadius}function nX(e){return e.startAngle}function rX(e){return e.endAngle}function iX(e){return e&&e.padAngle}function aX(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,d=s-a,f=d*l-u*c;if(!(f*f<Bn))return f=(u*(t-a)-d*(e-i))/f,[e+f*l,t+f*c]}function xc(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/ro(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,p=n+u,m=r+d,v=(f+p)/2,y=(h+m)/2,b=p-f,x=m-h,C=b*b+x*x,S=i-a,w=f*m-p*h,O=(x<0?-1:1)*ro(YY(0,S*S*C-w*w)),E=(w*x-b*O)/C,_=(-w*b-x*O)/C,T=(w*x+b*O)/C,R=(-w*b+x*O)/C,F=E-v,I=_-y,P=T-v,k=R-y;return F*F+I*I>P*P+k*k&&(E=T,_=R),{cx:E,cy:_,x01:-u,y01:-d,x11:E*(i/S-1),y11:_*(i/S-1)}}function oX(){var e=eX,t=tX,n=At(0),r=null,i=nX,a=rX,o=iX,s=null,l=Wp(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-Cu,m=a.apply(this,arguments)-Cu,v=Sx(m-p),y=m>p;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>Bn))s.moveTo(0,0);else if(v>Fc-Bn)s.moveTo(h*qi(p),h*Ur(p)),s.arc(0,0,h,p,m,!y),f>Bn&&(s.moveTo(f*qi(m),f*Ur(m)),s.arc(0,0,f,m,p,y));else{var b=p,x=m,C=p,S=m,w=v,O=v,E=o.apply(this,arguments)/2,_=E>Bn&&(r?+r.apply(this,arguments):ro(f*f+h*h)),T=wh(Sx(h-f)/2,+n.apply(this,arguments)),R=T,F=T,I,P;if(_>Bn){var k=Cx(_/f*Ur(E)),A=Cx(_/h*Ur(E));(w-=k*2)>Bn?(k*=y?1:-1,C+=k,S-=k):(w=0,C=S=(p+m)/2),(O-=A*2)>Bn?(A*=y?1:-1,b+=A,x-=A):(O=0,b=x=(p+m)/2)}var M=h*qi(b),N=h*Ur(b),j=f*qi(S),D=f*Ur(S);if(T>Bn){var V=h*qi(x),X=h*Ur(x),q=f*qi(C),Z=f*Ur(C),J;if(v<vl)if(J=aX(M,N,q,Z,V,X,j,D)){var Q=M-J[0],K=N-J[1],Y=V-J[0],W=X-J[1],H=1/Ur(XY((Q*Y+K*W)/(ro(Q*Q+K*K)*ro(Y*Y+W*W)))/2),U=ro(J[0]*J[0]+J[1]*J[1]);R=wh(T,(f-U)/(H-1)),F=wh(T,(h-U)/(H+1))}else R=F=0}O>Bn?F>Bn?(I=xc(q,Z,M,N,h,F,y),P=xc(V,X,j,D,h,F,y),s.moveTo(I.cx+I.x01,I.cy+I.y01),F<T?s.arc(I.cx,I.cy,F,Dn(I.y01,I.x01),Dn(P.y01,P.x01),!y):(s.arc(I.cx,I.cy,F,Dn(I.y01,I.x01),Dn(I.y11,I.x11),!y),s.arc(0,0,h,Dn(I.cy+I.y11,I.cx+I.x11),Dn(P.cy+P.y11,P.cx+P.x11),!y),s.arc(P.cx,P.cy,F,Dn(P.y11,P.x11),Dn(P.y01,P.x01),!y))):(s.moveTo(M,N),s.arc(0,0,h,b,x,!y)):s.moveTo(M,N),!(f>Bn)||!(w>Bn)?s.lineTo(j,D):R>Bn?(I=xc(j,D,V,X,f,-R,y),P=xc(M,N,q,Z,f,-R,y),s.lineTo(I.cx+I.x01,I.cy+I.y01),R<T?s.arc(I.cx,I.cy,R,Dn(I.y01,I.x01),Dn(P.y01,P.x01),!y):(s.arc(I.cx,I.cy,R,Dn(I.y01,I.x01),Dn(I.y11,I.x11),!y),s.arc(0,0,f,Dn(I.cy+I.y11,I.cx+I.x11),Dn(P.cy+P.y11,P.cx+P.x11),y),s.arc(P.cx,P.cy,R,Dn(P.y11,P.x11),Dn(P.y01,P.x01),!y))):s.arc(0,0,f,S,C,y)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-vl/2;return[qi(d)*u,Ur(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:At(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:At(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:At(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:At(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:At(+u),c):i},c.endAngle=function(u){return arguments.length?(a=typeof u=="function"?u:At(+u),c):a},c.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:At(+u),c):o},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Hp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xE(e){this._context=e}xE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Up(e){return new xE(e)}function SE(e){return e[0]}function CE(e){return e[1]}function gl(e,t){var n=At(!0),r=null,i=Up,a=null,o=Wp(s);e=typeof e=="function"?e:e===void 0?SE:At(e),t=typeof t=="function"?t:t===void 0?CE:At(t);function s(l){var c,u=(l=Hp(l)).length,d,f=!1,h;for(r==null&&(a=i(h=o())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,c,l),+t(d,c,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:At(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:At(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:At(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),s):r},s}function sX(e,t,n){var r=null,i=At(!0),a=null,o=Up,s=null,l=Wp(c);e=typeof e=="function"?e:e===void 0?SE:At(+e),t=typeof t=="function"?t:At(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?CE:At(+n);function c(d){var f,h,p,m=(d=Hp(d)).length,v,y=!1,b,x=new Array(m),C=new Array(m);for(a==null&&(s=o(b=l())),f=0;f<=m;++f){if(!(f<m&&i(v=d[f],f,d))===y)if(y=!y)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=f-1;p>=h;--p)s.point(x[p],C[p]);s.lineEnd(),s.areaEnd()}y&&(x[f]=+e(v,f,d),C[f]=+t(v,f,d),s.point(r?+r(v,f,d):x[f],n?+n(v,f,d):C[f]))}if(b)return s=null,b+""||null}function u(){return gl().defined(i).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:At(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:At(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:At(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:At(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:At(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:At(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:At(!!d),c):i},c.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),c):a},c}function lX(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function cX(e){return e}function uX(){var e=cX,t=lX,n=null,r=At(0),i=At(Fc),a=At(0);function o(s){var l,c=(s=Hp(s)).length,u,d,f=0,h=new Array(c),p=new Array(c),m=+r.apply(this,arguments),v=Math.min(Fc,Math.max(-Fc,i.apply(this,arguments)-m)),y,b=Math.min(Math.abs(v)/c,a.apply(this,arguments)),x=b*(v<0?-1:1),C;for(l=0;l<c;++l)(C=p[h[l]=l]=+e(s[l],l,s))>0&&(f+=C);for(t!=null?h.sort(function(S,w){return t(p[S],p[w])}):n!=null&&h.sort(function(S,w){return n(s[S],s[w])}),l=0,d=f?(v-c*x)/f:0;l<c;++l,m=y)u=h[l],C=p[u],y=m+(C>0?C*d:0)+x,p[u]={data:s[u],index:l,value:C,startAngle:m,endAngle:y,padAngle:b};return p}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:At(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:At(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:At(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:At(+s),o):a},o}function ki(){}function wu(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function sf(e){this._context=e}sf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dX(e){return new sf(e)}function wE(e){this._context=e}wE.prototype={areaStart:ki,areaEnd:ki,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:wu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fX(e){return new wE(e)}function $E(e){this._context=e}$E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:wu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hX(e){return new $E(e)}function _E(e,t){this._basis=new sf(e),this._beta=t}_E.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const vX=function e(t){function n(r){return t===1?new sf(r):new _E(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function $u(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Gp(e,t){this._context=e,this._k=(1-t)/6}Gp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:$u(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:$u(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const gX=function e(t){function n(r){return new Gp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function qp(e,t){this._context=e,this._k=(1-t)/6}qp.prototype={areaStart:ki,areaEnd:ki,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:$u(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mX=function e(t){function n(r){return new qp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Kp(e,t){this._context=e,this._k=(1-t)/6}Kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:$u(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pX=function e(t){function n(r){return new Kp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Yp(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Bn){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Bn){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function EE(e,t){this._context=e,this._alpha=t}EE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Yp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const bX=function e(t){function n(r){return t?new EE(r,t):new Gp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function OE(e,t){this._context=e,this._alpha=t}OE.prototype={areaStart:ki,areaEnd:ki,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Yp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const yX=function e(t){function n(r){return t?new OE(r,t):new qp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ME(e,t){this._context=e,this._alpha=t}ME.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Yp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xX=function e(t){function n(r){return t?new ME(r,t):new Kp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function TE(e){this._context=e}TE.prototype={areaStart:ki,areaEnd:ki,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function SX(e){return new TE(e)}function wx(e){return e<0?-1:1}function $x(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(wx(a)+wx(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function _x(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function $h(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function _u(e){this._context=e}_u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$h(this,this._t0,_x(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,$h(this,_x(this,n=$x(this,e,t)),n);break;default:$h(this,this._t0,n=$x(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function RE(e){this._context=new PE(e)}(RE.prototype=Object.create(_u.prototype)).point=function(e,t){_u.prototype.point.call(this,t,e)};function PE(e){this._context=e}PE.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function IE(e){return new _u(e)}function AE(e){return new RE(e)}function NE(e){this._context=e}NE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ex(e),i=Ex(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ex(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function CX(e){return new NE(e)}function lf(e,t){this._context=e,this._t=t}lf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function wX(e){return new lf(e,.5)}function $X(e){return new lf(e,0)}function _X(e){return new lf(e,1)}function EX(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Eu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function OX(e){return e=Eu(Math.abs(e)),e?e[1]:NaN}function MX(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function TX(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var RX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $g(e){if(!(t=RX.exec(e)))throw new Error("invalid format: "+e);var t;return new Xp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}$g.prototype=Xp.prototype;function Xp(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Xp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function PX(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var kE;function IX(e,t){var n=Eu(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(kE=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Eu(e,Math.max(0,t+a-1))[0]}function Ox(e,t){var n=Eu(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Mx={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:EX,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Ox(e*100,t)},r:Ox,s:IX,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Tx(e){return e}var Rx=Array.prototype.map,Px=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function AX(e){var t=e.grouping===void 0||e.thousands===void 0?Tx:MX(Rx.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Tx:TX(Rx.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=$g(d);var f=d.fill,h=d.align,p=d.sign,m=d.symbol,v=d.zero,y=d.width,b=d.comma,x=d.precision,C=d.trim,S=d.type;S==="n"?(b=!0,S="g"):Mx[S]||(x===void 0&&(x=12),C=!0,S="g"),(v||f==="0"&&h==="=")&&(v=!0,f="0",h="=");var w=m==="$"?n:m==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",O=m==="$"?r:/[%p]/.test(S)?o:"",E=Mx[S],_=/[defgprs%]/.test(S);x=x===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function T(R){var F=w,I=O,P,k,A;if(S==="c")I=E(R)+I,R="";else{R=+R;var M=R<0||1/R<0;if(R=isNaN(R)?l:E(Math.abs(R),x),C&&(R=PX(R)),M&&+R==0&&p!=="+"&&(M=!1),F=(M?p==="("?p:s:p==="-"||p==="("?"":p)+F,I=(S==="s"?Px[8+kE/3]:"")+I+(M&&p==="("?")":""),_){for(P=-1,k=R.length;++P<k;)if(A=R.charCodeAt(P),48>A||A>57){I=(A===46?i+R.slice(P+1):R.slice(P))+I,R=R.slice(0,P);break}}}b&&!v&&(R=t(R,1/0));var N=F.length+R.length+I.length,j=N<y?new Array(y-N+1).join(f):"";switch(b&&v&&(R=t(j+R,j.length?y-I.length:1/0),j=""),h){case"<":R=F+R+I+j;break;case"=":R=F+j+R+I;break;case"^":R=j.slice(0,N=j.length>>1)+F+R+I+j.slice(N);break;default:R=j+F+R+I;break}return a(R)}return T.toString=function(){return d+""},T}function u(d,f){var h=c((d=$g(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(OX(f)/3)))*3,m=Math.pow(10,-p),v=Px[8+p/3];return function(y){return h(m*y)+v}}return{format:c,formatPrefix:u}}var Sc,Zp;NX({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function NX(e){return Sc=AX(e),Zp=Sc.format,Sc.formatPrefix,Sc}var _h=new Date,Eh=new Date;function xi(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var l=[],c;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=function(a){return xi(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return _h.setTime(+a),Eh.setTime(+o),e(_h),e(Eh),Math.floor(n(_h,Eh))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}const kX=1e3,Qp=kX*60,jX=Qp*60,Jp=jX*24,jE=Jp*7;var e0=xi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qp)/Jp,e=>e.getDate()-1);e0.range;function Ma(e){return xi(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Qp)/jE})}var LE=Ma(0),Ou=Ma(1),LX=Ma(2),DX=Ma(3),Oo=Ma(4),FX=Ma(5),zX=Ma(6);LE.range;Ou.range;LX.range;DX.range;Oo.range;FX.range;zX.range;var ma=xi(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ma.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:xi(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};ma.range;var t0=xi(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Jp},function(e){return e.getUTCDate()-1});t0.range;function Ta(e){return xi(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/jE})}var DE=Ta(0),Mu=Ta(1),BX=Ta(2),VX=Ta(3),Mo=Ta(4),WX=Ta(5),HX=Ta(6);DE.range;Mu.range;BX.range;VX.range;Mo.range;WX.range;HX.range;var pa=xi(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});pa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:xi(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};pa.range;function Ix(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function FE(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Oh(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function Mh(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Th(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function hs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function UX(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=vs(i),u=gs(i),d=vs(a),f=gs(a),h=vs(o),p=gs(o),m=vs(s),v=gs(s),y=vs(l),b=gs(l),x={a:M,A:N,b:j,B:D,c:null,d:Dx,e:Dx,f:vZ,g:$Z,G:EZ,H:dZ,I:fZ,j:hZ,L:zE,m:gZ,M:mZ,p:V,q:X,Q:Bx,s:Vx,S:pZ,u:bZ,U:yZ,V:xZ,w:SZ,W:CZ,x:null,X:null,y:wZ,Y:_Z,Z:OZ,"%":zx},C={a:q,A:Z,b:J,B:Q,c:null,d:Fx,e:Fx,f:PZ,g:BZ,G:WZ,H:MZ,I:TZ,j:RZ,L:VE,m:IZ,M:AZ,p:K,q:Y,Q:Bx,s:Vx,S:NZ,u:kZ,U:jZ,V:LZ,w:DZ,W:FZ,x:null,X:null,y:zZ,Y:VZ,Z:HZ,"%":zx},S={a:T,A:R,b:F,B:I,c:P,d:jx,e:jx,f:sZ,g:kx,G:Nx,H:Lx,I:Lx,j:rZ,L:oZ,m:nZ,M:iZ,p:_,q:tZ,Q:cZ,s:uZ,S:aZ,u:XX,U:ZX,V:QX,w:YX,W:JX,x:k,X:A,y:kx,Y:Nx,Z:eZ,"%":lZ};x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),C.x=w(n,C),C.X=w(r,C),C.c=w(t,C);function w(W,H){return function(U){var z=[],ne=-1,B=0,re=W.length,ie,ue,me;for(U instanceof Date||(U=new Date(+U));++ne<re;)W.charCodeAt(ne)===37&&(z.push(W.slice(B,ne)),(ue=Ax[ie=W.charAt(++ne)])!=null?ie=W.charAt(++ne):ue=ie==="e"?" ":"0",(me=H[ie])&&(ie=me(U,ue)),z.push(ie),B=ne+1);return z.push(W.slice(B,ne)),z.join("")}}function O(W,H){return function(U){var z=hs(1900,void 0,1),ne=E(z,W,U+="",0),B,re;if(ne!=U.length)return null;if("Q"in z)return new Date(z.Q);if("s"in z)return new Date(z.s*1e3+("L"in z?z.L:0));if(H&&!("Z"in z)&&(z.Z=0),"p"in z&&(z.H=z.H%12+z.p*12),z.m===void 0&&(z.m="q"in z?z.q:0),"V"in z){if(z.V<1||z.V>53)return null;"w"in z||(z.w=1),"Z"in z?(B=Th(hs(z.y,0,1)),re=B.getUTCDay(),B=re>4||re===0?Mu.ceil(B):Mu(B),B=t0.offset(B,(z.V-1)*7),z.y=B.getUTCFullYear(),z.m=B.getUTCMonth(),z.d=B.getUTCDate()+(z.w+6)%7):(B=Mh(hs(z.y,0,1)),re=B.getDay(),B=re>4||re===0?Ou.ceil(B):Ou(B),B=e0.offset(B,(z.V-1)*7),z.y=B.getFullYear(),z.m=B.getMonth(),z.d=B.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),re="Z"in z?Th(hs(z.y,0,1)).getUTCDay():Mh(hs(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(re+5)%7:z.w+z.U*7-(re+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,Th(z)):Mh(z)}}function E(W,H,U,z){for(var ne=0,B=H.length,re=U.length,ie,ue;ne<B;){if(z>=re)return-1;if(ie=H.charCodeAt(ne++),ie===37){if(ie=H.charAt(ne++),ue=S[ie in Ax?H.charAt(ne++):ie],!ue||(z=ue(W,U,z))<0)return-1}else if(ie!=U.charCodeAt(z++))return-1}return z}function _(W,H,U){var z=c.exec(H.slice(U));return z?(W.p=u.get(z[0].toLowerCase()),U+z[0].length):-1}function T(W,H,U){var z=h.exec(H.slice(U));return z?(W.w=p.get(z[0].toLowerCase()),U+z[0].length):-1}function R(W,H,U){var z=d.exec(H.slice(U));return z?(W.w=f.get(z[0].toLowerCase()),U+z[0].length):-1}function F(W,H,U){var z=y.exec(H.slice(U));return z?(W.m=b.get(z[0].toLowerCase()),U+z[0].length):-1}function I(W,H,U){var z=m.exec(H.slice(U));return z?(W.m=v.get(z[0].toLowerCase()),U+z[0].length):-1}function P(W,H,U){return E(W,t,H,U)}function k(W,H,U){return E(W,n,H,U)}function A(W,H,U){return E(W,r,H,U)}function M(W){return o[W.getDay()]}function N(W){return a[W.getDay()]}function j(W){return l[W.getMonth()]}function D(W){return s[W.getMonth()]}function V(W){return i[+(W.getHours()>=12)]}function X(W){return 1+~~(W.getMonth()/3)}function q(W){return o[W.getUTCDay()]}function Z(W){return a[W.getUTCDay()]}function J(W){return l[W.getUTCMonth()]}function Q(W){return s[W.getUTCMonth()]}function K(W){return i[+(W.getUTCHours()>=12)]}function Y(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var H=w(W+="",x);return H.toString=function(){return W},H},parse:function(W){var H=O(W+="",!1);return H.toString=function(){return W},H},utcFormat:function(W){var H=w(W+="",C);return H.toString=function(){return W},H},utcParse:function(W){var H=O(W+="",!0);return H.toString=function(){return W},H}}}var Ax={"-":"",_:" ",0:"0"},In=/^\s*\d+/,GX=/^%/,qX=/[\\^$*+?|[\]().{}]/g;function jt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function KX(e){return e.replace(qX,"\\$&")}function vs(e){return new RegExp("^(?:"+e.map(KX).join("|")+")","i")}function gs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function YX(e,t,n){var r=In.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function XX(e,t,n){var r=In.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ZX(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function QX(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function JX(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Nx(e,t,n){var r=In.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function kx(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function eZ(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function tZ(e,t,n){var r=In.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function nZ(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function jx(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rZ(e,t,n){var r=In.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Lx(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function iZ(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function aZ(e,t,n){var r=In.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function oZ(e,t,n){var r=In.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function sZ(e,t,n){var r=In.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function lZ(e,t,n){var r=GX.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function cZ(e,t,n){var r=In.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function uZ(e,t,n){var r=In.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Dx(e,t){return jt(e.getDate(),t,2)}function dZ(e,t){return jt(e.getHours(),t,2)}function fZ(e,t){return jt(e.getHours()%12||12,t,2)}function hZ(e,t){return jt(1+e0.count(ma(e),e),t,3)}function zE(e,t){return jt(e.getMilliseconds(),t,3)}function vZ(e,t){return zE(e,t)+"000"}function gZ(e,t){return jt(e.getMonth()+1,t,2)}function mZ(e,t){return jt(e.getMinutes(),t,2)}function pZ(e,t){return jt(e.getSeconds(),t,2)}function bZ(e){var t=e.getDay();return t===0?7:t}function yZ(e,t){return jt(LE.count(ma(e)-1,e),t,2)}function BE(e){var t=e.getDay();return t>=4||t===0?Oo(e):Oo.ceil(e)}function xZ(e,t){return e=BE(e),jt(Oo.count(ma(e),e)+(ma(e).getDay()===4),t,2)}function SZ(e){return e.getDay()}function CZ(e,t){return jt(Ou.count(ma(e)-1,e),t,2)}function wZ(e,t){return jt(e.getFullYear()%100,t,2)}function $Z(e,t){return e=BE(e),jt(e.getFullYear()%100,t,2)}function _Z(e,t){return jt(e.getFullYear()%1e4,t,4)}function EZ(e,t){var n=e.getDay();return e=n>=4||n===0?Oo(e):Oo.ceil(e),jt(e.getFullYear()%1e4,t,4)}function OZ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+jt(t/60|0,"0",2)+jt(t%60,"0",2)}function Fx(e,t){return jt(e.getUTCDate(),t,2)}function MZ(e,t){return jt(e.getUTCHours(),t,2)}function TZ(e,t){return jt(e.getUTCHours()%12||12,t,2)}function RZ(e,t){return jt(1+t0.count(pa(e),e),t,3)}function VE(e,t){return jt(e.getUTCMilliseconds(),t,3)}function PZ(e,t){return VE(e,t)+"000"}function IZ(e,t){return jt(e.getUTCMonth()+1,t,2)}function AZ(e,t){return jt(e.getUTCMinutes(),t,2)}function NZ(e,t){return jt(e.getUTCSeconds(),t,2)}function kZ(e){var t=e.getUTCDay();return t===0?7:t}function jZ(e,t){return jt(DE.count(pa(e)-1,e),t,2)}function WE(e){var t=e.getUTCDay();return t>=4||t===0?Mo(e):Mo.ceil(e)}function LZ(e,t){return e=WE(e),jt(Mo.count(pa(e),e)+(pa(e).getUTCDay()===4),t,2)}function DZ(e){return e.getUTCDay()}function FZ(e,t){return jt(Mu.count(pa(e)-1,e),t,2)}function zZ(e,t){return jt(e.getUTCFullYear()%100,t,2)}function BZ(e,t){return e=WE(e),jt(e.getUTCFullYear()%100,t,2)}function VZ(e,t){return jt(e.getUTCFullYear()%1e4,t,4)}function WZ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Mo(e):Mo.ceil(e),jt(e.getUTCFullYear()%1e4,t,4)}function HZ(){return"+0000"}function zx(){return"%"}function Bx(e){return+e}function Vx(e){return Math.floor(+e/1e3)}var qa,n0,HE,UE;UZ({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function UZ(e){return qa=UX(e),n0=qa.format,HE=qa.parse,qa.utcFormat,UE=qa.utcParse,qa}var GZ=Dl,qZ=L_,KZ=Go;function YZ(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=GZ(e,o);n(s,o)&&qZ(a,KZ(o,e),s)}return a}var XZ=YZ;function ZZ(e,t){return e!=null&&t in Object(e)}var QZ=ZZ,JZ=Go,eQ=pd,tQ=tr,nQ=Sd,rQ=pp,iQ=qo;function aQ(e,t,n){t=JZ(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=iQ(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&rQ(i)&&nQ(o,i)&&(tQ(e)||eQ(e)))}var oQ=aQ,sQ=QZ,lQ=oQ;function cQ(e,t){return e!=null&&lQ(e,t,sQ)}var GE=cQ,uQ=XZ,dQ=GE;function fQ(e,t){return uQ(e,t,function(n,r){return dQ(e,r)})}var hQ=fQ;function vQ(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var r0=vQ,Wx=Lo,gQ=pd,mQ=tr,Hx=Wx?Wx.isConcatSpreadable:void 0;function pQ(e){return mQ(e)||gQ(e)||!!(Hx&&e&&e[Hx])}var bQ=pQ,yQ=r0,xQ=bQ;function qE(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=xQ),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?qE(s,t-1,n,r,i):yQ(i,s):r||(i[i.length]=s)}return i}var KE=qE,SQ=KE;function CQ(e){var t=e==null?0:e.length;return t?SQ(e,1):[]}var wQ=CQ,$Q=wQ,_Q=P_,EQ=I_;function OQ(e){return EQ(_Q(e,void 0,$Q),e+"")}var YE=OQ,MQ=hQ,TQ=YE,RQ=TQ(function(e,t){return e==null?{}:MQ(e,t)}),PQ=RQ;const IQ=rn(PQ);function AQ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var NQ=AQ,kQ=qm,jQ=NQ,LQ=Km,DQ=1,FQ=2;function zQ(e,t,n,r,i,a){var o=n&DQ,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&FQ?new kQ:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var v=o?r(m,p,d,t,e,a):r(p,m,d,e,t,a);if(v!==void 0){if(v)continue;f=!1;break}if(h){if(!jQ(t,function(y,b){if(!LQ(h,b)&&(p===y||i(p,y,n,r,a)))return h.push(b)})){f=!1;break}}else if(!(p===m||i(p,m,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var XE=zQ;function BQ(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var VQ=BQ,Ux=Lo,Gx=x_,WQ=Pl,HQ=XE,UQ=VQ,GQ=Ym,qQ=1,KQ=2,YQ="[object Boolean]",XQ="[object Date]",ZQ="[object Error]",QQ="[object Map]",JQ="[object Number]",eJ="[object RegExp]",tJ="[object Set]",nJ="[object String]",rJ="[object Symbol]",iJ="[object ArrayBuffer]",aJ="[object DataView]",qx=Ux?Ux.prototype:void 0,Rh=qx?qx.valueOf:void 0;function oJ(e,t,n,r,i,a,o){switch(n){case aJ:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case iJ:return!(e.byteLength!=t.byteLength||!a(new Gx(e),new Gx(t)));case YQ:case XQ:case JQ:return WQ(+e,+t);case ZQ:return e.name==t.name&&e.message==t.message;case eJ:case nJ:return e==t+"";case QQ:var s=UQ;case tJ:var l=r&qQ;if(s||(s=GQ),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=KQ,o.set(e,t);var u=HQ(s(e),s(t),r,i,a,o);return o.delete(e),u;case rJ:if(Rh)return Rh.call(e)==Rh.call(t)}return!1}var sJ=oJ,lJ=r0,cJ=tr;function uJ(e,t,n){var r=t(e);return cJ(e)?r:lJ(r,n(e))}var ZE=uJ;function dJ(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var QE=dJ;function fJ(){return[]}var JE=fJ,hJ=QE,vJ=JE,gJ=Object.prototype,mJ=gJ.propertyIsEnumerable,Kx=Object.getOwnPropertySymbols,pJ=Kx?function(e){return e==null?[]:(e=Object(e),hJ(Kx(e),function(t){return mJ.call(e,t)}))}:vJ,i0=pJ,bJ=w_,yJ=bJ(Object.keys,Object),xJ=yJ,SJ=mp,CJ=xJ,wJ=Object.prototype,$J=wJ.hasOwnProperty;function _J(e){if(!SJ(e))return CJ(e);var t=[];for(var n in Object(e))$J.call(e,n)&&n!="constructor"&&t.push(n);return t}var EJ=_J,OJ=T_,MJ=EJ,TJ=Wo;function RJ(e){return TJ(e)?OJ(e):MJ(e)}var zl=RJ,PJ=ZE,IJ=i0,AJ=zl;function NJ(e){return PJ(e,AJ,IJ)}var eO=NJ,Yx=eO,kJ=1,jJ=Object.prototype,LJ=jJ.hasOwnProperty;function DJ(e,t,n,r,i,a){var o=n&kJ,s=Yx(e),l=s.length,c=Yx(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var f=s[d];if(!(o?f in t:LJ.call(t,f)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var v=o;++d<l;){f=s[d];var y=e[f],b=t[f];if(r)var x=o?r(b,y,f,t,e,a):r(y,b,f,e,t,a);if(!(x===void 0?y===b||i(y,b,n,r,a):x)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var C=e.constructor,S=t.constructor;C!=S&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof S=="function"&&S instanceof S)&&(m=!1)}return a.delete(e),a.delete(t),m}var FJ=DJ,zJ=wa,BJ=ti,VJ=zJ(BJ,"DataView"),WJ=VJ,HJ=wa,UJ=ti,GJ=HJ(UJ,"Promise"),qJ=GJ,KJ=wa,YJ=ti,XJ=KJ(YJ,"WeakMap"),ZJ=XJ,_g=WJ,Eg=Um,Og=qJ,Mg=O$,Tg=ZJ,tO=yi,Yo=$$,Xx="[object Map]",QJ="[object Object]",Zx="[object Promise]",Qx="[object Set]",Jx="[object WeakMap]",eS="[object DataView]",JJ=Yo(_g),eee=Yo(Eg),tee=Yo(Og),nee=Yo(Mg),ree=Yo(Tg),Xi=tO;(_g&&Xi(new _g(new ArrayBuffer(1)))!=eS||Eg&&Xi(new Eg)!=Xx||Og&&Xi(Og.resolve())!=Zx||Mg&&Xi(new Mg)!=Qx||Tg&&Xi(new Tg)!=Jx)&&(Xi=function(e){var t=tO(e),n=t==QJ?e.constructor:void 0,r=n?Yo(n):"";if(r)switch(r){case JJ:return eS;case eee:return Xx;case tee:return Zx;case nee:return Qx;case ree:return Jx}return t});var cf=Xi,Ph=md,iee=XE,aee=sJ,oee=FJ,tS=cf,nS=tr,rS=bd,see=yp,lee=1,iS="[object Arguments]",aS="[object Array]",Cc="[object Object]",cee=Object.prototype,oS=cee.hasOwnProperty;function uee(e,t,n,r,i,a){var o=nS(e),s=nS(t),l=o?aS:tS(e),c=s?aS:tS(t);l=l==iS?Cc:l,c=c==iS?Cc:c;var u=l==Cc,d=c==Cc,f=l==c;if(f&&rS(e)){if(!rS(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Ph),o||see(e)?iee(e,t,n,r,i,a):aee(e,t,l,n,r,i,a);if(!(n&lee)){var h=u&&oS.call(e,"__wrapped__"),p=d&&oS.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,v=p?t.value():t;return a||(a=new Ph),i(m,v,n,r,a)}}return f?(a||(a=new Ph),oee(e,t,n,r,i,a)):!1}var dee=uee,fee=dee,sS=Tr;function nO(e,t,n,r,i){return e===t?!0:e==null||t==null||!sS(e)&&!sS(t)?e!==e&&t!==t:fee(e,t,n,r,nO,i)}var a0=nO,hee=a0;function vee(e,t){return hee(e,t)}var gee=vee;const mee=rn(gee);var pee={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function Sr(){return Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sr.apply(this,arguments)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Rg(e,t)}function uf(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var bee=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],yee=function(e,t){return Sr({},t,e)},xee=function(e,t){var n=cU({},e,t);return bee.forEach(function(r){Os(n,r,yee(Vr(n,r),n.text))}),n},rO=$.createContext(),iO=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?"default":i,o=$.useMemo(function(){var s=H_(a)?up[a]:a;return{animate:r,config:s}},[r,a]);return L.jsx(rO.Provider,{value:o,children:t})},lS={animate:de.bool,motionConfig:de.oneOfType([de.oneOf(Object.keys(up)),de.shape({mass:de.number,tension:de.number,friction:de.number,clamp:de.bool,precision:de.number,velocity:de.number,duration:de.number,easing:de.func})])};iO.propTypes={children:de.node.isRequired,animate:lS.animate,config:lS.motionConfig};var Sn=function(){return $.useContext(rO)},df=function(e){var t=Sn(),n=t.animate,r=t.config,i=function(s){var l=$.useRef();return $.useEffect(function(){l.current=s},[s]),l.current}(e),a=$.useMemo(function(){return V_(i,e)},[i,e]),o=Mr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return ur(o,a)},See={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:dt(Id),PRGn:dt(Ad),PiYG:dt(Nd),PuOr:dt(kd),RdBu:dt(jd),RdGy:dt(Ld),RdYlBu:dt(Dd),RdYlGn:dt(Fd),spectral:dt(zd),blues:dt(Jd),greens:dt(ef),greys:dt(tf),oranges:dt(af),purples:dt(nf),reds:dt(rf),BuGn:dt(Bd),BuPu:dt(Vd),GnBu:dt(Wd),OrRd:dt(Hd),PuBuGn:dt(Ud),PuBu:dt(Gd),PuRd:dt(qd),RdPu:dt(Kd),YlGnBu:dt(Yd),YlGn:dt(Xd),YlOrBr:dt(Zd),YlOrRd:dt(Qd)},Cee=Object.keys(See);dt(Id),dt(Ad),dt(Nd),dt(kd),dt(jd),dt(Ld),dt(Dd),dt(Fd),dt(zd),dt(Jd),dt(ef),dt(tf),dt(af),dt(nf),dt(rf),dt(Bd),dt(Vd),dt(Wd),dt(Hd),dt(Ud),dt(Gd),dt(qd),dt(Kd),dt(Yd),dt(Xd),dt(Zd),dt(Qd);de.oneOfType([de.oneOf(Cee),de.func,de.arrayOf(de.string)]);var Pg={basis:dX,basisClosed:fX,basisOpen:hX,bundle:vX,cardinal:gX,cardinalClosed:mX,cardinalOpen:pX,catmullRom:bX,catmullRomClosed:yX,catmullRomOpen:xX,linear:Up,linearClosed:SX,monotoneX:IE,monotoneY:AE,natural:CX,step:wX,stepAfter:_X,stepBefore:$X},o0=Object.keys(Pg);o0.filter(function(e){return e.endsWith("Closed")});bE(o0,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");bE(o0,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var aO=function(e){if(!Pg[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Pg[e]};de.shape({top:de.number,right:de.number,bottom:de.number,left:de.number}).isRequired;var wee=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];de.oneOf(wee);ra(Vp);var oO={top:0,right:0,bottom:0,left:0},Ra=function(e,t,n){return n===void 0&&(n={}),$.useMemo(function(){var r=Sr({},oO,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},sO=function(){var e=$.useRef(null),t=$.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=$.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(a){var o=a[0];return r(o.contentRect)})})[0];return $.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[]),[e,n]},$ee=function(e){return $.useMemo(function(){return xee(pee,e)},[e])},_ee=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?n0(e.slice("5")):Zp(e):function(t){return""+t}},ji=function(e){return $.useMemo(function(){return _ee(e)},[e])},lO=$.createContext(),Eee={},cO=function(e){var t=e.theme,n=t===void 0?Eee:t,r=e.children,i=$ee(n);return L.jsx(lO.Provider,{value:i,children:r})};cO.propTypes={children:de.node.isRequired,theme:de.object};var Lt=function(){return $.useContext(lO)},Oee=["outlineWidth","outlineColor","outlineOpacity"],s0=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,uf(e,Oee)},uO=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?$.cloneElement(r,{},t):t};uO.propTypes={children:de.node.isRequired,condition:de.bool.isRequired,wrapper:de.element.isRequired};var Mee={position:"relative"},Pa=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,l=e.motionConfig,c=$.useRef(null);return L.jsx(cO,{theme:n,children:L.jsx(iO,{animate:s,config:l,children:L.jsx(gB,{container:c,children:L.jsxs(uO,{condition:i,wrapper:L.jsx("div",{style:Mee,ref:c}),children:[t,o&&L.jsx(vB,{})]})})})})};Pa.propTypes={children:de.element.isRequired,isInteractive:de.bool,renderWrapper:de.bool,theme:de.object,animate:de.bool,motionConfig:de.string};de.func.isRequired,de.bool,de.bool,de.object.isRequired,de.bool.isRequired,de.string;var Hi=function(e){var t=e.children,n=sO(),r=n[0],i=n[1],a=i.width>0&&i.height>0;return L.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:a&&t({width:i.width,height:i.height})})};Hi.propTypes={children:de.func.isRequired};var Tee=["id","colors"],dO=function(e){var t=e.id,n=e.colors,r=uf(e,Tee);return L.jsx("linearGradient",Sr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var a=i.offset,o=i.color,s=i.opacity;return L.jsx("stop",{offset:a+"%",stopColor:o,stopOpacity:s!==void 0?s:1},a)})}))};dO.propTypes={id:de.string.isRequired,colors:de.arrayOf(de.shape({offset:de.number.isRequired,color:de.string.isRequired,opacity:de.number})).isRequired,gradientTransform:de.string};var fO={linearGradient:dO},ms={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Ig=$.memo(function(e){var t=e.id,n=e.background,r=n===void 0?ms.background:n,i=e.color,a=i===void 0?ms.color:i,o=e.size,s=o===void 0?ms.size:o,l=e.padding,c=l===void 0?ms.padding:l,u=e.stagger,d=u===void 0?ms.stagger:u,f=s+c,h=s/2,p=c/2;return d===!0&&(f=2*s+2*c),L.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[L.jsx("rect",{width:f,height:f,fill:r}),L.jsx("circle",{cx:p+h,cy:p+h,r:h,fill:a}),d&&L.jsx("circle",{cx:1.5*c+s+h,cy:1.5*c+s+h,r:h,fill:a})]})});Ig.displayName="PatternDots",Ig.propTypes={id:de.string.isRequired,color:de.string.isRequired,background:de.string.isRequired,size:de.number.isRequired,padding:de.number.isRequired,stagger:de.bool.isRequired};var Cr=function(e){return e*Math.PI/180},ff=function(e){return 180*e/Math.PI},Ree=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},ua=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Pee=function(e){var t=e%360;return t<0&&(t+=360),t},Iee={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},ps={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Ag=$.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?ps.spacing:n,i=e.rotation,a=i===void 0?ps.rotation:i,o=e.background,s=o===void 0?ps.background:o,l=e.color,c=l===void 0?ps.color:l,u=e.lineWidth,d=u===void 0?ps.lineWidth:u,f=Math.round(a)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var p,m=h,v=h;return f===0?p=`
|
|
461
|
+
M 0 0 L `+m+` 0
|
|
462
|
+
M 0 `+v+" L "+m+" "+v+`
|
|
463
|
+
`:f===90?p=`
|
|
464
|
+
M 0 0 L 0 `+v+`
|
|
465
|
+
M `+m+" 0 L "+m+" "+v+`
|
|
466
|
+
`:(m=Math.abs(h/Math.sin(Cr(f))),v=h/Math.sin(Cr(90-f)),p=f>0?`
|
|
467
|
+
M 0 `+-v+" L "+2*m+" "+v+`
|
|
468
|
+
M `+-m+" "+-v+" L "+m+" "+v+`
|
|
469
|
+
M `+-m+" 0 L "+m+" "+2*v+`
|
|
470
|
+
`:`
|
|
471
|
+
M `+-m+" "+v+" L "+m+" "+-v+`
|
|
472
|
+
M `+-m+" "+2*v+" L "+2*m+" "+-v+`
|
|
473
|
+
M 0 `+2*v+" L "+2*m+` 0
|
|
474
|
+
`),L.jsxs("pattern",{id:t,width:m,height:v,patternUnits:"userSpaceOnUse",children:[L.jsx("rect",{width:m,height:v,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),L.jsx("path",{d:p,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})});Ag.displayName="PatternLines",Ag.propTypes={id:de.string.isRequired,spacing:de.number.isRequired,rotation:de.number.isRequired,background:de.string.isRequired,color:de.string.isRequired,lineWidth:de.number.isRequired};var bs={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Ng=$.memo(function(e){var t=e.id,n=e.color,r=n===void 0?bs.color:n,i=e.background,a=i===void 0?bs.background:i,o=e.size,s=o===void 0?bs.size:o,l=e.padding,c=l===void 0?bs.padding:l,u=e.stagger,d=u===void 0?bs.stagger:u,f=s+c,h=c/2;return d===!0&&(f=2*s+2*c),L.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[L.jsx("rect",{width:f,height:f,fill:a}),L.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&L.jsx("rect",{x:1.5*c+s,y:1.5*c+s,width:s,height:s,fill:r})]})});Ng.displayName="PatternSquares",Ng.propTypes={id:de.string.isRequired,color:de.string.isRequired,background:de.string.isRequired,size:de.number.isRequired,padding:de.number.isRequired,stagger:de.bool.isRequired};var hO={patternDots:Ig,patternLines:Ag,patternSquares:Ng},Aee=["type"],kg=Sr({},fO,hO),vO=function(e){var t=e.defs;return!t||t.length<1?null:L.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=uf(n,Aee);return kg[r]?$.createElement(kg[r],Sr({key:i.id},i)):null})})};vO.propTypes={defs:de.arrayOf(de.shape({type:de.oneOf(Object.keys(kg)).isRequired,id:de.string.isRequired}))};var Nee=$.memo(vO),Xo=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,a=e.children,o=e.role,s=e.ariaLabel,l=e.ariaLabelledBy,c=e.ariaDescribedBy,u=e.isFocusable,d=Lt();return L.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:o,"aria-label":s,"aria-labelledby":l,"aria-describedby":c,focusable:u,tabIndex:u?0:void 0,children:[L.jsx(Nee,{defs:i}),L.jsx("rect",{width:t,height:n,fill:d.background}),L.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:a})]})};Xo.propTypes={width:de.number.isRequired,height:de.number.isRequired,margin:de.shape({top:de.number.isRequired,left:de.number.isRequired}).isRequired,defs:de.array,children:de.oneOfType([de.arrayOf(de.node),de.node]).isRequired,role:de.string,isFocusable:de.bool,ariaLabel:de.string,ariaLabelledBy:de.string,ariaDescribedBy:de.string};var gO=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return L.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};gO.propTypes={size:de.number.isRequired,color:de.string.isRequired,borderWidth:de.number.isRequired,borderColor:de.string.isRequired};var kee=$.memo(gO),mO=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?kee:r,a=e.size,o=e.datum,s=e.color,l=e.borderWidth,c=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,h=e.labelYOffset,p=h===void 0?-12:h,m=Lt(),v=Sn(),y=v.animate,b=v.config,x=Mr({transform:"translate("+t+", "+n+")",config:b,immediate:!y});return L.jsxs(Mt.g,{transform:x.transform,style:{pointerEvents:"none"},children:[$.createElement(i,{size:a,color:s,datum:o,borderWidth:l,borderColor:c}),u&&L.jsx("text",{textAnchor:f,y:p,style:s0(m.dots.text),children:u})]})};mO.propTypes={x:de.number.isRequired,y:de.number.isRequired,datum:de.object.isRequired,size:de.number.isRequired,color:de.string.isRequired,borderWidth:de.number.isRequired,borderColor:de.string.isRequired,symbol:de.oneOfType([de.func,de.object]),label:de.oneOfType([de.string,de.number]),labelTextAnchor:de.oneOf(["start","middle","end"]),labelYOffset:de.number};var jee=$.memo(mO),pO=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=e.lineStyle,s=e.textStyle,l=e.legend,c=e.legendPosition,u=c===void 0?"top-right":c,d=e.legendOffsetX,f=d===void 0?14:d,h=e.legendOffsetY,p=h===void 0?14:h,m=e.legendOrientation,v=m===void 0?"horizontal":m,y=Lt(),b=0,x=0,C=0,S=0;r==="y"?(C=i(a),x=t):(b=i(a),S=n);var w=null;if(l){var O=function(E){var _=E.axis,T=E.width,R=E.height,F=E.position,I=E.offsetX,P=E.offsetY,k=E.orientation,A=0,M=0,N=k==="vertical"?-90:0,j="start";if(_==="x")switch(F){case"top-left":A=-I,M=P,j="end";break;case"top":M=-P,j=k==="horizontal"?"middle":"start";break;case"top-right":A=I,M=P,j=k==="horizontal"?"start":"end";break;case"right":A=I,M=R/2,j=k==="horizontal"?"start":"middle";break;case"bottom-right":A=I,M=R-P,j="start";break;case"bottom":M=R+P,j=k==="horizontal"?"middle":"end";break;case"bottom-left":M=R-P,A=-I,j=k==="horizontal"?"end":"start";break;case"left":A=-I,M=R/2,j=k==="horizontal"?"end":"middle"}else switch(F){case"top-left":A=I,M=-P,j="start";break;case"top":A=T/2,M=-P,j=k==="horizontal"?"middle":"start";break;case"top-right":A=T-I,M=-P,j=k==="horizontal"?"end":"start";break;case"right":A=T+I,j=k==="horizontal"?"start":"middle";break;case"bottom-right":A=T-I,M=P,j="end";break;case"bottom":A=T/2,M=P,j=k==="horizontal"?"middle":"end";break;case"bottom-left":A=I,M=P,j=k==="horizontal"?"start":"end";break;case"left":A=-I,j=k==="horizontal"?"end":"middle"}return{x:A,y:M,rotation:N,textAnchor:j}}({axis:r,width:t,height:n,position:u,offsetX:f,offsetY:p,orientation:v});w=L.jsx("text",{transform:"translate("+O.x+", "+O.y+") rotate("+O.rotation+")",textAnchor:O.textAnchor,dominantBaseline:"central",style:s,children:l})}return L.jsxs("g",{transform:"translate("+b+", "+C+")",children:[L.jsx("line",{x1:0,x2:x,y1:0,y2:S,stroke:y.markers.lineColor,strokeWidth:y.markers.lineStrokeWidth,style:o}),w]})};pO.propTypes={width:de.number.isRequired,height:de.number.isRequired,axis:de.oneOf(["x","y"]).isRequired,scale:de.func.isRequired,value:de.oneOfType([de.number,de.string,de.instanceOf(Date)]).isRequired,lineStyle:de.object,textStyle:de.object,legend:de.string,legendPosition:de.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:de.number.isRequired,legendOffsetY:de.number.isRequired,legendOrientation:de.oneOf(["horizontal","vertical"]).isRequired};var Lee=$.memo(pO),bO=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&t.length!==0?t.map(function(o,s){return L.jsx(Lee,Sr({},o,{width:n,height:r,scale:o.axis==="y"?a:i}),s)}):null};bO.propTypes={width:de.number.isRequired,height:de.number.isRequired,xScale:de.func.isRequired,yScale:de.func.isRequired,markers:de.arrayOf(de.shape({axis:de.oneOf(["x","y"]).isRequired,value:de.oneOfType([de.number,de.string,de.instanceOf(Date)]).isRequired,lineStyle:de.object,textStyle:de.object}))};var yO=$.memo(bO),Dee=["theme","renderWrapper","animate","motionConfig"],xO=function(e){return function(t){var n,r;function i(){return t.apply(this,arguments)||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,Rg(n,r),i.prototype.render=function(){var a=this.props,o=a.theme,s=a.renderWrapper,l=a.animate,c=a.motionConfig,u=uf(a,Dee);return L.jsx(Pa,{theme:o,renderWrapper:s,isInteractive:u.isInteractive,animate:l,motionConfig:c,children:L.jsx(e,Sr({},u))})},i}($.Component)},Fee=function(e,t){var n=Hm(e)?e:function(r){return Vr(r,e)};return n},zee=function(e){return Hm(e)?e:function(t){return Vr(t,e)}},Yr=function(e){return $.useMemo(function(){return zee(e)},[e])},Bee=function(e,t,n,r){var i=n-e,a=r-t;return i*=i,a*=a,Math.sqrt(i+a)},SO=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},l0=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,a=r.clientY,o=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===o.width?1:n.width/o.width;return[(i-o.left)*s,(a-o.top)*s]},Vee=Object.keys(fO),Wee=Object.keys(hO),Hee=function(e,t,n){if(e==="*")return!0;if(Hm(e))return e(t);if(yd(e)){var r=n?Vr(t,n):t;return mee(IQ(r,Object.keys(e)),e)}return!1},c0=function(e,t,n,r){var i={},a=i.dataKey,o=i.colorKey,s=o===void 0?"color":o,l=i.targetKey,c=l===void 0?"fill":l,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(f){for(var h=function(){var m=n[p],v=m.id,y=m.match;if(Hee(y,f,a)){var b=e.find(function(T){return T.id===v});if(b){if(Wee.includes(b.type))if(b.background==="inherit"||b.color==="inherit"){var x=Vr(f,s),C=b.background,S=b.color,w=v;b.background==="inherit"&&(w=w+".bg."+x,C=x),b.color==="inherit"&&(w=w+".fg."+x,S=x),Os(f,c,"url(#"+w+")"),d[w]||(u.push(Sr({},b,{id:w,background:C,color:S})),d[w]=1)}else Os(f,c,"url(#"+v+")");else if(Vee.includes(b.type))if(b.colors.map(function(T){return T.color}).includes("inherit")){var O=Vr(f,s),E=v,_=Sr({},b,{colors:b.colors.map(function(T,R){return T.color!=="inherit"?T:(E=E+"."+R+"."+O,Sr({},T,{color:T.color==="inherit"?O:T.color}))})});_.id=E,Os(f,c,"url(#"+E+")"),d[E]||(u.push(_),d[E]=1)}else Os(f,c,"url(#"+v+")")}return"break"}},p=0;p<n.length&&h()!=="break";p++);})),u};function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}function cS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uee(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,a){if(i){if(typeof i=="string")return cS(i,a);var o=Object.prototype.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?cS(i,a):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
475
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var CO={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:uE,accent:dE,dark2:fE,paired:hE,pastel1:vE,pastel2:gE,set1:mE,set2:pE,set3:Vp,tableau10:KK},Gee=Object.keys(CO),wO={brown_blueGreen:Id,purpleRed_green:Ad,pink_yellowGreen:Nd,purple_orange:kd,red_blue:jd,red_grey:Ld,red_yellow_blue:Dd,red_yellow_green:Fd,spectral:zd},qee=Object.keys(wO),Kee={brown_blueGreen:YK,purpleRed_green:XK,pink_yellowGreen:ZK,purple_orange:QK,red_blue:JK,red_grey:eY,red_yellow_blue:tY,red_yellow_green:nY,spectral:rY},$O={blues:Jd,greens:ef,greys:tf,oranges:af,purples:nf,reds:rf,blue_green:Bd,blue_purple:Vd,green_blue:Wd,orange_red:Hd,purple_blue_green:Ud,purple_blue:Gd,purple_red:qd,red_purple:Kd,yellow_green_blue:Yd,yellow_green:Xd,yellow_orange_brown:Zd,yellow_orange_red:Qd},Yee=Object.keys($O),Xee={blues:mY,greens:pY,greys:bY,oranges:SY,purples:yY,reds:xY,turbo:RY,viridis:PY,inferno:AY,magma:IY,plasma:NY,cividis:CY,warm:$Y,cool:_Y,cubehelixDefault:wY,blue_green:iY,blue_purple:aY,green_blue:oY,orange_red:sY,purple_blue_green:lY,purple_blue:cY,purple_red:uY,red_purple:dY,yellow_green_blue:fY,yellow_green:hY,yellow_orange_brown:vY,yellow_orange_red:gY},Ih=Tu({},CO,wO,$O),Zee=function(e){return Gee.includes(e)},Qee=function(e){return qee.includes(e)},Jee=function(e){return Yee.includes(e)},ete={rainbow:EY,sinebow:TY};Tu({},Kee,Xee,ete);var tte=function(e,t){if(typeof e=="function")return e;if(yd(e)){if(function(l){return l.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=Vr(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(l){return l.from!==void 0}(e)){var r=function(l){return Vr(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var l=i.value,c=l[0],u=l[1];if(c==="brighter")a.push(function(d){return d.brighter(u)});else if(c==="darker")a.push(function(d){return d.darker(u)});else{if(c!=="opacity")throw new Error("Invalid color modifier: '"+c+"', must be one of: 'brighter', 'darker', 'opacity'");a.push(function(d){return d.opacity=u,d})}},s=Uee(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(l){return a.reduce(function(c,u){return u(c)},wo(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},lr=function(e,t){return $.useMemo(function(){return tte(e,t)},[e,t])};de.oneOfType([de.string,de.func,de.shape({theme:de.string.isRequired}),de.shape({from:de.string.isRequired,modifiers:de.arrayOf(de.array)})]);var nte=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return Vr(d,t)};if(Array.isArray(e)){var r=ra(e),i=function(d){return r(n(d))};return i.scale=r,i}if(yd(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return Vr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(Zee(e.scheme)){var a=ra(Ih[e.scheme]),o=function(d){return a(n(d))};return o.scale=a,o}if(Qee(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=ra(Ih[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(Jee(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=ra(Ih[e.scheme][e.size||9]),u=function(d){return c(n(d))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Bl=function(e,t){return $.useMemo(function(){return nte(e,t)},[e,t])},rte=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return L.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})},ite=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return L.jsx("g",{transform:"translate("+t+","+n+")",children:L.jsx("path",{d:`
|
|
476
|
+
M`+r/2+` 0
|
|
477
|
+
L`+.8*r+" "+r/2+`
|
|
478
|
+
L`+r/2+" "+r+`
|
|
479
|
+
L`+.2*r+" "+r/2+`
|
|
480
|
+
L`+r/2+` 0
|
|
481
|
+
`,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},ate=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return L.jsx("rect",{x:t,y:n,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,width:r,height:r,style:{pointerEvents:"none"}})},ote=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return L.jsx("g",{transform:"translate("+t+","+n+")",children:L.jsx("path",{d:`
|
|
482
|
+
M`+r/2+` 0
|
|
483
|
+
L`+r+" "+r+`
|
|
484
|
+
L0 `+r+`
|
|
485
|
+
L`+r/2+` 0
|
|
486
|
+
`,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aa.apply(this,arguments)}var ste={top:0,right:0,bottom:0,left:0},u0=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:aa({},ste,i),c=l.left+l.right,u=l.top+l.bottom,d=o+c,f=s+u,h=(a-1)*r;return n==="row"?d=o*a+h+c:n==="column"&&(f=s*a+h+u),{width:d,height:f,padding:l}},_O=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,a=e.containerHeight,o=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-o)/2;break;case"top-right":l+=i-o;break;case"right":l+=i-o,c+=(a-s)/2;break;case"bottom-right":l+=i-o,c+=a-s;break;case"bottom":l+=(i-o)/2,c+=a-s;break;case"bottom-left":c+=a-s;break;case"left":c+=(a-s)/2;break;case"center":l+=(i-o)/2,c+=(a-s)/2}return{x:l,y:c}},EO=function(e){var t,n,r,i,a,o,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-c)/2,i=f/2,o="central",l?(r=d,a="end"):(r=c+u,a="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,o="central",l?(r=0,a="start"):(r=d-c-u,a="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,a="middle",l?(i=f,o="alphabetic"):(i=c+u,o="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,a="middle",l?(i=0,o="text-before-edge"):(i=f-c-u,o="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:o}},lte={circle:rte,diamond:ite,square:ate,triangle:ote},cte=function(e){var t,n,r,i,a,o,s,l,c,u,d,f=e.x,h=e.y,p=e.width,m=e.height,v=e.data,y=e.direction,b=y===void 0?"left-to-right":y,x=e.justify,C=x!==void 0&&x,S=e.textColor,w=e.background,O=w===void 0?"transparent":w,E=e.opacity,_=E===void 0?1:E,T=e.symbolShape,R=T===void 0?"square":T,F=e.symbolSize,I=F===void 0?16:F,P=e.symbolSpacing,k=P===void 0?8:P,A=e.symbolBorderWidth,M=A===void 0?0:A,N=e.symbolBorderColor,j=N===void 0?"transparent":N,D=e.onClick,V=e.onMouseEnter,X=e.onMouseLeave,q=e.toggleSerie,Z=e.effects,J=$.useState({}),Q=J[0],K=J[1],Y=Lt(),W=$.useCallback(function(be){if(Z){var Ce=Z.filter(function(ge){return ge.on==="hover"}).reduce(function(ge,fe){return aa({},ge,fe.style)},{});K(Ce)}V==null||V(v,be)},[V,v,Z]),H=$.useCallback(function(be){if(Z){var Ce=Z.filter(function(ge){return ge.on!=="hover"}).reduce(function(ge,fe){return aa({},ge,fe.style)},{});K(Ce)}X==null||X(v,be)},[X,v,Z]),U=EO({direction:b,justify:C,symbolSize:(t=Q.symbolSize)!=null?t:I,symbolSpacing:k,width:p,height:m}),z=U.symbolX,ne=U.symbolY,B=U.labelX,re=U.labelY,ie=U.labelAnchor,ue=U.labelAlignment,me=[D,V,X,q].some(function(be){return be!==void 0}),ve=typeof R=="function"?R:lte[R];return L.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=Q.itemOpacity)!=null?n:_},children:[L.jsx("rect",{width:p,height:m,fill:(r=Q.itemBackground)!=null?r:O,style:{cursor:me?"pointer":"auto"},onClick:function(be){D==null||D(v,be),q==null||q(v.id)},onMouseEnter:W,onMouseLeave:H}),g.createElement(ve,aa({id:v.id,x:z,y:ne,size:(i=Q.symbolSize)!=null?i:I,fill:(a=(o=v.fill)!=null?o:v.color)!=null?a:"black",borderWidth:(s=Q.symbolBorderWidth)!=null?s:M,borderColor:(l=Q.symbolBorderColor)!=null?l:j},v.hidden?Y.legends.hidden.symbol:void 0)),L.jsx("text",{textAnchor:ie,style:aa({},s0(Y.legends.text),{fill:(c=(u=(d=Q.itemTextColor)!=null?d:S)!=null?u:Y.legends.text.fill)!=null?c:"black",dominantBaseline:ue,pointerEvents:"none",userSelect:"none"},v.hidden?Y.legends.hidden.text:void 0),x:B,y:re,children:v.label})]})},ute=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?0:a,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?"left-to-right":d,h=e.itemsSpacing,p=h===void 0?0:h,m=e.itemTextColor,v=e.itemBackground,y=v===void 0?"transparent":v,b=e.itemOpacity,x=b===void 0?1:b,C=e.symbolShape,S=e.symbolSize,w=e.symbolSpacing,O=e.symbolBorderWidth,E=e.symbolBorderColor,_=e.onClick,T=e.onMouseEnter,R=e.onMouseLeave,F=e.toggleSerie,I=u0({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:p,direction:i,padding:o}).padding,P=i==="row"?c+p:0,k=i==="column"?u+p:0;return L.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(A,M){return L.jsx(cte,{data:A,x:M*P+I.left,y:M*k+I.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:m,background:y,opacity:x,symbolShape:C,symbolSize:S,symbolSpacing:w,symbolBorderWidth:O,symbolBorderColor:E,onClick:_,onMouseEnter:T,onMouseLeave:R,toggleSerie:F},M)})})},hf=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?0:i,o=e.translateY,s=o===void 0?0:o,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?0:u,f=e.justify,h=e.itemsSpacing,p=h===void 0?0:h,m=e.itemWidth,v=e.itemHeight,y=e.itemDirection,b=e.itemTextColor,x=e.itemBackground,C=e.itemOpacity,S=e.symbolShape,w=e.symbolSize,O=e.symbolSpacing,E=e.symbolBorderWidth,_=e.symbolBorderColor,T=e.onClick,R=e.onMouseEnter,F=e.onMouseLeave,I=e.toggleSerie,P=e.effects,k=u0({itemCount:t.length,itemsSpacing:p,itemWidth:m,itemHeight:v,direction:c,padding:d}),A=k.width,M=k.height,N=_O({anchor:l,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:A,height:M}),j=N.x,D=N.y;return L.jsx(ute,{data:t,x:j,y:D,direction:c,padding:d,justify:f,effects:P,itemsSpacing:p,itemWidth:m,itemHeight:v,itemDirection:y,itemTextColor:b,itemBackground:x,itemOpacity:C,symbolShape:S,symbolSize:w,symbolSpacing:O,symbolBorderWidth:E,symbolBorderColor:_,onClick:T,onMouseEnter:R,onMouseLeave:F,toggleSerie:typeof I=="boolean"?void 0:I})},dte={start:"left",middle:"center",end:"right"},OO=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,o=a===void 0?0:a,s=t.translateY,l=s===void 0?0:s,c=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,p=h!==void 0&&h,m=t.itemsSpacing,v=m===void 0?0:m,y=t.itemWidth,b=t.itemHeight,x=t.itemDirection,C=x===void 0?"left-to-right":x,S=t.itemTextColor,w=t.symbolSize,O=w===void 0?16:w,E=t.symbolSpacing,_=E===void 0?8:E,T=t.theme,R=u0({itemCount:n.length,itemWidth:y,itemHeight:b,itemsSpacing:v,direction:u,padding:f}),F=R.width,I=R.height,P=R.padding,k=_O({anchor:c,translateX:o,translateY:l,containerWidth:r,containerHeight:i,width:F,height:I}),A=k.x,M=k.y,N=u==="row"?y+v:0,j=u==="column"?b+v:0;e.save(),e.translate(A,M),e.font=T.legends.text.fontSize+"px "+(T.legends.text.fontFamily||"sans-serif"),n.forEach(function(D,V){var X,q,Z=V*N+P.left,J=V*j+P.top,Q=EO({direction:C,justify:p,symbolSize:O,symbolSpacing:_,width:y,height:b}),K=Q.symbolX,Y=Q.symbolY,W=Q.labelX,H=Q.labelY,U=Q.labelAnchor,z=Q.labelAlignment;e.fillStyle=(X=D.color)!=null?X:"black",e.fillRect(Z+K,J+Y,O,O),e.textAlign=dte[U],z==="central"&&(e.textBaseline="middle"),e.fillStyle=(q=S??T.legends.text.fill)!=null?q:"black",e.fillText(String(D.label),Z+W,J+H)}),e.restore()};function fte(e){return e.target.depth}function hte(e){return e.depth}function vte(e,t){return t-1-e.height}function MO(e,t){return e.sourceLinks.length?e.depth:t-1}function gte(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?FE(e.sourceLinks,fte)-1:0}function wc(e){return function(){return e}}function uS(e,t){return Ru(e.source,t.source)||e.index-t.index}function dS(e,t){return Ru(e.target,t.target)||e.index-t.index}function Ru(e,t){return e.y0-t.y0}function Ah(e){return e.value}function mte(e){return e.index}function pte(e){return e.nodes}function bte(e){return e.links}function fS(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function hS({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const i of t.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of t.targetLinks)i.y1=r+i.width/2,r+=i.width}}function yte(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=mte,l=MO,c,u,d=pte,f=bte,h=6;function p(){const k={nodes:d.apply(null,arguments),links:f.apply(null,arguments)};return m(k),v(k),y(k),b(k),S(k),hS(k),k}p.update=function(k){return hS(k),k},p.nodeId=function(k){return arguments.length?(s=typeof k=="function"?k:wc(k),p):s},p.nodeAlign=function(k){return arguments.length?(l=typeof k=="function"?k:wc(k),p):l},p.nodeSort=function(k){return arguments.length?(c=k,p):c},p.nodeWidth=function(k){return arguments.length?(i=+k,p):i},p.nodePadding=function(k){return arguments.length?(a=o=+k,p):a},p.nodes=function(k){return arguments.length?(d=typeof k=="function"?k:wc(k),p):d},p.links=function(k){return arguments.length?(f=typeof k=="function"?k:wc(k),p):f},p.linkSort=function(k){return arguments.length?(u=k,p):u},p.size=function(k){return arguments.length?(e=t=0,n=+k[0],r=+k[1],p):[n-e,r-t]},p.extent=function(k){return arguments.length?(e=+k[0][0],n=+k[1][0],t=+k[0][1],r=+k[1][1],p):[[e,t],[n,r]]},p.iterations=function(k){return arguments.length?(h=+k,p):h};function m({nodes:k,links:A}){for(const[N,j]of k.entries())j.index=N,j.sourceLinks=[],j.targetLinks=[];const M=new Map(k.map((N,j)=>[s(N,j,k),N]));for(const[N,j]of A.entries()){j.index=N;let{source:D,target:V}=j;typeof D!="object"&&(D=j.source=fS(M,D)),typeof V!="object"&&(V=j.target=fS(M,V)),D.sourceLinks.push(j),V.targetLinks.push(j)}if(u!=null)for(const{sourceLinks:N,targetLinks:j}of k)N.sort(u),j.sort(u)}function v({nodes:k}){for(const A of k)A.value=A.fixedValue===void 0?Math.max(Oh(A.sourceLinks,Ah),Oh(A.targetLinks,Ah)):A.fixedValue}function y({nodes:k}){const A=k.length;let M=new Set(k),N=new Set,j=0;for(;M.size;){for(const D of M){D.depth=j;for(const{target:V}of D.sourceLinks)N.add(V)}if(++j>A)throw new Error("circular link");M=N,N=new Set}}function b({nodes:k}){const A=k.length;let M=new Set(k),N=new Set,j=0;for(;M.size;){for(const D of M){D.height=j;for(const{source:V}of D.targetLinks)N.add(V)}if(++j>A)throw new Error("circular link");M=N,N=new Set}}function x({nodes:k}){const A=Ix(k,j=>j.depth)+1,M=(n-e-i)/(A-1),N=new Array(A);for(const j of k){const D=Math.max(0,Math.min(A-1,Math.floor(l.call(null,j,A))));j.layer=D,j.x0=e+D*M,j.x1=j.x0+i,N[D]?N[D].push(j):N[D]=[j]}if(c)for(const j of N)j.sort(c);return N}function C(k){const A=FE(k,M=>(r-t-(M.length-1)*o)/Oh(M,Ah));for(const M of k){let N=t;for(const j of M){j.y0=N,j.y1=N+j.value*A,N=j.y1+o;for(const D of j.sourceLinks)D.width=D.value*A}N=(r-N+o)/(M.length+1);for(let j=0;j<M.length;++j){const D=M[j];D.y0+=N*(j+1),D.y1+=N*(j+1)}F(M)}}function S(k){const A=x(k);o=Math.min(a,(r-t)/(Ix(A,M=>M.length)-1)),C(A);for(let M=0;M<h;++M){const N=Math.pow(.99,M),j=Math.max(1-N,(M+1)/h);O(A,N,j),w(A,N,j)}}function w(k,A,M){for(let N=1,j=k.length;N<j;++N){const D=k[N];for(const V of D){let X=0,q=0;for(const{source:J,value:Q}of V.targetLinks){let K=Q*(V.layer-J.layer);X+=I(J,V)*K,q+=K}if(!(q>0))continue;let Z=(X/q-V.y0)*A;V.y0+=Z,V.y1+=Z,R(V)}c===void 0&&D.sort(Ru),E(D,M)}}function O(k,A,M){for(let N=k.length,j=N-2;j>=0;--j){const D=k[j];for(const V of D){let X=0,q=0;for(const{target:J,value:Q}of V.sourceLinks){let K=Q*(J.layer-V.layer);X+=P(V,J)*K,q+=K}if(!(q>0))continue;let Z=(X/q-V.y0)*A;V.y0+=Z,V.y1+=Z,R(V)}c===void 0&&D.sort(Ru),E(D,M)}}function E(k,A){const M=k.length>>1,N=k[M];T(k,N.y0-o,M-1,A),_(k,N.y1+o,M+1,A),T(k,r,k.length-1,A),_(k,t,0,A)}function _(k,A,M,N){for(;M<k.length;++M){const j=k[M],D=(A-j.y0)*N;D>1e-6&&(j.y0+=D,j.y1+=D),A=j.y1+o}}function T(k,A,M,N){for(;M>=0;--M){const j=k[M],D=(j.y1-A)*N;D>1e-6&&(j.y0-=D,j.y1-=D),A=j.y0-o}}function R({sourceLinks:k,targetLinks:A}){if(u===void 0){for(const{source:{sourceLinks:M}}of A)M.sort(dS);for(const{target:{targetLinks:M}}of k)M.sort(uS)}}function F(k){if(u===void 0)for(const{sourceLinks:A,targetLinks:M}of k)A.sort(dS),M.sort(uS)}function I(k,A){let M=k.y0-(k.sourceLinks.length-1)*o/2;for(const{target:N,width:j}of k.sourceLinks){if(N===A)break;M+=j+o}for(const{source:N,width:j}of A.targetLinks){if(N===k)break;M-=j}return M}function P(k,A){let M=A.y0-(A.targetLinks.length-1)*o/2;for(const{source:N,width:j}of A.targetLinks){if(N===k)break;M+=j+o}for(const{target:N,width:j}of k.sourceLinks){if(N===A)break;M-=j}return M}return p}function xte(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Ste=xte,Cte=Uo,wte=zl;function $te(e,t){return e&&Cte(t,wte(t),e)}var _te=$te,Ete=Uo,Ote=jl;function Mte(e,t){return e&&Ete(t,Ote(t),e)}var Tte=Mte,Rte=Uo,Pte=i0;function Ite(e,t){return Rte(e,Pte(e),t)}var Ate=Ite,Nte=r0,kte=gp,jte=i0,Lte=JE,Dte=Object.getOwnPropertySymbols,Fte=Dte?function(e){for(var t=[];e;)Nte(t,jte(e)),e=kte(e);return t}:Lte,TO=Fte,zte=Uo,Bte=TO;function Vte(e,t){return zte(e,Bte(e),t)}var Wte=Vte,Hte=ZE,Ute=TO,Gte=jl;function qte(e){return Hte(e,Gte,Ute)}var RO=qte,Kte=Object.prototype,Yte=Kte.hasOwnProperty;function Xte(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Yte.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Zte=Xte,Qte=vp;function Jte(e,t){var n=t?Qte(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var ene=Jte,tne=/\w*$/;function nne(e){var t=new e.constructor(e.source,tne.exec(e));return t.lastIndex=e.lastIndex,t}var rne=nne,vS=Lo,gS=vS?vS.prototype:void 0,mS=gS?gS.valueOf:void 0;function ine(e){return mS?Object(mS.call(e)):{}}var ane=ine,one=vp,sne=ene,lne=rne,cne=ane,une=S_,dne="[object Boolean]",fne="[object Date]",hne="[object Map]",vne="[object Number]",gne="[object RegExp]",mne="[object Set]",pne="[object String]",bne="[object Symbol]",yne="[object ArrayBuffer]",xne="[object DataView]",Sne="[object Float32Array]",Cne="[object Float64Array]",wne="[object Int8Array]",$ne="[object Int16Array]",_ne="[object Int32Array]",Ene="[object Uint8Array]",One="[object Uint8ClampedArray]",Mne="[object Uint16Array]",Tne="[object Uint32Array]";function Rne(e,t,n){var r=e.constructor;switch(t){case yne:return one(e);case dne:case fne:return new r(+e);case xne:return sne(e,n);case Sne:case Cne:case wne:case $ne:case _ne:case Ene:case One:case Mne:case Tne:return une(e,n);case hne:return new r;case vne:case pne:return new r(e);case gne:return lne(e);case mne:return new r;case bne:return cne(e)}}var Pne=Rne,Ine=cf,Ane=Tr,Nne="[object Map]";function kne(e){return Ane(e)&&Ine(e)==Nne}var jne=kne,Lne=jne,Dne=Ho,pS=xd,bS=pS&&pS.isMap,Fne=bS?Dne(bS):Lne,zne=Fne,Bne=cf,Vne=Tr,Wne="[object Set]";function Hne(e){return Vne(e)&&Bne(e)==Wne}var Une=Hne,Gne=Une,qne=Ho,yS=xd,xS=yS&&yS.isSet,Kne=xS?qne(xS):Gne,Yne=Kne,Xne=md,Zne=Ste,Qne=xp,Jne=_te,ere=Tte,tre=y_,nre=C_,rre=Ate,ire=Wte,are=eO,ore=RO,sre=cf,lre=Zte,cre=Pne,ure=$_,dre=tr,fre=bd,hre=zne,vre=ni,gre=Yne,mre=zl,pre=jl,bre=1,yre=2,xre=4,PO="[object Arguments]",Sre="[object Array]",Cre="[object Boolean]",wre="[object Date]",$re="[object Error]",IO="[object Function]",_re="[object GeneratorFunction]",Ere="[object Map]",Ore="[object Number]",AO="[object Object]",Mre="[object RegExp]",Tre="[object Set]",Rre="[object String]",Pre="[object Symbol]",Ire="[object WeakMap]",Are="[object ArrayBuffer]",Nre="[object DataView]",kre="[object Float32Array]",jre="[object Float64Array]",Lre="[object Int8Array]",Dre="[object Int16Array]",Fre="[object Int32Array]",zre="[object Uint8Array]",Bre="[object Uint8ClampedArray]",Vre="[object Uint16Array]",Wre="[object Uint32Array]",Zt={};Zt[PO]=Zt[Sre]=Zt[Are]=Zt[Nre]=Zt[Cre]=Zt[wre]=Zt[kre]=Zt[jre]=Zt[Lre]=Zt[Dre]=Zt[Fre]=Zt[Ere]=Zt[Ore]=Zt[AO]=Zt[Mre]=Zt[Tre]=Zt[Rre]=Zt[Pre]=Zt[zre]=Zt[Bre]=Zt[Vre]=Zt[Wre]=!0;Zt[$re]=Zt[IO]=Zt[Ire]=!1;function zc(e,t,n,r,i,a){var o,s=t&bre,l=t&yre,c=t&xre;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!vre(e))return e;var u=dre(e);if(u){if(o=lre(e),!s)return nre(e,o)}else{var d=sre(e),f=d==IO||d==_re;if(fre(e))return tre(e,s);if(d==AO||d==PO||f&&!i){if(o=l||f?{}:ure(e),!s)return l?ire(e,ere(o,e)):rre(e,Jne(o,e))}else{if(!Zt[d])return i?e:{};o=cre(e,d,s)}}a||(a=new Xne);var h=a.get(e);if(h)return h;a.set(e,o),gre(e)?e.forEach(function(v){o.add(zc(v,t,n,v,e,a))}):hre(e)&&e.forEach(function(v,y){o.set(y,zc(v,t,n,y,e,a))});var p=c?l?ore:are:l?pre:mre,m=u?void 0:p(e);return Zne(m||e,function(v,y){m&&(y=v,v=e[y]),Qne(o,y,zc(v,t,n,y,e,a))}),o}var NO=zc,Hre=NO,Ure=1,Gre=4;function qre(e){return Hre(e,Ure|Gre)}var Kre=qre;const kO=rn(Kre);function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ba.apply(this,arguments)}var Nh={container:{display:"flex",alignItems:"center"},sourceChip:{marginRight:7},targetChip:{marginLeft:7,marginRight:7}},Yre={center:gte,justify:MO,start:hte,end:vte},Xre=function(e){return Yre[e]},It={layout:"horizontal",align:"center",sort:"auto",colors:{scheme:"nivo"},nodeOpacity:.75,nodeHoverOpacity:1,nodeHoverOthersOpacity:.15,nodeThickness:12,nodeSpacing:12,nodeInnerPadding:0,nodeBorderWidth:1,nodeBorderColor:{from:"color",modifiers:[["darker",.5]]},nodeBorderRadius:0,linkOpacity:.25,linkHoverOpacity:.6,linkHoverOthersOpacity:.15,linkContract:0,linkBlendMode:"multiply",enableLinkGradient:!1,enableLabels:!0,label:"id",labelPosition:"inside",labelPadding:9,labelOrientation:"horizontal",labelTextColor:{from:"color",modifiers:[["darker",.8]]},isInteractive:!0,nodeTooltip:function(e){var t=e.node;return L.jsx(So,{id:t.label,enableChip:!0,color:t.color})},linkTooltip:function(e){var t=e.link;return L.jsx(So,{id:L.jsxs("span",{style:Nh.container,children:[L.jsx(du,{color:t.source.color,style:Nh.sourceChip}),L.jsx("strong",{children:t.source.label})," > ",L.jsx("strong",{children:t.target.label}),L.jsx(du,{color:t.target.color,style:Nh.targetChip}),L.jsx("strong",{children:t.formattedValue})]})})},legends:[],layers:["links","nodes","labels","legends"],role:"img",animate:!0,motionConfig:"gentle"},Zre=function(e){return e.id},Qre=function(e){var t=e.data,n=e.valueFormat,r=e.layout,i=e.width,a=e.height,o=e.sort,s=e.align,l=e.colors,c=e.nodeThickness,u=e.nodeSpacing,d=e.nodeInnerPadding,f=e.nodeBorderColor,h=e.label,p=e.labelTextColor,m=$.useState(null),v=m[0],y=m[1],b=$.useState(null),x=b[0],C=b[1],S=$.useMemo(function(){if(o!=="auto")return o==="input"?null:o==="ascending"?function(N,j){return N.value-j.value}:o==="descending"?function(N,j){return j.value-N.value}:o},[o]),w=o==="input"?null:void 0,O=$.useMemo(function(){return typeof s=="function"?s:Xre(s)},[s]),E=Lt(),_=Bl(l,"id"),T=lr(f,E),R=Yr(h),F=lr(p,E),I=ji(n),P=$.useMemo(function(){return function(N){var j=N.data,D=N.formatValue,V=N.layout,X=N.alignFunction,q=N.sortFunction,Z=N.linkSortMode,J=N.nodeThickness,Q=N.nodeSpacing,K=N.nodeInnerPadding,Y=N.width,W=N.height,H=N.getColor,U=N.getLabel,z=yte().nodeAlign(X).nodeSort(q).linkSort(Z).nodeWidth(J).nodePadding(Q).size(V==="horizontal"?[Y,W]:[W,Y]).nodeId(Zre),ne=kO(j);return z(ne),ne.nodes.forEach(function(B){if(B.color=H(B),B.label=U(B),B.formattedValue=D(B.value),V==="horizontal")B.x=B.x0+K,B.y=B.y0,B.width=Math.max(B.x1-B.x0-2*K,0),B.height=Math.max(B.y1-B.y0,0);else{B.x=B.y0,B.y=B.x0+K,B.width=Math.max(B.y1-B.y0,0),B.height=Math.max(B.x1-B.x0-2*K,0);var re=B.x0,ie=B.x1;B.x0=B.y0,B.x1=B.y1,B.y0=re,B.y1=ie}}),ne.links.forEach(function(B){B.formattedValue=D(B.value),B.color=B.source.color,B.pos0=B.y0,B.pos1=B.y1,B.thickness=B.width,delete B.y0,delete B.y1,delete B.width}),ne}({data:t,formatValue:I,layout:r,alignFunction:O,sortFunction:S,linkSortMode:w,nodeThickness:c,nodeSpacing:u,nodeInnerPadding:d,width:i,height:a,getColor:_,getLabel:R})},[t,I,r,O,S,w,c,u,d,i,a,_,R]),k=P.nodes,A=P.links,M=$.useMemo(function(){return k.map(function(N){return{id:N.id,label:N.label,color:N.color}})},[k]);return{nodes:k,links:A,legendData:M,getNodeBorderColor:T,currentNode:v,setCurrentNode:y,currentLink:x,setCurrentLink:C,getLabelTextColor:F}},Jre=function(e){var t=e.node,n=e.x,r=e.y,i=e.width,a=e.height,o=e.color,s=e.opacity,l=e.borderWidth,c=e.borderColor,u=e.borderRadius,d=e.setCurrent,f=e.isInteractive,h=e.onClick,p=e.tooltip,m=Sn(),v=m.animate,y=m.config,b=Mr({x:n,y:r,width:i,height:a,opacity:s,color:o,config:y,immediate:!v}),x=Wr(),C=x.showTooltipFromEvent,S=x.hideTooltip,w=$.useCallback(function(T){d(t),C($.createElement(p,{node:t}),T,"left")},[d,t,C,p]),O=$.useCallback(function(T){C($.createElement(p,{node:t}),T,"left")},[C,t,p]),E=$.useCallback(function(){d(null),S()},[d,S]),_=$.useCallback(function(T){h==null||h(t,T)},[h,t]);return L.jsx(Mt.rect,{x:b.x,y:b.y,rx:u,ry:u,width:b.width.to(function(T){return Math.max(T,0)}),height:b.height.to(function(T){return Math.max(T,0)}),fill:b.color,fillOpacity:b.opacity,strokeWidth:l,stroke:c,strokeOpacity:s,onMouseEnter:f?w:void 0,onMouseMove:f?O:void 0,onMouseLeave:f?E:void 0,onClick:f?_:void 0})},eie=function(e){var t=e.nodes,n=e.nodeOpacity,r=e.nodeHoverOpacity,i=e.nodeHoverOthersOpacity,a=e.borderWidth,o=e.getBorderColor,s=e.borderRadius,l=e.setCurrentNode,c=e.currentNode,u=e.currentLink,d=e.isCurrentNode,f=e.isInteractive,h=e.onClick,p=e.tooltip,m=function(v){return c||u?d(v)?r:i:n};return L.jsx(L.Fragment,{children:t.map(function(v){return L.jsx(Jre,{node:v,x:v.x,y:v.y,width:v.width,height:v.height,color:v.color,opacity:m(v),borderWidth:a,borderColor:o(v),borderRadius:s,setCurrent:l,isInteractive:f,onClick:h,tooltip:p},v.id)})})},tie=function(e){var t=e.id,n=e.layout,r=e.startColor,i=e.endColor;return L.jsxs("linearGradient",ba({id:t,spreadMethod:"pad"},n==="horizontal"?{x1:"0%",x2:"100%",y1:"0%",y2:"0%"}:{x1:"0%",x2:"0%",y1:"0%",y2:"100%"},{children:[L.jsx("stop",{offset:"0%",stopColor:r}),L.jsx("stop",{offset:"100%",stopColor:i})]}))},nie=function(e){var t=e.link,n=e.layout,r=e.path,i=e.color,a=e.opacity,o=e.blendMode,s=e.enableGradient,l=e.setCurrent,c=e.tooltip,u=e.isInteractive,d=e.onClick,f=t.source.id+"."+t.target.id+"."+t.index,h=Sn(),p=h.animate,m=h.config,v=df(r),y=Mr({color:i,opacity:a,config:m,immediate:!p}),b=Wr(),x=b.showTooltipFromEvent,C=b.hideTooltip,S=$.useCallback(function(_){l(t),x($.createElement(c,{link:t}),_,"left")},[l,t,x,c]),w=$.useCallback(function(_){x($.createElement(c,{link:t}),_,"left")},[x,t,c]),O=$.useCallback(function(){l(null),C()},[l,C]),E=$.useCallback(function(_){d==null||d(t,_)},[d,t]);return L.jsxs(L.Fragment,{children:[s&&L.jsx(tie,{id:f,layout:n,startColor:t.startColor||t.source.color,endColor:t.endColor||t.target.color}),L.jsx(Mt.path,{fill:s?'url("#'+encodeURI(f)+'")':y.color,d:v,fillOpacity:y.opacity,onMouseEnter:u?S:void 0,onMouseMove:u?w:void 0,onMouseLeave:u?O:void 0,onClick:u?E:void 0,style:{mixBlendMode:o}})]})},rie=function(e){var t=e.links,n=e.layout,r=e.linkOpacity,i=e.linkHoverOpacity,a=e.linkHoverOthersOpacity,o=e.linkContract,s=e.linkBlendMode,l=e.enableLinkGradient,c=e.setCurrentLink,u=e.currentLink,d=e.currentNode,f=e.isCurrentLink,h=e.isInteractive,p=e.onClick,m=e.tooltip,v=function(b){return d||u?f(b)?i:a:r},y=$.useMemo(function(){return n==="horizontal"?(b=gl().curve(IE),function(x,C){var S=Math.max(1,x.thickness-2*C)/2,w=.12*(x.target.x0-x.source.x1),O=[[x.source.x1,x.pos0-S],[x.source.x1+w,x.pos0-S],[x.target.x0-w,x.pos1-S],[x.target.x0,x.pos1-S],[x.target.x0,x.pos1+S],[x.target.x0-w,x.pos1+S],[x.source.x1+w,x.pos0+S],[x.source.x1,x.pos0+S],[x.source.x1,x.pos0-S]];return b(O)+"Z"}):function(){var x=gl().curve(AE);return function(C,S){var w=Math.max(1,C.thickness-2*S)/2,O=.12*(C.target.y0-C.source.y1),E=[[C.pos0+w,C.source.y1],[C.pos0+w,C.source.y1+O],[C.pos1+w,C.target.y0-O],[C.pos1+w,C.target.y0],[C.pos1-w,C.target.y0],[C.pos1-w,C.target.y0-O],[C.pos0-w,C.source.y1+O],[C.pos0-w,C.source.y1],[C.pos0+w,C.source.y1]];return x(E)+"Z"}}();var b},[n]);return L.jsx(L.Fragment,{children:t.map(function(b){return L.jsx(nie,{link:b,layout:n,path:y(b,o),color:b.color,opacity:v(b),blendMode:s,enableGradient:l,setCurrent:c,isInteractive:h,onClick:p,tooltip:m},b.source.id+"."+b.target.id+"."+b.index)})})},iie=function(e){var t=e.nodes,n=e.layout,r=e.width,i=e.height,a=e.labelPosition,o=e.labelPadding,s=e.labelOrientation,l=e.getLabelTextColor,c=Lt(),u=s==="vertical"?-90:0,d=t.map(function(v){var y,b,x;return n==="horizontal"?(b=v.y+v.height/2,v.x<r/2?a==="inside"?(y=v.x1+o,x=s==="vertical"?"middle":"start"):(y=v.x-o,x=s==="vertical"?"middle":"end"):a==="inside"?(y=v.x-o,x=s==="vertical"?"middle":"end"):(y=v.x1+o,x=s==="vertical"?"middle":"start")):n==="vertical"&&(y=v.x+v.width/2,v.y<i/2?a==="inside"?(b=v.y1+o,x=s==="vertical"?"end":"middle"):(b=v.y-o,x=s==="vertical"?"start":"middle"):a==="inside"?(b=v.y-o,x=s==="vertical"?"start":"middle"):(b=v.y1+o,x=s==="vertical"?"end":"middle")),{id:v.id,label:v.label,x:y,y:b,textAnchor:x,color:l(v)}}),f=Sn(),h=f.animate,p=f.config,m=c_(d.length,d.map(function(v){return{transform:"translate("+v.x+", "+v.y+") rotate("+u+")",color:v.color,config:p,immediate:!h}}));return L.jsx(L.Fragment,{children:m.map(function(v,y){var b=d[y];return L.jsx(Mt.text,{dominantBaseline:"central",textAnchor:b.textAnchor,transform:v.transform,style:ba({},c.labels.text,{fill:v.color,pointerEvents:"none"}),children:b.label},b.id)})})},aie=["isInteractive","animate","motionConfig","theme","renderWrapper"],oie=function(e){var t=e.data,n=e.valueFormat,r=e.layout,i=r===void 0?It.layout:r,a=e.sort,o=a===void 0?It.sort:a,s=e.align,l=s===void 0?It.align:s,c=e.width,u=e.height,d=e.margin,f=e.colors,h=f===void 0?It.colors:f,p=e.nodeThickness,m=p===void 0?It.nodeThickness:p,v=e.nodeSpacing,y=v===void 0?It.nodeThickness:v,b=e.nodeInnerPadding,x=b===void 0?It.nodeInnerPadding:b,C=e.nodeBorderColor,S=C===void 0?It.nodeBorderColor:C,w=e.nodeOpacity,O=w===void 0?It.nodeOpacity:w,E=e.nodeHoverOpacity,_=E===void 0?It.nodeHoverOpacity:E,T=e.nodeHoverOthersOpacity,R=T===void 0?It.nodeHoverOthersOpacity:T,F=e.nodeBorderWidth,I=F===void 0?It.nodeBorderWidth:F,P=e.nodeBorderRadius,k=P===void 0?It.nodeBorderRadius:P,A=e.linkOpacity,M=A===void 0?It.linkOpacity:A,N=e.linkHoverOpacity,j=N===void 0?It.linkHoverOpacity:N,D=e.linkHoverOthersOpacity,V=D===void 0?It.linkHoverOthersOpacity:D,X=e.linkContract,q=X===void 0?It.linkContract:X,Z=e.linkBlendMode,J=Z===void 0?It.linkBlendMode:Z,Q=e.enableLinkGradient,K=Q===void 0?It.enableLinkGradient:Q,Y=e.enableLabels,W=Y===void 0?It.enableLabels:Y,H=e.labelPosition,U=H===void 0?It.labelPosition:H,z=e.labelPadding,ne=z===void 0?It.labelPadding:z,B=e.labelOrientation,re=B===void 0?It.labelOrientation:B,ie=e.label,ue=ie===void 0?It.label:ie,me=e.labelTextColor,ve=me===void 0?It.labelTextColor:me,be=e.nodeTooltip,Ce=be===void 0?It.nodeTooltip:be,ge=e.linkTooltip,fe=ge===void 0?It.linkTooltip:ge,se=e.isInteractive,xe=se===void 0?It.isInteractive:se,ce=e.onClick,Ne=e.legends,Me=Ne===void 0?It.legends:Ne,Ie=e.layers,je=Ie===void 0?It.layers:Ie,He=e.role,Xe=He===void 0?It.role:He,ke=e.ariaLabel,Oe=e.ariaLabelledBy,nt=e.ariaDescribedBy,We=Ra(c,u,d),Be=We.margin,Se=We.innerWidth,Fe=We.innerHeight,ot=We.outerWidth,ct=We.outerHeight,De=Qre({data:t,valueFormat:n,layout:i,width:Se,height:Fe,sort:o,align:l,colors:h,nodeThickness:m,nodeSpacing:y,nodeInnerPadding:x,nodeBorderColor:S,label:ue,labelTextColor:ve}),qe=De.nodes,Qe=De.links,Je=De.legendData,rt=De.getNodeBorderColor,Ve=De.currentNode,Te=De.setCurrentNode,st=De.currentLink,mt=De.setCurrentLink,Ee=De.getLabelTextColor,he=function(){return!1},we=function(){return!1};if(st&&(he=function(at){var G=at.id;return G===st.source.id||G===st.target.id},we=function(at){var G=at.source,oe=at.target;return G.id===st.source.id&&oe.id===st.target.id}),Ve){var Le=[Ve.id];Qe.filter(function(at){var G=at.source,oe=at.target;return G.id===Ve.id||oe.id===Ve.id}).forEach(function(at){var G=at.source,oe=at.target;Le.push(G.id),Le.push(oe.id)}),Le=eg(Le),he=function(at){var G=at.id;return Le.includes(G)},we=function(at){var G=at.source,oe=at.target;return G.id===Ve.id||oe.id===Ve.id}}var tt={links:Qe,nodes:qe,margin:Be,width:c,height:u,outerWidth:ot,outerHeight:ct},Ue={links:null,nodes:null,labels:null,legends:null};return je.includes("links")&&(Ue.links=L.jsx(rie,{links:Qe,layout:i,linkContract:q,linkOpacity:M,linkHoverOpacity:j,linkHoverOthersOpacity:V,linkBlendMode:J,enableLinkGradient:K,setCurrentLink:mt,currentNode:Ve,currentLink:st,isCurrentLink:we,isInteractive:xe,onClick:ce,tooltip:fe},"links")),je.includes("nodes")&&(Ue.nodes=L.jsx(eie,{nodes:qe,nodeOpacity:O,nodeHoverOpacity:_,nodeHoverOthersOpacity:R,borderWidth:I,borderRadius:k,getBorderColor:rt,setCurrentNode:Te,currentNode:Ve,currentLink:st,isCurrentNode:he,isInteractive:xe,onClick:ce,tooltip:Ce},"nodes")),je.includes("labels")&&W&&(Ue.labels=L.jsx(iie,{nodes:qe,layout:i,width:Se,height:Fe,labelPosition:U,labelPadding:ne,labelOrientation:re,getLabelTextColor:Ee},"labels")),je.includes("legends")&&(Ue.legends=L.jsx($.Fragment,{children:Me.map(function(at,G){return L.jsx(hf,ba({},at,{containerWidth:Se,containerHeight:Fe,data:Je}),"legend"+G)})},"legends")),L.jsx(Xo,{width:ot,height:ct,margin:Be,role:Xe,ariaLabel:ke,ariaLabelledBy:Oe,ariaDescribedBy:nt,children:je.map(function(at,G){var oe;return typeof at=="function"?L.jsx($.Fragment,{children:$.createElement(at,tt)},G):(oe=Ue==null?void 0:Ue[at])!=null?oe:null})})},sie=function(e){var t=e.isInteractive,n=t===void 0?It.isInteractive:t,r=e.animate,i=r===void 0?It.animate:r,a=e.motionConfig,o=a===void 0?It.motionConfig:a,s=e.theme,l=e.renderWrapper,c=function(u,d){if(u==null)return{};var f,h,p={},m=Object.keys(u);for(h=0;h<m.length;h++)f=m[h],d.indexOf(f)>=0||(p[f]=u[f]);return p}(e,aie);return L.jsx(Pa,{animate:i,isInteractive:n,motionConfig:o,renderWrapper:l,theme:s,children:L.jsx(oie,ba({isInteractive:n},c))})},jO=function(e){return L.jsx(Hi,{children:function(t){var n=t.width,r=t.height;return L.jsx(sie,ba({width:n,height:r},e))}})};const lie={background:"white",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},Li=({style:e=lie,label:t,amount:n,unit:r="kg"})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsxs("div",{style:e,children:[t,": ",n," ",r]})]}),cie=({sankeyData:e})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx("div",{style:{width:"100%",height:600},children:L.jsx(jO,{data:e,margin:{top:20,right:120,bottom:20,left:120},nodeTooltip:({node:{id:t,value:n,unit:r}})=>L.jsx(Li,{label:t,amount:n,unit:r}),linkTooltip:({link:t})=>L.jsx(Li,{label:L.jsxs(L.Fragment,{children:[L.jsx("b",{children:t.source.label}),L.jsx("span",{children:" > "}),L.jsx("b",{children:t.target.label})]}),amount:t.value,unit:t.unit})})})]});function Qt(){return Qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qt.apply(this,arguments)}var uie={pointerEvents:"none"},die=function(e){var t=e.label,n=e.style,r=Lt();return L.jsx(Mt.g,{transform:n.transform,opacity:n.progress,style:uie,children:L.jsx(Mt.text,{textAnchor:"middle",dominantBaseline:"central",style:Qt({},r.labels.text,{fill:n.textColor}),children:t})})},LO=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},fie=function(e,t){return e.filter(function(n){return Math.abs(ff(n.arc.endAngle-n.arc.startAngle))>=t})},hie={startAngle:{enter:function(e){return Qt({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Qt({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Qt({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Qt({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Qt({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Qt({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Qt({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Qt({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Qt({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Qt({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Qt({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Qt({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Qt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Qt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Qt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Qt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},DO=function(e,t){return $.useMemo(function(){var n=hie[e];return{enter:function(r){return Qt({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Qt({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Qt({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},vie=function(e,t){var n=Ree(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return ua(n,r)},gie=function(e){return function(t,n,r,i){return ur([t,n,r,i],function(a,o,s,l){var c=vie({startAngle:a,endAngle:o,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},mie=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=Sn(),a=i.animate,o=i.config,s=DO(n,r);return{transition:$a(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!a}),interpolate:gie(t)}},pie=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,a=e.radiusOffset,o=e.skipAngle,s=e.textColor,l=e.component,c=l===void 0?die:l,u=Yr(i),d=Lt(),f=lr(s,d),h=$.useMemo(function(){return n.filter(function(b){return Math.abs(ff(b.arc.endAngle-b.arc.startAngle))>=o})},[n,o]),p=mie(h,a,r),m=p.transition,v=p.interpolate,y=c;return L.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:m(function(b,x){return $.createElement(y,{key:x.id,datum:x,label:u(x),style:Qt({},b,{transform:v(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius),textColor:f(x)})})})})},bie=function(e){var t=e.label,n=e.style,r=Lt();return L.jsxs(Mt.g,{opacity:n.opacity,children:[L.jsx(Mt.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),L.jsx(Mt.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Qt({},r.labels.text,{fill:n.textColor}),children:t})]})},yie=function(e){var t=LO(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},FO=function(e,t,n,r){var i,a,o=LO(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=ua(o,e.outerRadius+t),l=ua(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(i="after",a={x:l.x+r,y:l.y}):(i="before",a={x:l.x-r,y:l.y}),{side:i,points:[s,l,a]}},xie=gl().x(function(e){return e.x}).y(function(e){return e.y}),Sie=function(e,t,n,r,i,a,o){return ur([e,t,n,r,i,a,o],function(s,l,c,u,d,f,h){var p=FO({startAngle:s,endAngle:l,innerRadius:c,outerRadius:u},d,f,h).points;return xie(p)})},Cie=function(e,t,n,r){return ur([e,t,n,r],function(i,a,o,s){return yie({startAngle:i,endAngle:a,innerRadius:o,outerRadius:s})})},wie=function(e,t,n,r,i,a,o,s){return ur([e,t,n,r,i,a,o,s],function(l,c,u,d,f,h,p,m){var v=FO({startAngle:l,endAngle:c,innerRadius:u,outerRadius:d},f,h,p),y=v.points,b=v.side,x=y[2];return b==="before"?x.x-=m:x.x+=m,"translate("+x.x+","+x.y+")"})},$ie=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,a=e.straightLength,o=e.skipAngle,s=o===void 0?0:o,l=e.textOffset,c=e.linkColor,u=e.textColor,d=Sn(),f=d.animate,h=d.config,p=Lt(),m=lr(c,p),v=lr(u,p),y=function(x,C){return $.useMemo(function(){return fie(x,C)},[x,C])}(t,s),b=function(x){var C=x.offset,S=x.diagonalLength,w=x.straightLength,O=x.textOffset,E=x.getLinkColor,_=x.getTextColor;return $.useMemo(function(){return{enter:function(T){return{startAngle:T.arc.startAngle,endAngle:T.arc.endAngle,innerRadius:T.arc.innerRadius,outerRadius:T.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:O,linkColor:E(T),textColor:_(T),opacity:0}},update:function(T){return{startAngle:T.arc.startAngle,endAngle:T.arc.endAngle,innerRadius:T.arc.innerRadius,outerRadius:T.arc.outerRadius,offset:C,diagonalLength:S,straightLength:w,textOffset:O,linkColor:E(T),textColor:_(T),opacity:1}},leave:function(T){return{startAngle:T.arc.startAngle,endAngle:T.arc.endAngle,innerRadius:T.arc.innerRadius,outerRadius:T.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:O,linkColor:E(T),textColor:_(T),opacity:0}}}},[S,w,O,E,_,C])}({offset:r,diagonalLength:i,straightLength:a,textOffset:l,getLinkColor:m,getTextColor:v});return{transition:$a(y,{keys:function(x){return x.id},initial:b.update,from:b.enter,enter:b.update,update:b.update,leave:b.leave,config:h,immediate:!f}),interpolateLink:Sie,interpolateTextAnchor:Cie,interpolateTextPosition:wie}},_ie=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,a=e.offset,o=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,c=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?bie:f,p=Yr(r),m=$ie({data:n,skipAngle:i,offset:a,diagonalLength:o,straightLength:s,textOffset:c,linkColor:d,textColor:u}),v=m.transition,y=m.interpolateLink,b=m.interpolateTextAnchor,x=m.interpolateTextPosition,C=h;return L.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(S,w){return $.createElement(C,{key:w.id,datum:w,label:p(w),style:Qt({},S,{thickness:l,path:y(S.startAngle,S.endAngle,S.innerRadius,S.outerRadius,S.offset,S.diagonalLength,S.straightLength),textAnchor:b(S.startAngle,S.endAngle,S.innerRadius,S.outerRadius),textPosition:x(S.startAngle,S.endAngle,S.innerRadius,S.outerRadius,S.offset,S.diagonalLength,S.straightLength,S.textOffset)})})})})},Eie=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=$.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),l=$.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),c=$.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]),u=$.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]);return L.jsx(Mt.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?l:void 0,onMouseMove:a?c:void 0,onMouseLeave:o?u:void 0})},Oie=function(e,t,n,r,i){return ur([e,t,n,r],function(a,o,s,l){return i({startAngle:a,endAngle:o,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},Mie=function(e,t,n){t===void 0&&(t="innerRadius");var r=Sn(),i=r.animate,a=r.config,o=DO(t,n);return{transition:$a(e,{keys:function(s){return s.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:Oie}},Tie=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?Eie:d,h=Lt(),p=lr(a,h),m=Mie(n,u,{enter:function(x){return{opacity:0,color:x.color,borderColor:p(x)}},update:function(x){return{opacity:1,color:x.color,borderColor:p(x)}},leave:function(x){return{opacity:0,color:x.color,borderColor:p(x)}}}),v=m.transition,y=m.interpolate,b=f;return L.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:v(function(x,C){return $.createElement(b,{key:C.id,datum:C,style:Qt({},x,{borderWidth:i,path:y(x.startAngle,x.endAngle,x.innerRadius,x.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},Rie=function(e,t,n,r,i,a){a===void 0&&(a=!0);var o=[],s=ua(Cr(r),n);o.push([s.x,s.y]);var l=ua(Cr(i),n);o.push([l.x,l.y]);for(var c=Math.round(Math.min(r,i));c<=Math.round(Math.max(r,i));c++)if(c%90==0){var u=ua(Cr(c),n);o.push([u.x,u.y])}o=o.map(function(v){var y=v[0],b=v[1];return[e+y,t+b]}),a&&o.push([e,t]);var d=o.map(function(v){return v[0]}),f=o.map(function(v){return v[1]}),h=Math.min.apply(Math,d),p=Math.max.apply(Math,d),m=Math.min.apply(Math,f);return{points:o,x:h,y:m,width:p-h,height:Math.max.apply(Math,f)-m}},Pie=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,a=i===void 0?0:i;return $.useMemo(function(){return oX().innerRadius(function(o){return o.innerRadius}).outerRadius(function(o){return o.outerRadius}).cornerRadius(r).padAngle(a)},[r,a])};function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Di.apply(this,arguments)}function zO(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var SS,Iie=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,a=e.toggleSerie;return L.jsx(L.Fragment,{children:r.map(function(o,s){var l;return L.jsx(hf,Di({},o,{containerWidth:t,containerHeight:n,data:(l=o.data)!=null?l:i,toggleSerie:o.toggleSerie?a:void 0}),s)})})},ht={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return L.jsx(So,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(SS=window.devicePixelRatio)!=null?SS:1},Aie=["points"],Nie=function(e){var t=e.data,n=e.id,r=n===void 0?ht.id:n,i=e.value,a=i===void 0?ht.value:i,o=e.valueFormat,s=e.colors,l=s===void 0?ht.colors:s,c=Yr(r),u=Yr(a),d=ji(o),f=Bl(l,"id");return $.useMemo(function(){return t.map(function(h){var p,m=c(h),v=u(h),y={id:m,label:(p=h.label)!=null?p:m,hidden:!1,value:v,formattedValue:d(v),data:h};return Di({},y,{color:f(y)})})},[t,c,u,d,f])},kie=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,a=e.outerRadius,o=e.padAngle,s=e.sortByValue,l=e.activeId,c=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=$.useMemo(function(){var y=uX().value(function(b){return b.value}).startAngle(Cr(n)).endAngle(Cr(r)).padAngle(Cr(o));return s||y.sortValues(null),y},[n,r,o,s]),p=$.useMemo(function(){var y=t.filter(function(b){return!d.includes(b.id)});return{dataWithArc:h(y).map(function(b){var x=Math.abs(b.endAngle-b.startAngle);return Di({},b.data,{arc:{index:b.index,startAngle:b.startAngle,endAngle:b.endAngle,innerRadius:l===b.data.id?i-c:i,outerRadius:l===b.data.id?a+u:a,thickness:a-i,padAngle:b.padAngle,angle:x,angleDeg:ff(x)}})}),legendData:t.map(function(b){return{id:b.id,label:b.label,color:b.color,hidden:d.includes(b.id),data:b}})}},[h,t,d,l,i,c,a,u]),m=p.legendData,v=$.useRef(f);return $.useEffect(function(){typeof v.current=="function"&&v.current(m)},[v,m]),p},jie=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,a=$.useState(i||r===void 0?null:r),o=a[0],s=a[1];return{activeId:i?t:o,setActiveId:$.useCallback(function(l){n&&n(l),i||s(l)},[i,n,s])}},Lie=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,a=i===void 0?ht.innerRadius:i,o=e.startAngle,s=o===void 0?ht.startAngle:o,l=e.endAngle,c=l===void 0?ht.endAngle:l,u=e.padAngle,d=u===void 0?ht.padAngle:u,f=e.sortByValue,h=f===void 0?ht.sortByValue:f,p=e.cornerRadius,m=p===void 0?ht.cornerRadius:p,v=e.fit,y=v===void 0?ht.fit:v,b=e.activeInnerRadiusOffset,x=b===void 0?ht.activeInnerRadiusOffset:b,C=e.activeOuterRadiusOffset,S=C===void 0?ht.activeOuterRadiusOffset:C,w=e.activeId,O=e.onActiveIdChange,E=e.defaultActiveId,_=e.forwardLegendData,T=jie({activeId:w,onActiveIdChange:O,defaultActiveId:E}),R=T.activeId,F=T.setActiveId,I=$.useState([]),P=I[0],k=I[1],A=$.useMemo(function(){var j,D=Math.min(n,r)/2,V=D*Math.min(a,1),X=n/2,q=r/2;if(y){var Z=Rie(X,q,D,s-90,c-90),J=Z.points,Q=zO(Z,Aie),K=Math.min(n/Q.width,r/Q.height),Y={width:Q.width*K,height:Q.height*K};Y.x=(n-Y.width)/2,Y.y=(r-Y.height)/2,X=(X-Q.x)/Q.width*Q.width*K+Y.x,q=(q-Q.y)/Q.height*Q.height*K+Y.y,j={box:Q,ratio:K,points:J},D*=K,V*=K}return{centerX:X,centerY:q,radius:D,innerRadius:V,debug:j}},[n,r,a,s,c,y]),M=kie({data:t,startAngle:s,endAngle:c,innerRadius:A.innerRadius,outerRadius:A.radius,padAngle:d,sortByValue:h,activeId:R,activeInnerRadiusOffset:x,activeOuterRadiusOffset:S,hiddenIds:P,forwardLegendData:_}),N=$.useCallback(function(j){k(function(D){return D.indexOf(j)>-1?D.filter(function(V){return V!==j}):[].concat(D,[j])})},[]);return Di({arcGenerator:Pie({cornerRadius:m,padAngle:Cr(d)}),activeId:R,setActiveId:F,toggleSerie:N},M,A)},Die=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,a=e.radius,o=e.innerRadius;return $.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:a,innerRadius:o}},[t,n,r,i,a,o])},Fie=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.isInteractive,s=e.onClick,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,p=Wr(),m=p.showTooltipFromEvent,v=p.hideTooltip,y=$.useMemo(function(){if(o)return function(S,w){s==null||s(S,w)}},[o,s]),b=$.useMemo(function(){if(o)return function(S,w){m($.createElement(f,{datum:S}),w),d(S.id),l==null||l(S,w)}},[o,m,d,l,f]),x=$.useMemo(function(){if(o)return function(S,w){m($.createElement(f,{datum:S}),w),c==null||c(S,w)}},[o,m,c,f]),C=$.useMemo(function(){if(o)return function(S,w){v(),d(null),u==null||u(S,w)}},[o,v,d,u]);return L.jsx(Tie,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:h,onClick:y,onMouseEnter:b,onMouseMove:x,onMouseLeave:C})},zie=["isInteractive","animate","motionConfig","theme","renderWrapper"],Bie=function(e){var t=e.data,n=e.id,r=n===void 0?ht.id:n,i=e.value,a=i===void 0?ht.value:i,o=e.valueFormat,s=e.sortByValue,l=s===void 0?ht.sortByValue:s,c=e.layers,u=c===void 0?ht.layers:c,d=e.startAngle,f=d===void 0?ht.startAngle:d,h=e.endAngle,p=h===void 0?ht.endAngle:h,m=e.padAngle,v=m===void 0?ht.padAngle:m,y=e.fit,b=y===void 0?ht.fit:y,x=e.innerRadius,C=x===void 0?ht.innerRadius:x,S=e.cornerRadius,w=S===void 0?ht.cornerRadius:S,O=e.activeInnerRadiusOffset,E=O===void 0?ht.activeInnerRadiusOffset:O,_=e.activeOuterRadiusOffset,T=_===void 0?ht.activeOuterRadiusOffset:_,R=e.width,F=e.height,I=e.margin,P=e.colors,k=P===void 0?ht.colors:P,A=e.borderWidth,M=A===void 0?ht.borderWidth:A,N=e.borderColor,j=N===void 0?ht.borderColor:N,D=e.enableArcLabels,V=D===void 0?ht.enableArcLabels:D,X=e.arcLabel,q=X===void 0?ht.arcLabel:X,Z=e.arcLabelsSkipAngle,J=Z===void 0?ht.arcLabelsSkipAngle:Z,Q=e.arcLabelsTextColor,K=Q===void 0?ht.arcLabelsTextColor:Q,Y=e.arcLabelsRadiusOffset,W=Y===void 0?ht.arcLabelsRadiusOffset:Y,H=e.arcLabelsComponent,U=e.enableArcLinkLabels,z=U===void 0?ht.enableArcLinkLabels:U,ne=e.arcLinkLabel,B=ne===void 0?ht.arcLinkLabel:ne,re=e.arcLinkLabelsSkipAngle,ie=re===void 0?ht.arcLinkLabelsSkipAngle:re,ue=e.arcLinkLabelsOffset,me=ue===void 0?ht.arcLinkLabelsOffset:ue,ve=e.arcLinkLabelsDiagonalLength,be=ve===void 0?ht.arcLinkLabelsDiagonalLength:ve,Ce=e.arcLinkLabelsStraightLength,ge=Ce===void 0?ht.arcLinkLabelsStraightLength:Ce,fe=e.arcLinkLabelsThickness,se=fe===void 0?ht.arcLinkLabelsThickness:fe,xe=e.arcLinkLabelsTextOffset,ce=xe===void 0?ht.arcLinkLabelsTextOffset:xe,Ne=e.arcLinkLabelsTextColor,Me=Ne===void 0?ht.arcLinkLabelsTextColor:Ne,Ie=e.arcLinkLabelsColor,je=Ie===void 0?ht.arcLinkLabelsColor:Ie,He=e.arcLinkLabelComponent,Xe=e.defs,ke=Xe===void 0?ht.defs:Xe,Oe=e.fill,nt=Oe===void 0?ht.fill:Oe,We=e.isInteractive,Be=We===void 0?ht.isInteractive:We,Se=e.onClick,Fe=e.onMouseEnter,ot=e.onMouseMove,ct=e.onMouseLeave,De=e.tooltip,qe=De===void 0?ht.tooltip:De,Qe=e.activeId,Je=e.onActiveIdChange,rt=e.defaultActiveId,Ve=e.transitionMode,Te=Ve===void 0?ht.transitionMode:Ve,st=e.legends,mt=st===void 0?ht.legends:st,Ee=e.forwardLegendData,he=e.role,we=he===void 0?ht.role:he,Le=Ra(R,F,I),tt=Le.outerWidth,Ue=Le.outerHeight,at=Le.margin,G=Le.innerWidth,oe=Le.innerHeight,le=Nie({data:t,id:r,value:a,valueFormat:o,colors:k}),_e=Lie({data:le,width:G,height:oe,fit:b,innerRadius:C,startAngle:f,endAngle:p,padAngle:v,sortByValue:l,cornerRadius:w,activeInnerRadiusOffset:E,activeOuterRadiusOffset:T,activeId:Qe,onActiveIdChange:Je,defaultActiveId:rt,forwardLegendData:Ee}),Ke=_e.dataWithArc,et=_e.legendData,Ze=_e.arcGenerator,it=_e.centerX,Re=_e.centerY,Pe=_e.radius,ze=_e.innerRadius,ft=_e.setActiveId,Nt=_e.toggleSerie,Wt=c0(ke,Ke,nt),St={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(St.arcs=L.jsx(Fie,{center:[it,Re],data:Ke,arcGenerator:Ze,borderWidth:M,borderColor:j,isInteractive:Be,onClick:Se,onMouseEnter:Fe,onMouseMove:ot,onMouseLeave:ct,setActiveId:ft,tooltip:qe,transitionMode:Te},"arcs")),z&&u.includes("arcLinkLabels")&&(St.arcLinkLabels=L.jsx(_ie,{center:[it,Re],data:Ke,label:B,skipAngle:ie,offset:me,diagonalLength:be,straightLength:ge,strokeWidth:se,textOffset:ce,textColor:Me,linkColor:je,component:He},"arcLinkLabels")),V&&u.includes("arcLabels")&&(St.arcLabels=L.jsx(pie,{center:[it,Re],data:Ke,label:q,radiusOffset:W,skipAngle:J,textColor:K,transitionMode:Te,component:H},"arcLabels")),mt.length>0&&u.includes("legends")&&(St.legends=L.jsx(Iie,{width:G,height:oe,data:et,legends:mt,toggleSerie:Nt},"legends"));var Cn=Die({dataWithArc:Ke,arcGenerator:Ze,centerX:it,centerY:Re,radius:Pe,innerRadius:ze});return L.jsx(Xo,{width:tt,height:Ue,margin:at,defs:Wt,role:we,children:u.map(function(fn,Ht){return St[fn]!==void 0?St[fn]:typeof fn=="function"?L.jsx($.Fragment,{children:$.createElement(fn,Cn)},Ht):null})})},Vie=function(e){var t=e.isInteractive,n=t===void 0?ht.isInteractive:t,r=e.animate,i=r===void 0?ht.animate:r,a=e.motionConfig,o=a===void 0?ht.motionConfig:a,s=e.theme,l=e.renderWrapper,c=zO(e,zie);return L.jsx(Pa,{animate:i,isInteractive:n,motionConfig:o,renderWrapper:l,theme:s,children:L.jsx(Bie,Di({isInteractive:n},c))})},Wie=function(e){return L.jsx(Hi,{children:function(t){var n=t.width,r=t.height;return L.jsx(Vie,Di({width:n,height:r},e))}})};const Hie=Rt.span`
|
|
487
|
+
color: black;
|
|
488
|
+
font-style: normal;
|
|
489
|
+
font-weight: 600;
|
|
490
|
+
font-size: 20px;
|
|
491
|
+
line-height: 30px;
|
|
492
|
+
align-items: center;
|
|
493
|
+
margin-left: 70px;
|
|
494
|
+
margin-bottom: 50px;
|
|
495
|
+
padding: 50px;
|
|
496
|
+
`,Uie=({pieChartData:e,title:t})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsxs("div",{style:{width:"100%",height:600},children:[L.jsx(Hie,{children:t}),L.jsx(Wie,{tooltip:({datum:{id:n,label:r,value:i,color:a,unit:o}})=>L.jsx(Li,{label:r,amount:i,unit:o}),data:e,margin:{top:40,right:80,bottom:80,left:80},innerRadius:.5,padAngle:.7,cornerRadius:3,activeOuterRadiusOffset:8,borderWidth:1,borderColor:{from:"color",modifiers:[["darker",.2]]},arcLinkLabelsSkipAngle:10,arcLinkLabelsTextColor:"#333333",arcLinkLabelsThickness:2,arcLinkLabelsColor:{from:"color"},arcLabelsSkipAngle:10,arcLabelsTextColor:{from:"color",modifiers:[["darker",2]]},defs:[{id:"dots",type:"patternDots",background:"inherit",color:"rgba(255, 255, 255, 0.3)",size:4,padding:1,stagger:!0},{id:"lines",type:"patternLines",background:"inherit",color:"rgba(255, 255, 255, 0.3)",rotation:-45,lineWidth:6,spacing:10}]})]})]});var Gie=md,qie=a0,Kie=1,Yie=2;function Xie(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var l=s[0],c=e[l],u=s[1];if(o&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Gie;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?qie(u,c,Kie|Yie,r,d):f))return!1}}return!0}var Zie=Xie,Qie=ni;function Jie(e){return e===e&&!Qie(e)}var BO=Jie,eae=BO,tae=zl;function nae(e){for(var t=tae(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,eae(i)]}return t}var rae=nae;function iae(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var VO=iae,aae=Zie,oae=rae,sae=VO;function lae(e){var t=oae(e);return t.length==1&&t[0][2]?sae(t[0][0],t[0][1]):function(n){return n===e||aae(n,e,t)}}var cae=lae,uae=a0,dae=j_,fae=GE,hae=Cp,vae=BO,gae=VO,mae=qo,pae=1,bae=2;function yae(e,t){return hae(e)&&vae(t)?gae(mae(e),t):function(n){var r=dae(n,e);return r===void 0&&r===t?fae(n,e):uae(t,r,pae|bae)}}var xae=yae;function Sae(e){return function(t){return t==null?void 0:t[e]}}var Cae=Sae,wae=Dl;function $ae(e){return function(t){return wae(t,e)}}var _ae=$ae,Eae=Cae,Oae=_ae,Mae=Cp,Tae=qo;function Rae(e){return Mae(e)?Eae(Tae(e)):Oae(e)}var Pae=Rae,Iae=cae,Aae=xae,Nae=Cd,kae=tr,jae=Pae;function Lae(e){return typeof e=="function"?e:e==null?Nae:typeof e=="object"?kae(e)?Aae(e[0],e[1]):Iae(e):jae(e)}var d0=Lae,Dae=d0,Fae=M$;function zae(e,t){return e&&e.length?Fae(e,Dae(t)):[]}var Bae=zae;const Vae=rn(Bae);var Wae=b_,Hae=zl;function Uae(e,t){return e&&Wae(e,t,Hae)}var Gae=Uae,qae=Wo;function Kae(e,t){return function(n,r){if(n==null)return n;if(!qae(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var Yae=Kae,Xae=Gae,Zae=Yae,Qae=Zae(Xae),WO=Qae,Jae=WO,eoe=Wo;function toe(e,t){var n=-1,r=eoe(e)?Array(e.length):[];return Jae(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var noe=toe;function roe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var ioe=roe,CS=wd;function aoe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=CS(e),o=t!==void 0,s=t===null,l=t===t,c=CS(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var ooe=aoe,soe=ooe;function loe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=soe(i[r],a[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var coe=loe,kh=$d,uoe=Dl,doe=d0,foe=noe,hoe=ioe,voe=Ho,goe=coe,moe=Cd,poe=tr;function boe(e,t,n){t.length?t=kh(t,function(a){return poe(a)?function(o){return uoe(o,a.length===1?a[0]:a)}:a}):t=[moe];var r=-1;t=kh(t,voe(doe));var i=foe(e,function(a,o,s){var l=kh(t,function(c){return c(a)});return{criteria:l,index:++r,value:a}});return hoe(i,function(a,o){return goe(a,o,n)})}var yoe=boe,xoe=KE,Soe=yoe,Coe=Sp,wS=A_,woe=Coe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&wS(e,t[0],t[1])?t=[]:n>2&&wS(t[0],t[1],t[2])&&(t=[t[0]]),Soe(e,xoe(t,1),[])}),$oe=woe;const _oe=rn($oe);var Eoe=yi,Ooe=Tr,Moe="[object Date]";function Toe(e){return Ooe(e)&&Eoe(e)==Moe}var Roe=Toe,Poe=Roe,Ioe=Ho,$S=xd,_S=$S&&$S.isDate,Aoe=_S?Ioe(_S):Poe,Noe=Aoe;const koe=rn(Noe);var jh=new Date,Lh=new Date;function En(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var l=[],c;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=function(a){return En(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return jh.setTime(+a),Lh.setTime(+o),e(jh),e(Lh),Math.floor(n(jh,Lh))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var ml=En(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ml.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?En(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):ml};ml.range;var Pu=1e3,To=6e4,Iu=36e5,HO=6048e5,jg=En(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Pu)},function(e,t){return(t-e)/Pu},function(e){return e.getUTCSeconds()});jg.range;var UO=En(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pu)},function(e,t){e.setTime(+e+t*To)},function(e,t){return(t-e)/To},function(e){return e.getMinutes()});UO.range;var GO=En(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pu-e.getMinutes()*To)},function(e,t){e.setTime(+e+t*Iu)},function(e,t){return(t-e)/Iu},function(e){return e.getHours()});GO.range;function Ia(e){return En(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*To)/HO})}var Lg=Ia(0),qO=Ia(1),KO=Ia(2),YO=Ia(3),XO=Ia(4),ZO=Ia(5),QO=Ia(6);Lg.range;qO.range;KO.range;YO.range;XO.range;ZO.range;QO.range;var JO=En(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});JO.range;var f0=En(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});f0.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:En(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};f0.range;var eM=En(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*To)},function(e,t){return(t-e)/To},function(e){return e.getUTCMinutes()});eM.range;var tM=En(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Iu)},function(e,t){return(t-e)/Iu},function(e){return e.getUTCHours()});tM.range;function Aa(e){return En(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/HO})}var Dg=Aa(0),nM=Aa(1),rM=Aa(2),iM=Aa(3),aM=Aa(4),oM=Aa(5),sM=Aa(6);Dg.range;nM.range;rM.range;iM.range;aM.range;oM.range;sM.range;var lM=En(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});lM.range;var h0=En(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});h0.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:En(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};h0.range;function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qi.apply(this,arguments)}var Ka=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],joe={millisecond:[],second:Ka.slice(0,1),minute:Ka.slice(0,2),hour:Ka.slice(0,3),day:Ka.slice(0,4),month:Ka.slice(0,5),year:Ka.slice(0,6)},Loe=function(e){return function(t){return joe[e].forEach(function(n){n(t)}),t}},cM=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,a=e.useUTC,o=a===void 0||a,s=Loe(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=o?UE(n):HE(n);return s(c(l))}},Doe=function(e,t,n,r){var i,a,o,s,l=e.min,c=l===void 0?0:l,u=e.max,d=u===void 0?"auto":u,f=e.stacked,h=f!==void 0&&f,p=e.reverse,m=p!==void 0&&p,v=e.clamp,y=v!==void 0&&v,b=e.nice,x=b!==void 0&&b;c==="auto"?i=h===!0?(a=t.minStacked)!=null?a:0:t.min:i=c,d==="auto"?o=h===!0?(s=t.maxStacked)!=null?s:0:t.max:o=d;var C=Ap().rangeRound(r==="x"?[0,n]:[n,0]).domain(m?[o,i]:[i,o]).clamp(y);return x===!0?C.nice():typeof x=="number"&&C.nice(x),Foe(C,h)},Foe=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},zoe=function(e,t,n){var r=eq().range([0,n]).domain(t.all);return r.type="point",r},Boe=function(e,t,n,r){var i=e.round,a=i===void 0||i,o=Tp().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(a);return Voe(o)},Voe=function(e){var t=e;return t.type="band",t},Woe=function(e,t,n){var r,i,a=e.format,o=a===void 0?"native":a,s=e.precision,l=s===void 0?"millisecond":s,c=e.min,u=c===void 0?"auto":c,d=e.max,f=d===void 0?"auto":d,h=e.useUTC,p=h===void 0||h,m=e.nice,v=m!==void 0&&m,y=cM({format:o,precision:l,useUTC:p});r=u==="auto"?y(t.min):o!=="native"?y(u):u,i=f==="auto"?y(t.max):o!=="native"?y(f):f;var b=p?qK():GK();b.range([0,n]),r&&i&&b.domain([r,i]),v===!0?b.nice():typeof v!="object"&&typeof v!="number"||b.nice(v);var x=b;return x.type="time",x.useUTC=p,x},Hoe=function(e,t,n,r){var i,a=e.base,o=a===void 0?10:a,s=e.min,l=s===void 0?"auto":s,c=e.max,u=c===void 0?"auto":c;if(t.all.some(function(m){return m===0}))throw new Error("a log scale domain must not include or cross zero");var d,f,h=!1;if(t.all.filter(function(m){return m!=null}).forEach(function(m){h||(i===void 0?i=Math.sign(m):Math.sign(m)!==i&&(h=!0))}),h)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=l==="auto"?t.min:l,f=u==="auto"?t.max:u;var p=J_().domain([d,f]).rangeRound(r==="x"?[0,n]:[n,0]).base(o).nice();return p.type="log",p},Uoe=function(e,t,n,r){var i,a,o=e.constant,s=o===void 0?1:o,l=e.min,c=l===void 0?"auto":l,u=e.max,d=u===void 0?"auto":u,f=e.reverse,h=f!==void 0&&f;i=c==="auto"?t.min:c,a=d==="auto"?t.max:d;var p=eE().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();h===!0?p.domain([a,i]):p.domain([i,a]);var m=p;return m.type="symlog",m},Goe=function(e){return e==="x"?"y":"x"},qoe=function(e,t){return e===t},Koe=function(e,t){return e.getTime()===t.getTime()};function ES(e,t,n,r){switch(e.type){case"linear":return Doe(e,t,n,r);case"point":return zoe(e,t,n);case"band":return Boe(e,t,n,r);case"time":return Woe(e,t,n);case"log":return Hoe(e,t,n,r);case"symlog":return Uoe(e,t,n,r);default:throw new Error("invalid scale spec")}}var OS=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data[t==="x"?"xStacked":"yStacked"];return i==null?null:n(i)}return(r=n(e.data[t]))!=null?r:null},uM=function(e,t,n,r,i){var a=e.map(function(u){return function(d){return Qi({},d,{data:d.data.map(function(f){return{data:Qi({},f)}})})}(u)}),o=Yoe(a,t,n);"stacked"in t&&t.stacked===!0&&Xoe(o,a),"stacked"in n&&n.stacked===!0&&Zoe(o,a);var s=ES(t,o.x,r,"x"),l=ES(n,o.y,i,"y"),c=a.map(function(u){return Qi({},u,{data:u.data.map(function(d){return Qi({},d,{position:{x:OS(d,"x",s),y:OS(d,"y",l)}})})})});return Qi({},o,{series:c,xScale:s,yScale:l})},Yoe=function(e,t,n){return{x:MS(e,"x",t),y:MS(e,"y",n)}},MS=function(e,t,n,r){var i={},a=i.getValue,o=a===void 0?function(p){return p.data[t]}:a,s=i.setValue,l=s===void 0?function(p,m){p.data[t]=m}:s;if(n.type==="linear")e.forEach(function(p){p.data.forEach(function(m){var v=o(m);v&&l(m,parseFloat(String(v)))})});else if(n.type==="time"&&n.format!=="native"){var c=cM(n);e.forEach(function(p){p.data.forEach(function(m){var v=o(m);v&&l(m,c(v))})})}var u=[];switch(e.forEach(function(p){p.data.forEach(function(m){u.push(o(m))})}),n.type){case"linear":var d=_oe(eg(u).filter(function(p){return p!==null}),function(p){return p});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=Vae(u,function(p){return p.getTime()}).slice(0).sort(function(p,m){return m.getTime()-p.getTime()}).reverse();return{all:f,min:f[0],max:dt(f)};default:var h=eg(u);return{all:h,min:h[0],max:dt(h)}}},dM=function(e,t,n){var r=Goe(e),i=[];t[r].all.forEach(function(a){var o=koe(a)?Koe:qoe,s=[];n.forEach(function(l){var c=l.data.find(function(h){return o(h.data[r],a)}),u=null,d=null;if(c!==void 0){if((u=c.data[e])!==null){var f=dt(s);f===void 0?d=u:f!==null&&(d=f+u)}c.data[e==="x"?"xStacked":"yStacked"]=d}s.push(d),d!==null&&i.push(d)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},Xoe=function(e,t){return dM("x",e,t)},Zoe=function(e,t){return dM("y",e,t)},fM=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},hM={millisecond:[ml,ml],second:[jg,jg],minute:[UO,eM],hour:[GO,tM],day:[En(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),En(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[Lg,Dg],sunday:[Lg,Dg],monday:[qO,nM],tuesday:[KO,rM],wednesday:[YO,iM],thursday:[XO,aM],friday:[ZO,oM],saturday:[QO,sM],month:[JO,lM],year:[f0,h0]},Qoe=Object.keys(hM),Joe=new RegExp("^every\\s*(\\d+)?\\s*("+Qoe.join("|")+")s?$","i"),vM=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(Joe);if(n){var r=n[1],i=n[2],a=hM[i][e.useUTC?1:0];if(i==="day"){var o,s,l=e.domain(),c=l[0],u=l[1],d=new Date(u);return d.setDate(d.getDate()+1),(o=(s=a.every(Number(r??1)))==null?void 0:s.range(c,d))!=null?o:[]}if(r===void 0)return e.ticks(a);var f=a.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wr.apply(this,arguments)}var gM=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,a=e.tickValues,o=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=vM(r,a),h=Iee[d],p="bandwidth"in r?fM(r):r,m={lineX:0,lineY:0},v={textX:0,textY:0},y=typeof document=="object"&&document.dir==="rtl",b=h.align.center,x=h.baseline.center;return n==="x"?(t=function(C){var S;return{x:(S=p(C))!=null?S:0,y:0}},m.lineY=o*(i==="after"?1:-1),v.textY=(o+s)*(i==="after"?1:-1),x=i==="after"?h.baseline.top:h.baseline.bottom,l===0?b=h.align.center:i==="after"&&l<0||i==="before"&&l>0?(b=h.align[y?"left":"right"],x=h.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(b=h.align[y?"right":"left"],x=h.baseline.center)):(t=function(C){var S;return{x:0,y:(S=p(C))!=null?S:0}},m.lineX=o*(i==="after"?1:-1),v.textX=(o+s)*(i==="after"?1:-1),b=i==="after"?h.align.left:h.align.right),{ticks:f.map(function(C){var S=typeof C=="string"?function(w){var O=String(w).length;return c&&c>0&&O>c?""+String(w).slice(0,c).concat("..."):""+w}(C):C;return wr({key:C instanceof Date?""+C.valueOf():""+C,value:S},t(C),m,v)}),textAlign:b,textBaseline:x}},mM=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=n0(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Zp(e)},Fg=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||vM(i,o)),l="bandwidth"in i?fM(i):i,c=a==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=l(u))!=null?d:0,x2:(f=l(u))!=null?f:0,y1:0,y2:r}}):s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:0,x2:n,y1:(d=l(u))!=null?d:0,y2:(f=l(u))!=null?f:0}});return c},ese=$.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,a=e.lineY,o=e.onClick,s=e.textBaseline,l=e.textAnchor,c=e.animatedProps,u=Lt(),d=u.axis.ticks.line,f=u.axis.ticks.text,h=(t=r==null?void 0:r(n))!=null?t:n,p=$.useMemo(function(){var m={opacity:c.opacity};return o?{style:wr({},m,{cursor:"pointer"}),onClick:function(v){return o(v,h)}}:{style:m}},[c.opacity,o,h]);return L.jsxs(Mt.g,wr({transform:c.transform},p,{children:[L.jsx("line",{x1:0,x2:i,y1:0,y2:a,style:d}),f.outlineWidth>0&&L.jsx(Mt.text,{dominantBaseline:s,textAnchor:l,transform:c.textTransform,style:f,strokeWidth:2*f.outlineWidth,stroke:f.outlineColor,strokeLinejoin:"round",children:""+h}),L.jsx(Mt.text,{dominantBaseline:s,textAnchor:l,transform:c.textTransform,style:s0(f),children:""+h})]}))}),tse=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,a=e.y,o=a===void 0?0:a,s=e.length,l=e.ticksPosition,c=e.tickValues,u=e.tickSize,d=u===void 0?5:u,f=e.tickPadding,h=f===void 0?5:f,p=e.tickRotation,m=p===void 0?0:p,v=e.format,y=e.renderTick,b=y===void 0?ese:y,x=e.truncateTickAt,C=e.legend,S=e.legendPosition,w=S===void 0?"end":S,O=e.legendOffset,E=O===void 0?0:O,_=e.onClick,T=e.ariaHidden,R=Lt(),F=R.axis.legend.text,I=$.useMemo(function(){return mM(v,n)},[v,n]),P=gM({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:m,truncateTickAt:x}),k=P.ticks,A=P.textAlign,M=P.textBaseline,N=null;if(C!==void 0){var j,D=0,V=0,X=0;t==="y"?(X=-90,D=E,w==="start"?(j="start",V=s):w==="middle"?(j="middle",V=s/2):w==="end"&&(j="end")):(V=E,w==="start"?j="start":w==="middle"?(j="middle",D=s/2):w==="end"&&(j="end",D=s)),N=L.jsxs(L.Fragment,{children:[F.outlineWidth>0&&L.jsx("text",{transform:"translate("+D+", "+V+") rotate("+X+")",textAnchor:j,style:wr({dominantBaseline:"central"},F),strokeWidth:2*F.outlineWidth,stroke:F.outlineColor,strokeLinejoin:"round",children:C}),L.jsx("text",{transform:"translate("+D+", "+V+") rotate("+X+")",textAnchor:j,style:wr({dominantBaseline:"central"},F),children:C})]})}var q=Sn(),Z=q.animate,J=q.config,Q=Mr({transform:"translate("+i+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:J,immediate:!Z}),K=$.useCallback(function(H){return{opacity:1,transform:"translate("+H.x+","+H.y+")",textTransform:"translate("+H.textX+","+H.textY+") rotate("+m+")"}},[m]),Y=$.useCallback(function(H){return{opacity:0,transform:"translate("+H.x+","+H.y+")",textTransform:"translate("+H.textX+","+H.textY+") rotate("+m+")"}},[m]),W=$a(k,{keys:function(H){return H.key},initial:K,from:Y,enter:K,update:K,leave:{opacity:0},config:J,immediate:!Z});return L.jsxs(Mt.g,{transform:Q.transform,"aria-hidden":T,children:[W(function(H,U,z,ne){return g.createElement(b,wr({tickIndex:ne,format:I,rotate:m,textBaseline:M,textAnchor:A,truncateTickAt:x,animatedProps:H},U,_?{onClick:_}:{}))}),L.jsx(Mt.line,{style:R.axis.domain.line,x1:0,x2:Q.lineX2,y1:0,y2:Q.lineY2}),N]})},nse=$.memo(tse),pM=["top","right","bottom","left"],bM=$.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return L.jsx(L.Fragment,{children:pM.map(function(o){var s=a[o];if(!s)return null;var l=o==="top"||o==="bottom";return L.jsx(nse,wr({},s,{axis:l?"x":"y",x:o==="right"?r:0,y:o==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:o==="top"||o==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),o)})})}),rse=$.memo(function(e){var t=e.animatedProps,n=Lt();return L.jsx(Mt.line,wr({},t,n.grid.line))}),TS=$.memo(function(e){var t=e.lines,n=Sn(),r=n.animate,i=n.config,a=$a(t,{keys:function(o){return o.key},initial:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},from:function(o){return{opacity:0,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},enter:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},update:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},leave:{opacity:0},config:i,immediate:!r});return L.jsx("g",{children:a(function(o,s){return $.createElement(rse,wr({},s,{key:s.key,animatedProps:o}))})})}),yM=$.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=$.useMemo(function(){return!!r&&Fg({width:t,height:n,scale:r,axis:"x",values:a})},[r,a,t,n]),l=$.useMemo(function(){return!!i&&Fg({width:t,height:n,scale:i,axis:"y",values:o})},[n,t,i,o]);return L.jsxs(L.Fragment,{children:[s&&L.jsx(TS,{lines:s}),l&&L.jsx(TS,{lines:l})]})}),ise=function(e,t){var n,r=t.axis,i=t.scale,a=t.x,o=a===void 0?0:a,s=t.y,l=s===void 0?0:s,c=t.length,u=t.ticksPosition,d=t.tickValues,f=t.tickSize,h=f===void 0?5:f,p=t.tickPadding,m=p===void 0?5:p,v=t.tickRotation,y=v===void 0?0:v,b=t.format,x=t.legend,C=t.legendPosition,S=C===void 0?"end":C,w=t.legendOffset,O=w===void 0?0:w,E=t.theme,_=gM({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:h,tickPadding:m,tickRotation:y,engine:"canvas"}),T=_.ticks,R=_.textAlign,F=_.textBaseline;e.save(),e.translate(o,l),e.textAlign=R,e.textBaseline=F;var I=E.axis.ticks.text;e.font=(I.fontWeight?I.fontWeight+" ":"")+I.fontSize+"px "+I.fontFamily,((n=E.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(E.axis.domain.line.strokeWidth),e.lineCap="square",E.axis.domain.line.stroke&&(e.strokeStyle=E.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?c:0,r==="x"?0:c),e.stroke());var P=typeof b=="function"?b:function(j){return""+j};if(T.forEach(function(j){var D;((D=E.axis.ticks.line.strokeWidth)!=null?D:0)>0&&(e.lineWidth=Number(E.axis.ticks.line.strokeWidth),e.lineCap="square",E.axis.ticks.line.stroke&&(e.strokeStyle=E.axis.ticks.line.stroke),e.beginPath(),e.moveTo(j.x,j.y),e.lineTo(j.x+j.lineX,j.y+j.lineY),e.stroke());var V=P(j.value);e.save(),e.translate(j.x+j.textX,j.y+j.textY),e.rotate(Cr(y)),I.outlineWidth>0&&(e.strokeStyle=I.outlineColor,e.lineWidth=2*I.outlineWidth,e.lineJoin="round",e.strokeText(""+V,0,0)),E.axis.ticks.text.fill&&(e.fillStyle=I.fill),e.fillText(""+V,0,0),e.restore()}),x!==void 0){var k=0,A=0,M=0,N="center";r==="y"?(M=-90,k=O,S==="start"?(N="start",A=c):S==="middle"?(N="center",A=c/2):S==="end"&&(N="end")):(A=O,S==="start"?N="start":S==="middle"?(N="center",k=c/2):S==="end"&&(N="end",k=c)),e.translate(k,A),e.rotate(Cr(M)),e.font=(E.axis.legend.text.fontWeight?E.axis.legend.text.fontWeight+" ":"")+E.axis.legend.text.fontSize+"px "+E.axis.legend.text.fontFamily,E.axis.legend.text.fill&&(e.fillStyle=E.axis.legend.text.fill),e.textAlign=N,e.textBaseline="middle",e.fillText(x,0,0)}e.restore()},xM=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,o=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:o,right:s,bottom:l,left:c};pM.forEach(function(f){var h=d[f];if(!h)return null;var p=f==="top"||f==="bottom",m=f==="top"||f==="left"?"before":"after",v=p?n:r,y=mM(h.format,v);ise(e,wr({},h,{axis:p?"x":"y",x:f==="right"?i:0,y:f==="bottom"?a:0,scale:v,format:y,length:p?i:a,ticksPosition:m,theme:u}))})},Au=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;Fg({width:n,height:r,scale:i,axis:a,values:o}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},ase=WO;function ose(e,t){var n=[];return ase(e,function(r,i,a){t(r,i,a)&&n.push(r)}),n}var sse=ose,lse=QE,cse=sse,use=d0,dse=tr;function fse(e,t){var n=dse(e)?lse:cse;return n(e,use(t))}var hse=fse;const vse=rn(hse);var gse=yi,mse=Tr,pse="[object Number]";function bse(e){return typeof e=="number"||mse(e)&&gse(e)==pse}var yse=bse;const zg=rn(yse);function xse(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var SM=xse,Sse=Dl,Cse=SM;function wse(e,t){return t.length<2?e:Sse(e,Cse(t,0,-1))}var $se=wse,_se=Go,Ese=U_,Ose=$se,Mse=qo;function Tse(e,t){return t=_se(t,e),e=Ose(e,t),e==null||delete e[Mse(Ese(t))]}var Rse=Tse,Pse=bp;function Ise(e){return Pse(e)?void 0:e}var Ase=Ise,Nse=$d,kse=NO,jse=Rse,Lse=Go,Dse=Uo,Fse=Ase,zse=YE,Bse=RO,Vse=1,Wse=2,Hse=4,Use=zse(function(e,t){var n={};if(e==null)return n;var r=!1;t=Nse(t,function(a){return a=Lse(a,e),r||(r=a.length>1),a}),Dse(e,Bse(e),n),r&&(n=kse(n,Vse|Wse|Hse,Fse));for(var i=t.length;i--;)jse(n,t[i]);return n}),Gse=Use;const v0=rn(Gse);function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fi.apply(this,arguments)}var Bg={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},qse=function(e){var t=typeof e;return $.isValidElement(e)||t==="string"||t==="function"||t==="object"},Kse=function(e){var t=typeof e;return t==="string"||t==="function"},pl=function(e){return e.type==="circle"},Vg=function(e){return e.type==="dot"},bl=function(e){return e.type==="rect"},Yse=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(a,o){var s=o.offset||0;return[].concat(a,vse(t,o.match).map(function(l){var c=r(l),u=i(l);return(pl(o)||bl(o))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Fi({},v0(o,["match","offset"]),c,u,{size:o.size||u.size,datum:l})}))},[])},Xse=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return Pee(ff(i))},Zse=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,s=e.noteWidth,l=s===void 0?Bg.noteWidth:s,c=e.noteTextOffset,u=c===void 0?Bg.noteTextOffset:c;if(zg(a))t=r+a;else{if(a.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=a.abs}if(zg(o))n=i+o;else{if(o.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=o.abs}var d=r,f=i,h=Xse(r,i,t,n);if(pl(e)){var p=ua(Cr(h),e.size/2);d+=p.x,f+=p.y}if(bl(e)){var m=Math.round((h+90)/45)%8;m===0&&(f-=e.height/2),m===1&&(d+=e.width/2,f-=e.height/2),m===2&&(d+=e.width/2),m===3&&(d+=e.width/2,f+=e.height/2),m===4&&(f+=e.height/2),m===5&&(d-=e.width/2,f+=e.height/2),m===6&&(d-=e.width/2),m===7&&(d-=e.width/2,f-=e.height/2)}var v=t,y=t;return(h+90)%360>180?(v-=l,y-=l):y+=l,{points:[[d,f],[t,n],[y,n]],text:[v,n-u],angle:h+90}},Qse=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return $.useMemo(function(){return Yse({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},Jse=function(e){return $.useMemo(function(){return Zse(e)},[e])},ele=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=Lt(),o=Sn(),s=o.animate,l=o.config,c=Mr({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?$.createElement(i,{x:n,y:r,datum:t}):L.jsxs(L.Fragment,{children:[a.annotations.text.outlineWidth>0&&L.jsx(Mt.text,{x:c.x,y:c.y,style:Fi({},a.annotations.text,{strokeLinejoin:"round",strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:i}),L.jsx(Mt.text,{x:c.x,y:c.y,style:v0(a.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},RS=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Lt(),a=$.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(c,u){return c+" L"+u[0]+","+u[1]},"M"+l[0]+","+l[1])},[t]),o=df(a);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Fi({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),L.jsx(Mt.path,{fill:"none",d:o,style:s})},tle=function(e){var t=e.x,n=e.y,r=e.size,i=Lt(),a=Sn(),o=a.animate,s=a.config,l=Mr({x:t,y:n,radius:r/2,config:s,immediate:!o});return L.jsxs(L.Fragment,{children:[i.annotations.outline.outlineWidth>0&&L.jsx(Mt.circle,{cx:l.x,cy:l.y,r:l.radius,style:Fi({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),L.jsx(Mt.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},nle=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?Bg.dotSize:r,a=Lt(),o=Sn(),s=o.animate,l=o.config,c=Mr({x:t,y:n,radius:i/2,config:l,immediate:!s});return L.jsxs(L.Fragment,{children:[a.annotations.outline.outlineWidth>0&&L.jsx(Mt.circle,{cx:c.x,cy:c.y,r:c.radius,style:Fi({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),L.jsx(Mt.circle,{cx:c.x,cy:c.y,r:c.radius,style:a.annotations.symbol})]})},rle=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,o=a===void 0?6:a,s=Lt(),l=Sn(),c=l.animate,u=l.config,d=Mr({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!c});return L.jsxs(L.Fragment,{children:[s.annotations.outline.outlineWidth>0&&L.jsx(Mt.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:Fi({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),L.jsx(Mt.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},ile=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=Jse(e);if(!qse(i))throw new Error("note should be a valid react element");return L.jsxs(L.Fragment,{children:[L.jsx(RS,{points:a.points,isOutline:!0}),pl(e)&&L.jsx(tle,{x:n,y:r,size:e.size}),Vg(e)&&L.jsx(nle,{x:n,y:r,size:e.size}),bl(e)&&L.jsx(rle,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),L.jsx(RS,{points:a.points}),L.jsx(ele,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},PS=function(e,t){t.forEach(function(n,r){var i=n[0],a=n[1];r===0?e.moveTo(i,a):e.lineTo(i,a)})},ale=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!Kse(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),PS(e,i.computed.points),e.stroke(),e.lineCap="butt"),pl(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Vg(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),bl(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),PS(e,i.computed.points),e.stroke(),pl(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),Vg(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),bl(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}),e.restore())};const hi=11102230246251565e-32,Fn=134217729,ole=(3+8*hi)*hi;function Dh(e,t,n,r,i){let a,o,s,l,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(a=c,c=t[++d]):(a=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(o=c+a,s=a-(o-c),c=t[++d]):(o=u+a,s=a-(o-u),u=r[++f]),a=o,s!==0&&(i[h++]=s);d<e&&f<n;)u>c==u>-c?(o=a+c,l=o-a,s=a-(o-l)+(c-l),c=t[++d]):(o=a+u,l=o-a,s=a-(o-l)+(u-l),u=r[++f]),a=o,s!==0&&(i[h++]=s);for(;d<e;)o=a+c,l=o-a,s=a-(o-l)+(c-l),c=t[++d],a=o,s!==0&&(i[h++]=s);for(;f<n;)o=a+u,l=o-a,s=a-(o-l)+(u-l),u=r[++f],a=o,s!==0&&(i[h++]=s);return(a!==0||h===0)&&(i[h++]=a),h}function sle(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Vl(e){return new Float64Array(e)}const lle=(3+16*hi)*hi,cle=(2+12*hi)*hi,ule=(9+64*hi)*hi*hi,Ya=Vl(4),IS=Vl(8),AS=Vl(12),NS=Vl(16),Kn=Vl(4);function dle(e,t,n,r,i,a,o){let s,l,c,u,d,f,h,p,m,v,y,b,x,C,S,w,O,E;const _=e-i,T=n-i,R=t-a,F=r-a;C=_*F,f=Fn*_,h=f-(f-_),p=_-h,f=Fn*F,m=f-(f-F),v=F-m,S=p*v-(C-h*m-p*m-h*v),w=R*T,f=Fn*R,h=f-(f-R),p=R-h,f=Fn*T,m=f-(f-T),v=T-m,O=p*v-(w-h*m-p*m-h*v),y=S-O,d=S-y,Ya[0]=S-(y+d)+(d-O),b=C+y,d=b-C,x=C-(b-d)+(y-d),y=x-w,d=x-y,Ya[1]=x-(y+d)+(d-w),E=b+y,d=E-b,Ya[2]=b-(E-d)+(y-d),Ya[3]=E;let I=sle(4,Ya),P=cle*o;if(I>=P||-I>=P||(d=e-_,s=e-(_+d)+(d-i),d=n-T,c=n-(T+d)+(d-i),d=t-R,l=t-(R+d)+(d-a),d=r-F,u=r-(F+d)+(d-a),s===0&&l===0&&c===0&&u===0)||(P=ule*o+ole*Math.abs(I),I+=_*u+F*s-(R*c+T*l),I>=P||-I>=P))return I;C=s*F,f=Fn*s,h=f-(f-s),p=s-h,f=Fn*F,m=f-(f-F),v=F-m,S=p*v-(C-h*m-p*m-h*v),w=l*T,f=Fn*l,h=f-(f-l),p=l-h,f=Fn*T,m=f-(f-T),v=T-m,O=p*v-(w-h*m-p*m-h*v),y=S-O,d=S-y,Kn[0]=S-(y+d)+(d-O),b=C+y,d=b-C,x=C-(b-d)+(y-d),y=x-w,d=x-y,Kn[1]=x-(y+d)+(d-w),E=b+y,d=E-b,Kn[2]=b-(E-d)+(y-d),Kn[3]=E;const k=Dh(4,Ya,4,Kn,IS);C=_*u,f=Fn*_,h=f-(f-_),p=_-h,f=Fn*u,m=f-(f-u),v=u-m,S=p*v-(C-h*m-p*m-h*v),w=R*c,f=Fn*R,h=f-(f-R),p=R-h,f=Fn*c,m=f-(f-c),v=c-m,O=p*v-(w-h*m-p*m-h*v),y=S-O,d=S-y,Kn[0]=S-(y+d)+(d-O),b=C+y,d=b-C,x=C-(b-d)+(y-d),y=x-w,d=x-y,Kn[1]=x-(y+d)+(d-w),E=b+y,d=E-b,Kn[2]=b-(E-d)+(y-d),Kn[3]=E;const A=Dh(k,IS,4,Kn,AS);C=s*u,f=Fn*s,h=f-(f-s),p=s-h,f=Fn*u,m=f-(f-u),v=u-m,S=p*v-(C-h*m-p*m-h*v),w=l*c,f=Fn*l,h=f-(f-l),p=l-h,f=Fn*c,m=f-(f-c),v=c-m,O=p*v-(w-h*m-p*m-h*v),y=S-O,d=S-y,Kn[0]=S-(y+d)+(d-O),b=C+y,d=b-C,x=C-(b-d)+(y-d),y=x-w,d=x-y,Kn[1]=x-(y+d)+(d-w),E=b+y,d=E-b,Kn[2]=b-(E-d)+(y-d),Kn[3]=E;const M=Dh(A,AS,4,Kn,NS);return NS[M-1]}function $c(e,t,n,r,i,a){const o=(t-a)*(n-i),s=(e-i)*(r-a),l=o-s,c=Math.abs(o+s);return Math.abs(l)>=lle*c?l:-dle(e,t,n,r,i,a,c)}const kS=Math.pow(2,-52),_c=new Uint32Array(512);class Nu{static from(t,n=mle,r=ple){const i=t.length,a=new Float64Array(i*2);for(let o=0;o<i;o++){const s=t[o];a[2*o]=n(s),a[2*o+1]=r(s)}return new Nu(a)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1;let s=1/0,l=1/0,c=-1/0,u=-1/0;for(let _=0;_<o;_++){const T=t[2*_],R=t[2*_+1];T<s&&(s=T),R<l&&(l=R),T>c&&(c=T),R>u&&(u=R),this._ids[_]=_}const d=(s+c)/2,f=(l+u)/2;let h,p,m;for(let _=0,T=1/0;_<o;_++){const R=Fh(d,f,t[2*_],t[2*_+1]);R<T&&(h=_,T=R)}const v=t[2*h],y=t[2*h+1];for(let _=0,T=1/0;_<o;_++){if(_===h)continue;const R=Fh(v,y,t[2*_],t[2*_+1]);R<T&&R>0&&(p=_,T=R)}let b=t[2*p],x=t[2*p+1],C=1/0;for(let _=0;_<o;_++){if(_===h||_===p)continue;const T=vle(v,y,b,x,t[2*_],t[2*_+1]);T<C&&(m=_,C=T)}let S=t[2*m],w=t[2*m+1];if(C===1/0){for(let R=0;R<o;R++)this._dists[R]=t[2*R]-t[0]||t[2*R+1]-t[1];io(this._ids,this._dists,0,o-1);const _=new Uint32Array(o);let T=0;for(let R=0,F=-1/0;R<o;R++){const I=this._ids[R],P=this._dists[I];P>F&&(_[T++]=I,F=P)}this.hull=_.subarray(0,T),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if($c(v,y,b,x,S,w)<0){const _=p,T=b,R=x;p=m,b=S,x=w,m=_,S=T,w=R}const O=gle(v,y,b,x,S,w);this._cx=O.x,this._cy=O.y;for(let _=0;_<o;_++)this._dists[_]=Fh(t[2*_],t[2*_+1],O.x,O.y);io(this._ids,this._dists,0,o-1),this._hullStart=h;let E=3;r[h]=n[m]=p,r[p]=n[h]=m,r[m]=n[p]=h,i[h]=0,i[p]=1,i[m]=2,a.fill(-1),a[this._hashKey(v,y)]=h,a[this._hashKey(b,x)]=p,a[this._hashKey(S,w)]=m,this.trianglesLen=0,this._addTriangle(h,p,m,-1,-1,-1);for(let _=0,T,R;_<this._ids.length;_++){const F=this._ids[_],I=t[2*F],P=t[2*F+1];if(_>0&&Math.abs(I-T)<=kS&&Math.abs(P-R)<=kS||(T=I,R=P,F===h||F===p||F===m))continue;let k=0;for(let D=0,V=this._hashKey(I,P);D<this._hashSize&&(k=a[(V+D)%this._hashSize],!(k!==-1&&k!==r[k]));D++);k=n[k];let A=k,M;for(;M=r[A],$c(I,P,t[2*A],t[2*A+1],t[2*M],t[2*M+1])>=0;)if(A=M,A===k){A=-1;break}if(A===-1)continue;let N=this._addTriangle(A,F,r[A],-1,-1,i[A]);i[F]=this._legalize(N+2),i[A]=N,E++;let j=r[A];for(;M=r[j],$c(I,P,t[2*j],t[2*j+1],t[2*M],t[2*M+1])<0;)N=this._addTriangle(j,F,M,i[F],-1,i[j]),i[F]=this._legalize(N+2),r[j]=j,E--,j=M;if(A===k)for(;M=n[A],$c(I,P,t[2*M],t[2*M+1],t[2*A],t[2*A+1])<0;)N=this._addTriangle(M,F,A,-1,i[A],i[M]),this._legalize(N+2),i[M]=N,r[A]=A,E--,A=M;this._hullStart=n[F]=A,r[A]=n[j]=F,r[F]=j,a[this._hashKey(I,P)]=F,a[this._hashKey(t[2*A],t[2*A+1])]=A}this.hull=new Uint32Array(E);for(let _=0,T=this._hullStart;_<E;_++)this.hull[_]=T,T=r[T];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(fle(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let a=0,o=0;for(;;){const s=r[t],l=t-t%3;if(o=l+(t+2)%3,s===-1){if(a===0)break;t=_c[--a];continue}const c=s-s%3,u=l+(t+1)%3,d=c+(s+2)%3,f=n[o],h=n[t],p=n[u],m=n[d];if(hle(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*p],i[2*p+1],i[2*m],i[2*m+1])){n[t]=m,n[s]=f;const y=r[d];if(y===-1){let x=this._hullStart;do{if(this._hullTri[x]===d){this._hullTri[x]=t;break}x=this._hullPrev[x]}while(x!==this._hullStart)}this._link(t,y),this._link(s,r[o]),this._link(o,d);const b=c+(s+1)%3;a<_c.length&&(_c[a++]=b)}else{if(a===0)break;t=_c[--a]}}return o}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,a,o){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,a),this._link(s+2,o),this.trianglesLen+=3,s}}function fle(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Fh(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function hle(e,t,n,r,i,a,o,s){const l=e-o,c=t-s,u=n-o,d=r-s,f=i-o,h=a-s,p=l*l+c*c,m=u*u+d*d,v=f*f+h*h;return l*(d*v-m*h)-c*(u*v-m*f)+p*(u*h-d*f)<0}function vle(e,t,n,r,i,a){const o=n-e,s=r-t,l=i-e,c=a-t,u=o*o+s*s,d=l*l+c*c,f=.5/(o*c-s*l),h=(c*u-s*d)*f,p=(o*d-l*u)*f;return h*h+p*p}function gle(e,t,n,r,i,a){const o=n-e,s=r-t,l=i-e,c=a-t,u=o*o+s*s,d=l*l+c*c,f=.5/(o*c-s*l),h=e+(c*u-s*d)*f,p=t+(o*d-l*u)*f;return{x:h,y:p}}function io(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=e[i],o=t[a];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{const i=n+r>>1;let a=n+1,o=r;ys(e,i,a),t[e[n]]>t[e[r]]&&ys(e,n,r),t[e[a]]>t[e[r]]&&ys(e,a,r),t[e[n]]>t[e[a]]&&ys(e,n,a);const s=e[a],l=t[s];for(;;){do a++;while(t[e[a]]<l);do o--;while(t[e[o]]>l);if(o<a)break;ys(e,a,o)}e[n+1]=e[o],e[o]=s,r-a+1>=o-n?(io(e,t,a,r),io(e,t,n,o-1)):(io(e,t,n,o-1),io(e,t,a,r))}}function ys(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function mle(e){return e[0]}function ple(e){return e[1]}const jS=1e-6;class oa{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>jS||Math.abs(this._y1-a)>jS)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class Wg{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class ble{constructor(t,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let a,o;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let m=0,v=0,y=r.length,b,x;m<y;m+=3,v+=2){const C=r[m]*2,S=r[m+1]*2,w=r[m+2]*2,O=t[C],E=t[C+1],_=t[S],T=t[S+1],R=t[w],F=t[w+1],I=_-O,P=T-E,k=R-O,A=F-E,M=(I*A-P*k)*2;if(Math.abs(M)<1e-9){if(a===void 0){a=o=0;for(const j of n)a+=t[j*2],o+=t[j*2+1];a/=n.length,o/=n.length}const N=1e9*Math.sign((a-O)*A-(o-E)*k);b=(O+R)/2-N*A,x=(E+F)/2+N*k}else{const N=1/M,j=I*I+P*P,D=k*k+A*A;b=O+(A*j-P*D)*N,x=E+(I*D-k*j)*N}s[v]=b,s[v+1]=x}let l=n[n.length-1],c,u=l*4,d,f=t[2*l],h,p=t[2*l+1];i.fill(0);for(let m=0;m<n.length;++m)l=n[m],c=u,d=f,h=p,u=l*4,f=t[2*l],p=t[2*l+1],i[c+2]=i[u]=h-p,i[c+3]=i[u+1]=f-d}render(t){const n=t==null?t=new oa:void 0,{delaunay:{halfedges:r,inedges:i,hull:a},circumcenters:o,vectors:s}=this;if(a.length<=1)return null;for(let u=0,d=r.length;u<d;++u){const f=r[u];if(f<u)continue;const h=Math.floor(u/3)*2,p=Math.floor(f/3)*2,m=o[h],v=o[h+1],y=o[p],b=o[p+1];this._renderSegment(m,v,y,b,t)}let l,c=a[a.length-1];for(let u=0;u<a.length;++u){l=c,c=a[u];const d=Math.floor(i[c]/3)*2,f=o[d],h=o[d+1],p=l*4,m=this._project(f,h,s[p+2],s[p+3]);m&&this._renderSegment(f,h,m[0],m[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new oa:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new oa:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let a=i.length;for(;i[0]===i[a-2]&&i[1]===i[a-1]&&a>1;)a-=2;for(let o=2;o<a;o+=2)(i[o]!==i[o-2]||i[o+1]!==i[o-1])&&n.lineTo(i[o],i[o+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new Wg;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,a){let o;const s=this._regioncode(t,n),l=this._regioncode(r,i);s===0&&l===0?(a.moveTo(t,n),a.lineTo(r,i)):(o=this._clipSegment(t,n,r,i,s,l))&&(a.moveTo(o[0],o[1]),a.lineTo(o[2],o[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let a=0,o=n.length;a<o;a+=2)for(let s=0,l=i.length;s<l;s+=2)if(n[a]===i[s]&&n[a+1]===i[s+1]&&n[(a+2)%o]===i[(s+l-2)%l]&&n[(a+3)%o]===i[(s+l-1)%l]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:a}}=this,o=r[t];if(o===-1)return null;const s=[];let l=o;do{const c=Math.floor(l/3);if(s.push(n[c*2],n[c*2+1]),l=l%3===2?l-2:l+1,a[l]!==t)break;l=i[l]}while(l!==o&&l!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,a,o,s=n[r-2],l=n[r-1],c,u=this._regioncode(s,l),d,f=0;for(let h=0;h<r;h+=2)if(a=s,o=l,s=n[h],l=n[h+1],c=u,u=this._regioncode(s,l),c===0&&u===0)d=f,f=0,i?i.push(s,l):i=[s,l];else{let p,m,v,y,b;if(c===0){if((p=this._clipSegment(a,o,s,l,c,u))===null)continue;[m,v,y,b]=p}else{if((p=this._clipSegment(s,l,a,o,u,c))===null)continue;[y,b,m,v]=p,d=f,f=this._edgecode(m,v),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(m,v):i=[m,v]}d=f,f=this._edgecode(y,b),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(y,b):i=[y,b]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,a,o){const s=a<o;for(s&&([t,n,r,i,a,o]=[r,i,t,n,o,a]);;){if(a===0&&o===0)return s?[r,i,t,n]:[t,n,r,i];if(a&o)return null;let l,c,u=a||o;u&8?(l=t+(r-t)*(this.ymax-n)/(i-n),c=this.ymax):u&4?(l=t+(r-t)*(this.ymin-n)/(i-n),c=this.ymin):u&2?(c=n+(i-n)*(this.xmax-t)/(r-t),l=this.xmax):(c=n+(i-n)*(this.xmin-t)/(r-t),l=this.xmin),a?(t=l,n=c,a=this._regioncode(t,n)):(r=l,i=c,o=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,a,o){let s=Array.from(n),l;if((l=this._project(s[0],s[1],r,i))&&s.unshift(l[0],l[1]),(l=this._project(s[s.length-2],s[s.length-1],a,o))&&s.push(l[0],l[1]),s=this._clipFinite(t,s))for(let c=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);c<u;c+=2)d=f,f=this._edgecode(s[c],s[c+1]),d&&f&&(c=this._edge(t,d,f,s,c),u=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,a){for(;n!==r;){let o,s;switch(n){case 5:n=4;continue;case 4:n=6,o=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,o=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,o=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,o=this.xmin,s=this.ymin;break}(i[a]!==o||i[a+1]!==s)&&this.contains(t,o,s)&&(i.splice(a,0,o,s),a+=2)}return a}_project(t,n,r,i){let a=1/0,o,s,l;if(i<0){if(n<=this.ymin)return null;(o=(this.ymin-n)/i)<a&&(l=this.ymin,s=t+(a=o)*r)}else if(i>0){if(n>=this.ymax)return null;(o=(this.ymax-n)/i)<a&&(l=this.ymax,s=t+(a=o)*r)}if(r>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)<a&&(s=this.xmax,l=n+(a=o)*i)}else if(r<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/r)<a&&(s=this.xmin,l=n+(a=o)*i)}return[s,l]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const yle=2*Math.PI,Xa=Math.pow;function xle(e){return e[0]}function Sle(e){return e[1]}function Cle(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],a=2*t[r+1],o=2*t[r+2];if((n[o]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}function wle(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class g0{static from(t,n=xle,r=Sle,i){return new g0("length"in t?$le(t,n,r,i):Float64Array.from(_le(t,n,r,i)))}constructor(t){this._delaunator=new Nu(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&Cle(t)){this.collinear=Int32Array.from({length:n.length/2},(f,h)=>h).sort((f,h)=>n[2*f]-n[2*h]||n[2*f+1]-n[2*h+1]);const l=this.collinear[0],c=this.collinear[this.collinear.length-1],u=[n[2*l],n[2*l+1],n[2*c],n[2*c+1]],d=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let f=0,h=n.length/2;f<h;++f){const p=wle(n[2*f],n[2*f+1],d);n[2*f]=p[0],n[2*f+1]=p[1]}this._delaunator=new Nu(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let l=0,c=r.length;l<c;++l){const u=a[l%3===2?l-2:l+1];(r[l]===-1||o[u]===-1)&&(o[u]=l)}for(let l=0,c=i.length;l<c;++l)s[i[l]]=l;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],o[i[0]]=1,i.length===2&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new ble(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const l=n[t];if(l===-1)return;let c=l,u=-1;do{if(yield u=o[c],c=c%3===2?c-2:c+1,o[c]!==t)return;if(c=a[c],c===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(c!==l)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let a;for(;(a=this._step(r,t,n))>=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){const{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:l,points:c}=this;if(i[t]===-1||!c.length)return(t+1)%(c.length>>1);let u=t,d=Xa(n-c[t*2],2)+Xa(r-c[t*2+1],2);const f=i[t];let h=f;do{let p=l[h];const m=Xa(n-c[p*2],2)+Xa(r-c[p*2+1],2);if(m<d&&(d=m,u=p),h=h%3===2?h-2:h+1,l[h]!==t)break;if(h=s[h],h===-1){if(h=a[(o[t]+1)%a.length],h!==p&&Xa(n-c[h*2],2)+Xa(r-c[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new oa:void 0,{points:r,halfedges:i,triangles:a}=this;for(let o=0,s=i.length;o<s;++o){const l=i[o];if(l<o)continue;const c=a[o]*2,u=a[l]*2;t.moveTo(r[c],r[c+1]),t.lineTo(r[u],r[u+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new oa:void 0,{points:i}=this;for(let a=0,o=i.length;a<o;a+=2){const s=i[a],l=i[a+1];t.moveTo(s+n,l),t.arc(s,l,n,0,yle)}return r&&r.value()}renderHull(t){const n=t==null?t=new oa:void 0,{hull:r,points:i}=this,a=r[0]*2,o=r.length;t.moveTo(i[a],i[a+1]);for(let s=1;s<o;++s){const l=2*r[s];t.lineTo(i[l],i[l+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new Wg;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new oa:void 0,{points:i,triangles:a}=this,o=a[t*=3]*2,s=a[t+1]*2,l=a[t+2]*2;return n.moveTo(i[o],i[o+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[l],i[l+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new Wg;return this.renderTriangle(t,n),n.value()}}function $le(e,t,n,r){const i=e.length,a=new Float64Array(i*2);for(let o=0;o<i;++o){const s=e[o];a[o*2]=t.call(r,s,o,e),a[o*2+1]=n.call(r,s,o,e)}return a}function*_le(e,t,n,r){let i=0;for(const a of e)yield t.call(r,a,i,e),yield n.call(r,a,i,e),++i}var m0=function(e){return[e.x,e.y]},Wl=oO,CM="cursor",wM="top",Ele=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?m0:n,i=e.margin,a=i===void 0?Wl:i;return t.map(function(o){var s=r(o),l=s[0],c=s[1];return[l+a.left,c+a.top]})},Ole=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=i===void 0?Wl:i,o=e.debug,s=g0.from(t),l=o?s.voronoi([0,0,a.left+n+a.right,a.top+r+a.bottom]):void 0;return{points:t,delaunay:s,voronoi:l}},p0=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?m0:n,i=e.width,a=e.height,o=e.margin,s=o===void 0?Wl:o,l=e.debug;return $.useMemo(function(){return Ole({points:Ele({points:t,margin:s,getNodePosition:r}),width:i,height:a,margin:s,debug:l})},[t,i,a,s,l])},Mle=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?m0:r,a=e.delaunay,o=e.setCurrent,s=e.margin,l=s===void 0?Wl:s,c=e.detectionRadius,u=c===void 0?1/0:c,d=e.isInteractive,f=d===void 0||d,h=e.onMouseEnter,p=e.onMouseMove,m=e.onMouseLeave,v=e.onClick,y=e.onTouchStart,b=e.onTouchMove,x=e.onTouchEnd,C=e.enableTouchCrosshair,S=C!==void 0&&C,w=e.tooltip,O=e.tooltipPosition,E=O===void 0?CM:O,_=e.tooltipAnchor,T=_===void 0?wM:_,R=$.useState(null),F=R[0],I=R[1],P=$.useRef(null);$.useEffect(function(){P.current=F},[P,F]);var k=$.useCallback(function(Y){if(!t.current)return null;var W=l0(t.current,Y),H=W[0],U=W[1],z=a.find(H,U),ne=z!==void 0?n[z]:null;if(ne&&u!==1/0){var B=i(ne),re=B[0],ie=B[1];Bee(H,U,re+l.left,ie+l.top)>u&&(z=null,ne=null)}return z===null||ne===null?null:[z,ne]},[t,a,n,i,l,u]),A=Wr(),M=A.showTooltipAt,N=A.showTooltipFromEvent,j=A.hideTooltip,D=$.useMemo(function(){if(w)return E==="cursor"?function(Y,W){N(w(Y),W,T)}:function(Y){var W=i(Y),H=W[0],U=W[1];M(w(Y),[H+l.left,U+l.top],T)}},[M,N,w,E,T,i,l]),V=$.useCallback(function(Y){var W=k(Y);if(I(W),o==null||o(W?W[1]:null),W){var H=W[1];D==null||D(H,Y),h==null||h(W[1],Y)}},[k,I,o,D,h]),X=$.useCallback(function(Y){var W=k(Y);if(I(W),W){var H=W[0],U=W[1];if(o==null||o(U),D==null||D(U,Y),P.current){var z=P.current,ne=z[0],B=z[1];H!==ne?m==null||m(B,Y):p==null||p(U,Y)}else h==null||h(U,Y)}else o==null||o(null),j==null||j(),P.current&&(m==null||m(P.current[1],Y))},[k,I,P,h,p,m,D,j]),q=$.useCallback(function(Y){I(null),o==null||o(null),j(),m&&P.current&&m(P.current[1],Y)},[I,o,P,j,m]),Z=$.useCallback(function(Y){var W=k(Y);I(W),W&&(v==null||v(W[1],Y))},[k,I,v]),J=$.useCallback(function(Y){var W=k(Y);S&&(I(W),o==null||o(W?W[1]:null)),W&&(y==null||y(W[1],Y))},[k,I,o,S,y]),Q=$.useCallback(function(Y){var W=k(Y);S&&(I(W),o==null||o(W?W[1]:null)),W&&(b==null||b(W[1],Y))},[k,I,o,S,b]),K=$.useCallback(function(Y){S&&(I(null),o==null||o(null)),x&&P.current&&x(P.current[1],Y)},[S,I,o,x,P]);return{current:F,handleMouseEnter:f?V:void 0,handleMouseMove:f?X:void 0,handleMouseLeave:f?q:void 0,handleClick:f?Z:void 0,handleTouchStart:f?J:void 0,handleTouchMove:f?Q:void 0,handleTouchEnd:f?K:void 0}},$M=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,a=i===void 0?Wl:i,o=e.getNodePosition,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,p=e.onTouchEnd,m=e.enableTouchCrosshair,v=m!==void 0&&m,y=e.detectionRadius,b=y===void 0?1/0:y,x=e.tooltip,C=e.tooltipPosition,S=C===void 0?CM:C,w=e.tooltipAnchor,O=w===void 0?wM:w,E=e.debug,_=$.useRef(null),T=p0({points:t,getNodePosition:o,width:n,height:r,margin:a,debug:E}),R=T.delaunay,F=T.voronoi,I=Mle({elementRef:_,nodes:t,delaunay:R,margin:a,detectionRadius:b,setCurrent:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:p,enableTouchCrosshair:v,tooltip:x,tooltipPosition:S,tooltipAnchor:O}),P=I.current,k=I.handleMouseEnter,A=I.handleMouseMove,M=I.handleMouseLeave,N=I.handleClick,j=I.handleTouchStart,D=I.handleTouchMove,V=I.handleTouchEnd,X=$.useMemo(function(){if(E&&F)return F.render()},[E,F]);return L.jsxs("g",{ref:_,transform:"translate("+-a.left+","+-a.top+")",children:[E&&F&&L.jsxs(L.Fragment,{children:[L.jsx("path",{d:X,stroke:"red",strokeWidth:1,opacity:.75}),b<1/0&&L.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:R.renderPoints(void 0,b)}),P&&L.jsx("path",{fill:"pink",opacity:.35,d:F.renderCell(P[0])})]}),L.jsx("rect",{"data-ref":"mesh-interceptor",width:a.left+n+a.right,height:a.top+r+a.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:k,onMouseMove:A,onMouseLeave:M,onTouchStart:j,onTouchMove:D,onTouchEnd:V,onClick:N})]})},_M=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},EM=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dr.apply(this,arguments)}function OM(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Tle=function(e){if(typeof e=="function")return e;if(zg(e))return function(){return e};if(function(n){return yd(n)}(e)){if(!H_(e.key))throw new Error("symbolSize is invalid, key should be a string pointing to the property to use to determine node size");if(!Array.isArray(e.values)||e.values.length!==2)throw new Error("symbolSize is invalid, values spec should be an array containing two values, min and max");if(!Array.isArray(e.sizes)||e.sizes.length!==2)throw new Error("symbolSize is invalid, sizes spec should be an array containing two values, min and max");var t=Ap().domain([e.values[0],e.values[1]]).range([e.sizes[0],e.sizes[1]]);return function(n){return t(Vr(n,e.key))}}throw new Error("nodeSize is invalid, it should be either a function, a number or an object")},MM=function(e){var t,n=e.data,r=e.xScaleSpec,i=e.xFormat,a=e.yScaleSpec,o=e.yFormat,s=e.width,l=e.height,c=e.nodeId,u=e.nodeSize,d=e.colors,f=$.useMemo(function(){return uM(n,r,a,s,l)},[n,r,a,s,l]),h=f.series,p=f.xScale,m=f.yScale,v=ji(i),y=ji(o),b=Yr(c),x=$.useMemo(function(){return function(w){var O=w.series,E=w.formatX,_=w.formatY,T=w.getNodeId,R=[];return O.forEach(function(F){F.data.forEach(function(I,P){var k={index:R.length,serieIndex:P,serieId:F.id,x:I.position.x,xValue:I.data.x,formattedX:E(I.data.x),y:I.position.y,yValue:I.data.y,formattedY:_(I.data.y),data:I.data};R.push(dr({},k,{id:T(k)}))})}),R}({series:h,formatX:v,formatY:y,getNodeId:b})},[h,v,y,b]),C=$.useMemo(function(){return Tle(t)},[t=u]),S=Bl(d,"serieId");return{xScale:p,yScale:m,nodes:$.useMemo(function(){return x.map(function(w){return dr({},w,{size:C(w),color:S({serieId:w.serieId})})})},[x,C,S]),legendData:$.useMemo(function(){return h.map(function(w){return{id:w.id,label:w.id,color:S({serieId:w.id})}})},[h,S])}},TM=function(e,t){return Qse({data:e,annotations:t,getPosition:function(n){return{x:n.x,y:n.y}},getDimensions:function(n){return{size:n.size,width:n.size,height:n.size}}})},Rle=function(e){return e/2},RM={xScale:{type:"linear",min:0,max:"auto"},yScale:{type:"linear",min:0,max:"auto"},enableGridX:!0,enableGridY:!0,axisBottom:{},axisLeft:{},nodeId:function(e){return e.serieId+"."+e.index},nodeSize:9,nodeComponent:function(e){var t=e.node,n=e.style,r=e.blendMode,i=e.isInteractive,a=e.onMouseEnter,o=e.onMouseMove,s=e.onMouseLeave,l=e.onClick,c=$.useCallback(function(h){return a==null?void 0:a(t,h)},[t,a]),u=$.useCallback(function(h){return o==null?void 0:o(t,h)},[t,o]),d=$.useCallback(function(h){return s==null?void 0:s(t,h)},[t,s]),f=$.useCallback(function(h){return l==null?void 0:l(t,h)},[t,l]);return L.jsx(Mt.circle,{cx:n.x,cy:n.y,r:n.size.to(Rle),fill:n.color,style:{mixBlendMode:r},onMouseEnter:i?c:void 0,onMouseMove:i?u:void 0,onMouseLeave:i?d:void 0,onClick:i?f:void 0})},colors:{scheme:"nivo"},isInteractive:!0,debugMesh:!1,tooltip:function(e){var t=e.node;return L.jsx(So,{id:t.serieId,value:"x: "+t.formattedX+", y: "+t.formattedY,enableChip:!0,color:t.color})},markers:[],legends:[],annotations:[]},tn=dr({},RM,{blendMode:"normal",layers:["grid","axes","nodes","markers","mesh","legends","annotations"],role:"img",useMesh:!0,animate:!0,motionConfig:"default"}),zn=dr({},RM,{layers:["grid","axes","nodes","mesh","legends","annotations"],pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,renderNode:function(e,t){e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fillStyle=t.color,e.fill()}}),Ple=function(e){var t=e.nodes,n=e.annotations,r=TM(t,n);return L.jsx(L.Fragment,{children:r.map(function(i,a){return L.jsx(ile,dr({},i),a)})})},Ile=function(e){return e.id},zh=function(e){return{x:e.x,y:e.y,size:e.size,color:e.color}},Ale=function(e){return{x:e.x,y:e.y,size:0,color:e.color}},Nle=function(e){var t=e.nodes,n=e.nodeComponent,r=e.isInteractive,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=e.onClick,l=e.tooltip,c=e.blendMode,u=Sn(),d=u.animate,f=u.config,h=$a(t,{keys:Ile,from:zh,enter:zh,update:zh,leave:Ale,config:f,immediate:!d}),p=Wr(),m=p.showTooltipFromEvent,v=p.hideTooltip,y=$.useCallback(function(S,w){m($.createElement(l,{node:S}),w),i==null||i(S,w)},[l,m,i]),b=$.useCallback(function(S,w){m($.createElement(l,{node:S}),w),a==null||a(S,w)},[l,m,a]),x=$.useCallback(function(S,w){v(),o==null||o(S,w)},[v,o]),C=$.useCallback(function(S,w){return s==null?void 0:s(S,w)},[s]);return L.jsx(L.Fragment,{children:h(function(S,w){return $.createElement(n,{node:w,style:S,blendMode:c,isInteractive:r,onMouseEnter:r?y:void 0,onMouseMove:r?b:void 0,onMouseLeave:r?x:void 0,onClick:r?C:void 0})})})},kle=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=e.onClick,l=e.tooltip,c=e.debug,u=Wr(),d=u.showTooltipFromEvent,f=u.hideTooltip,h=$.useCallback(function(y,b){d($.createElement(l,{node:y}),b),i&&i(y,b)},[d,l,i]),p=$.useCallback(function(y,b){d($.createElement(l,{node:y}),b),a&&a(y,b)},[d,l,a]),m=$.useCallback(function(y,b){f(),o&&o(y,b)},[f,o]),v=$.useCallback(function(y,b){s&&s(y,b)},[s]);return L.jsx($M,{nodes:t,width:n,height:r,onMouseEnter:h,onMouseMove:p,onMouseLeave:m,onClick:v,debug:c})},jle=["isInteractive","animate","motionConfig","theme","renderWrapper"],Lle=function(e){var t=e.data,n=e.xScale,r=n===void 0?tn.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?tn.yScale:a,s=e.yFormat,l=e.width,c=e.height,u=e.margin,d=e.layers,f=d===void 0?tn.layers:d,h=e.colors,p=h===void 0?tn.colors:h,m=e.blendMode,v=m===void 0?tn.blendMode:m,y=e.nodeId,b=y===void 0?tn.nodeId:y,x=e.nodeSize,C=x===void 0?tn.nodeSize:x,S=e.nodeComponent,w=S===void 0?tn.nodeComponent:S,O=e.enableGridX,E=O===void 0?tn.enableGridX:O,_=e.enableGridY,T=_===void 0?tn.enableGridY:_,R=e.gridXValues,F=e.gridYValues,I=e.axisTop,P=e.axisRight,k=e.axisBottom,A=k===void 0?tn.axisBottom:k,M=e.axisLeft,N=M===void 0?tn.axisLeft:M,j=e.annotations,D=j===void 0?tn.annotations:j,V=e.isInteractive,X=V===void 0?tn.isInteractive:V,q=e.useMesh,Z=q===void 0?tn.useMesh:q,J=e.debugMesh,Q=J===void 0?tn.debugMesh:J,K=e.onMouseEnter,Y=e.onMouseMove,W=e.onMouseLeave,H=e.onClick,U=e.tooltip,z=U===void 0?tn.tooltip:U,ne=e.markers,B=ne===void 0?tn.markers:ne,re=e.legends,ie=re===void 0?tn.legends:re,ue=e.role,me=ue===void 0?tn.role:ue,ve=e.ariaLabel,be=e.ariaLabelledBy,Ce=e.ariaDescribedBy,ge=Ra(l,c,u),fe=ge.margin,se=ge.innerWidth,xe=ge.innerHeight,ce=ge.outerWidth,Ne=ge.outerHeight,Me=MM({data:t,xScaleSpec:r,xFormat:i,yScaleSpec:o,yFormat:s,width:se,height:xe,nodeId:b,nodeSize:C,colors:p}),Ie=Me.xScale,je=Me.yScale,He=Me.nodes,Xe=Me.legendData,ke=$.useMemo(function(){return{xScale:Ie,yScale:je,nodes:He,margin:fe,innerWidth:se,innerHeight:xe,outerWidth:ce,outerHeight:Ne}},[Ie,je,He,fe,se,xe,ce,Ne]),Oe={grid:null,axes:null,nodes:null,markers:null,mesh:null,annotations:null,legends:null};return f.includes("grid")&&(Oe.grid=L.jsx(yM,{width:se,height:xe,xScale:E?Ie:null,yScale:T?je:null,xValues:R,yValues:F},"grid")),f.includes("axes")&&(Oe.axes=L.jsx(bM,{xScale:Ie,yScale:je,width:se,height:xe,top:I,right:P,bottom:A,left:N},"axes")),f.includes("nodes")&&(Oe.nodes=L.jsx(Nle,{nodes:He,nodeComponent:w,isInteractive:X,tooltip:z,blendMode:v,onMouseEnter:K,onMouseMove:Y,onMouseLeave:W,onClick:H},"nodes")),f.includes("markers")&&(Oe.markers=L.jsx(yO,{markers:B,width:se,height:xe,xScale:Ie,yScale:je},"markers")),f.includes("mesh")&&X&&Z&&(Oe.mesh=L.jsx(kle,{nodes:He,width:se,height:xe,onMouseEnter:K,onMouseMove:Y,onMouseLeave:W,onClick:H,tooltip:z,debug:Q},"mesh")),f.includes("annotations")&&(Oe.annotations=L.jsx(Ple,{nodes:He,annotations:D},"annotations")),f.includes("legends")&&(Oe.legends=ie.map(function(nt,We){return L.jsx(hf,dr({},nt,{containerWidth:se,containerHeight:xe,data:Xe}),We)})),L.jsx(Xo,{width:ce,height:Ne,margin:fe,role:me,ariaLabel:ve,ariaLabelledBy:be,ariaDescribedBy:Ce,children:f.map(function(nt,We){if(typeof nt=="string"&&Oe[nt]!==void 0)return Oe[nt];if(typeof nt=="function")return L.jsx($.Fragment,{children:$.createElement(nt,ke)},We);throw new Error("Unknown layer ("+nt+")")})})},Dle=function(e){var t=e.isInteractive,n=t===void 0?tn.isInteractive:t,r=e.animate,i=r===void 0?tn.animate:r,a=e.motionConfig,o=a===void 0?tn.motionConfig:a,s=e.theme,l=e.renderWrapper,c=OM(e,jle);return L.jsx(Pa,{animate:i,isInteractive:n,motionConfig:o,renderWrapper:l,theme:s,children:L.jsx(Lle,dr({isInteractive:n},c))})},Fle=function(e){return L.jsx(Hi,{children:function(t){var n=t.width,r=t.height;return L.jsx(Dle,dr({width:n,height:r},e))}})},zle=["isInteractive","renderWrapper","theme"],Ble=function(e){var t=e.data,n=e.xScale,r=n===void 0?zn.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?zn.yScale:a,s=e.yFormat,l=e.width,c=e.height,u=e.margin,d=e.pixelRatio,f=d===void 0?zn.pixelRatio:d,h=e.layers,p=h===void 0?zn.layers:h,m=e.colors,v=m===void 0?zn.colors:m,y=e.nodeId,b=y===void 0?tn.nodeId:y,x=e.nodeSize,C=x===void 0?zn.nodeSize:x,S=e.renderNode,w=S===void 0?zn.renderNode:S,O=e.enableGridX,E=O===void 0?zn.enableGridX:O,_=e.gridXValues,T=e.enableGridY,R=T===void 0?zn.enableGridY:T,F=e.gridYValues,I=e.axisTop,P=e.axisRight,k=e.axisBottom,A=k===void 0?zn.axisBottom:k,M=e.axisLeft,N=M===void 0?zn.axisLeft:M,j=e.annotations,D=j===void 0?zn.annotations:j,V=e.isInteractive,X=V===void 0?zn.isInteractive:V,q=e.debugMesh,Z=q===void 0?zn.debugMesh:q,J=e.onMouseEnter,Q=e.onMouseMove,K=e.onMouseLeave,Y=e.onClick,W=e.tooltip,H=W===void 0?zn.tooltip:W,U=e.legends,z=U===void 0?zn.legends:U,ne=e.canvasRef,B=$.useRef(null),re=Lt(),ie=$.useState(null),ue=ie[0],me=ie[1],ve=Ra(l,c,u),be=ve.margin,Ce=ve.innerWidth,ge=ve.innerHeight,fe=ve.outerWidth,se=ve.outerHeight,xe=MM({data:t,xScaleSpec:r,xFormat:i,yScaleSpec:o,yFormat:s,width:Ce,height:ge,nodeId:b,nodeSize:C,colors:v}),ce=xe.xScale,Ne=xe.yScale,Me=xe.nodes,Ie=xe.legendData,je=TM(Me,D),He=p0({points:Me,width:Ce,height:ge,debug:Z}),Xe=He.delaunay,ke=He.voronoi,Oe=$.useMemo(function(){return{xScale:ce,yScale:Ne,nodes:Me,margin:be,innerWidth:Ce,innerHeight:ge,outerWidth:fe,outerHeight:se}},[ce,Ne,Me,be,Ce,ge,fe,se]);$.useEffect(function(){if(B.current){B.current.width=fe*f,B.current.height=se*f;var De=B.current.getContext("2d");De.scale(f,f),De.fillStyle=re.background,De.fillRect(0,0,fe,se),De.translate(be.left,be.top),p.forEach(function(qe){if(qe==="grid")De.lineWidth=re.grid.line.strokeWidth,De.strokeStyle=re.grid.line.stroke,E&&Au(De,{width:Ce,height:ge,scale:ce,axis:"x",values:_}),R&&Au(De,{width:Ce,height:ge,scale:Ne,axis:"y",values:F});else if(qe==="annotations")ale(De,{annotations:je,theme:re});else if(qe==="axes")xM(De,{xScale:ce,yScale:Ne,width:Ce,height:ge,top:I,right:P,bottom:A,left:N,theme:re});else if(qe==="nodes")Me.forEach(function(Qe){w(De,Qe)});else if(qe==="mesh")Z&&(_M(De,ke),ue&&EM(De,ke,ue.index));else if(qe==="legends")z.forEach(function(Qe){OO(De,dr({},Qe,{data:Ie,containerWidth:Ce,containerHeight:ge,theme:re}))});else{if(typeof qe!="function")throw new Error("Invalid layer: "+qe);qe(De,Oe)}})}},[B,Ce,ge,fe,se,be.top,be.left,f,w,p,Oe,re,ce,Ne,Me,E,R,I,P,A,N,z,Ie,Z,ke,ue,je]);var nt=Wr(),We=nt.showTooltipFromEvent,Be=nt.hideTooltip,Se=$.useCallback(function(De){var qe=l0(B.current,De),Qe=qe[0],Je=qe[1];if(!SO(be.left,be.top,Ce,ge,Qe,Je))return null;var rt=Xe.find(Qe-be.left,Je-be.top);return Me[rt]},[B,be,Ce,ge,Xe]),Fe=$.useCallback(function(De){var qe=Se(De);me(qe),qe?(We($.createElement(H,{node:qe}),De),ue&&ue.id!==qe.id&&(K&&K(ue,De),J&&J(qe,De)),ue||J&&J(qe,De),Q&&Q(qe,De)):(Be(),ue&&K&&K(ue,De))},[Se,ue,me,We,Be,H,J,Q,K]),ot=$.useCallback(function(De){Be(),me(null),ue&&K&&K(ue,De)},[Be,ue,me,K]),ct=$.useCallback(function(De){if(Y){var qe=Se(De);qe&&Y(qe,De)}},[Se,Y]);return L.jsx("canvas",{ref:function(De){B.current=De,ne&&"current"in ne&&(ne.current=De)},width:fe*f,height:se*f,style:{width:fe,height:se,cursor:X?"auto":"normal"},onMouseEnter:X?Fe:void 0,onMouseMove:X?Fe:void 0,onMouseLeave:X?ot:void 0,onClick:X?ct:void 0})},Vle=$.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=OM(e,zle);return L.jsx(Pa,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:L.jsx(Ble,dr({},a,{canvasRef:t}))})});$.forwardRef(function(e,t){return L.jsx(Hi,{children:function(n){var r=n.width,i=n.height;return L.jsx(Vle,dr({width:r,height:i},e,{ref:t}))}})});const Wle=({x1:e,x2:t,y1:n,y2:r})=>L.jsx("g",{children:L.jsx("line",{x1:e,y1:n,x2:t,y2:r,stroke:"red","stroke-width":"3"})}),Hle=({scatterPlotData:e})=>{const t=e.line,n=t.x1,r=t.y1,i=t.x2,a=t.y2;return L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx("div",{style:{width:"100%",height:600},children:L.jsx(Fle,{data:[e.points],margin:{top:20,right:120,bottom:20,left:120},xScale:{type:"point"},layers:["grid","markers","axes","nodes","legends",o=>L.jsx(Wle,{x1:o.xScale(n),y1:o.yScale(r),x2:o.xScale(i),y2:o.yScale(a)})],tooltip:({node:o})=>L.jsx(Li,{label:o.serieId,amount:o.formattedY})})})]})};function Ule(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}var Gle=Ule;function qle(e){return function(t){return e==null?void 0:e[t]}}var Kle=qle,Yle=Kle,Xle={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Zle=Yle(Xle),Qle=Zle,Jle=Qle,ece=Ll,tce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nce="\\u0300-\\u036f",rce="\\ufe20-\\ufe2f",ice="\\u20d0-\\u20ff",ace=nce+rce+ice,oce="["+ace+"]",sce=RegExp(oce,"g");function lce(e){return e=ece(e),e&&e.replace(tce,Jle).replace(sce,"")}var cce=lce,uce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function dce(e){return e.match(uce)||[]}var fce=dce,hce=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function vce(e){return hce.test(e)}var gce=vce,PM="\\ud800-\\udfff",mce="\\u0300-\\u036f",pce="\\ufe20-\\ufe2f",bce="\\u20d0-\\u20ff",yce=mce+pce+bce,IM="\\u2700-\\u27bf",AM="a-z\\xdf-\\xf6\\xf8-\\xff",xce="\\xac\\xb1\\xd7\\xf7",Sce="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cce="\\u2000-\\u206f",wce=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",NM="A-Z\\xc0-\\xd6\\xd8-\\xde",$ce="\\ufe0e\\ufe0f",kM=xce+Sce+Cce+wce,jM="['’]",LS="["+kM+"]",_ce="["+yce+"]",LM="\\d+",Ece="["+IM+"]",DM="["+AM+"]",FM="[^"+PM+kM+LM+IM+AM+NM+"]",Oce="\\ud83c[\\udffb-\\udfff]",Mce="(?:"+_ce+"|"+Oce+")",Tce="[^"+PM+"]",zM="(?:\\ud83c[\\udde6-\\uddff]){2}",BM="[\\ud800-\\udbff][\\udc00-\\udfff]",Qa="["+NM+"]",Rce="\\u200d",DS="(?:"+DM+"|"+FM+")",Pce="(?:"+Qa+"|"+FM+")",FS="(?:"+jM+"(?:d|ll|m|re|s|t|ve))?",zS="(?:"+jM+"(?:D|LL|M|RE|S|T|VE))?",VM=Mce+"?",WM="["+$ce+"]?",Ice="(?:"+Rce+"(?:"+[Tce,zM,BM].join("|")+")"+WM+VM+")*",Ace="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nce="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kce=WM+VM+Ice,jce="(?:"+[Ece,zM,BM].join("|")+")"+kce,Lce=RegExp([Qa+"?"+DM+"+"+FS+"(?="+[LS,Qa,"$"].join("|")+")",Pce+"+"+zS+"(?="+[LS,Qa+DS,"$"].join("|")+")",Qa+"?"+DS+"+"+FS,Qa+"+"+zS,Nce,Ace,LM,jce].join("|"),"g");function Dce(e){return e.match(Lce)||[]}var Fce=Dce,zce=fce,Bce=gce,Vce=Ll,Wce=Fce;function Hce(e,t,n){return e=Vce(e),t=n?void 0:t,t===void 0?Bce(e)?Wce(e):zce(e):e.match(t)||[]}var Uce=Hce,Gce=Gle,qce=cce,Kce=Uce,Yce="['’]",Xce=RegExp(Yce,"g");function Zce(e){return function(t){return Gce(Kce(qce(t).replace(Xce,"")),e,"")}}var Qce=Zce,Jce=SM;function eue(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Jce(e,t,n)}var tue=eue,nue="\\ud800-\\udfff",rue="\\u0300-\\u036f",iue="\\ufe20-\\ufe2f",aue="\\u20d0-\\u20ff",oue=rue+iue+aue,sue="\\ufe0e\\ufe0f",lue="\\u200d",cue=RegExp("["+lue+nue+oue+sue+"]");function uue(e){return cue.test(e)}var HM=uue;function due(e){return e.split("")}var fue=due,UM="\\ud800-\\udfff",hue="\\u0300-\\u036f",vue="\\ufe20-\\ufe2f",gue="\\u20d0-\\u20ff",mue=hue+vue+gue,pue="\\ufe0e\\ufe0f",bue="["+UM+"]",Hg="["+mue+"]",Ug="\\ud83c[\\udffb-\\udfff]",yue="(?:"+Hg+"|"+Ug+")",GM="[^"+UM+"]",qM="(?:\\ud83c[\\udde6-\\uddff]){2}",KM="[\\ud800-\\udbff][\\udc00-\\udfff]",xue="\\u200d",YM=yue+"?",XM="["+pue+"]?",Sue="(?:"+xue+"(?:"+[GM,qM,KM].join("|")+")"+XM+YM+")*",Cue=XM+YM+Sue,wue="(?:"+[GM+Hg+"?",Hg,qM,KM,bue].join("|")+")",$ue=RegExp(Ug+"(?="+Ug+")|"+wue+Cue,"g");function _ue(e){return e.match($ue)||[]}var Eue=_ue,Oue=fue,Mue=HM,Tue=Eue;function Rue(e){return Mue(e)?Tue(e):Oue(e)}var Pue=Rue,Iue=tue,Aue=HM,Nue=Pue,kue=Ll;function jue(e){return function(t){t=kue(t);var n=Aue(t)?Nue(t):void 0,r=n?n[0]:t.charAt(0),i=n?Iue(n,1).join(""):t.slice(1);return r[e]()+i}}var Lue=jue,Due=Lue,Fue=Due("toUpperCase"),zue=Fue,Bue=Qce,Vue=zue,Wue=Bue(function(e,t,n){return e+(n?" ":"")+Vue(t)}),Hue=Wue;const Uue=rn(Hue);function Gue(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function que(){return this.eachAfter(Gue)}function Kue(e){var t=this,n,r=[t],i,a,o;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);while(r.length);return this}function Yue(e){for(var t=this,n=[t],r,i;t=n.pop();)if(e(t),r=t.children,r)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function Xue(e){for(var t=this,n=[t],r=[],i,a,o;t=n.pop();)if(r.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);for(;t=r.pop();)e(t);return this}function Zue(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function Que(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Jue(e){for(var t=this,n=ede(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function ede(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function tde(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function nde(){var e=[];return this.each(function(t){e.push(t)}),e}function rde(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function ide(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function b0(e,t){var n=new ku(e),r=+e.value&&(n.value=e.value),i,a=[n],o,s,l,c;for(t==null&&(t=ode);i=a.pop();)if(r&&(i.value=+i.data.value),(s=t(i.data))&&(c=s.length))for(i.children=new Array(c),l=c-1;l>=0;--l)a.push(o=i.children[l]=new ku(s[l])),o.parent=i,o.depth=i.depth+1;return n.eachBefore(lde)}function ade(){return b0(this).eachBefore(sde)}function ode(e){return e.children}function sde(e){e.data=e.data.data}function lde(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function ku(e){this.data=e,this.depth=this.height=0,this.parent=null}ku.prototype=b0.prototype={constructor:ku,count:que,each:Kue,eachAfter:Xue,eachBefore:Yue,sum:Zue,sort:Que,path:Jue,ancestors:tde,descendants:nde,leaves:rde,links:ide,copy:ade};function cde(e){if(typeof e!="function")throw new Error;return e}function xs(){return 0}function Ss(e){return function(){return e}}function ude(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function y0(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,c=e.value&&(r-t)/e.value;++s<l;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function x0(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,c=e.value&&(i-n)/e.value;++s<l;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}var dde=(1+Math.sqrt(5))/2;function fde(e,t,n,r,i,a){for(var o=[],s=t.children,l,c,u=0,d=0,f=s.length,h,p,m=t.value,v,y,b,x,C,S,w;u<f;){h=i-n,p=a-r;do v=s[d++].value;while(!v&&d<f);for(y=b=v,S=Math.max(p/h,h/p)/(m*e),w=v*v*S,C=Math.max(b/w,w/y);d<f;++d){if(v+=c=s[d].value,c<y&&(y=c),c>b&&(b=c),w=v*v*S,x=Math.max(b/w,w/y),x>C){v-=c;break}C=x}o.push(l={value:v,dice:h<p,children:s.slice(u,d)}),l.dice?y0(l,n,r,i,m?r+=p*v/m:a):x0(l,n,r,m?n+=h*v/m:i,a),m-=v,u=d}return o}const ZM=function e(t){function n(r,i,a,o,s){fde(t,r,i,a,o,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(dde);function hde(){var e=ZM,t=!1,n=1,r=1,i=[0],a=xs,o=xs,s=xs,l=xs,c=xs;function u(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),i=[0],t&&f.eachBefore(ude),f}function d(f){var h=i[f.depth],p=f.x0+h,m=f.y0+h,v=f.x1-h,y=f.y1-h;v<p&&(p=v=(p+v)/2),y<m&&(m=y=(m+y)/2),f.x0=p,f.y0=m,f.x1=v,f.y1=y,f.children&&(h=i[f.depth+1]=a(f)/2,p+=c(f)-h,m+=o(f)-h,v-=s(f)-h,y-=l(f)-h,v<p&&(p=v=(p+v)/2),y<m&&(m=y=(m+y)/2),e(f,p,m,v,y))}return u.round=function(f){return arguments.length?(t=!!f,u):t},u.size=function(f){return arguments.length?(n=+f[0],r=+f[1],u):[n,r]},u.tile=function(f){return arguments.length?(e=cde(f),u):e},u.padding=function(f){return arguments.length?u.paddingInner(f).paddingOuter(f):u.paddingInner()},u.paddingInner=function(f){return arguments.length?(a=typeof f=="function"?f:Ss(+f),u):a},u.paddingOuter=function(f){return arguments.length?u.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):u.paddingTop()},u.paddingTop=function(f){return arguments.length?(o=typeof f=="function"?f:Ss(+f),u):o},u.paddingRight=function(f){return arguments.length?(s=typeof f=="function"?f:Ss(+f),u):s},u.paddingBottom=function(f){return arguments.length?(l=typeof f=="function"?f:Ss(+f),u):l},u.paddingLeft=function(f){return arguments.length?(c=typeof f=="function"?f:Ss(+f),u):c},u}function vde(e,t,n,r,i){var a=e.children,o,s=a.length,l,c=new Array(s+1);for(c[0]=l=o=0;o<s;++o)c[o+1]=l+=a[o].value;u(0,s,e.value,t,n,r,i);function u(d,f,h,p,m,v,y){if(d>=f-1){var b=a[d];b.x0=p,b.y0=m,b.x1=v,b.y1=y;return}for(var x=c[d],C=h/2+x,S=d+1,w=f-1;S<w;){var O=S+w>>>1;c[O]<C?S=O+1:w=O}C-c[S-1]<c[S]-C&&d+1<S&&--S;var E=c[S]-x,_=h-E;if(v-p>y-m){var T=(p*_+v*E)/h;u(d,S,E,p,m,T,y),u(S,f,_,T,m,v,y)}else{var R=(m*_+y*E)/h;u(d,S,E,p,m,v,R),u(S,f,_,p,R,v,y)}}}function gde(e,t,n,r,i){(e.depth&1?x0:y0)(e,t,n,r,i)}function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fr.apply(this,arguments)}function mde(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var pde=function(e,t){return ur([e,t],function(n,r){return"translate("+n+","+r+")"})},bde=function(e,t){return ur([e,t],function(n,r){return"translate("+n+"px, "+r+"px)"})},BS=function(e,t,n){return ur([e,t,n],function(r,i,a){return"translate("+r+","+i+") rotate("+a+")"})},yde=function(e,t,n){return ur([e,t,n],function(r,i,a){return"translate("+r+"px,"+i+"px) rotate("+a+"deg)"})},xde=function(e,t,n){return ur([e,t,n],function(r,i,a){return"translate("+(r-(a===0?0:5))+"px,"+(i-(a===0?5:0))+"px) rotate("+a+"deg)"})},Sde=$.memo(function(e){var t=e.node,n=e.animatedProps,r=e.borderWidth,i=e.enableLabel,a=e.enableParentLabel,o=e.labelSkipSize,s=Lt(),l=i&&t.isLeaf&&(o===0||Math.min(t.width,t.height)>o),c=a&&t.isParent;return L.jsxs(Mt.g,{transform:pde(n.x,n.y),children:[L.jsx(Mt.rect,{"data-testid":"node."+t.id,width:ur(n.width,function(u){return Math.max(u,0)}),height:ur(n.height,function(u){return Math.max(u,0)}),fill:t.fill?t.fill:n.color,strokeWidth:r,stroke:t.borderColor,fillOpacity:t.opacity,onMouseEnter:t.onMouseEnter,onMouseMove:t.onMouseMove,onMouseLeave:t.onMouseLeave,onClick:t.onClick}),l&&L.jsx(Mt.text,{"data-testid":"label."+t.id,textAnchor:"middle",dominantBaseline:"central",style:fr({},s.labels.text,{fill:t.labelTextColor,pointerEvents:"none"}),fillOpacity:n.labelOpacity,transform:BS(n.labelX,n.labelY,n.labelRotation),children:t.label}),c&&L.jsx(Mt.text,{"data-testid":"parentLabel."+t.id,dominantBaseline:"central",style:fr({},s.labels.text,{fill:t.parentLabelTextColor,pointerEvents:"none"}),fillOpacity:n.parentLabelOpacity,transform:BS(n.parentLabelX,n.parentLabelY,n.parentLabelRotation),children:t.parentLabel})]})}),Cde=$.memo(function(e){var t=e.node;return L.jsx(So,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})}),wde=$.memo(function(e){var t=e.node,n=e.animatedProps,r=e.borderWidth,i=e.enableLabel,a=e.enableParentLabel,o=e.labelSkipSize,s=Lt(),l=i&&t.isLeaf&&(o===0||Math.min(t.width,t.height)>o),c=a&&t.isParent;return L.jsxs(Mt.div,{"data-testid":"node."+t.id,id:t.path.replace(/[^\w]/gi,"-"),style:{boxSizing:"border-box",position:"absolute",top:0,left:0,transform:bde(n.x,n.y),width:n.width,height:n.height,borderWidth:r,borderStyle:"solid",borderColor:t.borderColor,overflow:"hidden"},children:[L.jsx(Mt.div,{style:{boxSizing:"border-box",position:"absolute",top:0,left:0,opacity:t.opacity,width:n.width,height:n.height,background:n.color},onMouseEnter:t.onMouseEnter,onMouseMove:t.onMouseMove,onMouseLeave:t.onMouseLeave,onClick:t.onClick}),l&&L.jsx(Mt.span,{"data-testid":"label."+t.id,style:fr({},s.labels.text,{position:"absolute",display:"flex",top:-5,left:-5,width:10,height:10,justifyContent:"center",alignItems:"center",whiteSpace:"nowrap",color:t.labelTextColor,transformOrigin:"center center",transform:yde(n.labelX,n.labelY,n.labelRotation),opacity:n.labelOpacity,pointerEvents:"none"}),children:t.label}),c&&L.jsx(Mt.span,{"data-testid":"parentLabel."+t.id,style:fr({},s.labels.text,{position:"absolute",display:"flex",justifyContent:"flex-start",alignItems:"center",whiteSpace:"nowrap",width:10,height:10,color:t.parentLabelTextColor,transformOrigin:"top left",transform:xde(n.parentLabelX,n.parentLabelY,n.parentLabelRotation),opacity:n.parentLabelOpacity,pointerEvents:"none"}),children:t.parentLabel})]})}),sn={layers:["nodes"],identity:"id",value:"value",tile:"squarify",leavesOnly:!1,innerPadding:0,outerPadding:0,colors:{scheme:"nivo"},colorBy:"pathComponents.1",nodeOpacity:.33,enableLabel:!0,label:"formattedValue",labelSkipSize:0,labelTextColor:{from:"color",modifiers:[["darker",1]]},orientLabel:!0,enableParentLabel:!0,parentLabel:"id",parentLabelSize:20,parentLabelPosition:"top",parentLabelPadding:6,parentLabelTextColor:{from:"color",modifiers:[["darker",1]]},borderWidth:1,borderColor:{from:"color",modifiers:[["darker",1]]},isInteractive:!0,tooltip:Cde,role:"img",animate:!0,motionConfig:"gentle"},Dt=fr({},sn,{nodeComponent:Sde,defs:[],fill:[]});fr({},sn,{nodeComponent:wde});fr({},sn,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var $de={binary:vde,dice:y0,slice:x0,sliceDice:gde,squarify:ZM},_de=function(e){var t=e.root,n=e.getValue;return $.useMemo(function(){return b0(t).sum(n)},[t,n])},Ede=function(e){var t=e.data,n=e.width,r=e.height,i=e.identity,a=i===void 0?sn.identity:i,o=e.value,s=o===void 0?sn.value:o,l=e.valueFormat,c=e.leavesOnly,u=c===void 0?sn.leavesOnly:c,d=e.tile,f=d===void 0?sn.tile:d,h=e.innerPadding,p=h===void 0?sn.innerPadding:h,m=e.outerPadding,v=m===void 0?sn.outerPadding:m,y=e.label,b=y===void 0?sn.label:y,x=e.orientLabel,C=x===void 0?sn.orientLabel:x,S=e.enableParentLabel,w=S===void 0?sn.enableParentLabel:S,O=e.parentLabel,E=O===void 0?sn.parentLabel:O,_=e.parentLabelSize,T=_===void 0?sn.parentLabelSize:_,R=e.parentLabelPosition,F=R===void 0?sn.parentLabelPosition:R,I=e.parentLabelPadding,P=I===void 0?sn.parentLabelPadding:I,k=e.colors,A=k===void 0?sn.colors:k,M=e.colorBy,N=M===void 0?sn.colorBy:M,j=e.nodeOpacity,D=j===void 0?sn.nodeOpacity:j,V=e.borderColor,X=V===void 0?sn.borderColor:V,q=e.labelTextColor,Z=q===void 0?sn.labelTextColor:q,J=e.parentLabelTextColor,Q=J===void 0?sn.parentLabelTextColor:J,K=Yr(a),Y=Yr(s),W=ji(l),H=Yr(b),U=Yr(E),z=function(ge){var fe=ge.width,se=ge.height,xe=ge.tile,ce=ge.innerPadding,Ne=ge.outerPadding,Me=ge.enableParentLabel,Ie=ge.parentLabelSize,je=ge.parentLabelPosition,He=ge.leavesOnly;return $.useMemo(function(){var Xe=hde().size([fe,se]).tile($de[xe]).round(!0).paddingInner(ce).paddingOuter(Ne);if(Me&&!He){var ke=Ie+2*Ne;Xe["padding"+Uue(je)](ke)}return Xe},[fe,se,xe,ce,Ne,Me,Ie,je,He])}({width:n,height:r,tile:f,innerPadding:p,outerPadding:v,enableParentLabel:w,parentLabelSize:T,parentLabelPosition:F,leavesOnly:u}),ne=_de({root:t,getValue:Y}),B=$.useMemo(function(){var ge=kO(ne);return z(ge),u?ge.leaves():ge.descendants()},[ne,z,u]),re=$.useMemo(function(){return B.map(function(ge){var fe=function(Ne,Me){var Ie=Ne.ancestors().map(function(je){return Me(je.data)}).reverse();return{path:Ie.join("."),pathComponents:Ie}}(ge,K),se=fe.path,xe=fe.pathComponents,ce={id:K(ge.data),path:se,pathComponents:xe,data:v0(ge.data,"children"),x:ge.x0,y:ge.y0,width:ge.x1-ge.x0,height:ge.y1-ge.y0,value:ge.value,formattedValue:W(ge.value),treeDepth:ge.depth,treeHeight:ge.height,isParent:ge.height>0,isLeaf:ge.height===0,parentLabelX:0,parentLabelY:0,parentLabelRotation:0};return ce.labelRotation=C&&ce.height>ce.width?-90:0,F==="top"&&(ce.parentLabelX=v+P,ce.parentLabelY=v+T/2),F==="right"&&(ce.parentLabelX=ce.width-v-T/2,ce.parentLabelY=ce.height-v-P,ce.parentLabelRotation=-90),F==="bottom"&&(ce.parentLabelX=v+P,ce.parentLabelY=ce.height-v-T/2),F==="left"&&(ce.parentLabelX=v+T/2,ce.parentLabelY=ce.height-v-P,ce.parentLabelRotation=-90),ce.label=H(ce),ce.parentLabel=U(ce),ce})},[B,K,W,H,C,U,T,F,P,v]),ie=Lt(),ue=Bl(A,N),me=lr(X,ie),ve=lr(Z,ie),be=lr(Q,ie),Ce=$.useMemo(function(){return re.map(function(ge){var fe=fr({},ge,{color:ue(ge),opacity:D});return fe.borderColor=me(fe),fe.labelTextColor=ve(fe),fe.parentLabelTextColor=be(fe),fe})},[re,ue,D,me,ve,be]);return{hierarchy:ne,nodes:Ce,layout:z}},Ode=function(e){var t=e.nodes;return $.useMemo(function(){return{nodes:t}},[t])},Bh=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,labelX:e.width/2,labelY:e.height/2,labelRotation:e.labelRotation,labelOpacity:1,parentLabelX:e.parentLabelX,parentLabelY:e.parentLabelY,parentLabelRotation:e.parentLabelRotation,parentLabelOpacity:1}},VS=function(e){return{x:e.x+e.width/2,y:e.y+e.height/2,width:0,height:0,color:e.color,labelX:0,labelY:0,labelRotation:e.labelRotation,labelOpacity:0,parentLabelX:0,parentLabelY:0,parentLabelRotation:e.parentLabelRotation,parentLabelOpacity:0}},Mde=$.memo(function(e){var t=e.nodes,n=e.nodeComponent,r=e.borderWidth,i=e.enableLabel,a=e.labelSkipSize,o=e.enableParentLabel,s=function(f,h){var p=h.isInteractive,m=h.onMouseEnter,v=h.onMouseMove,y=h.onMouseLeave,b=h.onClick,x=h.tooltip,C=Wr(),S=C.showTooltipFromEvent,w=C.hideTooltip,O=$.useCallback(function(F,I){S($.createElement(x,{node:F}),I,"left")},[S,x]),E=$.useCallback(function(F,I){O(F,I),m==null||m(F,I)},[m,O]),_=$.useCallback(function(F,I){O(F,I),v==null||v(F,I)},[v,O]),T=$.useCallback(function(F,I){w(),y==null||y(F,I)},[y,w]),R=$.useCallback(function(F,I){b==null||b(F,I)},[b]);return $.useMemo(function(){return f.map(function(F){return p?fr({},F,{onMouseEnter:function(I){return E(F,I)},onMouseMove:function(I){return _(F,I)},onMouseLeave:function(I){return T(F,I)},onClick:function(I){return R(F,I)}}):F})},[p,f,E,_,T,R])}(t,{isInteractive:e.isInteractive,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseLeave:e.onMouseLeave,onClick:e.onClick,tooltip:e.tooltip}),l=Sn(),c=l.animate,u=l.config,d=$a(s,{keys:function(f){return f.path},initial:Bh,from:VS,enter:Bh,update:Bh,leave:VS,config:u,immediate:!c});return L.jsx(L.Fragment,{children:d(function(f,h){return $.createElement(n,{key:h.path,node:h,animatedProps:f,borderWidth:r,enableLabel:i,labelSkipSize:a,enableParentLabel:o})})})}),Tde=["isInteractive","animate","motionConfig","theme","renderWrapper"],Rde=function(e){var t=e.data,n=e.identity,r=n===void 0?Dt.identity:n,i=e.value,a=i===void 0?Dt.value:i,o=e.valueFormat,s=e.tile,l=s===void 0?Dt.tile:s,c=e.nodeComponent,u=c===void 0?Dt.nodeComponent:c,d=e.innerPadding,f=d===void 0?Dt.innerPadding:d,h=e.outerPadding,p=h===void 0?Dt.outerPadding:h,m=e.leavesOnly,v=m===void 0?Dt.leavesOnly:m,y=e.width,b=e.height,x=e.margin,C=e.layers,S=C===void 0?Dt.layers:C,w=e.colors,O=w===void 0?Dt.colors:w,E=e.colorBy,_=E===void 0?Dt.colorBy:E,T=e.nodeOpacity,R=T===void 0?Dt.nodeOpacity:T,F=e.borderWidth,I=F===void 0?Dt.borderWidth:F,P=e.borderColor,k=P===void 0?Dt.borderColor:P,A=e.defs,M=A===void 0?Dt.defs:A,N=e.fill,j=N===void 0?Dt.fill:N,D=e.enableLabel,V=D===void 0?Dt.enableLabel:D,X=e.label,q=X===void 0?Dt.label:X,Z=e.labelTextColor,J=Z===void 0?Dt.labelTextColor:Z,Q=e.orientLabel,K=Q===void 0?Dt.orientLabel:Q,Y=e.labelSkipSize,W=Y===void 0?Dt.labelSkipSize:Y,H=e.enableParentLabel,U=H===void 0?Dt.enableParentLabel:H,z=e.parentLabel,ne=z===void 0?Dt.parentLabel:z,B=e.parentLabelSize,re=B===void 0?Dt.parentLabelSize:B,ie=e.parentLabelPosition,ue=ie===void 0?Dt.parentLabelPosition:ie,me=e.parentLabelPadding,ve=me===void 0?Dt.parentLabelPadding:me,be=e.parentLabelTextColor,Ce=be===void 0?Dt.parentLabelTextColor:be,ge=e.isInteractive,fe=ge===void 0?Dt.isInteractive:ge,se=e.onMouseEnter,xe=e.onMouseMove,ce=e.onMouseLeave,Ne=e.onClick,Me=e.tooltip,Ie=Me===void 0?Dt.tooltip:Me,je=e.role,He=e.ariaLabel,Xe=e.ariaLabelledBy,ke=e.ariaDescribedBy,Oe=Ra(y,b,x),nt=Oe.margin,We=Oe.innerWidth,Be=Oe.innerHeight,Se=Oe.outerWidth,Fe=Oe.outerHeight,ot=Ede({data:t,identity:r,value:a,valueFormat:o,leavesOnly:v,width:We,height:Be,tile:l,innerPadding:f,outerPadding:p,colors:O,colorBy:_,nodeOpacity:R,borderColor:k,label:q,labelTextColor:J,orientLabel:K,enableParentLabel:U,parentLabel:ne,parentLabelSize:re,parentLabelPosition:ue,parentLabelPadding:ve,parentLabelTextColor:Ce}).nodes,ct={nodes:null};S.includes("nodes")&&(ct.nodes=L.jsx(Mde,{nodes:ot,nodeComponent:u,borderWidth:I,enableLabel:V,labelSkipSize:W,enableParentLabel:U,isInteractive:fe,onMouseEnter:se,onMouseMove:xe,onMouseLeave:ce,onClick:Ne,tooltip:Ie},"nodes"));var De=Ode({nodes:ot}),qe=c0(M,ot,j);return L.jsx(Xo,{width:Se,height:Fe,margin:nt,defs:qe,role:je,ariaLabel:He,ariaLabelledBy:Xe,ariaDescribedBy:ke,children:S.map(function(Qe,Je){var rt;return typeof Qe=="function"?L.jsx($.Fragment,{children:$.createElement(Qe,De)},Je):(rt=ct==null?void 0:ct[Qe])!=null?rt:null})})},Pde=function(e){var t=e.isInteractive,n=t===void 0?Dt.isInteractive:t,r=e.animate,i=r===void 0?Dt.animate:r,a=e.motionConfig,o=a===void 0?Dt.motionConfig:a,s=e.theme,l=e.renderWrapper,c=mde(e,Tde);return L.jsx(Pa,{animate:i,isInteractive:n,motionConfig:o,renderWrapper:l,theme:s,children:L.jsx(Rde,fr({isInteractive:n},c))})},Ide=function(e){return L.jsx(Hi,{children:function(t){var n=t.width,r=t.height;return L.jsx(Pde,fr({width:n,height:r},e))}})};const Ade=({treeMapData:e})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx("div",{style:{width:"100%",height:600},children:L.jsx(Ide,{data:e,identity:"name",value:"loc",valueFormat:".02s",margin:{top:10,right:10,bottom:10,left:10},labelSkipSize:12,labelTextColor:{from:"color",modifiers:[["darker",1.2]]},parentLabelPosition:"left",parentLabelTextColor:{from:"color",modifiers:[["darker",2]]},borderColor:{from:"color",modifiers:[["darker",.1]]},tooltip:({node:t})=>L.jsxs("strong",{style:{color:t.color},children:[t.pathComponents.join(" / "),": ",t.formattedValue]})})})]});var Nde=Ll,kde=0;function jde(e){var t=++kde;return Nde(e)+t}var Lde=jde;const Dde=rn(Lde);function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xn.apply(this,arguments)}var S0=$.memo(function(e){var t=e.point;return L.jsx(So,{id:L.jsxs("span",{children:["x: ",L.jsx("strong",{children:t.data.xFormatted}),", y:"," ",L.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.serieColor})}),QM=$.memo(function(e){var t=e.slice,n=e.axis,r=Lt(),i=n==="x"?"y":"x";return L.jsx(h_,{rows:t.points.map(function(a){return[L.jsx(du,{color:a.serieColor,style:r.tooltip.chip},"chip"),a.serieId,L.jsx("span",{style:r.tooltip.tableCellValue,children:a.data[i+"Formatted"]},"value")]})})}),JM={curve:"linear",xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],axisBottom:{},axisLeft:{},enableGridX:!0,enableGridY:!0,enablePoints:!0,pointSize:6,pointColor:{from:"color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enablePointLabel:!1,pointLabel:"yFormatted",colors:{scheme:"nivo"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,areaBlendMode:"normal",lineWidth:2,legends:[],isInteractive:!0,tooltip:S0,enableSlices:!1,debugSlices:!1,sliceTooltip:QM,debugMesh:!1,enableCrosshair:!0,crosshairType:"bottom-left"},$i=Xn({},JM,{enablePointLabel:!1,useMesh:!1,enableTouchCrosshair:!1,animate:!0,motionConfig:"gentle",defs:[],fill:[],role:"img"});Xn({},JM,{pixelRatio:typeof window<"u"&&window.devicePixelRatio||1});var Fde=function(e){var t=e.curve;return $.useMemo(function(){return gl().defined(function(n){return n.x!==null&&n.y!==null}).x(function(n){return n.x}).y(function(n){return n.y}).curve(aO(t))},[t])},zde=function(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return $.useMemo(function(){return sX().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(aO(t)).y0(n(r))},[t,n,r])},Bde=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,a=e.height;return $.useMemo(function(){if(n===!1)return[];if(n==="x"){var o=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(o.has(l.x)?o.get(l.x).push(l):o.set(l.x,[l]))}),Array.from(o.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],p=l[1],m=u[c-1],v=u[c+1];return d=m?h-(h-m[0])/2:h,f=v?h-d+(v[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height:a,points:p.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(s.has(l.y)?s.get(l.y).push(l):s.set(l.y,[l]))}),Array.from(s.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],p=l[1],m=u[c-1],v=u[c+1];return d=m?h-(h-m[0])/2:h,f=v?h-d+(v[0]-h)/2:a-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:p.reverse()}})}},[t,n,a,r,i])},Vde="line",eT=function(e){var t=e.data,n=e.xScale,r=n===void 0?$i.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?$i.yScale:a,s=e.yFormat,l=e.width,c=e.height,u=e.colors,d=u===void 0?$i.colors:u,f=e.curve,h=f===void 0?$i.curve:f,p=e.areaBaselineValue,m=p===void 0?$i.areaBaselineValue:p,v=e.pointColor,y=v===void 0?$i.pointColor:v,b=e.pointBorderColor,x=b===void 0?$i.pointBorderColor:b,C=e.enableSlices,S=C===void 0?$i.enableSlicesTooltip:C,w=$.useState(Dde(Vde))[0],O=ji(i),E=ji(s),_=Bl(d,"id"),T=Lt(),R=lr(y,T),F=lr(x,T),I=$.useState([]),P=I[0],k=I[1],A=$.useMemo(function(){return uM(t.filter(function(Q){return P.indexOf(Q.id)===-1}),r,o,l,c)},[t,P,r,o,l,c]),M=A.xScale,N=A.yScale,j=A.series,D=$.useMemo(function(){var Q=t.map(function(Y){return{id:Y.id,label:Y.id,color:_(Y)}}),K=Q.map(function(Y){return Xn({},j.find(function(W){return W.id===Y.id}),{color:Y.color})}).filter(function(Y){return!!Y.id});return{legendData:Q.map(function(Y){return Xn({},Y,{hidden:!K.find(function(W){return W.id===Y.id})})}).reverse(),series:K}},[t,j,_]),V=D.legendData,X=D.series,q=$.useCallback(function(Q){k(function(K){return K.indexOf(Q)>-1?K.filter(function(Y){return Y!==Q}):[].concat(K,[Q])})},[]),Z=function(Q){var K=Q.series,Y=Q.getPointColor,W=Q.getPointBorderColor,H=Q.formatX,U=Q.formatY;return $.useMemo(function(){return K.reduce(function(z,ne){return[].concat(z,ne.data.filter(function(B){return B.position.x!==null&&B.position.y!==null}).map(function(B,re){var ie={id:ne.id+"."+re,index:z.length+re,serieId:ne.id,serieColor:ne.color,x:B.position.x,y:B.position.y};return ie.color=Y(ne),ie.borderColor=W(ie),ie.data=Xn({},B.data,{xFormatted:H(B.data.x),yFormatted:U(B.data.y)}),ie}))},[])},[K,Y,W,H,U])}({series:X,getPointColor:R,getPointBorderColor:F,formatX:O,formatY:E}),J=Bde({componentId:w,enableSlices:S,points:Z,width:l,height:c});return{legendData:V,toggleSerie:q,lineGenerator:Fde({curve:h}),areaGenerator:zde({curve:h,yScale:N,areaBaselineValue:m}),getColor:_,series:X,xScale:M,yScale:N,slices:J,points:Z}},Wde=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,a=e.path,o=Sn(),s=o.animate,l=o.config,c=df(a),u=Mr({color:r,config:l,immediate:!s});return L.jsx(Mt.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},Hde=$.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return L.jsx("g",{children:i.map(function(a){return L.jsx(Wde,Xn({path:t(a.data.map(function(o){return o.position}))},Xn({areaOpacity:n,areaBlendMode:r},a)),a.id)})})}),Ude=$.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,a=$.useMemo(function(){return t(n)},[t,n]),o=df(a);return L.jsx(Mt.path,{d:o,fill:"none",strokeWidth:i,stroke:r})}),Gde=$.memo(function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(i){var a=i.id,o=i.data,s=i.color;return L.jsx(Ude,{id:a,points:o.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},a)})}),qde=$.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,a=e.tooltip,o=e.isCurrent,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,p=e.onTouchEnd,m=Wr(),v=m.showTooltipFromEvent,y=m.hideTooltip,b=$.useCallback(function(_){v($.createElement(a,{slice:t,axis:r}),_,"right"),s(t),l&&l(t,_)},[v,a,t,r,s,l]),x=$.useCallback(function(_){v($.createElement(a,{slice:t,axis:r}),_,"right"),c&&c(t,_)},[v,a,t,r,c]),C=$.useCallback(function(_){y(),s(null),u&&u(t,_)},[y,s,u,t]),S=$.useCallback(function(_){d&&d(t,_)},[t,d]),w=$.useCallback(function(_){v($.createElement(a,{slice:t,axis:r}),_,"right"),s(t),f&&f(t,_)},[r,f,s,v,t,a]),O=$.useCallback(function(_){var T=_.touches[0],R=document.elementFromPoint(T.clientX,T.clientY),F=R==null?void 0:R.getAttribute("data-ref");if(F){var I=n.find(function(P){return P.id===F});I&&(v($.createElement(a,{slice:I,axis:r}),_,"right"),s(I))}h&&h(t,_)},[r,h,s,v,t,n,a]),E=$.useCallback(function(_){y(),s(null),p&&p(t,_)},[y,s,p,t]);return L.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:o&&i?.35:0,onMouseEnter:b,onMouseMove:x,onMouseLeave:C,onClick:S,onTouchStart:w,onTouchMove:O,onTouchEnd:E,"data-ref":t.id})}),Kde=$.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,a=e.tooltip,o=e.current,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onClick,f=e.onTouchStart,h=e.onTouchMove,p=e.onTouchEnd;return t.map(function(m){return L.jsx(qde,{slice:m,slices:t,axis:n,debug:r,height:i,tooltip:a,setCurrent:s,isCurrent:o!==null&&o.id===m.id,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,onTouchStart:f,onTouchMove:h,onTouchEnd:p},m.id)})}),Yde=$.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,a=e.enableLabel,o=e.label,s=e.labelYOffset,l=Lt(),c=Fee(o),u=t.slice(0).reverse().map(function(d){return{id:d.id,x:d.x,y:d.y,datum:d.data,fill:d.color,stroke:d.borderColor,label:a?c(d):null}});return L.jsx("g",{children:u.map(function(d){return L.jsx(jee,{x:d.x,y:d.y,datum:d.datum,symbol:n,size:r,color:d.fill,borderWidth:i,borderColor:d.stroke,label:d.label,labelYOffset:s,theme:l},d.id)})})}),Xde=$.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=e.setCurrent,o=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,c=e.onClick,u=e.onTouchStart,d=e.onTouchMove,f=e.onTouchEnd,h=e.tooltip,p=e.debug,m=e.enableTouchCrosshair,v=Wr(),y=v.showTooltipAt,b=v.hideTooltip,x=$.useCallback(function(T,R){y($.createElement(h,{point:T}),[T.x+i.left,T.y+i.top],"top"),o&&o(T,R)},[y,h,o,i]),C=$.useCallback(function(T,R){y($.createElement(h,{point:T}),[T.x+i.left,T.y+i.top],"top"),s&&s(T,R)},[y,h,i.left,i.top,s]),S=$.useCallback(function(T,R){b(),l&&l(T,R)},[b,l]),w=$.useCallback(function(T,R){c&&c(T,R)},[c]),O=$.useCallback(function(T,R){y($.createElement(h,{point:T}),[T.x+i.left,T.y+i.top],"top"),u&&u(T,R)},[i.left,i.top,u,y,h]),E=$.useCallback(function(T,R){y($.createElement(h,{point:T}),[T.x+i.left,T.y+i.top],"top"),d&&d(T,R)},[i.left,i.top,d,y,h]),_=$.useCallback(function(T,R){b(),f&&f(T,R)},[f,b]);return L.jsx($M,{nodes:t,width:n,height:r,setCurrent:a,onMouseEnter:x,onMouseMove:C,onMouseLeave:S,onClick:w,onTouchStart:O,onTouchMove:E,onTouchEnd:_,enableTouchCrosshair:m,debug:p})}),Zde=xO(function(e){var t=e.data,n=e.xScale,r=n===void 0?{type:"point"}:n,i=e.xFormat,a=e.yScale,o=a===void 0?{type:"linear",min:0,max:"auto"}:a,s=e.yFormat,l=e.layers,c=l===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:l,u=e.curve,d=u===void 0?"linear":u,f=e.areaBaselineValue,h=f===void 0?0:f,p=e.colors,m=p===void 0?{scheme:"nivo"}:p,v=e.margin,y=e.width,b=e.height,x=e.axisTop,C=e.axisRight,S=e.axisBottom,w=S===void 0?{}:S,O=e.axisLeft,E=O===void 0?{}:O,_=e.enableGridX,T=_===void 0||_,R=e.enableGridY,F=R===void 0||R,I=e.gridXValues,P=e.gridYValues,k=e.lineWidth,A=k===void 0?2:k,M=e.enableArea,N=M!==void 0&&M,j=e.areaOpacity,D=j===void 0?.2:j,V=e.areaBlendMode,X=V===void 0?"normal":V,q=e.enablePoints,Z=q===void 0||q,J=e.pointSymbol,Q=e.pointSize,K=Q===void 0?6:Q,Y=e.pointColor,W=Y===void 0?{from:"color"}:Y,H=e.pointBorderWidth,U=H===void 0?0:H,z=e.pointBorderColor,ne=z===void 0?{theme:"background"}:z,B=e.enablePointLabel,re=B!==void 0&&B,ie=e.pointLabel,ue=ie===void 0?"data.yFormatted":ie,me=e.pointLabelYOffset,ve=e.defs,be=ve===void 0?[]:ve,Ce=e.fill,ge=Ce===void 0?[]:Ce,fe=e.markers,se=e.legends,xe=se===void 0?[]:se,ce=e.isInteractive,Ne=ce===void 0||ce,Me=e.useMesh,Ie=Me!==void 0&&Me,je=e.debugMesh,He=je!==void 0&&je,Xe=e.onMouseEnter,ke=e.onMouseMove,Oe=e.onMouseLeave,nt=e.onClick,We=e.onTouchStart,Be=e.onTouchMove,Se=e.onTouchEnd,Fe=e.tooltip,ot=Fe===void 0?S0:Fe,ct=e.enableSlices,De=ct!==void 0&&ct,qe=e.debugSlices,Qe=qe!==void 0&&qe,Je=e.sliceTooltip,rt=Je===void 0?QM:Je,Ve=e.enableCrosshair,Te=Ve===void 0||Ve,st=e.crosshairType,mt=st===void 0?"bottom-left":st,Ee=e.enableTouchCrosshair,he=Ee!==void 0&&Ee,we=e.role,Le=we===void 0?"img":we,tt=Ra(y,b,v),Ue=tt.margin,at=tt.innerWidth,G=tt.innerHeight,oe=tt.outerWidth,le=tt.outerHeight,_e=eT({data:t,xScale:r,xFormat:i,yScale:o,yFormat:s,width:at,height:G,colors:m,curve:d,areaBaselineValue:h,pointColor:W,pointBorderColor:ne,enableSlices:De}),Ke=_e.legendData,et=_e.toggleSerie,Ze=_e.lineGenerator,it=_e.areaGenerator,Re=_e.series,Pe=_e.xScale,ze=_e.yScale,ft=_e.slices,Nt=_e.points,Wt=Lt(),St=lr(W,Wt),Cn=lr(ne,Wt),fn=$.useState(null),Ht=fn[0],An=fn[1],Rr=$.useState(null),ln=Rr[0],Ln=Rr[1],pn={grid:L.jsx(yM,{theme:Wt,width:at,height:G,xScale:T?Pe:null,yScale:F?ze:null,xValues:I,yValues:P},"grid"),markers:L.jsx(yO,{markers:fe,width:at,height:G,xScale:Pe,yScale:ze,theme:Wt},"markers"),axes:L.jsx(bM,{xScale:Pe,yScale:ze,width:at,height:G,theme:Wt,top:x,right:C,bottom:w,left:E},"axes"),areas:null,lines:L.jsx(Gde,{lines:Re,lineGenerator:Ze,lineWidth:A},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:xe.map(function(hn,Un){return L.jsx(hf,Xn({},hn,{containerWidth:at,containerHeight:G,data:hn.data||Ke,theme:Wt,toggleSerie:hn.toggleSerie?et:void 0}),"legend."+Un)})},nr=c0(be,Re,ge);return N&&(pn.areas=L.jsx(Hde,{areaGenerator:it,areaOpacity:D,areaBlendMode:X,lines:Re},"areas")),Ne&&De!==!1&&(pn.slices=L.jsx(Kde,{slices:ft,axis:De,debug:Qe,height:G,tooltip:rt,current:ln,setCurrent:Ln,onMouseEnter:Xe,onMouseMove:ke,onMouseLeave:Oe,onClick:nt,onTouchStart:We,onTouchMove:Be,onTouchEnd:Se},"slices")),Z&&(pn.points=L.jsx(Yde,{points:Nt,symbol:J,size:K,color:St,borderWidth:U,borderColor:Cn,enableLabel:re,label:ue,labelYOffset:me},"points")),Ne&&Te&&(Ht!==null&&(pn.crosshair=L.jsx(mg,{width:at,height:G,x:Ht.x,y:Ht.y,type:mt},"crosshair")),ln!==null&&(pn.crosshair=L.jsx(mg,{width:at,height:G,x:ln.x,y:ln.y,type:De},"crosshair"))),Ne&&Ie&&De===!1&&(pn.mesh=L.jsx(Xde,{points:Nt,width:at,height:G,margin:Ue,current:Ht,setCurrent:An,onMouseEnter:Xe,onMouseMove:ke,onMouseLeave:Oe,onClick:nt,onTouchStart:We,onTouchMove:Be,onTouchEnd:Se,tooltip:ot,enableTouchCrosshair:he,debug:He},"mesh")),L.jsx(Xo,{defs:nr,width:oe,height:le,margin:Ue,role:Le,children:c.map(function(hn,Un){return typeof hn=="function"?L.jsx($.Fragment,{children:hn(Xn({},e,{innerWidth:at,innerHeight:G,series:Re,slices:ft,points:Nt,xScale:Pe,yScale:ze,lineGenerator:Ze,areaGenerator:it,currentPoint:Ht,setCurrentPoint:An,currentSlice:ln,setCurrentSlice:Ln}))},Un):pn[hn]})})}),Qde=function(e){return L.jsx(Hi,{children:function(t){var n=t.width,r=t.height;return L.jsx(Zde,Xn({width:n,height:r},e))}})},Jde=xO(function(e){var t=$.useRef(null),n=e.width,r=e.height,i=e.margin,a=e.pixelRatio,o=a===void 0?typeof window<"u"&&window.devicePixelRatio||1:a,s=e.data,l=e.xScale,c=l===void 0?{type:"point"}:l,u=e.xFormat,d=e.yScale,f=d===void 0?{type:"linear",min:0,max:"auto"}:d,h=e.yFormat,p=e.curve,m=p===void 0?"linear":p,v=e.layers,y=v===void 0?["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"]:v,b=e.colors,x=b===void 0?{scheme:"nivo"}:b,C=e.lineWidth,S=C===void 0?2:C,w=e.enableArea,O=w!==void 0&&w,E=e.areaBaselineValue,_=E===void 0?0:E,T=e.areaOpacity,R=T===void 0?.2:T,F=e.enablePoints,I=F===void 0||F,P=e.pointSize,k=P===void 0?6:P,A=e.pointColor,M=A===void 0?{from:"color"}:A,N=e.pointBorderWidth,j=N===void 0?0:N,D=e.pointBorderColor,V=D===void 0?{theme:"background"}:D,X=e.enableGridX,q=X===void 0||X,Z=e.gridXValues,J=e.enableGridY,Q=J===void 0||J,K=e.gridYValues,Y=e.axisTop,W=e.axisRight,H=e.axisBottom,U=H===void 0?{}:H,z=e.axisLeft,ne=z===void 0?{}:z,B=e.legends,re=B===void 0?[]:B,ie=e.isInteractive,ue=ie===void 0||ie,me=e.debugMesh,ve=me!==void 0&&me,be=e.onMouseLeave,Ce=e.onClick,ge=e.tooltip,fe=ge===void 0?S0:ge,se=e.canvasRef,xe=Ra(n,r,i),ce=xe.margin,Ne=xe.innerWidth,Me=xe.innerHeight,Ie=xe.outerWidth,je=xe.outerHeight,He=Lt(),Xe=$.useState(null),ke=Xe[0],Oe=Xe[1],nt=eT({data:s,xScale:c,xFormat:u,yScale:f,yFormat:h,width:Ne,height:Me,colors:x,curve:m,areaBaselineValue:_,pointColor:M,pointBorderColor:V}),We=nt.lineGenerator,Be=nt.areaGenerator,Se=nt.series,Fe=nt.xScale,ot=nt.yScale,ct=nt.points,De=p0({points:ct,width:Ne,height:Me,debug:ve}),qe=De.delaunay,Qe=De.voronoi;$.useEffect(function(){se&&(se.current=t.current),t.current.width=Ie*o,t.current.height=je*o;var he=t.current.getContext("2d");he.scale(o,o),he.fillStyle=He.background,he.fillRect(0,0,Ie,je),he.translate(ce.left,ce.top),y.forEach(function(we){if(typeof we=="function"&&we({ctx:he,innerWidth:Ne,innerHeight:Me,series:Se,points:ct,xScale:Fe,yScale:ot,lineWidth:S,lineGenerator:We,areaGenerator:Be,currentPoint:ke,setCurrentPoint:Oe}),we==="grid"&&He.grid.line.strokeWidth>0&&(he.lineWidth=He.grid.line.strokeWidth,he.strokeStyle=He.grid.line.stroke,q&&Au(he,{width:Ne,height:Me,scale:Fe,axis:"x",values:Z}),Q&&Au(he,{width:Ne,height:Me,scale:ot,axis:"y",values:K})),we==="axes"&&xM(he,{xScale:Fe,yScale:ot,width:Ne,height:Me,top:Y,right:W,bottom:U,left:ne,theme:He}),we==="areas"&&O===!0){he.save(),he.globalAlpha=R,Be.context(he);for(var Le=Se.length-1;Le>=0;Le--)he.fillStyle=Se[Le].color,he.beginPath(),Be(Se[Le].data.map(function(Ue){return Ue.position})),he.fill();he.restore()}if(we==="lines"&&(We.context(he),Se.forEach(function(Ue){he.strokeStyle=Ue.color,he.lineWidth=S,he.beginPath(),We(Ue.data.map(function(at){return at.position})),he.stroke()})),we==="points"&&I===!0&&k>0&&ct.forEach(function(Ue){he.fillStyle=Ue.color,he.beginPath(),he.arc(Ue.x,Ue.y,k/2,0,2*Math.PI),he.fill(),j>0&&(he.strokeStyle=Ue.borderColor,he.lineWidth=j,he.stroke())}),we==="mesh"&&ve===!0&&(_M(he,Qe),ke&&EM(he,Qe,ke.index)),we==="legends"){var tt=Se.map(function(Ue){return{id:Ue.id,label:Ue.id,color:Ue.color}}).reverse();re.forEach(function(Ue){OO(he,Xn({},Ue,{data:Ue.data||tt,containerWidth:Ne,containerHeight:Me,theme:He}))})}})},[t,Ie,je,y,He,We,Se,Fe,ot,q,Z,Q,K,Y,W,U,ne,re,ct,I,k,ke]);var Je=$.useCallback(function(he){var we=l0(t.current,he),Le=we[0],tt=we[1];if(!SO(ce.left,ce.top,Ne,Me,Le,tt))return null;var Ue=qe.find(Le-ce.left,tt-ce.top);return ct[Ue]},[t,ce,Ne,Me,qe]),rt=Wr(),Ve=rt.showTooltipFromEvent,Te=rt.hideTooltip,st=$.useCallback(function(he){var we=Je(he);Oe(we),we?Ve($.createElement(fe,{point:we}),he):Te()},[Je,Oe,Ve,Te,fe]),mt=$.useCallback(function(he){Te(),Oe(null),ke&&be&&be(ke,he)},[Te,Oe,be]),Ee=$.useCallback(function(he){if(Ce){var we=Je(he);we&&Ce(we,he)}},[Je,Ce]);return L.jsx("canvas",{ref:t,width:Ie*o,height:je*o,style:{width:Ie,height:je,cursor:ue?"auto":"normal"},onMouseEnter:ue?st:void 0,onMouseMove:ue?st:void 0,onMouseLeave:ue?mt:void 0,onClick:ue?Ee:void 0})}),efe=$.forwardRef(function(e,t){return L.jsx(Jde,Xn({},e,{canvasRef:t}))});$.forwardRef(function(e,t){return L.jsx(Hi,{children:function(n){var r=n.width,i=n.height;return L.jsx(efe,Xn({width:r,height:i},e,{ref:t}))}})});const tfe=({trendsData:e,xLeg:t,yLeg:n})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx("div",{style:{width:"95%",height:"100vh"},children:L.jsx(Qde,{data:e,margin:{top:50,right:190,bottom:50,left:90},xScale:{type:"point"},yScale:{type:"linear",min:"auto",max:"auto",reverse:!1},axisTop:null,axisRight:null,axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:t,legendOffset:36,legendPosition:"middle"},axisLeft:{tickSize:5,tickPadding:5,tickRotation:0,legend:n,legendOffset:-70,legendPosition:"middle"},pointSize:10,pointColor:{theme:"background"},pointBorderWidth:2,pointBorderColor:{from:"serieColor"},pointLabelYOffset:-12,useMesh:!0,legends:[{anchor:"top-right",direction:"column",justify:!1,translateX:210,translateY:-40,itemsSpacing:0,itemDirection:"left-to-right",itemWidth:200,itemHeight:20,itemOpacity:.9,symbolSize:8,symbolShape:"circle",symbolBorderColor:"rgba(0, 0, 0, .5)",effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]}],tooltip:r=>L.jsx(Li,{label:r.point.serieId,amount:r.point.data.yFormatted})})})]}),WS=Rt.h3`
|
|
497
|
+
color: var(--gf-color-button-primary);
|
|
498
|
+
`,nfe=[{value:"Alle industrieen",label:"Alle industrieen"},{label:"Chemie Energie",value:"Chemie Energie"},{label:"Afval Beheer",value:"Afval Beheer"},{label:"Onbekend",value:"Onbekend"},{label:"Metaal Machine Elektronica",value:"Metaal Machine Elektronica"},{label:"Landbouw Veeteelt",value:"Landbouw Veeteelt"},{label:"Plastic Rubber Textiel",value:"Plastic Rubber Textiel"},{label:"Diversen",value:"Diversen"},{label:"Bouw Sloop",value:"Bouw Sloop"}],rfe=[{label:"Alle verwerkings",value:"Alle verwerkings"},{label:"bewaren",value:"bewaren"},{label:"recyclen",value:"recyclen"},{label:"hergebruiken",value:"hergebruiken"},{label:"verbranden",value:"verbranden"},{label:"storten",value:"storten"}],ife=({isOneSelector:e})=>L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsx(jo,{cardtype:"default",children:L.jsxs(fi,{gap:8,children:[L.jsxs(fi,{vertical:!0,children:[L.jsx(WS,{children:"Selecteer industrie:"}),L.jsx(Ni,{defaultValue:"Alle industrieen",style:{width:"100vh"},onChange:t=>alert(`Option ${t} selected`),options:nfe})]}),!e&&L.jsxs(fi,{vertical:!0,children:[L.jsx(WS,{children:"Selecteer verwerkingsmethode:"}),L.jsx(Ni,{defaultValue:"Alle verwerkings",style:{width:"100vh"},onChange:t=>alert(`Option ${t} selected`),options:rfe})]})]})})]}),Cs={A:"#39b54a",B:"#8cc63f",C:"#d9e021",D:"#fcee21",E:"#fbb03b",F:"#f7931e",G:"#f15a24",H:"#cc3333",I:"#4d4d4d"},afe={A:"Direct hoogwardig inzetten",B:"Indirect hoogwardig inzetten",C:"Voorbereiding voor recycling",D:"Microbiologische verwerking",E:"Grondreiniging",F:"Verbranding met opbrengst",G:"Verbranden",H:"Storten",I:"Opslag"},ofe=({data:e})=>{e.nodes=e.nodes.map(h=>({...h,nodeColor:Cs[h.rank]})),e.links=e.links.map(h=>({...h,startColor:Cs[h.target_rank],endColor:Cs[h.target_rank]}));const c=h=>`${h.pct>1?h.pct.toFixed(0):h.pct>.1?h.pct.toFixed(1):"<0.1"}%`,u=({node:h})=>{const p=h.sourceLinks.length?-60:30,m=h.height/2-22/2;return L.jsx("g",{transform:`translate(${h.x0+p}, ${h.y0+m})`,children:L.jsx("foreignObject",{width:50,height:22,children:L.jsxs("div",{style:{color:"black",textAlign:"center",padding:"2px",fontSize:"12px",border:`2px solid ${h.color}`,display:"flex",justifyContent:"space-between"},children:[L.jsx("span",{children:L.jsx("b",{children:h.rank})}),L.jsx("span",{children:c(h)})]})})})},d=({nodes:h})=>h.map(p=>L.jsx(u,{node:p},p.id)),f=()=>L.jsx("div",{style:{marginTop:10},children:Object.keys(Cs).map(h=>L.jsxs(fi,{gap:8,children:[L.jsx("div",{style:{backgroundColor:Cs[h],width:20,height:20,border:"1px solid gray"}}),L.jsx("span",{children:`${h} ${afe[h]}`})]}))});return L.jsxs(L.Fragment,{children:[L.jsx(On,{}),L.jsxs("div",{style:{width:"100%",height:600,display:"flex",justifyContent:"space-between"},children:[L.jsx(f,{}),L.jsx(jO,{data:e,margin:{top:20,right:260,bottom:20,left:260},sort:"input",labelPosition:"outside",colors:h=>h.nodeColor,enableLinkGradient:!0,linkOpacity:.5,nodeOpacity:1,nodeBorderWidth:0,nodeThickness:20,nodeSpacing:22,nodeTooltip:({node:h})=>L.jsx(Li,{label:h.rank,amount:h.value,unit:h.unit}),linkTooltip:({link:h})=>L.jsx(Li,{label:L.jsxs(L.Fragment,{children:[L.jsx("b",{children:h.source.rank}),L.jsx("span",{children:" > "}),L.jsx("b",{children:h.target.rank})]}),amount:h.value,unit:h.unit}),layers:["links","nodes",d]})]})]})};exports.AddressLink=mj;exports.BenchmarkSankey=ofe;exports.ButtonControls=Kk;exports.CustomToolTip=Li;exports.Description=Sj;exports.DownloadButton=d$;exports.EmailLink=gj;exports.ExpandButton=f$;exports.GFButton=Wm;exports.GFCard=jo;exports.GFMetricsGrid=Cj;exports.Link=nd;exports.LocationIcon=S$;exports.MailIcon=x$;exports.Metrics=b$;exports.NavCard=Qk;exports.PhoneIcon=y$;exports.PhoneLink=pj;exports.PieChart=Uie;exports.QuickNavCard=aj;exports.Sankey=cie;exports.ScatterPlot=Hle;exports.TabCard=oj;exports.Title=m$;exports.TreeMap=Ade;exports.Trends=tfe;exports.VisSelectors=ife;
|
|
414
499
|
//# sourceMappingURL=index.cjs.js.map
|